hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
d72fe9b346292d59f91074c2e7fae4c3e840888a
1,684
js
JavaScript
lib/NestedObjectMap.js
patrickd-/nestedobjectmap.node
0cb145eb133bcefa58cca48c5025c207f8b0f7a0
[ "MIT" ]
null
null
null
lib/NestedObjectMap.js
patrickd-/nestedobjectmap.node
0cb145eb133bcefa58cca48c5025c207f8b0f7a0
[ "MIT" ]
4
2021-06-09T00:04:52.000Z
2021-06-09T00:04:53.000Z
lib/NestedObjectMap.js
patrickd-/nestedobjectmap.node
0cb145eb133bcefa58cca48c5025c207f8b0f7a0
[ "MIT" ]
null
null
null
module.exports = class NestedObjectMap extends Map { /** * Constructor. * * Pass it a nested object and you'll be able to access the values via the Map * methods: * * const NestedObjectMap = require('nestedobjectmap'); * const config = new NestedObjectMap({ * api: { * http: { * auth: { * token: 'secret' * } * } * } * }); * const authToken = config.get('api.http.auth.token'); * const { token } = config.get('api.http.auth'); * * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map * @param {object} object */ constructor(object) { super(); this.addObject(object); } /** * Deep iterates the passed object and adds it's fields to the map. * * @param {object} object - a nested object * @param {array} [objectPath] for recursive calls * @param {array} [knownObjects] within current path for recursive calls */ mapObject(object, objectPath = [], knownObjects = []) { if (object && !knownObjects.includes(object) && typeof object === 'object' && object.constructor && object.constructor.name === 'Object') { const currentknownObjects = knownObjects.concat(object); Object.keys(object).forEach((key) => { const value = object[key]; const currentPath = objectPath.concat(key); this.set(currentPath.join('.'), value); this.mapObject(value, currentPath, currentknownObjects); }); } } /** * Alias method for mapObject(). * @see mapObject() */ addObject(object, objectPath) { this.mapObject(object, objectPath); } };
29.034483
143
0.601544
d7302313f99791ff23f5017f4d892fbf41574f5d
931
js
JavaScript
test/core/Transitionable.js
dmvaldman/samsara
4946ef08572ac882bad2fab6254e9ec1c90f3872
[ "MIT" ]
1,176
2015-08-25T15:47:34.000Z
2022-03-31T02:45:47.000Z
test/core/Transitionable.js
dmvaldman/famous-src
4946ef08572ac882bad2fab6254e9ec1c90f3872
[ "MIT" ]
72
2015-09-10T23:23:38.000Z
2020-12-19T05:41:29.000Z
test/core/Transitionable.js
dmvaldman/famous-src
4946ef08572ac882bad2fab6254e9ec1c90f3872
[ "MIT" ]
93
2015-09-25T15:58:49.000Z
2022-01-21T01:54:54.000Z
define(function (require) { var loop = require('loop'); var Transitionable = require('samsara/core/Transitionable'); loop.start(); QUnit.module('Transitionable'); QUnit.test('Start on end', function(assert){ var timesFiredStart = 0; var timesFiredEnd = 0; var t = new Transitionable(0); t.on('start', function(value) { timesFiredStart++; assert.equal(timesFiredStart, 1); assert.equal(value, 0); }); t.on('update', function(value) { assert.ok(value > 0 && value <= 2); }); t.on('end', function(value) { timesFiredEnd++; assert.equal(timesFiredEnd, 1); assert.equal(value, 2); }); t.set(1, {duration : 200}, function() { t.set(2, {duration : 200}, function(){ loop.stop(); }); }); }); });
25.162162
64
0.499463
d7303aa12e19f73258ef1feb6aec7de2fe041e0e
3,072
js
JavaScript
test/scope.js
blinkmobile/bmp-cli
aadec890aac71dc37f4e7fdba45d77a205550ac1
[ "BSD-3-Clause" ]
null
null
null
test/scope.js
blinkmobile/bmp-cli
aadec890aac71dc37f4e7fdba45d77a205550ac1
[ "BSD-3-Clause" ]
96
2016-01-21T00:38:30.000Z
2019-03-05T17:08:33.000Z
test/scope.js
blinkmobile/bmp-cli
aadec890aac71dc37f4e7fdba45d77a205550ac1
[ "BSD-3-Clause" ]
null
null
null
'use strict'; // Node.js built-ins const path = require('path'); // foreign modules const pify = require('pify'); const temp = pify(require('temp').track()); const test = require('ava'); // local modules const lib = require('../lib/scope'); const pkg = require('../package.json'); // this module test.beforeEach((t) => { return temp.mkdir(pkg.name.replace(/\//g, '-') + '-') .then((dirPath) => { process.env.BMP_USER_CONFIG_DIR = dirPath; process.env.BMP_WORKING_DIR = dirPath; t.context.tempDir = dirPath; }); }); test.serial('read missing .blinkmrc.json', (t) => { return lib.read() .then((result) => { t.fail(); }) .catch((err) => { t.truthy(err); }); }); test.serial('read empty .blinkmrc.json', (t) => { process.env.BMP_WORKING_DIR = path.join(__dirname, 'fixtures', 'scope', 'empty'); return lib.read() .then(() => { t.fail(); }) .catch((err) => { t.truthy(err); }); }); test.serial('read .blinkmrc.json in same directory', (t) => { process.env.BMP_WORKING_DIR = path.join(__dirname, 'fixtures', 'scope'); return lib.read() .then((scope) => { t.is(scope, 'https://example.com/space'); }); }); test.serial('read .blinkmrc.json in parent directory', (t) => { process.env.BMP_WORKING_DIR = path.join(__dirname, 'fixtures', 'scope', 'sub'); return lib.read() .then((scope) => { t.is(scope, 'https://example.com/space'); }); }); const invalidScopes = [ 'abc', '/abc', 'example.com/', 'https://example.com', 'https://example.com/' ]; invalidScopes.forEach((scope) => { test.serial(`write invalid scope URL "${scope}" to .blinkmrc.json`, (t) => { return lib.write({ scope }) .then(() => { t.fail(); }) .catch((err) => { t.truthy(err); }); }); }); test.serial('write to .blinkmrc.json in same directory', (t) => { return lib.write({ scope: 'https://example.com/space' }) .then(() => lib.read()) .then((scope) => { t.is(scope, 'https://example.com/space'); }); }); test.serial('write URL without protocol to .blinkmrc.json in same directory', (t) => { return lib.write({ scope: 'example.com/space' }) .then(() => lib.read()) .then((scope) => { t.is(scope, 'https://example.com/space'); }); }); test.serial('update to .blinkmrc.json in parent directory', (t) => { // write from parent directory process.env.BMP_WORKING_DIR = t.context.tempDir; return lib.write({ scope: 'https://example.com/space' }) .then(() => { // write from sub-directory process.env.BMP_WORKING_DIR = path.join(t.context.tempDir, 'test'); return lib.write({ scope: 'https://example.com/abcdef' }); }) // read from sub-directory .then(() => lib.read()) .then((scope) => t.is(scope, 'https://example.com/abcdef')) // read from parent directory .then(() => { process.env.BMP_WORKING_DIR = t.context.tempDir; return lib.read(); }) .then((scope) => t.is(scope, 'https://example.com/abcdef')); });
25.6
86
0.576172
d7303b43b4c0fbfc1b4e1c3db45df1c6b4aea74b
142
js
JavaScript
frontend/50pm/src/App.js
yhuangsh/50pm
d4e5d2bf45db08bce1f2eca296884db8abbe4133
[ "MIT" ]
null
null
null
frontend/50pm/src/App.js
yhuangsh/50pm
d4e5d2bf45db08bce1f2eca296884db8abbe4133
[ "MIT" ]
59
2019-04-11T06:05:46.000Z
2022-03-23T01:29:47.000Z
frontend/50pm/src/App.js
yhuangsh/50pm
d4e5d2bf45db08bce1f2eca296884db8abbe4133
[ "MIT" ]
null
null
null
import React from 'react'; import AppView from './views/AppView'; const App = () => { return ( <AppView /> ); } export default App;
12.909091
38
0.605634
d731476f864f4f0b131875de332e87fbd9e1b0e4
832
js
JavaScript
src/modules/auth-session/configure/index.js
AckeeCZ/petrus
7de26a441cd42ed1ea7ff1a14cf171a05d27c968
[ "MIT" ]
6
2018-12-13T11:35:59.000Z
2020-09-23T11:01:16.000Z
src/modules/auth-session/configure/index.js
AckeeCZ/petrus
7de26a441cd42ed1ea7ff1a14cf171a05d27c968
[ "MIT" ]
36
2019-01-24T15:34:06.000Z
2022-03-14T12:56:37.000Z
src/modules/auth-session/configure/index.js
AckeeCZ/petrus
7de26a441cd42ed1ea7ff1a14cf171a05d27c968
[ "MIT" ]
1
2020-04-08T03:08:21.000Z
2020-04-08T03:08:21.000Z
import { PetrusError } from 'config'; import { isFn } from 'services/utils'; import { tokensPersistence as TokenPeristence } from 'modules/tokens'; export const handlers = ({ authenticate, getAuthUser } = {}, { oAuthEnabled, tokensPersistence }) => { if (!oAuthEnabled && !isFn(authenticate)) { throw new PetrusError(`'authenticate' is not a function: Received argument: '${authenticate}'.`); } const { LOCAL, NONE } = TokenPeristence; if (tokensPersistence === LOCAL && !isFn(getAuthUser)) { throw new PetrusError( `'getAuthUser' is not a function: '${getAuthUser}'. Tokens persistence is set to '${LOCAL}'. Change tokens persistence to '${NONE}' or provide function for fetching authorized user.`, ); } return { authenticate, getAuthUser, }; };
34.666667
195
0.645433
d7317baa8805d9ea6a650a9a4fd62e4c9ce9ee53
1,759
js
JavaScript
public/js/chrome/storage.js
fgrillo21/ExamBin
8a31c83b446253eb9845676b33811128ab85023c
[ "MIT" ]
1
2015-03-09T08:40:58.000Z
2015-03-09T08:40:58.000Z
public/js/chrome/storage.js
fgrillo21/ExamBin
8a31c83b446253eb9845676b33811128ab85023c
[ "MIT" ]
null
null
null
public/js/chrome/storage.js
fgrillo21/ExamBin
8a31c83b446253eb9845676b33811128ab85023c
[ "MIT" ]
1
2021-06-22T13:49:17.000Z
2021-06-22T13:49:17.000Z
function hasStore(type) { try { return type in window && window[type] !== null; } catch(e) { return false; } } var store = (function () { "use strict"; var polyfill = false; // Firefox with Cookies disabled triggers a security error when we probe window.sessionStorage // currently we're just disabling all the session features if that's the case. var sessionStorage; var localStorage; if (!hasStore('sessionStorage')) { polyfill = true; sessionStorage = (function () { var data = window.top.name ? JSON.parse(window.top.name) : {}; return { clear: function () { data = {}; window.top.name = ''; }, getItem: function (key) { return data[key] || null; }, removeItem: function (key) { delete data[key]; window.top.name = JSON.stringify(data); }, setItem: function (key, value) { data[key] = value; window.top.name = JSON.stringify(data); } }; })(); } if (!hasStore('localStorage')) { // dirty, but will do for our purposes localStorage = $.extend({}, sessionStorage); } else if (hasStore('localStorage')) { localStorage = window.localStorage; } return { polyfill: polyfill, sessionStorage: sessionStorage, localStorage: localStorage }; })(); // because: I want to hurt you firefox, that's why. store.backup = {}; // if (hasStore('localStorage')) { // store.backup.localStorage = window.localStorage; // store.backup.sessionStorage = window.sessionStorage; // } // var sessionStorage = {}, localStorage = {}; if (store.polyfill === true) { window.sessionStorage = store.sessionStorage; window.localStorage = store.localStorage; }
26.253731
96
0.610574
d7329feb03d60b545d7be2dd34d1737530c6b93c
955
js
JavaScript
lib/sdk/harnesses/direct/DoFn.js
markbirbeck/beamish
20fe76eb5ad63ef40c6c500c117e4820c91b9a86
[ "MIT" ]
null
null
null
lib/sdk/harnesses/direct/DoFn.js
markbirbeck/beamish
20fe76eb5ad63ef40c6c500c117e4820c91b9a86
[ "MIT" ]
null
null
null
lib/sdk/harnesses/direct/DoFn.js
markbirbeck/beamish
20fe76eb5ad63ef40c6c500c117e4820c91b9a86
[ "MIT" ]
null
null
null
/** * TODO: This actually has no effect in NodeStreams world, but * we're adding it here to help refactoring. */ const Serializable = require('../../io/Serializable'); class DoFn extends Serializable { /** * TODO: This only has an effect in NodeStreams world, so * will probably be removed when harmonising is complete. */ constructor(objectMode=true) { super() this.objectMode = objectMode } processElement(c) { /** * If the derived class does not provide a processElement() method then the * default behaviour is to forward on the result of passing the input to an * apply() method: */ c.output(this.apply(c.element())) } apply() { /** * If we get here then then the derived class has provided *neither* an apply() * method *nor* a processElement() method: */ throw new Error('apply() not implemented or processElement() not overridden') } } module.exports = DoFn
26.527778
83
0.659686
d733c49f9b6aded414ac2fa05c36042fa22bc77a
1,083
js
JavaScript
packages/corvid-local-server/test/it/upgrades.spec.js
wix/wix-code-dev-experience
61a538564b2a65d82c68fed7bae6550819b90288
[ "MIT" ]
47
2019-05-29T18:39:29.000Z
2022-02-08T21:21:02.000Z
packages/corvid-local-server/test/it/upgrades.spec.js
wix/wix-code-dev-experience
61a538564b2a65d82c68fed7bae6550819b90288
[ "MIT" ]
68
2019-06-17T08:20:11.000Z
2021-05-20T14:11:55.000Z
packages/corvid-local-server/test/it/upgrades.spec.js
wix/wix-code-dev-experience
61a538564b2a65d82c68fed7bae6550819b90288
[ "MIT" ]
16
2019-05-29T15:38:48.000Z
2021-07-14T16:39:35.000Z
const { localSiteDir } = require("corvid-local-test-utils"); const { localServer, closeAll } = require("../utils/autoClosing"); const { localSiteBuilder } = require("corvid-local-site/testkit"); const { UserError } = require("corvid-local-logger"); afterEach(closeAll); describe("Upgrades", () => { it("should fail to loading in edit mode on a project with an old file system layout", async () => { const localSiteFiles = localSiteBuilder.buildFull(); const rootSitePath = await localSiteDir.initLocalSite(localSiteFiles); const currentMetadata = JSON.parse( await localSiteDir.readFile(rootSitePath, ".metadata.json") ); const oldMetadata = Object.assign({}, currentMetadata, { localFileSystemLayout: "1.0" }); await localSiteDir.writeFile( rootSitePath, ".metadata.json", JSON.stringify(oldMetadata) ); const startServerResponse = localServer.startInEditMode(rootSitePath); await expect(startServerResponse).rejects.toThrow( new UserError("OLD_FILE_SYSTEM_LAYOUT_NOT_SUPPORTED") ); }); });
31.852941
101
0.701754
d73450bc5a1b0c728a5bb607d3162dcda52be703
218
js
JavaScript
src/base/bindEvent.js
Wilfredo-Ho/vue-baidu-map
d38acf51ee4d4ca2e38fb58a09b059185f4d298a
[ "MIT" ]
null
null
null
src/base/bindEvent.js
Wilfredo-Ho/vue-baidu-map
d38acf51ee4d4ca2e38fb58a09b059185f4d298a
[ "MIT" ]
null
null
null
src/base/bindEvent.js
Wilfredo-Ho/vue-baidu-map
d38acf51ee4d4ca2e38fb58a09b059185f4d298a
[ "MIT" ]
1
2020-12-13T14:23:35.000Z
2020-12-13T14:23:35.000Z
import events from './events.js' export default function (instance) { events[this.$options._componentTag].forEach(event => { instance.addEventListener(event, (arg) => { this.$emit(event, arg) }) }) }
24.222222
56
0.655963
d734993dbf260be234ee1d93b3628161e910e9ad
1,674
js
JavaScript
src/js/config/index.js
smilecc/adao-weex
9c30f4ddc3c18fc0588e401a57cb7ffb35fb5862
[ "MIT" ]
2
2018-06-28T11:47:47.000Z
2018-08-08T09:51:06.000Z
src/js/config/index.js
smilecc/adao-weex
9c30f4ddc3c18fc0588e401a57cb7ffb35fb5862
[ "MIT" ]
null
null
null
src/js/config/index.js
smilecc/adao-weex
9c30f4ddc3c18fc0588e401a57cb7ffb35fb5862
[ "MIT" ]
null
null
null
import Widget from 'eros-widget' import apis from './apis' import routes from './routes' import sites from './sites' import './push' import '../widgets/html' import '../widgets/mixins' import Site from '../widgets/site' Vue.use(Site, sites) const widget = new Widget({ router: { /** * 路由配置表 */ routes }, ajax: { get baseUrl () { return Vue.prototype.$site.baseUrl }, /** * 接口别名 */ apis, // 接口超时时间 timeout: 10000, /** * 请求发送统一拦截器 (可选) * options 你请求传入的所有参数和配置 * next */ requestHandler (options, next) { // console.log('request-opts', options) // console.log(Vue.prototype.$storage) // console.log(options) next() }, /** * 请求返回统一拦截器 (可选) * options 你请求传入的所有参数和配置 * resData 服务器端返回的所有数据 * resolve 请求成功请resolve你得结果,这样请求的.then中的成功回调就能拿到你resolve的数据 * reject 请求成功请resolve你得结果,这样请求的.then中的失败回调就能拿到你reject的数据 */ responseHandler (options, resData, resolve, reject) { const { status, errorMsg, data } = resData if (status !== 200) { console.log(`invoke error status: ${status}`) console.log(`invoke error message: ${errorMsg}`) Vue.prototype.$notice.alert({ title: '网络请求失败', message: `${errorMsg}: ${status}` }) reject(resData) } else { // 自定义请求逻辑 resolve(data) } } } })
25.753846
67
0.484468
d7379ba355f7be5d77c0721290cd31d64b35210c
98
js
JavaScript
.storybook/manager.js
asuetin/ui-components
568f0d9e85b905b58284feaa77904ab7057333cf
[ "MIT" ]
null
null
null
.storybook/manager.js
asuetin/ui-components
568f0d9e85b905b58284feaa77904ab7057333cf
[ "MIT" ]
null
null
null
.storybook/manager.js
asuetin/ui-components
568f0d9e85b905b58284feaa77904ab7057333cf
[ "MIT" ]
null
null
null
import {addons} from '@storybook/addons'; import theme from './theme'; addons.setConfig({theme});
24.5
41
0.72449
d738cd2fdb1d55316113620a5c3da765229d2108
4,020
js
JavaScript
app.js
BayanAbualhaj/cookie-stand
587da084dc4f3f9042b9c15228c965b679b1da33
[ "MIT" ]
1
2021-02-11T19:49:46.000Z
2021-02-11T19:49:46.000Z
app.js
BayanAbualhaj/cookie-stand
587da084dc4f3f9042b9c15228c965b679b1da33
[ "MIT" ]
1
2021-01-05T19:31:01.000Z
2021-01-05T19:31:01.000Z
app.js
BayanAbualhaj/cookie-stand
587da084dc4f3f9042b9c15228c965b679b1da33
[ "MIT" ]
null
null
null
"use strict"; var locations=[]; var hourArray=[' 6:00am ',' 7:00am ',' 8:00am ', ' 9:00am ',' 10:00am ',' 11:00am ',' 12:00pm ',' 1:00pm',' 2:00pm ',' 3:00pm ',' 4:00pm ', '5:00pm ',' 6:00pm','7:00pm']; function City(passName,passMin,passMax,passAvg){ this.name=passName; this.minCust=passMin; this.maxCust=passMax; this.AvgCookieSale=passAvg; this.CookieArray=[]; locations.push(this); } City.prototype.randNumCust=function(){ return Math.floor( Math.random()*(this.maxCust- this.minCust)+this.minCust); } City.prototype.fillCookiArray=function(){ for(var i=0;i<14;i++){ this.CookieArray.push( Math.floor(this.AvgCookieSale*this.randNumCust())); } } var seattle= new City('Seatle',23,65,6.3); var tokyo= new City('Tokyo',3,24,1.2); var dubai= new City('Dubai',11,38,3.7); var paris= new City('Paris',20,38,2.3); var lima= new City('Lima',2,16,4.6); for (let index = 0; index < locations.length; index++) { locations[index].fillCookiArray(); } var div=document.getElementById('citylist'); var table= document.createElement('table'); div.appendChild(table); function time(){ var rowOne=document.createElement('tr'); table.appendChild(rowOne); for(var i=0;i<16;i++){ var th1=document.createElement('th') if(i==0){ th1.textContent=''; rowOne.appendChild(th1); }else if(i==15){ th1.textContent='Daily Location Total'; rowOne.appendChild(th1); }else{ th1.textContent=hourArray[i-1]; rowOne.appendChild(th1); } } } function locationRows(){ for(var j=0;j<locations.length;j++){ var rowX= document.createElement('tr'); table.appendChild(rowX); var Totalatday=0; for( var i=0;i<16;i++){ var td = document.createElement("td"); if (i==0){ td.textContent = locations[j].name; rowX.appendChild(td); }else if (i==15){ td.textContent =Number(Totalatday); rowX.appendChild(td); }else { td.textContent =locations[j].CookieArray[i-1]; rowX.appendChild(td); Totalatday=Totalatday+locations[j].CookieArray[i-1]; } } } } function totalRow() { var parentElement = document.getElementsByTagName('table'); var tablefinalRow = document.createElement('tr'); parentElement[0].appendChild(tablefinalRow); var dataCell = document.createElement('td'); dataCell.textContent = 'Totals'; tablefinalRow.appendChild(dataCell); var finalTotal = 0; for (var i = 0; i < hourArray.length; i++) { var dataCell = document.createElement('td'); var hourlyTotal =0; for (let index = 0; index < locations.length; index++) { hourlyTotal=hourlyTotal+ Math.floor(locations[index].CookieArray[i]); } dataCell.textContent = hourlyTotal; tablefinalRow.appendChild(dataCell); finalTotal += hourlyTotal; } var dataCell = document.createElement('td'); dataCell.textContent = finalTotal; tablefinalRow.appendChild(dataCell); } //caling function : time(); locationRows(); totalRow(); newBranch(); function newBranch(){ var newBranch=document.getElementById('add-branch'); newBranch.addEventListener('submit',eventLocation); } function eventLocation(event){ event.preventDefault(); var brach =event.target.branch.value; var minCust =parseInt(event.target.minCust.value); var maxCust= parseInt(event.target.maxCust.value); var cookiesPerSale=parseFloat(event.target.cookiesPerSale.value); console.log(event.target.minCust.value); var newlocation= new City(brach,minCust,maxCust,cookiesPerSale,[]); newlocation.fillCookiArray(); table.innerHTML= ''; time(); locationRows(); totalRow(); }
26.622517
170
0.609453
d7391dc316afd568fcb78338041e23a4c8294d37
250
js
JavaScript
server.js
onflow/grafana-statuspage
278e8e58ba70eb19f0ff08a43138f9af8be275f6
[ "MIT" ]
12
2016-12-20T07:21:10.000Z
2021-11-12T15:51:02.000Z
server.js
getconversio/grafana-statuspage
278e8e58ba70eb19f0ff08a43138f9af8be275f6
[ "MIT" ]
null
null
null
server.js
getconversio/grafana-statuspage
278e8e58ba70eb19f0ff08a43138f9af8be275f6
[ "MIT" ]
8
2018-05-05T15:55:04.000Z
2021-11-12T15:51:24.000Z
'use strict'; const config = require('./lib/config'), app = require('./lib/express'), logger = require('./lib/logger'); app().listen(config.port, config.host, () => { logger.info(`Server running at http://${config.host}:${config.port}`); });
25
72
0.624
d7398d16744cbec8ef3e571788dfc8116227901f
459
js
JavaScript
test/tests/style-attribute.js
SeanJM/flatman-parse
2e3d0b2a9c33dbcc2f2e64d50b6da7a7ba300726
[ "MIT" ]
null
null
null
test/tests/style-attribute.js
SeanJM/flatman-parse
2e3d0b2a9c33dbcc2f2e64d50b6da7a7ba300726
[ "MIT" ]
null
null
null
test/tests/style-attribute.js
SeanJM/flatman-parse
2e3d0b2a9c33dbcc2f2e64d50b6da7a7ba300726
[ "MIT" ]
null
null
null
const parse = require("../../src/index.js"); module.exports = { name : "style attribute", this : function () { return parse(` <div style="display: block; float: left; margin-left: -1px"></div> `); }, isDeepEqual : function () { return [{ tagName : "div", attributes : { style : { display : "block", float : "left", marginLeft : "-1px" } }, children : [] }]; } };
19.956522
66
0.474946
d73a3b28e78017b5ea9959e379645dd4a40c6b91
82
js
JavaScript
webpack-babel/src/main.js
FelipeJunOhira/es-2015-pocs
f8967e122660ed28643ed548be056d84ae431724
[ "ISC" ]
null
null
null
webpack-babel/src/main.js
FelipeJunOhira/es-2015-pocs
f8967e122660ed28643ed548be056d84ae431724
[ "ISC" ]
null
null
null
webpack-babel/src/main.js
FelipeJunOhira/es-2015-pocs
f8967e122660ed28643ed548be056d84ae431724
[ "ISC" ]
null
null
null
import Person from './entity/person'; var joe = new Person('Joe'); joe.greet();
13.666667
37
0.658537
d73a553c0ddadf7dd4812336e95a653b744160fa
325
js
JavaScript
server.js
Anmolnoor/my-express-server
99c005c039221a96a7b82032172fcb16b021ffbf
[ "MIT" ]
2
2020-09-13T00:59:21.000Z
2021-05-04T19:15:29.000Z
server.js
Anmolnoor/my-express-server
99c005c039221a96a7b82032172fcb16b021ffbf
[ "MIT" ]
null
null
null
server.js
Anmolnoor/my-express-server
99c005c039221a96a7b82032172fcb16b021ffbf
[ "MIT" ]
null
null
null
const exp = require("express"); const server = exp(); server.get("/",function(req, res){ res.send("My Express Server is online bro"); }); server.get("/about",function(req,res){ res.send("This is my about section.<br><h1>AnmolNoor</h1>") }); server.listen(3000,function(){ console.log("server started at 3000"); });
20.3125
61
0.661538
d73b3bcb2f6a7847fce69e4dfe29c835c0b5b083
2,022
js
JavaScript
src/icons/ZodiacVirgo.js
svgbook/react-icons
4b8c65e614d6993154412f64a631ba4534da80c6
[ "MIT" ]
null
null
null
src/icons/ZodiacVirgo.js
svgbook/react-icons
4b8c65e614d6993154412f64a631ba4534da80c6
[ "MIT" ]
null
null
null
src/icons/ZodiacVirgo.js
svgbook/react-icons
4b8c65e614d6993154412f64a631ba4534da80c6
[ "MIT" ]
null
null
null
import React, { forwardRef, Fragment } from "react"; import IconBase from "../primitives/IconBase"; const renderPath = {}; renderPath["outline"] = (color) => ( <Fragment> <path fill="none" d="M6,6A1.41,1.41,0,0,1,7.41,7.41v6.35" /> <path fill="none" d="M7.41,7.41a1.42,1.42,0,0,1,2.83,0v6.35" /> <path fill="none" d="M10.24,7.41a1.41,1.41,0,0,1,2.82,0v7.06c0,2,2.21,3.53,4.94,3.53" /> <path fill="none" d="M12.35,18c2.73,0,4.94-1.58,4.94-3.53V13.06a2.12,2.12,0,1,0-4.23,0" /> </Fragment> ); renderPath["fill"] = () => ( <Fragment> <path fill="none" d="M6,6A1.41,1.41,0,0,1,7.41,7.41v6.35" /> <path fill="none" d="M7.41,7.41a1.42,1.42,0,0,1,2.83,0v6.35" /> <path fill="none" d="M10.24,7.41a1.41,1.41,0,0,1,2.82,0v7.06c0,2,2.21,3.53,4.94,3.53" /> <path fill="none" d="M12.35,18c2.73,0,4.94-1.58,4.94-3.53V13.06a2.12,2.12,0,1,0-4.23,0" /> </Fragment> ); renderPath["duotone"] = (color) => ( <Fragment> <path fill="none" d="M6,6A1.41,1.41,0,0,1,7.41,7.41v6.35" /> <path fill="none" d="M7.41,7.41a1.42,1.42,0,0,1,2.83,0v6.35" /> <path fill="none" strokeOpacity=".2" d="M12.35,18c2.73,0,4.94-1.58,4.94-3.53V13.06a2.12,2.12,0,1,0-4.23,0" /> <path fill="none" d="M10.24,7.41a1.41,1.41,0,0,1,2.82,0v7.06c0,2,2.21,3.53,4.94,3.53" /> </Fragment> ); renderPath["color"] = (color, secondaryColor) => ( <Fragment> <path fill="none" d="M6,6A1.41,1.41,0,0,1,7.41,7.41v6.35" /> <path fill="none" d="M7.41,7.41a1.42,1.42,0,0,1,2.83,0v6.35" /> <path fill="none" stroke={secondaryColor} d="M12.35,18c2.73,0,4.94-1.58,4.94-3.53V13.06a2.12,2.12,0,1,0-4.23,0" /> <path fill="none" d="M10.24,7.41a1.41,1.41,0,0,1,2.82,0v7.06c0,2,2.21,3.53,4.94,3.53" /> </Fragment> ); const ZodiacVirgo = forwardRef((props, ref) => { return <IconBase ref={ref} {...props} renderPath={renderPath} />; }); export default ZodiacVirgo;
26.96
75
0.552918
d73bb242f12c88961d5b09e5cf09277523000a85
2,424
js
JavaScript
docs/api/searchindex.js
logtalk-actions/demo
209590f80a0d0c331aafaa7493afbd7b7bf6e0de
[ "Apache-2.0" ]
2
2019-10-23T03:53:30.000Z
2019-10-23T06:43:37.000Z
docs/api/searchindex.js
logtalk-actions/demo
209590f80a0d0c331aafaa7493afbd7b7bf6e0de
[ "Apache-2.0" ]
null
null
null
docs/api/searchindex.js
logtalk-actions/demo
209590f80a0d0c331aafaa7493afbd7b7bf6e0de
[ "Apache-2.0" ]
null
null
null
Search.setIndex({docnames:["circle_1","directory_index","ellipse_2","entity_index","index","library_index","predicate_index","rectangle_2","square1_0","square_1"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["circle_1.rst","directory_index.rst","ellipse_2.rst","entity_index.rst","index.rst","library_index.rst","predicate_index.rst","rectangle_2.rst","square1_0.rst","square_1.rst"],objects:{},objnames:{},objtypes:{},terms:{"2021":4,"static":[0,2,7,8,9],The:[1,3,6],alias:[0,9],all:[1,3,6],also:[1,3,6],alwai:[1,3,6],ancestor:[0,8,9],ani:[0,5,8,9],area:[0,4,8,9],call:6,circl:[1,3,4,5],compil:[0,2,7,8,9],content:4,context_switching_cal:[0,2,7,8,9],declar:[0,6,8,9],demo:4,depend:[1,2,3,6,7],directori:4,ellips:[0,1,3,4,5,6],ensur:[1,3,6],entiti:[0,1,4,6,8,9],extend:[0,8,9],file:[1,3,6],flag:[0,2,7,8,9],gener:4,given:6,goal:[1,3,5,6],height:[4,8,9],includ:[1,3,6],index:6,inherit:[0,2,7,8,9],instead:[1,3,6],its:1,jan:4,just:[3,6],librari:[1,3,4,6],library_nam:[1,3,5,6],list:6,load:[1,3,5,6],loader:[1,3,5,6],local:[0,8,9],logtalk_load:[1,3,5,6],none:[0,2,7,8,9],object:[0,2,4,7,8,9],page:4,path:1,predic:4,provid:6,rectangl:[1,3,4,5,6,9],remark:[0,2,7,8,9],requir:[1,3,6],run:5,search:4,see:[0,8,9],side:9,squar:[1,3,4,5,8],square1:[1,3,4,5],startup:4,sun:4,test:5,tester:5,thi:6,use:5,using:[1,3,6],utc:4,want:6,width:[4,8,9],work:4,you:6},titles:["<code class=\"docutils literal notranslate\"><span class=\"pre\">circle(A)</span></code>","Directories","<code class=\"docutils literal notranslate\"><span class=\"pre\">ellipse(A,B)</span></code>","Entities","Documentation index","Libraries","Predicates","<code class=\"docutils literal notranslate\"><span class=\"pre\">rectangle(A,B)</span></code>","<code class=\"docutils literal notranslate\"><span class=\"pre\">square1</span></code>","<code class=\"docutils literal notranslate\"><span class=\"pre\">square(A)</span></code>"],titleterms:{"public":[0,2,7,8,9],area:[2,6,7],circl:0,demo:1,directori:1,document:4,ellips:2,entiti:3,height:[6,7],index:4,indic:4,librari:5,object:3,oper:[0,2,7,8,9],predic:[0,2,6,7,8,9],privat:[0,2,7,8,9],protect:[0,2,7,8,9],rectangl:7,squar:9,square1:8,startup:5,tabl:4,width:[6,7],work:1}})
2,424
2,424
0.682756
d73bd31a45c26f7ed6f2ca8b48d951b6bd783d8e
950
js
JavaScript
build/back/_http/http.js
ghh0000/testTs
f2c7ae7feba460575c0232253fb841252882e3c8
[ "MIT" ]
null
null
null
build/back/_http/http.js
ghh0000/testTs
f2c7ae7feba460575c0232253fb841252882e3c8
[ "MIT" ]
null
null
null
build/back/_http/http.js
ghh0000/testTs
f2c7ae7feba460575c0232253fb841252882e3c8
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Http request methods */ var HttpRequestMethod; (function (HttpRequestMethod) { HttpRequestMethod[HttpRequestMethod["GET"] = 0] = "GET"; HttpRequestMethod[HttpRequestMethod["POST"] = 1] = "POST"; HttpRequestMethod[HttpRequestMethod["PUT"] = 2] = "PUT"; HttpRequestMethod[HttpRequestMethod["DELETE"] = 3] = "DELETE"; HttpRequestMethod[HttpRequestMethod["ALL"] = 4] = "ALL"; })(HttpRequestMethod = exports.HttpRequestMethod || (exports.HttpRequestMethod = {})); ; /** * I use class instead of interface because TypeScript only supports * basic type serialization (Boolean, Number, class, ...) */ /** * Request has the same properties of Request object in Express.js */ class Request { } exports.Request = Request; ; /** * Response has the same properties of Response object in Express.js */ class Response { } exports.Response = Response; ;
28.787879
86
0.704211
d73d304b4c0738ee50a32f8268a607a87de382f1
56,302
js
JavaScript
assets/site/js/pages/dashboard-index.js
ArijitK2015/love_-architect
16b3a7a3956a2b50586fc0c7461342afdbb69179
[ "MIT" ]
null
null
null
assets/site/js/pages/dashboard-index.js
ArijitK2015/love_-architect
16b3a7a3956a2b50586fc0c7461342afdbb69179
[ "MIT" ]
null
null
null
assets/site/js/pages/dashboard-index.js
ArijitK2015/love_-architect
16b3a7a3956a2b50586fc0c7461342afdbb69179
[ "MIT" ]
null
null
null
//Initilize the necessary components on page load $(document).ready(function(){ if (flash_msg != '') { if (flash_msg == 'payment_failed') error_msg = '<span class="error">Payment failed.'+flash_message_cont+' Please try again</span>'; else if (flash_msg == 'payment_success') error_msg = '<span class="success">Payment success.</span>'; else if (flash_msg == 'job_added') error_msg = '<span class="success">Job successfully posted.</span>'; else if (flash_msg == 'error') error_msg = '<span class="error">Error occured. Please try again.</span>'; else if (flash_msg == 'job_add_success') error_msg = ''; if (error_msg != '') { $("#error_msg").html(error_msg); $("#error-section").show(); } if (flash_msg == 'job_added') do_map_zoom_out = 1; } setTimeout(function(){ $("#error-section").hide(); $("#error_msg").html(''); }, 5000); //add a custom validation rule $.validator.addMethod("positivenumber", function (value, element, options){ var bothEmpty = false; var data_value = parseFloat(value); if (data_value >= 0) bothEmpty = true; return bothEmpty; },"Please enter positive value."); //Initilize custom scroll bar $(".custom-scrollbar").mCustomScrollbar({ scrollButtons:{ enable:true } }); $('.infoI').on('click', function(){ var info_content = $(this).attr('info-cont'); if (info_content != '' && info_content != 'undefined') $("#info_content").html(info_content); $('body').toggleClass('info-popup-active'); $(".overlay-popup").show(); }); //Intilize the popup open and close $('.close-btn').on('click', function(){ $('#popup_cont').toggleClass('info-popup-active'); }); }); //This function convert urlencoded strings to normal strings in jquery function string_escape(args) { try{ fixedstring = decodeURIComponent(escape(args)); fixedstring = decodeURIComponent((fixedstring+'').replace(/\+/g, '%20')); } catch(e){ fixedstring=args; } return fixedstring; } // Make the page full screen function launchFullscreen(element) { if(element.requestFullscreen) { element.requestFullscreen(); } else if(element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if(element.webkitRequestFullscreen) { element.webkitRequestFullscreen(); } else if(element.msRequestFullscreen) { element.msRequestFullscreen(); } $("#goFS").html('<i class="fa fa-times-circle-o" aria-hidden="true"></i>'); $("#goFS").attr('onclick', "exitFullscreen(document.documentElement);"); } // Make the page to normal screen function exitFullscreen() { if(document.exitFullscreen) { document.exitFullscreen(); } else if(document.mozCancelFullScreen) { document.mozCancelFullScreen(); } else if(document.webkitExitFullscreen) { document.webkitExitFullscreen(); } $("#goFS").html('<i class="fa fa-arrows-alt" aria-hidden="true"></i>'); $("#goFS").attr('onclick', "launchFullscreen(document.documentElement);"); } //Function to get current latlng if location services enable function get_current_latlng(args) { show_addr_id = args; if (navigator.geolocation){ navigator.geolocation.getCurrentPosition(showPosition); } else{ var error_msg = "Geolocation is not supported by this browser."; if (error_msg != '') { $("#error_msg").html(error_msg); $("#error-section").show(); } } } //Supporting fuction for get current latlng function showPosition(position){ location.latitude = position.coords.latitude; location.longitude = position.coords.longitude; var geocoder = new google.maps.Geocoder(); var latLng = new google.maps.LatLng(location.latitude, location.longitude); if (geocoder) { geocoder.geocode({ 'latLng': latLng}, function (results, status) { if (status == google.maps.GeocoderStatus.OK) { $('#'+show_addr_id).val(results[0].formatted_address); if(typeof(results[0].geometry.location) != "undefined") srch_lat = results[0].geometry.location.lat(); if(typeof(results[0].geometry.location) != "undefined") srch_lon = results[0].geometry.location.lng(); $('#'+show_addr_id+'_lat').val(srch_lat); $('#'+show_addr_id+'_lng').val(srch_lon); if (show_addr_id == 'drop_address') { var pick_search_lat = $('#pickup_address_lat').val(), pick_search_lng = $('#pickup_address_lng').val(); var drop_search_lat = srch_lat, drop_search_lng = srch_lon; p1 = new google.maps.LatLng(pick_search_lat, pick_search_lng), p2 = new google.maps.LatLng(drop_search_lat, drop_search_lng); calcDistance(p1, p2); } } else { var error_msg = "Geolocation is not supported by this browser."; if (error_msg != '') { $("#error_msg").html(error_msg); $("#error-section").show(); } } }); //geocoder.geocode() } } //showPosition function open_popup_image(args, img_link) { var html = '<div data-role="popup" id="imagePopup" data-overlay-theme="b" data-theme="b" data-corners="false">' +'<a href="#imagePopup" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-a ui-icon-delete ui-btn-icon-notext ui-btn-right">Close</a><img src="'+img_link+'" alt="">' +'</div>'; //$(html).appendTo("#"+args); $("#"+args).html(html); $("#"+args).trigger("create"); $("#imagePopup").html(html); setTimeout(function(){ $("#imagePopup").popup({ positionTo: "origin" }).popup("open"); }, 150); } //Function to open the job options popup function open_popup(args){ hide_terms('leg_trms_show'); $("#user_img").show(); $(".popup-form").hide(); $('#loading_content').show(); $(".select-credit").show(); $(".terms-anc").show(); $(".agree-terms").show(); $(".popup-accpt-bottom-btns").show(); $("#current_job_id").val(''); //console.log(job_det_actual); var postData = 'job_id='+job_det_actual.id+'&user_id='+session_user_id; var formURL = main_base_url+'Jobs_controllers/job_details_ajax'; var marker_cont_html = user_cont_html = ''; $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { var response = jQuery.parseJSON(data); if(typeof response =='object') { var is_job_owner = 0; var leg_details = (typeof(response.job_quote_user_details) != "undefined") ? response.job_quote_user_details : {}; //console.log(leg_details); var job_det = (typeof(response.job_details) != "undefined") ? response.job_details : {}; var job_cur_status = (typeof(job_det.job_status) != "undefined") ? parseInt(job_det.job_status) : 0; var user_det = (typeof(response.job_user_details) != "undefined") ? response.job_user_details : {}; var quote_leg_submited = (typeof(response.quote_leg_submited) != "undefined") ? parseInt(response.quote_leg_submited) : 0; var added_class = (quote_leg_submited == 1) ? 'style="display:none"' : ''; //console.log(); is_job_owner = (job_det.user_id == session_user_id) ? 1 : 0; var added_class_deny = (quote_leg_submited == 1 && job_det.job_status != 2) ? '' : 'style="display:none"'; //If this job is approved then no need to show the quote or leg button. //console.log('arijit: '+job_cur_status); if (job_cur_status == 2) added_class = 'style="display:none"'; //console.log('ql: '+quote_leg_submited+' jo: '+is_job_owner); var msg_btn_style = 'style="display:none"'; if (job_cur_status == 2) { if (quote_leg_submited == 1 || is_job_owner == 1) msg_btn_style = ''; } else msg_btn_style = ''; var activity_btn = ''; if (job_cur_status == 2 && quote_leg_submited == 1) activity_btn = '<button type="button" id="accept-activity-btn" onclick="open_activity_sec(\'activity-button\', \'activity_section\')" class="submit-leg" data-role="none">View Activity</button>'; var user_id = (typeof(user_det.id) != "undefined") ? user_det.id : ''; var user_name = (typeof(user_det.name) != "undefined") ? user_det.name : ''; var user_image = (typeof(user_det.user_image) != "undefined") ? user_det.user_image : ''; user_image = (user_image != '') ? main_base_url+'thumb.php?height=70&width=70&type=aspectratio&img='+user_image : main_base_url+'assets/site/images/user-image.png'; //console.log('arijit: '+user_image); if (user_name != '') { $("#job-user-name").html(user_name); } if (user_image != '') { $("#job-user-image").attr('src', user_image); } var img_sec_link = (job_det.image != '') ? '<a href="javascript:void(0)" onclick="open_popup_image(\'myPopup\', \''+main_base_url+'assets/uploads/job_images/'+job_det.image+'\')"><img class="popphoto" style="width: 100px" src="'+main_base_url+'assets/uploads/job_images/thumb/'+job_det.image+'" alt=""></a>' : ''; var size_details = size_details_width = size_details_height = size_details_length = ''; if (typeof(job_det.size.width) != "undefined") size_details_width = job_det.size.width; if (typeof(job_det.size.width) != "undefined") size_details_height = job_det.size.height; if (typeof(job_det.size.width) != "undefined") size_details_length = job_det.size.depth; if ( job_det.size_details == 'Enter Dimensions') size_details = '('+size_details_width+' x '+size_details_height+' x '+size_details_length+' mt)'; marker_cont_html = '<div class="terms" id="middle_content">' +'<div class="terms-scroll custom-scrollbar">' +'<div class="terms-content">' +'<p class="big-text">' +'<span class="bix-text">&nbsp;</span>'+img_sec_link+' <br/>' +'<span class="bix-text">Description: </span>'+job_det.description+' <br/>' +'<span>Pickup Address: </span>'+job_det.pick_up_addr+' <br/>' +'<span>Delivery Address: </span>'+job_det.drop_addr+' <br/>' +'<span>Distance: </span>'+job_det.distance+' miles<br/>' +'<span>Deliver By: </span>'+job_det.deliver_method+' ('+job_det.formated_date+') <br/>' +'<span>Cargo Value: </span>'+job_det.cargo_value+' <br/>' +'<span>Size: </span>'+job_det.size_details+' '+size_details+'<br/>' +'<span>Type: </span>'+job_det.type_details+' <br/>' +'<span>Special: </span>'+job_det.special_details+' <br/>' +'<span>Weight: </span>'+job_det.weight+' lbs<br/>' +'<span>Need Guaranteed: </span>'+job_det.is_gurrented+' <br/>' +'<span>Need Insurance: </span>'+job_det.is_insured+' <br/>' +'</p>' +'<div id="myPopup"></div>' +'</div>' +'</div>' +'</div>' +'<div class="popup-btns">' +'<input type="button" onclick="send_pop_msg()" '+msg_btn_style+' value="Send Message" class="submit-leg" data-role="none" />' +'<input type="button" onclick="submit_job_leg()" '+added_class+' value="Submit Leg" class="submit-leg" data-role="none" />' +'<input type="button" onclick="submit_job_quote()" '+added_class+' value="Submit Quote" class="submit-leg" data-role="none" />' +'<input type="button" onclick="discard_job_quote(\''+job_det.id+'\', \''+leg_details.id+'\', \''+session_user_id+'\')" '+added_class_deny+' value="Delete Quote" class="submit-leg" data-role="none" />' +activity_btn +'</div>' $("#main_cont").html(marker_cont_html); $("#now_show").val('main_cont'); $(".popup-form").hide(); $("#main_cont").show(); $("#current_job_id").val(job_det.id); $('#myPopup').trigger('create'); $(".custom-scrollbar").mCustomScrollbar({ scrollButtons:{ enable:true } }); } else if (parseInt(data) == 0) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">We are unable to get the job details. Please try again.</label>'); } else { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } }, error: function(jqXHR, textStatus, errorThrown) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } }); $('#popup_cont').toggleClass('info-popup-active'); } //Function to open the job options popup function close_det_popup(args) { $("#user_img").show(); job_det_actual = ''; $("#now_show").val('main_cont'); $(".popup-form").hide(); $("#main_cont").show(); $('#popup_cont').toggleClass('info-popup-active'); $("#current_job_id").val(''); $(".select-credit").show(); $(".terms-anc").show(); $(".agree-terms").show(); $(".popup-accpt-bottom-btns").show(); } function submit_msg(args) { var job_id = $("#msg_job_id").val(); var user_id = $("#msg_user_id").val(); var message = $("#job_msg_txt").val(); if (message.search(/\S/) != -1) { $("#job_msg_txt-error").hide(); var postData = 'job_id='+job_id+'&user_id='+user_id+'&message='+message; var formURL = main_base_url+'Jobs_controllers/submit_job_mesage'; var marker_cont_html = user_cont_html = ''; $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { var response = jQuery.parseJSON(data); if(typeof response =='object') { var send_message = (typeof(response.message) != "undefined") ? response.message : {}; var msg_id = (typeof(response.insert_id) != "undefined") ? response.insert_id : {}; var msg_time = (typeof(response.post_time) != "undefined") ? response.post_time : {}; var user_image = (typeof(response.user_image) != "undefined") ? response.user_image : ''; var msg_usr_img = (user_image != '') ? main_base_url+'thumb.php?height=45&width=45&type=aspectratio&img='+main_base_url+'assets/uploads/user_images/thumb/'+user_image : main_base_url+'assets/site/images/user-image.png'; msg_cont_class = ''; var msg_html = '<div class="chat-each-content '+msg_cont_class+'">' +'<figure>' +'<img src="'+msg_usr_img+'" alt="chat-img" />' +'</figure>' +'<p>'+string_escape(send_message)+'</p>' +'<span class="chat-time">'+string_escape(msg_time)+'</span>' +'</div>' $("#all_message_div").find('.mCSB_container').append(msg_html); $("#all_message_div").mCustomScrollbar("scrollTo","bottom"); $("#job_msg_txt").val(''); } else if (parseInt(data == 0)) { $('#job_msg_txt-error').html('Failed to send message. Please try again.'); $("#job_msg_txt-error").show(); } else if (parseInt(data == 1)) { $('#job_msg_txt-error').html('Error occured. Please try again.'); $("#job_msg_txt-error").show(); } else if (parseInt(data == 2)) { $('#job_msg_txt-error').html('Message can not be blank. Please try again.'); $("#job_msg_txt-error").show(); } else{ $('#job_msg_txt-error').html('Error occured. Please try again.'); $("#job_msg_txt-error").show(); } } }); } else{ $('#job_msg_txt-error').html('Please enter message.'); $("#job_msg_txt-error").show(); } } //Function to open the job message options popup function send_pop_msg(args, is_ond) { console.log('arijit'); $("#user_img").show(); $(".popup-form").hide(); $('#loading_content').show(); if (is_ond == 1) var postData = 'job_id='+args+'&user_id='+session_user_id; else if (is_ond == 2) var postData = 'job_id='+args+'&user_id='+session_user_id; else var postData = 'job_id='+job_det_actual.id+'&user_id='+session_user_id; //var postData = 'job_id='+job_det_actual.id+'&user_id='+session_user_id; var formURL = main_base_url+'Jobs_controllers/job_messages_details_ajax'; var marker_cont_html = user_cont_html = ''; $.ajax({ url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { var response = jQuery.parseJSON(data); if(typeof response =='object') { var job_det = (typeof(response.job_details) != "undefined") ? response.job_details : {}; var job_id = (typeof(job_det._id) != "undefined") ? job_det._id : ''; var job_cur_status = (typeof(job_det.job_status) != "undefined") ? parseInt(job_det.job_status) : 0; var job_user_det = (typeof(job_det.user_details) != "undefined") ? job_det.user_details : {}; var job_messages = (typeof(response.job_messages) != "undefined") ? response.job_messages : {}; var msg_cont_class = ''; console.log('arijit: '+job_cur_status); var job_user_id = (typeof(job_user_det.id) != "undefined") ? job_user_det.id : ''; var job_user_name = (typeof(job_user_det.name) != "undefined") ? job_user_det.name : ''; var job_user_image = (typeof(job_user_det.user_image) != "undefined") ? job_user_det.user_image : ''; job_user_image = (job_user_image != '') ? main_base_url+'thumb.php?height=70&width=70&type=aspectratio&img='+job_user_image : main_base_url+'assets/site/images/user-image.png'; //console.log('arijit: '+user_image); if (job_user_name != '') { $("#job-user-name").html(job_user_name); } if (job_user_image != '') { $("#job-user-image").attr('src', job_user_image); } marker_cont_html = '<div class="chat-content custom-scrollbar" id="all_message_div">'; if (job_messages.length > 0) { for(i=0; i<job_messages.length; i++) { var msg_cont = job_messages[i]; msg_cont_class = ((i%2) != 0) ? 'chat-content-me' : ''; var message_cont = (typeof(msg_cont.message.message) != "undefined") ? msg_cont.message.message : ''; var msg_usr_img = (typeof(msg_cont.user_details.profile_image) != "undefined") ? main_base_url+'thumb.php?height=45&width=45&type=aspectratio&img='+main_base_url+'assets/uploads/user_images/thumb/'+msg_cont.user_details.profile_image : main_base_url+'assets/site/images/user-image.png'; var msg_time = (typeof(msg_cont.message.formated_time) != "undefined") ? msg_cont.message.formated_time : ''; marker_cont_html = marker_cont_html +'<div class="chat-each-content '+msg_cont_class+'">' +'<figure>' +'<img src="'+msg_usr_img+'" alt="chat-img" />' +'</figure>' +'<p>'+message_cont+'</p>' +'<span class="chat-time">'+msg_time+'</span>' +'</div>' } } marker_cont_html = marker_cont_html +'</div>' +'<div class="chat-input">' +'<form name="send_message" id="send_message" action="" data-ajax="false" method="post">' +'<input type="hidden" name="msg_job_id" id="msg_job_id" value="'+job_id+'" />' +'<input type="hidden" name="msg_user_id" id="msg_user_id" value="'+session_user_id+'" />' +'<textarea name="job_msg_txt" id="job_msg_txt" data-role="none" placeholder="Write a message" class="chat-textbox"></textarea>' +'<label id="job_msg_txt-error" class="error" for="job_msg_txt"></label>' +'<button type="button" onclick="submit_msg(\'send_message\')" data-role="none" class="chat-btn"><img src="'+main_base_url+'assets/site/images/chat-submit-arrow.png" alt="chat-submit-arrow" /></button>' +'</form>' +'</div>' $("#msg_cont").html(marker_cont_html); $("#now_show").val('msg_cont'); $(".popup-form").hide(); $("#msg_cont").show(); $(".custom-scrollbar").mCustomScrollbar({ scrollButtons:{ enable:true } }).mCustomScrollbar("scrollTo","bottom"); } else if (parseInt(data) == 0) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">We are unable to get the all messages of this job. Please try again.</label>'); } else { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } }, error: function(jqXHR, textStatus, errorThrown) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } }); if ($("#popup_cont").hasClass("info-popup-active") == false) $('#popup_cont').toggleClass('info-popup-active'); } //Function to open the job message options popup function submit_job_leg() { $("#user_img").show(); $(".popup-form").hide(); $("#leg_cont").show(); $(".select-credit").show(); $(".terms-anc").show(); $(".agree-terms").show(); $(".popup-accpt-bottom-btns").show(); console.log(job_det_actual); var pickup_addr= job_det_actual.pickup_address.address; var drop_addr = job_det_actual.drop_address.address; var all_legs = (typeof(job_det_actual.legs_arr) != "undefined") ? job_det_actual.legs_arr : []; var destination_html = '<option>Select</option><option value=\'{"address": "'+job_det_actual.pickup_address.address+'", "lat": "'+job_det_actual.pickup_address.lat_str+'", "long" : "'+job_det_actual.pickup_address.long_str+'"}\'>'+pickup_addr+'</option>'; var drop_html = '<option>Select</option>'; if (all_legs.length > 0) { for (var al = 0; al < all_legs.length; al++){ var cur_det = all_legs[al]; if (pickup_addr != cur_det.pick_up.address) { destination_html = destination_html + '<option value=\'{"address": "'+cur_det.pick_up.address+'", "lat": "'+cur_det.pick_up.lat_str+'", "long" : "'+cur_det.pick_up.long_str+'"}\'>'+cur_det.pick_up.address+'</option>'; drop_html = drop_html + '<option value=\'{"address": "'+cur_det.pick_up.address+'", "lat": "'+cur_det.pick_up.lat_str+'", "long" : "'+cur_det.pick_up.long_str+'"}\'>'+cur_det.pick_up.address+'</option>'; } if (pickup_addr != cur_det.drop_point.address) { destination_html = destination_html + '<option value=\'{"address": "'+cur_det.drop_point.address+'", "lat": "'+cur_det.drop_point.lat_str+'", "long" : "'+cur_det.drop_point.long_str+'"}\'>'+cur_det.drop_point.address+'</option>'; drop_html = drop_html + '<option value=\'{"address": "'+cur_det.drop_point.address+'", "lat": "'+cur_det.drop_point.lat_str+'", "long" : "'+cur_det.drop_point.long_str+'"}\'>'+cur_det.drop_point.address+'</option>'; } } } drop_html = drop_html + '<option value=\'{"address": "'+job_det_actual.drop_address.address+'", "lat": "'+job_det_actual.drop_address.lat_str+'", "long" : "'+job_det_actual.drop_address.long_str+'"}\'>'+drop_addr+'</option>'; $('#pick_addr_id').html(destination_html); $('#drop_addr_id').html(drop_html); $("#pick_addr_id").selectmenu("refresh"); $("#drop_addr_id").selectmenu("refresh"); $(".date-picker").datepicker({minDate : 'today'}); $(".dropdownA").datepicker({minDate : 'today'}); } function submit_job_quote() { $("#user_img").show(); $(".popup-form").hide(); $("#quote_cont").show(); $(".select-credit").show(); $(".terms-anc").show(); $(".agree-terms").show(); $(".popup-accpt-bottom-btns").show(); } function open_popup_customer(args, is_ond){ $(".popup-form").hide(); $('#loading_content').show(); $(".popup-accpt-bottom-btns").show(); $(".select-credit").show(); $(".terms-anc").show(); $(".agree-terms").show(); $(".popup-accpt-bottom-btns").show(); $("#donext_btn").show(); $("#accept-button-btn").html('Accept'); $("#accept-button-btn").removeAttr('disabled'); $("#pickup_date").html(''); $("#drop_date").html(''); $("#job_quote_lists").html(''); $("#total_job_price").html('$0.00'); $("#to_be_pay").val('0.00'); $("#extra_job_price").html('$0.00'); $("#current_quote_id").val(''); $("#current_job_id").val(''); console.log('a1: '+args); if (is_ond == 1) var postData = 'job_id='+args+'&user_id='+session_user_id; else if (is_ond == 2) var postData = 'job_id='+args+'&user_id='+session_user_id; else var postData = 'job_id='+job_det_actual.id+'&user_id='+session_user_id; var formURL = base_url+'job_details_quote_leg_ajax'; var marker_cont_html = user_cont_html = ''; console.log('url: '+formURL); $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { var response = jQuery.parseJSON(data); if(typeof response =='object') { var exist_card_valid = (typeof(response.exist_card_valid) != "undefined") ? response.exist_card_valid : '0', platform_fee = (typeof(response.platform_fee) != "undefined") ? response.platform_fee : '0', job_det = (typeof(response.job_details) != "undefined") ? response.job_details : {}, job_quote_leg_det = (typeof(response.job_quote_leg_det) != "undefined") ? response.job_quote_leg_det : {}, is_ondemand = (typeof(job_det.is_ondemand) != "undefined") ? parseInt(job_det.is_ondemand) : '0', user_det = (typeof(response.user_details) != "undefined") ? response.user_details : {}, user_id = (typeof(user_det.id) != "undefined") ? user_det.id : '', user_name = (typeof(user_det.name) != "undefined") ? user_det.name : '', user_image = (typeof(user_det.user_image) != "undefined") ? user_det.user_image : '', job_quotes = job_quote_leg_det.job_quote, job_date_range = job_quote_leg_det.job_date_range, job_prices_extra = (typeof(job_quote_leg_det.job_prices_extra) != "undefined") ? job_quote_leg_det.job_prices_extra : '', job_total_prices = (typeof(job_quote_leg_det.job_total_prices) != "undefined") ? job_quote_leg_det.job_total_prices : ''; var all_job_quotes_html = '', all_job_legs_html = '', all_quote_ids = []; var delivary_type = job_det.deliver_method; var delivary_type_det = ''; console.log('arijit1: '+job_quotes.length); if (job_quotes.length > 0) { $("#total_qoutes").html('Quotes ('+job_quotes.length+')'); $("#total_quote_legs").val(job_quotes.length); for (var i = 0; i < job_quotes.length; i++) { var job_quote_det = job_quotes[i]; var leg_total_price = job_total_prices[i]; var leg_extra_price = job_prices_extra[i]; var leg_date_range = job_date_range[i]; var all_leg_ids = []; var job_quote_det_length = job_quote_det.length; var li_class = (i == 0) ? '' : 'hide'; if (typeof(job_quote_det_length) == "undefined") { var quote_user_details = job_quote_det.user_details; var quote_user_image = (quote_user_details.profile_image != '') ? main_base_url+'thumb.php?height=70&width=70&type=aspectratio&img='+main_base_url+'assets/uploads/user_images/thumb/'+quote_user_details.profile_image : main_base_url+'assets/site/images/user-image.png'; console.log('arijit: '+quote_user_details.user_rating); var quote_user_rating = (typeof(quote_user_details.user_rating) != "undefined") ? generate_raing_images(quote_user_details.user_rating) : ''; all_quote_ids.push(job_quote_det.id); all_job_quotes_html = all_job_quotes_html + '<li id="quote_leg_id_'+i+'" class="job_li '+li_class+'">' +'<input type="hidden" name="leg_total_price_'+i+'" id="leg_total_price_'+i+'" value="'+leg_total_price+'" />' +'<input type="hidden" name="leg_extra_price_'+i+'" id="leg_extra_price_'+i+'" value="'+leg_extra_price+'" />' +'<input type="hidden" name="leg_date_pick_'+i+'" id="leg_date_pick_'+i+'" value="'+leg_date_range.pick_up+'" />' +'<input type="hidden" name="leg_date_frop_'+i+'" id="leg_date_frop_'+i+'" value="'+leg_date_range.drop+'" />' +'<div class="user-list-left">' +'<figure><img src="'+quote_user_image+'" alt="user-list-img" /></figure>' +'<h3><a href="javascript:void(0)">'+quote_user_details.first_name+' '+quote_user_details.last_name+'</a></h3>' +'<div class="user-rating">' +quote_user_rating +'</div>' +'</div>' +'<div class="user-list-right">$'+job_quote_det.job_price+'</div>' +'</li>'; } else { all_job_quotes_html = all_job_quotes_html + '<li id="quote_leg_id_'+i+'" class="job_li '+li_class+'">' +'<input type="hidden" name="leg_total_price_'+i+'" id="leg_total_price_'+i+'" value="'+leg_total_price+'" />' +'<input type="hidden" name="leg_extra_price_'+i+'" id="leg_extra_price_'+i+'" value="'+leg_extra_price+'" />' +'<input type="hidden" name="leg_date_pick_'+i+'" id="leg_date_pick_'+i+'" value="'+leg_date_range.pick_up+'" />' +'<input type="hidden" name="leg_date_frop_'+i+'" id="leg_date_frop_'+i+'" value="'+leg_date_range.drop+'" />' +'<ul>'; for (var i1 = 0; i1 < job_quote_det.length; i1++) { var job_leg_det = job_quote_det[i1]; var leg_user_details = job_leg_det.user_details; var leg_user_image = (leg_user_details.profile_image != '') ? main_base_url+'thumb.php?height=70&width=70&type=aspectratio&img='+main_base_url+'assets/uploads/user_images/thumb/'+leg_user_details.profile_image : main_base_url+'assets/site/images/user-image.png'; console.log('arijit: '+leg_user_details.user_rating); var leg_user_rating = (typeof(leg_user_details.user_rating) != "undefined") ? generate_raing_images(leg_user_details.user_rating) : ''; all_leg_ids.push(job_leg_det.id); all_job_quotes_html = all_job_quotes_html + '<li>' +'<div class="user-list-left">' +'<figure><img src="'+leg_user_image+'" alt="user-list-img" /></figure>' +'<h3><a href="javascript:void(0)">'+leg_user_details.first_name+' '+leg_user_details.last_name+'</a></h3>' +'<div class="user-rating">' +leg_user_rating +'</div>' +'</div>' +'<div class="user-list-right">$'+job_leg_det.job_price+'</div>' +'</li>'; } all_job_quotes_html = all_job_quotes_html + '</ul>'; all_quote_ids.push(all_leg_ids.toString()); } if (li_class == '') { var current_show_li = parseInt($("#current_show_li").val()); var current_total_price = leg_total_price; var current_extra_price = leg_extra_price; var pick_date = (typeof(leg_date_range.pick_up) != "undefined") ? leg_date_range.pick_up : ''; var drop_date = (typeof(leg_date_range.drop) != "undefined") ? leg_date_range.drop : ''; } } $("#donext_btn").html('Next Quote (1/'+job_quotes.length+')'); if (delivary_type == 'flexible') delivary_type_det = 'Flexible'; else if (delivary_type == 'deliver_by') delivary_type_det = 'Deliver By'; else if (delivary_type == 'send_by') delivary_type_det = 'Send By'; else if (delivary_type == 'urgent') delivary_type_det = 'Urgent'; else delivary_type_det = 'Flexible'; if (is_ondemand == 1) delivary_type_det = 'Immediate Pickup'; var pick_date_new = (typeof(job_det.formated_date) != "undefined") ? job_det.formated_date : ''; $("#pickup_date").html(delivary_type_det+': '+pick_date_new); $("#drop_date").hide(); $("#job_quote_lists").html(all_job_quotes_html); $("#total_job_price").html('$'+current_total_price); $("#to_be_pay").val(current_total_price); $("#to_be_refund").val(current_extra_price); $("#extra_job_price").html('$'+current_extra_price); $("#current_quote_id").val(all_quote_ids[current_show_li]); $("#current_job_id").val(job_det.id); $("#user_img").hide(); $(".popup-form").hide(); $("#job_quote_list_cont").show(); $("#now_show").val('job_quote_list_cont'); } else { $("#error_cont").html('<div class="terms"><div class="terms-scroll"><div class="terms-content"><p style="color: #f00 !important; font-size: 15px !important">No quotes or legs has been submitted yet.</p></div></div></div>'); $("#user_img").hide(); $(".popup-form").hide(); $("#error_cont").show(); console.log('arijit'); } //console.log('a: '+job_det.job_status); if (parseInt(job_det.job_status) == 2) { //console.log('arijit'); $(".select-credit").hide(); $(".terms-anc").hide(); $(".agree-terms").hide(); $(".popup-accpt-bottom-btns").hide(); $("#accept-button-btn").hide(); $("#accept-button-btn").html('Accepted'); $("#accept-button-btn").attr('disabled', 'disabled'); if (is_ond == 1) $("#send-sms-btn").attr('onclick', 'send_pop_msg(\''+args+'\', \'2\')'); else if (is_ond == 2) $("#send-sms-btn").attr('onclick', 'send_pop_msg(\''+args+'\', \'2\')'); else $("#send-sms-btn").attr('onclick', 'send_pop_msg(\''+args+'\', \'2\')'); $("#send-sms-btn").show(); $("#accept-activity-btn").show(); } console.log('arijit exist card id: '+exist_card_valid); $("#refundable_dep").html('Platform Fee ('+platform_fee+'%)'); $("#user_has_acard").val(exist_card_valid); if(parseInt(exist_card_valid) == 0) { //$("#card_not_avil_msg").html('Existing card not valid anymore. Please add a new one.'); $("#card_not_avil_msg").html(''); $("#change_pay_card_type").hide(); $("#cardholdername_ex").hide(); $("#cardholdername").removeAttr('readonly'); $("#cardholdername").show(); $("#cardnumber_ex").hide(); $("#cardnumber").removeAttr('readonly'); $("#cardnumber").show(); $("#show_exp_years").hide(); $("#new_exp_years").show(); $("#cvv_ex").hide(); $("#cvv").removeAttr('readonly'); $("#cvv").show(); } else $("#card_not_avil_msg").html(''); if (is_ondemand == 1) { $("#is_ondemand").val('1'); if (job_quotes.length == 0) { $(".popup-form").hide(); $("#error_cont").show(); $("#now_show").val('error_cont'); } $("#payment_type > option").each(function() { console.log(this.text + ' ' + this.value); if (this.value != 'credit_card') $(this).attr('disabled', 'disabled'); }); $(".popup-accpt-bottom-btns").hide(); } } else if (parseInt(data) == 0) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">We are unable to get the job details. Please try again.</label>'); } else { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } console.log('cu: '+card_user_name+' cl: '+card_last_digits+' cy: '+exp_year+' cm: '+exp_month+' cv: '+cvv_code); $("#cardholdername_ex").html(card_user_name); $("#cardnumber_ex").html(card_last_digits); $("#expirymonth_ex").html(exp_month); $("#expyear_ex").html(exp_year); $("#cvv_ex").html(cvv_code); }, error: function(jqXHR, textStatus, errorThrown) { $(".popup-form").hide(); $("#error_cont").show(); $("#error_cont").html('<label class="job-error">Error occured. Please try again.</label>'); } }); $('#popup_cont').toggleClass('info-popup-active'); } function generate_raing_images(rating) { var res = rating.split("."); var full_star = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid" width="21.219" height="19.438" viewBox="0 0 21.219 19.438">' +'<path d="M16.503,19.369 C16.448,19.406 16.385,19.424 16.322,19.424 C16.216,19.424 16.113,19.373 16.050,19.279 C15.950,19.129 15.990,18.926 16.140,18.827 C18.919,16.977 20.577,13.889 20.577,10.565 C20.577,5.091 16.109,0.638 10.617,0.638 C5.125,0.638 0.656,5.091 0.656,10.565 C0.656,13.889 2.315,16.978 5.094,18.827 C5.244,18.926 5.285,19.129 5.184,19.279 C5.084,19.428 4.880,19.469 4.731,19.369 C1.770,17.399 0.002,14.107 0.002,10.565 C0.002,4.732 4.764,-0.014 10.617,-0.014 C16.470,-0.014 21.232,4.732 21.232,10.565 C21.232,14.107 19.464,17.399 16.503,19.369 ZM3.364,8.384 L8.863,8.326 L10.617,3.132 L12.371,8.326 L17.869,8.384 L13.455,11.651 L15.099,16.881 L10.617,13.706 L6.134,16.881 L7.779,11.651 L3.364,8.384 Z" class="cls-1"/>' +'</svg>', half_star = '<img src="'+main_base_url+'assets/site/images/half-star.png" alt="" />'; var rating_first = (typeof(res[0]) != "undefined") ? parseInt(res[0]) : 0; var rating_second = (typeof(res[1]) != "undefined") ? parseInt(res[1]) : 0; var rating_html = ''; for(i = 0; i < rating_first; i++) rating_html = rating_html + full_star; if (rating_second >= 5) rating_html = rating_html + half_star; return rating_html; } function show_next_leg(args) { var existing_leg_id = parseInt($("#current_show_li").val()); var total_legs = parseInt($("#total_quote_legs").val()); current_show_li = existing_leg_id + 1; if (total_legs == current_show_li) current_show_li = 0; $(".job_li").hide(); $("#quote_leg_id_"+current_show_li).show(); var current_total_price = $("#leg_total_price_"+current_show_li).val(); var current_extra_price = $("#leg_extra_price_"+current_show_li).val(); var pick_date = $("#leg_date_pick_"+current_show_li).val(); var drop_date = $("#leg_date_frop_"+current_show_li).val(); $("#donext_btn").html('Next Quote ('+(current_show_li+1)+'/'+job_quotes.length+')'); //$("#pickup_date").html(pick_date); //$("#drop_date").html(drop_date); $("#total_job_price").html('$'+current_total_price); $("#to_be_pay").val(current_total_price); $("#to_be_refund").val(current_extra_price); $("#extra_job_price").html('$'+current_extra_price); $("#current_quote_id").val(all_quote_ids[current_show_li]); $("#current_show_li").val(current_show_li); } function open_activity_sec(args) { var job_id = $('#current_job_id').val(); //$("#job_id").val(job_id); //$("#activity_job").submit(); window.location = base_url+'job-activities/'+job_id; } $(document).ready(function(){ //$('#submit-quote').on('click', function() { $("#quote-form-error").hide(); $("#quote-form-error").html(''); $("#quote_job_form").validate({ rules: { job_price: { required: true, positivenumber: true }, term_agree: { required: true, } }, messages: { job_price: { required: 'Please enter quote price.', positivenumber: "Please enter positive value." }, term_agree: { required: 'Please agree to our terms and conditions.', } }, submitHandler: function(form) { $('#submit-quote').attr('disabled', 'disabled'); $("#quote_loading").show(); //console.log('form submited'); var user_id = session_user_id, job_id = job_det_actual.id, start_location = {address : job_det_actual.pickup_address.address, lat : job_det_actual.pickup_address.lat, long : job_det_actual.pickup_address.long}, end_location = {address : job_det_actual.drop_address.address, lat : job_det_actual.drop_address.lat, long : job_det_actual.drop_address.long}; $("#quote_user_id").val(user_id); $("#quote_job_id").val(job_id); $('#submit-quote').attr('disabled', 'disabled'); var postData = $(form).serializeArray();; var formURL = main_base_url+'Jobs_controllers/submit_quote'; $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { $('#submit-quote').removeAttr('disabled'); if (parseInt(data) == 0){ $('#quote-form-error').html('Failed to submit quote. Please try again.'); $("#quote-form-error").show(); $("#quote_loading").hide(); } else if (parseInt(data) == 1) { close_det_popup(); $("#search_filter").click(); } else if (parseInt(data) == 2){ $('#quote-form-error').html('You have already quoted or put leg for this job.'); $("#quote-form-error").show(); $('#submit-quote').removeAttr('disabled'); $("#quote_loading").hide(); } else if (parseInt(data) == 3){ $('#quote-form-error').html('Failed to submit quote. Please try again.'); $("#quote-form-error").show(); $('#submit-quote').removeAttr('disabled'); $("#quote_loading").hide(); } }, error: function(jqXHR, textStatus, errorThrown) { $('#submit-quote').removeAttr('disabled'); $('#quote-form-error').html('Failed to submit quote. Please try again.'); $("#quote-form-error").show(); $('#submit-quote').removeAttr('disabled'); $("#quote_loading").hide(); } }); } }); $("#leg_job_form").validate({ rules: { leg_pickup_addr: { required: true }, leg_start: { required: true }, leg_drop_addr: { required: true }, leg_end: { required: true }, job_leg_price: { required: true, positivenumber: true }, leg_term_agree:{ required: true } }, messages: { leg_pickup_addr: { required: 'Please enter pickup address.' }, leg_drop_addr: { required: 'Please enter drop address.' }, job_leg_price: { required: 'Please enter price.', positivenumber: "Please enter positive value." }, leg_term_agree: { required: 'Please agree to our terms and conditions.', } }, submitHandler: function(form) { $('#submit-leg').attr('disabled', 'disabled'); $("#leg_loading").show(); //console.log('form submited'); var user_id = session_user_id, job_id = job_det_actual.id, start_location = {address : job_det_actual.pickup_address.address, lat : job_det_actual.pickup_address.lat, long : job_det_actual.pickup_address.long}, end_location = {address : job_det_actual.drop_address.address, lat : job_det_actual.drop_address.lat, long : job_det_actual.drop_address.long}; $("#leg_user_id").val(user_id); $("#leg_job_id").val(job_id); //$("#start_location").val(start_location.toString()); $("#end_location").val(end_location.toString()); var postData = $(form).serializeArray();; var formURL = main_base_url+'Jobs_controllers/submit_leg'; $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { if (parseInt(data) == 0){ $('#leg-form-error').html('Failed to submit leg. Please try again.'); $("#leg-form-error").show(); $('#submit-leg').removeAttr('disabled'); $("#leg_loading").hide(); } else if (parseInt(data) == 1) { close_det_popup(); $("#search_filter").click(); } else if (parseInt(data) == 2){ $('#leg-form-error').html('You have already quote or put leg for this job.'); $("#leg-form-error").show(); $('#submit-leg').removeAttr('disabled'); $("#leg_loading").hide(); } else if (parseInt(data) == 3){ $('#leg-form-error').html('Failed to submit leg. Please try again.'); $("#leg-form-error").show(); $('#submit-leg').removeAttr('disabled'); $("#leg_loading").hide(); } }, error: function(jqXHR, textStatus, errorThrown) { $('#submit-leg').removeAttr('disabled'); $("#leg_loading").hide(); $('#leg-form-error').html('Failed to submit leg. Please try again.'); $("#leg-form-error").show(); } }); return false; } }); $('#payment-form').validate({ rules: { agree: { required: true }, cardholdername: { required: true }, cardnumber: { required: true }, expirymonth: { required: true }, expyear: { required: true }, cvv: { required: true } }, messages: { agree: { required: 'Please accept terms and conditions.' }, cardholdername: { required: 'Please enter card holder\'s name.' }, cardnumber: { required: 'Please enter card number.' }, expirymonth: { required: 'Please enter expiry date.' }, expyear: { required: '' }, cvv: { required: 'Please enter expiry cvv.' } }, submitHandler: function(form) { //console.log('arijit 1'); var choosed_pay_option = $("#payment_type").val(); if (choosed_pay_option == 'credit_card') { $("#payment-card-error").html(''); $('#submit-pay').attr('disabled', 'disabled'); $("#pay_loading").show(); var card_type = '', card_valid = '', expirymonth_val = parseInt($("#expirymonth").val(), 10), expyear_val = parseInt($("#expyear").val(), 10); var user_has_acard = parseInt($("#user_has_acard").val()); var current_stripe_id = $("#current_stripe_id").val(); var current_card_id = $("#user_stripe_card_id").val(); console.log('arijit: '+user_has_acard); if (user_has_acard == 1) { if (current_stripe_id != '' && current_card_id != '') form.submit(); else{ $("#user_has_acard").val('0'); $("#cardholdername").val(''); $("#cardholdername").removeAttr('readonly'); $("#cardnumber").val(''); $("#cardnumber").removeAttr('readonly'); $("#expirymonth").val(''); $("#expirymonth").removeAttr('readonly'); $("#expirymonth").attr('style', ''); $("#expyear").val(''); $("#expyear").removeAttr('readonly'); $("#expyear").attr('style', ''); $("#cvv").val(''); $("#cvv").removeAttr('readonly'); } } else{ $('#cardnumber').validateCreditCard(function(result) { card_type = result.card_type == null ? '' : result.card_type.name; card_valid = result.valid; card_valid = card_valid.toString(); console.log(card_type+' '+card_valid); if (card_valid == 'true') { //console.log('tested'); var year = expyear_val, currentMonth = new Date().getMonth() + 1, currentYear = new Date().getFullYear(); if (expirymonth_val < 0 || expirymonth_val > 12) { $("#expirymonth-error").show(); $("#expirymonth-error").html('Invalid month'); } if (year == '') { $("#expirymonth-error").show(); $("#expirymonth-error").html('Invalid year'); } if ((year > currentYear) || ((year == currentYear) && (expirymonth_val >= currentMonth))) { console.log('validation successfull'); var is_ondemand = parseInt($("#is_ondemand").val()); console.log('arijit: ' + settings_stripe_public_key + ' sss: ' + stripe_public_key); if(is_ondemand == 1) Stripe.setPublishableKey(stripe_public_key); else Stripe.setPublishableKey(settings_stripe_public_key); console.log('arijit 2'); Stripe.card.createToken({ number: $('#cardnumber').val(), cvc: $('#cvv').val(), exp_month: $('#expirymonth').val(), exp_year: $('#expyear').val(), name: $('#cardholdernamel').val(), }, stripeResponseHandler); console.log('arijit 3'); } else { //console.log(year+' '+currentYear+' '+expirymonth_val+' '+currentMonth); $("#expirymonth-error").html('Card has been expired.'); $("#expirymonth-error").show(); //$("#payment-card-error").html(''); $('#submit-pay').removeAttr("disabled"); $("#pay_loading").hide(); } } else{ $("#cardnumber-error").show(); $("#cardnumber-error").html('Invalid card number'); //$("#payment-card-error").html(''); $("#payment-card-error").html(''); $('#submit-pay').removeAttr('disabled'); $("#pay_loading").hide(); } }); } } else{ form.submit(); } return false; // submit from callback } }); //}); }); function hide_terms(args) { if ($('#leg_cont_show').is(":visible") == false) { if ($("#"+args).is(":visible") == true) { $("#"+args).hide(); } $('#leg_cont_show').show(); } } function show_terms(args, args1, type) { if ($("#"+args1).is(":visible") == true) { $("#"+args).show(); $("#"+args1).hide(); } else { $("#"+args).hide(); $("#"+args1).show(); } } function choosed_pickdrop_det(args, div_id) { var addr = []; try{ addr = JSON.parse(args); //console.log(addr); $("#"+div_id+'_div').hide(); $("#"+div_id).val(addr.address); $("#"+div_id+'_lat').val(addr.lat); $("#"+div_id+'_long').val(addr.long); }catch(e){ //alert(e); //error in the above string(in this case,yes)! $("#"+div_id+'_div').show(); $("#"+div_id).val(''); } //var addr = jQuery.parseJSON(args); } function open_pay_sec(accept_id, paybtn_id) { //console.log('arijit 0'); $("#cardholdername").val(''); $("#cardnumber").val(''); $("#expirymonth").val(''); $("#expyear").val(''); $("#cvv").val(''); var choosed_pay_option = $("#payment_type").val(); if (choosed_pay_option == 'credit_card') { $("#"+accept_id).hide(); $("#"+paybtn_id).show(); } else{ //console.log('arijit 1'); if(document.getElementById('agree').checked) { //console.log('arijit 2'); $("#cardholdername").val('test'); $("#cardnumber").val('test'); $("#expirymonth").val('1'); $("#expyear").val('1'); $("#cvv").val('1'); $("#agree-error").html(''); $("#payment-form").submit(); } else { //console.log('arijit 3'); $("#agree-error").show(); $("#agree-error").html('Please accept our terms and conditions.'); } } } function show_hide_pay_sec(cur_val, args) { var extra_p = parseFloat($('#payment_type>option:selected').attr('extra_p')); var extra_t = $('#payment_type>option:selected').attr('extra_t'); var extra_d = $('#payment_type>option:selected').attr('extra_d'); var cur_amount = parseFloat($("#to_be_pay").val()); var new_amount = 0; if (extra_p > 0) { var extra_amount = parseFloat((cur_amount * extra_p) / 100); if (extra_t == '+') new_amount = (cur_amount + extra_amount); else if (extra_t == '-') new_amount = (cur_amount - extra_amount); else new_amount = cur_amount; } else new_amount = cur_amount; new_amount = new_amount.toFixed(2) //console.log('arijit: '+extra_p+' '+extra_t+' '+new_amount.toFixed(2)); $("#total_job_price").html('$'+new_amount); //$("#to_be_pay").val(new_amount); //Clear all data and reasign them $("#deduction_amount").val(''); $("#extra_amount").val(''); $("#extra_days").val(''); $("#deduction_percent").val(''); $("#extra_percent").val(''); if (extra_t == '+') { $("#extra_amount").val(extra_amount); $("#extra_percent").val(extra_p); } if (extra_t == '-') { $("#deduction_amount").val(extra_amount); $("#deduction_percent").val(extra_p); } $("#extra_days").val(extra_d); $("#"+args).hide(); $("#accept-button").show(); if (cur_val == 'payment_section'){ $("#"+args).show(); } } function discard_job_quote(job_id, job_quote_id, user_id) { var postData = 'job_quote_id='+job_id+'&job_quote_id='+job_quote_id+'&user_id='+user_id; var formURL = main_base_url+'Jobs_controllers/discard_job_quote'; $.ajax( { url : formURL, type: "POST", data : postData, success:function(data, textStatus, jqXHR) { close_det_popup(); $("#search_filter").click(); }, error: function(jqXHR, textStatus, errorThrown) { $('#submit-leg').removeAttr('disabled'); $("#leg_loading").hide(); $('#leg-form-error').html('Failed to submit leg. Please try again.'); $("#leg-form-error").show(); } }); } function decline_legs() { //var postData = $(form).serializeArray();; //var formURL = base_url+'Jobs_controllers/submit_leg'; // //$.ajax( //{ // url : formURL, // type: "POST", // data : postData, // success:function(data, textStatus, jqXHR) // { // // }, // error: function(jqXHR, textStatus, errorThrown) // { // $('#submit-leg').removeAttr('disabled'); // $("#leg_loading").hide(); // // $('#leg-form-error').html('Failed to submit leg. Please try again.'); // $("#leg-form-error").show(); // } //}); } function change_pay_card_det(args) { if (args == 1) { $("#cardholdername_ex").show(); $("#cardnumber_ex").show(); $("#cvv_ex").show(); $("#show_exp_years").show(); $("#cardholdername").hide(); $("#cardnumber").hide(); $("#new_exp_years").hide(); $("#cvv").hide(); $("#cardholdername").attr('readonly', 'readonly'); $("#cardnumber").attr('readonly', 'readonly'); $("#cvv").attr('readonly', 'readonly'); //$("#cardholdername").val(card_user_name); $("#cardholdername").attr('readonly', 'readonly'); //$("#cardnumber").val(card_last_digits); $("#cardnumber").attr('readonly', 'readonly'); //$("#expirymonth").val(exp_month); $("#expirymonth").attr('readonly', 'readonly'); //$("#expyear").val(exp_year); $("#expyear").attr('readonly', 'readonly'); //$("#cvv").val(cvv_code); $("#cvv").attr('readonly', 'readonly'); //$("#expirymonth").selectmenu("refresh", true); //$("#expyear").selectmenu("refresh", true); $("#user_has_acard").val(1); } else{ $("#cardholdername_ex").hide(); $("#cardnumber_ex").hide(); $("#cvv_ex").hide(); $("#show_exp_years").hide(); $("#cardholdername").show(); $("#cardnumber").show(); $("#new_exp_years").show(); $("#cvv").show(); $("#cardholdername").removeAttr('readonly'); $("#cardnumber").removeAttr('readonly'); $("#cvv").removeAttr('readonly'); //$("#cardholdername").removeAttr('readonly'); $("#cardholdername").val(''); //$("#cardnumber").removeAttr('readonly'); $("#cardnumber").val(''); //$("#expirymonth").removeAttr('readonly'); $("#expirymonth").removeAttr("style"); //$("#expirymonth").selectmenu( "option", "defaults", true ); $("#expirymonth").selectmenu('refresh'); //$("#expyear").removeAttr('readonly'); $("#expyear").removeAttr('style'); //$("#expyear").selectmenu( "option", "defaults", true ); $("#expyear").selectmenu("refresh"); //$("#cvv").removeAttr('readonly'); $("#cvv").val(''); $("#user_has_acard").val(2); } }
38.431399
740
0.584846
d73ee811f67ae7d3294d85b08bfd7e47f29eaec4
637
js
JavaScript
loader/index.js
smartcar/clutch-assert
66704143c67fbc06917328394a34f835ad97c869
[ "MIT" ]
4
2017-03-09T01:35:53.000Z
2020-12-09T01:04:30.000Z
loader/index.js
smartcar/clutch-assert
66704143c67fbc06917328394a34f835ad97c869
[ "MIT" ]
91
2016-11-30T15:49:31.000Z
2022-01-11T16:54:50.000Z
loader/index.js
smartcar/clutch-assert
66704143c67fbc06917328394a34f835ad97c869
[ "MIT" ]
1
2017-09-06T12:56:28.000Z
2017-09-06T12:56:28.000Z
'use strict'; const fs = require('fs'); const path = require('path'); const helpers = require('./helpers'); const espower = require('espower-loader'); const patterns = require('../lib/patterns'); const parent = helpers.findParent(module.paths); var rc; try { rc = JSON.parse(fs.readFileSync(parent + path.sep + '.clutchrc')); } catch (e) { if (e.code !== 'ENOENT') { throw e; } // no clutchrc found } const dir = helpers.getDirectory(rc); helpers.checkDirectory(dir); const pattern = helpers.createPattern(dir); espower({ pattern, cwd: process.cwd(), espowerOptions: { patterns: patterns.ENHANCED, }, });
18.2
68
0.659341
d740b11a6d49d9f110213db3374a4afada5a9c7a
1,062
js
JavaScript
src/components/getInvolved.js
calvano-millbrae-station/calvano-millbrae-station-update
f93864eaac632e65d80d59f57a13d002f4d57d83
[ "MIT" ]
null
null
null
src/components/getInvolved.js
calvano-millbrae-station/calvano-millbrae-station-update
f93864eaac632e65d80d59f57a13d002f4d57d83
[ "MIT" ]
null
null
null
src/components/getInvolved.js
calvano-millbrae-station/calvano-millbrae-station-update
f93864eaac632e65d80d59f57a13d002f4d57d83
[ "MIT" ]
null
null
null
import React from 'react' import { Container, Row, Col } from 'reactstrap' import Form from './form' import { StaticQuery, graphql } from 'gatsby' import BackgroundImage from 'gatsby-background-image' export default () => ( <StaticQuery query={graphql` query { contentfulAsset(title: { eq: "millbrae2" }) { fluid(quality: 35, maxWidth: 2400) { src sizes srcSet } } } `} render={data => ( <> <Container className="get-involved" id="get-involved"> <Row> <Col> <header> <h1>Get Involved</h1> </header> <main> <article> <Form isContact={false} /> </article> </main> </Col> </Row> </Container> <BackgroundImage Tag="section" className="bg-section" classId="bg3" fluid={data.contentfulAsset.fluid} /> </> )} /> )
23.086957
62
0.458569
d740d67fcebd950082a6648dabfe1931958fdac6
829
js
JavaScript
node_modules/styled-icons/material/WifiLock/WifiLock.esm.js
venhrun-petro/oselya
8f0476105c0d08495661f2b7236b4af89f6e0b72
[ "MIT" ]
null
null
null
node_modules/styled-icons/material/WifiLock/WifiLock.esm.js
venhrun-petro/oselya
8f0476105c0d08495661f2b7236b4af89f6e0b72
[ "MIT" ]
null
null
null
node_modules/styled-icons/material/WifiLock/WifiLock.esm.js
venhrun-petro/oselya
8f0476105c0d08495661f2b7236b4af89f6e0b72
[ "MIT" ]
null
null
null
import * as tslib_1 from "tslib"; import * as React from 'react'; import { StyledIconBase } from '../../StyledIconBase'; export var WifiLock = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", }; return (React.createElement(StyledIconBase, tslib_1.__assign({ iconAttrs: attrs, iconVerticalAlign: "middle", iconViewBox: "0 0 24 24" }, props, { ref: ref }), React.createElement("path", { d: "M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5a2.5 2.5 0 0 0-5 0V16c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1zm-1 0h-3v-1.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V16z", key: "k0" }))); }); WifiLock.displayName = 'WifiLock'; export var WifiLockDimensions = { height: 24, width: 24 };
63.769231
325
0.648975
d74137175de25a156fedd567d0c735d12fed3a37
315
js
JavaScript
src/reducers/index.js
djh329/Jarvis_Mark_6
588fac26c112d8bd01d0854ee2c7467c0c7ec894
[ "MIT" ]
1
2018-09-05T01:34:07.000Z
2018-09-05T01:34:07.000Z
src/reducers/index.js
djh329/Jarvis_Mark_6
588fac26c112d8bd01d0854ee2c7467c0c7ec894
[ "MIT" ]
null
null
null
src/reducers/index.js
djh329/Jarvis_Mark_6
588fac26c112d8bd01d0854ee2c7467c0c7ec894
[ "MIT" ]
null
null
null
import { combineReducers } from 'redux'; import inputReducer from './inputReducer'; import displayReducer from './displayReducer'; import fileReducer from './fileReducer'; const rootReducer = combineReducers({ input: inputReducer, display: displayReducer, file: fileReducer, }); export default rootReducer;
24.230769
46
0.768254
d7413ef70c0024aa888aab959671ac280942892a
2,136
js
JavaScript
src/components/clients/ClientList.js
turkonjavla/react-firebase-clientpanel
b64cb9825faa514b0b4d49781dc84dfec4d2331a
[ "MIT" ]
null
null
null
src/components/clients/ClientList.js
turkonjavla/react-firebase-clientpanel
b64cb9825faa514b0b4d49781dc84dfec4d2331a
[ "MIT" ]
null
null
null
src/components/clients/ClientList.js
turkonjavla/react-firebase-clientpanel
b64cb9825faa514b0b4d49781dc84dfec4d2331a
[ "MIT" ]
null
null
null
import React, { Component } from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { firestoreConnect } from 'react-redux-firebase'; import PropTypes from 'prop-types'; import ClientSummary from './ClientSummary'; import Spinner from '../layout/Spinner'; class ClientList extends Component { state = { totalOwed: null }; static getDerivedStateFromProps(props) { const { clients } = props; if(clients) { const total = clients.reduce((total, client) => { return total + parseFloat(client.balance.toString()) }, 0); return { totalOwed: total } } return null; } render() { const { clients } = this.props; const clientList = clients && clients.map(client => <ClientSummary key={client.id} client={client} />); if(clientList) { return ( <div> <div className="row"> <div className="col-md-6"> <h2> <i className="fas fa-users"> Clients</i> </h2> </div> <div className="col-md-6"> <h5 className="text-right text-secondary"> Total Owed: {' '} <span className="text-primary">${parseFloat(this.state.totalOwed).toFixed(2)}</span> </h5> </div> <div className="col-md-6"></div> </div> <table className="table table-hover"> <thead> <tr> <th>Name</th> <th>Email</th> <th>Balance</th> <th></th> </tr> </thead> { clientList } </table> </div> ) } else { return ( <Spinner /> ) } } } ClientList.propTypes = { firestore: PropTypes.object.isRequired, clinets: PropTypes.array } const mapStateToProps = state => { return { clients: state.firestore.ordered.clients } } const firestoreCollection = firestoreConnect([ { collection: 'clients' } ]); export default compose( connect(mapStateToProps), firestoreCollection )(ClientList)
23.217391
116
0.540262
d741fd6c0bc22ef7ebd38137bc240c0d54f980ef
830
js
JavaScript
src/components/chat/Messages/Messages.js
Neighborhood-Library/FrontEnd
fac585935b928421fb826563dec4fcca05fba9b1
[ "MIT" ]
null
null
null
src/components/chat/Messages/Messages.js
Neighborhood-Library/FrontEnd
fac585935b928421fb826563dec4fcca05fba9b1
[ "MIT" ]
null
null
null
src/components/chat/Messages/Messages.js
Neighborhood-Library/FrontEnd
fac585935b928421fb826563dec4fcca05fba9b1
[ "MIT" ]
null
null
null
import React from 'react'; import ScrollToBottom from 'react-scroll-to-bottom'; import Message from './Message/Message'; import './Messages.css'; class Messages extends React.Component { render() { const user1 = this.props.transaction.borrower_id; // const user2 = this.props.transaction.lender_id; if (this.props.messages.length > 0) { return ( <ScrollToBottom className='messages'> { this.props.messages.map( (message, i) => { return ( <div key={i}> <Message message={message} id={message.sender_id === user1 ? 'user1' : 'user2'} /> </div> ) } )} </ScrollToBottom> ) } else { return <ScrollToBottom className='messages'><p>Send a message...</p></ScrollToBottom> } } }; export default Messages;
23.055556
88
0.59759
d7422ce94f423f83511d1a1142ef53cefe16caf8
1,681
js
JavaScript
src/views/rolo-view.js
toddpress/rolo
a7ac733076c38aa55dec5176a273a82c6aa0cf16
[ "MIT" ]
null
null
null
src/views/rolo-view.js
toddpress/rolo
a7ac733076c38aa55dec5176a273a82c6aa0cf16
[ "MIT" ]
7
2020-11-07T03:06:59.000Z
2020-11-15T06:11:37.000Z
src/views/rolo-view.js
toddpress/rolo
a7ac733076c38aa55dec5176a273a82c6aa0cf16
[ "MIT" ]
null
null
null
import '@vaadin/vaadin-text-field'; import '@vaadin/vaadin-button'; import '@vaadin/vaadin-checkbox'; import '@vaadin/vaadin-radio-button/vaadin-radio-button'; import '@vaadin/vaadin-radio-button/vaadin-radio-group'; import '../components/rolo-card-list'; import { LitElement, css, customElement, html, property } from 'lit-element'; import { addCard, updateCard } from '../redux/actions.js'; import { connect } from 'pwa-helpers'; import { store } from '../redux/store.js'; @customElement('rolo-view') class RoloView extends connect(store)(LitElement) { @property({ type: Array }) cards = []; @property({ type: String }) filter = ''; @property({ type: String}) title = ''; stateChanged(state) { this.cards = state.cards; this.filter = state.filter; } static get styles() { return css` `; } render() { return html` <div> <div> <vaadin-button theme="primary" @click="${this.addCard}" ?disabled="${!this.title}">Add Card +</vaadin-button> <vaadin-text-field label="Card Title" placeholder="Enter Title" maxLength=15 value="${this.title}" @input="${this.updateTitle}" > </vaadin-text-field> </div> <rolo-card-list .cards=${this.cards} @card-update=${this.updateCard} > </rolo-card-list> </div> `; } updateTitle = (e) => this.title = e.srcElement.value; updateCard = (e) => { const card = e.detail; store.dispatch(updateCard(card)); } addCard = () => { store.dispatch(addCard(this.title)); this.title = ''; }; }
24.014286
77
0.579417
d7423e123621d9b2560304440510b4dafe174f8d
413
js
JavaScript
resources/js/routes/routes.js
ebrahimahmedsami/blog
106aada950b66140cfc76149c41cff067ff391a2
[ "MIT" ]
null
null
null
resources/js/routes/routes.js
ebrahimahmedsami/blog
106aada950b66140cfc76149c41cff067ff391a2
[ "MIT" ]
null
null
null
resources/js/routes/routes.js
ebrahimahmedsami/blog
106aada950b66140cfc76149c41cff067ff391a2
[ "MIT" ]
null
null
null
import Vue from "vue"; import VueRouter from "vue-router"; Vue.use(VueRouter); import Posts from '../components/Posts.vue'; import PostDetails from '../components/PostDetails.vue'; const routes = [ {path:'/',component:Posts,name:'Posts'}, {path:'/post/:id',component:PostDetails,name:'PostDetails'}, ] const router = new VueRouter({ routes,hashbang:false,mode:'history' }) export default router;
21.736842
64
0.707022
d743b4a8b88607c1599b329859f87608b0eb46e1
1,285
js
JavaScript
public/src/js/lib/ircConfigs.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
13
2016-03-16T12:03:54.000Z
2018-07-14T03:42:56.000Z
public/src/js/lib/ircConfigs.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
3
2017-01-08T22:58:34.000Z
2017-04-19T09:19:08.000Z
public/src/js/lib/ircConfigs.js
WhatAboutGaming/pyramid-waggle
645bf7025aebfb2bb7506123113bfc26bb225836
[ "MIT" ]
2
2017-05-22T15:49:46.000Z
2021-02-10T22:15:07.000Z
import store from "../store"; import actions from "../actions"; import { getChannelUri, parseChannelUri } from "./channelNames"; export function calibrateMultiServerChannels(ircConfigs) { let multiServerChannels = []; let namesSeen = []; Object.keys(ircConfigs).forEach((name) => { let c = ircConfigs[name]; if (c && c.channels) { Object.keys(c.channels).forEach((ch) => { if (namesSeen.indexOf(ch) >= 0) { multiServerChannels.push(ch); } namesSeen.push(ch); }); } }); return multiServerChannels; } export function resetMultiServerChannels() { const state = store.getState(); store.dispatch(actions.multiServerChannels.set( calibrateMultiServerChannels(state.ircConfigs) )); } export function getChannelInfo(channel) { let uriData = parseChannelUri(channel); if (uriData) { let { channel: channelName, server } = uriData; return getChannelInfoByNames(server, channelName); } return null; } export function getChannelInfoByNames(serverName, channelName) { let state = store.getState(); let config = state.ircConfigs[serverName]; let channelConfig = config && config.channels[channelName]; if (channelConfig) { let channel = getChannelUri(serverName, channelName); return { channel, ...channelConfig }; } return null; }
23.796296
64
0.714397
d7448310d1c403a02a27f858f25b6a8f2bcb3351
807
js
JavaScript
src/routes.js
leonormes/gawk-firebase
080f667af34792a7b8201cdc01835ce63bb722a0
[ "MIT" ]
1
2020-11-15T20:04:54.000Z
2020-11-15T20:04:54.000Z
src/routes.js
leonormes/gawk-firebase
080f667af34792a7b8201cdc01835ce63bb722a0
[ "MIT" ]
null
null
null
src/routes.js
leonormes/gawk-firebase
080f667af34792a7b8201cdc01835ce63bb722a0
[ "MIT" ]
null
null
null
const express = require('express'); const router = express.Router(); const fs = require('fs'); const ref = require('./fb-connect'); router.use((req, res, next) => { next(); }); router.use('/public', express.static('public')); router.get('/', (req, res) => { fs.createReadStream(__dirname + '/public/index.html').pipe(res); }); router.get('/app.js', (req, res) => { fs.createReadStream(__dirname + '/public/app.js').pipe(res); }); router.get('/activePupils', (req, res) => { ref.orderByChild('status').equalTo('Active') .once('value', function(snapshot) { res.json(snapshot.val()); }); }); router.get('/allPupils', (req, res) => { ref.once('value') .then((dataSnapshot) => { res.json(dataSnapshot.val()); }); }); module.exports = router;
23.735294
68
0.586121
d7456a7d80ff9eef4df30b3c7c417eae7ce1778b
172
js
JavaScript
handlers/organizations-get/cleanup.js
cityssm/lottery-licence-manager
aea7fbd413be27f6c4e3990d3cc239ff84206e06
[ "MIT" ]
4
2020-01-07T18:30:56.000Z
2021-12-14T20:26:06.000Z
handlers/organizations-get/cleanup.js
cityssm/lottery-licence-manager
aea7fbd413be27f6c4e3990d3cc239ff84206e06
[ "MIT" ]
456
2020-01-08T19:01:05.000Z
2022-03-31T18:04:41.000Z
handlers/organizations-get/cleanup.js
cityssm/lottery-licence-manager
aea7fbd413be27f6c4e3990d3cc239ff84206e06
[ "MIT" ]
null
null
null
export const handler = (_request, response) => { response.render("organization-cleanup", { headTitle: "Organization Cleanup" }); }; export default handler;
24.571429
48
0.668605
d74681b5cf206df13d57a308342bf85eb8187f79
918
js
JavaScript
public/js/script1.js
battleplayer02/peaceful-depth-17583
92f257c46f6d1b25d50478d08aa3cc2be43c4949
[ "MIT" ]
null
null
null
public/js/script1.js
battleplayer02/peaceful-depth-17583
92f257c46f6d1b25d50478d08aa3cc2be43c4949
[ "MIT" ]
null
null
null
public/js/script1.js
battleplayer02/peaceful-depth-17583
92f257c46f6d1b25d50478d08aa3cc2be43c4949
[ "MIT" ]
null
null
null
////////////____Input Focus___////////////////// $('.form-control').focusout(function() { $('.form-group').removeClass('focus'); }); $('.form-control').focus(function() { $(this).closest('.form-group').addClass('focus'); }); /// Input Kepress Filled Focus $('.form-control').keyup(function() { if($(this).val().length > 0){ $(this).closest('.form-group').addClass('filled'); } else{ $(this).closest('.form-group').removeClass('filled'); } }); /// Input Check Filled Focus var $formControl = $('.form-control'); var values = {}; var validate = $formControl.each(function() { if($(this).val().length > 0){ $(this).closest('.form-group').addClass('filled'); } else{ $(this).closest('.form-group').removeClass('filled'); } }); // Button switching $('.close').click(function(){ $(this).closest('.register-form').toggleClass('open'); });
24.157895
61
0.561002
d746ae2dd5786a7f00ae0f57efa4044651530c1a
1,645
js
JavaScript
app/js/directives/stListKeyScroll.js
joemartingit/cuevana
ff6a53ec8f108450576b16b31bb54458083cba6a
[ "MIT" ]
82
2015-01-02T06:54:32.000Z
2021-08-14T02:51:12.000Z
app/js/directives/stListKeyScroll.js
joemartingit/cuevana
ff6a53ec8f108450576b16b31bb54458083cba6a
[ "MIT" ]
52
2015-01-05T14:00:23.000Z
2022-02-18T03:37:21.000Z
app/js/directives/stListKeyScroll.js
joemartingit/cuevana
ff6a53ec8f108450576b16b31bb54458083cba6a
[ "MIT" ]
58
2015-01-02T15:02:01.000Z
2021-08-14T02:51:23.000Z
/* global angular */ angular.module('storm.directives') // Scroll list with navigation elements on focus change .directive('stListKeyScroll', ['$rootScope', '$timeout', function($rootScope, $timeout) { return { restrict: 'A', scope: true, link: function(scope, element, attr) { var scrollItem = attr.scrollChild ? element.children() : element, scrollItems = []; // Watch for Navigation focus change scope.$on('focusUpdateSuccess', function(e, index) { // Run in next digest cycle to wait for attr focus update $timeout(function() { // Update scrolling items scrollItems = element[0].querySelectorAll('[st-navigatable]:not([nav-disabled])'); // Check if a child is focused for (var i = 0, total = scrollItems.length; i<total; i++) { if (scrollItems[i].getAttribute('nav-focus') === 'true') { // Scroll to element if (!isElementInViewport(scrollItems[i])) scrollToElement(scrollItems[i]); } } }); }); function isElementInViewport(el) { var rect = el.getBoundingClientRect(); var elRect = element[0].getBoundingClientRect(); return ( rect.top >= elRect.top && rect.bottom <= elRect.bottom ); } function scrollToElement(el) { var parentTop = element[0].getBoundingClientRect().top, elTop = el.getBoundingClientRect().top; if (elTop > parentTop) { element.scrollTop(element.scrollTop() + (elTop - parentTop - element.height()) + angular.element(el).outerHeight() ); } else { element.scrollTop(element.scrollTop() + (elTop - parentTop) ); } } } }; }]);
27.881356
89
0.630395
d748d1227f2eae534946ca54c582fe1eb0cb0213
750
js
JavaScript
src/router/index.js
WeMediaChain/wallet-core
b980796dc05ade0799af76773245917070302bbf
[ "CC0-1.0" ]
5
2018-01-15T13:57:11.000Z
2018-03-05T06:45:34.000Z
src/router/index.js
WeMediaChain/wallet-core
b980796dc05ade0799af76773245917070302bbf
[ "CC0-1.0" ]
null
null
null
src/router/index.js
WeMediaChain/wallet-core
b980796dc05ade0799af76773245917070302bbf
[ "CC0-1.0" ]
1
2018-01-16T02:31:07.000Z
2018-01-16T02:31:07.000Z
/** * Created by Min on 2017/7/11. */ import Loadable from 'react-loadable'; import Loading from '../components/Loading'; export const routes = [ { path: '/', component: Loadable({ loader: () => import( /* webpackChunkName: "AccountPreview" */ '../pages/AccountPreview'), loading: Loading, }), exact: true, strict: true, key: 1, }, { path: '/account/:address', component: Loadable({ loader: () => import( /* webpackChunkName: "Account" */ '../pages/Account'), loading: Loading, }), exact: true, strict: true, key: 2, }, ];
22.727273
56
0.454667
d749981bbdcdd59c1e3c6e5eff0f8179ea007098
2,947
js
JavaScript
lib/metrics.js
tsikerdekis/ngraph.ergm
067f9db617206e4548982d8df05bc5505efb723d
[ "BSD-3-Clause" ]
null
null
null
lib/metrics.js
tsikerdekis/ngraph.ergm
067f9db617206e4548982d8df05bc5505efb723d
[ "BSD-3-Clause" ]
null
null
null
lib/metrics.js
tsikerdekis/ngraph.ergm
067f9db617206e4548982d8df05bc5505efb723d
[ "BSD-3-Clause" ]
null
null
null
// TODO: upgrade multiply with Strassen multiplication O(V^2) instead of O(V^3) module.exports = {countTriangles,getNumberOfUndirectedEdges}; /** * Counts the number of unique triangles * @param {ngraph.graph} G * @return {Number} numberOfTriangles */ function countTriangles(G) { var A = buildAdjacencyMatrix(G); var nodeCount = A.length; var aux2 = new Array(); var aux3 = new Array(); // Initialising aux matrices with 0 for (var i = 0; i < nodeCount; i++) { aux2[i] = new Array(); aux3[i] = new Array(); for (var j = 0; j < nodeCount; j++) { aux2[i][j] = 0; aux3[i][j] = 0; } } // A^2 product aux2 = multiply(A,A,aux2); // A^3 product aux3 = multiply(A, aux2, aux3); var trace = getTrace(aux3); return trace / 6; } /** * Builds Adjacency Matrix * @param {ngraph.graph} G * @return {Array} A */ function buildAdjacencyMatrix(G) { var nodeCount = G.getNodesCount(); var A = new Array(); var nodes = []; G.forEachNode(function(node){ nodes.push(node.id); }); for (var i = 0; i < nodeCount; i++) { A[i] = new Array(); for (var j = 0; j < nodeCount; j++) { //if (G.getLink(i,j) != null || G.getLink(j,i) != null) { if (G.getLink(nodes[i],nodes[j]) != null || G.getLink(nodes[j],nodes[i]) != null) { A[i][j] = 1; } else { A[i][j] = 0; } } } return A; } /** * Multiply matrices * @param {Array} A * @param {Array} B * @param {Array} C * @return {Array} C */ function multiply(A, B, C) { var lengthA = A.length; var lengthB = B.length; var lengthC = C.length; for (var i = 0; i < lengthA; i++) { for (var j = 0; j < lengthB; j++) { C[i][j] = 0; for (var k = 0; k < lengthC; k++) C[i][j] += A[i][k]*B[k][j]; } } return C; } /** * Sum of diagonal elements for 2D Matrix * @param {Array} A * @return {Number} trace */ function getTrace(A) { var trace = 0; for (var i = 0; i < A.length; i++) trace += A[i][i]; return trace; } /** * Return undirected number of edges. Needed since ngraph does not support undirected mode * @param {ngraph.graph} G * @return {Number} Undirected edges */ function getNumberOfUndirectedEdges(G) { var edge_list = new Array(); var nodes = []; G.forEachNode(function(node){ nodes.push(node.id); }); for (var i = 0; i < G.getNodesCount(); i++) { for (var j = i; j < G.getNodesCount(); j++) { if (i != j) { if (G.getLink(nodes[i],nodes[j]) != null || G.getLink(nodes[j],nodes[i]) != null) { edge_list.push([nodes[i],nodes[j]]); } } } } return edge_list.length; }
23.766129
99
0.504242
d749f94d757eb95a35b7368179e594d908706f1c
566
js
JavaScript
web/libs/js/dash2.tabs.js
tracetechnical/shinobi-but-improved
3e83e771aa8a124a9ec1ba2b9409bc491f51ddd0
[ "ADSL" ]
null
null
null
web/libs/js/dash2.tabs.js
tracetechnical/shinobi-but-improved
3e83e771aa8a124a9ec1ba2b9409bc491f51ddd0
[ "ADSL" ]
null
null
null
web/libs/js/dash2.tabs.js
tracetechnical/shinobi-but-improved
3e83e771aa8a124a9ec1ba2b9409bc491f51ddd0
[ "ADSL" ]
1
2022-02-21T02:12:55.000Z
2022-02-21T02:12:55.000Z
$(document).ready(function(){ $('body') .on('click','[tab-chooser]',function(){ var el = $(this) var parent = el.parents('[tab-chooser-parent]') var tabName = el.attr('[tab-chooser]') var allTabChoosersInParent = parent.find('[tab-chooser]') var allTabsInParent = parent.find('[tab-section]') allTabsInParent.hide() allTabChoosersInParent.removeClass('active') el.addClass('active') parent.find(`[tab-section="${tabName}"]`).show() }) })
37.733333
69
0.542403
d74b207e999c399ec1f52fb9ac7df56851cf18de
339
js
JavaScript
aula-23/assets/js/botoes.js
LeslieLima/CursoWebFullStack
079553c701c2b61072962eeafe5f159bb2cd3dab
[ "MIT" ]
null
null
null
aula-23/assets/js/botoes.js
LeslieLima/CursoWebFullStack
079553c701c2b61072962eeafe5f159bb2cd3dab
[ "MIT" ]
null
null
null
aula-23/assets/js/botoes.js
LeslieLima/CursoWebFullStack
079553c701c2b61072962eeafe5f159bb2cd3dab
[ "MIT" ]
null
null
null
$(document).ready(function() { $('#esconder').click(function() { $('p').hide(1000); }); $('#mostrar').click(function() { $('p').show(1000); }); $('#toggle').click(function() { $('p').toggle(1000); }); $('#in').click(function() { $('p').fadeIn(1000); }); $('#out').click(function() { $('p').fadeOut(1000); }); });
14.125
34
0.483776
d74b9778ccf2953ddab90b0bc7dc463e8d721518
1,184
js
JavaScript
app/server.js
andrewvora/time-tiles
2c911b75cebecf83acc9988a4b4ddd30def834a0
[ "MIT" ]
null
null
null
app/server.js
andrewvora/time-tiles
2c911b75cebecf83acc9988a4b4ddd30def834a0
[ "MIT" ]
null
null
null
app/server.js
andrewvora/time-tiles
2c911b75cebecf83acc9988a4b4ddd30def834a0
[ "MIT" ]
null
null
null
'use strict' const express = require('express') const session = require('express-session') const helmet = require('helmet') const morgan = require('morgan') const logging = require('./logging') const security = require('./security')() const registration = require('./registration')() const cookieParser = require('cookie-parser') const bodyParser = require('body-parser') const app = express() const port = process.env.PORT || 4040 const SESSION_SECRET = process.env.TT_SESSION_SECRET // config =============================== app.use(helmet()) app.use(cookieParser()) app.use(morgan('common')) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: true })) app.set('view engine', 'ejs') app.use(session({ secret: SESSION_SECRET, resave: true, saveUninitialized: false })) // routes =============================== require('./routes.js')(app, registration, security, logging) // launch =============================== app.listen(port, (err) => { if (err) { logging.error('Encountered error on startup:', err) } logging.info('Server running on port', port) }) module.exports = app
25.191489
61
0.613176
d74d59cbce52d5062f8b15276dc923b34d56dea8
7,328
js
JavaScript
src/app/App.js
fossabot/dashboard-8
06da573b0ac9cd3344839399591df3227b8bfb0b
[ "Apache-2.0" ]
null
null
null
src/app/App.js
fossabot/dashboard-8
06da573b0ac9cd3344839399591df3227b8bfb0b
[ "Apache-2.0" ]
null
null
null
src/app/App.js
fossabot/dashboard-8
06da573b0ac9cd3344839399591df3227b8bfb0b
[ "Apache-2.0" ]
null
null
null
import React, { Component } from 'react'; import './App.css'; import { Route, withRouter, Switch, Redirect } from 'react-router-dom'; import CRDList from '../CRD/CRDList'; import AppHeader from '../common/AppHeader'; import SideBar from '../common/SideBar'; import AppFooter from '../common/AppFooter'; import { Layout, notification, message } from 'antd'; import Home from '../home/Home'; import CustomView from '../views/CustomView' import ApiManager from '../services/ApiManager'; import CRD from '../CRD/CRD'; import Authenticator from '../services/Authenticator'; import ErrorRedirect from '../error-handles/ErrorRedirect'; import Login from '../login/Login'; import { APP_NAME } from '../constants'; import Cookies from 'js-cookie'; import ConfigView from '../views/ConfigView'; function CallBackHandler(props) { props.func(); return <div/> } class App extends Component { constructor(props) { super(props); this.state = { logged: false, api: null, user: {} } /** Manage the login via token */ this.manageToken = this.manageToken.bind(this); /** Manage the logout via token */ this.tokenLogout = this.tokenLogout.bind(this); /** set global configuration for notifications and alert*/ this.setGlobalConfig(); this.authManager = new Authenticator(); if (this.authManager.OIDC) { /** all is needed to manage an OIDC session */ this.manageOIDCSession(); } } render() { /** Always present routes */ let routes = [ <Route key={'login'} exact path="/login" render={() => this.authManager.OIDC ? ( <CallBackHandler func={this.authManager.login} /> ) : <Login func={this.manageToken} logged={this.state.logged} />} />, <Route key={'callback'} path="/callback" render={() => this.state.logged ? ( <Redirect to="/" /> ) : ( <CallBackHandler func={this.authManager.completeLogin} />)} />, <Route key={'logout'} path="/logout"> <Redirect to="/login" /> </Route>, <Route key={'error'} path="/error/:statusCode" component={(props) => <ErrorRedirect {...props} authManager={this.authManager} tokenLogout={this.tokenLogout} />} /> ] /** Routes present only if logged in and apiManager created */ if(this.state.api && this.state.logged){ routes.push( <Route key={'/'} exact path="/" render={(props) => <Home {...props} api={this.state.api} user={this.state.user}/> }/>, <Route key={'customresources'} exact path="/customresources" component={(props) => <CRDList {...props} api={this.state.api} /> }/>, <Route key={'crd'} exact path="/customresources/:crdName" component={(props) => <CRD {...props} api={this.state.api} /> }/>, <Route key={'customview'} exact path="/customview/:viewName/" component={(props) => <CustomView {...props} api={this.state.api} /> }/>, <Route key={'liqonfig'} exact path="/settings" component={(props) => <ConfigView {...props} api={this.state.api} /> }/> ) } else { routes.push( <Route key={'*'} path="*"> <Redirect to={'/login'} /> </Route>) } return ( <Layout> {this.state.api && this.state.logged ? ( <SideBar api={this.state.api} /> ) : null} <Layout> {this.state.api && this.state.logged ? ( <AppHeader api={this.state.api} tokenLogout={this.tokenLogout} authManager={this.authManager} logged={this.state.logged} />) : null} <Layout.Content className="app-content"> <Switch> {routes} </Switch> </Layout.Content> <AppFooter /> </Layout> </Layout> ); } /** Remove everything and redirect to the login page */ tokenLogout() { this.state.logged = false; this.state.api = null; this.state.user = {}; Cookies.remove('token'); this.props.history.push('/login'); } setGlobalConfig() { /** global notification config */ notification.config({ placement: 'bottomLeft', bottom: 30, duration: 3, }); /** global message config */ message.config({ top: 10 }); } manageToken(token){ if(this.state.logged) return; let user = { id_token: token }; let api = new ApiManager(user); /** Get the CRDs at the start of the app */ api.getCRDs(). then(() => { api.loadCustomViewsCRs(); this.setState({ logged: true, api: api, user: user }); notification.success({ message: APP_NAME, description: 'Successfully logged in' }); Cookies.set('token', token) this.props.history.push('/'); }). catch(error => { /** If this first api call fails, this means that the token is not valid */ notification.error({ message: APP_NAME, description: 'Login failed: token not valid' }); this.tokenLogout(); }) } manageOIDCSession() { /** Check if previously logged */ const retrievedSessionToken = JSON.parse( sessionStorage.getItem(`oidc.user:${OIDC_PROVIDER_URL}:${OIDC_CLIENT_ID}`) ); if (retrievedSessionToken) { let api = new ApiManager({ id_token: retrievedSessionToken.id_token, token_type: retrievedSessionToken.token_type || 'Bearer'}); this.state = { user: retrievedSessionToken.profile, logged: true, api: api }; /** Get the CRDs at the start of the app */ this.state.api.loadCustomViewsCRs(); this.state.api.getCRDs().catch(error => { console.log(error); if(error.response._fetchResponse.status) this.props.history.push("/error/" + error.response._fetchResponse.status); }); } this.authManager.manager.events.addUserLoaded(user => { let api = new ApiManager(user); this.setState({ logged: true, api: api, user: user.profile }); api.loadCustomViewsCRs(); /** Get the CRDs at the start of the app */ api.getCRDs().catch(error => { console.log(error); if(error.response._fetchResponse.status) this.props.history.push("/error/" + error.response._fetchResponse.status); }); }); /** Refresh token (or logout is silent sign in is not enabled) */ this.authManager.manager.events.addAccessTokenExpiring(() => { this.authManager.manager.signinSilent().then(user => { this.state.api.refreshConfig(user); this.setState({logged: true}); }).catch((error) => { console.log(error); localStorage.clear(); this.props.history.push("/logout"); }); }); } } export default withRouter(App);
29.429719
126
0.550901
d74d96cca2c50358bef37b5a96d9b3e058e8963f
896
js
JavaScript
SlickSpec/bootstrap/nwmatcher.slickspec.js
goodday49582/slick
4779d70ef55b1ec121e817e69efe373ca900e09f
[ "MIT" ]
44
2015-01-10T09:48:01.000Z
2022-02-04T07:41:10.000Z
SlickSpec/bootstrap/nwmatcher.slickspec.js
goodday49582/slick
4779d70ef55b1ec121e817e69efe373ca900e09f
[ "MIT" ]
11
2015-03-11T08:13:11.000Z
2017-03-07T12:42:00.000Z
SlickSpec/bootstrap/nwmatcher.slickspec.js
goodday49582/slick
4779d70ef55b1ec121e817e69efe373ca900e09f
[ "MIT" ]
8
2016-11-08T22:56:59.000Z
2021-03-18T20:32:12.000Z
var setupMethods = function(specs, window){ global.cannotDisableQSA = true; window.SELECT = function(context, selector, append){ return (window.NW || global.NW).Dom.select(selector, context, append); }; window.MATCH = function(context, selector){ return (window.NW || global.NW).Dom.match(context, selector); }; window.isXML = TODO; } var verifySetupMethods = function(specs, window){ describe('Verify Setup',function(){ it('should define SELECT', function(){ expect( typeof window.SELECT ).toEqual('function'); expect( window.SELECT(window.document, '*').length ).not.toEqual(0); }); it('should define MATCH', function(){ expect( typeof window.MATCH ).toEqual('function'); expect( window.MATCH(window.document.documentElement, '*') ).toEqual(true); }); it('should define isXML', function(){ expect( typeof window.isXML ).toEqual('function'); }); }); };
32
78
0.688616
d74da162a1195f9ae20f14dfc02662fa3d9fa7e2
375
js
JavaScript
src/atom-it-cli.js
cakecatz/atom-it
3bd02e226e902e76941a22fd1154585239c88529
[ "MIT" ]
null
null
null
src/atom-it-cli.js
cakecatz/atom-it
3bd02e226e902e76941a22fd1154585239c88529
[ "MIT" ]
null
null
null
src/atom-it-cli.js
cakecatz/atom-it
3bd02e226e902e76941a22fd1154585239c88529
[ "MIT" ]
null
null
null
#!/usr/bin/env node import request from 'request'; import yargs from 'yargs'; import path from 'path'; const PORT = 12345; const argv = yargs.argv; if (argv._.length <= 0) { console.log('Usage: atom-it <directory>'); process.exit(); } const willOpenDir = path.resolve(process.cwd(), argv._[0]); request.post(`http://localhost:${PORT}`).form({ dir: willOpenDir, });
19.736842
59
0.669333
d74e2ab6b96389812621c19f939a17b00e987e40
2,422
js
JavaScript
Scripts/assets/js/application.js
jcoro/wildfire
62c5bb747a84c873ac61c3cb318a4895ca461827
[ "CC0-1.0" ]
null
null
null
Scripts/assets/js/application.js
jcoro/wildfire
62c5bb747a84c873ac61c3cb318a4895ca461827
[ "CC0-1.0" ]
null
null
null
Scripts/assets/js/application.js
jcoro/wildfire
62c5bb747a84c873ac61c3cb318a4895ca461827
[ "CC0-1.0" ]
null
null
null
// // LUSH EFFECTS PREVIWER // ++++++++++++++++++++++++++++++++++++++++++ !function ($) { $(function(){ var $window = $(window) // side bar $('#effect-preview-block').affix({ offset: { top: 50 } }) var $effectList = $('.effect-list'); for(e in effectList) { $effectList.append('<li><a href="#">' + effectList[e] + '</a></li>') } $(document) .on('mouseenter', '.effect-list > li > a', function(e) { e.preventDefault(); var $this = $(this); lushDemoPreview($this.text()) }) .on('mouseleave', '.effect-list > li > a', function() { lushDemoPreview(false) }) }) function lushDemoPreview(effectName) { var markup, $slider, dataIn, dataOut, $previewBlock = $('#effect-preview-block > .lush-slider') if(effectName === false && $previewBlock.length) { $previewBlock.remove(); return } if(effectName == "") return; //if(typeof createEffect != 'undefined') //$('#custom-css').text(createEffect(effectName)) dataIn = ' data-slide-in="at 300 from ' + effectName + ' during 1000"' dataOut = ' data-slide-out="at 500 to ' + effectName + ' during 500"' markup = '<div class="lush-slider no-skin no-shadow">' + '<div class="lush">' + '<div id="demo-effect-block" ' + dataIn + dataOut + '>Demo effect</div>'+ '</div></div>'; $previewBlock = $(markup).appendTo('#effect-preview-block'); $previewBlock.show() $('.lush-slider').lush({ baseWidth: 748, baseHeight: 300, slider: { navigation: false, responsive: false, shadow: false } }) } }(window.jQuery) var effectList = [ 'left', 'right', 'top', 'bottom', 'left-bottom', 'right-bottom', 'right-top', 'left-top', 'fade', 'left-fade', 'right-fade', 'top-fade', 'bottom-fade', 'front', 'back', 'left-top-rotate', 'right-top-rotate', 'left-bottom-rotate', 'right-bottom-rotate', 'front-rotate', 'back-rotate', 'front-rotate2', 'back-rotate2', 'back-left', 'back-right', 'back-bottom', 'back-top', 'front-left', 'back-right', 'front-bottom', 'front-top', 'flip', 'flip-h', 'roll-top', 'roll-bottom', 'roll-left', 'roll-right', 'bounce', 'bounce-left', 'bounce-right', 'bounce-top', 'bounce-bottom', 'rotate', 'left-down-rotate', 'right-down-rotate', 'left-up-rotate', 'right-up-rotate', 'left-speed', 'right-speed', 'hinge' ];
18.630769
82
0.564822
d74e7859de59160f0ad0931080658c6b1885f074
529
js
JavaScript
src/components/chat/LeftSide/Settings.js
omer-genc/messaging-app
1e10688dc40b218c9755a1b827e584c1ded76fef
[ "MIT" ]
1
2022-03-11T12:17:43.000Z
2022-03-11T12:17:43.000Z
src/components/chat/LeftSide/Settings.js
omer-genc/messaging-app
1e10688dc40b218c9755a1b827e584c1ded76fef
[ "MIT" ]
null
null
null
src/components/chat/LeftSide/Settings.js
omer-genc/messaging-app
1e10688dc40b218c9755a1b827e584c1ded76fef
[ "MIT" ]
null
null
null
import React, { useContext } from 'react' import { MainContext } from '../../../context'; import { useHistory } from 'react-router'; function Settings() { const { logOut } = useContext(MainContext) const {push} = useHistory(); return ( <div> <input className="block w-full p-4 hover:bg-opacity-50 bg-secondary cursor-pointer" type="submit" value="LOG OUT" onClick={() => { logOut() push("/login") }} /> </div> ) } export default Settings
27.842105
143
0.563327
d74e8205ce636832fab05c9ac39c8c1761cee1a0
1,017
js
JavaScript
src/server/app.js
LNWPOR/HamsterRushVR-server
d28b0aae00e277cad3052ae1f5a37031cbe66e1f
[ "MIT" ]
null
null
null
src/server/app.js
LNWPOR/HamsterRushVR-server
d28b0aae00e277cad3052ae1f5a37031cbe66e1f
[ "MIT" ]
null
null
null
src/server/app.js
LNWPOR/HamsterRushVR-server
d28b0aae00e277cad3052ae1f5a37031cbe66e1f
[ "MIT" ]
null
null
null
import express from 'express'; import logger from 'morgan'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; import mongoose from 'mongoose'; import path from 'path'; import cors from 'cors'; import compression from 'compression'; import routes from './routes/routes'; import dbConfig from './config/database'; import passport from './config/passport'; //connect database mongoose.connect(dbConfig.url); //app let app = express(); //Cross Origin Request Sharing app.use(cors()); //passport app.use(passport.initialize()); app.use(passport.session()); //define middleware app.use(logger('dev')); //parse application/json app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); //cookie app.use(cookieParser()); //compression app.use(compression({})); //public file app.use(express.static(path.join(__dirname, '../client'))); //routes app.use(routes); export default app;
27.486486
59
0.677483
d7521672cd7f2d791fa119587200b482f282924f
400
js
JavaScript
algorithms/Longest Palindrome/index.js
Chersquwn/leetcode
1e1819936a347cfa464cb7faee00f3753c6d9ba7
[ "MIT" ]
1
2019-04-30T21:14:36.000Z
2019-04-30T21:14:36.000Z
algorithms/Longest Palindrome/index.js
Chersquwn/leetcode
1e1819936a347cfa464cb7faee00f3753c6d9ba7
[ "MIT" ]
null
null
null
algorithms/Longest Palindrome/index.js
Chersquwn/leetcode
1e1819936a347cfa464cb7faee00f3753c6d9ba7
[ "MIT" ]
null
null
null
// problem https://leetcode.com/problems/longest-palindrome/ /** * @param {string} s * @return {number} */ const longestPalindrome = function(s) { const hash = {} let count = 0 for (let i = 0; i < s.length; i++) { if (hash[s[i]] === 1) { hash[s[i]] = 0 count += 2 } else { hash[s[i]] = 1 } } if (count < s.length) { count += 1 } return count };
15.384615
60
0.505
d752da29306e70bfb9b32cc087f4fb79e18ed2c8
4,906
js
JavaScript
www/wp-content/plugins/geoip-detect/js/models/record.test.js
Hugoto69/bluetechnician-inc_website
d13c1bf2836e547692ebecd7ab30a3cfe64579b3
[ "MIT" ]
1
2021-06-16T19:35:50.000Z
2021-06-16T19:35:50.000Z
www/wp-content/plugins/geoip-detect/js/models/record.test.js
Hugoto69/bluetechnician-inc_website
d13c1bf2836e547692ebecd7ab30a3cfe64579b3
[ "MIT" ]
null
null
null
www/wp-content/plugins/geoip-detect/js/models/record.test.js
Hugoto69/bluetechnician-inc_website
d13c1bf2836e547692ebecd7ab30a3cfe64579b3
[ "MIT" ]
null
null
null
import { getTestRecord, getTestRecordError } from "../test-lib/test-records"; import Record, { camelToUnderscore } from "./record"; const emptyRecord = new Record(); const defaultRecord = getTestRecord(); const errorRecord = getTestRecordError(); test('serialize', () => { const testData = {a: '1', c: { names: {de: 'b', en: 'a'} } }; const testRecord = new Record(testData) expect(testRecord.serialize()).toStrictEqual(testData); expect(testRecord.get_with_locales('c')).toBe('a'); expect(emptyRecord.serialize()).toStrictEqual({'is_empty': true}); }); test('get error message', () => { expect(emptyRecord.error()).toBe(''); expect(defaultRecord.error()).toBe(''); expect(errorRecord.error()).not.toBe(''); }) test('get with default', () => { expect(defaultRecord.get('')).toBe(''); expect(defaultRecord.get('', 'default')).toBe('default'); expect(defaultRecord.get('xyz', 'default')).toBe('default'); expect(defaultRecord.get('city.xyz', 'default')).toBe('default'); expect(defaultRecord.get('city', 'default')).toBe('Eschborn'); }); test('is_empty', () => { expect(defaultRecord.get('is_empty', 'default')).toBe(false); expect(emptyRecord.get('is_empty', 'default')).toBe(true); expect(errorRecord.get('is_empty', 'default')).toBe(true); expect(defaultRecord.is_empty()).toBe(false); expect(emptyRecord.is_empty()).toBe(true); expect(errorRecord.is_empty()).toBe(true); }) test('localisation variants', () => { expect(defaultRecord.get_with_locales('country.name', ['de', 'en'])).toBe('Deutschland'); expect(defaultRecord.get_with_locales('country', ['de', 'en'])).toBe('Deutschland'); expect(defaultRecord.get_with_locales('country.names.de', ['de', 'en'])).toBe('Deutschland'); expect(defaultRecord.get_with_locales('country.names.en', ['de', 'en'])).toBe('Germany'); expect(defaultRecord.get_with_locales('most_specific_subdivision', ['de', 'en'])).toBe('Hessen'); const otherRecord = new Record({country: {name: 'Deutschland'}}); expect(otherRecord.get_with_locales('country.name', ['de', 'en'])).toBe('Deutschland'); expect(defaultRecord.get_with_locales('extra', ['de', 'en'])).toBe(''); expect(defaultRecord.get_with_locales('xyz.name', ['de', 'en'])).toBe(''); expect(otherRecord.get_with_locales('city.name', ['de', 'en'])).toBe(''); expect(defaultRecord.get_with_locales('country.name', 'de')).toBe('Deutschland'); expect(defaultRecord.get_with_locales('country.name', [])).toBe('Germany'); expect(defaultRecord.get_with_locales('country.name', null)).toBe('Germany'); expect(defaultRecord.get_with_locales('country.name', undefined)).toBe('Germany'); expect(defaultRecord.get_with_locales('country.name')).toBe('Germany'); expect(defaultRecord.get('country.name')).toBe('Germany'); }); test('localisation', () => { expect(defaultRecord.get_with_locales('country.name', ['de', 'en'])).toBe('Deutschland'); expect(defaultRecord.get_with_locales('country.name', ['en', 'de'])).toBe('Germany'); expect(defaultRecord.get_with_locales('country.name', ['nn', 'mm', 'de', 'en'])).toBe('Deutschland'); }); test('localisation with defaults', () => { expect(defaultRecord.get_with_locales('unknownAttribute', ['en'], 'default')).toBe('default'); expect(defaultRecord.get_with_locales('country.name', ['xs'])).toBe(''); expect(defaultRecord.get_with_locales('country.name', ['xs'], 'default')).toBe('default'); }); test('camelCase', () => { expect(camelToUnderscore('_specific_subdivision')).toBe('_specific_subdivision'); expect(camelToUnderscore('MostSpecificSubdivision')).toBe('most_specific_subdivision'); expect(camelToUnderscore('mostSpecificSubdivision')).toBe('most_specific_subdivision'); expect(camelToUnderscore('mostSpecificSubdivision.isoCode')).toBe('most_specific_subdivision.iso_code'); expect(camelToUnderscore('most_specific_subdivision')).toBe('most_specific_subdivision'); expect(camelToUnderscore('country.iso_code')).toBe('country.iso_code'); expect(camelToUnderscore('country.iso_code.0')).toBe('country.iso_code.0'); expect(camelToUnderscore('Country.IsoCode')).toBe('country.iso_code'); }); test('country iso', () => { expect(defaultRecord.get_country_iso()).toBe('de'); expect(emptyRecord.get_country_iso()).toBe(''); expect(errorRecord.get_country_iso()).toBe(''); }); test('has_property', () => { expect(defaultRecord.has_property('country')).toBe(true); expect(emptyRecord.has_property('country')).toBe(false); expect(defaultRecord.has_property('xyz')).toBe(false); expect(defaultRecord.has_property('is_empty')).toBe(true); expect(emptyRecord.has_property('is_empty')).toBe(true); expect(defaultRecord.has_property('country.name')).toBe(true); expect(emptyRecord.has_property('country')).toBe(false); });
48.574257
108
0.689971
d75319925d8d16df7581d1583f24b5a6ef68baeb
241
js
JavaScript
src/js/scenes/home/HomePage.js
smn-mndl/FrontEnd
ce1f10260f70f8e607f188137e08d750a34aa6ce
[ "Apache-2.0" ]
null
null
null
src/js/scenes/home/HomePage.js
smn-mndl/FrontEnd
ce1f10260f70f8e607f188137e08d750a34aa6ce
[ "Apache-2.0" ]
null
null
null
src/js/scenes/home/HomePage.js
smn-mndl/FrontEnd
ce1f10260f70f8e607f188137e08d750a34aa6ce
[ "Apache-2.0" ]
null
null
null
import React from "react"; import "./HomePage.scss"; const HomePage = () => { return ( <div className="homepage-contents"> <h1>Hi, I'm Suman Mondal</h1> <p>A Web Developer!</p> </div> ); }; export default HomePage;
17.214286
39
0.593361
d7533f63f6965a4af0b82298d386cc0b761522db
949
js
JavaScript
src/webapp/scripts/components/btn/btn.js
jim-chien/glorious-pitsby
3bbe89bde1e72f137e6b2e196118f07bc9bb90f9
[ "MIT" ]
71
2019-01-30T17:13:01.000Z
2022-02-23T08:36:01.000Z
src/webapp/scripts/components/btn/btn.js
jim-chien/glorious-pitsby
3bbe89bde1e72f137e6b2e196118f07bc9bb90f9
[ "MIT" ]
118
2018-12-04T12:06:39.000Z
2021-03-06T16:38:48.000Z
src/webapp/scripts/components/btn/btn.js
rafaelcamargo/pitsby
f8e7b0ab0205ba85a533da5ea0d32ca719c44544
[ "MIT" ]
11
2019-04-03T17:51:46.000Z
2022-02-24T21:26:52.000Z
import '@styles/btn.styl'; import template from './btn.html'; function controller(){ const $ctrl = this; $ctrl.$onInit = () => { setThemeCssClass(buildThemeCssClass($ctrl.theme)); setSizeCssClass(buildSizeCssClass($ctrl.size)); }; $ctrl.onButtonClick = () => { if($ctrl.onClick) $ctrl.onClick(); }; function buildThemeCssClass(theme){ return buildCssClass(theme, ['danger']); } function buildSizeCssClass(size){ return buildCssClass(size, ['small']); } function buildCssClass(cssClassModifier, validModifiers){ return validModifiers.includes(cssClassModifier) ? `p-btn-${cssClassModifier}` : ''; } function setThemeCssClass(cssClass){ $ctrl.themeCssClass = cssClass; } function setSizeCssClass(cssClass){ $ctrl.sizeCssClass = cssClass; } } export default { transclude: true, bindings: { theme: '@', size: '@', onClick: '=' }, controller, template };
19.770833
88
0.656481
d7551a9f31ebb8ccc27e65f77893e0ca90c863da
1,793
js
JavaScript
Public/groover/html_webpack/src/js/vendor.js
FenixAlliance/ABS.Portal.Themes.Liskov
ee6f8ea1dfc9456ae604c448c7f6b856e3d0a691
[ "MIT" ]
23
2021-01-04T13:26:59.000Z
2021-08-01T09:26:36.000Z
html_webpack/src/js/vendor.js
DorseyCn/groover-free-premium-ecommerce-template
538966438d9acdc013823dbc33c85c8e550d9b45
[ "MIT" ]
1
2020-05-03T02:33:12.000Z
2021-04-11T15:26:02.000Z
html_webpack/src/js/vendor.js
DorseyCn/groover-free-premium-ecommerce-template
538966438d9acdc013823dbc33c85c8e550d9b45
[ "MIT" ]
16
2019-09-20T11:42:23.000Z
2021-08-01T09:27:41.000Z
import '../scss/vendor.scss'; /** * This file contains every dependency related to project. In this file We'll * load all dependencies through ES6 `import` and `require` method from * CommonJS, which is the current module system used by NodeJS to allow us * to load modules dynamically. * Keep in mind that there is no JavaScript engine yet that natively supports * ES6 modules syntax `import` and `export`. Babel converts import and export * declaration to CommonJS (require/module.exports) by default anyway. So even * if you use ES6 module syntax, you will be using CommonJS under the hood if * you run the code in NodeJS or JavaScript. */ // Popper.js from `node_modules` import Popper from 'popper.js/dist/umd/popper.js'; try { // `Modernizer` will load and initialize itself. require('./vendor/modernizr-custom'); // NProgress from `node_modules` window.NProgress = require('nprogress/nprogress'); // jquery.js from `node_modules` window.$ = window.jQuery = require('jquery'); // Popper.js from `node_modules` window.Popper = Popper; // Bootstrap.js from `node_modules` require('bootstrap'); // Scroll-up.js require('./jquery.scrollUp'); // Elevate-zoom.js require('./jquery.elevatezoom'); // jquery-ui-range-slider.js require('./jquery-ui.range-slider'); // jquery-slimScroll.js from `node_modules` require('jquery-slimscroll/jquery.slimscroll'); // jquery-custom-resizeSelect.js require('./jquery.resize-select'); // jquery-custom-mega-menu.js require('./jquery.custom-megamenu'); // Owl-carousel.js from `node_modules` require('owl.carousel/dist/owl.carousel'); // jquery-custom-countdown.js require('./jquery.custom-countdown'); } catch (e) { console.log(e); }
38.148936
78
0.695482
d755b5e489c48bd4f83874ae799027e3e33c8e99
1,850
js
JavaScript
pages/animationCarla/js/states/StateTakeInBubble.js
AphexHenry/aphexhenry.github.io
470c9b2ed34b489f759961319714b8701aada5dc
[ "Artistic-2.0" ]
null
null
null
pages/animationCarla/js/states/StateTakeInBubble.js
AphexHenry/aphexhenry.github.io
470c9b2ed34b489f759961319714b8701aada5dc
[ "Artistic-2.0" ]
null
null
null
pages/animationCarla/js/states/StateTakeInBubble.js
AphexHenry/aphexhenry.github.io
470c9b2ed34b489f759961319714b8701aada5dc
[ "Artistic-2.0" ]
null
null
null
function StateTakeInBubble(aArrayObjectsCount) { this.imageFront = new Image(); this.imageBack = new Image(); this.imageHand = new Image(); this.imageFront.src = "./textures/bubble1Front.png"; this.imageBack.src = "./textures/bubble1Back.png"; this.imageHand.src = "./textures/hand.png"; 0 this.objects = []; for(var i = 0; i < aArrayObjectsCount.length; i++) { var lImage = sTextureManager.getRandomObject(); for (var count = 0; count < aArrayObjectsCount[i]; count++) { var lAnim = new AnimationMoveAround(new ObjectWorm(lImage)); lAnim.setSize(0.3);//1 / Math.sqrt(count)); lAnim.speedMoveCoeff = 0.5; this.objects.push(lAnim); } } this.timer = 15; this.handPos = 0; }; StateTakeInBubble.prototype.update = function(delta) { this.timer -= delta; for(var i = 0; i < this.objects.length; i++) { this.objects[i].update(delta); } if(this.timer < 10) { this.handPos += delta * 0.5; } }; StateTakeInBubble.prototype.draw = function(canvas) { var ctx = canvas.getContext("2d"); var lSize = canvas.width * 1.1; sTextureManager.drawImage(ctx, this.imageBack, 0, 0, lSize, lSize, true); for(var i = 0; i < this.objects.length; i++) { this.objects[i].draw(canvas); } sTextureManager.drawImage(ctx, this.imageFront, 0, 0, lSize, lSize, true); var lHandSize = canvas.width * (1 + 0.1 * Math.cos(this.handPos * 3)) * 0.70; var lHandPosCoeff = Math.min(this.handPos, 1); var lHandX = lHandPosCoeff * canvas.width * 0.8 - lHandSize; var lHandY = canvas.height - lHandPosCoeff * canvas.height * 0.7; ctx.drawImage(this.imageHand, lHandX, lHandY, lHandSize, lHandSize); }; StateTakeInBubble.prototype.isDone = function() { return this.timer <= 0; };
33.636364
81
0.627027
d756ef09cc6c9746c7af6b68e7bbad299784637b
1,217
js
JavaScript
lib/notes.js
michaelheinhold/note-taker
83dd20790127c5dd78d54c99a0fc565ef8cc3527
[ "MIT" ]
null
null
null
lib/notes.js
michaelheinhold/note-taker
83dd20790127c5dd78d54c99a0fc565ef8cc3527
[ "MIT" ]
null
null
null
lib/notes.js
michaelheinhold/note-taker
83dd20790127c5dd78d54c99a0fc565ef8cc3527
[ "MIT" ]
null
null
null
const fs = require('fs'); const path = require('path'); function createNote(body, savedNotes) { let note = body; //checks to see if the id is equal to the index, and changes it //to be equal to the index if not. //this prevents any duplicate id's for(i=0; i < savedNotes.length; i++){ if(savedNotes[i].id !== i){ savedNotes[i].id = i; } } savedNotes.push(note); fs.writeFileSync( path.join(__dirname, '../db/db.json'), JSON.stringify({savedNotes},null,2) ) return savedNotes; } function deleteNote(body, savedNotes) { const id = body.id; //finds the index of the item with and id equal to the delete button clicked //even though id's SHOULD be equal to index already, they wont be if //user is deleting multiple items at once, this solves that issue const removeIndex = savedNotes.findIndex(item => item.id == id); savedNotes.splice(removeIndex, 1); //re-writes the file with the deleted note taken out fs.writeFileSync( path.join(__dirname, '../db/db.json'), JSON.stringify({savedNotes},null,2) ) return savedNotes; } module.exports = { createNote, deleteNote }
28.302326
80
0.63599
d7574d2a9254dd4dc97e0800522082d356a7984e
5,061
js
JavaScript
src/client.js
jmredfern/instant-replay-button-clicker
56187de81cf5dfd845ad92ecd74ba3c89c6eadb0
[ "MIT" ]
null
null
null
src/client.js
jmredfern/instant-replay-button-clicker
56187de81cf5dfd845ad92ecd74ba3c89c6eadb0
[ "MIT" ]
1
2021-05-10T20:11:19.000Z
2021-05-10T20:11:19.000Z
src/client.js
jmredfern/instant-replay-button-clicker
56187de81cf5dfd845ad92ecd74ba3c89c6eadb0
[ "MIT" ]
null
null
null
"use strict"; import WebSocket from "ws"; import axios from 'axios'; import dateFns from "date-fns"; import logger from "./logger.js"; import { exec } from "child_process"; const log = logger.getLoggerByUrl({ url: import.meta.url }); const { parse, differenceInMilliseconds, differenceInSeconds, addMinutes, addDays, isWithinInterval, isBefore, subDays } = dateFns; let antiIdleUrl; let antiIdleCallCount; let connectedDate; let isConnected; let keyToPress; let sleepLengthMins; let sleepTime; let websocketUrl; const DEFAULT_SLEEP_LENGTH_MINUTES = 7 * 60; const KEEP_ALIVE_LENGTH_SECONDS = 50; const ANTI_IDLE_LENGTH_SECONDS = 20 * 60; const ERROR_RETRY_TIMEOUT = 5000; const client = {}; const getSleepSchedule = ({ sleepLengthMins = DEFAULT_SLEEP_LENGTH_MINUTES, sleepTime }) => { const now = new Date(); const sleepDate2 = parse(sleepTime, "HH:mm", new Date()); const wakeDate2 = addMinutes(sleepDate2, sleepLengthMins); const sleepDate1 = subDays(sleepDate2, 1); const wakeDate1 = subDays(wakeDate2, 1); const sleepDate3 = addDays(sleepDate2, 1); if (isWithinInterval(now, { start: sleepDate1, end: wakeDate1 })) { const msUntilWake = differenceInMilliseconds(wakeDate1, now); return { shouldBeSleeping: true, msUntilWake }; } else if (isBefore(now, sleepDate2)) { const msUntilSleep = differenceInMilliseconds(sleepDate2, now); return { shouldBeSleeping: false, msUntilSleep }; } else if (isWithinInterval(now, { start: sleepDate2, end: wakeDate2 })) { const msUntilWake = differenceInMilliseconds(wakeDate2, now); return { shouldBeSleeping: true, msUntilWake }; } else { const msUntilSleep = differenceInMilliseconds(sleepDate3, now); return { shouldBeSleeping: false, msUntilSleep }; } } const sendKeepAlive = ({ websocket }) => { log.debug('Sending keep-alive'); websocket.send("ping"); }; const processAntiIdle = async () => { const now = new Date(); const secondsSinceConnect = differenceInSeconds(now, connectedDate); const antiIdlePeriod = Math.floor(secondsSinceConnect / ANTI_IDLE_LENGTH_SECONDS); if (antiIdlePeriod > antiIdleCallCount) { antiIdleCallCount++; try { await axios.post(antiIdleUrl); log.debug('Anti-idle call successful.'); } catch (error) { log.error('Error while making anti-idle call.'); } } }; const processKeepAliveAndAntiIdle = ({ websocket }) => { setTimeout(() => { if (!isConnected) { return; } if (sleepTime === undefined) { sendKeepAlive({ websocket }); processAntiIdle(); processKeepAliveAndAntiIdle({ websocket }); return; } const { shouldBeSleeping } = getSleepSchedule({ sleepLengthMins, sleepTime }); if (shouldBeSleeping) { websocket.close(); } else { sendKeepAlive({ websocket }); processAntiIdle(); processKeepAliveAndAntiIdle({ websocket }); } }, KEEP_ALIVE_LENGTH_SECONDS * 1000); } const pressKey = ({ keyToPress }) => { exec(`osascript -e 'tell application "System Events"' -e 'keystroke "${keyToPress}"' -e 'end tell'`); } const connect = () => { log.info(`Connecting to ${websocketUrl}`); const websocket = new WebSocket(websocketUrl); let connectionErrored = false; websocket.on("open", () => { log.info("Client connected"); isConnected = true; connectedDate = new Date(); antiIdleCallCount = 0; connectionErrored = false; processKeepAliveAndAntiIdle({ websocket }); }); websocket.on("message", (data) => { log.info(`Client received: ${data}`); if (keyToPress !== undefined && data === "click") { log.info(`Pressing key: ${keyToPress}`); pressKey({ keyToPress }); } }); websocket.on("close", () => { log.info("Client disconnected"); isConnected = false; setTimeout(() => { scheduleConnect(); }, connectionErrored ? ERROR_RETRY_TIMEOUT : 0); }); websocket.on("error", () => { connectionErrored = true; log.error(`Connection error, retrying in ${ERROR_RETRY_TIMEOUT / 1000} seconds`); }); } const scheduleConnect = () => { if (sleepTime === undefined) { connect(); return; } const { shouldBeSleeping, msUntilWake } = getSleepSchedule({ sleepLengthMins, sleepTime }); if (shouldBeSleeping) { log.info(`Sleeping for another ${msUntilWake/1000} seconds`); setTimeout(() => { log.info('Waking up'); connect(); }, msUntilWake); } else { connect(); } } client.start = ({ antiIdleUrl: _antiIdleUrl, keyToPress: _keyToPress, sleepLengthMins: _sleepLengthMins, sleepTime: _sleepTime, websocketUrl: _websocketUrl }) => { isConnected = false; antiIdleUrl = _antiIdleUrl; keyToPress = _keyToPress; sleepLengthMins = _sleepLengthMins; sleepTime = _sleepTime; websocketUrl = _websocketUrl; log.info(`Starting client (antiIdleUrl: ${antiIdleUrl}, keyToPress: ${keyToPress}, ` + `sleepLengthMins: ${sleepLengthMins}, sleepTime: ${sleepTime}, websocketUrl: ${websocketUrl})`); scheduleConnect() }; export default client;
30.305389
120
0.678522
d757cb4c214b9fcb0cc2eabf927fffc392365ec6
12,824
js
JavaScript
admin/web/js/warehouse/shipmentController.js
unitdeveloper/me2
f9ee2ccb011e071555635abf30da00415a2e4c9c
[ "BSD-3-Clause" ]
null
null
null
admin/web/js/warehouse/shipmentController.js
unitdeveloper/me2
f9ee2ccb011e071555635abf30da00415a2e4c9c
[ "BSD-3-Clause" ]
null
null
null
admin/web/js/warehouse/shipmentController.js
unitdeveloper/me2
f9ee2ccb011e071555635abf30da00415a2e4c9c
[ "BSD-3-Clause" ]
1
2021-09-22T21:31:34.000Z
2021-09-22T21:31:34.000Z
// 08/03/2019 app.controller('shipmentCtrl',function($scope,$http, $interval, $sce){ $scope.openModal = function($event,sce){ $('.loading').show(); $('.btn-confirm').attr('class','btn btn-default btn-confirm').attr('disabled',true); $scope.selectedAll = false; $scope.modalTitle = $sce.trustAsHtml('<i class="fa fa-credit-card" aria-hidden="true"></i> รับชำระเงิน'); var id = angular.element($event.currentTarget).attr('data-key'); var no = angular.element($event.currentTarget).attr('data-no'); // Barcode Translate if($scope.scanBarcode!=null){ var dataArray = $scope.scanBarcode.split(' '); id = dataArray[1]; no = dataArray[2]; //console.log($scope.scanBarcode); // Clear Data $scope.scanBarcode = null; $('input.scanBarcode').val('').focus(); } $http.post('index.php?r=warehousemoving/shipment/confirm-stock',{id:id,no:no}) .then(function(response){ $scope.modalTitle = $sce.trustAsHtml('<i class="fa fa-file-text-o" aria-hidden="true"></i> '+ response.data[0].order + ' : ['+ response.data[0].custcode + '] '+ response.data[0].custname+' ('+ response.data[0].province +')'); $scope.itemList = response.data; $scope.orderId = response.data[0].orderid; $scope.orderNo = response.data[0].order; $scope.custId = response.data[0].custid; $scope.text = response.data[0].text; $scope.printList = $scope.itemList if(response.data[0].status==true){ $('#shipModal').modal('show'); }else { alert(response.data[0].text.message+'\r\n'+response.data[0].text.alert); } if(response.data[0].confirm == 0){ $('body').find('.btn-confirm').show(); } /** * Barcode Generator * * Example Code * * |01 1384 SO1711-0001 1 * * -[|] => Start Barcode * --[01] => Company ID * -----[1384] => Order Id * ----------[SO1711-0001] => Document No * ----------------------[1] => Customer Id * * * Some problem, Some barcode scanner can't read ascii charector. * Change to * 01 1383 * -[01] => Company ID * ----[1384] => Order ID */ var compId = response.data[0].comp_id; var custid = response.data[0].custid; var custcode = response.data[0].custcode; var orderid = response.data[0].orderid; var orderNo = response.data[0].order; $scope.barcode = compId+' '+orderid; // $scope.genBarcode = function(keyCode){ // JsBarcode("#barcode0", keyCode+"",{ // format:"code39", // displayValue:true, // fontSize:10, // height:30, // }); // }; // $scope.genBarcode($scope.barcode); // console.log($scope.barcode); $('.loading').hide(); }) } // ตั้งตัวแปล สำหรับเก็บ Event การเปลี่ยนตัวเลขสั่งผลิต // ถ้า เปลี่ยน ให้ set ค่าเป็น 1 $scope.session_change = 0; $scope.updateOutput = function (model){ //console.log(model.id); for (var i = 0; i < $scope.printList.length; i++) { var newValue = event.target.value; if ($scope.printList[i].id === model.id) { // หน่วงเวลาไว้ (แก้ปัญหาทำให้ตัวเลขเปลี่ยนเร็วเกินไป จนใส่เลข 2 หลักไม่ทัน) setTimeout(function(){ $scope.printList[i].qty = newValue; },1000); // เมื่ีอเปลี่ยนจำนวนการผลิต set ค่าเป็น 1 $scope.session_change = 1; break; } } //console.log($scope.printList); //$scope.printList = ''; } $scope.nomalPrint = function(){ $('.item-child').hide(); $('.qty_per').hide(); $(document).ready(function(){ setTimeout(function(){ window.print(); },500); }); for (var i = 0; i < $scope.printList.length; i++) { $scope.printList[i].qtyprint = $scope.printList[i].need; } } $scope.bomPrint = function(){ $('.item-child').show(); $('.qty_per').show(); $(document).ready(function(){ setTimeout(function(){ window.print(); },500); }); for (var i = 0; i < $scope.printList.length; i++) { var model = $scope.printList[i]; // ถ้าไม่ได้เปลี่ยนจำนวนการผลิต // ให้ดึงค่าส่วนต่างมาปริ๊้น if($scope.session_change == 0){ // ถ้าจำนวนสินค้าในคลัง น้อยกว่า จำจวนที่ต้องการ if(model.inven < model.need){ // (ไม่มีของ) // ให้แสดง (จำนวนที่ต้องการ - จำนวนสินค้าในคลัง) // ถ้าจำนวนสินค้าในคลัง ติดลบ ให้ใช้ค่าที่ต้องการ if(model.inven < 0){ $scope.printList[i].qtyprint = model.qty; }else { $scope.printList[i].qtyprint = model.need - model.inven; } }else{ // (มีของ) // ถ้าสินค้าในคลัง มีมากกว่า จำนวนที่ต้องการ // ให้แสดงจำนวนที่ต้องการ $scope.printList[i].qtyprint = $scope.printList[i].qty; } }else { // ถ้ามีการเปลี่ยนจำนวนการผลิต $scope.printList[i].qtyprint = $scope.printList[i].qty; } } } $scope.validateAll = function(){ var countItem = []; angular.forEach($scope.itemList, function(model){ // Checked Id if(model.selected){ countItem.push({ 'id':model.id }) } }); if(countItem.length === $scope.itemList.length){ $('.btn-confirm').attr('class','btn btn-warning btn-confirm').attr('disabled',false); $scope.selectedAll = true; }else{ $('.btn-confirm').attr('class','btn btn-default btn-confirm').attr('disabled',true); } } // ใส่เวลาเข้าไปตอนเลือกรายการ // เพื่อป้องกันการเลือกผิดพลาด var tick = function() { $scope.clock = Date.now(); } tick(); $interval(tick, 1000); $scope.checked = function(model,$event){ model.selected = !model.selected; var el = $event.currentTarget; if(model.selected==true){ $(el).closest('tr').attr('class','pointer bg-info'); model.time = $scope.clock; }else{ $(el).closest('tr').attr('class','pointer bg-default'); $scope.selectedAll = false; } $scope.validateAll(); } $scope.checkAll = function ($event) { var el = $event.currentTarget; if ($scope.selectedAll) { $scope.selectedAll = true; } else { $scope.selectedAll = false; } angular.forEach($scope.itemList, function(model) { model.selected = $scope.selectedAll; if(model.selected==true){ $(el).closest('table').find('tbody').find('tr').attr('class','pointer bg-info'); model.time = $scope.clock; }else{ $(el).closest('table').find('tbody').find('tr').attr('class','pointer bg-default'); } }); $scope.validateAll(); }; $scope.confirmCheckList = function($event){ var el = $event.currentTarget; if (confirm($scope.text.confirm)) { var quantity = 0; var qtyCheck = 0; angular.forEach($scope.itemList, function(model){ quantity += model.qty; // Checked Id if(model.selected){ qtyCheck += model.qty; } }); if(qtyCheck != quantity){ // Some checked //console.log('false'); alert(lang('common','Please contact administrator.')); }else{ // All checked //console.log('true'); var qtytoship = $('form.Shipment input.need').serializeArray(); var qtyOutput = $('form.Shipment input.output').serializeArray(); //console.log('send'+qtytoship.length); var data = { 'input' : qtytoship, 'output' : qtyOutput, 'id' : $(el).closest('form').attr('data-key'), }; $('#shipModal').modal('hide'); $('body').find('.btn-confirm').hide(); $('body').find('td[data-key="'+data.id+'"]').find('.status').html('<i class="fa fa-refresh fa-spin fa-2x"></i> <span class="blink">Loading...</span>'); $http.post('index.php?r=warehousemoving/shipment/confirm-checklist&id='+data.id,data) .then(function(response){ $('body').find('.btn-confirm').hide(); if(response.data.status==200){ // swal( // response.data.text.Success, // '', // 'success' // ); $.notify({ // options icon: 'fas fa-exclamation', message: response.data.text.Success },{ // settings type: 'info', delay: 1000, z_index:3000, }); setTimeout(() => { $('body').find('td[data-key="'+data.id+'"]').find('.status').html('<i class="fa fa-check-square-o text-success"></i> Confirmed'); $('body').find('tr[data-key="'+data.id+'"]').removeClass('bg-pink'); $('body').find('tr[data-key="'+data.id+'"]').find('.serial-column').attr('class','bg-gray serial-column'); },800); //setTimeout(function(){ window.location.href = 'index.php?r=warehousemoving'; },10000); }else { swal( response.data.text.Error, response.data.message, 'warning' ); } }); } } } $scope.postShipment = function($event){ var el = $event.currentTarget; if (confirm(lang('common','Do you want to confirm ?'))) { var quantity = 0; var qtyCheck = 0; angular.forEach($scope.itemList, function(model){ quantity += model.qty; // Checked Id if(model.selected){ console.log(model.id) qtyCheck += model.qty; } }); if(qtyCheck != quantity){ // Some checked console.log('false'); alert(lang('common','Please contact administrator.')); }else{ // All checked console.log('true'); var qtytoship = $('form.Shipment input.qty').serializeArray(); var appdata = { param:{ apk:'ShipNow', id:$(el).closest('form').attr('data-key'), no:$(el).closest('form').attr('data-no'), cur:'Shiped', reson:'', qtytoship:qtytoship, addrid:'', custid:$(el).closest('form').attr('data-cust'), shipdate:$scope.workdate, }}; //console.log(appdata); $http.post('index.php?r=approval/approve/sale-order',appdata) .then(function(response){ if(response.data == 'Error !'){ //alert(lang('common','Already exists')); swal({ title: lang('common','Already exists'), type: 'info', showCancelButton: false, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: lang('common','Ok') }).then(function (result) { if (result) { window.location.href = 'index.php?r=warehousemoving'; } }) }else { //alert('Shipment No : '+response.data.no); swal({ title: lang('common','Success'), html: lang('common','Shipment No')+' : <a href="index.php?r=warehousemoving/header/view&id='+response.data.docid+'" target="_blank">'+response.data.no +'</a>', type: 'success', showCancelButton: false, confirmButtonColor: '#3085d6', cancelButtonColor: '#d33', confirmButtonText: lang('common','Ok') }).then(function (result) { if (result) { window.location.href = 'index.php?r=warehousemoving'; } }) } }); } } } $scope.zoomImg = function(){ console.log('test'); } });
28.689038
231
0.483235
d759c11bec81dc09358fc63a2c1257b8f6b935dd
3,303
js
JavaScript
scripts/zero_interactive.js
camilochs/zero
d70619141179a387244bd74708253381faf897f0
[ "MIT" ]
2
2017-03-16T02:55:28.000Z
2017-03-16T03:12:04.000Z
scripts/zero_interactive.js
camilochs/zero
d70619141179a387244bd74708253381faf897f0
[ "MIT" ]
null
null
null
scripts/zero_interactive.js
camilochs/zero
d70619141179a387244bd74708253381faf897f0
[ "MIT" ]
null
null
null
/* MIT License Copyright (c) 2017 Camilo Chacón Sartori Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ function changeToButtonRestart(btnObject){ btnObject.html("<i class='glyphicon glyphicon-repeat'></i> Reiniciar"); btnObject.attr("class", "btn btn-primary btn-lg pull-left"); } function changeToButtonPlay(btnObject){ btnObject.html("<i class='glyphicon glyphicon-play'></i> Iniciar"); btnObject.attr("class", "btn btn-success btn-lg pull-left"); } function restart(level){ highlightStep.forEach(function(o){ clearTimeout(o); }); commandsTimeout.forEach(function(o){ clearTimeout(o); }); commandsTimeout = []; Q.stageScene(level); } function checkIsWin(level){ if(commandsTimeout.pop() != "win"){ changeToButtonPlay($("#btnInit")); $('#ModalLose').modal('show'); Q.clearStages(); Q.stageScene(level); } highlightStep = []; } function start(level){ parseCode(true); } function startGame(e, level){ if(workspace.topBlocks_.length == 0 ){ // return; } let btnObject = $(e); let btnText = $(e).text().replace(/\s/g, ""); if(btnText == "Iniciar"){ changeToButtonRestart(btnObject); start(level); }else{ changeToButtonPlay(btnObject); restart(level); } } $(document).ready(function(){ var anno1 = new Anno( [{ target: '.blocklyToolboxDiv', position:'right', content: "Haz click en Atributo o Acciones para crear los movimientos de tu personaje", buttons: [AnnoButton.NextButton] }, /*{ target: '#blocklyDiv', position:'right', content: "Arrastra los bloques hacia aqui :O", buttons: [AnnoButton.BackButton, AnnoButton.NextButton] },*/ { target: '#game', position:'left', content: "Este es tu personaje!! Un Dinosaurio :)", buttons: [AnnoButton.BackButton, AnnoButton.NextButton] }, { target: '#btnStart', position:'bottom', content: "Puedes presionar el botón Iniciar para que tu Dinosaurio realice sus acciones", buttons: { text:'Hecho', click: function(){ $('#ModalInstruction').modal('show'); this.hide(); } } }]); //anno1.show(); });
30.302752
93
0.660006
d75bbc5a7812e35194fe29dac26027feae8d60fe
5,150
js
JavaScript
client/src/components/TableBase/index.js
skolnikskolnik/benzeeeeeen
6ca0dac6a3feea192577ca7972ba2a4c03823920
[ "MIT" ]
null
null
null
client/src/components/TableBase/index.js
skolnikskolnik/benzeeeeeen
6ca0dac6a3feea192577ca7972ba2a4c03823920
[ "MIT" ]
null
null
null
client/src/components/TableBase/index.js
skolnikskolnik/benzeeeeeen
6ca0dac6a3feea192577ca7972ba2a4c03823920
[ "MIT" ]
null
null
null
import React, { useEffect, useState } from "react"; import { withStyles, makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableContainer from '@material-ui/core/TableContainer'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import Paper from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import API from "../../utils/API"; import PopupForm from "../PopupForm"; const StyledTableCell = withStyles((theme) => ({ head: { backgroundColor: theme.palette.common.black, color: theme.palette.common.white, }, body: { fontSize: 14, }, }))(TableCell); const StyledTableRow = withStyles((theme) => ({ root: { '&:nth-of-type(odd)': { backgroundColor: theme.palette.action.hover, }, } }))(TableRow); const useStyles = makeStyles({ table: { minWidth: 700, }, popup: { padding: "25px", zIndex: "1" }, container: { padding: "5px", margin: "10px", marginRight: "5px" } }); export default function CustomizedTables(props) { const classes = useStyles(); const [baseList, setBaseList] = useState([]); const [formDisplay, setFormDisplay] = useState(false); const [idToEdit, setIdToEdit] = useState(""); const [nameToEdit, setNameToEdit] = useState(""); const [newPkb, setNewPkb] = useState(""); //Loads all acids currently in the db useEffect(() => { loadBases() }, [baseList]); //Gets acids from the db const loadBases = () => { API.getAllBases() .then(res => { setBaseList(res.data); }) } //On-click event for hitting the delete button const handleDelete = (event, idNum) => { event.preventDefault(); console.log("test"); //Need to target the id number to delete the acid API.removeBase(idNum) .then(res => console.log(res)) .catch(err => console.log(err)); } // //On-click event for clicking the edit button const handleEdit = (event, idNum) => { event.preventDefault(); setIdToEdit(idNum); setFormDisplay(true); } //Makes form invisible again if dismiss button is clicked const dismissForm = event => { event.preventDefault(); setFormDisplay(false); } //Gets the info from the popup to update the database const updateFromPopup = event => { event.preventDefault(); //Name is idToEdit and pKa is newPka - both custom hooks //Need to convert pKa to Ka let pKb = parseFloat(newPkb); pKb = pKb.toFixed(4); let newKb = Math.pow(10, (-1*pKb)); newKb = newKb.toFixed(6); let inputObject = { name: nameToEdit, pKb: pKb, Kb: newKb } API.updateBase(idToEdit, inputObject) .then(res =>{ console.log(res.data); //Want to close the form setFormDisplay(false); }) .catch(err => console.log(err)); } //Gets name from the popup form const handleNameChange = event => { event.preventDefault(); setNameToEdit(event.target.value); } // //Gets new pKa from the popup form const handleNewpKb = event => { event.preventDefault(); setNewPkb(event.target.value); } return ( <div> <PopupForm handleNameChange={handleNameChange} updateFromPopup={updateFromPopup} open={formDisplay} handleClose={dismissForm} handleNewpKa={handleNewpKb} /> <TableContainer className={classes.container} component={Paper}> <Table className={classes.table} aria-label="customized table"> <TableHead> <TableRow> <StyledTableCell>Base name</StyledTableCell> <StyledTableCell align="right">pKb</StyledTableCell> <StyledTableCell align="right">Kb</StyledTableCell> <StyledTableCell align="right">Edit entry</StyledTableCell> <StyledTableCell align="right">Delete entry</StyledTableCell> </TableRow> </TableHead> <TableBody> {baseList.map((item, index) => ( <StyledTableRow key={index}> <StyledTableCell component="th" scope="row"> {item.name} </StyledTableCell> <StyledTableCell align="right">{item.pKb}</StyledTableCell> <StyledTableCell align="right">{item.Kb} </StyledTableCell> <StyledTableCell align="right"> <Button onClick={event => handleEdit(event, item._id)} variant="contained" color="primary"> Edit entry </Button> </StyledTableCell> <StyledTableCell align="right"> <Button onClick={event => handleDelete(event, item._id)} variant="contained" color="secondary" value={item._id}> Delete entry </Button> </StyledTableCell> </StyledTableRow> ))} </TableBody> </Table> </TableContainer> </div> ); }
28.142077
130
0.610097
d75c596d08e8bb853e043b9d534cf1a6c9919b61
1,052
js
JavaScript
client/src/utils/API.js
tingtingctt/Imaginary-Traveler
afd80e5e75653a205fb81ea050fc3986dc1e9cf8
[ "Apache-2.0" ]
1
2020-07-22T02:05:19.000Z
2020-07-22T02:05:19.000Z
client/src/utils/API.js
tingtingctt/Imaginary-Traveler
afd80e5e75653a205fb81ea050fc3986dc1e9cf8
[ "Apache-2.0" ]
7
2021-03-01T21:19:02.000Z
2022-02-10T18:23:45.000Z
client/src/utils/API.js
tingtingctt/Imaginary-Traveler
afd80e5e75653a205fb81ea050fc3986dc1e9cf8
[ "Apache-2.0" ]
null
null
null
import axios from "axios"; // Gets all books export const getBooks = q => axios.get(`/api/google?q=${q}`); // Gets the book with the given id export const getBook = id => axios.get("/api/books/" + id); // Deletes the book with the given id export const deleteBook = id => axios.delete("/api/books/" + id); // Saves a book to the database export const saveBook = (book,id) => axios.put("/api/books/"+id, book); export const getSavedBooks = () => axios.get("/api/books"); //Saves a user made "entry" to the database export const saveEntry = (entry,id) => axios.put("/api/books/entries/"+id, entry); export const getCurrentUser = () => axios.get("/auth/user_data") export const login = data => axios.post("/auth/login", data); export const signup = data => axios.post("/auth/signup", data); // not sure? export const logout = () => axios.get("/auth/logout"); export const addFav = (bid,uid) => axios.put(`/api/books/${bid}/${uid}`); export const deleteFav = (bid,uid) => axios.delete(`/api/books/${bid}/${uid}`)
38.962963
84
0.641635
d75e7fdd9ed2e0d12fbe3a9c48e5141d9c47f203
2,037
js
JavaScript
src/utils/transformSchedule.js
ahmedlhanafy/guchub
676cd0f75d660c9a147491927e09110d5df945f6
[ "MIT" ]
16
2018-04-12T13:08:00.000Z
2020-10-04T09:38:33.000Z
src/utils/transformSchedule.js
ahmedlhanafy/guchub
676cd0f75d660c9a147491927e09110d5df945f6
[ "MIT" ]
15
2018-04-12T20:36:13.000Z
2022-03-15T19:08:57.000Z
src/utils/transformSchedule.js
ahmedlhanafy/guchub
676cd0f75d660c9a147491927e09110d5df945f6
[ "MIT" ]
4
2018-04-21T00:09:48.000Z
2019-09-26T11:54:08.000Z
/* @flow */ import capitalize from 'lodash.capitalize'; import type { Course } from '../types/Course'; const days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; export const transformSchedule = (schedule: Array<Course>): { [string]: Array<Course> } => { return schedule ? schedule.reduce((acc, val) => { if (acc[val.weekday]) { acc[val.weekday] = [...acc[val.weekday], val]; } else { acc[val.weekday] = [val]; } return acc; }, {}) : {}; }; export const checkIfTransformedScheduleIsEmpty = (transformedSchedule: { [string]: Array<Course>, }) => Object.keys(transformedSchedule) .map(day => transformedSchedule[day]) .reduce((acc, next) => acc + next.length, 0) === 0; export const getNextDaySchedule = ( transformedSchedule: { [string]: Array<Course> }, dayIndex: number ): { schedule: Array<Course>, dayIndex: number } => { if (checkIfTransformedScheduleIsEmpty(transformedSchedule)) { return { schedule: [], dayIndex: 0, }; } const dayName = days[dayIndex]; const todaySchedule = transformedSchedule[dayName.toUpperCase()] || []; if (todaySchedule.length === 0) { return getNextDaySchedule(transformedSchedule, (dayIndex + 1) % 7); } return { schedule: todaySchedule, dayIndex, }; }; export const getSchedule = (gucSchedule: Array<Object>, todayDate: Date = new Date()) => { let label = 'Today'; const transformedSchedule = transformSchedule(gucSchedule); const todayIndex = todayDate.getDay(); const tomorrowIndex = (todayIndex + 1) % 7; const { schedule, dayIndex } = getNextDaySchedule( transformedSchedule, todayDate.getHours() >= 18 ? tomorrowIndex : todayIndex ); if (schedule.length === 0) { return null; } if (dayIndex === todayIndex) { label = 'Today'; } else if (dayIndex === tomorrowIndex) { label = 'Tomorrow'; } else { label = capitalize(days[dayIndex]); } return { schedule, label, }; };
27.527027
92
0.628375
d75eb0f7b07d6171e58c502c0adef242d1d935fc
408
js
JavaScript
server/controllers/index.js
raphaelfp/emaily-server
a8aaadd4c23854be4cbee6ca821ee4a4f24ab763
[ "MIT" ]
null
null
null
server/controllers/index.js
raphaelfp/emaily-server
a8aaadd4c23854be4cbee6ca821ee4a4f24ab763
[ "MIT" ]
null
null
null
server/controllers/index.js
raphaelfp/emaily-server
a8aaadd4c23854be4cbee6ca821ee4a4f24ab763
[ "MIT" ]
null
null
null
const cookieSession = require('cookie-session'); const sslRedirect = require('heroku-ssl-redirect'); const bodyParser = require('body-parser'); const keys = require('../config/keys'); module.exports = app => { app.use( cookieSession({ maxAge: 30 * 24 * 60 * 60 * 1000, keys: [keys.cookieKey] }) ); app.use(sslRedirect()); app.use(bodyParser.json()); require('./passportController')(app); };
22.666667
51
0.664216
d75f1e4c3b0012b892d878b99e73fe1ea498fa4b
2,960
js
JavaScript
src/people-container/queries.js
MnMansour/resourceplanningtool-ui
edbbb756e85a99c45edd83518970745658af1210
[ "MIT" ]
null
null
null
src/people-container/queries.js
MnMansour/resourceplanningtool-ui
edbbb756e85a99c45edd83518970745658af1210
[ "MIT" ]
41
2018-03-22T13:55:35.000Z
2021-03-09T11:20:26.000Z
src/people-container/queries.js
MnMansour/resourceplanningtool-ui
edbbb756e85a99c45edd83518970745658af1210
[ "MIT" ]
2
2018-02-16T10:41:48.000Z
2019-05-10T12:29:14.000Z
// @flow export const FETCH_PEOPLE_QUERY: string = `query { listPersons { description title id githuburl linkedinurl location name email picture skills { id name level } startdate } }`; export const FETCH_SKILLS_QUERY: string = `query { listSkills { id name level } }`; export const getCreatePersonQuery = ( name: string, description: string, picture: string, startdate: Date, email: string, title: string, location: string, githuburl: string, linkedinurl: string ): string => { return `mutation { createPerson( name: "${name}", description: "${description}", picture: "${picture}", startdate: ${new Date(startdate).getTime() / 1000}, email: "${email}", title: "${title}", location: "${location}", githuburl: "${githuburl}", linkedinurl: "${linkedinurl}" ) { id } }`; }; export const getUpdatePersonQuery = ( name: string, description: string, picture: string, startdate: Date, email: string, title: string, location: string, githuburl: string, linkedinurl: string, id: number ) => { return `mutation { updatePerson( name: "${name}", description: "${description}", picture: "${picture}", startdate: ${new Date(startdate).getTime() / 1000}, email: "${email}", title: "${title}", id: ${id}, location: "${location}", githuburl: "${githuburl}", linkedinurl: "${linkedinurl}" ) }`; }; export const getCreateSkillsQuery = ( skills: Array<{ level: Number, name: string }> ): string => { return `mutation { ${skills .map( ( skill: Object, index: number ) => `skill${index}: createSkill(name: "${skill.name}", level: ${skill.level}) { id }\n` ) .toString()} }`; }; export const getAddSkillsForPersonQuery = ( personId: number, skillsId: Array<number> ): string => { return `mutation { ${skillsId .map( (skillId, index) => `addSkill${index}: addSkillForPerson(person_id: ${personId}, skill_id: ${skillId})` ) .toString()} }`; }; export const getRemoveSkillsForPersonQuery = (idsList: Array<number>) => { return `mutation { ${idsList .map((id, index) => `remove${index}: removeSkillForPerson(id: ${id})`) .toString()} }`; }; export const getDeletePersonQuery = (id: number) => { return `mutation { removePerson(id: "${id}") }`; }; export const getUpdateSkillsForPersonQuery = ( personId: number, removedItemIds: Array<number>, addedItemIds: Array<number> ) => { return `mutation { ${removedItemIds .map( (id: number, index) => `remove${index}: removeSkillForPerson(skill_id: ${id}, person_id: ${personId})` ) .toString()} ${addedItemIds .map( (id, index) => `add${index}: addSkillForPerson(person_id: ${personId}, skill_id: ${id})` ) .toString()} }`; };
20.555556
91
0.589189
d75f8406c3737527f0e85f7392328810643a66dc
663,685
js
JavaScript
docs/docs.bundle.js
TemperWorks/Nucleus
34fc347053e052556c9114b7ac517adbc6954368
[ "MIT" ]
8
2017-08-03T07:18:44.000Z
2018-11-21T12:02:02.000Z
docs/docs.bundle.js
TemperWorks/Nucleus
34fc347053e052556c9114b7ac517adbc6954368
[ "MIT" ]
2
2017-09-01T02:15:22.000Z
2017-10-03T15:56:32.000Z
docs/docs.bundle.js
TemperWorks/Nucleus
34fc347053e052556c9114b7ac517adbc6954368
[ "MIT" ]
1
2018-09-12T08:08:53.000Z
2018-09-12T08:08:53.000Z
!function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};e.m=t,e.c=o,e.i=function(t){return t},e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e){t.exports=function(t,e,o,i){var n,a=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(n=t,a=t.default);var r="function"==typeof a?a.options:a;if(e&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns),o&&(r._scopeId=o),i){var l=r.computed||(r.computed={});Object.keys(i).forEach(function(t){var e=i[t];l[t]=function(){return e}})}return{esModule:n,exports:a,options:r}}},function(t,e,o){o(160);var i=o(0)(o(115),o(288),null,null);t.exports=i.exports},function(t,e,o){o(131);var i=o(0)(o(117),o(255),null,null);t.exports=i.exports},function(t,e,o){o(125);var i=o(0)(o(97),o(249),null,null);t.exports=i.exports},function(t,e,o){o(188);var i=o(0)(o(83),o(318),null,null);t.exports=i.exports},function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.NucleusConfig=void 0;var n=o(121),a=function(t){return t&&t.__esModule?t:{default:t}}(n),s={disableRipple:!1,UiAutocomplete:{keys:{label:"label",value:"value",image:"image"}},UiCheckboxGroup:{keys:{id:"id",name:"name",class:"class",label:"label",value:"value",disabled:"disabled"}},UiMenu:{keys:{icon:"icon",type:"type",label:"label",secondaryText:"secondaryText",iconProps:"iconProps",disabled:"disabled"}},UiRadioGroup:{keys:{id:"id",class:"class",label:"label",value:"value",checked:"checked",disabled:"disabled"}},UiSelect:{keys:{label:"label",value:"value",image:"image"}}},r=e.NucleusConfig=function(){function t(){i(this,t),this.data=(0,a.default)(s,window.NucleusConfig?window.NucleusConfig:{})}return t.prototype.set=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.data=(0,a.default)(this.data,t)},t}();e.default=new r},function(t,e,o){o(149);var i=o(0)(o(108),o(276),null,null);t.exports=i.exports},function(t,e,o){o(172);var i=o(0)(o(107),o(300),null,null);t.exports=i.exports},function(t,e,o){"use strict";function i(t){return"string"==typeof t?t.replace(v,"").split(_):t}function n(t){return c(t)?t.className.replace(v,"").split(_):[]}function a(t,e){c(t)&&(t.className=i(e).join(" "))}function s(t,e){var o=r(t,e),n=i(e);return o.push.apply(o,n),a(t,o),o}function r(t,e){var o=n(t);return i(e).forEach(function(t){var e=o.indexOf(t);-1!==e&&o.splice(e,1)}),a(t,o),o}function l(t,e){var o=n(t);return i(e).every(function(t){return-1!==o.indexOf(t)})}function c(t){return"object"===("undefined"==typeof HTMLElement?"undefined":u(HTMLElement))?t instanceof HTMLElement:d(t)}function d(t){return t&&"object"===(void 0===t?"undefined":u(t))&&"string"==typeof t.nodeName&&1===t.nodeType}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=/^\s+|\s+$/g,_=/\s+/g;e.default={add:s,remove:r,contains:l,has:l,set:a,get:n}},function(t,e,o){"use strict";function i(t,e){for(;t.length<e;)t="0"+t;return t}function n(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f).days.full[t.getDay()]}function a(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f).days.initials[t.getDay()]}function s(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f).days.abbreviated[t.getDay()]}function r(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f).months.full[t.getMonth()]}function l(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:f).months.abbreviated[t.getMonth()]}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{pad:!0},o=t.getDate().toString();return e.pad?i(o):o}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,o=e.days.abbreviated,i=e.months.full;return o[t.getDay()]+", "+i[t.getMonth()]+" "+t.getDate()+", "+t.getFullYear()}function u(t){return new Date(t.getTime())}function v(t,e){for(;t.getDay()!==e;)t.setDate(t.getDate()-1);return t}function _(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function p(t,e){return t.getTime()<e.getTime()}function h(t,e){return t.getTime()>e.getTime()}Object.defineProperty(e,"__esModule",{value:!0}),e.getDayFull=n,e.getDayInitial=a,e.getDayAbbreviated=s,e.getMonthFull=r,e.getMonthAbbreviated=l,e.getDayOfMonth=c,e.humanize=d,e.clone=u,e.moveToDayOfWeek=v,e.isSameDay=_,e.isBefore=p,e.isAfter=h;var f=e.defaultLang={months:{full:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},days:{full:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],initials:["S","M","T","W","T","F","S"]}};e.default={defaultLang:f,getDayFull:n,getDayInitial:a,getDayAbbreviated:s,getMonthFull:r,getMonthAbbreviated:l,getDayOfMonth:c,humanize:d,clone:u,moveToDayOfWeek:v,isSameDay:_,isBefore:p,isAfter:h}},function(t,e,o){"use strict";function i(t){return null!==t&&"object"===(void 0===t?"undefined":r(t))}function n(t,e){return t==e||!(!i(t)||!i(e))&&JSON.stringify(t)===JSON.stringify(e)}function a(t,e){for(var o=0;o<t.length;o++)if(n(t[o],e))return o;return-1}function s(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t.substr(o,e.length)===e}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.isObject=i,e.looseEqual=n,e.looseIndexOf=a,e.startsWith=s},function(t,e,o){o(166);var i=o(0)(o(98),o(294),null,null);t.exports=i.exports},function(t,e,o){o(178);var i=o(0)(o(102),o(306),null,null);t.exports=i.exports},function(t,e,o){o(123);var i=o(0)(o(99),o(247),null,null);t.exports=i.exports},function(t,e,o){o(163);var i=o(0)(o(104),o(291),null,null);t.exports=i.exports},function(t,e,o){o(165);var i=o(0)(o(114),o(293),null,null);t.exports=i.exports},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(26),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={data:function(){return{windowResizeListener:null}},mounted:function(){var t=this;this.windowResizeListener=(0,n.default)(function(){t.$emit("window-resize")},200),window.addEventListener("resize",this.windowResizeListener)},beforeDestroy:function(){window.removeEventListener("resize",this.windowResizeListener)}}},function(t,e,o){o(156);var i=o(0)(o(101),o(284),null,null);t.exports=i.exports},function(t,e,o){o(148);var i=o(0)(o(120),o(275),null,null);t.exports=i.exports},function(t,e){var o;o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(o=window)}t.exports=o},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(194),a=i(n),s=o(195),r=i(s),l=o(196),c=i(l),d=o(197),u=i(d),v=o(198),_=i(v),p=o(199),h=i(p),f=o(200),m=i(f),g=o(201),b=i(g),y=o(202),w=i(y),k=o(203),C=i(k),x=o(204),S=i(x),T=o(205),E=i(T),O=o(206),D=i(O),$=o(207),M=i($),A=o(208),B=i(A),P=o(209),L=i(P),z=o(210),U=i(z),I=o(211),F=i(I),N=o(212),R=i(N),j=o(213),W=i(j),H=o(214),V=i(H),q=o(215),G=i(q),Y=o(216),K=i(Y),J=o(217),X=i(J),Z=o(218),Q=i(Z),tt=o(219),et=i(tt),ot=o(220),it=i(ot),nt=o(221),at=i(nt),st=o(222),rt=i(st),lt=o(223),ct=i(lt),dt=[{title:"Layout",menu:[{path:"/ui-card",component:u.default,title:"UiCard",sourceUrl:"src/UiCard.vue"},{path:"/ui-menu",component:M.default,title:"UiMenu",sourceUrl:"src/UiMenu.vue"},{path:"/ui-modal",component:B.default,title:"UiModal",sourceUrl:"src/UiModal.vue"},{path:"/ui-tabs",component:it.default,title:"UiTabs",sourceUrl:"src/UiTabs.vue"},{path:"/ui-toolbar",component:rt.default,title:"UiToolbar",sourceUrl:"src/UiToolbar.vue"},{path:"/ui-collapsible",component:m.default,title:"UiCollapsible",sourceUrl:"src/UiCollapsible.vue"}]},{title:"User Input",menu:[{path:"/ui-autocomplete",component:r.default,title:"UiAutocomplete",sourceUrl:"src/UiAutocomplete.vue"},{path:"/ui-button",component:c.default,title:"UiButton",sourceUrl:"src/UiButton.vue"},{path:"/ui-checkbox",component:_.default,title:"UiCheckbox",sourceUrl:"src/UiCheckbox.vue"},{path:"/ui-checkbox-group",component:h.default,title:"UiCheckboxGroup",sourceUrl:"src/UiCheckboxGroup.vue"},{path:"/ui-confirm",component:b.default,title:"UiConfirm",sourceUrl:"src/UiConfirm.vue"},{path:"/ui-datepicker",component:w.default,title:"UiDatepicker",sourceUrl:"src/UiDatepicker.vue"},{path:"/ui-fab",component:C.default,title:"UiFab",sourceUrl:"src/UiFab.vue"},{path:"/ui-fileupload",component:S.default,title:"UiFileupload",sourceUrl:"src/UiFileupload.vue"},{path:"/ui-ripple-ink",component:G.default,title:"UiRippleInk",sourceUrl:"src/UiRippleInk.vue"},{path:"/ui-select",component:K.default,title:"UiSelect",sourceUrl:"src/UiSelect.vue"},{path:"/ui-slider",component:X.default,title:"UiSlider",sourceUrl:"src/UiSlider.vue"},{path:"/ui-icon-button",component:D.default,title:"UiIconButton",sourceUrl:"src/UiIconButton.vue"},{path:"/ui-radio",component:W.default,title:"UiRadio",sourceUrl:"src/UiRadio.vue"},{path:"/ui-radio-group",component:V.default,title:"UiRadioGroup",sourceUrl:"src/UiRadioGroup.vue"},{path:"/ui-switch",component:et.default,title:"UiSwitch",sourceUrl:"src/UiSwitch.vue"},{path:"/ui-textbox",component:at.default,title:"UiTextbox",sourceUrl:"src/UiTextbox.vue"}]},{title:"Visual feedback",menu:[{path:"/ui-alert",component:a.default,title:"UiAlert",sourceUrl:"src/UiAlert.vue"},{path:"/ui-popover",component:L.default,title:"UiPopover",sourceUrl:"src/UiPopover.vue"},{path:"/ui-preloader",component:U.default,title:"UiPreloader",sourceUrl:"src/UiPreloader.vue"},{path:"/ui-progress-circular",component:F.default,title:"UiProgressCircular",sourceUrl:"src/UiProgressCircular.vue"},{path:"/ui-progress-linear",component:R.default,title:"UiProgressLinear",sourceUrl:"src/UiProgressLinear.vue"},{path:"/ui-snackbar",component:Q.default,title:"UiSnackbar",sourceUrl:"src/UiSnackbarContainer.vue"},{path:"/ui-tooltip",component:ct.default,title:"UiTooltip",sourceUrl:"src/UiTooltip.vue"}]},{title:"Miscellaneous",menu:[{path:"/ui-icon",component:E.default,title:"UiIcon",sourceUrl:"src/UiIcon.vue"}]}],ut=dt.reduce(function(t,e){var o=e.menu.map(function(t){return{path:t.path,component:t.component,meta:{section:e.title,title:t.title,sourceUrl:t.sourceUrl}}});return t.concat(o)},[]);ut.unshift({path:"/",redirect:"/ui-alert"}),ut.push({path:"*",redirect:"/ui-alert"}),e.default={menu:dt,routes:ut}},function(t,e,o){"use strict";(function(e){/*! * Vue.js v2.4.2 * (c) 2014-2017 Evan You * Released under the MIT License. */ function o(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function n(t){return!0===t}function a(t){return!1===t}function s(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function r(t){return null!==t&&"object"==typeof t}function l(t){return"[object Object]"===In.call(t)}function c(t){return"[object RegExp]"===In.call(t)}function d(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function u(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function _(t,e){for(var o=Object.create(null),i=t.split(","),n=0;n<i.length;n++)o[i[n]]=!0;return e?function(t){return o[t.toLowerCase()]}:function(t){return o[t]}}function p(t,e){if(t.length){var o=t.indexOf(e);if(o>-1)return t.splice(o,1)}}function h(t,e){return Rn.call(t,e)}function f(t){var e=Object.create(null);return function(o){return e[o]||(e[o]=t(o))}}function m(t,e){function o(o){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,o):t.call(e)}return o._length=t.length,o}function g(t,e){e=e||0;for(var o=t.length-e,i=new Array(o);o--;)i[o]=t[o+e];return i}function b(t,e){for(var o in e)t[o]=e[o];return t}function y(t){for(var e={},o=0;o<t.length;o++)t[o]&&b(e,t[o]);return e}function w(t,e,o){}function k(t,e){if(t===e)return!0;var o=r(t),i=r(e);if(!o||!i)return!o&&!i&&String(t)===String(e);try{var n=Array.isArray(t),a=Array.isArray(e);if(n&&a)return t.length===e.length&&t.every(function(t,o){return k(t,e[o])});if(n||a)return!1;var s=Object.keys(t),l=Object.keys(e);return s.length===l.length&&s.every(function(o){return k(t[o],e[o])})}catch(t){return!1}}function C(t,e){for(var o=0;o<t.length;o++)if(k(t[o],e))return o;return-1}function x(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function S(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function T(t,e,o,i){Object.defineProperty(t,e,{value:o,enumerable:!!i,writable:!0,configurable:!0})}function E(t){if(!ta.test(t)){var e=t.split(".");return function(t){for(var o=0;o<e.length;o++){if(!t)return;t=t[e[o]]}return t}}}function O(t,e,o){if(Zn.errorHandler)Zn.errorHandler.call(null,t,e,o);else{if(!ia||"undefined"==typeof console)throw t;console.error(t)}}function D(t){return"function"==typeof t&&/native code/.test(t.toString())}function $(t){wa.target&&ka.push(wa.target),wa.target=t}function M(){wa.target=ka.pop()}function A(t,e,o){t.__proto__=e}function B(t,e,o){for(var i=0,n=o.length;i<n;i++){var a=o[i];T(t,a,e[a])}}function P(t,e){if(r(t)){var o;return h(t,"__ob__")&&t.__ob__ instanceof Ea?o=t.__ob__:Ta.shouldConvert&&!fa()&&(Array.isArray(t)||l(t))&&Object.isExtensible(t)&&!t._isVue&&(o=new Ea(t)),e&&o&&o.vmCount++,o}}function L(t,e,o,i,n){var a=new wa,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var r=s&&s.get,l=s&&s.set,c=!n&&P(o);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=r?r.call(t):o;return wa.target&&(a.depend(),c&&c.dep.depend(),Array.isArray(e)&&I(e)),e},set:function(e){var i=r?r.call(t):o;e===i||e!==e&&i!==i||(l?l.call(t,e):o=e,c=!n&&P(e),a.notify())}})}}function z(t,e,o){if(Array.isArray(t)&&d(e))return t.length=Math.max(t.length,e),t.splice(e,1,o),o;if(h(t,e))return t[e]=o,o;var i=t.__ob__;return t._isVue||i&&i.vmCount?o:i?(L(i.value,e,o),i.dep.notify(),o):(t[e]=o,o)}function U(t,e){if(Array.isArray(t)&&d(e))return void t.splice(e,1);var o=t.__ob__;t._isVue||o&&o.vmCount||h(t,e)&&(delete t[e],o&&o.dep.notify())}function I(t){for(var e=void 0,o=0,i=t.length;o<i;o++)e=t[o],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&I(e)}function F(t,e){if(!e)return t;for(var o,i,n,a=Object.keys(e),s=0;s<a.length;s++)o=a[s],i=t[o],n=e[o],h(t,o)?l(i)&&l(n)&&F(i,n):z(t,o,n);return t}function N(t,e,o){return o?t||e?function(){var i="function"==typeof e?e.call(o):e,n="function"==typeof t?t.call(o):void 0;return i?F(i,n):n}:void 0:e?t?function(){return F("function"==typeof e?e.call(this):e,"function"==typeof t?t.call(this):t)}:e:t}function R(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function j(t,e){var o=Object.create(t||null);return e?b(o,e):o}function W(t){var e=t.props;if(e){var o,i,n,a={};if(Array.isArray(e))for(o=e.length;o--;)"string"==typeof(i=e[o])&&(n=Wn(i),a[n]={type:null});else if(l(e))for(var s in e)i=e[s],n=Wn(s),a[n]=l(i)?i:{type:i};t.props=a}}function H(t){var e=t.inject;if(Array.isArray(e))for(var o=t.inject={},i=0;i<e.length;i++)o[e[i]]=e[i]}function V(t){var e=t.directives;if(e)for(var o in e){var i=e[o];"function"==typeof i&&(e[o]={bind:i,update:i})}}function q(t,e,o){function i(i){var n=Oa[i]||Da;l[i]=n(t[i],e[i],o,i)}"function"==typeof e&&(e=e.options),W(e),H(e),V(e);var n=e.extends;if(n&&(t=q(t,n,o)),e.mixins)for(var a=0,s=e.mixins.length;a<s;a++)t=q(t,e.mixins[a],o);var r,l={};for(r in t)i(r);for(r in e)h(t,r)||i(r);return l}function G(t,e,o,i){if("string"==typeof o){var n=t[e];if(h(n,o))return n[o];var a=Wn(o);if(h(n,a))return n[a];var s=Hn(a);if(h(n,s))return n[s];return n[o]||n[a]||n[s]}}function Y(t,e,o,i){var n=e[t],a=!h(o,t),s=o[t];if(X(Boolean,n.type)&&(a&&!h(n,"default")?s=!1:X(String,n.type)||""!==s&&s!==qn(t)||(s=!0)),void 0===s){s=K(i,n,t);var r=Ta.shouldConvert;Ta.shouldConvert=!0,P(s),Ta.shouldConvert=r}return s}function K(t,e,o){if(h(e,"default")){var i=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[o]&&void 0!==t._props[o]?t._props[o]:"function"==typeof i&&"Function"!==J(e.type)?i.call(t):i}}function J(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function X(t,e){if(!Array.isArray(e))return J(e)===J(t);for(var o=0,i=e.length;o<i;o++)if(J(e[o])===J(t))return!0;return!1}function Z(t){return new $a(void 0,void 0,void 0,String(t))}function Q(t){var e=new $a(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.isCloned=!0,e}function tt(t){for(var e=t.length,o=new Array(e),i=0;i<e;i++)o[i]=Q(t[i]);return o}function et(t){function e(){var t=arguments,o=e.fns;if(!Array.isArray(o))return o.apply(null,arguments);for(var i=o.slice(),n=0;n<i.length;n++)i[n].apply(null,t)}return e.fns=t,e}function ot(t,e,i,n,a){var s,r,l,c;for(s in t)r=t[s],l=e[s],c=Pa(s),o(r)||(o(l)?(o(r.fns)&&(r=t[s]=et(r)),i(c.name,r,c.once,c.capture,c.passive)):r!==l&&(l.fns=r,t[s]=l));for(s in e)o(t[s])&&(c=Pa(s),n(c.name,e[s],c.capture))}function it(t,e,a){function s(){a.apply(this,arguments),p(r.fns,s)}var r,l=t[e];o(l)?r=et([s]):i(l.fns)&&n(l.merged)?(r=l,r.fns.push(s)):r=et([l,s]),r.merged=!0,t[e]=r}function nt(t,e,n){var a=e.options.props;if(!o(a)){var s={},r=t.attrs,l=t.props;if(i(r)||i(l))for(var c in a){var d=qn(c);at(s,l,c,d,!0)||at(s,r,c,d,!1)}return s}}function at(t,e,o,n,a){if(i(e)){if(h(e,o))return t[o]=e[o],a||delete e[o],!0;if(h(e,n))return t[o]=e[n],a||delete e[n],!0}return!1}function st(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function rt(t){return s(t)?[Z(t)]:Array.isArray(t)?ct(t):void 0}function lt(t){return i(t)&&i(t.text)&&a(t.isComment)}function ct(t,e){var a,r,l,c=[];for(a=0;a<t.length;a++)r=t[a],o(r)||"boolean"==typeof r||(l=c[c.length-1],Array.isArray(r)?c.push.apply(c,ct(r,(e||"")+"_"+a)):s(r)?lt(l)?l.text+=String(r):""!==r&&c.push(Z(r)):lt(r)&&lt(l)?c[c.length-1]=Z(l.text+r.text):(n(t._isVList)&&i(r.tag)&&o(r.key)&&i(e)&&(r.key="__vlist"+e+"_"+a+"__"),c.push(r)));return c}function dt(t,e){return t.__esModule&&t.default&&(t=t.default),r(t)?e.extend(t):t}function ut(t,e,o,i,n){var a=Ba();return a.asyncFactory=t,a.asyncMeta={data:e,context:o,children:i,tag:n},a}function vt(t,e,a){if(n(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;if(n(t.loading)&&i(t.loadingComp))return t.loadingComp;if(!i(t.contexts)){var s=t.contexts=[a],l=!0,c=function(){for(var t=0,e=s.length;t<e;t++)s[t].$forceUpdate()},d=x(function(o){t.resolved=dt(o,e),l||c()}),u=x(function(e){i(t.errorComp)&&(t.error=!0,c())}),v=t(d,u);return r(v)&&("function"==typeof v.then?o(t.resolved)&&v.then(d,u):i(v.component)&&"function"==typeof v.component.then&&(v.component.then(d,u),i(v.error)&&(t.errorComp=dt(v.error,e)),i(v.loading)&&(t.loadingComp=dt(v.loading,e),0===v.delay?t.loading=!0:setTimeout(function(){o(t.resolved)&&o(t.error)&&(t.loading=!0,c())},v.delay||200)),i(v.timeout)&&setTimeout(function(){o(t.resolved)&&u(null)},v.timeout))),l=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(a)}function _t(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var o=t[e];if(i(o)&&i(o.componentOptions))return o}}function pt(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&mt(t,e)}function ht(t,e,o){o?Aa.$once(t,e):Aa.$on(t,e)}function ft(t,e){Aa.$off(t,e)}function mt(t,e,o){Aa=t,ot(e,o||{},ht,ft,t)}function gt(t,e){var o={};if(!t)return o;for(var i=[],n=0,a=t.length;n<a;n++){var s=t[n];if(s.context!==e&&s.functionalContext!==e||!s.data||null==s.data.slot)i.push(s);else{var r=s.data.slot,l=o[r]||(o[r]=[]);"template"===s.tag?l.push.apply(l,s.children):l.push(s)}}return i.every(bt)||(o.default=i),o}function bt(t){return t.isComment||" "===t.text}function yt(t,e){e=e||{};for(var o=0;o<t.length;o++)Array.isArray(t[o])?yt(t[o],e):e[t[o].key]=t[o].fn;return e}function wt(t){var e=t.$options,o=e.parent;if(o&&!e.abstract){for(;o.$options.abstract&&o.$parent;)o=o.$parent;o.$children.push(t)}t.$parent=o,t.$root=o?o.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function kt(t,e,o){t.$el=e,t.$options.render||(t.$options.render=Ba),Et(t,"beforeMount");var i;return i=function(){t._update(t._render(),o)},t._watcher=new Wa(t,i,w),o=!1,null==t.$vnode&&(t._isMounted=!0,Et(t,"mounted")),t}function Ct(t,e,o,i,n){var a=!!(n||t.$options._renderChildren||i.data.scopedSlots||t.$scopedSlots!==Qn);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=n,t.$attrs=i.data&&i.data.attrs,t.$listeners=o,e&&t.$options.props){Ta.shouldConvert=!1;for(var s=t._props,r=t.$options._propKeys||[],l=0;l<r.length;l++){var c=r[l];s[c]=Y(c,t.$options.props,e,t)}Ta.shouldConvert=!0,t.$options.propsData=e}if(o){var d=t.$options._parentListeners;t.$options._parentListeners=o,mt(t,o,d)}a&&(t.$slots=gt(n,i.context),t.$forceUpdate())}function xt(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function St(t,e){if(e){if(t._directInactive=!1,xt(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var o=0;o<t.$children.length;o++)St(t.$children[o]);Et(t,"activated")}}function Tt(t,e){if(!(e&&(t._directInactive=!0,xt(t))||t._inactive)){t._inactive=!0;for(var o=0;o<t.$children.length;o++)Tt(t.$children[o]);Et(t,"deactivated")}}function Et(t,e){var o=t.$options[e];if(o)for(var i=0,n=o.length;i<n;i++)try{o[i].call(t)}catch(o){O(o,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e)}function Ot(){Ra=za.length=Ua.length=0,Ia={},Fa=Na=!1}function Dt(){Na=!0;var t,e;for(za.sort(function(t,e){return t.id-e.id}),Ra=0;Ra<za.length;Ra++)t=za[Ra],e=t.id,Ia[e]=null,t.run();var o=Ua.slice(),i=za.slice();Ot(),At(o),$t(i),ma&&Zn.devtools&&ma.emit("flush")}function $t(t){for(var e=t.length;e--;){var o=t[e],i=o.vm;i._watcher===o&&i._isMounted&&Et(i,"updated")}}function Mt(t){t._inactive=!1,Ua.push(t)}function At(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,St(t[e],!0)}function Bt(t){var e=t.id;if(null==Ia[e]){if(Ia[e]=!0,Na){for(var o=za.length-1;o>Ra&&za[o].id>t.id;)o--;za.splice(o+1,0,t)}else za.push(t);Fa||(Fa=!0,ba(Dt))}}function Pt(t){Ha.clear(),Lt(t,Ha)}function Lt(t,e){var o,i,n=Array.isArray(t);if((n||r(t))&&Object.isExtensible(t)){if(t.__ob__){var a=t.__ob__.dep.id;if(e.has(a))return;e.add(a)}if(n)for(o=t.length;o--;)Lt(t[o],e);else for(i=Object.keys(t),o=i.length;o--;)Lt(t[i[o]],e)}}function zt(t,e,o){Va.get=function(){return this[e][o]},Va.set=function(t){this[e][o]=t},Object.defineProperty(t,o,Va)}function Ut(t){t._watchers=[];var e=t.$options;e.props&&It(t,e.props),e.methods&&Ht(t,e.methods),e.data?Ft(t):P(t._data={},!0),e.computed&&Rt(t,e.computed),e.watch&&e.watch!==ua&&Vt(t,e.watch)}function It(t,e){var o=t.$options.propsData||{},i=t._props={},n=t.$options._propKeys=[],a=!t.$parent;Ta.shouldConvert=a;for(var s in e)!function(a){n.push(a);var s=Y(a,e,o,t);L(i,a,s),a in t||zt(t,"_props",a)}(s);Ta.shouldConvert=!0}function Ft(t){var e=t.$options.data;e=t._data="function"==typeof e?Nt(e,t):e||{},l(e)||(e={});for(var o=Object.keys(e),i=t.$options.props,n=(t.$options.methods,o.length);n--;){var a=o[n];i&&h(i,a)||S(a)||zt(t,"_data",a)}P(e,!0)}function Nt(t,e){try{return t.call(e)}catch(t){return O(t,e,"data()"),{}}}function Rt(t,e){var o=t._computedWatchers=Object.create(null);for(var i in e){var n=e[i],a="function"==typeof n?n:n.get;o[i]=new Wa(t,a||w,w,qa),i in t||jt(t,i,n)}}function jt(t,e,o){"function"==typeof o?(Va.get=Wt(e),Va.set=w):(Va.get=o.get?!1!==o.cache?Wt(e):o.get:w,Va.set=o.set?o.set:w),Object.defineProperty(t,e,Va)}function Wt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),wa.target&&e.depend(),e.value}}function Ht(t,e){t.$options.props;for(var o in e)t[o]=null==e[o]?w:m(e[o],t)}function Vt(t,e){for(var o in e){var i=e[o];if(Array.isArray(i))for(var n=0;n<i.length;n++)qt(t,o,i[n]);else qt(t,o,i)}}function qt(t,e,o,i){return l(o)&&(i=o,o=o.handler),"string"==typeof o&&(o=t[o]),t.$watch(e,o,i)}function Gt(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function Yt(t){var e=Kt(t.$options.inject,t);e&&(Ta.shouldConvert=!1,Object.keys(e).forEach(function(o){L(t,o,e[o])}),Ta.shouldConvert=!0)}function Kt(t,e){if(t){for(var o=Object.create(null),i=ga?Reflect.ownKeys(t):Object.keys(t),n=0;n<i.length;n++)for(var a=i[n],s=t[a],r=e;r;){if(r._provided&&s in r._provided){o[a]=r._provided[s];break}r=r.$parent}return o}}function Jt(t,e,o,n,a){var s={},r=t.options.props;if(i(r))for(var l in r)s[l]=Y(l,r,e||{});else i(o.attrs)&&Xt(s,o.attrs),i(o.props)&&Xt(s,o.props);var c=Object.create(n),d=function(t,e,o,i){return ie(c,t,e,o,i,!0)},u=t.options.render.call(null,d,{data:o,props:s,children:a,parent:n,listeners:o.on||{},injections:Kt(t.options.inject,n),slots:function(){return gt(a,n)}});return u instanceof $a&&(u.functionalContext=n,u.functionalOptions=t.options,o.slot&&((u.data||(u.data={})).slot=o.slot)),u}function Xt(t,e){for(var o in e)t[Wn(o)]=e[o]}function Zt(t,e,a,s,l){if(!o(t)){var c=a.$options._base;if(r(t)&&(t=c.extend(t)),"function"==typeof t){var d;if(o(t.cid)&&(d=t,void 0===(t=vt(d,c,a))))return ut(d,e,a,s,l);e=e||{},ge(t),i(e.model)&&oe(t.options,e);var u=nt(e,t,l);if(n(t.options.functional))return Jt(t,u,e,a,s);var v=e.on;if(e.on=e.nativeOn,n(t.options.abstract)){var _=e.slot;e={},_&&(e.slot=_)}te(e);var p=t.options.name||l;return new $a("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,a,{Ctor:t,propsData:u,listeners:v,tag:l,children:s},d)}}}function Qt(t,e,o,n){var a=t.componentOptions,s={_isComponent:!0,parent:e,propsData:a.propsData,_componentTag:a.tag,_parentVnode:t,_parentListeners:a.listeners,_renderChildren:a.children,_parentElm:o||null,_refElm:n||null},r=t.data.inlineTemplate;return i(r)&&(s.render=r.render,s.staticRenderFns=r.staticRenderFns),new a.Ctor(s)}function te(t){t.hook||(t.hook={});for(var e=0;e<Ya.length;e++){var o=Ya[e],i=t.hook[o],n=Ga[o];t.hook[o]=i?ee(n,i):n}}function ee(t,e){return function(o,i,n,a){t(o,i,n,a),e(o,i,n,a)}}function oe(t,e){var o=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.props||(e.props={}))[o]=e.model.value;var a=e.on||(e.on={});i(a[n])?a[n]=[e.model.callback].concat(a[n]):a[n]=e.model.callback}function ie(t,e,o,i,a,r){return(Array.isArray(o)||s(o))&&(a=i,i=o,o=void 0),n(r)&&(a=Ja),ne(t,e,o,i,a)}function ne(t,e,o,n,a){if(i(o)&&i(o.__ob__))return Ba();if(i(o)&&i(o.is)&&(e=o.is),!e)return Ba();Array.isArray(n)&&"function"==typeof n[0]&&(o=o||{},o.scopedSlots={default:n[0]},n.length=0),a===Ja?n=rt(n):a===Ka&&(n=st(n));var s,r;if("string"==typeof e){var l;r=Zn.getTagNamespace(e),s=Zn.isReservedTag(e)?new $a(Zn.parsePlatformTagName(e),o,n,void 0,void 0,t):i(l=G(t.$options,"components",e))?Zt(l,o,t,n,e):new $a(e,o,n,void 0,void 0,t)}else s=Zt(e,o,t,n);return i(s)?(r&&ae(s,r),s):Ba()}function ae(t,e){if(t.ns=e,"foreignObject"!==t.tag&&i(t.children))for(var n=0,a=t.children.length;n<a;n++){var s=t.children[n];i(s.tag)&&o(s.ns)&&ae(s,e)}}function se(t,e){var o,n,a,s,l;if(Array.isArray(t)||"string"==typeof t)for(o=new Array(t.length),n=0,a=t.length;n<a;n++)o[n]=e(t[n],n);else if("number"==typeof t)for(o=new Array(t),n=0;n<t;n++)o[n]=e(n+1,n);else if(r(t))for(s=Object.keys(t),o=new Array(s.length),n=0,a=s.length;n<a;n++)l=s[n],o[n]=e(t[l],l,n);return i(o)&&(o._isVList=!0),o}function re(t,e,o,i){var n=this.$scopedSlots[t];if(n)return o=o||{},i&&(o=b(b({},i),o)),n(o)||e;var a=this.$slots[t];return a||e}function le(t){return G(this.$options,"filters",t,!0)||Yn}function ce(t,e,o){var i=Zn.keyCodes[e]||o;return Array.isArray(i)?-1===i.indexOf(t):i!==t}function de(t,e,o,i,n){if(o)if(r(o)){Array.isArray(o)&&(o=y(o));var a;for(var s in o)!function(s){if("class"===s||"style"===s||Nn(s))a=t;else{var r=t.attrs&&t.attrs.type;a=i||Zn.mustUseProp(e,r,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(s in a)&&(a[s]=o[s],n)){(t.on||(t.on={}))["update:"+s]=function(t){o[s]=t}}}(s)}else;return t}function ue(t,e){var o=this._staticTrees[t];return o&&!e?Array.isArray(o)?tt(o):Q(o):(o=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),_e(o,"__static__"+t,!1),o)}function ve(t,e,o){return _e(t,"__once__"+e+(o?"_"+o:""),!0),t}function _e(t,e,o){if(Array.isArray(t))for(var i=0;i<t.length;i++)t[i]&&"string"!=typeof t[i]&&pe(t[i],e+"_"+i,o);else pe(t,e,o)}function pe(t,e,o){t.isStatic=!0,t.key=e,t.isOnce=o}function he(t,e){if(e)if(l(e)){var o=t.on=t.on?b({},t.on):{};for(var i in e){var n=o[i],a=e[i];o[i]=n?[].concat(a,n):a}}else;return t}function fe(t){t._vnode=null,t._staticTrees=null;var e=t.$vnode=t.$options._parentVnode,o=e&&e.context;t.$slots=gt(t.$options._renderChildren,o),t.$scopedSlots=Qn,t._c=function(e,o,i,n){return ie(t,e,o,i,n,!1)},t.$createElement=function(e,o,i,n){return ie(t,e,o,i,n,!0)};var i=e&&e.data;L(t,"$attrs",i&&i.attrs,null,!0),L(t,"$listeners",t.$options._parentListeners,null,!0)}function me(t,e){var o=t.$options=Object.create(t.constructor.options);o.parent=e.parent,o.propsData=e.propsData,o._parentVnode=e._parentVnode,o._parentListeners=e._parentListeners,o._renderChildren=e._renderChildren,o._componentTag=e._componentTag,o._parentElm=e._parentElm,o._refElm=e._refElm,e.render&&(o.render=e.render,o.staticRenderFns=e.staticRenderFns)}function ge(t){var e=t.options;if(t.super){var o=ge(t.super);if(o!==t.superOptions){t.superOptions=o;var i=be(t);i&&b(t.extendOptions,i),e=t.options=q(o,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function be(t){var e,o=t.options,i=t.extendOptions,n=t.sealedOptions;for(var a in o)o[a]!==n[a]&&(e||(e={}),e[a]=ye(o[a],i[a],n[a]));return e}function ye(t,e,o){if(Array.isArray(t)){var i=[];o=Array.isArray(o)?o:[o],e=Array.isArray(e)?e:[e];for(var n=0;n<t.length;n++)(e.indexOf(t[n])>=0||o.indexOf(t[n])<0)&&i.push(t[n]);return i}return t}function we(t){this._init(t)}function ke(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var o=g(arguments,1);return o.unshift(this),"function"==typeof t.install?t.install.apply(t,o):"function"==typeof t&&t.apply(null,o),e.push(t),this}}function Ce(t){t.mixin=function(t){return this.options=q(this.options,t),this}}function xe(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var o=this,i=o.cid,n=t._Ctor||(t._Ctor={});if(n[i])return n[i];var a=t.name||o.options.name,s=function(t){this._init(t)};return s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.cid=e++,s.options=q(o.options,t),s.super=o,s.options.props&&Se(s),s.options.computed&&Te(s),s.extend=o.extend,s.mixin=o.mixin,s.use=o.use,Jn.forEach(function(t){s[t]=o[t]}),a&&(s.options.components[a]=s),s.superOptions=o.options,s.extendOptions=t,s.sealedOptions=b({},s.options),n[i]=s,s}}function Se(t){var e=t.options.props;for(var o in e)zt(t.prototype,"_props",o)}function Te(t){var e=t.options.computed;for(var o in e)jt(t.prototype,o,e[o])}function Ee(t){Jn.forEach(function(e){t[e]=function(t,o){return o?("component"===e&&l(o)&&(o.name=o.name||t,o=this.options._base.extend(o)),"directive"===e&&"function"==typeof o&&(o={bind:o,update:o}),this.options[e+"s"][t]=o,o):this.options[e+"s"][t]}})}function Oe(t){return t&&(t.Ctor.options.name||t.tag)}function De(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function $e(t,e,o){for(var i in t){var n=t[i];if(n){var a=Oe(n.componentOptions);a&&!o(a)&&(n!==e&&Me(n),t[i]=null)}}}function Me(t){t&&t.componentInstance.$destroy()}function Ae(t){for(var e=t.data,o=t,n=t;i(n.componentInstance);)n=n.componentInstance._vnode,n.data&&(e=Be(n.data,e));for(;i(o=o.parent);)o.data&&(e=Be(e,o.data));return Pe(e.staticClass,e.class)}function Be(t,e){return{staticClass:Le(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Pe(t,e){return i(t)||i(e)?Le(t,ze(e)):""}function Le(t,e){return t?e?t+" "+e:t:e||""}function ze(t){return Array.isArray(t)?Ue(t):r(t)?Ie(t):"string"==typeof t?t:""}function Ue(t){for(var e,o="",n=0,a=t.length;n<a;n++)i(e=ze(t[n]))&&""!==e&&(o&&(o+=" "),o+=e);return o}function Ie(t){var e="";for(var o in t)t[o]&&(e&&(e+=" "),e+=o);return e}function Fe(t){return ws(t)?"svg":"math"===t?"math":void 0}function Ne(t){if(!ia)return!0;if(Cs(t))return!1;if(t=t.toLowerCase(),null!=xs[t])return xs[t];var e=document.createElement(t);return t.indexOf("-")>-1?xs[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:xs[t]=/HTMLUnknownElement/.test(e.toString())}function Re(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function je(t,e){var o=document.createElement(t);return"select"!==t?o:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&o.setAttribute("multiple","multiple"),o)}function We(t,e){return document.createElementNS(bs[t],e)}function He(t){return document.createTextNode(t)}function Ve(t){return document.createComment(t)}function qe(t,e,o){t.insertBefore(e,o)}function Ge(t,e){t.removeChild(e)}function Ye(t,e){t.appendChild(e)}function Ke(t){return t.parentNode}function Je(t){return t.nextSibling}function Xe(t){return t.tagName}function Ze(t,e){t.textContent=e}function Qe(t,e,o){t.setAttribute(e,o)}function to(t,e){var o=t.data.ref;if(o){var i=t.context,n=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[o])?p(a[o],n):a[o]===n&&(a[o]=void 0):t.data.refInFor?Array.isArray(a[o])?a[o].indexOf(n)<0&&a[o].push(n):a[o]=[n]:a[o]=n}}function eo(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&oo(t,e)||n(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&o(e.asyncFactory.error))}function oo(t,e){if("input"!==t.tag)return!0;var o;return(i(o=t.data)&&i(o=o.attrs)&&o.type)===(i(o=e.data)&&i(o=o.attrs)&&o.type)}function io(t,e,o){var n,a,s={};for(n=e;n<=o;++n)a=t[n].key,i(a)&&(s[a]=n);return s}function no(t,e){(t.data.directives||e.data.directives)&&ao(t,e)}function ao(t,e){var o,i,n,a=t===Es,s=e===Es,r=so(t.data.directives,t.context),l=so(e.data.directives,e.context),c=[],d=[];for(o in l)i=r[o],n=l[o],i?(n.oldValue=i.value,lo(n,"update",e,t),n.def&&n.def.componentUpdated&&d.push(n)):(lo(n,"bind",e,t),n.def&&n.def.inserted&&c.push(n));if(c.length){var u=function(){for(var o=0;o<c.length;o++)lo(c[o],"inserted",e,t)};a?it(e.data.hook||(e.data.hook={}),"insert",u):u()}if(d.length&&it(e.data.hook||(e.data.hook={}),"postpatch",function(){for(var o=0;o<d.length;o++)lo(d[o],"componentUpdated",e,t)}),!a)for(o in r)l[o]||lo(r[o],"unbind",t,t,s)}function so(t,e){var o=Object.create(null);if(!t)return o;var i,n;for(i=0;i<t.length;i++)n=t[i],n.modifiers||(n.modifiers=$s),o[ro(n)]=n,n.def=G(e.$options,"directives",n.name,!0);return o}function ro(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function lo(t,e,o,i,n){var a=t.def&&t.def[e];if(a)try{a(o.elm,t,o,i,n)}catch(i){O(i,o.context,"directive "+t.name+" "+e+" hook")}}function co(t,e){var n=e.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var a,s,r=e.elm,l=t.data.attrs||{},c=e.data.attrs||{};i(c.__ob__)&&(c=e.data.attrs=b({},c));for(a in c)s=c[a],l[a]!==s&&uo(r,a,s);sa&&c.value!==l.value&&uo(r,"value",c.value);for(a in l)o(c[a])&&(fs(a)?r.removeAttributeNS(hs,ms(a)):_s(a)||r.removeAttribute(a))}}function uo(t,e,o){ps(e)?gs(o)?t.removeAttribute(e):t.setAttribute(e,e):_s(e)?t.setAttribute(e,gs(o)||"false"===o?"false":"true"):fs(e)?gs(o)?t.removeAttributeNS(hs,ms(e)):t.setAttributeNS(hs,e,o):gs(o)?t.removeAttribute(e):t.setAttribute(e,o)}function vo(t,e){var n=e.elm,a=e.data,s=t.data;if(!(o(a.staticClass)&&o(a.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var r=Ae(e),l=n._transitionClasses;i(l)&&(r=Le(r,ze(l))),r!==n._prevClass&&(n.setAttribute("class",r),n._prevClass=r)}}function _o(t){function e(){(s||(s=[])).push(t.slice(p,n).trim()),p=n+1}var o,i,n,a,s,r=!1,l=!1,c=!1,d=!1,u=0,v=0,_=0,p=0;for(n=0;n<t.length;n++)if(i=o,o=t.charCodeAt(n),r)39===o&&92!==i&&(r=!1);else if(l)34===o&&92!==i&&(l=!1);else if(c)96===o&&92!==i&&(c=!1);else if(d)47===o&&92!==i&&(d=!1);else if(124!==o||124===t.charCodeAt(n+1)||124===t.charCodeAt(n-1)||u||v||_){switch(o){case 34:l=!0;break;case 39:r=!0;break;case 96:c=!0;break;case 40:_++;break;case 41:_--;break;case 91:v++;break;case 93:v--;break;case 123:u++;break;case 125:u--}if(47===o){for(var h=n-1,f=void 0;h>=0&&" "===(f=t.charAt(h));h--);f&&Ps.test(f)||(d=!0)}}else void 0===a?(p=n+1,a=t.slice(0,n).trim()):e();if(void 0===a?a=t.slice(0,n).trim():0!==p&&e(),s)for(n=0;n<s.length;n++)a=po(a,s[n]);return a}function po(t,e){var o=e.indexOf("(");return o<0?'_f("'+e+'")('+t+")":'_f("'+e.slice(0,o)+'")('+t+","+e.slice(o+1)}function ho(t){console.error("[Vue compiler]: "+t)}function fo(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function mo(t,e,o){(t.props||(t.props=[])).push({name:e,value:o})}function go(t,e,o){(t.attrs||(t.attrs=[])).push({name:e,value:o})}function bo(t,e,o,i,n,a){(t.directives||(t.directives=[])).push({name:e,rawName:o,value:i,arg:n,modifiers:a})}function yo(t,e,o,i,n,a){i&&i.capture&&(delete i.capture,e="!"+e),i&&i.once&&(delete i.once,e="~"+e),i&&i.passive&&(delete i.passive,e="&"+e);var s;i&&i.native?(delete i.native,s=t.nativeEvents||(t.nativeEvents={})):s=t.events||(t.events={});var r={value:o,modifiers:i},l=s[e];Array.isArray(l)?n?l.unshift(r):l.push(r):s[e]=l?n?[r,l]:[l,r]:r}function wo(t,e,o){var i=ko(t,":"+e)||ko(t,"v-bind:"+e);if(null!=i)return _o(i);if(!1!==o){var n=ko(t,e);if(null!=n)return JSON.stringify(n)}}function ko(t,e){var o;if(null!=(o=t.attrsMap[e]))for(var i=t.attrsList,n=0,a=i.length;n<a;n++)if(i[n].name===e){i.splice(n,1);break}return o}function Co(t,e,o){var i=o||{},n=i.number,a=i.trim,s="$$v";a&&(s="(typeof $$v === 'string'? $$v.trim(): $$v)"),n&&(s="_n("+s+")");var r=xo(e,s);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+r+"}"}}function xo(t,e){var o=So(t);return null===o.idx?t+"="+e:"$set("+o.exp+", "+o.idx+", "+e+")"}function So(t){if(os=t,es=os.length,ns=as=ss=0,t.indexOf("[")<0||t.lastIndexOf("]")<es-1)return{exp:t,idx:null};for(;!Eo();)is=To(),Oo(is)?$o(is):91===is&&Do(is);return{exp:t.substring(0,as),idx:t.substring(as+1,ss)}}function To(){return os.charCodeAt(++ns)}function Eo(){return ns>=es}function Oo(t){return 34===t||39===t}function Do(t){var e=1;for(as=ns;!Eo();)if(t=To(),Oo(t))$o(t);else if(91===t&&e++,93===t&&e--,0===e){ss=ns;break}}function $o(t){for(var e=t;!Eo()&&(t=To())!==e;);}function Mo(t,e,o){rs=o;var i=e.value,n=e.modifiers,a=t.tag,s=t.attrsMap.type;if(t.component)return Co(t,i,n),!1;if("select"===a)Po(t,i,n);else if("input"===a&&"checkbox"===s)Ao(t,i,n);else if("input"===a&&"radio"===s)Bo(t,i,n);else if("input"===a||"textarea"===a)Lo(t,i,n);else if(!Zn.isReservedTag(a))return Co(t,i,n),!1;return!0}function Ao(t,e,o){var i=o&&o.number,n=wo(t,"value")||"null",a=wo(t,"true-value")||"true",s=wo(t,"false-value")||"false";mo(t,"checked","Array.isArray("+e+")?_i("+e+","+n+")>-1"+("true"===a?":("+e+")":":_q("+e+","+a+")")),yo(t,zs,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+s+");if(Array.isArray($$a)){var $$v="+(i?"_n("+n+")":n)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+xo(e,"$$c")+"}",null,!0)}function Bo(t,e,o){var i=o&&o.number,n=wo(t,"value")||"null";n=i?"_n("+n+")":n,mo(t,"checked","_q("+e+","+n+")"),yo(t,zs,xo(e,n),null,!0)}function Po(t,e,o){var i=o&&o.number,n='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",a="var $$selectedVal = "+n+";";a=a+" "+xo(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),yo(t,"change",a,null,!0)}function Lo(t,e,o){var i=t.attrsMap.type,n=o||{},a=n.lazy,s=n.number,r=n.trim,l=!a&&"range"!==i,c=a?"change":"range"===i?Ls:"input",d="$event.target.value";r&&(d="$event.target.value.trim()"),s&&(d="_n("+d+")");var u=xo(e,d);l&&(u="if($event.target.composing)return;"+u),mo(t,"value","("+e+")"),yo(t,c,u,null,!0),(r||s)&&yo(t,"blur","$forceUpdate()")}function zo(t){var e;i(t[Ls])&&(e=aa?"change":"input",t[e]=[].concat(t[Ls],t[e]||[]),delete t[Ls]),i(t[zs])&&(e=da?"click":"change",t[e]=[].concat(t[zs],t[e]||[]),delete t[zs])}function Uo(t,e,o,i,n){if(o){var a=e,s=ls;e=function(o){null!==(1===arguments.length?a(o):a.apply(null,arguments))&&Io(t,e,i,s)}}ls.addEventListener(t,e,va?{capture:i,passive:n}:i)}function Io(t,e,o,i){(i||ls).removeEventListener(t,e,o)}function Fo(t,e){if(!o(t.data.on)||!o(e.data.on)){var i=e.data.on||{},n=t.data.on||{};ls=e.elm,zo(i),ot(i,n,Uo,Io,e.context)}}function No(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,a,s=e.elm,r=t.data.domProps||{},l=e.data.domProps||{};i(l.__ob__)&&(l=e.data.domProps=b({},l));for(n in r)o(l[n])&&(s[n]="");for(n in l)if(a=l[n],"textContent"!==n&&"innerHTML"!==n||(e.children&&(e.children.length=0),a!==r[n]))if("value"===n){s._value=a;var c=o(a)?"":String(a);Ro(s,e,c)&&(s.value=c)}else s[n]=a}}function Ro(t,e,o){return!t.composing&&("option"===e.tag||jo(t,o)||Wo(t,o))}function jo(t,e){var o=!0;try{o=document.activeElement!==t}catch(t){}return o&&t.value!==e}function Wo(t,e){var o=t.value,n=t._vModifiers;return i(n)&&n.number?v(o)!==v(e):i(n)&&n.trim?o.trim()!==e.trim():o!==e}function Ho(t){var e=Vo(t.style);return t.staticStyle?b(t.staticStyle,e):e}function Vo(t){return Array.isArray(t)?y(t):"string"==typeof t?Fs(t):t}function qo(t,e){var o,i={};if(e)for(var n=t;n.componentInstance;)n=n.componentInstance._vnode,n.data&&(o=Ho(n.data))&&b(i,o);(o=Ho(t.data))&&b(i,o);for(var a=t;a=a.parent;)a.data&&(o=Ho(a.data))&&b(i,o);return i}function Go(t,e){var n=e.data,a=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(a.staticStyle)&&o(a.style))){var s,r,l=e.elm,c=a.staticStyle,d=a.normalizedStyle||a.style||{},u=c||d,v=Vo(e.data.style)||{};e.data.normalizedStyle=i(v.__ob__)?b({},v):v;var _=qo(e,!0);for(r in u)o(_[r])&&js(l,r,"");for(r in _)(s=_[r])!==u[r]&&js(l,r,null==s?"":s)}}function Yo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var o=" "+(t.getAttribute("class")||"")+" ";o.indexOf(" "+e+" ")<0&&t.setAttribute("class",(o+e).trim())}}function Ko(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var o=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";o.indexOf(i)>=0;)o=o.replace(i," ");o=o.trim(),o?t.setAttribute("class",o):t.removeAttribute("class")}}function Jo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&b(e,qs(t.name||"v")),b(e,t),e}return"string"==typeof t?qs(t):void 0}}function Xo(t){tr(function(){tr(t)})}function Zo(t,e){var o=t._transitionClasses||(t._transitionClasses=[]);o.indexOf(e)<0&&(o.push(e),Yo(t,e))}function Qo(t,e){t._transitionClasses&&p(t._transitionClasses,e),Ko(t,e)}function ti(t,e,o){var i=ei(t,e),n=i.type,a=i.timeout,s=i.propCount;if(!n)return o();var r=n===Ys?Xs:Qs,l=0,c=function(){t.removeEventListener(r,d),o()},d=function(e){e.target===t&&++l>=s&&c()};setTimeout(function(){l<s&&c()},a+1),t.addEventListener(r,d)}function ei(t,e){var o,i=window.getComputedStyle(t),n=i[Js+"Delay"].split(", "),a=i[Js+"Duration"].split(", "),s=oi(n,a),r=i[Zs+"Delay"].split(", "),l=i[Zs+"Duration"].split(", "),c=oi(r,l),d=0,u=0;return e===Ys?s>0&&(o=Ys,d=s,u=a.length):e===Ks?c>0&&(o=Ks,d=c,u=l.length):(d=Math.max(s,c),o=d>0?s>c?Ys:Ks:null,u=o?o===Ys?a.length:l.length:0),{type:o,timeout:d,propCount:u,hasTransform:o===Ys&&er.test(i[Js+"Property"])}}function oi(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,o){return ii(e)+ii(t[o])}))}function ii(t){return 1e3*Number(t.slice(0,-1))}function ni(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var a=Jo(t.data.transition);if(!o(a)&&!i(n._enterCb)&&1===n.nodeType){for(var s=a.css,l=a.type,c=a.enterClass,d=a.enterToClass,u=a.enterActiveClass,_=a.appearClass,p=a.appearToClass,h=a.appearActiveClass,f=a.beforeEnter,m=a.enter,g=a.afterEnter,b=a.enterCancelled,y=a.beforeAppear,w=a.appear,k=a.afterAppear,C=a.appearCancelled,S=a.duration,T=La,E=La.$vnode;E&&E.parent;)E=E.parent,T=E.context;var O=!T._isMounted||!t.isRootInsert;if(!O||w||""===w){var D=O&&_?_:c,$=O&&h?h:u,M=O&&p?p:d,A=O?y||f:f,B=O&&"function"==typeof w?w:m,P=O?k||g:g,L=O?C||b:b,z=v(r(S)?S.enter:S),U=!1!==s&&!sa,I=ri(B),F=n._enterCb=x(function(){U&&(Qo(n,M),Qo(n,$)),F.cancelled?(U&&Qo(n,D),L&&L(n)):P&&P(n),n._enterCb=null});t.data.show||it(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,o=e&&e._pending&&e._pending[t.key];o&&o.tag===t.tag&&o.elm._leaveCb&&o.elm._leaveCb(),B&&B(n,F)}),A&&A(n),U&&(Zo(n,D),Zo(n,$),Xo(function(){Zo(n,M),Qo(n,D),F.cancelled||I||(si(z)?setTimeout(F,z):ti(n,l,F))})),t.data.show&&(e&&e(),B&&B(n,F)),U||I||F()}}}function ai(t,e){function n(){C.cancelled||(t.data.show||((a.parentNode._pending||(a.parentNode._pending={}))[t.key]=t),p&&p(a),y&&(Zo(a,d),Zo(a,_),Xo(function(){Zo(a,u),Qo(a,d),C.cancelled||w||(si(k)?setTimeout(C,k):ti(a,c,C))})),h&&h(a,C),y||w||C())}var a=t.elm;i(a._enterCb)&&(a._enterCb.cancelled=!0,a._enterCb());var s=Jo(t.data.transition);if(o(s))return e();if(!i(a._leaveCb)&&1===a.nodeType){var l=s.css,c=s.type,d=s.leaveClass,u=s.leaveToClass,_=s.leaveActiveClass,p=s.beforeLeave,h=s.leave,f=s.afterLeave,m=s.leaveCancelled,g=s.delayLeave,b=s.duration,y=!1!==l&&!sa,w=ri(h),k=v(r(b)?b.leave:b),C=a._leaveCb=x(function(){a.parentNode&&a.parentNode._pending&&(a.parentNode._pending[t.key]=null),y&&(Qo(a,u),Qo(a,_)),C.cancelled?(y&&Qo(a,d),m&&m(a)):(e(),f&&f(a)),a._leaveCb=null});g?g(n):n()}}function si(t){return"number"==typeof t&&!isNaN(t)}function ri(t){if(o(t))return!1;var e=t.fns;return i(e)?ri(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function li(t,e){!0!==e.data.show&&ni(e)}function ci(t,e,o){var i=e.value,n=t.multiple;if(!n||Array.isArray(i)){for(var a,s,r=0,l=t.options.length;r<l;r++)if(s=t.options[r],n)a=C(i,di(s))>-1,s.selected!==a&&(s.selected=a);else if(k(di(s),i))return void(t.selectedIndex!==r&&(t.selectedIndex=r));n||(t.selectedIndex=-1)}}function di(t){return"_value"in t?t._value:t.value}function ui(t){t.target.composing=!0}function vi(t){t.target.composing&&(t.target.composing=!1,_i(t.target,"input"))}function _i(t,e){var o=document.createEvent("HTMLEvents");o.initEvent(e,!0,!0),t.dispatchEvent(o)}function pi(t){return!t.componentInstance||t.data&&t.data.transition?t:pi(t.componentInstance._vnode)}function hi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?hi(_t(e.children)):t}function fi(t){var e={},o=t.$options;for(var i in o.propsData)e[i]=t[i];var n=o._parentListeners;for(var a in n)e[Wn(a)]=n[a];return e}function mi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function gi(t){for(;t=t.parent;)if(t.data.transition)return!0}function bi(t,e){return e.key===t.key&&e.tag===t.tag}function yi(t){return t.isComment&&t.asyncFactory}function wi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function ki(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ci(t){var e=t.data.pos,o=t.data.newPos,i=e.left-o.left,n=e.top-o.top;if(i||n){t.data.moved=!0;var a=t.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+n+"px)",a.transitionDuration="0s"}}function xi(t,e){var o=e?br(e):mr;if(o.test(t)){for(var i,n,a=[],s=o.lastIndex=0;i=o.exec(t);){n=i.index,n>s&&a.push(JSON.stringify(t.slice(s,n)));var r=_o(i[1].trim());a.push("_s("+r+")"),s=n+i[0].length}return s<t.length&&a.push(JSON.stringify(t.slice(s))),a.join("+")}}function Si(t,e){var o=(e.warn,ko(t,"class"));o&&(t.staticClass=JSON.stringify(o));var i=wo(t,"class",!1);i&&(t.classBinding=i)}function Ti(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function Ei(t,e){var o=(e.warn,ko(t,"style"));if(o){t.staticStyle=JSON.stringify(Fs(o))}var i=wo(t,"style",!1);i&&(t.styleBinding=i)}function Oi(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Di(t,e){e.value&&mo(t,"textContent","_s("+e.value+")")}function $i(t,e){e.value&&mo(t,"innerHTML","_s("+e.value+")")}function Mi(t,e){var o=e?ol:el;return t.replace(o,function(t){return tl[t]})}function Ai(t,e){function o(e){d+=e,t=t.substring(e)}function i(t,o,i){var n,r;if(null==o&&(o=d),null==i&&(i=d),t&&(r=t.toLowerCase()),t)for(n=s.length-1;n>=0&&s[n].lowerCasedTag!==r;n--);else n=0;if(n>=0){for(var l=s.length-1;l>=n;l--)e.end&&e.end(s[l].tag,o,i);s.length=n,a=n&&s[n-1].tag}else"br"===r?e.start&&e.start(t,[],!0,o,i):"p"===r&&(e.start&&e.start(t,[],!1,o,i),e.end&&e.end(t,o,i))}for(var n,a,s=[],r=e.expectHTML,l=e.isUnaryTag||Gn,c=e.canBeLeftOpenTag||Gn,d=0;t;){if(n=t,a&&Zr(a)){var u=0,v=a.toLowerCase(),_=Qr[v]||(Qr[v]=new RegExp("([\\s\\S]*?)(</"+v+"[^>]*>)","i")),p=t.replace(_,function(t,o,i){return u=i.length,Zr(v)||"noscript"===v||(o=o.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),nl(v,o)&&(o=o.slice(1)),e.chars&&e.chars(o),""});d+=t.length-p.length,t=p,i(v,d-u,d)}else{var h=t.indexOf("<");if(0===h){if(Fr.test(t)){var f=t.indexOf("--\x3e");if(f>=0){e.shouldKeepComment&&e.comment(t.substring(4,f)),o(f+3);continue}}if(Nr.test(t)){var m=t.indexOf("]>");if(m>=0){o(m+2);continue}}var g=t.match(Ir);if(g){o(g[0].length);continue}var b=t.match(Ur);if(b){var y=d;o(b[0].length),i(b[1],y,d);continue}var w=function(){var e=t.match(Lr);if(e){var i={tagName:e[1],attrs:[],start:d};o(e[0].length);for(var n,a;!(n=t.match(zr))&&(a=t.match(Ar));)o(a[0].length),i.attrs.push(a);if(n)return i.unarySlash=n[1],o(n[0].length),i.end=d,i}}();if(w){!function(t){var o=t.tagName,n=t.unarySlash;r&&("p"===a&&Tr(o)&&i(a),c(o)&&a===o&&i(o));for(var d=l(o)||!!n,u=t.attrs.length,v=new Array(u),_=0;_<u;_++){var p=t.attrs[_];Rr&&-1===p[0].indexOf('""')&&(""===p[3]&&delete p[3],""===p[4]&&delete p[4],""===p[5]&&delete p[5]);var h=p[3]||p[4]||p[5]||"";v[_]={name:p[1],value:Mi(h,e.shouldDecodeNewlines)}}d||(s.push({tag:o,lowerCasedTag:o.toLowerCase(),attrs:v}),a=o),e.start&&e.start(o,v,d,t.start,t.end)}(w),nl(a,t)&&o(1);continue}}var k=void 0,C=void 0,x=void 0;if(h>=0){for(C=t.slice(h);!(Ur.test(C)||Lr.test(C)||Fr.test(C)||Nr.test(C)||(x=C.indexOf("<",1))<0);)h+=x,C=t.slice(h);k=t.substring(0,h),o(h)}h<0&&(k=t,t=""),e.chars&&k&&e.chars(k)}if(t===n){e.chars&&e.chars(t);break}}i()}function Bi(t,e){function o(t){t.pre&&(r=!1),Gr(t.tag)&&(l=!1)}jr=e.warn||ho,Gr=e.isPreTag||Gn,Yr=e.mustUseProp||Gn,Kr=e.getTagNamespace||Gn,Hr=fo(e.modules,"transformNode"),Vr=fo(e.modules,"preTransformNode"),qr=fo(e.modules,"postTransformNode"),Wr=e.delimiters;var i,n,a=[],s=!1!==e.preserveWhitespace,r=!1,l=!1;return Ai(t,{warn:jr,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,s,c){var d=n&&n.ns||Kr(t);aa&&"svg"===d&&(s=Zi(s));var u={type:1,tag:t,attrsList:s,attrsMap:Ki(s),parent:n,children:[]};d&&(u.ns=d),Xi(u)&&!fa()&&(u.forbidden=!0);for(var v=0;v<Vr.length;v++)Vr[v](u,e);if(r||(Pi(u),u.pre&&(r=!0)),Gr(u.tag)&&(l=!0),r)Li(u);else{Ii(u),Fi(u),Wi(u),zi(u),u.plain=!u.key&&!s.length,Ui(u),Hi(u),Vi(u);for(var _=0;_<Hr.length;_++)Hr[_](u,e);qi(u)}if(i?a.length||i.if&&(u.elseif||u.else)&&ji(i,{exp:u.elseif,block:u}):i=u,n&&!u.forbidden)if(u.elseif||u.else)Ni(u,n);else if(u.slotScope){n.plain=!1;var p=u.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[p]=u}else n.children.push(u),u.parent=n;c?o(u):(n=u,a.push(u));for(var h=0;h<qr.length;h++)qr[h](u,e)},end:function(){var t=a[a.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!l&&t.children.pop(),a.length-=1,n=a[a.length-1],o(t)},chars:function(t){if(n&&(!aa||"textarea"!==n.tag||n.attrsMap.placeholder!==t)){var e=n.children;if(t=l||t.trim()?Ji(n)?t:vl(t):s&&e.length?" ":""){var o;!r&&" "!==t&&(o=xi(t,Wr))?e.push({type:2,expression:o,text:t}):" "===t&&e.length&&" "===e[e.length-1].text||e.push({type:3,text:t})}}},comment:function(t){n.children.push({type:3,text:t,isComment:!0})}}),i}function Pi(t){null!=ko(t,"v-pre")&&(t.pre=!0)}function Li(t){var e=t.attrsList.length;if(e)for(var o=t.attrs=new Array(e),i=0;i<e;i++)o[i]={name:t.attrsList[i].name,value:JSON.stringify(t.attrsList[i].value)};else t.pre||(t.plain=!0)}function zi(t){var e=wo(t,"key");e&&(t.key=e)}function Ui(t){var e=wo(t,"ref");e&&(t.ref=e,t.refInFor=Gi(t))}function Ii(t){var e;if(e=ko(t,"v-for")){var o=e.match(rl);if(!o)return;t.for=o[2].trim();var i=o[1].trim(),n=i.match(ll);n?(t.alias=n[1].trim(),t.iterator1=n[2].trim(),n[3]&&(t.iterator2=n[3].trim())):t.alias=i}}function Fi(t){var e=ko(t,"v-if");if(e)t.if=e,ji(t,{exp:e,block:t});else{null!=ko(t,"v-else")&&(t.else=!0);var o=ko(t,"v-else-if");o&&(t.elseif=o)}}function Ni(t,e){var o=Ri(e.children);o&&o.if&&ji(o,{exp:t.elseif,block:t})}function Ri(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function ji(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function Wi(t){null!=ko(t,"v-once")&&(t.once=!0)}function Hi(t){if("slot"===t.tag)t.slotName=wo(t,"name");else{var e=wo(t,"slot");e&&(t.slotTarget='""'===e?'"default"':e),"template"===t.tag&&(t.slotScope=ko(t,"scope"))}}function Vi(t){var e;(e=wo(t,"is"))&&(t.component=e),null!=ko(t,"inline-template")&&(t.inlineTemplate=!0)}function qi(t){var e,o,i,n,a,s,r,l=t.attrsList;for(e=0,o=l.length;e<o;e++)if(i=n=l[e].name,a=l[e].value,sl.test(i))if(t.hasBindings=!0,s=Yi(i),s&&(i=i.replace(ul,"")),dl.test(i))i=i.replace(dl,""),a=_o(a),r=!1,s&&(s.prop&&(r=!0,"innerHtml"===(i=Wn(i))&&(i="innerHTML")),s.camel&&(i=Wn(i)),s.sync&&yo(t,"update:"+Wn(i),xo(a,"$event"))),r||!t.component&&Yr(t.tag,t.attrsMap.type,i)?mo(t,i,a):go(t,i,a);else if(al.test(i))i=i.replace(al,""),yo(t,i,a,s,!1,jr);else{i=i.replace(sl,"");var c=i.match(cl),d=c&&c[1];d&&(i=i.slice(0,-(d.length+1))),bo(t,i,n,a,d,s)}else{go(t,i,JSON.stringify(a))}}function Gi(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function Yi(t){var e=t.match(ul);if(e){var o={};return e.forEach(function(t){o[t.slice(1)]=!0}),o}}function Ki(t){for(var e={},o=0,i=t.length;o<i;o++)e[t[o].name]=t[o].value;return e}function Ji(t){return"script"===t.tag||"style"===t.tag}function Xi(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function Zi(t){for(var e=[],o=0;o<t.length;o++){var i=t[o];_l.test(i.name)||(i.name=i.name.replace(pl,""),e.push(i))}return e}function Qi(t,e){t&&(Jr=hl(e.staticKeys||""),Xr=e.isReservedTag||Gn,en(t),on(t,!1))}function tn(t){return _("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function en(t){if(t.static=nn(t),1===t.type){if(!Xr(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,o=t.children.length;e<o;e++){var i=t.children[e];en(i),i.static||(t.static=!1)}if(t.ifConditions)for(var n=1,a=t.ifConditions.length;n<a;n++){var s=t.ifConditions[n].block;en(s),s.static||(t.static=!1)}}}function on(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var o=0,i=t.children.length;o<i;o++)on(t.children[o],e||!!t.for);if(t.ifConditions)for(var n=1,a=t.ifConditions.length;n<a;n++)on(t.ifConditions[n].block,e)}}function nn(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Fn(t.tag)||!Xr(t.tag)||an(t)||!Object.keys(t).every(Jr))))}function an(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function sn(t,e,o){var i=e?"nativeOn:{":"on:{";for(var n in t){i+='"'+n+'":'+rn(n,t[n])+","}return i.slice(0,-1)+"}"}function rn(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return rn(t,e)}).join(",")+"]";var o=ml.test(e.value),i=fl.test(e.value);if(e.modifiers){var n="",a="",s=[];for(var r in e.modifiers)yl[r]?(a+=yl[r],gl[r]&&s.push(r)):s.push(r);s.length&&(n+=ln(s)),a&&(n+=a);return"function($event){"+n+(o?e.value+"($event)":i?"("+e.value+")($event)":e.value)+"}"}return o||i?e.value:"function($event){"+e.value+"}"}function ln(t){return"if(!('button' in $event)&&"+t.map(cn).join("&&")+")return null;"}function cn(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var o=gl[t];return"_k($event.keyCode,"+JSON.stringify(t)+(o?","+JSON.stringify(o):"")+")"}function dn(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function un(t,e){t.wrapData=function(o){return"_b("+o+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function vn(t,e){var o=new kl(e);return{render:"with(this){return "+(t?_n(t,o):'_c("div")')+"}",staticRenderFns:o.staticRenderFns}}function _n(t,e){if(t.staticRoot&&!t.staticProcessed)return pn(t,e);if(t.once&&!t.onceProcessed)return hn(t,e);if(t.for&&!t.forProcessed)return gn(t,e);if(t.if&&!t.ifProcessed)return fn(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return Mn(t,e);var o;if(t.component)o=An(t.component,t,e);else{var i=t.plain?void 0:bn(t,e),n=t.inlineTemplate?null:Sn(t,e,!0);o="_c('"+t.tag+"'"+(i?","+i:"")+(n?","+n:"")+")"}for(var a=0;a<e.transforms.length;a++)o=e.transforms[a](t,o);return o}return Sn(t,e)||"void 0"}function pn(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+_n(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function hn(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return fn(t,e);if(t.staticInFor){for(var o="",i=t.parent;i;){if(i.for){o=i.key;break}i=i.parent}return o?"_o("+_n(t,e)+","+e.onceId+++(o?","+o:"")+")":_n(t,e)}return pn(t,e)}function fn(t,e,o,i){return t.ifProcessed=!0,mn(t.ifConditions.slice(),e,o,i)}function mn(t,e,o,i){function n(t){return o?o(t,e):t.once?hn(t,e):_n(t,e)}if(!t.length)return i||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+n(a.block)+":"+mn(t,e,o,i):""+n(a.block)}function gn(t,e,o,i){var n=t.for,a=t.alias,s=t.iterator1?","+t.iterator1:"",r=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(i||"_l")+"(("+n+"),function("+a+s+r+"){return "+(o||_n)(t,e)+"})"}function bn(t,e){var o="{",i=yn(t,e);i&&(o+=i+","),t.key&&(o+="key:"+t.key+","),t.ref&&(o+="ref:"+t.ref+","),t.refInFor&&(o+="refInFor:true,"),t.pre&&(o+="pre:true,"),t.component&&(o+='tag:"'+t.tag+'",');for(var n=0;n<e.dataGenFns.length;n++)o+=e.dataGenFns[n](t);if(t.attrs&&(o+="attrs:{"+Bn(t.attrs)+"},"),t.props&&(o+="domProps:{"+Bn(t.props)+"},"),t.events&&(o+=sn(t.events,!1,e.warn)+","),t.nativeEvents&&(o+=sn(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&(o+="slot:"+t.slotTarget+","),t.scopedSlots&&(o+=kn(t.scopedSlots,e)+","),t.model&&(o+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var a=wn(t,e);a&&(o+=a+",")}return o=o.replace(/,$/,"")+"}",t.wrapData&&(o=t.wrapData(o)),t.wrapListeners&&(o=t.wrapListeners(o)),o}function yn(t,e){var o=t.directives;if(o){var i,n,a,s,r="directives:[",l=!1;for(i=0,n=o.length;i<n;i++){a=o[i],s=!0;var c=e.directives[a.name];c&&(s=!!c(t,a,e.warn)),s&&(l=!0,r+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?',arg:"'+a.arg+'"':"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}return l?r.slice(0,-1)+"]":void 0}}function wn(t,e){var o=t.children[0];if(1===o.type){var i=vn(o,e.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function kn(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(o){return Cn(o,t[o],e)}).join(",")+"])"}function Cn(t,e,o){return e.for&&!e.forProcessed?xn(t,e,o):"{key:"+t+",fn:function("+String(e.attrsMap.scope)+"){return "+("template"===e.tag?Sn(e,o)||"void 0":_n(e,o))+"}}"}function xn(t,e,o){var i=e.for,n=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+i+"),function("+n+a+s+"){return "+Cn(t,e,o)+"})"}function Sn(t,e,o,i,n){var a=t.children;if(a.length){var s=a[0];if(1===a.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag)return(i||_n)(s,e);var r=o?Tn(a,e.maybeComponent):0,l=n||On;return"["+a.map(function(t){return l(t,e)}).join(",")+"]"+(r?","+r:"")}}function Tn(t,e){for(var o=0,i=0;i<t.length;i++){var n=t[i];if(1===n.type){if(En(n)||n.ifConditions&&n.ifConditions.some(function(t){return En(t.block)})){o=2;break}(e(n)||n.ifConditions&&n.ifConditions.some(function(t){return e(t.block)}))&&(o=1)}}return o}function En(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function On(t,e){return 1===t.type?_n(t,e):3===t.type&&t.isComment?$n(t):Dn(t)}function Dn(t){return"_v("+(2===t.type?t.expression:Pn(JSON.stringify(t.text)))+")"}function $n(t){return"_e("+JSON.stringify(t.text)+")"}function Mn(t,e){var o=t.slotName||'"default"',i=Sn(t,e),n="_t("+o+(i?","+i:""),a=t.attrs&&"{"+t.attrs.map(function(t){return Wn(t.name)+":"+t.value}).join(",")+"}",s=t.attrsMap["v-bind"];return!a&&!s||i||(n+=",null"),a&&(n+=","+a),s&&(n+=(a?"":",null")+","+s),n+")"}function An(t,e,o){var i=e.inlineTemplate?null:Sn(e,o,!0);return"_c("+t+","+bn(e,o)+(i?","+i:"")+")"}function Bn(t){for(var e="",o=0;o<t.length;o++){var i=t[o];e+='"'+i.name+'":'+Pn(i.value)+","}return e.slice(0,-1)}function Pn(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Ln(t,e){try{return new Function(t)}catch(o){return e.push({err:o,code:t}),w}}function zn(t){var e=Object.create(null);return function(o,i,n){i=i||{};var a=i.delimiters?String(i.delimiters)+o:o;if(e[a])return e[a];var s=t(o,i),r={},l=[];return r.render=Ln(s.render,l),r.staticRenderFns=s.staticRenderFns.map(function(t){return Ln(t,l)}),e[a]=r}}function Un(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var In=Object.prototype.toString,Fn=_("slot,component",!0),Nn=_("key,ref,slot,is"),Rn=Object.prototype.hasOwnProperty,jn=/-(\w)/g,Wn=f(function(t){return t.replace(jn,function(t,e){return e?e.toUpperCase():""})}),Hn=f(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Vn=/([^-])([A-Z])/g,qn=f(function(t){return t.replace(Vn,"$1-$2").replace(Vn,"$1-$2").toLowerCase()}),Gn=function(t,e,o){return!1},Yn=function(t){return t},Kn="data-server-rendered",Jn=["component","directive","filter"],Xn=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],Zn={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Gn,isReservedAttr:Gn,isUnknownElement:Gn,getTagNamespace:w,parsePlatformTagName:Yn,mustUseProp:Gn,_lifecycleHooks:Xn},Qn=Object.freeze({}),ta=/[^\w.$]/,ea=w,oa="__proto__"in{},ia="undefined"!=typeof window,na=ia&&window.navigator.userAgent.toLowerCase(),aa=na&&/msie|trident/.test(na),sa=na&&na.indexOf("msie 9.0")>0,ra=na&&na.indexOf("edge/")>0,la=na&&na.indexOf("android")>0,ca=na&&/iphone|ipad|ipod|ios/.test(na),da=na&&/chrome\/\d+/.test(na)&&!ra,ua={}.watch,va=!1;if(ia)try{var _a={};Object.defineProperty(_a,"passive",{get:function(){va=!0}}),window.addEventListener("test-passive",null,_a)}catch(t){}var pa,ha,fa=function(){return void 0===pa&&(pa=!ia&&void 0!==e&&"server"===e.process.env.VUE_ENV),pa},ma=ia&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ga="undefined"!=typeof Symbol&&D(Symbol)&&"undefined"!=typeof Reflect&&D(Reflect.ownKeys),ba=function(){function t(){i=!1;var t=o.slice(0);o.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,o=[],i=!1;if("undefined"!=typeof Promise&&D(Promise)){var n=Promise.resolve(),a=function(t){console.error(t)};e=function(){n.then(t).catch(a),ca&&setTimeout(w)}}else if("undefined"==typeof MutationObserver||!D(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var s=1,r=new MutationObserver(t),l=document.createTextNode(String(s));r.observe(l,{characterData:!0}),e=function(){s=(s+1)%2,l.data=String(s)}}return function(t,n){var a;if(o.push(function(){if(t)try{t.call(n)}catch(t){O(t,n,"nextTick")}else a&&a(n)}),i||(i=!0,e()),!t&&"undefined"!=typeof Promise)return new Promise(function(t,e){a=t})}}();ha="undefined"!=typeof Set&&D(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ya=0,wa=function(){this.id=ya++,this.subs=[]};wa.prototype.addSub=function(t){this.subs.push(t)},wa.prototype.removeSub=function(t){p(this.subs,t)},wa.prototype.depend=function(){wa.target&&wa.target.addDep(this)},wa.prototype.notify=function(){for(var t=this.subs.slice(),e=0,o=t.length;e<o;e++)t[e].update()},wa.target=null;var ka=[],Ca=Array.prototype,xa=Object.create(Ca);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Ca[t];T(xa,t,function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];var n,a=e.apply(this,o),s=this.__ob__;switch(t){case"push":case"unshift":n=o;break;case"splice":n=o.slice(2)}return n&&s.observeArray(n),s.dep.notify(),a})});var Sa=Object.getOwnPropertyNames(xa),Ta={shouldConvert:!0},Ea=function(t){if(this.value=t,this.dep=new wa,this.vmCount=0,T(t,"__ob__",this),Array.isArray(t)){(oa?A:B)(t,xa,Sa),this.observeArray(t)}else this.walk(t)};Ea.prototype.walk=function(t){for(var e=Object.keys(t),o=0;o<e.length;o++)L(t,e[o],t[e[o]])},Ea.prototype.observeArray=function(t){for(var e=0,o=t.length;e<o;e++)P(t[e])};var Oa=Zn.optionMergeStrategies;Oa.data=function(t,e,o){return o?N(t,e,o):e&&"function"!=typeof e?t:N.call(this,t,e)},Xn.forEach(function(t){Oa[t]=R}),Jn.forEach(function(t){Oa[t+"s"]=j}),Oa.watch=function(t,e){if(t===ua&&(t=void 0),e===ua&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var o={};b(o,t);for(var i in e){var n=o[i],a=e[i];n&&!Array.isArray(n)&&(n=[n]),o[i]=n?n.concat(a):Array.isArray(a)?a:[a]}return o},Oa.props=Oa.methods=Oa.inject=Oa.computed=function(t,e){if(!t)return e;var o=Object.create(null);return b(o,t),e&&b(o,e),o},Oa.provide=N;var Da=function(t,e){return void 0===e?t:e},$a=function(t,e,o,i,n,a,s,r){this.tag=t,this.data=e,this.children=o,this.text=i,this.elm=n,this.ns=void 0,this.context=a,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=r,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ma={child:{}};Ma.child.get=function(){return this.componentInstance},Object.defineProperties($a.prototype,Ma);var Aa,Ba=function(t){void 0===t&&(t="");var e=new $a;return e.text=t,e.isComment=!0,e},Pa=f(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var o="~"===t.charAt(0);t=o?t.slice(1):t;var i="!"===t.charAt(0);return t=i?t.slice(1):t,{name:t,once:o,capture:i,passive:e}}),La=null,za=[],Ua=[],Ia={},Fa=!1,Na=!1,Ra=0,ja=0,Wa=function(t,e,o,i){this.vm=t,t._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=o,this.id=++ja,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ha,this.newDepIds=new ha,this.expression="","function"==typeof e?this.getter=e:(this.getter=E(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Wa.prototype.get=function(){$(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;O(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Pt(t),M(),this.cleanupDeps()}return t},Wa.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Wa.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var o=t.deps[e];t.newDepIds.has(o.id)||o.removeSub(t)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},Wa.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Bt(this)},Wa.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||r(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){O(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Wa.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Wa.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},Wa.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||p(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Ha=new ha,Va={enumerable:!0,configurable:!0,get:w,set:w},qa={lazy:!0},Ga={init:function(t,e,o,i){if(!t.componentInstance||t.componentInstance._isDestroyed){(t.componentInstance=Qt(t,La,o,i)).$mount(e?t.elm:void 0,e)}else if(t.data.keepAlive){var n=t;Ga.prepatch(n,n)}},prepatch:function(t,e){var o=e.componentOptions;Ct(e.componentInstance=t.componentInstance,o.propsData,o.listeners,e,o.children)},insert:function(t){var e=t.context,o=t.componentInstance;o._isMounted||(o._isMounted=!0,Et(o,"mounted")),t.data.keepAlive&&(e._isMounted?Mt(o):St(o,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Tt(e,!0):e.$destroy())}},Ya=Object.keys(Ga),Ka=1,Ja=2,Xa=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Xa++,e._isVue=!0,t&&t._isComponent?me(e,t):e.$options=q(ge(e.constructor),t||{},e),e._renderProxy=e,e._self=e,wt(e),pt(e),fe(e),Et(e,"beforeCreate"),Yt(e),Ut(e),Gt(e),Et(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(we),function(t){var e={};e.get=function(){return this._data};var o={};o.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",o),t.prototype.$set=z,t.prototype.$delete=U,t.prototype.$watch=function(t,e,o){var i=this;if(l(e))return qt(i,t,e,o);o=o||{},o.user=!0;var n=new Wa(i,t,e,o);return o.immediate&&e.call(i,n.value),function(){n.teardown()}}}(we),function(t){var e=/^hook:/;t.prototype.$on=function(t,o){var i=this,n=this;if(Array.isArray(t))for(var a=0,s=t.length;a<s;a++)i.$on(t[a],o);else(n._events[t]||(n._events[t]=[])).push(o),e.test(t)&&(n._hasHookEvent=!0);return n},t.prototype.$once=function(t,e){function o(){i.$off(t,o),e.apply(i,arguments)}var i=this;return o.fn=e,i.$on(t,o),i},t.prototype.$off=function(t,e){var o=this,i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var n=0,a=t.length;n<a;n++)o.$off(t[n],e);return i}var s=i._events[t];if(!s)return i;if(1===arguments.length)return i._events[t]=null,i;for(var r,l=s.length;l--;)if((r=s[l])===e||r.fn===e){s.splice(l,1);break}return i},t.prototype.$emit=function(t){var e=this,o=e._events[t];if(o){o=o.length>1?g(o):o;for(var i=g(arguments,1),n=0,a=o.length;n<a;n++)try{o[n].apply(e,i)}catch(o){O(o,e,'event handler for "'+t+'"')}}return e}}(we),function(t){t.prototype._update=function(t,e){var o=this;o._isMounted&&Et(o,"beforeUpdate");var i=o.$el,n=o._vnode,a=La;La=o,o._vnode=t,n?o.$el=o.__patch__(n,t):(o.$el=o.__patch__(o.$el,t,e,!1,o.$options._parentElm,o.$options._refElm),o.$options._parentElm=o.$options._refElm=null),La=a,i&&(i.__vue__=null),o.$el&&(o.$el.__vue__=o),o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode&&(o.$parent.$el=o.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Et(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||p(e.$children,t),t._watcher&&t._watcher.teardown();for(var o=t._watchers.length;o--;)t._watchers[o].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Et(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null)}}}(we),function(t){t.prototype.$nextTick=function(t){return ba(t,this)},t.prototype._render=function(){var t=this,e=t.$options,o=e.render,i=e.staticRenderFns,n=e._parentVnode;if(t._isMounted)for(var a in t.$slots)t.$slots[a]=tt(t.$slots[a]);t.$scopedSlots=n&&n.data.scopedSlots||Qn,i&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=n;var s;try{s=o.call(t._renderProxy,t.$createElement)}catch(e){O(e,t,"render function"),s=t._vnode}return s instanceof $a||(s=Ba()),s.parent=n,s},t.prototype._o=ve,t.prototype._n=v,t.prototype._s=u,t.prototype._l=se,t.prototype._t=re,t.prototype._q=k,t.prototype._i=C,t.prototype._m=ue,t.prototype._f=le,t.prototype._k=ce,t.prototype._b=de,t.prototype._v=Z,t.prototype._e=Ba,t.prototype._u=yt,t.prototype._g=he}(we);var Za=[String,RegExp,Array],Qa={name:"keep-alive",abstract:!0,props:{include:Za,exclude:Za},created:function(){this.cache=Object.create(null)},destroyed:function(){var t=this;for(var e in t.cache)Me(t.cache[e])},watch:{include:function(t){$e(this.cache,this._vnode,function(e){return De(t,e)})},exclude:function(t){$e(this.cache,this._vnode,function(e){return!De(t,e)})}},render:function(){var t=_t(this.$slots.default),e=t&&t.componentOptions;if(e){var o=Oe(e);if(o&&(this.include&&!De(this.include,o)||this.exclude&&De(this.exclude,o)))return t;var i=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;this.cache[i]?t.componentInstance=this.cache[i].componentInstance:this.cache[i]=t,t.data.keepAlive=!0}return t}},ts={KeepAlive:Qa};!function(t){var e={};e.get=function(){return Zn},Object.defineProperty(t,"config",e),t.util={warn:ea,extend:b,mergeOptions:q,defineReactive:L},t.set=z,t.delete=U,t.nextTick=ba,t.options=Object.create(null),Jn.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,b(t.options.components,ts),ke(t),Ce(t),xe(t),Ee(t)}(we),Object.defineProperty(we.prototype,"$isServer",{get:fa}),Object.defineProperty(we.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),we.version="2.4.2";var es,os,is,ns,as,ss,rs,ls,cs,ds=_("style,class"),us=_("input,textarea,option,select"),vs=function(t,e,o){return"value"===o&&us(t)&&"button"!==e||"selected"===o&&"option"===t||"checked"===o&&"input"===t||"muted"===o&&"video"===t},_s=_("contenteditable,draggable,spellcheck"),ps=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),hs="http://www.w3.org/1999/xlink",fs=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ms=function(t){return fs(t)?t.slice(6,t.length):""},gs=function(t){return null==t||!1===t},bs={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ys=_("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ws=_("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ks=function(t){return"pre"===t},Cs=function(t){return ys(t)||ws(t)},xs=Object.create(null),Ss=Object.freeze({createElement:je,createElementNS:We,createTextNode:He,createComment:Ve,insertBefore:qe,removeChild:Ge,appendChild:Ye,parentNode:Ke,nextSibling:Je,tagName:Xe,setTextContent:Ze,setAttribute:Qe}),Ts={create:function(t,e){to(e)},update:function(t,e){t.data.ref!==e.data.ref&&(to(t,!0),to(e))},destroy:function(t){to(t,!0)}},Es=new $a("",{},[]),Os=["create","activate","update","remove","destroy"],Ds={create:no,update:no,destroy:function(t){no(t,Es)}},$s=Object.create(null),Ms=[Ts,Ds],As={create:co,update:co},Bs={create:vo,update:vo},Ps=/[\w).+\-_$\]]/,Ls="__r",zs="__c",Us={create:Fo,update:Fo},Is={create:No,update:No},Fs=f(function(t){var e={},o=/;(?![^(]*\))/g,i=/:(.+)/;return t.split(o).forEach(function(t){if(t){var o=t.split(i);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}),Ns=/^--/,Rs=/\s*!important$/,js=function(t,e,o){if(Ns.test(e))t.style.setProperty(e,o);else if(Rs.test(o))t.style.setProperty(e,o.replace(Rs,""),"important");else{var i=Hs(e);if(Array.isArray(o))for(var n=0,a=o.length;n<a;n++)t.style[i]=o[n];else t.style[i]=o}},Ws=["Webkit","Moz","ms"],Hs=f(function(t){if(cs=cs||document.createElement("div").style,"filter"!==(t=Wn(t))&&t in cs)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<Ws.length;o++){var i=Ws[o]+e;if(i in cs)return i}}),Vs={create:Go,update:Go},qs=f(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Gs=ia&&!sa,Ys="transition",Ks="animation",Js="transition",Xs="transitionend",Zs="animation",Qs="animationend";Gs&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Js="WebkitTransition",Xs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Zs="WebkitAnimation",Qs="webkitAnimationEnd"));var tr=ia&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,er=/\b(transform|all)(,|$)/,or=ia?{create:li,activate:li,remove:function(t,e){!0!==t.data.show?ai(t,e):e()}}:{},ir=[As,Bs,Us,Is,Vs,or],nr=ir.concat(Ms),ar=function(t){function e(t){return new $a($.tagName(t).toLowerCase(),{},[],void 0,t)}function a(t,e){function o(){0==--o.listeners&&r(t)}return o.listeners=e,o}function r(t){var e=$.parentNode(t);i(e)&&$.removeChild(e,t)}function l(t,e,o,a,s){if(t.isRootInsert=!s,!c(t,e,o,a)){var r=t.data,l=t.children,d=t.tag;i(d)?(t.elm=t.ns?$.createElementNS(t.ns,d):$.createElement(d,t),m(t),p(t,l,e),i(r)&&f(t,e),v(o,t.elm,a)):n(t.isComment)?(t.elm=$.createComment(t.text),v(o,t.elm,a)):(t.elm=$.createTextNode(t.text),v(o,t.elm,a))}}function c(t,e,o,a){var s=t.data;if(i(s)){var r=i(t.componentInstance)&&s.keepAlive;if(i(s=s.hook)&&i(s=s.init)&&s(t,!1,o,a),i(t.componentInstance))return d(t,e),n(r)&&u(t,e,o,a),!0}}function d(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,h(t)?(f(t,e),m(t)):(to(t),e.push(t))}function u(t,e,o,n){for(var a,s=t;s.componentInstance;)if(s=s.componentInstance._vnode,i(a=s.data)&&i(a=a.transition)){for(a=0;a<O.activate.length;++a)O.activate[a](Es,s);e.push(s);break}v(o,t.elm,n)}function v(t,e,o){i(t)&&(i(o)?o.parentNode===t&&$.insertBefore(t,e,o):$.appendChild(t,e))}function p(t,e,o){if(Array.isArray(e))for(var i=0;i<e.length;++i)l(e[i],o,t.elm,null,!0);else s(t.text)&&$.appendChild(t.elm,$.createTextNode(t.text))}function h(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return i(t.tag)}function f(t,e){for(var o=0;o<O.create.length;++o)O.create[o](Es,t);T=t.data.hook,i(T)&&(i(T.create)&&T.create(Es,t),i(T.insert)&&e.push(t))}function m(t){for(var e,o=t;o;)i(e=o.context)&&i(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,""),o=o.parent;i(e=La)&&e!==t.context&&i(e=e.$options._scopeId)&&$.setAttribute(t.elm,e,"")}function g(t,e,o,i,n,a){for(;i<=n;++i)l(o[i],a,t,e)}function b(t){var e,o,n=t.data;if(i(n))for(i(e=n.hook)&&i(e=e.destroy)&&e(t),e=0;e<O.destroy.length;++e)O.destroy[e](t);if(i(e=t.children))for(o=0;o<t.children.length;++o)b(t.children[o])}function y(t,e,o,n){for(;o<=n;++o){var a=e[o];i(a)&&(i(a.tag)?(w(a),b(a)):r(a.elm))}}function w(t,e){if(i(e)||i(t.data)){var o,n=O.remove.length+1;for(i(e)?e.listeners+=n:e=a(t.elm,n),i(o=t.componentInstance)&&i(o=o._vnode)&&i(o.data)&&w(o,e),o=0;o<O.remove.length;++o)O.remove[o](t,e);i(o=t.data.hook)&&i(o=o.remove)?o(t,e):e()}else r(t.elm)}function k(t,e,n,a,s){for(var r,c,d,u,v=0,_=0,p=e.length-1,h=e[0],f=e[p],m=n.length-1,b=n[0],w=n[m],k=!s;v<=p&&_<=m;)o(h)?h=e[++v]:o(f)?f=e[--p]:eo(h,b)?(C(h,b,a),h=e[++v],b=n[++_]):eo(f,w)?(C(f,w,a),f=e[--p],w=n[--m]):eo(h,w)?(C(h,w,a),k&&$.insertBefore(t,h.elm,$.nextSibling(f.elm)),h=e[++v],w=n[--m]):eo(f,b)?(C(f,b,a),k&&$.insertBefore(t,f.elm,h.elm),f=e[--p],b=n[++_]):(o(r)&&(r=io(e,v,p)),c=i(b.key)?r[b.key]:null,o(c)?(l(b,a,t,h.elm),b=n[++_]):(d=e[c],eo(d,b)?(C(d,b,a),e[c]=void 0,k&&$.insertBefore(t,d.elm,h.elm),b=n[++_]):(l(b,a,t,h.elm),b=n[++_])));v>p?(u=o(n[m+1])?null:n[m+1].elm,g(t,u,n,_,m,a)):_>m&&y(t,e,v,p)}function C(t,e,a,s){if(t!==e){var r=e.elm=t.elm;if(n(t.isAsyncPlaceholder))return void(i(e.asyncFactory.resolved)?S(t.elm,e,a):e.isAsyncPlaceholder=!0);if(n(e.isStatic)&&n(t.isStatic)&&e.key===t.key&&(n(e.isCloned)||n(e.isOnce)))return void(e.componentInstance=t.componentInstance);var l,c=e.data;i(c)&&i(l=c.hook)&&i(l=l.prepatch)&&l(t,e);var d=t.children,u=e.children;if(i(c)&&h(e)){for(l=0;l<O.update.length;++l)O.update[l](t,e);i(l=c.hook)&&i(l=l.update)&&l(t,e)}o(e.text)?i(d)&&i(u)?d!==u&&k(r,d,u,a,s):i(u)?(i(t.text)&&$.setTextContent(r,""),g(r,null,u,0,u.length-1,a)):i(d)?y(r,d,0,d.length-1):i(t.text)&&$.setTextContent(r,""):t.text!==e.text&&$.setTextContent(r,e.text),i(c)&&i(l=c.hook)&&i(l=l.postpatch)&&l(t,e)}}function x(t,e,o){if(n(o)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var a=0;a<e.length;++a)e[a].data.hook.insert(e[a])}function S(t,e,o){if(n(e.isComment)&&i(e.asyncFactory))return e.elm=t,e.isAsyncPlaceholder=!0,!0;e.elm=t;var a=e.tag,s=e.data,r=e.children;if(i(s)&&(i(T=s.hook)&&i(T=T.init)&&T(e,!0),i(T=e.componentInstance)))return d(e,o),!0;if(i(a)){if(i(r))if(t.hasChildNodes()){for(var l=!0,c=t.firstChild,u=0;u<r.length;u++){if(!c||!S(c,r[u],o)){l=!1;break}c=c.nextSibling}if(!l||c)return!1}else p(e,r,o);if(i(s))for(var v in s)if(!M(v)){f(e,o);break}}else t.data!==e.text&&(t.data=e.text);return!0}var T,E,O={},D=t.modules,$=t.nodeOps;for(T=0;T<Os.length;++T)for(O[Os[T]]=[],E=0;E<D.length;++E)i(D[E][Os[T]])&&O[Os[T]].push(D[E][Os[T]]);var M=_("attrs,style,class,staticClass,staticStyle,key");return function(t,a,s,r,c,d){if(o(a))return void(i(t)&&b(t));var u=!1,v=[];if(o(t))u=!0,l(a,v,c,d);else{var _=i(t.nodeType);if(!_&&eo(t,a))C(t,a,v,r);else{if(_){if(1===t.nodeType&&t.hasAttribute(Kn)&&(t.removeAttribute(Kn),s=!0),n(s)&&S(t,a,v))return x(a,v,!0),t;t=e(t)}var p=t.elm,f=$.parentNode(p);if(l(a,v,p._leaveCb?null:f,$.nextSibling(p)),i(a.parent)){for(var m=a.parent;m;)m.elm=a.elm,m=m.parent;if(h(a))for(var g=0;g<O.create.length;++g)O.create[g](Es,a.parent)}i(f)?y(f,[t],0,0):i(t.tag)&&b(t)}}return x(a,v,u),a.elm}}({nodeOps:Ss,modules:nr}),sr=_("text,number,password,search,email,tel,url");sa&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&_i(t,"input")});var rr={inserted:function(t,e,o){if("select"===o.tag){var i=function(){ci(t,e,o.context)};i(),(aa||ra)&&setTimeout(i,0),t._vOptions=[].map.call(t.options,di)}else("textarea"===o.tag||sr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("change",vi),la||(t.addEventListener("compositionstart",ui),t.addEventListener("compositionend",vi)),sa&&(t.vmodel=!0)))},componentUpdated:function(t,e,o){if("select"===o.tag){ci(t,e,o.context);var i=t._vOptions;(t._vOptions=[].map.call(t.options,di)).some(function(t,e){return!k(t,i[e])})&&_i(t,"change")}}},lr={bind:function(t,e,o){var i=e.value;o=pi(o);var n=o.data&&o.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;i&&n?(o.data.show=!0,ni(o,function(){t.style.display=a})):t.style.display=i?a:"none"},update:function(t,e,o){var i=e.value;i!==e.oldValue&&(o=pi(o),o.data&&o.data.transition?(o.data.show=!0,i?ni(o,function(){t.style.display=t.__vOriginalDisplay}):ai(o,function(){t.style.display="none"})):t.style.display=i?t.__vOriginalDisplay:"none")},unbind:function(t,e,o,i,n){n||(t.style.display=t.__vOriginalDisplay)}},cr={model:rr,show:lr},dr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},ur={name:"transition",props:dr,abstract:!0,render:function(t){var e=this,o=this.$options._renderChildren;if(o&&(o=o.filter(function(t){return t.tag||yi(t)}),o.length)){var i=this.mode,n=o[0];if(gi(this.$vnode))return n;var a=hi(n);if(!a)return n;if(this._leaving)return mi(t,n);var r="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?r+"comment":r+a.tag:s(a.key)?0===String(a.key).indexOf(r)?a.key:r+a.key:a.key;var l=(a.data||(a.data={})).transition=fi(this),c=this._vnode,d=hi(c);if(a.data.directives&&a.data.directives.some(function(t){return"show"===t.name})&&(a.data.show=!0),d&&d.data&&!bi(a,d)&&!yi(d)){var u=d&&(d.data.transition=b({},l));if("out-in"===i)return this._leaving=!0,it(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),mi(t,n);if("in-out"===i){if(yi(a))return c;var v,_=function(){v()};it(l,"afterEnter",_),it(l,"enterCancelled",_),it(u,"delayLeave",function(t){v=t})}}return n}}},vr=b({tag:String,moveClass:String},dr);delete vr.mode;var _r={props:vr,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",o=Object.create(null),i=this.prevChildren=this.children,n=this.$slots.default||[],a=this.children=[],s=fi(this),r=0;r<n.length;r++){var l=n[r];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))a.push(l),o[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(i){for(var c=[],d=[],u=0;u<i.length;u++){var v=i[u];v.data.transition=s,v.data.pos=v.elm.getBoundingClientRect(),o[v.key]?c.push(v):d.push(v)}this.kept=t(e,null,c),this.removed=d}return t(e,null,a)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(wi),t.forEach(ki),t.forEach(Ci);var o=document.body;o.offsetHeight;t.forEach(function(t){if(t.data.moved){var o=t.elm,i=o.style;Zo(o,e),i.transform=i.WebkitTransform=i.transitionDuration="",o.addEventListener(Xs,o._moveCb=function t(i){i&&!/transform$/.test(i.propertyName)||(o.removeEventListener(Xs,t),o._moveCb=null,Qo(o,e))})}})}},methods:{hasMove:function(t,e){if(!Gs)return!1;if(this._hasMove)return this._hasMove;var o=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Ko(o,t)}),Yo(o,e),o.style.display="none",this.$el.appendChild(o);var i=ei(o);return this.$el.removeChild(o),this._hasMove=i.hasTransform}}},pr={Transition:ur,TransitionGroup:_r};we.config.mustUseProp=vs,we.config.isReservedTag=Cs,we.config.isReservedAttr=ds,we.config.getTagNamespace=Fe,we.config.isUnknownElement=Ne,b(we.options.directives,cr),b(we.options.components,pr),we.prototype.__patch__=ia?ar:w,we.prototype.$mount=function(t,e){return t=t&&ia?Re(t):void 0,kt(this,t,e)},setTimeout(function(){Zn.devtools&&ma&&ma.emit("init",we)},0);var hr,fr=!!ia&&function(t,e){var o=document.createElement("div");return o.innerHTML='<div a="'+t+'"/>',o.innerHTML.indexOf(e)>0}("\n","&#10;"),mr=/\{\{((?:.|\n)+?)\}\}/g,gr=/[-.*+?^${}()|[\]\/\\]/g,br=f(function(t){var e=t[0].replace(gr,"\\$&"),o=t[1].replace(gr,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+o,"g")}),yr={staticKeys:["staticClass"],transformNode:Si,genData:Ti},wr={staticKeys:["staticStyle"],transformNode:Ei,genData:Oi},kr=[yr,wr],Cr={model:Mo,text:Di,html:$i},xr=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Sr=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Tr=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Er={expectHTML:!0,modules:kr,directives:Cr,isPreTag:ks,isUnaryTag:xr,mustUseProp:vs,canBeLeftOpenTag:Sr,isReservedTag:Cs,getTagNamespace:Fe,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(kr)},Or={decode:function(t){return hr=hr||document.createElement("div"),hr.innerHTML=t,hr.textContent}},Dr=/([^\s"'<>\/=]+)/,$r=/(?:=)/,Mr=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Ar=new RegExp("^\\s*"+Dr.source+"(?:\\s*("+$r.source+")\\s*(?:"+Mr.join("|")+"))?"),Br="[a-zA-Z_][\\w\\-\\.]*",Pr="((?:"+Br+"\\:)?"+Br+")",Lr=new RegExp("^<"+Pr),zr=/^\s*(\/?)>/,Ur=new RegExp("^<\\/"+Pr+"[^>]*>"),Ir=/^<!DOCTYPE [^>]+>/i,Fr=/^<!--/,Nr=/^<!\[/,Rr=!1;"x".replace(/x(.)?/g,function(t,e){Rr=""===e});var jr,Wr,Hr,Vr,qr,Gr,Yr,Kr,Jr,Xr,Zr=_("script,style,textarea",!0),Qr={},tl={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n"},el=/&(?:lt|gt|quot|amp);/g,ol=/&(?:lt|gt|quot|amp|#10);/g,il=_("pre,textarea",!0),nl=function(t,e){return t&&il(t)&&"\n"===e[0]},al=/^@|^v-on:/,sl=/^v-|^@|^:/,rl=/(.*?)\s+(?:in|of)\s+(.*)/,ll=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,cl=/:(.*)$/,dl=/^:|^v-bind:/,ul=/\.[^.]+/g,vl=f(Or.decode),_l=/^xmlns:NS\d+/,pl=/^NS\d+:/,hl=f(tn),fl=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,ml=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,gl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},bl=function(t){return"if("+t+")return null;"},yl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:bl("$event.target !== $event.currentTarget"),ctrl:bl("!$event.ctrlKey"),shift:bl("!$event.shiftKey"),alt:bl("!$event.altKey"),meta:bl("!$event.metaKey"),left:bl("'button' in $event && $event.button !== 0"),middle:bl("'button' in $event && $event.button !== 1"),right:bl("'button' in $event && $event.button !== 2")},wl={on:dn,bind:un,cloak:w},kl=function(t){this.options=t,this.warn=t.warn||ho,this.transforms=fo(t.modules,"transformCode"),this.dataGenFns=fo(t.modules,"genData"),this.directives=b(b({},wl),t.directives);var e=t.isReservedTag||Gn;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},Cl=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function o(o,i){var n=Object.create(e),a=[],s=[];if(n.warn=function(t,e){(e?s:a).push(t)},i){i.modules&&(n.modules=(e.modules||[]).concat(i.modules)),i.directives&&(n.directives=b(Object.create(e.directives),i.directives));for(var r in i)"modules"!==r&&"directives"!==r&&(n[r]=i[r])}var l=t(o,n);return l.errors=a,l.tips=s,l}return{compile:o,compileToFunctions:zn(o)}}}(function(t,e){var o=Bi(t.trim(),e);Qi(o,e);var i=vn(o,e);return{ast:o,render:i.render,staticRenderFns:i.staticRenderFns}})),xl=Cl(Er),Sl=xl.compileToFunctions,Tl=f(function(t){var e=Re(t);return e&&e.innerHTML}),El=we.prototype.$mount;we.prototype.$mount=function(t,e){if((t=t&&Re(t))===document.body||t===document.documentElement)return this;var o=this.$options;if(!o.render){var i=o.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=Tl(i));else{if(!i.nodeType)return this;i=i.innerHTML}else t&&(i=Un(t));if(i){var n=Sl(i,{shouldDecodeNewlines:fr,delimiters:o.delimiters,comments:o.comments},this),a=n.render,s=n.staticRenderFns;o.render=a,o.staticRenderFns=s}}return El.call(this,t,e)},we.compile=Sl,t.exports=we}).call(e,o(19))},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={inserted:function(t,e){e.value&&t.focus()}}},function(t,e,o){"use strict";function i(t,e){if(t){e=e||t.parentElement;var o=t.offsetTop,i=e.scrollTop,n=o+t.offsetHeight,a=e.offsetHeight;return o>=i&&n<=a}}function n(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:null,marginTop:0};t&&(e.container=e.container||t.parentElement,i(t,e.container)||(e.container.scrollTop=t.offsetTop-e.marginTop))}function a(t){t&&(t.scrollTop=0)}Object.defineProperty(e,"__esModule",{value:!0}),e.inView=i,e.scrollIntoView=n,e.resetScroll=a,e.default={inView:i,scrollIntoView:n,resetScroll:a}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});for(var i=[],n=0;n<256;n++)i[n]=(n<16?"0":"")+n.toString(16);var a=function(){var t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,o=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return i[255&t]+i[t>>8&255]+i[t>>16&255]+i[t>>24&255]+"-"+i[255&e]+i[e>>8&255]+"-"+i[e>>16&15|64]+i[e>>24&255]+"-"+i[63&o|128]+i[o>>8&255]+"-"+i[o>>16&255]+i[o>>24&255]+i[255&n]+i[n>>8&255]+i[n>>16&255]+i[n>>24&255]},s=function(t){return(t=t||"")+a().split("-")[0]};e.default={generate:a,short:s}},function(t,e,o){"use strict";function i(t,e){var o=e.length,i=t.length;if(i>o)return!1;if(i===o)return t===e;t:for(var n=0,a=0;n<i;n++){for(var s=t.charCodeAt(n);a<o;)if(e.charCodeAt(a++)===s)continue t;return!1}return!0}t.exports=i},function(t,e,o){(function(e){function o(t,e,o){function n(e){var o=h,i=f;return h=f=void 0,x=e,g=t.apply(i,o)}function a(t){return x=t,b=setTimeout(d,e),S?n(t):g}function l(t){var o=t-C,i=t-x,n=e-o;return T?w(n,m-i):n}function c(t){var o=t-C,i=t-x;return void 0===C||o>=e||o<0||T&&i>=m}function d(){var t=k();if(c(t))return u(t);b=setTimeout(d,l(t))}function u(t){return b=void 0,E&&h?n(t):(h=f=void 0,g)}function v(){void 0!==b&&clearTimeout(b),x=0,h=C=f=b=void 0}function _(){return void 0===b?g:u(k())}function p(){var t=k(),o=c(t);if(h=arguments,f=this,C=t,o){if(void 0===b)return a(C);if(T)return b=setTimeout(d,e),n(C)}return void 0===b&&(b=setTimeout(d,e)),g}var h,f,m,g,b,C,x=0,S=!1,T=!1,E=!0;if("function"!=typeof t)throw new TypeError(r);return e=s(e)||0,i(o)&&(S=!!o.leading,T="maxWait"in o,m=T?y(s(o.maxWait)||0,e):m,E="trailing"in o?!!o.trailing:E),p.cancel=v,p.flush=_,p}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function n(t){return!!t&&"object"==typeof t}function a(t){return"symbol"==typeof t||n(t)&&b.call(t)==c}function s(t){if("number"==typeof t)return t;if(a(t))return l;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(d,"");var o=v.test(t);return o||_.test(t)?p(t.slice(2),o?2:8):u.test(t)?l:+t}var r="Expected a function",l=NaN,c="[object Symbol]",d=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,_=/^0o[0-7]+$/i,p=parseInt,h="object"==typeof e&&e&&e.Object===Object&&e,f="object"==typeof self&&self&&self.Object===Object&&self,m=h||f||Function("return this")(),g=Object.prototype,b=g.toString,y=Math.max,w=Math.min,k=function(){return m.Date.now()};t.exports=o}).call(e,o(19))},function(t,e,o){var i,n,a;/*! tether-drop 1.4.1 */ !function(s,r){n=[o(28)],i=r,void 0!==(a="function"==typeof i?i.apply(e,n):i)&&(t.exports=a)}(0,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){var e=t.split(" "),o=r(e,2),i=o[0],n=o[1];if(["left","right"].indexOf(i)>=0){var a=[n,i];i=a[0],n=a[1]}return[i,n].join(" ")}function n(t,e){for(var o=void 0,i=[];-1!==(o=t.indexOf(e));)i.push(t.splice(o,1));return i}function a(){var r=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],d=function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return new(s.apply(b,[null].concat(e)))};u(d,{createContext:a,drops:[],defaults:{}});var m={classPrefix:"drop",defaults:{position:"bottom left",openOn:"click",beforeClose:null,constrainToScrollParent:!0,constrainToWindow:!0,classes:"",remove:!1,openDelay:0,closeDelay:50,focusDelay:null,blurDelay:null,hoverOpenDelay:null,hoverCloseDelay:null,tetherOptions:{}}};u(d,m,r),u(d.defaults,m.defaults,r.defaults),void 0===k[d.classPrefix]&&(k[d.classPrefix]=[]),d.updateBodyClasses=function(){for(var t=!1,e=k[d.classPrefix],o=e.length,i=0;i<o;++i)if(e[i].isOpened()){t=!0;break}t?v(document.body,d.classPrefix+"-open"):_(document.body,d.classPrefix+"-open")};var b=function(a){function s(t){if(e(this,s),c(Object.getPrototypeOf(s.prototype),"constructor",this).call(this),this.options=u({},d.defaults,t),this.target=this.options.target,void 0===this.target)throw new Error("Drop Error: You must provide a target.");var o="data-"+d.classPrefix,i=this.target.getAttribute(o);i&&null==this.options.content&&(this.options.content=i);for(var n=["position","openOn"],a=0;a<n.length;++a){var r=this.target.getAttribute(o+"-"+n[a]);r&&null==this.options[n[a]]&&(this.options[n[a]]=r)}this.options.classes&&!1!==this.options.addTargetClasses&&v(this.target,this.options.classes),d.drops.push(this),k[d.classPrefix].push(this),this._boundEvents=[],this.bindMethods(),this.setupElements(),this.setupEvents(),this.setupTether()}return o(s,a),l(s,[{key:"_on",value:function(t,e,o){this._boundEvents.push({element:t,event:e,handler:o}),t.addEventListener(e,o)}},{key:"bindMethods",value:function(){this.transitionEndHandler=this._transitionEndHandler.bind(this)}},{key:"setupElements",value:function(){var t=this;if(this.drop=document.createElement("div"),v(this.drop,d.classPrefix),this.options.classes&&v(this.drop,this.options.classes),this.content=document.createElement("div"),v(this.content,d.classPrefix+"-content"),"function"==typeof this.options.content){var e=function(){var e=t.options.content.call(t,t);if("string"==typeof e)t.content.innerHTML=e;else{if("object"!=typeof e)throw new Error("Drop Error: Content function should return a string or HTMLElement.");t.content.innerHTML="",t.content.appendChild(e)}};e(),this.on("open",e.bind(this))}else"object"==typeof this.options.content?this.content.appendChild(this.options.content):this.content.innerHTML=this.options.content;this.drop.appendChild(this.content)}},{key:"setupTether",value:function(){var e=this.options.position.split(" ");e[0]=w[e[0]],e=e.join(" ");var o=[];this.options.constrainToScrollParent?o.push({to:"scrollParent",pin:"top, bottom",attachment:"together none"}):o.push({to:"scrollParent"}),!1!==this.options.constrainToWindow?o.push({to:"window",attachment:"together"}):o.push({to:"window"});var n={element:this.drop,target:this.target,attachment:i(e),targetAttachment:i(this.options.position),classPrefix:d.classPrefix,offset:"0 0",targetOffset:"0 0",enabled:!1,constraints:o,addTargetClasses:this.options.addTargetClasses};!1!==this.options.tetherOptions&&(this.tether=new t(u({},n,this.options.tetherOptions)))}},{key:"setupEvents",value:function(){var t=this;if(this.options.openOn){if("always"===this.options.openOn)return void setTimeout(this.open.bind(this));var e=this.options.openOn.split(" ");if(e.indexOf("click")>=0)for(var o=function(e){t.toggle(e),e.preventDefault()},i=function(e){t.isOpened()&&(e.target===t.drop||t.drop.contains(e.target)||e.target===t.target||t.target.contains(e.target)||t.close(e))},n=0;n<f.length;++n){var a=f[n];this._on(this.target,a,o),this._on(document,a,i)}var s=null,r=null,l=function(e){null!==r?clearTimeout(r):s=setTimeout(function(){t.open(e),s=null},("focus"===e.type?t.options.focusDelay:t.options.hoverOpenDelay)||t.options.openDelay)},c=function(e){null!==s?clearTimeout(s):r=setTimeout(function(){t.close(e),r=null},("blur"===e.type?t.options.blurDelay:t.options.hoverCloseDelay)||t.options.closeDelay)};e.indexOf("hover")>=0&&(this._on(this.target,"mouseover",l),this._on(this.drop,"mouseover",l),this._on(this.target,"mouseout",c),this._on(this.drop,"mouseout",c)),e.indexOf("focus")>=0&&(this._on(this.target,"focus",l),this._on(this.drop,"focus",l),this._on(this.target,"blur",c),this._on(this.drop,"blur",c))}}},{key:"isOpened",value:function(){if(this.drop)return p(this.drop,d.classPrefix+"-open")}},{key:"toggle",value:function(t){this.isOpened()?this.close(t):this.open(t)}},{key:"open",value:function(t){var e=this;this.isOpened()||(this.drop.parentNode||document.body.appendChild(this.drop),void 0!==this.tether&&this.tether.enable(),v(this.drop,d.classPrefix+"-open"),v(this.drop,d.classPrefix+"-open-transitionend"),setTimeout(function(){e.drop&&v(e.drop,d.classPrefix+"-after-open")}),void 0!==this.tether&&this.tether.position(),this.trigger("open"),d.updateBodyClasses())}},{key:"_transitionEndHandler",value:function(t){t.target===t.currentTarget&&(p(this.drop,d.classPrefix+"-open")||_(this.drop,d.classPrefix+"-open-transitionend"),this.drop.removeEventListener(g,this.transitionEndHandler))}},{key:"beforeCloseHandler",value:function(t){var e=!0;return this.isClosing||"function"!=typeof this.options.beforeClose||(this.isClosing=!0,e=!1!==this.options.beforeClose(t,this)),this.isClosing=!1,e}},{key:"close",value:function(t){this.isOpened()&&this.beforeCloseHandler(t)&&(_(this.drop,d.classPrefix+"-open"),_(this.drop,d.classPrefix+"-after-open"),this.drop.addEventListener(g,this.transitionEndHandler),this.trigger("close"),void 0!==this.tether&&this.tether.disable(),d.updateBodyClasses(),this.options.remove&&this.remove(t))}},{key:"remove",value:function(t){this.close(t),this.drop.parentNode&&this.drop.parentNode.removeChild(this.drop)}},{key:"position",value:function(){this.isOpened()&&void 0!==this.tether&&this.tether.position()}},{key:"destroy",value:function(){this.remove(),void 0!==this.tether&&this.tether.destroy();for(var t=0;t<this._boundEvents.length;++t){var e=this._boundEvents[t],o=e.element,i=e.event,a=e.handler;o.removeEventListener(i,a)}this._boundEvents=[],this.tether=null,this.drop=null,this.content=null,this.target=null,n(k[d.classPrefix],this),n(d.drops,this)}}]),s}(h);return d}var s=Function.prototype.bind,r=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(i=(s=r.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&r.return&&r.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),c=function(t,e,o){for(var i=!0;i;){var n=t,a=e,s=o;i=!1,null===n&&(n=Function.prototype);var r=Object.getOwnPropertyDescriptor(n,a);if(void 0!==r){if("value"in r)return r.value;var l=r.get;if(void 0===l)return;return l.call(s)}var c=Object.getPrototypeOf(n);if(null===c)return;t=c,e=a,o=s,i=!0,r=c=void 0}},d=t.Utils,u=d.extend,v=d.addClass,_=d.removeClass,p=d.hasClass,h=d.Evented,f=["click"];"ontouchstart"in document.documentElement&&f.push("touchstart");var m={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},g="";for(var b in m)if({}.hasOwnProperty.call(m,b)){var y=document.createElement("p");void 0!==y.style[b]&&(g=m[b])}var w={left:"right",right:"left",top:"bottom",bottom:"top",middle:"middle",center:"center"},k={},C=a();return document.addEventListener("DOMContentLoaded",function(){C.updateBodyClasses()}),C})},function(t,e,o){var i,n;/*! tether 1.4.0 */ !function(a,s){i=s,void 0!==(n="function"==typeof i?i.call(e,o,e,t):i)&&(t.exports=n)}(0,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var a=t.ownerDocument.defaultView.frameElement;if(a){var s=n(a);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function a(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var a=void 0;try{a=getComputedStyle(n)}catch(t){}if(void 0===a||null===a)return i.push(n),i;var s=a,r=s.overflow,l=s.overflowX;/(auto|scroll)/.test(r+s.overflowY+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(a.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){S&&document.body.removeChild(S),S=null}function r(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),a=O();return i.top-=a.top,i.left-=a.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function l(t){return t.offsetParent||document.documentElement}function c(){if(D)return D;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");d(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return D={width:n,height:n}}function d(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function u(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=p(t).replace(o," ");h(t,i)}}function v(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{u(t,e);var o=p(t)+" "+e;h(t,o)}}function _(t,e){if(void 0!==t.classList)return t.classList.contains(e);var o=p(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function p(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function h(t,e){t.setAttribute("class",e)}function f(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&_(t,o)&&u(t,o)}),e.forEach(function(e){_(t,e)||v(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function b(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function y(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return o.forEach(function(e){var o=e.top,i=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}function w(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function k(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,o=r(e),i=o,n=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],t.ownerDocument!==document){var a=t.ownerDocument.defaultView;e[0]+=a.pageXOffset,e[1]+=a.pageYOffset,e[2]+=a.pageXOffset,e[3]+=a.pageYOffset}K.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(n["border"+t+"Width"]):e[o]-=parseFloat(n["border"+t+"Width"])})}(),e}var C=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),x=void 0;void 0===x&&(x={modules:[]});var S=null,T=function(){var t=0;return function(){return++t}}(),E={},O=function(){var t=S;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",T()),d(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),S=t);var e=t.getAttribute("data-tether-id");return void 0===E[e]&&(E[e]=n(t),M(function(){delete E[e]})),E[e]},D=null,$=[],M=function(t){$.push(t)},A=function(){for(var t=void 0;t=$.pop();)t()},B=function(){function t(){i(this,t)}return C(t,[{key:"on",value:function(t,e,o){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:i})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,i=Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(;e<this.bindings[t].length;){var a=this.bindings[t][e],s=a.handler,r=a.ctx,l=a.once,c=r;void 0===c&&(c=this),s.apply(c,i),l?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:n,getScrollParents:a,getBounds:r,getOffsetParent:l,extend:d,addClass:v,removeClass:u,hasClass:_,updateClasses:f,defer:M,flush:A,uniqueId:T,Evented:B,getScrollBarSize:c,removeUtilElements:s};var P=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(i=(s=r.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&r.return&&r.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),L=function(t,e,o){for(var i=!0;i;){var n=t,a=e,s=o;i=!1,null===n&&(n=Function.prototype);var r=Object.getOwnPropertyDescriptor(n,a);if(void 0!==r){if("value"in r)return r.value;var l=r.get;if(void 0===l)return;return l.call(s)}var c=Object.getPrototypeOf(n);if(null===c)return;t=c,e=a,o=s,i=!0,r=c=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var z=x.Utils,a=z.getScrollParents,r=z.getBounds,l=z.getOffsetParent,d=z.extend,v=z.addClass,u=z.removeClass,f=z.updateClasses,M=z.defer,A=z.flush,c=z.getScrollBarSize,s=z.removeUtilElements,U=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var i=e[o];if(void 0!==t.style[i])return i}}(),I=[],F=function(){I.forEach(function(t){t.position(!1)}),A()};!function(){var t=null,e=null,o=null,i=function i(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(o=setTimeout(i,250));void 0!==t&&b()-t<10||(null!=o&&(clearTimeout(o),o=null),t=b(),F(),e=b()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var N={center:"center",left:"right",right:"left"},R={middle:"middle",top:"bottom",bottom:"top"},j={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},W=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=N[e.left]),"auto"===i&&(i=R[e.top]),{left:o,top:i}},H=function(t){var e=t.left,o=t.top;return void 0!==j[t.left]&&(e=j[t.left]),void 0!==j[t.top]&&(o=j[t.top]),{left:e,top:o}},V=function(t){var e=t.split(" "),o=P(e,2);return{top:o[0],left:o[1]}},q=V,G=function(t){function e(t){var o=this;i(this,e),L(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),I.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(o)}),this.position()}return m(e,t),C(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=d(i,t);var n=this.options,s=n.element,r=n.target,l=n.targetModifier;if(this.element=s,this.target=r,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=a(this.target),!1!==this.options.enabled&&this.enable(o)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return r(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=r(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=r(o);var i=getComputedStyle(o),n=o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,a=0;n&&(a=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-a,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;s<408&&this.target===document.body&&(l=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var c=this.target.scrollTop/(o.scrollHeight-s);return e.top=c*(s-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;u(this.target,this.getClass("enabled")),u(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),I.forEach(function(e,o){e===t&&I.splice(o,1)}),0===I.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var a=[];i.forEach(function(t){a.push(o.getClass("element-attached")+"-"+t),a.push(o.getClass("target-attached")+"-"+t)}),M(function(){void 0!==o._addAttachClasses&&(f(o.element,o._addAttachClasses,a),!1!==o.options.addTargetClasses&&f(o.target,o._addAttachClasses,a),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=W(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return r(t.element)}),n=i.width,a=i.height;if(0===n&&0===a&&void 0!==this.lastSize){var s=this.lastSize;n=s.width,a=s.height}else this.lastSize={width:n,height:a};var d=this.cache("target-bounds",function(){return t.getTargetBounds()}),u=d,v=w(H(this.attachment),{width:n,height:a}),_=w(H(o),u),p=w(this.offset,{width:n,height:a}),h=w(this.targetOffset,u);v=y(v,p),_=y(_,h);for(var f=d.left+_.left-v.left,m=d.top+_.top-v.top,g=0;g<x.modules.length;++g){var b=x.modules[g],k=b.position.call(this,{left:f,top:m,targetAttachment:o,targetPos:d,elementPos:i,offset:v,targetOffset:_,manualOffset:p,manualTargetOffset:h,scrollbarSize:E,attachment:this.attachment});if(!1===k)return!1;void 0!==k&&"object"==typeof k&&(m=k.top,f=k.left)}var C={page:{top:m,left:f},viewport:{top:m-pageYOffset,bottom:pageYOffset-m-a+innerHeight,left:f-pageXOffset,right:pageXOffset-f-n+innerWidth}},S=this.target.ownerDocument,T=S.defaultView,E=void 0;return T.innerHeight>S.documentElement.clientHeight&&(E=this.cache("scrollbar-size",c),C.viewport.bottom-=E.height),T.innerWidth>S.documentElement.clientWidth&&(E=this.cache("scrollbar-size",c),C.viewport.right-=E.width),-1!==["","static"].indexOf(S.body.style.position)&&-1!==["","static"].indexOf(S.body.parentElement.style.position)||(C.page.bottom=S.body.scrollHeight-m-a,C.page.right=S.body.scrollWidth-f-n),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return r(e)}),i=getComputedStyle(e),n=o,a={};if(["Top","Left","Bottom","Right"].forEach(function(t){a[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=S.body.scrollWidth-o.left-n.width+a.right,o.bottom=S.body.scrollHeight-o.top-n.height+a.bottom,C.page.top>=o.top+a.top&&C.page.bottom>=o.bottom&&C.page.left>=o.left+a.left&&C.page.right>=o.right){var s=e.scrollTop,c=e.scrollLeft;C.offset={top:C.page.top-o.top+s-a.top,left:C.page.left-o.left+c-a.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),e&&A(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var a=!1,s=0;s<this.history.length;++s){var r=this.history[s];if(void 0!==r[i]&&!g(r[i][n],t[i][n])){a=!0;break}}a||(o[i][n]=!0)}}var c={top:"",left:"",right:"",bottom:""},u=function(t,o){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var i=void 0,n=void 0;t.top?(c.top=0,i=o.top):(c.bottom=0,i=-o.bottom),t.left?(c.left=0,n=o.left):(c.right=0,n=-o.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(n=Math.round(n),i=Math.round(i))),c[U]="translateX("+n+"px) translateY("+i+"px)","msTransform"!==U&&(c[U]+=" translateZ(0)")}else t.top?c.top=o.top+"px":c.bottom=o.bottom+"px",t.left?c.left=o.left+"px":c.right=o.right+"px"},v=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(c.position="absolute",u(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(c.position="fixed",u(o.viewport,t.viewport)):void 0!==o.offset&&o.offset.top&&o.offset.left?function(){c.position="absolute";var i=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==i&&M(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),u(o.offset,t.offset),v=!0}():(c.position="absolute",u({top:!0,left:!0},t.page)),!v)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var _=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName;){if("static"!==getComputedStyle(p).position){_=!1;break}p=p.parentNode}_||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var h={},f=!1;for(var n in c){var m=c[n];this.element.style[n]!==m&&(f=!0,h[n]=m)}f&&M(function(){d(e.element.style,h),e.trigger("repositioned")})}}}]),e}(B);G.modules=[],x.position=F;var Y=d(G,x),P=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(i=(s=r.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&r.return&&r.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),z=x.Utils,r=z.getBounds,d=z.extend,f=z.updateClasses,M=z.defer,K=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=t.targetAttachment;if(!this.options.constraints)return!0;var a=this.cache("element-bounds",function(){return r(e.element)}),s=a.height,l=a.width;if(0===l&&0===s&&void 0!==this.lastSize){var c=this.lastSize;l=c.width,s=c.height}var u=this.cache("target-bounds",function(){return e.getTargetBounds()}),v=u.height,_=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&p.push(e),o&&p.push(o)}),p.forEach(function(t){["left","top","right","bottom"].forEach(function(e){p.push(t+"-"+e)})});var h=[],m=d({},n),g=d({},this.attachment);return this.options.constraints.forEach(function(t){var a=t.to,r=t.attachment,c=t.pin;void 0===r&&(r="");var d=void 0,u=void 0;if(r.indexOf(" ")>=0){var p=r.split(" "),f=P(p,2);u=f[0],d=f[1]}else d=u=r;var b=k(e,a);"target"!==u&&"both"!==u||(o<b[1]&&"top"===m.top&&(o+=v,m.top="bottom"),o+s>b[3]&&"bottom"===m.top&&(o-=v,m.top="top")),"together"===u&&("top"===m.top&&("bottom"===g.top&&o<b[1]?(o+=v,m.top="bottom",o+=s,g.top="top"):"top"===g.top&&o+s>b[3]&&o-(s-v)>=b[1]&&(o-=s-v,m.top="bottom",g.top="bottom")),"bottom"===m.top&&("top"===g.top&&o+s>b[3]?(o-=v,m.top="top",o-=s,g.top="bottom"):"bottom"===g.top&&o<b[1]&&o+(2*s-v)<=b[3]&&(o+=s-v,m.top="top",g.top="top")),"middle"===m.top&&(o+s>b[3]&&"top"===g.top?(o-=s,g.top="bottom"):o<b[1]&&"bottom"===g.top&&(o+=s,g.top="top"))),"target"!==d&&"both"!==d||(i<b[0]&&"left"===m.left&&(i+=_,m.left="right"),i+l>b[2]&&"right"===m.left&&(i-=_,m.left="left")),"together"===d&&(i<b[0]&&"left"===m.left?"right"===g.left?(i+=_,m.left="right",i+=l,g.left="left"):"left"===g.left&&(i+=_,m.left="right",i-=l,g.left="right"):i+l>b[2]&&"right"===m.left?"left"===g.left?(i-=_,m.left="left",i-=l,g.left="right"):"right"===g.left&&(i-=_,m.left="left",i+=l,g.left="left"):"center"===m.left&&(i+l>b[2]&&"left"===g.left?(i-=l,g.left="right"):i<b[0]&&"right"===g.left&&(i+=l,g.left="left"))),"element"!==u&&"both"!==u||(o<b[1]&&"bottom"===g.top&&(o+=s,g.top="top"),o+s>b[3]&&"top"===g.top&&(o-=s,g.top="bottom")),"element"!==d&&"both"!==d||(i<b[0]&&("right"===g.left?(i+=l,g.left="left"):"center"===g.left&&(i+=l/2,g.left="left")),i+l>b[2]&&("left"===g.left?(i-=l,g.left="right"):"center"===g.left&&(i-=l/2,g.left="right"))),"string"==typeof c?c=c.split(",").map(function(t){return t.trim()}):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var y=[],w=[];o<b[1]&&(c.indexOf("top")>=0?(o=b[1],y.push("top")):w.push("top")),o+s>b[3]&&(c.indexOf("bottom")>=0?(o=b[3]-s,y.push("bottom")):w.push("bottom")),i<b[0]&&(c.indexOf("left")>=0?(i=b[0],y.push("left")):w.push("left")),i+l>b[2]&&(c.indexOf("right")>=0?(i=b[2]-l,y.push("right")):w.push("right")),y.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),h.push(t),y.forEach(function(e){h.push(t+"-"+e)})}(),w.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),h.push(t),w.forEach(function(e){h.push(t+"-"+e)})}(),(y.indexOf("left")>=0||y.indexOf("right")>=0)&&(g.left=m.left=!1),(y.indexOf("top")>=0||y.indexOf("bottom")>=0)&&(g.top=m.top=!1),m.top===n.top&&m.left===n.left&&g.top===e.attachment.top&&g.left===e.attachment.left||(e.updateAttachClasses(g,m),e.trigger("update",{attachment:g,targetAttachment:m}))}),M(function(){!1!==e.options.addTargetClasses&&f(e.target,h,p),f(e.element,h,p)}),{top:o,left:i}}});var z=x.Utils,r=z.getBounds,f=z.updateClasses,M=z.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return r(e.element)}),a=n.height,s=n.width,l=this.getTargetBounds(),c=o+a,d=i+s,u=[];o<=l.bottom&&c>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==d||u.push(t)}),i<=l.right&&d>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==o&&e!==c||u.push(t)});var v=[],_=[],p=["left","top","right","bottom"];return v.push(this.getClass("abutted")),p.forEach(function(t){v.push(e.getClass("abutted")+"-"+t)}),u.length&&_.push(this.getClass("abutted")),u.forEach(function(t){_.push(e.getClass("abutted")+"-"+t)}),M(function(){!1!==e.options.addTargetClasses&&f(e.target,_,v),f(e.element,_,v)}),!0}});var P=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(i=(s=r.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&r.return&&r.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,a=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,r=P(s,2);n=r[0],a=r[1],n=parseFloat(n,10),a=parseFloat(a,10)}else n=i.top,a=i.left;return e+=n,o+=a,{top:e,left:o}}}}),Y})},function(t,e,o){o(127);var i=o(0)(o(89),o(251),null,null);t.exports=i.exports},function(t,e,o){o(185);var i=o(0)(o(91),o(315),null,null);t.exports=i.exports},function(t,e,o){o(176);var i=o(0)(o(92),o(304),null,null);t.exports=i.exports},function(t,e,o){o(168);var i=o(0)(o(105),o(296),null,null);t.exports=i.exports},function(t,e,o){o(187);var i=o(0)(o(106),o(317),null,null);t.exports=i.exports},function(t,e,o){o(136);var i=o(0)(o(109),o(260),null,null);t.exports=i.exports},function(t,e,o){o(124);var i=o(0)(o(112),o(248),null,null);t.exports=i.exports},function(t,e,o){o(137);var i=o(0)(o(118),o(261),null,null);t.exports=i.exports},function(t,e,o){"use strict";document.addEventListener("DOMContentLoaded",function(){var t=!1,e=["input:not([type])","input[type=text]","input[type=number]","input[type=date]","input[type=time]","input[type=datetime]","textarea","[role=textbox]","[supports-modality=keyboard]"].join(","),o=void 0,i=function(){var t=document.body;return t.matchesSelector?t.matchesSelector:t.webkitMatchesSelector?t.webkitMatchesSelector:t.mozMatchesSelector?t.mozMatchesSelector:t.msMatchesSelector?t.msMatchesSelector:void console.error("Couldn't find any matchesSelector method on document.body.")}(),n=function(t){var o=!1;return i&&(o=i.call(t,e)&&i.call(t,":not([readonly])")),o};!function(){var t="body:not([modality=keyboard]) :focus { outline: none; }",e=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.id="disable-focus-ring",o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t)),e.insertBefore(o,e.firstChild)}(),document.body.addEventListener("keydown",function(){t=!0,o&&clearTimeout(o),o=setTimeout(function(){t=!1},100)},!0),document.body.addEventListener("focus",function(e){(t||n(e.target))&&document.body.setAttribute("modality","keyboard")},!0),document.body.addEventListener("blur",function(){document.body.removeAttribute("modality")},!0)})},function(t,e,o){(function(e){var o="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},i=function(){var t=/\blang(?:uage)?-(\w+)\b/i,e=0,i=o.Prism={util:{encode:function(t){return t instanceof n?new n(t.type,i.util.encode(t.content),t.alias):"Array"===i.util.type(t)?t.map(i.util.encode):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).match(/\[object (\w+)\]/)[1]},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++e}),t.__id},clone:function(t){switch(i.util.type(t)){case"Object":var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=i.util.clone(t[o]));return e;case"Array":return t.map&&t.map(function(t){return i.util.clone(t)})}return t}},languages:{extend:function(t,e){var o=i.util.clone(i.languages[t]);for(var n in e)o[n]=e[n];return o},insertBefore:function(t,e,o,n){n=n||i.languages;var a=n[t];if(2==arguments.length){o=arguments[1];for(var s in o)o.hasOwnProperty(s)&&(a[s]=o[s]);return a}var r={};for(var l in a)if(a.hasOwnProperty(l)){if(l==e)for(var s in o)o.hasOwnProperty(s)&&(r[s]=o[s]);r[l]=a[l]}return i.languages.DFS(i.languages,function(e,o){o===n[t]&&e!=t&&(this[e]=r)}),n[t]=r},DFS:function(t,e,o,n){n=n||{};for(var a in t)t.hasOwnProperty(a)&&(e.call(t,a,t[a],o||a),"Object"!==i.util.type(t[a])||n[i.util.objId(t[a])]?"Array"!==i.util.type(t[a])||n[i.util.objId(t[a])]||(n[i.util.objId(t[a])]=!0,i.languages.DFS(t[a],e,a,n)):(n[i.util.objId(t[a])]=!0,i.languages.DFS(t[a],e,null,n)))}},plugins:{},highlightAll:function(t,e){var o={callback:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",o);for(var n,a=o.elements||document.querySelectorAll(o.selector),s=0;n=a[s++];)i.highlightElement(n,!0===t,o.callback)},highlightElement:function(e,n,a){for(var s,r,l=e;l&&!t.test(l.className);)l=l.parentNode;l&&(s=(l.className.match(t)||[,""])[1].toLowerCase(),r=i.languages[s]),e.className=e.className.replace(t,"").replace(/\s+/g," ")+" language-"+s,l=e.parentNode,/pre/i.test(l.nodeName)&&(l.className=l.className.replace(t,"").replace(/\s+/g," ")+" language-"+s);var c=e.textContent,d={element:e,language:s,grammar:r,code:c};if(i.hooks.run("before-sanity-check",d),!d.code||!d.grammar)return d.code&&(d.element.textContent=d.code),void i.hooks.run("complete",d);if(i.hooks.run("before-highlight",d),n&&o.Worker){var u=new Worker(i.filename);u.onmessage=function(t){d.highlightedCode=t.data,i.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,a&&a.call(d.element),i.hooks.run("after-highlight",d),i.hooks.run("complete",d)},u.postMessage(JSON.stringify({language:d.language,code:d.code,immediateClose:!0}))}else d.highlightedCode=i.highlight(d.code,d.grammar,d.language),i.hooks.run("before-insert",d),d.element.innerHTML=d.highlightedCode,a&&a.call(e),i.hooks.run("after-highlight",d),i.hooks.run("complete",d)},highlight:function(t,e,o){var a=i.tokenize(t,e);return n.stringify(i.util.encode(a),o)},tokenize:function(t,e,o){var n=i.Token,a=[t],s=e.rest;if(s){for(var r in s)e[r]=s[r];delete e.rest}t:for(var r in e)if(e.hasOwnProperty(r)&&e[r]){var l=e[r];l="Array"===i.util.type(l)?l:[l];for(var c=0;c<l.length;++c){var d=l[c],u=d.inside,v=!!d.lookbehind,_=!!d.greedy,p=0,h=d.alias;if(_&&!d.pattern.global){var f=d.pattern.toString().match(/[imuy]*$/)[0];d.pattern=RegExp(d.pattern.source,f+"g")}d=d.pattern||d;for(var m=0,g=0;m<a.length;g+=a[m].length,++m){var b=a[m];if(a.length>t.length)break t;if(!(b instanceof n)){d.lastIndex=0;var y=d.exec(b),w=1;if(!y&&_&&m!=a.length-1){if(d.lastIndex=g,!(y=d.exec(t)))break;for(var k=y.index+(v?y[1].length:0),C=y.index+y[0].length,x=m,S=g,T=a.length;x<T&&S<C;++x)S+=a[x].length,k>=S&&(++m,g=S);if(a[m]instanceof n||a[x-1].greedy)continue;w=x-m,b=t.slice(g,S),y.index-=g}if(y){v&&(p=y[1].length);var k=y.index+p,y=y[0].slice(p),C=k+y.length,E=b.slice(0,k),O=b.slice(C),D=[m,w];E&&D.push(E);var $=new n(r,u?i.tokenize(y,u):y,h,y,_);D.push($),O&&D.push(O),Array.prototype.splice.apply(a,D)}}}}}return a},hooks:{all:{},add:function(t,e){var o=i.hooks.all;o[t]=o[t]||[],o[t].push(e)},run:function(t,e){var o=i.hooks.all[t];if(o&&o.length)for(var n,a=0;n=o[a++];)n(e)}}},n=i.Token=function(t,e,o,i,n){this.type=t,this.content=e,this.alias=o,this.length=0|(i||"").length,this.greedy=!!n};if(n.stringify=function(t,e,o){if("string"==typeof t)return t;if("Array"===i.util.type(t))return t.map(function(o){return n.stringify(o,e,t)}).join("");var a={type:t.type,content:n.stringify(t.content,e,o),tag:"span",classes:["token",t.type],attributes:{},language:e,parent:o};if("comment"==a.type&&(a.attributes.spellcheck="true"),t.alias){var s="Array"===i.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,s)}i.hooks.run("wrap",a);var r=Object.keys(a.attributes).map(function(t){return t+'="'+(a.attributes[t]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(r?" "+r:"")+">"+a.content+"</"+a.tag+">"},!o.document)return o.addEventListener?(o.addEventListener("message",function(t){var e=JSON.parse(t.data),n=e.language,a=e.code,s=e.immediateClose;o.postMessage(i.highlight(a,i.languages[n],n)),s&&o.close()},!1),o.Prism):o.Prism;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(i.filename=a.src,document.addEventListener&&!a.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(i.highlightAll):window.setTimeout(i.highlightAll,16):document.addEventListener("DOMContentLoaded",i.highlightAll))),o.Prism}();void 0!==t&&t.exports&&(t.exports=i),void 0!==e&&(e.Prism=i),i.languages.markup={comment:/<!--[\w\W]*?-->/,prolog:/<\?[\w\W]+?\?>/,doctype:/<!DOCTYPE[\w\W]+?>/i,cdata:/<!\[CDATA\[[\w\W]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},i.hooks.add("wrap",function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),i.languages.xml=i.languages.markup,i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:{pattern:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,greedy:!0},property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},i.languages.css.atrule.inside.rest=i.util.clone(i.languages.css),i.languages.markup&&(i.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,lookbehind:!0,inside:i.languages.css,alias:"language-css"}}),i.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:i.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:i.languages.css}},alias:"language-css"}},i.languages.markup.tag)),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*\*?|\/|~|\^|%|\.{3}/}),i.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\/])\/(?!\/)(\[.+?]|\\.|[^\/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}}),i.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\|\\?[^\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}}}),i.languages.markup&&i.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,lookbehind:!0,inside:i.languages.javascript,alias:"language-javascript"}}),i.languages.js=i.languages.javascript,function(){"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(){var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.forEach&&Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach(function(e){for(var o,n=e.getAttribute("data-src"),a=e,s=/\blang(?:uage)?-(?!\*)(\w+)\b/i;a&&!s.test(a.className);)a=a.parentNode;if(a&&(o=(e.className.match(s)||[,""])[1]),!o){var r=(n.match(/\.(\w+)$/)||[,""])[1];o=t[r]||r}var l=document.createElement("code");l.className="language-"+o,e.textContent="",l.textContent="Loading…",e.appendChild(l);var c=new XMLHttpRequest;c.open("GET",n,!0),c.onreadystatechange=function(){4==c.readyState&&(c.status<400&&c.responseText?(l.textContent=c.responseText,i.highlightElement(l)):c.status>=400?l.textContent="✖ Error "+c.status+" while fetching file: "+c.statusText:l.textContent="✖ Error: File does not exist or is empty")},c.send(null)})},document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight))}()}).call(e,o(19))},function(t,e,o){o(139);var i=o(0)(o(46),o(263),null,null);t.exports=i.exports},function(t,e,o){"use strict";function i(t,e){}function n(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function a(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}function s(t,e,o){void 0===e&&(e={});var i,n=o||r;try{i=n(t||"")}catch(t){i={}}for(var a in e){var s=e[a];i[a]=Array.isArray(s)?s.slice():s}return i}function r(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var o=t.replace(/\+/g," ").split("="),i=Lt(o.shift()),n=o.length>0?Lt(o.join("=")):null;void 0===e[i]?e[i]=n:Array.isArray(e[i])?e[i].push(n):e[i]=[e[i],n]}),e):e}function l(t){var e=t?Object.keys(t).map(function(e){var o=t[e];if(void 0===o)return"";if(null===o)return Pt(e);if(Array.isArray(o)){var i=[];return o.forEach(function(t){void 0!==t&&(null===t?i.push(Pt(e)):i.push(Pt(e)+"="+Pt(t)))}),i.join("&")}return Pt(e)+"="+Pt(o)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function c(t,e,o,i){var n=i&&i.options.stringifyQuery,a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:u(e,n),matched:t?d(t):[]};return o&&(a.redirectedFrom=u(o,n)),Object.freeze(a)}function d(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function u(t,e){var o=t.path,i=t.query;void 0===i&&(i={});var n=t.hash;void 0===n&&(n="");var a=e||l;return(o||"/")+a(i)+n}function v(t,e){return e===Ut?t===e:!!e&&(t.path&&e.path?t.path.replace(zt,"")===e.path.replace(zt,"")&&t.hash===e.hash&&_(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&_(t.query,e.query)&&_(t.params,e.params)))}function _(t,e){void 0===t&&(t={}),void 0===e&&(e={});var o=Object.keys(t),i=Object.keys(e);return o.length===i.length&&o.every(function(o){var i=t[o],n=e[o];return"object"==typeof i&&"object"==typeof n?_(i,n):String(i)===String(n)})}function p(t,e){return 0===t.path.replace(zt,"/").indexOf(e.path.replace(zt,"/"))&&(!e.hash||t.hash===e.hash)&&h(t.query,e.query)}function h(t,e){for(var o in e)if(!(o in t))return!1;return!0}function f(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){if(/\b_blank\b/i.test(t.currentTarget.getAttribute("target")))return}return t.preventDefault&&t.preventDefault(),!0}}function m(t){if(t)for(var e,o=0;o<t.length;o++){if(e=t[o],"a"===e.tag)return e;if(e.children&&(e=m(e.children)))return e}}function g(t){if(!g.installed){g.installed=!0,Dt=t;var e=function(t){return void 0!==t},o=function(t,o){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,o)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,o(this,this)},destroyed:function(){o(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("router-view",$t),t.component("router-link",Nt);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}function b(t,e,o){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var n=e.split("/");o&&n[n.length-1]||n.pop();for(var a=t.replace(/^\//,"").split("/"),s=0;s<a.length;s++){var r=a[s];".."===r?n.pop():"."!==r&&n.push(r)}return""!==n[0]&&n.unshift(""),n.join("/")}function y(t){var e="",o="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var n=t.indexOf("?");return n>=0&&(o=t.slice(n+1),t=t.slice(0,n)),{path:t,query:o,hash:e}}function w(t){return t.replace(/\/\//g,"/")}function k(t,e){for(var o,i=[],n=0,a=0,s="",r=e&&e.delimiter||"/";null!=(o=Yt.exec(t));){var l=o[0],c=o[1],d=o.index;if(s+=t.slice(a,d),a=d+l.length,c)s+=c[1];else{var u=t[a],v=o[2],_=o[3],p=o[4],h=o[5],f=o[6],m=o[7];s&&(i.push(s),s="");var g=null!=v&&null!=u&&u!==v,b="+"===f||"*"===f,y="?"===f||"*"===f,w=o[2]||r,k=p||h;i.push({name:_||n++,prefix:v||"",delimiter:w,optional:y,repeat:b,partial:g,asterisk:!!m,pattern:k?O(k):m?".*":"[^"+E(w)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&i.push(s),i}function C(t,e){return T(k(t,e))}function x(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function S(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function T(t){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"==typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$"));return function(o,i){for(var n="",a=o||{},s=i||{},r=s.pretty?x:encodeURIComponent,l=0;l<t.length;l++){var c=t[l];if("string"!=typeof c){var d,u=a[c.name];if(null==u){if(c.optional){c.partial&&(n+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(jt(u)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var v=0;v<u.length;v++){if(d=r(u[v]),!e[l].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");n+=(0===v?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?S(u):r(u),!e[l].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');n+=c.prefix+d}}else n+=c}return n}}function E(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function O(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function D(t,e){return t.keys=e,t}function $(t){return t.sensitive?"":"i"}function M(t,e){var o=t.source.match(/\((?!\?)/g);if(o)for(var i=0;i<o.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return D(t,e)}function A(t,e,o){for(var i=[],n=0;n<t.length;n++)i.push(L(t[n],e,o).source);return D(new RegExp("(?:"+i.join("|")+")",$(o)),e)}function B(t,e,o){return P(k(t,o),e,o)}function P(t,e,o){jt(e)||(o=e||o,e=[]),o=o||{};for(var i=o.strict,n=!1!==o.end,a="",s=0;s<t.length;s++){var r=t[s];if("string"==typeof r)a+=E(r);else{var l=E(r.prefix),c="(?:"+r.pattern+")";e.push(r),r.repeat&&(c+="(?:"+l+c+")*"),c=r.optional?r.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",a+=c}}var d=E(o.delimiter||"/"),u=a.slice(-d.length)===d;return i||(a=(u?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=n?"$":i&&u?"":"(?="+d+"|$)",D(new RegExp("^"+a,$(o)),e)}function L(t,e,o){return jt(e)||(o=e||o,e=[]),o=o||{},t instanceof RegExp?M(t,e):jt(t)?A(t,e,o):B(t,e,o)}function z(t,e,o){try{return(Kt[t]||(Kt[t]=Wt.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function U(t,e,o,i){var n=e||[],a=o||Object.create(null),s=i||Object.create(null);t.forEach(function(t){I(n,a,s,t)});for(var r=0,l=n.length;r<l;r++)"*"===n[r]&&(n.push(n.splice(r,1)[0]),l--,r--);return{pathList:n,pathMap:a,nameMap:s}}function I(t,e,o,i,n,a){var s=i.path,r=i.name,l=N(s,n),c=i.pathToRegexpOptions||{};"boolean"==typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var d={path:l,regex:F(l,c),components:i.components||{default:i.component},instances:{},name:r,parent:n,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach(function(i){var n=a?w(a+"/"+i.path):void 0;I(t,e,o,i,d,n)}),void 0!==i.alias){(Array.isArray(i.alias)?i.alias:[i.alias]).forEach(function(a){var s={path:a,children:i.children};I(t,e,o,s,n,d.path||"/")})}e[d.path]||(t.push(d.path),e[d.path]=d),r&&(o[r]||(o[r]=d))}function F(t,e){var o=Wt(t,[],e);return o}function N(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:w(e.path+"/"+t)}function R(t,e,o,i){var n="string"==typeof t?{path:t}:t;if(n.name||n._normalized)return n;if(!n.path&&n.params&&e){n=j({},n),n._normalized=!0;var a=j(j({},e.params),n.params);if(e.name)n.name=e.name,n.params=a;else if(e.matched.length){var r=e.matched[e.matched.length-1].path;n.path=z(r,a,"path "+e.path)}return n}var l=y(n.path||""),c=e&&e.path||"/",d=l.path?b(l.path,c,o||n.append):c,u=s(l.query,n.query,i&&i.options.parseQuery),v=n.hash||l.hash;return v&&"#"!==v.charAt(0)&&(v="#"+v),{_normalized:!0,path:d,query:u,hash:v}}function j(t,e){for(var o in e)t[o]=e[o];return t}function W(t,e){function o(t){U(t,l,d,u)}function i(t,o,i){var n=R(t,o,!1,e),a=n.name;if(a){var r=u[a];if(!r)return s(null,n);var c=r.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof n.params&&(n.params={}),o&&"object"==typeof o.params)for(var v in o.params)!(v in n.params)&&c.indexOf(v)>-1&&(n.params[v]=o.params[v]);if(r)return n.path=z(r.path,n.params,'named route "'+a+'"'),s(r,n,i)}else if(n.path){n.params={};for(var _=0;_<l.length;_++){var p=l[_],h=d[p];if(H(h.regex,n.path,n.params))return s(h,n,i)}}return s(null,n)}function n(t,o){var n=t.redirect,a="function"==typeof n?n(c(t,o,null,e)):n;if("string"==typeof a&&(a={path:a}),!a||"object"!=typeof a)return s(null,o);var r=a,l=r.name,d=r.path,v=o.query,_=o.hash,p=o.params;if(v=r.hasOwnProperty("query")?r.query:v,_=r.hasOwnProperty("hash")?r.hash:_,p=r.hasOwnProperty("params")?r.params:p,l){u[l];return i({_normalized:!0,name:l,query:v,hash:_,params:p},void 0,o)}if(d){var h=V(d,t);return i({_normalized:!0,path:z(h,p,'redirect route with path "'+h+'"'),query:v,hash:_},void 0,o)}return s(null,o)}function a(t,e,o){var n=z(o,e.params,'aliased route with path "'+o+'"'),a=i({_normalized:!0,path:n});if(a){var r=a.matched,l=r[r.length-1];return e.params=a.params,s(l,e)}return s(null,e)}function s(t,o,i){return t&&t.redirect?n(t,i||o):t&&t.matchAs?a(t,o,t.matchAs):c(t,o,i,e)}var r=U(t),l=r.pathList,d=r.pathMap,u=r.nameMap;return{match:i,addRoutes:o}}function H(t,e,o){var i=e.match(t);if(!i)return!1;if(!o)return!0;for(var n=1,a=i.length;n<a;++n){var s=t.keys[n-1],r="string"==typeof i[n]?decodeURIComponent(i[n]):i[n];s&&(o[s.name]=r)}return!0}function V(t,e){return b(t,e.parent?e.parent.path:"/",!0)}function q(){window.addEventListener("popstate",function(t){Y(),t.state&&t.state.key&&it(t.state.key)})}function G(t,e,o,i){if(t.app){var n=t.options.scrollBehavior;n&&t.app.$nextTick(function(){var t=K(),a=n(e,o,i?t:null);if(a){var s="object"==typeof a;if(s&&"string"==typeof a.selector){var r=document.querySelector(a.selector);if(r){var l=a.offset&&"object"==typeof a.offset?a.offset:{};l=Q(l),t=J(r,l)}else X(a)&&(t=Z(a))}else s&&X(a)&&(t=Z(a));t&&window.scrollTo(t.x,t.y)}})}}function Y(){var t=ot();t&&(Jt[t]={x:window.pageXOffset,y:window.pageYOffset})}function K(){var t=ot();if(t)return Jt[t]}function J(t,e){var o=document.documentElement,i=o.getBoundingClientRect(),n=t.getBoundingClientRect();return{x:n.left-i.left-e.x,y:n.top-i.top-e.y}}function X(t){return tt(t.x)||tt(t.y)}function Z(t){return{x:tt(t.x)?t.x:window.pageXOffset,y:tt(t.y)?t.y:window.pageYOffset}}function Q(t){return{x:tt(t.x)?t.x:0,y:tt(t.y)?t.y:0}}function tt(t){return"number"==typeof t}function et(){return Zt.now().toFixed(3)}function ot(){return Qt}function it(t){Qt=t}function nt(t,e){Y();var o=window.history;try{e?o.replaceState({key:Qt},"",t):(Qt=et(),o.pushState({key:Qt},"",t))}catch(o){window.location[e?"replace":"assign"](t)}}function at(t){nt(t,!0)}function st(t,e,o){var i=function(n){n>=t.length?o():t[n]?e(t[n],function(){i(n+1)}):i(n+1)};i(0)}function rt(t){return function(e,o,i){var a=!1,s=0,r=null;lt(t,function(t,e,o,l){if("function"==typeof t&&void 0===t.cid){a=!0,s++;var c,d=dt(function(e){e.__esModule&&e.default&&(e=e.default),t.resolved="function"==typeof e?e:Dt.extend(e),o.components[l]=e,--s<=0&&i()}),u=dt(function(t){var e="Failed to resolve async component "+l+": "+t;r||(r=n(t)?t:new Error(e),i(r))});try{c=t(d,u)}catch(t){u(t)}if(c)if("function"==typeof c.then)c.then(d,u);else{var v=c.component;v&&"function"==typeof v.then&&v.then(d,u)}}}),a||i()}}function lt(t,e){return ct(t.map(function(t){return Object.keys(t.components).map(function(o){return e(t.components[o],t.instances[o],t,o)})}))}function ct(t){return Array.prototype.concat.apply([],t)}function dt(t){var e=!1;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];if(!e)return e=!0,t.apply(this,o)}}function ut(t){if(!t)if(Rt){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function vt(t,e){var o,i=Math.max(t.length,e.length);for(o=0;o<i&&t[o]===e[o];o++);return{updated:e.slice(0,o),activated:e.slice(o),deactivated:t.slice(o)}}function _t(t,e,o,i){var n=lt(t,function(t,i,n,a){var s=pt(t,e);if(s)return Array.isArray(s)?s.map(function(t){return o(t,i,n,a)}):o(s,i,n,a)});return ct(i?n.reverse():n)}function pt(t,e){return"function"!=typeof t&&(t=Dt.extend(t)),t.options[e]}function ht(t){return _t(t,"beforeRouteLeave",mt,!0)}function ft(t){return _t(t,"beforeRouteUpdate",mt)}function mt(t,e){if(e)return function(){return t.apply(e,arguments)}}function gt(t,e,o){return _t(t,"beforeRouteEnter",function(t,i,n,a){return bt(t,n,a,e,o)})}function bt(t,e,o,i,n){return function(a,s,r){return t(a,s,function(t){r(t),"function"==typeof t&&i.push(function(){yt(t,e.instances,o,n)})})}}function yt(t,e,o,i){e[o]?t(e[o]):i()&&setTimeout(function(){yt(t,e,o,i)},16)}function wt(t){var e=window.location.pathname;return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}function kt(t){var e=wt(t);if(!/^\/#/.test(e))return window.location.replace(w(t+"/#"+e)),!0}function Ct(){var t=xt();return"/"===t.charAt(0)||(Tt("/"+t),!1)}function xt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.slice(e+1)}function St(t){window.location.hash=t}function Tt(t){var e=window.location.href,o=e.indexOf("#"),i=o>=0?e.slice(0,o):e;window.location.replace(i+"#"+t)}function Et(t,e){return t.push(e),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function Ot(t,e,o){var i="hash"===o?"#"+e:e;return t?w(t+"/"+i):i}Object.defineProperty(e,"__esModule",{value:!0});var Dt,$t={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var o=e.props,i=e.children,n=e.parent,s=e.data;s.routerView=!0;for(var r=n.$createElement,l=o.name,c=n.$route,d=n._routerViewCache||(n._routerViewCache={}),u=0,v=!1;n&&n._routerRoot!==n;)n.$vnode&&n.$vnode.data.routerView&&u++,n._inactive&&(v=!0),n=n.$parent;if(s.routerViewDepth=u,v)return r(d[l],s,i);var _=c.matched[u];if(!_)return d[l]=null,r();var p=d[l]=_.components[l];return s.registerRouteInstance=function(t,e){var o=_.instances[l];(e&&o!==t||!e&&o===t)&&(_.instances[l]=e)},(s.hook||(s.hook={})).prepatch=function(t,e){_.instances[l]=e.componentInstance},s.props=a(c,_.props&&_.props[l]),r(p,s,i)}},Mt=/[!'()*]/g,At=function(t){return"%"+t.charCodeAt(0).toString(16)},Bt=/%2C/g,Pt=function(t){return encodeURIComponent(t).replace(Mt,At).replace(Bt,",")},Lt=decodeURIComponent,zt=/\/?$/,Ut=c(null,{path:"/"}),It=[String,Object],Ft=[String,Array],Nt={name:"router-link",props:{to:{type:It,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Ft,default:"click"}},render:function(t){var e=this,o=this.$router,i=this.$route,n=o.resolve(this.to,i,this.append),a=n.location,s=n.route,r=n.href,l={},d=o.options.linkActiveClass,u=o.options.linkExactActiveClass,_=null==d?"router-link-active":d,h=null==u?"router-link-exact-active":u,g=null==this.activeClass?_:this.activeClass,b=null==this.exactActiveClass?h:this.exactActiveClass,y=a.path?c(null,a,null,o):s;l[b]=v(i,y),l[g]=this.exact?l[b]:p(i,y);var w=function(t){f(t)&&(e.replace?o.replace(a):o.push(a))},k={click:f};Array.isArray(this.event)?this.event.forEach(function(t){k[t]=w}):k[this.event]=w;var C={class:l};if("a"===this.tag)C.on=k,C.attrs={href:r};else{var x=m(this.$slots.default);if(x){x.isStatic=!1;var S=Dt.util.extend;(x.data=S({},x.data)).on=k;(x.data.attrs=S({},x.data.attrs)).href=r}else C.on=k}return t(this.tag,C,this.$slots.default)}},Rt="undefined"!=typeof window,jt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Wt=L,Ht=k,Vt=C,qt=T,Gt=P,Yt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Wt.parse=Ht,Wt.compile=Vt,Wt.tokensToFunction=qt,Wt.tokensToRegExp=Gt;var Kt=Object.create(null),Jt=Object.create(null),Xt=Rt&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Zt=Rt&&window.performance&&window.performance.now?window.performance:Date,Qt=et(),te=function(t,e){this.router=t,this.base=ut(e),this.current=Ut,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};te.prototype.listen=function(t){this.cb=t},te.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},te.prototype.onError=function(t){this.errorCbs.push(t)},te.prototype.transitionTo=function(t,e,o){var i=this,n=this.router.match(t,this.current);this.confirmTransition(n,function(){i.updateRoute(n),e&&e(n),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(n)}))},function(t){o&&o(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(e){e(t)}))})},te.prototype.confirmTransition=function(t,e,o){var a=this,s=this.current,r=function(t){n(t)&&(a.errorCbs.length?a.errorCbs.forEach(function(e){e(t)}):(i(!1,"uncaught error during route navigation:"),console.error(t))),o&&o(t)};if(v(t,s)&&t.matched.length===s.matched.length)return this.ensureURL(),r();var l=vt(this.current.matched,t.matched),c=l.updated,d=l.deactivated,u=l.activated,_=[].concat(ht(d),this.router.beforeHooks,ft(c),u.map(function(t){return t.beforeEnter}),rt(u));this.pending=t;var p=function(e,o){if(a.pending!==t)return r();try{e(t,s,function(t){!1===t||n(t)?(a.ensureURL(!0),r(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(r(),"object"==typeof t&&t.replace?a.replace(t):a.push(t)):o(t)})}catch(t){r(t)}};st(_,p,function(){var o=[];st(gt(u,o,function(){return a.current===t}).concat(a.router.resolveHooks),p,function(){if(a.pending!==t)return r();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick(function(){o.forEach(function(t){t()})})})})},te.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(o){o&&o(t,e)})};var ee=function(t){function e(e,o){var i=this;t.call(this,e,o);var n=e.options.scrollBehavior;n&&q(),window.addEventListener("popstate",function(t){var o=i.current;i.transitionTo(wt(i.base),function(t){n&&G(e,t,o,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,o){var i=this,n=this,a=n.current;this.transitionTo(t,function(t){nt(w(i.base+t.fullPath)),G(i.router,t,a,!1),e&&e(t)},o)},e.prototype.replace=function(t,e,o){var i=this,n=this,a=n.current;this.transitionTo(t,function(t){at(w(i.base+t.fullPath)),G(i.router,t,a,!1),e&&e(t)},o)},e.prototype.ensureURL=function(t){if(wt(this.base)!==this.current.fullPath){var e=w(this.base+this.current.fullPath);t?nt(e):at(e)}},e.prototype.getCurrentLocation=function(){return wt(this.base)},e}(te),oe=function(t){function e(e,o,i){t.call(this,e,o),i&&kt(this.base)||Ct()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){Ct()&&t.transitionTo(xt(),function(t){Tt(t.fullPath)})})},e.prototype.push=function(t,e,o){this.transitionTo(t,function(t){St(t.fullPath),e&&e(t)},o)},e.prototype.replace=function(t,e,o){this.transitionTo(t,function(t){Tt(t.fullPath),e&&e(t)},o)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;xt()!==e&&(t?St(e):Tt(e))},e.prototype.getCurrentLocation=function(){return xt()},e}(te),ie=function(t){function e(e,o){t.call(this,e,o),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,o){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},o)},e.prototype.replace=function(t,e,o){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},o)},e.prototype.go=function(t){var e=this,o=this.index+t;if(!(o<0||o>=this.stack.length)){var i=this.stack[o];this.confirmTransition(i,function(){e.index=o,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(te),ne=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=W(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Xt&&!1!==t.fallback,this.fallback&&(e="hash"),Rt||(e="abstract"),this.mode=e,e){case"history":this.history=new ee(this,t.base);break;case"hash":this.history=new oe(this,t.base,this.fallback);break;case"abstract":this.history=new ie(this,t.base)}},ae={currentRoute:{}};ne.prototype.match=function(t,e,o){return this.matcher.match(t,e,o)},ae.currentRoute.get=function(){return this.history&&this.history.current},ne.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var o=this.history;if(o instanceof ee)o.transitionTo(o.getCurrentLocation());else if(o instanceof oe){var i=function(){o.setupListeners()};o.transitionTo(o.getCurrentLocation(),i,i)}o.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ne.prototype.beforeEach=function(t){return Et(this.beforeHooks,t)},ne.prototype.beforeResolve=function(t){return Et(this.resolveHooks,t)},ne.prototype.afterEach=function(t){return Et(this.afterHooks,t)},ne.prototype.onReady=function(t,e){this.history.onReady(t,e)},ne.prototype.onError=function(t){this.history.onError(t)},ne.prototype.push=function(t,e,o){this.history.push(t,e,o)},ne.prototype.replace=function(t,e,o){this.history.replace(t,e,o)},ne.prototype.go=function(t){this.history.go(t)},ne.prototype.back=function(){this.go(-1)},ne.prototype.forward=function(){this.go(1)},ne.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ne.prototype.resolve=function(t,e,o){var i=R(t,e||this.history.current,o,this),n=this.match(i,e),a=n.redirectedFrom||n.fullPath;return{location:i,route:n,href:Ot(this.history.base,a,this.mode),normalizedTo:i,resolved:n}},ne.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Ut&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ne.prototype,ae),ne.install=g,ne.version="2.7.0",Rt&&window.Vue&&window.Vue.use(ne),e.default=ne},function(t,e,o){var i,n,a;/*! Autosize 3.0.21 license: MIT http://www.jacklmoore.com/autosize */ !function(o,s){n=[e,t],i=s,void 0!==(a="function"==typeof i?i.apply(e,n):i)&&(t.exports=a)}(0,function(t,e){"use strict";function o(t){function e(e){var o=t.style.width;t.style.width="0px",t.offsetWidth,t.style.width=o,t.style.overflowY=e}function o(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}function i(){var e=t.style.height,i=o(t),n=document.documentElement&&document.documentElement.scrollTop;t.style.height="auto";var a=t.scrollHeight+r;if(0===t.scrollHeight)return void(t.style.height=e);t.style.height=a+"px",l=t.clientWidth,i.forEach(function(t){t.node.scrollTop=t.scrollTop}),n&&(document.documentElement.scrollTop=n)}function n(){i();var o=Math.round(parseFloat(t.style.height)),n=window.getComputedStyle(t,null),a="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):t.offsetHeight;if(a!==o?"hidden"===n.overflowY&&(e("scroll"),i(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==n.overflowY&&(e("hidden"),i(),a="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),c!==a){c=a;var r=s("autosize:resized");try{t.dispatchEvent(r)}catch(t){}}}if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!a.has(t)){var r=null,l=t.clientWidth,c=null,d=function(){t.clientWidth!==l&&n()},u=function(e){window.removeEventListener("resize",d,!1),t.removeEventListener("input",n,!1),t.removeEventListener("keyup",n,!1),t.removeEventListener("autosize:destroy",u,!1),t.removeEventListener("autosize:update",n,!1),Object.keys(e).forEach(function(o){t.style[o]=e[o]}),a.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",u,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",n,!1),window.addEventListener("resize",d,!1),t.addEventListener("input",n,!1),t.addEventListener("autosize:update",n,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",a.set(t,{destroy:u,update:n}),function(){var e=window.getComputedStyle(t,null);"vertical"===e.resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),r="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(r)&&(r=0),n()}()}}function i(t){var e=a.get(t);e&&e.destroy()}function n(t){var e=a.get(t);e&&e.update()}var a="function"==typeof Map?new Map:function(){var t=[],e=[];return{has:function(e){return t.indexOf(e)>-1},get:function(o){return e[t.indexOf(o)]},set:function(o,i){-1===t.indexOf(o)&&(t.push(o),e.push(i))},delete:function(o){var i=t.indexOf(o);i>-1&&(t.splice(i,1),e.splice(i,1))}}}(),s=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(t){s=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}var r=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?(r=function(t){return t},r.destroy=function(t){return t},r.update=function(t){return t}):(r=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return o(t)}),t},r.destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],i),t},r.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],n),t}),e.exports=r})},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=e.colourStrings=["Red","Blue","Green","Yellow","Purple","Pink","Lavender","Orange","Peach","Lime"],n=e.colours=[{label:"Red",image:"https://placehold.it/64/ff0000/ff0000",value:"red"},{label:"Blue",image:"https://placehold.it/64/0000ff/0000ff",value:"blue"},{label:"Green",image:"https://placehold.it/64/008000/008000",value:"green"},{label:"Yellow",image:"https://placehold.it/64/ffff00/ffff00",value:"yellow"},{label:"Purple",image:"https://placehold.it/64/800080/800080",value:"purple"},{label:"Pink",image:"https://placehold.it/64/ffc0cb/ffc0cb",value:"pink"},{label:"Lavender",image:"https://placehold.it/64/e6e6fa/e6e6fa",value:"lavender"},{label:"Orange",image:"https://placehold.it/64/ffa500/ffa500",value:"orange"},{label:"Peach",image:"https://placehold.it/64/ffdab9/ffdab9",value:"peach"},{label:"Lime",image:"https://placehold.it/64/00ff00/00ff00",value:"lime"}],a=e.redShades=[{label:"Red",image:"https://placehold.it/64/ff0000/ff0000",value:"red"},{label:"Ced",value:"ced",image:"https://placehold.it/64/CF302C/CF302C"},{label:"Cherry",value:"cherry",image:"https://placehold.it/64/9C0E04/9C0E04"},{label:"Rose",value:"rose",image:"https://placehold.it/64/E3242B/E3242B"},{label:"Jam",value:"jam",image:"https://placehold.it/64/5F100B/5F100B"},{label:"Merlot",value:"merlot",image:"https://placehold.it/64/541F1B/541F1B"},{label:"Garnet",value:"garnet",image:"https://placehold.it/64/600B04/600B04"},{label:"Crimson",value:"crimson",image:"https://placehold.it/64/B80F08/B80F08"},{label:"Ruby",value:"ruby",image:"https://placehold.it/64/900603/900603"},{label:"Scarlet",value:"scarlet",image:"https://placehold.it/64/910D09/910D09"},{label:"Wine",value:"wine",image:"https://placehold.it/64/4C0805/4C0805"},{label:"Brick",value:"brick",image:"https://placehold.it/64/7D2910/7D2910"},{label:"Apple",value:"apple",image:"https://placehold.it/64/A91B0D/A91B0D"},{label:"Mahogany",value:"mahogany",image:"https://placehold.it/64/400D0A/400D0A"},{label:"Blood",value:"blood",image:"https://placehold.it/64/710C04/710C04"},{label:"Sangria",value:"sangria",image:"https://placehold.it/64/641612/641612"},{label:"Berry",value:"berry",image:"https://placehold.it/64/7A1712/7A1712"},{label:"Currant",value:"currant",image:"https://placehold.it/64/670C07/670C07"},{label:"Blush",value:"blush",image:"https://placehold.it/64/BC544B/BC544B"},{label:"Candy",value:"candy",image:"https://placehold.it/64/D21404/D21404"},{label:"Lipstick",value:"lipstick",image:"https://placehold.it/64/9C1003/9C1003"}],s=e.blueShades=[{label:"Blue",value:"blue",image:"https://placehold.it/64/0000ff/0000ff"},{label:"Slate",value:"slate",image:"https://placehold.it/64/747C87/747C87"},{label:"Sky",value:"sky",image:"https://placehold.it/64/62C5DA/62C5DA"},{label:"Navy",value:"navy",image:"https://placehold.it/64/0B1173/0B1173"},{label:"Indigo",value:"indigo",image:"https://placehold.it/64/281E5D/281E5D"},{label:"Cobalt",value:"cobalt",image:"https://placehold.it/64/1437BF/1437BF"},{label:"Teal",value:"teal",image:"https://placehold.it/64/48AAAD/48AAAD"},{label:"Ocean",value:"ocean",image:"https://placehold.it/64/016064/016064"},{label:"Peacock",value:"peacock",image:"https://placehold.it/64/022D34/022D34"},{label:"Azure",value:"azure",image:"https://placehold.it/64/1A1EA6/1A1EA6"},{label:"Cerulean",value:"cerulean",image:"https://placehold.it/64/0393BC/0393BC"},{label:"Lapis",value:"lapis",image:"https://placehold.it/64/2732C2/2732C2"},{label:"Spruce",value:"spruce",image:"https://placehold.it/64/2C3E4C/2C3E4C"},{label:"Stone",value:"stone",image:"https://placehold.it/64/59788D/59788D"},{label:"Aegean",value:"aegean",image:"https://placehold.it/64/1F456E/1F456E"},{label:"Berry",value:"berry",image:"https://placehold.it/64/27146D/27146D"},{label:"Denim",value:"denim",image:"https://placehold.it/64/151E3D/151E3D"},{label:"Admiral",value:"admiral",image:"https://placehold.it/64/061094/061094"},{label:"Sapphire",value:"sapphire",image:"https://placehold.it/64/52B2C0/52B2C0"},{label:"Artic",value:"artic",image:"https://placehold.it/64/82EDFD/82EDFD"}];e.default={colours:n,colourStrings:i,redShades:a,blueShades:s}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=[{name:"Aruba",code:"AW"},{name:"Afghanistan",code:"AF"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Åland Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Andorra",code:"AD"},{name:"United Arab Emirates",code:"AE"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"American Samoa",code:"AS"},{name:"Antarctica",code:"AQ"},{name:"French Southern and Antarctic Lands",code:"TF"},{name:"Antigua and Barbuda",code:"AG"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Burundi",code:"BI"},{name:"Belgium",code:"BE"},{name:"Benin",code:"BJ"},{name:"Burkina Faso",code:"BF"},{name:"Bangladesh",code:"BD"},{name:"Bulgaria",code:"BG"},{name:"Bahrain",code:"BH"},{name:"Bahamas",code:"BS"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Saint Barthélemy",code:"BL"},{name:"Belarus",code:"BY"},{name:"Belize",code:"BZ"},{name:"Bermuda",code:"BM"},{name:"Bolivia",code:"BO"},{name:"Brazil",code:"BR"},{name:"Barbados",code:"BB"},{name:"Brunei",code:"BN"},{name:"Bhutan",code:"BT"},{name:"Bouvet Island",code:"BV"},{name:"Botswana",code:"BW"},{name:"Central African Republic",code:"CF"},{name:"Canada",code:"CA"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Switzerland",code:"CH"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Ivory Coast",code:"CI"},{name:"Cameroon",code:"CM"},{name:"DR Congo",code:"CD"},{name:"Republic of the Congo",code:"CG"},{name:"Cook Islands",code:"CK"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Cape Verde",code:"CV"},{name:"Costa Rica",code:"CR"},{name:"Cuba",code:"CU"},{name:"Curaçao",code:"CW"},{name:"Christmas Island",code:"CX"},{name:"Cayman Islands",code:"KY"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Germany",code:"DE"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Denmark",code:"DK"},{name:"Dominican Republic",code:"DO"},{name:"Algeria",code:"DZ"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"Eritrea",code:"ER"},{name:"Western Sahara",code:"EH"},{name:"Spain",code:"ES"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Finland",code:"FI"},{name:"Fiji",code:"FJ"},{name:"Falkland Islands",code:"FK"},{name:"France",code:"FR"},{name:"Faroe Islands",code:"FO"},{name:"Micronesia",code:"FM"},{name:"Gabon",code:"GA"},{name:"United Kingdom",code:"GB"},{name:"Georgia",code:"GE"},{name:"Guernsey",code:"GG"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Guinea",code:"GN"},{name:"Guadeloupe",code:"GP"},{name:"Gambia",code:"GM"},{name:"Guinea-Bissau",code:"GW"},{name:"Equatorial Guinea",code:"GQ"},{name:"Greece",code:"GR"},{name:"Grenada",code:"GD"},{name:"Greenland",code:"GL"},{name:"Guatemala",code:"GT"},{name:"French Guiana",code:"GF"},{name:"Guam",code:"GU"},{name:"Guyana",code:"GY"},{name:"Hong Kong",code:"HK"},{name:"Heard Island and McDonald Islands",code:"HM"},{name:"Honduras",code:"HN"},{name:"Croatia",code:"HR"},{name:"Haiti",code:"HT"},{name:"Hungary",code:"HU"},{name:"Indonesia",code:"ID"},{name:"Isle of Man",code:"IM"},{name:"India",code:"IN"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Ireland",code:"IE"},{name:"Iran",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Iceland",code:"IS"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Japan",code:"JP"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kyrgyzstan",code:"KG"},{name:"Cambodia",code:"KH"},{name:"Kiribati",code:"KI"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"South Korea",code:"KR"},{name:"Kosovo",code:"XK"},{name:"Kuwait",code:"KW"},{name:"Laos",code:"LA"},{name:"Lebanon",code:"LB"},{name:"Liberia",code:"LR"},{name:"Libya",code:"LY"},{name:"Saint Lucia",code:"LC"},{name:"Liechtenstein",code:"LI"},{name:"Sri Lanka",code:"LK"},{name:"Lesotho",code:"LS"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Latvia",code:"LV"},{name:"Macau",code:"MO"},{name:"Saint Martin",code:"MF"},{name:"Morocco",code:"MA"},{name:"Monaco",code:"MC"},{name:"Moldova",code:"MD"},{name:"Madagascar",code:"MG"},{name:"Maldives",code:"MV"},{name:"Mexico",code:"MX"},{name:"Marshall Islands",code:"MH"},{name:"Macedonia",code:"MK"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Myanmar",code:"MM"},{name:"Montenegro",code:"ME"},{name:"Mongolia",code:"MN"},{name:"Northern Mariana Islands",code:"MP"},{name:"Mozambique",code:"MZ"},{name:"Mauritania",code:"MR"},{name:"Montserrat",code:"MS"},{name:"Martinique",code:"MQ"},{name:"Mauritius",code:"MU"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Mayotte",code:"YT"},{name:"Namibia",code:"NA"},{name:"New Caledonia",code:"NC"},{name:"Niger",code:"NE"},{name:"Norfolk Island",code:"NF"},{name:"Nigeria",code:"NG"},{name:"Nicaragua",code:"NI"},{name:"Niue",code:"NU"},{name:"Netherlands",code:"NL"},{name:"Norway",code:"NO"},{name:"Nepal",code:"NP"},{name:"Nauru",code:"NR"},{name:"New Zealand",code:"NZ"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Panama",code:"PA"},{name:"Pitcairn Islands",code:"PN"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Palau",code:"PW"},{name:"Papua New Guinea",code:"PG"},{name:"Poland",code:"PL"},{name:"Puerto Rico",code:"PR"},{name:"North Korea",code:"KP"},{name:"Portugal",code:"PT"},{name:"Paraguay",code:"PY"},{name:"Palestine",code:"PS"},{name:"French Polynesia",code:"PF"},{name:"Qatar",code:"QA"},{name:"Réunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russia",code:"RU"},{name:"Rwanda",code:"RW"},{name:"Saudi Arabia",code:"SA"},{name:"Sudan",code:"SD"},{name:"Senegal",code:"SN"},{name:"Singapore",code:"SG"},{name:"South Georgia",code:"GS"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Solomon Islands",code:"SB"},{name:"Sierra Leone",code:"SL"},{name:"El Salvador",code:"SV"},{name:"San Marino",code:"SM"},{name:"Somalia",code:"SO"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Serbia",code:"RS"},{name:"South Sudan",code:"SS"},{name:"São Tomé and Príncipe",code:"ST"},{name:"Suriname",code:"SR"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Sweden",code:"SE"},{name:"Swaziland",code:"SZ"},{name:"Sint Maarten",code:"SX"},{name:"Seychelles",code:"SC"},{name:"Syria",code:"SY"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Chad",code:"TD"},{name:"Togo",code:"TG"},{name:"Thailand",code:"TH"},{name:"Tajikistan",code:"TJ"},{name:"Tokelau",code:"TK"},{name:"Turkmenistan",code:"TM"},{name:"Timor-Leste",code:"TL"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Tuvalu",code:"TV"},{name:"Taiwan",code:"TW"},{name:"Tanzania",code:"TZ"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"United States",code:"US"},{name:"Uzbekistan",code:"UZ"},{name:"Vatican City",code:"VA"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Venezuela",code:"VE"},{name:"British Virgin Islands",code:"VG"},{name:"United States Virgin Islands",code:"VI"},{name:"Vietnam",code:"VN"},{name:"Vanuatu",code:"VU"},{name:"Wallis and Futuna",code:"WF"},{name:"Samoa",code:"WS"},{name:"Yemen",code:"YE"},{name:"South Africa",code:"ZA"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}]},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={months:{full:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],abbreviated:["jan","fév","mar","avr","mai","jun","jul","aoû","sep","oct","nov","déc"]},days:{full:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],abbreviated:["lun","mar","mer","jeu","ven","sam","dim"],initials:["D","L","M","M","J","V","S"]}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}o(37);var n=o(38),a=(i(n),o(21)),s=i(a),r=o(40),l=i(r),c=o(39),d=i(c),u=o(20),v=i(u);s.default.config.devtools=!0,s.default.use(l.default);var _=new l.default({routes:v.default.routes,linkActiveClass:"is-active"});new s.default({router:_,render:function(t){return t(d.default)}}).$mount("#app")},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(193),a=i(n),s=o(11),r=i(s);e.default={data:function(){return{showSidebar:!1,description:"Nucleus - A delightful collection of UI components we use at Temper written with Vue, inspired by Material Design."}},watch:{$route:function(){var t=this;this.updatePageTitle(),this.$nextTick(function(){window.Prism.highlightAll(),t.$refs.pageContent.scrollTop=0,t.showSidebar=!1})}},mounted:function(){this.updatePageTitle()},methods:{updatePageTitle:function(){document.title=this.$route.meta.title+" | "+this.description}},components:{Sidebar:a.default,UiIconButton:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(31),a=i(n),s=o(20),r=i(s),l=o(3),c=i(l),d=o(34),u=i(d);e.default={data:function(){return{version:"0.1.2",menu:r.default.menu}},methods:{onVersionSelect:function(t){if("0.1.2"!==t){var e="",o=window.location.hash+("0.8.9"===t?"-docs":"");"temperworks.github.io"===window.location.hostname&&(e="https://temperworks.github.io/Nucleus"),window.location=e+"/"+t+"/"+o}}},components:{UiIcon:c.default,UiSelect:u.default,UiCollapsible:a.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(224),a=i(n),s=o(4),r=i(s),l=o(3),c=i(l),d=o(1),u=i(d),v=o(2),_=i(v);e.default={data:function(){return{showAlert1:!0,showAlert2:!0,showAlert3:!0,showAlert4:!0,showAlert5:!0,showAlert6:!0,showAlert7:!0}},methods:{resetAlerts:function(){this.showAlert1=!0,this.showAlert2=!0,this.showAlert3=!0,this.showAlert4=!0,this.showAlert5=!0,this.showAlert6=!0,this.showAlert7=!0}},components:{UiAlert:a.default,UiButton:r.default,UiIcon:c.default,UiTab:u.default,UiTabs:_.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(225),a=i(n),s=o(4),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d),v=["January","February","March","April","May","June","July","August","September","October","November","December"],_=[{value:"maggie",label:"Maggie Simpson",image:"https://i.imgur.com/eK26qtK.jpg"},{value:"lisa",label:"Lisa Simpson",image:"https://i.imgur.com/wIb44g9.jpg"},{value:"bart",label:"Bart Simpson",image:"https://i.imgur.com/XkEz9zg.jpg"},{value:"marge",label:"Marge Simpson",image:"https://i.imgur.com/MuFcpQ4.jpg"},{value:"homer",label:"Homer Simpson",image:"https://i.imgur.com/aYPRWX4.jpg"}],p=[{value:"mona",label:"Mona Simpson",image:"https://i.imgur.com/z5xy1eW.jpg"},{value:"abe",label:"Abe Simpson",image:"https://i.imgur.com/3UF8hrf.jpg"}];e.default={data:function(){return{months:v,theSimpsons:_,addedGrannies:!1,autocomplete1:"",autocomplete2:"",autocomplete3:"",autocomplete4:"",autocomplete4Touched:!1,autocomplete5:"",autocomplete6:"",autocomplete7:""}},methods:{addGrannies:function(){this.theSimpsons=this.theSimpsons.concat(p),this.addedGrannies=!0}},components:{UiAutocomplete:a.default,UiButton:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(13),r=i(s),l=o(7),c=i(l),d=o(15),u=i(d),v=o(1),_=i(v),p=o(2),h=i(p),f=[{id:"edit",label:"Edit",icon:"edit",secondaryText:"Ctrl+E"},{id:"duplicate",label:"Duplicate",icon:"content_copy",secondaryText:"Ctrl+D"},{id:"share",label:"Share",icon:"share",secondaryText:"Ctrl+Shift+S",disabled:!0},{type:"divider"},{id:"delete",label:"Delete",icon:"delete",secondaryText:"Del"}];e.default={data:function(){return{size:"normal",iconPosition:"left",loading:!0,menuOptions:f}},components:{UiButton:a.default,UiMenu:r.default,UiRadioGroup:c.default,UiSwitch:u.default,UiTab:_.default,UiTabs:h.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(228),a=i(n),s=o(233),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{breadcrumbs:[{title:"Home",url:"#"},{title:"Bartending",url:"#"},{title:"Strandtent de Pit",url:"#"}]}},components:{UiBreadcrumbContainer:a.default,UiCard:r.default,UiTab:c.default,UiTabs:u.default,"card-title":r.default.Components.Title,"card-subtitle":r.default.Components.Subtitle,"card-divider":r.default.Components.Divider}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(29),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l);e.default={data:function(){return{check1:!0,check2:!1,check3:!0,check4:!1,check5:!0}},components:{UiCheckbox:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(234),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l),d=[{label:"Red",value:"red"},{label:"Green",value:"green"},{label:"Blue",value:"blue"}],u=[{label:"Yellow",value:"yellow",disabled:!0},{label:"Red",value:"red"},{label:"Green",value:"green"},{label:"Blue",value:"blue"}];e.default={data:function(){return{group1:[],group2:["red","blue"],group3:[],group4:[],group5:[],group6:["yellow"],group7:[],options:{defaultGroup:d,secondGroup:u}}},components:{UiCheckboxGroup:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(31),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l);e.default={components:{UiCollapsible:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(235),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{confirmResult:"",publishRequestInProgress:!1,deleteRequestInProgress:!1}},methods:{showConfirm:function(t){this.$refs[t].open()},hideConfirm:function(t){this.$refs[t].close()},onConfirm:function(){this.confirmResult="You confirmed the request."},onDeny:function(){this.confirmResult="You denied the request."},onConfirmPublish:function(){var t=this;this.publishRequestInProgress=!0,setTimeout(function(){t.publishRequestInProgress=!1,t.hideConfirm("publishConfirm"),t.confirmResult="The post was published."},5e3)},onDenyPublish:function(){this.confirmResult="You chose to NOT publish the post."},onConfirmDelete:function(){this.confirmResult="You chose to delete the post."},onDenyDelete:function(){this.confirmResult="You chose to keep the post."}},components:{UiButton:a.default,UiConfirm:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(236),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l),d=o(44),u=i(d);e.default={data:function(){var t=new Date;return t.setDate(t.getDate()+14),{picker1:null,picker2:null,picker3:null,picker4:new Date((new Date).getFullYear(),11,25),picker5:null,picker6:null,picker7:null,picker8:null,picker9:null,picker10:null,picker10Min:new Date,picker10Max:t,picker11:null,picker12:null,picker12Lang:u.default,picker13:null,picker14:null,picker15:new Date}},methods:{picker9Formatter:function(t){return t.toLocaleDateString()},picker11Filter:function(t){return 0!==t.getDay()&&6!==t.getDay()}},components:{UiDatepicker:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(237),a=i(n),s=o(7),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{size:"normal"}},components:{UiFab:a.default,UiRadioGroup:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(238),a=i(n),s=o(3),r=i(s),l=o(7),c=i(l),d=o(1),u=i(d),v=o(2),_=i(v);e.default={data:function(){return{size:"normal",file11PreviewImage:""}},methods:{onFile11Change:function(t){this.file11PreviewImage=URL.createObjectURL(t[0])}},components:{UiFileupload:a.default,UiIcon:r.default,UiRadioGroup:c.default,UiTab:u.default,UiTabs:_.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l);e.default={components:{UiIcon:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(11),a=i(n),s=o(13),r=i(s),l=o(7),c=i(l),d=o(15),u=i(d),v=o(1),_=i(v),p=o(2),h=i(p),f=[{label:"Note",icon:"edit"},{label:"Photo",icon:"photo"},{label:"Document",icon:"description"},{type:"divider"},{label:"Collection",icon:"collections_bookmark"}];e.default={data:function(){return{size:"normal",loading:!0,menuOptions:f}},components:{UiIconButton:a.default,UiMenu:r.default,UiRadioGroup:c.default,UiSwitch:u.default,UiTab:_.default,UiTabs:h.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(13),a=i(n),s=o(12),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d),v=[{id:"edit",label:"Edit",icon:"edit",secondaryText:"Ctrl+E"},{id:"duplicate",label:"Duplicate",icon:"content_copy",secondaryText:"Ctrl+D"},{id:"share",label:"Share",icon:"share",secondaryText:"Ctrl+Shift+S",disabled:!0},{type:"divider"},{id:"delete",label:"Delete",icon:"delete",secondaryText:"Del"}];e.default={data:function(){return{menuOptions:v}},components:{UiMenu:a.default,UiPopover:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(17),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={methods:{openModal:function(t){this.$refs[t].open()},closeModal:function(t){this.$refs[t].close()}},components:{UiButton:a.default,UiModal:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(12),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={methods:{openPopover:function(){setTimeout(this.$refs.popover6.toggle,0)}},components:{UiButton:a.default,UiPopover:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(240),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{loading:!0}},components:{UiButton:a.default,UiPreloader:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(14),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{progress:0,loading:!0,progressInterval:null}},mounted:function(){var t=this;this.progressInterval=setInterval(function(){t.progress>=100?t.progress=0:t.progress+=5},500)},beforeDestroy:function(){clearInterval(this.progressInterval)},components:{UiButton:a.default,UiProgressCircular:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(32),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{progress:0,isLoading:!0,progressInterval:null}},mounted:function(){var t=this;this.progressInterval=setInterval(function(){t.progress>=100?t.progress=0:t.progress+=5},400)},beforeDestroy:function(){clearInterval(this.progressInterval)},components:{UiButton:a.default,UiProgressLinear:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(33),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l);e.default={data:function(){return{radio1:"",radio2:"",radio3:"",radio4:"",radio5:"",radio6:"",radio7:"",radio8:"",radio9:""}},components:{UiRadio:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(7),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l),d=[{label:"Ned",value:"ned"},{label:"Rod",value:"rod"},{label:"Todd",value:"todd"}],u=[{label:"Ned",value:"ned"},{label:"Maude",value:"maude",disabled:!0},{label:"Rod",value:"rod"},{label:"Todd",value:"todd"}];e.default={data:function(){return{group1:"",group2:"rod",group3:"",group4:"",group5:"",group6:"",group7:"",options:{defaultGroup:d,secondGroup:u}}},components:{UiRadioGroup:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(6),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l),d=[{name:"Better Call Saul",image:"https://i.imgur.com/SwZPSS2.jpg"},{name:"Breaking Bad",image:"https://i.imgur.com/tz6FJeN.jpg"},{name:"Sherlock",image:"https://i.imgur.com/Pf1TkJY.jpg"},{name:"The Simpsons",image:"https://i.imgur.com/HJmBlzf.jpg"}],u=[{value:"maggie",text:"Maggie Simpson",image:"https://i.imgur.com/eK26qtK.jpg"},{value:"lisa",text:"Lisa Simpson",image:"https://i.imgur.com/wIb44g9.jpg"},{value:"bart",text:"Bart Simpson",image:"https://i.imgur.com/XkEz9zg.jpg"}],v={name:"image-pane",template:'\n <div class="image-pane" ref="image" :style="{ \'background-image\': \'url(\' + image + \')\' }">\n <ui-ripple-ink trigger="image"></ui-ripple-ink>\n </div>\n ',props:{image:String},components:{UiRippleInk:a.default}};e.default={data:function(){return{tvShows:d,theSimpsons:u}},components:{ImagePane:v,UiRippleInk:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(34),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l),d=o(26),u=i(d),v=o(10),_=o(43),p=i(_),h=o(42);e.default={data:function(){return{select1:"",select2:"",select2o5:"",select3:"Orange",select4:"",select5:{label:"Lavender",image:"https://placehold.it/64/e6e6fa/e6e6fa",value:"lavender"},select6:"",select7:"",select8:[{label:"Orange",image:"https://placehold.it/64/ffa500/ffa500",value:"orange"},{label:"Lime",image:"https://placehold.it/64/00ff00/00ff00",value:"lime"}],select9:[],select10:[],select10Touched:!1,select11:"",select11Options:[],select11Loading:!1,select11NoResults:!1,select11LoadingTimeout:null,select12:{name:"Australia",code:"AU"},select12o5:"",select13:"",select14:"Peach",select15:"",colours:h.colours,colourStrings:h.colourStrings,countries:p.default}},methods:{onQueryChange:function(t){0!==t.length&&this.fetchRemoteResults(t)},fetchRemoteResults:(0,u.default)(function(t){var e=this;this.select11Loading=!0,this.select11LoadingTimeout&&(clearTimeout(this.select11LoadingTimeout),this.select11LoadingTimeout=null),this.select11LoadingTimeout=setTimeout(function(){t=t.toLowerCase(),(0,v.startsWith)(t,"red")?(e.select11Options=h.redShades,e.select11NoResults=!1):(0,v.startsWith)(t,"blue")?(e.select11Options=h.blueShades,e.select11NoResults=!1):(e.select11Options=[],e.select11NoResults=!0),e.select11Loading=!1,e.select11LoadingTimeout=null},1200)},500)},components:{UiSelect:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(242),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{slider1:25,slider2:50,slider3:60,slider4:40,slider5:75}},methods:{resetSliders:function(){this.slider1=25,this.slider2=50,this.slider3=60,this.slider4=40}},components:{UiButton:a.default,UiSlider:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(35),a=i(n),s=o(243),r=i(s),l=o(4),c=i(l),d=o(7),u=i(d),v=o(15),_=i(v),p=o(1),h=i(p),f=o(2),m=i(f),g=o(36),b=i(g);e.default={data:function(){return{position:"left",transition:"slide",queueSnackbars:!1,action:"",duration:5,actionColor:"accent",message:"Post deleted"}},methods:{createSnackbar:function(){this.$refs.snackbarContainer.createSnackbar({message:this.message,action:this.action,actionColor:this.actionColor,duration:1e3*this.duration})}},components:{UiButton:c.default,UiRadioGroup:u.default,UiSnackbar:a.default,UiSnackbarContainer:r.default,UiSwitch:_.default,UiTab:h.default,UiTabs:m.default,UiTextbox:b.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(15),a=i(n),s=o(1),r=i(s),l=o(2),c=i(l);e.default={data:function(){return{switch1:!0,switch2:!1,switch3:!0,switch4:!1,switch5:!0}},components:{UiSwitch:a.default,UiTab:r.default,UiTabs:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(3),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d);e.default={data:function(){return{showCollectionsTab:!0,disableAuthorsTab:!0}},methods:{selectFavouritesTab:function(){this.$refs.tabSet1.setActiveTab("favourites")},toggleCollectionsTab:function(){this.showCollectionsTab=!this.showCollectionsTab},toggleAuthorsTab:function(){this.disableAuthorsTab=!this.disableAuthorsTab}},components:{UiButton:a.default,UiIcon:r.default,UiTab:c.default,UiTabs:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),a=i(n),s=o(2),r=i(s),l=o(36),c=i(l);e.default={data:function(){return{textbox1:"",textbox2:"",textbox3:"",textbox4:"John Doe",textbox5:"Jane Doe",textbox6:"",textbox7:"",textbox8:"",textbox9:"",textbox10:"",textbox10Touched:!1,textbox11:"",textbox12:0,textbox13:"",textbox14:"",textbox15:"My name is Jane Doe..."}},components:{UiTab:a.default,UiTabs:r.default,UiTextbox:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(11),a=i(n),s=o(13),r=i(s),l=o(1),c=i(l),d=o(2),u=i(d),v=o(245),_=i(v),p=[{label:"Settings"},{label:"About"},{label:"Help"}];e.default={data:function(){return{menuOptions:p}},components:{UiIconButton:a.default,UiMenu:r.default,UiTab:c.default,UiTabs:u.default,UiToolbar:_.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(1),a=i(n),s=o(2),r=i(s),l=o(18),c=i(l),d=[{position:"top center",name:"Maggie Simpson",image:"https://i.imgur.com/eK26qtK.jpg"},{position:"bottom center",name:"Lisa Simpson",image:"https://i.imgur.com/wIb44g9.jpg"},{position:"right middle",name:"Bart Simpson",image:"https://i.imgur.com/XkEz9zg.jpg"}],u={name:"image-pane",template:'\n <div class="image-pane" ref="image" :style="{ \'background-image\': \'url(\' + image + \')\' }">\n <ui-tooltip trigger="image" :position="tooltipPosition">{{ name }}</ui-tooltip>\n </div>\n ',props:{image:String,name:String,tooltipPosition:String},components:{UiTooltip:c.default}};e.default={data:function(){return{theSimpsons:d}},components:{ImagePane:u,UiTab:a.default,UiTabs:r.default,UiTooltip:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(30),a=i(n),s=o(3),r=i(s);e.default={name:"ui-alert",props:{type:{type:String,default:"info"},removeIcon:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!0}},computed:{classes:function(){return["ui-alert--type-"+this.type]}},methods:{dismissAlert:function(){this.$emit("dismiss")}},components:{UiCloseButton:a.default,UiIcon:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(22),a=i(n),s=o(226),r=i(s),l=o(3),c=i(l),d=o(5),u=i(d),v=o(25),_=i(v);e.default={name:"ui-autocomplete",props:{name:String,placeholder:String,value:{type:[String,Number],required:!0},icon:String,iconPosition:{type:String,default:"left"},label:String,floatingLabel:{type:Boolean,default:!1},help:String,error:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"simple"},suggestions:{type:Array,default:function(){return[]}},limit:{type:Number,default:8},append:{type:Boolean,default:!1},appendDelimiter:{type:String,default:", "},minChars:{type:Number,default:2},showOnUpDown:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},filter:Function,highlightOnFirstMatch:{type:Boolean,default:!0},cycleHighlight:{type:Boolean,default:!0},keys:{type:Object,default:function(){return u.default.data.UiAutocomplete.keys}},invalid:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,isActive:!1,isTouched:!1,showDropdown:!1,highlightedIndex:-1}},computed:{classes:function(){return["ui-autocomplete--type-"+this.type,"ui-autocomplete--icon-position-"+this.iconPosition,{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-touched":this.isTouched},{"is-disabled":this.disabled},{"has-label":this.hasLabel},{"has-floating-label":this.hasFloatingLabel}]},labelClasses:function(){return{"is-inline":this.hasFloatingLabel&&this.isLabelInline,"is-floating":this.hasFloatingLabel&&!this.isLabelInline}},hasLabel:function(){return Boolean(this.label)||Boolean(this.$slots.default)},hasFloatingLabel:function(){return this.hasLabel&&this.floatingLabel},isLabelInline:function(){return 0===this.value.length&&!this.isActive},hasFeedback:function(){return Boolean(this.help)||Boolean(this.error)},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)},matchingSuggestions:function(){var t=this;return this.suggestions.filter(function(e,o){return t.filter?t.filter(e,t.value):t.defaultFilter(e,o)}).slice(0,this.limit)}},watch:{value:function(){this.isActive&&this.value.length>=this.minChars&&this.openDropdown(),this.highlightedIndex=this.highlightOnFirstMatch?0:-1}},mounted:function(){document.addEventListener("click",this.onExternalClick)},beforeDestroy:function(){document.removeEventListener("click",this.onExternalClick)},methods:{defaultFilter:function(t){var e=t[this.keys.label]||t,o=this.value;return"string"==typeof o&&(o=o.toLowerCase()),(0,_.default)(o,e.toLowerCase())},selectSuggestion:function(t){var e=this,o=void 0;this.append?o+=this.appendDelimiter+(t[this.keys.value]||t):o=t[this.keys.value]||t,this.updateValue(o),this.$emit("select",t),this.$nextTick(function(){e.closeDropdown(),e.$refs.input.focus()})},highlightSuggestion:function(t){var e=this.$refs.suggestions.length-1;-2===t?t=e:t<0?t=this.cycleHighlight?e:t:t>e&&(t=this.cycleHighlight?0:-1),this.highlightedIndex=t,this.showOnUpDown&&this.openDropdown(),t<0||t>e?this.$emit("highlight-overflow",t):this.$emit("highlight",this.$refs.suggestions[t].suggestion,t)},selectHighlighted:function(t,e){this.showDropdown&&this.$refs.suggestions.length>0&&(e.preventDefault(),this.selectSuggestion(this.$refs.suggestions[t].suggestion))},openDropdown:function(){this.showDropdown||(this.showDropdown=!0,this.$emit("dropdown-open"))},closeDropdown:function(){var t=this;this.showDropdown&&this.$nextTick(function(){t.showDropdown=!1,t.highlightedIndex=-1,t.$emit("dropdown-close")})},updateValue:function(t){this.$emit("input",t)},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onChange:function(t){this.$emit("change",this.value,t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onExternalClick:function(t){!this.$el.contains(t.target)&&this.showDropdown&&this.closeDropdown()},reset:function(){document.isActiveElement===this.$refs.input&&document.isActiveElement.blur(),this.$emit("input",this.initialValue),this.isTouched=!1}},components:{UiAutocompleteSuggestion:r.default,UiIcon:c.default},directives:{autofocus:a.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-autocomplete-suggestion",props:{suggestion:{type:[String,Object],required:!0},type:{type:String,default:"simple"},highlighted:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{label:"label",image:"image"}}}},computed:{classes:function(){return["ui-autocomplete-suggestion--type-"+this.type,{"is-highlighted":this.highlighted}]},imageStyle:function(){return{"background-image":"url("+this.suggestion[this.keys.image]+")"}}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-breadcrumb",props:{item:{type:Object,required:!0}},computed:{classes:function(){return["ui-breadcrumb--type-"+this.type]}},methods:{},components:{}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(227),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-breadcrumb-container",props:{items:{type:Array,default:[],required:!0}},computed:{classes:function(){return["ui-breadcrumb-container--type-"+this.type]}},methods:{},components:{UiBreadcrumb:n.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(12),r=i(s),l=o(14),c=i(l),d=o(6),u=i(d),v=o(5),_=i(v);e.default={name:"ui-button",props:{type:{type:String,default:"primary"},buttonType:{type:String,default:"submit"},color:{type:String,default:"default"},size:{type:String,default:"normal"},raised:{type:Boolean,default:!1},icon:String,iconPosition:{type:String,default:"left"},loading:{type:Boolean,default:!1},hasDropdown:{type:Boolean,default:!1},dropdownPosition:{type:String,default:"bottom left"},openDropdownOn:{type:String,default:"click"},disableRipple:{type:Boolean,default:_.default.data.disableRipple},disabled:{type:Boolean,default:!1}},data:function(){return{focusRing:{top:0,left:0,size:0}}},computed:{classes:function(){return["ui-button--type-"+this.type,"ui-button--color-"+this.color,"ui-button--icon-position-"+this.iconPosition,"ui-button--size-"+this.size,{"is-raised":this.raised},{"is-loading":this.loading},{"is-disabled":this.disabled||this.loading},{"has-dropdown":this.hasDropdown}]},focusRingStyle:function(){return{height:this.focusRing.size+"px",width:this.focusRing.size+"px",top:this.focusRing.top+"px",left:this.focusRing.left+"px"}},progressColor:function(){return"default"===this.color||"secondary"===this.type?"black":"white"}},methods:{onClick:function(t){this.$emit("click",t)},onFocus:function(){var t={width:this.$el.clientWidth,height:this.$el.clientHeight};this.focusRing.size=t.width-16,this.focusRing.top=-1*(this.focusRing.size-t.height)/2,this.focusRing.left=(t.width-this.focusRing.size)/2},onDropdownOpen:function(){this.$emit("dropdown-open")},onDropdownClose:function(){this.$emit("dropdown-close")},openDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.open()},closeDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.close()},toggleDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.toggle()}},components:{UiIcon:a.default,UiPopover:r.default,UiProgressCircular:c.default,UiRippleInk:u.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(230),a=i(n),s=o(231),r=i(s),l=o(9),c=i(l),d=o(23);e.default={name:"ui-calendar",props:{value:Date,minDate:Date,maxDate:Date,lang:{type:Object,default:function(){return c.default.defaultLang}},yearRange:{type:Array,default:function(){var t=(new Date).getFullYear();return Array.apply(null,Array(200)).map(function(e,o){return t-100+o})}},dateFilter:Function,color:{type:String,default:"primary"},orientation:{type:String,default:"portrait"}},data:function(){return{today:new Date,dateInView:this.getDateInRange(this.value,new Date),showYearPicker:!1}},computed:{classes:function(){return["ui-calendar--color-"+this.color,"ui-calendar--orientation-"+this.orientation]},headerYear:function(){return this.value?this.value.getFullYear():this.today.getFullYear()},headerDay:function(){return this.value?c.default.getDayAbbreviated(this.value,this.lang):c.default.getDayAbbreviated(this.today,this.lang)},headerDate:function(){var t=this.value?this.value:this.today;return c.default.getMonthAbbreviated(t,this.lang)+" "+c.default.getDayOfMonth(t,this.lang)}},watch:{value:function(){this.value&&(this.dateInView=c.default.clone(this.value))},showYearPicker:function(){var t=this;this.showYearPicker&&this.$nextTick(function(){var e=t.$refs.years.querySelector(".is-selected")||t.$refs.years.querySelector(".is-current-year");(0,d.scrollIntoView)(e,{marginTop:126})})}},methods:{selectYear:function(t){var e=c.default.clone(this.dateInView);e.setFullYear(t),this.dateInView=this.getDateInRange(e),this.showYearPicker=!1},getDateInRange:function(t,e){return t=t||e,this.minDate&&t.getTime()<this.minDate.getTime()?this.minDate:this.maxDate&&t.getTime()>this.maxDate.getTime()?this.maxDate:t},getYearClasses:function(t){return{"is-current-year":this.isYearCurrent(t),"is-selected":this.isYearSelected(t)}},isYearCurrent:function(t){return t===this.today.getFullYear()},isYearSelected:function(t){return this.value&&t===this.value.getFullYear()},isYearOutOfRange:function(t){return!!(this.minDate&&t<this.minDate.getFullYear())||!!(this.maxDate&&t>this.maxDate.getFullYear())},onDateSelect:function(t){this.$emit("input",t),this.$emit("date-select",t)},onGoToDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isForward:!0};this.$refs.month.goToDate(t,e)},onMonthChange:function(t){this.dateInView=t,this.$emit("month-change",t)}},components:{UiCalendarControls:a.default,UiCalendarMonth:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(11),r=i(s),l=o(9),c=i(l);e.default={name:"ui-calendar-controls",props:{lang:Object,dateInView:Date,minDate:Date,maxDate:Date},computed:{monthAndYear:function(){return c.default.getMonthFull(this.dateInView,this.lang)+" "+this.dateInView.getFullYear()},previousMonthDisabled:function(){if(!this.minDate)return!1;var t=c.default.clone(this.dateInView);return t.setDate(0),this.minDate.getTime()>t.getTime()},nextMonthDisabled:function(){if(!this.maxDate)return!1;var t=c.default.clone(this.dateInView);return t.setMonth(this.dateInView.getMonth()+1,1),this.maxDate.getTime()<t.getTime()}},methods:{goToPreviousMonth:function(){var t=c.default.clone(this.dateInView);t.setMonth(t.getMonth()-1),this.goToDate(t,{isForward:!1})},goToNextMonth:function(){var t=c.default.clone(this.dateInView);t.setMonth(t.getMonth()+1),this.goToDate(t,{isForward:!0})},goToDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isForward:!0};this.$emit("go-to-date",t,e)}},components:{UiIcon:a.default,UiIconButton:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(232),a=i(n),s=o(9),r=i(s);e.default={name:"ui-calendar-month",props:{lang:Object,dateFilter:Function,dateInView:Date,selected:Date,maxDate:Date,minDate:Date},data:function(){return{dateOutOfView:r.default.clone(this.dateInView),isSliding:!1,slideDirection:"",isIE:Boolean(window.MSInputMethodContext)&&Boolean(document.documentMode),ieTimeout:null}},computed:{weekClasses:function(){var t;return[(t={},t["ui-calendar-month--slide-"+this.slideDirection]=this.isSliding,t),{"is-sliding":this.isSliding}]},currentWeekStartDates:function(){return this.getWeekStartDates(this.dateInView)},otherWeekStartDates:function(){return this.getWeekStartDates(this.dateOutOfView)}},methods:{getWeekStartDates:function(t){var e=r.default.clone(t);e.setDate(1),e=r.default.moveToDayOfWeek(e,0);var o=r.default.clone(e);o.setDate(o.getDate()+7);for(var i=[e],n=o.getMonth();o.getMonth()===n;)i.push(r.default.clone(o)),o.setDate(o.getDate()+7);return i},goToDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isForward:!0};this.isSliding=!0,this.slideDirection=e.isForward?"left":"right",this.dateOutOfView=r.default.clone(t),this.isIE&&(this.ieTimeout=setTimeout(this.onTransitionEnd,300))},onDateSelect:function(t){this.$emit("date-select",t)},onTransitionEnd:function(){this.ieTimeout&&(clearTimeout(this.ieTimeout),this.ieTimeout=null,!this.isSliding)||(this.isSliding=!1,this.slideDirection="",this.$emit("change",r.default.clone(this.dateOutOfView)),this.$emit("transition-end"))}},components:{UiCalendarWeek:a.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(9),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-calendar-week",props:{month:Number,weekStart:Date,minDate:Date,maxDate:Date,selected:Date,dateFilter:Function,visible:{type:Boolean,default:!0}},data:function(){return{today:new Date}},computed:{dates:function(){return this.buildDays(this.weekStart)}},methods:{buildDays:function(t){for(var e=[n.default.clone(t)],o=n.default.clone(t),i=1;i<=6;i++)o=n.default.clone(o),o.setDate(o.getDate()+1),e.push(o);return e},getDateClasses:function(t){return[{"is-today":n.default.isSameDay(t,this.today)},{"is-in-other-month":this.isDateInOtherMonth(t)},{"is-selected":this.selected&&n.default.isSameDay(t,this.selected)},{"is-disabled":this.isDateDisabled(t)}]},selectDate:function(t){this.isDateDisabled(t)||this.$emit("date-select",t)},getDayOfMonth:function(t){return n.default.getDayOfMonth(t)},isDateInOtherMonth:function(t){return this.month!==t.getMonth()},isDateDisabled:function(t){return!!(this.minDate&&n.default.isBefore(t,this.minDate)||this.maxDate&&n.default.isAfter(t,this.maxDate))||!!this.dateFilter&&!this.dateFilter(t)}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(21);!function(t){t&&t.__esModule}(i);e.default={Components:{Title:{template:'\n <h3 class="ui-card__title"><slot></slot></h3>\n '},Subtitle:{template:'\n <h4 class="ui-card__subtitle"><slot></slot></h4>\n '},Divider:{template:'\n <div class="ui-card__divider"></div>\n '}},name:"ui-card",props:{type:{type:String,default:"default"},raised:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:null}},computed:{classes:function(){return["ui-card--type-"+this.type,{"is-raised":this.raised}]}},methods:{dismissAlert:function(){this.$emit("dismiss")}},components:{}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(10);e.default={name:"ui-checkbox",props:{name:String,label:String,value:{required:!0},trueValue:{default:!0},falseValue:{default:!1},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},boxPosition:{type:String,default:"left"},color:{type:String,default:"primary"},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,isChecked:(0,i.looseEqual)(this.value,this.trueValue)||this.checked}},computed:{classes:function(){return["ui-checkbox--color-"+this.color,"ui-checkbox--box-position-"+this.boxPosition,{"is-checked":this.isChecked},{"is-active":this.isActive},{"is-disabled":this.disabled}]}},watch:{value:function(){this.isChecked=(0,i.looseEqual)(this.value,this.trueValue)}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},methods:{onClick:function(t){this.isChecked=t.target.checked,this.$emit("input",t.target.checked?this.trueValue:this.falseValue)},onChange:function(t){this.$emit("change",this.isChecked?this.trueValue:this.falseValue,t)},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t)}}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(29),a=i(n),s=o(5),r=i(s),l=o(10);e.default={name:"ui-checkbox-group",props:{name:String,options:{type:Array,required:!0},value:{type:Array,required:!0},keys:{type:Object,default:function(){return r.default.data.UiCheckboxGroup.keys}},label:String,color:{type:String,default:"primary"},boxPosition:{type:String,default:"left"},vertical:{type:Boolean,default:!1},help:String,error:String,invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,ignoreChange:!1,checkboxValues:[],initialValue:JSON.parse(JSON.stringify(this.value))}},computed:{classes:function(){return["ui-checkbox-group--color-"+this.color,"ui-checkbox-group--box-position-"+this.boxPosition,{"is-vertical":this.vertical},{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-disabled":this.disabled}]},hasFeedback:function(){return Boolean(this.help)||this.showError},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)}},methods:{reset:function(){var t=this;this.ignoreChange=!0,this.options.forEach(function(e,o){t.checkboxValues[o]=t.isOptionCheckedByDefault(e)}),this.ignoreChange=!1,this.$emit("input",this.initialValue.length>0?[].concat(this.initialValue):[])},isOptionCheckedByDefault:function(t){return(0,l.looseIndexOf)(this.initialValue,t[this.keys.value]||t)>-1},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t)},onChange:function(t,e){if(!this.ignoreChange){var o=t[0],i=t[1],n=[],a=e[this.keys.value]||e,s=(0,l.looseIndexOf)(this.value,a);o&&s<0&&(n=this.value.concat(a)),!o&&s>-1&&(n=this.value.slice(0,s).concat(this.value.slice(s+1))),this.$emit("input",n),this.$emit("change",n,i)}}},components:{UiCheckbox:a.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(5),c=i(l);e.default={name:"ui-close-button",props:{size:{type:String,default:"normal"},color:{type:String,default:"black"},disableRipple:{type:Boolean,default:c.default.data.disableRipple},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return["ui-close-button--size-"+this.size,"ui-close-button--color-"+this.color,{"is-disabled":this.disabled||this.loading}]}},methods:{onClick:function(t){this.$emit("click",t)}},components:{UiIcon:a.default,UiRippleInk:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(5),c=i(l),d=o(16),u=i(d),v=o(24),_=i(v);e.default={name:"ui-collapsible",props:{open:{type:Boolean,default:!1},title:String,removeIcon:{type:Boolean,default:!1},disableRipple:{type:Boolean,default:c.default.data.disableRipple},disabled:{type:Boolean,default:!1},type:{type:String,default:""}},data:function(){return{height:0,isReady:!1,isOpen:this.open,useInitialHeight:!1,id:_.default.short("ui-collapsible-")}},computed:{classes:function(){return[{"is-open":this.isOpen},{"is-disabled":this.disabled},{"ui-collapsible--flat":"flat"===this.type}]},calculatedHeight:function(){return 0===this.height||this.useInitialHeight?"initial":this.height+"px"}},watch:{open:function(){this.isOpen!==this.open&&(this.isOpen=this.open)}},mounted:function(){var t=this;this.isReady=!0,this.refreshHeight(),this.$on("window-resize",function(){t.refreshHeight()})},methods:{onEnter:function(){this.$emit("open"),this.refreshHeight()},onLeave:function(){this.$emit("close")},toggleCollapsible:function(){this.disabled||(this.isOpen=!this.isOpen)},refreshHeight:function(){var t=this,e=this.$refs.body;this.useInitialHeight=!0,e.style.display="block",this.$nextTick(function(){t.height=e.scrollHeight+1,t.useInitialHeight=!1,t.isOpen||(e.style.display="none")})}},components:{UiIcon:a.default,UiRippleInk:r.default},mixins:[u.default]}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(17),r=i(s),l=o(8),c=i(l);e.default={name:"ui-confirm",props:{title:{type:String,default:"UiConfirm"},type:{type:String,default:"primary"},confirmButtonText:{type:String,default:"OK"},confirmButtonIcon:String,denyButtonText:{type:String,default:"Cancel"},denyButtonIcon:String,autofocus:{type:String,default:"deny-button"},closeOnConfirm:{type:Boolean,default:!0},dismissOn:String,transition:String,loading:{type:Boolean,default:!1}},computed:{confirmButtonColor:function(){return{default:"default",primary:"primary",accent:"accent",success:"green",warning:"orange",danger:"red"}[this.type]}},methods:{open:function(){this.$refs.modal.open()},close:function(){this.$refs.modal.close()},confirm:function(){this.$emit("confirm"),this.closeOnConfirm&&this.$refs.modal.close()},deny:function(){this.$refs.modal.close(),this.$emit("deny")},onModalOpen:function(){var t=void 0;"confirm-button"===this.autofocus?t=this.$refs.confirmButton.$el:"deny-button"===this.autofocus&&(t=this.$refs.denyButton.$el),t&&(c.default.add(t,"has-focus-ring"),t.addEventListener("blur",this.removeAutoFocus),t.focus()),this.$emit("open")},onModalClose:function(){this.$emit("close")},removeAutoFocus:function(){var t=void 0;"confirm-button"===this.autofocus?t=this.$refs.confirmButton.$el:"deny-button"===this.autofocus&&(t=this.$refs.denyButton.$el),t&&(c.default.remove(t,"has-focus-ring"),t.removeEventListener("blur",this.removeAutoFocus))}},components:{UiButton:a.default,UiModal:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(4),a=i(n),s=o(229),r=i(s),l=o(3),c=i(l),d=o(17),u=i(d),v=o(12),_=i(v),p=o(9),h=i(p);e.default={name:"ui-datepicker",props:{name:String,value:Date,minDate:Date,maxDate:Date,yearRange:Array,lang:{type:Object,default:function(){return h.default.defaultLang}},customFormatter:Function,dateFilter:Function,color:{type:String,default:"primary"},orientation:{type:String,default:"portrait"},pickerType:{type:String,default:"popover"},okButtonText:{type:String,default:"OK"},cancelButtonText:{type:String,default:"Cancel"},placeholder:String,icon:String,iconPosition:{type:String,default:"left"},label:String,floatingLabel:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},help:String,error:String,disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,isTouched:!1,valueAtModalOpen:null,initialValue:JSON.stringify(this.value)}},computed:{classes:function(){return["ui-datepicker--icon-position-"+this.iconPosition,"ui-datepicker--orientation-"+this.orientation,{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-touched":this.isTouched},{"is-disabled":this.disabled},{"has-label":this.hasLabel},{"has-floating-label":this.hasFloatingLabel}]},labelClasses:function(){return{"is-inline":this.hasFloatingLabel&&this.isLabelInline,"is-floating":this.hasFloatingLabel&&!this.isLabelInline}},hasLabel:function(){return Boolean(this.label)||Boolean(this.$slots.default)},hasFloatingLabel:function(){return this.hasLabel&&this.floatingLabel},isLabelInline:function(){return!this.value&&!this.isActive},hasFeedback:function(){return Boolean(this.help)||Boolean(this.error)},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)},displayText:function(){return this.value?this.customFormatter?this.customFormatter(this.value,this.lang):h.default.humanize(this.value,this.lang):""},hasDisplayText:function(){return Boolean(this.displayText.length)},submittedValue:function(){return this.value?this.value.getFullYear()+"-"+this.value.getMonth()+"-"+this.value.getDate():""},usesPopover:function(){return"popover"===this.pickerType},usesModal:function(){return"modal"===this.pickerType}},mounted:function(){document.addEventListener("click",this.onExternalClick)},beforeDestroy:function(){document.removeEventListener("click",this.onExternalClick)},methods:{onDateSelect:function(t){this.$emit("input",t),this.closePicker()},openPicker:function(){this.disabled||this.$refs[this.usesModal?"modal":"popover"].open()},closePicker:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoBlur:!1};this.usesPopover&&this.$refs.popover.close(),t.autoBlur?this.isActive=!1:this.$refs.label.focus()},onClick:function(){this.usesModal&&!this.disabled&&this.$refs.modal.open()},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t),this.usesPopover&&this.$refs.popover.dropInstance.isOpened()&&this.closePicker({autoBlur:!0})},onPickerOpen:function(){this.usesModal&&(this.valueAtModalOpen=this.value?h.default.clone(this.value):null),this.isActive=!0,this.$emit("open")},onPickerClose:function(){this.$emit("close"),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onPickerCancel:function(){this.$emit("input",this.valueAtModalOpen),this.$refs.modal.close()},onExternalClick:function(t){if(!this.disabled){this.$el.contains(t.target)||this.$refs[this.usesPopover?"popover":"modal"].$el.contains(t.target)||this.isActive&&(this.isActive=!1)}},reset:function(){this.$emit("input",JSON.parse(this.initialValue))},resetTouched:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{touched:!1};this.isTouched=t.touched}},components:{UiButton:a.default,UiCalendar:r.default,UiIcon:c.default,UiModal:u.default,UiPopover:_.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(18),c=i(l),d=o(5),u=i(d);e.default={name:"ui-fab",props:{size:{type:String,default:"normal"},color:{type:String,default:"default"},icon:String,ariaLabel:String,tooltip:String,openTooltipOn:String,tooltipPosition:String,disableRipple:{type:Boolean,default:u.default.data.disableRipple}},computed:{classes:function(){return["ui-fab--color-"+this.color,"ui-fab--size-"+this.size]}},methods:{onClick:function(t){this.$emit("click",t)}},components:{UiIcon:a.default,UiRippleInk:r.default,UiTooltip:c.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(5),c=i(l);e.default={name:"ui-fileupload",props:{name:{type:String,required:!0},label:String,accept:String,multiple:{type:Boolean,default:!1},required:{type:Boolean,default:!1},type:{type:String,default:"primary"},color:{type:String,default:"default"},size:{type:String,default:"normal"},raised:{type:Boolean,default:!1},iconPosition:{type:String,default:"left"},disableRipple:{type:Boolean,default:c.default.data.disableRipple},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,hasSelection:!1,hasMultiple:!1,displayText:"",focusRing:{top:0,left:0,size:0,initialized:!1}}},computed:{classes:function(){return["ui-fileupload--type-"+this.type,"ui-fileupload--color-"+this.color,"ui-fileupload--icon-position-"+this.iconPosition,"ui-fileupload--size-"+this.size,{"is-active":this.isActive},{"is-multiple":this.hasMultiple},{"is-raised":this.raised},{"is-disabled":this.disabled}]},placeholder:function(){return this.label?this.label:this.multiple?"Choose files":"Choose a file"},focusRingStyle:function(){return{height:this.focusRing.size+"px",width:this.focusRing.size+"px",top:this.focusRing.top+"px",left:this.focusRing.left+"px"}}},methods:{onFocus:function(t){this.isActive=!0,this.$emit("focus",t),this.focusRing.initialized||this.initializeFocusRing()},onBlur:function(t){this.isActive=!1,this.$emit("blur",t)},onChange:function(t){var e=this,o=void 0,i=this.$refs.input;o=i.files&&i.files.length>1?i.files.length+" files selected":t.target.value.split("\\").pop(),o&&(this.hasSelection=!0,this.displayText=o,this.hasMultiple=i.files.length>1,this.$nextTick(function(){return e.refreshFocusRing()})),this.$emit("change",i.files,t)},initializeFocusRing:function(){this.refreshFocusRing(),this.focusRing.initialized=!0},refreshFocusRing:function(){var t={width:this.$el.clientWidth,height:this.$el.clientHeight};this.focusRing.size=t.width-16,this.focusRing.top=-1*(this.focusRing.size-t.height)/2,this.focusRing.left=(t.width-this.focusRing.size)/2}},components:{UiIcon:a.default,UiRippleInk:r.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-icon",props:{icon:String,iconSet:{type:String,default:"material-icons"},ariaLabel:String,removeText:{type:Boolean,default:!1},useSvg:{type:Boolean,default:!1}}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(12),r=i(s),l=o(14),c=i(l),d=o(6),u=i(d),v=o(18),_=i(v),p=o(5),h=i(p);e.default={name:"ui-icon-button",props:{type:{type:String,default:"primary"},buttonType:{type:String,default:"button"},color:{type:String,default:"default"},size:{type:String,default:"normal"},icon:String,ariaLabel:String,loading:{type:Boolean,default:!1},hasDropdown:{type:Boolean,default:!1},dropdownPosition:{type:String,default:"bottom left"},openDropdownOn:{type:String,default:"click"},tooltip:String,openTooltipOn:String,tooltipPosition:String,disableRipple:{type:Boolean,default:h.default.data.disableRipple},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return["ui-icon-button--type-"+this.type,"ui-icon-button--color-"+this.color,"ui-icon-button--size-"+this.size,{"is-loading":this.loading},{"is-disabled":this.disabled||this.loading},{"has-dropdown":this.hasDropdown}]},progressColor:function(){return"primary"===this.type?"default"===this.color||"black"===this.color?"black":"white":"white"===this.color?"white":"black"}},methods:{onClick:function(t){this.$emit("click",t)},onDropdownOpen:function(){this.$emit("dropdown-open")},onDropdownClose:function(){this.$emit("dropdown-close")},openDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.open()},closeDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.close()},toggleDropdown:function(){this.$refs.dropdown&&this.$refs.dropdown.toggle()}},components:{UiIcon:a.default,UiPopover:r.default,UiProgressCircular:c.default,UiRippleInk:u.default,UiTooltip:_.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(239),a=i(n),s=o(5),r=i(s);e.default={name:"ui-menu",props:{options:{type:Array,default:function(){return[]}},hasIcons:{type:Boolean,default:!1},iconProps:Object,hasSecondaryText:{type:Boolean,default:!1},containFocus:{type:Boolean,default:!1},keys:{type:Object,default:function(){return r.default.data.UiMenu.keys}},disableRipple:{type:Boolean,default:r.default.data.disableRipple},raised:{type:Boolean,default:!1}},computed:{classes:function(){return{"is-raised":this.raised,"has-icons":this.hasIcons,"has-secondary-text":this.hasSecondaryText}}},methods:{selectOption:function(t){t.disabled||"divider"===t.type||(this.$emit("select",t),this.closeMenu())},closeMenu:function(){this.$emit("close")},redirectFocus:function(t){t.stopPropagation(),this.$el.querySelector(".ui-menu-option").focus()}},components:{UiMenuOption:a.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(5),c=i(l);e.default={name:"ui-menu-option",props:{type:String,label:String,icon:String,iconProps:{type:Object,default:function(){return{}}},secondaryText:String,disableRipple:{type:Boolean,default:c.default.data.disableRipple},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return{"is-divider":this.isDivider,"is-disabled":this.disabled}},isDivider:function(){return"divider"===this.type}},components:{UiIcon:a.default,UiRippleInk:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(30),a=i(n),s=o(8),r=i(s);e.default={name:"ui-modal",props:{title:{type:String,default:"UiModal title"},size:{type:String,default:"normal"},role:{type:String,default:"dialog"},transition:{type:String,default:"scale"},removeHeader:{type:Boolean,default:!1},removeCloseButton:{type:Boolean,default:!1},preventShift:{type:Boolean,default:!1},dismissible:{type:Boolean,default:!0},dismissOn:{type:String,default:"backdrop esc close-button"}},data:function(){return{isOpen:!1,lastfocusedElement:null}},computed:{classes:function(){return["ui-modal--size-"+this.size,{"has-footer":this.hasFooter},{"is-open":this.isOpen}]},hasFooter:function(){return Boolean(this.$slots.footer)},toggleTransition:function(){return"ui-modal--transition-"+this.transition},dismissOnBackdrop:function(){return this.dismissOn.indexOf("backdrop")>-1},dismissOnCloseButton:function(){return this.dismissOn.indexOf("close-button")>-1},dismissOnEsc:function(){return this.dismissOn.indexOf("esc")>-1}},watch:{isOpen:function(){var t=this;this.$nextTick(function(){t[t.isOpen?"onOpen":"onClose"]()})}},beforeDestroy:function(){this.isOpen&&this.teardownModal()},methods:{open:function(){this.isOpen=!0},close:function(){this.isOpen=!1},closeModal:function(t){this.dismissible&&(t.currentTarget===this.$refs.backdrop&&t.target!==t.currentTarget||(this.isOpen=!1))},onOpen:function(){this.lastfocusedElement=document.activeElement,this.$refs.container.focus(),r.default.add(document.body,"ui-modal--is-open"),document.addEventListener("focus",this.restrictFocus,!0),this.$emit("open")},onClose:function(){this.teardownModal(),this.$emit("close")},redirectFocus:function(){this.$refs.container.focus()},restrictFocus:function(t){this.$refs.container.contains(t.target)||(t.stopPropagation(),this.$refs.container.focus())},teardownModal:function(){document.removeEventListener("focus",this.restrictFocus,!0),this.lastfocusedElement&&this.lastfocusedElement.focus()},onEnter:function(){this.$emit("reveal")},onLeave:function(){this.$emit("hide"),r.default.remove(document.body,"ui-modal--is-open")}},components:{UiCloseButton:a.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(8),a=i(n),s=o(27),r=i(s);e.default={name:"ui-popover",props:{trigger:{type:String,required:!0},dropdownPosition:{type:String,default:"bottom left"},openOn:{type:String,default:"click"},containFocus:{type:Boolean,default:!1},focusRedirector:Function,raised:{type:Boolean,default:!0}},data:function(){return{dropInstance:null,lastfocusedElement:null}},computed:{triggerEl:function(){return this.$parent.$refs[this.trigger]}},mounted:function(){this.triggerEl&&this.initializeDropdown()},beforeDestroy:function(){this.dropInstance&&this.dropInstance.destroy()},methods:{initializeDropdown:function(){this.dropInstance=new r.default({target:this.triggerEl,content:this.$el,position:this.dropdownPosition,constrainToWindow:!0,openOn:this.openOn}),"bottom left"!==this.dropdownPosition&&(this.dropInstance.open(),this.dropInstance.close(),this.dropInstance.open(),this.dropInstance.close()),this.dropInstance.on("open",this.onOpen),this.dropInstance.on("close",this.onClose)},openDropdown:function(){this.dropInstance&&this.dropInstance.open()},closeDropdown:function(){this.dropInstance&&this.dropInstance.close()},toggleDropdown:function(t){this.dropInstance&&this.dropInstance.toggle(t)},positionDrop:function(){var t=this.dropInstance,e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=t.drop.getBoundingClientRect().width,i=t.target.getBoundingClientRect().left,n=e-i;if(o>n){var a=o>n?"right":"left";t.tether.attachment.left=a,t.tether.targetAttachment.left=a,t.position()}},onOpen:function(){this.positionDrop(),a.default.add(this.triggerEl,"has-dropdown-open"),this.lastfocusedElement=document.activeElement,this.$el.focus(),this.$emit("open")},onClose:function(){a.default.remove(this.triggerEl,"has-dropdown-open"),this.lastfocusedElement&&this.lastfocusedElement.focus(),this.$emit("close")},restrictFocus:function(t){if(!this.containFocus)return void this.closeDropdown();t.stopPropagation(),this.focusRedirector?this.focusRedirector(t):this.$el.focus()},open:function(){this.openDropdown()},close:function(){this.closeDropdown()},toggle:function(){this.toggleDropdown()}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-preloader",props:{show:{type:Boolean,required:!0}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-progress-circular",props:{type:{type:String,default:"indeterminate"},color:{type:String,default:"primary"},progress:{type:Number,default:0},size:{type:Number,default:32},stroke:Number,autoStroke:{type:Boolean,default:!0},disableTransition:{type:Boolean,default:!1}},computed:{classes:function(){return["ui-progress-circular--color-"+this.color,"ui-progress-circular--type-"+this.type]},strokeDashArray:function(){var t=2*Math.PI*this.radius;return Math.round(1e3*t)/1e3},strokeDashOffset:function(){return(100-this.moderateProgress(this.progress))/100*(2*Math.PI*this.radius)},radius:function(){var t=this.stroke?this.stroke:4;return(this.size-t)/2},calculatedStroke:function(){return this.stroke?this.stroke:this.autoStroke?parseInt(this.size/8,10):4}},methods:{moderateProgress:function(t){return isNaN(t)||t<0?0:t>100?100:t}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-progress-linear",props:{type:{type:String,default:"indeterminate"},color:{type:String,default:"primary"},progress:{type:Number,default:0}},computed:{classes:function(){return["ui-progress-linear--color-"+this.color,"ui-progress-linear--type-"+this.type]},moderatedProgress:function(){return this.progress<0?0:this.progress>100?100:this.progress}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ui-radio",props:{name:String,label:String,value:{type:[Number,String],required:!0},trueValue:{type:[Number,String],required:!0},checked:{type:Boolean,default:!1},color:{type:String,default:"primary"},buttonPosition:{type:String,default:"left"},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},computed:{classes:function(){return["ui-radio--color-"+this.color,"ui-radio--button-position-"+this.buttonPosition,{"is-active":this.isActive},{"is-checked":this.isChecked},{"is-disabled":this.disabled}]},isChecked:function(){return String(this.value).length>0&&this.value==this.trueValue}},created:function(){this.checked&&this.$emit("input",this.trueValue)},methods:{toggleCheck:function(){this.disabled||this.$emit("input",this.trueValue)},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t)},onChange:function(t){this.$emit("change",this.isChecked,t)}}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(33),a=i(n),s=o(5),r=i(s);e.default={name:"ui-radio-group",props:{name:{type:String,required:!0},label:String,options:{type:Array,required:!0},value:{type:[Number,String],required:!0},keys:{type:Object,default:function(){return r.default.data.UiRadioGroup.keys}},color:{type:String,default:"primary"},buttonPosition:{type:String,default:"left"},vertical:{type:Boolean,default:!1},help:String,error:String,invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,initialValue:this.value,selectedOptionValue:this.value}},computed:{classes:function(){return["ui-radio-group--color-"+this.color,"ui-radio-group--button-position-"+this.buttonPosition,{"is-vertical":this.vertical},{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-disabled":this.disabled}]},hasFeedback:function(){return Boolean(this.help)||this.showError},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)}},watch:{selectedOptionValue:function(){this.$emit("input",this.selectedOptionValue),this.$emit("change",this.selectedOptionValue)},value:function(){this.selectedOptionValue=this.value}},methods:{reset:function(){this.$emit("input",this.initialValue)},isOptionCheckedByDefault:function(t){return this.initialValue==t[this.keys.value]||this.initialValue==t||t[this.keys.checked]},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t)}},components:{UiRadio:a.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(8),n=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(t,e){var o=e.currentTarget||e.target;if(o&&!n.default.has(o,"ui-ripple-ink")&&(o=o.querySelector(".ui-ripple-ink")),o){var i=o.getAttribute("data-ui-event");if(!i||i===t){o.setAttribute("data-ui-event",t);var a=o.getBoundingClientRect(),s=e.offsetX,r=void 0;void 0===s?(s=e.clientX-a.left,r=e.clientY-a.top):r=e.offsetY;var l=document.createElement("div"),c=void 0;c=a.width===a.height?1.412*a.width:Math.sqrt(a.width*a.width+a.height*a.height);var d=2*c+"px";l.style.width=d,l.style.height=d,l.style.marginLeft=-c+s+"px",l.style.marginTop=-c+r+"px",l.className="ui-ripple-ink__ink",o.appendChild(l),setTimeout(function(){n.default.add(l,"is-held")},0);var u="mousedown"===t?"mouseup":"touchend",v=function t(){document.removeEventListener(u,t),n.default.add(l,"is-done"),setTimeout(function(){o.removeChild(l),0===o.children.length&&o.removeAttribute("data-ui-event")},650)};document.addEventListener(u,v)}}},s=function(t){0===t.button&&a(t.type,t)},r=function(t){if(t.changedTouches)for(var e=0;e<t.changedTouches.length;++e)a(t.type,t.changedTouches[e])};e.default={name:"ui-ripple-ink",props:{trigger:{type:String,required:!0}},watch:{trigger:function(){this.initialize()}},mounted:function(){var t=this;this.$nextTick(function(){t.initialize()})},beforeDestroy:function(){var t=this.trigger?this.$parent.$refs[this.trigger]:null;t&&(t.removeEventListener("mousedown",s),t.removeEventListener("touchstart",r))},methods:{initialize:function(){var t=this.trigger?this.$parent.$refs[this.trigger]:null;t&&(t.addEventListener("touchstart",r),t.addEventListener("mousedown",s))}}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=o(3),s=i(a),r=o(14),l=i(r),c=o(241),d=i(c),u=o(5),v=i(u),_=o(25),p=i(_),h=o(10),f=o(23);e.default={name:"ui-select",props:{name:String,value:{type:[String,Number,Object,Array],required:!0},options:{type:Array,default:function(){return[]}},placeholder:String,icon:String,iconPosition:{type:String,default:"left"},label:String,floatingLabel:{type:Boolean,default:!1},type:{type:String,default:"basic"},multiple:{type:Boolean,default:!1},multipleDelimiter:{type:String,default:", "},hasSearch:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:"Search"},filter:Function,disableFilter:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},noResults:{type:Boolean,default:!1},keys:{type:Object,default:function(){return v.default.data.UiSelect.keys}},invalid:{type:Boolean,default:!1},help:String,error:String,disabled:{type:Boolean,default:!1},clearable:Boolean},data:function(){return{query:"",isActive:!1,isTouched:!1,selectedIndex:-1,highlightedIndex:-1,showDropdown:!1,initialValue:JSON.stringify(this.value)}},computed:{classes:function(){return["ui-select--type-"+this.type,"ui-select--icon-position-"+this.iconPosition,{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-touched":this.isTouched},{"is-disabled":this.disabled},{"is-multiple":this.multiple},{"has-label":this.hasLabel},{"has-floating-label":this.hasFloatingLabel}]},labelClasses:function(){return{"is-inline":this.hasFloatingLabel&&this.isLabelInline,"is-floating":this.hasFloatingLabel&&!this.isLabelInline}},hasLabel:function(){return Boolean(this.label)||Boolean(this.$slots.default)},hasFloatingLabel:function(){return this.hasLabel&&this.floatingLabel},isLabelInline:function(){return 0===this.value.length&&!this.isActive},hasFeedback:function(){return Boolean(this.help)||Boolean(this.error)},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)},showClearIcon:function(){if(!this.clearable)return!1;var t=!1;return"object"===n(this.value)?t=Object.keys(this.value).length:"string"==typeof this.value&&(t=this.value.length),!this.disabled&&t},showDropdownIcon:function(){return!this.clearable||!this.showClearIcon},filteredOptions:function(){var t=this;return this.disableFilter?this.options:this.options.filter(function(e,o){return t.filter?t.filter(e,t.query):t.defaultFilter(e,o)})},displayText:function(){var t=this;return this.multiple?this.value.length>0?this.value.map(function(e){return e[t.keys.label]||e}).join(this.multipleDelimiter):"":this.value?this.value[this.keys.label]||this.value:""},hasDisplayText:function(){return Boolean(this.displayText.length)},hasNoResults:function(){return!this.loading&&0!==this.query.length&&(this.disableFilter?this.noResults:0===this.filteredOptions.length)},submittedValue:function(){var t=this;if(this.name&&this.value)return Array.isArray(this.value)?this.value.map(function(e){return e[t.keys.value]||e}).join(","):this.value[this.keys.value]||this.value}},watch:{filteredOptions:function(){this.highlightedIndex=0,(0,f.resetScroll)(this.$refs.optionsList)},showDropdown:function(){this.showDropdown?(this.onOpen(),this.$emit("dropdown-open")):(this.onClose(),this.$emit("dropdown-close"))},query:function(){this.$emit("query-change",this.query)}},created:function(){this.value&&""!==this.value||this.setValue(null)},mounted:function(){document.addEventListener("click",this.onExternalClick)},beforeDestroy:function(){document.removeEventListener("click",this.onExternalClick)},methods:{setValue:function(t){t=t||(this.multiple?[]:""),this.$emit("input",t),this.$emit("change",t)},highlightOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{autoScroll:!0};if(this.highlightedIndex!==t&&0!==this.$refs.options.length){var o=this.$refs.options.length-1;t<0?t=o:t>o&&(t=0),this.highlightedIndex=t,e.autoScroll&&this.scrollOptionIntoView(this.$refs.options[t].$el)}},selectHighlighted:function(t,e){this.$refs.options.length>0&&(e.preventDefault(),this.selectOption(this.$refs.options[t].option,t))},selectOption:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{autoClose:!0},i=this.multiple&&!this.isOptionSelected(t);this.multiple?this.updateOption(t,{select:i}):(this.setValue(t),this.selectedIndex=e),this.$emit("select",t,{selected:!this.multiple||i}),this.highlightedIndex=e,this.clearQuery(),!this.multiple&&o.autoClose&&this.closeDropdown()},isOptionSelected:function(t){return this.multiple?(0,h.looseIndexOf)(this.value,t)>-1:(0,h.looseEqual)(this.value,t)},updateOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{select:!0},o=[],i=!1,n=(0,h.looseIndexOf)(this.value,t);e.select&&n<0&&(o=this.value.concat(t),i=!0),!e.select&&n>-1&&(o=this.value.slice(0,n).concat(this.value.slice(n+1)),i=!0),i&&this.setValue(o)},defaultFilter:function(t){var e=this.query.toLowerCase(),o=t[this.keys.label]||t;return"string"==typeof o&&(o=o.toLowerCase()),(0,p.default)(e,o)},clearQuery:function(){this.query=""},toggleDropdown:function(){this[this.showDropdown?"closeDropdown":"openDropdown"]()},openDropdown:function(){this.disabled||(this.showDropdown=!0,this.isActive||(this.isActive=!0))},closeDropdown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoBlur:!1};this.showDropdown=!1,this.isTouched||(this.isTouched=!0,this.$emit("touch")),t.autoBlur?this.isActive=!1:this.$refs.label.focus()},onFocus:function(t){this.isActive||(this.isActive=!0,this.$emit("focus",t))},onBlur:function(t){this.isActive=!1,this.$emit("blur",t),this.showDropdown&&this.closeDropdown({autoBlur:!0})},onOpen:function(){var t=this;this.$nextTick(function(){t.$refs[t.hasSearch?"searchInput":"dropdown"].focus(),t.scrollOptionIntoView(t.$refs.optionsList.querySelector(".is-selected"))})},onClose:function(){this.highlightedIndex=this.multiple?-1:this.selectedIndex},onExternalClick:function(t){this.$el.contains(t.target)||(this.showDropdown?this.closeDropdown({autoBlur:!0}):this.isActive&&(this.isActive=!1))},scrollOptionIntoView:function(t){(0,f.scrollIntoView)(t,{container:this.$refs.optionsList,marginTop:180})},reset:function(){this.resetTo(JSON.parse(this.initialValue))},clear:function(){this.resetTo("")},resetTo:function(t){this.setValue(t),this.clearQuery(),this.resetTouched(),this.selectedIndex=-1,this.highlightedIndex=-1},resetTouched:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{touched:!1};this.isTouched=t.touched}},components:{UiIcon:s.default,UiProgressCircular:l.default,UiSelectOption:d.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(3),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-select-option",props:{option:{type:[String,Object],required:!0},type:{type:String,default:"basic"},multiple:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},keys:{type:Object,default:function(){return{label:"label",image:"image"}}}},computed:{classes:function(){return["ui-select-option--type-"+this.type,{"is-highlighted":this.highlighted},{"is-selected":this.selected}]},imageStyle:function(){return{"background-image":"url("+this.option[this.keys.image]+")"}}},components:{UiIcon:n.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(8),r=i(s),l=o(16),c=i(l);e.default={name:"ui-slider",props:{name:String,icon:String,value:{type:Number,required:!0},step:{type:Number,default:10},snapToSteps:{type:Boolean,default:!1},showMarker:{type:Boolean,default:!1},markerValue:Number,disabled:{type:Boolean,default:!1}},data:function(){return{initialValue:this.value,isActive:!1,isDragging:!1,thumbSize:0,trackLength:0,trackOffset:0,localValue:this.value}},computed:{classes:function(){return[{"is-dragging":this.isDragging},{"is-disabled":this.disabled},{"is-active":this.isActive},{"has-icon":this.hasIcon},{"has-marker":this.showMarker}]},hasIcon:function(){return Boolean(this.$slots.icon)||Boolean(this.icon)},fillStyle:function(){return{transform:"scaleX("+this.localValue/100+")"}},thumbStyle:function(){return{transform:"translateX("+(this.localValue/100*this.trackLength-this.thumbSize/2)+"px)"}},markerText:function(){return this.markerValue?this.markerValue:this.value},snapPoints:function(){for(var t=[],e=0,o=e*this.step;o<=100;)t.push(o),e++,o=e*this.step;return t}},watch:{value:function(){this.setValue(this.value)},isDragging:function(){var t=this.isDragging?"add":"remove";r.default[t](document.body,"ui-slider--is-dragging")}},mounted:function(){this.initializeSlider()},beforeDestroy:function(){this.teardownSlider()},methods:{reset:function(){this.setValue(this.initialValue)},onFocus:function(){this.isActive=!0,this.$emit("focus")},onBlur:function(){this.isActive=!1,this.$emit("blur")},onExternalClick:function(t){this.$el.contains(t.target)||this.onBlur()},setValue:function(t){t>100?t=100:t<0&&(t=0),t!==this.localValue&&(this.localValue=t,this.$emit("input",t),this.$emit("change",t))},incrementValue:function(){this.setValue(this.localValue+this.step)},decrementValue:function(){this.setValue(this.localValue-this.step)},getTrackOffset:function(){for(var t=this.$refs.track,e=t.offsetLeft;t.offsetParent;)t=t.offsetParent,e+=t.offsetLeft;return e},getPointStyle:function(t){return{left:t+"%"}},refreshSize:function(){this.thumbSize=this.$refs.thumb.offsetWidth,this.trackLength=this.$refs.track.offsetWidth,this.trackOffset=this.getTrackOffset(this.$refs.track)},initializeSlider:function(){var t=this;document.addEventListener("touchend",this.onDragStop),document.addEventListener("mouseup",this.onDragStop),document.addEventListener("click",this.onExternalClick),this.$on("window-resize",function(){t.refreshSize(),t.isDragging=!1}),this.refreshSize(),this.initializeDrag()},teardownSlider:function(){document.removeEventListener("touchend",this.onDragStop),document.removeEventListener("mouseup",this.onDragStop),document.removeEventListener("click",this.onExternalClick)},initializeDrag:function(){var t=this.getEdge(this.localValue?this.localValue:0,0,100);this.setValue(t)},onDragStart:function(t){this.disabled||(this.isActive||this.onFocus(),this.isDragging=!0,this.dragUpdate(t),document.addEventListener("touchmove",this.onDragMove),document.addEventListener("mousemove",this.onDragMove),this.$emit("dragstart",this.localValue,t))},onDragMove:function(t){this.dragUpdate(t)},dragUpdate:function(t){var e=t.touches?t.touches[0].pageX:t.pageX,o=this.getEdge((e-this.trackOffset)/this.trackLength*100,0,100);this.isDragging&&this.setValue(Math.round(o))},onDragStop:function(t){this.isDragging=!1,this.snapToSteps&&this.value%this.step!=0&&this.setValue(this.getNearestSnapPoint()),document.removeEventListener("touchmove",this.onDragMove),document.removeEventListener("mousemove",this.onDragMove),this.$emit("dragend",this.localValue,t)},getNearestSnapPoint:function(){var t=Math.floor(this.value/this.step)*this.step,e=t+this.step,o=(t+e)/2;return this.value>=o?e:t},getEdge:function(t,e,o){return t<e?e:t>o?o:t}},components:{UiIcon:a.default},mixins:[c.default]}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(4),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-snackbar",props:{message:String,action:String,actionColor:{type:String,default:"accent"},transition:{type:String,default:"slide"}},computed:{transitionName:function(){return"ui-snackbar--transition-"+this.transition}},methods:{onClick:function(){this.$emit("click")},onActionClick:function(){this.$emit("action-click")},onEnter:function(){this.$emit("show")},onLeave:function(){this.$emit("hide")}},components:{UiButton:n.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(35),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-snackbar-container",props:{queueSnackbars:{type:Boolean,default:!1},duration:{type:Number,default:5e3},allowHtml:{type:Boolean,default:!1},position:{type:String,default:"left"},transition:{type:String,default:"slide"}},data:function(){return{queue:[],snackbarTimeout:null}},computed:{classes:function(){return["ui-snackbar-container--position-"+this.position]}},beforeDestroy:function(){this.resetTimeout()},methods:{createSnackbar:function(t){if(t.show=!1,t.duration=t.duration||this.duration,this.queue.push(t),1===this.queue.length)return this.showNextSnackbar();this.queueSnackbars||(this.queue[0].show=!1)},showNextSnackbar:function(){0!==this.queue.length&&(this.queue[0].show=!0)},onShow:function(t){var e=this;0===this.queue.indexOf(t)&&(this.snackbarTimeout=setTimeout(function(){e.queue[0].show=!1},t.duration),this.$emit("snackbar-show",t),this.callHook("onShow",t))},onHide:function(t,e){this.queueSnackbars||1===this.queue.length?this.queue.splice(e,1):this.queue.splice(e,this.queue.length-1),this.$emit("snackbar-hide",t),this.callHook("onHide",t),this.resetTimeout(),this.showNextSnackbar()},onClick:function(t){t.show=!1,this.callHook("onClick",t)},onActionClick:function(t){this.callHook("onActionClick",t)},callHook:function(t,e){"function"==typeof e[t]&&e[t].call(void 0,e)},resetTimeout:function(){clearTimeout(this.snackbarTimeout),this.snackbarTimeout=null}},components:{UiSnackbar:n.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(10);e.default={name:"ui-switch",props:{name:String,label:String,value:{required:!0},trueValue:{default:!0},falseValue:{default:!1},submittedValue:{type:String,default:"on"},checked:{type:Boolean,default:!1},color:{type:String,default:"primary"},switchPosition:{type:String,default:"left"},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,isChecked:(0,i.looseEqual)(this.value,this.trueValue)||this.checked,initialValue:this.value}},computed:{classes:function(){return["ui-switch--color-"+this.color,"ui-switch--switch-position-"+this.switchPosition,{"is-active":this.isActive},{"is-checked":this.isChecked},{"is-disabled":this.disabled}]}},watch:{value:function(){this.isChecked=(0,i.looseEqual)(this.value,this.trueValue)}},created:function(){this.$emit("input",this.isChecked?this.trueValue:this.falseValue)},methods:{onClick:function(t){this.isChecked=t.target.checked,this.$emit("input",t.target.checked?this.trueValue:this.falseValue)},onChange:function(t){this.$emit("change",this.isChecked?this.trueValue:this.falseValue,t)},onFocus:function(){this.isActive=!0,this.$emit("focus")},onBlur:function(){this.isActive=!1,this.$emit("blur")}}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(24),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-tab",props:{id:{type:String,default:function(){return n.default.short("ui-tab-")}},title:String,icon:String,iconProps:{type:Object,default:function(){return{}}},show:{type:Boolean,default:!0},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1}},watch:{show:function(){this.$parent.handleTabShowChange(this)},disabled:function(){this.$parent.handleTabDisableChange(this)}},created:function(){this.$parent.registerTab(this)},methods:{activate:function(){this.isActive=!0,this.$emit("select",this.id)},deactivate:function(){this.isActive=!1,this.$emit("deselect",this.id)}}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(3),a=i(n),s=o(6),r=i(s),l=o(5),c=i(l);e.default={name:"ui-tab-header-item",props:{id:String,type:{type:String,default:"text"},title:String,icon:String,iconProps:{type:Object,default:function(){return{}}},active:{type:Boolean,default:!1},show:{type:Boolean,default:!0},disableRipple:{type:Boolean,default:c.default.data.disableRipple},disabled:{type:Boolean,default:!1}},computed:{classes:function(){return["ui-tab-header-item--type-"+this.type,{"is-active":this.active},{"is-disabled":this.disabled}]}},components:{UiIcon:a.default,UiRippleInk:r.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(16),a=i(n),s=o(244),r=i(s),l=o(5),c=i(l);e.default={name:"ui-tabs",props:{type:{type:String,default:"text"},backgroundColor:{type:String,default:"default"},textColor:{type:String,default:"black"},textColorActive:{type:String,default:"primary"},indicatorColor:{type:String,default:"primary"},fullwidth:{type:Boolean,default:!1},raised:{type:Boolean,default:!1},disableRipple:{type:Boolean,default:c.default.data.disableRipple}},data:function(){return{tabs:[],activeTabId:null,activeTabIndex:-1,activeTabElement:null,activeTabPosition:{left:0,width:0},tabContainerWidth:0}},computed:{classes:function(){return["ui-tabs--type-"+this.type,"ui-tabs--text-color-"+this.textColor,"ui-tabs--text-color-active-"+this.textColorActive,"ui-tabs--background-color-"+this.backgroundColor,"ui-tabs--indicator-color-"+this.textColorActive,{"is-raised":this.raised},{"is-fullwidth":this.fullwidth}]},indicatorLeft:function(){return this.activeTabPosition.left+"px"},indicatorRight:function(){return this.tabContainerWidth-(this.activeTabPosition.left+this.activeTabPosition.width)+"px"}},watch:{activeTabId:function(){var t=this;this.tabs.forEach(function(e,o){t.activeTabId===e.id?(e.activate(),t.activeTabIndex=o):e.isActive&&e.deactivate()})},activeTabElement:function(){this.refreshIndicator()}},mounted:function(){var t=this;this.$nextTick(function(){t.tabContainerWidth=t.$refs.tabsContainer.offsetWidth,t.activeTabElement=t.$refs.tabsContainer.querySelector(".is-active")}),this.$on("window-resize",function(){t.tabContainerWidth=t.$refs.tabsContainer.offsetWidth,t.refreshIndicator()})},methods:{registerTab:function(t){this.tabs.push(t),(null===this.activeTabId||t.selected)&&(this.activeTabId=t.id)},handleTabShowChange:function(t){if(this.activeTabId===t.id&&!t.show){var e=this.findNearestAvailableTab({preferPrevious:!0});e&&this.selectTab(e.$el,e)}this.refreshIndicator()},handleTabDisableChange:function(t){if(this.activeTabId===t.id&&t.disabled){var e=this.findNearestAvailableTab({preferPrevious:!0});e&&this.selectTab(e.$el,e)}},selectTab:function(t,e){var o=t.currentTarget?t.currentTarget:t;e.disabled||this.activeTabElement===o||(this.activeTabElement=o,this.activeTabId=e.id,this.$emit("tab-change",e.id))},selectPreviousTab:function(){if(0!==this.activeTabIndex){var t=this.findTabByIndex(this.activeTabIndex,{findPrevious:!0});t&&(this.selectTab(t.$el,t),this.activeTabElement.focus())}},selectNextTab:function(){if(this.activeTabIndex!==this.$refs.tabElements.length-1){var t=this.findTabByIndex(this.activeTabIndex);t&&(this.selectTab(t.$el,t),this.activeTabElement.focus())}},findTabByIndex:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{findPrevious:!1},o=null;if(e.findPrevious){for(var i=t-1;i>=0;i--)if(!this.$refs.tabElements[i].disabled&&this.$refs.tabElements[i].show){o=this.$refs.tabElements[i];break}}else for(var n=t+1;n<this.$refs.tabElements.length;n++)if(!this.$refs.tabElements[n].disabled&&this.$refs.tabElements[n].show){o=this.$refs.tabElements[n];break}return o},findTabById:function(t){for(var e=null,o=this.$refs.tabElements.length,i=0;i<=o;i++)if(t===this.$refs.tabElements[i].id){e=this.$refs.tabElements[i];break}return e},findNearestAvailableTab:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{preferPrevious:!1},e=this.findTabByIndex(this.activeTabIndex,{findPrevious:t.preferPrevious});return e||this.findTabByIndex(this.activeTabIndex,{findPrevious:!t.preferPrevious})},setActiveTab:function(t){var e=this.findTabById(t);e&&!e.disabled&&this.selectTab(e.$el,e)},refreshIndicator:function(){this.activeTabPosition={left:this.activeTabElement?this.activeTabElement.offsetLeft:0,width:this.activeTabElement?this.activeTabElement.offsetWidth:0}}},components:{UiTabHeaderItem:r.default,RenderVnodes:{name:"render-vnodes",functional:!0,props:["nodes"],render:function(t,e){return t("div",e.props.nodes)}}},mixins:[a.default]}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(22),a=i(n),s=o(3),r=i(s),l=o(41),c=i(l);e.default={name:"ui-textbox",props:{name:String,placeholder:String,value:{type:[String,Number],required:!0},icon:String,iconPosition:{type:String,default:"left"},label:String,floatingLabel:{type:Boolean,default:!1},type:{type:String,default:"text"},multiLine:{type:Boolean,default:!1},rows:{type:Number,default:2},autocomplete:String,autofocus:{type:Boolean,default:!1},autosize:{type:Boolean,default:!0},min:Number,max:Number,step:{type:String,default:"any"},maxlength:Number,enforceMaxlength:{type:Boolean,default:!1},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},help:String,error:String,invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{isActive:!1,isTouched:!1,initialValue:this.value,autosizeInitialized:!1}},computed:{classes:function(){return["ui-textbox--icon-position-"+this.iconPosition,{"is-active":this.isActive},{"is-invalid":this.invalid},{"is-touched":this.isTouched},{"is-multi-line":this.multiLine},{"has-counter":this.maxlength},{"is-disabled":this.disabled},{"has-label":this.hasLabel},{"has-floating-label":this.hasFloatingLabel}]},labelClasses:function(){return{"is-inline":this.hasFloatingLabel&&this.isLabelInline,"is-floating":this.hasFloatingLabel&&!this.isLabelInline}},hasLabel:function(){return Boolean(this.label)||Boolean(this.$slots.default)},hasFloatingLabel:function(){return this.hasLabel&&this.floatingLabel},isLabelInline:function(){return 0===this.value.length&&!this.isActive},minValue:function(){return"number"===this.type&&void 0!==this.min?this.min:null},maxValue:function(){return"number"===this.type&&void 0!==this.max?this.max:null},stepValue:function(){return"number"===this.type?this.step:null},hasFeedback:function(){return Boolean(this.help)||Boolean(this.error)},showError:function(){return this.invalid&&Boolean(this.error)},showHelp:function(){return!this.showError&&Boolean(this.help)}},mounted:function(){this.multiLine&&this.autosize&&((0,c.default)(this.$refs.textarea),this.autosizeInitialized=!0)},beforeDestroy:function(){this.autosizeInitialized&&c.default.destroy(this.$refs.textarea)},methods:{updateValue:function(t){this.$emit("input",t)},onChange:function(t){this.$emit("change",this.value,t)},onFocus:function(t){this.isActive=!0,this.$emit("focus",t)},onBlur:function(t){this.isActive=!1,this.$emit("blur",t),this.isTouched||(this.isTouched=!0,this.$emit("touch"))},onKeydown:function(t){this.$emit("keydown",t)},onKeydownEnter:function(t){this.$emit("keydown-enter",t)},reset:function(){document.activeElement!==this.$refs.input&&document.activeElement!==this.$refs.textarea||document.activeElement.blur(),this.updateValue(this.initialValue),this.resetTouched()},resetTouched:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{touched:!1};this.isTouched=t.touched},refreshSize:function(){this.autosizeInitialized&&c.default.update(this.$refs.textarea)}},components:{UiIcon:r.default},directives:{autofocus:a.default}}},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=o(11),a=i(n),s=o(32),r=i(s);e.default={name:"ui-toolbar",props:{type:{type:String,default:"default"},textColor:{type:String,default:"black"},title:String,brand:String,removeBrandDivider:{type:Boolean,default:!1},navIcon:{type:String,default:"menu"},removeNavIcon:{type:Boolean,default:!1},raised:{type:Boolean,default:!0},progressPosition:{type:String,default:"bottom"},loading:{type:Boolean,default:!1}},computed:{classes:function(){return["ui-toolbar--type-"+this.type,"ui-toolbar--text-color-"+this.textColor,"ui-toolbar--progress-position-"+this.progressPosition,{"is-raised":this.raised}]},progressColor:function(){return"black"===this.textColor?"primary":"white"},hasBrandDivider:function(){return!this.removeBrandDivider&&(this.brand||this.$slots.brand)}},methods:{navIconClick:function(){this.$emit("nav-icon-click")}},components:{UiIconButton:a.default,UiProgressLinear:r.default}}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=o(192),n=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default={name:"ui-tooltip",props:{trigger:{type:String,required:!0},position:{type:String,default:"bottom center"},openOn:{type:String,default:"hover focus"},openDelay:{type:Number,default:0}},data:function(){return{tooltip:null}},watch:{trigger:function(){null===this.tooltip&&this.initialize()}},mounted:function(){null===this.tooltip&&this.initialize()},beforeDestroy:function(){null!==this.tooltip&&this.tooltip.destroy()},methods:{initialize:function(){void 0!==this.trigger&&(this.tooltip=new n.default({target:this.$parent.$refs[this.trigger],content:this.$refs.tooltip,classes:"ui-tooltip--theme-default",position:this.position,openOn:this.openOn,openDelay:this.openDelay}))}}}},function(t,e,o){"use strict";function i(t){if(null===t||void 0===t)throw new TypeError("Sources cannot be null or undefined");return Object(t)}function n(t,e,o){var i=e[o];if(void 0!==i&&null!==i){if(r.call(t,o)&&(void 0===t[o]||null===t[o]))throw new TypeError("Cannot convert undefined or null to object ("+o+")");r.call(t,o)&&s(i)?t[o]=a(Object(t[o]),e[o]):t[o]=i}}function a(t,e){if(t===e)return t;e=Object(e);for(var o in e)r.call(e,o)&&n(t,e,o);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),a=0;a<i.length;a++)l.call(e,i[a])&&n(t,e,i[a]);return t}var s=o(191),r=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;t.exports=function(t){t=i(t);for(var e=1;e<arguments.length;e++)a(t,arguments[e]);return t}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,o){"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},function(t,e,o){var i,n,a;/*! tether-tooltip 1.1.0 */ !function(s,r){n=[o(27),o(28)],i=r,void 0!==(a="function"==typeof i?i.apply(e,n):i)&&(t.exports=a)}(0,function(t,e){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),n=e.Utils.extend,a=t.createContext({classPrefix:"tooltip"}),s={position:"top center",openOn:"hover",classes:"tooltip-theme-arrows",constrainToWindow:!0,constrainToScrollParent:!1},r=0,l=function(){function t(e){if(o(this,t),this.options=e,!this.options.target)throw new Error("Tooltip Error: You must provide a target for Tooltip to attach to");var i=this.options.target.getAttribute("data-tooltip-position");i&&void 0===this.options.position&&(this.options.position=i);var l=this.options.target.getAttribute("data-tooltip");if(l&&void 0===this.options.content){var c=document.createElement("div");c.innerHTML=l,c.setAttribute("role","tooltip"),c.id="drop-tooltip-"+r,this.options.target.setAttribute("aria-describedby",c.id),r+=1,this.options.content=c}if(!this.options.content)throw new Error("Tooltip Error: You must provide content for Tooltip to display");this.options=n({},s,this.options),this.drop=new a(this.options)}return i(t,[{key:"close",value:function(){this.drop.close()}},{key:"open",value:function(){this.drop.open()}},{key:"toggle",value:function(){this.drop.toggle()}},{key:"remove",value:function(){this.drop.remove()}},{key:"destroy",value:function(){this.drop.destroy()}},{key:"position",value:function(){this.drop.position()}}]),t}(),c=[];return l.init=function(){for(var t=document.querySelectorAll("[data-tooltip]"),e=t.length,o=0;o<e;++o){var i=t[o];-1===c.indexOf(i)&&(new l({target:i}),c.push(i))}},document.addEventListener("DOMContentLoaded",function(){!1!==l.autoinit&&l.init()}),l})},function(t,e,o){var i=o(0)(o(47),o(266),null,null);t.exports=i.exports},function(t,e,o){var i=o(0)(o(48),o(270),null,null);t.exports=i.exports},function(t,e,o){o(184);var i=o(0)(o(49),o(314),null,null);t.exports=i.exports},function(t,e,o){o(181);var i=o(0)(o(50),o(310),null,null);t.exports=i.exports},function(t,e,o){o(128);var i=o(0)(o(51),o(252),null,null);t.exports=i.exports},function(t,e,o){o(171);var i=o(0)(o(52),o(299),null,null);t.exports=i.exports},function(t,e,o){var i=o(0)(o(53),o(312),null,null);t.exports=i.exports},function(t,e,o){var i=o(0)(o(54),o(274),null,null);t.exports=i.exports},function(t,e,o){o(177);var i=o(0)(o(55),o(305),null,null);t.exports=i.exports},function(t,e,o){o(140);var i=o(0)(o(56),o(264),null,null);t.exports=i.exports},function(t,e,o){o(143);var i=o(0)(o(57),o(268),null,null);t.exports=i.exports},function(t,e,o){o(164);var i=o(0)(o(58),o(292),null,null);t.exports=i.exports},function(t,e,o){o(142);var i=o(0)(o(59),o(267),null,null);t.exports=i.exports},function(t,e,o){o(161);var i=o(0)(o(60),o(289),null,null);t.exports=i.exports},function(t,e,o){o(135);var i=o(0)(o(61),o(259),null,null);t.exports=i.exports},function(t,e,o){o(126);var i=o(0)(o(62),o(250),null,null);t.exports=i.exports},function(t,e,o){o(179);var i=o(0)(o(63),o(307),null,null);t.exports=i.exports},function(t,e,o){o(138);var i=o(0)(o(64),o(262),null,null);t.exports=i.exports},function(t,e,o){o(133);var i=o(0)(o(65),o(257),null,null);t.exports=i.exports},function(t,e,o){o(157);var i=o(0)(o(66),o(285),null,null);t.exports=i.exports},function(t,e,o){o(155);var i=o(0)(o(67),o(283),null,null);t.exports=i.exports},function(t,e,o){var i=o(0)(o(68),o(308),null,null);t.exports=i.exports},function(t,e,o){o(154);var i=o(0)(o(69),o(282),null,null);t.exports=i.exports},function(t,e,o){o(146);var i=o(0)(o(70),o(272),null,null);t.exports=i.exports},function(t,e,o){o(153);var i=o(0)(o(71),o(281),null,null);t.exports=i.exports},function(t,e,o){o(189);var i=o(0)(o(72),o(319),null,null);t.exports=i.exports},function(t,e,o){o(190);var i=o(0)(o(73),o(320),null,null);t.exports=i.exports},function(t,e,o){var i=o(0)(o(74),o(277),null,null);t.exports=i.exports},function(t,e,o){o(132);var i=o(0)(o(75),o(256),null,null);t.exports=i.exports},function(t,e,o){o(129);var i=o(0)(o(76),o(253),null,null);t.exports=i.exports},function(t,e,o){o(151);var i=o(0)(o(77),o(279),null,null);t.exports=i.exports},function(t,e,o){o(174);var i=o(0)(o(78),o(302),null,null);t.exports=i.exports},function(t,e,o){o(122);var i=o(0)(o(79),o(246),null,null);t.exports=i.exports},function(t,e,o){o(183);var i=o(0)(o(80),o(313),null,null);t.exports=i.exports},function(t,e,o){o(170);var i=o(0)(o(81),o(298),null,null);t.exports=i.exports},function(t,e,o){o(182);var i=o(0)(o(82),o(311),null,null);t.exports=i.exports},function(t,e,o){o(152);var i=o(0)(o(84),o(280),null,null);t.exports=i.exports},function(t,e,o){o(158);var i=o(0)(o(85),o(286),null,null);t.exports=i.exports},function(t,e,o){o(159);var i=o(0)(o(86),o(287),null,null);t.exports=i.exports},function(t,e,o){o(162);var i=o(0)(o(87),o(290),null,null);t.exports=i.exports},function(t,e,o){o(141);var i=o(0)(o(88),o(265),null,null);t.exports=i.exports},function(t,e,o){o(150);var i=o(0)(o(90),o(278),null,null);t.exports=i.exports},function(t,e,o){o(169);var i=o(0)(o(93),o(297),null,null);t.exports=i.exports},function(t,e,o){o(144);var i=o(0)(o(94),o(269),null,null);t.exports=i.exports},function(t,e,o){o(175);var i=o(0)(o(95),o(303),null,null);t.exports=i.exports},function(t,e,o){o(167);var i=o(0)(o(96),o(295),null,null);t.exports=i.exports},function(t,e,o){o(130);var i=o(0)(o(100),o(254),null,null);t.exports=i.exports},function(t,e,o){o(180);var i=o(0)(o(103),o(309),null,null);t.exports=i.exports},function(t,e,o){o(145);var i=o(0)(o(110),o(271),null,null);t.exports=i.exports},function(t,e,o){o(173);var i=o(0)(o(111),o(301),null,null);t.exports=i.exports},function(t,e,o){o(147);var i=o(0)(o(113),o(273),null,null);t.exports=i.exports},function(t,e,o){o(186);var i=o(0)(o(116),o(316),null,null);t.exports=i.exports},function(t,e,o){o(134);var i=o(0)(o(119),o(258),null,null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-autocomplete",class:t.classes},[t.icon||t.$slots.icon?o("div",{staticClass:"ui-autocomplete__icon-wrapper"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-autocomplete__content"},[o("label",{staticClass:"ui-autocomplete__label"},[t.label||t.$slots.default?o("div",{staticClass:"ui-autocomplete__label-text",class:t.labelClasses},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),o("ui-icon",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&t.value.length,expression:"!disabled && value.length"}],staticClass:"ui-autocomplete__clear-button",attrs:{title:"Clear"},nativeOn:{click:function(e){t.updateValue("")}}},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M18.984 6.422L13.406 12l5.578 5.578-1.406 1.406L12 13.406l-5.578 5.578-1.406-1.406L10.594 12 5.016 6.422l1.406-1.406L12 10.594l5.578-5.578z"}})])]),t._v(" "),o("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:t.autofocus,expression:"autofocus"}],ref:"input",staticClass:"ui-autocomplete__input",attrs:{autocomplete:"off",disabled:t.disabled,name:t.name,placeholder:t.hasFloatingLabel?null:t.placeholder,readonly:t.readonly?t.readonly:null},domProps:{value:t.value},on:{blur:t.onBlur,change:t.onChange,focus:t.onFocus,input:function(e){t.updateValue(e.target.value)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40))return null;e.preventDefault(),t.highlightSuggestion(t.highlightedIndex+1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;t.selectHighlighted(t.highlightedIndex,e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27))return null;t.closeDropdown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9))return null;t.closeDropdown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38))return null;e.preventDefault(),t.highlightSuggestion(t.highlightedIndex-1)}]}}),t._v(" "),o("ul",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],staticClass:"ui-autocomplete__suggestions"},t._l(t.matchingSuggestions,function(e,i){return o("ui-autocomplete-suggestion",{ref:"suggestions",refInFor:!0,attrs:{highlighted:t.highlightedIndex===i,keys:t.keys,suggestion:e,type:t.type},nativeOn:{click:function(o){t.selectSuggestion(e)}}},[t._t("suggestion",null,{highlighted:t.highlightedIndex===i,index:i,suggestion:e})],2)}))],1),t._v(" "),t.hasFeedback?o("div",{staticClass:"ui-autocomplete__feedback"},[t.showError?o("div",{staticClass:"ui-autocomplete__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-autocomplete__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e()]):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",{staticClass:"ui-menu",class:t.classes,attrs:{role:"menu"}},[t._l(t.options,function(e){return o("ui-menu-option",{attrs:{"disable-ripple":t.disableRipple,disabled:e[t.keys.disabled],"icon-props":t.iconProps||e[t.keys.iconProps],icon:t.hasIcons?e[t.keys.icon]:null,label:"divider"===e[t.keys.type]?null:e[t.keys.label]||e,"secondary-text":t.hasSecondaryText?e[t.keys.secondaryText]:null,type:e[t.keys.type]},nativeOn:{click:function(o){t.selectOption(e)},keydown:[function(o){if(!("button"in o)&&t._k(o.keyCode,"enter",13))return null;o.preventDefault(),t.selectOption(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27))return null;t.closeMenu(e)}]}},[t._t("option",null,{option:e})],2)}),t._v(" "),t.containFocus?o("div",{staticClass:"ui-menu__focus-redirector",attrs:{tabindex:"0"},on:{focus:t.redirectFocus}}):t._e()],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:t.transitionName},on:{"after-enter":t.onEnter,"after-leave":t.onLeave}},[o("div",{staticClass:"ui-snackbar",on:{click:t.onClick}},[o("div",{staticClass:"ui-snackbar__message"},[t._t("default",[t._v(t._s(t.message))])],2),t._v(" "),o("div",{staticClass:"ui-snackbar__action"},[t.action?o("ui-button",{staticClass:"ui-snackbar__action-button",attrs:{type:"secondary",color:t.actionColor},on:{click:function(e){e.stopPropagation(),t.onActionClick(e)}}},[t._v(t._s(t.action))]):t._e()],1)])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{staticClass:"ui-icon",class:[t.iconSet,t.icon],attrs:{"aria-label":t.ariaLabel}},[t.useSvg?o("svg",{staticClass:"ui-icon__svg"},[o("use",{attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink","xlink:href":"#"+t.icon}})]):t._t("default",[t._v(t._s(t.removeText?null:t.icon))])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-modal"},[o("h2",{staticClass:"page__title"},[t._v("UiModal")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("UiModal is keyboard accessible (can be closed with the ESC key, keep tab focus in the modal and return focus to the element that had it before the modal was open).")]),t._v(" "),o("p",[t._v("UiModal can be dismissed by one or more of these three events: on ESC key press, clicking the backdrop, or clicking the close button. These events can be customized. Dismissing can be disabled to prevent the user from closing the modal.")]),t._v(" "),t._m(1),t._v(" "),o("p",[t._v("The modal will automatically add a vertical scrollbar to its body when the content overflows the available space.")]),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__demo"},[o("div",{staticClass:"page__demo-group"},[o("ui-modal",{ref:"modal1",attrs:{title:"Basic Modal"}},[t._v("\n Hello World! What's happening?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal1")}}},[t._v("Basic Modal")]),t._v(" "),o("ui-modal",{ref:"modal2",attrs:{"dismiss-on":"close-button esc",title:"Can't close by clicking backdrop"}},[t._v("\n Hello World! What's happening?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal2")}}},[t._v("\n Can't close by clicking backdrop\n ")]),t._v(" "),o("ui-modal",{ref:"modal3",attrs:{title:"Stuck with me!",dismissible:!1}},[t._v("\n Can't close at all. Refresh the page to continue.\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal3")}}},[t._v("Can't close at all")])],1),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-modal",{ref:"modal4",attrs:{"remove-close-button":"",title:"Header × button is removed"}},[t._v("Hello World! What's happening?")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal4")}}},[t._v("No header close button")]),t._v(" "),o("ui-modal",{ref:"modal5"},[o("div",{slot:"header"},[o("b",[t._v("Custom")]),t._v(" header has "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/HTML",target:"_blank",rel:"noopener"}},[t._v("HTML")])]),t._v("\n\n Hey, some "),o("b",[t._v("nice")]),t._v(" text here.\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal5")}}},[t._v("Custom header")])],1),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-modal",{ref:"modal6",attrs:{title:"With footer"}},[t._v("\n Hi there, World. What's happening?\n\n "),o("div",{slot:"footer"},[o("ui-button",{attrs:{color:"primary"}},[t._v("Say Hi")]),t._v(" "),o("ui-button",{on:{click:function(e){t.closeModal("modal6")}}},[t._v("Close")])],1)]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal6")}}},[t._v("With footer")])],1),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-modal",{ref:"modal7",attrs:{size:"small",title:"Small modal"}},[t._v("\n Hi there, World. What's happening?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal7")}}},[t._v("Small Modal")]),t._v(" "),o("ui-modal",{ref:"modal8",attrs:{size:"large",title:"Large modal"}},[t._v("\n Hi there, World. What's happening?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal8")}}},[t._v("Large Modal")]),t._v(" "),o("ui-modal",{ref:"modal9",attrs:{title:"Scrolling Modal"}},[o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit maiores perspiciatis suscipit sit nemo. Similique dignissimos, quas nisi aperiam dolorum omnis tenetur impedit, cum eaque harum officia? Rerum ullam ratione non perferendis, vel harum quam.")]),t._v(" "),o("p",[t._v("Provident iste, iusto adipisci, tenetur harum porro omnis sequi eveniet, accusantium facilis non ipsum. Excepturi deleniti tempore error atque aperiam quia dolorum perferendis. Libero accusamus dolor ipsam soluta impedit laboriosam optio veritatis obcaecati atque, asperiores!")]),t._v(" "),o("p",[t._v("Quidem reprehenderit dolorem ducimus, expedita repellendus amet eaque voluptas molestiae debitis, adipisci obcaecati in nulla dolor eos ex illum. Quas molestiae dolores voluptatibus ullam et, quisquam nisi, consequuntur quod unde earum corporis nam harum repellat.")]),t._v(" "),o("p",[t._v("Dolores sapiente saepe a explicabo quia possimus obcaecati quasi, quod asperiores dolore velit animi in eligendi incidunt, corporis at ut ipsum quos inventore quas suscipit tempore voluptatem voluptates. Quae dicta magni commodi sed, nisi animi!")]),t._v(" "),o("p",[t._v("Itaque voluptas facere totam et explicabo, asperiores unde, cumque amet illo, hic sit excepturi quis architecto maxime. Aliquam nostrum ad blanditiis consequatur cum nulla, hic, reiciendis optio voluptate tenetur, maxime quisquam assumenda. Dignissimos corrupti, magnam.")]),t._v(" "),o("p",[t._v("Quia, dolor, dolores? Sed dolor, maxime, nihil et cupiditate adipisci vel, accusantium repellendus voluptate quisquam optio dolorem illum tenetur rem. Voluptatem, officiis. Autem porro totam non vitae, officiis, ad dolorum, architecto dolor ratione, sed eligendi.")]),t._v(" "),o("p",[t._v("Similique quidem, magni, dolores quam repellat provident? Sunt beatae ipsum, dignissimos eos iusto rem aspernatur unde commodi nam reprehenderit quis molestias accusantium. Enim quo beatae velit quisquam veritatis! Sed dolorem praesentium quidem consequuntur, impedit dolores?")]),t._v(" "),o("p",[t._v("Ab, illum necessitatibus dolorum fuga. Aspernatur repellat assumenda aliquid officia aut accusamus veniam ipsum temporibus, suscipit nulla quibusdam libero aperiam aliquam, molestias in, possimus nemo soluta vero sed architecto. Libero doloremque aliquid a quam nostrum.")]),t._v(" "),o("p",[t._v("Non quam et earum soluta quasi animi numquam perferendis magni explicabo impedit tempore ducimus aperiam natus veniam, eum esse, unde delectus velit nihil laudantium dolorum rem. Soluta dignissimos libero, laboriosam cupiditate, sint ipsum ab maiores.")]),t._v(" "),o("p",[t._v("Totam quas nobis iste iure voluptatem. Dolores tempore voluptates omnis inventore, laborum eaque aperiam eligendi, maxime beatae, exercitationem fugit. Quae non, eum dignissimos consequuntur voluptate vel ipsam quos minima sequi. Illum eius natus maxime reiciendis.")])]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal9")}}},[t._v("Scrolling Modal")])],1),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-modal",{ref:"modal10",attrs:{title:"Fade In Modal",transition:"fade"}},[t._v("\n Hello, World. What's happening?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.openModal("modal10")}}},[t._v("Fade in Modal")])],1)]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("title")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"UiModal title"')])]),t._v(" "),o("td",[o("p",[t._v("The modal title (text only). For HTML, use the "),o("code",[t._v("header")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"normal"')])]),t._v(" "),o("td",[o("p",[t._v("The size of the modal. One of "),o("code",[t._v("small")]),t._v(", "),o("code",[t._v("normal")]),t._v(", or "),o("code",[t._v("large")]),t._v(".")]),t._v(" "),o("p",[t._v("You can customize the modal size by overriding the "),o("code",[t._v("width")]),t._v(" property of "),o("code",[t._v(".ui-modal__container")]),t._v(" using CSS.")])])]),t._v(" "),o("tr",[o("td",[t._v("role")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"dialog"')])]),t._v(" "),o("td",[o("p",[t._v("The ARIA role for the modal (important for accessibility).")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("dialog")]),t._v(" or "),o("code",[t._v("alertdialog")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("transition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"scale"')])]),t._v(" "),o("td",[o("p",[t._v("The modal enter/leave transition. One of "),o("code",[t._v("scale")]),t._v(" or "),o("code",[t._v("fade")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("removeHeader")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the modal header is removed.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to remove the modal header (useful for custom modals).")])])]),t._v(" "),o("tr",[o("td",[t._v("removeCloseButton")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the header close button is removed.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to remove the header close button.")])])]),t._v(" "),o("tr",[o("td",[t._v("preventShift")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to add a dummy scrollbar to the modal backdrop to prevent the modal shifting horizontally when the "),o("code",[t._v("<body>")]),t._v(" scrollbar is hidden.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to prevent the modal shift.")])])]),t._v(" "),o("tr",[o("td",[t._v("dismissible")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the modal can be dismissed.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to prevent the user from dismissing the modal. This will also hide the header close button.")])])]),t._v(" "),o("tr",[o("td",[t._v("dismissOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"backdrop close-button esc"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the modal to be dismissed.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("backdrop")]),t._v(", "),o("code",[t._v("close-button")]),t._v(", or "),o("code",[t._v("esc")]),t._v(". Separate multiple events with a space.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the modal body and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("header")]),t._v(" "),o("td",[t._v("Holds the the modal header and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("footer")]),t._v(" "),o("td",[t._v("Holds the the modal footer and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the modal is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"new-prop"},[t._v("reveal")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the modal is revealed (i.e. when the open transition completes).")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@reveal")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the modal is hidden (i.e. when the close transition completes).")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"new-prop"},[t._v("hide")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the modal close transition completes.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@hide")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("open()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to open the modal.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("close()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to close the modal.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiModal is used to show modal dialogs. The modal's header, body and footer can be customized using "),o("code",[t._v("slots")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiModal has two transition types: a simple fade in, and scale in from above. It also has three sizes: "),o("code",[t._v("small")]),t._v(", "),o("code",[t._v("normal")]),t._v(" (default) and "),o("code",[t._v("large")]),t._v(". The modal size can also be customized using CSS.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiModal.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{staticClass:"ui-checkbox",class:t.classes},[o("input",{staticClass:"ui-checkbox__input",attrs:{type:"checkbox",disabled:t.disabled,name:t.name},domProps:{checked:t.isChecked,value:t.submittedValue},on:{blur:t.onBlur,change:t.onChange,click:t.onClick,focus:t.onFocus}}),t._v(" "),t._m(0),t._v(" "),t.label||t.$slots.default?o("div",{staticClass:"ui-checkbox__label-text"},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-checkbox__checkmark"},[o("div",{staticClass:"ui-checkbox__focus-ring"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-card"},[o("h2",{staticClass:"page__title"},[t._v("UiCard")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic with navigation breadcrumbs")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-card",{attrs:{title:"3 shifts gevonden voor <a href='#'>Bartending</a> bij <a href='#'>Strandtent de Pit</a>"}},[o("ui-breadcrumb-container",{attrs:{items:t.breadcrumbs},slot:"breadcrumbs"}),t._v(" "),o("template",{slot:"content"},[o("card-title",[t._v("3 shifts gevonden voor "),o("a",{attrs:{href:"#"}},[t._v("Bartending")]),t._v(" bij "),o("a",{attrs:{href:"#"}},[t._v("Strandtent de Pit")])])],1)],2)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Raised")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-card",{attrs:{raised:""}},[o("ui-breadcrumb-container",{attrs:{items:t.breadcrumbs},slot:"breadcrumbs"}),t._v(" "),o("template",{slot:"content"},[o("card-title",[t._v("3 shifts gevonden voor "),o("a",{attrs:{href:"#"}},[t._v("Bartending")]),t._v(" bij "),o("a",{attrs:{href:"#"}},[t._v("Strandtent de Pit")])])],1)],2)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Small")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-card",{attrs:{type:"small"}},[o("template",{slot:"content"},[o("card-title",[t._v("Strandtent de Pit")]),t._v(" "),o("card-subtitle",[t._v("Nieuwlandsedijk 20 "),o("br"),t._v(" 2691KW 's-Gravenzande")]),t._v(" "),o("card-divider"),t._v(" "),o("card-subtitle",[t._v("Footer example")])],1)],2)],1)]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("string")]),t._v(" "),o("td",[t._v("default")]),t._v(" "),o("td",[t._v("Type of the card (default, small)")])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the content of the card")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody")])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiCard.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-toolbar"},[o("h2",{staticClass:"page__title"},[t._v("UiToolbar")]),t._v(" "),o("p",[t._v("UiToolbar components shows a toolbar with a navigation icon, branding, title, and actions.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{title:"Inbox"}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"black",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton1",attrs:{color:"black","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton1.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Raised: false")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{title:"Inbox",raised:!1}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"black",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton2",attrs:{color:"black","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton2.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With brand")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{brand:"Mail App",title:"Inbox"}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"black",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton3",attrs:{color:"black","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton3.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: colored")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{type:"colored","text-color":"white",title:"Inbox"}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"white",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton4",attrs:{color:"white","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton4.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: colored, with brand")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{brand:"Mail App","text-color":"white",title:"Inbox",type:"colored"}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"white",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton6",attrs:{color:"white","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton6.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: colored, with linear progress")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-toolbar",{attrs:{loading:"","text-color":"white",type:"colored"}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"white",icon:"refresh",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton5",attrs:{color:"white","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton5.closeDropdown()}},slot:"dropdown"})],1)],1),t._v("\n\n Inbox\n ")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: clear, text-color: white")]),t._v(" "),o("div",{staticClass:"page__demo-group has-photo-cover page__demo-group--photo-1"},[o("ui-toolbar",{attrs:{brand:"Photo App","text-color":"white",title:"Gallery",type:"clear",raised:!1}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"white",icon:"arrow_back",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton7",attrs:{color:"white","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton7.closeDropdown()}},slot:"dropdown"})],1)],1)])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: clear, text-color: black, with linear progress on top")]),t._v(" "),o("div",{staticClass:"page__demo-group has-photo-cover page__demo-group--photo-2"},[o("ui-toolbar",{attrs:{brand:"Photo App",loading:"","progress-position":"top",title:"Gallery",type:"clear",raised:!1}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"black",icon:"arrow_back",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton8",attrs:{color:"black","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton8.closeDropdown()}},slot:"dropdown"})],1)],1)])],1)]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Combined with tabs")]),t._v(" "),o("div",{staticClass:"page__demo-group page__demo-group--has-tabs"},[o("ui-toolbar",{attrs:{brand:"Book App","remove-brand-divider":"","text-color":"white",type:"colored",raised:!1}},[o("div",{slot:"actions"},[o("ui-icon-button",{attrs:{color:"white",icon:"search",size:"large",type:"secondary"}}),t._v(" "),o("ui-icon-button",{ref:"dropdownButton8",attrs:{color:"white","has-dropdown":"",icon:"more_vert",size:"large",type:"secondary"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton8.closeDropdown()}},slot:"dropdown"})],1)],1)]),t._v(" "),o("ui-tabs",{attrs:{"background-color":"primary",fullwidth:"","indicator-color":"white","text-color-active":"white","text-color":"white",type:"text"}},[o("ui-tab",{attrs:{title:"Books",icon:"book"}},[t._v("\n My Books\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Authors",icon:"people"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Collections",icon:"collections_bookmark"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Favourites",icon:"favorite"}},[t._v("\n My favourites\n ")])],1)],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[t._v("\n The type of toolbar (determines the background color). One of "),o("code",[t._v("default")]),t._v(", "),o("code",[t._v("colored")]),t._v("\n or "),o("code",[t._v("clear")]),t._v(".\n ")])]),t._v(" "),o("tr",[o("td",[t._v("textColor")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"black"')])]),t._v(" "),o("td",[t._v("The toolbar text and icon color. One of "),o("code",[t._v("black")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("title")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The toolbar title (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])]),t._v(" "),o("tr",[o("td",[t._v("brand")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The brand (text only). For HTML, use the "),o("code",[t._v("brand")]),t._v(" slot.")])]),t._v(" "),o("tr",[o("td",[t._v("removeBrandDivider")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("Whether or not the divider between the brand and title is removed.")]),t._v(" "),o("p",[t._v("By default, if the brand is set, the divider is shown, otherwise it is removed.")])])]),t._v(" "),o("tr",[o("td",[t._v("navIcon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"menu"')])]),t._v(" "),o("td",[o("p",[t._v("The toolbar navigation icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".\n ")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon or icon button using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("removeNavIcon")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the navigation icon is removed. Set to "),o("code",[t._v("true")]),t._v("\n to remove the navigation icon.\n ")])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Whether or not the toolbar has a drop shadow. Set to "),o("code",[t._v("false")]),t._v("\n to remove the drop shadow.\n ")])]),t._v(" "),o("tr",[o("td",[t._v("progressPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"bottom"')])]),t._v(" "),o("td",[t._v("The position of the progress bar relative to the toolbar. One of "),o("code",[t._v("top")]),t._v("\n or "),o("code",[t._v("bottom")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("loading")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the progress is shown. Set to "),o("code",[t._v("true")]),t._v(" to show the progress.\n ")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the toolbar title and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("\n Holds the toolbar navigation icon and can contain any custom or SVG icon or icon button.")])])]),t._v(" "),o("tr",[o("td",[t._v("brand")]),t._v(" "),o("td",[t._v("Holds the toolbar brand and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("actions")]),t._v(" "),o("td",[t._v("Holds the toolbar actions and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("nav-icon-click")]),t._v(" "),o("td",[t._v("\n Emitted when the navigation icon is clicked. Listen for it using "),o("code",[t._v("@nav-icon-click")]),t._v(".\n ")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiToolbar has three types: "),o("code",[t._v("default")]),t._v(", "),o("code",[t._v("colored")]),t._v(" and "),o("code",[t._v("clear")]),t._v(". The toolbar can be raised (with a drop shadow) and the navigation icon, brand, title and actions can be customized using slots.\n ")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiToolbar.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("li",{ref:"menuOption",staticClass:"ui-menu-option",class:t.classes,attrs:{role:"menu-item",tabindex:t.isDivider||t.disabled?null:"0"}},[t.isDivider?t._e():t._t("default",[o("div",{staticClass:"ui-menu-option__content"},[t.icon?o("ui-icon",{staticClass:"ui-menu-option__icon",attrs:{"icon-set":t.iconProps.iconSet,icon:t.icon,"remove-text":t.iconProps.removeText,"use-svg":t.iconProps.useSvg}}):t._e(),t._v(" "),o("div",{staticClass:"ui-menu-option__text"},[t._v(t._s(t.label))]),t._v(" "),t.secondaryText?o("div",{staticClass:"ui-menu-option__secondary-text"},[t._v("\n "+t._s(t.secondaryText)+"\n ")]):t._e()],1)]),t._v(" "),t.disabled||t.isDivider||t.disableRipple?t._e():o("ui-ripple-ink",{attrs:{trigger:"menuOption"}})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-tabs",class:t.classes},[o("div",{staticClass:"ui-tabs__header"},[o("ul",{ref:"tabsContainer",staticClass:"ui-tabs__header-items",attrs:{role:"tablist"}},t._l(t.tabs,function(e){return o("ui-tab-header-item",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"tab.show"}],ref:"tabElements",refInFor:!0,attrs:{active:t.activeTabId===e.id,"disable-ripple":t.disableRipple,disabled:e.disabled,"icon-props":e.iconProps,icon:e.icon,id:e.id,show:e.show,title:e.title,type:t.type},nativeOn:{click:function(o){t.selectTab(o,e)},keydown:[function(e){return"button"in e||!t._k(e.keyCode,"left",37)?"button"in e&&0!==e.button?null:void t.selectPreviousTab(e):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39)?"button"in e&&2!==e.button?null:void t.selectNextTab(e):null}]}},[e.$slots.icon?o("render-vnodes",{attrs:{nodes:e.$slots.icon},slot:"icon"}):t._e()],1)})),t._v(" "),0!=t.tabContainerWidth?o("div",{staticClass:"ui-tabs__active-tab-indicator",style:{left:t.indicatorLeft,right:t.indicatorRight}}):t._e()]),t._v(" "),o("div",{staticClass:"ui-tabs__body"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-textbox"},[o("h2",{staticClass:"page__title"},[t._v("UiTextbox")]),t._v(" "),o("p",[t._v("UiTextbox is a versatile text input component with support for hover, focus, active, invalid and disabled states.")]),t._v(" "),o("p",[t._v("A label can be shown above the textbox as well as help or error below the textbox. UiTextbox can show an icon to the left or right of the input. It can also show a counter of the number of characters entered.")]),t._v(" "),o("p",[t._v("UiTextbox supports multi-line text input (textarea) and the textbox will grow by default to fit its content.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-textbox",{attrs:{label:"Name",placeholder:"Enter your name"},model:{value:t.textbox1,callback:function(e){t.textbox1=e},expression:"textbox1"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Floating label")]),t._v(" "),o("ui-textbox",{attrs:{"floating-label":"",label:"Name",placeholder:"Enter your name"},model:{value:t.textbox2,callback:function(e){t.textbox2=e},expression:"textbox2"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-textbox",{attrs:{disabled:"",label:"Name",placeholder:"Enter your name"},model:{value:t.textbox3,callback:function(e){t.textbox3=e},expression:"textbox3"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With default value")]),t._v(" "),o("ui-textbox",{attrs:{label:"Name",placeholder:"Enter your name"},model:{value:t.textbox4,callback:function(e){t.textbox4=e},expression:"textbox4"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With default value, disabled")]),t._v(" "),o("ui-textbox",{attrs:{disabled:"",label:"Name",placeholder:"Enter your name"},model:{value:t.textbox5,callback:function(e){t.textbox5=e},expression:"textbox5"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With help")]),t._v(" "),o("ui-textbox",{attrs:{help:"If you have multiple names, enter the one you prefer",label:"Name",placeholder:"Enter your name"},model:{value:t.textbox6,callback:function(e){t.textbox6=e},expression:"textbox6"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon")]),t._v(" "),o("ui-textbox",{attrs:{icon:"phone",label:"Phone number",placeholder:"Enter your phone number",type:"tel"},model:{value:t.textbox7,callback:function(e){t.textbox7=e},expression:"textbox7"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon, no label")]),t._v(" "),o("ui-textbox",{attrs:{icon:"search",placeholder:"Search"},model:{value:t.textbox8,callback:function(e){t.textbox8=e},expression:"textbox8"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("iconPosition: right, with help")]),t._v(" "),o("ui-textbox",{attrs:{help:"If you have multiple email addresses, enter the one you use the most","icon-position":"right",icon:"mail",label:"Email address",placeholder:"Enter your email address",type:"email"},model:{value:t.textbox9,callback:function(e){t.textbox9=e},expression:"textbox9"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With validation: required")]),t._v(" "),o("ui-textbox",{attrs:{autocomplete:"off",error:"This field is required",help:"If you have multiple names, enter the one you prefer",label:"Name",placeholder:"Enter your name",required:"",invalid:t.textbox10Touched&&0===t.textbox10.length},on:{touch:function(e){t.textbox10Touched=!0}},model:{value:t.textbox10,callback:function(e){t.textbox10=e},expression:"textbox10"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With validation and counter (max length)")]),t._v(" "),o("ui-textbox",{attrs:{error:"The username may not be more than 16 characters",help:"Pick a unique username not more than 16 characters",icon:"person",label:"Username",placeholder:"Enter a username",maxlength:16,invalid:t.textbox11.length>16},model:{value:t.textbox11,callback:function(e){t.textbox11=e},expression:"textbox11"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: number, min: 0, max: 99")]),t._v(" "),o("ui-textbox",{attrs:{help:"The ideal number of cats a person should own, minimum 0, maximum 99",label:"Number of Cats",placeholder:"Enter number of cats",type:"number",min:0,max:99},model:{value:t.textbox12,callback:function(e){t.textbox12=t._n(e)},expression:"textbox12"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multi-line (textarea)")]),t._v(" "),o("ui-textbox",{attrs:{"enforce-maxlength":"",help:"Maximum 256 characters",label:"Short bio",placeholder:"Introduce yourself in a few words","multi-line":!0,maxlength:256},model:{value:t.textbox13,callback:function(e){t.textbox13=e},expression:"textbox13"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multi-line (textarea) with floating label")]),t._v(" "),o("ui-textbox",{attrs:{"enforce-maxlength":"","floating-label":"",help:"Maximum 256 characters",label:"Short bio",placeholder:"Introduce yourself in a few words","multi-line":!0,maxlength:256},model:{value:t.textbox14,callback:function(e){t.textbox14=e},expression:"textbox14"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multi-line (textarea) with icon")]),t._v(" "),o("ui-textbox",{attrs:{"enforce-maxlength":"",help:"Maximum 256 characters",icon:"face",label:"Short bio",placeholder:"Introduce yourself in a few words","multi-line":!0,maxlength:256},model:{value:t.textbox15,callback:function(e){t.textbox15=e},expression:"textbox15"}})],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the textbox input element.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("String, Number")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model that the textbox value syncs to. Can be set initially as a default value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"text"')])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("type")]),t._v(" attribute of the textbox input element.")]),t._v(" "),o("p",[t._v("Supported values are "),o("code",[t._v("text")]),t._v(", "),o("code",[t._v("password")]),t._v(", "),o("code",[t._v("search")]),t._v(", "),o("code",[t._v("email")]),t._v(", "),o("code",[t._v("url")]),t._v(", "),o("code",[t._v("tel")]),t._v(", and "),o("code",[t._v("number")]),t._v(". Other values for which the browser shows a custom UI may work, but are not supported.")]),t._v(" "),o("p",[t._v("Only applicable when "),o("code",[t._v("multiLine")]),t._v(" is "),o("code",[t._v("false")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("placeholder")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("placeholder")]),t._v(" attribute of the textbox input element.")])]),t._v(" "),o("tr",[o("td",[t._v("multiLine")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the textbox is a rendered as a textarea.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to render a textarea.")])])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the input is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the textbox label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("rows")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("rows")]),t._v(" attribute of the textarea element.")]),t._v(" "),o("p",[t._v("Only applicable when the "),o("code",[t._v("multiLine")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("required")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("required")]),t._v(" attribute of the textbox input and textarea elements.")])])]),t._v(" "),o("tr",[o("td",[t._v("readonly")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("readonly")]),t._v(" attribute of the textbox input and textarea elements.")])])]),t._v(" "),o("tr",[o("td",[t._v("autofocus")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the textbox should automatically receive focus when it is rendered for the first time.")]),t._v(" "),o("p",[t._v("Only one input element should have this prop set to "),o("code",[t._v("true")]),t._v(" in the document for the autofocus to work properly.")])])]),t._v(" "),o("tr",[o("td",[t._v("autocomplete")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The type of autocomplete suggestions the browser should offer for the input.")]),t._v(" "),o("p",[t._v("See the "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autocomplete",target:"_blank",rel:"noopener"}},[t._v("autocomplete attribute docs")]),t._v(" for more info.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v('"off"')]),t._v(" to disable the browser autocomplete.")])])]),t._v(" "),o("tr",[o("td",[t._v("autosize")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the textarea should automatically grow in height to fit its content.")]),t._v(" "),o("p",[t._v("Note that when you change the textbox's value programmatically, you should call the "),o("code",[t._v("refreshSize()")]),t._v(" method to update the textarea size.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to disable auto sizing.")])])]),t._v(" "),o("tr",[o("td",[t._v("min")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("min")]),t._v(" attribute of the textbox input element.")]),t._v(" "),o("p",[t._v("Only applicable when the "),o("code",[t._v("type")]),t._v(" prop is "),o("code",[t._v('"number"')]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("max")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("max")]),t._v(" attribute of the textbox input element.")]),t._v(" "),o("p",[t._v("Only applicable when the "),o("code",[t._v("type")]),t._v(" prop is "),o("code",[t._v('"number"')]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("step")]),t._v(" "),o("td",[t._v("Number, String")]),t._v(" "),o("td",[o("code",[t._v('"any"')])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("step")]),t._v(" attribute of the textbox input element.")]),t._v(" "),o("p",[t._v("Only applicable when the "),o("code",[t._v("type")]),t._v(" prop is "),o("code",[t._v('"number"')]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("maxlength")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("maxlength")]),t._v(" attribute of the input and textarea elements. When set, a character counter will be shown below the textbox.")]),t._v(" "),o("p",[t._v("The max length restriction is only enforced when the "),o("code",[t._v("enforceMaxlength")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("enforceMaxlength")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to enforce the "),o("code",[t._v("maxlength")]),t._v(" prop as an input restriction.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to ensure that the user cannot enter more characters than "),o("code",[t._v("maxlength")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The textbox icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the textbox. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The textbox label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("floatingLabel")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the textbox label starts out inline and moves to float above the input when it is focused.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a floating label. This will disable the input placeholder.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown below the textbox. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the textbox for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the textbox input when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the textbox for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the input is disabled. Set to "),o("code",[t._v("true")]),t._v(" to disable the input.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the autocomplete label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the textbox icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the textbox help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the textbox error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a change in the textbox value is committed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("See the "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/Events/change",target:"_blank",rel:"noopener"}},[t._v("onchange event documentation")]),t._v(" for more information.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("touch")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the textbox is focused for the first time and then blurred.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@touch")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the textbox is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the textbox loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("keydown")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a key is pressed in the input. The handler is called with the event object.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@keydown")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("keydown-enter")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the Enter key is pressed in the input. The handler is called with the event object.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@keydown-enter")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the textbox to its initial value. You should also reset the "),o("code",[t._v("invalid")]),t._v(" prop.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("resetTouched()")])]),t._v(" "),o("td",[t._v("Call this method to reset the touched state of the textbox. By default it will set the touched state to "),o("code",[t._v("false")]),t._v(", but you can pass an object with "),o("code",[t._v("{ touched: true }")]),t._v(" to set the touched state to "),o("code",[t._v("true")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("refreshSize()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to refresh the size of the textarea when you change the value programmatically.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiTextbox.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-progress-circular"},[o("h2",{staticClass:"page__title"},[t._v("UiProgressCircular")]),t._v(" "),o("p",[t._v("UiProgressCircular shows a circular progress indicator (a spinner).")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Type: determinate")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"primary",type:"determinate",progress:t.progress}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"accent",type:"determinate",progress:t.progress}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"black",type:"determinate",progress:t.progress}}),t._v(" "),o("div",{staticClass:"has-white-progress"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"white",type:"determinate",progress:t.progress}})],1)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: indeterminate")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"multi-color"}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"primary"}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"accent"}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"black"}}),t._v(" "),o("div",{staticClass:"has-white-progress"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{color:"white"}})],1)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom size")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{type:"determinate","auto-stroke":!1,progress:t.progress,size:54}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{"auto-stroke":!1,size:54}})],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom stroke width")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{type:"determinate",progress:t.progress,size:48,stroke:8}}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],attrs:{size:48,stroke:8}})],1),t._v(" "),o("br"),t._v(" "),o("ui-button",{on:{click:function(e){t.loading=!t.loading}}},[t._v("Toggle Loading")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"indeterminate"')])]),t._v(" "),o("td",[t._v("The type of progress. One of "),o("code",[t._v("determinate")]),t._v(" or "),o("code",[t._v("indeterminate")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The color of the progress circle. One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("multi-color")]),t._v(", "),o("code",[t._v("black")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")]),t._v(" "),o("p",[o("code",[t._v("multi-color")]),t._v(" is only supported on an indeterminate progress, if set on a determinate progress, the color will fall back to "),o("code",[t._v("primary")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("24")])]),t._v(" "),o("td",[t._v("The width and height of the circular progress without a unit (unit is pixels).")])]),t._v(" "),o("tr",[o("td",[t._v("stroke")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[t._v("auto or "),o("code",[t._v("4")])]),t._v(" "),o("td",[o("p",[t._v("The stroke width of the circular progress without a unit (unit is pixels).")]),t._v(" "),o("p",[t._v("If "),o("code",[t._v("stroke")]),t._v(" is not provided, it is automatically calculated unless "),o("code",[t._v("autoStroke")]),t._v(" is set to "),o("code",[t._v("false")]),t._v(". See "),o("code",[t._v("autoStroke")]),t._v(" for details.")])])]),t._v(" "),o("tr",[o("td",[t._v("autoStroke")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the stroke width should be automatically calculated if it is not provided.")]),t._v(" "),o("p",[t._v("The calculated stroke is the "),o("code",[t._v("width")]),t._v(" divided by "),o("code",[t._v("8")]),t._v(".")]),t._v(" "),o("p",[t._v("If "),o("code",[t._v("autoStroke")]),t._v(" is set to "),o("code",[t._v("false")]),t._v(" and "),o("code",[t._v("stroke")]),t._v(" is not provided, it defaults to the number "),o("code",[t._v("4")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("progress")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[o("p",[t._v("The value of progress as a number between 0 and 100. Changing this value will update the determinate progress circle.")]),t._v(" "),o("p",[t._v("Only applicable when the type is determinate.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiProgressCircular supports five possible colors: "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("multi-color")]),t._v(" (alternating primary colors), "),o("code",[t._v("black")]),t._v(" and "),o("code",[t._v("white")]),t._v(". The size (width and height) and stroke can be customized.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("Due to an issue with CSS transitions on SVG elements in IE and Edge, determinate progress is not animated in those browsers, and "),o("code",[t._v("multi-color")]),t._v(" progress is not supported.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiProgressCircular.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-toolbar",class:t.classes},[o("div",{staticClass:"ui-toolbar__left"},[t.removeNavIcon?t._e():o("div",{staticClass:"ui-toolbar__nav-icon"},[t._t("icon",[o("ui-icon-button",{attrs:{size:"large",type:"secondary",color:t.textColor,icon:t.navIcon},on:{click:t.navIconClick}})])],2),t._v(" "),t.brand||t.$slots.brand?o("div",{staticClass:"ui-toolbar__brand"},[t._t("brand",[o("div",{staticClass:"ui-toolbar__brand-text"},[t._v(t._s(t.brand))])])],2):t._e()]),t._v(" "),o("div",{staticClass:"ui-toolbar__body",class:{"has-brand-divider":t.hasBrandDivider}},[t._t("default",[t.title?o("div",{staticClass:"ui-toolbar__title"},[t._v(t._s(t.title))]):t._e()])],2),t._v(" "),o("div",{staticClass:"ui-toolbar__right"},[t._t("actions")],2),t._v(" "),o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"ui-toolbar__progress",attrs:{color:t.progressColor}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-menu"},[o("h2",{staticClass:"page__title"},[t._v("UiMenu")]),t._v(" "),o("p",[t._v("UiMenu shows a menu of options. Options can show an icon, secondary text (like keyboard shortcuts), or show a divider. Individual options can be disabled.")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("UiMenu is keyboard accessible and is can be set to contain tab focus in the menu until it is closed.")]),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-menu",{attrs:{options:t.menuOptions}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Raised")]),t._v(" "),o("ui-menu",{attrs:{options:t.menuOptions,raised:""}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icons")]),t._v(" "),o("ui-menu",{attrs:{"has-icons":"",options:t.menuOptions,raised:""}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With secondary text")]),t._v(" "),o("ui-menu",{attrs:{"has-secondary-text":"",options:t.menuOptions,raised:""}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icons and secondary text")]),t._v(" "),o("ui-menu",{attrs:{"has-icons":"","has-secondary-text":"",options:t.menuOptions,raised:""}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom template")]),t._v(" "),o("ui-menu",{attrs:{"has-icons":"","has-secondary-text":"",options:t.menuOptions,raised:""},scopedSlots:t._u([{key:"option",fn:function(e){return[o("code",[t._v("Label: "+t._s(e.option.label)+", Icon: "+t._s(e.option.icon))])]}}])}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("In UiPopover (creates a dropdown)")]),t._v(" "),o("a",{ref:"dropdownTrigger",staticClass:"popover-trigger",attrs:{tabindex:"0"}},[t._v("Click here for the menu")]),t._v(" "),o("ui-popover",{ref:"dropdown",attrs:{trigger:"dropdownTrigger"}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"","has-secondary-text":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdown.close()}}})],1)],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("options *")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[o("p",[t._v("An array of options to show in the menu. Can be a plain array or an array of objects.")]),t._v(" "),o("p",[t._v("For an array of objects, each option can have the following properties:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("type")]),t._v(": (String) - the type of option. Can be set to "),o("code",[t._v('"divider"')]),t._v(" for a divider.")]),t._v(" "),o("li",[o("code",[t._v("label")]),t._v(": (String) - the option label text")]),t._v(" "),o("li",[o("code",[t._v("secondaryText")]),t._v(": (String) - text to show to the right of the option in the dropdown. Can be used to show keyboard shortcuts.")]),t._v(" "),o("li",[o("code",[t._v("icon")]),t._v(": (String) - an icon to show with the option. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("li",[o("code",[t._v("iconProps")]),t._v(": (String) - an object with any of the following props of "),o("a",{attrs:{href:"#/ui-icon"}},[t._v("UiIcon")]),t._v(": "),o("code",[t._v("iconSet")]),t._v(", "),o("code",[t._v("removeText")]),t._v(" or "),o("code",[t._v("useSvg")]),t._v(". These will be passed as props to the rendered UiIcon component.")]),t._v(" "),o("li",[o("code",[t._v("disabled")]),t._v(": (Boolean) - Whether or not the option is disabled.")])]),t._v(" "),o("p",[t._v("You can redefine these keys to fit your data using the "),o("code",[t._v("keys")]),t._v(" prop.")])])]),t._v(" "),o("tr",[o("td",[t._v("hasIcons")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the menu options have icons.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show icons.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconProps")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("p",[t._v("An object with any of the following props of "),o("a",{attrs:{href:"#/ui-icon"}},[t._v("UiIcon")]),t._v(": "),o("code",[t._v("iconSet")]),t._v(", "),o("code",[t._v("removeText")]),t._v(" or "),o("code",[t._v("useSvg")]),t._v(". These will be passed as props to the rendered UiIcon component.")])])]),t._v(" "),o("tr",[o("td",[t._v("hasSecondaryText")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the menu options have secondary text.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show secondary text.")])])]),t._v(" "),o("tr",[o("td",[t._v("containFocus")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not tab focus should be contained in the menu.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to contain tab focus in the menu until it's closed.")])])]),t._v(" "),o("tr",[o("td",[t._v("keys")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n icon: 'icon',\n type: 'type',\n label: 'label',\n secondaryText: 'secondaryText',\n iconProps: 'iconProps',\n disabled: 'disabled'\n}")])]),t._v(" "),o("td",[o("p",[t._v("Allows for redefining the option keys. Only the "),o("code",[t._v("label")]),t._v(" key is required.")]),t._v(" "),o("p",[t._v("Pass an object with custom keys if your data does not match the default keys.")]),t._v(" "),o("p",[t._v("Note that if you redefine one key, you have to define all the others as well.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is disabled.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the menu has a drop shadow.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to add a drop shadow to the menu.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("select")]),t._v(" "),o("td",[o("p",[t._v("Emitted when an option is selected from the menu. The handler is called with the option that was selected.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@select")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the menu should be closed (i.e. when an option is selected, when tab focus leaves the menu and "),o("code",[t._v("containFocus")]),t._v(" is "),o("code",[t._v("false")]),t._v(" or when the ESC key is pressed).")]),t._v(" "),o("p",[t._v("You should listen for this event and close the corresponding UiPopover if the menu is contained in a popover.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("option")]),t._v(" "),o("td",[o("p",[t._v("Use this slot to render each menu option with a custom template. The slot is passed the following properties, which will be available through "),o("code",[t._v("scope")]),t._v(":")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("option")]),t._v(": (Object or String) - the option")])]),t._v(" "),o("p",[t._v("For more information, see the "),o("a",{attrs:{href:"https://vuejs.org/v2/guide/components.html#Scoped-Slots"}},[t._v("Scoped Slots documentation")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("A dropdown menu can be created by wrapping UiMenu in "),o("a",{attrs:{href:"#/ui-popover"}},[t._v("UiPopover")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiMenu.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-select",class:t.classes},[t.name?o("input",{staticClass:"ui-select__hidden-input",attrs:{type:"hidden",name:t.name},domProps:{value:t.submittedValue}}):t._e(),t._v(" "),t.icon||t.$slots.icon?o("div",{staticClass:"ui-select__icon-wrapper"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-select__content"},[o("div",{ref:"label",staticClass:"ui-select__label",attrs:{tabindex:t.disabled?null:"0"}},[t.label||t.$slots.default?o("div",{staticClass:"ui-select__label-text",class:t.labelClasses},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-select__display"},[o("div",{staticClass:"ui-select__display-value",class:{"is-placeholder":!t.hasDisplayText},on:{click:t.toggleDropdown,focus:t.onFocus,keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;e.preventDefault(),t.openDropdown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32))return null;e.preventDefault(),t.openDropdown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9))return null;t.onBlur(e)}]}},[t._v("\n "+t._s(t.hasDisplayText?t.displayText:t.hasFloatingLabel&&t.isLabelInline?null:t.placeholder)+"\n ")]),t._v(" "),o("ui-icon",{directives:[{name:"show",rawName:"v-show",value:t.showDropdownIcon,expression:"showDropdownIcon"}],staticClass:"ui-select__dropdown-button",nativeOn:{click:function(e){t.toggleDropdown(e)}}},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"10"}},[o("path",{attrs:{d:"M.9 2.85L7.94 9.9l7.07-7.05c.5-.5.5-1.3 0-1.8-.5-.48-1.3-.48-1.8 0l-5.27 5.3-5.27-5.3c-.5-.48-1.3-.48-1.8 0-.48.5-.48 1.3 0 1.8"}})])]),t._v(" "),o("ui-icon",{directives:[{name:"show",rawName:"v-show",value:t.showClearIcon,expression:"showClearIcon"}],staticClass:"ui-select__clear-button"},[o("svg",{directives:[{name:"show",rawName:"v-show",value:t.showClearIcon,expression:"showClearIcon"}],attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"16",height:"16"},on:{click:function(e){t.clear()}}},[o("path",{attrs:{d:"M9.7,8L15,2.8c0.5-0.5,0.5-1.2,0-1.7c-0.5-0.5-1.2-0.5-1.7,0L8,6.3L2.8,1C2.3,0.6,1.5,0.6,1,1C0.6,1.5,0.6,2.3,1,2.8L6.3,8\n\tL1,13.2c-0.5,0.5-0.5,1.2,0,1.7c0.5,0.5,1.2,0.5,1.7,0L8,9.7l5.2,5.2c0.5,0.5,1.2,0.5,1.7,0c0.5-0.5,0.5-1.2,0-1.7L9.7,8z"}})])])],1),t._v(" "),o("transition",{attrs:{name:"ui-select--transition-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],ref:"dropdown",staticClass:"ui-select__dropdown",attrs:{tabindex:"-1"},on:{keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40))return null;e.preventDefault(),t.highlightOption(t.highlightedIndex+1)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;e.preventDefault(),e.stopPropagation(),t.selectHighlighted(t.highlightedIndex,e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27))return null;e.preventDefault(),t.closeDropdown()},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9))return null;t.onBlur(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38))return null;e.preventDefault(),t.highlightOption(t.highlightedIndex-1)}]}},[t.hasSearch?o("div",{staticClass:"ui-select__search",on:{click:function(t){t.stopPropagation()},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32))return null;e.stopPropagation()}}},[o("input",{directives:[{name:"model",rawName:"v-model",value:t.query,expression:"query"}],ref:"searchInput",staticClass:"ui-select__search-input",attrs:{autocomplete:"off",type:"text",placeholder:t.searchPlaceholder},domProps:{value:t.query},on:{input:function(e){e.target.composing||(t.query=e.target.value)}}}),t._v(" "),o("ui-icon",{staticClass:"ui-select__search-icon"},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M9.516 14.016c2.484 0 4.5-2.016 4.5-4.5s-2.016-4.5-4.5-4.5-4.5 2.016-4.5 4.5 2.016 4.5 4.5 4.5zm6 0l4.97 4.97-1.5 1.5-4.97-4.97v-.797l-.28-.282c-1.126.984-2.626 1.547-4.22 1.547-3.61 0-6.516-2.86-6.516-6.47S5.906 3 9.516 3s6.47 2.906 6.47 6.516c0 1.594-.564 3.094-1.548 4.22l.28.28h.798z"}})])]),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"ui-select__search-progress",attrs:{size:20,stroke:4}})],1):t._e(),t._v(" "),o("ul",{ref:"optionsList",staticClass:"ui-select__options"},[t._l(t.filteredOptions,function(e,i){return o("ui-select-option",{ref:"options",refInFor:!0,attrs:{highlighted:t.highlightedIndex===i,keys:t.keys,multiple:t.multiple,option:e,selected:t.isOptionSelected(e),type:t.type},nativeOn:{click:function(o){o.stopPropagation(),t.selectOption(e,i)},mouseover:function(e){e.stopPropagation(),t.highlightOption(i,{autoScroll:!1})}}},[t._t("option",null,{highlighted:t.highlightedIndex===i,index:i,option:e,selected:t.isOptionSelected(e)})],2)}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.hasNoResults,expression:"hasNoResults"}],staticClass:"ui-select__no-results"},[t._t("no-results",[t._v("No results found")])],2)],2)])])],1),t._v(" "),t.hasFeedback?o("div",{staticClass:"ui-select__feedback"},[t.showError?o("div",{staticClass:"ui-select__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-select__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e()]):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-textbox",class:t.classes},[t.icon||t.$slots.icon?o("div",{staticClass:"ui-textbox__icon-wrapper"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-textbox__content"},[o("label",{staticClass:"ui-textbox__label"},[t.label||t.$slots.default?o("div",{staticClass:"ui-textbox__label-text",class:t.labelClasses},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),t.multiLine?o("textarea",{directives:[{name:"autofocus",rawName:"v-autofocus",value:t.autofocus,expression:"autofocus"}],ref:"textarea",staticClass:"ui-textbox__textarea",attrs:{autocomplete:t.autocomplete?t.autocomplete:null,disabled:t.disabled,maxlength:t.enforceMaxlength?t.maxlength:null,name:t.name,placeholder:t.hasFloatingLabel?null:t.placeholder,readonly:t.readonly,required:t.required,rows:t.rows},domProps:{value:t.value},on:{blur:t.onBlur,change:t.onChange,focus:t.onFocus,input:function(e){t.updateValue(e.target.value)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;t.onKeydownEnter(e)},t.onKeydown]}},[t._v(t._s(t.value))]):o("input",{directives:[{name:"autofocus",rawName:"v-autofocus",value:t.autofocus,expression:"autofocus"}],ref:"input",staticClass:"ui-textbox__input",attrs:{autocomplete:t.autocomplete?t.autocomplete:null,disabled:t.disabled,max:t.maxValue,maxlength:t.enforceMaxlength?t.maxlength:null,min:t.minValue,name:t.name,number:"number"===t.type||null,placeholder:t.hasFloatingLabel?null:t.placeholder,readonly:t.readonly,required:t.required,step:t.stepValue,type:t.type},domProps:{value:t.value},on:{blur:t.onBlur,change:t.onChange,focus:t.onFocus,input:function(e){t.updateValue(e.target.value)},keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;t.onKeydownEnter(e)},t.onKeydown]}})]),t._v(" "),t.hasFeedback||t.maxlength?o("div",{staticClass:"ui-textbox__feedback"},[t.showError?o("div",{staticClass:"ui-textbox__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-textbox__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e(),t._v(" "),t.maxlength?o("div",{staticClass:"ui-textbox__counter"},[t._v("\n "+t._s(t.value.length+"/"+t.maxlength)+"\n ")]):t._e()]):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-preloader"},[o("h2",{staticClass:"page__title"},[t._v("UiPreloader")]),t._v(" "),o("p",[t._v("UiPreloader shows an indeterminate progress bar using the primary Material Design colors. Useful for indicating activity like a page load.")]),t._v(" "),o("p",[t._v("UiPreloader is not from the Material Design spec, but inspired by a similar component seen in Google's Inbox app.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("ui-preloader",{attrs:{show:t.loading}}),t._v(" "),o("ui-button",{on:{click:function(e){t.loading=!t.loading}}},[t._v("Toggle Loading")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("show *")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[t._v("(required)")]),t._v(" "),o("td",[o("p",[t._v("Whether or not the preloader is shown. Changing this value will show/hide the preloader.")])])])])])]),t._v("\n\n * Required prop\n ")])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiPreloader.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"nucleus-docs",attrs:{id:"app"}},[o("sidebar",{staticClass:"is-desktop"}),t._v(" "),o("transition",{attrs:{name:"transition-fade"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.showSidebar,expression:"showSidebar"}],staticClass:"nucleus-docs-mobile-sidebar__backdrop",on:{click:function(e){t.showSidebar=!1}}})]),t._v(" "),o("transition",{attrs:{name:"transition-slide"}},[o("sidebar",{directives:[{name:"show",rawName:"v-show",value:t.showSidebar,expression:"showSidebar"}],staticClass:"is-mobile"})],1),t._v(" "),o("section",{staticClass:"nucleus-docs-content"},[o("div",{staticClass:"nucleus-docs-content__toolbar"},[o("div",{staticClass:"nucleus-docs-content__toolbar-content"},[o("ui-icon-button",{staticClass:"nucleus-docs-content__toolbar-menu-button",attrs:{color:"white",icon:"menu",type:"clear"},on:{click:function(e){t.showSidebar=!0}}}),t._v(" "),o("h1",{staticClass:"nucleus-docs-content__toolbar-title"},[t._v(t._s(t.$route.meta.title))]),t._v(" "),t.$route.meta.sourceUrl?o("a",{staticClass:"nucleus-docs-content__toolbar-action",attrs:{rel:"noopener",target:"_blank",href:"https://github.com/TemperWorks/Nucleus/blob/master/"+t.$route.meta.sourceUrl}},[t._v("View Source")]):t._e()],1)]),t._v(" "),o("div",{ref:"pageContent",staticClass:"nucleus-docs-content__page-content"},[o("router-view")],1)])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-datepicker"},[o("h2",{staticClass:"page__title"},[t._v("UiDatepicker")]),t._v(" "),o("p",[t._v("UiDatepicker shows a calendar that allows the user to pick a date. It allows for a custom date formatter and filter, as well as specifying minimum and maximum dates.")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("UiDatepicker can show a label above the input, an icon, as well as help or error below the input. It is keyboard accessible and supports a disabled state. The calendar popover may drop up or down based on the available space.")]),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-datepicker",{attrs:{placeholder:"Select a date"},model:{value:t.picker1,callback:function(e){t.picker1=e},expression:"picker1"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Floating label")]),t._v(" "),o("ui-datepicker",{attrs:{"floating-label":"",placeholder:"Select a date"},model:{value:t.picker2,callback:function(e){t.picker2=e},expression:"picker2"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",placeholder:"Select a date"},model:{value:t.picker3,callback:function(e){t.picker3=e},expression:"picker3"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With default value")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",placeholder:"Select a date"},model:{value:t.picker4,callback:function(e){t.picker4=e},expression:"picker4"}},[t._v("Christmas Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: accent")]),t._v(" "),o("ui-datepicker",{attrs:{color:"accent",icon:"events",placeholder:"Select a date"},model:{value:t.picker5,callback:function(e){t.picker5=e},expression:"picker5"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Orientation: landscape")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",orientation:"landscape",placeholder:"Select a date"},model:{value:t.picker6,callback:function(e){t.picker6=e},expression:"picker6"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Picker type: modal")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events","picker-type":"modal",placeholder:"Select a date"},model:{value:t.picker7,callback:function(e){t.picker7=e},expression:"picker7"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Picker type: modal, orientation: landscape")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",orientation:"landscape","picker-type":"modal",placeholder:"Select a date"},model:{value:t.picker8,callback:function(e){t.picker8=e},expression:"picker8"}},[t._v("Your Birthday")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With custom formatter")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",orientation:"landscape",placeholder:"Select a date","custom-formatter":t.picker9Formatter},model:{value:t.picker9,callback:function(e){t.picker9=e},expression:"picker9"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With min and max date")]),t._v(" "),o("ui-datepicker",{attrs:{help:"Pick a date within the next two weeks",icon:"events",orientation:"landscape",placeholder:"Select a date","max-date":t.picker10Max,"min-date":t.picker10Min},model:{value:t.picker10,callback:function(e){t.picker10=e},expression:"picker10"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With date filter: weekends disabled")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",orientation:"landscape",placeholder:"Select a date","date-filter":t.picker11Filter},model:{value:t.picker11,callback:function(e){t.picker11=e},expression:"picker11"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With custom lang: French")]),t._v(" "),o("ui-datepicker",{attrs:{icon:"events",orientation:"landscape",placeholder:"Select a date",lang:t.picker12Lang},model:{value:t.picker12,callback:function(e){t.picker12=e},expression:"picker12"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With validation: required")]),t._v(" "),o("ui-datepicker",{attrs:{error:"This field is required",icon:"events",orientation:"landscape",placeholder:"Select a date",invalid:!t.picker13},model:{value:t.picker13,callback:function(e){t.picker13=e},expression:"picker13"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-datepicker",{attrs:{disabled:"",icon:"events",placeholder:"Select a date"},model:{value:t.picker14,callback:function(e){t.picker14=e},expression:"picker14"}},[t._v("A Special Day")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled with a selection")]),t._v(" "),o("ui-datepicker",{attrs:{disabled:"",placeholder:"Select a date"},model:{value:t.picker15,callback:function(e){t.picker15=e},expression:"picker15"}},[t._v("A Special Day")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("Date")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model the selected date syncs to. Can be set initially for a default value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("minDate")]),t._v(" "),o("td",[t._v("Date")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The minimum date to allow in the picker. Setting this will disable all dates before this date.")])]),t._v(" "),o("tr",[o("td",[t._v("maxDate")]),t._v(" "),o("td",[t._v("Date")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The maximum date to allow in the picker. Setting this will disable all dates after this date.")])]),t._v(" "),o("tr",[o("td",[t._v("yearRange")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("A range of years to show in the picker. Should be a numeric array of years.")]),t._v(" "),o("p",[t._v("By default its 100 years into the past and 100 years into the future, including the current year.")])])]),t._v(" "),o("tr",[o("td",[t._v("lang")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n months: {\n full: ['January', 'Febuary', ...],\n abbreviated: ['Jan', 'Feb', ...]\n },\n days: {\n full: ['Sunday', Monday', ...],\n abbreviated: ['Sun', 'Mon', ...],\n initials: ['S', 'M', ...]\n }\n}")])]),t._v(" "),o("td",[o("p",[t._v("An object of translations for the datepicker that allows for a basic form of localization.")]),t._v(" "),o("p",[t._v("Provide an object with your language translations and they will be used for the text in the calendar.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("days.full")]),t._v(", "),o("code",[t._v("days.abbreviated")]),t._v(", and "),o("code",[t._v("days.initials")]),t._v(" arrays should start with Sunday.")]),t._v(" "),o("p",[t._v("Note that this doesn't translate the OK/Cancel buttons in the modal. To translate those, use the "),o("code",[t._v("okButtonText")]),t._v(" and "),o("code",[t._v("cancelButtonText")]),t._v(" props.")])])]),t._v(" "),o("tr",[o("td",[t._v("customFormatter")]),t._v(" "),o("td",[t._v("Function")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("A custom formatting function to use for displaying the selected date.")]),t._v(" "),o("p",[t._v("This function will be called with the selected date object and should return the string to display.")])])]),t._v(" "),o("tr",[o("td",[t._v("dateFilter")]),t._v(" "),o("td",[t._v("Function")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("A function which filters the calendar dates to determine which ones are enabled or disabled.")]),t._v(" "),o("p",[t._v("This function will be called with the date object for each date in the month and should return "),o("code",[t._v("true")]),t._v(" if the date is enabled or "),o("code",[t._v("false")]),t._v(" otherwise.")])])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of the datepicker header and the selected date/year. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("orientation")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"portrait"')])]),t._v(" "),o("td",[t._v("The orientation of the datepicker calendar. One of "),o("code",[t._v("portrait")]),t._v(" or "),o("code",[t._v("landscape")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("pickerType")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"popover"')])]),t._v(" "),o("td",[t._v("The type of picker to use for the calendar. One of "),o("code",[t._v("popover")]),t._v(" or "),o("code",[t._v("modal")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("okButtonText")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"OK"')])]),t._v(" "),o("td",[t._v("The text of the OK button when the picker type is modal.")])]),t._v(" "),o("tr",[o("td",[t._v("cancelButtonText")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"Cancel"')])]),t._v(" "),o("td",[t._v("The text of the Cancel button when the picker type is modal.")])]),t._v(" "),o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the datepicker's hidden input element. Useful when the datepicker is part of a form submitted traditionally.")])]),t._v(" "),o("tr",[o("td",[t._v("placeholder")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The text to display in the datepicker when no date is selected.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The datepicker icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the datepicker. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The datepicker label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("floatingLabel")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the label starts out inline and moves to float above the datepicker when it is focused.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a floating label. This will disable the placeholder.")])])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the datepicker is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the datepicker label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown to the user below the datepicker. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the datepicker for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the datepicker when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the datepicker for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the datepicker is disabled. Set to "),o("code",[t._v("true")]),t._v(" to disable the datepicker.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the datepicker label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the datepicker icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the datepicker help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the datepicker error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the datepicker value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("touch")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the datepicker is focused for the first time and then blurred.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@touch")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the datepicker is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the datepicker loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the picker (the modal or popover) is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the picker (the modal or popover) is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the datepicker to its initial value. You should also reset the "),o("code",[t._v("invalid")]),t._v(" prop.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("resetTouched()")])]),t._v(" "),o("td",[t._v("Call this method to reset the touched state of the datepicker. By default it will set the touched state to "),o("code",[t._v("false")]),t._v(", but you can pass an object with "),o("code",[t._v("{ touched: true }")]),t._v(" to set the touched state to "),o("code",[t._v("true")]),t._v(".")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiDatepicker supports two colors: "),o("code",[t._v("primary")]),t._v(" and "),o("code",[t._v("accent")]),t._v(", two orientations: "),o("code",[t._v("portrait")]),t._v(" and "),o("code",[t._v("landscape")]),t._v(" as well as two picker types: "),o("code",[t._v("popover")]),t._v(" and "),o("code",[t._v("modal")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiDatepicker.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"ui-card",class:t.classes},[t._t("breadcrumbs"),t._v(" "),t._t("content")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("aside",{staticClass:"nucleus-docs-sidebar"},[o("div",{staticClass:"nucleus-docs-sidebar__header"},[o("span",{staticClass:"nucleus-docs-sidebar__header-brand"},[t._v("Nucleus UI Kit")]),t._v(" "),o("a",{staticClass:"nucleus-docs-sidebar__header-version",attrs:{href:"https://github.com/temperworks/Nucleus-UI-Kit/releases/tag/v0.1.2",rel:"noopener",target:"_blank",title:"View release notes"}},[t._v("v0.1.2")]),t._v(" "),o("a",{staticClass:"nucleus-docs-sidebar__header-github-link",attrs:{href:"https://github.com/temperworks/Nucleus-UI-Kit",rel:"noopener",target:"_blank",title:"View on Github"}},[o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}},[o("path",{attrs:{d:"M8 .198c-4.418 0-8 3.582-8 8 0 3.535 2.292 6.533 5.47 7.59.4.075.548-.173.548-.384 0-.19-.008-.82-.01-1.49-2.227.485-2.696-.943-2.696-.943-.364-.924-.888-1.17-.888-1.17-.726-.497.055-.486.055-.486.802.056 1.225.824 1.225.824.714 1.223 1.872.87 2.328.665.072-.517.28-.87.508-1.07-1.776-.202-3.644-.888-3.644-3.954 0-.874.313-1.588.824-2.148-.083-.202-.357-1.015.077-2.117 0 0 .672-.215 2.2.82.64-.177 1.323-.266 2.003-.27.68.004 1.365.093 2.004.27 1.527-1.035 2.198-.82 2.198-.82.435 1.102.162 1.916.08 2.117.512.56.822 1.274.822 2.147 0 3.072-1.872 3.748-3.653 3.946.288.248.544.735.544 1.48 0 1.07-.01 1.933-.01 2.196 0 .213.145.462.55.384 3.178-1.06 5.467-4.057 5.467-7.59 0-4.418-3.58-8-8-8z"}})])])],1)]),t._v(" "),o("div",{staticClass:"nucleus-docs-sidebar__scrollable"},[t._m(0),t._v(" "),o("div",{staticClass:"nucleus-docs-sidebar__version-select"},[o("ui-select",{attrs:{options:["0.1.2"]},on:{select:t.onVersionSelect},model:{value:t.version,callback:function(e){t.version=e},expression:"version"}},[t._v("Version")])],1),t._v(" "),o("ul",{staticClass:"nucleus-docs-sidebar__menu"},[o("li",{staticClass:"nucleus-docs-sidebar__menu-section"},[o("div",{staticClass:"nucleus-docs-sidebar__menu-section-header"},[t._v("Usage")]),t._v(" "),o("ul",{staticClass:"nucleus-docs-sidebar__menu-section-links"},[o("li",[o("a",{staticClass:"nucleus-docs-sidebar__menu-item",attrs:{href:"https://github.com/temperworks/Nucleus-UI-Kit/tree/master#nucleus-ui-kit",rel:"noopener",target:"_blank"}},[t._v("Getting Started "),o("ui-icon",[t._v("open_in_new")])],1)]),t._v(" "),o("li",[o("a",{staticClass:"nucleus-docs-sidebar__menu-item",attrs:{href:"https://github.com/temperworks/Nucleus-UI-Kit/blob/master/docs/Customization.md#customization",rel:"noopener",target:"_blank"}},[t._v("Customization "),o("ui-icon",[t._v("open_in_new")])],1)])])]),t._v(" "),t._l(t.menu,function(e){return o("ui-collapsible",{attrs:{title:e.title,type:"flat"}},t._l(e.menu,function(e){return o("li",[o("router-link",{staticClass:"nucleus-docs-sidebar__menu-item",attrs:{exact:"",to:e.path}},[t._v("\n "+t._s(e.title)+"\n ")])],1)}))})],2)])])},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"nucleus-docs-sidebar__description"},[o("p",[t._v("A delightful collection of UI components we use at Temper written with Vue, inspired by Material Design.")]),t._v(" "),o("p",[t._v("Created by "),o("a",{attrs:{rel:"noopener",target:"_blank",href:"https://temper.works"}},[t._v("Temper")]),t._v(".")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-icon"},[o("h1",{staticClass:"page__title"},[t._v("UiIcon")]),t._v(" "),t._m(0),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("Using Material Icons (default)")]),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("Using another icon set")]),t._v(" "),t._m(4),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("Using SVG: inline")]),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),t._m(7),t._v(" "),t._m(8),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Default: icon font")]),t._v(" "),o("div",{staticClass:"page__demo is-boxed"},[o("div",{staticClass:"page__demo-group"},[o("ui-icon",[t._v("folder_open")]),t._v(" "),o("ui-icon",[t._v("home")]),t._v(" "),o("ui-icon",[t._v("info_outline")]),t._v(" "),o("ui-icon",[t._v("watch_later")]),t._v(" "),o("ui-icon",[t._v("mail_outline")]),t._v(" "),o("ui-icon",[t._v("pin_drop")]),t._v(" "),o("ui-icon",[t._v("favorite_border")]),t._v(" "),o("ui-icon",[t._v("maps")])],1),t._v(" "),o("div",{staticClass:"page__demo-group has-large-icons"},[o("ui-icon",{attrs:{icon:"watch"}}),t._v(" "),o("ui-icon",{attrs:{icon:"rss_feed"}}),t._v(" "),o("ui-icon",{attrs:{icon:"account_circle"}}),t._v(" "),o("ui-icon",{attrs:{icon:"play_circle_outline"}}),t._v(" "),o("ui-icon",{attrs:{icon:"drafts"}}),t._v(" "),o("ui-icon",{attrs:{icon:"attach_file"}}),t._v(" "),o("ui-icon",{attrs:{icon:"save"}}),t._v(" "),o("ui-icon",{attrs:{icon:"event"}})],1),t._v(" "),o("div",{staticClass:"page__demo-group is-inline"},[o("p",[t._v("Icons can also be inlined with text: "),o("ui-icon",[t._v("account_circle")]),t._v(" My Account.")],1)])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("SVG: inline")]),t._v(" "),o("ui-icon",[o("svg",{attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M17.016 6.984c2.766 0 4.969 2.25 4.969 5.016s-2.203 5.016-4.969 5.016h-4.031v-1.922h4.031c1.688 0 3.094-1.406 3.094-3.094s-1.406-3.094-3.094-3.094h-4.031v-1.922h4.031zM8.016 12.984v-1.969h7.969v1.969h-7.969zM3.891 12c0 1.688 1.406 3.094 3.094 3.094h4.031v1.922h-4.031c-2.766 0-4.969-2.25-4.969-5.016s2.203-5.016 4.969-5.016h4.031v1.922h-4.031c-1.688 0-3.094 1.406-3.094 3.094z"}})])]),t._v(" "),t._m(9),t._v(" "),o("div",{staticStyle:{display:"none"}},[o("svg",{staticStyle:{position:"absolute",width:"0",height:"0",overflow:"hidden"},attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[o("defs",[o("symbol",{attrs:{id:"icon-link",viewBox:"0 0 24 24"}},[o("title",[t._v("link")]),t._v(" "),o("path",{staticClass:"path1",attrs:{d:"M17.016 6.984c2.766 0 4.969 2.25 4.969 5.016s-2.203 5.016-4.969 5.016h-4.031v-1.922h4.031c1.688 0 3.094-1.406 3.094-3.094s-1.406-3.094-3.094-3.094h-4.031v-1.922h4.031zM8.016 12.984v-1.969h7.969v1.969h-7.969zM3.891 12c0 1.688 1.406 3.094 3.094 3.094h4.031v1.922h-4.031c-2.766 0-4.969-2.25-4.969-5.016s2.203-5.016 4.969-5.016h4.031v1.922h-4.031c-1.688 0-3.094 1.406-3.094 3.094z"}})])])])]),t._v(" "),o("ui-icon",{attrs:{icon:"icon-link","use-svg":""}})],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("ariaLabel")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The icon's ARIA label (important for accessibility, but should not be added for purely decorative icons).")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The icon name (when using an icon font) or the symbol id (when "),o("code",[t._v("useSvg")]),t._v(" is "),o("code",[t._v("true")]),t._v(").")]),t._v(" "),o("p",[t._v("By default this can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("Required when using an icon font or "),o("code",[t._v("useSvg")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("iconSet")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"material-icons"')])]),t._v(" "),o("td",[o("p",[t._v("The icon set, applied as a class on the icon root element.")])])]),t._v(" "),o("tr",[o("td",[t._v("removeText")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to remove the icon element's inner text. Set to "),o("code",[t._v("true")]),t._v(" to remove the inner text.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("icon")]),t._v(" prop is set as the inner text by default because Material Icons use ligatures for rendering the icon glyph.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("useSvg")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the inner text is removed regardless of the value of "),o("code",[t._v("removeText")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("useSvg")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to use an SVG "),o("code",[t._v("use")]),t._v(" tag for rendering the icon.")]),t._v(" "),o("p",[t._v("See the "),o("b",[t._v("Using SVG: "),o("code",[t._v("<use>")])]),t._v(" section above for details.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the name of the icon when using an icon font. Can also hold SVG for a custom icon.")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiIcon shows an icon glyph. Icons are "),o("code",[t._v("24px")]),t._v(" by "),o("code",[t._v("24px")]),t._v(" (relative to a root font size of 16px), but the size can be changed by overriding the CSS "),o("code",[t._v("font-size")]),t._v(" property of "),o("code",[t._v(".ui-icon")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("By default UiIcon uses icons from the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(" web font, which must be loaded for icons to display properly. The simplest way to do this is by adding the Google Web font to the head of your page:")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("pre",[o("code",{staticClass:"language-html"},[t._v('<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">')])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("See the "),o("a",{attrs:{href:"http://google.github.io/material-design-icons",target:"_blank",rel:"noopener"}},[t._v("Material Icons Guide")]),t._v(" for more options on including the font.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To use another icon set, use the "),o("code",[t._v("iconSet")]),t._v(" and the "),o("code",[t._v("icon")]),t._v(" props (both are applied as classes on the icon root element). Then, if the icon font doesn't support ligatures, set the "),o("code",[t._v("removeText")]),t._v(" prop to "),o("code",[t._v("true")]),t._v(" to remove the inner text.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To use SVG icons inline, simply paste your SVG data into the "),o("code",[t._v("<ui-icon>")]),t._v(" tag. The SVG icon will inherit the color and size defined on "),o("code",[t._v(".ui-icon")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("Using SVG: "),o("code",[t._v("<use>")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("If you are using an SVG sprite, set "),o("code",[t._v("useSvg")]),t._v(" to "),o("code",[t._v("true")]),t._v(" and set the "),o("code",[t._v("icon")]),t._v(" prop to the icon symbol's "),o("code",[t._v("id")]),t._v(" in your sprite. This will render the correct "),o("code",[t._v("<svg>")]),t._v(" and "),o("code",[t._v("<use>")]),t._v(" tags referencing the icon.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiIcon.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h4",{staticClass:"page__demo-title"},[t._v("SVG: "),o("code",[t._v("useSvg")]),t._v(" and "),o("code",[t._v("icon")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-fab"},[o("h2",{staticClass:"page__title"},[t._v("UiFab")]),t._v(" "),o("p",[t._v("UiFab shows a primary, floating action button. It supports mouse and keyboard focus, hover and disabled states.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("ui-radio-group",{attrs:{name:"size",options:["small","normal"]},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[t._v("Button Size")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Colors")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-fab",{attrs:{color:"primary",icon:"add",size:t.size}}),t._v(" "),o("ui-fab",{attrs:{color:"accent",icon:"edit",size:t.size}}),t._v(" "),o("ui-fab",{attrs:{icon:"keyboard_voice",size:t.size}})],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With tooltip")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-fab",{attrs:{color:"primary",icon:"edit","tooltip-position":"top center",tooltip:"Top center",size:t.size}}),t._v(" "),o("ui-fab",{attrs:{color:"accent",icon:"edit",tooltip:"Bottom center",size:t.size}}),t._v(" "),o("ui-fab",{attrs:{icon:"edit","tooltip-position":"left middle",tooltip:"Left middle",size:t.size}}),t._v(" "),o("ui-fab",{attrs:{icon:"edit","tooltip-position":"right middle",tooltip:"Right middle",size:t.size}})],1)],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"normal"')])]),t._v(" "),o("td",[t._v("The size of the FAB. One of "),o("code",[t._v("normal")]),t._v(" or "),o("code",[t._v("small")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[t._v("The background color of the FAB. One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(" or "),o("code",[t._v("default")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The FAB icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("ariaLabel")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The FAB "),o("code",[t._v("aria-label")]),t._v(" attribute (important for accessibility).")]),t._v(" "),o("p",[t._v("Falls back to "),o("code",[t._v("tooltip")]),t._v(" if not specified.")])])]),t._v(" "),o("tr",[o("td",[t._v("tooltip")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The FAB tooltip (text only).")])])]),t._v(" "),o("tr",[o("td",[t._v("tooltipPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the tooltip relative to the FAB.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", or "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openTooltipOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"hover focus"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the tooltip to open.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", or "),o("code",[t._v("focus")]),t._v(". Separate multiple events with a space.")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is shown when the FAB is clicked.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the FAB icon and can contain any custom or SVG icon.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiFab has two sizes: "),o("code",[t._v("normal")]),t._v(" and "),o("code",[t._v("small")]),t._v(" and three colors: "),o("code",[t._v("default")]),t._v(" (white), "),o("code",[t._v("primary")]),t._v(" and "),o("code",[t._v("accent")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiFab.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-datepicker",class:t.classes},[o("input",{staticClass:"ui-datepicker__hidden-input",attrs:{type:"hidden",name:t.name},domProps:{value:t.submittedValue}}),t._v(" "),t.icon||t.$slots.icon?o("div",{staticClass:"ui-datepicker__icon-wrapper"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-datepicker__content"},[o("div",{ref:"label",staticClass:"ui-datepicker__label",attrs:{tabindex:t.disabled?null:"0"},on:{click:t.onClick,focus:t.onFocus,keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;e.preventDefault(),t.openPicker(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32))return null;e.preventDefault(),t.openPicker(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"tab",9))return null;t.onBlur(e)}]}},[t.label||t.$slots.default?o("div",{staticClass:"ui-datepicker__label-text",class:t.labelClasses},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-datepicker__display"},[o("div",{staticClass:"ui-datepicker__display-value",class:{"is-placeholder":!t.hasDisplayText}},[t._v("\n "+t._s(t.hasDisplayText?t.displayText:t.hasFloatingLabel&&t.isLabelInline?null:t.placeholder)+"\n ")]),t._v(" "),t.usesPopover&&!t.disabled?o("ui-icon",{staticClass:"ui-datepicker__dropdown-button"},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M6.984 9.984h10.03L12 15z"}})])]):t._e()],1)]),t._v(" "),t.hasFeedback?o("div",{staticClass:"ui-datepicker__feedback"},[t.showError?o("div",{staticClass:"ui-datepicker__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-datepicker__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e()]):t._e()]),t._v(" "),t.usesModal&&!t.disabled?o("ui-modal",{ref:"modal",attrs:{"remove-header":""},on:{close:t.onPickerClose,open:t.onPickerOpen}},[o("ui-calendar",{attrs:{color:t.color,"date-filter":t.dateFilter,lang:t.lang,"max-date":t.maxDate,"min-date":t.minDate,orientation:t.orientation,value:t.value},on:{"date-select":t.onDateSelect}},[o("div",{staticClass:"ui-datepicker__modal-buttons",slot:"footer"},[o("ui-button",{attrs:{type:"secondary",color:t.color},on:{click:function(e){t.$refs.modal.close()}}},[t._v(t._s(t.okButtonText))]),t._v(" "),o("ui-button",{attrs:{type:"secondary",color:t.color},on:{click:t.onPickerCancel}},[t._v(t._s(t.cancelButtonText))])],1)])],1):t._e(),t._v(" "),t.usesPopover&&!t.disabled?o("ui-popover",{ref:"popover",attrs:{"contain-focus":"",trigger:"label"},on:{close:t.onPickerClose,open:t.onPickerOpen}},[o("ui-calendar",{attrs:{color:t.color,"date-filter":t.dateFilter,lang:t.lang,"max-date":t.maxDate,"min-date":t.minDate,orientation:t.orientation,value:t.value},on:{"date-select":t.onDateSelect}})],1):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-alert"},[o("h2",{staticClass:"page__title"},[t._v("UiAlert")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("UiAlert supports keyboard navigation, can contain links and can be dismissed. The alert icon can be changed or removed.")]),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert1,expression:"showAlert1"}],on:{dismiss:function(e){t.showAlert1=!1}}},[t._v("\n Hi everybody! This is the default alert.\n ")]),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert2,expression:"showAlert2"}],attrs:{type:"success"},on:{dismiss:function(e){t.showAlert2=!1}}},[t._v("\n Okilly dokilly, your account was updated successfully.\n ")]),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert3,expression:"showAlert3"}],attrs:{type:"warning"},on:{dismiss:function(e){t.showAlert3=!1}}},[t._v("\n Ay caramba! Alerts can also contain HTML. "),o("a",{attrs:{href:"https://google.com",target:"_blank",rel:"noopener"}},[t._v("Click here")]),t._v(" for Google.com.\n ")]),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert4,expression:"showAlert4"}],attrs:{type:"error"},on:{dismiss:function(e){t.showAlert4=!1}}},[t._v("\n D'oh! Something went wrong and we cannot process your request at this time. Try again later.\n ")]),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert5,expression:"showAlert5"}],attrs:{type:"warning"},on:{dismiss:function(e){t.showAlert5=!1}}},[o("ui-icon",{attrs:{icon:"battery_alert"},slot:"icon"}),t._v("\n This alert has a custom icon.\n ")],1),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert6,expression:"showAlert6"}],on:{dismiss:function(e){t.showAlert6=!1}}},[t._v("\n This is a multi-line alert. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolor suscipit facilis explicabo officiis consectetur, ipsam voluptate excepturi quas quae. Dolorem. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quis, autem.\n ")]),t._v(" "),o("ui-alert",{directives:[{name:"show",rawName:"v-show",value:t.showAlert7,expression:"showAlert7"}],attrs:{"remove-icon":""},on:{dismiss:function(e){t.showAlert7=!1}}},[t._v("\n The icon for this alert has been removed.\n ")]),t._v(" "),o("ui-alert",{attrs:{dismissible:!1}},[t._v("This alert is not dismissible.")]),t._v(" "),o("ui-alert",{attrs:{dismissible:!1,"remove-icon":""}},[t._v("\n This alert has no icon is not dismissible.\n ")]),t._v(" "),o("ui-button",{on:{click:t.resetAlerts}},[t._v("Reset Alerts")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"info"')])]),t._v(" "),o("td",[o("p",[t._v("The type of alert. Determines the alert background color and default icon.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("info")]),t._v(", "),o("code",[t._v("success")]),t._v(", "),o("code",[t._v("warning")]),t._v(" or "),o("code",[t._v("error")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("removeIcon")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the alert icon is removed.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to remove the icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("dismissible")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the alert shows a dismiss button.")]),t._v(" "),o("p",[t._v("You should listen for the "),o("code",[t._v("dismiss")]),t._v(" event and hide the alert.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to remove the dismiss button.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the alert content and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the button icon and can contain any custom or SVG icon.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("dismiss")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the user clicks the dismiss button. You should listen for this event and hide alert.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dismiss")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiAlert shows an inline alert message to the user. Supported types are "),o("code",[t._v("info")]),t._v(", "),o("code",[t._v("success")]),t._v(", "),o("code",[t._v("warning")]),t._v(" and "),o("code",[t._v("error")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiAlert.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("li",{staticClass:"ui-select-option",class:t.classes},[t._t("default",["basic"===t.type?o("div",{staticClass:"ui-select-option__basic"},[t._v("\n "+t._s(t.option[t.keys.label]||t.option)+"\n ")]):t._e(),t._v(" "),"image"===t.type?o("div",{staticClass:"ui-select-option__image"},[o("div",{staticClass:"ui-select-option__image-object",style:t.imageStyle}),t._v(" "),o("div",{staticClass:"ui-select-option__image-text"},[t._v(t._s(t.option[t.keys.label]))])]):t._e(),t._v(" "),t.multiple?o("div",{staticClass:"ui-select-option__checkbox"},[t.selected?o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M9.984 17.016l9-9-1.406-1.453-7.594 7.594-3.563-3.563L5.016 12zm9-14.016C20.11 3 21 3.938 21 5.016v13.97C21 20.062 20.11 21 18.984 21H5.014C3.89 21 3 20.064 3 18.986V5.015C3 3.94 3.89 3 5.014 3h13.97z"}})])]):o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M18.984 3C20.062 3 21 3.938 21 5.016v13.97C21 20.062 20.062 21 18.984 21H5.014C3.938 21 3 20.064 3 18.986V5.015C3 3.94 3.936 3 5.014 3h13.97zm0 2.016H5.014v13.97h13.97V5.015z"}})])])],1):t._e()])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-select"},[o("h2",{staticClass:"page__title"},[t._v("UiSelect")]),t._v(" "),o("p",[t._v("UiSelect is a select component that allows the user to choose one or more options from a group of pre-defined or dynamically loaded options. It supports default options, multiple selection and filtering.")]),t._v(" "),o("p",[t._v("UiSelect can show a label above the input, an icon, as well as help or error below the input. It is keyboard accessible and supports a disabled state.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colour",placeholder:"Select a colour",options:t.colourStrings},model:{value:t.select1,callback:function(e){t.select1=e},expression:"select1"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With floating label")]),t._v(" "),o("ui-select",{attrs:{"floating-label":"",label:"Favourite colour",placeholder:"Select a colour",options:t.colourStrings},model:{value:t.select2,callback:function(e){t.select2=e},expression:"select2"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Clearable single select")]),t._v(" "),o("ui-select",{attrs:{label:"You can clear Select using a clear icon.",placeholder:"Select a colour",keys:{label:"label",value:"value"},options:t.colours,clearable:""},model:{value:t.select15,callback:function(e){t.select15=e},expression:"select15"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon")]),t._v(" "),o("ui-select",{attrs:{icon:"colorize",label:"Favourite colour",placeholder:"Select a colour",options:t.colourStrings},model:{value:t.select2o5,callback:function(e){t.select2o5=e},expression:"select2o5"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With a default selection")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colour",placeholder:"Select a colour",options:t.colourStrings},model:{value:t.select3,callback:function(e){t.select3=e},expression:"select3"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: image")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colour",placeholder:"Select a colour",type:"image",options:t.colours},model:{value:t.select4,callback:function(e){t.select4=e},expression:"select4"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: image, with a default selection")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colour",placeholder:"Select a colour",type:"image",options:t.colours},model:{value:t.select5,callback:function(e){t.select5=e},expression:"select5"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With help")]),t._v(" "),o("ui-select",{attrs:{help:"You favourite colour will be used on your profile page",label:"Favourite colour",placeholder:"Select a colour",type:"image",options:t.colours},model:{value:t.select6,callback:function(e){t.select6=e},expression:"select6"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multiple selection")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colours",multiple:"",placeholder:"Select some colours",type:"image",options:t.colours},model:{value:t.select7,callback:function(e){t.select7=e},expression:"select7"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multiple selection with defaults")]),t._v(" "),o("ui-select",{attrs:{label:"Favourite colours",multiple:"",placeholder:"Select some colours",type:"image",options:t.colours},model:{value:t.select8,callback:function(e){t.select8=e},expression:"select8"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With search")]),t._v(" "),o("ui-select",{attrs:{"has-search":"",label:"Favourite colours",multiple:"",placeholder:"Select some colours",type:"image",options:t.colours},model:{value:t.select9,callback:function(e){t.select9=e},expression:"select9"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With validation")]),t._v(" "),o("ui-select",{attrs:{error:"You must select at least 2 colours","has-search":"",help:"Select 2 or more colours",label:"Favourite colours",multiple:"",placeholder:"Select some colours",type:"image",invalid:t.select10Touched&&t.select10.length<2,options:t.colours},on:{touch:function(e){t.select10Touched=!0}},model:{value:t.select10,callback:function(e){t.select10=e},expression:"select10"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With dynamic options (remote search)")]),t._v(" "),o("ui-select",{attrs:{"disable-filter":"","has-search":"",label:"Favourite colours",placeholder:"Select a colour","search-placeholder":'Type "red" or "blue"',type:"image",loading:t.select11Loading,"no-results":t.select11NoResults,options:t.select11Options},on:{"query-change":t.onQueryChange},model:{value:t.select11,callback:function(e){t.select11=e},expression:"select11"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With many options (248)")]),t._v(" "),o("ui-select",{attrs:{"has-search":"",label:"Country",placeholder:"Select your country",keys:{label:"name",value:"code"},options:t.countries},model:{value:t.select12,callback:function(e){t.select12=e},expression:"select12"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With custom template")]),t._v(" "),o("ui-select",{attrs:{"has-search":"",label:"Favourite colours",multiple:"",placeholder:"Select some colours",options:t.colourStrings},scopedSlots:t._u([{key:"option",fn:function(e){return[o("code",[t._v(t._s(e))])]}}]),model:{value:t.select12o5,callback:function(e){t.select12o5=e},expression:"select12o5"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-select",{attrs:{disabled:"",label:"Favourite colour",placeholder:"Select a colour"},model:{value:t.select13,callback:function(e){t.select13=e},expression:"select13"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled with a selection")]),t._v(" "),o("ui-select",{attrs:{disabled:"",label:"Favourite colour",placeholder:"Select a colour",options:t.colourStrings},model:{value:t.select14,callback:function(e){t.select14=e},expression:"select14"}})],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the select's hidden input element. Useful when traditionally submitting a form the select is a part of.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("String, Number, Object or Array")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model the selected value or values sync to. Can be set initially for default value/values.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("options")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[o("p",[t._v("An array of options to show to the user.")]),t._v(" "),o("p",[t._v("Can be a plain array, e.g. "),o("code",[t._v("['Red', 'Blue', 'Green']")]),t._v(" as well as an array of objects.")]),t._v(" "),o("p",[t._v("For a plain array, the option is shown to the user and it is used for filtering.")]),t._v(" "),o("p",[t._v("For an array of objects, the "),o("code",[t._v("label")]),t._v(" is shown to the user and is used for filtering, and the "),o("code",[t._v("value")]),t._v(" is submitted to the server. You can redefine these keys to fit your data using the "),o("code",[t._v("keys")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("The entire option is written to the model when the user makes a selection.")])])]),t._v(" "),o("tr",[o("td",[t._v("multiple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the user can select multiple options.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to allow multiple selection.")])])]),t._v(" "),o("tr",[o("td",[t._v("multipleDelimiter")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('", "')])]),t._v(" "),o("td",[t._v("The delimiter (separator) to use for displaying multiple selected options.")])]),t._v(" "),o("tr",[o("td",[t._v("placeholder")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Text to display in the select when no option is selected.")])]),t._v(" "),o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"basic"')])]),t._v(" "),o("td",[o("p",[t._v("The type of template to use for rendering each option. One of "),o("code",[t._v("basic")]),t._v(" or "),o("code",[t._v("image")]),t._v(".")]),t._v(" "),o("p",[t._v("The default type is "),o("code",[t._v("basic")]),t._v(", which simply renders the option text.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("image")]),t._v(" type renders each option with with an image. To use, set "),o("code",[t._v("type")]),t._v(" to "),o("code",[t._v("image")]),t._v(" and set an image URL as the "),o("code",[t._v("image")]),t._v(" property on each option. You can redefine the "),o("code",[t._v("image")]),t._v(" key to fit your data using the "),o("code",[t._v("keys")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("You can also render each option with a custom template using the "),o("code",[t._v("option")]),t._v(" scoped slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("hasSearch")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to show a search input for filtering the select options or getting a query for remote search.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show a search input.")])])]),t._v(" "),o("tr",[o("td",[t._v("searchPlaceholder")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("placeholder")]),t._v(" attribute of the search input.")])]),t._v(" "),o("tr",[o("td",[t._v("filter")]),t._v(" "),o("td",[t._v("Function")]),t._v(" "),o("td",[o("a",{attrs:{href:"https://github.com/bevacqua/fuzzysearch",target:"_blank",rel:"noopener"}},[t._v("fuzzysearch")])]),t._v(" "),o("td",[o("p",[t._v("Defines a custom filter function that is used for filtering the options when the user types into the search input.")]),t._v(" "),o("p",[t._v("The function is called for each item in the "),o("code",[t._v("options")]),t._v(" array with two arguments:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("option")]),t._v(": (Number, String or Object) - the current option")]),t._v(" "),o("li",[o("code",[t._v("query")]),t._v(": (String) - the current value of the search input (what the user has typed)")])]),t._v(" "),o("p",[t._v("The function should return "),o("code",[t._v("true")]),t._v(" if the option matches the query or "),o("code",[t._v("false")]),t._v(" otherwise.")])])]),t._v(" "),o("tr",[o("td",[t._v("disableFilter")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to disable the internal filtering of options. With this set to "),o("code",[t._v("true")]),t._v(", you have to implement filtering externally if needed.")]),t._v(" "),o("p",[t._v("This prop is useful when you want to implement custom/remote search.")]),t._v(" "),o("p",[t._v("See the "),o("b",[t._v("With dynamic options (remote search)")]),t._v(" section above for an example usage.")])])]),t._v(" "),o("tr",[o("td",[t._v("loading")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not to show a circular progress spinner on the search input.")]),t._v(" "),o("p",[t._v("This prop is useful for showing feedback to the user when you are doing a remote search. Set to "),o("code",[t._v("true")]),t._v(" to show the spinner and "),o("code",[t._v("false")]),t._v(" to hide it.")]),t._v(" "),o("p",[t._v("See the "),o("b",[t._v("With dynamic options (remote search)")]),t._v(" section above for an example usage.")])])]),t._v(" "),o("tr",[o("td",[t._v("noResults")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the no results message is be shown.")]),t._v(" "),o("p",[t._v("The no results message will be shown if this is "),o("code",[t._v("true")]),t._v(" and following conditions are met:")]),t._v(" "),o("ul",[o("li",[t._v("The query (user input) is empty")]),t._v(" "),o("li",[t._v("The "),o("code",[t._v("loading")]),t._v(" prop is "),o("code",[t._v("false")])]),t._v(" "),o("li",[t._v("The "),o("code",[t._v("disableFilter")]),t._v(" prop is "),o("code",[t._v("true")])])]),t._v(" "),o("p",[t._v("See the "),o("b",[t._v("With dynamic options (remote search)")]),t._v(" section above for an example usage.")])])]),t._v(" "),o("tr",[o("td",[t._v("keys")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n label: 'label',\n image: 'image'\n}")])]),t._v(" "),o("td",[o("p",[t._v("Allows for redefining each option object's keys.")]),t._v(" "),o("p",[t._v("Pass an object with custom keys if your data does not match the default keys.")]),t._v(" "),o("p",[t._v("Note that if you redefine one key, you have to define all the others as well.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the select is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the select label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The select icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the select. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The select label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("floatingLabel")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the label starts out inline and moves to float above the select when it is focused.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a floating label. This will disable the select placeholder until the label is floating.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown to the user below the select. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the select for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the select when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the select for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the select is disabled. Set to "),o("code",[t._v("true")]),t._v(" to disable the select.")])])]),t._v(" "),o("tr",[o("td",[t._v("clearable")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether single select can be cleared. Set "),o("code",[t._v("clearable")]),t._v(" attribute for "),o("code",[t._v("ui-select")]),t._v(" and a clear icon will appear.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the select label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("option")]),t._v(" "),o("td",[o("p",[t._v("Use this slot to render each option with a custom template. The slot is passed the following properties, which will be available through "),o("code",[t._v("scope")]),t._v(":")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("option")]),t._v(": (Object or String) - the option")]),t._v(" "),o("li",[o("code",[t._v("index")]),t._v(": (Number) - the index of the option in the array of matched options")]),t._v(" "),o("li",[o("code",[t._v("higlighted")]),t._v(": (Boolean) - whether or not the option is currently highlighted")])]),t._v(" "),o("p",[t._v("For more information, see the "),o("a",{attrs:{href:"https://vuejs.org/v2/guide/components.html#Scoped-Slots"}},[t._v("Scoped Slots documentation")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("no-results")]),t._v(" "),o("td",[o("p",[t._v("Holds the content shown to the user when there is no matching option for their query.")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the select icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the select help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the select error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("select")]),t._v(" "),o("td",[o("p",[t._v("Emitted when an option is selected. The handler is called with the selected option and an object which shows if the option was selected or deselected.")]),t._v(" "),o("p",[t._v("This object will have "),o("code",[t._v("{ selected: true }")]),t._v(" if the option was selected or "),o("code",[t._v("{ selected: false }")]),t._v(" otherwise.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@select")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("query-change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the query (the search input value) changes.")]),t._v(" "),o("p",[t._v("The handler is called with the new query. Listen for it using "),o("code",[t._v("@query-change")]),t._v(".")]),t._v(" "),o("p",[t._v("See the "),o("b",[t._v("With dynamic options (remote search)")]),t._v(" section above for an example usage.")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select value changes.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("touch")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select is focused for the first time and then blurred.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@touch")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select dropdown is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the select dropdown is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-close")]),t._v(".")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the select to its initial value. You should also reset the "),o("code",[t._v("invalid")]),t._v(" prop.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("resetTouched()")])]),t._v(" "),o("td",[t._v("Call this method to reset the touched state of the select. By default it will set the touched state to "),o("code",[t._v("false")]),t._v(", but you can pass an object with "),o("code",[t._v("{ touched: true }")]),t._v(" to set the touched state to "),o("code",[t._v("true")]),t._v(".")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiSelect.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-snackbar-container",class:t.classes},t._l(t.queue,function(e,i){return o("ui-snackbar",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"snackbar.show"}],attrs:{"action-color":e.actionColor,action:e.action,message:e.message,transition:t.transition},on:{"action-click":function(o){t.onActionClick(e)},click:function(o){t.onClick(e)},hide:function(o){t.onHide(e,i)},show:function(o){t.onShow(e)}}},[t.allowHtml?o("div",{domProps:{innerHTML:t._s(e.message)}}):t._e()])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-collapsible"},[o("h2",{staticClass:"page__title"},[t._v("UiCollapsible")]),t._v(" "),o("p",[t._v("UiCollapsible shows collapsible content. It includes a header and a body and can be initially opened or closed (defaults to closed).")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__demo"},[o("ui-collapsible",{attrs:{title:"This is open initially",open:""}},[t._v("\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur nemo suscipit ipsa molestias, tempora dolor natus modi et incidunt tenetur!\n ")]),t._v(" "),o("ui-collapsible",{attrs:{title:"Longer body content"}},[o("b",[t._v("Howdy!")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem dolore, numquam inventore esse consequatur doloribus pariatur accusantium voluptatum veritatis soluta corrupti impedit, asperiores accusamus! Ullam perferendis, ipsum officia consequatur quam! Sapiente nisi quam voluptates ipsam consequatur autem culpa repudiandae dignissimos.")]),t._v(" "),o("a",{attrs:{tabindex:"0"}},[t._v("A link here")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorem dolore, numquam inventore esse consequatur doloribus pariatur accusantium voluptatum veritatis soluta corrupti impedit, asperiores accusamus! Ullam perferendis, ipsum officia consequatur quam! Sapiente nisi quam voluptates ipsam consequatur autem culpa repudiandae dignissimos.")])]),t._v(" "),o("ui-collapsible",[o("div",{slot:"header"},[t._v("\n HTML "),o("b",[t._v("supported")]),t._v(" in header\n ")]),t._v("\n\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur nemo suscipit ipsa molestias, tempora dolor natus modi et incidunt tenetur!\n ")]),t._v(" "),o("ui-collapsible",[o("div",{slot:"header"},[t._v("\n Multiline header: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id cupiditate, nihil magni accusantium. Suscipit natus provident ab vitae, ad tenetur.\n ")]),t._v("\n\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur nemo suscipit ipsa molestias, tempora dolor natus modi et incidunt tenetur!\n ")]),t._v(" "),o("ui-collapsible",{attrs:{title:"This collapsible is disabled",disabled:""}},[t._v("\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur nemo suscipit ipsa molestias, tempora dolor natus modi et incidunt tenetur!\n ")]),t._v(" "),o("ui-collapsible",{attrs:{title:"The header icon can be removed","remove-icon":""}},[t._v("\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur nemo suscipit ipsa molestias, tempora dolor natus modi et incidunt tenetur!\n ")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether the collapsible is open or closed.")]),t._v(" "),o("p",[t._v("Changing this value will open/close the collapsible.")])])]),t._v(" "),o("tr",[o("td",[t._v("title")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The collapsible title (text only). For HTML, use the header slot.")])]),t._v(" "),o("tr",[o("td",[t._v("removeIcon")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the header icon is removed.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to remove the icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation on the collapsible header is disabled.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the collapsible is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the collapsible.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the collapsible content and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("header")]),t._v(" "),o("td",[t._v("Holds the the collapsible header and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the collapsible is opened. You should listen for this event and update the "),o("code",[t._v("open")]),t._v(" prop to "),o("code",[t._v("true")]),t._v(".")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the collapsible is closed. You should listen for this event and update the "),o("code",[t._v("open")]),t._v(" prop to "),o("code",[t._v("false")]),t._v(".")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("refreshHeight()")])]),t._v(" "),o("td",[o("p",[t._v("UiCollapsible keeps track of its content height internally to use for the open/close transition.")]),t._v(" "),o("p",[t._v("Trigger this event to update the collapsible's height when its width or body content has changed since it was last opened.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("Both the header and body are fully customizable (using "),o("code",[t._v("slots")]),t._v("). UiCollapsible is keyboard accessible and it supports a disabled state.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiCollapsible doesn't support accordion sets (i.e. closing other collapsibles when one is opened). You can achieve that effect by listening for "),o("code",[t._v("@open")]),t._v(" and "),o("code",[t._v("@close")]),t._v(" on each collapsible in the set and then adjusting their "),o("code",[t._v("open")]),t._v(" prop accordingly.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiCollapsible.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"tooltip",staticClass:"ui-tooltip"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"ui-ripple-ink"})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-tabs"},[o("h2",{staticClass:"page__title"},[t._v("UiTabs")]),t._v(" "),o("p",[t._v("The UiTabs and UiTab components are used together to create a tab container with one or more tabs. UiTab should only be used as a direct child of UiTabs.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),o("p",[t._v("UiTabs and UiTab include the recommended ARIA attributes for accessibility and can be navigated with the keyboard.")]),t._v(" "),t._m(3),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Type: text")]),t._v(" "),o("ui-tabs",{attrs:{type:"text"}},[o("ui-tab",{attrs:{title:"Books"}},[t._v("\n My books "),o("a",{attrs:{href:"https://google.com",target:"_blank",rel:"noopener"}},[t._v("Hey")])]),t._v(" "),o("ui-tab",{attrs:{title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Favourites"}},[t._v("\n My favourites\n ")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: text, fullwidth")]),t._v(" "),o("ui-tabs",{attrs:{fullwidth:""}},[o("ui-tab",{attrs:{title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Favourites"}},[t._v("\n My favourites\n ")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: icon")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon"}},[o("ui-tab",{attrs:{icon:"book"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: icon, fullwidth")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon",fullwidth:""}},[o("ui-tab",{attrs:{icon:"book"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: icon-and-text")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text"}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: icon-and-text, fullwidth")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text",fullwidth:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Raised")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text",fullwidth:"",raised:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Background: primary")]),t._v(" "),o("ui-tabs",{attrs:{"background-color":"primary",fullwidth:"","indicator-color":"white","text-color-active":"white","text-color":"white",type:"icon-and-text"}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Background: accent")]),t._v(" "),o("ui-tabs",{attrs:{"background-color":"accent",fullwidth:"","indicator-color":"white","text-color-active":"white","text-color":"white",type:"icon-and-text"}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Default selected tab: Collections")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text",fullwidth:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections",selected:""}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Change active tab")]),t._v(" "),o("ui-tabs",{ref:"tabSet1",attrs:{type:"icon-and-text",fullwidth:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites",id:"favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("ui-button",{on:{click:t.selectFavouritesTab}},[t._v("Select Favourites tab")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Hide/show a tab")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text",fullwidth:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors"}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections",show:t.showCollectionsTab}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("ui-button",{on:{click:t.toggleCollectionsTab}},[t._v("Toggle Collections tab")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disable individual tab")]),t._v(" "),o("ui-tabs",{attrs:{type:"icon-and-text",fullwidth:"",raised:""}},[o("ui-tab",{attrs:{icon:"book",title:"Books"}},[t._v("\n My books\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"person",title:"Authors",disabled:t.disableAuthorsTab}},[t._v("\n Authors\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"collections_bookmark",title:"Collections"}},[t._v("\n My collections\n ")]),t._v(" "),o("ui-tab",{attrs:{icon:"favorite",title:"Favourites"}},[o("b",[t._v("Favourite with longer content")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Beatae dolorum laudantium nulla ex asperiores, deserunt quidem perspiciatis eligendi, dolores repudiandae.")]),t._v(" "),o("p",[t._v("Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis hic, aspernatur placeat eligendi delectus laudantium omnis nam consequatur aperiam numquam!")])])],1),t._v(" "),o("ui-button",{on:{click:t.toggleAuthorsTab}},[t._v("Toggle Authors tab")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API: UiTabs")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"text"')])]),t._v(" "),o("td",[t._v("The type of tabs. One of "),o("code",[t._v("text")]),t._v(", "),o("code",[t._v("icon")]),t._v(" or "),o("code",[t._v("icon-and-text")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("backgroundColor")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[o("p",[t._v("The background color of the tab headers.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("default")]),t._v(", "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(" or "),o("code",[t._v("clear")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("textColor")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"black"')])]),t._v(" "),o("td",[o("p",[t._v("The text and icon color of the unselected tab headers.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("black")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("textColorActive")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The text and icon color of the selected tab header.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", or "),o("code",[t._v("white")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("indicatorColor")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The color of the selected tab indicator.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("fullwidth")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the tab header items expand to fill the space available.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a fullwidth tab header.")])])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the tab container has a drop shadow.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to raise the tabs.")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is shown when a tab header is clicked.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the child UiTab components.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("tab-change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the active tab is changed. Listen for it using "),o("code",[t._v("@tab-change")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("setActiveTab()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to programmatically change the active tab. It accepts the following arguments:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("tabId")]),t._v(" (required): The id of the tab to select.")])])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("refreshIndicator()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to refresh the position of the active tab indicator when the width of the element containing UiTabs changes. This method is called automatically when the window is resized.")])])])])])])])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API: UiTab")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("id")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[t._v("Auto-generated "),o("br"),t._v(" unique ID")]),t._v(" "),o("td",[o("p",[t._v("The tab id. Applied as the "),o("code",[t._v("id")]),t._v(" attribute on the tab's root element and used when programmatically changing the active tab.")])])]),t._v(" "),o("tr",[o("td",[t._v("title")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The tab title (text only).")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The tab icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconProps")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("p",[t._v("An object with any of the following props of "),o("a",{attrs:{href:"#/ui-icon"}},[t._v("UiIcon")]),t._v(": "),o("code",[t._v("iconSet")]),t._v(", "),o("code",[t._v("removeText")]),t._v(" or "),o("code",[t._v("useSvg")]),t._v(". These will be passed as props to the rendered UiIcon component in the tab header.")])])]),t._v(" "),o("tr",[o("td",[t._v("show")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the tab is shown in the list of tabs.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to hide the tab from the list of tabs.")]),t._v(" "),o("p",[t._v("If a tab is selected when its "),o("code",[t._v("show")]),t._v(" prop is changed to "),o("code",[t._v("false")]),t._v(", the nearest available tab is automatically selected.")])])]),t._v(" "),o("tr",[o("td",[t._v("selected")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the tab is selected by default.")])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the tab is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the tab and prevent user interaction.")]),t._v(" "),o("p",[t._v("If a tab is selected when its "),o("code",[t._v("disabled")]),t._v(" prop is changed to "),o("code",[t._v("true")]),t._v(", the nearest available tab is automatically selected.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the tab content and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the tab icon and can contain any custom or SVG icon.")]),t._v(" "),o("p",[t._v("There is a known issue with using a Vue component directly for this slot, so components (like UiIcon) should be wrapped in a plain element like "),o("code",[t._v("div")]),t._v(" or "),o("code",[t._v("span")]),t._v(" with the "),o("code",[t._v('slot="icon"')]),t._v(" attribute.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("select")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the tab is selected. The handler is called with the tab's "),o("code",[t._v("id")]),t._v(".")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@select")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("deselect")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the tab is deselected (i.e. when the user selects another tab). The handler is called with the tab's "),o("code",[t._v("id")]),t._v(".")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@deselect")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiTabs is the tab container and its props is what you use to customize the tab headers. UiTab is a single tab on which you set tab-specific props like "),o("code",[t._v("title")]),t._v(", "),o("code",[t._v("icon")]),t._v(", etc.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiTabs can be one of three types: "),o("code",[t._v("text")]),t._v(" (for text only), "),o("code",[t._v("icon")]),t._v(" (for icon only) or "),o("code",[t._v("icon-and-text")]),t._v(". The tab headers can be fullwidth or take up only as much space as needed. The tab container can be raised to add a drop shadow.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiTabs header can have any one of four possible background colors: "),o("code",[t._v("default")]),t._v(" (gray), "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(" and "),o("code",[t._v("clear")]),t._v(". The header text color, header active text color and the active tab indicator color can also be customized.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiTabs.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-checkbox-group",class:t.classes},[t.label||t.$slots.default?o("div",{staticClass:"ui-checkbox-group__label-text"},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-checkbox-group__checkboxes"},t._l(t.options,function(e,i){return o("ui-checkbox",{key:e[t.keys.id],staticClass:"ui-checkbox-group__checkbox",class:e[t.keys.class],attrs:{"box-position":t.boxPosition,checked:t.isOptionCheckedByDefault(e),color:t.color,disabled:t.disabled||e[t.keys.disabled],id:e[t.keys.id],name:t.name||e[t.keys.name]},on:{blur:t.onBlur,change:function(o){t.onChange(arguments,e)},focus:t.onFocus},model:{value:t.checkboxValues[i],callback:function(e){t.$set(t.checkboxValues,i,e)},expression:"checkboxValues[index]"}},[t._v(t._s(e[t.keys.label]||e))])})),t._v(" "),t.hasFeedback?o("div",{staticClass:"ui-checkbox-group__feedback"},[t.showError?o("div",{staticClass:"ui-checkbox-group__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-checkbox-group__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e()]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-tooltip"},[o("h2",{staticClass:"page__title"},[t._v("UiTooltip")]),t._v(" "),o("p",[t._v("UiTooltip shows a tooltip on an element. The tooltip position relative to the associated element and the event that causes the tooltip to open can be customized.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("div",{staticClass:"page__demo-group page__demo-group--the-simpsons"},t._l(t.theSimpsons,function(t){return o("image-pane",{attrs:{tabindex:"0",image:t.image,name:t.name,"tooltip-position":t.position}})}))]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("trigger *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[t._v("required")]),t._v(" "),o("td",[o("p",[t._v("The string key of an element in the parent's "),o("code",[t._v("$refs")]),t._v(" object.")]),t._v(" "),o("p",[t._v("The tooltip event listeners will be attached to this element, and when any of the "),o("code",[t._v("openOn")]),t._v(" events are triggered, a tooltip will be shown next to the element.")]),t._v(" "),o("p",[t._v("By default, when the element is hovered or focused, the tooltip is shown.")])])]),t._v(" "),o("tr",[o("td",[t._v("position")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom center"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the tooltip relative to the trigger.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", or "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"hover focus"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the tooltip to open.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", or "),o("code",[t._v("focus")]),t._v(". Separate multiple events with a space.")])])]),t._v(" "),o("tr",[o("td",[t._v("openDelay")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[o("p",[t._v("The amount of time to wait (in milliseconds) before showing the tooltip when it is triggered.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the tooltip content (should be text-only).")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiTooltip is used internally by "),o("a",{attrs:{href:"#/ui-icon-button-docs"}},[t._v("UiIconButton")]),t._v(" and "),o("a",{attrs:{href:"#/ui-fab-docs"}},[t._v("UiFab")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiTooltip.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-calendar",class:t.classes},[o("div",{staticClass:"ui-calendar__header"},[o("div",{staticClass:"ui-calendar__header-year",class:{"is-active":t.showYearPicker},attrs:{tabindex:"0"},on:{click:function(e){t.showYearPicker=!0},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;t.showYearPicker=!0}}},[t._v(t._s(t.headerYear))]),t._v(" "),o("div",{staticClass:"ui-calendar__header-details",class:{"is-active":!t.showYearPicker},attrs:{tabindex:"0"},on:{click:function(e){t.showYearPicker=!1},keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;t.showYearPicker=!1}}},[o("span",{staticClass:"ui-calendar__header-day"},[t._v(t._s(t.headerDay)+", ")]),t._v(" "),o("span",{staticClass:"ui-calendar__header-date"},[t._v(t._s(t.headerDate))])])]),t._v(" "),o("div",{staticClass:"ui-calendar__body"},[o("ul",{directives:[{name:"show",rawName:"v-show",value:t.showYearPicker,expression:"showYearPicker"}],ref:"years",staticClass:"ui-calendar__years"},t._l(t.yearRange,function(e){return t.isYearOutOfRange(e)?t._e():o("li",{staticClass:"ui-calendar__year",class:t.getYearClasses(e),attrs:{tabindex:"0"},on:{click:function(o){t.selectYear(e)},keydown:function(o){if(!("button"in o)&&t._k(o.keyCode,"enter",13))return null;t.selectYear(e)}}},[t._v(t._s(e))])})),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!t.showYearPicker,expression:"!showYearPicker"}]},[o("ui-calendar-controls",{ref:"controls",attrs:{"date-in-view":t.dateInView,lang:t.lang,"max-date":t.maxDate,"min-date":t.minDate},on:{"go-to-date":t.onGoToDate}}),t._v(" "),o("ui-calendar-month",{ref:"month",attrs:{"date-filter":t.dateFilter,"date-in-view":t.dateInView,lang:t.lang,"max-date":t.maxDate,"min-date":t.minDate,selected:t.value},on:{change:t.onMonthChange,"date-select":t.onDateSelect}})],1),t._v(" "),t.$slots.footer?o("div",{staticClass:"ui-calendar__footer"},[t._t("footer")],2):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-slider"},[o("h2",{staticClass:"page__title"},[t._v("UiSlider")]),t._v(" "),o("p",[t._v("UiSlider allows the user to select a value from a continuous range of values by moving the slider thumb, clicking on the slider, or using the keyboard arrow keys.")]),t._v(" "),o("p",[t._v("UiSlider supports an icon and a disabled state. The slider is keyboard accessible.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-slider",{model:{value:t.slider1,callback:function(e){t.slider1=e},expression:"slider1"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon")]),t._v(" "),o("ui-slider",{attrs:{icon:"volume_up"},model:{value:t.slider2,callback:function(e){t.slider2=e},expression:"slider2"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With marker")]),t._v(" "),o("ui-slider",{attrs:{icon:"volume_up","show-marker":""},model:{value:t.slider3,callback:function(e){t.slider3=e},expression:"slider3"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Snap to steps: 20")]),t._v(" "),o("ui-slider",{attrs:{icon:"volume_up","show-marker":"","snap-to-steps":"",step:20},model:{value:t.slider4,callback:function(e){t.slider4=e},expression:"slider4"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-slider",{attrs:{icon:"volume_up",disabled:""},model:{value:t.slider5,callback:function(e){t.slider5=e},expression:"slider5"}}),t._v(" "),o("ui-button",{on:{click:t.resetSliders}},[t._v("Reset Sliders")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the slider's hidden input element. Useful when traditionally submitting a form the slider is a part of.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[t._v("(required)")]),t._v(" "),o("td",[o("p",[t._v("The model that the slider value syncs to. Changing this value will update the slider.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The slider icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can also use the "),o("code",[t._v("icon")]),t._v(" slot to show a custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("step")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("5")])]),t._v(" "),o("td",[t._v("The amount to increment or decrement the slider value by when using the keyboard arrow keys. Also determines the snap points on the slider when "),o("code",[t._v("snapToSteps")]),t._v(" is "),o("code",[t._v("true")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("snapToSteps")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the slider value should be snapped to distrete steps. Setting to "),o("code",[t._v("true")]),t._v(" will ensure that the value is always a multiple of the "),o("code",[t._v("step")]),t._v(" prop when a drag is completed.")])]),t._v(" "),o("tr",[o("td",[t._v("showMarker")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not to show a marker (like a tooltip) above the slider which shows the current value. The value shown can be customized using the "),o("code",[t._v("markerValue")]),t._v(" prop.")])]),t._v(" "),o("tr",[o("td",[t._v("markerValue")]),t._v(" "),o("td",[t._v("Number, String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The value shown in the marker when "),o("code",[t._v("showMarker")]),t._v(" is "),o("code",[t._v("true")]),t._v(". If not provided and "),o("code",[t._v("showMarker")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the slider's value is shown in the marker.")])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the slider is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the slider.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("Holds the slider icon and can be used to show a custom or SVG icon.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the slider is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the slider loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the slider value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the value of the slider is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("dragstart")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the user starts dragging the slider thumb. The handler is called with the current value and the drag event object.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dragstart")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("dragend")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the user stops dragging the slider thumb. The handler is called with the current value and the drag event object.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dragend")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[t._v("Call this method to reset the slider's value to its initial value.")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiSlider.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-ripple-ink"},[o("h2",{staticClass:"page__title"},[t._v("UiRippleInk")]),t._v(" "),o("p",[t._v("UiRippleInk shows a ripple ink animation when the element it is associated with is touched or clicked. The ripple ink color and opacity can be customized.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Color: blue")]),t._v(" "),o("div",{staticClass:"page__demo-group page__demo-group--tv-shows page__demo-group--color-blue has-custom-color"},t._l(t.tvShows,function(t){return o("image-pane",{attrs:{image:t.image}})})),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: orange, Opacity: 0.95")]),t._v(" "),o("div",{staticClass:"page__demo-group page__demo-group--the-simpsons page__demo-group--color-orange has-custom-color has-custom-opacity\n "},t._l(t.theSimpsons,function(t){return o("image-pane",{attrs:{image:t.image}})}))]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("trigger *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("p",[t._v("The string key of an element in the parent's "),o("code",[t._v("$refs")]),t._v(" object.")]),t._v(" "),o("p",[t._v("The click/touch event listeners will be attached to this element, and when it is clicked or touched, a ripple ink animation will be shown on the it.")]),t._v(" "),o("p",[t._v('Make sure this element is "positioned" (i.e. its CSS '),o("code",[t._v("position")]),t._v(" property is set to either "),o("code",[t._v("relative")]),t._v(" or "),o("code",[t._v("absolute")]),t._v(").")])])])])])]),t._v("\n\n * Required prop\n ")])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To customize the color, use CSS to set the "),o("code",[t._v("color")]),t._v(" property on the containing element (which the ripple ink will inherit as background color) or set the "),o("code",[t._v("background-color")]),t._v(" property on "),o("code",[t._v(".ui-ripple-ink__ink")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To customize the opacity, use CSS to set the "),o("code",[t._v("opacity")]),t._v(" property on "),o("code",[t._v(".ui-ripple-ink__ink")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiRippleInk is used internally by many components, including "),o("a",{attrs:{href:"#/ui-button"}},[t._v("UiButton")]),t._v(", "),o("a",{attrs:{href:"#/ui-collapsible"}},[t._v("UiCollapsible")]),t._v(", "),o("a",{attrs:{href:"#/ui-icon-button"}},[t._v("UiIconButton")]),t._v(", "),o("a",{attrs:{href:"#/ui-fab"}},[t._v("UiFab")]),t._v(", "),o("a",{attrs:{href:"#/ui-menu"}},[t._v("UiMenu")]),t._v(", and "),o("a",{attrs:{href:"#/ui-tabs"}},[t._v("UiTabs")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiRippleInk.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-radio"},[o("h2",{staticClass:"page__title"},[t._v("UiRadio")]),t._v(" "),o("p",[t._v("UiRadio shows a single radio button. The radio button can have a label. It supports hover and disabled states. The position of the radio button relative to the label can be changed.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio1-value"},model:{value:t.radio1,callback:function(e){t.radio1=e},expression:"radio1"}},[t._v("Select")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Checked")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio2-value",checked:""},model:{value:t.radio2,callback:function(e){t.radio2=e},expression:"radio2"}},[t._v("Select")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: accent")]),t._v(" "),o("ui-radio",{attrs:{color:"accent","true-value":"radio3-value"},model:{value:t.radio3,callback:function(e){t.radio3=e},expression:"radio3"}},[t._v("Select")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: accent, checked")]),t._v(" "),o("ui-radio",{attrs:{color:"accent","true-value":"radio4-value",checked:""},model:{value:t.radio4,callback:function(e){t.radio4=e},expression:"radio4"}},[t._v("Select")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Button position: right")]),t._v(" "),o("div",{staticClass:"page__demo-group has-button-right"},[o("ui-radio",{attrs:{"button-position":"right","true-value":"radio5-value"},model:{value:t.radio5,callback:function(e){t.radio5=e},expression:"radio5"}},[t._v("Select")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("No Label")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio6-value"},model:{value:t.radio6,callback:function(e){t.radio6=e},expression:"radio6"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("No Label, checked")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio7-value",checked:""},model:{value:t.radio7,callback:function(e){t.radio7=e},expression:"radio7"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio8-value",disabled:""},model:{value:t.radio8,callback:function(e){t.radio8=e},expression:"radio8"}},[t._v("Select")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled, checked")]),t._v(" "),o("ui-radio",{attrs:{"true-value":"radio9-value",checked:"",disabled:""},model:{value:t.radio9,callback:function(e){t.radio9=e},expression:"radio9"}},[t._v("Select")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the radio input element.")])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The radio label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("Number, String")]),t._v(" "),o("td",[t._v("Required")]),t._v(" "),o("td",[o("p",[t._v("The model the radio value syncs to.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("trueValue *")]),t._v(" "),o("td",[t._v("Number, String")]),t._v(" "),o("td",[t._v("Required")]),t._v(" "),o("td",[t._v("The value that is written to the model when the radio is selected.")])]),t._v(" "),o("tr",[o("td",[t._v("checked")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the radio is selected by default.")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of a selected radio button. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("buttonPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[t._v("The position of the radio button relative to the label. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the radio button is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the radio.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the radio button label and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the radio button is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the radio button loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the radio value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the radio value changes. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("See the "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/Events/change",target:"_blank",rel:"noopener"}},[t._v("onchange event documentation")]),t._v(" for more information.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiRadio supports two colors: "),o("code",[t._v("primary")]),t._v(" and "),o("code",[t._v("accent")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To show a group of mutually exclusive radio buttons, use "),o("a",{attrs:{href:"#/ui-radio-group"}},[t._v("UiRadioGroup")]),t._v(" or use multiple UiRadios with a shared "),o("code",[t._v("v-model")]),t._v("/"),o("code",[t._v("value")]),t._v(" and "),o("code",[t._v("name")]),t._v(" prop.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiRadio.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:t.toggleTransition},on:{"after-enter":t.onEnter,"after-leave":t.onLeave}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],staticClass:"ui-modal ui-modal__mask",class:t.classes,attrs:{role:t.role}},[o("div",{ref:"backdrop",staticClass:"ui-modal__wrapper",class:{"has-dummy-scrollbar":t.preventShift},on:{click:function(e){t.dismissOnBackdrop&&t.closeModal(e)}}},[o("div",{ref:"container",staticClass:"ui-modal__container",attrs:{tabindex:"-1"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27))return null;t.dismissOnEsc&&t.closeModal(e)}}},[t.removeHeader?t._e():o("div",{staticClass:"ui-modal__header"},[t._t("header",[o("h1",{staticClass:"ui-modal__header-text"},[t._v(t._s(t.title))])]),t._v(" "),o("div",{staticClass:"ui-modal__close-button"},[t.dismissOnCloseButton&&!t.removeCloseButton&&t.dismissible?o("ui-close-button",{on:{click:t.closeModal}}):t._e()],1)],2),t._v(" "),o("div",{staticClass:"ui-modal__body"},[t._t("default")],2),t._v(" "),t.hasFooter?o("div",{staticClass:"ui-modal__footer"},[t._t("footer")],2):t._e(),t._v(" "),o("div",{staticClass:"ui-modal__focus-redirect",attrs:{tabindex:"0"},on:{focus:function(e){e.stopPropagation(),t.redirectFocus(e)}}})])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-progress-linear"},[o("h2",{staticClass:"page__title"},[t._v("UiProgressLinear")]),t._v(" "),o("p",[t._v("UiProgressLinear shows a linear progress bar that can be either determinate or indeterminate. A determinate progress bar shows a specific percentage of completion, while an indeterminate progress bar indicates general activity.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Type: determinate")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"primary",type:"determinate",progress:t.progress}}),t._v(" "),o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"accent",type:"determinate",progress:t.progress}}),t._v(" "),o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"black",type:"determinate",progress:t.progress}}),t._v(" "),o("div",{staticClass:"has-white-progress"},[o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"white",type:"determinate",progress:t.progress}})],1)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: indeterminate")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"primary"}}),t._v(" "),o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"accent"}}),t._v(" "),o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"black"}}),t._v(" "),o("div",{staticClass:"has-white-progress"},[o("ui-progress-linear",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],attrs:{color:"white"}})],1)],1),t._v(" "),o("ui-button",{on:{click:function(e){t.isLoading=!t.isLoading}}},[t._v("Toggle Loading")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"indeterminate"')])]),t._v(" "),o("td",[t._v("The type of progress bar. One of "),o("code",[t._v("determinate")]),t._v(" or "),o("code",[t._v("indeterminate")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[o("code",[t._v('"primary"')])])]),t._v(" "),o("td",[t._v("The color of the progress bar. One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("black")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("progress")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[o("p",[t._v("The value of progress as a number between 0 and 100. Changing this value will update the progress bar.")]),t._v(" "),o("p",[t._v("Only applicable when the type is "),o("code",[t._v("determinate")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiProgressLinear supports four colors: "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("black")]),t._v(" or "),o("code",[t._v("white")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiProgressLinear.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-calendar-controls"},[o("ui-icon-button",{staticClass:"ui-calendar-controls__nav-button",attrs:{icon:"keyboard_arrow_left",type:"secondary",disabled:t.previousMonthDisabled},on:{click:t.goToPreviousMonth}},[o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M15.422 16.078l-1.406 1.406-6-6 6-6 1.406 1.406-4.594 4.594z"}})])])],1),t._v(" "),o("div",{staticClass:"ui-calendar-controls__month-and-year"},[t._v(t._s(t.monthAndYear))]),t._v(" "),o("ui-icon-button",{staticClass:"ui-calendar-controls__nav-button",attrs:{icon:"keyboard_arrow_right",type:"secondary",disabled:t.nextMonthDisabled},on:{click:t.goToNextMonth}},[o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M8.578 16.36l4.594-4.595L8.578 7.17l1.406-1.405 6 6-6 6z"}})])])],1)],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-calendar-month"},[o("div",{staticClass:"ui-calendar-month__header"},t._l(t.lang.days.initials,function(e){return o("span",[t._v(t._s(e))])})),t._v(" "),o("div",{ref:"current",staticClass:"ui-calendar-month__week is-current",class:t.weekClasses,on:{transitionend:t.onTransitionEnd}},t._l(t.currentWeekStartDates,function(e,i){return o("ui-calendar-week",{key:i,attrs:{"date-filter":t.dateFilter,"max-date":t.maxDate,"min-date":t.minDate,month:t.currentWeekStartDates[1].getMonth(),selected:t.selected,"week-start":e},on:{"date-select":t.onDateSelect}})})),t._v(" "),o("div",{ref:"other",staticClass:"ui-calendar-month__week is-other",class:t.weekClasses},t._l(t.otherWeekStartDates,function(e,i){return o("ui-calendar-week",{key:i,attrs:{"max-date":t.maxDate,"min-date":t.minDate,month:t.otherWeekStartDates[1].getMonth(),selected:t.selected,visible:!1,"week-start":e},on:{"date-select":t.onDateSelect}})}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{directives:[{name:"show",rawName:"v-show",value:t.show&&t.isActive,expression:"show && isActive"}],staticClass:"ui-tab",attrs:{role:"tabpanel","aria-hidden":t.isActive?null:"true",id:t.id,tabindex:t.isActive?"0":null}},[o("div",{staticStyle:{display:"none"}},[t._t("icon")],2),t._v(" "),t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-icon-button"},[o("h2",{staticClass:"page__title"},[t._v("UiIconButton")]),t._v(" "),o("p",[t._v("UiIconButton shows an icon button which can show a loading spinner and include a dropdown. It supports focus (mouse and keyboard separately), hover and disabled states.")]),t._v(" "),o("p",[t._v("UiIconButton has two types:")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),t._m(4),t._v(" "),o("div",{staticClass:"page__examples"},[o("ui-radio-group",{attrs:{name:"size",options:["small","normal","large"]},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[t._v("Button Size")]),t._v(" "),o("ui-switch",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t._v("\n Loading: "),o("code",[t._v(t._s(t.loading?"true":"false"))])]),t._v(" "),o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered page__demo-table"},[o("tbody",[t._m(5),t._v(" "),o("tr",[o("th",[t._v("Color: default")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{icon:"refresh",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{icon:"refresh",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{disabled:"",icon:"refresh",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{icon:"refresh",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{icon:"refresh",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{disabled:"",icon:"refresh",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: primary")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"primary",icon:"add",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"primary",icon:"add",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"primary",disabled:"",icon:"add",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"primary",icon:"add",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"primary",icon:"add",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"primary",disabled:"",icon:"add",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: accent")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"accent",icon:"edit",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"accent",icon:"edit",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"accent",disabled:"",icon:"edit",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"accent",icon:"edit",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"accent",icon:"edit",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"accent",disabled:"",icon:"edit",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: green")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"green",icon:"star",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"green",icon:"star",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"green",disabled:"",icon:"star",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"green",icon:"star",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"green",icon:"star",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"green",disabled:"",icon:"star",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: orange")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"orange",icon:"favorite",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"orange",icon:"favorite",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"orange",disabled:"",icon:"favorite",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"orange",icon:"favorite",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"orange",icon:"favorite",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"orange",disabled:"",icon:"favorite",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: red")]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"red",icon:"delete",size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"red",icon:"delete",loading:t.loading,size:t.size}}),t._v(" "),o("ui-icon-button",{attrs:{color:"red",disabled:"",icon:"delete",size:t.size}})],1)]),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"red",icon:"delete",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"red",icon:"delete",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"red",disabled:"",icon:"delete",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: black")]),t._v(" "),o("td"),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{color:"black",icon:"menu",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",icon:"refresh",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"black",disabled:"",icon:"more_vert",size:t.size,type:"secondary"}})],1)])]),t._v(" "),o("tr",[o("th",[t._v("Color: white")]),t._v(" "),o("td"),t._v(" "),o("td",[o("div",{staticClass:"page__demo-group has-white-icon-buttons"},[o("ui-icon-button",{attrs:{color:"white",icon:"menu",size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",icon:"refresh",loading:t.loading,size:t.size,type:"secondary"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"white",disabled:"",icon:"more_vert",size:t.size,type:"secondary"}})],1)])])])])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With tooltip")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{icon:"refresh",size:t.size,tooltip:"Top center","tooltip-position":"top center"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"primary",icon:"add",size:t.size,tooltip:"Bottom center"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"accent",icon:"edit",size:t.size,tooltip:"Left middle","tooltip-position":"left middle"}}),t._v(" "),o("ui-icon-button",{attrs:{color:"green",icon:"star",size:t.size,tooltip:"Right middle","tooltip-position":"right middle"}})],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Has dropdown, with menu")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{ref:"dropdownButton",attrs:{color:"primary","has-dropdown":"",icon:"add",size:t.size}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton.closeDropdown()}},slot:"dropdown"})],1)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Has dropdown, custom content")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-icon-button",{attrs:{"has-dropdown":"",icon:"more_vert",size:t.size}},[o("div",{staticClass:"custom-popover-content",slot:"dropdown"},[o("p",[o("b",[t._v("Hey")]),t._v(" there!")]),t._v(" "),o("p",[t._v("Button dropdowns can have any content, not just menus.")])])])],1)],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The type of icon button (determines the visual prominence).")]),t._v(" "),o("p",[t._v("Use "),o("code",[t._v("primary")]),t._v(" for a more prominent button, and "),o("code",[t._v("secondary")]),t._v(" for a less prominent button.")])])]),t._v(" "),o("tr",[o("td",[t._v("buttonType")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"button"')])]),t._v(" "),o("td",[t._v("The "),o("code",[t._v("type")]),t._v(" attribute of the button element.")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[o("p",[t._v("One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("green")]),t._v(", "),o("code",[t._v("orange")]),t._v(", "),o("code",[t._v("red")]),t._v(", "),o("code",[t._v("black")]),t._v(", "),o("code",[t._v("white")]),t._v(" or "),o("code",[t._v("default")]),t._v(".")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("black")]),t._v(" and "),o("code",[t._v("white")]),t._v(" colors should only be paired with "),o("code",[t._v('type="secondary"')]),t._v(".")]),t._v(" "),o("p",[t._v("In "),o("code",[t._v('type="primary"')]),t._v(" buttons, this is the background color; in "),o("code",[t._v('type="secondary"')]),t._v(" buttons, the text color.")])])]),t._v(" "),o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"normal"')])]),t._v(" "),o("td",[o("p",[t._v("The size of the icon button. One of "),o("code",[t._v("small")]),t._v(", "),o("code",[t._v("normal")]),t._v(", or "),o("code",[t._v("large")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("ariaLabel")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The button "),o("code",[t._v("aria-label")]),t._v(" attribute (important for accessibility).")]),t._v(" "),o("p",[t._v("Falls back to "),o("code",[t._v("tooltip")]),t._v(" if not specified.")])])]),t._v(" "),o("tr",[o("td",[t._v("loading")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the loading spinner is shown.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show the loading spinner (disables the button).")])])]),t._v(" "),o("tr",[o("td",[t._v("tooltip")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The icon button tooltip (text only).")])])]),t._v(" "),o("tr",[o("td",[t._v("tooltipPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the tooltip relative to the button.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", or "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openTooltipOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"hover focus"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the tooltip to open.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", or "),o("code",[t._v("focus")]),t._v(". Separate multiple events with a space.")])])]),t._v(" "),o("tr",[o("td",[t._v("hasDropdown")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button contains a dropdown.")]),t._v(" "),o("p",[t._v("Use the "),o("code",[t._v("dropdown")]),t._v(" slot to add any dropdown content, including a "),o("a",{attrs:{href:"#/ui-menu"}},[t._v("UiMenu")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("dropdownPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the dropdown relative to the button.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", or "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openDropdownOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"click"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event that will cause the dropdown to open. One of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", "),o("code",[t._v("focus")]),t._v(", or "),o("code",[t._v("always")]),t._v(".")]),t._v(" "),o("p",[t._v("For "),o("code",[t._v("always")]),t._v(", the dropdown is opened when rendered and it remains open.")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is shown when the button is clicked.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the button.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the button icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("dropdown")]),t._v(" "),o("td",[o("p",[t._v("Holds the the dropdown content and can contain HTML.")]),t._v(" "),o("p",[t._v("For a dropdown menu, add a "),o("a",{attrs:{href:"#/ui-menu"}},[t._v("UiMenu")]),t._v(" component in this slot, and then call the "),o("code",[t._v("closeDropdown()")]),t._v(" method when the "),o("code",[t._v("close")]),t._v(" event is emitted on the menu.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the button dropdown is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the button dropdown is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("openDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to open the button dropdown.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("closeDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to close the button dropdown.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("toggleDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to toggle the button dropdown.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",[o("li",[o("b",[t._v("Primary")]),t._v(": more prominent, has a background color, with white or black text color.")]),t._v(" "),o("li",[o("b",[t._v("Secondary")]),t._v(": less prominent, has no background, text color is the button color.")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("Supported colors are "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("green")]),t._v(", "),o("code",[t._v("orange")]),t._v(", "),o("code",[t._v("red")]),t._v(", "),o("code",[t._v("black")]),t._v(", and "),o("code",[t._v("white")]),t._v(" in addition to the default gray.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("The "),o("code",[t._v("black")]),t._v(" and "),o("code",[t._v("white")]),t._v(" colors should only be paired with "),o("code",[t._v('type="secondary"')]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[o("b",[t._v("Note:")]),t._v(" If you are having alignment issues when using multiple buttons next to each other, put the buttons in a container and add a class of "),o("code",[t._v("ui-button-group")]),t._v(" for a flex-based workaround.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiIconButton.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("tr",[o("th"),t._v(" "),o("th",[t._v("Type: primary")]),t._v(" "),o("th",[t._v("Type: secondary")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-calendar-week"},t._l(t.dates,function(e,i){return o("div",{key:i,staticClass:"ui-calendar-week__date",class:t.getDateClasses(e),attrs:{tabindex:t.visible&&!t.isDateDisabled(e)?0:null},on:{click:function(o){t.selectDate(e)},keydown:function(o){if(!("button"in o)&&t._k(o.keyCode,"enter",13))return null;t.selectDate(e)}}},[t._v("\n "+t._s(t.getDayOfMonth(e))+"\n ")])}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:t.disableTransition?null:"ui-progress-circular--transition-fade"}},[o("div",{staticClass:"ui-progress-circular",class:t.classes,style:{width:t.size+"px",height:t.size+"px"}},["determinate"===t.type?o("svg",{staticClass:"ui-progress-circular__determinate",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":t.progress,height:t.size,width:t.size}},[o("circle",{staticClass:"ui-progress-circular__determinate-path",style:{"stroke-dashoffset":t.strokeDashOffset,"stroke-width":t.calculatedStroke},attrs:{fill:"transparent","stroke-dashoffset":"0",cx:t.size/2,cy:t.size/2,r:t.radius,"stroke-dasharray":t.strokeDashArray}})]):o("svg",{staticClass:"ui-progress-circular__indeterminate",attrs:{role:"progressbar",viewBox:"25 25 50 50","aria-valuemax":100,"aria-valuemin":0}},[o("circle",{staticClass:"ui-progress-circular__indeterminate-path",attrs:{cx:"50",cy:"50",fill:"none",r:"20","stroke-miterlimit":"10","stroke-width":t.calculatedStroke}})])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-fileupload"},[o("h2",{staticClass:"page__title"},[t._v("UiFileupload")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("UiFileupload allows for selecting multiple files and customizing what type of files to allow.")]),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-fileupload",{attrs:{name:"file"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Colors")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-fileupload",{attrs:{color:"primary",name:"file2"}}),t._v(" "),o("ui-fileupload",{attrs:{color:"accent",name:"file3"}})],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: secondary")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-fileupload",{attrs:{name:"file4",type:"secondary"}}),t._v(" "),o("ui-fileupload",{attrs:{color:"primary",name:"file5",type:"secondary"}}),t._v(" "),o("ui-fileupload",{attrs:{color:"accent",name:"file6",type:"secondary"}})],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom label")]),t._v(" "),o("ui-fileupload",{attrs:{name:"file7"}},[t._v("Select file to upload")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom icon")]),t._v(" "),o("ui-fileupload",{attrs:{name:"file8"}},[o("ui-icon",{slot:"icon"},[t._v("cloud_upload")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom accept")]),t._v(" "),t._m(2),t._v(" "),o("ui-fileupload",{attrs:{name:"file9",accept:"image/*"}},[t._v("Select an image")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multiple")]),t._v(" "),o("ui-fileupload",{attrs:{multiple:"",name:"file10"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With image preview")]),t._v(" "),o("ui-fileupload",{attrs:{accept:"image/*",name:"file11"},on:{change:t.onFile11Change}},[t._v("Select an image")]),t._v(" "),t.file11PreviewImage.length>0?o("div",{staticClass:"page__demo-preview"},[o("img",{staticClass:"page__demo-preview-image",attrs:{alt:"file11PreviewName",src:t.file11PreviewImage}})]):t._e()],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the file input element.")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The upload button label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("The label is shown when no file has been selected.")])])]),t._v(" "),o("tr",[o("td",[t._v("accept")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("accept")]),t._v(" attribute of the file input element. "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/HTML/Element/input#attr-accept",target:"_blank",rel:"noopener"}},[t._v("See here")]),t._v(" for possible values.")])])]),t._v(" "),o("tr",[o("td",[t._v("multiple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the user can select multiple files for this upload button.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to allow the selection of multiple files.")])])]),t._v(" "),o("tr",[o("td",[t._v("required")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("required")]),t._v(" attribute of the file input element.")])])]),t._v(" "),o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The type of button (determines the visual prominence).")]),t._v(" "),o("p",[t._v("Use "),o("code",[t._v("primary")]),t._v(" for a more prominent button, and "),o("code",[t._v("secondary")]),t._v(" for a less prominent button.")])])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[o("p",[t._v("One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(" or "),o("code",[t._v("default")]),t._v(".")]),t._v(" "),o("p",[t._v("For "),o("code",[t._v('type="primary"')]),t._v(", this is the background color; for "),o("code",[t._v('type="secondary"')]),t._v(", the text color.")])])]),t._v(" "),o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"normal"')])]),t._v(" "),o("td",[o("p",[t._v("The size of the upload button. One of "),o("code",[t._v("small")]),t._v(", "),o("code",[t._v("normal")]),t._v(", or "),o("code",[t._v("large")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the upload button has a drop shadow.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show a drop shadow.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the upload button text. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is shown when the upload button is clicked.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the upload button is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the button.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the upload button label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the upload button icon and can contain any custom or SVG icon.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the upload button is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the upload button loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the selected file changes. The handler is called with the following arguments:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("files")]),t._v(" - "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/FileList",target:"_blank",rel:"noopener"}},[t._v("FileList")]),t._v(": an array-like container of "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/File",target:"_blank",rel:"noopener"}},[t._v("File")]),t._v(" objects representing the selected files")]),t._v(" "),o("li",[o("code",[t._v("event")]),t._v(" - Event: the original change event")])]),t._v(" "),o("p",[t._v("The file objects can be used to generage a client-side preview of the selected files. See the "),o("b",[t._v("With image preview")]),t._v(" section above for an example.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiFileupload is a file upload button which wraps the native "),o("code",[t._v('input[type="file"]')]),t._v(" element. Like "),o("a",{attrs:{href:"#/ui-button"}},[t._v("UiButton")]),t._v(", it allows for customizing the type, color, size and icon of the button.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiFileupload.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("The following fileupload accepts only files with MIME type "),o("code",[t._v("image/*")]),t._v(".")])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{staticClass:"ui-switch",class:t.classes},[o("div",{staticClass:"ui-switch__input-wrapper"},[o("input",{staticClass:"ui-switch__input",attrs:{type:"checkbox",disabled:t.disabled,name:t.name},domProps:{checked:t.isChecked,value:t.submittedValue},on:{blur:t.onBlur,change:t.onChange,click:t.onClick,focus:t.onFocus}}),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"ui-switch__track"})]),t._v(" "),t.label||t.$slots.default?o("div",{staticClass:"ui-switch__label-text"},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-switch__thumb"},[o("div",{staticClass:"ui-switch__focus-ring"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{ref:"button",staticClass:"ui-icon-button",class:t.classes,attrs:{"aria-label":t.ariaLabel||t.tooltip,disabled:t.disabled||t.loading,type:t.buttonType},on:{click:t.onClick}},[t.icon||t.$slots.default?o("div",{staticClass:"ui-icon-button__icon"},[t._t("default",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-icon-button__focus-ring"}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"ui-icon-button__progress",attrs:{color:t.progressColor,size:"large"===t.size?24:18,stroke:4.5}}),t._v(" "),t.disableRipple||t.disabled?t._e():o("ui-ripple-ink",{attrs:{trigger:"button"}}),t._v(" "),t.hasDropdown?o("ui-popover",{ref:"dropdown",attrs:{trigger:"button","dropdown-position":t.dropdownPosition,"open-on":t.openDropdownOn},on:{close:t.onDropdownClose,open:t.onDropdownOpen}},[t._t("dropdown")],2):t._e(),t._v(" "),t.tooltip?o("ui-tooltip",{attrs:{trigger:"button","open-on":t.openTooltipOn,position:t.tooltipPosition}},[t._v(t._s(t.tooltip))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{ref:"label",staticClass:"ui-fileupload",class:t.classes},[o("input",{ref:"input",staticClass:"ui-fileupload__input",attrs:{type:"file",accept:t.accept,disabled:t.disabled,multiple:t.multiple,name:t.name,required:t.required},on:{blur:t.onBlur,change:t.onChange,focus:t.onFocus}}),t._v(" "),o("div",{staticClass:"ui-fileupload__content"},[o("div",{staticClass:"ui-fileupload__icon"},[t._t("icon",[o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M5.016 18h13.969v2.016H5.016V18zM9 15.984v-6H5.016L12 3l6.984 6.984H15v6H9z"}})])])])],2),t._v(" "),t.hasSelection?o("span",{staticClass:"ui-fileupload__display-text"},[t._v(t._s(t.displayText))]):t._t("default",[t._v(t._s(t.placeholder))])],2),t._v(" "),o("div",{staticClass:"ui-fileupload__focus-ring",style:t.focusRingStyle}),t._v(" "),t.disableRipple||t.disabled?t._e():o("ui-ripple-ink",{attrs:{trigger:"label"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"ui-progress-linear--transition-fade"}},[o("div",{staticClass:"ui-progress-linear",class:t.classes},["determinate"===t.type?o("div",{staticClass:"ui-progress-linear__progress-bar is-determinate",style:{transform:"scaleX("+t.moderatedProgress/100+")"},attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":t.moderatedProgress}}):o("div",{staticClass:"ui-progress-linear__progress-bar is-indeterminate",attrs:{role:"progressbar","aria-valuemax":100,"aria-valuemin":0}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-confirm"},[o("ui-modal",{ref:"modal",attrs:{role:"alertdialog","dismiss-on":t.dismissOn,dismissible:!t.loading,title:t.title,transition:t.transition},on:{close:t.onModalClose,open:t.onModalOpen}},[o("div",{staticClass:"ui-confirm__message"},[t._t("default")],2),t._v(" "),o("div",{staticClass:"ui-confirm__footer",slot:"footer"},[o("ui-button",{ref:"confirmButton",attrs:{color:t.confirmButtonColor,icon:t.confirmButtonIcon,loading:t.loading},on:{click:t.confirm}},[t._v(t._s(t.confirmButtonText))]),t._v(" "),o("ui-button",{ref:"denyButton",attrs:{disabled:t.loading,icon:t.denyButtonIcon},on:{click:t.deny}},[t._v(t._s(t.denyButtonText))])],1)])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("span",{staticClass:"ui-breadcrumb"},[o("a",{attrs:{href:t.item.url}},[t._v(t._s(t.item.title))]),t._v(" "),o("span",{staticClass:"ui-breadcrumb__arrow"},[t._v("›")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-checckbox"},[o("h2",{staticClass:"page__title"},[t._v("UiCheckbox")]),t._v(" "),o("p",[t._v("UiCheckbox shows a checkbox. It supports keyboard focus, hover and disabled states. The position of the checkbox relative to the label can be changed.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-checkbox",{model:{value:t.check1,callback:function(e){t.check1=e},expression:"check1"}},[t._v("Do it now")]),t._v(" "),o("ui-checkbox",{model:{value:t.check2,callback:function(e){t.check2=e},expression:"check2"}},[t._v("Do it well")]),t._v(" "),o("ui-checkbox",{attrs:{disabled:""},model:{value:t.check3,callback:function(e){t.check3=e},expression:"check3"}},[t._v("Can't change this")]),t._v(" "),o("ui-checkbox",{attrs:{disabled:""},model:{value:t.check4,callback:function(e){t.check4=e},expression:"check4"}},[t._v("Can't change this too")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: accent")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-checkbox",{attrs:{color:"accent"},model:{value:t.check1,callback:function(e){t.check1=e},expression:"check1"}},[t._v("Do it now")]),t._v(" "),o("ui-checkbox",{attrs:{color:"accent"},model:{value:t.check2,callback:function(e){t.check2=e},expression:"check2"}},[t._v("Do it well")]),t._v(" "),o("ui-checkbox",{attrs:{color:"accent",disabled:""},model:{value:t.check3,callback:function(e){t.check3=e},expression:"check3"}},[t._v("Can't change this")]),t._v(" "),o("ui-checkbox",{attrs:{color:"accent",disabled:""},model:{value:t.check4,callback:function(e){t.check4=e},expression:"check4"}},[t._v("Can't change this too")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Box position: right")]),t._v(" "),o("div",{staticClass:"page__demo-group has-box-right"},[o("ui-checkbox",{attrs:{"box-position":"right"},model:{value:t.check1,callback:function(e){t.check1=e},expression:"check1"}},[t._v("Do it now")]),t._v(" "),o("ui-checkbox",{attrs:{"box-position":"right"},model:{value:t.check2,callback:function(e){t.check2=e},expression:"check2"}},[t._v("Do it well")]),t._v(" "),o("ui-checkbox",{attrs:{"box-position":"right",disabled:""},model:{value:t.check3,callback:function(e){t.check3=e},expression:"check3"}},[t._v("Can't change this")]),t._v(" "),o("ui-checkbox",{attrs:{"box-position":"right",disabled:""},model:{value:t.check4,callback:function(e){t.check4=e},expression:"check4"}},[t._v("Can't change this too")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("HTML in Label")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-checkbox",{model:{value:t.check5,callback:function(e){t.check5=e},expression:"check5"}},[t._v("Just "),o("b",[o("i",[t._v("do")])]),t._v(" it!")])],1)]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the checkbox input element.")])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The checkbox label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td"),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model that the checkbox value syncs to.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("trueValue")]),t._v(" prop will be written to this model when the checkbox is checked and the "),o("code",[t._v("falseValue")]),t._v(" prop will be written to it when the checkbox is unchecked.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("checked")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the checkbox is checked by default.")])]),t._v(" "),o("tr",[o("td",[t._v("trueValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("The value that will be written to the model when the checkbox is checked.")])]),t._v(" "),o("tr",[o("td",[t._v("falseValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("The value that will be written to the model when the checkbox is unchecked.")])]),t._v(" "),o("tr",[o("td",[t._v("submittedValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v('"on"')])]),t._v(" "),o("td",[t._v("The value that will be submitted for the checkbox when it is checked. Applied as the "),o("code",[t._v("value")]),t._v(" attribute of the checkbox input element.")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of a selected checkbox. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("boxPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[t._v("The position of the checkbox relative to the label. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the checkbox is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the checkbox.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the checkbox label and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the checkbox is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the checkbox loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the checkbox value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a change in the checkbox value is committed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("See the "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/Events/change",target:"_blank",rel:"noopener"}},[t._v("onchange event documentation")]),t._v(" for more information.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiCheckbox supports two colors: "),o("code",[t._v("primary")]),t._v(" and "),o("code",[t._v("accent")]),t._v(". It also allows for customizing the true and false values.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("To connect multiple checkboxes to a single array of values, use "),o("a",{attrs:{href:"#/ui-checkbox-group"}},[t._v("UiCheckboxGroup")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/components/ui-checkbox/UiCheckboxDocs.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-radio-group",class:t.classes},[t.label||t.$slots.default?o("div",{staticClass:"ui-radio-group__label-text"},[t._t("default",[t._v(t._s(t.label))])],2):t._e(),t._v(" "),o("div",{staticClass:"ui-radio-group__radios"},t._l(t.options,function(e){return o("ui-radio",{key:e[t.keys.id],staticClass:"ui-radio-group__radio",class:e[t.keys.class],attrs:{"button-position":t.buttonPosition,checked:t.isOptionCheckedByDefault(e),color:t.color,disabled:t.disabled||e[t.keys.disabled],id:e[t.keys.id],name:t.name,"true-value":e[t.keys.value]||e},on:{blur:t.onBlur,focus:t.onFocus},model:{value:t.selectedOptionValue,callback:function(e){t.selectedOptionValue=e},expression:"selectedOptionValue"}},[t._v(t._s(e[t.keys.label]||e))])})),t._v(" "),t.hasFeedback?o("div",{staticClass:"ui-radio-group__feedback"},[t.showError?o("div",{staticClass:"ui-radio-group__feedback-text"},[t._t("error",[t._v(t._s(t.error))])],2):t.showHelp?o("div",{staticClass:"ui-radio-group__feedback-text"},[t._t("help",[t._v(t._s(t.help))])],2):t._e()]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-slider",class:t.classes,attrs:{role:"slider","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":t.localValue,tabindex:t.disabled?null:0},on:{blur:t.onBlur,focus:t.onFocus,keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40))return null;e.preventDefault(),t.decrementValue(e)},function(e){return"button"in e||!t._k(e.keyCode,"left",37)?"button"in e&&0!==e.button?null:(e.preventDefault(),void t.decrementValue(e)):null},function(e){return"button"in e||!t._k(e.keyCode,"right",39)?"button"in e&&2!==e.button?null:(e.preventDefault(),void t.incrementValue(e)):null},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38))return null;e.preventDefault(),t.incrementValue(e)}]}},[t.name?o("input",{staticClass:"ui-slider__hidden-input",attrs:{type:"hidden",name:t.name},domProps:{value:t.value}}):t._e(),t._v(" "),t.hasIcon?o("div",{staticClass:"ui-slider__icon"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("div",{ref:"track",staticClass:"ui-slider__track",on:{mousedown:t.onDragStart,touchstart:t.onDragStart}},[o("div",{staticClass:"ui-slider__track-background"},t._l(t.snapPoints,function(e){return t.snapToSteps?o("span",{staticClass:"ui-slider__snap-point",style:{left:e+"%"}}):t._e()})),t._v(" "),o("div",{staticClass:"ui-slider__track-fill",style:t.fillStyle}),t._v(" "),o("div",{ref:"thumb",staticClass:"ui-slider__thumb",style:t.thumbStyle},[t.showMarker?o("div",{staticClass:"ui-slider__marker"},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"36",height:"36"}},[o("path",{attrs:{d:"M11 .5c-1.7.2-3.4.9-4.7 2-1.1.9-2 2-2.5 3.2-1.2 2.4-1.2 5.1-.1 7.7 1.1 2.6 2.8 5 5.3 7.5 1.2 1.2 2.8 2.7 3 2.7 0 0 .3-.2.6-.5 3.2-2.7 5.6-5.6 7.1-8.5.8-1.5 1.1-2.6 1.3-3.8.2-1.4 0-2.9-.5-4.3-1.2-3.2-4.1-5.4-7.5-5.8-.5-.2-1.5-.2-2-.2z"}})]),t._v(" "),o("span",{staticClass:"ui-slider__marker-text"},[t._v(t._s(t.markerText))])]):t._e()])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"ui-alert--transition-toggle"}},[o("div",{staticClass:"ui-alert",class:t.classes,attrs:{role:"alert"}},[o("div",{staticClass:"ui-alert__body"},[t.removeIcon?t._e():o("div",{staticClass:"ui-alert__icon"},[t._t("icon",["info"===t.type?o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M12.984 9V6.984h-1.97V9h1.97zm0 8.016v-6h-1.97v6h1.97zm-.984-15c5.53 0 9.984 4.453 9.984 9.984S17.53 21.984 12 21.984 2.016 17.53 2.016 12 6.47 2.016 12 2.016z"}})])]):t._e(),t._v(" "),"success"===t.type?o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M9.984 17.016l9-9-1.406-1.453-7.594 7.594-3.563-3.563L5.016 12zm2.016-15c5.53 0 9.984 4.453 9.984 9.984S17.53 21.984 12 21.984 2.016 17.53 2.016 12 6.47 2.016 12 2.016z"}})])]):t._e(),t._v(" "),"warning"===t.type?o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M12.984 14.016v-4.03h-1.97v4.03h1.97zm0 3.984v-2.016h-1.97V18h1.97zm-12 3L12 2.016 23.016 21H.986z"}})])]):t._e(),t._v(" "),"error"===t.type?o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M12.984 12.984v-6h-1.97v6h1.97zm0 4.032V15h-1.97v2.016h1.97zm-.984-15c5.53 0 9.984 4.453 9.984 9.984S17.53 21.984 12 21.984 2.016 17.53 2.016 12 6.47 2.016 12 2.016z"}})])]):t._e()])],2),t._v(" "),o("div",{staticClass:"ui-alert__content"},[t._t("default")],2),t._v(" "),o("div",{staticClass:"ui-alert__dismiss-button"},[t.dismissible?o("ui-close-button",{attrs:{size:"small"},on:{click:t.dismissAlert}}):t._e()],1)])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{ref:"button",staticClass:"ui-fab",class:t.classes,attrs:{"aria-label":t.ariaLabel||t.tooltip},on:{click:t.onClick}},[t.icon||t.$slots.default?o("div",{staticClass:"ui-fab__icon"},[t._t("default",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),o("span",{staticClass:"ui-fab__focus-ring"}),t._v(" "),t.disableRipple?t._e():o("ui-ripple-ink",{attrs:{trigger:"button"}}),t._v(" "),t.tooltip?o("ui-tooltip",{attrs:{trigger:"button","open-on":t.openTooltipOn,position:t.tooltipPosition}},[t._v(t._s(t.tooltip))]):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-collapsible",class:t.classes},[o("div",{ref:"header",staticClass:"ui-collapsible__header",attrs:{"aria-controls":t.id,"aria-expanded":t.isOpen?"true":"false",tabindex:t.disabled?null:0},on:{click:t.toggleCollapsible,keydown:[function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13))return null;e.preventDefault(),t.toggleCollapsible(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"space",32))return null;e.preventDefault(),t.toggleCollapsible(e)}]}},[o("div",{staticClass:"ui-collapsible__header-content"},[t._t("header",[t._v(t._s(t.title))])],2),t._v(" "),t.removeIcon?t._e():o("ui-icon",{staticClass:"ui-collapsible__header-icon"},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M7.406 7.828L12 12.422l4.594-4.594L18 9.234l-6 6-6-6z"}})])]),t._v(" "),t.disableRipple||t.disabled||!t.isReady?t._e():o("ui-ripple-ink",{attrs:{trigger:"header"}})],1),t._v(" "),o("transition",{attrs:{name:"ui-collapsible--transition-toggle"},on:{"after-enter":t.onEnter,"after-leave":t.onLeave}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"body",staticClass:"ui-collapsible__body-wrapper",style:{height:t.calculatedHeight}},[o("div",{staticClass:"ui-collapsible__body",attrs:{"aria-hidden":t.isOpen?null:"true",id:t.id}},[t._t("default")],2)])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-confirm"},[o("h2",{staticClass:"page__title"},[t._v("UiConfirm")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("p",[t._v("UiConfirm can also show a loading spinner on the confirm button (useful for AJAX operations).")]),t._v(" "),t._m(2),t._v(" "),o("div",{staticClass:"page__demo"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-confirm",{ref:"basicConfirm",attrs:{title:"Basic Confirm"},on:{confirm:t.onConfirm,deny:t.onDeny}},[t._v("\n Do you want to confirm this?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.showConfirm("basicConfirm")}}},[t._v("Basic Confirm")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Autofocus")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-confirm",{ref:"confirm1",attrs:{autofocus:"confirm-button","confirm-button-text":"Confirm","deny-button-text":"Deny",title:"Confirm this"},on:{confirm:t.onConfirm,deny:t.onDeny}},[t._v("\n The confirm button in this dialog is focused by default.\n ")]),t._v(" "),o("ui-confirm",{ref:"confirm2",attrs:{autofocus:"none","confirm-button-text":"Confirm","deny-button-text":"Deny",title:"Confirm this"},on:{confirm:t.onConfirm,deny:t.onDeny}},[t._v("\n No button in this dialog is focused by default.\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.showConfirm("confirm1")}}},[t._v("Focus Primary Button")]),t._v(" "),o("ui-button",{on:{click:function(e){t.showConfirm("confirm2")}}},[t._v("Focus None")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Types")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-confirm",{ref:"publishConfirm",attrs:{"confirm-button-icon":"public","confirm-button-text":"Publish","deny-button-text":"Cancel",title:"Publish Post",type:"primary","close-on-confirm":!1,loading:t.publishRequestInProgress},on:{confirm:t.onConfirmPublish,deny:t.onDenyPublish}},[t._v("\n Publish post for the world to see?\n ")]),t._v(" "),o("ui-confirm",{ref:"deleteConfirm",attrs:{"confirm-button-icon":"delete","confirm-button-text":"Delete","deny-button-text":"Keep",title:"Delete Post",type:"danger"},on:{confirm:t.onConfirmDelete,deny:t.onDenyDelete}},[t._v("\n Are you sure you want to delete the post?\n ")]),t._v(" "),o("ui-button",{attrs:{color:"primary"},on:{click:function(e){t.showConfirm("publishConfirm")}}},[t._v("Publish Post")]),t._v(" "),o("ui-button",{attrs:{color:"red",type:"secondary"},on:{click:function(e){t.showConfirm("deleteConfirm")}}},[t._v("Delete Post")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Transition: fade")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-confirm",{ref:"fadeConfirm",attrs:{title:"Fading Confirm",transition:"fade"},on:{confirm:t.onConfirm,deny:t.onDeny}},[t._v("\n Do you want to confirm this?\n ")]),t._v(" "),o("ui-button",{on:{click:function(e){t.showConfirm("fadeConfirm")}}},[t._v("Fading Confirm")])],1),t._v(" "),t.confirmResult.length?o("pre",{staticClass:"language-html"},[o("code",[t._v(t._s(t.confirmResult))])]):t._e()]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("title")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"UiConfirm"')])]),t._v(" "),o("td",[o("p",[t._v("The confirm dialog title (text only).")]),t._v(" "),o("p",[t._v("If you want to use HTML in the header, consider using a "),o("a",{attrs:{href:"#/ui-modal"}},[t._v("UiModal")]),t._v(" directly.")])])]),t._v(" "),o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The type of confirm dialog (determines the color of the primary confirm button).")]),t._v(" "),o("p",[t._v("Can be one of "),o("code",[t._v("default")]),t._v(", "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("success")]),t._v(", "),o("code",[t._v("warning")]),t._v(" or "),o("code",[t._v("danger")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("confirmButtonText")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"OK"')])]),t._v(" "),o("td",[t._v("The confirm button text.")])]),t._v(" "),o("tr",[o("td",[t._v("confirmButtonIcon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The confirm button icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("denyButtonText")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"Cancel"')])]),t._v(" "),o("td",[t._v("The deny button text.")])]),t._v(" "),o("tr",[o("td",[t._v("denyButtonIcon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The deny button icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("autofocus")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"deny-button"')])]),t._v(" "),o("td",[o("p",[t._v("The button to autofocus when the dialog is opened.")]),t._v(" "),o("p",[t._v("Can be one of "),o("code",[t._v("confirm-button")]),t._v(", "),o("code",[t._v("deny-button")]),t._v(" or "),o("code",[t._v("none")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("loading")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not a loading spinner is shown on the confirm button.")]),t._v(" "),o("p",[t._v("Setting this prop to "),o("code",[t._v("true")]),t._v(" will show a spinner on the confirm button, disable the deny button and prevent the dialog from being dismissed.")])])]),t._v(" "),o("tr",[o("td",[t._v("closeOnConfirm")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the dialog should be closed when the confirm button is clicked.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to keep the dialog open after a confirmation.")])])]),t._v(" "),o("tr",[o("td",[t._v("dismissOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"backdrop close-button esc"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the confirm to be dismissed.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("backdrop")]),t._v(", "),o("code",[t._v("close-button")]),t._v(", or "),o("code",[t._v("esc")]),t._v(". Separate multiple events with a space.")])])]),t._v(" "),o("tr",[o("td",[t._v("transition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The dialog enter/leave transition. One of "),o("code",[t._v("scale")]),t._v(" or "),o("code",[t._v("fade")]),t._v(". Default is "),o("a",{attrs:{href:"#/ui-modal"}},[t._v("UiModal")]),t._v("'s default transition.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the confirm dialog content and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("confirm")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the user clicks the confirm button.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@confirm")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("deny")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the user clicks the deny button.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@deny")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the confirm dialog is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the confirm dialog is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("open()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to open the confirm.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("close()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to close the confirm.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("UiConfirm shows a confirmation dialog using "),o("a",{attrs:{href:"#/ui-modal"}},[t._v("UiModal")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("The confirm and deny buttons can be customized and the component emits "),o("code",[t._v("confirm")]),t._v(" and "),o("code",[t._v("deny")]),t._v(" events.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiConfirm.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-popover",class:{"is-raised":t.raised},attrs:{role:"dialog",tabindex:"-1"},on:{keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27))return null;t.closeDropdown(e)}}},[t._t("default"),t._v(" "),o("div",{staticClass:"ui-popover__focus-redirector",attrs:{tabindex:"0"},on:{focus:t.restrictFocus}})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-popover"},[o("h2",{staticClass:"page__title"},[t._v("UiPopover")]),t._v(" "),o("p",[t._v("UiPopover shows content in a popup/dropdown. It can be setup to contain tab focus in the popover, returning focus to the trigger element on close.")]),t._v(" "),o("p",[t._v("The dropdown position relative to the trigger and the event that causes the dropdown to open can be customized.")]),t._v(" "),t._m(0),t._v(" "),t._m(1),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("a",{ref:"trigger1",staticClass:"popover-trigger"},[t._v("Click here for the popover")]),t._v(" "),o("ui-popover",{staticClass:"custom-popover",attrs:{trigger:"trigger1"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Raised: false")]),t._v(" "),o("a",{ref:"trigger2",staticClass:"popover-trigger"},[t._v("Click here for the popover")]),t._v(" "),o("ui-popover",{staticClass:"custom-popover",attrs:{raised:!1,trigger:"trigger2"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Open on hover")]),t._v(" "),o("a",{ref:"trigger3",staticClass:"popover-trigger"},[t._v("Hover here for the popover")]),t._v(" "),o("ui-popover",{staticClass:"custom-popover",attrs:{"open-on":"hover",trigger:"trigger3"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Dropdown position (may change based on available space)")]),t._v(" "),o("a",{ref:"trigger4",staticClass:"popover-trigger"},[t._v("Click here for a popover dropping bottom right of this trigger")]),t._v(" "),o("ui-popover",{staticClass:"custom-popover",attrs:{"dropdown-position":"bottom right",trigger:"trigger4"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])]),t._v(" "),o("br"),o("br"),t._v(" "),o("a",{ref:"trigger5",staticClass:"popover-trigger"},[t._v("Click here for top left popover")]),t._v(" "),o("ui-popover",{staticClass:"custom-popover",attrs:{"dropdown-position":"top left",trigger:"trigger5"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Can be opened/closed programmatically")]),t._v(" "),o("ui-button",{on:{click:t.openPopover}},[t._v("Click to open the popover below")]),t._v(" "),o("br"),o("br"),t._v(" "),o("a",{ref:"trigger6",staticClass:"popover-trigger"},[t._v("Default trigger")]),t._v(" "),o("ui-popover",{ref:"popover6",staticClass:"custom-popover",attrs:{trigger:"trigger6"}},[t._v("\n Hey there, some popover content here.\n "),o("p",[t._v("Add "),o("i",[t._v("whatever")]),t._v(" content you want here.")])])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("trigger *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[t._v("Required")]),t._v(" "),o("td",[o("p",[t._v("The string key of an element in the parent's "),o("code",[t._v("$refs")]),t._v(" object.")]),t._v(" "),o("p",[t._v("The event listeners will be attached to this element, and when triggered, the popover will be shown.")])])]),t._v(" "),o("tr",[o("td",[t._v("dropdownPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the popover relative to the trigger.")]),t._v(" "),o("p",[t._v("Can be any one of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"click"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event or events that will cause the popover to open.")]),t._v(" "),o("p",[t._v("One or more of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", "),o("code",[t._v("focus")]),t._v(", or "),o("code",[t._v("always")]),t._v(". For "),o("code",[t._v("always")]),t._v(" the popover is opened when rendered and it remains open. Separate multiple events with a space.")])])]),t._v(" "),o("tr",[o("td",[t._v("containFocus")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not tab focus should be contained in the popover.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to contain focus within the popover.")])])]),t._v(" "),o("tr",[o("td",[t._v("focusRedirector")]),t._v(" "),o("td",[t._v("Function")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("A function that will be called to redirect the tab focus when it is about to leave the popover. The handler is called with the focus event.")]),t._v(" "),o("p",[t._v("If this is not provided and "),o("code",[t._v("containFocus")]),t._v(" is "),o("code",[t._v("true")]),t._v(", focus is returned to the popover root element.")])])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the popover has a drop shadow.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to remove the default drop shadow.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the popover is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the popover is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[o("p",[t._v("Holds the popover content and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("open()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to open the popover.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("close()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to close the popover.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("toggle()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to toggle the popover.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("The dropdown is powered by "),o("a",{attrs:{href:"https://github.com/HubSpot/drop",target:"_blank",rel:"noopener"}},[t._v("Drop")]),t._v(", which uses "),o("a",{attrs:{href:"https://github.com/HubSpot/tether",target:"_blank",rel:"noopener"}},[t._v("Tether")]),t._v(".")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiPopover.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-radio-group"},[o("h2",{staticClass:"page__title"},[t._v("UiRadioGroup")]),t._v(" "),o("p",[t._v("UiRadioGroup shows a group of mutually exclusive radio buttons. It supports hover, focus and disabled states. One or more options in the group can be disabled or the entire group can be disabled.")]),t._v(" "),o("p",[t._v("UiRadioGroup can show a label above the group as well as help or error below the group and it allows for resetting the group to its initial state.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-radio-group",{attrs:{name:"group1",options:["Ned","Rod","Todd"]},model:{value:t.group1,callback:function(e){t.group1=e},expression:"group1"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With default selection")]),t._v(" "),o("ui-radio-group",{attrs:{name:"group2",options:t.options.defaultGroup},model:{value:t.group2,callback:function(e){t.group2=e},expression:"group2"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With help")]),t._v(" "),o("ui-radio-group",{attrs:{help:"Choose your favourite neighbor-eeno",name:"group3",options:t.options.defaultGroup},model:{value:t.group3,callback:function(e){t.group3=e},expression:"group3"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With error")]),t._v(" "),o("ui-radio-group",{attrs:{error:"You must choose Rod",help:"Choose your favourite neighbor-eeno",name:"group4",options:t.options.defaultGroup,invalid:"rod"!==t.group4},model:{value:t.group4,callback:function(e){t.group4=e},expression:"group4"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Vertical")]),t._v(" "),o("ui-radio-group",{attrs:{name:"group5",vertical:"",options:t.options.defaultGroup},model:{value:t.group5,callback:function(e){t.group5=e},expression:"group5"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Individual option disabled")]),t._v(" "),o("ui-radio-group",{attrs:{name:"group6",options:t.options.secondGroup},model:{value:t.group6,callback:function(e){t.group6=e},expression:"group6"}},[t._v("Favourite Flanders")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Group disabled")]),t._v(" "),o("ui-radio-group",{attrs:{name:"group7",disabled:"",options:t.options.defaultGroup},model:{value:t.group7,callback:function(e){t.group7=e},expression:"group7"}},[t._v("Favourite Flanders")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[t._v("(required)")]),t._v(" "),o("td",[o("p",[t._v("The name of the radio group.")]),t._v(" "),o("p",[t._v("Applied as the "),o("code",[t._v("name")]),t._v(" attribute on each input element in the radio group.")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The radio group label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("Number, String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model that the selected value in the radio group syncs to. Can be set initially for a default selection.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("options *")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td",[t._v("(required)")]),t._v(" "),o("td",[o("p",[t._v("An array of options to show to the user as radio buttons. The array can either be of strings or objects (but not both).")]),t._v(" "),o("p",[t._v("For an array of objects, each option object supports the following properties:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("id")]),t._v(": Applied as the "),o("code",[t._v("id")]),t._v(" attribute of the option's root element.")]),t._v(" "),o("li",[o("code",[t._v("class")]),t._v(": Applied as the "),o("code",[t._v("class")]),t._v(" attribute of the option's root element.")]),t._v(" "),o("li",[o("code",[t._v("label")]),t._v("*: The option's label - shown to the user.")]),t._v(" "),o("li",[o("code",[t._v("value")]),t._v("*: The option's value - written to the model when the option is selected.")]),t._v(" "),o("li",[o("code",[t._v("checked")]),t._v(": Whether or not the option is selected by default. This is overridden by the radio group's initial "),o("code",[t._v("value")]),t._v(" if it's non-empty.")]),t._v(" "),o("li",[o("code",[t._v("disabled")]),t._v(": Whether or not the option is disabled.")])]),t._v(" "),o("p",[t._v("For an array of strings, each option string is used as both the label and the value.")])])]),t._v(" "),o("tr",[o("td",[t._v("keys")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n id: 'id',\n class: 'class',\n label: 'label',\n value: 'value',\n checked: 'checked',\n disabled: 'disabled'\n}")])]),t._v(" "),o("td",[o("p",[t._v("Allows for redefining the option keys. The "),o("code",[t._v("id")]),t._v(", "),o("code",[t._v("class")]),t._v(", "),o("code",[t._v("checked")]),t._v(", and "),o("code",[t._v("disabled")]),t._v(" keys are optional.")]),t._v(" "),o("p",[t._v("Pass an object with custom keys if your data does not match the default keys.")]),t._v(" "),o("p",[t._v("Note that if you redefine one key, you have to define all the others as well.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of a selected radio button in the group. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("buttonPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[t._v("The position of the radio buttons relative to their labels. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("vertical")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the radio group options are rendered vertically, one over the other.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a vertical radio group.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown to the user below the radio group. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the radio group for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the radio group when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the radio group for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the radio group is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the radio group label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the radio group is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the radio group.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the radio group label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the radio group help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the radio group error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a radio button in the group is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a radio button in the group loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the radio group value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the value of the radio group is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the radio group's value to its initial value. You should also reset the "),o("code",[t._v("invalid")]),t._v(" prop.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiRadioGroup.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-preloader",class:{"is-loading":t.show}},[o("div",{staticClass:"ui-preloader__progressbar",attrs:{role:"progressbar","aria-busy":!!t.show&&"true"}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-button"},[o("h2",{staticClass:"page__title"},[t._v("UiButton")]),t._v(" "),o("p",[t._v("UiButton is a button component that can show a dropdown and a loading spinner. It also supports focus (mouse and keyboard separately), hover and disabled states.")]),t._v(" "),o("p",[t._v("UiButton has two types:")]),t._v(" "),t._m(0),t._v(" "),o("p",[t._v("Additionally, UiButton can be raised to show a box-shadow.")]),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),t._m(3),t._v(" "),o("div",{staticClass:"page__examples"},[o("ui-radio-group",{attrs:{name:"size",options:["small","normal","large"]},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[t._v("Button Size")]),t._v(" "),o("ui-radio-group",{attrs:{name:"icon_position",options:["left","right"]},model:{value:t.iconPosition,callback:function(e){t.iconPosition=e},expression:"iconPosition"}},[t._v("Icon Position")]),t._v(" "),o("ui-switch",{model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t._v("\n Loading: "),o("code",[t._v(t._s(t.loading?"true":"false"))])]),t._v(" "),o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table table-bordered page__demo-table"},[o("tbody",[t._m(4),t._v(" "),o("tr",[o("th",[t._v("Color: default")]),t._v(" "),o("td",[o("ui-button",{attrs:{size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{icon:"refresh","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{icon:"refresh","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)]),t._v(" "),o("tr",[o("th",[t._v("Color: primary")]),t._v(" "),o("td",[o("ui-button",{attrs:{color:"primary",size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"primary",raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"primary",loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"primary",disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"primary",icon:"add","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{color:"primary",size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"primary",raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"primary",loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"primary",disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"primary",icon:"add","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)]),t._v(" "),o("tr",[o("th",[t._v("Color: accent")]),t._v(" "),o("td",[o("ui-button",{attrs:{color:"accent",size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"accent",raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"accent",loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"accent",disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"accent",icon:"add","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{color:"accent",size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"accent",raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"accent",loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"accent",disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"accent",icon:"add","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)]),t._v(" "),o("tr",[o("th",[t._v("Color: green")]),t._v(" "),o("td",[o("ui-button",{attrs:{color:"green",size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"green",raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"green",loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"green",disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"green",icon:"file_download","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{color:"green",size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"green",raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"green",loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"green",disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"green",icon:"file_download","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)]),t._v(" "),o("tr",[o("th",[t._v("Color: orange")]),t._v(" "),o("td",[o("ui-button",{attrs:{color:"orange",size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"orange",raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"orange",loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"orange",disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"orange",icon:"file_download","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{color:"orange",size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"orange",raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"orange",loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"orange",disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"orange",icon:"file_download","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)]),t._v(" "),o("tr",[o("th",[t._v("Color: red")]),t._v(" "),o("td",[o("ui-button",{attrs:{color:"red",size:t.size}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"red",raised:"",size:t.size}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"red",loading:t.loading,size:t.size}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"red",disabled:"",size:t.size}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"red",icon:"delete","icon-position":t.iconPosition,size:t.size}},[t._v("With Icon")])],1),t._v(" "),o("td",[o("ui-button",{attrs:{color:"red",size:t.size,type:"secondary"}},[t._v("Normal")]),t._v(" "),o("ui-button",{attrs:{color:"red",raised:"",size:t.size,type:"secondary"}},[t._v("Raised")]),t._v(" "),o("ui-button",{attrs:{color:"red",loading:t.loading,size:t.size,type:"secondary"}},[t._v("Loading")]),t._v(" "),o("ui-button",{attrs:{color:"red",disabled:"",size:t.size,type:"secondary"}},[t._v("Disabled")]),t._v(" "),o("ui-button",{attrs:{color:"red",icon:"delete","icon-position":t.iconPosition,size:t.size,type:"secondary"}},[t._v("With Icon")])],1)])])])])],1),t._v(" "),o("div",{staticClass:"page__demo"},[o("h4",{staticClass:"page__demo-title"},[t._v("Has dropdown, with menu")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-button",{ref:"dropdownButton",attrs:{color:"primary","has-dropdown":"",size:t.size}},[o("ui-menu",{attrs:{"contain-focus":"","has-icons":"","has-secondary-text":"",options:t.menuOptions},on:{close:function(e){t.$refs.dropdownButton.closeDropdown()}},slot:"dropdown"}),t._v("\n Click for Menu\n ")],1)],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Has dropdown, custom content")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-button",{attrs:{"has-dropdown":"",size:t.size}},[o("div",{staticClass:"custom-popover-content",slot:"dropdown"},[o("p",[o("b",[t._v("Hey")]),t._v(" there!")]),t._v(" "),o("p",[t._v("Button dropdowns can have any content, not just menus.")])]),t._v("\n\n Click for custom dropdown\n ")])],1)]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[o("p",[t._v("The type of button (determines the visual prominence).")]),t._v(" "),o("p",[t._v("Use "),o("code",[t._v("primary")]),t._v(" for a more prominent button, and "),o("code",[t._v("secondary")]),t._v(" for a less prominent button.")])])]),t._v(" "),o("tr",[o("td",[t._v("buttonType")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"submit"')])]),t._v(" "),o("td",[t._v("The "),o("code",[t._v("type")]),t._v(" attribute of the button element.")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"default"')])]),t._v(" "),o("td",[o("p",[t._v("One of "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("green")]),t._v(", "),o("code",[t._v("orange")]),t._v(", "),o("code",[t._v("red")]),t._v(" or "),o("code",[t._v("default")]),t._v(".")]),t._v(" "),o("p",[t._v("In "),o("code",[t._v('type="primary"')]),t._v(" buttons, this is the background color; in "),o("code",[t._v('type="secondary"')]),t._v(" buttons, the text color.")])])]),t._v(" "),o("tr",[o("td",[t._v("size")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"normal"')])]),t._v(" "),o("td",[o("p",[t._v("The size of the button. One of "),o("code",[t._v("small")]),t._v(", "),o("code",[t._v("normal")]),t._v(", or "),o("code",[t._v("large")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("loading")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button progress spinner is shown.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show the progress. This disables the button.")])])]),t._v(" "),o("tr",[o("td",[t._v("raised")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button has a drop shadow.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to show a drop shadow.")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The button icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the button text. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("disableRipple")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the ripple ink animation is shown when the button is clicked.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the ripple ink animation.")])])]),t._v(" "),o("tr",[o("td",[t._v("hasDropdown")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button contains a dropdown.")]),t._v(" "),o("p",[t._v("Use the "),o("code",[t._v("dropdown")]),t._v(" slot to add any dropdown content, including a "),o("a",{attrs:{href:"#/ui-menu"}},[t._v("UiMenu")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("dropdownPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("code",[t._v('"bottom left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the dropdown relative to the button.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("top left")]),t._v(", "),o("code",[t._v("left top")]),t._v(", "),o("code",[t._v("left middle")]),t._v(", "),o("code",[t._v("left bottom")]),t._v(", "),o("code",[t._v("bottom left")]),t._v(", "),o("code",[t._v("bottom center")]),t._v(", "),o("code",[t._v("bottom right")]),t._v(", "),o("code",[t._v("right bottom")]),t._v(", "),o("code",[t._v("right middle")]),t._v(", "),o("code",[t._v("right top")]),t._v(", "),o("code",[t._v("top right")]),t._v(", or "),o("code",[t._v("top center")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("openDropdownOn")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"click"')])]),t._v(" "),o("td",[o("p",[t._v("The type of event that will cause the dropdown to open. One of "),o("code",[t._v("click")]),t._v(", "),o("code",[t._v("hover")]),t._v(", "),o("code",[t._v("focus")]),t._v(", or "),o("code",[t._v("always")]),t._v(".")]),t._v(" "),o("p",[t._v("For "),o("code",[t._v("always")]),t._v(", the dropdown is opened when rendered and it remains open.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the button is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the button.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the button text and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the button icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("dropdown")]),t._v(" "),o("td",[o("p",[t._v("Holds the the dropdown content and can contain HTML.")]),t._v(" "),o("p",[t._v("For a dropdown menu, add a "),o("a",{attrs:{href:"#/ui-menu"}},[t._v("UiMenu")]),t._v(" component in this slot, and then call the "),o("code",[t._v("closeDropdown()")]),t._v(" method when the "),o("code",[t._v("close")]),t._v(" event is emitted on the menu.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the button dropdown is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the button dropdown is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-close")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("openDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to open the button dropdown.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("closeDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to close the button dropdown.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("toggleDropdown()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to toggle the button dropdown.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ul",[o("li",[o("b",[t._v("Primary")]),t._v(": more prominent, has a background color, with white or black text color.")]),t._v(" "),o("li",[o("b",[t._v("Secondary")]),t._v(": less prominent, has no background, text color is the button color.")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[t._v("Supported colors are "),o("code",[t._v("primary")]),t._v(", "),o("code",[t._v("accent")]),t._v(", "),o("code",[t._v("green")]),t._v(", "),o("code",[t._v("orange")]),t._v(" and "),o("code",[t._v("red")]),t._v(", in addition to the default gray.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("p",[o("b",[t._v("Note:")]),t._v(" If you are having alignment issues when using multiple buttons next to each other, put the buttons in a container and add a class of "),o("code",[t._v("ui-button-group")]),t._v(" for a flex-based workaround.")])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiButton.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("tr",[o("th"),t._v(" "),o("th",[t._v("Type: primary")]),t._v(" "),o("th",[t._v("Type: secondary")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"ui-breadcrumb-container"},t._l(t.items,function(t){return o("ui-breadcrumb",{attrs:{item:t}})}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-checkbox-group"},[o("h2",{staticClass:"page__title"},[t._v("UiCheckboxGroup")]),t._v(" "),o("p",[t._v("UiCheckboxGroup shows a group of related checkboxes. It supports hover, focus and disabled states.")]),t._v(" "),o("p",[t._v("UiCheckboxGroup can show a label above the group as well as help or error below the group. One or more checkboxes in the group can be disabled or the entire group can be disabled.")]),t._v(" "),o("p",[t._v("UiCheckboxGroup is primarily used for connecting a group of checkbox values together to form a single array.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-checkbox-group",{attrs:{options:["Red","Blue","Green"]},model:{value:t.group1,callback:function(e){t.group1=e},expression:"group1"}},[t._v("Favourite Colours")]),t._v(" "),o("p",[t._v("Model: "),o("code",[t._v(t._s(t.group1))])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With default selection")]),t._v(" "),o("ui-checkbox-group",{attrs:{options:t.options.defaultGroup},model:{value:t.group2,callback:function(e){t.group2=e},expression:"group2"}},[t._v("Favourite Colours")]),t._v(" "),o("p",[t._v("Model: "),o("code",[t._v(t._s(t.group2))])]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With help")]),t._v(" "),o("ui-checkbox-group",{attrs:{help:"Choose your favourite colours",options:t.options.defaultGroup},model:{value:t.group3,callback:function(e){t.group3=e},expression:"group3"}},[t._v("Favourite Colours")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With error")]),t._v(" "),o("ui-checkbox-group",{attrs:{error:"Choose at least 2 colours",help:"Choose your favourite colours",options:t.options.defaultGroup,invalid:t.group3.length<2},model:{value:t.group3,callback:function(e){t.group3=e},expression:"group3"}},[t._v("Favourite Colours")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Box position: right")]),t._v(" "),o("ui-checkbox-group",{attrs:{"box-position":"right",options:t.options.defaultGroup},model:{value:t.group4,callback:function(e){t.group4=e},expression:"group4"}},[t._v("Favourite Colours")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Vertical")]),t._v(" "),o("ui-checkbox-group",{attrs:{vertical:"",options:t.options.defaultGroup},model:{value:t.group5,callback:function(e){t.group5=e},expression:"group5"}},[t._v("Favourite Colours")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Individual option disabled")]),t._v(" "),o("ui-checkbox-group",{attrs:{options:t.options.secondGroup},model:{value:t.group6,callback:function(e){t.group6=e},expression:"group6"}},[t._v("Favourite Colours")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Group disabled")]),t._v(" "),o("ui-checkbox-group",{attrs:{disabled:"",options:t.options.defaultGroup},model:{value:t.group7,callback:function(e){t.group7=e},expression:"group7"}},[t._v("Favourite Colours")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model that holds the checked option values. Can be set initially for default values.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("options *")]),t._v(" "),o("td",[t._v("Array")]),t._v(" "),o("td",[t._v("(required)")]),t._v(" "),o("td",[o("p",[t._v("An array of options to show to the user as checkboxes. The array can either be of strings or objects (but not both).")]),t._v(" "),o("p",[t._v("For an array of objects, each object supports the following properties:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("id")]),t._v(": Applied as the "),o("code",[t._v("id")]),t._v(" attribute on the option's root element.")]),t._v(" "),o("li",[o("code",[t._v("name")]),t._v(": Applied as the "),o("code",[t._v("name")]),t._v(" attribute on the option's checkbox input element.")]),t._v(" "),o("li",[o("code",[t._v("class")]),t._v(": Applied as the "),o("code",[t._v("class")]),t._v(" attribute on the option's root element")]),t._v(" "),o("li",[o("code",[t._v("label")]),t._v("*: The option's label - shown to the user.")]),t._v(" "),o("li",[o("code",[t._v("value")]),t._v("*: The option's value - added to the model when the user checks the option, removed when the user unchecks the option.")]),t._v(" "),o("li",[o("code",[t._v("disabled")]),t._v(": Whether or not the option is disabled.")])]),t._v(" "),o("p",[t._v("For an array of strings, each option string is used as both the label and the value.")])])]),t._v(" "),o("tr",[o("td",[t._v("keys")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n id: 'id',\n name: 'name',\n class: 'class',\n label: 'label',\n value: 'value',\n disabled: 'disabled'\n}")])]),t._v(" "),o("td",[o("p",[t._v("Allows for redefining the option keys. The "),o("code",[t._v("id")]),t._v(", "),o("code",[t._v("name")]),t._v(", "),o("code",[t._v("class")]),t._v(" and "),o("code",[t._v("disabled")]),t._v(" keys are optional.")]),t._v(" "),o("p",[t._v("Pass an object with custom keys if your data does not match the default keys.")]),t._v(" "),o("p",[t._v("Note that if you redefine one key, you have to define all the others as well.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of each checkbox's input element.")])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The checkbox group label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of the checkboxes in the group. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("boxPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[t._v("The position of the checkboxes relative to their labels. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("vertical")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the checkbox options are rendered vertically, one over the other.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a vertical checkbox group.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown to the user below the checkbox group. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the checkbox group for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the checkbox group when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the checkbox group for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the checkbox group is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the checkbox group label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the checkbox group is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the checkbox group.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the checkbox group label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the checkbox group help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the checkbox group error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a checkbox in the group is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a checkbox in the group loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the checkbox group value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the value of the checkbox group is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the checkbox group's "),o("code",[t._v("value")]),t._v(". You should also reset the "),o("code",[t._v("invalid")]),t._v(" prop.")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiCheckboxGroup.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("li",{staticClass:"ui-autocomplete-suggestion",class:t.classes},[t._t("default",["simple"===t.type?o("div",{staticClass:"ui-autocomplete-suggestion__simple"},[t._v("\n "+t._s(t.suggestion[t.keys.label]||t.suggestion)+"\n ")]):t._e(),t._v(" "),"image"===t.type?o("div",{staticClass:"ui-autocomplete-suggestion__image"},[o("div",{staticClass:"ui-autocomplete-suggestion__image-object",style:t.imageStyle}),t._v(" "),o("div",{staticClass:"ui-autocomplete-suggestion__image-text"},[t._v(t._s(t.suggestion[t.keys.label]))])]):t._e()])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-autocomplete"},[o("h2",{staticClass:"page__title"},[t._v("UiAutocomplete")]),t._v(" "),o("p",[t._v("UiAutocomplete shows a dropdown of autocomplete suggestions below an input as the user types.")]),t._v(" "),o("p",[t._v("UiAutocomplete can show a label above the input as well as help or error below the input, and it supports keyboard navigation.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-autocomplete",{attrs:{help:"Pick your favourite month of the year",label:"Favourite Month",name:"favourite_month",placeholder:"Enter your favourite month",suggestions:t.months},model:{value:t.autocomplete1,callback:function(e){t.autocomplete1=e},expression:"autocomplete1"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Floating label")]),t._v(" "),o("ui-autocomplete",{attrs:{"floating-label":"",help:"Pick your favourite month of the year",label:"Favourite Month",name:"favourite_month",placeholder:"Enter your favourite month",suggestions:t.months},model:{value:t.autocomplete2,callback:function(e){t.autocomplete2=e},expression:"autocomplete2"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With icon")]),t._v(" "),o("ui-autocomplete",{attrs:{help:"Pick your favourite month of the year",icon:"events",label:"Favourite Month",name:"favourite_month",placeholder:"Enter your favourite month",suggestions:t.months},model:{value:t.autocomplete3,callback:function(e){t.autocomplete3=e},expression:"autocomplete3"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Validation: required")]),t._v(" "),o("ui-autocomplete",{attrs:{error:"This field is required",help:"Pick your favourite month of the year",label:"Favourite Month",name:"favourite_month",placeholder:"Enter your favourite month",invalid:t.autocomplete4Touched&&!t.autocomplete4.length>0,suggestions:t.months},on:{touch:function(e){t.autocomplete4Touched=!0}},model:{value:t.autocomplete4,callback:function(e){t.autocomplete4=e},expression:"autocomplete4"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Type: image, minChars: 0")]),t._v(" "),o("ui-autocomplete",{attrs:{help:"Pick your favourite member of the Simpsons family",label:"Favourite Simpson",name:"favourite_simpson",placeholder:"Choose your favourite Simpson",type:"image",keys:{label:"label",value:"label",image:"image"},"min-chars":0,suggestions:t.theSimpsons},model:{value:t.autocomplete5,callback:function(e){t.autocomplete5=e},expression:"autocomplete5"}}),t._v(" "),o("p",[t._v("Suggestions are updated dynamically when the suggestions array changes.")]),t._v(" "),o("ui-button",{attrs:{disabled:t.addedGrannies},on:{click:t.addGrannies}},[t._v("\n Add Grandma & Grandpa\n ")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Custom template")]),t._v(" "),o("p",[t._v("The following simply renders the prop passed to the custom template for each suggestion.")]),t._v(" "),o("ui-autocomplete",{attrs:{help:"Pick your favourite month of the year",label:"Favourite Month",name:"favourite_month",placeholder:"Enter your favourite month",suggestions:t.months},scopedSlots:t._u([{key:"suggestion",fn:function(e){return[o("code",[t._v(t._s(e))])]}}]),model:{value:t.autocomplete6,callback:function(e){t.autocomplete6=e},expression:"autocomplete6"}}),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Disabled")]),t._v(" "),o("ui-autocomplete",{attrs:{disabled:"",label:"Favourite Colour",placeholder:"You can't interact with this"},model:{value:t.autocomplete7,callback:function(e){t.autocomplete7=e},expression:"autocomplete7"}})],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the autocomplete input element.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model the autocomplete value syncs to.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("limit")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("8")])]),t._v(" "),o("td",[t._v("The maximum number of suggestions to show to the user at any one time.")])]),t._v(" "),o("tr",[o("td",[t._v("append")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the value of the selected suggestion should be appended to the current value (instead of replacing the current value).")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to append selected suggestions.")])])]),t._v(" "),o("tr",[o("td",[t._v("appendDelimiter")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('", "')])]),t._v(" "),o("td",[t._v("The delimiter (separator) to use when appending selected suggestions.")])]),t._v(" "),o("tr",[o("td",[t._v("type")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"simple"')])]),t._v(" "),o("td",[o("p",[t._v("The type of template to use for rendering each suggestion. One of "),o("code",[t._v("simple")]),t._v(" or "),o("code",[t._v("image")]),t._v(".")]),t._v(" "),o("p",[t._v("The default type is "),o("code",[t._v("simple")]),t._v(", which simply renders the suggestion text.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("image")]),t._v(" type renders each suggestion with with an image. To use, set "),o("code",[t._v("type")]),t._v(" to "),o("code",[t._v("image")]),t._v(" and set an image URL as the "),o("code",[t._v("image")]),t._v(" property on each suggestion. You can redefine the "),o("code",[t._v("image")]),t._v(" key to fit your data using the "),o("code",[t._v("keys")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("You can also render each suggestion with a custom template using the "),o("code",[t._v("suggestion")]),t._v(" scoped slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("minChars")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[t._v("The minimum number of characters the user should type before the suggestions are shown.")])]),t._v(" "),o("tr",[o("td",[t._v("showOnUpDown")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Determines whether the suggestions should be shown when the user presses the Up or Down arrow keys in the input.")])]),t._v(" "),o("tr",[o("td",[t._v("invalid")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the autocomplete is invalid.")]),t._v(" "),o("p",[t._v("When "),o("code",[t._v("invalid")]),t._v(" is "),o("code",[t._v("true")]),t._v(", the autocomplete label appears red and the error is shown if available.")])])]),t._v(" "),o("tr",[o("td",[t._v("autofocus")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the autocomplete should automatically receive focus when it is rendered for the first time.")]),t._v(" "),o("p",[t._v("Only one input element should have this prop set to "),o("code",[t._v("true")]),t._v(" in the document for the autofocus to work properly.")])])]),t._v(" "),o("tr",[o("td",[t._v("filter")]),t._v(" "),o("td",[t._v("Function")]),t._v(" "),o("td",[o("a",{attrs:{href:"https://github.com/bevacqua/fuzzysearch",target:"_blank",rel:"noopener"}},[t._v("fuzzysearch")])]),t._v(" "),o("td",[o("p",[t._v("Defines a custom filter function that is used for filtering the suggestions when the user types into the autocomplete.")]),t._v(" "),o("p",[t._v("The function is called for each item in the "),o("code",[t._v("suggestions")]),t._v(" array with two arguments:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("suggestion")]),t._v(": (Object or String) - the current suggestion")]),t._v(" "),o("li",[o("code",[t._v("query")]),t._v(": (String) - the current value of the autocomplete input (what the user has typed)")])]),t._v(" "),o("p",[t._v("The function should return "),o("code",[t._v("true")]),t._v(" if the suggestion matches the query or "),o("code",[t._v("false")]),t._v(" otherwise.")])])]),t._v(" "),o("tr",[o("td",[t._v("keys")]),t._v(" "),o("td",[t._v("Object")]),t._v(" "),o("td",{staticClass:"no-wrap"},[o("pre",{staticClass:"language-javascript is-compact"},[t._v("{\n label: 'label',\n value: 'value',\n image: 'image'\n }")])]),t._v(" "),o("td",[o("p",[t._v("Allows for redefining each suggestion object's keys.")]),t._v(" "),o("p",[t._v("Pass an object with custom keys if your data does not match the default keys.")]),t._v(" "),o("p",[t._v("Note that if you redefine one key, you have to define all the others as well.")]),t._v(" "),o("p",[t._v("Can be set using the "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/Customization.md#global-config",target:"_blank",rel:"noopener"}},[t._v("global config")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("highlightFirstMatch")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the first matching suggestion is automatically highlighted when the user input changes.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("false")]),t._v(" to disable automatically highlighting the first match.")])])]),t._v(" "),o("tr",[o("td",[t._v("cycleHighlight")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not highlighting should cycle (wrap around) immediately on overflow.")]),t._v(" "),o("p",[t._v("When this is set to "),o("code",[t._v("false")]),t._v(", pressing the down arrow key when on the last suggestion will not immediately highlight the first suggestion, but pressing it a second time will.")]),t._v(" "),o("p",[t._v("The same goes for when pressing the up arrow key on the first suggestion.")])])]),t._v(" "),o("tr",[o("td",[t._v("placeholder")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("placeholder")]),t._v(" attribute of the autocomplete input element.")])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The autocomplete icon. Can be any of the "),o("a",{attrs:{href:"https://design.google.com/icons/",target:"_blank",rel:"noopener"}},[t._v("Material Icons")]),t._v(".")]),t._v(" "),o("p",[t._v("You can set a custom or SVG icon using the "),o("code",[t._v("icon")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("iconPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the icon relative to the input. One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The autocomplete label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("floatingLabel")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the autocomplete label starts out inline and moves to float above the input when it is focused.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" for a floating label. This will disable the input placeholder.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The help text (hint) shown to the user below the autocomplete input. For HTML, use the "),o("code",[t._v("help")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the input for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The error text shown to the user below the autocomplete input when the "),o("code",[t._v("invalid")]),t._v(" prop is "),o("code",[t._v("true")]),t._v(". For HTML, use the "),o("code",[t._v("error")]),t._v(" slot.")]),t._v(" "),o("p",[t._v("Extra space is reserved under the input for the help and error, but if neither is available, this space is collapsed.")])])]),t._v(" "),o("tr",[o("td",[t._v("readonly")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("The "),o("code",[t._v("readonly")]),t._v(" attribute of the autocomplete input element.")])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the autocomplete is disabled. Set to "),o("code",[t._v("true")]),t._v(" to disable the autocomplete.")])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the autocomplete label and can contain HTML.")])]),t._v(" "),o("tr",[o("td",[t._v("suggestion")]),t._v(" "),o("td",[o("p",[t._v("Use this slot to render each suggestion with a custom template. The slot is passed the following properties, which will be available through "),o("code",[t._v("scope")]),t._v(":")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("suggestion")]),t._v(": (Object or String) - the suggestion")]),t._v(" "),o("li",[o("code",[t._v("index")]),t._v(": (Number) - the index of the suggestion in the array of matched suggestions")]),t._v(" "),o("li",[o("code",[t._v("higlighted")]),t._v(": (Boolean) - whether or not the suggestion is currently highlighted")])]),t._v(" "),o("p",[t._v("For more information, see the "),o("a",{attrs:{href:"https://vuejs.org/v2/guide/components.html#Scoped-Slots"}},[t._v("Scoped Slots documentation")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("icon")]),t._v(" "),o("td",[o("p",[t._v("Holds the autocomplete icon and can contain any custom or SVG icon.")])])]),t._v(" "),o("tr",[o("td",[t._v("help")]),t._v(" "),o("td",[o("p",[t._v("Holds the autocomplete help and can contain HTML.")])])]),t._v(" "),o("tr",[o("td",[t._v("error")]),t._v(" "),o("td",[o("p",[t._v("Holds the autocomplete error and can contain HTML.")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("select")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a suggestion is selected. The handler is called with the selected suggestion.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@select")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete input value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a change in the autocomplete value is committed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("See the "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/Events/change",target:"_blank",rel:"noopener"}},[t._v("onchange event documentation")]),t._v(" for more information.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("touch")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete is focused for the first time and then blurred.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@touch")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete input is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete input loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-open")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete dropdown is opened.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-open")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("dropdown-close")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the autocomplete dropdown is closed.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@dropdown-close")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("highlight")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a suggestion is highlighted using the arrow keys. The handler is called with the following arguments:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("suggestion")]),t._v(": (Object or String) - the suggestion that was highlighted")]),t._v(" "),o("li",[o("code",[t._v("index")]),t._v(": (Number) - the index of the suggestion in the array of matched suggestions")])]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@highlight")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("highlight-overflow")]),t._v(" "),o("td",[o("p",[t._v("Emitted when an attempted highlight overflows (this happens when the user is on the first suggestion and presses the up arrow key or on the last suggestion and presses the down arrow key).")]),t._v(" "),o("p",[t._v("This event is only emitted when the "),o("code",[t._v("cycleHighlight")]),t._v(" prop is "),o("code",[t._v("false")]),t._v(".")]),t._v(" "),o("p",[t._v("The handler is called with the overflowing index. Listen for it using "),o("code",[t._v("@highlight-overflow")]),t._v(".")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("reset()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to reset the autocomplete to its initial value. You should also reset the "),o("code",[t._v("invalid")]),t._v(" and "),o("code",[t._v("touched")]),t._v(" props.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[o("code",[t._v("resetTouched()")])]),t._v(" "),o("td",[t._v("Call this method to reset the touched state of the autocomplete. By default it will set the touched state to "),o("code",[t._v("false")]),t._v(", but you can pass an object with "),o("code",[t._v("{ touched: true }")]),t._v(" to set the touched state to "),o("code",[t._v("true")]),t._v(".")])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiAutocomplete.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{ref:"button",staticClass:"ui-close-button",class:t.classes,attrs:{"aria-label":"Close",type:"button",disabled:t.disabled},on:{click:t.onClick}},[o("div",{staticClass:"ui-close-button__icon"},[o("ui-icon",[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M18.984 6.422L13.406 12l5.578 5.578-1.406 1.406L12 13.406l-5.578 5.578-1.406-1.406L10.594 12 5.016 6.422l1.406-1.406L12 10.594l5.578-5.578z"}})])])],1),t._v(" "),o("span",{staticClass:"ui-close-button__focus-ring"}),t._v(" "),t.disableRipple||t.disabled?t._e():o("ui-ripple-ink",{attrs:{trigger:"button"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("li",{ref:"headerItem",staticClass:"ui-tab-header-item",class:t.classes,attrs:{role:"tab","aria-controls":t.id,"aria-selected":t.active?"true":null,disabled:t.disabled,tabindex:t.active?0:-1}},["icon"===t.type||"icon-and-text"===t.type?o("div",{staticClass:"ui-tab-header-item__icon"},[t._t("icon",[o("ui-icon",{attrs:{"icon-set":t.iconProps.iconSet,icon:t.icon,"remove-text":t.iconProps.removeText,"use-svg":t.iconProps.useSvg}})])],2):t._e(),t._v(" "),"text"===t.type||"icon-and-text"===t.type?o("div",{staticClass:"ui-tab-header-item__text"},[t._v(t._s(t.title))]):t._e(),t._v(" "),t.disableRipple||t.disabled?t._e():o("ui-ripple-ink",{attrs:{trigger:"headerItem"}})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("label",{staticClass:"ui-radio",class:t.classes,on:{click:t.toggleCheck}},[o("div",{staticClass:"ui-radio__input-wrapper"},[o("input",{staticClass:"ui-radio__input",attrs:{type:"radio",disabled:t.disabled,name:t.name},domProps:{value:t.trueValue},on:{blur:t.onBlur,change:t.onChange,focus:t.onFocus}}),t._v(" "),o("div",{staticClass:"ui-radio__focus-ring"}),t._v(" "),o("span",{staticClass:"ui-radio__outer-circle"}),t._v(" "),o("span",{staticClass:"ui-radio__inner-circle"})]),t._v(" "),t.label||t.$slots.default?o("div",{staticClass:"ui-radio__label-text"},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{ref:"button",staticClass:"ui-button",class:t.classes,attrs:{disabled:t.disabled||t.loading,type:t.buttonType},on:{click:t.onClick,"~focus":function(e){t.onFocus(e)}}},[o("div",{staticClass:"ui-button__content"},[t.icon||t.$slots.icon?o("div",{staticClass:"ui-button__icon"},[t._t("icon",[o("ui-icon",{attrs:{icon:t.icon}})])],2):t._e(),t._v(" "),t._t("default"),t._v(" "),t.hasDropdown&&"right"!==t.iconPosition?o("ui-icon",{staticClass:"ui-button__dropdown-icon"},[o("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[o("path",{attrs:{d:"M6.984 9.984h10.03L12 15z"}})])]):t._e()],2),t._v(" "),o("div",{staticClass:"ui-button__focus-ring",style:t.focusRingStyle}),t._v(" "),o("ui-progress-circular",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"ui-button__progress",attrs:{"disable-transition":"",color:t.progressColor,size:18,stroke:4.5}}),t._v(" "),t.disableRipple||t.disabled?t._e():o("ui-ripple-ink",{attrs:{trigger:"button"}}),t._v(" "),t.hasDropdown?o("ui-popover",{ref:"dropdown",attrs:{trigger:"button","dropdown-position":t.dropdownPosition,"open-on":t.openDropdownOn},on:{close:t.onDropdownClose,open:t.onDropdownOpen}},[t._t("dropdown")],2):t._e()],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-snackbar"},[o("h2",{staticClass:"page__title"},[t._v("UiSnackbar")]),t._v(" "),o("p",[t._v("UiSnackbar provides lightweight feedback about an operation by showing a brief message at the bottom of the screen. Snackbars can contain an action.")]),t._v(" "),o("p",[t._v("UiSnackbarContainer allows you to create and manage multiple snackbars, controlling their visibility to ensure only one snackbar is shown at a time. The transition and position of snackbars relative to the container can be customized.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("ui-snackbar",[t._v("Post published")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("With action")]),t._v(" "),o("ui-snackbar",{attrs:{action:"Retry"}},[t._v("Database connection failed")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Multi-line")]),t._v(" "),o("ui-snackbar",[t._v("\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Set sur illo hic ullam atque omnis.\n ")]),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Action color: primary")]),t._v(" "),o("ui-snackbar",{attrs:{action:"Undo","action-color":"primary"}},[t._v("\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Set sur illo hic ullam atque omnis.\n ")])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("UiSnackbarContainer demo")]),t._v(" "),o("div",{staticClass:"preview-controls"},[o("ui-radio-group",{attrs:{name:"position",options:["left","center","right"]},model:{value:t.position,callback:function(e){t.position=e},expression:"position"}},[t._v("Position")]),t._v(" "),o("ui-radio-group",{attrs:{name:"transition",options:["slide","fade"]},model:{value:t.transition,callback:function(e){t.transition=e},expression:"transition"}},[t._v("Transition")]),t._v(" "),o("ui-switch",{model:{value:t.queueSnackbars,callback:function(e){t.queueSnackbars=e},expression:"queueSnackbars"}},[t._v("\n Queue snackbars: "+t._s(t.queueSnackbars?"On":"Off")+"\n ")]),t._v(" "),o("ui-textbox",{attrs:{placeholder:"Enter a message"},model:{value:t.message,callback:function(e){t.message=e},expression:"message"}},[t._v("Snackbar message")]),t._v(" "),o("ui-textbox",{attrs:{placeholder:"Enter action button text"},model:{value:t.action,callback:function(e){t.action=e},expression:"action"}},[t._v("Action text")]),t._v(" "),o("ui-radio-group",{attrs:{name:"action_color",options:["accent","primary"]},model:{value:t.actionColor,callback:function(e){t.actionColor=e},expression:"actionColor"}},[t._v("Action color")]),t._v(" "),o("ui-textbox",{attrs:{placeholder:"Enter the duration in seconds",type:"number"},model:{value:t.duration,callback:function(e){t.duration=t._n(e)},expression:"duration"}},[t._v("Duration (seconds)")]),t._v(" "),o("ui-button",{on:{click:t.createSnackbar}},[t._v("Create snackbar")])],1),t._v(" "),o("div",{staticClass:"preview-pane"},[o("ui-snackbar-container",{ref:"snackbarContainer",attrs:{position:t.position,transition:t.transition,"queue-snackbars":t.queueSnackbars}})],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API: UiSnackbar")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("message")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The snackbar message (text-only). For HTML (not recommended), use the default slot.")])])]),t._v(" "),o("tr",[o("td",[t._v("action")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The snackbar action button text.")]),t._v(" "),o("p",[t._v("Setting this prop will show an action button. Otherwise, no action button is shown.")])])]),t._v(" "),o("tr",[o("td",[t._v("actionColor")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"accent"')])]),t._v(" "),o("td",[o("p",[t._v("The snackbar action button text color. One of "),o("code",[t._v("accent")]),t._v(" or "),o("code",[t._v("primary")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("transition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"slide"')])]),t._v(" "),o("td",[o("p",[t._v("The snackbar show/hide transition. One of "),o("code",[t._v("slide")]),t._v(" or "),o("code",[t._v("fade")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the snackbar text and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("show")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the snackbar is shown.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@show")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("hide")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the snackbar is hidden. You should listen for this event and remove the snackbar.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@hide")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("click")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the snackbar is clicked. You should listen for this event and remove the snackbar.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@click")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("action-click")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the snackbar action is clicked.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@action-click")]),t._v(".")])])])])])])])],1),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API: UiSnackbarContainer")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("duration")]),t._v(" "),o("td",[t._v("Number")]),t._v(" "),o("td",[o("code",[t._v("5000")])]),t._v(" "),o("td",[o("p",[t._v("The default duration in milliseconds of snackbars shown in this container.")]),t._v(" "),o("p",[t._v("Only applies to snackbars created without a duration.")])])]),t._v(" "),o("tr",[o("td",[t._v("queueSnackbars")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not snackbars should be queued and shown one after the other.")]),t._v(" "),o("p",[t._v("By default, creating a new snackbar while one is visible will cause the visible one to immediately transition out for the new one.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to ensure that each snackbar is shown for its complete duration.")])])]),t._v(" "),o("tr",[o("td",[t._v("allowHtml")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not snackbars created in this container can have HTML in their "),o("code",[t._v("message")]),t._v(" property.")]),t._v(" "),o("p",[t._v("Set this prop to "),o("code",[t._v("true")]),t._v(" to allow HTML in the snackbars created in this container.")]),t._v(" "),o("p",[o("b",[t._v("Note")]),t._v(": Using HTML in snackbars is not recommended.")])])]),t._v(" "),o("tr",[o("td",[t._v("position")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of snackbars relative to the container. One of "),o("code",[t._v("left")]),t._v(", "),o("code",[t._v("center")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("transition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"slide"')])]),t._v(" "),o("td",[o("p",[t._v("The show/hide transition of snackbars in the container. One of "),o("code",[t._v("slide")]),t._v(" or "),o("code",[t._v("fade")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",{staticClass:"no-wrap"},[t._v("snackbar-show")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a snackbar is shown in the container. The handler is called with the snackbar.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@snackbar-show")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("snackbar-hide")]),t._v(" "),o("td",[o("p",[t._v("Emitted when a snackbar is hidden from the container. The handler is called with the snackbar.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@snackbar-hide")]),t._v(".")])])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Methods"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("createSnackbar()")])]),t._v(" "),o("td",[o("p",[t._v("Call this method to create a new snackbar, passing in an options object with any of the props of UiSnackbar.")]),t._v(" "),o("p",[t._v("You can also specify the following additional properties and callback functions on the options object:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("duration")]),t._v(" (Number) - the duration of the snackbar in milliseconds.")]),t._v(" "),o("li",[o("code",[t._v("onShow")]),t._v(" (Function) - called when the snackbar is shown, passed the snackbar object.")]),t._v(" "),o("li",[o("code",[t._v("onHide")]),t._v(" (Function) - called when the snackbar is hidden, passed the snackbar object.")]),t._v(" "),o("li",[o("code",[t._v("onClick")]),t._v(" (Function) - called when the snackbar is clicked, passed the snackbar object.")]),t._v(" "),o("li",[o("code",[t._v("onActionClick")]),t._v(" (Function) - called when the snackbar action is clicked, passed the snackbar object.")])])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiSnackbar.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("section",{staticClass:"page page--ui-switch"},[o("h2",{staticClass:"page__title"},[t._v("UiSwitch")]),t._v(" "),o("p",[t._v("UiSwitch shows a switch that allows the user to toggle between two states. It supports keyboard focus and a disabled state.\n\n ")]),o("p",[t._v("The position of the switch relative to the label can be customized.")]),t._v(" "),t._m(0),t._v(" "),o("div",{staticClass:"page__examples"},[o("h4",{staticClass:"page__demo-title"},[t._v("Basic")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-switch",{model:{value:t.switch1,callback:function(e){t.switch1=e},expression:"switch1"}},[t._v("Bluetooth")]),t._v(" "),o("ui-switch",{model:{value:t.switch2,callback:function(e){t.switch2=e},expression:"switch2"}},[t._v("WiFi")]),t._v(" "),o("ui-switch",{model:{value:t.switch3,callback:function(e){t.switch3=e},expression:"switch3"}},[t._v("Location")]),t._v(" "),o("ui-switch",{attrs:{disabled:""},model:{value:t.switch4,callback:function(e){t.switch4=e},expression:"switch4"}},[t._v("Can't change this")]),t._v(" "),o("ui-switch",{attrs:{disabled:""},model:{value:t.switch5,callback:function(e){t.switch5=e},expression:"switch5"}},[t._v("Can't change this too")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Color: accent")]),t._v(" "),o("div",{staticClass:"page__demo-group"},[o("ui-switch",{attrs:{color:"accent"},model:{value:t.switch1,callback:function(e){t.switch1=e},expression:"switch1"}},[t._v("Bluetooth")]),t._v(" "),o("ui-switch",{attrs:{color:"accent"},model:{value:t.switch2,callback:function(e){t.switch2=e},expression:"switch2"}},[t._v("WiFi")]),t._v(" "),o("ui-switch",{attrs:{color:"accent"},model:{value:t.switch3,callback:function(e){t.switch3=e},expression:"switch3"}},[t._v("Location")]),t._v(" "),o("ui-switch",{attrs:{color:"accent",disabled:""},model:{value:t.switch4,callback:function(e){t.switch4=e},expression:"switch4"}},[t._v("Can't change this")]),t._v(" "),o("ui-switch",{attrs:{color:"accent",disabled:""},model:{value:t.switch5,callback:function(e){t.switch5=e},expression:"switch5"}},[t._v("Can't change this too")])],1),t._v(" "),o("h4",{staticClass:"page__demo-title"},[t._v("Switch position: right")]),t._v(" "),o("div",{staticClass:"page__demo-group has-switch-right"},[o("ui-switch",{attrs:{"switch-position":"right"},model:{value:t.switch1,callback:function(e){t.switch1=e},expression:"switch1"}},[t._v("Bluetooth")]),t._v(" "),o("ui-switch",{attrs:{"switch-position":"right"},model:{value:t.switch2,callback:function(e){t.switch2=e},expression:"switch2"}},[t._v("WiFi")]),t._v(" "),o("ui-switch",{attrs:{"switch-position":"right"},model:{value:t.switch3,callback:function(e){t.switch3=e},expression:"switch3"}},[t._v("Location")]),t._v(" "),o("ui-switch",{attrs:{"switch-position":"right",disabled:""},model:{value:t.switch4,callback:function(e){t.switch4=e},expression:"switch4"}},[t._v("Can't change this")]),t._v(" "),o("ui-switch",{attrs:{"switch-position":"right",disabled:""},model:{value:t.switch5,callback:function(e){t.switch5=e},expression:"switch5"}},[t._v("Can't change this too")])],1)]),t._v(" "),o("h3",{staticClass:"page__section-title"},[t._v("API")]),t._v(" "),o("ui-tabs",{attrs:{raised:""}},[o("ui-tab",{attrs:{title:"Props"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("name")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("code",[t._v("name")]),t._v(" attribute of the switch input element.")])]),t._v(" "),o("tr",[o("td",[t._v("label")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The switch label (text only). For HTML, use the "),o("code",[t._v("default")]),t._v(" slot.")])])]),t._v(" "),o("tr",[o("td",{staticClass:"no-wrap"},[t._v("value, v-model *")]),t._v(" "),o("td"),t._v(" "),o("td"),t._v(" "),o("td",[o("p",[t._v("The model that the switch value syncs to.")]),t._v(" "),o("p",[t._v("The "),o("code",[t._v("trueValue")]),t._v(" prop will be written to this model when the switch is turned on and the "),o("code",[t._v("falseValue")]),t._v(" prop will be written to it when the switch is turned off.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for the "),o("code",[t._v("input")]),t._v(" event and update "),o("code",[t._v("value")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("checked")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Whether or not the switch is on by default.")])]),t._v(" "),o("tr",[o("td",[t._v("trueValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("The value that will be written to the model when the switch is turned on.")])]),t._v(" "),o("tr",[o("td",[t._v("falseValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("The value that will be written to the model when the switch is turned off.")])]),t._v(" "),o("tr",[o("td",[t._v("submittedValue")]),t._v(" "),o("td"),t._v(" "),o("td",[o("code",[t._v('"on"')])]),t._v(" "),o("td",[t._v("The value that will be submitted for the switch when it is turned on. Applied as the "),o("code",[t._v("value")]),t._v(" attribute of the switch's input element.")])]),t._v(" "),o("tr",[o("td",[t._v("color")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"primary"')])]),t._v(" "),o("td",[t._v("The color of the switch when turned on. One of "),o("code",[t._v("primary")]),t._v(" or "),o("code",[t._v("accent")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[t._v("switchPosition")]),t._v(" "),o("td",[t._v("String")]),t._v(" "),o("td",[o("code",[t._v('"left"')])]),t._v(" "),o("td",[o("p",[t._v("The position of the switch relative to the label.")]),t._v(" "),o("p",[t._v("One of "),o("code",[t._v("left")]),t._v(" or "),o("code",[t._v("right")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("disabled")]),t._v(" "),o("td",[t._v("Boolean")]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("p",[t._v("Whether or not the switch is disabled.")]),t._v(" "),o("p",[t._v("Set to "),o("code",[t._v("true")]),t._v(" to disable the switch.")])])])])])]),t._v("\n\n * Required prop\n ")]),t._v(" "),o("ui-tab",{attrs:{title:"Slots"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("(default)")]),t._v(" "),o("td",[t._v("Holds the switch label and can contain HTML.")])])])])])]),t._v(" "),o("ui-tab",{attrs:{title:"Events"}},[o("div",{staticClass:"table-responsive"},[o("table",{staticClass:"table"},[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[t._v("focus")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the switch is focused.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@focus")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("blur")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the switch loses focus.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@blur")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("input")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the switch value is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("If you are not using "),o("code",[t._v("v-model")]),t._v(", you should listen for this event and update the "),o("code",[t._v("value")]),t._v(" prop.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@input")]),t._v(".")])])]),t._v(" "),o("tr",[o("td",[t._v("change")]),t._v(" "),o("td",[o("p",[t._v("Emitted when the value of the switch is changed. The handler is called with the new value.")]),t._v(" "),o("p",[t._v("Listen for it using "),o("code",[t._v("@change")]),t._v(".")])])])])])])])],1)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("h3",{staticClass:"page__section-title"},[t._v("\n Examples "),o("a",{attrs:{href:"https://github.com/TemperWorks/Nucleus/blob/master/docs-src/pages/UiSwitch.vue",target:"_blank",rel:"noopener"}},[t._v("View Source")])])}]}}]);
47,406.071429
391,195
0.641681
d75fa53bf1f86e94fba3b536ef3b6d593085ddae
532
js
JavaScript
js/navbar.js
Mihai-V/Web-Project
73a811bc5ade8e0a841148ba65c259e91c361f1c
[ "MIT" ]
null
null
null
js/navbar.js
Mihai-V/Web-Project
73a811bc5ade8e0a841148ba65c259e91c361f1c
[ "MIT" ]
null
null
null
js/navbar.js
Mihai-V/Web-Project
73a811bc5ade8e0a841148ba65c259e91c361f1c
[ "MIT" ]
null
null
null
// Sidenav function function showMenu() { document.getElementById("dropMenu").classList.toggle("show"); } // Close the dropdown if the user clicks outside of it window.onclick = function(event) { if (!event.target.matches('.sidenav-button')) { var dropdowns = document.getElementsByClassName("phones-menu"); var i; for (i = 0; i < dropdowns.length; i++) { var openDropdown = dropdowns[i]; if (openDropdown.classList.contains('show')) { openDropdown.classList.remove('show'); } } } }
28
67
0.657895
d75fd712d93376e24144160450de7444278334d0
3,777
js
JavaScript
src/js/90412_dialog_frame.js
1024sparrow/traliva_kit
fb2ed08f6e72c95b6d1e1f76d729f2e34540d172
[ "MIT" ]
null
null
null
src/js/90412_dialog_frame.js
1024sparrow/traliva_kit
fb2ed08f6e72c95b6d1e1f76d729f2e34540d172
[ "MIT" ]
null
null
null
src/js/90412_dialog_frame.js
1024sparrow/traliva_kit
fb2ed08f6e72c95b6d1e1f76d729f2e34540d172
[ "MIT" ]
null
null
null
#USAGE_BEGIN#traliva_kit_debug## registerHelp('$90412DialogFrame', { title: 'Контейнер для модальных диалоговых окон. На сером фоне с крестиком в правом верхнем углу', descr: 'Используйте конструктор как функцию, чтобы сгенерировать в лейауте описание виджета, обёрнутого этим контейнером', options:{ visibleVarName: 'имя свойства в объекте состояния, определяющего видимость диалогового окна. По умолчанию, visible', aboutToCloseVarName: 'если указано, то нажатие на крестик не будет закрывать окно, а будет выставляться указанный changeFlag. Не может совпадать с visibleVarName' }, //stateObj:{} }); #USAGE_END#traliva_kit_debug## function $90412DialogFrame($p_wContainer, $p_options, $p_widgets){ var $children, $content, $1 = {}, $2; if (this.constructor !== $90412DialogFrame){ // это не конструктор, а тупо функция // сокращённая семантика для сокращения лейаутов. // Должны вернуть фрагмент описателя лейаута. // p_wContainer - это не $Traliva.$Widget, а часть описания лейаута (объект или строка). return { $type: $90412DialogFrame, $content: [{ $_widget: $p_wContainer }] }; } $p_wContainer.$setVisible(false); this.$wContainer = $p_wContainer; this.$visibleVarName = $p_options.$visibleVarName || '$visible'; #USAGE_BEGIN#debug## if ($p_options.$visibleVarName === $p_options.$aboutToCloseVarName) console.log('error: $visibleVarName и $aboutToCloseVarName не могут совпадать'); #USAGE_END#debug## if ($p_options.$aboutToCloseVarName){ $2 = {}; $2[$p_options.$aboutToCloseVarName] = true; } $children = $Traliva.$WidgetStateSubscriber.call(this, $p_wContainer, $p_options, $p_widgets, $2); $content = $children.$content; #USAGE_BEGIN#traliva_kit_debug##if ($content)#USAGE_END#traliva_kit_debug## $content = $content[0]; #USAGE_BEGIN#traliva_kit_debug## if (!$content){ console.log('epic fail'); return; } #USAGE_END#traliva_kit_debug## this.$e = $Traliva.$createElement('<div traliva="$cross" class="$TralivaKit__90412DialogFrame_cross"></div>', $1, '$TralivaKit__90412DialogFrame'); this.$e.appendChild($content.$_widget.$_div); if ($p_options.$aboutToCloseVarName){ $1.$cross.addEventListener('click', (function($1, $2){return function(){ $1.$_state[$2] = false; $1.$_registerStateChanges(); };})(this, $p_options.$aboutToCloseVarName)); } else{ //$1.$cross.addEventListener(); $1.$cross.addEventListener('click', (function($1){return function(){ $1.$wContainer.$setVisible(false); $1.$_state[$1.$visibleVarName] = false; $1.$_registerStateChanges(); };})(this)); } $content.$_widget.$_div.style.position = 'relative'; $p_wContainer.$_onResized = function($w, $h){ var $5 = $w > $h ? $h : $w, $6 = 0.1; if ($5 * $6 < 32){ $6 = 32./$5; } $5 = $content.$_widget.$resize($w * (1. - 2.*$6), $h * (1. - 2.*$6)); $content.$_widget.$_div.style.left = '' + $w * $6 + 'px'; $content.$_widget.$_div.style.top = '' + $h * $6 + 'px'; $1.$cross.style.left = '' + ($w * (1. - $6)) + 'px'; $1.$cross.style.top = '' + ($h * $6) + 'px'; }; $p_wContainer.$setContent(this.$e); }; $90412DialogFrame.prototype = Object.create($Traliva.$WidgetStateSubscriber.prototype); $90412DialogFrame.prototype.constructor = $90412DialogFrame; $90412DialogFrame.prototype.$processStateChanges = function(s){ this.$wContainer.$setVisible(s && s[this.$visibleVarName]); }; $90412DialogFrame.$widgetsFields = ['$content'];
44.964286
170
0.628012
d7607697c4fd9f0e64c2c9c8e62134c07f67d2b7
2,280
js
JavaScript
admin/frontend/pages/translations/form.js
abelhOrihuela/hawk
35b085829427e20ab44a843143c117a1c4e247f8
[ "MIT" ]
null
null
null
admin/frontend/pages/translations/form.js
abelhOrihuela/hawk
35b085829427e20ab44a843143c117a1c4e247f8
[ "MIT" ]
null
null
null
admin/frontend/pages/translations/form.js
abelhOrihuela/hawk
35b085829427e20ab44a843143c117a1c4e247f8
[ "MIT" ]
null
null
null
import React, { Component } from 'react' import MarbleForm from '~base/components/marble-form' import api from '~base/api' class TranslationForm extends Component { constructor (props) { super(props) const schema = { 'id': { 'label': 'id', 'default': '', 'id': 'id', 'name': 'id', 'widget': 'TextWidget', 'required': true }, 'modules': { 'widget': 'MultipleSelectWidget', 'name': 'modules', 'label': 'Modules', 'required': true, 'addable': true }, 'content': { 'widget': 'TextareaWidget', 'name': 'content', 'label': 'Content', 'required': true } } const initialState = this.props.initialState || {} const formData = {} formData.id = initialState.id || '' formData.modules = initialState.modules || '' formData.content = initialState.content || '' this.state = { formData, schema, errors: {} } } errorHandler (e) { } changeHandler (formData) { this.setState({ formData }) } async submitHandler (formData) { let { initialState } = this.props let url = this.props.url let modules = formData.modules.map(l => l.value) if (initialState) { url = `${this.props.url}/${initialState.uuid}` } const res = await api.post(url, { ...formData, modules: modules, lang: this.props.lang }) if (this.props.finish) { await this.props.finish() } return res.data } successHandler (data) { if (this.props.finishUp) { this.props.finishUp(data) } } render () { const { schema, formData } = this.state schema.modules.options = this.props.modules.map(item => { return { label: item.name, value: item.id } }) return ( <div> <MarbleForm schema={schema} formData={formData} buttonLabel={'Save'} onChange={(data) => this.changeHandler(data)} onSuccess={(data) => this.successHandler(data)} onSubmit={(data) => this.submitHandler(data)} defaultSuccessMessage={'Translations was saved correctly'} errors={this.state.errors} /> </div>) } } export default TranslationForm
22.8
93
0.560088
d7616e246f8ada065bcbe538b5c84676f793ba7d
446
js
JavaScript
src/components/common/withMenu.js
manema/Target
0808dc842e11d62e345adbded8641963bf459fd2
[ "MIT" ]
null
null
null
src/components/common/withMenu.js
manema/Target
0808dc842e11d62e345adbded8641963bf459fd2
[ "MIT" ]
1
2018-07-31T18:07:32.000Z
2018-07-31T18:07:32.000Z
src/components/common/withMenu.js
manema/Target
0808dc842e11d62e345adbded8641963bf459fd2
[ "MIT" ]
null
null
null
import React, { Component } from 'react'; import Map from '../common/Map'; function withMenu(WrappedComponent) { return class withMenu extends Component { constructor(props) { super(props); } render() { return ( <div className="home_menu"> <div className="menu_area"> <WrappedComponent /> </div> <Map /> </div> ); } }; } export default withMenu;
17.84
43
0.547085
d76342d64dc0985491f492247ea6ba7e213a6ce1
5,871
js
JavaScript
packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/langs/ca.js
iuri/tutortronics
463ea1535773d06ce34d269136eab3ecaffcb1cf
[ "Info-ZIP", "ImageMagick" ]
null
null
null
packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/langs/ca.js
iuri/tutortronics
463ea1535773d06ce34d269136eab3ecaffcb1cf
[ "Info-ZIP", "ImageMagick" ]
null
null
null
packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/langs/ca.js
iuri/tutortronics
463ea1535773d06ce34d269136eab3ecaffcb1cf
[ "Info-ZIP", "ImageMagick" ]
null
null
null
tinyMCE.addI18n({ca:{common:{more_colors:"M\u00e9s colors",invalid_data:"Error: heu introdu\u00eft valors no v\u00e0lids, els marcats en vermell.",popup_blocked:"El bloqueig de finestres emergents ha inhabilitat una finestra que proporciona funcionalitat a l\\\'aplicaci\u00f3. Cal que desactiveu el bloqueig de finestres emergents en aquest lloc per tal de poder utilitzar de forma completa aquesta eina.",clipboard_no_support:"El vostre navegador actualment no ho admet, utilitzeu les dreceres de teclat.",clipboard_msg:"Copia/Retalla/Enganxa no es troba disponible al Mozilla ni al Firefox.\\nVoleu m\u00e9s informaci\u00f3 sobre aquesta q\u00fcesti\u00f3?",not_set:"-- No definit --",class_name:"Classe",browse:"Explora",close:"Tanca",cancel:"Cancel\u00b7la",update:"Actualitza",insert:"Insereix",apply:"Aplica",edit_confirm:"Voleu utilitzar el mode WYSIWYG?"},contextmenu:{full:"Justificat",right:"Dreta",center:"Centre",left:"Esquerra",align:"Alineaci\u00f3"},insertdatetime:{day_short:"dg.,dl.,dt.,dc.,dj.,dv.,ds.,dg.",day_long:"diumenge,dilluns,dimarts,dimecres,dijous,divendres,dissabte,diumenge",months_short:"gen.,febr.,mar\u00e7,abr.,maig,juny,jul.,ag.,set.,oct.,nov.,des.",months_long:"Jgener,febrer,mar\u00e7,abril,maig,juny,juliol,agost,setembre,octubre,novembre,desembre",inserttime_desc:"Insereix l\\\'hora",insertdate_desc:"Insereix la data",time_fmt:"%H:%M:%S",date_fmt:"%d-%m-%Y"},print:{print_desc:"Imprimeix"},preview:{preview_desc:"Previsualitzaci\u00f3"},directionality:{rtl_desc:"Direcci\u00f3 dreta a esquerra",ltr_desc:"Direcci\u00f3 esquerra a dreta"},layer:{content:"Nova Capa...",absolute_desc:"Conmuta el posicionament absolut",backward_desc:"Mou endarrera",forward_desc:"Mou endavant",insertlayer_desc:"Insereix una nova capa"},save:{save_desc:"Desa",cancel_desc:"Cancel\u00b7la tots els canvis"},nonbreaking:{nonbreaking_desc:"Insereix un car\u00e0cter espai en blanc"},iespell:{download:"no he detectat l\\\'ieSpell. Voleu instal\u00b7lar-ho?",iespell_desc:"Executa la correcci\u00f3 ortogr\u00e0fica"},advhr:{advhr_desc:"Filet horitzontal",delta_height:"",delta_width:""},emotions:{emotions_desc:"Emoticones",delta_height:"",delta_width:""},searchreplace:{replace_desc:"Cerca/Reempla\u00e7a",search_desc:"Cerca",delta_width:"",delta_height:""},advimage:{image_desc:"Insereix/edita imatge",delta_width:"",delta_height:""},advlink:{link_desc:"Insert/edit link",delta_height:"",delta_width:""},xhtmlxtras:{attribs_desc:"Insereix/edita atributs",ins_desc:"Inserci\u00f3",del_desc:"Eliminaci\u00f3",acronym_desc:"Acr\u00f2nim",abbr_desc:"Abreviaci\u00f3",cite_desc:"Citaci\u00f3",attribs_delta_height:"",attribs_delta_width:"",ins_delta_height:"",ins_delta_width:"",del_delta_height:"",del_delta_width:"",acronym_delta_height:"",acronym_delta_width:"",abbr_delta_height:"",abbr_delta_width:"",cite_delta_height:"",cite_delta_width:""},style:{desc:"Edita l\\\'estil CSS",delta_height:"",delta_width:""},paste:{plaintext_mode:"Enganxa est\u00e0 ara configurat en mode text pla. Clica de nou per tornar al mode normal d\'enganxar.",plaintext_mode_sticky:"Enganxa est\u00e0 ara configurat en mode text pla. Clica de nou per tornar al mode normal d\'enganxar. Despr\u00e9s d\'enganxar quelcom ser\u00e0s retornat al mode normal d\'enganxar.",selectall_desc:"Selecciona-ho tot",paste_word_desc:"Enganxa des del Word",paste_text_desc:"Enganxa com a text pla"},paste_dlg:{word_title:"Amb el teclat utilitzeu CTRL+V per a enganxar el text dins la finestra.",text_linebreaks:"Conserva els salts de l\u00ednia",text_title:"Amb el teclat utilitzeu CTRL+V per a enganxar el text dins la finestra."},table:{cell:"Cel\u00b7la",col:"Columna",row:"Fila",del:"Elimina la taula",copy_row_desc:"Copia la fila",cut_row_desc:"Retalla la fila",paste_row_after_desc:"Enganxa la fila despr\u00e9s",paste_row_before_desc:"Enganxa la fila abans",props_desc:"Propietats de la taula",cell_desc:"Propietats de la cel\u00b7la",row_desc:"Propietats de la fila",merge_cells_desc:"Fusiona les cel\u00b7les",split_cells_desc:"Divideix les cel\u00b7les fusionades",delete_col_desc:"Elimina la columna",col_after_desc:"Insereix una columna despr\u00e9s",col_before_desc:"Insereix una columna abans",delete_row_desc:"Elimina la fila",row_after_desc:"Insereix una fila despr\u00e9s",row_before_desc:"Insereix una fila abans",desc:"Insereix una nova taula",merge_cells_delta_height:"",merge_cells_delta_width:"",table_delta_height:"",table_delta_width:"",cellprops_delta_height:"",cellprops_delta_width:"",rowprops_delta_height:"",rowprops_delta_width:""},autosave:{warning_message:"Si restaures el contingut guardat, perdr\u00e0s tot el contingut actual de l\'editor. Est\u00e0s segur de voler continuar?",restore_content:"Restaura el contingut guardat autom\u00e0ticament.",unload_msg:"Els canvis que heu fet es perdran si navegueu a fora d\\\'aquesta p\u00e0gina."},fullscreen:{desc:"Commuta a mode de pantalla completa"},media:{edit:"Edita multim\u00e8dia incrustat",desc:"Insereix / edita multim\u00e8dia incrustat",delta_height:"",delta_width:""},fullpage:{desc:"Propietats del document",delta_width:"",delta_height:""},template:{desc:"Insereix un contingut predefinit"},visualchars:{desc:"Activa/desactiva els car\u00e0cters de control visual."},spellchecker:{desc:"Corrector ortogr\u00e0fic",menu:"Configuraci\u00f3 del corrector",ignore_word:"Ignora el mot",ignore_words:"Ignora\\\'ls tots",langs:"Idiomes",wait:"Espereu...",sug:"Suggeriments",no_sug:"Cap suggeriment",no_mpell:"No s\\\'ha trobat cap falta d\\\'ortografia."},pagebreak:{desc:"Insereix un salt de p\u00e0gina."},advlist:{types:"Tipus",def:"Per defecte",lower_alpha:"Lletres",lower_greek:"Lletres gregues (min\u00fascules)",lower_roman:"Nombres romans (min\u00fascules)",upper_alpha:"Lletres (maj\u00fascules)",upper_roman:"Nombres romans (maj\u00fascules)",circle:"Cercle",disc:"Disc",square:"Quadrat"}}});
5,871
5,871
0.793221
d764193061a53c93d4f84c0c9402cec8f091c01f
495
js
JavaScript
src/components/Image.js
netliferesearch/hdir-frontend
402e032bbc21a4cc131588777b24e581d3428ba3
[ "MIT" ]
null
null
null
src/components/Image.js
netliferesearch/hdir-frontend
402e032bbc21a4cc131588777b24e581d3428ba3
[ "MIT" ]
4
2019-06-14T11:28:24.000Z
2022-02-24T10:19:50.000Z
src/components/Image.js
netliferesearch/hdir-frontend
402e032bbc21a4cc131588777b24e581d3428ba3
[ "MIT" ]
null
null
null
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const imageClasses = ratio => classNames({ 'b-image': true, 'b-image--16-9': ratio === '16:9' }); const Image = ({ ratio, src, alt }) => ( <div className={imageClasses(ratio)}> <img src={src} alt={alt} /> </div> ); Image.propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string.isRequired, ratio: PropTypes.oneOf(['', '16:9']) }; export default Image;
20.625
40
0.636364
d7644596d8fb8e94764d294038c12fa966f2ae4a
6,050
js
JavaScript
app/component/restaurantTable/RestaurantTableComponent.js
trak2016/ai_web_client_piotr_borciuch-BB
0352d56729df4dfa2c13a6a6ddcb55fd72907963
[ "MIT" ]
null
null
null
app/component/restaurantTable/RestaurantTableComponent.js
trak2016/ai_web_client_piotr_borciuch-BB
0352d56729df4dfa2c13a6a6ddcb55fd72907963
[ "MIT" ]
null
null
null
app/component/restaurantTable/RestaurantTableComponent.js
trak2016/ai_web_client_piotr_borciuch-BB
0352d56729df4dfa2c13a6a6ddcb55fd72907963
[ "MIT" ]
null
null
null
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(function(o, d) { return (d && d(o)) || o; }, target); case 3: return decorators.reduceRight(function(o, d) { return (d && d(target, key)), void 0; }, void 0); case 4: return decorators.reduceRight(function(o, d) { return (d && d(target, key, o)) || o; }, desc); } }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var angular2_1 = require("angular2/angular2"); var TablesService_1 = require("../../service/tables/TablesService"); var CustomTable_1 = require("../table/CustomTable"); var Row_1 = require("../table/Row"); var Column_1 = require("../table/Column"); var IDto_1 = require("../../DTO/IDto"); var SharedMemory_1 = require("../../shared/SharedMemory"); var RestaurantTableComponent = (function () { function RestaurantTableComponent(tableService, sharedMemory) { this.sharedMemory = sharedMemory; this.tableService = tableService; this.registerHandlers(); this.rows = []; this.columns = this.prepareColumns(); this.selectedTable = new IDto_1.RestaurantTable(null); this.tableService.getAllTables(); } RestaurantTableComponent.prototype.prepareColumns = function () { return [ new Column_1.Column("id", "ID"), new Column_1.Column("tableNumber", "Numer stolika"), new Column_1.Column("tableSeats", "Ilość miejsc"), new Column_1.Column("status", "Status") ]; }; RestaurantTableComponent.prototype.getAllTables = function () { this.sharedMemory.appErrors = []; this.tableService.getAllTables(); }; RestaurantTableComponent.prototype.onSelected = function (event) { this.sharedMemory.appErrors = []; this.setSelectedTableById(event.getElementId()); }; RestaurantTableComponent.prototype.setSelectedTableById = function (id) { this.selectedTable = new IDto_1.RestaurantTable(null); for (var i = 0; i < this.tables.length; i++) { if (this.tables[i].id == id) { this.selectedTable = this.tables[i]; break; } } }; RestaurantTableComponent.prototype.onNewTable = function () { this.sharedMemory.appErrors = []; this.selectedTable = new IDto_1.RestaurantTable(null); }; RestaurantTableComponent.prototype.onSaveTable = function () { this.sharedMemory.appErrors = []; if (this.selectedTable.id == 0) { this.tableService.createNewTable(this.selectedTable); } else { this.tableService.updateTable(this.selectedTable); } }; RestaurantTableComponent.prototype.handleOnTableSave = function () { this.getAllTables(); }; RestaurantTableComponent.prototype.handleTablesArray = function (tables) { this.tables = tables; this.mapToRows(); this.chooseTableToShow(); }; RestaurantTableComponent.prototype.registerHandlers = function () { var _this = this; var errorsHandler = { handle: function (errors) { return _this.sharedMemory.appErrors = errors; } }; var voidHandler = { handle: function () { return _this.handleOnTableSave(); } }; var positionsHandler = { handle: function (tables) { return _this.handleTablesArray(tables); } }; this.tableService.registerArrayHandler(positionsHandler); this.tableService.registerErrorsHandler(errorsHandler); this.tableService.registerVoidHandler(voidHandler); }; RestaurantTableComponent.prototype.chooseTableToShow = function () { var id = this.selectedTable.id; if (id != 0) { this.setSelectedTableById(id); if (this.selectedTable.id == 0 && this.tables.length > 0) { this.selectedTable = this.tables.pop(); } } else { this.setNewestTable(); } }; RestaurantTableComponent.prototype.setNewestTable = function () { if (this.tables.length) { this.tables.sort(function (first, second) { if (first.id > second.id) return 1; else if (first.id < second.id) return -1; else return 0; }); this.selectedTable = this.tables[0]; } }; RestaurantTableComponent.prototype.mapToRows = function () { this.rows = new Array(); for (var i = 0; i < this.tables.length; i++) { var row = new Row_1.Row(); row.addCell("id", this.tables[i].id.toString()); row.addCell("tableNumber", this.tables[i].tableNumber.toString()); row.addCell("tableSeats", this.tables[i].seatsNumber.toString()); row.addCell("status", this.tables[i].status == "OCCUPIED" ? "Zajęty" : "Wolny"); this.rows.push(row); } }; RestaurantTableComponent = __decorate([ angular2_1.Component({ selector: 'tables', providers: [TablesService_1.TablesService] }), angular2_1.View({ templateUrl: './app/view/RestaurantTables.html', directives: [angular2_1.CORE_DIRECTIVES, angular2_1.FORM_DIRECTIVES, CustomTable_1.CustomTable] }), __metadata('design:paramtypes', [TablesService_1.TablesService, SharedMemory_1.SharedMemory]) ], RestaurantTableComponent); return RestaurantTableComponent; })(); exports.RestaurantTableComponent = RestaurantTableComponent; //# sourceMappingURL=RestaurantTableComponent.js.map
43.214286
134
0.613554
d7655208f1d3e87266a7f7418bf9bc4127bd2038
4,412
js
JavaScript
js/script.js
tw8130/Pizza-palace
7fa0b75deb5499e577449ff566c759b4c04e41ba
[ "Unlicense" ]
null
null
null
js/script.js
tw8130/Pizza-palace
7fa0b75deb5499e577449ff566c759b4c04e41ba
[ "Unlicense" ]
null
null
null
js/script.js
tw8130/Pizza-palace
7fa0b75deb5499e577449ff566c759b4c04e41ba
[ "Unlicense" ]
null
null
null
$(document).ready(function(){ $(".deliver").click(function(){ $("#form").toggle(); }); $("#kilo").click(function(){ $("#orderForm").toggle(); }); var slideIndex = 0; showSlides(); function showSlides() { var i; var slides = document.getElementsByClassName("mySlides"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideIndex++; if (slideIndex > slides.length) {slideIndex = 1} slides[slideIndex-1].style.display = "block"; setTimeout(showSlides, 2000); // Change image every 2 seconds } }); $(document).ready(init); function init() { // $(".navTab").click(doTabClick).eq(0).click(); $("#stepOne").click(nextPage); $("#stepTwo").click(pizzaBuilder); } var smallCrust = 700; var mediumCrust = 900; var largeCrust = 1200; var oneCrust = 100; var oneVeggie = 100; var oneMeat = 150; //Assists with moving from one tab to the next as its the next element in the list function nextPage() { $(".navTab").eq(1).click(); } //Pulls in client provided data to build their pizza function pizzaBuilder(){ var pieSize = $("input[name='size']:checked").val(); var crustType = $("input[name='crust']:checked").val(); var firstName = $("#firstname").val(); var lastName = $("#lastname").val(); var street = $("#streetaddress").val(); var city = $("#city").val(); var state = $("#state").val(); var phone = $("#phonenumber").val(); //Array stores all the selected inputs for ingredients var ingredients =[]; //pushes the selected attributes into the array $("input[name='meat']:checked").each(function() { ingredients.push(this.value); }); $("input[name='veggie']:checked").each(function () { ingredients.push(this.value); }); var pieBuild = ingredients.join(", "); var subtotal = 0; //Gives the customer an initial view of their order $("#OrderView").html("Size: " + pieSize + "<br/>"); $("#OrderView").append("Crust type: " + crustType + "<br/>"); $("#OrderView").append("Ingredients: " + pieBuild + "<br/>"); //Gives customer a chance to review their contact info $("#contactInfo").html("Name: " + firstName + " " + lastName + "<br/>"); $("#contactInfo").append("Phone: " + phone + "<br/>"); $("#contactInfo").append("Address: " + street + " " + city + " " + state + " " + "<br/>"); //Begins calculations for pizza order if (pieSize == "small"){ subtotal = subtotal + 700; } else if(pieSize == "medium"){ subtotal = subtotal + 900; } else if(pieSize == "large"){ subtotal = subtotal + 1200; } else { alert("Hey" + firstName + "your pizza will be delivered to your location.") } var crustType = $("input[name='crust']:checked").length; if (crustType > 0 ){ subtotal = subtotal + (crustType * 100); var meats = $("input[name='meat']:checked").length; if (meats > 0 ){ subtotal = subtotal + (meats * 150); } var veggies = $("input[name='veggie']:checked").length; if (veggies > 0 ){ subtotal = subtotal + (veggies ) } var tax = subtotal * .16; //ksh 200 is the price of delivery var grandTotal = subtotal + tax + 200.00; //Pushes all data to corresponding paragraph id element $("#infoSummary").html("Name: " + firstName + " " + lastName + "<br/>"); $("#infoSummary").append("Address: " + street + " " + city + " " + state + " " + "<br/>"); $("#infoSummary").append("Phone: " + phone + "<br/>"); //Pushes all of the meal costs to the corresponding paragraph id element $("#mealSummary").html("Subtotal: ksh" +subtotal + "<br/>"); $("#mealSummary").append("Sales tax: ksh" + tax + "<br/>"); $("#mealSummary").append("Delivery charge: ksh" + 200 + "<br/>"); $("#mealSummary").append("Grand Total: ksh" + grandTotal + "<br/>"); $(".navTab").eq(2).click(); return false; } //Switches between the different tabs and displays which tab is selected function doTabClick() { $(".divTab").hide().filter(this.hash).show(); $(".navTab").removeClass("selected"); $(this).addClass("selected"); } }
39.044248
96
0.555757
d766f73b07af2e5f160baee919d4b7549494f8a0
12,082
js
JavaScript
!@Standford HCI Crowdsourcing platform/Crowdfunding Scientific Research _ SciTech Connect_files/main.js
Milstein/crowdsource-platform
60427e440373824c26c7daf8cf5f421b9c7ebbb5
[ "MIT" ]
null
null
null
!@Standford HCI Crowdsourcing platform/Crowdfunding Scientific Research _ SciTech Connect_files/main.js
Milstein/crowdsource-platform
60427e440373824c26c7daf8cf5f421b9c7ebbb5
[ "MIT" ]
1
2021-06-10T23:57:07.000Z
2021-06-10T23:57:07.000Z
!@Standford HCI Crowdsourcing platform/Crowdfunding Scientific Research _ SciTech Connect_files/main.js
Milstein/crowdsource-platform
60427e440373824c26c7daf8cf5f421b9c7ebbb5
[ "MIT" ]
null
null
null
$(document).ready(function () { /* var areaHight = $('.maincontent .postArea').height(); $('.maincontent .postArea .rightpane').animate({height: areaHight}, 500); */ $(document).on('cycle-initialized', '.postImgCycle', function(event, optionHash) { var slides = optionHash.slides; var slideNr = slides.length; var i = 0; var arr = []; $.each(slides, function() { arr.push({ title: $(this).find('.postTitle').text(), href: $(this).find('.postTitle').attr('href') }); }); $.each($('.postlist li'), function() { $(this).html('<a href="'+arr[i].href+'">'+arr[i].title+'</a>'); i++; if (slideNr == i) { $(this).addClass('last'); } }); }); $('.gallery').addClass('group'); $('.gallery').append('<div class="galleryPrev">< prev</div>'); $('.gallery').append('<div class="galleryNext">next ></div>'); $('.gallery').cycle({ fx: 'carousel', speed: 0, timeout: 0, manualSpeed: 500, carouselVisible: 3, slides: '.gallery-item', prev: '.galleryPrev', next: '.galleryNext', carouselFluid: true, swipe: true }); $('.subjectLb').click(function() { if (!$('.descLoader').hasClass('active')) { $('.descLoader').slideDown(250, function() { $(this).addClass('active'); }); } else { $('.descLoader').slideUp(250, function() { $(this).removeClass('active'); }); } return false; }); $('blockquote').each(function(){ $(this).addClass('quote tabletHide'); var bloquequote=$(this).children('p').html(); $(this).html('<span class="quoteChar">&ldquo;</span><span class="mainQuote">'+bloquequote+'</span><span class="quoteChar">&rdquo; <span class="quoteShare"><a href="http://twitter.com/share?text=Lorem ipsum dolor sit amet, consectetur adipiscing elit." target="_blank">share this quote</a></span></span>'); }); $('.postImgCycle').cycle({ slides: '.slide', pager: '.sliderControlsInner ul, .postlist', pagerEvent: 'mouseover', pagerTemplate: '<li></li>', prev: '.cyclePrevBtn', next: '.cycleNextBtn', swipe: true, speed: 1000 }); //CALL CAROUSEL ONLY ON ARTICLE PAGE if ($(window).width() > 959 && $('#article').length > 0) { $('.tabletHide .carouselCycle').cycle({ fx: 'carousel', speed: 0, manualSpeed: 500, timeout: 0, carouselVisible: 4, slides: '> li', prev: '.cycleLeft', next: '.cycleRight', swipe: true }); $('.articlePopup .closeBtn').click(function() { if ($('.articlePopup.tabletHide').hasClass('active')) { var wpx = '-'+w+'px'; $('.articlePopup.tabletHide').animate({right: wpx}, 1000).removeClass('active'); } }); var w = $('.articlePopup.tabletHide').width(); var lastScrollTop = 0; $(window).scroll(function(event) { var a = $('.section.disqus').visible(true); var b = $('#headcontainer').visible(true); if (a && !$('.articlePopup.tabletHide').hasClass('active')) { $('.articlePopup.tabletHide').animate({right: 0}, 1000).addClass('active'); } var st = $(this).scrollTop(); if (st > lastScrollTop){ $('#article .toStick').removeClass('sticky'); } else { $('#article .toStick').addClass('sticky'); } lastScrollTop = st; if (!b) { var paneW = $('.col.span_8_of_11.leftpane').width(); $('#article .scrollsharehide').css('display', 'none'); $('#article .scrollshareshow').css({width: paneW, display: 'block'}); //$('#article .toStick').addClass('sticky'); } else { $('#article .scrollsharehide').css('display', 'block'); $('#article .scrollshareshow').css('display', 'none'); //$('#article .toStick').removeClass('sticky'); } }); } else if ($(window).width() < 959) { var lastScrollTop = 0; $(window).scroll(function(event) { var b = $('#headcontainer').visible(true); var st = $(this).scrollTop(); if (st > lastScrollTop){ $('#article .toStick').removeClass('sticky'); } else { $('#article .toStick').addClass('sticky'); } lastScrollTop = st; if (!b) { //$('#article .toStick').addClass('sticky'); $('#headcontainer .menuBlock').addClass('sticky'); } else { //$('#article .toStick').removeClass('sticky'); $('#headcontainer .menuBlock').removeClass('sticky'); } }); } if ($(window).width() < 600 && $('.mobileShow .carouselCycle').length > 0) { var slideNum = 2; if ($(window).width() < 480) { slideNum = 1; } $('.mobileShow .carouselCycle').cycle({ fx: 'carousel', speed: 0, manualSpeed: 500, timeout: 0, carouselVisible: slideNum, slides: '> li', prev: '.cycleLeft', next: '.cycleRight', swipe: true }); var isAnimating = false; $(window).scroll(function() { var a = $('.section.disqus').visible(true); //console.log(isAnimating); if (!isAnimating) { if (a && !$('.articlePopup.mobileShow').hasClass('stick')) { $('.mobileShow .carouselCycle').width($(window).width()-50); $('.articlePopup.mobileShow').animate({bottom: 0}, 500, function() { $('.articlePopup.mobileShow').addClass('stick'); isAnimating = false; }); } else if (!a && $('.articlePopup.mobileShow').hasClass('stick')) { $('.articlePopup.mobileShow').animate({bottom: '-166px'}, 500, function() { $('.articlePopup.mobileShow').removeClass('stick'); isAnimating = false; }); } } }); } else if ($(window).width() < 600 && $('.articlePopup.mobileShow .carouselContainer').children().length <= 0) { //HIDE RELATED POSTS POPUP WITHOUT CONTENT $('.articlePopup.mobileShow').css('display', 'none'); } else if ($(window).width() > 600) { //DISABLE CLICK ON # MENU HREFS $('.menu .menu-item > a').click(function() { if ($(this).attr('href') == '#') { return false; } }); } $('.mobileSearch').click(function() { if (!$('.searchbarMobile').hasClass('active') && $('.dropmenuMobile').hasClass('active')) { $('.dropmenuMobile').fadeOut(250, function() { $(this).removeClass('active'); $('.searchbarMobile').fadeIn(250).addClass('active'); }); } else if (!$('.searchbarMobile').hasClass('active') && !$('.dropmenuMobile').hasClass('active')) { $('.searchbarMobile').fadeIn(250).addClass('active'); } else if ($('.searchbarMobile').hasClass('active') && !$('.dropmenuMobile').hasClass('active')) { $('.searchbarMobile').fadeOut(250).removeClass('active'); } }); $('.mobileHide .menu .menu-item-has-children').hoverIntent( function() { $(this).children('ul').fadeIn(250); }, function() { $(this).children('ul').fadeOut(500); } ); $('.quoteShare a').attr('href', 'http://twitter.com/share?text='+$('.mainQuote').text()); //+++++++++++++++MOBILE MENU var html, htmlH, origH; $('.mobileMenu').click(function() { if (!$('.dropmenuMobile').hasClass('active') && $('.searchbarMobile').hasClass('active')) { $('.searchbarMobile').fadeOut(250, function() { $(this).removeClass('active'); $('.dropmenuMobile').fadeIn(250).addClass('active'); }); } else if (!$('.dropmenuMobile').hasClass('active') && !$('.searchbarMobile').hasClass('active')) { $('.dropmenuMobile').fadeIn(250).addClass('active'); } else if ($('.dropmenuMobile').hasClass('active') && !$('.searchbarMobile').hasClass('active')) { $('.dropmenuMobile').fadeOut(250).removeClass('active'); } }); $('.dropmenuMobile .menu .sub-menu').addClass('group'); $('.dropmenuMobile .menu .menu-item-has-children').click(function(e) { e.preventDefault(); $('.dropmenuMobile').addClass('menuClicked'); origH = $('.dropmenuMobile .menu').height(); html = $(this).children('.sub-menu').clone(); //htmlH = $(this).children('.sub-menu').children().length; $('.dropmenuMobile .mobileSubLoader .innerLoader').append(html); $('.dropmenuMobile .menu').animate({left: '-100%'}, 750); $('.dropmenuMobile').animate({height: 250}, 500); $('.dropmenuMobile .mobileSubLoader').animate({right: 0}, 750); $('.dropmenuMobile .innerLoader').perfectScrollbar(); return false; }); $('.dropmenuMobile .back').click(function() { $(this).removeClass('menuClicked'); $(this).parent().animate({right: '-100%'}, 750); $('.dropmenuMobile').animate({height: origH}, 500); $('.dropmenuMobile .menu').animate({left: 0}, 750, function() { $('.dropmenuMobile .mobileSubLoader .innerLoader').html(''); }); return false; }); $('.mobileSubLoader').on('swiperight', function() { $(this).removeClass('menuClicked'); $(this).animate({right: '-100%'}, 750); $('.dropmenuMobile').animate({height: origH}, 500); $('.dropmenuMobile .menu').animate({left: 0}, 750, function() { $('.dropmenuMobile .mobileSubLoader .innerLoader').html(''); }); }); //+++++++++++++++ //FULL POST CLICK $('.leftposts .post a, .rightposts .post a').click(function(e) { e.preventDefault(); }); $('.leftposts .post, .rightposts .post, .postlist li').click(function() { var href = $(this).children('a').attr('href'); window.location.href = href; }); $('.slide.cycle-slide').click(function() { var href = $('.postTitle').attr('href'); window.location.href = href; }); }) $(window).resize(function () { if ($(window).width() <= 639 && $('.mobileShow .carouselCycle').length > 0) { var slideNum = 2; if ($(window).width() < 480) { slideNum = 1; } $('.mobileShow .carouselCycle').cycle({ fx: 'carousel', speed: 0, manualSpeed: 500, timeout: 0, carouselVisible: slideNum, slides: '> li', prev: '.cycleLeft', next: '.cycleRight', swipe: true }); } else if ($(window).width() > 600) { $('#article .toStick').removeClass('sticky'); $('#headcontainer .menuBlock').removeClass('sticky'); } //$.refreshBackgroundDimensions( $('.head') ); }); /* $.getScript( "js/jquery.backgroundSize.js", function( data ) { $('.bannercontainer').css({'backgroundSize': "cover"}); })*/
36.391566
313
0.485929
d7678514a4db0c47365705d15d2e1f2eb0ae1d7c
1,532
js
JavaScript
src/util.js
jdiehl/image-transition
dbe5b710f7149d12bea6f30d9036da944bb4df37
[ "MIT" ]
null
null
null
src/util.js
jdiehl/image-transition
dbe5b710f7149d12bea6f30d9036da944bb4df37
[ "MIT" ]
null
null
null
src/util.js
jdiehl/image-transition
dbe5b710f7149d12bea6f30d9036da944bb4df37
[ "MIT" ]
null
null
null
'use strict'; exports.applyDefaults = function (options, defaults) { if (!defaults) return; Object.keys(defaults).forEach(function (key) { if (options[key] === undefined) options[key] = defaults[key]; }); }; // insert an item as the new first child exports.prepend = function (parent, element) { parent.insertBefore(element, parent.firstChild); }; // get image src from background image exports.getImageSrcFromElement = function (element) { if (element.src) return element.src; var style = window.getComputedStyle(element); var styleSrc = style['background-image']; if (!styleSrc) return; styleSrc = styleSrc.substr(0, styleSrc.length - 1).substr(4); if (styleSrc[0] === '"') styleSrc = styleSrc.substr(0, styleSrc.length - 1).substr(1); return styleSrc; }; exports.urlFromimage = function (image) { return 'url(' + image.src + ')'; }; // apply the given arguments to a function multiple times in series exports.applySeries = function (fn, argsList, done) { var resList = []; function next(res) { resList.push(res); if (resList.length === argsList.length) done(resList); } argsList.forEach(function (args) { if (!(args instanceof Array)) args = [args]; args.push(next); fn.apply(null, args); }); }; // preload images exports.preloadImages = function (imageSrcs, done) { exports.applySeries(function (src, next) { var image = new Image(); image.src = src; image.addEventListener('load', function () { next(image); }); }, imageSrcs, done); };
27.854545
88
0.670366
d7690fb6c9bd367aa6635e5078d9f30f4a9282cb
4,835
js
JavaScript
dev-top/src/assets/js/libs/plugins/tk90755/commands/Command.js
tktr90755/project_kit
ebdefa6af7b5bd3e61863ffd5cf4b74584b8b86c
[ "MIT" ]
null
null
null
dev-top/src/assets/js/libs/plugins/tk90755/commands/Command.js
tktr90755/project_kit
ebdefa6af7b5bd3e61863ffd5cf4b74584b8b86c
[ "MIT" ]
null
null
null
dev-top/src/assets/js/libs/plugins/tk90755/commands/Command.js
tktr90755/project_kit
ebdefa6af7b5bd3e61863ffd5cf4b74584b8b86c
[ "MIT" ]
null
null
null
/** * Copyright 2015, "t90755" All rights reserved. * Proprietary and Confidential * Do not redistribute * * @title t90755.commands.Command.js * @author * @version 0.1.0 * @update * */ //__________________________________________________________________________________ // How to use /* */ // namespace: this.t90755 = this.t90755||{}; this.t90755.commands = this.t90755.commands||{}; (function() { function Command ($func, $params, $dispatcher, $eventType, $delay, $myname) { // classes var Event = t90755.events.Event; var EventDispatcher = t90755.events.EventDispatcher; var CommandObject = t90755.commands.CommandObject; // instances // refers var s = this; // for inherits CommandObject.call(s, $func, $params, $dispatcher, $eventType, $delay, $myname); // consts // members var _dispatcher; var _eventType; var _func; var _params; var _delay; var _timer; //__________________________________________________________________________________ // constructer /** * @param $func 実行関数 * @param $params 引数(Array) * @param $dispatcher イベントディスパッチの対象 * @param $eventType イベントの種類 * @param $delay 遅延(秒)delay兼thresholdスタックオーバーフローが出るようであればこの値を調整する */ var construct = function($func, $params, $dispatcher, $eventType, $delay, $myname){ if( $params === null || $params === undefined ) { $params = null; } if( $dispatcher === null || $dispatcher === undefined ) { $dispatcher = null; } if( $eventType === null || $eventType === undefined ) { $eventType = null; } if( $delay === null || $delay === undefined ) { $delay = NaN; } _func = $func; _params = $params; _dispatcher = $dispatcher; _eventType = $eventType; _delay = $delay; s.name = $myname; }; //__________________________________________________________________________________ // var completeHandler = function($event){ if ( _dispatcher !== null ) { _dispatcher.removeEventListener( _eventType, completeHandler ); } s.finish(); }; var excuteFunc = function(){ _func.apply(null, arguments[0]); }; s.start = function(){ var f = function($event){ if ( _dispatcher !== null ){ _dispatcher.addEventListener( _eventType, completeHandler ); excuteFunc(_params); } else if ( _dispatcher === null && _eventType !== null ){ throw new Error( "The dispatcher of the command is null or undefined.[ eventType : " + _eventType + " ]" ); } else{ excuteFunc( _params ); completeHandler( null ); } if ( _timer !== null || _timer !== undefined ) { clearTimeout(_timer); _timer = null; } }; if ( isNaN(_delay) === true ){ f(); }else{ _timer = setTimeout(f, _delay * 1000); } }; s.stop = function(){ completeHandler( null ); }; s.finish = function(){ if( _timer !== null || _timer !== undefined ){ clearTimeout(_timer); } _dispatcher = null; _eventType = null; _func = null; _params = null; //s.end(); s.dispatchEvent( new Event( Event.COMPLETE ) ); }; //__________________________________________________________________________________ // getter & setter //__________________________________________________________________________________ // return return construct($func, $params, $dispatcher, $eventType, $delay, $myname); } //__________________________________________________________________________________ // statics //const Command.CLASS_PATH = "t90755.commands.Command."; //__________________________________________________________________________________ // set construct t90755.commands.Command = Command; //__________________________________________________________________________________ // set inherits t90755.inherits(Command, t90755.commands.CommandObject); }());
34.29078
128
0.536091
d7693d4537d8774dd730348716f57cc09f2759b9
831
js
JavaScript
dist/models/Plan.js
GoVivant/govivant-sdk
32bec6b17c002e84cc2940dc774fe9ab9c11fe76
[ "MIT" ]
1
2020-10-15T20:44:48.000Z
2020-10-15T20:44:48.000Z
dist/models/Plan.js
GoVivant/govivant-sdk
32bec6b17c002e84cc2940dc774fe9ab9c11fe76
[ "MIT" ]
null
null
null
dist/models/Plan.js
GoVivant/govivant-sdk
32bec6b17c002e84cc2940dc774fe9ab9c11fe76
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Paymethod = /** @class */ (function () { function Paymethod() { } return Paymethod; }()); var Plan = /** @class */ (function () { function Plan(name, enabled, currency, billing_cycle, fixed, points_price, prizes_price, transactions_price, paymethod_id, country_id) { this.name = name; this.enabled = enabled; this.currency = currency; this.billing_cycle = billing_cycle; this.fixed = fixed; this.points_price = points_price; this.prizes_price = prizes_price; this.transactions_price = transactions_price; this.paymethod_id = paymethod_id; this.country_id = country_id; } return Plan; }()); exports.default = Plan; //# sourceMappingURL=Plan.js.map
34.625
140
0.649819
d769828e522e5ebe7f4731e733e2d4c9eb85dea5
604
js
JavaScript
assets/js/bld/gameRes/Coord.js
LeaveToDream/TrulyAwesomeIsomerJSGame
c51242658781b05cfaf5feb31fdbff4507838cef
[ "MIT" ]
null
null
null
assets/js/bld/gameRes/Coord.js
LeaveToDream/TrulyAwesomeIsomerJSGame
c51242658781b05cfaf5feb31fdbff4507838cef
[ "MIT" ]
null
null
null
assets/js/bld/gameRes/Coord.js
LeaveToDream/TrulyAwesomeIsomerJSGame
c51242658781b05cfaf5feb31fdbff4507838cef
[ "MIT" ]
null
null
null
var Coord = (function () { function Coord(x, y) { if (x === void 0) { x = 0; } if (y === void 0) { y = 0; } this.x = x; this.y = y; } Coord.prototype.sum = function () { return this.x + this.y; }; Coord.prototype.getPoint = function () { return new Point(this.x, this.y); }; Coord.prototype.getX = function () { return this.x; }; Coord.prototype.getY = function () { return this.y; }; Coord.prototype.set = function (x, y) { this.x = x; this.y = y; }; return Coord; }());
23.230769
44
0.466887
d7698544af6d57c4932d1d925ef86a680830fae6
5,822
js
JavaScript
jobfile.js
kalisio/kontainer-vigicrue
f1b7101d65261a04e7b22e16ec0a6b3a99838a8f
[ "MIT" ]
2
2019-05-27T08:25:52.000Z
2019-07-15T10:36:35.000Z
jobfile.js
kalisio/kontainer-vigicrue
f1b7101d65261a04e7b22e16ec0a6b3a99838a8f
[ "MIT" ]
30
2018-07-05T19:39:45.000Z
2021-08-30T09:07:27.000Z
jobfile.js
kalisio/kontainer-vigicrue
f1b7101d65261a04e7b22e16ec0a6b3a99838a8f
[ "MIT" ]
null
null
null
const moment = require('moment') const _ = require('lodash') const turf = require('@turf/turf') const makeDebug = require('debug') const debug = makeDebug('k-vigicrues') const dbUrl = process.env.DB_URL || 'mongodb://127.0.0.1:27017/vigicrues' const ttl = +process.env.TTL || (7 * 24 * 60 * 60) // duration in seconds module.exports = { id: 'vigicrues', store: 'memory', options: { workersLimit: 1, faultTolerant: true }, tasks: [{ id: 'vigicrues', type: 'http', options: { url: 'https://www.vigicrues.gouv.fr/services/1/InfoVigiCru.geojson' } }], hooks: { tasks: { after: { readJson: { }, generateStations: { hook: 'apply', function: (item) => { const features = _.get(item, 'data.features', []) let validFeatures = [] _.forEach(features, feature => { // Ensure clean geometry as some line strings have degenerated lines if (turf.getType(feature) === 'MultiLineString') { let validLines = [] let nbInvalidGeometries = 0 turf.featureEach(turf.flatten(feature), line => { try { turf.cleanCoords(line, { mutate: true }) validLines.push(turf.getCoords(line)) } catch (error) { nbInvalidGeometries++ } }) if (nbInvalidGeometries > 0) debug(`Filtering ${nbInvalidGeometries} invalid line(s) for ${feature.properties.LbEntCru}`) // Rebuild geometry from the clean line feature.geometry = turf.multiLineString(validLines).geometry validFeatures.push(feature) } else if (turf.getType(feature) === 'LineString') { try { turf.cleanCoords(feature, { mutate: true }) validFeatures.push(feature) } catch (error) { debug(`Filtering invalid line for ${feature.properties.LbEntCru}`) } } // Convert ID to numeric value _.set(feature, 'properties.gid', _.toNumber(feature.properties.gid)) // Remove unused ID _.unset(feature, 'id') _.set(feature, 'properties.name', feature.properties.LbEntCru) // needed for timeseries _.set(feature, 'properties.NomEntVigiCru', feature.properties.LbEntCru) // backward compatibility }) _.set(item, 'data.features', validFeatures) } }, writeSections: { hook: 'updateMongoCollection', collection: 'vigicrues-sections', filter: { 'properties.gid': '<%= properties.gid %>' }, upsert : true, transform: { pick: [ 'type', 'geometry', 'properties.gid', 'properties.name', 'properties.NomEntVigiCru', 'properties.CdEntCru', 'properties.CdTCC' ], inPlace: false }, chunkSize: 256 }, generateForecasts: { hook: 'apply', function: (item) => { let forecastFeatures = [] const features = _.get(item, 'data.features', []) _.forEach(features, feature => { let forecastFeature = turf.envelope(feature) _.set(forecastFeature, 'time', moment.utc().toDate()) _.set(forecastFeature, 'properties.gid', feature.properties.gid) // needed for timeseries _.set(forecastFeature, 'properties.name', feature.properties.LbEntCru) // needed for timeseries _.set(forecastFeature, 'properties.NivSituVigiCruEnt', feature.properties.NivInfViCr) // needed for timeseries _.set(forecastFeature, 'properties.NomEntVigiCru', feature.properties.LbEntCru) // backward compatibility forecastFeatures.push(forecastFeature) }) item.data = forecastFeatures } }, writeForecasts: { hook: 'writeMongoCollection', collection: 'vigicrues-forecasts', }, clearData: {} } }, jobs: { before: { createStores: [{ id: 'memory' }], connectMongo: { url: dbUrl, // Required so that client is forwarded from job to tasks clientPath: 'taskTemplate.client' }, createSectionsCollection: { hook: 'createMongoCollection', clientPath: 'taskTemplate.client', collection: 'vigicrues-sections', indices: [ [{ 'properties.gid': 1 }, { unique: true }], { geometry: '2dsphere' } ] }, createForecastsCollection: { hook: 'createMongoCollection', clientPath: 'taskTemplate.client', collection: 'vigicrues-forecasts', indices: [ [{ time: 1, 'properties.gid': 1 }, { unique: true }], { 'properties.NivSituVigiCruEnt': 1 }, { 'properties.gid': 1, 'properties.NivSituVigiCruEnt': 1, time: -1 }, [{ time: 1 }, { expireAfterSeconds: ttl }] // days in secs ] } }, after: { disconnectMongo: { clientPath: 'taskTemplate.client' }, removeStores: ['memory'] }, error: { disconnectMongo: { clientPath: 'taskTemplate.client' }, removeStores: ['memory'] } } } }
37.082803
175
0.507901
d76a07cf80dfdd99e7565e71dff3476c6d354f87
347
js
JavaScript
src/index.js
olivervaz/products-admin
117a7fe0b63b60619e2d15eec5b4094d0a2ad83e
[ "MIT" ]
2
2021-12-29T23:46:43.000Z
2022-03-22T15:40:12.000Z
src/index.js
olivervaz/products-admin
117a7fe0b63b60619e2d15eec5b4094d0a2ad83e
[ "MIT" ]
7
2020-07-13T14:41:20.000Z
2020-07-28T12:16:22.000Z
src/index.js
olivervaz/products-admin
117a7fe0b63b60619e2d15eec5b4094d0a2ad83e
[ "MIT" ]
null
null
null
import Router from './router/index.js'; const router = Router.instance(); router .addRoute(/^$/, 'dashboard') .addRoute(/^sales$/, 'sales') .addRoute(/^categories$/, 'categories') .addRoute(/^products\/add$/, 'products/edit') .addRoute(/^products\/([\w()-]+)$/, 'products/edit') .addRoute(/^products$/, 'products/list') .listen();
26.692308
54
0.62536
d76aad0b1d8912eaf405daf490c5b5f0866d6029
1,908
js
JavaScript
build.js
okize/esbuild-visualizer
289494bbadd8e29269b3ea3c1febb783cf19a472
[ "MIT" ]
17
2021-02-12T13:48:29.000Z
2022-03-26T15:26:04.000Z
build.js
okize/esbuild-visualizer
289494bbadd8e29269b3ea3c1febb783cf19a472
[ "MIT" ]
3
2021-02-18T16:59:21.000Z
2021-09-28T15:08:03.000Z
build.js
okize/esbuild-visualizer
289494bbadd8e29269b3ea3c1febb783cf19a472
[ "MIT" ]
2
2021-07-01T08:39:52.000Z
2021-09-28T00:28:32.000Z
"use strict"; const fs = require("fs").promises; const esbuild = require("esbuild"); const sass = require("sass"); const TEMPLATE = ["sunburst", "treemap", "network"]; const sassRender = (opts) => { return new Promise((resolve, reject) => { sass.render(opts, (err, result) => { if (err) { reject(err); } else { resolve(result); } }); }); }; const scssPlugin = { name: "scss", setup(build) { build.onLoad({ filter: /\.scss$/ }, async (args) => { const result = await sassRender({ file: args.path }); return { contents: result.css.toString("utf-8"), loader: "css", }; }); }, }; let args = require("yargs") .strict() .option("all", { describe: "Build all templates", boolean: true, }) .option("dev", { describe: "Run dev build", boolean: true, default: false }); for (const t of TEMPLATE) { args = args.option(t, { describe: `Build ${t} template`, boolean: true, }); } args = args.help(); const argv = args.argv; const templatesToBuild = []; if (argv.all) { templatesToBuild.push(...TEMPLATE); } else { for (const t of TEMPLATE) { if (argv[t]) { templatesToBuild.push(t); } } } const inputPath = (template) => `./src/${template}/index.tsx`; const runBuild = async (template) => { const inputOptions = { entryPoints: [inputPath(template)], bundle: true, outfile: `./dist/lib/${template}.js`, format: "iife", globalName: "drawChart", plugins: [scssPlugin], minify: !argv.dev, target: ["es2017"], jsxFragment: "Fragment", jsxFactory: "h", metafile: true, }; const { metafile } = await esbuild.build(inputOptions); await fs.writeFile( `./metafile.${template}.json`, JSON.stringify(metafile, null, 2) ); }; const run = async () => { await Promise.all(TEMPLATE.map((t) => runBuild(t))); }; run();
20.516129
79
0.577568
d76b324c48f3b8eb89711857b57dcb9ac4eb50ed
116
js
JavaScript
config/http.js
sasd97/Yandex.Rate.Server
1807e004bad4ba6a01376bb6134a887727d1427f
[ "MIT" ]
null
null
null
config/http.js
sasd97/Yandex.Rate.Server
1807e004bad4ba6a01376bb6134a887727d1427f
[ "MIT" ]
null
null
null
config/http.js
sasd97/Yandex.Rate.Server
1807e004bad4ba6a01376bb6134a887727d1427f
[ "MIT" ]
null
null
null
'use strict'; module.exports = { PORT: (process.env.PORT || 8080), BASE_URL: 'https://hategram.herokuapp.com' };
16.571429
43
0.663793
d76b788e196468243d5c61c3f29ba45f6ea33adf
259
js
JavaScript
react-frontend/src/queries/learning/learningAdmins.js
bcgov/digital.gov.bc.ca
43bd2c61934c984b6502a28e0c71d0f02a92516b
[ "Apache-2.0" ]
12
2020-05-06T18:13:01.000Z
2022-02-03T19:19:11.000Z
react-frontend/src/queries/learning/learningAdmins.js
bcgov/digital.gov.bc.ca
43bd2c61934c984b6502a28e0c71d0f02a92516b
[ "Apache-2.0" ]
884
2020-04-17T19:33:41.000Z
2022-03-25T22:43:06.000Z
react-frontend/src/queries/learning/learningAdmins.js
bcgov/digital.gov.bc.ca
43bd2c61934c984b6502a28e0c71d0f02a92516b
[ "Apache-2.0" ]
7
2020-08-15T22:57:28.000Z
2021-07-23T14:53:47.000Z
import gql from 'graphql-tag'; const LEARNING_ADMINS_QUERY = gql` query LearningAdmins { learningAdmins(limit: 2) { Name Role Email Office HeadShot { url } } } `; export default LEARNING_ADMINS_QUERY;
14.388889
37
0.598456
d76b79c9ba6fd9e2eed0c198eb658490c6712aad
87
js
JavaScript
tests/es6/const.js
rmallof/ExpoSE
ddcb79899d8d67e54dc83cf330d5cc6c5d14d38d
[ "MIT" ]
132
2017-06-05T09:04:10.000Z
2022-03-28T03:03:26.000Z
tests/es6/const.js
rmallof/ExpoSE
ddcb79899d8d67e54dc83cf330d5cc6c5d14d38d
[ "MIT" ]
47
2017-08-09T13:07:37.000Z
2021-08-30T23:27:41.000Z
tests/es6/const.js
rmallof/ExpoSE
ddcb79899d8d67e54dc83cf330d5cc6c5d14d38d
[ "MIT" ]
31
2018-03-25T22:39:43.000Z
2021-12-06T08:24:40.000Z
const S$ = require('S$'); const r = S$.symbol('A', 5); if (r == 10) { throw 'Waah'; }
17.4
30
0.494253
d76bd388c8f85a0c3049330a374b2771946ba97e
1,883
js
JavaScript
test/tests.js
walmartlabs/component-scan
80453da21baba264a24d7751f264810f4a9ca3a8
[ "MIT" ]
4
2015-10-17T18:54:34.000Z
2016-05-25T16:06:23.000Z
test/tests.js
walmartreact/component-scan
80453da21baba264a24d7751f264810f4a9ca3a8
[ "MIT" ]
2
2020-08-31T20:16:13.000Z
2021-03-29T18:34:54.000Z
test/tests.js
walmartreact/component-scan
80453da21baba264a24d7751f264810f4a9ca3a8
[ "MIT" ]
2
2016-01-07T16:20:07.000Z
2016-03-11T19:13:41.000Z
var assert = require('assert'); var findComponents = require('../lib/scanner'); var findComponentsBatch = require('../lib/batch'); describe('Scanner', function() { describe('simple', function () { it('should find three components', function (done) { findComponents('examples/simple.jsx', function(components) { assert.equal(3, components.length); assert.equal('Button.State', components[0].component); assert.equal('button', components[0].import); assert.equal('Label', components[1].component); assert.equal('label', components[1].import); assert.equal('div', components[2].component); assert.equal(9, components[0].startLine); assert.equal(10, components[1].startLine); assert.equal(8, components[2].startLine); assert.equal(12, components[0].endLine); assert.equal(10, components[1].endLine); assert.equal(13, components[2].endLine); done(); }); }); }); describe('nested', function () { it('should find two components', function (done) { findComponents('examples/nested.jsx', function(components) { assert.equal(2, components.length); assert.equal('Foo', components[0].component); assert.equal('Nested', components[1].component); assert.equal(4, components[0].attributes.length); assert.equal(8, components[0].startLine); assert.equal(8, components[1].startLine); assert.equal(9, components[0].endLine); assert.equal(8, components[1].endLine); done(); }); }); }); describe('batch', function () { it('should find three components', function (done) { findComponentsBatch('examples/simple.jsx', function(components) { assert.equal(3, components['examples/simple.jsx'].length); done(); }, function() {}); }); }); });
36.921569
71
0.622411
d76c55b5cb716d221a9880e94f90132b45b2147e
1,393
js
JavaScript
src/Components/Card.js
ByeongminLee/MovieRanker
9cc16999f13d25967367c76268f350c2112eb283
[ "MIT" ]
1
2022-03-22T05:05:52.000Z
2022-03-22T05:05:52.000Z
src/Components/Card.js
ByeongminLee/MovieRanker
9cc16999f13d25967367c76268f350c2112eb283
[ "MIT" ]
1
2022-03-18T17:22:34.000Z
2022-03-18T17:22:34.000Z
src/Components/Card.js
ByeongminLee/MovieRanker
9cc16999f13d25967367c76268f350c2112eb283
[ "MIT" ]
null
null
null
import React from 'react'; import styled from 'styled-components'; const CardContainer = styled.div` width: 400px; height: 400px; background-color: #fff; border-radius: 10px; box-shadow: 5px 5px 5px rgba(100, 100, 100, 0.2); padding: 30px 50px; `; const Ranking = styled.h2` font-weight: bold; font-size: 20px; padding-bottom: 20px; text-align: center; `; const Title = styled.h3` font-weight: bold; font-size: 18px; height: 30px; `; const Description = styled.p` padding-bottom: 10px; `; const Card = ({ cardData, number }) => { return ( <CardContainer> {cardData ? ( <> <Ranking>박스 오피스 순위 : {number + 1} 위</Ranking> <Title>영화제목</Title> <Description> {cardData.title.substring(3, cardData.title.length - 4)} </Description> <Title>감독</Title> <Description>{cardData.director.split('|')}</Description> <Title>배우</Title> <Description>{cardData.actor.split('|')}</Description> <Title>평점</Title> <Description>{cardData.userRating}</Description> </> ) : ( <></> )} </CardContainer> ); }; export default Card;
27.313725
80
0.50323
d76c5aa37a6709a000973fb3c741263ee28f2d73
7,323
js
JavaScript
_dsa_mosaic_WEB_cms/forms/WEB_0F_page__design_1F__header_display_2F_language.js
datamosaic/sutra-cms
4205d51797e44069abbc733f3332d79ab2bec402
[ "MIT" ]
null
null
null
_dsa_mosaic_WEB_cms/forms/WEB_0F_page__design_1F__header_display_2F_language.js
datamosaic/sutra-cms
4205d51797e44069abbc733f3332d79ab2bec402
[ "MIT" ]
null
null
null
_dsa_mosaic_WEB_cms/forms/WEB_0F_page__design_1F__header_display_2F_language.js
datamosaic/sutra-cms
4205d51797e44069abbc733f3332d79ab2bec402
[ "MIT" ]
null
null
null
/** * @type {String} * * @properties={typeid:35,uuid:"04fde543-69cc-4d29-af47-7f7c22221f18"} */ var _license_dsa_mosaic_WEB_cms = 'Module: _dsa_mosaic_WEB_cms \ Copyright (C) 2011-2013 Data Mosaic \ MIT Licensed'; /** * @properties={typeid:35,uuid:"36F527EE-DA15-4AF8-A0C1-497FAC9161AD",variableType:-4} */ var _language = databaseManager.getFoundSet('sutra_cms','web_language'); /** * Callback method when form is (re)loaded. * * @param {JSEvent} event the event that triggered the action * * @properties={typeid:24,uuid:"121360AA-EAAB-4DE5-81CA-0A48D2588335"} */ function FORM_on_load(event) { //set combobox to be small on os x globals.CODE_property_combobox(false, 'mini') } /** * Handle changed data. * * @param {Object} oldValue old value * @param {Object} newValue new value * @param {JSEvent} event the event that triggered the action * * @returns {Boolean} * * @properties={typeid:24,uuid:"F4CC7D97-D485-4806-BEAB-2C284C6F8EDF"} */ function FLD_language__data_change(oldValue, newValue, event) { //area name if (utils.hasRecords(forms.WEB_0F_page__design_1F_version_2L_area.foundset)) { var areaName = forms.WEB_0F_page__design_1F_version_2L_area.area_name //block index if (utils.hasRecords(forms.WEB_0F_page__design_1F_version_2L_scope.foundset)) { var blockIndex = forms.WEB_0F_page__design_1F_version_2L_scope.foundset.getSelectedIndex() } } //call method that reloads up appropriate records forms.WEB_0F_page__design.REC_on_select(null,null,null,null,areaName,blockIndex) return true } /** * Perform the element default action. * * @param {JSEvent} event the event that triggered the action * * @properties={typeid:24,uuid:"D4DB94B8-EF85-4942-8B24-651BAC2C808A"} */ function ADD_language(event) { //get all possible languages var fsLanguageAll = web_page_to_site.web_site_to_site_language //get all configured languages var fsLanguage = web_page_to_language //no more to add if (fsLanguage.getSize() == fsLanguageAll.getSize()) { //show info that logout canceled globals.DIALOGS.showWarningDialog( 'Warning', 'No more languages to add' ) } else { //make sure on data mode so no heavyweights underneath if (globals.WEB_page_mode == 2) { var dataEvent = new Object() dataEvent.getElementName = function() { return 'lbl_mode_data' } forms.WEB_TB__web_mode.ACTION_mode(dataEvent) forms.WEB_P__page__new._guiMode = true } //figure out which ones to show var keysLanguage = databaseManager.getFoundSetDataProviderAsArray(fsLanguage, 'id_site_language') keysLanguage = keysLanguage.map(function(item) {return item.toString()}) var vlDisplay = new Array() var vlReal = new Array() //loop all possible languages for (var i = 1; i <= fsLanguageAll.getSize(); i++) { var record = fsLanguageAll.getRecord(i) //this value doesn't exist on the page yet if (keysLanguage.indexOf(record.id_site_language.toString()) == -1) { vlDisplay.push(record.language_name) vlReal.push(record.id_site_language) } } //set valuelist application.setValueListItems('WEB_page_stuff',vlDisplay,vlReal) //set callback method forms.WEB_P__page__new._callbackMethod = CREATE_language //figure where the clicked component is (2nd split, 1st tabpanel) var refTab = forms.WEB_0F_page__design_1F__header_display.elements.tab_language var refSplit = forms.WEB_0F_page__design_1F__header_display.elements.split_picker_1 var refSplitSub = forms.WEB_0F_page__design_1F__header_display.elements.split_picker_2 //(tab panel position, plus width, minus offset to center of graphic) plus space offset var x = refSplit.getX() + refSplitSub.dividerLocation + refTab.getLocationX() + (refTab.getWidth() - 12) + 200 //position plus header plus (if toolbars showing) plus offset to top of workflow form var y = elements.fld_language.getLocationY() + 44 + 40 + refTab.getLocationY() + forms.WEB_0F_page__design.elements.tab_header_detail.getLocationY() //show the form globals.WEBc_sutra_trigger('TRIGGER_dialog_small',[ true, 'touch', 'WEB_P__page__new', false, x,y, null,null, 'Add language', 'Cancel', null, true, 0 ]) } } /** * @properties={typeid:24,uuid:"D4D9C306-4D18-4CE3-96F0-0D21AB40BE75"} */ function CREATE_language(versionOld) { var thisID = globals.WEB_page_language //something selected if (thisID) { //turn on feedback indicators globals.CODE_cursor_busy(true) //this page var pageRec = forms.WEB_0F_page__design.foundset.getSelectedRecord() //current language var fsLanguage = databaseManager.getFoundSet('sutra_cms','web_language') fsLanguage.loadRecords([versionOld.id_language]) var languageOld = fsLanguage.getSelectedRecord() //create language record var languageNew = pageRec.web_page_to_language.getRecord(pageRec.web_page_to_language.newRecord(false,true)) languageNew.id_site_language = thisID languageNew.page_name = languageOld.page_name databaseManager.saveData(languageNew) //save this record's position onto the form _language.loadRecords(languageNew.id_language) //turn off feedback indicators if on globals.CODE_cursor_busy(false) return 'Language "' + languageNew.language_name + '" added.\n' } else { globals.DIALOGS.showErrorDialog( 'Error', 'Language not selected' ) return false } } /** * @properties={typeid:24,uuid:"03E57EE5-CFFA-4179-9564-6841CC25CAB2"} * @AllowToRunInFind */ function DEL_language(event) { //cannot delete last language if (web_page_to_language.getSize() > 1) { var delRec = globals.DIALOGS.showWarningDialog( 'Delete record', 'Do you really want to delete this record?', 'Yes', 'No' ) if (delRec == 'Yes') { //halt additional on select firing; gets turned back on in forms.WEB_0F_page__design.REC_on_select(true) forms.WEB_0F_page__design_1F_version_2L_scope._skipSelect = true //turn on feedback indicators var progressText = 'Deleting language "' + application.getValueListDisplayValue('WEB_page_language__all',globals.WEB_page_language) + '" from page...' globals.WEBc_sutra_trigger('TRIGGER_progressbar_start',[null,progressText]) globals.CODE_cursor_busy(true) //select this language web_page_to_language.selectRecord(globals.WEB_page_language) //whack it web_page_to_language.deleteRecord() //delete all versions for this language var fsVersion = databaseManager.getFoundSet('sutra_cms','web_version') fsVersion.find() fsVersion.id_language = globals.WEB_page_language.toString() fsVersion.search() fsVersion.deleteAllRecords() //re-set up the page forms.WEB_0F_page__design.REC_on_select(true) //turn off feedback indicators if on globals.CODE_cursor_busy(false) globals.WEBc_sutra_trigger('TRIGGER_progressbar_stop') } } else { globals.DIALOGS.showWarningDialog( 'Warning', 'There must always be one language' ) } } /** * @properties={typeid:24,uuid:"1278CE0D-67DA-42D8-899B-A6692061BE4F"} */ function SET_tooltip() { if (utils.hasRecords(_language)) { elements.fld_language.toolTipText = 'ID: ' + _language.url_param } else { elements.fld_language.toolTipText = '' } }
29.889796
153
0.732487
d76ce2103fa802e74ad3142a48da4d8bca26f5b8
696
js
JavaScript
altstreamfield/static/altstreamfield_src/validators/prohibitnullcharacter.js
didorothy/wagtailaltstreamfield
00b6be4420e031036f1d2d6c0122969df7fb3900
[ "BSD-2-Clause" ]
null
null
null
altstreamfield/static/altstreamfield_src/validators/prohibitnullcharacter.js
didorothy/wagtailaltstreamfield
00b6be4420e031036f1d2d6c0122969df7fb3900
[ "BSD-2-Clause" ]
20
2019-11-12T16:49:32.000Z
2021-03-09T23:04:20.000Z
altstreamfield/static/altstreamfield_src/validators/prohibitnullcharacter.js
didorothy/wagtailaltstreamfield
00b6be4420e031036f1d2d6c0122969df7fb3900
[ "BSD-2-Clause" ]
null
null
null
import { Validator, ValidationError } from "./interface"; export class ProhibitNullCharacterValidator extends Validator { //message = ''; //code = ''; constructor(message='Null characters are not allowed.', code='null-characters-not-allowed') { super(); this.message = message; this.code = code; } doValidate(value) { value = '' + value; if(value.toString().indexOf('\x00') !== -1) { return new ValidationError(this.message, this.code); } } isEqual(value) { return value instanceof this.constructor && value.message === this.message && value.code === this.code; } }
24.857143
97
0.576149
d76d809d05e8b81a24abb129e27d1b41ee33c2ba
4,326
js
JavaScript
data/split-book-data/B07DD37GSR.1642284896150.js
demoran23/my-audible-library
fc595ef7b55227e38333a894b98e7d298678088d
[ "0BSD" ]
null
null
null
data/split-book-data/B07DD37GSR.1642284896150.js
demoran23/my-audible-library
fc595ef7b55227e38333a894b98e7d298678088d
[ "0BSD" ]
null
null
null
data/split-book-data/B07DD37GSR.1642284896150.js
demoran23/my-audible-library
fc595ef7b55227e38333a894b98e7d298678088d
[ "0BSD" ]
null
null
null
window.peopleAlsoBoughtJSON = [{"asin":"B07DJTKGRR","authors":"Daniel Abraham","cover":"61589z5-06L","length":"14 hrs and 45 mins","narrators":"Pete Bradbury","title":"The King's Blood"},{"asin":"1980035962","authors":"James S.A. Corey","cover":"51uLOQqYu3L","length":"19 hrs and 40 mins","narrators":"Jefferson Mays","subHeading":"Expanse, Book 9","title":"Leviathan Falls"},{"asin":"1478916613","authors":"Joe Abercrombie","cover":"51z3MT9oomL","length":"23 hrs and 37 mins","narrators":"Steven Pacey","title":"The Wisdom of Crowds"},{"asin":"B014LL69TO","authors":"Joe Abercrombie","cover":"61pbE8bm42L","length":"22 hrs and 39 mins","narrators":"Steven Pacey","title":"Before They Are Hanged"},{"asin":"B078P55ZTR","authors":"John Gwynne","cover":"51W+cJA1sLL","length":"15 hrs and 31 mins","narrators":"Damian Lynch","title":"A Time of Dread"},{"asin":"B06Y3N62F5","authors":"Brian Staveley","cover":"51S0-i49apL","length":"15 hrs and 21 mins","narrators":"Elizabeth Knowelden","title":"Skullsworn"},{"asin":"1549150367","authors":"John Gwynne","cover":"51AXqdrnpyL","length":"21 hrs and 56 mins","narrators":"Damian Lynch","title":"A Time of Courage"},{"asin":"B01D28WX10","authors":"M. D. Ireman","cover":"51w83i2TjRL","length":"22 hrs and 24 mins","narrators":"Matt Cowlrick","subHeading":"Bounds of Redemption, Volume 1","title":"The Axe and the Throne"},{"asin":"B002UZZ93G","authors":"George R.R. Martin","cover":"51rDpMtBm5L","length":"33 hrs and 46 mins","narrators":"Roy Dotrice","subHeading":"A Song of Ice and Fire, Book 1","title":"A Game of Thrones"},{"asin":"1250227933","authors":"Kevin J. Anderson","cover":"51-AUv2PE0L","length":"25 hrs and 12 mins","narrators":"Fleet Cooper","subHeading":"Wake the Dragon, Book 1","title":"Spine of the Dragon"},{"asin":"B07M9Z7QTV","authors":"Josiah Bancroft","cover":"61ZZjDphnQL","length":"20 hrs and 17 mins","narrators":"John Banks","title":"The Hod King"},{"asin":"1549102133","authors":"John Gwynne","cover":"513AkoGH0ZL","length":"23 hrs and 50 mins","narrators":"Damian Lynch","title":"Malice"},{"asin":"1774243903","authors":"Emmet Moss","cover":"61RDYRcOXnL","length":"19 hrs and 24 mins","narrators":"Simon Vance","subHeading":"The Shattering of Kingdoms, Book 1","title":"The Mercenary Code"},{"asin":"B074MDMZNJ","authors":"Anna Smith Spark","cover":"51Ko7MfanjL","length":"16 hrs and 36 mins","narrators":"Colin Mace, Meriel Rosenkranz","title":"The Court of Broken Knives"},{"asin":"B076HCHBX3","authors":"Raymond E. Feist, Janny Wurts","cover":"51Wbdjx+pML","length":"19 hrs and 51 mins","narrators":"Tania Rodrigues","subHeading":"Riftwar Cycle: The Empire Trilogy, Book 1","title":"Daughter of the Empire"},{"asin":"0593215508","authors":"Charles Soule","cover":"51quL-6yv3L","length":"13 hrs and 35 mins","narrators":"Marc Thompson","subHeading":"The High Republic","title":"Star Wars: Light of the Jedi"},{"asin":"0525641246","authors":"Peter McLean","cover":"51IcZB0AoBL","length":"10 hrs and 28 mins","narrators":"John Lee","subHeading":"War for the Rose Throne, Book 1","title":"Priest of Bones"},{"asin":"B012BNY8RY","authors":"Leigh Bardugo","cover":"61tuZtK6xoL","length":"15 hrs and 4 mins","narrators":"Jay Snyder, Brandon Rubin, Fred Berman, and others","title":"Six of Crows"}]; window.bookSummaryJSON = "<p><b>All paths lead to war....</b></p> <p>Marcus' hero days are behind him. He knows too well that even the smallest war still means somebody's death. When his men are impressed into a doomed army, staying out of a battle he wants no part of requires some unorthodox steps.&nbsp;</p> <p>Cithrin is an orphan, ward of a banking house. Her job is to smuggle a nation's wealth across a war zone, hiding the gold from both sides. She knows the secret life of commerce like a second language, but the strategies of trade will not defend her from swords.&nbsp;</p> <p>Geder, sole scion of a noble house, has more interest in philosophy than in swordplay. A poor excuse for a soldier, he is a pawn in these games. No one can predict what he will become.&nbsp;</p> <p>Falling pebbles can start a landslide. A spat between the Free Cities and the Severed Throne is spiraling out of control. A new player rises from the depths of history, fanning the flames that will sweep the entire region onto The Dragon's Path - the path to war.</p>";
1,442
3,267
0.716366
d69f23d7897711df718ec9af08656b92e063cf7a
2,729
js
JavaScript
la/skullSolid.js
lmeysel/fa-compatible-icons
0b4558bf35e3a3b7aad2772fdb4ae216c1f4eecd
[ "MIT" ]
null
null
null
la/skullSolid.js
lmeysel/fa-compatible-icons
0b4558bf35e3a3b7aad2772fdb4ae216c1f4eecd
[ "MIT" ]
null
null
null
la/skullSolid.js
lmeysel/fa-compatible-icons
0b4558bf35e3a3b7aad2772fdb4ae216c1f4eecd
[ "MIT" ]
null
null
null
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'la'; var iconName = 'skull-solid'; var width = 512; var height = 512; var ligatures = []; var unicode = null; var svgPathData = 'M 256 64 C 209.3125 64 165.5625 76.187504 133 101.5 C 100.4375 126.8125 80 166 80 215 C 80 259.87501 102.0625 294.8125 114 310.5 C 113 315.6875 112 321.12501 112 327.5 C 112 346.5625 123.4375 362.5625 138.5 371.5 C 149.0625 377.75 162.75 378.87501 176 380.5 L 176 422.5 L 181 427.5 C 181 427.5 187.9375 434.1875 200 439 C 212.0625 443.8125 230.37501 448 256 448 C 281.62501 448 299.9375 443.8125 312 439 C 324.0625 434.1875 331 427.5 331 427.5 L 336 422.5 L 336 380.5 C 349.25 378.87501 362.9375 377.75 373.5 371.5 C 388.5625 362.5625 400 346.5625 400 327.5 C 400 321.12501 399 315.6875 398 310.5 C 409.9375 294.8125 432 259.87501 432 215 C 432 165.9375 411.5625 126.8125 379 101.5 C 346.4375 76.187504 302.6875 64 256 64 z M 256 96 C 297.1875 96 333.5625 106.75 359 126.5 C 384.4375 146.25 400 174.5625 400 215 C 400 236.75 393 256 385.5 270.5 C 384.6875 266.5625 384 262.1875 384 256 L 352 256 C 352 275.8125 357.4375 288.9375 361.5 298.5 C 365.5625 308.0625 368 313.9375 368 327.5 C 368 335.1875 365.0625 339.25 357 344 C 348.9375 348.75 335.62501 352 320 352 L 304 352 L 304 407 C 302.68752 407.75008 303.56256 407.56256 300 409 C 292 412.1875 278.0625 416 256 416 C 233.9375 416 220 412.1875 212 409 C 208.4375 407.5625 209.3125 407.75 208 407 L 208 352 L 192 352 C 176.37501 352 163.0625 348.75 155 344 C 146.9375 339.25 144 335.1875 144 327.5 C 144 313.9375 146.4375 308.0625 150.5 298.5 C 154.5625 288.9375 160 275.8125 160 256 L 128 256 C 128 262.1875 127.3125 266.5625 126.5 270.5 C 119 256 112 236.75 112 215 C 112 174.5625 127.5625 146.25 153 126.5 C 178.4375 106.75 214.8125 96 256 96 z M 208 256 C 190.3125 256 176 270.3125 176 288 C 176 305.6875 190.3125 320 208 320 C 225.6875 320 240 305.6875 240 288 C 240 270.3125 225.6875 256 208 256 z M 304 256 C 286.3125 256 272 270.3125 272 288 C 272 305.6875 286.3125 320 304 320 C 321.6875 320 336 305.6875 336 288 C 336 270.3125 321.6875 256 304 256 z M 256 316 C 256 316 236 341.5 236 353.5 C 236 359.5 240 362.5 244 362.5 C 250.6875 362.5 256 350.5 256 350.5 C 256 350.5 261.3125 362.5 268 362.5 C 272 362.5 276 359.5 276 353.5 C 276 341.5 256 316 256 316 z '; exports.definition = { prefix: prefix, iconName: iconName, icon: [ width, height, ligatures, unicode, svgPathData ]}; exports.laSkullSolid = exports.definition; exports.prefix = prefix; exports.iconName = iconName; exports.width = width; exports.height = height; exports.ligatures = ligatures; exports.unicode = unicode; exports.svgPathData = svgPathData;
94.103448
2,141
0.726273
d69f4defd0e70d0cd6004b4f35c09361647ced97
777
js
JavaScript
client/src/Providers/ProductsProvider/index.js
JorgeWillianPaez/FastBundle
677013bbecd29409ecd0b99156d57af137fd0093
[ "MIT" ]
null
null
null
client/src/Providers/ProductsProvider/index.js
JorgeWillianPaez/FastBundle
677013bbecd29409ecd0b99156d57af137fd0093
[ "MIT" ]
null
null
null
client/src/Providers/ProductsProvider/index.js
JorgeWillianPaez/FastBundle
677013bbecd29409ecd0b99156d57af137fd0093
[ "MIT" ]
null
null
null
import { createContext, useContext, useEffect, useState } from "react"; import toast from "react-hot-toast"; import api from "../../Services/api"; const ProductContext = createContext(); export const ProductProvider = ({ children }) => { const [products, setProducts] = useState([]); const createProduct = (data) => { api.post("/products", data) .then((res) => { setProducts([...products, res.data]); toast.success("Produto criado com sucesso!"); }) .catch((err) => { return toast.error(err.response.data.message) }); }; return ( <ProductContext.Provider value={{ createProduct, products }}> {children} </ProductContext.Provider> ); }; export const useProduct = () => useContext(ProductContext);
26.793103
71
0.629344
d69f5cb21d8c7764d7696e9bd20451d15f08995c
573
js
JavaScript
arrowfunc/01-convert.js
JKozma81/homework
d7023b36e2e4654d7f99f8d030e42afe0b560d7c
[ "MIT" ]
null
null
null
arrowfunc/01-convert.js
JKozma81/homework
d7023b36e2e4654d7f99f8d030e42afe0b560d7c
[ "MIT" ]
null
null
null
arrowfunc/01-convert.js
JKozma81/homework
d7023b36e2e4654d7f99f8d030e42afe0b560d7c
[ "MIT" ]
null
null
null
// Alakítsuk arrow functionökké a függvényeket! // Ahol lehet, hagyjunk el amit csak lehet a szintaxisból! let double = x => 2 * x; let invert = x => -x; let hello = () => 'hello'; // Alakítsuk function expressionökké az arrow functionöket! let helloPrefixer = function(s) { return 'hello ' + s; }; let doNothing = function() {}; // Alakítsuk function declaractionné function advice(raining) { return raining ? 'Take your umbrella' : 'Take you sunglasses'; } function isEmpty(arr) { return !arr.length; } function tricky(want) { want = false; return want; }
17.90625
63
0.689354
d6a10d75edd95a6f799aa872d4900e7a55567ce6
720
js
JavaScript
._v_.TRS/Testing/v_req_test.js
V-core9/V_Observer
adf1408e8c2dd6c8d5fb9bdb6cbcbba23efa6da4
[ "MIT" ]
null
null
null
._v_.TRS/Testing/v_req_test.js
V-core9/V_Observer
adf1408e8c2dd6c8d5fb9bdb6cbcbba23efa6da4
[ "MIT" ]
null
null
null
._v_.TRS/Testing/v_req_test.js
V-core9/V_Observer
adf1408e8c2dd6c8d5fb9bdb6cbcbba23efa6da4
[ "MIT" ]
null
null
null
const vReq = require('v_req') const demoPost = { data: JSON.stringify({ todo: 'Buy the milk' }), options: { hostname: 'quickmedcards.com', port: 443, path: '/', method: 'POST', headers: { 'Content-Type': 'application/json' } } }; const demoGet = { options: { hostname: 'api.nasa.gov', port: 443, path: '/planetary/apod?api_key=DEMO_KEY', method: 'GET', headers: { 'Content-Type': 'application/json' } } }; const demoGetGoogle = { options: { hostname: 'www.google.com', port: 443, path: '/', method: 'GET', headers: { 'Content-Type': 'text/html' } } }; vReq(demoGet); vReq(demoPost); vReq(demoGetGoogle);
15.319149
45
0.554167
d6a2166a7f6545de9a46ef3bd5b4428aa21bee14
244
js
JavaScript
fibonachi.js
IrynaPap/Algorithms
e10b436db04e2868add9b47c18357197447fd48f
[ "MIT" ]
null
null
null
fibonachi.js
IrynaPap/Algorithms
e10b436db04e2868add9b47c18357197447fd48f
[ "MIT" ]
null
null
null
fibonachi.js
IrynaPap/Algorithms
e10b436db04e2868add9b47c18357197447fd48f
[ "MIT" ]
null
null
null
function fibonachi(value) { var arr = []; var sum = 0; for (i = 0; i < value; i++) { arr.push(i + (i + 1)); sum = (arr[i] + sum); } console.log(sum); return arr; } console.log(fibonachi(15));
20.333333
34
0.45082
d6a338be24355e84f2853ac8d83d2a1405a23703
5,598
js
JavaScript
.releaserc.js
AndrewAllison/congenial-spork
5e4183e410f5cca3d7d21ca2034664bb5dcfea0a
[ "MIT" ]
null
null
null
.releaserc.js
AndrewAllison/congenial-spork
5e4183e410f5cca3d7d21ca2034664bb5dcfea0a
[ "MIT" ]
2
2021-08-20T06:22:20.000Z
2021-08-22T05:55:35.000Z
.releaserc.js
AndrewAllison/congenial-spork
5e4183e410f5cca3d7d21ca2034664bb5dcfea0a
[ "MIT" ]
null
null
null
module.exports = { branches: [ '+([0-9])?(.{+([0-9]),x}).x', 'main', 'next', 'next-major', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true } ], plugins: [ "@semantic-release/release-notes-generator", "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/github", "@semantic-release/commit-analyzer", [ "@semantic-release/git", { "assets": ["package.json", "package-lock.json", "CHANGELOG.md"], "message": "release(version): Release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" } ], { "releaseRules": [ { "type": "feature", "release": "minor" }, { "type": "style", "release": "patch" }, { "type": "build", "release": "patch" }, { "type": "perf", "release": "patch" }, { "type": "prune", "release": "patch" }, { "type": "ci", "release": "patch" }, { "type": "quickfix", "release": "patch" }, { "type": "chore", "release": "patch" }, { "type": "docs", "release": "patch" }, { "type": "deploy", "release": "patch" }, { "type": "deploy", "release": "minor" }, { "type": "refactor", "release": "patch" }, { "type": "test", "release": "patch" }, { "type": "security", "release": "patch" }, { "type": "linux", "release": "patch" }, { "type": "osx", "release": "patch" }, { "type": "ios", "release": "patch" }, { "type": "windows", "release": "patch" }, { "type": "lint", "release": "patch" }, { "type": "wip", "release": "no-release" }, { "type": "fix-ci", "release": "patch" }, { "type": "downgrade", "release": "minor" }, { "type": "upgrade", "release": "minor" }, { "type": "pushpin", "release": "patch" }, { "type": "ci", "release": "patch" }, { "type": "analytics", "release": "patch" }, { "type": "refactoring", "release": "patch" }, { "type": "docker", "release": "patch" }, { "type": "dep-add", "release": "patch" }, { "type": "dep-rm", "release": "patch" }, { "type": "config", "release": "patch" }, { "type": "i18n", "release": "patch" }, { "type": "typo", "release": "patch" }, { "type": "poo", "release": "patch" }, { "type": "revert", "release": "minor" }, { "type": "merge", "release": "patch" }, { "type": "dep-up", "release": "patch" }, { "type": "compat", "release": "minor" }, { "type": "licence", "release": "patch" }, { "type": "breaking", "release": "major" }, { "type": "assets", "release": "patch" }, { "type": "review", "release": "patch" }, { "type": "access", "release": "patch" }, { "type": "docs-code", "release": "patch" }, { "type": "beer", "release": "no-release" }, { "type": "texts", "release": "patch" }, { "type": "db", "release": "minor" }, { "type": "log-add", "release": "patch" }, { "type": "log-add", "release": "patch" }, { "type": "contrib-add", "release": "patch" }, { "type": "ux", "release": "minor" }, { "type": "arch", "release": "major" }, { "type": "iphone", "release": "patch" }, { "type": "clown-face", "release": "patch" }, { "type": "egg", "release": "patch" }, { "type": "see-no-evil", "release": "patch" }, { "type": "camera-flash", "release": "patch" }, { "type": "experiment", "release": "patch" }, { "type": "seo", "release": "patch" }, { "type": "k8s", "release": "patch" }, { "type": "seed", "release": "patch" }, { "type": "flags", "release": "patch" }, { "type": "animation", "release": "patch" } ] } ] };
19.921708
103
0.311361
d6a576c5358be2c6bd2818f7c5daa4db523ef296
10,420
js
JavaScript
ForumArchive/acc/post_39682_page_1.js
doc22940/Extensions
d8dbc9be08e0b8c0bd6b72e068ef73223d2799a8
[ "Apache-2.0" ]
136
2015-01-01T17:33:35.000Z
2022-02-26T16:38:08.000Z
ForumArchive/acc/post_39682_page_1.js
doc22940/Extensions
d8dbc9be08e0b8c0bd6b72e068ef73223d2799a8
[ "Apache-2.0" ]
60
2015-06-20T00:39:16.000Z
2021-09-02T22:55:27.000Z
ForumArchive/acc/post_39682_page_1.js
doc22940/Extensions
d8dbc9be08e0b8c0bd6b72e068ef73223d2799a8
[ "Apache-2.0" ]
141
2015-04-29T09:50:11.000Z
2022-03-18T09:20:44.000Z
[{"Owner":"alvov","Date":"2018-08-28T09:40:20Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHello!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI have a few questions/concerns about how the latest (1.2.30 as for now) version of 3ds max extractor works. Not 100% sure it_t_s the right place for questions like these_co_ but maybe someone could at least help me with the research _lt_span_gt__dd_ )_lt_/span_gt_\n_lt_/p_gt_\n\n_lt_ol_gt_\n\t_lt_li_gt_\n\t\tIt seems that the extractor adds the _qt__lt_span style_eq__qt_color_dd_#2c3e50_sm__qt__gt_rotationQuaternion_qt__lt_/span_gt_ property for every mesh_co_ disregarding the _qt_Export quaternions instead of Euler angles_qt_ checkbox in the scene properties window (this checkbox seems to only affect whether the _qt_rotation_qt_ property of meshes contains non-zero values). So as BabylonJS (we use 3.3.0-beta.4) mesh parser uses _qt_rotationQuaternion_qt_ as a priority property while parsing the .babylon files_co_ it becomes impossible to work with the _qt_rotation_qt_ property of a mesh. Is there a way to work around this and be able to not export _qt_rotationQuaternion_qt_ in the .babylon files?\n\t_lt_/li_gt_\n\t_lt_li_gt_\n\t\tIs it true that on every export the exporter generates new meshes/materials ids_co_ even if the source hasn_t_t changed? Does it mean that in the code it_t_s better to rely on mesh/material name_co_ rather than its id?\n\t_lt_/li_gt_\n\t_lt_li_gt_\n\t\tIt seems that some time ago the way the exporter generates names for texture image files has changed (for example what was _qt_sphere_mat_metallicRoughness.jpg_qt_ became _qt_sphere_rsphere_m.jpg_qt_). Is it possible to control the pattern of the texture files naming somehow (just to make sure it won_t_t change any more at some point in the future)?\n\t_lt_/li_gt_\n_lt_/ol_gt_\n\n_lt_p_gt_\n\tThank you!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAdditional info_dd_ we_t_ve recently updated the 3ds max extractor plugin to version 1.2.30_co_ the previous version that we used is unknown_co_ but presumably it was a couple of months old.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Dad72","Date":"2018-08-28T15:46:44Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYou can otherwise do in your code_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t_lt_em_gt_mesh.rotationQuaternion _eq_ null_sm__lt_/em_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tYou will be able to use rotation instead of rotationQuaternion\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"alvov","Date":"2018-08-28T16:09:16Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tThanks _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/5292-dad72/?do_eq_hovercard_qt_ data-mentionid_eq__qt_5292_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/5292-dad72/_qt_ rel_eq__qt__qt__gt_@Dad72_lt_/a_gt__co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI currently set _qt__lt_em style_eq__qt_color_dd_#353c41_sm_font-size_dd_14px_sm__qt__gt_rotationQuaternion_qt__dd_ null_lt_/em_gt_ while preprocessing .babylon files_co_ but that_t_s a hacky way. Shouldn_t_t the _qt__lt_span style_eq__qt_background-color_dd_#ffffff_sm_color_dd_#353c41_sm_font-size_dd_14px_sm_text-align_dd_left_sm__qt__gt_Export quaternions instead of Euler angles_qt_ checkbox in the scene settings be in control of that?_lt_/span_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Dad72","Date":"2018-08-28T16:22:23Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYes this box must not be checked in the export to export just Euler.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"alvov","Date":"2018-08-29T08:54:33Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYes_co_ but that_t_s the problem - I uncheck the checkbox_co_ but rotationQuaternion is still being exported _lt_span_gt__lt_img alt_eq__qt__dd_)_qt_ data-emoticon_eq__qt__qt_ height_eq__qt_20_qt_ src_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/default_smile.png_qt_ srcset_eq__qt_http_dd_//www.html5gamedevs.com/uploads/emoticons/smile@2x.png 2x_qt_ title_eq__qt__dd_)_qt_ width_eq__qt_20_qt_ /_gt__lt_/span_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Dad72","Date":"2018-08-29T09:42:59Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tYes it seems a bug then. _lt_span_gt__lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/4442-deltakosh/?do_eq_hovercard_qt_ data-mentionid_eq__qt_4442_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/4442-deltakosh/_qt_ rel_eq__qt__qt__gt_@_lt_font style_eq__qt_vertical-align_dd_inherit_sm__qt__gt__lt_font style_eq__qt_vertical-align_dd_inherit_sm__qt__gt_Deltakosh_lt_/font_gt__lt_/font_gt__lt_/a_gt__lt_/span_gt_ will tell us more_co_ I suppose.\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"alvov","Date":"2018-08-29T11:13:01Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tI_t_ve just been shown this _lt_a href_eq__qt_https_dd_//github.com/BabylonJS/Exporters/pull/308_qt_ rel_eq__qt_external nofollow_qt__gt_https_dd_//github.com/BabylonJS/Exporters/pull/308_lt_/a_gt__co_ so I guess this is going to be fixed in the next version.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks! (questions 2 and 3 are still actual though)\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"Hersir","Date":"2018-08-29T11:13:08Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tRotation / _lt_span style_eq__qt_background-color_dd_#ffffff_sm_color_dd_#353c41_sm_font-size_dd_14px_sm__qt__gt_rotationQuaternion should be fixed by this _lt_/span_gt__lt_a href_eq__qt_https_dd_//github.com/BabylonJS/Exporters/pull/308_qt_ rel_eq__qt_external nofollow_qt__gt_PR_lt_/a_gt_\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"noalak","Date":"2018-08-29T11:49:13Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi alvov_co_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tExporter developer here.\n_lt_/p_gt_\n\n_lt_p_gt_\n\t1) and 2) are undesired behaviours and have been fixed in new version 1.2.31\n_lt_/p_gt_\n\n_lt_p_gt_\n\t3) When merging files_co_ the name of the resulting file is created dynamically. Before it was referring to the material name. Some times ago the material export has been optimized. Two materials having same textures would use same merged textures. Thus we shifted to using texture names for the merged texture.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI don_t_t see why it would be updated soon but we can_t_t ensure it won_t_t either. If it does_co_ we will make sure to keep retro compatibility_co_ at least via an option somewhere.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThanks for your feedbacks!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"alvov","Date":"2018-08-30T15:13:53Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tHi _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/28074-noalak/?do_eq_hovercard_qt_ data-mentionid_eq__qt_28074_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/28074-noalak/_qt_ rel_eq__qt__qt__gt_@noalak_lt_/a_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\tI_t_ve checked with 1.2.31 and issue 1 is indeed gone_co_ thanks!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAs for issue 2 - it seems to still be there_co_ we_t_ve exported the scene two times in a row and got different ids for meshes and materials.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAs for 3 - ok_co_ no problem_co_ thank you for clarification!\n_lt_/p_gt_\n\n_lt_p_gt_\n\tAnd I_t_ve noticed one more thing_dd_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t4. It seems that the new version ignores the instances of the meshes and exports them as separate meshes. Maybe there is some new setting or checkbox that could fix this?\n_lt_/p_gt_\n\n_lt_p_gt_\n\tThank you!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"noalak","Date":"2018-08-31T08:15:38Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tIndeed_co_ v1.2.31 introduced a critical bug regarding ids.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tFixed in v1.2.32.\n_lt_/p_gt_\n\n_lt_p_gt_\n\tSorry for the inconvenience and thanks again for reporting the issue!\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"},{"Owner":"alvov","Date":"2018-08-31T10:21:28Z","Content":"_lt_div class_eq__qt_mages_qt__gt_\n\t\t\t\n_lt_p_gt_\n\tThanks _lt_a contenteditable_eq__qt_false_qt_ data-ipshover_eq__qt__qt_ data-ipshover-target_eq__qt_http_dd_//www.html5gamedevs.com/profile/28074-noalak/?do_eq_hovercard_qt_ data-mentionid_eq__qt_28074_qt_ href_eq__qt_http_dd_//www.html5gamedevs.com/profile/28074-noalak/_qt_ rel_eq__qt__qt__gt_@noalak_lt_/a_gt_ it is indeed fixed _lt_span class_eq__qt_ipsEmoji_qt__gt_👍_lt_/span_gt_\n_lt_/p_gt_\n\n_lt_blockquote class_eq__qt_ipsQuote_qt_ data-ipsquote_eq__qt__qt__gt_\n\t_lt_div class_eq__qt_ipsQuote_citation_qt__gt_\n\t\tQuote\n\t_lt_/div_gt_\n\n\t_lt_div class_eq__qt_ipsQuote_contents_qt__gt_\n\t\t_lt_p_gt_\n\t\t\t_lt_span style_eq__qt_background-color_dd_#ffffff_sm_color_dd_#353c41_sm_font-size_dd_14px_sm__qt__gt_Sorry for the inconvenience and thanks again for reporting the issue!_lt_/span_gt_\n\t\t_lt_/p_gt_\n\t_lt_/div_gt_\n_lt_/blockquote_gt_\n\n_lt_p_gt_\n\tNo need for apologise_dd_ not having the product at all is a much much greater inconvenience than a known bug _lt_span_gt__dd_ ) Thank you for what you do as an OSP maintainer_lt_/span_gt_\n_lt_/p_gt_\n\n_lt_p_gt_\n\t(but that still was very kind of you_co_ cheers!)\n_lt_/p_gt_\n\n\n\t\t\t\n\t\t_lt_/div_gt_\n\n\t\t_lt_div class_eq__qt_ipsI_qt__gt__lt_/div_gt__lt_/div_gt_"}]
10,420
10,420
0.83263
d6a5b82c95a628e8c7aff73f9b8c32ffe8f5938f
508
js
JavaScript
middleware/featureFlags.js
CalvinRodo/platform-forms-node
aaa74b14baafd885c44d86772288154cd28845cb
[ "MIT" ]
2
2020-06-25T18:47:58.000Z
2020-11-20T15:18:07.000Z
middleware/featureFlags.js
CalvinRodo/platform-forms-node
aaa74b14baafd885c44d86772288154cd28845cb
[ "MIT" ]
217
2020-04-09T12:52:58.000Z
2021-05-06T14:17:24.000Z
middleware/featureFlags.js
CalvinRodo/platform-forms-node
aaa74b14baafd885c44d86772288154cd28845cb
[ "MIT" ]
4
2020-05-14T17:19:05.000Z
2020-05-22T17:08:59.000Z
const featureFlags = (app) => (req, res, next) => { // We usually want our features to default to false so we don't accidentally release them before they are ready. const featureFlags = { enableDtc : process.env.FF_ENABLE_DTC || false, enableFreeText: process.env.FF_ENABLE_FEEDBACK_TEXT || false, } // We want this available in templates and in controllers req.locals.featureFlags = featureFlags app.locals.featureFlags = featureFlags next() } module.exports = { featureFlags, }
26.736842
114
0.720472
d6a634c31f60321e4770fa484b75cbe58e2ce218
1,299
js
JavaScript
src/components/novels/Websites/jalfordme/index.js
jacob-alford/jalford-me
8dc7a30c6c39509f2834815640282f277fef92f4
[ "MIT" ]
2
2020-07-08T23:21:48.000Z
2021-01-10T08:30:39.000Z
src/components/novels/Websites/jalfordme/index.js
jacob-alford/jalford-me
8dc7a30c6c39509f2834815640282f277fef92f4
[ "MIT" ]
10
2020-07-12T21:59:56.000Z
2022-02-26T19:07:55.000Z
src/components/novels/Websites/jalfordme/index.js
jacob-alford/jalford-me
8dc7a30c6c39509f2834815640282f277fef92f4
[ "MIT" ]
null
null
null
import React from 'react'; import TemplateWebsite from 'components/novels/Websites/Template.js'; import TechListing from 'components/words/IconText'; import reactlogo from 'assets/websites/reactlogo.svg'; import reduxlogo from 'assets/websites/reduxlogo.svg'; import firebaselogo from 'assets/websites/firebaselogo.svg'; import featured2 from 'assets/websites/jalfordme_feat2.webp'; import featured2Jpeg from 'assets/websites/jalfordme_feat2.jpg'; export default function Jalfordme({ featured }) { return ( <TemplateWebsite heading='jalford.me' tagline='Inspiring artful design, and proper practice' year='(2019)' action={{ text: 'Live Demo', href: '/' }} image={{ source: featured2, altSource: featured2Jpeg, alt: 'The Duncan Strauss Mysteries', href: '/posts' }} featured={featured} techRP={() => ( <React.Fragment> <TechListing img={reactlogo} text='React' url='https://reactjs.org/' /> <TechListing img={reduxlogo} text='Redux' url='https://react-redux.js.org/' /> <TechListing img={firebaselogo} text='Firebase' url='https://firebase.google.com/' /> </React.Fragment> )} /> ); }
30.209302
88
0.628176
d6a6753a059bf38694dbf0a1e01228e3f71b6d3b
209
js
JavaScript
scripts/yarn_version.js
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
10
2019-02-20T18:41:32.000Z
2021-07-26T10:39:58.000Z
scripts/yarn_version.js
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
2,226
2019-02-20T20:03:57.000Z
2022-03-31T11:18:56.000Z
scripts/yarn_version.js
mitodl/mit-xpro
981d6c87d963837f0b9ccdd996067fe81394dba4
[ "BSD-3-Clause" ]
4
2020-08-26T19:26:02.000Z
2021-03-09T17:46:47.000Z
// Install version of yarn specified in package.json const fs = require('fs'); const { engines: { yarn: yarnVersion }} = JSON.parse(fs.readFileSync(__dirname + "/../package.json")); console.log(yarnVersion)
29.857143
102
0.712919
d6a6a5300e4527c45cc2f2a3afd15313df73125e
2,507
js
JavaScript
src/common-ui/action-dialog/action-dialog.js
yuriilychak/dungeon-editor
2eecfa16753b5fe274745a5ef72c3e2b25de9579
[ "MIT" ]
null
null
null
src/common-ui/action-dialog/action-dialog.js
yuriilychak/dungeon-editor
2eecfa16753b5fe274745a5ef72c3e2b25de9579
[ "MIT" ]
null
null
null
src/common-ui/action-dialog/action-dialog.js
yuriilychak/dungeon-editor
2eecfa16753b5fe274745a5ef72c3e2b25de9579
[ "MIT" ]
null
null
null
import React, {memo} from 'react'; import {bool, string, func, oneOfType, arrayOf, element} from 'prop-types'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import DialogTitle from '@material-ui/core/DialogTitle'; import "./action-dialog.scss"; const ActionDialog = ({ open, onSubmit, onReject, submitTitle, rejectTitle, title, description, dialogId, children }) => { const contentTextId = `${dialogId}-title`; const buttonType = "contained"; return ( <Dialog open={open} aria-labelledby={contentTextId} classes={{ paper: "action-dialog-container" }} > <DialogTitle id={contentTextId}> {title} </DialogTitle> <DialogContent> <DialogContentText> {description} </DialogContentText> {children} </DialogContent> <DialogActions> <Button color="secondary" variant={buttonType} onClick={onReject} id={`${dialogId}-reject`} className="action-dialog-button" > {rejectTitle} </Button> <Button color="primary" variant={buttonType} onClick={onSubmit} id={`${dialogId}-submit`} className="action-dialog-button" > {submitTitle} </Button> </DialogActions> </Dialog> ); }; ActionDialog.propTypes = { open: bool, onReject: func, onSubmit: func, title: string.isRequired, description: string.isRequired, submitTitle: string.isRequired, rejectTitle: string.isRequired, dialogId: string.isRequired, children: oneOfType([element, arrayOf(element), string]) }; export default memo(ActionDialog);
30.950617
75
0.491025
d6a6c999a1e3ad04b1d1b520b507fe546c85e238
11,373
js
JavaScript
highmaps/610703.js
lbp0200/highcharts-china-geo
a8342835f3004d257c11aab196272b449aa58899
[ "MIT" ]
40
2016-06-24T03:14:42.000Z
2022-01-15T11:17:13.000Z
highmaps/610703.js
lbp0200/highcharts-china-geo
a8342835f3004d257c11aab196272b449aa58899
[ "MIT" ]
null
null
null
highmaps/610703.js
lbp0200/highcharts-china-geo
a8342835f3004d257c11aab196272b449aa58899
[ "MIT" ]
46
2016-01-12T16:08:07.000Z
2022-03-30T17:37:44.000Z
Highcharts.maps["countries/cn/610703"] = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"adcode":610703,"name":"南郑区","center":[106.942393,33.003341],"centroid":[106.967247,32.805271],"childrenNum":0,"level":"district","acroutes":[100000,610000,610700],"parent":{"adcode":610700},"longitude":106.967247,"latitude":32.805271},"geometry":{"type":"MultiPolygon","coordinates":[[[[5000,4688],[5000,4688],[5000,4688],[4999,4689],[4999,4690],[4999,4691],[4998,4692],[4998,4693],[4997,4695],[4996,4696],[4996,4696],[4995,4696],[4995,4697],[4994,4698],[4993,4698],[4993,4699],[4993,4699],[4992,4700],[4992,4701],[4992,4702],[4993,4702],[4994,4703],[4994,4704],[4995,4705],[4996,4707],[4996,4708],[4997,4711],[4997,4713],[4998,4715],[4998,4716],[4998,4716],[4997,4718],[4997,4720],[4996,4721],[4996,4721],[4996,4722],[4996,4723],[4996,4724],[4997,4725],[4997,4726],[4996,4727],[4996,4729],[4995,4729],[4995,4730],[4994,4730],[4993,4731],[4992,4731],[4991,4731],[4990,4731],[4990,4733],[4990,4733],[4990,4734],[4990,4736],[4990,4737],[4990,4738],[4991,4739],[4991,4739],[4991,4740],[4991,4740],[4990,4740],[4990,4740],[4989,4740],[4989,4740],[4988,4740],[4987,4740],[4987,4741],[4986,4741],[4985,4740],[4984,4740],[4984,4741],[4984,4742],[4984,4742],[4983,4742],[4983,4742],[4982,4742],[4981,4742],[4981,4743],[4980,4743],[4980,4743],[4979,4743],[4979,4743],[4979,4743],[4978,4742],[4977,4742],[4976,4741],[4976,4741],[4975,4741],[4973,4742],[4973,4742],[4972,4742],[4970,4742],[4970,4742],[4969,4742],[4969,4742],[4969,4742],[4968,4742],[4968,4742],[4968,4741],[4967,4741],[4967,4741],[4964,4740],[4963,4740],[4962,4740],[4962,4740],[4961,4740],[4961,4741],[4960,4742],[4960,4742],[4960,4743],[4960,4744],[4960,4744],[4959,4744],[4958,4744],[4958,4744],[4957,4744],[4956,4744],[4956,4744],[4955,4744],[4955,4744],[4954,4745],[4954,4745],[4953,4745],[4952,4745],[4951,4745],[4949,4745],[4949,4744],[4948,4744],[4948,4743],[4948,4743],[4947,4742],[4947,4742],[4946,4742],[4946,4742],[4945,4742],[4945,4741],[4945,4741],[4944,4741],[4944,4741],[4943,4741],[4943,4742],[4942,4742],[4941,4743],[4940,4743],[4939,4742],[4939,4743],[4938,4743],[4938,4742],[4938,4742],[4938,4741],[4938,4740],[4937,4740],[4937,4739],[4937,4739],[4936,4740],[4936,4740],[4936,4741],[4936,4741],[4936,4741],[4936,4742],[4936,4743],[4936,4743],[4936,4744],[4936,4745],[4936,4745],[4936,4746],[4936,4746],[4937,4747],[4937,4748],[4937,4748],[4936,4749],[4935,4748],[4934,4748],[4933,4748],[4932,4748],[4930,4748],[4929,4749],[4928,4749],[4928,4749],[4927,4749],[4927,4749],[4926,4748],[4926,4748],[4926,4748],[4924,4747],[4923,4746],[4922,4745],[4920,4744],[4919,4743],[4918,4743],[4917,4742],[4917,4742],[4916,4741],[4915,4740],[4915,4740],[4913,4739],[4913,4739],[4911,4738],[4910,4739],[4910,4739],[4909,4738],[4908,4738],[4907,4738],[4907,4737],[4907,4737],[4906,4737],[4905,4737],[4904,4737],[4904,4738],[4902,4738],[4902,4738],[4901,4738],[4901,4738],[4899,4739],[4899,4739],[4898,4739],[4898,4739],[4897,4738],[4897,4738],[4897,4738],[4897,4737],[4896,4737],[4896,4737],[4896,4737],[4895,4737],[4895,4736],[4894,4736],[4894,4736],[4893,4736],[4891,4736],[4889,4736],[4888,4736],[4888,4737],[4888,4738],[4888,4740],[4887,4742],[4886,4743],[4887,4744],[4888,4745],[4888,4745],[4888,4746],[4888,4746],[4888,4747],[4888,4747],[4889,4747],[4889,4747],[4889,4747],[4889,4747],[4889,4748],[4890,4749],[4890,4749],[4891,4749],[4892,4750],[4892,4750],[4892,4751],[4892,4751],[4893,4751],[4893,4751],[4893,4752],[4893,4752],[4893,4753],[4893,4753],[4893,4754],[4893,4754],[4893,4754],[4892,4754],[4892,4754],[4891,4755],[4891,4756],[4891,4756],[4890,4756],[4890,4757],[4889,4757],[4889,4757],[4889,4759],[4889,4761],[4889,4761],[4888,4762],[4888,4763],[4887,4763],[4887,4763],[4887,4764],[4886,4764],[4886,4765],[4886,4766],[4886,4766],[4886,4767],[4886,4768],[4885,4768],[4885,4769],[4885,4769],[4885,4770],[4885,4771],[4885,4772],[4885,4772],[4886,4772],[4886,4773],[4887,4773],[4887,4774],[4888,4774],[4888,4775],[4887,4775],[4887,4775],[4887,4775],[4887,4776],[4887,4777],[4888,4778],[4887,4778],[4887,4778],[4886,4779],[4886,4779],[4885,4780],[4885,4780],[4886,4781],[4886,4781],[4886,4781],[4886,4782],[4885,4782],[4885,4783],[4885,4783],[4886,4783],[4886,4784],[4887,4785],[4888,4785],[4888,4785],[4889,4786],[4891,4787],[4891,4788],[4892,4788],[4893,4788],[4895,4789],[4896,4789],[4897,4790],[4898,4790],[4898,4790],[4899,4791],[4900,4791],[4901,4791],[4903,4791],[4904,4791],[4904,4791],[4906,4791],[4907,4791],[4907,4790],[4908,4790],[4909,4790],[4910,4789],[4910,4788],[4911,4788],[4912,4788],[4913,4786],[4913,4786],[4914,4786],[4915,4786],[4915,4785],[4917,4785],[4918,4785],[4919,4785],[4921,4785],[4921,4786],[4921,4787],[4921,4787],[4922,4787],[4922,4788],[4922,4787],[4923,4787],[4924,4788],[4924,4788],[4925,4788],[4925,4788],[4926,4787],[4926,4787],[4926,4787],[4927,4788],[4927,4788],[4927,4789],[4928,4789],[4928,4789],[4928,4790],[4928,4791],[4928,4791],[4928,4791],[4928,4791],[4927,4791],[4926,4791],[4926,4791],[4927,4792],[4927,4792],[4928,4793],[4928,4794],[4928,4794],[4928,4794],[4929,4793],[4929,4793],[4930,4793],[4930,4793],[4930,4794],[4930,4794],[4929,4794],[4930,4794],[4930,4794],[4930,4794],[4930,4795],[4930,4795],[4930,4795],[4931,4796],[4931,4797],[4931,4797],[4930,4798],[4930,4798],[4929,4798],[4929,4798],[4928,4798],[4928,4798],[4928,4798],[4926,4799],[4926,4799],[4926,4800],[4926,4801],[4927,4802],[4929,4803],[4929,4804],[4929,4804],[4929,4804],[4929,4805],[4928,4805],[4927,4805],[4927,4806],[4927,4807],[4927,4807],[4927,4808],[4927,4808],[4926,4808],[4927,4809],[4928,4809],[4928,4809],[4930,4810],[4929,4811],[4930,4811],[4931,4812],[4931,4812],[4931,4813],[4932,4814],[4933,4815],[4934,4815],[4933,4816],[4934,4816],[4935,4817],[4935,4817],[4934,4818],[4932,4819],[4933,4820],[4933,4820],[4934,4821],[4936,4821],[4937,4822],[4937,4823],[4938,4823],[4938,4824],[4938,4825],[4938,4826],[4939,4827],[4939,4827],[4940,4827],[4943,4827],[4943,4827],[4944,4828],[4945,4829],[4946,4829],[4947,4829],[4948,4830],[4949,4831],[4950,4831],[4951,4831],[4952,4830],[4953,4830],[4954,4830],[4955,4831],[4956,4832],[4957,4833],[4957,4833],[4958,4833],[4959,4833],[4960,4834],[4961,4834],[4962,4834],[4964,4834],[4964,4834],[4965,4834],[4966,4835],[4966,4835],[4966,4835],[4966,4836],[4966,4836],[4966,4836],[4967,4835],[4967,4835],[4967,4834],[4968,4833],[4969,4832],[4970,4832],[4971,4831],[4971,4831],[4972,4830],[4973,4829],[4973,4829],[4975,4827],[4976,4826],[4978,4825],[4979,4824],[4980,4823],[4980,4821],[4980,4820],[4981,4818],[4982,4818],[4982,4818],[4984,4817],[4984,4817],[4984,4816],[4985,4816],[4985,4816],[4987,4818],[4988,4818],[4988,4818],[4989,4819],[4990,4818],[4991,4817],[4992,4816],[4993,4815],[4993,4814],[4993,4814],[4995,4812],[4996,4812],[4996,4811],[4998,4812],[4998,4812],[5001,4815],[5002,4817],[5003,4819],[5003,4820],[5004,4820],[5005,4820],[5007,4819],[5013,4822],[5015,4825],[5016,4827],[5017,4829],[5019,4828],[5019,4828],[5020,4827],[5020,4827],[5020,4826],[5020,4826],[5019,4825],[5018,4824],[5018,4823],[5018,4822],[5017,4820],[5017,4818],[5017,4818],[5017,4817],[5017,4817],[5016,4817],[5016,4816],[5016,4816],[5016,4816],[5017,4815],[5017,4814],[5018,4814],[5018,4814],[5018,4813],[5018,4812],[5018,4811],[5017,4811],[5016,4810],[5016,4810],[5016,4809],[5015,4809],[5014,4808],[5013,4808],[5013,4807],[5013,4807],[5013,4807],[5012,4806],[5012,4805],[5011,4805],[5012,4805],[5012,4804],[5011,4804],[5010,4802],[5010,4801],[5010,4800],[5010,4798],[5010,4797],[5011,4796],[5011,4795],[5012,4795],[5013,4795],[5014,4795],[5014,4794],[5015,4794],[5014,4793],[5013,4793],[5012,4792],[5012,4792],[5012,4792],[5011,4792],[5011,4792],[5010,4792],[5010,4791],[5010,4790],[5009,4790],[5009,4789],[5009,4789],[5008,4790],[5008,4790],[5008,4789],[5008,4788],[5007,4788],[5007,4788],[5006,4788],[5006,4788],[5007,4788],[5007,4787],[5008,4787],[5008,4787],[5008,4786],[5008,4786],[5008,4785],[5008,4784],[5008,4784],[5007,4783],[5007,4783],[5007,4783],[5006,4783],[5005,4782],[5005,4782],[5005,4781],[5005,4781],[5005,4780],[5005,4780],[5005,4779],[5006,4779],[5007,4779],[5007,4779],[5008,4779],[5008,4780],[5009,4780],[5008,4781],[5009,4781],[5009,4781],[5009,4781],[5010,4782],[5011,4782],[5011,4782],[5012,4782],[5012,4783],[5012,4783],[5012,4783],[5012,4784],[5013,4785],[5013,4785],[5013,4786],[5013,4786],[5014,4786],[5014,4787],[5014,4787],[5014,4787],[5015,4786],[5015,4786],[5016,4786],[5016,4785],[5016,4784],[5016,4784],[5016,4783],[5016,4783],[5016,4783],[5015,4782],[5015,4782],[5014,4781],[5013,4781],[5012,4780],[5012,4780],[5012,4779],[5011,4779],[5011,4779],[5010,4778],[5010,4778],[5011,4777],[5011,4777],[5011,4775],[5011,4775],[5012,4775],[5012,4774],[5012,4774],[5013,4771],[5013,4769],[5013,4769],[5014,4768],[5014,4767],[5015,4766],[5015,4765],[5016,4765],[5016,4764],[5017,4764],[5018,4762],[5019,4761],[5019,4760],[5019,4759],[5019,4758],[5020,4757],[5021,4756],[5022,4756],[5023,4756],[5024,4756],[5025,4755],[5026,4755],[5027,4755],[5028,4755],[5029,4755],[5029,4754],[5030,4754],[5030,4753],[5031,4752],[5031,4751],[5031,4750],[5032,4750],[5033,4750],[5035,4750],[5036,4750],[5037,4749],[5037,4749],[5038,4749],[5039,4748],[5039,4748],[5039,4747],[5039,4746],[5039,4746],[5038,4745],[5038,4745],[5037,4744],[5037,4744],[5037,4743],[5037,4742],[5038,4742],[5038,4742],[5037,4741],[5035,4741],[5034,4740],[5033,4740],[5033,4739],[5032,4738],[5032,4738],[5032,4737],[5031,4736],[5031,4736],[5030,4735],[5030,4734],[5030,4734],[5030,4733],[5030,4732],[5031,4731],[5031,4731],[5033,4730],[5033,4729],[5034,4728],[5034,4728],[5035,4727],[5035,4726],[5035,4725],[5036,4725],[5037,4724],[5037,4723],[5038,4723],[5039,4723],[5040,4722],[5040,4722],[5041,4722],[5042,4722],[5043,4722],[5044,4721],[5044,4721],[5045,4720],[5046,4719],[5046,4719],[5046,4718],[5046,4717],[5046,4716],[5046,4715],[5046,4714],[5046,4713],[5046,4711],[5046,4711],[5046,4709],[5046,4708],[5046,4708],[5046,4707],[5046,4705],[5047,4704],[5047,4703],[5048,4701],[5049,4700],[5049,4698],[5049,4698],[5049,4697],[5049,4697],[5048,4695],[5047,4694],[5047,4694],[5047,4693],[5046,4692],[5046,4692],[5045,4691],[5044,4691],[5043,4690],[5041,4689],[5040,4689],[5038,4689],[5038,4688],[5037,4688],[5036,4687],[5035,4687],[5034,4686],[5034,4685],[5034,4684],[5034,4684],[5034,4682],[5033,4682],[5033,4681],[5032,4681],[5032,4681],[5031,4680],[5031,4680],[5031,4679],[5031,4678],[5030,4676],[5030,4675],[5029,4674],[5029,4673],[5028,4672],[5027,4671],[5028,4670],[5027,4669],[5026,4668],[5025,4669],[5024,4670],[5022,4671],[5021,4671],[5020,4672],[5018,4673],[5017,4674],[5016,4675],[5016,4675],[5015,4677],[5015,4678],[5015,4679],[5015,4680],[5014,4681],[5014,4682],[5013,4683],[5012,4684],[5012,4684],[5010,4685],[5010,4686],[5009,4686],[5008,4686],[5008,4686],[5007,4686],[5007,4686],[5007,4686],[5007,4686],[5006,4686],[5006,4686],[5005,4686],[5005,4686],[5005,4686],[5004,4687],[5003,4686],[5003,4687],[5002,4687],[5002,4687],[5000,4688]]]]}}],"UTF8Encoding":true,"crs":{"type":"name","properties":{"name":"urn:ogc:def:crs:EPSG:3415"}},"hc-transform":{"default":{"crs":"+proj=lcc +lat_1=18 +lat_2=24 +lat_0=21 +lon_0=114 +x_0=500000 +y_0=500000 +ellps=WGS72 +towgs84=0,0,1.9,0,0,0.814,-0.38 +units=m +no_defs","scale":0.000129831107685,"jsonres":15.5,"jsonmarginX":-999,"jsonmarginY":9851,"xoffset":-3139937.49309,"yoffset":4358972.7486}}}
11,373
11,373
0.669129
d6a7a3fd1cf5241bbba6ee0e0a17d45538676776
1,739
js
JavaScript
lib/tourette.js
Kid-Binary/Tourette
0345c2f11a3153efcc454f3f640c4e39d68c4dd6
[ "MIT" ]
1
2016-09-06T12:31:15.000Z
2016-09-06T12:31:15.000Z
lib/tourette.js
Kid-Binary/Tourette
0345c2f11a3153efcc454f3f640c4e39d68c4dd6
[ "MIT" ]
null
null
null
lib/tourette.js
Kid-Binary/Tourette
0345c2f11a3153efcc454f3f640c4e39d68c4dd6
[ "MIT" ]
null
null
null
'use babel'; import { Disposable, CompositeDisposable } from 'atom'; import TouretteKeyboardLayout from './tourette-keyboard-layout'; import TouretteKeyboardLogger from './tourette-keyboard-logger'; const Tourette = { subscriptions: null, activate(state) { this.subscriptions = new CompositeDisposable(); this.subscriptions.add( atom.workspace.observeTextEditors((editor) => { let editorView = atom.views.getView(editor); editorView.addEventListener('keydown', TouretteKeyboardLogger.keydown.bind(TouretteKeyboardLogger) ); editorView.addEventListener('keypress', TouretteKeyboardLogger.keypress.bind(TouretteKeyboardLogger) ); editorView.addEventListener('keyup', TouretteKeyboardLogger.keyup.bind(TouretteKeyboardLogger) ); }) ); this.subscriptions.add( atom.commands.add('atom-workspace', { 'tourette:convert': this.convert.bind(this) }) ); }, deactivate() { this.subscriptions.dispose(); }, convert() { let editor = atom.workspace.getActiveTextEditor(); if( editor ) { let selection = editor.getSelectedText(); if( selection ) { let reducedKeyLog = TouretteKeyboardLogger.getReducedKeyLog(); let convertedSelection = TouretteKeyboardLayout.convertToKeyboardLayout( selection, reducedKeyLog ); editor.insertText(convertedSelection); } } }, }; export default Tourette;
28.508197
88
0.579643
d6a7ffb090ba5c455f29b69c249fc71c3e64ad82
902
js
JavaScript
cmds/put.js
bwarner/sync-gateway-cli
cc811f2c61dd7f0f5321868e1e4bd6e5267bde50
[ "MIT" ]
null
null
null
cmds/put.js
bwarner/sync-gateway-cli
cc811f2c61dd7f0f5321868e1e4bd6e5267bde50
[ "MIT" ]
null
null
null
cmds/put.js
bwarner/sync-gateway-cli
cc811f2c61dd7f0f5321868e1e4bd6e5267bde50
[ "MIT" ]
null
null
null
const async = require('async'); const util = require('../lib/util'); const SG = require('../lib/service'); module.exports = function (program) { program .command('put [file]') .option('-k, --key <key>') .option('-r, --rev <rev>', 'revision') .description('put a document into database') .action(function (file, options) { util.gateway(options, (error, gateway) => { if (error) { console.error("could not create gateway: ", error); process.exit(-1); } let stream = file ? util.openStream(file) : process.stdin; async.waterfall([ util.readInput.bind(null, stream, 'utf8'), util.jsonify, SG.put.bind(null, gateway, options) ], (error, result) => { if (error) { if (error.message) console.log(error.message); process.exit(-1); } }); }); }); };
27.333333
64
0.544346
d6a80ee1336157420fd7e362a50aff3df9af61b4
569
js
JavaScript
test/reducers/wireframe.spec.js
snada/typeface-to-geometry
3c8da49c8b44842cd528bd88afe2e56f0bb73ca0
[ "MIT" ]
2
2017-02-07T10:08:58.000Z
2019-06-19T03:24:21.000Z
test/reducers/wireframe.spec.js
snada/typeface-to-geometry
3c8da49c8b44842cd528bd88afe2e56f0bb73ca0
[ "MIT" ]
null
null
null
test/reducers/wireframe.spec.js
snada/typeface-to-geometry
3c8da49c8b44842cd528bd88afe2e56f0bb73ca0
[ "MIT" ]
null
null
null
import { expect } from 'chai'; import reducer from '../../reducers/wireframe'; import { wireframeSwitched, backPressed } from '../../actions'; describe('reducers', () => { describe('wireframe', () => { it('should return the initial state', () => { expect(reducer(undefined, {})).to.eql(false); }); it('should return new wireframe', () => { expect(reducer(false, wireframeSwitched(true))).to.eql(true); }); it('should reset when back is pressed', () => { expect(reducer(true, backPressed())).to.eql(false); }); }); });
25.863636
67
0.588752
d6abf4d0cc16e8e4f87f85e4c4d71dd715f6493a
10,772
js
JavaScript
modules/merge.js
samuelngs/db-merge-tool
f7cfb01fc48605328aa3f4aae9a2b9045cb20f13
[ "MIT" ]
null
null
null
modules/merge.js
samuelngs/db-merge-tool
f7cfb01fc48605328aa3f4aae9a2b9045cb20f13
[ "MIT" ]
null
null
null
modules/merge.js
samuelngs/db-merge-tool
f7cfb01fc48605328aa3f4aae9a2b9045cb20f13
[ "MIT" ]
null
null
null
var fs = require('fs'), async = require('async'), mysql = require('mysql'), colors = require('colors'), ProgressBar = require('progress'), _ = require('lodash'); var emitter = new (require('events').EventEmitter); var Merge = function(arg) { if (!(this instanceof Merge)) { return new Merge(arg); } this.config = {}; this.validConfig = false; this.connections = { dist: undefined }; this.successCount = 0; this.imported = false; this.tables = {}; try { this.config = require(arg).database; } catch (e) {}; this.validConfig = typeof this.config === 'object' && typeof this.config.dist === 'object' && typeof this.config.dist.db_host === 'string' && typeof this.config.dist.db_port === 'number' && typeof this.config.dist.db_name === 'string' && typeof this.config.dist.db_user === 'string'; if (!this.config.export) { this.config.export = 'backup'; } if (!this.config.exclude) { this.config.exclude = []; } if (!this.validConfig) { console.error('# Configuration file is invalid') } return this; } Merge.prototype.connect = function(err) { if (!this.validConfig) return; var self = this; async.each(Object.keys(this.connections), function(id, complete) { self.connections[id] = mysql.createConnection({ host: self.config[id].db_host, port: self.config[id].db_port, user: self.config[id].db_user, password: self.config[id].db_pass }); self.connections[id].connect(function(err) { if (!err) { self.successCount++ } emitter.emit('connect', id, err ? err.stack : '# `' + id + '` connected as id ' + self.connections[id].threadId, self.isConnected()) complete(); }); }); return this; } Merge.prototype.mysql = function(name) { return this.connections[name] } Merge.prototype.assign = function(callback) { var self = this, folderPath = __dirname + '/../' + this.config.export; async.waterfall([ function(complete) { fs.readdir(folderPath, function(err, files) { var tables = []; async.each(files, function(file, next) { var filePath = folderPath + '/' + file; fs.lstat(filePath, function(err, stats) { if (stats.isDirectory() && self.config.exclude.indexOf(file) == -1) { tables.push(file) } next(); }); }, function(err) { complete(err, tables); }) }); }, function(tables, complete) { var tasks = []; async.each(tables, function(table, next) { var task = self.generateTask.call(self, table, folderPath + '/' + table); tasks.push(task); next(); }, function(err) { complete(undefined, tasks); }) } ], function(err, tasks) { if (typeof callback === 'function') callback.call(self, err, tasks); }) } Merge.prototype.generateTask = function(tableName, path) { var self = this; return function(complete) { async.waterfall([ function(next) { self.import(tableName, function(err) { next(); }); }, function(next) { var cache = self.tables[tableName], primaryId = cache['primary_id'], primaryData = cache['primary'] || [], minorData = cache['minor'] || []; next(undefined, primaryId, primaryData, minorData); }, function(primaryId, primaryData, minorData, next) { if (typeof primaryId === 'string' && primaryData.length > 0 && typeof primaryData[0][primaryId] === 'number' && minorData.length > 0 && typeof minorData[0][primaryId] === 'number') { emitter.emit('status', ('Sorting table `' + tableName + '`...').yellow); primaryData = self.quickSort(primaryData, primaryId); minorData = self.quickSort(minorData, primaryId); emitter.emit('status', ('Remove duplicates from `' + tableName + '`...').yellow); primaryData = _.uniq(primaryData, true, primaryId); minorData = _.uniq(minorData, true, primaryId); } next(undefined, primaryId, primaryData, minorData); }, function(primaryId, primaryData, minorData, next) { var arr = [], maxRowToCombine = 65000; if (typeof primaryId === 'string' && primaryData.length > 0 && typeof primaryData[0][primaryId] === 'number' && minorData.length > 0 && typeof minorData[0][primaryId] === 'number' && primaryData.length < maxRowToCombine && minorData.length < maxRowToCombine) { emitter.emit('status', ('Merging table `' + tableName + '` [Combine Method]... (' + (primaryData.length > minorData.length ? primaryData.length : minorData.length) + ' Records)').blue); arr = self.combine(minorData, primaryData, primaryId); next(undefined, arr); } else { if (primaryData.length > minorData.length) { emitter.emit('status', ('Merging table `' + tableName + '` [Add ' + (primaryData.length - minorData.length) + ' missing rows from primary]... (' + primaryData.length + ' Records)').blue); arr = minorData.concat(_.takeRight(primaryData, primaryData.length - minorData.length)); } else if (minorData.length < primaryData.length) { emitter.emit('status', ('Merging table `' + tableName + '` [Add ' + (minorData.length - primaryData.length) + ' missing rows from minor]... (' + minorData.length + ' Records)').blue); arr = primaryData.concat(_.takeRight(minorData, minorData.length - primaryData.length)); } else { emitter.emit('status', ('Merging table `' + tableName + '` [Use Primary]...').blue); arr = primaryData; } next(undefined, arr); } }, function(data, next) { var createCmd = self.tables[tableName].create; self.mysql('dist').query(createCmd, function(err, results, fields) { emitter.emit('status', err ? ('Failed to create table `' + tableName + '`: ' + err).red : ('Created table `' + tableName + '`...').yellow); next(err, data); }); }, function(data, next) { var refs = []; var parts = []; var maxPerInsert = 1000; async.each(data, function(row, done) { var cols = []; var arr = []; if (refs.length == 0) { for (var prop in row) { refs.push(prop); } } for (var prop in row) { if (refs.indexOf(prop) > -1) { arr.push(row[prop]); } } if (parts.length == 0 || (parts.length > 0 && parts[parts.length - 1].length >= maxPerInsert)) { parts.push([]); } parts[parts.length - 1].push(arr); done(); }, function(err) { next(undefined, refs, parts); }); }, function(refs, parts, next) { var cols = refs.map(function(col) { return '`' + col + '`' }).join(', '); var idx = 0; async.each(parts, function(row, done) { var cmd = 'REPLACE INTO `' + tableName + '` (' + cols + ') VALUES ?'; self.mysql('dist').query(cmd, [row], function(err, results, fields) { if (err) { emitter.emit('status', ('[' + (idx + 1) + '] Failed to insert ' + row.length + ' rows to table `' + tableName + '`: ' + err).red); } else { emitter.emit('status', ('[' + (idx + 1) + '] Insert ' + row.length + ' rows to table `' + tableName + '` successfully').yellow); } idx++; done(); }); }, function(err) { next(err); }) }, function(next) { delete self.tables[tableName]; next(); } ], function(err) { complete() }) } } Merge.prototype.start = function() { var self = this; self.assign(function(err, tasks) { self.mysql('dist').query('DROP DATABASE IF EXISTS ' + self.config.dist.db_name, function(err, results, fields) { self.mysql('dist').query('CREATE DATABASE IF NOT EXISTS ' + self.config.dist.db_name, function(err, results, fields) { self.mysql('dist').changeUser({ host: self.config.dist.db_host, port: self.config.dist.db_port, user: self.config.dist.db_user, password: self.config.dist.db_pass, database: self.config.dist.db_name }, function(err) { async.waterfall(tasks, function(err) { emitter.emit('end', '[All tasks are completed]'.cyan); }); }); }); }); }); } Merge.prototype.import = function(tableName, callback) { var self = this, folderPath = __dirname + '/../' + self.config.export + '/' + tableName; async.waterfall([ function(complete) { self.tables[tableName] || (self.tables[tableName] = {}); complete(); }, function(complete) { async.each(['primary', 'minor'], function(id, next) { fs.readFile(folderPath + '/' + id + '-table.json', 'utf-8', function (err, data) { self.tables[tableName][id] = JSON.parse(data || '[]'); next(err); }); }, function(err) { complete(err); }); }, function(complete) { fs.readFile(folderPath + '/primary-structure.sql', 'utf-8', function (err, data) { self.tables[tableName]['create'] = data || ''; complete(err); }); }, function(complete) { fs.readFile(folderPath + '/primary-primary.txt', 'utf-8', function (err, data) { self.tables[tableName]['primary_id'] = (data || '').trim() || undefined; complete(err); }); } ], function(err) { emitter.emit('import', tableName, err); if (typeof callback === 'function') callback.call(self, err); }) } Merge.prototype.table = function(name) { return this.tables[name]; } Merge.prototype.combine = function(arr1, arr2, prop) { var arr3 = []; var bar = new ProgressBar('progress [:bar] :percent :etas', { total: arr1.length, complete: '=', incomplete: ' ', width: 40 }); for(var i in arr1){ var shared = false; for (var j in arr2) if (arr2[j][prop] == arr1[i][prop]) { shared = true; break; } if(!shared) arr3.push(arr1[i]) bar.tick(); } arr3 = arr3.concat(arr2); if (bar.complete) { emitter.emit('status', ('[Complete]').green); } return arr3; } Merge.prototype.quickSort = function(arr, key) { if (arr.length <= 1) { return arr; } var lessThan = [], greaterThan = [], pivotIndex = Math.floor(arr.length / 2), pivot = arr.splice(pivotIndex, 1)[0]; for (var i = 0, len = arr.length; i < len; i++) { if ((arr[i][key] < pivot[key]) || (arr[i][key] == pivot[key] && i < pivotIndex)) { lessThan.push(arr[i]); } else { greaterThan.push(arr[i]); } } return this.quickSort(lessThan, key).concat([pivot], this.quickSort(greaterThan, key)); } Merge.prototype.isConnected = function() { return Object.keys(this.connections).length == this.successCount; } Merge.prototype.on = function(event, callback) { emitter.on(event, callback); return this; } Merge.prototype.off = function(event, callback) { emitter.removeListener(event, callback); return this; } module.exports = exports = Merge;
31.043228
193
0.59599