text
stringlengths
2
1.05M
"use strict"; process.env.BABEL_ENV = "renderer"; const path = require("path"); const { dependencies } = require("../package.json"); const webpack = require("webpack"); const MinifyPlugin = require("babel-minify-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const { VueLoaderPlugin } = require("vue-loader"); /** * List of node_modules to include in webpack bundle * * Required for specific packages like Vue UI libraries * that provide pure *.vue files that need compiling * https://simulatedgreg.gitbooks.io/electron-vue/content/en/webpack-configurations.html#white-listing-externals */ let whiteListedModules = ["vue"]; let rendererConfig = { devtool: "#cheap-module-eval-source-map", entry: { renderer: path.join(__dirname, "../src/renderer/main.js") }, externals: [ ...Object.keys(dependencies || {}).filter( d => !whiteListedModules.includes(d) ) ], module: { rules: [ { test: /\.scss$/, use: ["vue-style-loader", "css-loader", "sass-loader"] }, { test: /\.sass$/, use: ["vue-style-loader", "css-loader", "sass-loader?indentedSyntax"] }, { test: /\.less$/, use: ["vue-style-loader", "css-loader", "less-loader"] }, { test: /\.css$/, use: ["vue-style-loader", "css-loader"] }, { test: /\.html$/, use: "vue-html-loader" }, { test: /\.js$/, use: "babel-loader", exclude: /node_modules/ }, { test: /\.node$/, use: "node-loader" }, { test: /\.vue$/, use: { loader: "vue-loader", options: { extractCSS: process.env.NODE_ENV === "production", loaders: { sass: "vue-style-loader!css-loader!sass-loader?indentedSyntax=1", scss: "vue-style-loader!css-loader!sass-loader", less: "vue-style-loader!css-loader!less-loader" } } } }, { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, use: { loader: "url-loader", query: { limit: 10000, name: "imgs/[name]--[folder].[ext]" } } }, { test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, loader: "url-loader", options: { limit: 10000, name: "media/[name]--[folder].[ext]" } }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, use: { loader: "url-loader", query: { limit: 10000, name: "fonts/[name]--[folder].[ext]" } } } ] }, node: { __dirname: process.env.NODE_ENV !== "production", __filename: process.env.NODE_ENV !== "production" }, plugins: [ new VueLoaderPlugin(), new MiniCssExtractPlugin({ filename: "styles.css" }), new HtmlWebpackPlugin({ filename: "index.html", template: path.resolve(__dirname, "../src/index.ejs"), templateParameters(compilation, assets, options) { return { compilation: compilation, webpack: compilation.getStats().toJson(), webpackConfig: compilation.options, htmlWebpackPlugin: { files: assets, options: options }, process }; }, minify: { collapseWhitespace: true, removeAttributeQuotes: true, removeComments: true }, nodeModules: process.env.NODE_ENV !== "production" ? path.resolve(__dirname, "../node_modules") : false }), new webpack.HotModuleReplacementPlugin(), new webpack.NoEmitOnErrorsPlugin() ], output: { filename: "[name].js", libraryTarget: "commonjs2", path: path.join(__dirname, "../dist/electron") }, resolve: { alias: { "@": path.join(__dirname, "../src/renderer"), vue$: "vue/dist/vue.esm.js" }, extensions: [".js", ".vue", ".json", ".css", ".node"] }, target: "electron-renderer" }; /** * Adjust rendererConfig for development settings */ if (process.env.NODE_ENV !== "production") { rendererConfig.plugins.push( new webpack.DefinePlugin({ __static: `"${path.join(__dirname, "../static").replace(/\\/g, "\\\\")}"` }) ); } /** * Adjust rendererConfig for production settings */ if (process.env.NODE_ENV === "production") { rendererConfig.devtool = ""; rendererConfig.plugins.push( new MinifyPlugin(), new CopyWebpackPlugin([ { from: path.join(__dirname, "../static"), to: path.join(__dirname, "../dist/electron/static"), ignore: [".*"] } ]), new webpack.DefinePlugin({ "process.env.NODE_ENV": '"production"' }), new webpack.LoaderOptionsPlugin({ minimize: true }) ); } module.exports = rendererConfig;
const _ = require('lodash'); const {Router} = require('express'); const body = require('body-parser'); const MagicLink = require('@tryghost/magic-link'); const StripePaymentProcessor = require('./lib/stripe'); const Tokens = require('./lib/tokens'); const Users = require('./lib/users'); const Metadata = require('./lib/metadata'); const common = require('./lib/common'); const {getGeolocationFromIP} = require('./lib/geolocation'); module.exports = function MembersApi({ tokenConfig: { issuer, privateKey, publicKey }, auth: { allowSelfSignup = true, getSigninURL, tokenProvider }, paymentConfig, mail: { transporter, getText, getHTML, getSubject }, models: { StripeWebhook, StripeCustomer, StripeCustomerSubscription, Member }, logger }) { if (logger) { common.logging.setLogger(logger); } const {encodeIdentityToken, decodeToken} = Tokens({privateKey, publicKey, issuer}); const metadata = Metadata({ Member, StripeWebhook, StripeCustomer, StripeCustomerSubscription }); async function hasActiveStripeSubscriptions() { const firstActiveSubscription = await StripeCustomerSubscription.findOne({ status: 'active' }); if (firstActiveSubscription) { return true; } const firstTrialingSubscription = await StripeCustomerSubscription.findOne({ status: 'trialing' }); if (firstTrialingSubscription) { return true; } return false; } const stripeStorage = { async get(member) { return metadata.getMetadata('stripe', member); }, async set(data) { return metadata.setMetadata('stripe', data); } }; const stripe = paymentConfig.stripe ? new StripePaymentProcessor(paymentConfig.stripe, stripeStorage, common.logging) : null; async function ensureStripe(_req, res, next) { if (!stripe) { res.writeHead(400); return res.end('Stripe not configured'); } try { await stripe.ready(); next(); } catch (err) { res.writeHead(500); return res.end('There was an error configuring stripe'); } } const magicLinkService = new MagicLink({ transporter, tokenProvider, getSigninURL, getText, getHTML, getSubject }); const users = Users({ stripe, Member }); async function sendEmailWithMagicLink({email, requestedType, tokenData, options = {forceEmailType: false}}) { let type = requestedType; if (!options.forceEmailType) { const member = await users.get({email}); if (member) { type = 'signin'; } else if (type !== 'subscribe') { type = 'signup'; } } return magicLinkService.sendMagicLink({email, type, tokenData: Object.assign({email}, tokenData)}); } function getMagicLink(email) { return magicLinkService.getMagicLink({tokenData: {email}, type: 'signin'}); } async function getMemberDataFromMagicLinkToken(token) { const {email, labels = [], name = '', oldEmail} = await magicLinkService.getDataFromToken(token); if (!email) { return null; } const member = oldEmail ? await getMemberIdentityData(oldEmail) : await getMemberIdentityData(email); if (member) { if (oldEmail) { // user exists but wants to change their email address if (oldEmail) { member.email = email; } await users.update(member, {id: member.id}); return getMemberIdentityData(email); } return member; } await users.create({name, email, labels}); return getMemberIdentityData(email); } async function getMemberIdentityData(email) { const model = await users.get({email}, {withRelated: ['stripeSubscriptions', 'stripeSubscriptions.customer']}); if (!model) { return null; } return model.toJSON(); } async function getMemberIdentityToken(email) { const member = await getMemberIdentityData(email); if (!member) { return null; } return encodeIdentityToken({sub: member.email}); } async function setMemberGeolocationFromIp(email, ip) { if (!email || !ip) { throw new common.errors.IncorrectUsageError({ message: 'setMemberGeolocationFromIp() expects email and ip arguments to be present' }); } const member = await users.get({email}, { withRelated: ['labels'] }); if (!member) { throw new common.errors.NotFoundError({ message: `Member with email address ${email} does not exist` }); } // max request time is 500ms so shouldn't slow requests down too much let geolocation = JSON.stringify(await getGeolocationFromIP(ip)); if (geolocation) { member.geolocation = geolocation; await users.update(member, {id: member.id}); } return getMemberIdentityData(email); } const middleware = { sendMagicLink: Router(), createCheckoutSession: Router(), createCheckoutSetupSession: Router(), handleStripeWebhook: Router(), updateSubscription: Router({mergeParams: true}) }; middleware.sendMagicLink.use(body.json(), async function (req, res) { const {email, emailType, oldEmail} = req.body; if (!email) { res.writeHead(400); return res.end('Bad Request.'); } try { if (oldEmail) { const existingMember = await users.get({email}); if (existingMember) { throw new common.errors.BadRequestError({ message: 'This email is already associated with a member' }); } } if (!allowSelfSignup) { const member = await users.get({email}); if (member) { const tokenData = _.pick(req.body, ['oldEmail']); await sendEmailWithMagicLink({email, tokenData, requestedType: emailType}); } } else { const tokenData = _.pick(req.body, ['labels', 'name', 'oldEmail']); await sendEmailWithMagicLink({email, tokenData, requestedType: emailType}); } res.writeHead(201); return res.end('Created.'); } catch (err) { const statusCode = (err && err.statusCode) || 500; common.logging.error(err); res.writeHead(statusCode); return res.end('Internal Server Error.'); } }); middleware.createCheckoutSession.use(ensureStripe, body.json(), async function (req, res) { const plan = req.body.plan; const identity = req.body.identity; if (!plan) { res.writeHead(400); return res.end('Bad Request.'); } // NOTE: never allow "Complimenatry" plan to be subscribed to from the client if (plan.toLowerCase() === 'complimentary') { res.writeHead(400); return res.end('Bad Request.'); } let email; try { if (!identity) { email = null; } else { const claims = await decodeToken(identity); email = claims.sub; } } catch (err) { res.writeHead(401); return res.end('Unauthorized'); } const member = email ? await users.get({email}, {withRelated: ['stripeSubscriptions']}) : null; // Do not allow members already with a subscription to initiate a new checkout session if (member && member.related('stripeSubscriptions').length > 0) { res.writeHead(403); return res.end('No permission'); } try { const sessionInfo = await stripe.createCheckoutSession(member, plan, { successUrl: req.body.successUrl, cancelUrl: req.body.cancelUrl, customerEmail: req.body.customerEmail, metadata: req.body.metadata }); res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(sessionInfo)); } catch (e) { const error = e.message || 'Unable to initiate checkout session'; res.writeHead(400); return res.end(error); } }); middleware.createCheckoutSetupSession.use(ensureStripe, body.json(), async function (req, res) { const identity = req.body.identity; let email; try { if (!identity) { email = null; } else { const claims = await decodeToken(identity); email = claims.sub; } } catch (err) { res.writeHead(401); return res.end('Unauthorized'); } const member = email ? await users.get({email}) : null; if (!member) { res.writeHead(403); return res.end('Bad Request.'); } const sessionInfo = await stripe.createCheckoutSetupSession(member, { successUrl: req.body.successUrl, cancelUrl: req.body.cancelUrl }); res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(sessionInfo)); }); middleware.handleStripeWebhook.use(ensureStripe, body.raw({type: 'application/json'}), async function (req, res) { let event; try { event = await stripe.parseWebhook(req.body, req.headers['stripe-signature']); } catch (err) { common.logging.error(err); res.writeHead(401); return res.end(); } common.logging.info(`Handling webhook ${event.type}`); try { if (event.type === 'customer.subscription.deleted') { await stripe.handleCustomerSubscriptionDeletedWebhook(event.data.object); } if (event.type === 'customer.subscription.updated') { await stripe.handleCustomerSubscriptionUpdatedWebhook(event.data.object); } if (event.type === 'invoice.payment_succeeded') { await stripe.handleInvoicePaymentSucceededWebhook(event.data.object); } if (event.type === 'invoice.payment_failed') { await stripe.handleInvoicePaymentFailedWebhook(event.data.object); } if (event.type === 'checkout.session.completed') { if (event.data.object.mode === 'setup') { common.logging.info('Handling "setup" mode Checkout Session'); const setupIntent = await stripe.getSetupIntent(event.data.object.setup_intent); const customer = await stripe.getCustomer(setupIntent.metadata.customer_id); const member = await users.get({email: customer.email}); await stripe.handleCheckoutSetupSessionCompletedWebhook(setupIntent, member); } else if (event.data.object.mode === 'subscription') { common.logging.info('Handling "subscription" mode Checkout Session'); const customer = await stripe.getCustomer(event.data.object.customer, { expand: ['subscriptions.data.default_payment_method'] }); let member = await users.get({email: customer.email}); if (!member) { const metadata = event.data.object.metadata; const name = (metadata && metadata.name) || ''; member = await users.create({email: customer.email, name}); } await stripe.handleCheckoutSessionCompletedWebhook(member, customer); const payerName = _.get(customer, 'subscriptions.data[0].default_payment_method.billing_details.name'); if (payerName && !member.get('name')) { await users.update({name: payerName}, {id: member.get('id')}); } const emailType = 'signup'; await sendEmailWithMagicLink({email: customer.email, requestedType: emailType, options: {forceEmailType: true}}); } else if (event.data.object.mode === 'payment') { common.logging.info('Ignoring "payment" mode Checkout Session'); } } res.writeHead(200); res.end(); } catch (err) { common.logging.error(`Error handling webhook ${event.type}`, err); res.writeHead(400); res.end(); } }); middleware.updateSubscription.use(ensureStripe, body.json(), async function (req, res) { const identity = req.body.identity; const cancelAtPeriodEnd = req.body.cancel_at_period_end; const planName = req.body.planName; const subscriptionId = req.params.id; let member; try { if (!identity) { throw new common.errors.BadRequestError({ message: 'Updating subscription failed! Could not find member' }); } const claims = await decodeToken(identity); const email = claims.sub; member = email ? await users.get({email}, {withRelated: ['stripeSubscriptions']}) : null; if (!member) { throw new common.errors.BadRequestError({ message: 'Updating subscription failed! Could not find member' }); } } catch (err) { res.writeHead(401); return res.end('Unauthorized'); } // Don't allow removing subscriptions that don't belong to the member const plan = planName && stripe.findPlanByNickname(planName); if (planName && !plan) { throw new common.errors.BadRequestError({ message: 'Updating subscription failed! Could not find plan' }); } const subscription = member.related('stripeSubscriptions').models.find( subscription => subscription.get('subscription_id') === subscriptionId ); if (!subscription) { res.writeHead(403); return res.end('No permission'); } if (cancelAtPeriodEnd === undefined && planName === undefined) { throw new common.errors.BadRequestError({ message: 'Updating subscription failed!', help: 'Request should contain "cancel" or "plan" field.' }); } const subscriptionUpdate = { id: subscription.get('subscription_id') }; if (cancelAtPeriodEnd !== undefined) { subscriptionUpdate.cancel_at_period_end = !!(cancelAtPeriodEnd); } if (plan) { subscriptionUpdate.plan = plan.id; } await stripe.updateSubscriptionFromClient(subscriptionUpdate); res.writeHead(204); res.end(); }); const getPublicConfig = function () { return Promise.resolve({ publicKey, issuer }); }; const bus = new (require('events').EventEmitter)(); if (stripe) { stripe.ready().then(() => { bus.emit('ready'); }).catch((err) => { bus.emit('error', err); }); } else { process.nextTick(() => bus.emit('ready')); } return { middleware, getMemberDataFromMagicLinkToken, getMemberIdentityToken, getMemberIdentityData, setMemberGeolocationFromIp, getPublicConfig, bus, sendEmailWithMagicLink, getMagicLink, hasActiveStripeSubscriptions, members: users }; };
const { GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, PATCH, } = require('../../../methods'); const joi = require('joi'); const parsers = require('./types-parsers'); const { merge, mergeAll, } = require('ramda'); const { common: commonParser } = parsers; const METHODS_NAMES = { [GET]: 'get', [POST]: 'post', [PUT]: 'put', [DELETE]: 'delete', [HEAD]: 'head', [OPTIONS]: 'options', [TRACE]: 'trace', [PATCH]: 'patch', }; const DEFAULT_INFO = { name: null, description: null, version: null, group: null, }; const parseValidation = (validationObject) => { const { isJoi, _type, } = validationObject; const type = isJoi ? _type : 'object'; const obj = isJoi ? validationObject : joi.object().keys(validationObject); const typedValidation = parsers[type](obj); const commonValidation = commonParser(obj, !isJoi); return { type, validation: merge(commonValidation, typedValidation), }; }; const parseRoute = ({ method, path, validation = {}, info = {}, }) => { const { query, body, params, } = validation; return mergeAll([ DEFAULT_INFO, info, { method: METHODS_NAMES[method], path, validation: { query: (query && parseValidation(query)) || null, body: (body && parseValidation(body)) || null, params: (params && parseValidation(params)) || null, }, }, ]); }; module.exports = router => router.map(parseRoute);
define( "dojox/atom/widget/nls/nb/FeedEntryViewer", ({ displayOptions: "[visningsalternativer]", title: "Tittel", authors: "Forfattere", contributors: "Bidragsytere", id: "ID", close: "[lukk]", updated: "Oppdatert", summary: "Sammendrag", content: "Innhold" }) );
var searchData= [ ['layoutxyz',['LayoutXYZ',['../namespaceopenvdb_1_1v6__1_1_1tools.html#a8206a04f26f57965d9cb369acafa33d7a696de54548c230cf353790fc1f73117f',1,'openvdb::v6_1::tools']]], ['layoutzyx',['LayoutZYX',['../namespaceopenvdb_1_1v6__1_1_1tools.html#a8206a04f26f57965d9cb369acafa33d7ac4b2238a60f4ee86d9ed5a72a13fe814',1,'openvdb::v6_1::tools']]], ['log2dim',['LOG2DIM',['../classopenvdb_1_1v6__1_1_1tools_1_1PointPartitioner.html#aded9ca14dda7907d5a7b2bf085928aafab1bd42b0e4f803f4f312d809b9f49716',1,'openvdb::v6_1::tools::PointPartitioner']]] ];
import React from 'react'; import { ItemDiv } from './styledComponents'; const GithubUser = ({ id, onSelectContent, avatar_url, score, name}) => { return ( <ItemDiv onClick={() => onSelectContent('github-user',{id, avatar_url, score, name})}> <img height='100px' src={avatar_url}/> <h4>{name}</h4> <p width='200px'>{score}</p> </ItemDiv> ); }; export default GithubUser;
const express = require('express'); const app = express(); const PORT = process.env.PORT || 3001; const apiRoute = require('./routes/apiRoute'); const htmlRoute = require('./routes/htmlRoute'); // parse all client string/array data app.use(express.urlencoded({extended:true})); // parse json app.use(express.json()); // allow access to front-end files app.use(express.static('public')); // access routes app.use('/api', apiRoute); app.use('/', htmlRoute); // server app.listen(PORT, () => { console.log(`API server now on port ${PORT}!`); });
const profileSelector = '.core-rail > *:first-child section >' const template = { profile: { selector: '.pv-top-card', fields: { name: `.text-heading-xlarge`, headline: `.text-body-medium`, location: `.pb2 .text-body-small`, connections: `li.text-body-small`, imageurl: { selector: `img.pv-top-card__photo`, attribute: 'src' } } }, about: { selector: '.pv-about-section', fields: { text: 'p' } }, positions: { selector: '#experience-section li:not(.pv-entity__position-group-role-item)', fields: { title: 'h3', link: { selector: 'a', attribute: 'href', }, url: { selector: 'a', attribute: 'href' }, companyName: '.pv-entity__secondary-title', location: '.pv-entity__location span:last-child', description: '.pv-entity__description', date1: '.pv-entity__date-range span:last-child', date2: '.pv-entity__bullet-item-v2', roles: { selector: 'li', hasChildrenFields: true, fields: { title: 'h3', description: '.pv-entity__description', date1: '.pv-entity__date-range span:last-child', date2: '.pv-entity__bullet-item-v2', location: '.pv-entity__location span:last-child' } } } }, educations: { selector: '#education-section li', fields: { title: 'h3', degree: 'span[class=pv-entity__comma-item]', url: { selector: 'a', attribute: 'href' }, fieldOfStudy: 'p.pv-entity__fos span:nth-child(2)', date1: '.pv-entity__dates time:nth-child(1)', date2: '.pv-entity__dates time:nth-child(2)', description: '.pv-entity__description' } }, skills: { selector: '.pv-skill-category-entity__skill-wrapper', fields: { title: '.pv-skill-category-entity__name-text', count: '.pv-skill-category-entity__endorsement-count' } }, recommendationsCount: { selector: '.recommendations-inlining', fields: { received: '.artdeco-tab:nth-child(1)', given: '.artdeco-tab:nth-child(2)' } }, recommendationsReceived: { selector: '.recommendations-inlining', fields: { user: { selector: '.pv-recommendation-entity__member', attribute: 'href' }, text: 'blockquote.pv-recommendation-entity__text', profileImage: { selector: 'a img', attribute: 'src' }, name: { selector: 'a h3' }, userDescription: { selector: '.pv-recommendation-entity__headline' } } }, recommendationsGiven: { selector: '.artdeco-tabpanel li.pv-recommendation-entity', fields: { user: { selector: '.pv-recommendation-entity__member', attribute: 'href' }, text: 'blockquote.pv-recommendation-entity__text', profileImage: { selector: 'a img', attribute: 'src' }, name: { selector: 'a h3' }, userDescription: { selector: '.pv-recommendation-entity__headline' } } }, accomplishments: { selector: '.pv-accomplishments-section > div', fields: { count: 'h3 span:last-child', title: '.pv-accomplishments-block__title', items: { selector: 'li', isMultipleFields: true } } }, peopleAlsoViewed: { selector: 'li.pv-browsemap-section__member-container', fields: { user: { selector: 'a', attribute: 'href' }, text: 'p', profileImage: { selector: 'a img', attribute: 'src' }, name: { selector: '.name' } } }, volunteerExperience: { selector: 'section.volunteering-section li', fields: { title: 'h3', experience: 'span[class=pv-entity__secondary-title]', location: '.pv-entity__location span:nth-child(2)', description: '.pv-volunteer-causes', date1: '.pv-entity__date-range span:nth-child(2)', date2: '.pv-entity__bullet-item' } }, courses: { selector: '.pv-accomplishments-section', fields: { name: '.pv-accomplishment-entity__title', year: '.pv-accomplishment-entity__course-number' } }, languages: { selector: '.pv-accomplishments-section', fields: { name: '.pv-accomplishment-entity__title', proficiency: '.pv-accomplishment-entity__proficiency', } }, projects: { selector: '.pv-accomplishments-section', fields: { name: '.pv-accomplishment-entity__title', date: '.pv-accomplishment-entity__date', description: '.pv-accomplishment-entity__description', link: { selector: '.pv-accomplishment-entity__external-source', attribute: 'href' } } } } module.exports = template
var book = { "name": "1 Tessalonicenses", "numChapters": 5, "chapters": { "1": { "1": "<span class=\"chapternum\">1 </span>Paulo, e Silvano, e Timóteo, à igreja dos tessalonicenses, em Deus, o Pai, e <i class=\"added\">no</i> Senhor Jesus Cristo: graça e paz tenhais de Deus, nosso Pai, e do Senhor Jesus Cristo.", "2": "<sup class=\"versenum\">2 </sup>Sempre damos graças a Deus por vós todos, fazendo menção de vós em nossas orações, ", "3": "<sup class=\"versenum\">3 </sup>lembrando-nos, sem cessar, da obra da vossa fé, do trabalho do amor e da paciência da esperança em nosso Senhor Jesus Cristo, diante de nosso Deus e Pai, ", "4": "<sup class=\"versenum\">4 </sup>sabendo, amados irmãos, que a vossa eleição é de Deus; ", "5": "<sup class=\"versenum\">5 </sup>porque o nosso evangelho não foi a vós somente em palavras, mas também em poder, e no Espírito Santo, e em muita certeza, como bem sabeis quais fomos entre vós, por amor de vós. ", "6": "<sup class=\"versenum\">6 </sup>E vós fostes feitos nossos imitadores e do Senhor, recebendo a palavra em muita tribulação, com gozo do Espírito Santo, ", "7": "<sup class=\"versenum\">7 </sup>de maneira que fostes exemplo para todos os fiéis na Macedônia e Acaia. ", "8": "<sup class=\"versenum\">8 </sup>Porque por vós soou a palavra do Senhor, não somente na Macedônia e Acaia, mas também em todos os lugares a vossa fé para com Deus se espalhou, de tal maneira que <i class=\"added\">já dela</i> não temos necessidade de falar coisa alguma; ", "9": "<sup class=\"versenum\">9 </sup>porque eles mesmos anunciam de nós qual a entrada que tivemos para convosco, e como dos ídolos vos convertestes a Deus, para servir ao Deus vivo e verdadeiro ", "10": "<sup class=\"versenum\">10 </sup>e esperar dos céus a seu Filho, a quem ressuscitou dos mortos, <i class=\"added\">a saber,</i> Jesus, que nos livra da ira futura." }, "2": { "1": "<span class=\"chapternum\">2 </span>Porque vós mesmos, irmãos, bem sabeis que a nossa entrada para convosco não foi vã; ", "2": "<sup class=\"versenum\">2 </sup>mas, havendo primeiro padecido e sido agravados em Filipos, como sabeis, tornamo-nos ousados em nosso Deus, para vos falar o evangelho de Deus com grande combate. ", "3": "<sup class=\"versenum\">3 </sup>Porque a nossa exortação não <i class=\"added\">foi</i> com engano, nem com imundícia, nem com fraudulência; ", "4": "<sup class=\"versenum\">4 </sup>mas, como fomos aprovados de Deus para que o evangelho nos fosse confiado, assim falamos, não como para agradar aos homens, mas a Deus, que prova o nosso coração. ", "5": "<sup class=\"versenum\">5 </sup>Porque, como bem sabeis, nunca usamos de palavras lisonjeiras, nem houve um pretexto de avareza; Deus <i class=\"added\">é</i> testemunha. ", "6": "<sup class=\"versenum\">6 </sup>E não buscamos glória dos homens, nem de vós, nem de outros, ainda que podíamos, como apóstolos de Cristo, ser-vos pesados; ", "7": "<sup class=\"versenum\">7 </sup>antes, fomos brandos entre vós, como a ama que cria seus filhos. ", "8": "<sup class=\"versenum\">8 </sup>Assim nós, sendo-vos tão afeiçoados, de boa vontade quiséramos comunicar-vos, não somente o evangelho de Deus, mas ainda a nossa própria alma; porquanto nos éreis <i class=\"added\">muito</i> queridos. ", "9": "<sup class=\"versenum\">9 </sup>Porque bem vos lembrais, irmãos, do nosso trabalho e fadiga; pois, trabalhando noite e dia, para não sermos pesados a nenhum de vós, vos pregamos o evangelho de Deus. ", "10": "<sup class=\"versenum\">10 </sup>Vós e Deus <i class=\"added\">sois</i> testemunhas de quão santa, justa e irrepreensivelmente nos houvemos para convosco, os que crestes. ", "11": "<sup class=\"versenum\">11 </sup>Assim como bem sabeis de que modo vos exortávamos e consolávamos, a cada um de vós, como o pai a seus filhos, ", "12": "<sup class=\"versenum\">12 </sup>para que vos conduzísseis dignamente para com Deus, que vos chama para o seu reino e glória.", "13": "<sup class=\"versenum\">13 </sup>Pelo que também damos, sem cessar, graças a Deus, pois, havendo recebido de nós a palavra da pregação de Deus, a recebestes, não <i class=\"added\">como</i> palavra de homens, mas (segundo é, na verdade) <i class=\"added\">como</i> palavra de Deus, a qual também opera em vós, os que crestes. ", "14": "<sup class=\"versenum\">14 </sup>Porque vós, irmãos, haveis sido feitos imitadores das igrejas de Deus que, na Judeia, estão em Jesus Cristo; porquanto também padecestes de vossos próprios concidadãos o mesmo que os judeus lhes fizeram a eles, ", "15": "<sup class=\"versenum\">15 </sup>os quais também mataram o Senhor Jesus e os seus próprios profetas, e nos têm perseguido, e não agradam a Deus, e são contrários a todos os homens. ", "16": "<sup class=\"versenum\">16 </sup>E nos impedem de pregar aos gentios as palavras da salvação, a fim de encherem sempre <i class=\"added\">a medida de</i> seus pecados; mas a ira <i class=\"added\">de Deus</i> caiu sobre eles até ao fim.", "17": "<sup class=\"versenum\">17 </sup>Nós, porém, irmãos, sendo privados de vós por um momento de tempo, de vista, mas não do coração, tanto mais procuramos com grande desejo ver o vosso rosto. ", "18": "<sup class=\"versenum\">18 </sup>Pelo que bem quisemos, uma e outra vez, ir ter convosco, pelo menos eu, Paulo, mas Satanás no-lo impediu. ", "19": "<sup class=\"versenum\">19 </sup>Porque qual é a nossa esperança, ou gozo, ou coroa de glória? Porventura, não <i class=\"added\">o sois</i> vós também diante de nosso Senhor Jesus Cristo em sua vinda? ", "20": "<sup class=\"versenum\">20 </sup>Na verdade, vós sois a nossa glória e gozo." }, "3": { "1": "<span class=\"chapternum\">3 </span>Pelo que, não podendo esperar mais, de boa mente quisemos deixar-nos ficar sós em Atenas; ", "2": "<sup class=\"versenum\">2 </sup>e enviamos Timóteo, nosso irmão, e ministro de Deus, e nosso cooperador no evangelho de Cristo, para vos confortar e vos exortar acerca da vossa fé; ", "3": "<sup class=\"versenum\">3 </sup>para que ninguém se comova por estas tribulações; porque vós mesmos sabeis que para isto fomos ordenados; ", "4": "<sup class=\"versenum\">4 </sup>pois, estando ainda convosco, vos predizíamos que havíamos de ser afligidos, como sucedeu, e vós o sabeis. ", "5": "<sup class=\"versenum\">5 </sup>Portanto, não podendo eu também esperar mais, mandei-<i class=\"added\">o</i> saber da vossa fé, <i class=\"added\">temendo</i> que o tentador vos tentasse, e o nosso trabalho viesse a ser inútil.", "6": "<sup class=\"versenum\">6 </sup>Vindo, porém, agora, Timóteo de vós para nós e trazendo-nos boas novas da vossa fé e amor e de como sempre tendes boa lembrança de nós, desejando muito ver-nos, como nós também a vós, ", "7": "<sup class=\"versenum\">7 </sup>por esta razão, irmãos, ficamos consolados acerca de vós, em toda a nossa aflição e necessidade, pela vossa fé, ", "8": "<sup class=\"versenum\">8 </sup>porque, agora, vivemos, se estais <i class=\"added\">firmes</i> no Senhor. ", "9": "<sup class=\"versenum\">9 </sup>Porque que ação de graças poderemos dar a Deus por vós, por todo o gozo com que nos regozijamos por vossa causa diante do nosso Deus, ", "10": "<sup class=\"versenum\">10 </sup>orando abundantemente dia e noite, para que possamos ver o vosso rosto e supramos o que falta à vossa fé?", "11": "<sup class=\"versenum\">11 </sup>Ora, o mesmo nosso Deus e Pai e nosso Senhor Jesus Cristo encaminhem a nossa viagem para vós. ", "12": "<sup class=\"versenum\">12 </sup>E o Senhor vos aumente e faça crescer em amor uns para com os outros e para com todos, como também <i class=\"added\">nós</i> para convosco; ", "13": "<sup class=\"versenum\">13 </sup>para confortar o vosso coração, para que sejais irrepreensíveis em santidade diante de nosso Deus e Pai, na vinda de nosso Senhor Jesus Cristo, com todos os seus santos." }, "4": { "1": "<span class=\"chapternum\">4 </span>Finalmente, irmãos, vos rogamos e exortamos no Senhor Jesus que, assim como recebestes de nós, de que maneira convém andar e agradar a Deus, assim andai, para que continueis a progredir cada vez mais; ", "2": "<sup class=\"versenum\">2 </sup>porque vós bem sabeis que mandamentos vos temos dado pelo Senhor Jesus. ", "3": "<sup class=\"versenum\">3 </sup>Porque esta é a vontade de Deus, a vossa santificação: que vos abstenhais da prostituição, ", "4": "<sup class=\"versenum\">4 </sup>que cada um de vós saiba possuir o seu vaso em santificação e honra, ", "5": "<sup class=\"versenum\">5 </sup>não na paixão de concupiscência, como os gentios, que não conhecem a Deus. ", "6": "<sup class=\"versenum\">6 </sup>Ninguém oprima ou engane a seu irmão em negócio <i class=\"added\">algum,</i> porque o Senhor é vingador de todas estas <i class=\"added\">coisas,</i> como também, antes, vo-lo dissemos e testificamos. ", "7": "<sup class=\"versenum\">7 </sup>Porque não nos chamou Deus para a imundícia, mas para a santificação. ", "8": "<sup class=\"versenum\">8 </sup>Portanto, quem despreza <i class=\"added\">isto</i> não despreza ao homem, mas, sim, a Deus, que nos deu também o seu Espírito Santo.", "9": "<sup class=\"versenum\">9 </sup>Quanto, porém, ao amor fraternal, não necessitais de que vos escreva, visto que vós mesmos estais instruídos por Deus que vos ameis uns aos outros; ", "10": "<sup class=\"versenum\">10 </sup>porque também já assim o fazeis para com todos os irmãos que estão por toda a Macedônia. Exortamo-vos, porém, a que ainda <i class=\"added\">nisto</i> continueis a progredir cada vez mais, ", "11": "<sup class=\"versenum\">11 </sup>e procureis viver quietos, e tratar dos vossos próprios negócios, e trabalhar com vossas próprias mãos, como já vo-lo temos mandado; ", "12": "<sup class=\"versenum\">12 </sup>para que andeis honestamente para com os que estão de fora e não necessiteis de <i class=\"added\">coisa</i> alguma.", "13": "<sup class=\"versenum\">13 </sup>Não quero, porém, irmãos, que sejais ignorantes acerca dos que <i class=\"added\">já</i> dormem, para que não vos entristeçais, como os demais, que não têm esperança. ", "14": "<sup class=\"versenum\">14 </sup>Porque, se cremos que Jesus morreu e ressuscitou, assim também aos que em Jesus dormem Deus os tornará a trazer com ele. ", "15": "<sup class=\"versenum\">15 </sup>Dizemo-vos, pois, isto pela palavra do Senhor: que nós, os que ficarmos vivos para a vinda do Senhor, não precederemos os que dormem. ", "16": "<sup class=\"versenum\">16 </sup>Porque o mesmo Senhor descerá do céu com alarido, e com voz de arcanjo, e com a trombeta de Deus; e os que morreram em Cristo ressuscitarão primeiro; ", "17": "<sup class=\"versenum\">17 </sup>depois, nós, os que ficarmos vivos, seremos arrebatados juntamente com eles nas nuvens, a encontrar o Senhor nos ares, e assim estaremos sempre com o Senhor. ", "18": "<sup class=\"versenum\">18 </sup>Portanto, consolai-vos uns aos outros com estas palavras." }, "5": { "1": "<span class=\"chapternum\">5 </span>Mas, irmãos, acerca dos tempos e das estações, não necessitais de que se vos escreva; ", "2": "<sup class=\"versenum\">2 </sup>porque vós mesmos sabeis muito bem que o Dia do Senhor virá como o ladrão de noite. ", "3": "<sup class=\"versenum\">3 </sup>Pois que, quando disserem: <i class=\"added\">Há</i> paz e segurança, então, lhes sobrevirá repentina destruição, como as dores de parto àquela que está grávida; e de modo nenhum escaparão.", "4": "<sup class=\"versenum\">4 </sup>Mas vós, irmãos, <i class=\"added\">já</i> não estais em trevas, para que aquele Dia vos surpreenda como <i class=\"added\">um</i> ladrão; ", "5": "<sup class=\"versenum\">5 </sup>porque todos vós sois filhos da luz e filhos do dia; nós não somos da noite nem das trevas. ", "6": "<sup class=\"versenum\">6 </sup>Não durmamos, pois, como os demais, mas vigiemos e sejamos sóbrios. ", "7": "<sup class=\"versenum\">7 </sup>Porque os que dormem dormem de noite, e os que se embebedam embebedam-se de noite. ", "8": "<sup class=\"versenum\">8 </sup>Mas nós, que somos do dia, sejamos sóbrios, vestindo-nos da couraça da fé e do amor e tendo por capacete a esperança da salvação. ", "9": "<sup class=\"versenum\">9 </sup>Porque Deus não nos destinou para a ira, mas para a aquisição da salvação, por nosso Senhor Jesus Cristo, ", "10": "<sup class=\"versenum\">10 </sup>que morreu por nós, para que, quer vigiemos, quer durmamos, vivamos juntamente com ele. ", "11": "<sup class=\"versenum\">11 </sup>Pelo que exortai-vos uns aos outros e edificai-vos uns aos outros, como também <i class=\"added\">o</i> fazeis.", "12": "<sup class=\"versenum\">12 </sup>E rogamo-vos, irmãos, que reconheçais os que trabalham entre vós, e que presidem sobre vós no Senhor, e vos admoestam; ", "13": "<sup class=\"versenum\">13 </sup>e que os tenhais em grande estima e amor, por causa da sua obra. Tende paz entre vós. ", "14": "<sup class=\"versenum\">14 </sup>Rogamo-vos também, irmãos, que admoesteis os desordeiros, consoleis os de pouco ânimo, sustenteis os fracos e sejais pacientes para com todos. ", "15": "<sup class=\"versenum\">15 </sup>Vede que ninguém dê a outrem mal por mal, mas segui, sempre, o bem, tanto uns para com os outros como para com todos. ", "16": "<sup class=\"versenum\">16 </sup>Regozijai-vos sempre. ", "17": "<sup class=\"versenum\">17 </sup>Orai sem cessar. ", "18": "<sup class=\"versenum\">18 </sup>Em tudo dai graças, porque esta <i class=\"added\">é</i> a vontade de Deus em Cristo Jesus para convosco. ", "19": "<sup class=\"versenum\">19 </sup>Não extingais o Espírito. ", "20": "<sup class=\"versenum\">20 </sup>Não desprezeis as profecias. ", "21": "<sup class=\"versenum\">21 </sup>Examinai tudo. Retende o bem. ", "22": "<sup class=\"versenum\">22 </sup>Abstende-vos de toda aparência do mal.", "23": "<sup class=\"versenum\">23 </sup>E o mesmo Deus de paz vos santifique em tudo; e todo o vosso espírito, e alma, e corpo sejam plenamente conservados irrepreensíveis para a vinda de nosso Senhor Jesus Cristo. ", "24": "<sup class=\"versenum\">24 </sup>Fiel é o que vos chama, o qual também <i class=\"added\">o</i> fará.", "25": "<sup class=\"versenum\">25 </sup>Irmãos, orai por nós.", "26": "<sup class=\"versenum\">26 </sup>Saudai a todos os irmãos com ósculo santo. ", "27": "<sup class=\"versenum\">27 </sup>Pelo Senhor vos conjuro que esta epístola seja lida a todos os santos irmãos.", "28": "<sup class=\"versenum\">28 </sup>A graça de nosso Senhor Jesus Cristo seja convosco. Amém!" } } }; module.exports = book;
"use strict"; var TextEncoder = require("text-encoding").TextEncoder; var configureLogError = require("../configure-logger"); var sinonEvent = require("../event"); var extend = require("just-extend"); function getWorkingXHR(globalScope) { var supportsXHR = typeof globalScope.XMLHttpRequest !== "undefined"; if (supportsXHR) { return globalScope.XMLHttpRequest; } var supportsActiveX = typeof globalScope.ActiveXObject !== "undefined"; if (supportsActiveX) { return function () { return new globalScope.ActiveXObject("MSXML2.XMLHTTP.3.0"); }; } return false; } var supportsProgress = typeof ProgressEvent !== "undefined"; var supportsCustomEvent = typeof CustomEvent !== "undefined"; var supportsFormData = typeof FormData !== "undefined"; var supportsArrayBuffer = typeof ArrayBuffer !== "undefined"; var supportsBlob = require("./blob").isSupported; var isReactNative = global.navigator && global.navigator.product === "ReactNative"; var sinonXhr = { XMLHttpRequest: global.XMLHttpRequest }; sinonXhr.GlobalXMLHttpRequest = global.XMLHttpRequest; sinonXhr.GlobalActiveXObject = global.ActiveXObject; sinonXhr.supportsActiveX = typeof sinonXhr.GlobalActiveXObject !== "undefined"; sinonXhr.supportsXHR = typeof sinonXhr.GlobalXMLHttpRequest !== "undefined"; sinonXhr.workingXHR = getWorkingXHR(global); sinonXhr.supportsTimeout = (sinonXhr.supportsXHR && "timeout" in (new sinonXhr.GlobalXMLHttpRequest())); sinonXhr.supportsCORS = isReactNative || (sinonXhr.supportsXHR && "withCredentials" in (new sinonXhr.GlobalXMLHttpRequest())); var unsafeHeaders = { "Accept-Charset": true, "Accept-Encoding": true, "Connection": true, "Content-Length": true, "Cookie": true, "Cookie2": true, "Content-Transfer-Encoding": true, "Date": true, "Expect": true, "Host": true, "Keep-Alive": true, "Referer": true, "TE": true, "Trailer": true, "Transfer-Encoding": true, "Upgrade": true, "User-Agent": true, "Via": true }; function EventTargetHandler() { var self = this; var events = ["loadstart", "progress", "abort", "error", "load", "timeout", "loadend"]; function addEventListener(eventName) { self.addEventListener(eventName, function (event) { var listener = self["on" + eventName]; if (listener && typeof listener === "function") { listener.call(this, event); } }); } events.forEach(addEventListener); } EventTargetHandler.prototype = sinonEvent.EventTarget; // Note that for FakeXMLHttpRequest to work pre ES5 // we lose some of the alignment with the spec. // To ensure as close a match as possible, // set responseType before calling open, send or respond; function FakeXMLHttpRequest(config) { EventTargetHandler.call(this); this.readyState = FakeXMLHttpRequest.UNSENT; this.requestHeaders = {}; this.requestBody = null; this.status = 0; this.statusText = ""; this.upload = new EventTargetHandler(); this.responseType = ""; this.response = ""; this.logError = configureLogError(config); if (sinonXhr.supportsTimeout) { this.timeout = 0; } if (sinonXhr.supportsCORS) { this.withCredentials = false; } if (typeof FakeXMLHttpRequest.onCreate === "function") { FakeXMLHttpRequest.onCreate(this); } } function verifyState(xhr) { if (xhr.readyState !== FakeXMLHttpRequest.OPENED) { throw new Error("INVALID_STATE_ERR"); } if (xhr.sendFlag) { throw new Error("INVALID_STATE_ERR"); } } function getHeader(headers, header) { var foundHeader = Object.keys(headers).filter(function (h) { return h.toLowerCase() === header.toLowerCase(); }); return foundHeader[0] || null; } function excludeSetCookie2Header(header) { return !/^Set-Cookie2?$/i.test(header); } // largest arity in XHR is 5 - XHR#open var apply = function (obj, method, args) { switch (args.length) { case 0: return obj[method](); case 1: return obj[method](args[0]); case 2: return obj[method](args[0], args[1]); case 3: return obj[method](args[0], args[1], args[2]); case 4: return obj[method](args[0], args[1], args[2], args[3]); case 5: return obj[method](args[0], args[1], args[2], args[3], args[4]); default: throw new Error("Unhandled case"); } }; FakeXMLHttpRequest.filters = []; FakeXMLHttpRequest.addFilter = function addFilter(fn) { this.filters.push(fn); }; FakeXMLHttpRequest.defake = function defake(fakeXhr, xhrArgs) { var xhr = new sinonXhr.workingXHR(); // eslint-disable-line new-cap [ "open", "setRequestHeader", "send", "abort", "getResponseHeader", "getAllResponseHeaders", "addEventListener", "overrideMimeType", "removeEventListener" ].forEach(function (method) { fakeXhr[method] = function () { return apply(xhr, method, arguments); }; }); var copyAttrs = function (args) { args.forEach(function (attr) { fakeXhr[attr] = xhr[attr]; }); }; var stateChange = function stateChange() { fakeXhr.readyState = xhr.readyState; if (xhr.readyState >= FakeXMLHttpRequest.HEADERS_RECEIVED) { copyAttrs(["status", "statusText"]); } if (xhr.readyState >= FakeXMLHttpRequest.LOADING) { copyAttrs(["responseText", "response"]); } if (xhr.readyState === FakeXMLHttpRequest.DONE) { copyAttrs(["responseXML"]); } if (fakeXhr.onreadystatechange) { fakeXhr.onreadystatechange.call(fakeXhr, { target: fakeXhr }); } }; if (xhr.addEventListener) { Object.keys(fakeXhr.eventListeners).forEach(function (event) { /*eslint-disable no-loop-func*/ fakeXhr.eventListeners[event].forEach(function (handler) { xhr.addEventListener(event, handler); }); /*eslint-enable no-loop-func*/ }); xhr.addEventListener("readystatechange", stateChange); } else { xhr.onreadystatechange = stateChange; } apply(xhr, "open", xhrArgs); }; FakeXMLHttpRequest.useFilters = false; function verifyRequestOpened(xhr) { if (xhr.readyState !== FakeXMLHttpRequest.OPENED) { throw new Error("INVALID_STATE_ERR - " + xhr.readyState); } } function verifyRequestSent(xhr) { if (xhr.readyState === FakeXMLHttpRequest.DONE) { throw new Error("Request done"); } } function verifyHeadersReceived(xhr) { if (xhr.async && xhr.readyState !== FakeXMLHttpRequest.HEADERS_RECEIVED) { throw new Error("No headers received"); } } function verifyResponseBodyType(body) { if (typeof body !== "string") { var error = new Error("Attempted to respond to fake XMLHttpRequest with " + body + ", which is not a string."); error.name = "InvalidBodyException"; throw error; } } function convertToArrayBuffer(body, encoding) { return new TextEncoder(encoding || "utf-8").encode(body).buffer; } function isXmlContentType(contentType) { return !contentType || /(text\/xml)|(application\/xml)|(\+xml)/.test(contentType); } function convertResponseBody(responseType, contentType, body) { if (responseType === "" || responseType === "text") { return body; } else if (supportsArrayBuffer && responseType === "arraybuffer") { return convertToArrayBuffer(body); } else if (responseType === "json") { try { return JSON.parse(body); } catch (e) { // Return parsing failure as null return null; } } else if (supportsBlob && responseType === "blob") { var blobOptions = {}; if (contentType) { blobOptions.type = contentType; } return new Blob([convertToArrayBuffer(body)], blobOptions); } else if (responseType === "document") { if (isXmlContentType(contentType)) { return FakeXMLHttpRequest.parseXML(body); } return null; } throw new Error("Invalid responseType " + responseType); } function clearResponse(xhr) { if (xhr.responseType === "" || xhr.responseType === "text") { xhr.response = xhr.responseText = ""; } else { xhr.response = xhr.responseText = null; } xhr.responseXML = null; } /** * Steps to follow when there is an error, according to: * https://xhr.spec.whatwg.org/#request-error-steps */ function requestErrorSteps(xhr) { clearResponse(xhr); xhr.errorFlag = true; xhr.requestHeaders = {}; xhr.responseHeaders = {}; if (xhr.readyState !== FakeXMLHttpRequest.UNSENT && xhr.sendFlag && xhr.readyState !== FakeXMLHttpRequest.DONE) { xhr.readyStateChange(FakeXMLHttpRequest.DONE); xhr.sendFlag = false; } } FakeXMLHttpRequest.parseXML = function parseXML(text) { // Treat empty string as parsing failure if (text !== "") { try { if (typeof DOMParser !== "undefined") { var parser = new DOMParser(); return parser.parseFromString(text, "text/xml"); } var xmlDoc = new window.ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = "false"; xmlDoc.loadXML(text); return xmlDoc; } catch (e) { // Unable to parse XML - no biggie } } return null; }; FakeXMLHttpRequest.statusCodes = { 100: "Continue", 101: "Switching Protocols", 200: "OK", 201: "Created", 202: "Accepted", 203: "Non-Authoritative Information", 204: "No Content", 205: "Reset Content", 206: "Partial Content", 207: "Multi-Status", 300: "Multiple Choice", 301: "Moved Permanently", 302: "Found", 303: "See Other", 304: "Not Modified", 305: "Use Proxy", 307: "Temporary Redirect", 400: "Bad Request", 401: "Unauthorized", 402: "Payment Required", 403: "Forbidden", 404: "Not Found", 405: "Method Not Allowed", 406: "Not Acceptable", 407: "Proxy Authentication Required", 408: "Request Timeout", 409: "Conflict", 410: "Gone", 411: "Length Required", 412: "Precondition Failed", 413: "Request Entity Too Large", 414: "Request-URI Too Long", 415: "Unsupported Media Type", 416: "Requested Range Not Satisfiable", 417: "Expectation Failed", 422: "Unprocessable Entity", 500: "Internal Server Error", 501: "Not Implemented", 502: "Bad Gateway", 503: "Service Unavailable", 504: "Gateway Timeout", 505: "HTTP Version Not Supported" }; extend(FakeXMLHttpRequest.prototype, sinonEvent.EventTarget, { async: true, open: function open(method, url, async, username, password) { this.method = method; this.url = url; this.async = typeof async === "boolean" ? async : true; this.username = username; this.password = password; clearResponse(this); this.requestHeaders = {}; this.sendFlag = false; if (FakeXMLHttpRequest.useFilters === true) { var xhrArgs = arguments; var defake = FakeXMLHttpRequest.filters.some(function (filter) { return filter.apply(this, xhrArgs); }); if (defake) { FakeXMLHttpRequest.defake(this, arguments); return; } } this.readyStateChange(FakeXMLHttpRequest.OPENED); }, readyStateChange: function readyStateChange(state) { this.readyState = state; var readyStateChangeEvent = new sinonEvent.Event("readystatechange", false, false, this); var event, progress; if (typeof this.onreadystatechange === "function") { try { this.onreadystatechange(readyStateChangeEvent); } catch (e) { this.logError("Fake XHR onreadystatechange handler", e); } } if (this.readyState === FakeXMLHttpRequest.DONE) { if (this.timedOut || this.aborted || this.status === 0) { progress = {loaded: 0, total: 0}; event = (this.timedOut && "timeout") || (this.aborted && "abort") || "error"; } else { progress = {loaded: 100, total: 100}; event = "load"; } if (supportsProgress) { this.upload.dispatchEvent(new sinonEvent.ProgressEvent("progress", progress, this)); this.upload.dispatchEvent(new sinonEvent.ProgressEvent(event, progress, this)); this.upload.dispatchEvent(new sinonEvent.ProgressEvent("loadend", progress, this)); } this.dispatchEvent(new sinonEvent.ProgressEvent("progress", progress, this)); this.dispatchEvent(new sinonEvent.ProgressEvent(event, progress, this)); this.dispatchEvent(new sinonEvent.ProgressEvent("loadend", progress, this)); } this.dispatchEvent(readyStateChangeEvent); }, setRequestHeader: function setRequestHeader(header, value) { verifyState(this); var checkUnsafeHeaders = true; if (typeof this.unsafeHeadersEnabled === "function") { checkUnsafeHeaders = this.unsafeHeadersEnabled(); } if (checkUnsafeHeaders && (unsafeHeaders[header] || /^(Sec-|Proxy-)/.test(header))) { throw new Error("Refused to set unsafe header \"" + header + "\""); } if (this.requestHeaders[header]) { this.requestHeaders[header] += "," + value; } else { this.requestHeaders[header] = value; } }, setStatus: function setStatus(status) { var sanitizedStatus = typeof status === "number" ? status : 200; verifyRequestOpened(this); this.status = sanitizedStatus; this.statusText = FakeXMLHttpRequest.statusCodes[sanitizedStatus]; }, // Helps testing setResponseHeaders: function setResponseHeaders(headers) { verifyRequestOpened(this); var responseHeaders = this.responseHeaders = {}; Object.keys(headers).forEach(function (header) { responseHeaders[header] = headers[header]; }); if (this.async) { this.readyStateChange(FakeXMLHttpRequest.HEADERS_RECEIVED); } else { this.readyState = FakeXMLHttpRequest.HEADERS_RECEIVED; } }, // Currently treats ALL data as a DOMString (i.e. no Document) send: function send(data) { verifyState(this); if (!/^(head)$/i.test(this.method)) { var contentType = getHeader(this.requestHeaders, "Content-Type"); if (this.requestHeaders[contentType]) { var value = this.requestHeaders[contentType].split(";"); this.requestHeaders[contentType] = value[0] + ";charset=utf-8"; } else if (supportsFormData && !(data instanceof FormData)) { this.requestHeaders["Content-Type"] = "text/plain;charset=utf-8"; } this.requestBody = data; } this.errorFlag = false; this.sendFlag = this.async; clearResponse(this); this.readyStateChange(FakeXMLHttpRequest.OPENED); if (typeof this.onSend === "function") { this.onSend(this); } // Only listen if setInterval and Date are a stubbed. if (sinonXhr.supportsTimeout && typeof setInterval.clock === "object" && typeof Date.clock === "object") { var initiatedTime = Date.now(); var self = this; // Listen to any possible tick by fake timers and check to see if timeout has // been exceeded. It's important to note that timeout can be changed while a request // is in flight, so we must check anytime the end user forces a clock tick to make // sure timeout hasn't changed. // https://xhr.spec.whatwg.org/#dfnReturnLink-2 var clearIntervalId = setInterval(function () { // Check if the readyState has been reset or is done. If this is the case, there // should be no timeout. This will also prevent aborted requests and // fakeServerWithClock from triggering unnecessary responses. if (self.readyState === FakeXMLHttpRequest.UNSENT || self.readyState === FakeXMLHttpRequest.DONE) { clearInterval(clearIntervalId); } else if (typeof self.timeout === "number" && self.timeout > 0) { if (Date.now() >= (initiatedTime + self.timeout)) { self.triggerTimeout(); clearInterval(clearIntervalId); } } }, 1); } this.dispatchEvent(new sinonEvent.Event("loadstart", false, false, this)); }, abort: function abort() { this.aborted = true; requestErrorSteps(this); this.readyState = FakeXMLHttpRequest.UNSENT; }, error: function () { clearResponse(this); this.errorFlag = true; this.requestHeaders = {}; this.responseHeaders = {}; this.readyStateChange(FakeXMLHttpRequest.DONE); }, triggerTimeout: function triggerTimeout() { if (sinonXhr.supportsTimeout) { this.timedOut = true; requestErrorSteps(this); } }, getResponseHeader: function getResponseHeader(header) { if (this.readyState < FakeXMLHttpRequest.HEADERS_RECEIVED) { return null; } if (/^Set-Cookie2?$/i.test(header)) { return null; } header = getHeader(this.responseHeaders, header); return this.responseHeaders[header] || null; }, getAllResponseHeaders: function getAllResponseHeaders() { if (this.readyState < FakeXMLHttpRequest.HEADERS_RECEIVED) { return ""; } var responseHeaders = this.responseHeaders; var headers = Object.keys(responseHeaders) .filter(excludeSetCookie2Header) .reduce(function (prev, header) { var value = responseHeaders[header]; return prev + (header + ": " + value + "\r\n"); }, ""); return headers; }, setResponseBody: function setResponseBody(body) { verifyRequestSent(this); verifyHeadersReceived(this); verifyResponseBodyType(body); var contentType = this.overriddenMimeType || this.getResponseHeader("Content-Type"); var isTextResponse = this.responseType === "" || this.responseType === "text"; clearResponse(this); if (this.async) { var chunkSize = this.chunkSize || 10; var index = 0; do { this.readyStateChange(FakeXMLHttpRequest.LOADING); if (isTextResponse) { this.responseText = this.response += body.substring(index, index + chunkSize); } index += chunkSize; } while (index < body.length); } this.response = convertResponseBody(this.responseType, contentType, body); if (isTextResponse) { this.responseText = this.response; } if (this.responseType === "document") { this.responseXML = this.response; } else if (this.responseType === "" && isXmlContentType(contentType)) { this.responseXML = FakeXMLHttpRequest.parseXML(this.responseText); } this.readyStateChange(FakeXMLHttpRequest.DONE); }, respond: function respond(status, headers, body) { this.setStatus(status); this.setResponseHeaders(headers || {}); this.setResponseBody(body || ""); }, uploadProgress: function uploadProgress(progressEventRaw) { if (supportsProgress) { this.upload.dispatchEvent(new sinonEvent.ProgressEvent("progress", progressEventRaw)); } }, downloadProgress: function downloadProgress(progressEventRaw) { if (supportsProgress) { this.dispatchEvent(new sinonEvent.ProgressEvent("progress", progressEventRaw)); } }, uploadError: function uploadError(error) { if (supportsCustomEvent) { this.upload.dispatchEvent(new sinonEvent.CustomEvent("error", {detail: error})); } }, overrideMimeType: function overrideMimeType(type) { if (this.readyState >= FakeXMLHttpRequest.LOADING) { throw new Error("INVALID_STATE_ERR"); } this.overriddenMimeType = type; } }); var states = { UNSENT: 0, OPENED: 1, HEADERS_RECEIVED: 2, LOADING: 3, DONE: 4 }; extend(FakeXMLHttpRequest, states); extend(FakeXMLHttpRequest.prototype, states); function useFakeXMLHttpRequest() { FakeXMLHttpRequest.restore = function restore(keepOnCreate) { if (sinonXhr.supportsXHR) { global.XMLHttpRequest = sinonXhr.GlobalXMLHttpRequest; } if (sinonXhr.supportsActiveX) { global.ActiveXObject = sinonXhr.GlobalActiveXObject; } delete FakeXMLHttpRequest.restore; if (keepOnCreate !== true) { delete FakeXMLHttpRequest.onCreate; } }; if (sinonXhr.supportsXHR) { global.XMLHttpRequest = FakeXMLHttpRequest; } if (sinonXhr.supportsActiveX) { global.ActiveXObject = function ActiveXObject(objId) { if (objId === "Microsoft.XMLHTTP" || /^Msxml2\.XMLHTTP/i.test(objId)) { return new FakeXMLHttpRequest(); } return new sinonXhr.GlobalActiveXObject(objId); }; } return FakeXMLHttpRequest; } module.exports = { xhr: sinonXhr, FakeXMLHttpRequest: FakeXMLHttpRequest, useFakeXMLHttpRequest: useFakeXMLHttpRequest };
import { FETCH_GENRE_TV, FETCH_POPULAR_TV, FETCH_TOPRATED_TV, FETCH_AIRINGTODAY_TV, FETCH_THISWEEK_TV } from "../actions/tv"; const initialState = { popularTv: [], topRatedTv: [], airingTodayTv: [], airingThisWeekTv: [], genreTv: [] }; export default function(state = initialState, action) { switch (action.type) { case FETCH_GENRE_TV: return { ...state, genreTv: action.payload }; case FETCH_POPULAR_TV: return { ...state, popularTv: action.payload }; case FETCH_TOPRATED_TV: return { ...state, topRatedTv: action.payload }; case FETCH_AIRINGTODAY_TV: return { ...state, airingTodayTv: action.payload }; case FETCH_THISWEEK_TV: return { ...state, airingThisWeekTv: action.payload }; default: return state; } }
/* @功能:购物车页面js @作者:diamondwang @时间:2013年11月14日 */ $(function(){ //减少 $(".reduce_num").click(function(){ var amount = $(this).parent().find(".amount"); // console.log(amount); if (parseInt($(amount).val()) <= 1){ alert("商品数量最少为1"); } else{ $(amount).val(parseInt($(amount).val()) - 1); } //小计 var subtotal = parseFloat($(this).parent().parent().find(".col3 span").text()) * parseInt($(amount).val()); $(this).parent().parent().find(".col5 span").text(subtotal.toFixed(2)); //总计金额 var total = 0; $(".col5 span").each(function(){ total += parseFloat($(this).text()); }); $("#total").text(total.toFixed(2)); }); //增加 $(".add_num").click(function(){ var amount = $(this).parent().find(".amount"); $(amount).val(parseInt($(amount).val()) + 1); //小计 var subtotal = parseFloat($(this).parent().parent().find(".col3 span").text()) * parseInt($(amount).val()); $(this).parent().parent().find(".col5 span").text(subtotal.toFixed(2)); //总计金额 var total = 0; $(".col5 span").each(function(){ total += parseFloat($(this).text()); }); $("#total").text(total.toFixed(2)); }); //直接输入 $(".amount").blur(function(){ if (parseInt($(this).val()) < 1){ alert("商品数量最少为1"); $(this).val(1); } //小计 var subtotal = parseFloat($(this).parent().parent().find(".col3 span").text()) * parseInt($(this).val()); $(this).parent().parent().find(".col5 span").text(subtotal.toFixed(2)); //总计金额 var total = 0; $(".col5 span").each(function(){ total += parseFloat($(this).text()); }); $("#total").text(total.toFixed(2)); }); });
'use strict'; /** * @ngdoc overview * @name directive.textarea */ angular.module('backAnd.directives') .directive('textarea', [ function () { /** * @ngdoc directive * @name directive.textarea * @description textarea element * @param {object} field, required, field configuration and data * @param {object} value, optional, value of the field, could be null * @param {object} form, required, the form that contains the field * @param {string} errors, optional, error messages * @returns {object} directive */ return { restrict: 'A', replace: true, scope: { field: "=", value: "=", form: "=", errors: "=" }, templateUrl: 'backand/js/directives/textarea/partials/textarea.html', link: function(scope) { if (!scope.value.val){ scope.value.val = scope.field.defaultValue; } } } }]);
elation.require([ 'elements.base', 'elements.ui.text', 'elements.ui.label', 'elements.ui.button', 'elements.ui.togglebutton', 'elements.ui.dropdownbutton', 'elements.ui.notificationbutton', 'elements.ui.buttonbar', 'elements.ui.buttonlist', 'elements.ui.input', 'elements.ui.textarea', 'elements.ui.toggle', 'elements.ui.checkbox', 'elements.ui.radio', 'elements.ui.select', 'elements.ui.slider', 'elements.ui.list', 'elements.ui.grid', 'elements.ui.checklist', 'elements.ui.panel', 'elements.ui.tabs', 'elements.ui.togglebutton', 'elements.ui.window', 'elements.ui.tooltip', 'elements.ui.formgroup', 'elements.ui.columnlayout', 'elements.ui.collapsiblepanel', 'elements.ui.content', ]);
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ import { Injectable, Inject, Optional, NgZone, InjectionToken } from '@angular/core'; import { of, from } from 'rxjs'; import { map, switchMap, shareReplay, tap, observeOn } from 'rxjs/operators'; import { FIREBASE_APP_NAME, ɵlazySDKProxy, ɵAngularFireSchedulers } from '@angular/fire'; import { FIREBASE_OPTIONS, ɵfirebaseAppFactory } from '@angular/fire'; import * as i0 from "@angular/core"; import * as i1 from "@angular/fire"; /** @type {?} */ export const ORIGIN = new InjectionToken('angularfire2.functions.origin'); /** @type {?} */ export const REGION = new InjectionToken('angularfire2.functions.region'); // WARNING: interface has both a type and a value, skipping emit ; export class AngularFireFunctions { /** * @param {?} options * @param {?} nameOrConfig * @param {?} zone * @param {?} region * @param {?} origin */ constructor(options, nameOrConfig, zone, region, origin) { /** @type {?} */ const schedulers = new ɵAngularFireSchedulers(zone); /** @type {?} */ const functions = of(undefined).pipe(observeOn(schedulers.outsideAngular), switchMap((/** * @return {?} */ () => import('firebase/functions'))), map((/** * @return {?} */ () => ɵfirebaseAppFactory(options, zone, nameOrConfig))), map((/** * @param {?} app * @return {?} */ app => app.functions(region || undefined))), tap((/** * @param {?} functions * @return {?} */ functions => { if (origin) { functions.useFunctionsEmulator(origin); } })), shareReplay({ bufferSize: 1, refCount: false })); this.httpsCallable = (/** * @template T, R * @param {?} name * @return {?} */ (name) => (/** * @param {?} data * @return {?} */ (data) => from(functions).pipe(observeOn(schedulers.outsideAngular), switchMap((/** * @param {?} functions * @return {?} */ functions => functions.httpsCallable(name)(data))), map((/** * @param {?} r * @return {?} */ r => (/** @type {?} */ (r.data))))))); return ɵlazySDKProxy(this, functions, zone); } } AngularFireFunctions.decorators = [ { type: Injectable, args: [{ providedIn: 'any' },] } ]; /** @nocollapse */ AngularFireFunctions.ctorParameters = () => [ { type: undefined, decorators: [{ type: Inject, args: [FIREBASE_OPTIONS,] }] }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [FIREBASE_APP_NAME,] }] }, { type: NgZone }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [REGION,] }] }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [ORIGIN,] }] } ]; /** @nocollapse */ AngularFireFunctions.ɵprov = i0.ɵɵdefineInjectable({ factory: function AngularFireFunctions_Factory() { return new AngularFireFunctions(i0.ɵɵinject(i1.FIREBASE_OPTIONS), i0.ɵɵinject(i1.FIREBASE_APP_NAME, 8), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(REGION, 8), i0.ɵɵinject(ORIGIN, 8)); }, token: AngularFireFunctions, providedIn: "any" }); if (false) { /** @type {?} */ AngularFireFunctions.prototype.httpsCallable; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFuZ3VsYXIvZmlyZS9mdW5jdGlvbnMvIiwic291cmNlcyI6Wy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R1bGVycy5vdXRzaWRlQW5ndWxhciksXG4gICAgICBzd2l0Y2hNYXAoKCkgPT4gaW1wb3J0KCdmaXJlYmFzZS9mdW5jdGlvbnMnKSksXG4gICAgICBtYXAoKCkgPT4gybVmaXJlYmFzZUFwcEZhY3Rvcnkob3B0aW9ucywgem9uZSwgbmFtZU9yQ29uZmlnKSksXG4gICAgICBtYXAoYXBwID0+IGFwcC5mdW5jdGlvbnMocmVnaW9uIHx8IHVuZGVmaW5lZCkpLFxuICAgICAgdGFwKGZ1bmN0aW9ucyA9PiB7XG4gICAgICAgIGlmIChvcmlnaW4pIHsgZnVuY3Rpb25zLnVzZUZ1bmN0aW9uc0VtdWxhdG9yKG9yaWdpbikgfVxuICAgICAgfSksXG4gICAgICBzaGFyZVJlcGxheSh7IGJ1ZmZlclNpemU6IDEsIHJlZkNvdW50OiBmYWxzZSB9KSxcbiAgICApO1xuXG4gICAgdGhpcy5odHRwc0NhbGxhYmxlID0gPFQ9YW55LCBSPWFueT4obmFtZTogc3RyaW5nKSA9PlxuICAgICAgKGRhdGE6IFQpID0+IGZyb20oZnVuY3Rpb25zKS5waXBlKFxuICAgICAgICBvYnNlcnZlT24oc2NoZWR1bGVycy5vdXRzaWRlQW5ndWxhciksXG4gICAgICAgIHN3aXRjaE1hcChmdW5jdGlvbnMgPT4gZnVuY3Rpb25zLmh0dHBzQ2FsbGFibGUobmFtZSkoZGF0YSkpLFxuICAgICAgICBtYXAociA9PiByLmRhdGEgYXMgUilcbiAgICAgIClcblxuICAgIHJldHVybiDJtWxhenlTREtQcm94eSh0aGlzLCBmdW5jdGlvbnMsIHpvbmUpO1xuXG4gIH1cblxufVxuIl19
import React from 'react' import { render, fireEvent } from '@testing-library/react' import Button from './Button' import Icon from '../Icon' import userEvent from '@testing-library/user-event' import { MemoryRouter as Router } from 'react-router-dom' const wrap = fn => Component => fn(<Router>{Component}</Router>) const renderWithRouter = wrap(render) describe('ClassNames', () => { test('Accepts custom className', () => { const { getByTestId } = render( <Button className="foo bar baz">Click Me</Button> ) expect(getByTestId('Button')).toHaveClass('foo') expect(getByTestId('Button')).toHaveClass('bar') expect(getByTestId('Button')).toHaveClass('baz') }) }) describe('Theme', () => { test('Adds the respective classNames', () => { const { getByTestId, rerender } = render(<Button theme="blue">blue</Button>) expect(getByTestId('Button')).toHaveClass('is-theme-blue') rerender(<Button theme="red">Red</Button>) expect(getByTestId('Button')).toHaveClass('is-theme-red') rerender(<Button theme="green">Red</Button>) expect(getByTestId('Button')).toHaveClass('is-theme-green') rerender(<Button linked>Plain</Button>) expect(getByTestId('Button')).toHaveClass('is-style-link') }) test('Creates a button with type="submit"', () => { const { getByTestId } = render(<Button submit>Submit</Button>) expect(getByTestId('Button')).toHaveAttribute('type', 'submit') }) }) describe('Sizes', () => { test('Adds the respective classNames', () => { const { getByText } = render( <> <Button size="xl">ExtraLarge</Button> <Button size="lg">Large</Button> <Button size="md">Medium</Button> <Button size="sm">Small</Button> <Button size="xs">ExtraSmall</Button> <Button size="xxs">ExtraExtraSmall</Button> <Button>Default</Button> </> ) expect(getByText('Default')).toHaveClass('is-size-lg') expect(getByText('ExtraExtraSmall')).toHaveClass('is-size-xxs') expect(getByText('ExtraSmall')).toHaveClass('is-size-xs') expect(getByText('Small')).toHaveClass('is-size-sm') expect(getByText('Medium')).toHaveClass('is-size-md') expect(getByText('Large')).toHaveClass('is-size-lg') expect(getByText('ExtraLarge')).toHaveClass('is-size-xl') }) }) describe('States', () => { test('Disables the button', () => { const callback = jest.fn() const { getByTestId } = render( <Button disabled onClick={callback}> Disabled </Button> ) userEvent.click(getByTestId('Button')) expect(getByTestId('Button')).toBeDisabled() expect(callback).not.toHaveBeenCalled() }) test('primary lg & xl have a minimum width of 120px', () => { const { getByTestId } = render( <Button theme="blue" size="lg"> Button </Button> ) const styles = window.getComputedStyle(getByTestId('Button')) expect(styles.getPropertyValue('min-width')).toBe('var(--buttonMinWidth)') expect(styles.getPropertyValue('--buttonMinWidth')).toBe('120px') }) }) describe('Styles', () => { test('Renders isFirst styles', () => { const { getByTestId } = render(<Button isFirst />) expect(getByTestId('Button')).toHaveClass('is-first') }) test('Renders isNotOnly styles', () => { const { getByTestId } = render(<Button isNotOnly />) expect(getByTestId('Button')).toHaveClass('is-notOnly') }) test('Renders isLast styles', () => { const { getByTestId } = render(<Button isLast />) expect(getByTestId('Button')).toHaveClass('is-last') }) }) describe('Events', () => { test('Fires onBlur callback', () => { const spy = jest.fn() const { getByTestId } = render(<Button onBlur={spy} />) fireEvent.blur(getByTestId('Button')) expect(spy).toHaveBeenCalled() }) test('Fires onClick callback', () => { const spy = jest.fn() const { getByTestId } = render(<Button onClick={spy} />) userEvent.click(getByTestId('Button')) expect(spy).toHaveBeenCalled() }) test('Fires onFocus callback', () => { const spy = jest.fn() const { getByTestId } = render(<Button onFocus={spy} />) getByTestId('Button').focus() expect(spy).toHaveBeenCalled() }) }) describe('Icon', () => { test('Can render an Icon', () => { const { container } = render( <Button> <Icon /> </Button> ) expect(container.querySelector('.c-Icon')).toBeTruthy() }) test('Can render an Icon + Text', () => { const { getByTestId, container } = render( <Button> <Icon /> News </Button> ) expect(container.querySelector('.c-Icon')).toBeTruthy() expect(getByTestId('Button')).toHaveTextContent('News') }) test('Provides Icon with offsetLeft prop', () => { const { getByTestId, container } = render( <Button> <Icon /> News </Button> ) expect(container.querySelector('.c-Icon')).toHaveClass('is-offsetLeft') expect(container.querySelector('.c-Icon')).not.toHaveClass('is-offsetRight') expect(getByTestId('Button')).toHaveTextContent('News') }) test('Provides Icon with offsetRight prop', () => { const { getByTestId, container } = render( <Button> News <Icon /> </Button> ) expect(container.querySelector('.c-Icon')).not.toHaveClass('is-offsetLeft') expect(container.querySelector('.c-Icon')).toHaveClass('is-offsetRight') expect(getByTestId('Button')).toHaveTextContent('News') }) }) describe('Content event propagation', () => { test('Allows content event propagation by default', () => { const spy = jest.fn() const { container } = render( <Button onClick={spy}> <Icon /> </Button> ) userEvent.click(container.querySelector('.c-Icon')) expect(spy).toHaveBeenCalled() }) }) describe('Link', () => { test('Can render a link, if href is defined', () => { const { getByText } = renderWithRouter(<Button href="/" />) expect( getByText((content, element) => { return element.tagName.toLowerCase() === 'a' }) ).toBeTruthy() }) test('Can render a link, if to is defined', () => { const { getByText } = renderWithRouter(<Button to="/" />) expect( getByText((content, element) => { return element.tagName.toLowerCase() === 'a' }) ).toBeTruthy() }) test('Can render a link based props', () => { const { getByTestId } = renderWithRouter( <Button href="/" target="_blank" /> ) expect(getByTestId('Button')).toHaveAttribute('target', '_blank') }) test('Render a button element type', () => { const { getByText } = renderWithRouter(<Button />) expect( getByText((content, element) => { return element.tagName.toLowerCase() === 'button' }) ).toBeTruthy() }) }) describe('Loading', () => { test('Add loading className, if isLoading', () => { const { getByTestId } = render(<Button loading />) expect(getByTestId('Button')).toHaveClass('is-loading') }) test('Renders a spinner if isLoading', () => { const { container } = render(<Button loading />) expect(container.querySelector('.c-Spinner')).toBeTruthy() }) test('Does not renders a spinner if not isLoading', () => { const { container } = render(<Button />) expect(container.querySelector('.c-Spinner')).toBeFalsy() }) test('Becomes disabled if isLoading, by default', () => { const { getByTestId } = render(<Button loading />) expect(getByTestId('Button')).toBeDisabled() }) })
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[17],{ /***/ "./node_modules/@babel/runtime/helpers/assertThisInitialized.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQuanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQuanM/M2M5NiJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfYXNzZXJ0VGhpc0luaXRpYWxpemVkKHNlbGYpIHtcbiAgaWYgKHNlbGYgPT09IHZvaWQgMCkge1xuICAgIHRocm93IG5ldyBSZWZlcmVuY2VFcnJvcihcInRoaXMgaGFzbid0IGJlZW4gaW5pdGlhbGlzZWQgLSBzdXBlcigpIGhhc24ndCBiZWVuIGNhbGxlZFwiKTtcbiAgfVxuXG4gIHJldHVybiBzZWxmO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9hc3NlcnRUaGlzSW5pdGlhbGl6ZWQ7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/assertThisInitialized.js\n"); /***/ }), /***/ "./node_modules/@babel/runtime/helpers/classCallCheck.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9jbGFzc0NhbGxDaGVjay5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NsYXNzQ2FsbENoZWNrLmpzPzk3MGIiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2NsYXNzQ2FsbENoZWNrKGluc3RhbmNlLCBDb25zdHJ1Y3Rvcikge1xuICBpZiAoIShpbnN0YW5jZSBpbnN0YW5jZW9mIENvbnN0cnVjdG9yKSkge1xuICAgIHRocm93IG5ldyBUeXBlRXJyb3IoXCJDYW5ub3QgY2FsbCBhIGNsYXNzIGFzIGEgZnVuY3Rpb25cIik7XG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfY2xhc3NDYWxsQ2hlY2s7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/classCallCheck.js\n"); /***/ }), /***/ "./node_modules/@babel/runtime/helpers/createClass.js": /*!************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***! \************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9jcmVhdGVDbGFzcy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2NyZWF0ZUNs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), /***/ "./node_modules/@babel/runtime/helpers/getPrototypeOf.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9nZXRQcm90b3R5cGVPZi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2dldFByb3RvdHlwZU9mLmpzPzM2YzYiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX2dldFByb3RvdHlwZU9mKG8pIHtcbiAgbW9kdWxlLmV4cG9ydHMgPSBfZ2V0UHJvdG90eXBlT2YgPSBPYmplY3Quc2V0UHJvdG90eXBlT2YgPyBPYmplY3QuZ2V0UHJvdG90eXBlT2YgOiBmdW5jdGlvbiBfZ2V0UHJvdG90eXBlT2Yobykge1xuICAgIHJldHVybiBvLl9fcHJvdG9fXyB8fCBPYmplY3QuZ2V0UHJvdG90eXBlT2Yobyk7XG4gIH07XG4gIHJldHVybiBfZ2V0UHJvdG90eXBlT2Yobyk7XG59XG5cbm1vZHVsZS5leHBvcnRzID0gX2dldFByb3RvdHlwZU9mOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/getPrototypeOf.js\n"); /***/ }), /***/ "./node_modules/@babel/runtime/helpers/inherits.js": /*!*********************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/inherits.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf */ \"./node_modules/@babel/runtime/helpers/setPrototypeOf.js\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9pbmhlcml0cy5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2luaGVyaXRzLmpzP2VkNmQiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHNldFByb3RvdHlwZU9mID0gcmVxdWlyZShcIi4vc2V0UHJvdG90eXBlT2ZcIik7XG5cbmZ1bmN0aW9uIF9pbmhlcml0cyhzdWJDbGFzcywgc3VwZXJDbGFzcykge1xuICBpZiAodHlwZW9mIHN1cGVyQ2xhc3MgIT09IFwiZnVuY3Rpb25cIiAmJiBzdXBlckNsYXNzICE9PSBudWxsKSB7XG4gICAgdGhyb3cgbmV3IFR5cGVFcnJvcihcIlN1cGVyIGV4cHJlc3Npb24gbXVzdCBlaXRoZXIgYmUgbnVsbCBvciBhIGZ1bmN0aW9uXCIpO1xuICB9XG5cbiAgc3ViQ2xhc3MucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShzdXBlckNsYXNzICYmIHN1cGVyQ2xhc3MucHJvdG90eXBlLCB7XG4gICAgY29uc3RydWN0b3I6IHtcbiAgICAgIHZhbHVlOiBzdWJDbGFzcyxcbiAgICAgIHdyaXRhYmxlOiB0cnVlLFxuICAgICAgY29uZmlndXJhYmxlOiB0cnVlXG4gICAgfVxuICB9KTtcbiAgaWYgKHN1cGVyQ2xhc3MpIHNldFByb3RvdHlwZU9mKHN1YkNsYXNzLCBzdXBlckNsYXNzKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfaW5oZXJpdHM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/inherits.js\n"); /***/ }), /***/ "./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": /*!**************************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("var _typeof = __webpack_require__(/*! ../helpers/typeof */ \"./node_modules/@babel/runtime/helpers/typeof.js\");\n\nvar assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized */ \"./node_modules/@babel/runtime/helpers/assertThisInitialized.js\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9wb3NzaWJsZUNvbnN0cnVjdG9yUmV0dXJuLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvcG9zc2libGVDb25zdHJ1Y3RvclJldHVybi5qcz82YjU4Il0sInNvdXJjZXNDb250ZW50IjpbInZhciBfdHlwZW9mID0gcmVxdWlyZShcIi4uL2hlbHBlcnMvdHlwZW9mXCIpO1xuXG52YXIgYXNzZXJ0VGhpc0luaXRpYWxpemVkID0gcmVxdWlyZShcIi4vYXNzZXJ0VGhpc0luaXRpYWxpemVkXCIpO1xuXG5mdW5jdGlvbiBfcG9zc2libGVDb25zdHJ1Y3RvclJldHVybihzZWxmLCBjYWxsKSB7XG4gIGlmIChjYWxsICYmIChfdHlwZW9mKGNhbGwpID09PSBcIm9iamVjdFwiIHx8IHR5cGVvZiBjYWxsID09PSBcImZ1bmN0aW9uXCIpKSB7XG4gICAgcmV0dXJuIGNhbGw7XG4gIH1cblxuICByZXR1cm4gYXNzZXJ0VGhpc0luaXRpYWxpemVkKHNlbGYpO1xufVxuXG5tb2R1bGUuZXhwb3J0cyA9IF9wb3NzaWJsZUNvbnN0cnVjdG9yUmV0dXJuOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\n"); /***/ }), /***/ "./node_modules/@babel/runtime/helpers/setPrototypeOf.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9zZXRQcm90b3R5cGVPZi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL3NldFByb3RvdHlwZU9mLmpzPzRhNGIiXSwic291cmNlc0NvbnRlbnQiOlsiZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgbW9kdWxlLmV4cG9ydHMgPSBfc2V0UHJvdG90eXBlT2YgPSBPYmplY3Quc2V0UHJvdG90eXBlT2YgfHwgZnVuY3Rpb24gX3NldFByb3RvdHlwZU9mKG8sIHApIHtcbiAgICBvLl9fcHJvdG9fXyA9IHA7XG4gICAgcmV0dXJuIG87XG4gIH07XG5cbiAgcmV0dXJuIF9zZXRQcm90b3R5cGVPZihvLCBwKTtcbn1cblxubW9kdWxlLmV4cG9ydHMgPSBfc2V0UHJvdG90eXBlT2Y7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/@babel/runtime/helpers/setPrototypeOf.js\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!***************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js& ***! \***************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _utils_scroll_to__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/scroll-to */ \"./resources/js/utils/scroll-to.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'Pagination',\n props: {\n total: {\n required: true,\n type: Number\n },\n page: {\n type: Number,\n default: 1\n },\n limit: {\n type: Number,\n default: 20\n },\n pageSizes: {\n type: Array,\n default: function _default() {\n return [10, 15, 20, 30, 50];\n }\n },\n layout: {\n type: String,\n default: 'total, sizes, prev, pager, next, jumper'\n },\n background: {\n type: Boolean,\n default: true\n },\n autoScroll: {\n type: Boolean,\n default: true\n },\n hidden: {\n type: Boolean,\n default: false\n }\n },\n computed: {\n currentPage: {\n get: function get() {\n return this.page;\n },\n set: function set(val) {\n this.$emit('update:page', val);\n }\n },\n pageSize: {\n get: function get() {\n return this.limit;\n },\n set: function set(val) {\n this.$emit('update:limit', val);\n }\n }\n },\n methods: {\n handleSizeChange: function handleSizeChange(val) {\n this.$emit('pagination', {\n page: this.currentPage,\n limit: val\n });\n\n if (this.autoScroll) {\n Object(_utils_scroll_to__WEBPACK_IMPORTED_MODULE_0__[\"scrollTo\"])(0, 800);\n }\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.$emit('pagination', {\n page: val,\n limit: this.pageSize\n });\n\n if (this.autoScroll) {\n Object(_utils_scroll_to__WEBPACK_IMPORTED_MODULE_0__[\"scrollTo\"])(0, 800);\n }\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL2NvbXBvbmVudHMvUGFnaW5hdGlvbi9pbmRleC52dWU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aW9uJywge1xuICAgICAgICBwYWdlOiB2YWwsXG4gICAgICAgIGxpbWl0OiB0aGlzLnBhZ2VTaXplXG4gICAgICB9KTtcblxuICAgICAgaWYgKHRoaXMuYXV0b1Njcm9sbCkge1xuICAgICAgICBzY3JvbGxUbygwLCA4MDApO1xuICAgICAgfVxuICAgIH1cbiAgfVxufTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _articles_components_Dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../articles/components/Dropdown */ \"./resources/js/views/articles/components/Dropdown/index.js\");\n/* harmony import */ var _directive_permission_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/directive/permission/index.js */ \"./resources/js/directive/permission/index.js\");\n/* harmony import */ var _directive_role_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/directive/role/index.js */ \"./resources/js/directive/role/index.js\");\n/* harmony import */ var _directive_waves__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/directive/waves */ \"./resources/js/directive/waves/index.js\");\n/* harmony import */ var _utils_permission__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/permission */ \"./resources/js/utils/permission.js\");\n/* harmony import */ var _api_producto__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/api/producto */ \"./resources/js/api/producto.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n // Waves directive\n\n\n\nvar productoResource = new _api_producto__WEBPACK_IMPORTED_MODULE_7__[\"default\"]('proyectosProductos');\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data: function data() {\n return {\n clientes: [],\n productosSelect: [],\n activeName: 'first',\n form: {\n id: 0,\n cliente_id: \"\",\n cliente_nombre: \"\",\n numero_parte_cliente: \"\",\n numero_parte: \"\",\n orden_compra: \"\",\n plan_corte: \"\",\n fecha_entrega: \"\",\n fecha_promesa: \"\",\n productos: [],\n agrupar: 1\n },\n productoAgregar: {\n producto: \"\",\n proyecto_producto: {\n cantidad: 1,\n heat_number: \"\",\n work_order: \"\",\n item: \"\",\n precio_pesos: 0,\n precio_dlls: 0,\n agrupar: 1\n }\n },\n rules: {\n numero_parte_cliente: [{\n required: true,\n message: 'Ingresa un número de parte',\n trigger: 'blur'\n }],\n cliente_id: [{\n required: true,\n message: 'Selecciona un cliente',\n trigger: 'change'\n }],\n fecha_entrega: [{\n required: true,\n message: 'Selecciona una fecha de entrega',\n trigger: 'blur'\n }]\n },\n dialogoAgregar: false,\n dialogRef: 'myForm',\n dialogoProductos: false,\n loadingCliente: false,\n page: 1,\n pageSize: 10,\n total: 0,\n\n /*ProyectoProducto Edit Dialog*/\n currentProyectoProducto: {\n producto: \"\",\n proyecto_producto: {\n cantidad: 1,\n heat_number: \"\",\n work_order: \"\",\n item: \"\",\n precio_pesos: 0,\n precio_dlls: 0,\n agrupar: 0\n }\n },\n dialogoProyectoProductoEdit: false\n };\n },\n computed: {\n searching: function searching() {\n this.total = this.form.productos.length;\n return this.form.productos;\n },\n displayData: function displayData() {\n return this.searching.slice(this.pageSize * this.page - this.pageSize, this.pageSize * this.page);\n },\n disableAddProducto: function disableAddProducto() {\n if (this.form.cliente_id == 0) return true;\n return false;\n },\n disableEditProducto: function disableEditProducto() {\n if (this.currentProyectoProducto.producto == \"\") {\n return true;\n }\n\n return false;\n },\n agruparTexto: function agruparTexto() {\n if (this.productoAgregar.proyecto_producto.agrupar == 1) {\n return \"Agrupar\";\n } else {\n return \"Agregar \" + this.productoAgregar.proyecto_producto.cantidad + \" Ordenes Nuevas\";\n }\n }\n },\n directives: {\n waves: _directive_waves__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n permission: _directive_permission_index_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n role: _directive_role_index_js__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n methods: {\n checkPermission: _utils_permission__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n open: function open() {\n this.getClientes();\n this.dialogoAgregar = true;\n },\n close: function close() {\n this.$parent.setCurrent();\n this.dialogoAgregar = false;\n },\n openProductDialog: function openProductDialog() {\n this.dialogoProductos = true;\n this.getProductos();\n },\n openProductDialogEdit: function openProductDialogEdit() {\n this.dialogoProyectoProductoEdit = true;\n },\n insert: function insert(form) {\n var _this = this;\n\n /*Update o Insert Proceso*/\n this.$refs[form].validate(function (valid) {\n //validacion del form\n if (valid) {\n var loadingInstance = _this.$loading({\n target: '.el-dialog'\n });\n\n var me = _this;\n axios.put('/proyectos/insert', me.form).then(function (response) {\n console.log(\"RESPONSE\");\n console.log(response);\n me.$parent.getList();\n me.clearFields();\n me.close();\n loadingInstance.close();\n me.$message.success('Guardado correctamente.');\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n });\n } else {\n return false;\n }\n });\n },\n clearFields: function clearFields() {\n /*Limpia los campos e inicializa la variable update a 0*/\n this.form.id = 0;\n this.form.cliente_id = 0;\n this.form.cliente_nombre = \"\";\n this.form.numero_parte_cliente = \"\";\n this.form.orden_compra = \"\";\n this.form.plan_corte = \"\";\n this.form.fecha_entrega = \"\";\n this.form.fecha_promesa = \"\";\n this.form.productos = [];\n },\n handleClose: function handleClose(done) {\n var _this2 = this;\n\n this.$confirm('Está seguro que deseas salir?').then(function (_) {\n _this2.clearFields(); //limpiamos campos\n\n\n _this2.close(); //cerramos modal\n\n }).catch(function (_) {});\n },\n handleCurrentChangePagination: function handleCurrentChangePagination(val) {\n this.page = val;\n },\n getProductos: function getProductos() {\n var _this3 = this;\n\n return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n var _yield$productoResour, data, meta;\n\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return productoResource.getProductosByCliente(_this3.form.cliente_id);\n\n case 2:\n _yield$productoResour = _context.sent;\n data = _yield$productoResour.data;\n meta = _yield$productoResour.meta;\n console.log(\"DATA GET PRODUCTOS\");\n console.log(data);\n _this3.productosSelect = data;\n\n _this3.actualizarSelectProductos();\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n getClientes: function getClientes() {\n var me = this;\n var url = '/clientes';\n this.loadingClientes = true;\n axios.get(url).then(function (response) {\n me.clientes = response.data;\n me.loadingClientes = false;\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n me.loadingClientes = false;\n });\n },\n changeCliente: function changeCliente() {\n var _this4 = this;\n\n if (this.form.cliente_nombre != \"\") {\n this.clientes.forEach(function (cliente) {\n if (cliente['nombre_cliente'] == _this4.form.cliente_nombre) {\n _this4.form.cliente_id = cliente['id'];\n }\n });\n } else {\n this.current.cliente_id = 0;\n }\n },\n actualizarSelectProductos: function actualizarSelectProductos() {//this.productosSelect = this.productosSelect.filter(x=> !this.form.productos.some(y=> y.id==x.id ));\n },\n //* ProyectoPrducto in Proyecto*/\n clearCurrent: function clearCurrent() {\n this.productoAgregar.producto = \"\";\n this.productoAgregar.proyecto_producto.cantidad = 1;\n this.productoAgregar.proyecto_producto.heat_number = \"\";\n this.productoAgregar.proyecto_producto.work_order = \"\";\n this.productoAgregar.proyecto_producto.item = \"\";\n this.productoAgregar.proyecto_producto.precio_pesos = 0;\n this.productoAgregar.proyecto_producto.precio_dlls = 0;\n this.productoAgregar.proyecto_producto.agrupar = 0;\n this.productosSelect = [];\n this.dialogoProductos = false;\n },\n\n /*Table ProyectoProducto*/\n\n /* TABLE */\n handleCurrentChangeTable: function handleCurrentChangeTable(val) {\n if (val != null) {\n this.currentProyectoProducto = val;\n } else {\n this.currentProyectoProducto = {\n producto: \"\",\n proyecto_producto: {\n cantidad: 1,\n heat_number: \"\",\n work_order: \"\",\n item: \"\",\n precio_pesos: 0,\n precio_dlls: 0,\n agrupar: 0\n }\n };\n }\n },\n setCurrent: function setCurrent(row) {\n this.$refs.proyectos_productos_table.setCurrentRow(row);\n },\n // setCurrentProyectoProducto(row) {\n // this.$refs.proyectos_productos_table.setCurrentRow(row);\n // },\n agregarProducto: function agregarProducto() {\n /** \"Validacion\" */\n if (this.productoAgregar.producto.id == \"\") {\n this.$message.error('Selecciona un producto');\n return false;\n }\n\n if (this.productoAgregar.proyecto_producto.cantidad == \"\" || this.productoAgregar.proyecto_producto.cantidad == 0) {\n this.$message.error('Ingresa una cantidad valida');\n return false;\n }\n /**Se agrerga el producto a la lista */\n\n\n this.productoAgregar.producto['proyecto_producto'] = JSON.parse(JSON.stringify(this.productoAgregar.proyecto_producto));\n this.form.productos.push(this.productoAgregar.producto);\n /**Se limpian los campos */\n\n this.clearCurrent();\n },\n updateProyectoProducto: function updateProyectoProducto() {\n var _this5 = this;\n\n /** \"Validacion\" */\n if (this.productoAgregar.proyecto_producto.cantidad == \"\" || this.productoAgregar.proyecto_producto.cantidad == 0) {\n this.$message.error('Ingresa una cantidad valida');\n return false;\n }\n /* Se busca el Producto que se edito y se actualiza*/\n\n\n this.form.productos.forEach(function (proyectoProducto) {\n if (proyectoProducto.id == _this5.currentProyectoProducto.id) {\n proyectoProducto = _this5.currentProyectoProducto;\n }\n });\n this.setCurrent();\n this.dialogoProyectoProductoEdit = false;\n },\n deleteRowProductos: function deleteRowProductos() {\n var _this6 = this;\n\n this.$confirm('Esto eliminara permanentemente el producto. Quieres continuar?', 'Advertencia', {\n confirmButtonText: 'Eliminar',\n cancelButtonText: 'Cancelar',\n type: 'warning'\n }).then(function () {\n var i = _this6.form.productos.map(function (producto) {\n return producto.id;\n }).indexOf(_this6.currentProyectoProducto.id);\n\n _this6.form.productos.splice(i, 1);\n }).catch(function () {\n _this6.$message({\n type: 'info',\n message: 'Eliminacion cancelada'\n });\n });\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9Gb3JtLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlPzRiNmIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IF9yZWdlbmVyYXRvclJ1bnRpbWUgZnJvbSBcIkBiYWJlbC9ydW50aW1lL3JlZ2VuZXJhdG9yXCI7XG5pbXBvcnQgX2FzeW5jVG9HZW5lcmF0b3IgZnJvbSBcIkBiYWJlbC9ydW50aW1lL2hlbHBlcnMvYXN5bmNUb0dlbmVyYXRvclwiO1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9c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joiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&": /*!********************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/List.vue?vue&type=script&lang=js& ***! \********************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ \"./node_modules/@babel/runtime/regenerator/index.js\");\n/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ \"./node_modules/@babel/runtime/helpers/asyncToGenerator.js\");\n/* harmony import */ var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Form */ \"./resources/js/views/proyectos/Form.vue\");\n/* harmony import */ var _documentos__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./documentos */ \"./resources/js/views/proyectos/documentos.vue\");\n/* harmony import */ var _components_Pagination__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/Pagination */ \"./resources/js/components/Pagination/index.vue\");\n/* harmony import */ var _directive_waves__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/directive/waves */ \"./resources/js/directive/waves/index.js\");\n/* harmony import */ var _directive_permission_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/directive/permission/index.js */ \"./resources/js/directive/permission/index.js\");\n/* harmony import */ var _directive_role_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/directive/role/index.js */ \"./resources/js/directive/role/index.js\");\n/* harmony import */ var _utils_permission__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/permission */ \"./resources/js/utils/permission.js\");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n // Waves directive\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data: function data() {\n return {\n listUrl: '/proyectos',\n deleteUrl: '/proyectos/delete',\n loading: true,\n list: [],\n presearch: '',\n search: '',\n page: 1,\n pageSize: 10,\n total: 0,\n currentRow: null,\n selectSearch: 'numero_parte_cliente'\n };\n },\n computed: {\n searching: function searching() {\n var _this = this;\n\n if (!this.search) {\n this.total = this.list.length;\n return this.list;\n }\n\n this.page = 1;\n\n if (this.selectSearch == \"nombre_cliente\") {\n return this.list.filter(function (data) {\n return data['cliente']['nombre_cliente'].toLowerCase().includes(_this.search.toLowerCase());\n });\n }\n\n return this.list.filter(function (data) {\n return data[_this.selectSearch].toLowerCase().includes(_this.search.toLowerCase());\n });\n },\n displayData: function displayData() {\n this.total = this.searching.length;\n return this.searching.slice(this.pageSize * this.page - this.pageSize, this.pageSize * this.page);\n },\n disableEditar: function disableEditar() {\n if (this.currentRow == null) {\n return true;\n }\n\n return false;\n }\n },\n directives: {\n waves: _directive_waves__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n permission: _directive_permission_index_js__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n role: _directive_role_index_js__WEBPACK_IMPORTED_MODULE_7__[\"default\"]\n },\n components: {\n formDialog: _Form__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n documentosDialog: _documentos__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n Pagination: _components_Pagination__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n methods: {\n checkPermission: _utils_permission__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n setCurrent: function setCurrent(row) {\n this.$refs.tableList.setCurrentRow(row);\n },\n //SELECTROW\n handleCurrentChangeTable: function handleCurrentChangeTable(val) {\n this.currentRow = val;\n },\n handleCurrentChangePagination: function handleCurrentChangePagination(val) {\n this.page = val;\n },\n handlePresearchChange: function handlePresearchChange() {\n if (!this.presearch) {\n this.search = '';\n }\n },\n handleSearch: function handleSearch() {\n this.search = this.presearch;\n },\n getList: function getList() {\n var _this2 = this;\n\n return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {\n var me;\n return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n me = _this2;\n axios.get(me.listUrl).then(function (response) {\n me.list = response.data;\n console.log(me.list);\n me.loading = false;\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n });\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n loadFieldsUpdate: function loadFieldsUpdate(data) {\n this.$refs.myForm.form.id = data.id;\n this.$refs.myForm.form.cliente_id = data.cliente_id;\n this.$refs.myForm.form.cliente_nombre = data.cliente.nombre_cliente;\n this.$refs.myForm.form.numero_parte_cliente = data.numero_parte_cliente;\n this.$refs.myForm.form.numero_parte = data.numero_parte;\n this.$refs.myForm.form.orden_compra = data.orden_compra;\n this.$refs.myForm.form.plan_corte = data.plan_corte;\n this.$refs.myForm.form.fecha_entrega = data.fecha_entrega;\n this.$refs.myForm.form.productos = JSON.parse(JSON.stringify(data.productos));\n this.$refs.myForm.open();\n },\n loadDocumentos: function loadDocumentos(data) {\n this.$refs.documentosDialog.form.id = data.id;\n this.$refs.documentosDialog.form.numero_parte = data.numero_parte;\n this.$refs.documentosDialog.form.numero_parte_cliente = data.numero_parte_cliente;\n this.$refs.documentosDialog.form.documentos = JSON.parse(JSON.stringify(data.documentos));\n this.$refs.documentosDialog.open();\n },\n deleteRow: function deleteRow(id, proyecto) {\n var _this3 = this;\n\n this.$confirm('Esto eliminara permanentemente el proyecto ' + proyecto + '. Quieres continuar?', 'Advertencia', {\n confirmButtonText: 'Eliminar',\n cancelButtonText: 'Cancelar',\n type: 'warning'\n }).then(function () {\n var me = _this3;\n me.loading = true;\n axios.post(me.deleteUrl, {\n 'id': id\n }).then(function (response) {\n me.getList();\n me.$message.success('Eliminado correctamente.');\n me.loading = false;\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n me.loading = false;\n });\n }).catch(function () {\n _this3.$message({\n type: 'info',\n message: 'Eliminacion cancelada'\n });\n });\n }\n },\n mounted: function mounted() {\n this.getList();\n }\n});//# sourceURL=[module]\n//# sourceMapp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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&": /*!**************************************************************************************************************************************************************************!*\ !*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js& ***! \**************************************************************************************************************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _articles_components_Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../articles/components/Dropdown */ \"./resources/js/views/articles/components/Dropdown/index.js\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n props: {\n csrf: {\n type: String\n },\n photourl: {\n type: String\n }\n },\n data: function data() {\n return {\n imageUrl: '',\n fileList: [],\n form: {\n id: 0,\n numero_parte: \"\",\n numero_parte_cliente: \"\",\n documentos: []\n },\n dialogoAgregar: false,\n dialogRef: 'documentosDialog',\n dialogoDocumentos: false,\n loadingImage: false,\n imageFile: null\n };\n },\n methods: {\n open: function open() {\n this.dialogoAgregar = true;\n },\n close: function close() {\n this.dialogoAgregar = false;\n },\n clearFields: function clearFields() {\n this.form.id = 0;\n this.form.documentos = [];\n },\n handleClose: function handleClose(done) {\n var _this = this;\n\n this.$confirm('Está seguro que deseas salir?').then(function (_) {\n _this.dialogoDocumentos = false;\n }).catch(function (_) {});\n },\n deleteDocumento: function deleteDocumento(row) {\n var me = this;\n me.loading = true;\n var loadingInstance = this.$loading({\n target: '#dialogoListDocumento > .el-dialog'\n });\n axios.post('/proyectos/documentos/delete', {\n 'proyecto_id': me.form.id,\n 'documento_id': row.id\n }).then(function (response) {\n var i = me.form.documentos.map(function (documento) {\n return documento.id;\n }).indexOf(row.id); // find index of your object\n\n me.form.documentos = response.data.documentos;\n me.$message.success('Eliminado correctamente.');\n loadingInstance.close();\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n });\n },\n submitUpload: function submitUpload() {\n var me = this;\n\n if (me.fileList[0] == 'undefined' || me.fileList[0] == null) {\n me.notificarError(\"Selecciona un archivo para subir\");\n return false;\n }\n\n var loadingInstance = this.$loading({\n target: '#dialogoAgregarDocumento > .el-dialog'\n });\n var formData = new FormData();\n formData.append('file', me.fileList[0].raw);\n formData.append('proyecto_id', me.form.id);\n axios.post('/proyectos/documentos/store', formData, {\n headers: {\n 'Content-Type': 'multipart/form-data'\n }\n }).then(function (response) {\n me.$message.success('Guardado correctamente.');\n me.form.documentos = response.data.documentos;\n me.fileList = [];\n loadingInstance.close();\n me.dialogoDocumentos = false;\n }).catch(function (error) {\n me.$message.error('Hubo un error.');\n console.log(error);\n loadingInstance.close();\n me.dialogoDocumentos = false;\n });\n },\n handleProgress: function handleProgress(ev, file, fileLIst) {\n file.raw['status'] = \"uploading\";\n },\n handleSuccess: function handleSuccess(res, file, fileLIst) {\n file.raw['status'] = \"success\";\n },\n handleUploadChange: function handleUploadChange(file, fileList) {\n this.fileList = fileList.slice(-1);\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvYmFiZWwtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9kb2N1bWVudG9zLnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL2RvY3VtZW50b3MudnVlPzA1NDEiXSwic291cmNlc0NvbnRlbnQiOlsiLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbi8vXG4vL1xuLy9cbmltcG9ydCB7IENvbW1lbnREcm9wZG93biB9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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./resources/js/directive/waves/waves.css": /*!********************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/postcss-loader/src??ref--5-2!./resources/js/directive/waves/waves.css ***! \********************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \".waves-ripple {\\n position: absolute;\\n border-radius: 100%;\\n background-color: rgba(0, 0, 0, 0.15);\\n background-clip: padding-box;\\n pointer-events: none;\\n -webkit-user-select: none;\\n -moz-user-select: none;\\n -ms-user-select: none;\\n user-select: none;\\n -webkit-transform: scale(0);\\n transform: scale(0);\\n opacity: 1;\\n}\\n\\n.waves-ripple.z-active {\\n opacity: 0;\\n -webkit-transform: scale(2);\\n transform: scale(2);\\n -webkit-transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out;\\n transition: opacity 1.2s ease-out, -webkit-transform 0.6s ease-out;\\n transition: opacity 1.2s ease-out, transform 0.6s ease-out;\\n transition: opacity 1.2s ease-out, transform 0.6s ease-out, -webkit-transform 0.6s ease-out;\\n}\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPyEuL3Jlc291cmNlcy9qcy9kaXJlY3RpdmUvd2F2ZXMvd2F2ZXMuY3NzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2RpcmVjdGl2ZS93YXZlcy93YXZlcy5jc3M/MjZmOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBJbXBvcnRzXG52YXIgX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fID0gcmVxdWlyZShcIi4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvcnVudGltZS9hcGkuanNcIik7XG5leHBvcnRzID0gX19fQ1NTX0xPQURFUl9BUElfSU1QT1JUX19fKGZhbHNlKTtcbi8vIE1vZHVsZVxuZXhwb3J0cy5wdXNoKFttb2R1bGUuaWQsIFwiLndhdmVzLXJpcHBsZSB7XFxuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcXG4gICAgYm9yZGVyLXJhZGl1czogMTAwJTtcXG4gICAgYmFja2dyb3VuZC1jb2xvcj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O0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./resources/js/directive/waves/waves.css\n"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n.pagination-container[data-v-5efa73f0] {\\n background: #fff;\\n padding: 32px 16px;\\n}\\n.pagination-container.hidden[data-v-5efa73f0] {\\n display: none;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPTVlZmE3M2YwJnNjb3BlZD10cnVlJmxhbmc9Y3NzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1BhZ2luYXRpb24vaW5kZXgudnVlPzc3YTEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gSW1wb3J0c1xudmFyIF9fX0NTU19MT0FERVJfQVBJX0lNUE9SVF9fXyA9IHJlcXVpcmUoXCIuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L3J1bnRpbWUvYXBpLmpzXCIpO1xuZXhwb3J0cyA9IF9fX0NTU19MT0FERVJfQVBJX0lNUE9SVF9fXyhmYWxzZSk7XG4vLyBNb2R1bGVcbmV4cG9ydHMucHVzaChbbW9kdWxlLmlkLCBcIlxcbi5wYWdpbmF0aW9uLWNvbnRhaW5lcltkYXRhLXYtNWVmYTczZjBdIHtcXG4gIGJhY2tncm91bmQ6ICNmZmY7XFxuICBwYWRkaW5nOiAzMnB4IDE2cHg7XFxufVxcbi5wYWdpbmF0aW9uLWNvbnRhaW5lci5oaWRkZW5bZGF0YS12LTVlZmE3M2YwXSB7XFxuICBkaXNwbGF5OiBub25lO1xcbn1cXG5cIiwgXCJcIl0pO1xuLy8gRXhwb3J0c1xubW9kdWxlLmV4cG9ydHMgPSBleHBvcnRzO1xuIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&": /*!***************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& ***! \***************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n.color[data-v-f4bbc2f8] {\\n width: 100%;\\n}\\n#cliente_col + .el-input[data-v-f4bbc2f8] {\\n width: 100%;\\n}\\n.el-input-number--mini[data-v-f4bbc2f8] {\\n width: 100%;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2lu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/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&": /*!***************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css& ***! \***************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n#barra_busqueda > .el-select .el-input {\\n width: 180px;\\n}\\n.input-with-select .el-input-group__prepend {\\n background-color: #fff;\\n}\\n.el-table .cell {\\n word-break: break-word;\\n}\\n\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi9ub2RlX21vZHVsZXMvcG9zdGNzcy1sb2FkZXIvc3JjL2luZGV4LmpzPyEuL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8hLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0xpc3QudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9MaXN0LnZ1ZT9kNjJmIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIEltcG9ydHNcbnZhciBfX19DU1NfTE9BREVSX0FQSV9JTVBPUlRfX18gPSByZXF1aXJlKFwiLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9ydW50aW1lL2FwaS5qc1wiKTtcbmV4cG9ydHMgPSBfX19DU1NfTE9BREVSX0FQSV9JTVBPUlRfX18oZmFsc2UpO1xuLy8gTW9kdWxlXG5leHBvcnRzLnB1c2goW21vZHVsZS5pZCwgXCJcXG4jYmFycmFfYnVzcXVlZGEgPiAuZWwtc2VsZWN0IC5lbC1pbnB1dCB7XFxuICAgIHdpZHRoOiAxODBweDtcXG59XFxuLmlucHV0LXdpdGgtc2VsZWN0IC5lbC1pbnB1dC1ncm91cF9fcHJlcGVuZCB7XFxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XFxufVxcbi5lbC10YWJsZSAuY2VsbCB7XFxuICAgIHdvcmQtYnJlYWs6IGJyZWFrLXdvcmQ7XFxufVxcblxcblwiLCBcIlwiXSk7XG4vLyBFeHBvcnRzXG5tb2R1bGUuZXhwb3J0cyA9IGV4cG9ydHM7XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\n"); /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&": /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json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0pO1xuXG5cdG1vZHVsZS5ob3QuZGlzcG9zZShmdW5jdGlvbigpIHsgdXBkYXRlKCk7IH0pO1xufSJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/IS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvc3R5bGVQb3N0TG9hZGVyLmpzIS4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9Gb3JtLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPWY0YmJjMmY4JnNjb3BlZD10cnVlJmxhbmc9Y3NzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvRm9ybS52dWU/ZWFiYSJdLCJzb3VyY2VzQ29udGVudCI6WyJcbnZhciBjb250ZW50ID0gcmVxdWlyZShcIiEhLi4vLi4vLi4vLi4vbm9kZV9tb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SBpbiBhKSB7XG5cdFx0XHRcdGlmKCFiIHx8IGFba2V5XSAhPT0gYltrZXldKSByZXR1cm4gZmFsc2U7XG5cdFx0XHRcdGlkeCsrO1xuXHRcdFx0fVxuXG5cdFx0XHRmb3Ioa2V5IGluIGIpIGlkeC0tO1xuXG5cdFx0XHRyZXR1cm4gaWR4ID09PSAwO1xuXHRcdH0oY29udGVudC5sb2NhbHMsIG5ld0NvbnRlbnQubG9jYWxzKSk7XG5cblx0XHRpZighbG9jYWxzKSB0aHJvdyBuZXcgRXJyb3IoJ0Fib3J0aW5nIENTUyBITVIgZHVlIHRvIGNoYW5nZWQgY3NzLW1vZHVsZXMgbG9jYWxzLicpO1xuXG5cdFx0dXBkYXRlKG5ld0NvbnRlbnQpO1xuXHR9KTtcblxuXHRtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24oKSB7IHVwZGF0ZSgpOyB9KTtcbn0iXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\n"); /***/ }), /***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&": /*!*******************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css& ***! \*******************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4vbm9kZV9tb2R1bGVzL2Nzcy1sb2FkZXIvZGlzdC9janMuanM/IS4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvc3R5bGVQb3N0TG9hZGVyLmpzIS4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvY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Blb2YgbmV3Q29udGVudCA9PT0gJ3N0cmluZycpIG5ld0NvbnRlbnQgPSBbW21vZHVsZS5pZCwgbmV3Q29udGVudCwgJyddXTtcblxuXHRcdHZhciBsb2NhbHMgPSAoZnVuY3Rpb24oYSwgYikge1xuXHRcdFx0dmFyIGtleSwgaWR4ID0gMDtcblxuXHRcdFx0Zm9yKGtleSBpbiBhKSB7XG5cdFx0XHRcdGlmKCFiIHx8IGFba2V5XSAhPT0gYltrZXldKSByZXR1cm4gZmFsc2U7XG5cdFx0XHRcdGlkeCsrO1xuXHRcdFx0fVxuXG5cdFx0XHRmb3Ioa2V5IGluIGIpIGlkeC0tO1xuXG5cdFx0XHRyZXR1cm4gaWR4ID09PSAwO1xuXHRcdH0oY29udGVudC5sb2NhbHMsIG5ld0NvbnRlbnQubG9jYWxzKSk7XG5cblx0XHRpZighbG9jYWxzKSB0aHJvdyBuZXcgRXJyb3IoJ0Fib3J0aW5nIENTUyBITVIgZHVlIHRvIGNoYW5nZWQgY3NzLW1vZHVsZXMgbG9jYWxzLicpO1xuXG5cdFx0dXBkYXRlKG5ld0NvbnRlbnQpO1xuXHR9KTtcblxuXHRtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24oKSB7IHVwZGF0ZSgpOyB9KTtcbn0iXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&": /*!*******************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true& ***! \*******************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"pagination-container\", class: { hidden: _vm.hidden } },\n [\n _c(\n \"el-pagination\",\n _vm._b(\n {\n attrs: {\n background: _vm.background,\n \"current-page\": _vm.currentPage,\n \"page-size\": _vm.pageSize,\n layout: _vm.layout,\n \"page-sizes\": _vm.pageSizes,\n total: _vm.total\n },\n on: {\n \"update:currentPage\": function($event) {\n _vm.currentPage = $event\n },\n \"update:current-page\": function($event) {\n _vm.currentPage = $event\n },\n \"update:pageSize\": function($event) {\n _vm.pageSize = $event\n },\n \"update:page-size\": function($event) {\n _vm.pageSize = $event\n },\n \"size-change\": _vm.handleSizeChange,\n \"current-change\": _vm.handleCurrentChange\n }\n },\n \"el-pagination\",\n _vm.$attrs,\n false\n )\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci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4gICAgICAgICAgICAgIFwidXBkYXRlOmN1cnJlbnRQYWdlXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgIF92bS5jdXJyZW50UGFnZSA9ICRldmVudFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBcInVwZGF0ZTpjdXJyZW50LXBhZ2VcIjogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRQYWdlID0gJGV2ZW50XG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIFwidXBkYXRlOnBhZ2VTaXplXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgIF92bS5wYWdlU2l6ZSA9ICRldmVudFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBcInVwZGF0ZTpwYWdlLXNpemVcIjogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgX3ZtLnBhZ2VTaXplID0gJGV2ZW50XG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIFwic2l6ZS1jaGFuZ2VcIjogX3ZtLmhhbmRsZVNpemVDaGFuZ2UsXG4gICAgICAgICAgICAgIFwiY3VycmVudC1jaGFuZ2VcIjogX3ZtLmhhbmRsZUN1cnJlbnRDaGFuZ2VcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwiZWwtcGFnaW5hdGlvblwiLFxuICAgICAgICAgIF92bS4kYXR0cnMsXG4gICAgICAgICAgZmFsc2VcbiAgICAgICAgKVxuICAgICAgKVxuICAgIF0sXG4gICAgMVxuICApXG59XG52YXIgc3RhdGljUmVuZGVyRm5zID0gW11cbnJlbmRlci5fd2l0aFN0cmlwcGVkID0gdHJ1ZVxuXG5leHBvcnQgeyByZW5kZXIsIHN0YXRpY1JlbmRlckZucyB9Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&": /*!************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true& ***! \************************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"el-form\",\n {\n ref: \"form\",\n attrs: {\n model: _vm.form,\n rules: _vm.rules,\n \"label-position\": \"top\",\n \"label-width\": \"150px\"\n }\n },\n [\n _c(\n \"el-dialog\",\n {\n ref: _vm.dialogRef,\n attrs: {\n width: \"60%\",\n \"before-close\": _vm.handleClose,\n visible: _vm.dialogoAgregar\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogoAgregar = $event\n }\n }\n },\n [\n _vm.form.id == 0\n ? _c(\"span\", { attrs: { slot: \"title\" }, slot: \"title\" }, [\n _c(\"i\", { staticClass: \"el-icon-plus\" }),\n _vm._v(\" Agregar Proyecto\")\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _vm.form.id != 0\n ? _c(\"span\", { attrs: { slot: \"title\" }, slot: \"title\" }, [\n _c(\"i\", { staticClass: \"el-icon-edit\" }),\n _vm._v(\" Editar Proyecto \")\n ])\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.form.id,\n expression: \"form.id\"\n }\n ],\n attrs: { hidden: \"\" },\n domProps: { value: _vm.form.id },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.$set(_vm.form, \"id\", $event.target.value)\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.form.numero_parte,\n expression: \"form.numero_parte\"\n }\n ],\n attrs: { hidden: \"\" },\n domProps: { value: _vm.form.numero_parte },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.$set(_vm.form, \"numero_parte\", $event.target.value)\n }\n }\n }),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n {\n attrs: {\n label: \"Número de Parte (Local)\",\n prop: \"numero_parte\"\n }\n },\n [\n _c(\"el-tag\", { attrs: { type: \"info\" } }, [\n _vm._v(\n \" \" +\n _vm._s(\n _vm.form.numero_parte == \"\"\n ? \"—\"\n : _vm.form.numero_parte\n )\n )\n ])\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Cliente\", prop: \"cliente_id\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: {\n id: \"cliente_select\",\n disabled: !_vm.checkPermission([\n \"editar proyectos\"\n ]),\n \"value-key\": \"nombre_cliente\",\n filterable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.changeCliente()\n }\n },\n model: {\n value: _vm.form.cliente_nombre,\n callback: function($$v) {\n _vm.$set(_vm.form, \"cliente_nombre\", $$v)\n },\n expression: \"form.cliente_nombre\"\n }\n },\n _vm._l(_vm.clientes, function(cliente) {\n return _c(\"el-option\", {\n key: cliente.id,\n attrs: {\n label: cliente.nombre_cliente,\n value: cliente.nombre_cliente\n }\n })\n }),\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n {\n attrs: {\n label: \"Nombre del Proyecto\",\n prop: \"numero_parte_cliente\"\n }\n },\n [\n _c(\"el-input\", {\n attrs: {\n disabled: !_vm.checkPermission([\"editar proyectos\"])\n },\n model: {\n value: _vm.form.numero_parte_cliente,\n callback: function($$v) {\n _vm.$set(_vm.form, \"numero_parte_cliente\", $$v)\n },\n expression: \"form.numero_parte_cliente\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n {\n attrs: {\n label: \"Orden de Compra (Cliente)\",\n prop: \"orden_compra\"\n }\n },\n [\n _c(\"el-input\", {\n attrs: {\n disabled: !_vm.checkPermission([\"editar proyectos\"])\n },\n model: {\n value: _vm.form.orden_compra,\n callback: function($$v) {\n _vm.$set(_vm.form, \"orden_compra\", $$v)\n },\n expression: \"form.orden_compra\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _vm.checkPermission([\"ver fecha entrega proyectos\"])\n ? _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n {\n attrs: {\n label: \"Fecha de Entrega\",\n prop: \"fecha_entrega\"\n }\n },\n [\n _c(\"el-date-picker\", {\n attrs: {\n disabled: !_vm.checkPermission([\n \"editar proyectos\"\n ]),\n type: \"date\"\n },\n model: {\n value: _vm.form.fecha_entrega,\n callback: function($$v) {\n _vm.$set(_vm.form, \"fecha_entrega\", $$v)\n },\n expression: \"form.fecha_entrega\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 5 } },\n [\n _c(\n \"el-form-item\",\n {\n attrs: {\n label: \"Fecha de Promesa\",\n prop: \"fecha_promesa\"\n }\n },\n [\n _c(\"el-date-picker\", {\n attrs: {\n disabled: !_vm.checkPermission([\"editar proyectos\"]),\n type: \"date\"\n },\n model: {\n value: _vm.form.fecha_promesa,\n callback: function($$v) {\n _vm.$set(_vm.form, \"fecha_promesa\", $$v)\n },\n expression: \"form.fecha_promesa\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n [\n _c(\n \"el-col\",\n [\n _c(\n \"el-tabs\",\n {\n attrs: { stretch: true },\n model: {\n value: _vm.activeName,\n callback: function($$v) {\n _vm.activeName = $$v\n },\n expression: \"activeName\"\n }\n },\n [\n _c(\n \"el-tab-pane\",\n {\n attrs: {\n label: \"Ordenes del Proyecto\",\n name: \"first\"\n }\n },\n [\n _c(\"el-row\", [\n _c(\n \"div\",\n { staticClass: \"filter-container\" },\n [\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" }\n ],\n staticClass: \"filter-item\",\n attrs: {\n disabled: _vm.disableAddProducto,\n \"v-show\": _vm.checkPermission([\n \"agrergar productos proyectos\"\n ]),\n size: \"small\",\n type: \"primary\",\n icon: \"el-icon-plus\"\n },\n on: {\n click: function($event) {\n return _vm.openProductDialog()\n }\n }\n },\n [\n _vm._v(\n \"\\n Agregar\"\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" }\n ],\n staticClass: \"filter-item\",\n attrs: {\n disabled: _vm.disableEditProducto,\n \"v-show\": _vm.checkPermission([\n \"editar productos proyectos\"\n ]),\n size: \"small\",\n type: \"primary\",\n icon: \"el-icon-edit\"\n },\n on: {\n click: function($event) {\n return _vm.openProductDialogEdit()\n }\n }\n },\n [\n _vm._v(\n \"\\n Editar\"\n )\n ]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" }\n ],\n staticClass: \"filter-item\",\n attrs: {\n disabled: _vm.disableEditProducto,\n \"v-show\": _vm.checkPermission([\n \"eliminar productos proyectos\"\n ]),\n size: \"small\",\n type: \"danger\",\n icon: \"el-icon-delete\"\n },\n on: {\n click: function($event) {\n return _vm.deleteRowProductos()\n }\n }\n },\n [\n _vm._v(\n \"\\n Eliminar\"\n )\n ]\n )\n ],\n 1\n )\n ]),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n {\n attrs: {\n type: \"flex\",\n justify: \"space-around\",\n id: \"embarqueTransfer\"\n }\n },\n [\n _c(\n \"el-col\",\n [\n _c(\n \"el-table\",\n {\n ref: \"proyectos_productos_table\",\n staticStyle: { width: \"100%\" },\n attrs: {\n data: _vm.displayData,\n border: \"\",\n fit: \"\",\n \"highlight-current-row\": \"\"\n },\n on: {\n \"current-change\":\n _vm.handleCurrentChangeTable\n }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n type: \"index\",\n align: \"center\",\n width: \"80\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"numero_parte_cliente\",\n label: \"Producto\",\n \"show-overflow-tooltip\": \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"proyecto_producto.cantidad\",\n label: \"Cantidad\",\n align: \"center\",\n width: \"85\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"proyecto_producto.work_order\",\n label: \"Orden de Trabajo\",\n align: \"center\",\n width: \"85\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"proyecto_producto.item\",\n label: \"Item\",\n align: \"center\",\n width: \"85\"\n }\n }),\n _vm._v(\" \"),\n _vm.checkPermission([\n \"view finanzas ordenes abiertas\"\n ])\n ? _c(\"el-table-column\", {\n attrs: {\n label: \"Precio (pesos)\",\n align: \"center\",\n \"show-overflow-tooltip\": \"\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row\n .proyecto_producto\n .precio_pesos\n ? _c(\"vue-numeric\", {\n attrs: {\n precision: 2,\n currency: \"$\",\n separator: \",\",\n \"read-only\": true\n },\n model: {\n value:\n scope.row\n .proyecto_producto\n .precio_pesos,\n callback: function(\n $$v\n ) {\n _vm.$set(\n scope.row\n .proyecto_producto,\n \"precio_pesos\",\n $$v\n )\n },\n expression:\n \"scope.row.proyecto_producto.precio_pesos\"\n }\n })\n : _c(\"span\", [\n _vm._v(\"$ 0.00 \")\n ])\n ]\n }\n }\n ],\n null,\n false,\n 345416065\n )\n })\n : _vm._e(),\n _vm._v(\" \"),\n _vm.checkPermission([\n \"view finanzas ordenes abiertas\"\n ])\n ? _c(\"el-table-column\", {\n attrs: {\n label: \"Precio (dlls)\",\n align: \"center\",\n \"show-overflow-tooltip\": \"\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return [\n scope.row\n .proyecto_producto\n .precio_dlls\n ? _c(\"vue-numeric\", {\n attrs: {\n precision: 2,\n currency: \"$\",\n separator: \",\",\n \"read-only\": true\n },\n model: {\n value:\n scope.row\n .proyecto_producto\n .precio_dlls,\n callback: function(\n $$v\n ) {\n _vm.$set(\n scope.row\n .proyecto_producto,\n \"precio_dlls\",\n $$v\n )\n },\n expression:\n \"scope.row.proyecto_producto.precio_dlls\"\n }\n })\n : _c(\"span\", [\n _vm._v(\"$ 0.00 \")\n ])\n ]\n }\n }\n ],\n null,\n false,\n 2656912897\n )\n })\n : _vm._e()\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { type: \"flex\", justify: \"end\" } },\n [\n _c(\"el-pagination\", {\n attrs: {\n background: \"\",\n layout: \"prev, pager, next\",\n \"page-size\": _vm.pageSize,\n total: _vm.total\n },\n on: {\n \"current-change\":\n _vm.handleCurrentChangePagination\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n staticClass: \"float-left\",\n on: {\n click: function($event) {\n _vm.clearFields()\n _vm.close()\n }\n }\n },\n [_vm._v(\"Cancelar\")]\n ),\n _vm._v(\" \"),\n _vm.form.id == 0\n ? _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n attrs: { type: \"success\", icon: \"el-icon-check\" },\n on: {\n click: function($event) {\n return _vm.insert(\"form\")\n }\n }\n },\n [_vm._v(\"Agregar\")]\n )\n : _vm._e(),\n _vm._v(\" \"),\n _vm.form.id != 0\n ? _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n attrs: { type: \"success\", icon: \"el-icon-check\" },\n on: {\n click: function($event) {\n return _vm.insert(\"form\")\n }\n }\n },\n [_vm._v(\"Guardar\")]\n )\n : _vm._e()\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"Agregar Material a Producto\",\n visible: _vm.dialogoProductos,\n width: \"30%\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogoProductos = $event\n }\n }\n },\n [\n _c(\n \"el-form-item\",\n { staticClass: \"text-right\" },\n [\n _c(\"el-switch\", {\n staticStyle: { display: \"block\" },\n attrs: {\n \"active-value\": 1,\n \"inactive-value\": 0,\n \"active-color\": \"#409EFF\",\n \"inactive-color\": \"#409EFF\",\n \"active-text\": _vm.agruparTexto\n },\n model: {\n value: _vm.productoAgregar.proyecto_producto.agrupar,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"agrupar\",\n $$v\n )\n },\n expression: \"productoAgregar.proyecto_producto.agrupar\"\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Producto\" } },\n [\n _c(\n \"el-select\",\n {\n attrs: { \"value-key\": \"id\", filterable: \"\" },\n model: {\n value: _vm.productoAgregar.producto,\n callback: function($$v) {\n _vm.$set(_vm.productoAgregar, \"producto\", $$v)\n },\n expression: \"productoAgregar.producto\"\n }\n },\n _vm._l(_vm.productosSelect, function(producto) {\n return _c(\"el-option\", {\n key: producto.id,\n attrs: {\n label:\n producto.numero_parte +\n \"/\" +\n producto.numero_parte_cliente,\n value: producto,\n disabled: producto.disabled\n }\n })\n }),\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Cantidad\" } },\n [\n _c(\"el-input-number\", {\n staticStyle: { width: \"100%\" },\n attrs: { min: 1 },\n model: {\n value: _vm.productoAgregar.proyecto_producto.cantidad,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"cantidad\",\n $$v\n )\n },\n expression:\n \"productoAgregar.proyecto_producto.cantidad\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Item\" } },\n [\n _c(\"el-input\", {\n model: {\n value: _vm.productoAgregar.proyecto_producto.item,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"item\",\n $$v\n )\n },\n expression: \"productoAgregar.proyecto_producto.item\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Orden de Trabajo\" } },\n [\n _c(\"el-input\", {\n model: {\n value:\n _vm.productoAgregar.proyecto_producto.work_order,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"work_order\",\n $$v\n )\n },\n expression:\n \"productoAgregar.proyecto_producto.work_order\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Precio (pesos)\" } },\n [\n _c(\"vue-numeric\", {\n staticClass: \"el-input__inner\",\n attrs: { precision: 2, currency: \"$\", separator: \",\" },\n model: {\n value:\n _vm.productoAgregar.proyecto_producto.precio_pesos,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"precio_pesos\",\n $$v\n )\n },\n expression:\n \"productoAgregar.proyecto_producto.precio_pesos\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Precio (dlls)\" } },\n [\n _c(\"vue-numeric\", {\n staticClass: \"el-input__inner\",\n attrs: { precision: 2, currency: \"$\", separator: \",\" },\n model: {\n value:\n _vm.productoAgregar.proyecto_producto.precio_dlls,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"precio_dlls\",\n $$v\n )\n },\n expression:\n \"productoAgregar.proyecto_producto.precio_dlls\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-form-item\",\n { attrs: { label: \"Heat Number\", hidden: \"\" } },\n [\n _c(\"el-input\", {\n model: {\n value: _vm.productoAgregar.proyecto_producto.heat_number,\n callback: function($$v) {\n _vm.$set(\n _vm.productoAgregar.proyecto_producto,\n \"heat_number\",\n $$v\n )\n },\n expression: \"productoAgregar.proyecto_producto.heat_number\"\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n on: {\n click: function($event) {\n _vm.dialogoProductos = false\n }\n }\n },\n [_vm._v(\"Cancelar\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n attrs: { type: \"primary\" },\n on: { click: _vm.agregarProducto }\n },\n [_vm._v(\"Confirmar\")]\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-dialog\",\n {\n attrs: {\n title: \"Editar Producto\",\n visible: _vm.dialogoProyectoProductoEdit,\n width: \"30%\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogoProyectoProductoEdit = $event\n }\n }\n },\n [\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\"el-form-item\", { attrs: { label: \"Producto\" } }, [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm.currentProyectoProducto.numero_parte +\n \" / \" +\n _vm.currentProyectoProducto.numero_parte_cliente\n ) +\n \"\\n \"\n )\n ])\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Cantidad\" } },\n [\n _c(\"el-input-number\", {\n attrs: { min: 1 },\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto\n .cantidad,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"cantidad\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.cantidad\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Item\" } },\n [\n _c(\"el-input\", {\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto.item,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"item\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.item\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Orden de Trabajo\" } },\n [\n _c(\"el-input\", {\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto\n .work_order,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"work_order\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.work_order\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { gutter: 20 } },\n [\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Precio (pesos)\" } },\n [\n _c(\"vue-numeric\", {\n staticClass: \"el-input__inner\",\n attrs: { precision: 2, currency: \"$\", separator: \",\" },\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto\n .precio_pesos,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"precio_pesos\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.precio_pesos\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-col\",\n { attrs: { span: 12 } },\n [\n _c(\n \"el-form-item\",\n { attrs: { label: \"Precio (dlls)\" } },\n [\n _c(\"vue-numeric\", {\n staticClass: \"el-input__inner\",\n attrs: { precision: 2, currency: \"$\", separator: \",\" },\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto\n .precio_dlls,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"precio_dlls\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.precio_dlls\"\n }\n })\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-form-item\",\n { attrs: { label: \"Heat Number\", hidden: \"\" } },\n [\n _c(\"el-input\", {\n model: {\n value:\n _vm.currentProyectoProducto.proyecto_producto.heat_number,\n callback: function($$v) {\n _vm.$set(\n _vm.currentProyectoProducto.proyecto_producto,\n \"heat_number\",\n $$v\n )\n },\n expression:\n \"currentProyectoProducto.proyecto_producto.heat_number\"\n }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n on: {\n click: function($event) {\n _vm.dialogoProyectoProductoEdit = false\n }\n }\n },\n [_vm._v(\"Cancelar\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n attrs: { type: \"primary\" },\n on: { click: _vm.updateProyectoProducto }\n },\n [_vm._v(\"Confirmar\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9Gb3JtLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD1mNGJiYzJmOCZzY29wZWQ9dHJ1ZSYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlPzFjYTMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkge1xuICB2YXIgX3ZtID0gdGhpc1xuICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gIHJldHVybiBfYyhcbiAgICBcImVsLWZvcm1cIixcbiAgICB7XG4gICAgICByZWY6IFwiZm9ybVwiLFxuICAgICAgYXR0cnM6IHtcbiAgICAgICAgbW9kZWw6IF92bS5mb3JtLFxuICAgICAgICBydWxlczogX3ZtLnJ1bGVzLFxuICAgICAgICBcImxhYmVsLXBvc2l0aW9uXCI6IFwidG9wXCIsXG4gICAgICAgIFwibGFiZWwtd2lkdGhcIjogXCIxNTBweFwiXG4gICAgICB9XG4gICAgfSxcbiAgICBbXG4gICAgICBfYyhcbiAgICAgICAgXCJlbC1kaWFsb2dcIixcbiAgICAgICAge1xuICAgICAgICAgIHJlZjogX3ZtLmRpYWxvZ1JlZixcbiAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgd2lkdGg6IFwiNjAlXCIsXG4gICAgICAgICAgICBcImJlZm9yZS1jbG9zZVwiOiBfdm0uaGFuZGxlQ2xvc2UsXG4gICAgICAgICAgICB2aXNpYmxlOiBfdm0uZGlhbG9nb0FncmVnYXJcbiAgICAgICAgICB9LFxuICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICBcInVwZGF0ZTp2aXNpYmxlXCI6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICBfdm0uZGlhbG9nb0FncmVnYXIgPSAkZXZlbnRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFtcbiAgICAgICAgICBfdm0uZm9ybS5pZCA9PSAwXG4gICAgICAgICAgICA/IF9jKFwic3BhblwiLCB7IGF0dHJzOiB7IHNsb3Q6IFwidGl0bGVcIiB9LCBzbG90OiBcInRpdGxlXCIgfSwgW1xuICAgICAgICAgICAgICAgIF9jKFwiaVwiLCB7IHN0YXRpY0NsYXNzOiBcImVsLWljb24tcGx1c1wiIH0pLFxuICAgICAgICAgICAgICAgIF92bS5fdihcIiBBZ3JlZ2FyIFByb3llY3RvXCIpXG4gICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICA6IF92bS5fZSgpLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX3ZtLmZvcm0uaWQgIT0gMFxuICAgICAgICAgICAgPyBfYyhcInNwYW5cIiwgeyBhdHRyczogeyBzbG90OiBcInRpdGxlXCIgfSwgc2xvdDogXCJ0aXRsZVwiIH0sIFtcbiAgICAgICAgICAgICAgICBfYyhcImlcIiwgeyBzdGF0aWNDbGFzczogXCJlbC1pY29uLWVkaXRcIiB9KSxcbiAgICAgICAgICAgICAgICBfdm0uX3YoXCIgRWRpdGFyIFByb3llY3RvIFwiKVxuICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgOiBfdm0uX2UoKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwiaW5wdXRcIiwge1xuICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbmFtZTogXCJtb2RlbFwiLFxuICAgICAgICAgICAgICAgIHJhd05hbWU6IFwidi1tb2RlbFwiLFxuICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0uZm9ybS5pZCxcbiAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcImZvcm0uaWRcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgYXR0cnM6IHsgaGlkZGVuOiBcIlwiIH0sXG4gICAgICAgICAgICBkb21Qcm9wczogeyB2YWx1ZTogX3ZtLmZvcm0uaWQgfSxcbiAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgIGlucHV0OiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICBpZiAoJGV2ZW50LnRhcmdldC5jb21wb3NpbmcpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVyblxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBfdm0uJHNldChfdm0uZm9ybSwgXCJpZFwiLCAkZXZlbnQudGFyZ2V0LnZhbHVlKVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcImlucHV0XCIsIHtcbiAgICAgICAgICAgIGRpcmVjdGl2ZXM6IFtcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG5hbWU6IFwibW9kZWxcIixcbiAgICAgICAgICAgICAgICByYXdOYW1lOiBcInYtbW9kZWxcIixcbiAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLmZvcm0ubnVtZXJvX3BhcnRlLFxuICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiZm9ybS5udW1lcm9fcGFydGVcIlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgYXR0cnM6IHsgaGlkZGVuOiBcIlwiIH0sXG4gICAgICAgICAgICBkb21Qcm9wczogeyB2YWx1ZTogX3ZtLmZvcm0ubnVtZXJvX3BhcnRlIH0sXG4gICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICBpbnB1dDogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgaWYgKCRldmVudC50YXJnZXQuY29tcG9zaW5nKSB7XG4gICAgICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgX3ZtLiRzZXQoX3ZtLmZvcm0sIFwibnVtZXJvX3BhcnRlXCIsICRldmVudC50YXJnZXQudmFsdWUpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJlbC1yb3dcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgZ3V0dGVyOiAyMCB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiA1IH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJOw7ptZXJvIGRlIFBhcnRlIChMb2NhbClcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHByb3A6IFwibnVtZXJvX3BhcnRlXCJcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLXRhZ1wiLCB7IGF0dHJzOiB7IHR5cGU6IFwiaW5mb1wiIH0gfSwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICBcIiBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl9zKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmZvcm0ubnVtZXJvX3BhcnRlID09IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBcIuKAlFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogX3ZtLmZvcm0ubnVtZXJvX3BhcnRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDUgfSB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGxhYmVsOiBcIkNsaWVudGVcIiwgcHJvcDogXCJjbGllbnRlX2lkXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICBcImVsLXNlbGVjdFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBcImNsaWVudGVfc2VsZWN0XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ6ICFfdm0uY2hlY2tQZXJtaXNzaW9uKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWRpdGFyIHByb3llY3Rvc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJ2YWx1ZS1rZXlcIjogXCJub21icmVfY2xpZW50ZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbHRlcmFibGU6IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGFuZ2U6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF92bS5jaGFuZ2VDbGllbnRlKClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5mb3JtLmNsaWVudGVfbm9tYnJlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbigkJHYpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KF92bS5mb3JtLCBcImNsaWVudGVfbm9tYnJlXCIsICQkdilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiZm9ybS5jbGllbnRlX25vbWJyZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX2woX3ZtLmNsaWVudGVzLCBmdW5jdGlvbihjbGllbnRlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfYyhcImVsLW9wdGlvblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAga2V5OiBjbGllbnRlLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogY2xpZW50ZS5ub21icmVfY2xpZW50ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBjbGllbnRlLm5vbWJyZV9jbGllbnRlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiA1IH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJOb21icmUgZGVsIFByb3llY3RvXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBwcm9wOiBcIm51bWVyb19wYXJ0ZV9jbGllbnRlXCJcbiAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLWlucHV0XCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGRpc2FibGVkOiAhX3ZtLmNoZWNrUGVybWlzc2lvbihbXCJlZGl0YXIgcHJveWVjdG9zXCJdKVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0uZm9ybS5udW1lcm9fcGFydGVfY2xpZW50ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KF92bS5mb3JtLCBcIm51bWVyb19wYXJ0ZV9jbGllbnRlXCIsICQkdilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJmb3JtLm51bWVyb19wYXJ0ZV9jbGllbnRlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiA1IH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJPcmRlbiBkZSBDb21wcmEgKENsaWVudGUpXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBwcm9wOiBcIm9yZGVuX2NvbXByYVwiXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1pbnB1dFwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZDogIV92bS5jaGVja1Blcm1pc3Npb24oW1wiZWRpdGFyIHByb3llY3Rvc1wiXSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLmZvcm0ub3JkZW5fY29tcHJhLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoX3ZtLmZvcm0sIFwib3JkZW5fY29tcHJhXCIsICQkdilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJmb3JtLm9yZGVuX2NvbXByYVwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtcm93XCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGd1dHRlcjogMjAgfSB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfdm0uY2hlY2tQZXJtaXNzaW9uKFtcInZlciBmZWNoYSBlbnRyZWdhIHByb3llY3Rvc1wiXSlcbiAgICAgICAgICAgICAgICA/IF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWNvbFwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDUgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIkZlY2hhIGRlIEVudHJlZ2FcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9wOiBcImZlY2hhX2VudHJlZ2FcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLWRhdGUtcGlja2VyXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlzYWJsZWQ6ICFfdm0uY2hlY2tQZXJtaXNzaW9uKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlZGl0YXIgcHJveWVjdG9zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJkYXRlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLmZvcm0uZmVjaGFfZW50cmVnYSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbigkJHYpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoX3ZtLmZvcm0sIFwiZmVjaGFfZW50cmVnYVwiLCAkJHYpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJmb3JtLmZlY2hhX2VudHJlZ2FcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgOiBfdm0uX2UoKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDUgfSB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIkZlY2hhIGRlIFByb21lc2FcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHByb3A6IFwiZmVjaGFfcHJvbWVzYVwiXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1kYXRlLXBpY2tlclwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZDogIV92bS5jaGVja1Blcm1pc3Npb24oW1wiZWRpdGFyIHByb3llY3Rvc1wiXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IFwiZGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5mb3JtLmZlY2hhX3Byb21lc2EsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbigkJHYpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uJHNldChfdm0uZm9ybSwgXCJmZWNoYV9wcm9tZXNhXCIsICQkdilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJmb3JtLmZlY2hhX3Byb21lc2FcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLXJvd1wiLFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWNvbFwiLFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLXRhYnNcIixcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHN0cmV0Y2g6IHRydWUgfSxcbiAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5hY3RpdmVOYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uYWN0aXZlTmFtZSA9ICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiYWN0aXZlTmFtZVwiXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICBcImVsLXRhYi1wYW5lXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiT3JkZW5lcyBkZWwgUHJveWVjdG9cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOiBcImZpcnN0XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1yb3dcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZmlsdGVyLWNvbnRhaW5lclwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IG5hbWU6IFwid2F2ZXNcIiwgcmF3TmFtZTogXCJ2LXdhdmVzXCIgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImZpbHRlci1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZDogX3ZtLmRpc2FibGVBZGRQcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJ2LXNob3dcIjogX3ZtLmNoZWNrUGVybWlzc2lvbihbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhZ3JlcmdhciBwcm9kdWN0b3MgcHJveWVjdG9zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemU6IFwic21hbGxcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJwcmltYXJ5XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb246IFwiZWwtaWNvbi1wbHVzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF92bS5vcGVuUHJvZHVjdERpYWxvZygpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBZ3JlZ2FyXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IG5hbWU6IFwid2F2ZXNcIiwgcmF3TmFtZTogXCJ2LXdhdmVzXCIgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImZpbHRlci1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXNhYmxlZDogX3ZtLmRpc2FibGVFZGl0UHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwidi1zaG93XCI6IF92bS5jaGVja1Blcm1pc3Npb24oW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWRpdGFyIHByb2R1Y3RvcyBwcm95ZWN0b3NcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZTogXCJzbWFsbFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogXCJlbC1pY29uLWVkaXRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLm9wZW5Qcm9kdWN0RGlhbG9nRWRpdCgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBFZGl0YXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlbC1idXR0b25cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgbmFtZTogXCJ3YXZlc1wiLCByYXdOYW1lOiBcInYtd2F2ZXNcIiB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZmlsdGVyLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc2FibGVkOiBfdm0uZGlzYWJsZUVkaXRQcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJ2LXNob3dcIjogX3ZtLmNoZWNrUGVybWlzc2lvbihbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlbGltaW5hciBwcm9kdWN0b3MgcHJveWVjdG9zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemU6IFwic21hbGxcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJkYW5nZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWNvbjogXCJlbC1pY29uLWRlbGV0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uZGVsZXRlUm93UHJvZHVjdG9zKClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEVsaW1pbmFyXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlbC1yb3dcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBcImZsZXhcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAganVzdGlmeTogXCJzcGFjZS1hcm91bmRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWQ6IFwiZW1iYXJxdWVUcmFuc2ZlclwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJlbC10YWJsZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWY6IFwicHJveWVjdG9zX3Byb2R1Y3Rvc190YWJsZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNTdHlsZTogeyB3aWR0aDogXCIxMDAlXCIgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBfdm0uZGlzcGxheURhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYm9yZGVyOiBcIlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpdDogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImhpZ2hsaWdodC1jdXJyZW50LXJvd1wiOiBcIlwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJjdXJyZW50LWNoYW5nZVwiOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmhhbmRsZUN1cnJlbnRDaGFuZ2VUYWJsZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IFwiaW5kZXhcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IFwiODBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvcDogXCJudW1lcm9fcGFydGVfY2xpZW50ZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiUHJvZHVjdG9cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic2hvdy1vdmVyZmxvdy10b29sdGlwXCI6IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3A6IFwicHJveWVjdG9fcHJvZHVjdG8uY2FudGlkYWRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIkNhbnRpZGFkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGlnbjogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiBcIjg1XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3A6IFwicHJveWVjdG9fcHJvZHVjdG8ud29ya19vcmRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiT3JkZW4gZGUgVHJhYmFqb1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYWxpZ246IFwiY2VudGVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogXCI4NVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9wOiBcInByb3llY3RvX3Byb2R1Y3RvLml0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIkl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgd2lkdGg6IFwiODVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5jaGVja1Blcm1pc3Npb24oW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwidmlldyBmaW5hbnphcyBvcmRlbmVzIGFiaWVydGFzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJQcmVjaW8gKHBlc29zKVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic2hvdy1vdmVyZmxvdy10b29sdGlwXCI6IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGtleTogXCJkZWZhdWx0XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbihzY29wZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZS5yb3dcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnByb3llY3RvX3Byb2R1Y3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5wcmVjaW9fcGVzb3NcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBfYyhcInZ1ZS1udW1lcmljXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByZWNpc2lvbjogMixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY3VycmVuY3k6IFwiJFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXBhcmF0b3I6IFwiLFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInJlYWQtb25seVwiOiB0cnVlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGUucm93XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAucHJveWVjdG9fcHJvZHVjdG9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5wcmVjaW9fcGVzb3MsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbihcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAkJHZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZS5yb3dcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnByb3llY3RvX3Byb2R1Y3RvLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwcmVjaW9fcGVzb3NcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInNjb3BlLnJvdy5wcm95ZWN0b19wcm9kdWN0by5wcmVjaW9fcGVzb3NcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogX2MoXCJzcGFuXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiQgMC4wMCBcIilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAzNDU0MTYwNjVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IF92bS5fZSgpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY2hlY2tQZXJtaXNzaW9uKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInZpZXcgZmluYW56YXMgb3JkZW5lcyBhYmllcnRhc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiUHJlY2lvIChkbGxzKVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwic2hvdy1vdmVyZmxvdy10b29sdGlwXCI6IFwiXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGtleTogXCJkZWZhdWx0XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbihzY29wZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZS5yb3dcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnByb3llY3RvX3Byb2R1Y3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5wcmVjaW9fZGxsc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IF9jKFwidnVlLW51bWVyaWNcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJlY2lzaW9uOiAyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW5jeTogXCIkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNlcGFyYXRvcjogXCIsXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicmVhZC1vbmx5XCI6IHRydWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZS5yb3dcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5wcm95ZWN0b19wcm9kdWN0b1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnByZWNpb19kbGxzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGUucm93XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicHJlY2lvX2RsbHNcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInNjb3BlLnJvdy5wcm95ZWN0b19wcm9kdWN0by5wcmVjaW9fZGxsc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiBfYyhcInNwYW5cIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiJCAwLjAwIFwiKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDI2NTY5MTI4OTdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IF92bS5fZSgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWwtcm93XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHR5cGU6IFwiZmxleFwiLCBqdXN0aWZ5OiBcImVuZFwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1wYWdpbmF0aW9uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxheW91dDogXCJwcmV2LCBwYWdlciwgbmV4dFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwYWdlLXNpemVcIjogX3ZtLnBhZ2VTaXplLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdG90YWw6IF92bS50b3RhbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiY3VycmVudC1jaGFuZ2VcIjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmhhbmRsZUN1cnJlbnRDaGFuZ2VQYWdpbmF0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcInNwYW5cIixcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZGlhbG9nLWZvb3RlclwiLFxuICAgICAgICAgICAgICBhdHRyczogeyBzbG90OiBcImZvb3RlclwiIH0sXG4gICAgICAgICAgICAgIHNsb3Q6IFwiZm9vdGVyXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW3sgbmFtZTogXCJ3YXZlc1wiLCByYXdOYW1lOiBcInYtd2F2ZXNcIiB9XSxcbiAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImZsb2F0LWxlZnRcIixcbiAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uY2xlYXJGaWVsZHMoKVxuICAgICAgICAgICAgICAgICAgICAgIF92bS5jbG9zZSgpXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJDYW5jZWxhclwiKV1cbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX3ZtLmZvcm0uaWQgPT0gMFxuICAgICAgICAgICAgICAgID8gX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH1dLFxuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHR5cGU6IFwic3VjY2Vzc1wiLCBpY29uOiBcImVsLWljb24tY2hlY2tcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uaW5zZXJ0KFwiZm9ybVwiKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIkFncmVnYXJcIildXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgOiBfdm0uX2UoKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX3ZtLmZvcm0uaWQgIT0gMFxuICAgICAgICAgICAgICAgID8gX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH1dLFxuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHR5cGU6IFwic3VjY2Vzc1wiLCBpY29uOiBcImVsLWljb24tY2hlY2tcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uaW5zZXJ0KFwiZm9ybVwiKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgW192bS5fdihcIkd1YXJkYXJcIildXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgOiBfdm0uX2UoKVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApXG4gICAgICAgIF0sXG4gICAgICAgIDFcbiAgICAgICksXG4gICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgX2MoXG4gICAgICAgIFwiZWwtZGlhbG9nXCIsXG4gICAgICAgIHtcbiAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgdGl0bGU6IFwiQWdyZWdhciBNYXRlcmlhbCBhIFByb2R1Y3RvXCIsXG4gICAgICAgICAgICB2aXNpYmxlOiBfdm0uZGlhbG9nb1Byb2R1Y3RvcyxcbiAgICAgICAgICAgIHdpZHRoOiBcIjMwJVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgXCJ1cGRhdGU6dmlzaWJsZVwiOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgX3ZtLmRpYWxvZ29Qcm9kdWN0b3MgPSAkZXZlbnRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFtcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICB7IHN0YXRpY0NsYXNzOiBcInRleHQtcmlnaHRcIiB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcImVsLXN3aXRjaFwiLCB7XG4gICAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgZGlzcGxheTogXCJibG9ja1wiIH0sXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgIFwiYWN0aXZlLXZhbHVlXCI6IDEsXG4gICAgICAgICAgICAgICAgICBcImluYWN0aXZlLXZhbHVlXCI6IDAsXG4gICAgICAgICAgICAgICAgICBcImFjdGl2ZS1jb2xvclwiOiBcIiM0MDlFRkZcIixcbiAgICAgICAgICAgICAgICAgIFwiaW5hY3RpdmUtY29sb3JcIjogXCIjNDA5RUZGXCIsXG4gICAgICAgICAgICAgICAgICBcImFjdGl2ZS10ZXh0XCI6IF92bS5hZ3J1cGFyVGV4dG9cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5hZ3J1cGFyLFxuICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICBfdm0uJHNldChcbiAgICAgICAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLFxuICAgICAgICAgICAgICAgICAgICAgIFwiYWdydXBhclwiLFxuICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJwcm9kdWN0b0FncmVnYXIucHJveWVjdG9fcHJvZHVjdG8uYWdydXBhclwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLXJvd1wiLFxuICAgICAgICAgICAgeyBhdHRyczogeyBndXR0ZXI6IDIwIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDEyIH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgeyBhdHRyczogeyBsYWJlbDogXCJQcm9kdWN0b1wiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICAgICAgXCJlbC1zZWxlY3RcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgXCJ2YWx1ZS1rZXlcIjogXCJpZFwiLCBmaWx0ZXJhYmxlOiBcIlwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5wcm9kdWN0b0FncmVnYXIucHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoX3ZtLnByb2R1Y3RvQWdyZWdhciwgXCJwcm9kdWN0b1wiLCAkJHYpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcInByb2R1Y3RvQWdyZWdhci5wcm9kdWN0b1wiXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX2woX3ZtLnByb2R1Y3Rvc1NlbGVjdCwgZnVuY3Rpb24ocHJvZHVjdG8pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF9jKFwiZWwtb3B0aW9uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXk6IHByb2R1Y3RvLmlkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsYWJlbDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvZHVjdG8ubnVtZXJvX3BhcnRlICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCIvXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9kdWN0by5udW1lcm9fcGFydGVfY2xpZW50ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBwcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc2FibGVkOiBwcm9kdWN0by5kaXNhYmxlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWNvbFwiLFxuICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgc3BhbjogMTIgfSB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGxhYmVsOiBcIkNhbnRpZGFkXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1pbnB1dC1udW1iZXJcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgd2lkdGg6IFwiMTAwJVwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBtaW46IDEgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0ucHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLmNhbnRpZGFkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJjYW50aWRhZFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLmNhbnRpZGFkXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJlbC1yb3dcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgZ3V0dGVyOiAyMCB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiSXRlbVwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZWwtaW5wdXRcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5wcm9kdWN0b0FncmVnYXIucHJveWVjdG9fcHJvZHVjdG8uaXRlbSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiaXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcInByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5pdGVtXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiT3JkZW4gZGUgVHJhYmFqb1wiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZWwtaW5wdXRcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by53b3JrX29yZGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJ3b3JrX29yZGVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAkJHZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwcm9kdWN0b0FncmVnYXIucHJveWVjdG9fcHJvZHVjdG8ud29ya19vcmRlclwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtcm93XCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGd1dHRlcjogMjAgfSB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWNvbFwiLFxuICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgc3BhbjogMTIgfSB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGxhYmVsOiBcIlByZWNpbyAocGVzb3MpXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJ2dWUtbnVtZXJpY1wiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJlbC1pbnB1dF9faW5uZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHByZWNpc2lvbjogMiwgY3VycmVuY3k6IFwiJFwiLCBzZXBhcmF0b3I6IFwiLFwiIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0ucHJvZHVjdG9BZ3JlZ2FyLnByb3llY3RvX3Byb2R1Y3RvLnByZWNpb19wZXNvcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicHJlY2lvX3Blc29zXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAkJHZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJwcm9kdWN0b0FncmVnYXIucHJveWVjdG9fcHJvZHVjdG8ucHJlY2lvX3Blc29zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiUHJlY2lvIChkbGxzKVwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFwidnVlLW51bWVyaWNcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZWwtaW5wdXRfX2lubmVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBwcmVjaXNpb246IDIsIGN1cnJlbmN5OiBcIiRcIiwgc2VwYXJhdG9yOiBcIixcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5wcmVjaW9fZGxscyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2s6IGZ1bmN0aW9uKCQkdikge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicHJlY2lvX2RsbHNcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5wcmVjaW9fZGxsc1wiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGxhYmVsOiBcIkhlYXQgTnVtYmVyXCIsIGhpZGRlbjogXCJcIiB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFwiZWwtaW5wdXRcIiwge1xuICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICB2YWx1ZTogX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5oZWF0X251bWJlcixcbiAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbigkJHYpIHtcbiAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgX3ZtLnByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICBcImhlYXRfbnVtYmVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcInByb2R1Y3RvQWdyZWdhci5wcm95ZWN0b19wcm9kdWN0by5oZWF0X251bWJlclwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcInNwYW5cIixcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZGlhbG9nLWZvb3RlclwiLFxuICAgICAgICAgICAgICBhdHRyczogeyBzbG90OiBcImZvb3RlclwiIH0sXG4gICAgICAgICAgICAgIHNsb3Q6IFwiZm9vdGVyXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW3sgbmFtZTogXCJ3YXZlc1wiLCByYXdOYW1lOiBcInYtd2F2ZXNcIiB9XSxcbiAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uZGlhbG9nb1Byb2R1Y3RvcyA9IGZhbHNlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJDYW5jZWxhclwiKV1cbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1idXR0b25cIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH1dLFxuICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgdHlwZTogXCJwcmltYXJ5XCIgfSxcbiAgICAgICAgICAgICAgICAgIG9uOiB7IGNsaWNrOiBfdm0uYWdyZWdhclByb2R1Y3RvIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJDb25maXJtYXJcIildXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKVxuICAgICAgICBdLFxuICAgICAgICAxXG4gICAgICApLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFxuICAgICAgICBcImVsLWRpYWxvZ1wiLFxuICAgICAgICB7XG4gICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgIHRpdGxlOiBcIkVkaXRhciBQcm9kdWN0b1wiLFxuICAgICAgICAgICAgdmlzaWJsZTogX3ZtLmRpYWxvZ29Qcm95ZWN0b1Byb2R1Y3RvRWRpdCxcbiAgICAgICAgICAgIHdpZHRoOiBcIjMwJVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgXCJ1cGRhdGU6dmlzaWJsZVwiOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgX3ZtLmRpYWxvZ29Qcm95ZWN0b1Byb2R1Y3RvRWRpdCA9ICRldmVudFxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgW1xuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJlbC1yb3dcIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgZ3V0dGVyOiAyMCB9IH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXCJlbC1mb3JtLWl0ZW1cIiwgeyBhdHRyczogeyBsYWJlbDogXCJQcm9kdWN0b1wiIH0gfSwgW1xuICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgIFwiICtcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fcyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLm51bWVyb19wYXJ0ZSArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCIgLyBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLm51bWVyb19wYXJ0ZV9jbGllbnRlXG4gICAgICAgICAgICAgICAgICAgICAgICApICtcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiQ2FudGlkYWRcIiB9IH0sXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLWlucHV0LW51bWJlclwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBtaW46IDEgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50UHJveWVjdG9Qcm9kdWN0by5wcm95ZWN0b19wcm9kdWN0b1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmNhbnRpZGFkLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImNhbnRpZGFkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAkJHZcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJjdXJyZW50UHJveWVjdG9Qcm9kdWN0by5wcm95ZWN0b19wcm9kdWN0by5jYW50aWRhZFwiXG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgMVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtcm93XCIsXG4gICAgICAgICAgICB7IGF0dHJzOiB7IGd1dHRlcjogMjAgfSB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWNvbFwiLFxuICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgc3BhbjogMTIgfSB9LFxuICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgICAgICBcImVsLWZvcm0taXRlbVwiLFxuICAgICAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IGxhYmVsOiBcIkl0ZW1cIiB9IH0sXG4gICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLWlucHV0XCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50UHJveWVjdG9Qcm9kdWN0by5wcm95ZWN0b19wcm9kdWN0by5pdGVtLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIml0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvLml0ZW1cIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDEyIH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgeyBhdHRyczogeyBsYWJlbDogXCJPcmRlbiBkZSBUcmFiYWpvXCIgfSB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1pbnB1dFwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC53b3JrX29yZGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIndvcmtfb3JkZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvLndvcmtfb3JkZXJcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLXJvd1wiLFxuICAgICAgICAgICAgeyBhdHRyczogeyBndXR0ZXI6IDIwIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1jb2xcIixcbiAgICAgICAgICAgICAgICB7IGF0dHJzOiB7IHNwYW46IDEyIH0gfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgICAgICAgICAgeyBhdHRyczogeyBsYWJlbDogXCJQcmVjaW8gKHBlc29zKVwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFwidnVlLW51bWVyaWNcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZWwtaW5wdXRfX2lubmVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBwcmVjaXNpb246IDIsIGN1cnJlbmN5OiBcIiRcIiwgc2VwYXJhdG9yOiBcIixcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAucHJlY2lvX3Blc29zLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLiRzZXQoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInByZWNpb19wZXNvc1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8ucHJlY2lvX3Blc29zXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtY29sXCIsXG4gICAgICAgICAgICAgICAgeyBhdHRyczogeyBzcGFuOiAxMiB9IH0sXG4gICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgICAgIFwiZWwtZm9ybS1pdGVtXCIsXG4gICAgICAgICAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiUHJlY2lvIChkbGxzKVwiIH0gfSxcbiAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgIF9jKFwidnVlLW51bWVyaWNcIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZWwtaW5wdXRfX2lubmVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyczogeyBwcmVjaXNpb246IDIsIGN1cnJlbmN5OiBcIiRcIiwgc2VwYXJhdG9yOiBcIixcIiB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLmN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAucHJlY2lvX2RsbHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBmdW5jdGlvbigkJHYpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uJHNldChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50UHJveWVjdG9Qcm9kdWN0by5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwicHJlY2lvX2RsbHNcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICQkdlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvLnByZWNpb19kbGxzXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJlbC1mb3JtLWl0ZW1cIixcbiAgICAgICAgICAgIHsgYXR0cnM6IHsgbGFiZWw6IFwiSGVhdCBOdW1iZXJcIiwgaGlkZGVuOiBcIlwiIH0gfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJlbC1pbnB1dFwiLCB7XG4gICAgICAgICAgICAgICAgbW9kZWw6IHtcbiAgICAgICAgICAgICAgICAgIHZhbHVlOlxuICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFByb3llY3RvUHJvZHVjdG8ucHJveWVjdG9fcHJvZHVjdG8uaGVhdF9udW1iZXIsXG4gICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgIF92bS4kc2V0KFxuICAgICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50UHJveWVjdG9Qcm9kdWN0by5wcm95ZWN0b19wcm9kdWN0byxcbiAgICAgICAgICAgICAgICAgICAgICBcImhlYXRfbnVtYmVyXCIsXG4gICAgICAgICAgICAgICAgICAgICAgJCR2XG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBleHByZXNzaW9uOlxuICAgICAgICAgICAgICAgICAgICBcImN1cnJlbnRQcm95ZWN0b1Byb2R1Y3RvLnByb3llY3RvX3Byb2R1Y3RvLmhlYXRfbnVtYmVyXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwic3BhblwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJkaWFsb2ctZm9vdGVyXCIsXG4gICAgICAgICAgICAgIGF0dHJzOiB7IHNsb3Q6IFwiZm9vdGVyXCIgfSxcbiAgICAgICAgICAgICAgc2xvdDogXCJmb290ZXJcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1idXR0b25cIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH1dLFxuICAgICAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgIF92bS5kaWFsb2dvUHJveWVjdG9Qcm9kdWN0b0VkaXQgPSBmYWxzZVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBbX3ZtLl92KFwiQ2FuY2VsYXJcIildXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uXCIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW3sgbmFtZTogXCJ3YXZlc1wiLCByYXdOYW1lOiBcInYtd2F2ZXNcIiB9XSxcbiAgICAgICAgICAgICAgICAgIGF0dHJzOiB7IHR5cGU6IFwicHJpbWFyeVwiIH0sXG4gICAgICAgICAgICAgICAgICBvbjogeyBjbGljazogX3ZtLnVwZGF0ZVByb3llY3RvUHJvZHVjdG8gfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgW192bS5fdihcIkNvbmZpcm1hclwiKV1c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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&": /*!************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544& ***! \************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"app-container\" },\n [\n _c(\"el-row\", { attrs: { type: \"flex\" } }),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"filter-container\" },\n [\n _c(\n \"div\",\n { staticClass: \"filter-item\", attrs: { id: \"barra_busqueda\" } },\n [\n _c(\n \"el-input\",\n {\n staticClass: \"input-with-select\",\n attrs: {\n size: \"small\",\n placeholder: \"buscar\",\n clearable: \"\"\n },\n on: {\n change: function($event) {\n return _vm.handlePresearchChange()\n }\n },\n model: {\n value: _vm.presearch,\n callback: function($$v) {\n _vm.presearch = $$v\n },\n expression: \"presearch\"\n }\n },\n [\n _c(\n \"el-select\",\n {\n attrs: {\n slot: \"prepend\",\n size: \"small\",\n placeholder: \"Select\"\n },\n slot: \"prepend\",\n model: {\n value: _vm.selectSearch,\n callback: function($$v) {\n _vm.selectSearch = $$v\n },\n expression: \"selectSearch\"\n }\n },\n [\n _c(\"el-option\", {\n attrs: {\n label: \"Nom. del Proyecto\",\n value: \"numero_parte_cliente\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-option\", {\n attrs: {\n label: \"Núm. de Parte (Local)\",\n value: \"numero_parte\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-option\", {\n attrs: { label: \"Cliente\", value: \"nombre_cliente\" }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"el-button\", {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n attrs: {\n slot: \"append\",\n size: \"small\",\n type: \"primary\",\n icon: \"el-icon-search\"\n },\n on: { click: _vm.handleSearch },\n slot: \"append\"\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" },\n {\n name: \"permission\",\n rawName: \"v-permission\",\n value: [\"agregar proyectos\"],\n expression: \"['agregar proyectos']\"\n }\n ],\n staticClass: \"filter-item\",\n attrs: { type: \"primary\", size: \"small\", icon: \"el-icon-plus\" },\n on: {\n click: function($event) {\n _vm.$refs.myForm.clearFields()\n _vm.$refs.myForm.open()\n }\n }\n },\n [_vm._v(\"Agregar\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [{ name: \"waves\", rawName: \"v-waves\" }],\n staticClass: \"filter-item\",\n staticStyle: { \"margin-left\": \"0px\" },\n attrs: {\n type: \"primary\",\n size: \"small\",\n icon: \"el-icon-edit\",\n disabled: _vm.disableEditar\n },\n on: {\n click: function($event) {\n return _vm.loadFieldsUpdate(_vm.currentRow)\n }\n }\n },\n [_vm._v(\"Editar\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" },\n {\n name: \"permission\",\n rawName: \"v-permission\",\n value: [\"ver documentos proyectos\"],\n expression: \"['ver documentos proyectos']\"\n }\n ],\n staticClass: \"filter-item\",\n staticStyle: { \"margin-left\": \"0px\" },\n attrs: {\n type: \"primary\",\n size: \"small\",\n icon: \"el-icon-document\",\n disabled: _vm.disableEditar\n },\n on: {\n click: function($event) {\n return _vm.loadDocumentos(_vm.currentRow)\n }\n }\n },\n [_vm._v(\"Documentos\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n directives: [\n { name: \"waves\", rawName: \"v-waves\" },\n {\n name: \"permission\",\n rawName: \"v-permission\",\n value: [\"eliminar proyectos\"],\n expression: \"['eliminar proyectos']\"\n }\n ],\n staticClass: \"filter-item\",\n staticStyle: { \"margin-left\": \"0px\" },\n attrs: {\n type: \"danger\",\n size: \"small\",\n icon: \"el-icon-delete\",\n disabled: _vm.disableEditar\n },\n on: {\n click: function($event) {\n return _vm.deleteRow(\n _vm.currentRow.id,\n _vm.currentRow.numero_parte,\n _vm.currentRow.numero_parte_cliente\n )\n }\n }\n },\n [_vm._v(\"Eliminar\")]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n [\n _c(\n \"el-table\",\n {\n directives: [\n {\n name: \"loading\",\n rawName: \"v-loading\",\n value: _vm.loading,\n expression: \"loading\"\n }\n ],\n ref: \"tableList\",\n staticStyle: { width: \"100%\" },\n attrs: {\n data: _vm.displayData,\n \"highlight-current-row\": \"\",\n border: \"\",\n \"tooltip-effect\": \"light\",\n fit: \"\"\n },\n on: { \"current-change\": _vm.handleCurrentChangeTable }\n },\n [\n _c(\"el-table-column\", {\n attrs: {\n type: \"index\",\n align: \"center\",\n sortable: \"\",\n fixed: \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"numero_parte\",\n label: \"Núm. de Parte (Local)\",\n width: \"110\",\n sortable: \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"numero_parte_cliente\",\n label: \"Nombre del Proyecto\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"cliente.nombre_cliente\",\n label: \"Cliente\",\n \"show-overflow-tooltip\": \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"orden_compra\",\n label: \"Orden de Compra\",\n \"show-overflow-tooltip\": \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n label: \"Progreso\",\n \"show-overflow-tooltip\": \"\",\n width: \"260\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-progress\", {\n attrs: {\n \"text-inside\": true,\n \"stroke-width\": 26,\n percentage: parseInt(scope.row.progreso)\n }\n })\n ]\n }\n }\n ])\n }),\n _vm._v(\" \"),\n _vm.checkPermission([\"ver fecha entrega proyectos\"])\n ? _c(\"el-table-column\", {\n attrs: {\n label: \"Fecha de Entrega\",\n \"show-overflow-tooltip\": \"\",\n sortable: \"\",\n align: \"center\"\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-tag\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm._f(\"moment\")(\n scope.row.fecha_entrega,\n \"YYYY-MMM-DD\"\n )\n ) +\n \"\\n \"\n )\n ])\n ]\n }\n }\n ],\n null,\n false,\n 228671596\n )\n })\n : _vm._e(),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n label: \"Fecha Promesa\",\n \"show-overflow-tooltip\": \"\",\n sortable: \"\",\n align: \"center\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\"el-tag\", [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm._f(\"moment\")(\n scope.row.fecha_promesa,\n \"YYYY-MMM-DD\"\n )\n ) +\n \"\\n \"\n )\n ])\n ]\n }\n }\n ])\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"totalHrsLabor\",\n label: \"Hrs Labor\",\n \"show-overflow-tooltip\": \"\",\n align: \"center\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"productos.length\",\n label: \"Productos\",\n \"show-overflow-tooltip\": \"\",\n align: \"center\"\n }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-row\",\n { attrs: { type: \"flex\", justify: \"end\" } },\n [\n _c(\"el-pagination\", {\n attrs: {\n background: \"\",\n layout: \"prev, pager, next\",\n \"page-size\": _vm.pageSize,\n total: _vm.total\n },\n on: { \"current-change\": _vm.handleCurrentChangePagination }\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\"formDialog\", { ref: \"myForm\" }),\n _vm._v(\" \"),\n _c(\"documentosDialog\", { ref: \"documentosDialog\" })\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8hLi9ub2RlX21vZHVsZXMvdnVlL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OiBcInNtYWxsXCIsXG4gICAgICAgICAgICAgICAgICAgIHBsYWNlaG9sZGVyOiBcImJ1c2NhclwiLFxuICAgICAgICAgICAgICAgICAgICBjbGVhcmFibGU6IFwiXCJcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICAgICAgICBjaGFuZ2U6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uaGFuZGxlUHJlc2VhcmNoQ2hhbmdlKClcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIG1vZGVsOiB7XG4gICAgICAgICAgICAgICAgICAgIHZhbHVlOiBfdm0ucHJlc2VhcmNoLFxuICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgX3ZtLnByZXNlYXJjaCA9ICQkdlxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcInByZXNlYXJjaFwiXG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgXCJlbC1zZWxlY3RcIixcbiAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBzbG90OiBcInByZXBlbmRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHNpemU6IFwic21hbGxcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHBsYWNlaG9sZGVyOiBcIlNlbGVjdFwiXG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICBzbG90OiBcInByZXBlbmRcIixcbiAgICAgICAgICAgICAgICAgICAgICBtb2RlbDoge1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5zZWxlY3RTZWFyY2gsXG4gICAgICAgICAgICAgICAgICAgICAgICBjYWxsYmFjazogZnVuY3Rpb24oJCR2KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5zZWxlY3RTZWFyY2ggPSAkJHZcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBleHByZXNzaW9uOiBcInNlbGVjdFNlYXJjaFwiXG4gICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1vcHRpb25cIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiTm9tLiBkZWwgUHJveWVjdG9cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IFwibnVtZXJvX3BhcnRlX2NsaWVudGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1vcHRpb25cIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiTsO6bS4gZGUgUGFydGUgKExvY2FsKVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogXCJudW1lcm9fcGFydGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC1vcHRpb25cIiwge1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHsgbGFiZWw6IFwiQ2xpZW50ZVwiLCB2YWx1ZTogXCJub21icmVfY2xpZW50ZVwiIH1cbiAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAxXG4gICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgIF9jKFwiZWwtYnV0dG9uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgZGlyZWN0aXZlczogW3sgbmFtZTogXCJ3YXZlc1wiLCByYXdOYW1lOiBcInYtd2F2ZXNcIiB9XSxcbiAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICBzbG90OiBcImFwcGVuZFwiLFxuICAgICAgICAgICAgICAgICAgICAgIHNpemU6IFwic21hbGxcIixcbiAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICAgICAgICBpY29uOiBcImVsLWljb24tc2VhcmNoXCJcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgb246IHsgY2xpY2s6IF92bS5oYW5kbGVTZWFyY2ggfSxcbiAgICAgICAgICAgICAgICAgICAgc2xvdDogXCJhcHBlbmRcIlxuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIDFcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgICAgeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH0sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgbmFtZTogXCJwZXJtaXNzaW9uXCIsXG4gICAgICAgICAgICAgICAgICByYXdOYW1lOiBcInYtcGVybWlzc2lvblwiLFxuICAgICAgICAgICAgICAgICAgdmFsdWU6IFtcImFncmVnYXIgcHJveWVjdG9zXCJdLFxuICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJbJ2FncmVnYXIgcHJveWVjdG9zJ11cIlxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwiZmlsdGVyLWl0ZW1cIixcbiAgICAgICAgICAgICAgYXR0cnM6IHsgdHlwZTogXCJwcmltYXJ5XCIsIHNpemU6IFwic21hbGxcIiwgaWNvbjogXCJlbC1pY29uLXBsdXNcIiB9LFxuICAgICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgIF92bS4kcmVmcy5teUZvcm0uY2xlYXJGaWVsZHMoKVxuICAgICAgICAgICAgICAgICAgX3ZtLiRyZWZzLm15Rm9ybS5vcGVuKClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbX3ZtLl92KFwiQWdyZWdhclwiKV1cbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH1dLFxuICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJmaWx0ZXItaXRlbVwiLFxuICAgICAgICAgICAgICBzdGF0aWNTdHlsZTogeyBcIm1hcmdpbi1sZWZ0XCI6IFwiMHB4XCIgfSxcbiAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICBzaXplOiBcInNtYWxsXCIsXG4gICAgICAgICAgICAgICAgaWNvbjogXCJlbC1pY29uLWVkaXRcIixcbiAgICAgICAgICAgICAgICBkaXNhYmxlZDogX3ZtLmRpc2FibGVFZGl0YXJcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgICBjbGljazogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gX3ZtLmxvYWRGaWVsZHNVcGRhdGUoX3ZtLmN1cnJlbnRSb3cpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW192bS5fdihcIkVkaXRhclwiKV1cbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgICAgeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH0sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgbmFtZTogXCJwZXJtaXNzaW9uXCIsXG4gICAgICAgICAgICAgICAgICByYXdOYW1lOiBcInYtcGVybWlzc2lvblwiLFxuICAgICAgICAgICAgICAgICAgdmFsdWU6IFtcInZlciBkb2N1bWVudG9zIHByb3llY3Rvc1wiXSxcbiAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiWyd2ZXIgZG9jdW1lbnRvcyBwcm95ZWN0b3MnXVwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJmaWx0ZXItaXRlbVwiLFxuICAgICAgICAgICAgICBzdGF0aWNTdHlsZTogeyBcIm1hcmdpbi1sZWZ0XCI6IFwiMHB4XCIgfSxcbiAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICBzaXplOiBcInNtYWxsXCIsXG4gICAgICAgICAgICAgICAgaWNvbjogXCJlbC1pY29uLWRvY3VtZW50XCIsXG4gICAgICAgICAgICAgICAgZGlzYWJsZWQ6IF92bS5kaXNhYmxlRWRpdGFyXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIF92bS5sb2FkRG9jdW1lbnRvcyhfdm0uY3VycmVudFJvdylcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBbX3ZtLl92KFwiRG9jdW1lbnRvc1wiKV1cbiAgICAgICAgICApLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgICAgeyBuYW1lOiBcIndhdmVzXCIsIHJhd05hbWU6IFwidi13YXZlc1wiIH0sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgbmFtZTogXCJwZXJtaXNzaW9uXCIsXG4gICAgICAgICAgICAgICAgICByYXdOYW1lOiBcInYtcGVybWlzc2lvblwiLFxuICAgICAgICAgICAgICAgICAgdmFsdWU6IFtcImVsaW1pbmFyIHByb3llY3Rvc1wiXSxcbiAgICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiWydlbGltaW5hciBwcm95ZWN0b3MnXVwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJmaWx0ZXItaXRlbVwiLFxuICAgICAgICAgICAgICBzdGF0aWNTdHlsZTogeyBcIm1hcmdpbi1sZWZ0XCI6IFwiMHB4XCIgfSxcbiAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiBcImRhbmdlclwiLFxuICAgICAgICAgICAgICAgIHNpemU6IFwic21hbGxcIixcbiAgICAgICAgICAgICAgICBpY29uOiBcImVsLWljb24tZGVsZXRlXCIsXG4gICAgICAgICAgICAgICAgZGlzYWJsZWQ6IF92bS5kaXNhYmxlRWRpdGFyXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgY2xpY2s6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIF92bS5kZWxldGVSb3coXG4gICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50Um93LmlkLFxuICAgICAgICAgICAgICAgICAgICBfdm0uY3VycmVudFJvdy5udW1lcm9fcGFydGUsXG4gICAgICAgICAgICAgICAgICAgIF92bS5jdXJyZW50Um93Lm51bWVyb19wYXJ0ZV9jbGllbnRlXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW192bS5fdihcIkVsaW1pbmFyXCIpXVxuICAgICAgICAgIClcbiAgICAgICAgXSxcbiAgICAgICAgMVxuICAgICAgKSxcbiAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICBfYyhcbiAgICAgICAgXCJlbC1yb3dcIixcbiAgICAgICAgW1xuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJlbC10YWJsZVwiLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgbmFtZTogXCJsb2FkaW5nXCIsXG4gICAgICAgICAgICAgICAgICByYXdOYW1lOiBcInYtbG9hZGluZ1wiLFxuICAgICAgICAgICAgICAgICAgdmFsdWU6IF92bS5sb2FkaW5nLFxuICAgICAgICAgICAgICAgICAgZXhwcmVzc2lvbjogXCJsb2FkaW5nXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgIHJlZjogXCJ0YWJsZUxpc3RcIixcbiAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgd2lkdGg6IFwiMTAwJVwiIH0sXG4gICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgZGF0YTogX3ZtLmRpc3BsYXlEYXRhLFxuICAgICAgICAgICAgICAgIFwiaGlnaGxpZ2h0LWN1cnJlbnQtcm93XCI6IFwiXCIsXG4gICAgICAgICAgICAgICAgYm9yZGVyOiBcIlwiLFxuICAgICAgICAgICAgICAgIFwidG9vbHRpcC1lZmZlY3RcIjogXCJsaWdodFwiLFxuICAgICAgICAgICAgICAgIGZpdDogXCJcIlxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBvbjogeyBcImN1cnJlbnQtY2hhbmdlXCI6IF92bS5oYW5kbGVDdXJyZW50Q2hhbmdlVGFibGUgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICB0eXBlOiBcImluZGV4XCIsXG4gICAgICAgICAgICAgICAgICBhbGlnbjogXCJjZW50ZXJcIixcbiAgICAgICAgICAgICAgICAgIHNvcnRhYmxlOiBcIlwiLFxuICAgICAgICAgICAgICAgICAgZml4ZWQ6IFwiXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgIHByb3A6IFwibnVtZXJvX3BhcnRlXCIsXG4gICAgICAgICAgICAgICAgICBsYWJlbDogXCJOw7ptLiBkZSBQYXJ0ZSAoTG9jYWwpXCIsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIxMTBcIixcbiAgICAgICAgICAgICAgICAgIHNvcnRhYmxlOiBcIlwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICBwcm9wOiBcIm51bWVyb19wYXJ0ZV9jbGllbnRlXCIsXG4gICAgICAgICAgICAgICAgICBsYWJlbDogXCJOb21icmUgZGVsIFByb3llY3RvXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgIHByb3A6IFwiY2xpZW50ZS5ub21icmVfY2xpZW50ZVwiLFxuICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiQ2xpZW50ZVwiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIlxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgcHJvcDogXCJvcmRlbl9jb21wcmFcIixcbiAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIk9yZGVuIGRlIENvbXByYVwiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIlxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiUHJvZ3Jlc29cIixcbiAgICAgICAgICAgICAgICAgIFwic2hvdy1vdmVyZmxvdy10b29sdGlwXCI6IFwiXCIsXG4gICAgICAgICAgICAgICAgICB3aWR0aDogXCIyNjBcIlxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJkZWZhdWx0XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbihzY29wZSkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLXByb2dyZXNzXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBcInRleHQtaW5zaWRlXCI6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJzdHJva2Utd2lkdGhcIjogMjYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcGVyY2VudGFnZTogcGFyc2VJbnQoc2NvcGUucm93LnByb2dyZXNvKVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfdm0uY2hlY2tQZXJtaXNzaW9uKFtcInZlciBmZWNoYSBlbnRyZWdhIHByb3llY3Rvc1wiXSlcbiAgICAgICAgICAgICAgICA/IF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgICBsYWJlbDogXCJGZWNoYSBkZSBFbnRyZWdhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICBzb3J0YWJsZTogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgICBhbGlnbjogXCJjZW50ZXJcIlxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBzY29wZWRTbG90czogX3ZtLl91KFxuICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAga2V5OiBcImRlZmF1bHRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgZm46IGZ1bmN0aW9uKHNjb3BlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF9jKFwiZWwtdGFnXCIsIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl92KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX3ZtLl9zKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX2YoXCJtb21lbnRcIikoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGUucm93LmZlY2hhX2VudHJlZ2EsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJZWVlZLU1NTS1ERFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICkgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgIFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgIGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgIDIyODY3MTU5NlxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIDogX3ZtLl9lKCksXG4gICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgIF9jKFwiZWwtdGFibGUtY29sdW1uXCIsIHtcbiAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiRmVjaGEgUHJvbWVzYVwiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIixcbiAgICAgICAgICAgICAgICAgIHNvcnRhYmxlOiBcIlwiLFxuICAgICAgICAgICAgICAgICAgYWxpZ246IFwiY2VudGVyXCJcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHNjb3BlZFNsb3RzOiBfdm0uX3UoW1xuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBrZXk6IFwiZGVmYXVsdFwiLFxuICAgICAgICAgICAgICAgICAgICBmbjogZnVuY3Rpb24oc2NvcGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgICAgICAgICAgICAgX2MoXCJlbC10YWdcIiwgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXG4gICAgICAgICAgICAgICAgICAgICAgICBcIiArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fZihcIm1vbWVudFwiKShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzY29wZS5yb3cuZmVjaGFfcHJvbWVzYSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIllZWVktTU1NLUREXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKSArXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxcbiAgICAgICAgICAgICAgICAgICAgXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICBwcm9wOiBcInRvdGFsSHJzTGFib3JcIixcbiAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIkhycyBMYWJvclwiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIixcbiAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICBwcm9wOiBcInByb2R1Y3Rvcy5sZW5ndGhcIixcbiAgICAgICAgICAgICAgICAgIGxhYmVsOiBcIlByb2R1Y3Rvc1wiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIixcbiAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgXSxcbiAgICAgICAgICAgIDFcbiAgICAgICAgICApXG4gICAgICAgIF0sXG4gICAgICAgIDFcbiAgICAgICksXG4gICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgX2MoXG4gICAgICAgIFwiZWwtcm93XCIsXG4gICAgICAgIHsgYXR0cnM6IHsgdHlwZTogXCJmbGV4XCIsIGp1c3RpZnk6IFwiZW5kXCIgfSB9LFxuICAgICAgICBbXG4gICAgICAgICAgX2MoXCJlbC1wYWdpbmF0aW9uXCIsIHtcbiAgICAgICAgICAgIGF0dHJzOiB7X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FDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&\n"); /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&": /*!******************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f& ***! \******************************************************************************************************************************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"el-form\",\n {\n ref: \"form\",\n attrs: {\n model: _vm.form,\n \"label-position\": \"top\",\n \"label-width\": \"150px\"\n }\n },\n [\n _c(\n \"el-dialog\",\n {\n ref: _vm.dialogRef,\n attrs: {\n width: \"40%\",\n id: \"dialogoListDocumento\",\n visible: _vm.dialogoAgregar\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogoAgregar = $event\n }\n }\n },\n [\n _c(\"span\", { attrs: { slot: \"title\" }, slot: \"title\" }, [\n _c(\"i\", { staticClass: \"el-icon-edit\" }),\n _vm._v(\" Documentos de Proyecto \")\n ]),\n _vm._v(\" \"),\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.form.id,\n expression: \"form.id\"\n }\n ],\n attrs: { hidden: \"\" },\n domProps: { value: _vm.form.id },\n on: {\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.$set(_vm.form, \"id\", $event.target.value)\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"span\", { staticStyle: { \"margin-right\": \"5px\" } }, [\n _c(\"b\", [_vm._v(\"Núm. de Parte (Local): \")]),\n _vm._v(\" \" + _vm._s(_vm.form.numero_parte))\n ]),\n _vm._v(\" \"),\n _c(\"span\", { staticStyle: { \"margin-right\": \"5px\" } }, [\n _c(\"b\", [_vm._v(\"Núm. de Parte (Cliente): \")]),\n _vm._v(\" \" + _vm._s(_vm.form.numero_parte_cliente))\n ]),\n _vm._v(\" \"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\"br\"),\n _vm._v(\" \"),\n _c(\n \"div\",\n { staticClass: \"filter-container\" },\n [\n _c(\n \"el-button\",\n {\n staticClass: \"filter-item\",\n attrs: {\n size: \"small\",\n type: \"primary\",\n icon: \"el-icon-plus\"\n },\n on: {\n click: function($event) {\n _vm.dialogoDocumentos = true\n }\n }\n },\n [_vm._v(\"Agregar\")]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n data: _vm.form.documentos,\n border: \"\",\n fit: \"\",\n \"highlight-current-row\": \"\"\n }\n },\n [\n _c(\"el-table-column\", {\n attrs: { type: \"index\", align: \"center\", width: \"80\" }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"nombre_real\",\n label: \"Documento\",\n \"show-overflow-tooltip\": \"\"\n }\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: {\n prop: \"created_at\",\n label: \"Fecha de carga\",\n align: \"center\",\n \"show-overflow-tooltip\": \"\"\n },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _vm._v(\n \"\\n \" +\n _vm._s(\n _vm._f(\"moment\")(\n scope.row.created_at,\n \"YYYY-MMM-DD\"\n )\n ) +\n \"\\n \"\n )\n ]\n }\n }\n ])\n }),\n _vm._v(\" \"),\n _c(\"el-table-column\", {\n attrs: { align: \"center\", width: \"180\" },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"a\",\n {\n staticClass:\n \"el-button el-button--primary el-button--mini\",\n attrs: {\n type: \"button\",\n title: \"descargar\",\n href:\n \"/proyectos/downloadDocumento/\" + scope.row.id\n }\n },\n [_c(\"i\", { staticClass: \"el-icon-download\" })]\n ),\n _vm._v(\" \"),\n _c(\"el-button\", {\n attrs: {\n type: \"danger\",\n title: \"eliminar\",\n size: \"mini\",\n icon: \"el-icon-delete\"\n },\n on: {\n click: function($event) {\n return _vm.deleteDocumento(scope.row)\n }\n }\n })\n ]\n }\n }\n ])\n })\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n staticClass: \"float-left\",\n on: {\n click: function($event) {\n _vm.clearFields()\n _vm.dialogoAgregar = false\n }\n }\n },\n [_vm._v(\"Cerrar\")]\n )\n ],\n 1\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"el-dialog\",\n {\n attrs: {\n id: \"dialogoAgregarDocumento\",\n title: \"Agregar Documento a Proyecto\",\n visible: _vm.dialogoDocumentos,\n \"before-close\": _vm.handleClose,\n width: \"23%\"\n },\n on: {\n \"update:visible\": function($event) {\n _vm.dialogoDocumentos = $event\n }\n }\n },\n [\n _c(\n \"div\",\n { staticClass: \"filter-container\" },\n [\n _c(\n \"el-upload\",\n {\n ref: \"upload\",\n staticClass: \"upload-demo\",\n attrs: {\n action: \"\",\n \"file-list\": _vm.fileList,\n \"auto-upload\": false,\n \"on-change\": _vm.handleUploadChange,\n \"on-progress\": _vm.handleProgress,\n \"on-success\": _vm.handleSuccess,\n drag: \"\"\n }\n },\n [\n _c(\"i\", { staticClass: \"el-icon-upload\" }),\n _vm._v(\" \"),\n _c(\"div\", { staticClass: \"el-upload__text\" }, [\n _vm._v(\"Arrastra un archivo aqui o \"),\n _c(\"em\", [_vm._v(\"click para subir\")])\n ])\n ]\n )\n ],\n 1\n ),\n _vm._v(\" \"),\n _c(\n \"span\",\n {\n staticClass: \"dialog-footer\",\n attrs: { slot: \"footer\" },\n slot: \"footer\"\n },\n [\n _c(\n \"el-button\",\n {\n staticClass: \"float-left\",\n on: {\n click: function($event) {\n _vm.dialogoDocumentos = false\n _vm.fileList = []\n }\n }\n },\n [_vm._v(\"Cancelar\")]\n ),\n _vm._v(\" \"),\n _c(\n \"el-button\",\n {\n staticStyle: { \"margin-left\": \"10px\" },\n attrs: { type: \"success\" },\n on: { click: _vm.submitUpload }\n },\n [_vm._v(\"Guardar\")]\n )\n ],\n 1\n )\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8hLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/IS4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9kb2N1bWVudG9zLnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD03ZDM2OTY1ZiYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL2RvY3VtZW50b3MudnVlPzA2OTciXSwic291cmNlc0NvbnRlbnQiOlsidmFyIHJlbmRlciA9IGZ1bmN0aW9uKCkge1xuICB2YXIgX3ZtID0gdGhpc1xuICB2YXIgX2ggPSBfdm0uJGNyZWF0ZUVsZW1lbnRcbiAgdmFyIF9jID0gX3ZtLl9zZWxmLl9jIHx8IF9oXG4gIHJldHVybiBfYyhcbiAgICBcImVsLWZvcm1cIixcbiAgICB7XG4gICAgICByZWY6IFwiZm9ybVwiLFxuICAgICAgYXR0cnM6IHtcbiAgICAgICAgbW9kZWw6IF92bS5mb3JtLFxuICAgICAgICBcImxhYmVsLXBvc2l0aW9uXCI6IFwidG9wXCIsXG4gICAgICAgIFwibGFiZWwtd2lkdGhcIjogXCIxNTBweFwiXG4gICAgICB9XG4gICAgfSxcbiAgICBbXG4gICAgICBfYyhcbiAgICAgICAgXCJlbC1kaWFsb2dcIixcbiAgICAgICAge1xuICAgICAgICAgIHJlZjogX3ZtLmRpYWxvZ1JlZixcbiAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgd2lkdGg6IFwiNDAlXCIsXG4gICAgICAgICAgICBpZDogXCJkaWFsb2dvTGlzdERvY3VtZW50b1wiLFxuICAgICAgICAgICAgdmlzaWJsZTogX3ZtLmRpYWxvZ29BZ3JlZ2FyXG4gICAgICAgICAgfSxcbiAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgXCJ1cGRhdGU6dmlzaWJsZVwiOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgX3ZtLmRpYWxvZ29BZ3JlZ2FyID0gJGV2ZW50XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBbXG4gICAgICAgICAgX2MoXCJzcGFuXCIsIHsgYXR0cnM6IHsgc2xvdDogXCJ0aXRsZVwiIH0sIHNsb3Q6IFwidGl0bGVcIiB9LCBbXG4gICAgICAgICAgICBfYyhcImlcIiwgeyBzdGF0aWNDbGFzczogXCJlbC1pY29uLWVkaXRcIiB9KSxcbiAgICAgICAgICAgIF92bS5fdihcIiBEb2N1bWVudG9zIGRlIFByb3llY3RvIFwiKVxuICAgICAgICAgIF0pLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXCJpbnB1dFwiLCB7XG4gICAgICAgICAgICBkaXJlY3RpdmVzOiBbXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBuYW1lOiBcIm1vZGVsXCIsXG4gICAgICAgICAgICAgICAgcmF3TmFtZTogXCJ2LW1vZGVsXCIsXG4gICAgICAgICAgICAgICAgdmFsdWU6IF92bS5mb3JtLmlkLFxuICAgICAgICAgICAgICAgIGV4cHJlc3Npb246IFwiZm9ybS5pZFwiXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICBhdHRyczogeyBoaWRkZW46IFwiXCIgfSxcbiAgICAgICAgICAgIGRvbVByb3BzOiB7IHZhbHVlOiBfdm0uZm9ybS5pZCB9LFxuICAgICAgICAgICAgb246IHtcbiAgICAgICAgICAgICAgaW5wdXQ6IGZ1bmN0aW9uKCRldmVudCkge1xuICAgICAgICAgICAgICAgIGlmICgkZXZlbnQudGFyZ2V0LmNvbXBvc2luZykge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF92bS4kc2V0KF92bS5mb3JtLCBcImlkXCIsICRldmVudC50YXJnZXQudmFsdWUpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9KSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwic3BhblwiLCB7IHN0YXRpY1N0eWxlOiB7IFwibWFyZ2luLXJpZ2h0XCI6IFwiNXB4XCIgfSB9LCBbXG4gICAgICAgICAgICBfYyhcImJcIiwgW192bS5fdihcIk7Dum0uIGRlIFBhcnRlIChMb2NhbCk6IFwiKV0pLFxuICAgICAgICAgICAgX3ZtLl92KFwiIFwiICsgX3ZtLl9zKF92bS5mb3JtLm51bWVyb19wYXJ0ZSkpXG4gICAgICAgICAgXSksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcInNwYW5cIiwgeyBzdGF0aWNTdHlsZTogeyBcIm1hcmdpbi1yaWdodFwiOiBcIjVweFwiIH0gfSwgW1xuICAgICAgICAgICAgX2MoXCJiXCIsIFtfdm0uX3YoXCJOw7ptLiBkZSBQYXJ0ZSAoQ2xpZW50ZSk6IFwiKV0pLFxuICAgICAgICAgICAgX3ZtLl92KFwiIFwiICsgX3ZtLl9zKF92bS5mb3JtLm51bWVyb19wYXJ0ZV9jbGllbnRlKSlcbiAgICAgICAgICBdKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFwiYnJcIiksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcImJyXCIpLFxuICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgX2MoXG4gICAgICAgICAgICBcImRpdlwiLFxuICAgICAgICAgICAgeyBzdGF0aWNDbGFzczogXCJmaWx0ZXItY29udGFpbmVyXCIgfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1idXR0b25cIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczogXCJmaWx0ZXItaXRlbVwiLFxuICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgICAgc2l6ZTogXCJzbWFsbFwiLFxuICAgICAgICAgICAgICAgICAgICB0eXBlOiBcInByaW1hcnlcIixcbiAgICAgICAgICAgICAgICAgICAgaWNvbjogXCJlbC1pY29uLXBsdXNcIlxuICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uZGlhbG9nb0RvY3VtZW50b3MgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJBZ3JlZ2FyXCIpXVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdLFxuICAgICAgICAgICAgMVxuICAgICAgICAgICksXG4gICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICBfYyhcbiAgICAgICAgICAgIFwiZWwtdGFibGVcIixcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgc3RhdGljU3R5bGU6IHsgd2lkdGg6IFwiMTAwJVwiIH0sXG4gICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgZGF0YTogX3ZtLmZvcm0uZG9jdW1lbnRvcyxcbiAgICAgICAgICAgICAgICBib3JkZXI6IFwiXCIsXG4gICAgICAgICAgICAgICAgZml0OiBcIlwiLFxuICAgICAgICAgICAgICAgIFwiaGlnaGxpZ2h0LWN1cnJlbnQtcm93XCI6IFwiXCJcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7IHR5cGU6IFwiaW5kZXhcIiwgYWxpZ246IFwiY2VudGVyXCIsIHdpZHRoOiBcIjgwXCIgfVxuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXCJlbC10YWJsZS1jb2x1bW5cIiwge1xuICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICBwcm9wOiBcIm5vbWJyZV9yZWFsXCIsXG4gICAgICAgICAgICAgICAgICBsYWJlbDogXCJEb2N1bWVudG9cIixcbiAgICAgICAgICAgICAgICAgIFwic2hvdy1vdmVyZmxvdy10b29sdGlwXCI6IFwiXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgICAgICAgIHByb3A6IFwiY3JlYXRlZF9hdFwiLFxuICAgICAgICAgICAgICAgICAgbGFiZWw6IFwiRmVjaGEgZGUgY2FyZ2FcIixcbiAgICAgICAgICAgICAgICAgIGFsaWduOiBcImNlbnRlclwiLFxuICAgICAgICAgICAgICAgICAgXCJzaG93LW92ZXJmbG93LXRvb2x0aXBcIjogXCJcIlxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJkZWZhdWx0XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbihzY29wZSkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXG4gICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICAgICAgXCIgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fcyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fZihcIm1vbWVudFwiKShcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2NvcGUucm93LmNyZWF0ZWRfYXQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiWVlZWS1NTU0tRERcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICkgK1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxuICAgICAgICAgICAgICAgICAgICBcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgICAgICBfYyhcImVsLXRhYmxlLWNvbHVtblwiLCB7XG4gICAgICAgICAgICAgICAgYXR0cnM6IHsgYWxpZ246IFwiY2VudGVyXCIsIHdpZHRoOiBcIjE4MFwiIH0sXG4gICAgICAgICAgICAgICAgc2NvcGVkU2xvdHM6IF92bS5fdShbXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGtleTogXCJkZWZhdWx0XCIsXG4gICAgICAgICAgICAgICAgICAgIGZuOiBmdW5jdGlvbihzY29wZSkge1xuICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXCJhXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGF0aWNDbGFzczpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiZWwtYnV0dG9uIGVsLWJ1dHRvbi0tcHJpbWFyeSBlbC1idXR0b24tLW1pbmlcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJidXR0b25cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpdGxlOiBcImRlc2NhcmdhclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaHJlZjpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCIvcHJveWVjdG9zL2Rvd25sb2FkRG9jdW1lbnRvL1wiICsgc2NvcGUucm93LmlkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBbX2MoXCJpXCIsIHsgc3RhdGljQ2xhc3M6IFwiZWwtaWNvbi1kb3dubG9hZFwiIH0pXVxuICAgICAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgICAgIF92bS5fdihcIiBcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICBfYyhcImVsLWJ1dHRvblwiLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogXCJkYW5nZXJcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aXRsZTogXCJlbGltaW5hclwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNpemU6IFwibWluaVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGljb246IFwiZWwtaWNvbi1kZWxldGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICBvbjoge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdm0uZGVsZXRlRG9jdW1lbnRvKHNjb3BlLnJvdylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRpYWxvZy1mb290ZXJcIixcbiAgICAgICAgICAgICAgYXR0cnM6IHsgc2xvdDogXCJmb290ZXJcIiB9LFxuICAgICAgICAgICAgICBzbG90OiBcImZvb3RlclwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImZsb2F0LWxlZnRcIixcbiAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uY2xlYXJGaWVsZHMoKVxuICAgICAgICAgICAgICAgICAgICAgIF92bS5kaWFsb2dvQWdyZWdhciA9IGZhbHNlXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJDZXJyYXJcIildXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKVxuICAgICAgICBdLFxuICAgICAgICAxXG4gICAgICApLFxuICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgIF9jKFxuICAgICAgICBcImVsLWRpYWxvZ1wiLFxuICAgICAgICB7XG4gICAgICAgICAgYXR0cnM6IHtcbiAgICAgICAgICAgIGlkOiBcImRpYWxvZ29BZ3JlZ2FyRG9jdW1lbnRvXCIsXG4gICAgICAgICAgICB0aXRsZTogXCJBZ3JlZ2FyIERvY3VtZW50byBhIFByb3llY3RvXCIsXG4gICAgICAgICAgICB2aXNpYmxlOiBfdm0uZGlhbG9nb0RvY3VtZW50b3MsXG4gICAgICAgICAgICBcImJlZm9yZS1jbG9zZVwiOiBfdm0uaGFuZGxlQ2xvc2UsXG4gICAgICAgICAgICB3aWR0aDogXCIyMyVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgb246IHtcbiAgICAgICAgICAgIFwidXBkYXRlOnZpc2libGVcIjogZnVuY3Rpb24oJGV2ZW50KSB7XG4gICAgICAgICAgICAgIF92bS5kaWFsb2dvRG9jdW1lbnRvcyA9ICRldmVudFxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgW1xuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJkaXZcIixcbiAgICAgICAgICAgIHsgc3RhdGljQ2xhc3M6IFwiZmlsdGVyLWNvbnRhaW5lclwiIH0sXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgIF9jKFxuICAgICAgICAgICAgICAgIFwiZWwtdXBsb2FkXCIsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgcmVmOiBcInVwbG9hZFwiLFxuICAgICAgICAgICAgICAgICAgc3RhdGljQ2xhc3M6IFwidXBsb2FkLWRlbW9cIixcbiAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XG4gICAgICAgICAgICAgICAgICAgIGFjdGlvbjogXCJcIixcbiAgICAgICAgICAgICAgICAgICAgXCJmaWxlLWxpc3RcIjogX3ZtLmZpbGVMaXN0LFxuICAgICAgICAgICAgICAgICAgICBcImF1dG8tdXBsb2FkXCI6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICBcIm9uLWNoYW5nZVwiOiBfdm0uaGFuZGxlVXBsb2FkQ2hhbmdlLFxuICAgICAgICAgICAgICAgICAgICBcIm9uLXByb2dyZXNzXCI6IF92bS5oYW5kbGVQcm9ncmVzcyxcbiAgICAgICAgICAgICAgICAgICAgXCJvbi1zdWNjZXNzXCI6IF92bS5oYW5kbGVTdWNjZXNzLFxuICAgICAgICAgICAgICAgICAgICBkcmFnOiBcIlwiXG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICBfYyhcImlcIiwgeyBzdGF0aWNDbGFzczogXCJlbC1pY29uLXVwbG9hZFwiIH0pLFxuICAgICAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgICAgIF9jKFwiZGl2XCIsIHsgc3RhdGljQ2xhc3M6IFwiZWwtdXBsb2FkX190ZXh0XCIgfSwgW1xuICAgICAgICAgICAgICAgICAgICBfdm0uX3YoXCJBcnJhc3RyYSB1biBhcmNoaXZvIGFxdWkgbyBcIiksXG4gICAgICAgICAgICAgICAgICAgIF9jKFwiZW1cIiwgW192bS5fdihcImNsaWNrIHBhcmEgc3ViaXJcIildKVxuICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAxXG4gICAgICAgICAgKSxcbiAgICAgICAgICBfdm0uX3YoXCIgXCIpLFxuICAgICAgICAgIF9jKFxuICAgICAgICAgICAgXCJzcGFuXCIsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImRpYWxvZy1mb290ZXJcIixcbiAgICAgICAgICAgICAgYXR0cnM6IHsgc2xvdDogXCJmb290ZXJcIiB9LFxuICAgICAgICAgICAgICBzbG90OiBcImZvb3RlclwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICBfYyhcbiAgICAgICAgICAgICAgICBcImVsLWJ1dHRvblwiLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHN0YXRpY0NsYXNzOiBcImZsb2F0LWxlZnRcIixcbiAgICAgICAgICAgICAgICAgIG9uOiB7XG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBmdW5jdGlvbigkZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICBfdm0uZGlhbG9nb0RvY3VtZW50b3MgPSBmYWxzZVxuICAgICAgICAgICAgICAgICAgICAgIF92bS5maWxlTGlzdCA9IFtdXG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIFtfdm0uX3YoXCJDYW5jZWxhclwiKV1cbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgX3ZtLl92KFwiIFwiKSxcbiAgICAgICAgICAgICAgX2MoXG4gICAgICAgICAgICAgICAgXCJlbC1idXR0b25cIixcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBzdGF0aWNTdHlsZTogeyBcIm1hcmdpbi1sZWZ0XCI6IFwiMTBweFwiIH0sXG4gICAgICAgICAgICAgICAgICBhdHRyczogeyB0eXBlOiBc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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&\n"); /***/ }), /***/ "./resources/js/api/producto.js": /*!**************************************!*\ !*** ./resources/js/api/producto.js ***! \**************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return ProyectoProductoResource; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/request */ \"./resources/js/utils/request.js\");\n/* harmony import */ var _api_resource__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/api/resource */ \"./resources/js/api/resource.js\");\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\n\n\n\nvar ProyectoProductoResource = /*#__PURE__*/function (_Resource) {\n _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(ProyectoProductoResource, _Resource);\n\n var _super = _createSuper(ProyectoProductoResource);\n\n function ProyectoProductoResource() {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, ProyectoProductoResource);\n\n return _super.call(this, 'productos');\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ProyectoProductoResource, [{\n key: \"getProductosByCliente\",\n value: function getProductosByCliente() {\n var cliente_id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n url: '/' + this.uri + '/' + cliente_id + '/getProductosByCliente',\n method: 'get'\n });\n }\n }]);\n\n return ProyectoProductoResource;\n}(_api_resource__WEBPACK_IMPORTED_MODULE_6__[\"default\"]);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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/api/producto.js\n"); /***/ }), /***/ "./resources/js/api/resource.js": /*!**************************************!*\ !*** ./resources/js/api/resource.js ***! \**************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return Resource; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/request */ \"./resources/js/utils/request.js\");\n\n\n\n/**\n * Simple RESTful resource class\n */\n\nvar Resource = /*#__PURE__*/function () {\n function Resource(uri) {\n _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, Resource);\n\n this.uri = uri;\n }\n\n _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Resource, [{\n key: \"list\",\n value: function list(query) {\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n url: '/' + this.uri,\n method: 'get',\n params: query\n });\n }\n }, {\n key: \"get\",\n value: function get(id) {\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n url: '/' + this.uri + '/' + id,\n method: 'get'\n });\n }\n }, {\n key: \"store\",\n value: function store(resource) {\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n url: '/' + this.uri,\n method: 'post',\n data: resource\n });\n }\n }, {\n key: \"update\",\n value: function update(id, resource) {\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n url: '/' + this.uri + '/' + id,\n method: 'put',\n data: resource\n });\n }\n }, {\n key: \"destroy\",\n value: function destroy(id) {\n return Object(_utils_request__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n url: '/' + this.uri + '/' + id,\n method: 'delete'\n });\n }\n }]);\n\n return Resource;\n}();\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvYXBpL3Jlc291cmNlLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2FwaS9yZXNvdXJjZS5qcz85MWZjIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBfY2xhc3NDYWxsQ2hlY2sgZnJvbSBcIkBiYWJlbC9ydW50aW1lL2hlbHBlcnMvY2xhc3NDYWxsQ2hlY2tcIjtcbmltcG9ydCBfY3JlYXRlQ2xhc3MgZnJvbSBcIkBiYWJlbC9ydW50aW1lL2hlbHBlcnMvY3JlYXRlQ2xhc3NcIjtcbmltcG9ydCByZXF1ZXN0IGZyb20gJ0AvdXRpbHMvcmVxdWVzdCc7XG4vKipcbiAqIFNpbXBsZSBSRVNUZnVsIHJlc291cmNlIGN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yaSArICcvJyArIGlkLFxuICAgICAgICBtZXRob2Q6ICdwdXQnLFxuICAgICAgICBkYXRhOiByZXNvdXJjZVxuICAgICAgfSk7XG4gICAgfVxuICB9LCB7XG4gICAga2V5OiBcImRlc3Ryb3lcIixcbiAgICB2YWx1ZTogZnVuY3Rpb24gZGVzdHJveShpZCkge1xuICAgICAgcmV0dXJuIHJlcXVlc3Qoe1xuICAgICAgICB1cmw6ICcvJyArIHRoaXMudXJpICsgJy8nICsgaWQsXG4gICAgICAgIG1ldGhvZDogJ2RlbGV0ZSdcbiAgICAgIH0pO1xuICAgIH1cbiAgfV0pO1xuXG4gIHJldHVybiBSZXNvdXJjZTtcbn0oKTtcblxuZXhwb3J0IHsgUmVzb3VyY2UgYXMgZGVmYXVsdCB9OyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/api/resource.js\n"); /***/ }), /***/ "./resources/js/components/Pagination/index.vue": /*!******************************************************!*\ !*** ./resources/js/components/Pagination/index.vue ***! \******************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=5efa73f0&scoped=true& */ \"./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& */ \"./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"5efa73f0\",\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/components/Pagination/index.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1BhZ2luYXRpb24vaW5kZXgudnVlPzM2NGQiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgcmVuZGVyLCBzdGF0aWNSZW5kZXJGbnMgfSBmcm9tIFwiLi9pbmRleC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NWVmYTczZjAmc2NvcGVkPXRydWUmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5leHBvcnQgKiBmcm9tIFwiLi9pbmRleC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmltcG9ydCBzdHlsZTAgZnJvbSBcIi4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmaWQ9NWVmYTczZjAmc2NvcGVkPXRydWUmbGFuZz1jc3MmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBcIjVlZmE3M2YwXCIsXG4gIG51bGxcbiAgXG4pXG5cbi8qIGhvdCByZWxvYWQgKi9cbm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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUJBaUJBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/Pagination/index.vue\n"); /***/ }), /***/ "./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&": /*!*******************************************************************************!*\ !*** ./resources/js/components/Pagination/index.vue?vue&type=script&lang=js& ***! \*******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT8wYzZhIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBtb2QgZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL2JhYmVsLWxvYWRlci9saWIvaW5kZXguanM/P3JlZi0tNC0wIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vaW5kZXgudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2luZGV4LnZ1ZT92dWUmdHlwZT1zY3JpcHQmbGFuZz1qcyZcIiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/components/Pagination/index.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&": /*!***************************************************************************************************************!*\ !*** ./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& ***! \***************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css& */ \"./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5efa73f0_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPTVlZmE3M2YwJnNjb3BlZD10cnVlJmxhbmc9Y3NzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9jb21wb25lbnRzL1BhZ2luYXRpb24vaW5kZXgudnVlPzlkYTciXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IG1vZCBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9yZWYtLTUtMSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS01LTIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9pbmRleC52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD01ZWZhNzNmMCZzY29wZWQ9dHJ1ZSZsYW5nPWNzcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9yZWYtLTUtMSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS01LTIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9pbmRleC52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZpZD01ZWZhNzNmMCZzY29wZWQ9dHJ1ZSZsYW5nPWNzcyZcIiJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/components/Pagination/index.vue?vue&type=style&index=0&id=5efa73f0&scoped=true&lang=css&\n"); /***/ }), /***/ "./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&": /*!*************************************************************************************************!*\ !*** ./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true& ***! \*************************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=5efa73f0&scoped=true& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_5efa73f0_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT92dWUmdHlwZT10ZW1wbGF0ZSZpZD01ZWZhNzNmMCZzY29wZWQ9dHJ1ZSYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvY29tcG9uZW50cy9QYWdpbmF0aW9uL2luZGV4LnZ1ZT9lY2U5Il0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9sb2FkZXJzL3RlbXBsYXRlTG9hZGVyLmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9pbmRleC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9NWVmYTczZjAmc2NvcGVkPXRydWUmXCIiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/components/Pagination/index.vue?vue&type=template&id=5efa73f0&scoped=true&\n"); /***/ }), /***/ "./resources/js/directive/permission/index.js": /*!****************************************************!*\ !*** ./resources/js/directive/permission/index.js ***! \****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _permission__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permission */ \"./resources/js/directive/permission/permission.js\");\n\n\nvar install = function install(Vue) {\n Vue.directive('permission', _permission__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n};\n\nif (window.Vue) {\n window['permission'] = _permission__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n Vue.use(install); // eslint-disable-line\n}\n\n_permission__WEBPACK_IMPORTED_MODULE_0__[\"default\"].install = install;\n/* harmony default export */ __webpack_exports__[\"default\"] = (_permission__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3Blcm1pc3Npb24vaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3Blcm1pc3Npb24vaW5kZXguanM/ZGU2ZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgcGVybWlzc2lvbiBmcm9tICcuL3Blcm1pc3Npb24nO1xuXG52YXIgaW5zdGFsbCA9IGZ1bmN0aW9uIGluc3RhbGwoVnVlKSB7XG4gIFZ1ZS5kaXJlY3RpdmUoJ3Blcm1pc3Npb24nLCBwZXJtaXNzaW9uKTtcbn07XG5cbmlmICh3aW5kb3cuVnVlKSB7XG4gIHdpbmRvd1sncGVybWlzc2lvbiddID0gcGVybWlzc2lvbjtcbiAgVnVlLnVzZShpbnN0YWxsKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZVxufVxuXG5wZXJtaXNzaW9uLmluc3RhbGwgPSBpbnN0YWxsO1xuZXhwb3J0IGRlZmF1bHQgcGVybWlzc2lvbjsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/directive/permission/index.js\n"); /***/ }), /***/ "./resources/js/directive/permission/permission.js": /*!*********************************************************!*\ !*** ./resources/js/directive/permission/permission.js ***! \*********************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store */ \"./resources/js/store/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inserted: function inserted(el, binding, vnode) {\n var value = binding.value;\n var permissions = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters && _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters.permissions;\n\n if (value && value instanceof Array && value.length > 0) {\n var requiredPermissions = value;\n var hasPermission = permissions.some(function (permission) {\n return requiredPermissions.includes(permission);\n });\n\n if (!hasPermission) {\n el.parentNode && el.parentNode.removeChild(el);\n }\n } else {\n throw new Error(\"Permissions are required! Example: v-permission=\\\"['manage user','manage permission']\\\"\");\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3Blcm1pc3Npb24vcGVybWlzc2lvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9kaXJlY3RpdmUvcGVybWlzc2lvbi9wZXJtaXNzaW9uLmpzP2E1YTEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0b3JlIGZyb20gJ0Avc3RvcmUnO1xuZXhwb3J0IGRlZmF1bHQge1xuICBpbnNlcnRlZDogZnVuY3Rpb24gaW5zZXJ0ZWQoZWwsIGJpbmRpbmcsIHZub2RlKSB7XG4gICAgdmFyIHZhbHVlID0gYmluZGluZy52YWx1ZTtcbiAgICB2YXIgcGVybWlzc2lvbnMgPSBzdG9yZS5nZXR0ZXJzICYmIHN0b3JlLmdldHRlcnMucGVybWlzc2lvbnM7XG5cbiAgICBpZiAodmFsdWUgJiYgdmFsdWUgaW5zdGFuY2VvZiBBcnJheSAmJiB2YWx1ZS5sZW5ndGggPiAwKSB7XG4gICAgICB2YXIgcmVxdWlyZWRQZXJtaXNzaW9ucyA9IHZhbHVlO1xuICAgICAgdmFyIGhhc1Blcm1pc3Npb24gPSBwZXJtaXNzaW9ucy5zb21lKGZ1bmN0aW9uIChwZXJtaXNzaW9uKSB7XG4gICAgICAgIHJldHVybiByZXF1aXJlZFBlcm1pc3Npb25zLmluY2x1ZGVzKHBlcm1pc3Npb24pO1xuICAgICAgfSk7XG5cbiAgICAgIGlmICghaGFzUGVybWlzc2lvbikge1xuICAgICAgICBlbC5wYXJlbnROb2RlICYmIGVsLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQoZWwpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoXCJQZXJtaXNzaW9ucyBhcmUgcmVxdWlyZWQhIEV4YW1wbGU6IHYtcGVybWlzc2lvbj1cXFwiWydtYW5hZ2UgdXNlcicsJ21hbmFnZSBwZXJtaXNzaW9uJ11cXFwiXCIpO1xuICAgIH1cbiAgfVxufTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/directive/permission/permission.js\n"); /***/ }), /***/ "./resources/js/directive/role/index.js": /*!**********************************************!*\ !*** ./resources/js/directive/role/index.js ***! \**********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./role */ \"./resources/js/directive/role/role.js\");\n\n\nvar install = function install(Vue) {\n Vue.directive('role', _role__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n};\n\nif (window.Vue) {\n window['role'] = _role__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n Vue.use(install); // eslint-disable-line\n}\n\n_role__WEBPACK_IMPORTED_MODULE_0__[\"default\"].install = install;\n/* harmony default export */ __webpack_exports__[\"default\"] = (_role__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3JvbGUvaW5kZXguanMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3JvbGUvaW5kZXguanM/ODBhYyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgcm9sZSBmcm9tICcuL3JvbGUnO1xuXG52YXIgaW5zdGFsbCA9IGZ1bmN0aW9uIGluc3RhbGwoVnVlKSB7XG4gIFZ1ZS5kaXJlY3RpdmUoJ3JvbGUnLCByb2xlKTtcbn07XG5cbmlmICh3aW5kb3cuVnVlKSB7XG4gIHdpbmRvd1sncm9sZSddID0gcm9sZTtcbiAgVnVlLnVzZShpbnN0YWxsKTsgLy8gZXNsaW50LWRpc2FibGUtbGluZVxufVxuXG5yb2xlLmluc3RhbGwgPSBpbnN0YWxsO1xuZXhwb3J0IGRlZmF1bHQgcm9sZTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/directive/role/index.js\n"); /***/ }), /***/ "./resources/js/directive/role/role.js": /*!*********************************************!*\ !*** ./resources/js/directive/role/role.js ***! \*********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store */ \"./resources/js/store/index.js\");\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inserted: function inserted(el, binding, vnode) {\n var value = binding.value;\n var roles = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters && _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters.roles;\n\n if (value && value instanceof Array && value.length > 0) {\n var requiredRoles = value;\n var hasRole = roles.some(function (role) {\n return requiredRoles.includes(role);\n });\n\n if (!hasRole) {\n el.parentNode && el.parentNode.removeChild(el);\n }\n } else {\n throw new Error(\"Roles are required! Example: v-role=\\\"['admin','editor']\\\"\");\n }\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3JvbGUvcm9sZS5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy9kaXJlY3RpdmUvcm9sZS9yb2xlLmpzP2I2MjMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0b3JlIGZyb20gJ0Avc3RvcmUnO1xuZXhwb3J0IGRlZmF1bHQge1xuICBpbnNlcnRlZDogZnVuY3Rpb24gaW5zZXJ0ZWQoZWwsIGJpbmRpbmcsIHZub2RlKSB7XG4gICAgdmFyIHZhbHVlID0gYmluZGluZy52YWx1ZTtcbiAgICB2YXIgcm9sZXMgPSBzdG9yZS5nZXR0ZXJzICYmIHN0b3JlLmdldHRlcnMucm9sZXM7XG5cbiAgICBpZiAodmFsdWUgJiYgdmFsdWUgaW5zdGFuY2VvZiBBcnJheSAmJiB2YWx1ZS5sZW5ndGggPiAwKSB7XG4gICAgICB2YXIgcmVxdWlyZWRSb2xlcyA9IHZhbHVlO1xuICAgICAgdmFyIGhhc1JvbGUgPSByb2xlcy5zb21lKGZ1bmN0aW9uIChyb2xlKSB7XG4gICAgICAgIHJldHVybiByZXF1aXJlZFJvbGVzLmluY2x1ZGVzKHJvbGUpO1xuICAgICAgfSk7XG5cbiAgICAgIGlmICghaGFzUm9sZSkge1xuICAgICAgICBlbC5wYXJlbnROb2RlICYmIGVsLnBhcmVudE5vZGUucmVtb3ZlQ2hpbGQoZWwpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoXCJSb2xlcyBhcmUgcmVxdWlyZWQhIEV4YW1wbGU6IHYtcm9sZT1cXFwiWydhZG1pbicsJ2VkaXRvciddXFxcIlwiKTtcbiAgICB9XG4gIH1cbn07Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/directive/role/role.js\n"); /***/ }), /***/ "./resources/js/directive/waves/index.js": /*!***********************************************!*\ !*** ./resources/js/directive/waves/index.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _waves__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./waves */ \"./resources/js/directive/waves/waves.js\");\n\n\nvar install = function install(Vue) {\n Vue.directive('waves', _waves__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);\n};\n\nif (window.Vue) {\n window.waves = _waves__WEBPACK_IMPORTED_MODULE_0__[\"default\"];\n Vue.use(install); // eslint-disable-line\n}\n\n_waves__WEBPACK_IMPORTED_MODULE_0__[\"default\"].install = install;\n/* harmony default export */ __webpack_exports__[\"default\"] = (_waves__WEBPACK_IMPORTED_MODULE_0__[\"default\"]);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3dhdmVzL2luZGV4LmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2RpcmVjdGl2ZS93YXZlcy9pbmRleC5qcz8yZGM3Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB3YXZlcyBmcm9tICcuL3dhdmVzJztcblxudmFyIGluc3RhbGwgPSBmdW5jdGlvbiBpbnN0YWxsKFZ1ZSkge1xuICBWdWUuZGlyZWN0aXZlKCd3YXZlcycsIHdhdmVzKTtcbn07XG5cbmlmICh3aW5kb3cuVnVlKSB7XG4gIHdpbmRvdy53YXZlcyA9IHdhdmVzO1xuICBWdWUudXNlKGluc3RhbGwpOyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lXG59XG5cbndhdmVzLmluc3RhbGwgPSBpbnN0YWxsO1xuZXhwb3J0IGRlZmF1bHQgd2F2ZXM7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/directive/waves/index.js\n"); /***/ }), /***/ "./resources/js/directive/waves/waves.css": /*!************************************************!*\ !*** ./resources/js/directive/waves/waves.css ***! \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { eval("\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/postcss-loader/src??ref--5-2!./waves.css */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./resources/js/directive/waves/waves.css\");\n\nif(typeof content === 'string') content = [[module.i, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ \"./node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(false) {}//# sourceURL=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7XG59Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/directive/waves/waves.css\n"); /***/ }), /***/ "./resources/js/directive/waves/waves.js": /*!***********************************************!*\ !*** ./resources/js/directive/waves/waves.js ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _waves_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./waves.css */ \"./resources/js/directive/waves/waves.css\");\n/* harmony import */ var _waves_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_waves_css__WEBPACK_IMPORTED_MODULE_0__);\n\nvar context = '@@wavesContext';\n\nfunction handleClick(el, binding) {\n function handle(e) {\n var customOpts = Object.assign({}, binding.value);\n var opts = Object.assign({\n ele: el,\n // Main wave element\n type: 'hit',\n // hit: Wave at click location. center: Center point\n color: 'rgba(0, 0, 0, 0.15)' // Ripple color\n\n }, customOpts);\n var target = opts.ele;\n\n if (target) {\n target.style.position = 'relative';\n target.style.overflow = 'hidden';\n var rect = target.getBoundingClientRect();\n var ripple = target.querySelector('.waves-ripple');\n\n if (!ripple) {\n ripple = document.createElement('span');\n ripple.className = 'waves-ripple';\n ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px';\n target.appendChild(ripple);\n } else {\n ripple.className = 'waves-ripple';\n }\n\n switch (opts.type) {\n case 'center':\n ripple.style.top = rect.height / 2 - ripple.offsetHeight / 2 + 'px';\n ripple.style.left = rect.width / 2 - ripple.offsetWidth / 2 + 'px';\n break;\n\n default:\n ripple.style.top = (e.pageY - rect.top - ripple.offsetHeight / 2 - document.documentElement.scrollTop || document.body.scrollTop) + 'px';\n ripple.style.left = (e.pageX - rect.left - ripple.offsetWidth / 2 - document.documentElement.scrollLeft || document.body.scrollLeft) + 'px';\n }\n\n ripple.style.backgroundColor = opts.color;\n ripple.className = 'waves-ripple z-active';\n return false;\n }\n }\n\n if (!el[context]) {\n el[context] = {\n removeHandle: handle\n };\n } else {\n el[context].removeHandle = handle;\n }\n\n return handle;\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n bind: function bind(el, binding) {\n el.addEventListener('click', handleClick(el, binding), false);\n },\n update: function update(el, binding) {\n el.removeEventListener('click', el[context].removeHandle, true);\n el.addEventListener('click', handleClick(el, binding), false);\n },\n unbind: function unbind(el) {\n el.removeEventListener('click', el[context].removeHandle, false);\n el[context] = null;\n delete el[context];\n }\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvZGlyZWN0aXZlL3dhdmVzL3dhdmVzLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL2RpcmVjdGl2ZS93YXZlcy93YXZlcy5qcz80NzE4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAnLi93YXZlcy5jc3MnO1xudmFyIGNvbnRleHQgPSAnQEB3YXZlc0NvbnRleHQnO1xuXG5mdW5jdGlvbiBoYW5kbGVDbGljayhlbCwgYmluZGluZykge1xuICBmdW5jdGlvbiBoYW5kbGUoZSkge1xuICAgIHZhciBjdXN0b21PcHRzID0gT2JqZWN0LmFzc2lnbih7fSwgYmluZGluZy52YWx1ZSk7XG4gICAgdmFyIG9wdHMgPSBPYmplY3QuYXNzaWduKHtcbiAgICAgIGVsZTogZWwsXG4gICAgICAvLyBNYWluIHdhdmUgZWxlbWVudFxuICAgICAgdHlwZTogJ2hpdCcsXG4gICAgICAvLyBoaXQ6IFdhdm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O0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/directive/waves/waves.js\n"); /***/ }), /***/ "./resources/js/utils/permission.js": /*!******************************************!*\ !*** ./resources/js/utils/permission.js ***! \******************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return checkPermission; });\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/store */ \"./resources/js/store/index.js\");\n\n/**\n * @param {Array} value\n * @returns {Boolean}\n * @example see @/views/permission/Directive.vue\n */\n\nfunction checkPermission(value) {\n if (value && value instanceof Array && value.length > 0) {\n var permissions = _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters && _store__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getters.permissions;\n var requiredPermissions = value;\n var hasPermission = permissions.some(function (permission) {\n return requiredPermissions.includes(permission);\n });\n return hasPermission;\n } else {\n console.error(\"Need permissions! Like v-permission=\\\"['manage permission','edit article']\\\"\");\n return false;\n }\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdXRpbHMvcGVybWlzc2lvbi5qcy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy91dGlscy9wZXJtaXNzaW9uLmpzPzdiYmEiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0b3JlIGZyb20gJ0Avc3RvcmUnO1xuLyoqXG4gKiBAcGFyYW0ge0FycmF5fSB2YWx1ZVxuICogQHJldHVybnMge0Jvb2xlYW59XG4gKiBAZXhhbXBsZSBzZWUgQC92aWV3cy9wZXJtaXNzaW9uL0RpcmVjdGl2ZS52dWVcbiAqL1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBjaGVja1Blcm1pc3Npb24odmFsdWUpIHtcbiAgaWYgKHZhbHVlICYmIHZhbHVlIGluc3RhbmNlb2YgQXJyYXkgJiYgdmFsdWUubGVuZ3RoID4gMCkge1xuICAgIHZhciBwZXJtaXNzaW9ucyA9IHN0b3JlLmdldHRlcnMgJiYgc3RvcmUuZ2V0dGVycy5wZXJtaXNzaW9ucztcbiAgICB2YXIgcmVxdWlyZWRQZXJtaXNzaW9ucyA9IHZhbHVlO1xuICAgIHZhciBoYXNQZXJtaXNzaW9uID0gcGVybWlzc2lvbnMuc29tZShmdW5jdGlvbiAocGVybWlzc2lvbikge1xuICAgICAgcmV0dXJuIHJlcXVpcmVkUGVybWlzc2lvbnMuaW5jbHVkZXMocGVybWlzc2lvbik7XG4gICAgfSk7XG4gICAgcmV0dXJuIGhhc1Blcm1pc3Npb247XG4gIH0gZWxzZSB7XG4gICAgY29uc29sZS5lcnJvcihcIk5lZWQgcGVybWlzc2lvbnMhIExpa2Ugdi1wZXJtaXNzaW9uPVxcXCJbJ21hbmFnZSBwZXJtaXNzaW9uJywnZWRpdCBhcnRpY2xlJ11cXFwiXCIpO1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxufSJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/utils/permission.js\n"); /***/ }), /***/ "./resources/js/utils/scroll-to.js": /*!*****************************************!*\ !*** ./resources/js/utils/scroll-to.js ***! \*****************************************/ /*! exports provided: scrollTo */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"scrollTo\", function() { return scrollTo; });\nMath.easeInOutQuad = function (t, b, c, d) {\n t /= d / 2;\n\n if (t < 1) {\n return c / 2 * t * t + b;\n }\n\n t--;\n return -c / 2 * (t * (t - 2) - 1) + b;\n}; // requestAnimationFrame for Smart Animating http://goo.gl/sx5sts\n\n\nvar requestAnimFrame = function () {\n return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {\n window.setTimeout(callback, 1000 / 60);\n };\n}(); // because it's so fucking difficult to detect the scrolling element, just move them all\n\n\nfunction move(amount) {\n document.documentElement.scrollTop = amount;\n document.body.parentNode.scrollTop = amount;\n document.body.scrollTop = amount;\n}\n\nfunction position() {\n return document.documentElement.scrollTop || document.body.parentNode.scrollTop || document.body.scrollTop;\n}\n\nfunction scrollTo(to, duration, callback) {\n var start = position();\n var change = to - start;\n var increment = 20;\n var currentTime = 0;\n duration = typeof duration === 'undefined' ? 500 : duration;\n\n var animateScroll = function animateScroll() {\n // increment the time\n currentTime += increment; // find the value with the quadratic in-out easing function\n\n var val = Math.easeInOutQuad(currentTime, start, change, duration); // move the document.body\n\n move(val); // do the animation unless its over\n\n if (currentTime < duration) {\n requestAnimFrame(animateScroll);\n } else {\n if (callback && typeof callback === 'function') {\n // the animation is done so lets callback\n callback();\n }\n }\n };\n\n animateScroll();\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdXRpbHMvc2Nyb2xsLXRvLmpzLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3V0aWxzL3Njcm9sbC10by5qcz85ZjMwIl0sInNvdXJjZXNDb250ZW50IjpbIk1hdGguZWFzZUluT3V0UXVhZCA9IGZ1bmN0aW9uICh0LCBiLCBjLCBkKSB7XG4gIHQgLz0gZCAvIDI7XG5cbiAgaWYgKHQgPCA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zIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./resources/js/utils/scroll-to.js\n"); /***/ }), /***/ "./resources/js/views/proyectos/Form.vue": /*!***********************************************!*\ !*** ./resources/js/views/proyectos/Form.vue ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Form.vue?vue&type=template&id=f4bbc2f8&scoped=true& */ \"./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&\");\n/* harmony import */ var _Form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form.vue?vue&type=script&lang=js& */ \"./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& */ \"./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _Form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n \"f4bbc2f8\",\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/views/proyectos/Form.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9Gb3JtLnZ1ZT85NTU3Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vRm9ybS52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9ZjRiYmMyZjgmc2NvcGVkPXRydWUmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vRm9ybS52dWU/dnVlJnR5cGU9c2NyaXB0J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nQub3B0aW9ucylcbiAgICB9XG4gICAgbW9kdWxlLmhvdC5hY2NlcHQoXCIuL0Zvcm0udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPWY0YmJjMmY4JnNjb3BlZD10cnVlJlwiLCBmdW5jdGlvbiAoKSB7XG4gICAgICBhcGkucmVyZW5kZXIoJ2Y0YmJjMmY4Jywge1xuICAgICAgICByZW5kZXI6IHJlbmRlcixcbiAgICAgICAgc3RhdGljUmVuZGVyRm5zOiBzdGF0aWNSZW5kZXJGbnNcbiAgICAgIH0pXG4gICAgfSlcbiAgfVxufVxuY29tcG9uZW50Lm9wdGlvbnMuX19maWxlID0gXCJyZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlXCJcbmV4cG9ydCBkZWZhdWx0IGNvbXBvbmVudC5leHBvcnRzIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHVCQWlCQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/Form.vue\n"); /***/ }), /***/ "./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&": /*!************************************************************************!*\ !*** ./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js& ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Form.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvRm9ybS52dWU/YmYwMiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0Zvcm0udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0Zvcm0udnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/Form.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&": /*!********************************************************************************************************!*\ !*** ./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& ***! \********************************************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css& */ \"./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_style_index_0_id_f4bbc2f8_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2Z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saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS01LTIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9Gb3JtLnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmlkPWY0YmJjMmY4JnNjb3BlZD10cnVlJmxhbmc9Y3NzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/Form.vue?vue&type=style&index=0&id=f4bbc2f8&scoped=true&lang=css&\n"); /***/ }), /***/ "./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&": /*!******************************************************************************************!*\ !*** ./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true& ***! \******************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Form.vue?vue&type=template&id=f4bbc2f8&scoped=true& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Form_vue_vue_type_template_id_f4bbc2f8_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0Zvcm0udnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPWY0YmJjMmY4JnNjb3BlZD10cnVlJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvRm9ybS52dWU/ZWVmYiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vRm9ybS52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9ZjRiYmMyZjgmc2NvcGVkPXRydWUmXCIiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/Form.vue?vue&type=template&id=f4bbc2f8&scoped=true&\n"); /***/ }), /***/ "./resources/js/views/proyectos/List.vue": /*!***********************************************!*\ !*** ./resources/js/views/proyectos/List.vue ***! \***********************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./List.vue?vue&type=template&id=8cc97544& */ \"./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&\");\n/* harmony import */ var _List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List.vue?vue&type=script&lang=js& */ \"./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./List.vue?vue&type=style&index=0&lang=css& */ \"./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n _List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/views/proyectos/List.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0xpc3QudnVlLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9MaXN0LnZ1ZT8zN2RiIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHJlbmRlciwgc3RhdGljUmVuZGVyRm5zIH0gZnJvbSBcIi4vTGlzdC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9OGNjOTc1NDQmXCJcbmltcG9ydCBzY3JpcHQgZnJvbSBcIi4vTGlzdC52dWU/dnVlJnR5cGU9c2NyaXB0Jmxhbmc9anMmXCJcbmV4cG9ydCAqIGZyb20gXCIuL0xpc3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiXG5pbXBvcnQgc3R5bGUwIGZyb20gXCIuL0xpc3QudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmXCJcblxuXG4vKiBub3JtYWxpemUgY29tcG9uZW50ICovXG5pbXBvcnQgbm9ybWFsaXplciBmcm9tIFwiIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9ydW50aW1lL2NvbXBvbmVudE5vcm1hbGl6ZXIuanNcIlxudmFyIGNvbXBvbmVudCA9IG5vcm1hbGl6ZXIoXG4gIHNjcmlwdCxcbiAgcmVuZGVyLFxuICBzdGF0aWNSZW5kZXJGbnMsXG4gIGZhbHNlLFxuICBudWxsLFxuICBudWxsLFxuICBudWxsXG4gIFxuKVxuXG4vKiBob3QgcmVsb2FkICovXG5pZiAobW9kdWxlLmhvdCkge1xuICB2YXIgYXBpID0gcmVxdWlyZShcIkM6XFxcXHhhbXBwXFxcXGh0ZG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E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/List.vue\n"); /***/ }), /***/ "./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&": /*!************************************************************************!*\ !*** ./resources/js/views/proyectos/List.vue?vue&type=script&lang=js& ***! \************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0xpc3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvTGlzdC52dWU/MWI5NSJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0xpc3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL0xpc3QudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/List.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&": /*!********************************************************************************!*\ !*** ./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css& ***! \********************************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&lang=css& */ \"./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\");\n/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0xpc3QudnVlP3Z1ZSZ0eXBlPXN0eWxlJmluZGV4PTAmbGFuZz1jc3MmLmpzIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vLy4vcmVzb3VyY2VzL2pzL3ZpZXdzL3Byb3llY3Rvcy9MaXN0LnZ1ZT80YzI4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBtb2QgZnJvbSBcIi0hLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3N0eWxlLWxvYWRlci9pbmRleC5qcyEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvY3NzLWxvYWRlci9kaXN0L2Nqcy5qcz8/cmVmLS01LTEhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2xvYWRlcnMvc3R5bGVQb3N0TG9hZGVyLmpzIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9wb3N0Y3NzLWxvYWRlci9zcmMvaW5kZXguanM/P3JlZi0tNS0yIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vTGlzdC52dWU/dnVlJnR5cGU9c3R5bGUmaW5kZXg9MCZsYW5nPWNzcyZcIjsgZXhwb3J0IGRlZmF1bHQgbW9kOyBleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvc3R5bGUtbG9hZGVyL2luZGV4LmpzIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9jc3MtbG9hZGVyL2Rpc3QvY2pzLmpzPz9yZWYtLTUtMSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy9zdHlsZVBvc3RMb2FkZXIuanMhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Bvc3Rjc3MtbG9hZGVyL3NyYy9pbmRleC5qcz8/cmVmLS01LTIhLi4vLi4vLi4vLi4vbm9kZV9tb2R1bGVzL3Z1ZS1sb2FkZXIvbGliL2luZGV4LmpzPz92dWUtbG9hZGVyLW9wdGlvbnMhLi9MaXN0LnZ1ZT92dWUmdHlwZT1zdHlsZSZpbmRleD0wJmxhbmc9Y3NzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/List.vue?vue&type=style&index=0&lang=css&\n"); /***/ }), /***/ "./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&": /*!******************************************************************************!*\ !*** ./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544& ***! \******************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=template&id=8cc97544& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_8cc97544___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL0xpc3QudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPThjYzk3NTQ0Ji5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvTGlzdC52dWU/MTUyNCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vTGlzdC52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9OGNjOTc1NDQmXCIiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/List.vue?vue&type=template&id=8cc97544&\n"); /***/ }), /***/ "./resources/js/views/proyectos/documentos.vue": /*!*****************************************************!*\ !*** ./resources/js/views/proyectos/documentos.vue ***! \*****************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./documentos.vue?vue&type=template&id=7d36965f& */ \"./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&\");\n/* harmony import */ var _documentos_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./documentos.vue?vue&type=script&lang=js& */ \"./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _documentos_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"resources/js/views/proyectos/documentos.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL2RvY3VtZW50b3MudnVlLmpzIiwic291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FwaS5pc1JlY29yZGVkKCc3ZDM2OTY1ZicpKSB7XG4gICAgICBhcGkuY3JlYXRlUmVjb3JkKCc3ZDM2OTY1ZicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH0gZWxzZSB7XG4gICAgICBhcGkucmVsb2FkKCc3ZDM2OTY1ZicsIGNvbXBvbmVudC5vcHRpb25zKVxuICAgIH1cbiAgICBtb2R1bGUuaG90LmFjY2VwdChcIi4vZG9jdW1lbnRvcy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9N2QzNjk2NWYmXCIsIGZ1bmN0aW9uICgpIHtcbiAgICAgIGFwaS5yZXJlbmRlcignN2QzNjk2NWYnLCB7XG4gICAgICAgIHJlbmRlcjogcmVuZGVyLFxuICAgICAgICBzdGF0aWNSZW5kZXJGbnM6IHN0YXRpY1JlbmRlckZuc1xuICAgICAgfSlcbiAgICB9KVxuICB9XG59XG5jb21wb25lbnQub3B0aW9ucy5fX2ZpbGUgPSBcInJlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvZG9jdW1lbnRvcy52dWVcIlxuZXhwb3J0IGRlZmF1bHQgY29tcG9uZW50LmV4cG9ydHMiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1QkFpQkE7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/documentos.vue\n"); /***/ }), /***/ "./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&": /*!******************************************************************************!*\ !*** ./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js& ***! \******************************************************************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_documentos_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./documentos.vue?vue&type=script&lang=js& */ \"./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_documentos_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL2RvY3VtZW50b3MudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvZG9jdW1lbnRvcy52dWU/ZDY1ZCJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgbW9kIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2RvY3VtZW50b3MudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiOyBleHBvcnQgZGVmYXVsdCBtb2Q7IGV4cG9ydCAqIGZyb20gXCItIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy9iYWJlbC1sb2FkZXIvbGliL2luZGV4LmpzPz9yZWYtLTQtMCEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvaW5kZXguanM/P3Z1ZS1sb2FkZXItb3B0aW9ucyEuL2RvY3VtZW50b3MudnVlP3Z1ZSZ0eXBlPXNjcmlwdCZsYW5nPWpzJlwiIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/documentos.vue?vue&type=script&lang=js&\n"); /***/ }), /***/ "./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&": /*!************************************************************************************!*\ !*** ./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f& ***! \************************************************************************************/ /*! exports provided: render, staticRenderFns */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./documentos.vue?vue&type=template&id=7d36965f& */ \"./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_documentos_vue_vue_type_template_id_7d36965f___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9yZXNvdXJjZXMvanMvdmlld3MvcHJveWVjdG9zL2RvY3VtZW50b3MudnVlP3Z1ZSZ0eXBlPXRlbXBsYXRlJmlkPTdkMzY5NjVmJi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3Jlc291cmNlcy9qcy92aWV3cy9wcm95ZWN0b3MvZG9jdW1lbnRvcy52dWU/OWUwNiJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLSEuLi8uLi8uLi8uLi9ub2RlX21vZHVsZXMvdnVlLWxvYWRlci9saWIvbG9hZGVycy90ZW1wbGF0ZUxvYWRlci5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4uLy4uLy4uLy4uL25vZGVfbW9kdWxlcy92dWUtbG9hZGVyL2xpYi9pbmRleC5qcz8/dnVlLWxvYWRlci1vcHRpb25zIS4vZG9jdW1lbnRvcy52dWU/dnVlJnR5cGU9dGVtcGxhdGUmaWQ9N2QzNjk2NWYmXCIiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./resources/js/views/proyectos/documentos.vue?vue&type=template&id=7d36965f&\n"); /***/ }) }]);
"use strict"; /** @jsx jsx */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __spreadArrays = (this && this.__spreadArrays) || function () { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var sdk_1 = require("@builder.io/sdk"); var core_1 = require("@emotion/core"); var react_1 = __importDefault(require("react")); var device_sizes_constant_1 = require("../constants/device-sizes.constant"); var set_1 = require("../functions/set"); var string_to_function_1 = require("../functions/string-to-function"); var builder_async_requests_1 = require("../store/builder-async-requests"); var builder_store_1 = require("../store/builder-store"); var apply_patch_with_mutation_1 = require("../functions/apply-patch-with-mutation"); var block_to_html_string_1 = require("../functions/block-to-html-string"); var Link_1 = require("./Link"); var camelCaseToKebabCase = function (str) { return str ? str.replace(/([A-Z])/g, function (g) { return "-" + g[0].toLowerCase(); }) : ''; }; var kebabCaseToCamelCase = function (str) { if (str === void 0) { str = ''; } return str.replace(/-([a-z])/g, function (match) { return match[1].toUpperCase(); }); }; var Device = { desktop: 0, tablet: 1, mobile: 2 }; var blocksMap = {}; var voidElements = new Set([ 'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr', ]); function pick(object, keys) { return keys.reduce(function (obj, key) { if (object && object.hasOwnProperty(key)) { obj[key] = object[key]; } return obj; }, {}); } var last = function (arr) { return arr[arr.length - 1]; }; function omit(obj, values) { var newObject = Object.assign({}, obj); for (var _i = 0, values_1 = values; _i < values_1.length; _i++) { var key = values_1[_i]; delete newObject[key]; } return newObject; } var cssCase = function (property) { if (!property) { return property; } var str = camelCaseToKebabCase(property); if (property[0] === property[0].toUpperCase()) { str = '-' + str; } return str; }; // TODO: pull from builer internal utils var fastClone = function (obj) { return JSON.parse(JSON.stringify(obj)); }; function mapToCss(map, spaces, important) { if (spaces === void 0) { spaces = 2; } if (important === void 0) { important = false; } return Object.keys(map).reduce(function (memo, key) { var value = map[key]; if (typeof value !== 'string') { return memo; } return (memo + (value && value.trim() ? "\n" + ' '.repeat(spaces) + cssCase(key) + ": " + (value + (important ? ' !important' : '')) + ";" : '')); }, ''); } function capitalize(str) { if (!str) { return; } return str[0].toUpperCase() + str.slice(1); } var BuilderBlock = /** @class */ (function (_super) { __extends(BuilderBlock, _super); function BuilderBlock() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.state = { hasError: false, updates: 0, }; _this.privateState = { state: {}, rootState: {}, context: {}, update: function () { /* Intentionally empty */ }, }; _this.onWindowMessage = function (event) { var message = event.data; if (!message) { return; } switch (message.type) { case 'builder.selectionChange': { var data = message.data; if (!data) { break; } var selection = data.selection; var id = _this.block && _this.block.id; if (id && Array.isArray(selection) && selection.indexOf(id) > -1) { setTimeout(function () { window.$block = _this; if (!window.$blocks) { window.$blocks = []; } window.$blocks.push(_this); }); } break; } case 'builder.patchUpdates': { var data = message.data; if (!(data && data.data)) { break; } var patches = data.data[_this.block.id]; if (!patches) { return; } if (location.href.includes('builder.debug=true')) { _this.eval('debugger'); } var newBlock = __assign({}, _this.block); for (var _i = 0, patches_1 = patches; _i < patches_1.length; _i++) { var patch = patches_1[_i]; // TODO: soehow mark this.block as a new object, // e.g. access it's parent hm. maybe do the listning mutations // on hte parent element not the child (or rather // send the message to the parent) apply_patch_with_mutation_1.applyPatchWithMinimalMutationChain(newBlock, patch); } blocksMap[_this.props.block.id] = newBlock; _this.setState({ updates: _this.state.updates + 1 }); break; } } }; return _this; } Object.defineProperty(BuilderBlock.prototype, "store", { get: function () { return this.privateState; }, enumerable: true, configurable: true }); BuilderBlock.getDerivedStateFromError = function (error) { return { hasError: true }; }; BuilderBlock.prototype.componentDidCatch = function (error, errorInfo) { console.error('Builder block error:', error, errorInfo); }; // TODO: handle adding return if none provided // TODO: cache/memoize this (globally with LRU?) BuilderBlock.prototype.stringToFunction = function (str, expression) { if (expression === void 0) { expression = true; } return string_to_function_1.stringToFunction(str, expression, this._errors, this._logs); }; Object.defineProperty(BuilderBlock.prototype, "block", { get: function () { return blocksMap[this.props.block.id] || this.props.block; }, enumerable: true, configurable: true }); BuilderBlock.prototype.UNSAFE_componentWillReceiveProps = function (nextProps) { // Always keep our blocks map fresh if (sdk_1.Builder.isEditing && blocksMap[nextProps.block.id] !== nextProps.block) { blocksMap[nextProps.block.id] = nextProps.block; } }; Object.defineProperty(BuilderBlock.prototype, "styles", { get: function () { // TODO: handle style bindings var size = this.props.size; var block = this.block; var styles = []; var startIndex = device_sizes_constant_1.sizeNames.indexOf(size || 'large'); if (block.responsiveStyles) { for (var i = startIndex; i < device_sizes_constant_1.sizeNames.length; i = i + 1) { var name_1 = device_sizes_constant_1.sizeNames[i]; if (block.responsiveStyles[name_1]) { styles.push(block.responsiveStyles[name_1]); } } } // On the server apply the initial animation state (TODO: maybe not for load time hm) // TODO: maybe /s/ server renders content pages hmm var isServer = !!this.privateState.state.isServer; var initialAnimationStepStyles; if (isServer) { var animation = block.animations && block.animations[0]; var firstStep = animation && animation.steps && animation.steps[0]; var stepStyles = firstStep && firstStep.styles; if (stepStyles) { initialAnimationStepStyles = stepStyles; } } return Object.assign.apply(Object, __spreadArrays([{}], styles.reverse(), [initialAnimationStepStyles])); }, enumerable: true, configurable: true }); Object.defineProperty(BuilderBlock.prototype, "emotionCss", { get: function () { var _a, _b; var initialAnimationStepStyles; var block = this.block; if (sdk_1.Builder.isServer) { var animation = block.animations && block.animations[0]; if (animation && animation.trigger !== 'hover') { var firstStep = animation && animation.steps && animation.steps[0]; var stepStyles = firstStep && firstStep.styles; if (stepStyles) { initialAnimationStepStyles = stepStyles; } } } var reversedNames = device_sizes_constant_1.sizeNames.slice().reverse(); var self = this.block; var styles = {}; if (self.responsiveStyles) { for (var _i = 0, reversedNames_1 = reversedNames; _i < reversedNames_1.length; _i++) { var size = reversedNames_1[_i]; if (size === 'large') { if (!this.props.emailMode) { styles["&.builder-block"] = Object.assign({}, self.responsiveStyles[size], initialAnimationStepStyles); } } else { styles["@media only screen and (max-width: " + device_sizes_constant_1.sizes[size].max + "px)"] = { '&.builder-block': self.responsiveStyles[size], }; } } } var hoverAnimation = block.animations && block.animations.find(function (item) { return item.trigger === 'hover'; }); if (hoverAnimation) { styles[':hover'] = ((_b = (_a = hoverAnimation.steps) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.styles) || {}; // TODO: if manually has set transition property deal with that // TODO: only include properties explicitly set in the animation // using Object.keys(styles) styles.transition = "all " + hoverAnimation.duration + "s " + camelCaseToKebabCase(hoverAnimation.easing); if (hoverAnimation.delay) { styles.transitionDelay = hoverAnimation.delay + 's'; } } return styles; }, enumerable: true, configurable: true }); Object.defineProperty(BuilderBlock.prototype, "css", { get: function () { // TODO: handle style bindings var self = this.block; var baseStyles = __assign({}, (self.responsiveStyles && self.responsiveStyles.large)); var css = this.props.emailMode ? '' : ".builder-block." + self.id + " {" + mapToCss(baseStyles) + "}"; var reversedNames = device_sizes_constant_1.sizeNames.slice().reverse(); if (self.responsiveStyles) { for (var _i = 0, reversedNames_2 = reversedNames; _i < reversedNames_2.length; _i++) { var size = reversedNames_2[_i]; if (this.props.emailMode && size === 'large') { continue; } if (size !== 'large' && size !== 'xsmall' && self.responsiveStyles[size] && Object.keys(self.responsiveStyles[size]).length) { var emailOuterSizes = ['display', 'width', 'verticalAlign']; var map = self.responsiveStyles[size]; var outer = this.props.emailMode && pick(map, emailOuterSizes); // TODO: this will not work as expected for a couple things that are handled specially, // e.g. width css += "\n@media only screen and (max-width: " + device_sizes_constant_1.sizes[size].max + "px) { \n" + (this.props.emailMode ? '.' : '.builder-block.') + (self.id + (this.props.emailMode ? '-subject' : '')) + " {" + mapToCss(this.props.emailMode ? omit(map, emailOuterSizes) : map, 4, this.props.emailMode) + " } }"; if (this.props.emailMode && outer && Object.keys(outer).length) { css += "\n@media only screen and (max-width: " + device_sizes_constant_1.sizes[size].max + "px) { \n.builder-block." + self.id + " {" + mapToCss(outer, 4, true) + " } }"; } } } } var animations = self.animations; if (!this.privateState.state.isBrowser && animations && animations.length) { var firstAnimation = animations[0]; if (firstAnimation) { var firstStep = firstAnimation.steps && firstAnimation.steps[0]; if (firstStep) { var firstStepStyles = firstStep.styles; if (firstStepStyles) { css += "\n.builder-block." + self.id + " {" + mapToCss(firstStep, 2, true) + "}"; } } } } return css; }, enumerable: true, configurable: true }); BuilderBlock.prototype.eval = function (str) { var fn = this.stringToFunction(str); // TODO: only one root instance of this, don't rewrap every time... return fn(this.privateState.state, undefined, this.block, sdk_1.builder, Device, this.privateState.update, sdk_1.Builder, this.privateState.context); }; BuilderBlock.prototype.componentWillUnmount = function () { if (sdk_1.Builder.isEditing) { removeEventListener('message', this.onWindowMessage); } }; BuilderBlock.prototype.componentDidMount = function () { var _this = this; var block = this.block; var animations = block && block.animations; if (sdk_1.Builder.isEditing) { addEventListener('message', this.onWindowMessage); } // tslint:disable-next-line:comment-format ///REACT15ONLY if (this.ref) { this.ref.setAttribute('builder-id', block.id); } if (animations) { var options = { animations: fastClone(animations), }; // TODO: listen to Builder.editingMode and bind animations when editing // and unbind when not // TODO: apply bindings first if (block.bindings) { for (var key in block.bindings) { if (key.startsWith('animations.')) { // TODO: this needs to run in getElement bc of local state per element for repeats var value = this.stringToFunction(block.bindings[key]); if (value !== undefined) { set_1.set(options, key, value(this.privateState.state, null, block, sdk_1.builder, null, null, sdk_1.Builder, this.privateState.context)); } } } } sdk_1.Builder.animator.bindAnimations(options.animations .filter(function (item) { return item.trigger !== 'hover'; }) .map(function (animation) { return (__assign(__assign({}, animation), { elementId: _this.block.id })); })); } }; // <!-- Builder Blocks --> in comments hmm BuilderBlock.prototype.getElement = function (index, state) { var _a; var _this = this; if (index === void 0) { index = 0; } if (state === void 0) { state = this.privateState.state; } var _b, _c; var _d = this.props, child = _d.child, fieldName = _d.fieldName; var block = this.block; var TagName = (block.tagName || 'div').toLowerCase(); if (TagName === 'template') { var html = block.children ? block.children.map(function (item) { return block_to_html_string_1.blockToHtmlString(item); }).join(' ') : ''; console.debug('template html', html); return ( // React has an undesired behavior (for us) for template tags, so we must // turn the contents into a string core_1.jsx("template", __assign({}, block.properties, { dangerouslySetInnerHTML: { __html: html, } }))); } var InnerComponent; var componentName = block.component && (block.component.name || block.component.component); var componentInfo = null; if (block.component && !block.component.class) { if (block.component && block.component.tag) { InnerComponent = block.component.tag; } else { componentInfo = sdk_1.Builder.components.find(function (item) { return item.name === componentName; }) || null; if (componentInfo && componentInfo.class) { InnerComponent = componentInfo.class; } else if (componentInfo && componentInfo.tag) { InnerComponent = componentInfo.tag; } } } var TextTag = 'span'; var options = __assign(__assign({}, block.properties), { style: {} }); options = __assign(__assign({}, options.properties), options); if (block.component) { options.component = fastClone(block.component); } // Binding should be properties to href or href? // Manual style editor show bindings // Show if things bound in overlays hmm if (block.bindings) { for (var key in block.bindings) { var value = this.stringToFunction(block.bindings[key]); // TODO: pass block, etc set_1.set(options, key, value(state, null, block, string_to_function_1.api(state), Device, null, sdk_1.Builder, this.privateState.context)); } } if (options.hide) { return null; } else { delete options.hide; } // TODO: UI for this if (('show' in options || (block.bindings && block.bindings.show)) && !options.show) { return null; } else { delete options.show; } if (block.actions) { var _loop_1 = function (key) { var value = block.actions[key]; options['on' + capitalize(key)] = function (event) { var useState = state; if (typeof Proxy !== 'undefined') { useState = new Proxy(state, { set: function (obj, prop, value) { obj[prop] = value; _this.privateState.rootState[prop] = value; return true; }, }); } var fn = _this.stringToFunction(value, false); // TODO: only one root instance of this, don't rewrap every time... return fn(useState, event, _this.block, sdk_1.builder, Device, _this.privateState.update, sdk_1.Builder, _this.privateState.context); }; }; for (var key in block.actions) { _loop_1(key); } } var innerComponentProperties = (options.component || options.options) && __assign(__assign({}, options.options), (options.component.options || options.component.data)); var isVoid = voidElements.has(TagName); var noWrap = componentInfo && (componentInfo.fragment || componentInfo.noWrap); var styleStr = ((_b = options.attr) === null || _b === void 0 ? void 0 : _b.style) || (typeof options.style === 'string' ? options.style : '') || ''; if (typeof styleStr === 'string') { if (typeof options.style !== 'object') { options.style = {}; } var styleSplit = styleStr.split(';'); for (var _i = 0, styleSplit_1 = styleSplit; _i < styleSplit_1.length; _i++) { var pair = styleSplit_1[_i]; var stylePieces = pair.split(':'); if (!stylePieces.length) { return; } var key = stylePieces[0], value = stylePieces[1]; if (stylePieces.length > 2) { value = stylePieces.slice(1).join(':'); } options.style[kebabCaseToCamelCase(key)] = value; } } var finalOptions = __assign(__assign(__assign({}, omit(options, ['class', 'component', 'attr'])), (_a = {}, _a[typeof TagName === 'string' && !TagName.includes('-') ? 'className' : 'class'] = "builder-block " + this.id + (block.class ? " " + block.class : '') + (block.component && !(['Image', 'Video', 'Banner'].indexOf(componentName) > -1) ? " builder-has-component" : '') + (options.class ? ' ' + options.class : '') + (sdk_1.Builder.isEditing && ((_c = this.privateState.state._spacer) === null || _c === void 0 ? void 0 : _c.parent) === block.id ? ' builder-spacer-parent' : ''), _a.key = this.id + index, _a['builder-id'] = this.id, _a)), (index !== 0 && { 'builder-index': index, })); // tslint:disable-next-line:comment-format ///REACT15ONLY finalOptions.className = finalOptions.class if (sdk_1.Builder.isIframe) { // TODO: removed bc JS can add styles inline too? finalOptions['builder-inline-styles'] = !(options.attr && options.attr.style) ? '' : Object.keys(options.style).reduce(function (memo, key) { return (memo ? memo + ";" : '') + (cssCase(key) + ":" + options.style[key] + ";"); }, ''); } if (((finalOptions.properties && finalOptions.properties.href) || finalOptions.href) && TagName === 'div') { TagName = 'a'; } if (TagName === 'a') { TagName = Link_1.Link; } // const css = this.css // const styleTag = css.trim() && ( // <style className="builder-style"> // {(InnerComponent && !isBlock ? `.${this.id} > * { height: 100%; width: 100%; }` : '') + // this.css} // </style> // ) var children = block.children || finalOptions.children || []; // TODO: test it out return (core_1.jsx(react_1.default.Fragment, null, core_1.jsx(core_1.ClassNames, null, function (_a) { var css = _a.css, cx = _a.cx; if (!_this.props.emailMode) { var addClass = ' ' + css(_this.emotionCss); if (finalOptions.class) { finalOptions.class += addClass; } if (finalOptions.className) { finalOptions.className += addClass; } } return (core_1.jsx(builder_async_requests_1.BuilderAsyncRequestsContext.Consumer, null, function (value) { _this._asyncRequests = value && value.requests; _this._errors = value && value.errors; _this._logs = value && value.logs; return isVoid ? (core_1.jsx(TagName, __assign({}, finalOptions))) : InnerComponent && (noWrap || _this.props.emailMode) ? ( // TODO: pass the class to be easier // TODO: acceptsChildren option? core_1.jsx(InnerComponent // Final options maaay be wrong here hm , __assign({}, innerComponentProperties, { // should really call this builderAttributes bc people can name a // componet input "attributes" attributes: finalOptions, builderBlock: block, builderState: _this.privateState }))) : (core_1.jsx(TagName, __assign({}, finalOptions), InnerComponent && (core_1.jsx(InnerComponent, __assign({ builderState: _this.privateState, builderBlock: block }, innerComponentProperties))), block.text || options.text ? options.text : !InnerComponent && children && Array.isArray(children) && children.length ? children.map(function (block, index) { return (core_1.jsx(BuilderBlock, { key: (_this.id || '') + index, block: block, index: index, size: _this.props.size, fieldName: _this.props.fieldName, child: _this.props.child, emailMode: _this.props.emailMode })); }) : null)); })); }))); }; Object.defineProperty(BuilderBlock.prototype, "id", { get: function () { var block = this.block; if (!block.id.startsWith('builder')) { return 'builder-' + block.id; } return block.id; }, enumerable: true, configurable: true }); BuilderBlock.prototype.contents = function (state) { var _this = this; var block = this.block; // this.setState(state); this.privateState = state; if (block.repeat && block.repeat.collection) { var collectionPath = block.repeat.collection; var collectionName = last((collectionPath || '').trim().split('(')[0].trim().split('.')); var itemName_1 = block.repeat.itemName || (collectionName ? collectionName + 'Item' : 'item'); var array = this.stringToFunction(collectionPath)(state.state, null, block, string_to_function_1.api(state), Device, null, sdk_1.Builder, this.privateState.context); if (Array.isArray(array)) { return array.map(function (data, index) { var _a; // TODO: Builder state produce the data var childState = __assign(__assign({}, state.state), (_a = { $index: index, $item: data }, _a[itemName_1] = data, _a["$" + itemName_1 + "Index"] = index, _a)); return (core_1.jsx(builder_store_1.BuilderStoreContext.Provider, { key: index, value: __assign(__assign({}, state), { state: childState }) }, _this.getElement(index, childState))); }); } return null; } return this.getElement(); }; BuilderBlock.prototype.render = function () { var _this = this; if (this.state.hasError) { return (core_1.jsx("span", { css: { display: 'inline-block', padding: 5, color: '#999', fontSize: 11, fontStyle: 'italic', } }, "Builder block error :( Check console for details")); } return (core_1.jsx(builder_store_1.BuilderStoreContext.Consumer, null, function (value) { return _this.contents(value); })); }; return BuilderBlock; }(react_1.default.Component)); exports.BuilderBlock = BuilderBlock; //# sourceMappingURL=builder-block.component.js.map
import DefaultDefinition from '../../../src/lib/default-definition' import State from '../../../src/lib/state' import Handler from '../../../src/lib/handler' import Module from '../../../src/lib/module' import Context from '../../../src/context' import { makeClass } from '../../helpers' Context.use(DefaultDefinition) Context.use(Module) Context.use(Handler) Context.use(State) const ContextClass = Context.createClass() let context beforeEach(() => { context = new ContextClass() }) describe('State', () => { it('should extend Context', () => { expect(Context.hooks['state:register']).toBeDefined() expect(Context.hooks['state:unregister']).toBeDefined() expect(Context.Base.prototype.registerState).toBeInstanceOf(Function) expect(Context.Base.prototype.unregisterState).toBeInstanceOf(Function) }) it('should set context state', () => { context.registerState('foo', { some: 'value' }) expect(context.state.foo.some).toBe('value') }) it('should throw error if key exists', () => { context.registerState('foo', { some: 'value' }) expect( () => context.registerState('foo', { some: 'value' }) ).toThrow(/already exists/) }) it('should call hook', () => { const before = jest.fn() const after = jest.fn() Context.hooks['state:register'].attach((data, _, next) => { before() next() after() }) context.registerState('foo', { some: 'value' }) expect(before).toHaveBeenCalledTimes(1) expect(after).toHaveBeenCalledTimes(1) }) it('should register state', () => { const mdl = context.registerModule('some/module') const Command = makeClass('Command') .onInstance({ getter() { } }) .onClass({ get state() { return { value: 'some' } } }) .build() mdl.registerCommand(Command) const command = new Command() expect(command.rootState['some/module'].value).toBe('some') expect(command.state.value).toBe('some') expect(context._state['some/module'].value).toBe('some') }) it('should not override existing value', () => { context.registerState('foo', { value: 'old' }) const mdl = context.registerModule('foo') const Command = makeClass('Command') .onInstance({ getter() { return this.state.value } }) .onClass({ get state() { return { value: 'new' } } }) .build() mdl.registerCommand(Command) expect(context._state.foo.value).toBe('old') }) it('should define (clone) property getter from class static state definition', () => { const Command = makeClass('Command') .onInstance({ execute() { }, commit() { } }) .onClass({ get state() { return { get foo() { return 'foo' }, bar: 'bar' } } }) .build() let desc context.registerModule('moduleFoo', { commands: [Command] }) desc = Object.getOwnPropertyDescriptor(context.state.modulefoo, 'foo') expect(desc.writable).toBeUndefined() desc = Object.getOwnPropertyDescriptor(context.state.modulefoo, 'bar') expect(desc.writable).toBe(true) }) it('should register state for root module', () => { const mdl = context._modules.root const Command = makeClass('Command') .onInstance({ getter() { } }) .onClass({ get state() { return { value: 'some' } } }) .build() mdl.registerCommand(Command) const command = new Command() expect(command.rootState.root.value).toBe('some') expect(command.state.value).toBe('some') expect(context._state.root.value).toBe('some') }) it('should assign existing state to the command', () => { const mdl = context.registerModule('some/module') context._state['some/module'] = { value: 'exists' } const Command = makeClass('Command') .onInstance({ getter() { } }) .onClass({ get state() { return { value: 'some' } } }) .build() mdl.registerCommand(Command) const command = new Command() expect(command.rootState['some/module'].value).toBe('exists') expect(command.state.value).toBe('exists') expect(context._state['some/module'].value).toBe('exists') }) it('should unregister state', () => { const mdl = context.registerModule('some/module') const Command = makeClass('Command') .onInstance({ getter() { return this.state.value } }) .onClass({ get state() { return { value: 'some' } } }) .build() mdl.registerCommand(Command) expect(context._state['some/module']).toBeDefined() context.unregisterModule(mdl) expect(context._state['some/module/command']).toBeUndefined() }) it('should register getter', () => { const mdl = context.registerModule('some/module') const Command = makeClass('Command') .onInstance({ getter() { return this.state.value } }) .onClass({ get state() { return { value: 'some' } } }) .build() mdl.registerCommand(Command) expect(context.getters['some/module/command']).toBe('some') }) })
"use strict"; const url = require('url'); const log = require("../../utils/logger").logger; const Exception = require('../../utils/Exception').Exception; const dbs = require('../../db-connections'); const users = require('./Users'); let catalogueDB; module.exports.initialize = function(app) { catalogueDB = dbs.getDBConnection('catalogueDB'); app.get('/currency/:currencyId', currencyByIdGET); app.get('/currencies/variants/stats', addOnlyVariants, currenciesItemsStatsGET); app.get('/currencies/items/stats', users.validateSessionUser, currenciesItemsStatsGET); app.get('/territory/:territoryId/currencies/variants/stats', addOnlyVariants, territoryByIdCurrenciesItemsStatsGET); app.get('/territory/:territoryId/currencies/items/stats', users.validateSessionUser, territoryByIdCurrenciesItemsStatsGET); log.debug("Currencies service initialized"); }; function addOnlyVariants(request, response, next) { request.onlyVariants = true; next(); } // ===> /currency/:currencyId function currencyByIdGET(request, response) { let currencyId = request.params.currencyId; let queryStrJSON = url.parse(request.url, true).query; // Check that the Id is an integer if (Number.isNaN(currencyId) || currencyId.toString() !== request.params.currencyId) { new Exception(400, "CUR-1", "Invalid Currency Id, " + request.params.currencyId).send(response); return; } // Filter for territory let territoryId = queryStrJSON.territoryId || ""; // Check that the Id is an integer if (Number.isNaN(territoryId) || territoryId.toString() !== territoryId) { new Exception(400, "CUR-1", "Invalid Territory Id, " + territoryId).send(response); return; } let sql = ` SELECT cur.*, TEC.*, TER.ter_con_id, CON.con_name, TER.ter_id, TER.ter_iso3, TER.ter_name, CUS.cus_id, CUS.cus_value, CUS.cus_name, CUS.cus_name_plural, CUS.cus_abbreviation, pred.cur_id AS pred_cur_id, pred.cur_name AS pred_cur_name, predTEC.tec_ISO3 AS pred_tec_iso3, pred.cur_replacement_rate AS pred_cur_replacement_rate, succ.cur_name AS succ_cur_name, succTEC.tec_ISO3 AS succ_tec_iso3 FROM cur_currency CUR INNER JOIN tec_territory_currency TEC ON TEC.tec_cur_id = CUR.cur_id INNER JOIN ter_territory TER ON TEC.tec_ter_id = TER.ter_id INNER JOIN con_continent CON ON con_id = TER.ter_con_id LEFT JOIN cus_currency_unit CUS ON CUR.cur_id = CUS.cus_cur_id LEFT JOIN cur_currency pred ON pred.cur_successor = cur.cur_id LEFT JOIN tec_territory_currency predTEC ON predTEC.tec_cur_id = pred.cur_id AND predTEC.tec_cur_type = 'OWNED' LEFT JOIN cur_currency succ ON succ.cur_id = cur.cur_successor LEFT JOIN tec_territory_currency succTEC ON succTEC.tec_cur_id = succ.cur_id AND succTEC.tec_cur_type = 'OWNED' WHERE CUR.cur_id = $1`; catalogueDB.execSQL(sql, [currencyId], (err, rows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } // Build reply JSON var replyJSON = {}; if (rows.length > 0) { replyJSON.id = rows[0].cur_id; replyJSON.name = rows[0].cur_name; replyJSON.symbol = rows[0].cur_symbol; replyJSON.namePlural = rows[0].cur_name_plural; replyJSON.fullName = rows[0].cur_full_name; replyJSON.description = rows[0].cur_description; } for (let row of rows) { if (territoryId !== "") { // The reply uses this territory as reference if (row.tec_ter_id == territoryId) { replyJSON.currencyType = row.tec_cur_type; replyJSON.territory = {}; replyJSON.territory.continentId = row.ter_con_id; replyJSON.territory.continentName = row.con_name; replyJSON.territory.id = row.ter_id; replyJSON.territory.iso3 = row.ter_iso3; replyJSON.territory.name = row.ter_name; replyJSON.iso3 = row.tec_iso3; replyJSON.start = row.tec_start || row.cur_start; replyJSON.end = row.tec_end || row.cur_end; if (row.tec_cur_type === "OWNED") { if (row.pred_cur_id) { replyJSON.predecessor = {}; replyJSON.predecessor.id = row.pred_cur_id; replyJSON.predecessor.name = row.pred_cur_name; replyJSON.predecessor.iso3 = row.pred_tec_iso3; replyJSON.predecessor.rate = row.pred_cur_replacement_rate; } if (row.cur_successor) { replyJSON.successor = {}; replyJSON.successor.id = row.cur_successor; replyJSON.successor.name = row.succ_cur_name; replyJSON.successor.iso3 = row.succ_tec_iso3; replyJSON.successor.rate = row.cur_replacement_rate; } } } else { if (row.tec_cur_type === "OWNED") { replyJSON.ownedBy = {}; replyJSON.ownedBy.id = row.ter_id; replyJSON.ownedBy.iso3 = row.ter_iso3; replyJSON.ownedBy.name = row.ter_name; } else { if (!replyJSON.sharedBy) replyJSON.sharedBy = []; let territory = {}; territory.id = row.ter_id; territory.iso3 = row.ter_iso3; territory.name = row.ter_name; if (replyJSON.sharedBy.findIndex((val) => { return val.id === territory.id }) === -1) replyJSON.sharedBy.push(territory); } } } else { // The reply uses the owning country as reference if (row.tec_cur_type === "OWNED") { replyJSON.currencyType = "OWNED"; replyJSON.territory = {}; replyJSON.territory.continentId = row.ter_con_id; replyJSON.territory.continentName = row.con_name; replyJSON.territory.id = row.ter_id; replyJSON.territory.iso3 = row.ter_iso3; replyJSON.territory.name = row.ter_name; replyJSON.iso3 = row.tec_iso3; replyJSON.start = row.tec_start || row.cur_start; replyJSON.end = row.tec_end || row.cur_end; if (row.pred_cur_id) { replyJSON.predecessor = {}; replyJSON.predecessor.id = row.pred_cur_id; replyJSON.predecessor.name = row.pred_cur_name; replyJSON.predecessor.iso3 = row.pred_tec_iso3; replyJSON.predecessor.rate = row.pred_cur_replacement_rate; } if (row.cur_successor) { replyJSON.successor = {}; replyJSON.successor.id = row.cur_successor; replyJSON.successor.name = row.succ_cur_name; replyJSON.successor.iso3 = row.succ_tec_iso3; replyJSON.successor.rate = row.cur_replacement_rate; } } else { if (!replyJSON.sharedBy) replyJSON.sharedBy = []; let territory = {}; territory.id = row.ter_id; territory.iso3 = row.ter_iso3; territory.name = row.ter_name; if (replyJSON.sharedBy.findIndex((val) => { return val.id === territory.id }) === -1) replyJSON.sharedBy.push(territory); } } } let sqlUnits = `SELECT CUS.cus_id, CUS.cus_value, CUS.cus_name, CUS.cus_name_plural, CUS.cus_abbreviation FROM cus_currency_unit CUS WHERE CUS.cus_cur_id = $1`; catalogueDB.execSQL(sqlUnits, [currencyId], (err, unitRows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } replyJSON.units = []; for (let row of unitRows) { if (row.cus_value) replyJSON.units.push({ "id": row.cus_id, "name": row.cus_name, "namePlural": row.cus_name_plural, "value": row.cus_value, "abbreviation": row.cus_abbreviation }); } response.writeHead(200, { 'Content-Type': 'application/json' }); response.write(JSON.stringify(replyJSON)); response.send(); }); }); } const currenciesStats_commonSELECT = ` count (DISTINCT SER.ser_id) AS "numSeries", count(DISTINCT(BAN.ban_face_value * 10000 + BAN.ban_cus_id)) AS "numDenominations", count(DISTINCT BAN.ban_id) AS "numNotes", count(DISTINCT BVA.bva_id) AS "numVariants"`; const currenciesStats_commonFROM = `FROM cur_currency CUR LEFT JOIN tec_territory_currency TEC ON (TEC.tec_cur_id = CUR.cur_id AND TEC.tec_cur_type='OWNED') LEFT JOIN ter_territory TER ON TER.ter_id = TEC.tec_ter_id INNER JOIN con_continent CON ON CON.con_id = TER.ter_con_id AND CON.con_order IS NOT NULL LEFT JOIN iss_issuer ISS ON ISS.iss_ter_id = TEC.tec_ter_id LEFT JOIN ser_series SER ON SER.ser_cur_id = TEC.tec_cur_id AND SER.ser_iss_id = ISS.iss_id LEFT JOIN ban_banknote BAN ON BAN.ban_ser_id = SER.ser_id LEFT JOIN bva_variant BVA ON BVA.bva_ban_id = BAN.ban_id`; // ===> /currencies/items/stats function currenciesItemsStatsGET(request, response) { let sql = ` SELECT CUR.cur_id AS "id", TEC.tec_ISO3 AS "iso3", CUR.cur_name AS "name", CASE WHEN TER.ter_tty_id = 2 THEN 'SHARED' ELSE 'OWNED' END AS "currencyType", TER.ter_id AS "territoryId", TER.ter_name AS "territoryName", TER.ter_name AS "territoryIso3", TER.ter_con_id AS "continentId", CON.con_name AS "continentName", CUR.cur_symbol AS "symbol", CASE WHEN TEC.tec_start IS NULL THEN CUR.cur_start ELSE TEC.tec_start END AS "start", CASE WHEN TEC.tec_end IS NULL THEN CUR.cur_end ELSE TEC.tec_end END AS "end", ${currenciesStats_commonSELECT} ${currenciesStats_commonFROM} GROUP BY "id", "iso3", "currencyType", "territoryId", "territoryName", "territoryIso3", "continentId", "continentName", "start", "end" UNION SELECT CUR.cur_id AS "id", TEC.tec_ISO3 AS "iso3", CUR.cur_name AS "name", 'SHARED' AS "currencyType", TER.ter_id AS "territoryId", TER.ter_name AS "territoryName", TER.ter_name AS "territoryIso3", TER.ter_con_id AS "continentId", CON.con_name AS "continentName", CUR.cur_symbol AS "symbol", CASE WHEN TEC.tec_start IS NULL THEN CUR.cur_start ELSE TEC.tec_start END AS "start", CASE WHEN TEC.tec_end IS NULL THEN CUR.cur_end ELSE TEC.tec_end END AS "end", ${currenciesStats_commonSELECT} FROM cur_currency CUR LEFT JOIN tec_territory_currency TEC ON (TEC.tec_cur_id = CUR.cur_id AND TEC.tec_cur_type='SHARED') LEFT JOIN ter_territory TER ON TER.ter_id = TEC.tec_ter_id INNER JOIN con_continent CON ON CON.con_id = TER.ter_con_id AND CON.con_order IS NOT NULL LEFT JOIN iss_issuer ISS ON ISS.iss_ter_id = TEC.tec_ter_id INNER JOIN ser_series SER ON SER.ser_cur_id = TEC.tec_cur_id AND SER.ser_iss_id = ISS.iss_id LEFT JOIN ban_banknote BAN ON BAN.ban_ser_id = SER.ser_id LEFT JOIN bva_variant BVA ON BVA.bva_ban_id = BAN.ban_id GROUP BY "id", "iso3", "currencyType", "territoryId", "territoryName", "territoryIso3", "continentId", "continentName", "start", "end", "start", "end" ORDER BY "name", "territoryName", "start", "end" `; // Retrieve the catalogue statistics catalogueDB.execSQL(sql, [], (err, catRows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } let resultJSON = []; // Re-structure the results for (let row of catRows) { let obj = {}; obj.id = row.id; if (row.iso3) obj.iso3 = row.iso3; obj.name = row.name; obj.currencyType = row.currencyType; obj.territory = { "id": row.territoryId, "name": row.territoryName }; if (row.territoryIso3) obj.territory.iso3 = row.territoryIso3; obj.territory.continent = { "id": row.continentId, "name": row.continentName }; if (row.symbol) obj.symbol = row.symbol; obj.start = row.start.split("-")[0]; if (row.end) obj.end = row.end.split("-")[0]; obj.numSeries = row.numSeries; obj.numDenominations = row.numDenominations; obj.numNotes = row.numNotes; obj.numVariants = row.numVariants; resultJSON.push(obj); } if (request.onlyVariants) { // Build reply JSON response.writeHead(200, { 'Content-Type': 'application/json' }); response.write(JSON.stringify(resultJSON)); response.send(); return; } sql = ` SELECT CUR.cur_id AS id, ${currenciesStats_commonSELECT}, sum(BIT.bit_price * BIT.bit_quantity) AS "price" ${currenciesStats_commonFROM} INNER JOIN bit_item BIT ON bit_bva_id = bva_id INNER JOIN usr_user USR ON USR.usr_id = bit_usr_id AND USR.usr_name = $1 GROUP BY CUR.cur_id UNION SELECT CUR.cur_id AS id, ${currenciesStats_commonSELECT}, sum(BIT.bit_price * BIT.bit_quantity) AS "price" FROM cur_currency CUR LEFT JOIN tec_territory_currency TEC ON (TEC.tec_cur_id = CUR.cur_id AND TEC.tec_cur_type='SHARED') LEFT JOIN ter_territory TER ON TER.ter_id = TEC.tec_ter_id INNER JOIN con_continent CON ON CON.con_id = TER.ter_con_id AND CON.con_order IS NOT NULL LEFT JOIN iss_issuer ISS ON ISS.iss_ter_id = TEC.tec_ter_id INNER JOIN ser_series SER ON SER.ser_cur_id = TEC.tec_cur_id AND SER.ser_iss_id = ISS.iss_id LEFT JOIN ban_banknote BAN ON BAN.ban_ser_id = SER.ser_id LEFT JOIN bva_variant BVA ON BVA.bva_ban_id = BAN.ban_id INNER JOIN bit_item BIT ON bit_bva_id = bva_id INNER JOIN usr_user USR ON USR.usr_id = bit_usr_id AND USR.usr_name = $1 GROUP BY CUR.cur_id`; // Retrieve the collection statistics for the session user catalogueDB.execSQL(sql, [request.session.user], (err, colRows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } // Join the collection results into the catalogue statistics for (let row of resultJSON) { row.collectionStats = {}; let found = false; for (let colRow of colRows) { if (row.id === colRow.id && row.territoryId === colRow.territoryId) { row.collectionStats.numSeries = colRow.numSeries; row.collectionStats.numDenominations = colRow.numDenominations; row.collectionStats.numNotes = colRow.numNotes; row.collectionStats.numVariants = colRow.numVariants; row.collectionStats.price = colRow.price; found = true; break; } } if (!found) { row.collectionStats.numSeries = 0; row.collectionStats.numDenominations = 0; row.collectionStats.numNotes = 0; row.collectionStats.numVariants = 0; row.collectionStats.price = 0; } } // Build reply JSON response.writeHead(200, { 'Content-Type': 'application/json' }); response.write(JSON.stringify(resultJSON)); response.send(); }); }); } const territoryCurrenciesStats_commonFROM = `FROM tec_territory_currency TEC INNER JOIN cur_currency CUR ON TEC.tec_cur_id = CUR.cur_id LEFT JOIN iss_issuer ISS ON ISS.iss_ter_id = TEC.tec_ter_id AND TEC.tec_is_issuer=1 LEFT JOIN ser_series SER ON SER.ser_cur_id = TEC.tec_cur_id AND SER.ser_iss_id = ISS.iss_id LEFT JOIN ban_banknote BAN ON BAN.ban_ser_id = SER.ser_id LEFT JOIN bva_variant BVA ON BVA.bva_ban_id = BAN.ban_id`; // ===> /territory/:territoryId/currencies/items/stats function territoryByIdCurrenciesItemsStatsGET(request, response) { let territoryId = request.params.territoryId; // Check that the Id is an integer if (Number.isNaN(territoryId) || territoryId.toString() !== request.params.territoryId) { new Exception(400, "VAR-1", "Invalid Territory Id, " + request.params.territoryId).send(response); return; } let sql = ` SELECT CUR.cur_id AS "id", TEC.tec_ISO3 AS "iso3", CUR.cur_name AS "name", TEC.tec_cur_type AS "currencyType", TEC.tec_is_issuer AS "isIssuer", CUR.cur_symbol AS "symbol", CASE WHEN TEC.tec_start IS NULL THEN CUR.cur_start ELSE TEC.tec_start END AS "start", CASE WHEN TEC.tec_end IS NULL THEN CUR.cur_end ELSE TEC.tec_end END AS "end", ${currenciesStats_commonSELECT} ${territoryCurrenciesStats_commonFROM} WHERE TEC.tec_ter_id = $1 GROUP BY "id", "iso3", "currencyType", "isIssuer", "start", "end" ORDER BY "start", "end"`; // Retrieve the catalogue statistics catalogueDB.execSQL(sql, [territoryId], (err, catRows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } if (request.onlyVariants) { // Build reply JSON response.writeHead(200, { 'Content-Type': 'application/json' }); response.write(JSON.stringify(catRows)); response.send(); return; } sql = ` SELECT CUR.cur_id AS "id", ${currenciesStats_commonSELECT}, sum(BIT.bit_price*BIT.bit_quantity) AS "price" ${territoryCurrenciesStats_commonFROM} INNER JOIN bit_item BIT ON BIT.bit_bva_id = BVA.bva_id INNER JOIN usr_user USR ON USR.usr_id = BIT.bit_usr_id AND USR.usr_name = $2 WHERE TEC.tec_ter_id = $1 GROUP BY "id"`; catalogueDB.execSQL(sql, [territoryId, request.session.user], (err, colRows) => { if (err) { new Exception(500, err.code, err.message).send(response); return; } // Join the collection results into the catalogue statistics, taking into account the the ordering is different in both resultsets for (let row of catRows) { row.collectionStats = {}; // Try to find id in the Collection resultset let found = colRows.findIndex((elem) => { return elem.id === row.id }); if (found !== -1) { row.collectionStats.numSeries = colRows[found].numSeries; row.collectionStats.numDenominations = colRows[found].numDenominations; row.collectionStats.numNotes = colRows[found].numNotes; row.collectionStats.numVariants = colRows[found].numVariants; row.collectionStats.price = colRows[found].price; } else { row.collectionStats.numSeries = 0; row.collectionStats.numDenominations = 0; row.collectionStats.numNotes = 0; row.collectionStats.numVariants = 0; row.collectionStats.price = 0; } } response.writeHead(200, { 'Content-Type': 'application/json' }); response.write(JSON.stringify(catRows)); response.send(); }); }); }
module.exports = { infuraProjectId: "xxxx", // your infura id accountPrivateKey: "xxx", // your private key etherscanAPIKey: "AJ88UIKB9BIZZQITIA26521FF9WVK7BYIR", // for test purposes initialLiquidityParams: { tokenAMount: 1_000_000, baseAssetAmount: 0.1 //either eth or bnb }, // for test purposes send test to this testAccounts: [ "0x6673D605bd4eE36181f27F3Bf101D827dFE51c08", "0xd7520b71c7190F1Bf22Be221db197c1D1B881F1d" ] }
/* */ "format cjs"; /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.1 */ goog.provide('ng.material.components.progressCircular'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.progressCircular * @description Circular Progress module! */ angular.module('material.components.progressCircular', [ 'material.core' ]) .directive('mdProgressCircular', MdProgressCircularDirective); /** * @ngdoc directive * @name mdProgressCircular * @module material.components.progressCircular * @restrict E * * @description * The circular progress directive is used to make loading content in your app as delightful and * painless as possible by minimizing the amount of visual change a user sees before they can view * and interact with content. * * For operations where the percentage of the operation completed can be determined, use a * determinate indicator. They give users a quick sense of how long an operation will take. * * For operations where the user is asked to wait a moment while something finishes up, and it’s * not necessary to expose what's happening behind the scenes and how long it will take, use an * indeterminate indicator. * * @param {string} md-mode Select from one of two modes: **'determinate'** and **'indeterminate'**. * * Note: if the `md-mode` value is set as undefined or specified as not 1 of the two (2) valid modes, then `.ng-hide` * will be auto-applied as a style to the component. * * Note: if not configured, the `md-mode="indeterminate"` will be auto injected as an attribute. * If `value=""` is also specified, however, then `md-mode="determinate"` would be auto-injected instead. * @param {number=} value In determinate mode, this number represents the percentage of the * circular progress. Default: 0 * @param {number=} md-diameter This specifies the diamter of the circular progress. The value * may be a percentage (eg '25%') or a pixel-size value (eg '48'). If this attribute is * not present then a default value of '48px' is assumed. * * @usage * <hljs lang="html"> * <md-progress-circular md-mode="determinate" value="..."></md-progress-circular> * * <md-progress-circular md-mode="determinate" ng-value="..."></md-progress-circular> * * <md-progress-circular md-mode="determinate" value="..." md-diameter="100"></md-progress-circular> * * <md-progress-circular md-mode="indeterminate"></md-progress-circular> * </hljs> */ function MdProgressCircularDirective($mdTheming, $mdUtil, $log) { var DEFAULT_PROGRESS_SIZE = 100; var DEFAULT_SCALING = 0.5; var MODE_DETERMINATE = "determinate", MODE_INDETERMINATE = "indeterminate"; return { restrict: 'E', scope : true, template: // The progress 'circle' is composed of two half-circles: the left side and the right // side. Each side has CSS applied to 'fill-in' the half-circle to the appropriate progress. '<div class="md-scale-wrapper">' + '<div class="md-spinner-wrapper">' + '<div class="md-inner">' + '<div class="md-gap"></div>' + '<div class="md-left">' + '<div class="md-half-circle"></div>' + '</div>' + '<div class="md-right">' + '<div class="md-half-circle"></div>' + '</div>' + '</div>' + '</div>' + '</div>', compile: compile }; function compile(tElement) { // The javascript in this file is mainly responsible for setting the correct aria attributes. // The animation of the progress spinner is done entirely with just CSS. tElement.attr('aria-valuemin', 0); tElement.attr('aria-valuemax', 100); tElement.attr('role', 'progressbar'); return postLink; } function postLink(scope, element, attr) { $mdTheming(element); var circle = element; var spinnerWrapper = angular.element(element.children()[0]); var lastMode, toVendorCSS = $mdUtil.dom.animator.toCss; element.attr('md-mode', mode()); updateScale(); validateMode(); watchAttributes(); /** * Watch the value and md-mode attributes */ function watchAttributes() { attr.$observe('value', function(value) { var percentValue = clamp(value); element.attr('aria-valuenow', percentValue); if (mode() == MODE_DETERMINATE) { animateIndicator(percentValue); } }); attr.$observe('mdMode',function(mode){ switch( mode ) { case MODE_DETERMINATE: case MODE_INDETERMINATE: spinnerWrapper.removeClass('ng-hide'); if (lastMode) spinnerWrapper.removeClass(lastMode); spinnerWrapper.addClass( lastMode = "md-mode-" + mode ); break; default: if (lastMode) spinnerWrapper.removeClass( lastMode ); spinnerWrapper.addClass('ng-hide'); lastMode = undefined; break; } }); } /** * Update size/scaling of the progress indicator * Watch the "value" and "md-mode" attributes */ function updateScale() { // set the outer container to the size the user specified circle.css({ width: (100 * getDiameterRatio()) + 'px', height: (100 * getDiameterRatio()) + 'px' }); // the internal element is still 100px, so we have to scale it down to match the size circle.children().eq(0).css(toVendorCSS({ transform : $mdUtil.supplant('translate(-50%, -50%) scale( {0} )',[getDiameterRatio()]) })); } /** * Auto-defaults the mode to either `determinate` or `indeterminate` mode; if not specified */ function validateMode() { if ( angular.isUndefined(attr.mdMode) ) { var hasValue = angular.isDefined(attr.value); var mode = hasValue ? MODE_DETERMINATE : MODE_INDETERMINATE; var info = "Auto-adding the missing md-mode='{0}' to the ProgressCircular element"; $log.debug( $mdUtil.supplant(info, [mode]) ); element.attr("md-mode",mode); attr['mdMode'] = mode; } } var leftC, rightC, gap; /** * Manually animate the Determinate indicator based on the specified * percentage value (0-100). * * Note: this animation was previously done using SCSS. * - generated 54K of styles * - use attribute selectors which had poor performances in IE */ function animateIndicator(value) { if ( !mode() ) return; leftC = leftC || angular.element(element[0].querySelector('.md-left > .md-half-circle')); rightC = rightC || angular.element(element[0].querySelector('.md-right > .md-half-circle')); gap = gap || angular.element(element[0].querySelector('.md-gap')); var gapStyles = removeEmptyValues({ borderBottomColor: (value <= 50) ? "transparent !important" : "", transition: (value <= 50) ? "" : "borderBottomColor 0.1s linear" }), leftStyles = removeEmptyValues({ transition: (value <= 50) ? "transform 0.1s linear" : "", transform: $mdUtil.supplant("rotate({0}deg)", [value <= 50 ? 135 : (((value - 50) / 50 * 180) + 135)]) }), rightStyles = removeEmptyValues({ transition: (value >= 50) ? "transform 0.1s linear" : "", transform: $mdUtil.supplant("rotate({0}deg)", [value >= 50 ? 45 : (value / 50 * 180 - 135)]) }); leftC.css(toVendorCSS(leftStyles)); rightC.css(toVendorCSS(rightStyles)); gap.css(toVendorCSS(gapStyles)); } /** * We will scale the progress circle based on the default diameter. * * Determine the diameter percentage (defaults to 100%) * May be express as float, percentage, or integer */ function getDiameterRatio() { if ( !attr.mdDiameter ) return DEFAULT_SCALING; var match = /([0-9]*)%/.exec(attr.mdDiameter); var value = Math.max(0, (match && match[1]/100) || parseFloat(attr.mdDiameter)); // should return ratio; DEFAULT_PROGRESS_SIZE === 100px is default size return (value > 1) ? value / DEFAULT_PROGRESS_SIZE : value; } /** * Is the md-mode a valid option? */ function mode() { var value = (attr.mdMode || "").trim(); if ( value ) { switch(value) { case MODE_DETERMINATE : case MODE_INDETERMINATE : break; default: value = undefined; break; } } return value; } } /** * Clamps the value to be between 0 and 100. * @param {number} value The value to clamp. * @returns {number} */ function clamp(value) { return Math.max(0, Math.min(value || 0, 100)); } function removeEmptyValues(target) { for (var key in target) { if (target.hasOwnProperty(key)) { if ( target[key] == "" ) delete target[key]; } } return target; } } MdProgressCircularDirective.$inject = ["$mdTheming", "$mdUtil", "$log"]; ng.material.components.progressCircular = angular.module("material.components.progressCircular");
// flow-typed signature: 5909c9d5575ae59c41744b420e191e78 // flow-typed version: <<STUB>>/@babel/node_v^7.0.0/flow_v0.88.0 /** * This is an autogenerated libdef stub for: * * '@babel/node' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community by sending a pull request to: * https://github.com/flowtype/flow-typed */ declare module '@babel/node' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module '@babel/node/bin/babel-node' { declare module.exports: any; } declare module '@babel/node/lib/_babel-node' { declare module.exports: any; } declare module '@babel/node/lib/babel-node' { declare module.exports: any; } // Filename aliases declare module '@babel/node/bin/babel-node.js' { declare module.exports: $Exports<'@babel/node/bin/babel-node'>; } declare module '@babel/node/lib/_babel-node.js' { declare module.exports: $Exports<'@babel/node/lib/_babel-node'>; } declare module '@babel/node/lib/babel-node.js' { declare module.exports: $Exports<'@babel/node/lib/babel-node'>; }
const bcrypt = require('bcrypt'); const SALT_WORK_FACTOR = 10; // Get input from the console const stdin = process.stdin; console.log('Enter the password to hash: '); stdin.resume(); stdin.setEncoding('utf8'); stdin.on('data', (data) => { bcrypt.genSalt(SALT_WORK_FACTOR, (eSalt, salt) => { if (eSalt) { console.log(eSalt); return; } // hash the password using our new salt bcrypt.hash(data, salt, (eHash, hash) => { if (eHash) { console.log(eHash); } console.log('Hash: ' + hash); }); }); });
var conn = require('./../inc/db') var express = require('express'); var menus = require('./../inc/menus'); var reservations = require('./../inc/reservations'); var contacts = require('./../inc/contacts'); var emails = require('./../inc/emails'); var router = express.Router(); /* GET home page. */ router.get('/', function(req, res, next) { menus.getMenus().then(results =>{ res.render('index', { title: 'Restaurante Saboroso!', menus: results }); }); }); router.get('/contacts', function(req, res, next){ contacts.render(req, res); }); router.post('/contacts', function(req, res, next){ if(!req.body.name){ contacts.render(req, res, "Digite o nome"); }else if(!req.body.email) { contacts.render(req, res, "Digite o email"); }else if(!req.body.message) { contacts.render(req, res, "Selecione a quantidade de pessoas"); } else { contacts.save(req.body).then(results => { req.body = {}; contacts.render(req, res, null, "Contato enviado com sucesso"); }).catch(err=>{ contacts.render(req, res, err.message); }); } }); router.get('/menus', function(req, res, next){ menus.getMenus().then(results =>{ res.render('menus', { title: 'Menus - Restaurante Saboroso!', background: 'images/img_bg_1.jpg', h1: "Diga Oi" , menus:results }); }); }); router.get('/reservations', function(req, res, next){ reservations.render(req, res); }); /* enviando informações para o banco */ router.post('/reservations', function(req, res, next){ if(!req.body.name){ reservations.render(req, res, "Digite o nome"); }else if(!req.body.email) { reservations.render(req, res, "Digite o email"); }else if(!req.body.people) { reservations.render(req, res, "Selecione a quantidade de pessoas"); }else if(!req.body.date) { reservations.render(req, res, "Selecione a data"); }else if(!req.body.time) { reservations.render(req, res, "Selecione a hora"); } else { reservations.save(req.body).then(results => { req.body = {}; reservations.render(req, res, null, "Reserva realizada com sucesso"); }).catch(err=>{ reservations.render(req, res, err.message); }); } }); router.get('/services', function(req, res, next){ res.render('services', { title: 'Serviços - Restaurante Saboroso!', background: 'images/img_bg_1.jpg', h1: "É um prazer poder servir!" }); }); router.post("/susbcribe", function(req, res, next){ emails.save(req).then(results=>{ res.send(results); }).catch(err=>{ res.send(err); }); }); module.exports = router;
/** * Implement Gatsby's Browser APIs in this file. * * See: https://www.gatsbyjs.com/docs/browser-apis/ */ // You can delete this file if you're not using it import React from "react" import { ThemeProvider } from "styled-components" import { Theme } from "./src/theme/default" import GlobalStyles from "./src/global/globalStyle" export const wrapRootElement = ({ element }) => { return ( <ThemeProvider theme={Theme}> <GlobalStyles /> {element} </ThemeProvider> ) } export const wrapPageElement = ({ element, props }) => { return ( <ThemeProvider theme={Theme}> <GlobalStyles /> {element} </ThemeProvider> ) }
//ENDED AT 1:25:00 const { AuthenticationError } = require('apollo-server'); const jwt = require('jsonwebtoken'); module.exports = (context) => { const authHeader = context.req.headers.authorization; if(authHeader){ const token = authHeader.split('Bearer ')[1]; if(token){ try { const user = jwt.verify(token, process.env.SECRET_KEY); return user; } catch (error) { throw new AuthenticationError('Invalid/Expired token'); } } throw new Error('Authentication token must be \'Bearer [token]') } throw new Error('Authorization header must be provided'); }
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Calendar2PlusFill = forwardRef(({ color, size, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...rest} > <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM2 3.5v1c0 .276.244.5.545.5h10.91c.3 0 .545-.224.545-.5v-1c0-.276-.244-.5-.546-.5H2.545c-.3 0-.545.224-.545.5zm6.5 5a.5.5 0 0 0-1 0V10H6a.5.5 0 0 0 0 1h1.5v1.5a.5.5 0 0 0 1 0V11H10a.5.5 0 0 0 0-1H8.5V8.5z" /> </svg> ); }); Calendar2PlusFill.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Calendar2PlusFill.defaultProps = { color: 'currentColor', size: '1em', }; export default Calendar2PlusFill;
/** * Created by long on 15-9-18. */ var flax = flax || {}; flax.languages = ["zh","en","de","fr","it","es","tr","pt","ru"]; flax.language = { current:null, index:-1, _dict:null, _toLoad:null, init:function() { var lan = flax.game.config["language"]; if(lan == null || lan == "") { if(this.current == null) { lan = flax.sys.language; this.update(lan); } }else{ this.update(lan); } }, checkRes:function(resArr) { if(this._toLoad && resArr.indexOf(this._toLoad) == -1){ resArr.push(this._toLoad); } }, onLoaded:function(resArr) { if(this._toLoad){ this._dict = flax.loader.getRes(this._resPath()); var i = resArr.indexOf(this._toLoad); if(i > -1) resArr.splice(i, 1); this._toLoad = null; } }, getStr:function(key, params){ if(this._dict == null) { console.log("Warning: there is no language defined: "+this.current); return null; } var str = this._dict[key]; if(str == null) { //console.log("Warning: there is no language string for key: " + key); } else if(params){ for(var key in params){ var rk = "{" + key + "}"; str = str.replace(new RegExp(rk, 'g'), params[key]); } } return str; }, update:function(lan){ if(lan == null || lan == "" || lan == this.current) return; this.current = lan; if(flax.game.config["languages"] && flax.game.config["languages"].length) flax.languages = flax.game.config["languages"]; this.index = flax.languages.indexOf(lan); if(this.index == -1) console.log("Invalid language: " + lan); if(flax.game.config["languageJson"]) this._toLoad = this._resPath(lan); }, _resPath:function(lan){ return "res/locale/"+(lan || this.current)+".json"; } } flax.updateLanguage = function() { throw "flax.updateLanguage is deprecated, please use flax.language.update instead!" } flax.getLanguageStr = function() { throw "flax.getLanguageStr is deprecated, please use flax.language.getStr instead!" }
import Box from '../box' import Stream from '../stream' Box.stsd = function () { let stream = new Stream(this.data) this.version = stream.readUint8() this.flag = Stream.readByte(stream.dataview, 3) this.entryCount = stream.readUint32() let box = new Box() box.readHeader(stream) this.subBox.push(box) box.readBody(stream) delete this.data stream = null }
// import express router and todo.js const router = require("express").Router(); const Todo = require("../models/Todo"); // CRUD // GET // Get all data from todo coolecion router.get("/", (req, res) => { Todo.find((err, result) => { if(err) throw new Error(err); res.json(result); }); }); // POST // Add a new todo router.post("/", (req, res) => { Todo.create(req.body, (err, result) => { if(err) throw new Error(err); res.json(result); }); }); //PUT // Edit a todo by its id router.put("/:id", (req, res) => { Todo.findOneAndUpdate({ _id: req.params.id }, req.body, { new: true }, (err, result) => { if(err) throw new Error(err); res.json(result); }); }); //DELETE // Delete a todo by its id router.delete("/:id", (req, res) => { Todo.findOneAndRemove({ _id: req.params.id }, (err, result) => { if(err) throw new Error(err); res.end(); }); }); module.exports = router;
import React from 'react'; class SwordMixin extends React.Component { render() { return ( <a-mixin id="sword" hoverable grabbable draggable droppable dynamic-body shadow rotation="-90 0 0" obj-model="obj: url(models/sword/model.obj); mtl: url(models/sword/materials.mtl)"> </a-mixin> ); }; } export default SwordMixin;
/** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} root * @return {TreeNode} */ const convertBST = (root) => { let sum = 0; function plusTree(node) { if (node) { plusTree(node.right); const c = node.val; node.val += sum; sum += c; plusTree(node.left); } } plusTree(root); return root; };
#!/usr/bin/env node // Script to bootstrap repo for development // Enables ES2015 import/export in Node.js require('reify'); const moduleAlias = require('module-alias'); const config = require('ocular-dev-tools/config/ocular.config')({ aliasMode: 'src', root: resolve(__dirname, '..') }); moduleAlias.addAliases(config.aliases); genTypesForLayers(require('../modules/layers/src')); genTypesForLayers(require('../modules/experimental-layers/src')); function genTypesForLayers(layers) { for (const layerName in layers) { const Layer = layers[layerName]; if (Layer && typeof Layer !== 'boolean' && Layer.layerName) { genTypesForLayer(Layer); } } } function genTypesForLayer(Layer) { // Creating a layer initializes the prop types const layer = new Layer({}); console.log(`types ${Layer.layerName} {`); for (const propName of Object.keys(Layer._propTypes)) { const propType = Layer._propTypes[propName]; if (typeof propType === 'object') { console.log(` ${propName}: ${propType.type}`); } else { console.log(` ${propName}: any;`); } } console.log(`}\n`); }
/** * 弹出式提示框,默认1.2秒自动消失 * @param message 提示信息 * @param style 提示样式,有alert-success、alert-danger、alert-warning、alert-info * @param time 消失时间 */ var prompt = function (message, style, time) { style = (style === undefined) ? 'alert-success' : style; time = (time === undefined) ? 1200 : time; $('#alert') .appendTo('body') .addClass('alert ' + style) .html(message) .show() .delay(time) .fadeOut(); }; // 成功提示 var success_prompt = function(message, time) { prompt(message, 'alert-success', time); }; // 失败提示 var fail_prompt = function(message, time) { prompt(message, 'alert-danger', time); }; // 提醒 var warning_prompt = function(message, time) { prompt(message, 'alert-warning', time); }; // 信息提示 var info_prompt = function(message, time) { prompt(message, 'alert-info', time); };
import { typeClouds } from '@/utils/common/hypervisor' import { getDocsUrl, isCE } from '@/utils/utils' import i18n from '@/locales' const providerMap = typeClouds.getProviderlowcase() const aliyunLogo = require('../../../../src/assets/images/providers/aliyun.svg') const awsLogo = require('../../../../src/assets/images/providers/aws.svg') const azureLogo = require('../../../../src/assets/images/providers/azure.svg') const huaweiLogo = require('../../../../src/assets/images/providers/huawei.svg') const qcloudLogo = require('../../../../src/assets/images/providers/qcloud.svg') const ucloudLogo = require('../../../../src/assets/images/providers/ucloud.svg') const vmwareLogo = require('../../../../src/assets/images/providers/vmware.svg') const openstackLogo = require('../../../../src/assets/images/providers/openstack.svg') const dstackLogo = require('../../../../src/assets/images/providers/dstack.svg') const zstackLogo = require('../../../../src/assets/images/providers/zstack.svg') const s3Logo = require('../../../../src/assets/images/providers/s3.svg') const cephLogo = require('../../../../src/assets/images/providers/ceph.svg') const xskyLogo = require('../../../../src/assets/images/providers/xsky.svg') const googleLogo = require('../../../../src/assets/images/providers/gcp.svg') const ctyunLogo = require('../../../../src/assets/images/providers/tianyi.svg') const apsaraLogo = require('../../../../src/assets/images/providers/apsara.svg') const ecloudLogo = require('../../../../src/assets/images/providers/ecloud.svg') const jdcloudLogo = require('../../../../src/assets/images/providers/jdcloud.svg') const cloudpodsLogo = require('../../../../src/assets/images/providers/cloudpods.svg') const hcsoLogo = require('../../../../src/assets/images/providers/hcso.svg') const nutanixLogo = require('../../../../src/assets/images/providers/nutanix.svg') function getDocsCloudaccountPath (scope) { const docsUrl = getDocsUrl(scope) if (isCE()) { return `${docsUrl}multicloud/cloudaccounts` } return `${docsUrl}/user/multiplecloud/cloudaccount/cloudaccount/` } export const CLOUDACCOUNT_TYPES = { public: { aliyun: { name: providerMap.aliyun.label, logo: aliyunLogo, component: 'AliyunCreate', provider: providerMap.aliyun.key, }, aws: { name: providerMap.aws.label, logo: awsLogo, component: 'AwsCreate', provider: providerMap.aws.key, }, azure: { name: providerMap.azure.label, logo: azureLogo, component: 'AzureCreate', provider: providerMap.azure.key, }, huawei: { name: providerMap.huawei.label, logo: huaweiLogo, component: 'HuaweiCreate', provider: providerMap.huawei.key, }, qcloud: { name: providerMap.qcloud.label, logo: qcloudLogo, component: 'QcloudCreate', provider: providerMap.qcloud.key, }, ucloud: { name: providerMap.ucloud.label, logo: ucloudLogo, component: 'UcloudCreate', provider: providerMap.ucloud.key, }, google: { name: providerMap.google.label, logo: googleLogo, component: 'GoogleCreate', provider: providerMap.google.key, }, ctyun: { name: providerMap.ctyun.label, logo: ctyunLogo, component: 'CtyunCreate', provider: providerMap.ctyun.key, }, ecloud: { name: providerMap.ecloud.label, logo: ecloudLogo, component: 'EcloudCreate', provider: providerMap.ecloud.key, }, jdcloud: { name: providerMap.jdcloud.label, logo: jdcloudLogo, component: 'JDcloudCreate', provider: providerMap.jdcloud.key, }, }, private: { vmware: { name: providerMap.vmware.label, logo: vmwareLogo, component: 'VMwareCreate', provider: providerMap.vmware.key, }, openstack: { name: providerMap.openstack.label, logo: openstackLogo, component: 'OpenstackCreate', provider: providerMap.openstack.key, }, dstack: { name: providerMap.dstack.label, logo: dstackLogo, component: 'DstackCreate', provider: providerMap.dstack.key, }, zstack: { name: providerMap.zstack.label, logo: zstackLogo, component: 'ZstackCreate', provider: providerMap.zstack.key, }, apsara: { name: providerMap.apsara.label, logo: apsaraLogo, component: 'ApsaraCreate', provider: providerMap.apsara.key, }, cloudpods: { name: providerMap.cloudpods.label, logo: cloudpodsLogo, component: 'CloudpodsCreate', provider: providerMap.cloudpods.key, }, hcso: { name: providerMap.hcso.label, logo: hcsoLogo, component: 'HCSOCreate', provider: providerMap.hcso.key, }, nutanix: { name: providerMap.nutanix.label, logo: nutanixLogo, component: 'NutanixCreate', provider: providerMap.nutanix.key, }, }, storage: { s3: { name: providerMap.s3.label, logo: s3Logo, component: 'S3Create', provider: providerMap.s3.key, }, ceph: { name: providerMap.ceph.label, logo: cephLogo, component: 'CephCreate', provider: providerMap.ceph.key, }, xsky: { name: providerMap.xsky.label, logo: xskyLogo, component: 'XskyCreate', provider: providerMap.xsky.key, hiddenName: true, }, }, } export const ENV_TITLE = { public: i18n.t('cloudenv.text_122'), storage: i18n.t('cloudenv.text_123'), private: i18n.t('cloudenv.text_124'), } export function getCloudaccountDocs (scope) { const docs_path = getDocsCloudaccountPath(scope) const docs = { aliyun: i18n.t('cloudenv.text_125', [docs_path]), azure: i18n.t('cloudenv.text_126', [docs_path]), aws: i18n.t('cloudenv.text_127', [docs_path]), qcloud: i18n.t('cloudenv.text_128', [docs_path]), huawei: i18n.t('cloudenv.text_129', [docs_path]), ucloud: i18n.t('cloudenv.text_130', [docs_path]), zstack: i18n.t('cloudenv.text_131', [docs_path]), dstack: i18n.t('cloudenv.text_131', [docs_path]), openstack: i18n.t('cloudenv.text_132', [docs_path]), vmware: i18n.t('cloudenv.text_133', [docs_path]), s3: i18n.t('cloudenv.text_134', [docs_path]), ceph: i18n.t('cloudenv.text_135', [docs_path]), xsky: i18n.t('cloudenv.text_136', [docs_path]), google: i18n.t('cloudenv.text_137', [docs_path]), ctyun: i18n.t('cloudenv.text_138', [docs_path]), apsara: i18n.t('cloudenv.create_apsara_cloud_account', [docs_path]), ecloud: i18n.t('cloudenv.create_ecloud', [docs_path]), jdcloud: i18n.t('cloudenv.create_jdcloud', [docs_path]), cloudpods: i18n.t('cloudenv.create_cloudpods', [docs_path]), hcso: i18n.t('cloudenv.create_hcso', [docs_path]), nutanix: i18n.t('cloudenv.create_nutanix', [docs_path]), } if (isCE()) { Object.keys(docs).forEach(v => { docs[v] = `${docs_path}/tutorial/create` }) } return docs } export const ACCESS_URL = { huawei: { InternationalCloud: i18n.t('cloudenv.text_139'), ChinaCloud: i18n.t('cloudenv.text_140'), }, aws: { InternationalCloud: i18n.t('cloudenv.text_139'), ChinaCloud: i18n.t('cloudenv.text_140'), }, azure: { AzureChinaCloud: i18n.t('cloudenv.text_140'), AzurePublicCloud: i18n.t('cloudenv.text_139'), AzureUSGovernmentCloud: i18n.t('cloudenv.text_141'), AzureGermanCloud: i18n.t('cloudenv.text_142'), }, ctyun: { InternationalCloud: i18n.t('cloudenv.text_139'), ChinaCloud: i18n.t('cloudenv.text_140'), }, aliyun: { InternationalCloud: i18n.t('cloudenv.international_cloud'), FinanceCloud: i18n.t('cloudenv.finance_cloud'), }, ucloud: {}, ecloud: {}, jdcloud: {}, } export const keySecretFields = { aliyun: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('cloudenv.text_143'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, qcloud: { k: 'secret_id', s: 'secret_key', text: i18n.t('cloudenv.text_148'), placeholder: { k: i18n.t('cloudenv.text_149'), s: i18n.t('cloudenv.text_150'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, openstack: { k: 'username', s: 'password', text: 'OpenStack', placeholder: { k: i18n.t('cloudenv.text_151'), s: i18n.t('cloudenv.text_150'), }, label: { k: i18n.t('cloudenv.text_94'), s: i18n.t('cloudenv.text_147'), }, }, vmware: { k: 'username', s: 'password', text: 'VMware', placeholder: { k: i18n.t('cloudenv.text_151'), s: i18n.t('cloudenv.text_150'), }, label: { k: i18n.t('cloudenv.text_94'), s: i18n.t('cloudenv.text_147'), }, }, azure: { k: 'client_id', s: 'client_secret', text: 'Azure', placeholder: { k: i18n.t('cloudenv.text_152'), s: i18n.t('cloudenv.text_153'), }, label: { k: i18n.t('cloudenv.text_154'), s: i18n.t('cloudenv.text_155'), }, }, huawei: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('cloudenv.text_156'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, aws: { k: 'access_key_id', s: 'access_key_secret', text: 'AWS', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, ucloud: { k: 'access_key_id', s: 'access_key_secret', text: 'UCloud', placeholder: { k: i18n.t('cloudenv.text_157'), s: i18n.t('cloudenv.text_158'), }, label: { k: i18n.t('cloudenv.text_159'), s: i18n.t('cloudenv.text_160'), }, }, dstack: { k: 'username', s: 'password', text: 'DStack', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, zstack: { k: 'username', s: 'password', text: 'ZStack', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, s3: { k: 'access_key_id', s: 'access_key_secret', text: 'S3', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, ceph: { k: 'access_key_id', s: 'access_key_secret', text: 'Ceph', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, xsky: { k: 'access_key_id', s: 'access_key_secret', text: 'XSKY', placeholder: { k: i18n.t('cloudenv.text_151'), s: i18n.t('cloudenv.text_150'), }, label: { k: i18n.t('cloudenv.text_94'), s: i18n.t('cloudenv.text_147'), }, }, google: { s: 'gcp_private_key', k: 'gcp_private_key_id', text: 'Google', placeholder: { s: i18n.t('cloudenv.text_161'), k: i18n.t('cloudenv.text_162'), }, label: { s: 'private_key', k: 'private_key_id', }, }, ctyun: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('cloudenv.text_163'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, apsara: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('cloudPrvidersMap.Apsara'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, hcso: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('cloudPrvidersMap.HCSO'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, ecloud: { k: 'access_key_id', s: 'access_key_secret', text: i18n.t('scopeCloudPrvidersMap.Ecloud'), placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, jdcloud: { k: 'access_key_id', s: 'access_key_secret', text: 'JDcloud', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, cloudpods: { k: 'access_key_id', s: 'access_key_secret', text: 'Cloudpods', placeholder: { k: i18n.t('cloudenv.text_144'), s: i18n.t('cloudenv.text_145'), }, label: { k: i18n.t('cloudenv.text_146'), s: i18n.t('cloudenv.text_147'), }, }, nutanix: { k: 'username', s: 'password', text: 'Nutanix', placeholder: { k: i18n.t('cloudenv.text_151'), s: i18n.t('cloudenv.text_150'), }, label: { k: i18n.t('cloudenv.text_94'), s: i18n.t('cloudenv.text_147'), }, }, } export function getBillBucketUrlDocs (scope) { const docsUrl = getDocsCloudaccountPath(scope) return { aliyun: i18n.t('cloudenv.text_164', [docsUrl]), aws: i18n.t('cloudenv.text_165', [docsUrl]), huawei: i18n.t('cloudenv.text_166', [docsUrl]), google: i18n.t('cloudenv.text_167', [docsUrl]), } } export function getSamlUserDocs (scope) { const docsUrl = getDocsCloudaccountPath(scope) if (isCE) { return `${docsUrl}/tutorial/cloudsso/cloudsso/` } return i18n.t('cloudenv.dentity_provider', [docsUrl]) } export function getEnrollmentNumberDocs (scope) { const docsUrl = getDocsCloudaccountPath(scope) return docsUrl + i18n.t('cloudenv.text_219') } export const notSupportSelectRegion = [ providerMap.vmware.key, providerMap.nutanix.key, providerMap.ceph.key, providerMap.s3.key, providerMap.xsky.key, ]
// require dependencies const fs = require(`fs`); const path = require(`path`); const assert = require(`assert`); // declare constants const EXAMPLE_NAME = path.basename(__filename); const FILE_PATH = path.join(__dirname, '../file-1.txt'); const START = Date.now(); // declare logging function const log = (logId, value) => console.log( `\nlog ${logId} (${Date.now() - START} ms):\n`, value, ); // --- main script --- console.log(`\n--- ${EXAMPLE_NAME} ---`); // --- old school with callbacks --- const newFileContents = 'written by example with callbacks'; log(1, newFileContents); const writeFileCallback = (err) => { if (err) { console.error(err); return; } const readFileCallback = (err, fileContent) => { if (err) { console.error(err); return; } log(4, 'asserting ...'); assert.strictEqual(fileContent, newFileContents); log(5, '\033[32mpass!\x1b[0m'); // you don't need to refactor this line fs.appendFileSync(__filename, `\n// pass: ${(new Date()).toLocaleString()}`); }; log(3, 'reading file ...'); fs.readFile(FILE_PATH, 'utf-8', readFileCallback); }; log(2, 'writing file ...'); fs.writeFile(FILE_PATH, newFileContents, writeFileCallback); // pass: 10/5/2020, 6:07:31 PM
import VueRouter from 'vue-router' import model from '../../model/model.json' // TODO: This is hardcoded for now. See how this can be // implemented via the Model. // import PackageDetailsView from '../components/PackageDetailsView.vue' function makeRouter(Vue, {cmp}) { const routes = Object.entries(model.main.app.web.view).map(([n,v])=>({ name: n, path: '/'+n, component: cmp[v.cmp], meta: { view: n } })) const dvn = model.main.app.web.defaults.view routes.push({ path: '/', component: cmp[model.main.app.web.view[dvn].cmp], meta: { view: dvn } }) // TODO: This is hardcoded for now. See how this can be // implemented via the Model. // routes.push({ path: '/package/:packageName', component: PackageDetailsView }) console.log('ROUTES', routes) Vue.use(VueRouter) const router = new VueRouter({ mode: 'history', routes, }) return router } export { makeRouter }
this.wordle = this.wordle || {}, this.wordle.bundle = function(e) { "use strict"; function a(e) { return (a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { return typeof e } : function(e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e })(e) } function s(e, a) { if (!(e instanceof a)) throw new TypeError("Cannot call a class as a function") } function t(e, a) { for (var s = 0; s < a.length; s++) { var t = a[s]; t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t) } } function o(e, a, s) { return a && t(e.prototype, a), s && t(e, s), e } function n(e, a, s) { return a in e ? Object.defineProperty(e, a, { value: s, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = s, e } function r(e, a) { if ("function" != typeof a && null !== a) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(a && a.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), a && l(e, a) } function i(e) { return (i = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) { return e.__proto__ || Object.getPrototypeOf(e) })(e) } function l(e, a) { return (l = Object.setPrototypeOf || function(e, a) { return e.__proto__ = a, e })(e, a) } function d() { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0 } catch (e) { return !1 } } function u(e, a, s) { return (u = d() ? Reflect.construct : function(e, a, s) { var t = [null]; t.push.apply(t, a); var o = new(Function.bind.apply(e, t)); return s && l(o, s.prototype), o }).apply(null, arguments) } function c(e) { var a = "function" == typeof Map ? new Map : void 0; return (c = function(e) { if (null === e || (s = e, -1 === Function.toString.call(s).indexOf("[native code]"))) return e; var s; if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== a) { if (a.has(e)) return a.get(e); a.set(e, t) } function t() { return u(e, arguments, i(this).constructor) } return t.prototype = Object.create(e.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), l(t, e) })(e) } function p(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e } function m(e, a) { return !a || "object" != typeof a && "function" != typeof a ? p(e) : a } function h(e) { var a = d(); return function() { var s, t = i(e); if (a) { var o = i(this).constructor; s = Reflect.construct(t, arguments, o) } else s = t.apply(this, arguments); return m(this, s) } } function y(e, a) { return function(e) { if (Array.isArray(e)) return e }(e) || function(e, a) { var s = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null == s) return; var t, o, n = [], r = !0, i = !1; try { for (s = s.call(e); !(r = (t = s.next()).done) && (n.push(t.value), !a || n.length !== a); r = !0); } catch (e) { i = !0, o = e } finally { try { r || null == s.return || s.return() } finally { if (i) throw o } } return n }(e, a) || b(e, a) || function() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function g(e) { return function(e) { if (Array.isArray(e)) return f(e) }(e) || function(e) { if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e) }(e) || b(e) || function() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") }() } function b(e, a) { if (e) { if ("string" == typeof e) return f(e, a); var s = Object.prototype.toString.call(e).slice(8, -1); return "Object" === s && e.constructor && (s = e.constructor.name), "Map" === s || "Set" === s ? Array.from(e) : "Arguments" === s || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? f(e, a) : void 0 } } function f(e, a) { (null == a || a > e.length) && (a = e.length); for (var s = 0, t = new Array(a); s < a; s++) t[s] = e[s]; return t } var zz = new Date(2021, 5, 19, 0, 0, 0, 0); zz.setDate(zz.getDate() + (JSON.parse(window.localStorage.getItem('puzzle')) || Math.round(Math.abs(new Date().setHours(0, 0, 0, 0) - zz) / 864e5))); var k = document.createElement("template"); k.innerHTML = "\n<style>\n :host {\n display: inline-block;\n }\n .tile {\n width: 100%;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n line-height: 2rem;\n font-weight: bold;\n vertical-align: middle;\n box-sizing: border-box;\n color: var(--tile-text-color);\n text-transform: uppercase;\n user-select: none;\n }\n .tile::before {\n content: '';\n display: inline-block;\n padding-bottom: 100%;\n }\n\n /* Allow tiles to be smaller on small screens */\n @media (max-height: 600px) {\n .tile {\n font-size: 1em;\n line-height: 1em;\n }\n }\n\n .tile[data-state='empty'] {\n border: 2px solid var(--color-tone-4);\n }\n .tile[data-state='tbd'] {\n background-color: var(--color-tone-7);\n border: 2px solid var(--color-tone-3);\n color: var(--color-tone-1);\n }\n .tile[data-state='correct'] {\n background-color: var(--color-correct);\n }\n .tile[data-state='present'] {\n background-color: var(--color-present);\n }\n .tile[data-state='absent'] {\n background-color: var(--color-absent);\n }\n\n .tile[data-animation='pop'] {\n animation-name: PopIn;\n animation-duration: 100ms;\n }\n\n @keyframes PopIn {\n from {\n transform: scale(0.8);\n opacity: 0;\n }\n\n 40% {\n transform: scale(1.1);\n opacity: 1;\n }\n }\n .tile[data-animation='flip-in'] {\n animation-name: FlipIn;\n animation-duration: 250ms;\n animation-timing-function: ease-in;\n }\n @keyframes FlipIn {\n 0% {\n transform: rotateX(0);\n }\n 100% {\n transform: rotateX(-90deg);\n }\n }\n .tile[data-animation='flip-out'] {\n animation-name: FlipOut;\n animation-duration: 250ms;\n animation-timing-function: ease-in;\n }\n @keyframes FlipOut {\n 0% {\n transform: rotateX(-90deg);\n }\n 100% {\n transform: rotateX(0);\n }\n }\n</style>\n<div class=\"tile\" data-state=\"empty\" data-animation=\"idle\"></div>\n"; var v = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), n(p(e = a.call(this)), "_letter", ""), n(p(e), "_state", "empty"), n(p(e), "_animation", "idle"), n(p(e), "_last", !1), n(p(e), "_reveal", !1), e.attachShadow({ mode: "open" }), e } return o(t, [{ key: "last", set: function(e) { this._last = e } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(k.content.cloneNode(!0)), this.$tile = this.shadowRoot.querySelector(".tile"), this.$tile.addEventListener("animationend", (function(a) { "PopIn" === a.animationName && (e._animation = "idle"), "FlipIn" === a.animationName && (e.$tile.dataset.state = e._state, e._animation = "flip-out"), "FlipOut" === a.animationName && (e._animation = "idle", e._last && e.dispatchEvent(new CustomEvent("game-last-tile-revealed-in-row", { bubbles: !0, composed: !0 }))), e._render() })), this._render() } }, { key: "attributeChangedCallback", value: function(e, a, s) { switch (e) { case "letter": if (s === a) break; var t = "null" === s ? "" : s; this._letter = t, this._state = t ? "tbd" : "empty", this._animation = t ? "pop" : "idle"; break; case "evaluation": if (!s) break; this._state = s; break; case "reveal": this._animation = "flip-in", this._reveal = !0 } this._render() } }, { key: "_render", value: function() { this.$tile && (this.$tile.textContent = this._letter, ["empty", "tbd"].includes(this._state) && (this.$tile.dataset.state = this._state), (["empty", "tbd"].includes(this._state) || this._reveal) && this.$tile.dataset.animation != this._animation && (this.$tile.dataset.animation = this._animation)) } }], [{ key: "observedAttributes", get: function() { return ["letter", "evaluation", "reveal"] } }]), t }(c(HTMLElement)); customElements.define("game-tile", v); var w = document.createElement("template"); w.innerHTML = '\n <style>\n :host {\n display: block;\n }\n :host([invalid]){\n animation-name: Shake;\n animation-duration: 600ms;\n }\n .row {\n display: grid;\n grid-template-columns: repeat(5, 1fr);\n grid-gap: 5px;\n }\n .win {\n animation-name: Bounce;\n animation-duration: 1000ms;\n }\n\n @keyframes Bounce {\n 0%, 20% {\n transform: translateY(0);\n }\n 40% {\n transform: translateY(-30px);\n }\n 50% {\n transform: translateY(5px);\n }\n 60% {\n transform: translateY(-15px);\n }\n 80% {\n transform: translateY(2px);\n }\n 100% {\n transform: translateY(0);\n }\n }\n\n @keyframes Shake {\n 10%,\n 90% {\n transform: translateX(-1px);\n }\n\n 20%,\n 80% {\n transform: translateX(2px);\n }\n\n 30%,\n 50%,\n 70% {\n transform: translateX(-4px);\n }\n\n 40%,\n 60% {\n transform: translateX(4px);\n }\n }\n </style>\n <div class="row"></div>\n'; var x = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e._letters = "", e._evaluation = [], e._length, e } return o(t, [{ key: "evaluation", get: function() { return this._evaluation }, set: function(e) { var a = this; this._evaluation = e, this.$tiles && this.$tiles.forEach((function(e, s) { e.setAttribute("evaluation", a._evaluation[s]), setTimeout((function() { e.setAttribute("reveal", "") }), 300 * s) })) } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(w.content.cloneNode(!0)), this.$row = this.shadowRoot.querySelector(".row"); for (var a = function(a) { var s = document.createElement("game-tile"), t = e._letters[a]; (t && s.setAttribute("letter", t), e._evaluation[a]) && (s.setAttribute("evaluation", e._evaluation[a]), setTimeout((function() { s.setAttribute("reveal", "") }), 100 * a)); a === e._length - 1 && (s.last = !0), e.$row.appendChild(s) }, s = 0; s < this._length; s++) a(s); this.$tiles = this.shadowRoot.querySelectorAll("game-tile"), this.addEventListener("animationend", (function(a) { "Shake" === a.animationName && e.removeAttribute("invalid") })) } }, { key: "attributeChangedCallback", value: function(e, a, s) { switch (e) { case "letters": this._letters = s || ""; break; case "length": this._length = parseInt(s, 10); break; case "win": if (null === s) { this.$tiles.forEach((function(e) { e.classList.remove("win") })); break } this.$tiles.forEach((function(e, a) { e.classList.add("win"), e.style.animationDelay = "".concat(100 * a, "ms") })) } this._render() } }, { key: "_render", value: function() { var e = this; this.$row && this.$tiles.forEach((function(a, s) { var t = e._letters[s]; t ? a.setAttribute("letter", t) : a.removeAttribute("letter") })) } }], [{ key: "observedAttributes", get: function() { return ["letters", "length", "invalid", "win"] } }]), t }(c(HTMLElement)); customElements.define("game-row", x); var z = document.createElement("template"); z.innerHTML = "\n <slot></slot>\n"; var j = "darkTheme", S = "colorBlindTheme", _ = function(e) { r(t, e); var a = h(t); function t() { var e; s(this, t), n(p(e = a.call(this)), "isDarkTheme", !1), n(p(e), "isColorBlindTheme", !1), e.attachShadow({ mode: "open" }); var o = JSON.parse(window.localStorage.getItem(j)), r = window.matchMedia("(prefers-color-scheme: dark)").matches, i = JSON.parse(window.localStorage.getItem(S)); return !0 === o || !1 === o ? e.setDarkTheme(o) : r && e.setDarkTheme(!0), !0 !== i && !1 !== i || e.setColorBlindTheme(i), e } return o(t, [{ key: "setDarkTheme", value: function(e) { var a = document.querySelector("body"); e && !a.classList.contains("nightmode") ? a.classList.add("nightmode") : a.classList.remove("nightmode"), this.isDarkTheme = e, window.localStorage.setItem(j, JSON.stringify(e)) } }, { key: "setColorBlindTheme", value: function(e) { var a = document.querySelector("body"); e && !a.classList.contains("colorblind") ? a.classList.add("colorblind") : a.classList.remove("colorblind"), this.isColorBlindTheme = e, window.localStorage.setItem(S, JSON.stringify(e)) } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(z.content.cloneNode(!0)), this.shadowRoot.addEventListener("game-setting-change", (function(a) { var s = a.detail, t = s.name, o = s.checked; switch (t) { case "dark-theme": return void e.setDarkTheme(o); case "color-blind-theme": return void e.setColorBlindTheme(o) } })) } }]), t }(c(HTMLElement)); function q(e, a) { return e === a || e != e && a != a } function E(e, a) { for (var s = e.length; s--;) if (q(e[s][0], a)) return s; return -1 } customElements.define("game-theme-manager", _); var A = Array.prototype.splice; function C(e) { var a = -1, s = null == e ? 0 : e.length; for (this.clear(); ++a < s;) { var t = e[a]; this.set(t[0], t[1]) } } C.prototype.clear = function() { this.__data__ = [], this.size = 0 }, C.prototype.delete = function(e) { var a = this.__data__, s = E(a, e); return !(s < 0) && (s == a.length - 1 ? a.pop() : A.call(a, s, 1), --this.size, !0) }, C.prototype.get = function(e) { var a = this.__data__, s = E(a, e); return s < 0 ? void 0 : a[s][1] }, C.prototype.has = function(e) { return E(this.__data__, e) > -1 }, C.prototype.set = function(e, a) { var s = this.__data__, t = E(s, e); return t < 0 ? (++this.size, s.push([e, a])) : s[t][1] = a, this }; var L = "object" == ("undefined" == typeof global ? "undefined" : a(global)) && global && global.Object === Object && global, T = "object" == ("undefined" == typeof self ? "undefined" : a(self)) && self && self.Object === Object && self, I = L || T || Function("return this")(), M = I.Symbol, O = Object.prototype, R = O.hasOwnProperty, $ = O.toString, P = M ? M.toStringTag : void 0; var H = Object.prototype.toString; var N = M ? M.toStringTag : void 0; function D(e) { return null == e ? void 0 === e ? "[object Undefined]" : "[object Null]" : N && N in Object(e) ? function(e) { var a = R.call(e, P), s = e[P]; try { e[P] = void 0; var t = !0 } catch (e) {} var o = $.call(e); return t && (a ? e[P] = s : delete e[P]), o }(e) : function(e) { return H.call(e) }(e) } function G(e) { var s = a(e); return null != e && ("object" == s || "function" == s) } function B(e) { if (!G(e)) return !1; var a = D(e); return "[object Function]" == a || "[object GeneratorFunction]" == a || "[object AsyncFunction]" == a || "[object Proxy]" == a } var F, W = I["__core-js_shared__"], Y = (F = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "")) ? "Symbol(src)_1." + F : ""; var J = Function.prototype.toString; var U = /^\[object .+?Constructor\]$/, X = Function.prototype, V = Object.prototype, K = X.toString, Q = V.hasOwnProperty, Z = RegExp("^" + K.call(Q).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); function ee(e) { return !(!G(e) || (a = e, Y && Y in a)) && (B(e) ? Z : U).test(function(e) { if (null != e) { try { return J.call(e) } catch (e) {} try { return e + "" } catch (e) {} } return "" }(e)); var a } function ae(e, a) { var s = function(e, a) { return null == e ? void 0 : e[a] }(e, a); return ee(s) ? s : void 0 } var se = ae(I, "Map"), te = ae(Object, "create"); var oe = Object.prototype.hasOwnProperty; var ne = Object.prototype.hasOwnProperty; function re(e) { var a = -1, s = null == e ? 0 : e.length; for (this.clear(); ++a < s;) { var t = e[a]; this.set(t[0], t[1]) } } function ie(e, s) { var t, o, n = e.__data__; return ("string" == (o = a(t = s)) || "number" == o || "symbol" == o || "boolean" == o ? "__proto__" !== t : null === t) ? n["string" == typeof s ? "string" : "hash"] : n.map } function le(e) { var a = -1, s = null == e ? 0 : e.length; for (this.clear(); ++a < s;) { var t = e[a]; this.set(t[0], t[1]) } } re.prototype.clear = function() { this.__data__ = te ? te(null) : {}, this.size = 0 }, re.prototype.delete = function(e) { var a = this.has(e) && delete this.__data__[e]; return this.size -= a ? 1 : 0, a }, re.prototype.get = function(e) { var a = this.__data__; if (te) { var s = a[e]; return "__lodash_hash_undefined__" === s ? void 0 : s } return oe.call(a, e) ? a[e] : void 0 }, re.prototype.has = function(e) { var a = this.__data__; return te ? void 0 !== a[e] : ne.call(a, e) }, re.prototype.set = function(e, a) { var s = this.__data__; return this.size += this.has(e) ? 0 : 1, s[e] = te && void 0 === a ? "__lodash_hash_undefined__" : a, this }, le.prototype.clear = function() { this.size = 0, this.__data__ = { hash: new re, map: new(se || C), string: new re } }, le.prototype.delete = function(e) { var a = ie(this, e).delete(e); return this.size -= a ? 1 : 0, a }, le.prototype.get = function(e) { return ie(this, e).get(e) }, le.prototype.has = function(e) { return ie(this, e).has(e) }, le.prototype.set = function(e, a) { var s = ie(this, e), t = s.size; return s.set(e, a), this.size += s.size == t ? 0 : 1, this }; function de(e) { var a = this.__data__ = new C(e); this.size = a.size } de.prototype.clear = function() { this.__data__ = new C, this.size = 0 }, de.prototype.delete = function(e) { var a = this.__data__, s = a.delete(e); return this.size = a.size, s }, de.prototype.get = function(e) { return this.__data__.get(e) }, de.prototype.has = function(e) { return this.__data__.has(e) }, de.prototype.set = function(e, a) { var s = this.__data__; if (s instanceof C) { var t = s.__data__; if (!se || t.length < 199) return t.push([e, a]), this.size = ++s.size, this; s = this.__data__ = new le(t) } return s.set(e, a), this.size = s.size, this }; var ue = function() { try { var e = ae(Object, "defineProperty"); return e({}, "", {}), e } catch (e) {} }(); function ce(e, a, s) { "__proto__" == a && ue ? ue(e, a, { configurable: !0, enumerable: !0, value: s, writable: !0 }) : e[a] = s } function pe(e, a, s) { (void 0 !== s && !q(e[a], s) || void 0 === s && !(a in e)) && ce(e, a, s) } var me, he = function(e, a, s) { for (var t = -1, o = Object(e), n = s(e), r = n.length; r--;) { var i = n[me ? r : ++t]; if (!1 === a(o[i], i, o)) break } return e }, ye = "object" == (void 0 === e ? "undefined" : a(e)) && e && !e.nodeType && e, ge = ye && "object" == ("undefined" == typeof module ? "undefined" : a(module)) && module && !module.nodeType && module, be = ge && ge.exports === ye ? I.Buffer : void 0, fe = be ? be.allocUnsafe : void 0; var ke = I.Uint8Array; function ve(e, a) { var s, t, o = a ? (s = e.buffer, t = new s.constructor(s.byteLength), new ke(t).set(new ke(s)), t) : e.buffer; return new e.constructor(o, e.byteOffset, e.length) } var we = Object.create, xe = function() { function e() {} return function(a) { if (!G(a)) return {}; if (we) return we(a); e.prototype = a; var s = new e; return e.prototype = void 0, s } }(); var ze, je, Se = (ze = Object.getPrototypeOf, je = Object, function(e) { return ze(je(e)) }), _e = Object.prototype; function qe(e) { var a = e && e.constructor; return e === ("function" == typeof a && a.prototype || _e) } function Ee(e) { return null != e && "object" == a(e) } function Ae(e) { return Ee(e) && "[object Arguments]" == D(e) } var Ce = Object.prototype, Le = Ce.hasOwnProperty, Te = Ce.propertyIsEnumerable, Ie = Ae(function() { return arguments }()) ? Ae : function(e) { return Ee(e) && Le.call(e, "callee") && !Te.call(e, "callee") }, Me = Array.isArray; function Oe(e) { return "number" == typeof e && e > -1 && e % 1 == 0 && e <= 9007199254740991 } function Re(e) { return null != e && Oe(e.length) && !B(e) } var $e = "object" == (void 0 === e ? "undefined" : a(e)) && e && !e.nodeType && e, Pe = $e && "object" == ("undefined" == typeof module ? "undefined" : a(module)) && module && !module.nodeType && module, He = Pe && Pe.exports === $e ? I.Buffer : void 0, Ne = (He ? He.isBuffer : void 0) || function() { return !1 }, De = Function.prototype, Ge = Object.prototype, Be = De.toString, Fe = Ge.hasOwnProperty, We = Be.call(Object); var Ye = {}; Ye["[object Float32Array]"] = Ye["[object Float64Array]"] = Ye["[object Int8Array]"] = Ye["[object Int16Array]"] = Ye["[object Int32Array]"] = Ye["[object Uint8Array]"] = Ye["[object Uint8ClampedArray]"] = Ye["[object Uint16Array]"] = Ye["[object Uint32Array]"] = !0, Ye["[object Arguments]"] = Ye["[object Array]"] = Ye["[object ArrayBuffer]"] = Ye["[object Boolean]"] = Ye["[object DataView]"] = Ye["[object Date]"] = Ye["[object Error]"] = Ye["[object Function]"] = Ye["[object Map]"] = Ye["[object Number]"] = Ye["[object Object]"] = Ye["[object RegExp]"] = Ye["[object Set]"] = Ye["[object String]"] = Ye["[object WeakMap]"] = !1; var Je = "object" == (void 0 === e ? "undefined" : a(e)) && e && !e.nodeType && e, Ue = Je && "object" == ("undefined" == typeof module ? "undefined" : a(module)) && module && !module.nodeType && module, Xe = Ue && Ue.exports === Je && L.process, Ve = function() { try { var e = Ue && Ue.require && Ue.require("util").types; return e || Xe && Xe.binding && Xe.binding("util") } catch (e) {} }(), Ke = Ve && Ve.isTypedArray, Qe = Ke ? function(e) { return function(a) { return e(a) } }(Ke) : function(e) { return Ee(e) && Oe(e.length) && !!Ye[D(e)] }; function Ze(e, a) { if (("constructor" !== a || "function" != typeof e[a]) && "__proto__" != a) return e[a] } var ea = Object.prototype.hasOwnProperty; function aa(e, a, s) { var t = e[a]; ea.call(e, a) && q(t, s) && (void 0 !== s || a in e) || ce(e, a, s) } var sa = /^(?:0|[1-9]\d*)$/; function ta(e, s) { var t = a(e); return !!(s = null == s ? 9007199254740991 : s) && ("number" == t || "symbol" != t && sa.test(e)) && e > -1 && e % 1 == 0 && e < s } var oa = Object.prototype.hasOwnProperty; function na(e, a) { var s = Me(e), t = !s && Ie(e), o = !s && !t && Ne(e), n = !s && !t && !o && Qe(e), r = s || t || o || n, i = r ? function(e, a) { for (var s = -1, t = Array(e); ++s < e;) t[s] = a(s); return t }(e.length, String) : [], l = i.length; for (var d in e) !a && !oa.call(e, d) || r && ("length" == d || o && ("offset" == d || "parent" == d) || n && ("buffer" == d || "byteLength" == d || "byteOffset" == d) || ta(d, l)) || i.push(d); return i } var ra = Object.prototype.hasOwnProperty; function ia(e) { if (!G(e)) return function(e) { var a = []; if (null != e) for (var s in Object(e)) a.push(s); return a }(e); var a = qe(e), s = []; for (var t in e)("constructor" != t || !a && ra.call(e, t)) && s.push(t); return s } function la(e) { return Re(e) ? na(e, !0) : ia(e) } function da(e) { return function(e, a, s, t) { var o = !s; s || (s = {}); for (var n = -1, r = a.length; ++n < r;) { var i = a[n], l = t ? t(s[i], e[i], i, s, e) : void 0; void 0 === l && (l = e[i]), o ? ce(s, i, l) : aa(s, i, l) } return s }(e, la(e)) } function ua(e, a, s, t, o, n, r) { var i = Ze(e, s), l = Ze(a, s), d = r.get(l); if (d) pe(e, s, d); else { var u, c = n ? n(i, l, s + "", e, a, r) : void 0, p = void 0 === c; if (p) { var m = Me(l), h = !m && Ne(l), y = !m && !h && Qe(l); c = l, m || h || y ? Me(i) ? c = i : Ee(u = i) && Re(u) ? c = function(e, a) { var s = -1, t = e.length; for (a || (a = Array(t)); ++s < t;) a[s] = e[s]; return a }(i) : h ? (p = !1, c = function(e, a) { if (a) return e.slice(); var s = e.length, t = fe ? fe(s) : new e.constructor(s); return e.copy(t), t }(l, !0)) : y ? (p = !1, c = ve(l, !0)) : c = [] : function(e) { if (!Ee(e) || "[object Object]" != D(e)) return !1; var a = Se(e); if (null === a) return !0; var s = Fe.call(a, "constructor") && a.constructor; return "function" == typeof s && s instanceof s && Be.call(s) == We }(l) || Ie(l) ? (c = i, Ie(i) ? c = da(i) : G(i) && !B(i) || (c = function(e) { return "function" != typeof e.constructor || qe(e) ? {} : xe(Se(e)) }(l))) : p = !1 } p && (r.set(l, c), o(c, l, t, n, r), r.delete(l)), pe(e, s, c) } } function ca(e, a, s, t, o) { e !== a && he(a, (function(n, r) { if (o || (o = new de), G(n)) ua(e, a, r, s, ca, t, o); else { var i = t ? t(Ze(e, r), n, r + "", e, a, o) : void 0; void 0 === i && (i = n), pe(e, r, i) } }), la) } function pa(e) { return e } function ma(e, a, s) { switch (s.length) { case 0: return e.call(a); case 1: return e.call(a, s[0]); case 2: return e.call(a, s[0], s[1]); case 3: return e.call(a, s[0], s[1], s[2]) } return e.apply(a, s) } var ha = Math.max; var ya = ue ? function(e, a) { return ue(e, "toString", { configurable: !0, enumerable: !1, value: (s = a, function() { return s }), writable: !0 }); var s } : pa, ga = Date.now; var ba = function(e) { var a = 0, s = 0; return function() { var t = ga(), o = 16 - (t - s); if (s = t, o > 0) { if (++a >= 800) return arguments[0] } else a = 0; return e.apply(void 0, arguments) } }(ya); function fa(e, a) { return ba(function(e, a, s) { return a = ha(void 0 === a ? e.length - 1 : a, 0), function() { for (var t = arguments, o = -1, n = ha(t.length - a, 0), r = Array(n); ++o < n;) r[o] = t[a + o]; o = -1; for (var i = Array(a + 1); ++o < a;) i[o] = t[o]; return i[a] = s(r), ma(e, this, i) } }(e, a, pa), e + "") } var ka, va = (ka = function(e, a, s) { ca(e, a, s) }, fa((function(e, s) { var t = -1, o = s.length, n = o > 1 ? s[o - 1] : void 0, r = o > 2 ? s[2] : void 0; for (n = ka.length > 3 && "function" == typeof n ? (o--, n) : void 0, r && function(e, s, t) { if (!G(t)) return !1; var o = a(s); return !!("number" == o ? Re(t) && ta(s, t.length) : "string" == o && s in t) && q(t[s], e) }(s[0], s[1], r) && (n = o < 3 ? void 0 : n, o = 1), e = Object(e); ++t < o;) { var i = s[t]; i && ka(e, i, t, n) } return e }))), wa = "gameState", xa = { boardState: null, evaluations: null, rowIndex: null, solution: null, gameStatus: null, lastPlayedTs: null, lastCompletedTs: null, restoringFromLocalStorage: null, hardMode: !1 }; function za() { var e = window.localStorage.getItem(wa) || JSON.stringify(xa); return JSON.parse(e) } function ja(e) { var a = za(); ! function(e) { window.localStorage.setItem(wa, JSON.stringify(e)) }(va(a, e)) } var Sa = document.createElement("template"); Sa.innerHTML = '\n <style>\n .setting {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid var(--color-tone-4);\n padding: 16px 0;\n }\n\n a, a:visited {\n color: var(--color-tone-2);\n }\n\n .title {\n font-size: 18px;\n }\n .text {\n padding-right: 8px;\n }\n .description {\n font-size: 12px;\n color: var(--color-tone-2);\n }\n\n #footnote {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 36px;\n color: var(--color-tone-2);\n font-size: 12px;\n text-align: right;\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n }\n\n @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {\n .setting {\n padding: 16px;\n }\n }\n\n </style>\n <div class="sections">\n <section>\n <div class="setting">\n <div class="text">\n <div class="title">Hard Mode</div>\n <div class="description">Any revealed hints must be used in subsequent guesses</div>\n </div>\n <div class="control">\n <game-switch id="hard-mode" name="hard-mode"></game-switch>\n </div>\n </div>\n <div class="setting">\n <div class="text">\n <div class="title">Dark Theme</div>\n </div>\n <div class="control">\n <game-switch id="dark-theme" name="dark-theme"></game-switch>\n </div>\n </div>\n <div class="setting">\n <div class="text">\n <div class="title">Color Blind Mode</div>\n <div class="description">High contrast colors</div>\n </div>\n <div class="control">\n <game-switch id="color-blind-theme" name="color-blind-theme"></game-switch>\n </div>\n </div>\n </section>\n\n <section>\n <div class="setting">\n <div class="text">\n <div class="title">Feedback</div>\n </div>\n <div class="control">\n <a href="mailto:suhasasj@gmail.com?subject=Feedback" title="suhasasj@gmail.com">Email</a>\n |\n <a href="https://github.com/suhasa010/wordle" target="blank" title="@suhasa010">Github</a>\n </div>\n </div>\n </section>\n <section>\n <div class="setting">\n <div class="text">\n <div class="title">Based on César Nogueira\'s version</div>\n </div>\n <div class="control">\n <a href="mailto:wordle@cesarnogueira.com?subject=Feedback" title="wordle@cesarnogueira.com">Email</a>\n |\n <a href="https://github.com/cesarnogueira/wordle" target="blank" title="@cesarnogueira">Github</a>\n </div>\n </div>\n </section>\n </div>\n <div id="footnote">\n <div id="copyright">Copyright 2021-2022. All Rights Reserved.</div>\n <div>\n <div id="puzzle-number"></div>\n <div id="hash"></div>\n </div>\n </div>\n'; var _a = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), n(p(e = a.call(this)), "gameApp", void 0), e.attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { var e, a = this; this.shadowRoot.appendChild(Sa.content.cloneNode(!0)), this.shadowRoot.querySelector("#hash").textContent = null === (e = window.wordle) || void 0 === e ? void 0 : e.hash, this.shadowRoot.querySelector("#puzzle-number").textContent = "#".concat(this.gameApp.dayOffset), this.shadowRoot.addEventListener("game-switch-change", (function(e) { e.stopPropagation(); var s = e.detail, t = s.name, o = s.checked, n = s.disabled; a.dispatchEvent(new CustomEvent("game-setting-change", { bubbles: !0, composed: !0, detail: { name: t, checked: o, disabled: n } })), a.render() })), this.render() } }, { key: "render", value: function() { var e = document.querySelector("body"); e.classList.contains("nightmode") && this.shadowRoot.querySelector("#dark-theme").setAttribute("checked", ""), e.classList.contains("colorblind") && this.shadowRoot.querySelector("#color-blind-theme").setAttribute("checked", ""); var a = za(); a.hardMode && this.shadowRoot.querySelector("#hard-mode").setAttribute("checked", ""), a.hardMode || "IN_PROGRESS" !== a.gameStatus || 0 === a.rowIndex || (this.shadowRoot.querySelector("#hard-mode").removeAttribute("checked"), this.shadowRoot.querySelector("#hard-mode").setAttribute("disabled", "")) } }]), t }(c(HTMLElement)); customElements.define("game-settings", _a); var qa = document.createElement("template"); qa.innerHTML = '\n <style>\n .toast {\n position: relative;\n margin: 16px;\n background-color: var(--color-tone-1);\n color: var(--color-tone-7);\n padding: 16px;\n border: none;\n border-radius: 4px;\n opacity: 1;\n transition: opacity 300ms cubic-bezier(0.645, 0.045, 0.355, 1);\n font-weight: 700;\n }\n .win {\n background-color: var(--color-correct);\n color: var(--tile-text-color);\n }\n .fade {\n opacity: 0;\n }\n </style>\n <div class="toast"></div>\n'; var Ea, Aa = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), n(p(e = a.call(this)), "_duration", void 0), e.attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(qa.content.cloneNode(!0)); var a = this.shadowRoot.querySelector(".toast"); a.textContent = this.getAttribute("text"), this._duration = this.getAttribute("duration") || 1e3, "Infinity" !== this._duration && setTimeout((function() { a.classList.add("fade") }), this._duration), a.addEventListener("transitionend", (function(a) { e.parentNode.removeChild(e) })) } }]), t }(c(HTMLElement)); function Ca() { dataLayer.push(arguments) } customElements.define("game-toast", Aa), window.dataLayer = window.dataLayer || [], Ca("js", zz); Ca("config", "G-2SSGMHY3NP", { app_version: null === (Ea = window.wordle) || void 0 === Ea ? void 0 : Ea.hash, debug_mode: !1 }); var La = ["cigar", "rebut", "sissy", "humph", "awake", "blush", "focal", "evade", "naval", "serve", "heath", "dwarf", "model", "karma", "stink", "grade", "quiet", "bench", "abate", "feign", "major", "death", "fresh", "crust", "stool", "colon", "abase", "marry", "react", "batty", "pride", "floss", "helix", "croak", "staff", "paper", "unfed", "whelp", "trawl", "outdo", "adobe", "crazy", "sower", "repay", "digit", "crate", "cluck", "spike", "mimic", "pound", "maxim", "linen", "unmet", "flesh", "booby", "forth", "first", "stand", "belly", "ivory", "seedy", "print", "yearn", "drain", "bribe", "stout", "panel", "crass", "flume", "offal", "agree", "error", "swirl", "argue", "bleed", "delta", "flick", "totem", "wooer", "front", "shrub", "parry", "biome", "lapel", "start", "greet", "goner", "golem", "lusty", "loopy", "round", "audit", "lying", "gamma", "labor", "islet", "civic", "forge", "corny", "moult", "basic", "salad", "agate", "spicy", "spray", "essay", "fjord", "spend", "kebab", "guild", "aback", "motor", "alone", "hatch", "hyper", "thumb", "dowry", "ought", "belch", "dutch", "pilot", "tweed", "comet", "jaunt", "enema", "steed", "abyss", "growl", "fling", "dozen", "boozy", "erode", "world", "gouge", "click", "briar", "great", "altar", "pulpy", "blurt", "coast", "duchy", "groin", "fixer", "group", "rogue", "badly", "smart", "pithy", "gaudy", "chill", "heron", "vodka", "finer", "surer", "radio", "rouge", "perch", "retch", "wrote", "clock", "tilde", "store", "prove", "bring", "solve", "cheat", "grime", "exult", "usher", "epoch", "triad", "break", "rhino", "viral", "conic", "masse", "sonic", "vital", "trace", "using", "peach", "champ", "baton", "brake", "pluck", "craze", "gripe", "weary", "picky", "acute", "ferry", "aside", "tapir", "troll", "unify", "rebus", "boost", "truss", "siege", "tiger", "banal", "slump", "crank", "gorge", "query", "drink", "favor", "abbey", "tangy", "panic", "solar", "shire", "proxy", "point", "robot", "prick", "wince", "crimp", "knoll", "sugar", "whack", "mount", "perky", "could", "wrung", "light", "those", "moist", "shard", "pleat", "aloft", "skill", "elder", "frame", "humor", "pause", "ulcer", "ultra", "robin", "cynic", "agora", "aroma", "caulk", "shake", "pupal", "dodge", "swill", "tacit", "other", "thorn", "trove", "bloke", "vivid", "spill", "chant", "choke", "rupee", "nasty", "mourn", "ahead", "brine", "cloth", "hoard", "sweet", "month", "lapse", "watch", "today", "focus", "smelt", "tease", "cater", "movie", "lynch", "saute", "allow", "renew", "their", "slosh", "purge", "chest", "depot", "epoxy", "nymph", "found", "shall", "harry", "stove", "lowly", "snout", "trope", "fewer", "shawl", "natal", "fibre", "comma", "foray", "scare", "stair", "black", "squad", "royal", "chunk", "mince", "slave", "shame", "cheek", "ample", "flair", "foyer", "cargo", "oxide", "plant", "olive", "inert", "askew", "heist", "shown", "zesty", "hasty", "trash", "fella", "larva", "forgo", "story", "hairy", "train", "homer", "badge", "midst", "canny", "fetus", "butch", "farce", "slung", "tipsy", "metal", "yield", "delve", "being", "scour", "glass", "gamer", "scrap", "money", "hinge", "album", "vouch", "asset", "tiara", "crept", "bayou", "atoll", "manor", "creak", "showy", "phase", "froth", "depth", "gloom", "flood", "trait", "girth", "piety", "payer", "goose", "float", "donor", "atone", "primo", "apron", "blown", "cacao", "loser", "input", "gloat", "awful", "brink", "smite", "beady", "rusty", "retro", "droll", "gawky", "hutch", "pinto", "gaily", "egret", "lilac", "sever", "field", "fluff", "hydro", "flack", "agape", "wench", "voice", "stead", "stalk", "berth", "madam", "night", "bland", "liver", "wedge", "augur", "roomy", "wacky", "flock", "angry", "bobby", "trite", "aphid", "tryst", "midge", "power", "elope", "cinch", "motto", "stomp", "upset", "bluff", "cramp", "quart", "coyly", "youth", "rhyme", "buggy", "alien", "smear", "unfit", "patty", "cling", "glean", "label", "hunky", "khaki", "poker", "gruel", "twice", "twang", "shrug", "treat", "unlit", "waste", "merit", "woven", "octal", "needy", "clown", "widow", "irony", "ruder", "gauze", "chief", "onset", "prize", "fungi", "charm", "gully", "inter", "whoop", "taunt", "leery", "class", "theme", "lofty", "tibia", "booze", "alpha", "thyme", "eclat", "doubt", "parer", "chute", "stick", "trice", "alike", "sooth", "recap", "saint", "liege", "glory", "grate", "admit", "brisk", "soggy", "usurp", "scald", "scorn", "leave", "twine", "sting", "bough", "marsh", "sloth", "dandy", "vigor", "howdy", "enjoy", "valid", "ionic", "equal", "unset", "floor", "catch", "spade", "stein", "exist", "quirk", "denim", "grove", "spiel", "mummy", "fault", "foggy", "flout", "carry", "sneak", "libel", "waltz", "aptly", "piney", "inept", "aloud", "photo", "dream", "stale", "vomit", "ombre", "fanny", "unite", "snarl", "baker", "there", "glyph", "pooch", "hippy", "spell", "folly", "louse", "gulch", "vault", "godly", "threw", "fleet", "grave", "inane", "shock", "crave", "spite", "valve", "skimp", "claim", "rainy", "musty", "pique", "daddy", "quasi", "arise", "aging", "valet", "opium", "avert", "stuck", "recut", "mulch", "genre", "plume", "rifle", "count", "incur", "total", "wrest", "mocha", "deter", "study", "lover", "safer", "rivet", "funny", "smoke", "mound", "undue", "sedan", "pagan", "swine", "guile", "gusty", "equip", "tough", "canoe", "chaos", "covet", "human", "udder", "lunch", "blast", "stray", "manga", "melee", "lefty", "quick", "paste", "given", "octet", "risen", "groan", "leaky", "grind", "carve", "loose", "sadly", "spilt", "apple", "slack", "honey", "final", "sheen", "eerie", "minty", "slick", "derby", "wharf", "spelt", "coach", "erupt", "singe", "price", "spawn", "fairy", "jiffy", "filmy", "stack", "chose", "sleep", "ardor", "nanny", "niece", "woozy", "handy", "grace", "ditto", "stank", "cream", "usual", "diode", "valor", "angle", "ninja", "muddy", "chase", "reply", "prone", "spoil", "heart", "shade", "diner", "arson", "onion", "sleet", "dowel", "couch", "palsy", "bowel", "smile", "evoke", "creek", "lance", "eagle", "idiot", "siren", "built", "embed", "award", "dross", "annul", "goody", "frown", "patio", "laden", "humid", "elite", "lymph", "edify", "might", "reset", "visit", "gusto", "purse", "vapor", "crock", "write", "sunny", "loath", "chaff", "slide", "queer", "venom", "stamp", "sorry", "still", "acorn", "aping", "pushy", "tamer", "hater", "mania", "awoke", "brawn", "swift", "exile", "birch", "lucky", "freer", "risky", "ghost", "plier", "lunar", "winch", "snare", "nurse", "house", "borax", "nicer", "lurch", "exalt", "about", "savvy", "toxin", "tunic", "pried", "inlay", "chump", "lanky", "cress", "eater", "elude", "cycle", "kitty", "boule", "moron", "tenet", "place", "lobby", "plush", "vigil", "index", "blink", "clung", "qualm", "croup", "clink", "juicy", "stage", "decay", "nerve", "flier", "shaft", "crook", "clean", "china", "ridge", "vowel", "gnome", "snuck", "icing", "spiny", "rigor", "snail", "flown", "rabid", "prose", "thank", "poppy", "budge", "fiber", "moldy", "dowdy", "kneel", "track", "caddy", "quell", "dumpy", "paler", "swore", "rebar", "scuba", "splat", "flyer", "horny", "mason", "doing", "ozone", "amply", "molar", "ovary", "beset", "queue", "cliff", "magic", "truce", "sport", "fritz", "edict", "twirl", "verse", "llama", "eaten", "range", "whisk", "hovel", "rehab", "macaw", "sigma", "spout", "verve", "sushi", "dying", "fetid", "brain", "buddy", "thump", "scion", "candy", "chord", "basin", "march", "crowd", "arbor", "gayly", "musky", "stain", "dally", "bless", "bravo", "stung", "title", "ruler", "kiosk", "blond", "ennui", "layer", "fluid", "tatty", "score", "cutie", "zebra", "barge", "matey", "bluer", "aider", "shook", "river", "privy", "betel", "frisk", "bongo", "begun", "azure", "weave", "genie", "sound", "glove", "braid", "scope", "wryly", "rover", "assay", "ocean", "bloom", "irate", "later", "woken", "silky", "wreck", "dwelt", "slate", "smack", "solid", "amaze", "hazel", "wrist", "jolly", "globe", "flint", "rouse", "civil", "vista", "relax", "cover", "alive", "beech", "jetty", "bliss", "vocal", "often", "dolly", "eight", "joker", "since", "event", "ensue", "shunt", "diver", "poser", "worst", "sweep", "alley", "creed", "anime", "leafy", "bosom", "dunce", "stare", "pudgy", "waive", "choir", "stood", "spoke", "outgo", "delay", "bilge", "ideal", "clasp", "seize", "hotly", "laugh", "sieve", "block", "meant", "grape", "noose", "hardy", "shied", "drawl", "daisy", "putty", "strut", "burnt", "tulip", "crick", "idyll", "vixen", "furor", "geeky", "cough", "naive", "shoal", "stork", "bathe", "aunty", "check", "prime", "brass", "outer", "furry", "razor", "elect", "evict", "imply", "demur", "quota", "haven", "cavil", "swear", "crump", "dough", "gavel", "wagon", "salon", "nudge", "harem", "pitch", "sworn", "pupil", "excel", "stony", "cabin", "unzip", "queen", "trout", "polyp", "earth", "storm", "until", "taper", "enter", "child", "adopt", "minor", "fatty", "husky", "brave", "filet", "slime", "glint", "tread", "steal", "regal", "guest", "every", "murky", "share", "spore", "hoist", "buxom", "inner", "otter", "dimly", "level", "sumac", "donut", "stilt", "arena", "sheet", "scrub", "fancy", "slimy", "pearl", "silly", "porch", "dingo", "sepia", "amble", "shady", "bread", "friar", "reign", "dairy", "quill", "cross", "brood", "tuber", "shear", "posit", "blank", "villa", "shank", "piggy", "freak", "which", "among", "fecal", "shell", "would", "algae", "large", "rabbi", "agony", "amuse", "bushy", "copse", "swoon", "knife", "pouch", "ascot", "plane", "crown", "urban", "snide", "relay", "abide", "viola", "rajah", "straw", "dilly", "crash", "amass", "third", "trick", "tutor", "woody", "blurb", "grief", "disco", "where", "sassy", "beach", "sauna", "comic", "clued", "creep", "caste", "graze", "snuff", "frock", "gonad", "drunk", "prong", "lurid", "steel", "halve", "buyer", "vinyl", "utile", "smell", "adage", "worry", "tasty", "local", "trade", "finch", "ashen", "modal", "gaunt", "clove", "enact", "adorn", "roast", "speck", "sheik", "missy", "grunt", "snoop", "party", "touch", "mafia", "emcee", "array", "south", "vapid", "jelly", "skulk", "angst", "tubal", "lower", "crest", "sweat", "cyber", "adore", "tardy", "swami", "notch", "groom", "roach", "hitch", "young", "align", "ready", "frond", "strap", "puree", "realm", "venue", "swarm", "offer", "seven", "dryer", "diary", "dryly", "drank", "acrid", "heady", "theta", "junto", "pixie", "quoth", "bonus", "shalt", "penne", "amend", "datum", "build", "piano", "shelf", "lodge", "suing", "rearm", "coral", "ramen", "worth", "psalm", "infer", "overt", "mayor", "ovoid", "glide", "usage", "poise", "randy", "chuck", "prank", "fishy", "tooth", "ether", "drove", "idler", "swath", "stint", "while", "begat", "apply", "slang", "tarot", "radar", "credo", "aware", "canon", "shift", "timer", "bylaw", "serum", "three", "steak", "iliac", "shirk", "blunt", "puppy", "penal", "joist", "bunny", "shape", "beget", "wheel", "adept", "stunt", "stole", "topaz", "chore", "fluke", "afoot", "bloat", "bully", "dense", "caper", "sneer", "boxer", "jumbo", "lunge", "space", "avail", "short", "slurp", "loyal", "flirt", "pizza", "conch", "tempo", "droop", "plate", "bible", "plunk", "afoul", "savoy", "steep", "agile", "stake", "dwell", "knave", "beard", "arose", "motif", "smash", "broil", "glare", "shove", "baggy", "mammy", "swamp", "along", "rugby", "wager", "quack", "squat", "snaky", "debit", "mange", "skate", "ninth", "joust", "tramp", "spurn", "medal", "micro", "rebel", "flank", "learn", "nadir", "maple", "comfy", "remit", "gruff", "ester", "least", "mogul", "fetch", "cause", "oaken", "aglow", "meaty", "gaffe", "shyly", "racer", "prowl", "thief", "stern", "poesy", "rocky", "tweet", "waist", "spire", "grope", "havoc", "patsy", "truly", "forty", "deity", "uncle", "swish", "giver", "preen", "bevel", "lemur", "draft", "slope", "annoy", "lingo", "bleak", "ditty", "curly", "cedar", "dirge", "grown", "horde", "drool", "shuck", "crypt", "cumin", "stock", "gravy", "locus", "wider", "breed", "quite", "chafe", "cache", "blimp", "deign", "fiend", "logic", "cheap", "elide", "rigid", "false", "renal", "pence", "rowdy", "shoot", "blaze", "envoy", "posse", "brief", "never", "abort", "mouse", "mucky", "sulky", "fiery", "media", "trunk", "yeast", "clear", "skunk", "scalp", "bitty", "cider", "koala", "duvet", "segue", "creme", "super", "grill", "after", "owner", "ember", "reach", "nobly", "empty", "speed", "gipsy", "recur", "smock", "dread", "merge", "burst", "kappa", "amity", "shaky", "hover", "carol", "snort", "synod", "faint", "haunt", "flour", "chair", "detox", "shrew", "tense", "plied", "quark", "burly", "novel", "waxen", "stoic", "jerky", "blitz", "beefy", "lyric", "hussy", "towel", "quilt", "below", "bingo", "wispy", "brash", "scone", "toast", "easel", "saucy", "value", "spice", "honor", "route", "sharp", "bawdy", "radii", "skull", "phony", "issue", "lager", "swell", "urine", "gassy", "trial", "flora", "upper", "latch", "wight", "brick", "retry", "holly", "decal", "grass", "shack", "dogma", "mover", "defer", "sober", "optic", "crier", "vying", "nomad", "flute", "hippo", "shark", "drier", "obese", "bugle", "tawny", "chalk", "feast", "ruddy", "pedal", "scarf", "cruel", "bleat", "tidal", "slush", "semen", "windy", "dusty", "sally", "igloo", "nerdy", "jewel", "shone", "whale", "hymen", "abuse", "fugue", "elbow", "crumb", "pansy", "welsh", "syrup", "terse", "suave", "gamut", "swung", "drake", "freed", "afire", "shirt", "grout", "oddly", "tithe", "plaid", "dummy", "broom", "blind", "torch", "enemy", "again", "tying", "pesky", "alter", "gazer", "noble", "ethos", "bride", "extol", "decor", "hobby", "beast", "idiom", "utter", "these", "sixth", "alarm", "erase", "elegy", "spunk", "piper", "scaly", "scold", "hefty", "chick", "sooty", "canal", "whiny", "slash", "quake", "joint", "swept", "prude", "heavy", "wield", "femme", "lasso", "maize", "shale", "screw", "spree", "smoky", "whiff", "scent", "glade", "spent", "prism", "stoke", "riper", "orbit", "cocoa", "guilt", "humus", "shush", "table", "smirk", "wrong", "noisy", "alert", "shiny", "elate", "resin", "whole", "hunch", "pixel", "polar", "hotel", "sword", "cleat", "mango", "rumba", "puffy", "filly", "billy", "leash", "clout", "dance", "ovate", "facet", "chili", "paint", "liner", "curio", "salty", "audio", "snake", "fable", "cloak", "navel", "spurt", "pesto", "balmy", "flash", "unwed", "early", "churn", "weedy", "stump", "lease", "witty", "wimpy", "spoof", "saner", "blend", "salsa", "thick", "warty", "manic", "blare", "squib", "spoon", "probe", "crepe", "knack", "force", "debut", "order", "haste", "teeth", "agent", "widen", "icily", "slice", "ingot", "clash", "juror", "blood", "abode", "throw", "unity", "pivot", "slept", "troop", "spare", "sewer", "parse", "morph", "cacti", "tacky", "spool", "demon", "moody", "annex", "begin", "fuzzy", "patch", "water", "lumpy", "admin", "omega", "limit", "tabby", "macho", "aisle", "skiff", "basis", "plank", "verge", "botch", "crawl", "lousy", "slain", "cubic", "raise", "wrack", "guide", "foist", "cameo", "under", "actor", "revue", "fraud", "harpy", "scoop", "climb", "refer", "olden", "clerk", "debar", "tally", "ethic", "cairn", "tulle", "ghoul", "hilly", "crude", "apart", "scale", "older", "plain", "sperm", "briny", "abbot", "rerun", "quest", "crisp", "bound", "befit", "drawn", "suite", "itchy", "cheer", "bagel", "guess", "broad", "axiom", "chard", "caput", "leant", "harsh", "curse", "proud", "swing", "opine", "taste", "lupus", "gumbo", "miner", "green", "chasm", "lipid", "topic", "armor", "brush", "crane", "mural", "abled", "habit", "bossy", "maker", "dusky", "dizzy", "lithe", "brook", "jazzy", "fifty", "sense", "giant", "surly", "legal", "fatal", "flunk", "began", "prune", "small", "slant", "scoff", "torus", "ninny", "covey", "viper", "taken", "moral", "vogue", "owing", "token", "entry", "booth", "voter", "chide", "elfin", "ebony", "neigh", "minim", "melon", "kneed", "decoy", "voila", "ankle", "arrow", "mushy", "tribe", "cease", "eager", "birth", "graph", "odder", "terra", "weird", "tried", "clack", "color", "rough", "weigh", "uncut", "ladle", "strip", "craft", "minus", "dicey", "titan", "lucid", "vicar", "dress", "ditch", "gypsy", "pasta", "taffy", "flame", "swoop", "aloof", "sight", "broke", "teary", "chart", "sixty", "wordy", "sheer", "leper", "nosey", "bulge", "savor", "clamp", "funky", "foamy", "toxic", "brand", "plumb", "dingy", "butte", "drill", "tripe", "bicep", "tenor", "krill", "worse", "drama", "hyena", "think", "ratio", "cobra", "basil", "scrum", "bused", "phone", "court", "camel", "proof", "heard", "angel", "petal", "pouty", "throb", "maybe", "fetal", "sprig", "spine", "shout", "cadet", "macro", "dodgy", "satyr", "rarer", "binge", "trend", "nutty", "leapt", "amiss", "split", "myrrh", "width", "sonar", "tower", "baron", "fever", "waver", "spark", "belie", "sloop", "expel", "smote", "baler", "above", "north", "wafer", "scant", "frill", "awash", "snack", "scowl", "frail", "drift", "limbo", "fence", "motel", "ounce", "wreak", "revel", "talon", "prior", "knelt", "cello", "flake", "debug", "anode", "crime", "salve", "scout", "imbue", "pinky", "stave", "vague", "chock", "fight", "video", "stone", "teach", "cleft", "frost", "prawn", "booty", "twist", "apnea", "stiff", "plaza", "ledge", "tweak", "board", "grant", "medic", "bacon", "cable", "brawl", "slunk", "raspy", "forum", "drone", "women", "mucus", "boast", "toddy", "coven", "tumor", "truer", "wrath", "stall", "steam", "axial", "purer", "daily", "trail", "niche", "mealy", "juice", "nylon", "plump", "merry", "flail", "papal", "wheat", "berry", "cower", "erect", "brute", "leggy", "snipe", "sinew", "skier", "penny", "jumpy", "rally", "umbra", "scary", "modem", "gross", "avian", "greed", "satin", "tonic", "parka", "sniff", "livid", "stark", "trump", "giddy", "reuse", "taboo", "avoid", "quote", "devil", "liken", "gloss", "gayer", "beret", "noise", "gland", "dealt", "sling", "rumor", "opera", "thigh", "tonga", "flare", "wound", "white", "bulky", "etude", "horse", "circa", "paddy", "inbox", "fizzy", "grain", "exert", "surge", "gleam", "belle", "salvo", "crush", "fruit", "sappy", "taker", "tract", "ovine", "spiky", "frank", "reedy", "filth", "spasm", "heave", "mambo", "right", "clank", "trust", "lumen", "borne", "spook", "sauce", "amber", "lathe", "carat", "corer", "dirty", "slyly", "affix", "alloy", "taint", "sheep", "kinky", "wooly", "mauve", "flung", "yacht", "fried", "quail", "brunt", "grimy", "curvy", "cagey", "rinse", "deuce", "state", "grasp", "milky", "bison", "graft", "sandy", "baste", "flask", "hedge", "girly", "swash", "boney", "coupe", "endow", "abhor", "welch", "blade", "tight", "geese", "miser", "mirth", "cloud", "cabal", "leech", "close", "tenth", "pecan", "droit", "grail", "clone", "guise", "ralph", "tango", "biddy", "smith", "mower", "payee", "serif", "drape", "fifth", "spank", "glaze", "allot", "truck", "kayak", "virus", "testy", "tepee", "fully", "zonal", "metro", "curry", "grand", "banjo", "axion", "bezel", "occur", "chain", "nasal", "gooey", "filer", "brace", "allay", "pubic", "raven", "plead", "gnash", "flaky", "munch", "dully", "eking", "thing", "slink", "hurry", "theft", "shorn", "pygmy", "ranch", "wring", "lemon", "shore", "mamma", "froze", "newer", "style", "moose", "antic", "drown", "vegan", "chess", "guppy", "union", "lever", "lorry", "image", "cabby", "druid", "exact", "truth", "dopey", "spear", "cried", "chime", "crony", "stunk", "timid", "batch", "gauge", "rotor", "crack", "curve", "latte", "witch", "bunch", "repel", "anvil", "soapy", "meter", "broth", "madly", "dried", "scene", "known", "magma", "roost", "woman", "thong", "punch", "pasty", "downy", "knead", "whirl", "rapid", "clang", "anger", "drive", "goofy", "email", "music", "stuff", "bleep", "rider", "mecca", "folio", "setup", "verso", "quash", "fauna", "gummy", "happy", "newly", "fussy", "relic", "guava", "ratty", "fudge", "femur", "chirp", "forte", "alibi", "whine", "petty", "golly", "plait", "fleck", "felon", "gourd", "brown", "thrum", "ficus", "stash", "decry", "wiser", "junta", "visor", "daunt", "scree", "impel", "await", "press", "whose", "turbo", "stoop", "speak", "mangy", "eying", "inlet", "crone", "pulse", "mossy", "staid", "hence", "pinch", "teddy", "sully", "snore", "ripen", "snowy", "attic", "going", "leach", "mouth", "hound", "clump", "tonal", "bigot", "peril", "piece", "blame", "haute", "spied", "undid", "intro", "basal", "shine", "gecko", "rodeo", "guard", "steer", "loamy", "scamp", "scram", "manly", "hello", "vaunt", "organ", "feral", "knock", "extra", "condo", "adapt", "willy", "polka", "rayon", "skirt", "faith", "torso", "match", "mercy", "tepid", "sleek", "riser", "twixt", "peace", "flush", "catty", "login", "eject", "roger", "rival", "untie", "refit", "aorta", "adult", "judge", "rower", "artsy", "rural", "shave"], Ta = ["aahed", "aalii", "aargh", "aarti", "abaca", "abaci", "abacs", "abaft", "abaka", "abamp", "aband", "abash", "abask", "abaya", "abbas", "abbed", "abbes", "abcee", "abeam", "abear", "abele", "abers", "abets", "abies", "abler", "ables", "ablet", "ablow", "abmho", "abohm", "aboil", "aboma", "aboon", "abord", "abore", "abram", "abray", "abrim", "abrin", "abris", "absey", "absit", "abuna", "abune", "abuts", "abuzz", "abyes", "abysm", "acais", "acari", "accas", "accoy", "acerb", "acers", "aceta", "achar", "ached", "aches", "achoo", "acids", "acidy", "acing", "acini", "ackee", "acker", "acmes", "acmic", "acned", "acnes", "acock", "acold", "acred", "acres", "acros", "acted", "actin", "acton", "acyls", "adaws", "adays", "adbot", "addax", "added", "adder", "addio", "addle", "adeem", "adhan", "adieu", "adios", "adits", "adman", "admen", "admix", "adobo", "adown", "adoze", "adrad", "adred", "adsum", "aduki", "adunc", "adust", "advew", "adyta", "adzed", "adzes", "aecia", "aedes", "aegis", "aeons", "aerie", "aeros", "aesir", "afald", "afara", "afars", "afear", "aflaj", "afore", "afrit", "afros", "agama", "agami", "agars", "agast", "agave", "agaze", "agene", "agers", "agger", "aggie", "aggri", "aggro", "aggry", "aghas", "agila", "agios", "agism", "agist", "agita", "aglee", "aglet", "agley", "agloo", "aglus", "agmas", "agoge", "agone", "agons", "agood", "agria", "agrin", "agros", "agued", "agues", "aguna", "aguti", "aheap", "ahent", "ahigh", "ahind", "ahing", "ahint", "ahold", "ahull", "ahuru", "aidas", "aided", "aides", "aidoi", "aidos", "aiery", "aigas", "aight", "ailed", "aimed", "aimer", "ainee", "ainga", "aioli", "aired", "airer", "airns", "airth", "airts", "aitch", "aitus", "aiver", "aiyee", "aizle", "ajies", "ajiva", "ajuga", "ajwan", "akees", "akela", "akene", "aking", "akita", "akkas", "alaap", "alack", "alamo", "aland", "alane", "alang", "alans", "alant", "alapa", "alaps", "alary", "alate", "alays", "albas", "albee", "alcid", "alcos", "aldea", "alder", "aldol", "aleck", "alecs", "alefs", "aleft", "aleph", "alews", "aleye", "alfas", "algal", "algas", "algid", "algin", "algor", "algum", "alias", "alifs", "aline", "alist", "aliya", "alkie", "alkos", "alkyd", "alkyl", "allee", "allel", "allis", "allod", "allyl", "almah", "almas", "almeh", "almes", "almud", "almug", "alods", "aloed", "aloes", "aloha", "aloin", "aloos", "alowe", "altho", "altos", "alula", "alums", "alure", "alvar", "alway", "amahs", "amain", "amate", "amaut", "amban", "ambit", "ambos", "ambry", "ameba", "ameer", "amene", "amens", "ament", "amias", "amice", "amici", "amide", "amido", "amids", "amies", "amiga", "amigo", "amine", "amino", "amins", "amirs", "amlas", "amman", "ammon", "ammos", "amnia", "amnic", "amnio", "amoks", "amole", "amort", "amour", "amove", "amowt", "amped", "ampul", "amrit", "amuck", "amyls", "anana", "anata", "ancho", "ancle", "ancon", "andro", "anear", "anele", "anent", "angas", "anglo", "anigh", "anile", "anils", "anima", "animi", "anion", "anise", "anker", "ankhs", "ankus", "anlas", "annal", "annas", "annat", "anoas", "anole", "anomy", "ansae", "antae", "antar", "antas", "anted", "antes", "antis", "antra", "antre", "antsy", "anura", "anyon", "apace", "apage", "apaid", "apayd", "apays", "apeak", "apeek", "apers", "apert", "apery", "apgar", "aphis", "apian", "apiol", "apish", "apism", "apode", "apods", "apoop", "aport", "appal", "appay", "appel", "appro", "appui", "appuy", "apres", "apses", "apsis", "apsos", "apted", "apter", "aquae", "aquas", "araba", "araks", "arame", "arars", "arbas", "arced", "archi", "arcos", "arcus", "ardeb", "ardri", "aread", "areae", "areal", "arear", "areas", "areca", "aredd", "arede", "arefy", "areic", "arene", "arepa", "arere", "arete", "arets", "arett", "argal", "argan", "argil", "argle", "argol", "argon", "argot", "argus", "arhat", "arias", "ariel", "ariki", "arils", "ariot", "arish", "arked", "arled", "arles", "armed", "armer", "armet", "armil", "arnas", "arnut", "aroba", "aroha", "aroid", "arpas", "arpen", "arrah", "arras", "arret", "arris", "arroz", "arsed", "arses", "arsey", "arsis", "artal", "artel", "artic", "artis", "aruhe", "arums", "arval", "arvee", "arvos", "aryls", "asana", "ascon", "ascus", "asdic", "ashed", "ashes", "ashet", "asked", "asker", "askoi", "askos", "aspen", "asper", "aspic", "aspie", "aspis", "aspro", "assai", "assam", "asses", "assez", "assot", "aster", "astir", "astun", "asura", "asway", "aswim", "asyla", "ataps", "ataxy", "atigi", "atilt", "atimy", "atlas", "atman", "atmas", "atmos", "atocs", "atoke", "atoks", "atoms", "atomy", "atony", "atopy", "atria", "atrip", "attap", "attar", "atuas", "audad", "auger", "aught", "aulas", "aulic", "auloi", "aulos", "aumil", "aunes", "aunts", "aurae", "aural", "aurar", "auras", "aurei", "aures", "auric", "auris", "aurum", "autos", "auxin", "avale", "avant", "avast", "avels", "avens", "avers", "avgas", "avine", "avion", "avise", "aviso", "avize", "avows", "avyze", "awarn", "awato", "awave", "aways", "awdls", "aweel", "aweto", "awing", "awmry", "awned", "awner", "awols", "awork", "axels", "axile", "axils", "axing", "axite", "axled", "axles", "axman", "axmen", "axoid", "axone", "axons", "ayahs", "ayaya", "ayelp", "aygre", "ayins", "ayont", "ayres", "ayrie", "azans", "azide", "azido", "azine", "azlon", "azoic", "azole", "azons", "azote", "azoth", "azuki", "azurn", "azury", "azygy", "azyme", "azyms", "baaed", "baals", "babas", "babel", "babes", "babka", "baboo", "babul", "babus", "bacca", "bacco", "baccy", "bacha", "bachs", "backs", "baddy", "baels", "baffs", "baffy", "bafts", "baghs", "bagie", "bahts", "bahus", "bahut", "bails", "bairn", "baisa", "baith", "baits", "baiza", "baize", "bajan", "bajra", "bajri", "bajus", "baked", "baken", "bakes", "bakra", "balas", "balds", "baldy", "baled", "bales", "balks", "balky", "balls", "bally", "balms", "baloo", "balsa", "balti", "balun", "balus", "bambi", "banak", "banco", "bancs", "banda", "bandh", "bands", "bandy", "baned", "banes", "bangs", "bania", "banks", "banns", "bants", "bantu", "banty", "banya", "bapus", "barbe", "barbs", "barby", "barca", "barde", "bardo", "bards", "bardy", "bared", "barer", "bares", "barfi", "barfs", "baric", "barks", "barky", "barms", "barmy", "barns", "barny", "barps", "barra", "barre", "barro", "barry", "barye", "basan", "based", "basen", "baser", "bases", "basho", "basij", "basks", "bason", "basse", "bassi", "basso", "bassy", "basta", "basti", "basto", "basts", "bated", "bates", "baths", "batik", "batta", "batts", "battu", "bauds", "bauks", "baulk", "baurs", "bavin", "bawds", "bawks", "bawls", "bawns", "bawrs", "bawty", "bayed", "bayer", "bayes", "bayle", "bayts", "bazar", "bazoo", "beads", "beaks", "beaky", "beals", "beams", "beamy", "beano", "beans", "beany", "beare", "bears", "beath", "beats", "beaty", "beaus", "beaut", "beaux", "bebop", "becap", "becke", "becks", "bedad", "bedel", "bedes", "bedew", "bedim", "bedye", "beedi", "beefs", "beeps", "beers", "beery", "beets", "befog", "begad", "begar", "begem", "begot", "begum", "beige", "beigy", "beins", "bekah", "belah", "belar", "belay", "belee", "belga", "bells", "belon", "belts", "bemad", "bemas", "bemix", "bemud", "bends", "bendy", "benes", "benet", "benga", "benis", "benne", "benni", "benny", "bento", "bents", "benty", "bepat", "beray", "beres", "bergs", "berko", "berks", "berme", "berms", "berob", "beryl", "besat", "besaw", "besee", "beses", "besit", "besom", "besot", "besti", "bests", "betas", "beted", "betes", "beths", "betid", "beton", "betta", "betty", "bever", "bevor", "bevue", "bevvy", "bewet", "bewig", "bezes", "bezil", "bezzy", "bhais", "bhaji", "bhang", "bhats", "bhels", "bhoot", "bhuna", "bhuts", "biach", "biali", "bialy", "bibbs", "bibes", "biccy", "bices", "bided", "bider", "bides", "bidet", "bidis", "bidon", "bield", "biers", "biffo", "biffs", "biffy", "bifid", "bigae", "biggs", "biggy", "bigha", "bight", "bigly", "bigos", "bijou", "biked", "biker", "bikes", "bikie", "bilbo", "bilby", "biled", "biles", "bilgy", "bilks", "bills", "bimah", "bimas", "bimbo", "binal", "bindi", "binds", "biner", "bines", "bings", "bingy", "binit", "binks", "bints", "biogs", "biont", "biota", "biped", "bipod", "birds", "birks", "birle", "birls", "biros", "birrs", "birse", "birsy", "bises", "bisks", "bisom", "bitch", "biter", "bites", "bitos", "bitou", "bitsy", "bitte", "bitts", "bivia", "bivvy", "bizes", "bizzo", "bizzy", "blabs", "blads", "blady", "blaer", "blaes", "blaff", "blags", "blahs", "blain", "blams", "blart", "blase", "blash", "blate", "blats", "blatt", "blaud", "blawn", "blaws", "blays", "blear", "blebs", "blech", "blees", "blent", "blert", "blest", "blets", "bleys", "blimy", "bling", "blini", "blins", "bliny", "blips", "blist", "blite", "blits", "blive", "blobs", "blocs", "blogs", "blook", "bloop", "blore", "blots", "blows", "blowy", "blubs", "blude", "bluds", "bludy", "blued", "blues", "bluet", "bluey", "bluid", "blume", "blunk", "blurs", "blype", "boabs", "boaks", "boars", "boart", "boats", "bobac", "bobak", "bobas", "bobol", "bobos", "bocca", "bocce", "bocci", "boche", "bocks", "boded", "bodes", "bodge", "bodhi", "bodle", "boeps", "boets", "boeuf", "boffo", "boffs", "bogan", "bogey", "boggy", "bogie", "bogle", "bogue", "bogus", "bohea", "bohos", "boils", "boing", "boink", "boite", "boked", "bokeh", "bokes", "bokos", "bolar", "bolas", "bolds", "boles", "bolix", "bolls", "bolos", "bolts", "bolus", "bomas", "bombe", "bombo", "bombs", "bonce", "bonds", "boned", "boner", "bones", "bongs", "bonie", "bonks", "bonne", "bonny", "bonza", "bonze", "booai", "booay", "boobs", "boody", "booed", "boofy", "boogy", "boohs", "books", "booky", "bools", "booms", "boomy", "boong", "boons", "boord", "boors", "boose", "boots", "boppy", "borak", "boral", "boras", "borde", "bords", "bored", "boree", "borel", "borer", "bores", "borgo", "boric", "borks", "borms", "borna", "boron", "borts", "borty", "bortz", "bosie", "bosks", "bosky", "boson", "bosun", "botas", "botel", "botes", "bothy", "botte", "botts", "botty", "bouge", "bouks", "boult", "bouns", "bourd", "bourg", "bourn", "bouse", "bousy", "bouts", "bovid", "bowat", "bowed", "bower", "bowes", "bowet", "bowie", "bowls", "bowne", "bowrs", "bowse", "boxed", "boxen", "boxes", "boxla", "boxty", "boyar", "boyau", "boyed", "boyfs", "boygs", "boyla", "boyos", "boysy", "bozos", "braai", "brach", "brack", "bract", "brads", "braes", "brags", "brail", "braks", "braky", "brame", "brane", "brank", "brans", "brant", "brast", "brats", "brava", "bravi", "braws", "braxy", "brays", "braza", "braze", "bream", "brede", "breds", "breem", "breer", "brees", "breid", "breis", "breme", "brens", "brent", "brere", "brers", "breve", "brews", "breys", "brier", "bries", "brigs", "briki", "briks", "brill", "brims", "brins", "brios", "brise", "briss", "brith", "brits", "britt", "brize", "broch", "brock", "brods", "brogh", "brogs", "brome", "bromo", "bronc", "brond", "brool", "broos", "brose", "brosy", "brows", "brugh", "bruin", "bruit", "brule", "brume", "brung", "brusk", "brust", "bruts", "buats", "buaze", "bubal", "bubas", "bubba", "bubbe", "bubby", "bubus", "buchu", "bucko", "bucks", "bucku", "budas", "budis", "budos", "buffa", "buffe", "buffi", "buffo", "buffs", "buffy", "bufos", "bufty", "buhls", "buhrs", "buiks", "buist", "bukes", "bulbs", "bulgy", "bulks", "bulla", "bulls", "bulse", "bumbo", "bumfs", "bumph", "bumps", "bumpy", "bunas", "bunce", "bunco", "bunde", "bundh", "bunds", "bundt", "bundu", "bundy", "bungs", "bungy", "bunia", "bunje", "bunjy", "bunko", "bunks", "bunns", "bunts", "bunty", "bunya", "buoys", "buppy", "buran", "buras", "burbs", "burds", "buret", "burfi", "burgh", "burgs", "burin", "burka", "burke", "burks", "burls", "burns", "buroo", "burps", "burqa", "burro", "burrs", "burry", "bursa", "burse", "busby", "buses", "busks", "busky", "bussu", "busti", "busts", "busty", "buteo", "butes", "butle", "butoh", "butts", "butty", "butut", "butyl", "buzzy", "bwana", "bwazi", "byded", "bydes", "byked", "bykes", "byres", "byrls", "byssi", "bytes", "byway", "caaed", "cabas", "caber", "cabob", "caboc", "cabre", "cacas", "cacks", "cacky", "cadee", "cades", "cadge", "cadgy", "cadie", "cadis", "cadre", "caeca", "caese", "cafes", "caffs", "caged", "cager", "cages", "cagot", "cahow", "caids", "cains", "caird", "cajon", "cajun", "caked", "cakes", "cakey", "calfs", "calid", "calif", "calix", "calks", "calla", "calls", "calms", "calmy", "calos", "calpa", "calps", "calve", "calyx", "caman", "camas", "cames", "camis", "camos", "campi", "campo", "camps", "campy", "camus", "caned", "caneh", "caner", "canes", "cangs", "canid", "canna", "canns", "canso", "canst", "canto", "cants", "canty", "capas", "caped", "capes", "capex", "caphs", "capiz", "caple", "capon", "capos", "capot", "capri", "capul", "carap", "carbo", "carbs", "carby", "cardi", "cards", "cardy", "cared", "carer", "cares", "caret", "carex", "carks", "carle", "carls", "carns", "carny", "carob", "carom", "caron", "carpi", "carps", "carrs", "carse", "carta", "carte", "carts", "carvy", "casas", "casco", "cased", "cases", "casks", "casky", "casts", "casus", "cates", "cauda", "cauks", "cauld", "cauls", "caums", "caups", "cauri", "causa", "cavas", "caved", "cavel", "caver", "caves", "cavie", "cawed", "cawks", "caxon", "ceaze", "cebid", "cecal", "cecum", "ceded", "ceder", "cedes", "cedis", "ceiba", "ceili", "ceils", "celeb", "cella", "celli", "cells", "celom", "celts", "cense", "cento", "cents", "centu", "ceorl", "cepes", "cerci", "cered", "ceres", "cerge", "ceria", "ceric", "cerne", "ceroc", "ceros", "certs", "certy", "cesse", "cesta", "cesti", "cetes", "cetyl", "cezve", "chace", "chack", "chaco", "chado", "chads", "chaft", "chais", "chals", "chams", "chana", "chang", "chank", "chape", "chaps", "chapt", "chara", "chare", "chark", "charr", "chars", "chary", "chats", "chave", "chavs", "chawk", "chaws", "chaya", "chays", "cheep", "chefs", "cheka", "chela", "chelp", "chemo", "chems", "chere", "chert", "cheth", "chevy", "chews", "chewy", "chiao", "chias", "chibs", "chica", "chich", "chico", "chics", "chiel", "chiks", "chile", "chimb", "chimo", "chimp", "chine", "ching", "chink", "chino", "chins", "chips", "chirk", "chirl", "chirm", "chiro", "chirr", "chirt", "chiru", "chits", "chive", "chivs", "chivy", "chizz", "choco", "chocs", "chode", "chogs", "choil", "choko", "choky", "chola", "choli", "cholo", "chomp", "chons", "choof", "chook", "choom", "choon", "chops", "chota", "chott", "chout", "choux", "chowk", "chows", "chubs", "chufa", "chuff", "chugs", "chums", "churl", "churr", "chuse", "chuts", "chyle", "chyme", "chynd", "cibol", "cided", "cides", "ciels", "ciggy", "cilia", "cills", "cimar", "cimex", "cinct", "cines", "cinqs", "cions", "cippi", "circs", "cires", "cirls", "cirri", "cisco", "cissy", "cists", "cital", "cited", "citer", "cites", "cives", "civet", "civie", "civvy", "clach", "clade", "clads", "claes", "clags", "clame", "clams", "clans", "claps", "clapt", "claro", "clart", "clary", "clast", "clats", "claut", "clave", "clavi", "claws", "clays", "cleck", "cleek", "cleep", "clefs", "clegs", "cleik", "clems", "clepe", "clept", "cleve", "clews", "clied", "clies", "clift", "clime", "cline", "clint", "clipe", "clips", "clipt", "clits", "cloam", "clods", "cloff", "clogs", "cloke", "clomb", "clomp", "clonk", "clons", "cloop", "cloot", "clops", "clote", "clots", "clour", "clous", "clows", "cloye", "cloys", "cloze", "clubs", "clues", "cluey", "clunk", "clype", "cnida", "coact", "coady", "coala", "coals", "coaly", "coapt", "coarb", "coate", "coati", "coats", "cobbs", "cobby", "cobia", "coble", "cobza", "cocas", "cocci", "cocco", "cocks", "cocky", "cocos", "codas", "codec", "coded", "coden", "coder", "codes", "codex", "codon", "coeds", "coffs", "cogie", "cogon", "cogue", "cohab", "cohen", "cohoe", "cohog", "cohos", "coifs", "coign", "coils", "coins", "coirs", "coits", "coked", "cokes", "colas", "colby", "colds", "coled", "coles", "coley", "colic", "colin", "colls", "colly", "colog", "colts", "colza", "comae", "comal", "comas", "combe", "combi", "combo", "combs", "comby", "comer", "comes", "comix", "commo", "comms", "commy", "compo", "comps", "compt", "comte", "comus", "coned", "cones", "coney", "confs", "conga", "conge", "congo", "conia", "conin", "conks", "conky", "conne", "conns", "conte", "conto", "conus", "convo", "cooch", "cooed", "cooee", "cooer", "cooey", "coofs", "cooks", "cooky", "cools", "cooly", "coomb", "cooms", "coomy", "coons", "coops", "coopt", "coost", "coots", "cooze", "copal", "copay", "coped", "copen", "coper", "copes", "coppy", "copra", "copsy", "coqui", "coram", "corbe", "corby", "cords", "cored", "cores", "corey", "corgi", "coria", "corks", "corky", "corms", "corni", "corno", "corns", "cornu", "corps", "corse", "corso", "cosec", "cosed", "coses", "coset", "cosey", "cosie", "costa", "coste", "costs", "cotan", "coted", "cotes", "coths", "cotta", "cotts", "coude", "coups", "courb", "courd", "coure", "cours", "couta", "couth", "coved", "coves", "covin", "cowal", "cowan", "cowed", "cowks", "cowls", "cowps", "cowry", "coxae", "coxal", "coxed", "coxes", "coxib", "coyau", "coyed", "coyer", "coypu", "cozed", "cozen", "cozes", "cozey", "cozie", "craal", "crabs", "crags", "craic", "craig", "crake", "crame", "crams", "crans", "crape", "craps", "crapy", "crare", "craws", "crays", "creds", "creel", "crees", "crems", "crena", "creps", "crepy", "crewe", "crews", "crias", "cribs", "cries", "crims", "crine", "crios", "cripe", "crips", "crise", "crith", "crits", "croci", "crocs", "croft", "crogs", "cromb", "crome", "cronk", "crons", "crool", "croon", "crops", "crore", "crost", "crout", "crows", "croze", "cruck", "crudo", "cruds", "crudy", "crues", "cruet", "cruft", "crunk", "cruor", "crura", "cruse", "crusy", "cruve", "crwth", "cryer", "ctene", "cubby", "cubeb", "cubed", "cuber", "cubes", "cubit", "cuddy", "cuffo", "cuffs", "cuifs", "cuing", "cuish", "cuits", "cukes", "culch", "culet", "culex", "culls", "cully", "culms", "culpa", "culti", "cults", "culty", "cumec", "cundy", "cunei", "cunit", "cunts", "cupel", "cupid", "cuppa", "cuppy", "curat", "curbs", "curch", "curds", "curdy", "cured", "curer", "cures", "curet", "curfs", "curia", "curie", "curli", "curls", "curns", "curny", "currs", "cursi", "curst", "cusec", "cushy", "cusks", "cusps", "cuspy", "cusso", "cusum", "cutch", "cuter", "cutes", "cutey", "cutin", "cutis", "cutto", "cutty", "cutup", "cuvee", "cuzes", "cwtch", "cyano", "cyans", "cycad", "cycas", "cyclo", "cyder", "cylix", "cymae", "cymar", "cymas", "cymes", "cymol", "cysts", "cytes", "cyton", "czars", "daals", "dabba", "daces", "dacha", "dacks", "dadah", "dadas", "dados", "daffs", "daffy", "dagga", "daggy", "dagos", "dahls", "daiko", "daine", "daint", "daker", "daled", "dales", "dalis", "dalle", "dalts", "daman", "damar", "dames", "damme", "damns", "damps", "dampy", "dancy", "dangs", "danio", "danks", "danny", "dants", "daraf", "darbs", "darcy", "dared", "darer", "dares", "darga", "dargs", "daric", "daris", "darks", "darky", "darns", "darre", "darts", "darzi", "dashi", "dashy", "datal", "dated", "dater", "dates", "datos", "datto", "daube", "daubs", "dauby", "dauds", "dault", "daurs", "dauts", "daven", "davit", "dawah", "dawds", "dawed", "dawen", "dawks", "dawns", "dawts", "dayan", "daych", "daynt", "dazed", "dazer", "dazes", "deads", "deair", "deals", "deans", "deare", "dearn", "dears", "deary", "deash", "deave", "deaws", "deawy", "debag", "debby", "debel", "debes", "debts", "debud", "debur", "debus", "debye", "decad", "decaf", "decan", "decko", "decks", "decos", "dedal", "deeds", "deedy", "deely", "deems", "deens", "deeps", "deere", "deers", "deets", "deeve", "deevs", "defat", "deffo", "defis", "defog", "degas", "degum", "degus", "deice", "deids", "deify", "deils", "deism", "deist", "deked", "dekes", "dekko", "deled", "deles", "delfs", "delft", "delis", "dells", "delly", "delos", "delph", "delts", "deman", "demes", "demic", "demit", "demob", "demoi", "demos", "dempt", "denar", "denay", "dench", "denes", "denet", "denis", "dents", "deoxy", "derat", "deray", "dered", "deres", "derig", "derma", "derms", "derns", "derny", "deros", "derro", "derry", "derth", "dervs", "desex", "deshi", "desis", "desks", "desse", "devas", "devel", "devis", "devon", "devos", "devot", "dewan", "dewar", "dewax", "dewed", "dexes", "dexie", "dhaba", "dhaks", "dhals", "dhikr", "dhobi", "dhole", "dholl", "dhols", "dhoti", "dhows", "dhuti", "diact", "dials", "diane", "diazo", "dibbs", "diced", "dicer", "dices", "dicht", "dicks", "dicky", "dicot", "dicta", "dicts", "dicty", "diddy", "didie", "didos", "didst", "diebs", "diels", "diene", "diets", "diffs", "dight", "dikas", "diked", "diker", "dikes", "dikey", "dildo", "dilli", "dills", "dimbo", "dimer", "dimes", "dimps", "dinar", "dined", "dines", "dinge", "dings", "dinic", "dinks", "dinky", "dinna", "dinos", "dints", "diols", "diota", "dippy", "dipso", "diram", "direr", "dirke", "dirks", "dirls", "dirts", "disas", "disci", "discs", "dishy", "disks", "disme", "dital", "ditas", "dited", "dites", "ditsy", "ditts", "ditzy", "divan", "divas", "dived", "dives", "divis", "divna", "divos", "divot", "divvy", "diwan", "dixie", "dixit", "diyas", "dizen", "djinn", "djins", "doabs", "doats", "dobby", "dobes", "dobie", "dobla", "dobra", "dobro", "docht", "docks", "docos", "docus", "doddy", "dodos", "doeks", "doers", "doest", "doeth", "doffs", "dogan", "doges", "dogey", "doggo", "doggy", "dogie", "dohyo", "doilt", "doily", "doits", "dojos", "dolce", "dolci", "doled", "doles", "dolia", "dolls", "dolma", "dolor", "dolos", "dolts", "domal", "domed", "domes", "domic", "donah", "donas", "donee", "doner", "donga", "dongs", "donko", "donna", "donne", "donny", "donsy", "doobs", "dooce", "doody", "dooks", "doole", "dools", "dooly", "dooms", "doomy", "doona", "doorn", "doors", "doozy", "dopas", "doped", "doper", "dopes", "dorad", "dorba", "dorbs", "doree", "dores", "doric", "doris", "dorks", "dorky", "dorms", "dormy", "dorps", "dorrs", "dorsa", "dorse", "dorts", "dorty", "dosai", "dosas", "dosed", "doseh", "doser", "doses", "dosha", "dotal", "doted", "doter", "dotes", "dotty", "douar", "douce", "doucs", "douks", "doula", "douma", "doums", "doups", "doura", "douse", "douts", "doved", "doven", "dover", "doves", "dovie", "dowar", "dowds", "dowed", "dower", "dowie", "dowle", "dowls", "dowly", "downa", "downs", "dowps", "dowse", "dowts", "doxed", "doxes", "doxie", "doyen", "doyly", "dozed", "dozer", "dozes", "drabs", "drack", "draco", "draff", "drags", "drail", "drams", "drant", "draps", "drats", "drave", "draws", "drays", "drear", "dreck", "dreed", "dreer", "drees", "dregs", "dreks", "drent", "drere", "drest", "dreys", "dribs", "drice", "dries", "drily", "drips", "dript", "droid", "droil", "droke", "drole", "drome", "drony", "droob", "droog", "drook", "drops", "dropt", "drouk", "drows", "drubs", "drugs", "drums", "drupe", "druse", "drusy", "druxy", "dryad", "dryas", "dsobo", "dsomo", "duads", "duals", "duans", "duars", "dubbo", "ducal", "ducat", "duces", "ducks", "ducky", "ducts", "duddy", "duded", "dudes", "duels", "duets", "duett", "duffs", "dufus", "duing", "duits", "dukas", "duked", "dukes", "dukka", "dulce", "dules", "dulia", "dulls", "dulse", "dumas", "dumbo", "dumbs", "dumka", "dumky", "dumps", "dunam", "dunch", "dunes", "dungs", "dungy", "dunks", "dunno", "dunny", "dunsh", "dunts", "duomi", "duomo", "duped", "duper", "dupes", "duple", "duply", "duppy", "dural", "duras", "dured", "dures", "durgy", "durns", "duroc", "duros", "duroy", "durra", "durrs", "durry", "durst", "durum", "durzi", "dusks", "dusts", "duxes", "dwaal", "dwale", "dwalm", "dwams", "dwang", "dwaum", "dweeb", "dwile", "dwine", "dyads", "dyers", "dyked", "dykes", "dykey", "dykon", "dynel", "dynes", "dzhos", "eagre", "ealed", "eales", "eaned", "eards", "eared", "earls", "earns", "earnt", "earst", "eased", "easer", "eases", "easle", "easts", "eathe", "eaved", "eaves", "ebbed", "ebbet", "ebons", "ebook", "ecads", "eched", "eches", "echos", "ecrus", "edema", "edged", "edger", "edges", "edile", "edits", "educe", "educt", "eejit", "eensy", "eeven", "eevns", "effed", "egads", "egers", "egest", "eggar", "egged", "egger", "egmas", "ehing", "eider", "eidos", "eigne", "eiked", "eikon", "eilds", "eisel", "ejido", "ekkas", "elain", "eland", "elans", "elchi", "eldin", "elemi", "elfed", "eliad", "elint", "elmen", "eloge", "elogy", "eloin", "elops", "elpee", "elsin", "elute", "elvan", "elven", "elver", "elves", "emacs", "embar", "embay", "embog", "embow", "embox", "embus", "emeer", "emend", "emerg", "emery", "emeus", "emics", "emirs", "emits", "emmas", "emmer", "emmet", "emmew", "emmys", "emoji", "emong", "emote", "emove", "empts", "emule", "emure", "emyde", "emyds", "enarm", "enate", "ended", "ender", "endew", "endue", "enews", "enfix", "eniac", "enlit", "enmew", "ennog", "enoki", "enols", "enorm", "enows", "enrol", "ensew", "ensky", "entia", "enure", "enurn", "envoi", "enzym", "eorls", "eosin", "epact", "epees", "ephah", "ephas", "ephod", "ephor", "epics", "epode", "epopt", "epris", "eques", "equid", "erbia", "erevs", "ergon", "ergos", "ergot", "erhus", "erica", "erick", "erics", "ering", "erned", "ernes", "erose", "erred", "erses", "eruct", "erugo", "eruvs", "erven", "ervil", "escar", "escot", "esile", "eskar", "esker", "esnes", "esses", "estoc", "estop", "estro", "etage", "etape", "etats", "etens", "ethal", "ethne", "ethyl", "etics", "etnas", "ettin", "ettle", "etuis", "etwee", "etyma", "eughs", "euked", "eupad", "euros", "eusol", "evens", "evert", "evets", "evhoe", "evils", "evite", "evohe", "ewers", "ewest", "ewhow", "ewked", "exams", "exeat", "execs", "exeem", "exeme", "exfil", "exies", "exine", "exing", "exits", "exode", "exome", "exons", "expat", "expos", "exude", "exuls", "exurb", "eyass", "eyers", "eyots", "eyras", "eyres", "eyrie", "eyrir", "ezine", "fabby", "faced", "facer", "faces", "facia", "facta", "facts", "faddy", "faded", "fader", "fades", "fadge", "fados", "faena", "faery", "faffs", "faffy", "faggy", "fagin", "fagot", "faiks", "fails", "faine", "fains", "fairs", "faked", "faker", "fakes", "fakey", "fakie", "fakir", "falaj", "falls", "famed", "fames", "fanal", "fands", "fanes", "fanga", "fango", "fangs", "fanks", "fanon", "fanos", "fanum", "faqir", "farad", "farci", "farcy", "fards", "fared", "farer", "fares", "farle", "farls", "farms", "faros", "farro", "farse", "farts", "fasci", "fasti", "fasts", "fated", "fates", "fatly", "fatso", "fatwa", "faugh", "fauld", "fauns", "faurd", "fauts", "fauve", "favas", "favel", "faver", "faves", "favus", "fawns", "fawny", "faxed", "faxes", "fayed", "fayer", "fayne", "fayre", "fazed", "fazes", "feals", "feare", "fears", "feart", "fease", "feats", "feaze", "feces", "fecht", "fecit", "fecks", "fedex", "feebs", "feeds", "feels", "feens", "feers", "feese", "feeze", "fehme", "feint", "feist", "felch", "felid", "fells", "felly", "felts", "felty", "femal", "femes", "femmy", "fends", "fendy", "fenis", "fenks", "fenny", "fents", "feods", "feoff", "ferer", "feres", "feria", "ferly", "fermi", "ferms", "ferns", "ferny", "fesse", "festa", "fests", "festy", "fetas", "feted", "fetes", "fetor", "fetta", "fetts", "fetwa", "feuar", "feuds", "feued", "feyed", "feyer", "feyly", "fezes", "fezzy", "fiars", "fiats", "fibro", "fices", "fiche", "fichu", "ficin", "ficos", "fides", "fidge", "fidos", "fiefs", "fient", "fiere", "fiers", "fiest", "fifed", "fifer", "fifes", "fifis", "figgy", "figos", "fiked", "fikes", "filar", "filch", "filed", "files", "filii", "filks", "fille", "fillo", "fills", "filmi", "films", "filos", "filum", "finca", "finds", "fined", "fines", "finis", "finks", "finny", "finos", "fiord", "fiqhs", "fique", "fired", "firer", "fires", "firie", "firks", "firms", "firns", "firry", "firth", "fiscs", "fisks", "fists", "fisty", "fitch", "fitly", "fitna", "fitte", "fitts", "fiver", "fives", "fixed", "fixes", "fixit", "fjeld", "flabs", "flaff", "flags", "flaks", "flamm", "flams", "flamy", "flane", "flans", "flaps", "flary", "flats", "flava", "flawn", "flaws", "flawy", "flaxy", "flays", "fleam", "fleas", "fleek", "fleer", "flees", "flegs", "fleme", "fleur", "flews", "flexi", "flexo", "fleys", "flics", "flied", "flies", "flimp", "flims", "flips", "flirs", "flisk", "flite", "flits", "flitt", "flobs", "flocs", "floes", "flogs", "flong", "flops", "flors", "flory", "flosh", "flota", "flote", "flows", "flubs", "flued", "flues", "fluey", "fluky", "flump", "fluor", "flurr", "fluty", "fluyt", "flyby", "flype", "flyte", "foals", "foams", "foehn", "fogey", "fogie", "fogle", "fogou", "fohns", "foids", "foils", "foins", "folds", "foley", "folia", "folic", "folie", "folks", "folky", "fomes", "fonda", "fonds", "fondu", "fones", "fonly", "fonts", "foods", "foody", "fools", "foots", "footy", "foram", "forbs", "forby", "fordo", "fords", "forel", "fores", "forex", "forks", "forky", "forme", "forms", "forts", "forza", "forze", "fossa", "fosse", "fouat", "fouds", "fouer", "fouet", "foule", "fouls", "fount", "fours", "fouth", "fovea", "fowls", "fowth", "foxed", "foxes", "foxie", "foyle", "foyne", "frabs", "frack", "fract", "frags", "fraim", "franc", "frape", "fraps", "frass", "frate", "frati", "frats", "fraus", "frays", "frees", "freet", "freit", "fremd", "frena", "freon", "frere", "frets", "fribs", "frier", "fries", "frigs", "frise", "frist", "frith", "frits", "fritt", "frize", "frizz", "froes", "frogs", "frons", "frore", "frorn", "frory", "frosh", "frows", "frowy", "frugs", "frump", "frush", "frust", "fryer", "fubar", "fubby", "fubsy", "fucks", "fucus", "fuddy", "fudgy", "fuels", "fuero", "fuffs", "fuffy", "fugal", "fuggy", "fugie", "fugio", "fugle", "fugly", "fugus", "fujis", "fulls", "fumed", "fumer", "fumes", "fumet", "fundi", "funds", "fundy", "fungo", "fungs", "funks", "fural", "furan", "furca", "furls", "furol", "furrs", "furth", "furze", "furzy", "fused", "fusee", "fusel", "fuses", "fusil", "fusks", "fusts", "fusty", "futon", "fuzed", "fuzee", "fuzes", "fuzil", "fyces", "fyked", "fykes", "fyles", "fyrds", "fytte", "gabba", "gabby", "gable", "gaddi", "gades", "gadge", "gadid", "gadis", "gadje", "gadjo", "gadso", "gaffs", "gaged", "gager", "gages", "gaids", "gains", "gairs", "gaita", "gaits", "gaitt", "gajos", "galah", "galas", "galax", "galea", "galed", "gales", "galls", "gally", "galop", "galut", "galvo", "gamas", "gamay", "gamba", "gambe", "gambo", "gambs", "gamed", "games", "gamey", "gamic", "gamin", "gamme", "gammy", "gamps", "ganch", "gandy", "ganef", "ganev", "gangs", "ganja", "ganof", "gants", "gaols", "gaped", "gaper", "gapes", "gapos", "gappy", "garbe", "garbo", "garbs", "garda", "gares", "garis", "garms", "garni", "garre", "garth", "garum", "gases", "gasps", "gaspy", "gasts", "gatch", "gated", "gater", "gates", "gaths", "gator", "gauch", "gaucy", "gauds", "gauje", "gault", "gaums", "gaumy", "gaups", "gaurs", "gauss", "gauzy", "gavot", "gawcy", "gawds", "gawks", "gawps", "gawsy", "gayal", "gazal", "gazar", "gazed", "gazes", "gazon", "gazoo", "geals", "geans", "geare", "gears", "geats", "gebur", "gecks", "geeks", "geeps", "geest", "geist", "geits", "gelds", "gelee", "gelid", "gelly", "gelts", "gemel", "gemma", "gemmy", "gemot", "genal", "genas", "genes", "genet", "genic", "genii", "genip", "genny", "genoa", "genom", "genro", "gents", "genty", "genua", "genus", "geode", "geoid", "gerah", "gerbe", "geres", "gerle", "germs", "germy", "gerne", "gesse", "gesso", "geste", "gests", "getas", "getup", "geums", "geyan", "geyer", "ghast", "ghats", "ghaut", "ghazi", "ghees", "ghest", "ghyll", "gibed", "gibel", "giber", "gibes", "gibli", "gibus", "gifts", "gigas", "gighe", "gigot", "gigue", "gilas", "gilds", "gilet", "gills", "gilly", "gilpy", "gilts", "gimel", "gimme", "gimps", "gimpy", "ginch", "ginge", "gings", "ginks", "ginny", "ginzo", "gipon", "gippo", "gippy", "girds", "girls", "girns", "giron", "giros", "girrs", "girsh", "girts", "gismo", "gisms", "gists", "gitch", "gites", "giust", "gived", "gives", "gizmo", "glace", "glads", "glady", "glaik", "glair", "glams", "glans", "glary", "glaum", "glaur", "glazy", "gleba", "glebe", "gleby", "glede", "gleds", "gleed", "gleek", "glees", "gleet", "gleis", "glens", "glent", "gleys", "glial", "glias", "glibs", "gliff", "glift", "glike", "glime", "glims", "glisk", "glits", "glitz", "gloam", "globi", "globs", "globy", "glode", "glogg", "gloms", "gloop", "glops", "glost", "glout", "glows", "gloze", "glued", "gluer", "glues", "gluey", "glugs", "glume", "glums", "gluon", "glute", "gluts", "gnarl", "gnarr", "gnars", "gnats", "gnawn", "gnaws", "gnows", "goads", "goafs", "goals", "goary", "goats", "goaty", "goban", "gobar", "gobbi", "gobbo", "gobby", "gobis", "gobos", "godet", "godso", "goels", "goers", "goest", "goeth", "goety", "gofer", "goffs", "gogga", "gogos", "goier", "gojis", "golds", "goldy", "goles", "golfs", "golpe", "golps", "gombo", "gomer", "gompa", "gonch", "gonef", "gongs", "gonia", "gonif", "gonks", "gonna", "gonof", "gonys", "gonzo", "gooby", "goods", "goofs", "googs", "gooks", "gooky", "goold", "gools", "gooly", "goons", "goony", "goops", "goopy", "goors", "goory", "goosy", "gopak", "gopik", "goral", "goras", "gored", "gores", "goris", "gorms", "gormy", "gorps", "gorse", "gorsy", "gosht", "gosse", "gotch", "goths", "gothy", "gotta", "gouch", "gouks", "goura", "gouts", "gouty", "gowan", "gowds", "gowfs", "gowks", "gowls", "gowns", "goxes", "goyim", "goyle", "graal", "grabs", "grads", "graff", "graip", "grama", "grame", "gramp", "grams", "grana", "grans", "grapy", "gravs", "grays", "grebe", "grebo", "grece", "greek", "grees", "grege", "grego", "grein", "grens", "grese", "greve", "grews", "greys", "grice", "gride", "grids", "griff", "grift", "grigs", "grike", "grins", "griot", "grips", "gript", "gripy", "grise", "grist", "grisy", "grith", "grits", "grize", "groat", "grody", "grogs", "groks", "groma", "grone", "groof", "grosz", "grots", "grouf", "grovy", "grows", "grrls", "grrrl", "grubs", "grued", "grues", "grufe", "grume", "grump", "grund", "gryce", "gryde", "gryke", "grype", "grypt", "guaco", "guana", "guano", "guans", "guars", "gucks", "gucky", "gudes", "guffs", "gugas", "guids", "guimp", "guiro", "gulag", "gular", "gulas", "gules", "gulet", "gulfs", "gulfy", "gulls", "gulph", "gulps", "gulpy", "gumma", "gummi", "gumps", "gundy", "gunge", "gungy", "gunks", "gunky", "gunny", "guqin", "gurdy", "gurge", "gurls", "gurly", "gurns", "gurry", "gursh", "gurus", "gushy", "gusla", "gusle", "gusli", "gussy", "gusts", "gutsy", "gutta", "gutty", "guyed", "guyle", "guyot", "guyse", "gwine", "gyals", "gyans", "gybed", "gybes", "gyeld", "gymps", "gynae", "gynie", "gynny", "gynos", "gyoza", "gypos", "gyppo", "gyppy", "gyral", "gyred", "gyres", "gyron", "gyros", "gyrus", "gytes", "gyved", "gyves", "haafs", "haars", "hable", "habus", "hacek", "hacks", "hadal", "haded", "hades", "hadji", "hadst", "haems", "haets", "haffs", "hafiz", "hafts", "haggs", "hahas", "haick", "haika", "haiks", "haiku", "hails", "haily", "hains", "haint", "hairs", "haith", "hajes", "hajis", "hajji", "hakam", "hakas", "hakea", "hakes", "hakim", "hakus", "halal", "haled", "haler", "hales", "halfa", "halfs", "halid", "hallo", "halls", "halma", "halms", "halon", "halos", "halse", "halts", "halva", "halwa", "hamal", "hamba", "hamed", "hames", "hammy", "hamza", "hanap", "hance", "hanch", "hands", "hangi", "hangs", "hanks", "hanky", "hansa", "hanse", "hants", "haole", "haoma", "hapax", "haply", "happi", "hapus", "haram", "hards", "hared", "hares", "harim", "harks", "harls", "harms", "harns", "haros", "harps", "harts", "hashy", "hasks", "hasps", "hasta", "hated", "hates", "hatha", "hauds", "haufs", "haugh", "hauld", "haulm", "hauls", "hault", "hauns", "hause", "haver", "haves", "hawed", "hawks", "hawms", "hawse", "hayed", "hayer", "hayey", "hayle", "hazan", "hazed", "hazer", "hazes", "heads", "heald", "heals", "heame", "heaps", "heapy", "heare", "hears", "heast", "heats", "heben", "hebes", "hecht", "hecks", "heder", "hedgy", "heeds", "heedy", "heels", "heeze", "hefte", "hefts", "heids", "heigh", "heils", "heirs", "hejab", "hejra", "heled", "heles", "helio", "hells", "helms", "helos", "helot", "helps", "helve", "hemal", "hemes", "hemic", "hemin", "hemps", "hempy", "hench", "hends", "henge", "henna", "henny", "henry", "hents", "hepar", "herbs", "herby", "herds", "heres", "herls", "herma", "herms", "herns", "heros", "herry", "herse", "hertz", "herye", "hesps", "hests", "hetes", "heths", "heuch", "heugh", "hevea", "hewed", "hewer", "hewgh", "hexad", "hexed", "hexer", "hexes", "hexyl", "heyed", "hiant", "hicks", "hided", "hider", "hides", "hiems", "highs", "hight", "hijab", "hijra", "hiked", "hiker", "hikes", "hikoi", "hilar", "hilch", "hillo", "hills", "hilts", "hilum", "hilus", "himbo", "hinau", "hinds", "hings", "hinky", "hinny", "hints", "hiois", "hiply", "hired", "hiree", "hirer", "hires", "hissy", "hists", "hithe", "hived", "hiver", "hives", "hizen", "hoaed", "hoagy", "hoars", "hoary", "hoast", "hobos", "hocks", "hocus", "hodad", "hodja", "hoers", "hogan", "hogen", "hoggs", "hoghs", "hohed", "hoick", "hoied", "hoiks", "hoing", "hoise", "hokas", "hoked", "hokes", "hokey", "hokis", "hokku", "hokum", "holds", "holed", "holes", "holey", "holks", "holla", "hollo", "holme", "holms", "holon", "holos", "holts", "homas", "homed", "homes", "homey", "homie", "homme", "homos", "honan", "honda", "honds", "honed", "honer", "hones", "hongi", "hongs", "honks", "honky", "hooch", "hoods", "hoody", "hooey", "hoofs", "hooka", "hooks", "hooky", "hooly", "hoons", "hoops", "hoord", "hoors", "hoosh", "hoots", "hooty", "hoove", "hopak", "hoped", "hoper", "hopes", "hoppy", "horah", "horal", "horas", "horis", "horks", "horme", "horns", "horst", "horsy", "hosed", "hosel", "hosen", "hoser", "hoses", "hosey", "hosta", "hosts", "hotch", "hoten", "hotty", "houff", "houfs", "hough", "houri", "hours", "houts", "hovea", "hoved", "hoven", "hoves", "howbe", "howes", "howff", "howfs", "howks", "howls", "howre", "howso", "hoxed", "hoxes", "hoyas", "hoyed", "hoyle", "hubby", "hucks", "hudna", "hudud", "huers", "huffs", "huffy", "huger", "huggy", "huhus", "huias", "hulas", "hules", "hulks", "hulky", "hullo", "hulls", "hully", "humas", "humfs", "humic", "humps", "humpy", "hunks", "hunts", "hurds", "hurls", "hurly", "hurra", "hurst", "hurts", "hushy", "husks", "husos", "hutia", "huzza", "huzzy", "hwyls", "hydra", "hyens", "hygge", "hying", "hykes", "hylas", "hyleg", "hyles", "hylic", "hymns", "hynde", "hyoid", "hyped", "hypes", "hypha", "hyphy", "hypos", "hyrax", "hyson", "hythe", "iambi", "iambs", "ibrik", "icers", "iched", "iches", "ichor", "icier", "icker", "ickle", "icons", "ictal", "ictic", "ictus", "idant", "ideas", "idees", "ident", "idled", "idles", "idola", "idols", "idyls", "iftar", "igapo", "igged", "iglus", "ihram", "ikans", "ikats", "ikons", "ileac", "ileal", "ileum", "ileus", "iliad", "ilial", "ilium", "iller", "illth", "imago", "imams", "imari", "imaum", "imbar", "imbed", "imide", "imido", "imids", "imine", "imino", "immew", "immit", "immix", "imped", "impis", "impot", "impro", "imshi", "imshy", "inapt", "inarm", "inbye", "incel", "incle", "incog", "incus", "incut", "indew", "india", "indie", "indol", "indow", "indri", "indue", "inerm", "infix", "infos", "infra", "ingan", "ingle", "inion", "inked", "inker", "inkle", "inned", "innit", "inorb", "inrun", "inset", "inspo", "intel", "intil", "intis", "intra", "inula", "inure", "inurn", "inust", "invar", "inwit", "iodic", "iodid", "iodin", "iotas", "ippon", "irade", "irids", "iring", "irked", "iroko", "irone", "irons", "isbas", "ishes", "isled", "isles", "isnae", "issei", "istle", "items", "ither", "ivied", "ivies", "ixias", "ixnay", "ixora", "ixtle", "izard", "izars", "izzat", "jaaps", "jabot", "jacal", "jacks", "jacky", "jaded", "jades", "jafas", "jaffa", "jagas", "jager", "jaggs", "jaggy", "jagir", "jagra", "jails", "jaker", "jakes", "jakey", "jalap", "jalop", "jambe", "jambo", "jambs", "jambu", "james", "jammy", "jamon", "janes", "janns", "janny", "janty", "japan", "japed", "japer", "japes", "jarks", "jarls", "jarps", "jarta", "jarul", "jasey", "jaspe", "jasps", "jatos", "jauks", "jaups", "javas", "javel", "jawan", "jawed", "jaxie", "jeans", "jeats", "jebel", "jedis", "jeels", "jeely", "jeeps", "jeers", "jeeze", "jefes", "jeffs", "jehad", "jehus", "jelab", "jello", "jells", "jembe", "jemmy", "jenny", "jeons", "jerid", "jerks", "jerry", "jesse", "jests", "jesus", "jetes", "jeton", "jeune", "jewed", "jewie", "jhala", "jiaos", "jibba", "jibbs", "jibed", "jiber", "jibes", "jiffs", "jiggy", "jigot", "jihad", "jills", "jilts", "jimmy", "jimpy", "jingo", "jinks", "jinne", "jinni", "jinns", "jirds", "jirga", "jirre", "jisms", "jived", "jiver", "jives", "jivey", "jnana", "jobed", "jobes", "jocko", "jocks", "jocky", "jocos", "jodel", "joeys", "johns", "joins", "joked", "jokes", "jokey", "jokol", "joled", "joles", "jolls", "jolts", "jolty", "jomon", "jomos", "jones", "jongs", "jonty", "jooks", "joram", "jorum", "jotas", "jotty", "jotun", "joual", "jougs", "jouks", "joule", "jours", "jowar", "jowed", "jowls", "jowly", "joyed", "jubas", "jubes", "jucos", "judas", "judgy", "judos", "jugal", "jugum", "jujus", "juked", "jukes", "jukus", "julep", "jumar", "jumby", "jumps", "junco", "junks", "junky", "jupes", "jupon", "jural", "jurat", "jurel", "jures", "justs", "jutes", "jutty", "juves", "juvie", "kaama", "kabab", "kabar", "kabob", "kacha", "kacks", "kadai", "kades", "kadis", "kafir", "kagos", "kagus", "kahal", "kaiak", "kaids", "kaies", "kaifs", "kaika", "kaiks", "kails", "kaims", "kaing", "kains", "kakas", "kakis", "kalam", "kales", "kalif", "kalis", "kalpa", "kamas", "kames", "kamik", "kamis", "kamme", "kanae", "kanas", "kandy", "kaneh", "kanes", "kanga", "kangs", "kanji", "kants", "kanzu", "kaons", "kapas", "kaphs", "kapok", "kapow", "kapus", "kaput", "karas", "karat", "karks", "karns", "karoo", "karos", "karri", "karst", "karsy", "karts", "karzy", "kasha", "kasme", "katal", "katas", "katis", "katti", "kaugh", "kauri", "kauru", "kaury", "kaval", "kavas", "kawas", "kawau", "kawed", "kayle", "kayos", "kazis", "kazoo", "kbars", "kebar", "kebob", "kecks", "kedge", "kedgy", "keech", "keefs", "keeks", "keels", "keema", "keeno", "keens", "keeps", "keets", "keeve", "kefir", "kehua", "keirs", "kelep", "kelim", "kells", "kelly", "kelps", "kelpy", "kelts", "kelty", "kembo", "kembs", "kemps", "kempt", "kempy", "kenaf", "kench", "kendo", "kenos", "kente", "kents", "kepis", "kerbs", "kerel", "kerfs", "kerky", "kerma", "kerne", "kerns", "keros", "kerry", "kerve", "kesar", "kests", "ketas", "ketch", "ketes", "ketol", "kevel", "kevil", "kexes", "keyed", "keyer", "khadi", "khafs", "khans", "khaph", "khats", "khaya", "khazi", "kheda", "kheth", "khets", "khoja", "khors", "khoum", "khuds", "kiaat", "kiack", "kiang", "kibbe", "kibbi", "kibei", "kibes", "kibla", "kicks", "kicky", "kiddo", "kiddy", "kidel", "kidge", "kiefs", "kiers", "kieve", "kievs", "kight", "kikes", "kikoi", "kiley", "kilim", "kills", "kilns", "kilos", "kilps", "kilts", "kilty", "kimbo", "kinas", "kinda", "kinds", "kindy", "kines", "kings", "kinin", "kinks", "kinos", "kiore", "kipes", "kippa", "kipps", "kirby", "kirks", "kirns", "kirri", "kisan", "kissy", "kists", "kited", "kiter", "kites", "kithe", "kiths", "kitul", "kivas", "kiwis", "klang", "klaps", "klett", "klick", "klieg", "kliks", "klong", "kloof", "kluge", "klutz", "knags", "knaps", "knarl", "knars", "knaur", "knawe", "knees", "knell", "knish", "knits", "knive", "knobs", "knops", "knosp", "knots", "knout", "knowe", "knows", "knubs", "knurl", "knurr", "knurs", "knuts", "koans", "koaps", "koban", "kobos", "koels", "koffs", "kofta", "kogal", "kohas", "kohen", "kohls", "koine", "kojis", "kokam", "kokas", "koker", "kokra", "kokum", "kolas", "kolos", "kombu", "konbu", "kondo", "konks", "kooks", "kooky", "koori", "kopek", "kophs", "kopje", "koppa", "korai", "koras", "korat", "kores", "korma", "koros", "korun", "korus", "koses", "kotch", "kotos", "kotow", "koura", "kraal", "krabs", "kraft", "krais", "krait", "krang", "krans", "kranz", "kraut", "krays", "kreep", "kreng", "krewe", "krona", "krone", "kroon", "krubi", "krunk", "ksars", "kubie", "kudos", "kudus", "kudzu", "kufis", "kugel", "kuias", "kukri", "kukus", "kulak", "kulan", "kulas", "kulfi", "kumis", "kumys", "kuris", "kurre", "kurta", "kurus", "kusso", "kutas", "kutch", "kutis", "kutus", "kuzus", "kvass", "kvell", "kwela", "kyack", "kyaks", "kyang", "kyars", "kyats", "kybos", "kydst", "kyles", "kylie", "kylin", "kylix", "kyloe", "kynde", "kynds", "kypes", "kyrie", "kytes", "kythe", "laari", "labda", "labia", "labis", "labra", "laced", "lacer", "laces", "lacet", "lacey", "lacks", "laddy", "laded", "lader", "lades", "laers", "laevo", "lagan", "lahal", "lahar", "laich", "laics", "laids", "laigh", "laika", "laiks", "laird", "lairs", "lairy", "laith", "laity", "laked", "laker", "lakes", "lakhs", "lakin", "laksa", "laldy", "lalls", "lamas", "lambs", "lamby", "lamed", "lamer", "lames", "lamia", "lammy", "lamps", "lanai", "lanas", "lanch", "lande", "lands", "lanes", "lanks", "lants", "lapin", "lapis", "lapje", "larch", "lards", "lardy", "laree", "lares", "largo", "laris", "larks", "larky", "larns", "larnt", "larum", "lased", "laser", "lases", "lassi", "lassu", "lassy", "lasts", "latah", "lated", "laten", "latex", "lathi", "laths", "lathy", "latke", "latus", "lauan", "lauch", "lauds", "laufs", "laund", "laura", "laval", "lavas", "laved", "laver", "laves", "lavra", "lavvy", "lawed", "lawer", "lawin", "lawks", "lawns", "lawny", "laxed", "laxer", "laxes", "laxly", "layed", "layin", "layup", "lazar", "lazed", "lazes", "lazos", "lazzi", "lazzo", "leads", "leady", "leafs", "leaks", "leams", "leans", "leany", "leaps", "leare", "lears", "leary", "leats", "leavy", "leaze", "leben", "leccy", "ledes", "ledgy", "ledum", "leear", "leeks", "leeps", "leers", "leese", "leets", "leeze", "lefte", "lefts", "leger", "leges", "legge", "leggo", "legit", "lehrs", "lehua", "leirs", "leish", "leman", "lemed", "lemel", "lemes", "lemma", "lemme", "lends", "lenes", "lengs", "lenis", "lenos", "lense", "lenti", "lento", "leone", "lepid", "lepra", "lepta", "lered", "leres", "lerps", "lesbo", "leses", "lests", "letch", "lethe", "letup", "leuch", "leuco", "leuds", "leugh", "levas", "levee", "leves", "levin", "levis", "lewis", "lexes", "lexis", "lezes", "lezza", "lezzy", "liana", "liane", "liang", "liard", "liars", "liart", "liber", "libra", "libri", "lichi", "licht", "licit", "licks", "lidar", "lidos", "liefs", "liens", "liers", "lieus", "lieve", "lifer", "lifes", "lifts", "ligan", "liger", "ligge", "ligne", "liked", "liker", "likes", "likin", "lills", "lilos", "lilts", "liman", "limas", "limax", "limba", "limbi", "limbs", "limby", "limed", "limen", "limes", "limey", "limma", "limns", "limos", "limpa", "limps", "linac", "linch", "linds", "lindy", "lined", "lines", "liney", "linga", "lings", "lingy", "linin", "links", "linky", "linns", "linny", "linos", "lints", "linty", "linum", "linux", "lions", "lipas", "lipes", "lipin", "lipos", "lippy", "liras", "lirks", "lirot", "lisks", "lisle", "lisps", "lists", "litai", "litas", "lited", "liter", "lites", "litho", "liths", "litre", "lived", "liven", "lives", "livor", "livre", "llano", "loach", "loads", "loafs", "loams", "loans", "loast", "loave", "lobar", "lobed", "lobes", "lobos", "lobus", "loche", "lochs", "locie", "locis", "locks", "locos", "locum", "loden", "lodes", "loess", "lofts", "logan", "loges", "loggy", "logia", "logie", "logoi", "logon", "logos", "lohan", "loids", "loins", "loipe", "loirs", "lokes", "lolls", "lolly", "lolog", "lomas", "lomed", "lomes", "loner", "longa", "longe", "longs", "looby", "looed", "looey", "loofa", "loofs", "looie", "looks", "looky", "looms", "loons", "loony", "loops", "loord", "loots", "loped", "loper", "lopes", "loppy", "loral", "loran", "lords", "lordy", "lorel", "lores", "loric", "loris", "losed", "losel", "losen", "loses", "lossy", "lotah", "lotas", "lotes", "lotic", "lotos", "lotsa", "lotta", "lotte", "lotto", "lotus", "loued", "lough", "louie", "louis", "louma", "lound", "louns", "loupe", "loups", "loure", "lours", "loury", "louts", "lovat", "loved", "loves", "lovey", "lovie", "lowan", "lowed", "lowes", "lownd", "lowne", "lowns", "lowps", "lowry", "lowse", "lowts", "loxed", "loxes", "lozen", "luach", "luaus", "lubed", "lubes", "lubra", "luces", "lucks", "lucre", "ludes", "ludic", "ludos", "luffa", "luffs", "luged", "luger", "luges", "lulls", "lulus", "lumas", "lumbi", "lumme", "lummy", "lumps", "lunas", "lunes", "lunet", "lungi", "lungs", "lunks", "lunts", "lupin", "lured", "lurer", "lures", "lurex", "lurgi", "lurgy", "lurks", "lurry", "lurve", "luser", "lushy", "lusks", "lusts", "lusus", "lutea", "luted", "luter", "lutes", "luvvy", "luxed", "luxer", "luxes", "lweis", "lyams", "lyard", "lyart", "lyase", "lycea", "lycee", "lycra", "lymes", "lynes", "lyres", "lysed", "lyses", "lysin", "lysis", "lysol", "lyssa", "lyted", "lytes", "lythe", "lytic", "lytta", "maaed", "maare", "maars", "mabes", "macas", "maced", "macer", "maces", "mache", "machi", "machs", "macks", "macle", "macon", "madge", "madid", "madre", "maerl", "mafic", "mages", "maggs", "magot", "magus", "mahoe", "mahua", "mahwa", "maids", "maiko", "maiks", "maile", "maill", "mails", "maims", "mains", "maire", "mairs", "maise", "maist", "makar", "makes", "makis", "makos", "malam", "malar", "malas", "malax", "males", "malic", "malik", "malis", "malls", "malms", "malmy", "malts", "malty", "malus", "malva", "malwa", "mamas", "mamba", "mamee", "mamey", "mamie", "manas", "manat", "mandi", "maneb", "maned", "maneh", "manes", "manet", "mangs", "manis", "manky", "manna", "manos", "manse", "manta", "manto", "manty", "manul", "manus", "mapau", "maqui", "marae", "marah", "maras", "marcs", "mardy", "mares", "marge", "margs", "maria", "marid", "marka", "marks", "marle", "marls", "marly", "marms", "maron", "maror", "marra", "marri", "marse", "marts", "marvy", "masas", "mased", "maser", "mases", "mashy", "masks", "massa", "massy", "masts", "masty", "masus", "matai", "mated", "mater", "mates", "maths", "matin", "matlo", "matte", "matts", "matza", "matzo", "mauby", "mauds", "mauls", "maund", "mauri", "mausy", "mauts", "mauzy", "maven", "mavie", "mavin", "mavis", "mawed", "mawks", "mawky", "mawns", "mawrs", "maxed", "maxes", "maxis", "mayan", "mayas", "mayed", "mayos", "mayst", "mazed", "mazer", "mazes", "mazey", "mazut", "mbira", "meads", "meals", "meane", "means", "meany", "meare", "mease", "meath", "meats", "mebos", "mechs", "mecks", "medii", "medle", "meeds", "meers", "meets", "meffs", "meins", "meint", "meiny", "meith", "mekka", "melas", "melba", "melds", "melic", "melik", "mells", "melts", "melty", "memes", "memos", "menad", "mends", "mened", "menes", "menge", "mengs", "mensa", "mense", "mensh", "menta", "mento", "menus", "meous", "meows", "merch", "mercs", "merde", "mered", "merel", "merer", "meres", "meril", "meris", "merks", "merle", "merls", "merse", "mesal", "mesas", "mesel", "meses", "meshy", "mesic", "mesne", "meson", "messy", "mesto", "meted", "metes", "metho", "meths", "metic", "metif", "metis", "metol", "metre", "meuse", "meved", "meves", "mewed", "mewls", "meynt", "mezes", "mezze", "mezzo", "mhorr", "miaou", "miaow", "miasm", "miaul", "micas", "miche", "micht", "micks", "micky", "micos", "micra", "middy", "midgy", "midis", "miens", "mieve", "miffs", "miffy", "mifty", "miggs", "mihas", "mihis", "miked", "mikes", "mikra", "mikva", "milch", "milds", "miler", "miles", "milfs", "milia", "milko", "milks", "mille", "mills", "milor", "milos", "milpa", "milts", "milty", "miltz", "mimed", "mimeo", "mimer", "mimes", "mimsy", "minae", "minar", "minas", "mincy", "minds", "mined", "mines", "minge", "mings", "mingy", "minis", "minke", "minks", "minny", "minos", "mints", "mired", "mires", "mirex", "mirid", "mirin", "mirks", "mirky", "mirly", "miros", "mirvs", "mirza", "misch", "misdo", "mises", "misgo", "misos", "missa", "mists", "misty", "mitch", "miter", "mites", "mitis", "mitre", "mitts", "mixed", "mixen", "mixer", "mixes", "mixte", "mixup", "mizen", "mizzy", "mneme", "moans", "moats", "mobby", "mobes", "mobey", "mobie", "moble", "mochi", "mochs", "mochy", "mocks", "moder", "modes", "modge", "modii", "modus", "moers", "mofos", "moggy", "mohel", "mohos", "mohrs", "mohua", "mohur", "moile", "moils", "moira", "moire", "moits", "mojos", "mokes", "mokis", "mokos", "molal", "molas", "molds", "moled", "moles", "molla", "molls", "molly", "molto", "molts", "molys", "momes", "momma", "mommy", "momus", "monad", "monal", "monas", "monde", "mondo", "moner", "mongo", "mongs", "monic", "monie", "monks", "monos", "monte", "monty", "moobs", "mooch", "moods", "mooed", "mooks", "moola", "mooli", "mools", "mooly", "moong", "moons", "moony", "moops", "moors", "moory", "moots", "moove", "moped", "moper", "mopes", "mopey", "moppy", "mopsy", "mopus", "morae", "moras", "morat", "moray", "morel", "mores", "moria", "morne", "morns", "morra", "morro", "morse", "morts", "mosed", "moses", "mosey", "mosks", "mosso", "moste", "mosts", "moted", "moten", "motes", "motet", "motey", "moths", "mothy", "motis", "motte", "motts", "motty", "motus", "motza", "mouch", "moues", "mould", "mouls", "moups", "moust", "mousy", "moved", "moves", "mowas", "mowed", "mowra", "moxas", "moxie", "moyas", "moyle", "moyls", "mozed", "mozes", "mozos", "mpret", "mucho", "mucic", "mucid", "mucin", "mucks", "mucor", "mucro", "mudge", "mudir", "mudra", "muffs", "mufti", "mugga", "muggs", "muggy", "muhly", "muids", "muils", "muirs", "muist", "mujik", "mulct", "muled", "mules", "muley", "mulga", "mulie", "mulla", "mulls", "mulse", "mulsh", "mumms", "mumps", "mumsy", "mumus", "munga", "munge", "mungo", "mungs", "munis", "munts", "muntu", "muons", "muras", "mured", "mures", "murex", "murid", "murks", "murls", "murly", "murra", "murre", "murri", "murrs", "murry", "murti", "murva", "musar", "musca", "mused", "muser", "muses", "muset", "musha", "musit", "musks", "musos", "musse", "mussy", "musth", "musts", "mutch", "muted", "muter", "mutes", "mutha", "mutis", "muton", "mutts", "muxed", "muxes", "muzak", "muzzy", "mvule", "myall", "mylar", "mynah", "mynas", "myoid", "myoma", "myope", "myops", "myopy", "mysid", "mythi", "myths", "mythy", "myxos", "mzees", "naams", "naans", "nabes", "nabis", "nabks", "nabla", "nabob", "nache", "nacho", "nacre", "nadas", "naeve", "naevi", "naffs", "nagas", "naggy", "nagor", "nahal", "naiad", "naifs", "naiks", "nails", "naira", "nairu", "naked", "naker", "nakfa", "nalas", "naled", "nalla", "named", "namer", "names", "namma", "namus", "nanas", "nance", "nancy", "nandu", "nanna", "nanos", "nanua", "napas", "naped", "napes", "napoo", "nappa", "nappe", "nappy", "naras", "narco", "narcs", "nards", "nares", "naric", "naris", "narks", "narky", "narre", "nashi", "natch", "nates", "natis", "natty", "nauch", "naunt", "navar", "naves", "navew", "navvy", "nawab", "nazes", "nazir", "nazis", "nduja", "neafe", "neals", "neaps", "nears", "neath", "neats", "nebek", "nebel", "necks", "neddy", "needs", "neeld", "neele", "neemb", "neems", "neeps", "neese", "neeze", "negro", "negus", "neifs", "neist", "neive", "nelis", "nelly", "nemas", "nemns", "nempt", "nenes", "neons", "neper", "nepit", "neral", "nerds", "nerka", "nerks", "nerol", "nerts", "nertz", "nervy", "nests", "netes", "netop", "netts", "netty", "neuks", "neume", "neums", "nevel", "neves", "nevus", "newbs", "newed", "newel", "newie", "newsy", "newts", "nexts", "nexus", "ngaio", "ngana", "ngati", "ngoma", "ngwee", "nicad", "nicht", "nicks", "nicol", "nidal", "nided", "nides", "nidor", "nidus", "niefs", "nieve", "nifes", "niffs", "niffy", "nifty", "niger", "nighs", "nihil", "nikab", "nikah", "nikau", "nills", "nimbi", "nimbs", "nimps", "niner", "nines", "ninon", "nipas", "nippy", "niqab", "nirls", "nirly", "nisei", "nisse", "nisus", "niter", "nites", "nitid", "niton", "nitre", "nitro", "nitry", "nitty", "nival", "nixed", "nixer", "nixes", "nixie", "nizam", "nkosi", "noahs", "nobby", "nocks", "nodal", "noddy", "nodes", "nodus", "noels", "noggs", "nohow", "noils", "noily", "noint", "noirs", "noles", "nolls", "nolos", "nomas", "nomen", "nomes", "nomic", "nomoi", "nomos", "nonas", "nonce", "nones", "nonet", "nongs", "nonis", "nonny", "nonyl", "noobs", "nooit", "nooks", "nooky", "noons", "noops", "nopal", "noria", "noris", "norks", "norma", "norms", "nosed", "noser", "noses", "notal", "noted", "noter", "notes", "notum", "nould", "noule", "nouls", "nouns", "nouny", "noups", "novae", "novas", "novum", "noway", "nowed", "nowls", "nowts", "nowty", "noxal", "noxes", "noyau", "noyed", "noyes", "nubby", "nubia", "nucha", "nuddy", "nuder", "nudes", "nudie", "nudzh", "nuffs", "nugae", "nuked", "nukes", "nulla", "nulls", "numbs", "numen", "nummy", "nunny", "nurds", "nurdy", "nurls", "nurrs", "nutso", "nutsy", "nyaff", "nyala", "nying", "nyssa", "oaked", "oaker", "oakum", "oared", "oases", "oasis", "oasts", "oaten", "oater", "oaths", "oaves", "obang", "obeah", "obeli", "obeys", "obias", "obied", "obiit", "obits", "objet", "oboes", "obole", "oboli", "obols", "occam", "ocher", "oches", "ochre", "ochry", "ocker", "ocrea", "octad", "octan", "octas", "octyl", "oculi", "odahs", "odals", "odeon", "odeum", "odism", "odist", "odium", "odors", "odour", "odyle", "odyls", "ofays", "offed", "offie", "oflag", "ofter", "ogams", "ogeed", "ogees", "oggin", "ogham", "ogive", "ogled", "ogler", "ogles", "ogmic", "ogres", "ohias", "ohing", "ohmic", "ohone", "oidia", "oiled", "oiler", "oinks", "oints", "ojime", "okapi", "okays", "okehs", "okras", "oktas", "oldie", "oleic", "olein", "olent", "oleos", "oleum", "olios", "ollas", "ollav", "oller", "ollie", "ology", "olpae", "olpes", "omasa", "omber", "ombus", "omens", "omers", "omits", "omlah", "omovs", "omrah", "oncer", "onces", "oncet", "oncus", "onely", "oners", "onery", "onium", "onkus", "onlay", "onned", "ontic", "oobit", "oohed", "oomph", "oonts", "ooped", "oorie", "ooses", "ootid", "oozed", "oozes", "opahs", "opals", "opens", "opepe", "oping", "oppos", "opsin", "opted", "opter", "orach", "oracy", "orals", "orang", "orant", "orate", "orbed", "orcas", "orcin", "ordos", "oread", "orfes", "orgia", "orgic", "orgue", "oribi", "oriel", "orixa", "orles", "orlon", "orlop", "ormer", "ornis", "orpin", "orris", "ortho", "orval", "orzos", "oscar", "oshac", "osier", "osmic", "osmol", "ossia", "ostia", "otaku", "otary", "ottar", "ottos", "oubit", "oucht", "ouens", "ouija", "oulks", "oumas", "oundy", "oupas", "ouped", "ouphe", "ouphs", "ourie", "ousel", "ousts", "outby", "outed", "outre", "outro", "outta", "ouzel", "ouzos", "ovals", "ovels", "ovens", "overs", "ovist", "ovoli", "ovolo", "ovule", "owche", "owies", "owled", "owler", "owlet", "owned", "owres", "owrie", "owsen", "oxbow", "oxers", "oxeye", "oxids", "oxies", "oxime", "oxims", "oxlip", "oxter", "oyers", "ozeki", "ozzie", "paals", "paans", "pacas", "paced", "pacer", "paces", "pacey", "pacha", "packs", "pacos", "pacta", "pacts", "padis", "padle", "padma", "padre", "padri", "paean", "paedo", "paeon", "paged", "pager", "pages", "pagle", "pagod", "pagri", "paiks", "pails", "pains", "paire", "pairs", "paisa", "paise", "pakka", "palas", "palay", "palea", "paled", "pales", "palet", "palis", "palki", "palla", "palls", "pally", "palms", "palmy", "palpi", "palps", "palsa", "pampa", "panax", "pance", "panda", "pands", "pandy", "paned", "panes", "panga", "pangs", "panim", "panko", "panne", "panni", "panto", "pants", "panty", "paoli", "paolo", "papas", "papaw", "papes", "pappi", "pappy", "parae", "paras", "parch", "pardi", "pards", "pardy", "pared", "paren", "pareo", "pares", "pareu", "parev", "parge", "pargo", "paris", "parki", "parks", "parky", "parle", "parly", "parma", "parol", "parps", "parra", "parrs", "parti", "parts", "parve", "parvo", "paseo", "pases", "pasha", "pashm", "paska", "paspy", "passe", "pasts", "pated", "paten", "pater", "pates", "paths", "patin", "patka", "patly", "patte", "patus", "pauas", "pauls", "pavan", "paved", "paven", "paver", "paves", "pavid", "pavin", "pavis", "pawas", "pawaw", "pawed", "pawer", "pawks", "pawky", "pawls", "pawns", "paxes", "payed", "payor", "paysd", "peage", "peags", "peaks", "peaky", "peals", "peans", "peare", "pears", "peart", "pease", "peats", "peaty", "peavy", "peaze", "pebas", "pechs", "pecke", "pecks", "pecky", "pedes", "pedis", "pedro", "peece", "peeks", "peels", "peens", "peeoy", "peepe", "peeps", "peers", "peery", "peeve", "peggy", "peghs", "peins", "peise", "peize", "pekan", "pekes", "pekin", "pekoe", "pelas", "pelau", "peles", "pelfs", "pells", "pelma", "pelon", "pelta", "pelts", "pends", "pendu", "pened", "penes", "pengo", "penie", "penis", "penks", "penna", "penni", "pents", "peons", "peony", "pepla", "pepos", "peppy", "pepsi", "perai", "perce", "percs", "perdu", "perdy", "perea", "peres", "peris", "perks", "perms", "perns", "perog", "perps", "perry", "perse", "perst", "perts", "perve", "pervo", "pervs", "pervy", "pesos", "pests", "pesty", "petar", "peter", "petit", "petre", "petri", "petti", "petto", "pewee", "pewit", "peyse", "phage", "phang", "phare", "pharm", "pheer", "phene", "pheon", "phese", "phial", "phish", "phizz", "phlox", "phoca", "phono", "phons", "phots", "phpht", "phuts", "phyla", "phyle", "piani", "pians", "pibal", "pical", "picas", "piccy", "picks", "picot", "picra", "picul", "piend", "piers", "piert", "pieta", "piets", "piezo", "pight", "pigmy", "piing", "pikas", "pikau", "piked", "piker", "pikes", "pikey", "pikis", "pikul", "pilae", "pilaf", "pilao", "pilar", "pilau", "pilaw", "pilch", "pilea", "piled", "pilei", "piler", "piles", "pilis", "pills", "pilow", "pilum", "pilus", "pimas", "pimps", "pinas", "pined", "pines", "pingo", "pings", "pinko", "pinks", "pinna", "pinny", "pinon", "pinot", "pinta", "pints", "pinup", "pions", "piony", "pious", "pioye", "pioys", "pipal", "pipas", "piped", "pipes", "pipet", "pipis", "pipit", "pippy", "pipul", "pirai", "pirls", "pirns", "pirog", "pisco", "pises", "pisky", "pisos", "pissy", "piste", "pitas", "piths", "piton", "pitot", "pitta", "piums", "pixes", "pized", "pizes", "plaas", "plack", "plage", "plans", "plaps", "plash", "plasm", "plast", "plats", "platt", "platy", "playa", "plays", "pleas", "plebe", "plebs", "plena", "pleon", "plesh", "plews", "plica", "plies", "plims", "pling", "plink", "ploat", "plods", "plong", "plonk", "plook", "plops", "plots", "plotz", "plouk", "plows", "ploye", "ploys", "plues", "pluff", "plugs", "plums", "plumy", "pluot", "pluto", "plyer", "poach", "poaka", "poake", "poboy", "pocks", "pocky", "podal", "poddy", "podex", "podge", "podgy", "podia", "poems", "poeps", "poets", "pogey", "pogge", "pogos", "pohed", "poilu", "poind", "pokal", "poked", "pokes", "pokey", "pokie", "poled", "poler", "poles", "poley", "polio", "polis", "polje", "polks", "polls", "polly", "polos", "polts", "polys", "pombe", "pomes", "pommy", "pomos", "pomps", "ponce", "poncy", "ponds", "pones", "poney", "ponga", "pongo", "pongs", "pongy", "ponks", "ponts", "ponty", "ponzu", "poods", "pooed", "poofs", "poofy", "poohs", "pooja", "pooka", "pooks", "pools", "poons", "poops", "poopy", "poori", "poort", "poots", "poove", "poovy", "popes", "poppa", "popsy", "porae", "poral", "pored", "porer", "pores", "porge", "porgy", "porin", "porks", "porky", "porno", "porns", "porny", "porta", "ports", "porty", "posed", "poses", "posey", "posho", "posts", "potae", "potch", "poted", "potes", "potin", "potoo", "potsy", "potto", "potts", "potty", "pouff", "poufs", "pouke", "pouks", "poule", "poulp", "poult", "poupe", "poupt", "pours", "pouts", "powan", "powin", "pownd", "powns", "powny", "powre", "poxed", "poxes", "poynt", "poyou", "poyse", "pozzy", "praam", "prads", "prahu", "prams", "prana", "prang", "praos", "prase", "prate", "prats", "pratt", "praty", "praus", "prays", "predy", "preed", "prees", "preif", "prems", "premy", "prent", "preon", "preop", "preps", "presa", "prese", "prest", "preve", "prexy", "preys", "prial", "pricy", "prief", "prier", "pries", "prigs", "prill", "prima", "primi", "primp", "prims", "primy", "prink", "prion", "prise", "priss", "proas", "probs", "prods", "proem", "profs", "progs", "proin", "proke", "prole", "proll", "promo", "proms", "pronk", "props", "prore", "proso", "pross", "prost", "prosy", "proto", "proul", "prows", "proyn", "prunt", "pruta", "pryer", "pryse", "pseud", "pshaw", "psion", "psoae", "psoai", "psoas", "psora", "psych", "psyop", "pubco", "pubes", "pubis", "pucan", "pucer", "puces", "pucka", "pucks", "puddy", "pudge", "pudic", "pudor", "pudsy", "pudus", "puers", "puffa", "puffs", "puggy", "pugil", "puhas", "pujah", "pujas", "pukas", "puked", "puker", "pukes", "pukey", "pukka", "pukus", "pulao", "pulas", "puled", "puler", "pules", "pulik", "pulis", "pulka", "pulks", "pulli", "pulls", "pully", "pulmo", "pulps", "pulus", "pumas", "pumie", "pumps", "punas", "punce", "punga", "pungs", "punji", "punka", "punks", "punky", "punny", "punto", "punts", "punty", "pupae", "pupas", "pupus", "purda", "pured", "pures", "purin", "puris", "purls", "purpy", "purrs", "pursy", "purty", "puses", "pusle", "pussy", "putid", "puton", "putti", "putto", "putts", "puzel", "pwned", "pyats", "pyets", "pygal", "pyins", "pylon", "pyned", "pynes", "pyoid", "pyots", "pyral", "pyran", "pyres", "pyrex", "pyric", "pyros", "pyxed", "pyxes", "pyxie", "pyxis", "pzazz", "qadis", "qaids", "qajaq", "qanat", "qapik", "qibla", "qophs", "qorma", "quads", "quaff", "quags", "quair", "quais", "quaky", "quale", "quant", "quare", "quass", "quate", "quats", "quayd", "quays", "qubit", "quean", "queme", "quena", "quern", "queyn", "queys", "quich", "quids", "quiff", "quims", "quina", "quine", "quino", "quins", "quint", "quipo", "quips", "quipu", "quire", "quirt", "quist", "quits", "quoad", "quods", "quoif", "quoin", "quoit", "quoll", "quonk", "quops", "qursh", "quyte", "rabat", "rabic", "rabis", "raced", "races", "rache", "racks", "racon", "radge", "radix", "radon", "raffs", "rafts", "ragas", "ragde", "raged", "ragee", "rager", "rages", "ragga", "raggs", "raggy", "ragis", "ragus", "rahed", "rahui", "raias", "raids", "raiks", "raile", "rails", "raine", "rains", "raird", "raita", "raits", "rajas", "rajes", "raked", "rakee", "raker", "rakes", "rakia", "rakis", "rakus", "rales", "ramal", "ramee", "ramet", "ramie", "ramin", "ramis", "rammy", "ramps", "ramus", "ranas", "rance", "rands", "ranee", "ranga", "rangi", "rangs", "rangy", "ranid", "ranis", "ranke", "ranks", "rants", "raped", "raper", "rapes", "raphe", "rappe", "rared", "raree", "rares", "rarks", "rased", "raser", "rases", "rasps", "rasse", "rasta", "ratal", "ratan", "ratas", "ratch", "rated", "ratel", "rater", "rates", "ratha", "rathe", "raths", "ratoo", "ratos", "ratus", "rauns", "raupo", "raved", "ravel", "raver", "raves", "ravey", "ravin", "rawer", "rawin", "rawly", "rawns", "raxed", "raxes", "rayah", "rayas", "rayed", "rayle", "rayne", "razed", "razee", "razer", "razes", "razoo", "readd", "reads", "reais", "reaks", "realo", "reals", "reame", "reams", "reamy", "reans", "reaps", "rears", "reast", "reata", "reate", "reave", "rebbe", "rebec", "rebid", "rebit", "rebop", "rebuy", "recal", "recce", "recco", "reccy", "recit", "recks", "recon", "recta", "recti", "recto", "redan", "redds", "reddy", "reded", "redes", "redia", "redid", "redip", "redly", "redon", "redos", "redox", "redry", "redub", "redux", "redye", "reech", "reede", "reeds", "reefs", "reefy", "reeks", "reeky", "reels", "reens", "reest", "reeve", "refed", "refel", "reffo", "refis", "refix", "refly", "refry", "regar", "reges", "reggo", "regie", "regma", "regna", "regos", "regur", "rehem", "reifs", "reify", "reiki", "reiks", "reink", "reins", "reird", "reist", "reive", "rejig", "rejon", "reked", "rekes", "rekey", "relet", "relie", "relit", "rello", "reman", "remap", "remen", "remet", "remex", "remix", "renay", "rends", "reney", "renga", "renig", "renin", "renne", "renos", "rente", "rents", "reoil", "reorg", "repeg", "repin", "repla", "repos", "repot", "repps", "repro", "reran", "rerig", "resat", "resaw", "resay", "resee", "reses", "resew", "resid", "resit", "resod", "resow", "resto", "rests", "resty", "resus", "retag", "retax", "retem", "retia", "retie", "retox", "revet", "revie", "rewan", "rewax", "rewed", "rewet", "rewin", "rewon", "rewth", "rexes", "rezes", "rheas", "rheme", "rheum", "rhies", "rhime", "rhine", "rhody", "rhomb", "rhone", "rhumb", "rhyne", "rhyta", "riads", "rials", "riant", "riata", "ribas", "ribby", "ribes", "riced", "ricer", "rices", "ricey", "richt", "ricin", "ricks", "rides", "ridgy", "ridic", "riels", "riems", "rieve", "rifer", "riffs", "rifte", "rifts", "rifty", "riggs", "rigol", "riled", "riles", "riley", "rille", "rills", "rimae", "rimed", "rimer", "rimes", "rimus", "rinds", "rindy", "rines", "rings", "rinks", "rioja", "riots", "riped", "ripes", "ripps", "rises", "rishi", "risks", "risps", "risus", "rites", "ritts", "ritzy", "rivas", "rived", "rivel", "riven", "rives", "riyal", "rizas", "roads", "roams", "roans", "roars", "roary", "roate", "robed", "robes", "roble", "rocks", "roded", "rodes", "roguy", "rohes", "roids", "roils", "roily", "roins", "roist", "rojak", "rojis", "roked", "roker", "rokes", "rolag", "roles", "rolfs", "rolls", "romal", "roman", "romeo", "romps", "ronde", "rondo", "roneo", "rones", "ronin", "ronne", "ronte", "ronts", "roods", "roofs", "roofy", "rooks", "rooky", "rooms", "roons", "roops", "roopy", "roosa", "roose", "roots", "rooty", "roped", "roper", "ropes", "ropey", "roque", "roral", "rores", "roric", "rorid", "rorie", "rorts", "rorty", "rosed", "roses", "roset", "roshi", "rosin", "rosit", "rosti", "rosts", "rotal", "rotan", "rotas", "rotch", "roted", "rotes", "rotis", "rotls", "roton", "rotos", "rotte", "rouen", "roues", "roule", "rouls", "roums", "roups", "roupy", "roust", "routh", "routs", "roved", "roven", "roves", "rowan", "rowed", "rowel", "rowen", "rowie", "rowme", "rownd", "rowth", "rowts", "royne", "royst", "rozet", "rozit", "ruana", "rubai", "rubby", "rubel", "rubes", "rubin", "ruble", "rubli", "rubus", "ruche", "rucks", "rudas", "rudds", "rudes", "rudie", "rudis", "rueda", "ruers", "ruffe", "ruffs", "rugae", "rugal", "ruggy", "ruing", "ruins", "rukhs", "ruled", "rules", "rumal", "rumbo", "rumen", "rumes", "rumly", "rummy", "rumpo", "rumps", "rumpy", "runch", "runds", "runed", "runes", "rungs", "runic", "runny", "runts", "runty", "rupia", "rurps", "rurus", "rusas", "ruses", "rushy", "rusks", "rusma", "russe", "rusts", "ruths", "rutin", "rutty", "ryals", "rybat", "ryked", "rykes", "rymme", "rynds", "ryots", "ryper", "saags", "sabal", "sabed", "saber", "sabes", "sabha", "sabin", "sabir", "sable", "sabot", "sabra", "sabre", "sacks", "sacra", "saddo", "sades", "sadhe", "sadhu", "sadis", "sados", "sadza", "safed", "safes", "sagas", "sager", "sages", "saggy", "sagos", "sagum", "saheb", "sahib", "saice", "saick", "saics", "saids", "saiga", "sails", "saims", "saine", "sains", "sairs", "saist", "saith", "sajou", "sakai", "saker", "sakes", "sakia", "sakis", "sakti", "salal", "salat", "salep", "sales", "salet", "salic", "salix", "salle", "salmi", "salol", "salop", "salpa", "salps", "salse", "salto", "salts", "salue", "salut", "saman", "samas", "samba", "sambo", "samek", "samel", "samen", "sames", "samey", "samfu", "sammy", "sampi", "samps", "sands", "saned", "sanes", "sanga", "sangh", "sango", "sangs", "sanko", "sansa", "santo", "sants", "saola", "sapan", "sapid", "sapor", "saran", "sards", "sared", "saree", "sarge", "sargo", "sarin", "saris", "sarks", "sarky", "sarod", "saros", "sarus", "saser", "sasin", "sasse", "satai", "satay", "sated", "satem", "sates", "satis", "sauba", "sauch", "saugh", "sauls", "sault", "saunt", "saury", "sauts", "saved", "saver", "saves", "savey", "savin", "sawah", "sawed", "sawer", "saxes", "sayed", "sayer", "sayid", "sayne", "sayon", "sayst", "sazes", "scabs", "scads", "scaff", "scags", "scail", "scala", "scall", "scams", "scand", "scans", "scapa", "scape", "scapi", "scarp", "scars", "scart", "scath", "scats", "scatt", "scaud", "scaup", "scaur", "scaws", "sceat", "scena", "scend", "schav", "schmo", "schul", "schwa", "sclim", "scody", "scogs", "scoog", "scoot", "scopa", "scops", "scots", "scoug", "scoup", "scowp", "scows", "scrab", "scrae", "scrag", "scran", "scrat", "scraw", "scray", "scrim", "scrip", "scrob", "scrod", "scrog", "scrow", "scudi", "scudo", "scuds", "scuff", "scuft", "scugs", "sculk", "scull", "sculp", "sculs", "scums", "scups", "scurf", "scurs", "scuse", "scuta", "scute", "scuts", "scuzz", "scyes", "sdayn", "sdein", "seals", "seame", "seams", "seamy", "seans", "seare", "sears", "sease", "seats", "seaze", "sebum", "secco", "sechs", "sects", "seder", "sedes", "sedge", "sedgy", "sedum", "seeds", "seeks", "seeld", "seels", "seely", "seems", "seeps", "seepy", "seers", "sefer", "segar", "segni", "segno", "segol", "segos", "sehri", "seifs", "seils", "seine", "seirs", "seise", "seism", "seity", "seiza", "sekos", "sekts", "selah", "seles", "selfs", "sella", "selle", "sells", "selva", "semee", "semes", "semie", "semis", "senas", "sends", "senes", "sengi", "senna", "senor", "sensa", "sensi", "sente", "senti", "sents", "senvy", "senza", "sepad", "sepal", "sepic", "sepoy", "septa", "septs", "serac", "serai", "seral", "sered", "serer", "seres", "serfs", "serge", "seric", "serin", "serks", "seron", "serow", "serra", "serre", "serrs", "serry", "servo", "sesey", "sessa", "setae", "setal", "seton", "setts", "sewan", "sewar", "sewed", "sewel", "sewen", "sewin", "sexed", "sexer", "sexes", "sexto", "sexts", "seyen", "shads", "shags", "shahs", "shako", "shakt", "shalm", "shaly", "shama", "shams", "shand", "shans", "shaps", "sharn", "shash", "shaul", "shawm", "shawn", "shaws", "shaya", "shays", "shchi", "sheaf", "sheal", "sheas", "sheds", "sheel", "shend", "shent", "sheol", "sherd", "shere", "shero", "shets", "sheva", "shewn", "shews", "shiai", "shiel", "shier", "shies", "shill", "shily", "shims", "shins", "ships", "shirr", "shirs", "shish", "shiso", "shist", "shite", "shits", "shiur", "shiva", "shive", "shivs", "shlep", "shlub", "shmek", "shmoe", "shoat", "shoed", "shoer", "shoes", "shogi", "shogs", "shoji", "shojo", "shola", "shool", "shoon", "shoos", "shope", "shops", "shorl", "shote", "shots", "shott", "showd", "shows", "shoyu", "shred", "shris", "shrow", "shtik", "shtum", "shtup", "shule", "shuln", "shuls", "shuns", "shura", "shute", "shuts", "shwas", "shyer", "sials", "sibbs", "sibyl", "sices", "sicht", "sicko", "sicks", "sicky", "sidas", "sided", "sider", "sides", "sidha", "sidhe", "sidle", "sield", "siens", "sient", "sieth", "sieur", "sifts", "sighs", "sigil", "sigla", "signa", "signs", "sijos", "sikas", "siker", "sikes", "silds", "siled", "silen", "siler", "siles", "silex", "silks", "sills", "silos", "silts", "silty", "silva", "simar", "simas", "simba", "simis", "simps", "simul", "sinds", "sined", "sines", "sings", "sinhs", "sinks", "sinky", "sinus", "siped", "sipes", "sippy", "sired", "siree", "sires", "sirih", "siris", "siroc", "sirra", "sirup", "sisal", "sises", "sista", "sists", "sitar", "sited", "sites", "sithe", "sitka", "situp", "situs", "siver", "sixer", "sixes", "sixmo", "sixte", "sizar", "sized", "sizel", "sizer", "sizes", "skags", "skail", "skald", "skank", "skart", "skats", "skatt", "skaws", "skean", "skear", "skeds", "skeed", "skeef", "skeen", "skeer", "skees", "skeet", "skegg", "skegs", "skein", "skelf", "skell", "skelm", "skelp", "skene", "skens", "skeos", "skeps", "skers", "skets", "skews", "skids", "skied", "skies", "skiey", "skimo", "skims", "skink", "skins", "skint", "skios", "skips", "skirl", "skirr", "skite", "skits", "skive", "skivy", "sklim", "skoal", "skody", "skoff", "skogs", "skols", "skool", "skort", "skosh", "skran", "skrik", "skuas", "skugs", "skyed", "skyer", "skyey", "skyfs", "skyre", "skyrs", "skyte", "slabs", "slade", "slaes", "slags", "slaid", "slake", "slams", "slane", "slank", "slaps", "slart", "slats", "slaty", "slaws", "slays", "slebs", "sleds", "sleer", "slews", "sleys", "slier", "slily", "slims", "slipe", "slips", "slipt", "slish", "slits", "slive", "sloan", "slobs", "sloes", "slogs", "sloid", "slojd", "slomo", "sloom", "sloot", "slops", "slopy", "slorm", "slots", "slove", "slows", "sloyd", "slubb", "slubs", "slued", "slues", "sluff", "slugs", "sluit", "slums", "slurb", "slurs", "sluse", "sluts", "slyer", "slype", "smaak", "smaik", "smalm", "smalt", "smarm", "smaze", "smeek", "smees", "smeik", "smeke", "smerk", "smews", "smirr", "smirs", "smits", "smogs", "smoko", "smolt", "smoor", "smoot", "smore", "smorg", "smout", "smowt", "smugs", "smurs", "smush", "smuts", "snabs", "snafu", "snags", "snaps", "snarf", "snark", "snars", "snary", "snash", "snath", "snaws", "snead", "sneap", "snebs", "sneck", "sneds", "sneed", "snees", "snell", "snibs", "snick", "snies", "snift", "snigs", "snips", "snipy", "snirt", "snits", "snobs", "snods", "snoek", "snoep", "snogs", "snoke", "snood", "snook", "snool", "snoot", "snots", "snowk", "snows", "snubs", "snugs", "snush", "snyes", "soaks", "soaps", "soare", "soars", "soave", "sobas", "socas", "soces", "socko", "socks", "socle", "sodas", "soddy", "sodic", "sodom", "sofar", "sofas", "softa", "softs", "softy", "soger", "sohur", "soils", "soily", "sojas", "sojus", "sokah", "soken", "sokes", "sokol", "solah", "solan", "solas", "solde", "soldi", "soldo", "solds", "soled", "solei", "soler", "soles", "solon", "solos", "solum", "solus", "soman", "somas", "sonce", "sonde", "sones", "songs", "sonly", "sonne", "sonny", "sonse", "sonsy", "sooey", "sooks", "sooky", "soole", "sools", "sooms", "soops", "soote", "soots", "sophs", "sophy", "sopor", "soppy", "sopra", "soral", "soras", "sorbo", "sorbs", "sorda", "sordo", "sords", "sored", "soree", "sorel", "sorer", "sores", "sorex", "sorgo", "sorns", "sorra", "sorta", "sorts", "sorus", "soths", "sotol", "souce", "souct", "sough", "souks", "souls", "soums", "soups", "soupy", "sours", "souse", "souts", "sowar", "sowce", "sowed", "sowff", "sowfs", "sowle", "sowls", "sowms", "sownd", "sowne", "sowps", "sowse", "sowth", "soyas", "soyle", "soyuz", "sozin", "spacy", "spado", "spaed", "spaer", "spaes", "spags", "spahi", "spail", "spain", "spait", "spake", "spald", "spale", "spall", "spalt", "spams", "spane", "spang", "spans", "spard", "spars", "spart", "spate", "spats", "spaul", "spawl", "spaws", "spayd", "spays", "spaza", "spazz", "speal", "spean", "speat", "specs", "spect", "speel", "speer", "speil", "speir", "speks", "speld", "spelk", "speos", "spets", "speug", "spews", "spewy", "spial", "spica", "spick", "spics", "spide", "spier", "spies", "spiff", "spifs", "spiks", "spile", "spims", "spina", "spink", "spins", "spirt", "spiry", "spits", "spitz", "spivs", "splay", "splog", "spode", "spods", "spoom", "spoor", "spoot", "spork", "sposh", "spots", "sprad", "sprag", "sprat", "spred", "sprew", "sprit", "sprod", "sprog", "sprue", "sprug", "spuds", "spued", "spuer", "spues", "spugs", "spule", "spume", "spumy", "spurs", "sputa", "spyal", "spyre", "squab", "squaw", "squeg", "squid", "squit", "squiz", "stabs", "stade", "stags", "stagy", "staig", "stane", "stang", "staph", "staps", "starn", "starr", "stars", "stats", "staun", "staws", "stays", "stean", "stear", "stedd", "stede", "steds", "steek", "steem", "steen", "steil", "stela", "stele", "stell", "steme", "stems", "stend", "steno", "stens", "stent", "steps", "stept", "stere", "stets", "stews", "stewy", "steys", "stich", "stied", "sties", "stilb", "stile", "stime", "stims", "stimy", "stipa", "stipe", "stire", "stirk", "stirp", "stirs", "stive", "stivy", "stoae", "stoai", "stoas", "stoat", "stobs", "stoep", "stogy", "stoit", "stoln", "stoma", "stond", "stong", "stonk", "stonn", "stook", "stoor", "stope", "stops", "stopt", "stoss", "stots", "stott", "stoun", "stoup", "stour", "stown", "stowp", "stows", "strad", "strae", "strag", "strak", "strep", "strew", "stria", "strig", "strim", "strop", "strow", "stroy", "strum", "stubs", "stude", "studs", "stull", "stulm", "stumm", "stums", "stuns", "stupa", "stupe", "sture", "sturt", "styed", "styes", "styli", "stylo", "styme", "stymy", "styre", "styte", "subah", "subas", "subby", "suber", "subha", "succi", "sucks", "sucky", "sucre", "sudds", "sudor", "sudsy", "suede", "suent", "suers", "suete", "suets", "suety", "sugan", "sughs", "sugos", "suhur", "suids", "suint", "suits", "sujee", "sukhs", "sukuk", "sulci", "sulfa", "sulfo", "sulks", "sulph", "sulus", "sumis", "summa", "sumos", "sumph", "sumps", "sunis", "sunks", "sunna", "sunns", "sunup", "supes", "supra", "surah", "sural", "suras", "surat", "surds", "sured", "sures", "surfs", "surfy", "surgy", "surra", "sused", "suses", "susus", "sutor", "sutra", "sutta", "swabs", "swack", "swads", "swage", "swags", "swail", "swain", "swale", "swaly", "swamy", "swang", "swank", "swans", "swaps", "swapt", "sward", "sware", "swarf", "swart", "swats", "swayl", "sways", "sweal", "swede", "sweed", "sweel", "sweer", "swees", "sweir", "swelt", "swerf", "sweys", "swies", "swigs", "swile", "swims", "swink", "swipe", "swire", "swiss", "swith", "swits", "swive", "swizz", "swobs", "swole", "swoln", "swops", "swopt", "swots", "swoun", "sybbe", "sybil", "syboe", "sybow", "sycee", "syces", "sycon", "syens", "syker", "sykes", "sylis", "sylph", "sylva", "symar", "synch", "syncs", "synds", "syned", "synes", "synth", "syped", "sypes", "syphs", "syrah", "syren", "sysop", "sythe", "syver", "taals", "taata", "taber", "tabes", "tabid", "tabis", "tabla", "tabor", "tabun", "tabus", "tacan", "taces", "tacet", "tache", "tacho", "tachs", "tacks", "tacos", "tacts", "taels", "tafia", "taggy", "tagma", "tahas", "tahrs", "taiga", "taigs", "taiko", "tails", "tains", "taira", "taish", "taits", "tajes", "takas", "takes", "takhi", "takin", "takis", "takky", "talak", "talaq", "talar", "talas", "talcs", "talcy", "talea", "taler", "tales", "talks", "talky", "talls", "talma", "talpa", "taluk", "talus", "tamal", "tamed", "tames", "tamin", "tamis", "tammy", "tamps", "tanas", "tanga", "tangi", "tangs", "tanhs", "tanka", "tanks", "tanky", "tanna", "tansy", "tanti", "tanto", "tanty", "tapas", "taped", "tapen", "tapes", "tapet", "tapis", "tappa", "tapus", "taras", "tardo", "tared", "tares", "targa", "targe", "tarns", "taroc", "tarok", "taros", "tarps", "tarre", "tarry", "tarsi", "tarts", "tarty", "tasar", "tased", "taser", "tases", "tasks", "tassa", "tasse", "tasso", "tatar", "tater", "tates", "taths", "tatie", "tatou", "tatts", "tatus", "taube", "tauld", "tauon", "taupe", "tauts", "tavah", "tavas", "taver", "tawai", "tawas", "tawed", "tawer", "tawie", "tawse", "tawts", "taxed", "taxer", "taxes", "taxis", "taxol", "taxon", "taxor", "taxus", "tayra", "tazza", "tazze", "teade", "teads", "teaed", "teaks", "teals", "teams", "tears", "teats", "teaze", "techs", "techy", "tecta", "teels", "teems", "teend", "teene", "teens", "teeny", "teers", "teffs", "teggs", "tegua", "tegus", "tehrs", "teiid", "teils", "teind", "teins", "telae", "telco", "teles", "telex", "telia", "telic", "tells", "telly", "teloi", "telos", "temed", "temes", "tempi", "temps", "tempt", "temse", "tench", "tends", "tendu", "tenes", "tenge", "tenia", "tenne", "tenno", "tenny", "tenon", "tents", "tenty", "tenue", "tepal", "tepas", "tepoy", "terai", "teras", "terce", "terek", "teres", "terfe", "terfs", "terga", "terms", "terne", "terns", "terry", "terts", "tesla", "testa", "teste", "tests", "tetes", "teths", "tetra", "tetri", "teuch", "teugh", "tewed", "tewel", "tewit", "texas", "texes", "texts", "thack", "thagi", "thaim", "thale", "thali", "thana", "thane", "thang", "thans", "thanx", "tharm", "thars", "thaws", "thawy", "thebe", "theca", "theed", "theek", "thees", "thegn", "theic", "thein", "thelf", "thema", "thens", "theow", "therm", "thesp", "thete", "thews", "thewy", "thigs", "thilk", "thill", "thine", "thins", "thiol", "thirl", "thoft", "thole", "tholi", "thoro", "thorp", "thous", "thowl", "thrae", "thraw", "thrid", "thrip", "throe", "thuds", "thugs", "thuja", "thunk", "thurl", "thuya", "thymi", "thymy", "tians", "tiars", "tical", "ticca", "ticed", "tices", "tichy", "ticks", "ticky", "tiddy", "tided", "tides", "tiers", "tiffs", "tifos", "tifts", "tiges", "tigon", "tikas", "tikes", "tikis", "tikka", "tilak", "tiled", "tiler", "tiles", "tills", "tilly", "tilth", "tilts", "timbo", "timed", "times", "timon", "timps", "tinas", "tinct", "tinds", "tinea", "tined", "tines", "tinge", "tings", "tinks", "tinny", "tints", "tinty", "tipis", "tippy", "tired", "tires", "tirls", "tiros", "tirrs", "titch", "titer", "titis", "titre", "titty", "titup", "tiyin", "tiyns", "tizes", "tizzy", "toads", "toady", "toaze", "tocks", "tocky", "tocos", "todde", "toeas", "toffs", "toffy", "tofts", "tofus", "togae", "togas", "toged", "toges", "togue", "tohos", "toile", "toils", "toing", "toise", "toits", "tokay", "toked", "toker", "tokes", "tokos", "tolan", "tolar", "tolas", "toled", "toles", "tolls", "tolly", "tolts", "tolus", "tolyl", "toman", "tombs", "tomes", "tomia", "tommy", "tomos", "tondi", "tondo", "toned", "toner", "tones", "toney", "tongs", "tonka", "tonks", "tonne", "tonus", "tools", "tooms", "toons", "toots", "toped", "topee", "topek", "toper", "topes", "tophe", "tophi", "tophs", "topis", "topoi", "topos", "toppy", "toque", "torah", "toran", "toras", "torcs", "tores", "toric", "torii", "toros", "torot", "torrs", "torse", "torsi", "torsk", "torta", "torte", "torts", "tosas", "tosed", "toses", "toshy", "tossy", "toted", "toter", "totes", "totty", "touks", "touns", "tours", "touse", "tousy", "touts", "touze", "touzy", "towed", "towie", "towns", "towny", "towse", "towsy", "towts", "towze", "towzy", "toyed", "toyer", "toyon", "toyos", "tozed", "tozes", "tozie", "trabs", "trads", "tragi", "traik", "trams", "trank", "tranq", "trans", "trant", "trape", "traps", "trapt", "trass", "trats", "tratt", "trave", "trayf", "trays", "treck", "treed", "treen", "trees", "trefa", "treif", "treks", "trema", "trems", "tress", "trest", "trets", "trews", "treyf", "treys", "triac", "tride", "trier", "tries", "triff", "trigo", "trigs", "trike", "trild", "trill", "trims", "trine", "trins", "triol", "trior", "trios", "trips", "tripy", "trist", "troad", "troak", "troat", "trock", "trode", "trods", "trogs", "trois", "troke", "tromp", "trona", "tronc", "trone", "tronk", "trons", "trooz", "troth", "trots", "trows", "troys", "trued", "trues", "trugo", "trugs", "trull", "tryer", "tryke", "tryma", "tryps", "tsade", "tsadi", "tsars", "tsked", "tsuba", "tsubo", "tuans", "tuart", "tuath", "tubae", "tubar", "tubas", "tubby", "tubed", "tubes", "tucks", "tufas", "tuffe", "tuffs", "tufts", "tufty", "tugra", "tuile", "tuina", "tuism", "tuktu", "tules", "tulpa", "tulsi", "tumid", "tummy", "tumps", "tumpy", "tunas", "tunds", "tuned", "tuner", "tunes", "tungs", "tunny", "tupek", "tupik", "tuple", "tuque", "turds", "turfs", "turfy", "turks", "turme", "turms", "turns", "turnt", "turps", "turrs", "tushy", "tusks", "tusky", "tutee", "tutti", "tutty", "tutus", "tuxes", "tuyer", "twaes", "twain", "twals", "twank", "twats", "tways", "tweel", "tween", "tweep", "tweer", "twerk", "twerp", "twier", "twigs", "twill", "twilt", "twink", "twins", "twiny", "twire", "twirp", "twite", "twits", "twoer", "twyer", "tyees", "tyers", "tyiyn", "tykes", "tyler", "tymps", "tynde", "tyned", "tynes", "typal", "typed", "types", "typey", "typic", "typos", "typps", "typto", "tyran", "tyred", "tyres", "tyros", "tythe", "tzars", "udals", "udons", "ugali", "ugged", "uhlan", "uhuru", "ukase", "ulama", "ulans", "ulema", "ulmin", "ulnad", "ulnae", "ulnar", "ulnas", "ulpan", "ulvas", "ulyie", "ulzie", "umami", "umbel", "umber", "umble", "umbos", "umbre", "umiac", "umiak", "umiaq", "ummah", "ummas", "ummed", "umped", "umphs", "umpie", "umpty", "umrah", "umras", "unais", "unapt", "unarm", "unary", "unaus", "unbag", "unban", "unbar", "unbed", "unbid", "unbox", "uncap", "unces", "uncia", "uncos", "uncoy", "uncus", "undam", "undee", "undos", "undug", "uneth", "unfix", "ungag", "unget", "ungod", "ungot", "ungum", "unhat", "unhip", "unica", "units", "unjam", "unked", "unket", "unkid", "unlaw", "unlay", "unled", "unlet", "unlid", "unman", "unmew", "unmix", "unpay", "unpeg", "unpen", "unpin", "unred", "unrid", "unrig", "unrip", "unsaw", "unsay", "unsee", "unsew", "unsex", "unsod", "untax", "untin", "unwet", "unwit", "unwon", "upbow", "upbye", "updos", "updry", "upend", "upjet", "uplay", "upled", "uplit", "upped", "upran", "uprun", "upsee", "upsey", "uptak", "upter", "uptie", "uraei", "urali", "uraos", "urare", "urari", "urase", "urate", "urbex", "urbia", "urdee", "ureal", "ureas", "uredo", "ureic", "urena", "urent", "urged", "urger", "urges", "urial", "urite", "urman", "urnal", "urned", "urped", "ursae", "ursid", "urson", "urubu", "urvas", "users", "usnea", "usque", "usure", "usury", "uteri", "uveal", "uveas", "uvula", "vacua", "vaded", "vades", "vagal", "vagus", "vails", "vaire", "vairs", "vairy", "vakas", "vakil", "vales", "valis", "valse", "vamps", "vampy", "vanda", "vaned", "vanes", "vangs", "vants", "vaped", "vaper", "vapes", "varan", "varas", "vardy", "varec", "vares", "varia", "varix", "varna", "varus", "varve", "vasal", "vases", "vasts", "vasty", "vatic", "vatus", "vauch", "vaute", "vauts", "vawte", "vaxes", "veale", "veals", "vealy", "veena", "veeps", "veers", "veery", "vegas", "veges", "vegie", "vegos", "vehme", "veils", "veily", "veins", "veiny", "velar", "velds", "veldt", "veles", "vells", "velum", "venae", "venal", "vends", "vendu", "veney", "venge", "venin", "vents", "venus", "verbs", "verra", "verry", "verst", "verts", "vertu", "vespa", "vesta", "vests", "vetch", "vexed", "vexer", "vexes", "vexil", "vezir", "vials", "viand", "vibes", "vibex", "vibey", "viced", "vices", "vichy", "viers", "views", "viewy", "vifda", "viffs", "vigas", "vigia", "vilde", "viler", "villi", "vills", "vimen", "vinal", "vinas", "vinca", "vined", "viner", "vines", "vinew", "vinic", "vinos", "vints", "viold", "viols", "vired", "vireo", "vires", "virga", "virge", "virid", "virls", "virtu", "visas", "vised", "vises", "visie", "visne", "vison", "visto", "vitae", "vitas", "vitex", "vitro", "vitta", "vivas", "vivat", "vivda", "viver", "vives", "vizir", "vizor", "vleis", "vlies", "vlogs", "voars", "vocab", "voces", "voddy", "vodou", "vodun", "voema", "vogie", "voids", "voile", "voips", "volae", "volar", "voled", "voles", "volet", "volks", "volta", "volte", "volti", "volts", "volva", "volve", "vomer", "voted", "votes", "vouge", "voulu", "vowed", "vower", "voxel", "vozhd", "vraic", "vrils", "vroom", "vrous", "vrouw", "vrows", "vuggs", "vuggy", "vughs", "vughy", "vulgo", "vulns", "vulva", "vutty", "waacs", "wacke", "wacko", "wacks", "wadds", "waddy", "waded", "wader", "wades", "wadge", "wadis", "wadts", "waffs", "wafts", "waged", "wages", "wagga", "wagyu", "wahoo", "waide", "waifs", "waift", "wails", "wains", "wairs", "waite", "waits", "wakas", "waked", "waken", "waker", "wakes", "wakfs", "waldo", "walds", "waled", "waler", "wales", "walie", "walis", "walks", "walla", "walls", "wally", "walty", "wamed", "wames", "wamus", "wands", "waned", "wanes", "waney", "wangs", "wanks", "wanky", "wanle", "wanly", "wanna", "wants", "wanty", "wanze", "waqfs", "warbs", "warby", "wards", "wared", "wares", "warez", "warks", "warms", "warns", "warps", "warre", "warst", "warts", "wases", "washy", "wasms", "wasps", "waspy", "wasts", "watap", "watts", "wauff", "waugh", "wauks", "waulk", "wauls", "waurs", "waved", "waves", "wavey", "wawas", "wawes", "wawls", "waxed", "waxer", "waxes", "wayed", "wazir", "wazoo", "weald", "weals", "weamb", "weans", "wears", "webby", "weber", "wecht", "wedel", "wedgy", "weeds", "weeke", "weeks", "weels", "weems", "weens", "weeny", "weeps", "weepy", "weest", "weete", "weets", "wefte", "wefts", "weids", "weils", "weirs", "weise", "weize", "wekas", "welds", "welke", "welks", "welkt", "wells", "welly", "welts", "wembs", "wends", "wenge", "wenny", "wents", "weros", "wersh", "wests", "wetas", "wetly", "wexed", "wexes", "whamo", "whams", "whang", "whaps", "whare", "whata", "whats", "whaup", "whaur", "wheal", "whear", "wheen", "wheep", "wheft", "whelk", "whelm", "whens", "whets", "whews", "wheys", "whids", "whift", "whigs", "whilk", "whims", "whins", "whios", "whips", "whipt", "whirr", "whirs", "whish", "whiss", "whist", "whits", "whity", "whizz", "whomp", "whoof", "whoot", "whops", "whore", "whorl", "whort", "whoso", "whows", "whump", "whups", "whyda", "wicca", "wicks", "wicky", "widdy", "wides", "wiels", "wifed", "wifes", "wifey", "wifie", "wifty", "wigan", "wigga", "wiggy", "wikis", "wilco", "wilds", "wiled", "wiles", "wilga", "wilis", "wilja", "wills", "wilts", "wimps", "winds", "wined", "wines", "winey", "winge", "wings", "wingy", "winks", "winna", "winns", "winos", "winze", "wiped", "wiper", "wipes", "wired", "wirer", "wires", "wirra", "wised", "wises", "wisha", "wisht", "wisps", "wists", "witan", "wited", "wites", "withe", "withs", "withy", "wived", "wiver", "wives", "wizen", "wizes", "woads", "woald", "wocks", "wodge", "woful", "wojus", "woker", "wokka", "wolds", "wolfs", "wolly", "wolve", "wombs", "womby", "womyn", "wonga", "wongi", "wonks", "wonky", "wonts", "woods", "wooed", "woofs", "woofy", "woold", "wools", "woons", "woops", "woopy", "woose", "woosh", "wootz", "words", "works", "worms", "wormy", "worts", "wowed", "wowee", "woxen", "wrang", "wraps", "wrapt", "wrast", "wrate", "wrawl", "wrens", "wrick", "wried", "wrier", "wries", "writs", "wroke", "wroot", "wroth", "wryer", "wuddy", "wudus", "wulls", "wurst", "wuses", "wushu", "wussy", "wuxia", "wyled", "wyles", "wynds", "wynns", "wyted", "wytes", "xebec", "xenia", "xenic", "xenon", "xeric", "xerox", "xerus", "xoana", "xrays", "xylan", "xylem", "xylic", "xylol", "xylyl", "xysti", "xysts", "yaars", "yabas", "yabba", "yabby", "yacca", "yacka", "yacks", "yaffs", "yager", "yages", "yagis", "yahoo", "yaird", "yakka", "yakow", "yales", "yamen", "yampy", "yamun", "yangs", "yanks", "yapok", "yapon", "yapps", "yappy", "yarak", "yarco", "yards", "yarer", "yarfa", "yarks", "yarns", "yarrs", "yarta", "yarto", "yates", "yauds", "yauld", "yaups", "yawed", "yawey", "yawls", "yawns", "yawny", "yawps", "ybore", "yclad", "ycled", "ycond", "ydrad", "ydred", "yeads", "yeahs", "yealm", "yeans", "yeard", "years", "yecch", "yechs", "yechy", "yedes", "yeeds", "yeesh", "yeggs", "yelks", "yells", "yelms", "yelps", "yelts", "yenta", "yente", "yerba", "yerds", "yerks", "yeses", "yesks", "yests", "yesty", "yetis", "yetts", "yeuks", "yeuky", "yeven", "yeves", "yewen", "yexed", "yexes", "yfere", "yiked", "yikes", "yills", "yince", "yipes", "yippy", "yirds", "yirks", "yirrs", "yirth", "yites", "yitie", "ylems", "ylike", "ylkes", "ymolt", "ympes", "yobbo", "yobby", "yocks", "yodel", "yodhs", "yodle", "yogas", "yogee", "yoghs", "yogic", "yogin", "yogis", "yoick", "yojan", "yoked", "yokel", "yoker", "yokes", "yokul", "yolks", "yolky", "yomim", "yomps", "yonic", "yonis", "yonks", "yoofs", "yoops", "yores", "yorks", "yorps", "youks", "yourn", "yours", "yourt", "youse", "yowed", "yowes", "yowie", "yowls", "yowza", "yrapt", "yrent", "yrivd", "yrneh", "ysame", "ytost", "yuans", "yucas", "yucca", "yucch", "yucko", "yucks", "yucky", "yufts", "yugas", "yuked", "yukes", "yukky", "yukos", "yulan", "yules", "yummo", "yummy", "yumps", "yupon", "yuppy", "yurta", "yurts", "yuzus", "zabra", "zacks", "zaida", "zaidy", "zaire", "zakat", "zaman", "zambo", "zamia", "zanja", "zante", "zanza", "zanze", "zappy", "zarfs", "zaris", "zatis", "zaxes", "zayin", "zazen", "zeals", "zebec", "zebub", "zebus", "zedas", "zeins", "zendo", "zerda", "zerks", "zeros", "zests", "zetas", "zexes", "zezes", "zhomo", "zibet", "ziffs", "zigan", "zilas", "zilch", "zilla", "zills", "zimbi", "zimbs", "zinco", "zincs", "zincy", "zineb", "zines", "zings", "zingy", "zinke", "zinky", "zippo", "zippy", "ziram", "zitis", "zizel", "zizit", "zlote", "zloty", "zoaea", "zobos", "zobus", "zocco", "zoeae", "zoeal", "zoeas", "zoism", "zoist", "zombi", "zonae", "zonda", "zoned", "zoner", "zones", "zonks", "zooea", "zooey", "zooid", "zooks", "zooms", "zoons", "zooty", "zoppa", "zoppo", "zoril", "zoris", "zorro", "zouks", "zowee", "zowie", "zulus", "zupan", "zupas", "zuppa", "zurfs", "zuzim", "zygal", "zygon", "zymes", "zymic"], Ia = "present", Ma = "correct", Oa = "absent"; var Ra = { unknown: 0, absent: 1, present: 2, correct: 3 }; function $a(e, a) { var s = {}; return e.forEach((function(e, t) { if (a[t]) for (var o = 0; o < e.length; o++) { var n = e[o], r = a[t][o], i = s[n] || "unknown"; Ra[r] > Ra[i] && (s[n] = r) } })), s } function Pa(e) { var a = ["th", "st", "nd", "rd"], s = e % 100; return e + (a[(s - 20) % 10] || a[s] || a[0]) } var Ha = new Date(2021, 5, 19, 0, 0, 0, 0); function Na(e, a) { var s = new Date(e), t = new Date(a).setHours(0, 0, 0, 0) - s.setHours(0, 0, 0, 0); return Math.round(t / 864e5) } function Da(e) { var a, s = Ga(e); return a = s % La.length, La[a] } function Ga(e) { return Na(Ha, e) } var Ba = "abcdefghijklmnopqrstuvwxyz", Fa = [].concat(g(Ba.split("").slice(13)), g(Ba.split("").slice(0, 13))); function Wa(e) { for (var a = "", s = 0; s < e.length; s++) { var t = Ba.indexOf(e[s]); a += t >= 0 ? Fa[t] : "_" } return a } var Ya = "statistics", Ja = "fail", Ua = { currentStreak: 0, maxStreak: 0, guesses: n({ 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0 }, Ja, 0), winPercentage: 0, gamesPlayed: 0, gamesWon: 0, averageGuesses: 0 }; function Xa() { var e = window.localStorage.getItem(Ya) || JSON.stringify(Ua); return JSON.parse(e) } function Va(e) { var a = e.isWin, s = e.isStreak, t = e.numGuesses, o = Xa(); a ? (o.guesses[t] += 1, s ? o.currentStreak += 1 : o.currentStreak = 1) : (o.currentStreak = 0, o.guesses.fail += 1), o.maxStreak = Math.max(o.currentStreak, o.maxStreak), o.gamesPlayed += 1, o.gamesWon += a ? 1 : 0, o.winPercentage = Math.round(o.gamesWon / o.gamesPlayed * 100), o.averageGuesses = Math.round(Object.entries(o.guesses).reduce((function(e, a) { var s = y(a, 2), t = s[0], o = s[1]; return t !== Ja ? e += t * o : e }), 0) / o.gamesWon), function(e) { window.localStorage.setItem(Ya, JSON.stringify(e)) }(o) } var Ka = document.createElement("template"); Ka.innerHTML = "\n <style>\n .toaster {\n position: absolute;\n top: 10%;\n left: 50%;\n transform: translate(-50%, 0);\n pointer-events: none;\n width: fit-content;\n }\n #game-toaster {\n z-index: ".concat(1e3, ";\n }\n #system-toaster {\n z-index: ").concat(4e3, ';\n }\n\n #game {\n width: 100%;\n max-width: var(--game-max-width);\n margin: 0 auto;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: var(--header-height);\n color: var(--color-tone-1);\n border-bottom: 1px solid var(--color-tone-4);\n }\n header .title {\n font-weight: 700;\n font-size: 36px;\n letter-spacing: 0.2rem;\n text-transform: uppercase;\n text-align: center;\n position: absolute;\n left: 0;\n right: 0;\n pointer-events: none;\n }\n\n @media (max-width: 360px) {\n header .title {\n font-size: 22px;\n letter-spacing: 0.1rem;\n }\n }\n\n #board-container {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n overflow: hidden;\n }\n #board {\n display: grid;\n grid-template-rows: repeat(6, 1fr);\n grid-gap: 5px;\n padding:10px;\n box-sizing: border-box;\n }\n button.icon {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0 4px;\n }\n\n #debug-tools {\n position: absolute;\n bottom: 0;\n } .puzzle-selector {\n color: var(--color-tone-1);\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n .puzzle-selector-buttons {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-evenly;\n align-items: center;\n padding-left: 6px;\n padding-right: 6px;\n }\n .puzzle-selector-buttons button {\n background-color: var(--key-bg-correct);\n color: var(--key-evaluated-text-color);\n font-family: inherit;\n font-weight: bold;\n margin-left: 6px;\n margin-right: 6px;\n border-radius: 4px;\n cursor: pointer;\n border: none;\n user-select: none;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n -webkit-tap-highlight-color: rgba(0,0,0,0.3);\n font-size: 2vh;\n height: 4vh;\n -webkit-filter: brightness(100%);\n }\n .puzzle-selector-buttons button:hover {\n opacity: 0.9;\n }\n\n </style>\n <game-theme-manager>\n <div id="game">\n <header>\n <div class="menu">\n <button id="help-button" class="icon" aria-label="help">\n <game-icon icon="help"></game-icon>\n </button>\n </div>\n <div class="title">\n ReWordle\n </div>\n <div class="menu">\n <button id="statistics-button" class="icon" aria-label="statistics">\n <game-icon icon="statistics"></game-icon>\n </button>\n <button id="settings-button" class="icon" aria-label="settings">\n <game-icon icon="settings"></game-icon>\n </button>\n </div>\n </header>\n <div class="puzzle-selector">\n <h2>Puzzle Selector</h2>\n <div class="puzzle-selector-buttons">\n <button id="previous-button"> Previous </button>\n <button id="today-button"> Today </button>\n <button id="random-button"> Random </button>\n <button id="next-button"> Next </button>\n </div>\n </div>\n <div id="board-container">\n <div id="board"></div>\n </div>\n <game-keyboard></game-keyboard>\n <game-modal></game-modal>\n <game-page></game-page>\n <div class="toaster" id="game-toaster"></div>\n <div class="toaster" id="system-toaster"></div>\n </div>\n </game-theme-manager>\n <div id="debug-tools"></div>\n'); var Qa = document.createElement("template"); Qa.innerHTML = '\n<button id="reveal">reveal</button>\n<button id="shake">shake</button>\n<button id="bounce">bounce</button>\n<button id="toast">toast</button>\n<button id="modal">modal</button>\n'; var Za = "IN_PROGRESS", es = "WIN", as = "FAIL", ss = ["Genius", "Magnificent", "Impressive", "Splendid", "Great", "Phew"], ts = function(e) { r(t, e); var a = h(t); function t() { var e; s(this, t), n(p(e = a.call(this)), "tileIndex", 0), n(p(e), "rowIndex", 0), n(p(e), "solution", void 0), n(p(e), "boardState", void 0), n(p(e), "evaluations", void 0), n(p(e), "canInput", !0), n(p(e), "gameStatus", Za), n(p(e), "letterEvaluations", {}), n(p(e), "$board", void 0), n(p(e), "$keyboard", void 0), n(p(e), "$game", void 0), n(p(e), "today", void 0), n(p(e), "lastPlayedTs", void 0), n(p(e), "lastCompletedTs", void 0), n(p(e), "hardMode", void 0), n(p(e), "dayOffset", void 0), e.attachShadow({ mode: "open" }), e.today = zz; var o = za(); return e.lastPlayedTs = o.lastPlayedTs, !e.lastPlayedTs || Na(new Date(e.lastPlayedTs), e.today) >= 1 ? (e.boardState = new Array(6).fill(""), e.evaluations = new Array(6).fill(null), e.solution = Da(e.today), e.dayOffset = Ga(e.today), e.lastCompletedTs = o.lastCompletedTs, e.hardMode = o.hardMode, e.restoringFromLocalStorage = !1, ja({ rowIndex: e.rowIndex, boardState: e.boardState, evaluations: e.evaluations, solution: e.solution, gameStatus: e.gameStatus }), Ca("event", "level_start", { level_name: Wa(e.solution) })) : (e.boardState = o.boardState, e.evaluations = o.evaluations, e.rowIndex = o.rowIndex, e.solution = o.solution, e.dayOffset = Ga(e.today), e.letterEvaluations = $a(e.boardState, e.evaluations), e.gameStatus = o.gameStatus, e.lastCompletedTs = o.lastCompletedTs, e.hardMode = o.hardMode, e.gameStatus !== Za && (e.canInput = !1), e.restoringFromLocalStorage = !0), e } return o(t, [{ key: "evaluateRow", value: function() { if (5 === this.tileIndex && !(this.rowIndex >= 6)) { var e, a = this.$board.querySelectorAll("game-row")[this.rowIndex], s = this.boardState[this.rowIndex]; if (e = s, !Ta.includes(e) && !La.includes(e)) return a.setAttribute("invalid", ""), void this.addToast("Not in word list"); if (this.hardMode) { var t = function(e, a, s) { if (!e || !a || !s) return { validGuess: !0 }; for (var t = 0; t < s.length; t++) if (s[t] === Ma && e[t] !== a[t]) return { validGuess: !1, errorMessage: "".concat(Pa(t + 1), " letter must be ").concat(a[t].toUpperCase()) }; for (var o = {}, n = 0; n < s.length; n++)[Ma, Ia].includes(s[n]) && (o[a[n]] ? o[a[n]] += 1 : o[a[n]] = 1); var r = e.split("").reduce((function(e, a) { return e[a] ? e[a] += 1 : e[a] = 1, e }), {}); for (var i in o) if ((r[i] || 0) < o[i]) return { validGuess: !1, errorMessage: "Guess must contain ".concat(i.toUpperCase()) }; return { validGuess: !0 } }(s, this.boardState[this.rowIndex - 1], this.evaluations[this.rowIndex - 1]), o = t.validGuess, n = t.errorMessage; if (!o) return a.setAttribute("invalid", ""), void this.addToast(n || "Not valid in hard mode") } var r = function(e, a) { for (var s = Array(a.length).fill(Oa), t = Array(a.length).fill(!0), o = Array(a.length).fill(!0), n = 0; n < e.length; n++) e[n] === a[n] && o[n] && (s[n] = Ma, t[n] = !1, o[n] = !1); for (var r = 0; r < e.length; r++) { var i = e[r]; if (t[r]) for (var l = 0; l < a.length; l++) { var d = a[l]; if (o[l] && i === d) { s[r] = Ia, o[l] = !1; break } } } return s }(s, this.solution); this.evaluations[this.rowIndex] = r, this.letterEvaluations = $a(this.boardState, this.evaluations), a.evaluation = this.evaluations[this.rowIndex], this.rowIndex += 1; var i = this.rowIndex >= 6, l = r.every((function(e) { return "correct" === e })); if (i || l) Va({ isWin: l, isStreak: !!this.lastCompletedTs && 1 === Na(new Date(this.lastCompletedTs), zz), numGuesses: this.rowIndex }), ja({ lastCompletedTs: Date.now() }), this.gameStatus = l ? es : as, Ca("event", "level_end", { level_name: Wa(this.solution), num_guesses: this.rowIndex, success: l }); this.tileIndex = 0, this.canInput = !1, ja({ rowIndex: this.rowIndex, boardState: this.boardState, evaluations: this.evaluations, solution: this.solution, gameStatus: this.gameStatus, lastPlayedTs: Date.now() }) } } }, { key: "addLetter", value: function(e) { this.gameStatus === Za && (this.canInput && (this.tileIndex >= 5 || (this.boardState[this.rowIndex] += e, this.$board.querySelectorAll("game-row")[this.rowIndex].setAttribute("letters", this.boardState[this.rowIndex]), this.tileIndex += 1))) } }, { key: "removeLetter", value: function() { if (this.gameStatus === Za && this.canInput && !(this.tileIndex <= 0)) { this.boardState[this.rowIndex] = this.boardState[this.rowIndex].slice(0, this.boardState[this.rowIndex].length - 1); var e = this.$board.querySelectorAll("game-row")[this.rowIndex]; this.boardState[this.rowIndex] ? e.setAttribute("letters", this.boardState[this.rowIndex]) : e.removeAttribute("letters"), e.removeAttribute("invalid"), this.tileIndex -= 1 } } }, { key: "submitGuess", value: function() { if (this.gameStatus === Za && this.canInput) { if (5 !== this.tileIndex) return this.$board.querySelectorAll("game-row")[this.rowIndex].setAttribute("invalid", ""), void this.addToast("Not enough letters"); this.evaluateRow() } } }, { key: "addToast", value: function(e, a) { var s = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], t = document.createElement("game-toast"); t.setAttribute("text", e), a && t.setAttribute("duration", a), s ? this.shadowRoot.querySelector("#system-toaster").prepend(t) : this.shadowRoot.querySelector("#game-toaster").prepend(t) } }, { key: "sizeBoard", value: function() { var e = this.shadowRoot.querySelector("#board-container"), a = Math.min(Math.floor(e.clientHeight * (5 / 6)), 350), s = 6 * Math.floor(a / 5); this.$board.style.width = "".concat(a, "px"), this.$board.style.height = "".concat(s, "px") } }, { key: "showStatsModal", value: function() { var e = this.$game.querySelector("game-modal"), a = document.createElement("game-stats"); this.gameStatus === es && this.rowIndex <= 6 && a.setAttribute("highlight-guess", this.rowIndex), a.gameApp = this, e.appendChild(a), e.setAttribute("open", "") } }, { key: "showHelpModal", value: function() { var e = this.$game.querySelector("game-modal"); e.appendChild(document.createElement("game-help")), e.setAttribute("open", "") } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(Ka.content.cloneNode(!0)), this.$game = this.shadowRoot.querySelector("#game"), this.$board = this.shadowRoot.querySelector("#board"), this.$keyboard = this.shadowRoot.querySelector("game-keyboard"), this.sizeBoard(), this.lastPlayedTs || setTimeout((function() { return e.showHelpModal() }), 100); for (var a = 0; a < 6; a++) { var s = document.createElement("game-row"); s.setAttribute("letters", this.boardState[a]), s.setAttribute("length", 5), this.evaluations[a] && (s.evaluation = this.evaluations[a]), this.$board.appendChild(s) } this.$game.addEventListener("game-key-press", (function(a) { var s = a.detail.key; "←" === s || "Backspace" === s ? e.removeLetter() : "↵" === s || "Enter" === s ? e.submitGuess() : Ba.includes(s.toLowerCase()) && e.addLetter(s.toLowerCase()) })), this.$game.addEventListener("game-last-tile-revealed-in-row", (function(a) { e.$keyboard.letterEvaluations = e.letterEvaluations, e.rowIndex < 6 && (e.canInput = !0); var s = e.$board.querySelectorAll("game-row")[e.rowIndex - 1]; (a.path || a.composedPath && a.composedPath()).includes(s) && ([es, as].includes(e.gameStatus) && (e.restoringFromLocalStorage ? e.showStatsModal() : (e.gameStatus === es && (s.setAttribute("win", ""), e.addToast(ss[e.rowIndex - 1], 2e3)), e.gameStatus === as && e.addToast(e.solution.toUpperCase(), 1 / 0), setTimeout((function() { e.showStatsModal() }), 2500))), e.restoringFromLocalStorage = !1) })), this.shadowRoot.addEventListener("game-setting-change", (function(a) { var s = a.detail, t = s.name, o = s.checked, n = s.disabled; switch (t) { case "hard-mode": return void(n ? e.addToast("Hard mode can only be enabled at the start of a round", 1500, !0) : (e.hardMode = o, ja({ hardMode: o }))) } })), this.shadowRoot.getElementById("today-button").addEventListener("click", (function() { window.localStorage.removeItem('gameState'); window.localStorage.setItem('puzzle', JSON.parse(Math.round(Math.abs(new Date().setHours(0, 0, 0, 0) - Ha) / 864e5))); window.location.reload(); })), this.shadowRoot.getElementById("random-button").addEventListener("click", (function() { window.localStorage.removeItem('gameState'); window.localStorage.setItem('puzzle', JSON.parse(Math.floor(Math.random() * La.length))); window.location.reload(); })), this.shadowRoot.getElementById("previous-button").addEventListener("click", (function() { var i = JSON.parse(window.localStorage.getItem('puzzle')) || Math.abs(new Date().setHours(0, 0, 0, 0) - Ha) / 864e5; window.localStorage.removeItem('gameState'); window.localStorage.setItem('puzzle', JSON.parse(Math.max(i - 1, 0))); window.location.reload(); })), this.shadowRoot.getElementById("next-button").addEventListener("click", (function() { var i = JSON.parse(window.localStorage.getItem('puzzle')) || Math.abs(new Date().setHours(0, 0, 0, 0) - Ha) / 864e5; window.localStorage.removeItem('gameState'); window.localStorage.setItem('puzzle', JSON.parse(Math.min(i + 1, La.length - 1))); window.location.reload(); })), this.shadowRoot.getElementById("settings-button").addEventListener("click", (function(a) { var s = e.$game.querySelector("game-page"), t = document.createTextNode("Settings"); s.appendChild(t); var o = document.createElement("game-settings"); o.setAttribute("slot", "content"), o.gameApp = e, s.appendChild(o), s.setAttribute("open", "") })), this.shadowRoot.getElementById("help-button").addEventListener("click", (function(a) { var s = e.$game.querySelector("game-page"), t = document.createTextNode("How to play"); s.appendChild(t); var o = document.createElement("game-help"); o.setAttribute("page", ""), o.setAttribute("slot", "content"), s.appendChild(o), s.setAttribute("open", "") })), this.shadowRoot.getElementById("statistics-button").addEventListener("click", (function(a) { e.showStatsModal() })), window.addEventListener("resize", this.sizeBoard.bind(this)) } }, { key: "disconnectedCallback", value: function() {} }, { key: "debugTools", value: function() { var e = this; this.shadowRoot.getElementById("debug-tools").appendChild(Qa.content.cloneNode(!0)), this.shadowRoot.getElementById("toast").addEventListener("click", (function(a) { e.addToast("hello world") })), this.shadowRoot.getElementById("modal").addEventListener("click", (function(a) { var s = e.$game.querySelector("game-modal"); s.textContent = "hello plz", s.setAttribute("open", "") })), this.shadowRoot.getElementById("reveal").addEventListener("click", (function() { e.evaluateRow() })), this.shadowRoot.getElementById("shake").addEventListener("click", (function() { e.$board.querySelectorAll("game-row")[e.rowIndex].setAttribute("invalid", "") })), this.shadowRoot.getElementById("bounce").addEventListener("click", (function() { var a = e.$board.querySelectorAll("game-row")[e.rowIndex - 1]; "" === a.getAttribute("win") ? a.removeAttribute("win") : a.setAttribute("win", "") })) } }]), t }(c(HTMLElement)); customElements.define("game-app", ts); var os = document.createElement("template"); os.innerHTML = "\n <style>\n .overlay {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n justify-content: center;\n align-items: center;\n background-color: var(--opacity-50);\n z-index: ".concat(3e3, ';\n }\n\n :host([open]) .overlay {\n display: flex;\n }\n\n .content {\n position: relative;\n border-radius: 8px;\n border: 1px solid var(--color-tone-6);\n background-color: var(--modal-content-bg);\n color: var(--color-tone-1);\n box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.2);\n width: 90%;\n max-height: 90%;\n overflow-y: auto;\n animation: SlideIn 200ms;\n max-width: var(--game-max-width);\n padding: 6px;\n box-sizing: border-box;\n }\n\n .content.closing {\n animation: SlideOut 200ms;\n }\n\n .close-icon {\n width: 24px;\n height: 24px;\n position: absolute;\n top: 16px;\n right: 16px;\n }\n\n game-icon {\n position: fixed;\n user-select: none;\n cursor: pointer;\n }\n\n @keyframes SlideIn {\n 0% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0px);\n opacity: 1;\n }\n }\n @keyframes SlideOut {\n 0% {\n transform: translateY(0px);\n opacity: 1;\n }\n 90% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateY(60px);\n }\n }\n </style>\n <div class="overlay">\n <div class="content">\n <slot></slot>\n <div class="close-icon">\n <game-icon icon="close"></game-icon>\n </div>\n </div>\n </div>\n'); var ns = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(os.content.cloneNode(!0)), this.addEventListener("click", (function(a) { e.shadowRoot.querySelector(".content").classList.add("closing") })), this.shadowRoot.addEventListener("animationend", (function(a) { "SlideOut" === a.animationName && (e.shadowRoot.querySelector(".content").classList.remove("closing"), e.removeChild(e.firstChild), e.removeAttribute("open")) })) } }]), t }(c(HTMLElement)); customElements.define("game-modal", ns); var rs = document.createElement("template"); rs.innerHTML = "\n <style>\n :host {\n height: var(--keyboard-height);\n padding-bottom: 36px;}\n #keyboard {\n margin: 0 8px;\n user-select: none;\n }\n \n .row {\n display: flex;\n width: 100%;\n margin: 0 auto 8px;\n /* https://stackoverflow.com/questions/46167604/ios-html-disable-double-tap-to-zoom */\n touch-action: manipulation;\n }\n \n button {\n font-family: inherit;\n font-weight: bold;\n border: 0;\n padding: 0;\n margin: 0 6px 0 0;\n height: 58px;\n border-radius: 4px;\n cursor: pointer;\n user-select: none;\n background-color: var(--key-bg);\n color: var(--key-text-color);\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n -webkit-tap-highlight-color: rgba(0,0,0,0.3);\n }\n\n button:focus {\n outline: none;\n }\n\n button.fade {\n transition: background-color 0.1s ease, color 0.1s ease;\n }\n \n button:last-of-type {\n margin: 0;\n }\n \n .half {\n flex: 0.5;\n }\n \n .one {\n flex: 1;\n }\n\n .one-and-a-half {\n flex: 1.5;\n font-size: 12px;\n }\n \n .two {\n flex: 2;\n }\n\n button[data-state='correct'] {\n background-color: var(--key-bg-correct);\n color: var(--key-evaluated-text-color);\n }\n\n button[data-state='present'] {\n background-color: var(--key-bg-present);\n color: var(--key-evaluated-text-color);\n }\n\n button[data-state='absent'] {\n background-color: var(--key-bg-absent);\n color: var(--key-evaluated-text-color);\n }\n\n </style>\n <div id=\"keyboard\"></div>\n"; var is = document.createElement("template"); is.innerHTML = "\n <button>key</button>\n"; var ls = document.createElement("template"); ls.innerHTML = '\n <div class="spacer"></div>\n'; var ds = [ ["q", "w", "e", "r", "t", "y", "u", "i", "o", "p"], ["-", "a", "s", "d", "f", "g", "h", "j", "k", "l", "-"], ["↵", "z", "x", "c", "v", "b", "n", "m", "←"] ], us = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), n(p(e = a.call(this)), "_letterEvaluations", {}), e.attachShadow({ mode: "open" }), e } return o(t, [{ key: "letterEvaluations", set: function(e) { this._letterEvaluations = e, this._render() } }, { key: "dispatchKeyPressEvent", value: function(e) { this.dispatchEvent(new CustomEvent("game-key-press", { bubbles: !0, composed: !0, detail: { key: e } })) } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(rs.content.cloneNode(!0)), this.$keyboard = this.shadowRoot.getElementById("keyboard"), this.$keyboard.addEventListener("click", (function(a) { var s = a.target.closest("button"); s && e.$keyboard.contains(s) && e.dispatchKeyPressEvent(s.dataset.key) })), window.addEventListener("keydown", (function(a) { if (!0 !== a.repeat) { var s = a.key, t = a.metaKey, o = a.ctrlKey; t || o || (Ba.includes(s.toLowerCase()) || "Backspace" === s || "Enter" === s) && e.dispatchKeyPressEvent(s) } })), this.$keyboard.addEventListener("transitionend", (function(a) { var s = a.target.closest("button"); s && e.$keyboard.contains(s) && s.classList.remove("fade") })), ds.forEach((function(a) { var s = document.createElement("div"); s.classList.add("row"), a.forEach((function(e) { var a; if (e >= "a" && e <= "z" || "←" === e || "↵" === e) { if ((a = is.content.cloneNode(!0).firstElementChild).dataset.key = e, a.textContent = e, "←" === e) { var t = document.createElement("game-icon"); t.setAttribute("icon", "backspace"), a.textContent = "", a.appendChild(t), a.classList.add("one-and-a-half") } "↵" == e && (a.textContent = "enter", a.classList.add("one-and-a-half")) } else(a = ls.content.cloneNode(!0).firstElementChild).classList.add(1 === e.length ? "half" : "one"); s.appendChild(a) })), e.$keyboard.appendChild(s) })), this._render() } }, { key: "_render", value: function() { for (var e in this._letterEvaluations) { var a = this.$keyboard.querySelector('[data-key="'.concat(e, '"]')); a.dataset.state = this._letterEvaluations[e], a.classList.add("fade") } } }]), t }(c(HTMLElement)); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function cs(e, a, s, t) { return new(s || (s = Promise))((function(o, n) { function r(e) { try { l(t.next(e)) } catch (e) { n(e) } } function i(e) { try { l(t.throw(e)) } catch (e) { n(e) } } function l(e) { var a; e.done ? o(e.value) : (a = e.value, a instanceof s ? a : new s((function(e) { e(a) }))).then(r, i) } l((t = t.apply(e, a || [])).next()) })) } function ps(e, a) { var s, t, o, n, r = { label: 0, sent: function() { if (1 & o[0]) throw o[1]; return o[1] }, trys: [], ops: [] }; return n = { next: i(0), throw: i(1), return: i(2) }, "function" == typeof Symbol && (n[Symbol.iterator] = function() { return this }), n; function i(n) { return function(i) { return function(n) { if (s) throw new TypeError("Generator is already executing."); for (; r;) try { if (s = 1, t && (o = 2 & n[0] ? t.return : n[0] ? t.throw || ((o = t.return) && o.call(t), 0) : t.next) && !(o = o.call(t, n[1])).done) return o; switch (t = 0, o && (n = [2 & n[0], o.value]), n[0]) { case 0: case 1: o = n; break; case 4: return r.label++, { value: n[1], done: !1 }; case 5: r.label++, t = n[1], n = [0]; continue; case 7: n = r.ops.pop(), r.trys.pop(); continue; default: if (!((o = (o = r.trys).length > 0 && o[o.length - 1]) || 6 !== n[0] && 2 !== n[0])) { r = 0; continue } if (3 === n[0] && (!o || n[1] > o[0] && n[1] < o[3])) { r.label = n[1]; break } if (6 === n[0] && r.label < o[1]) { r.label = o[1], o = n; break } if (o && r.label < o[2]) { r.label = o[2], r.ops.push(n); break } o[2] && r.ops.pop(), r.trys.pop(); continue } n = a.call(e, r) } catch (e) { n = [6, e], t = 0 } finally { s = o = 0 } if (5 & n[0]) throw n[1]; return { value: n[0] ? n[1] : void 0, done: !0 } }([n, i]) } } } customElements.define("game-keyboard", us), function() { (console.warn || console.log).apply(console, arguments) }.bind("[clipboard-polyfill]"); var ms, hs, ys, gs, bs = "undefined" == typeof navigator ? void 0 : navigator, fs = null == bs ? void 0 : bs.clipboard; null === (ms = null == fs ? void 0 : fs.read) || void 0 === ms || ms.bind(fs), null === (hs = null == fs ? void 0 : fs.readText) || void 0 === hs || hs.bind(fs); var ks = (null === (ys = null == fs ? void 0 : fs.write) || void 0 === ys || ys.bind(fs), null === (gs = null == fs ? void 0 : fs.writeText) || void 0 === gs ? void 0 : gs.bind(fs)), vs = "undefined" == typeof window ? void 0 : window, ws = (null == vs || vs.ClipboardItem, vs); var xs = function() { this.success = !1 }; function zs(e, a, s) { for (var t in e.success = !0, a) { var o = a[t], n = s.clipboardData; n.setData(t, o), "text/plain" === t && n.getData(t) !== o && (e.success = !1) } s.preventDefault() } function js(e) { var a = new xs, s = zs.bind(this, a, e); document.addEventListener("copy", s); try { document.execCommand("copy") } finally { document.removeEventListener("copy", s) } return a.success } function Ss(e, a) { _s(e); var s = js(a); return qs(), s } function _s(e) { var a = document.getSelection(); if (a) { var s = document.createRange(); s.selectNodeContents(e), a.removeAllRanges(), a.addRange(s) } } function qs() { var e = document.getSelection(); e && e.removeAllRanges() } function Es(e) { return cs(this, void 0, void 0, (function() { var a; return ps(this, (function(s) { if (a = "text/plain" in e, "undefined" == typeof ClipboardEvent && void 0 !== ws.clipboardData && void 0 !== ws.clipboardData.setData) { if (!a) throw new Error("No `text/plain` value was specified."); if (t = e["text/plain"], ws.clipboardData.setData("Text", t)) return [2, !0]; throw new Error("Copying failed, possibly because the user rejected it.") } var t; return js(e) || navigator.userAgent.indexOf("Edge") > -1 || Ss(document.body, e) || function(e) { var a = document.createElement("div"); a.setAttribute("style", "-webkit-user-select: text !important"), a.textContent = "temporary element", document.body.appendChild(a); var s = Ss(a, e); return document.body.removeChild(a), s }(e) || function(e) { var a = document.createElement("div"); a.setAttribute("style", "-webkit-user-select: text !important"); var s = a; a.attachShadow && (s = a.attachShadow({ mode: "open" })); var t = document.createElement("span"); t.innerText = e, s.appendChild(t), document.body.appendChild(a), _s(t); var o = document.execCommand("copy"); return qs(), document.body.removeChild(a), o }(e["text/plain"]) ? [2, !0] : [2, !1] })) })) } function As(e, a, s) { try { t = navigator.userAgent || navigator.vendor || window.opera, !/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t) && !/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4)) || navigator.userAgent.toLowerCase().indexOf("firefox") > -1 || void 0 === navigator.share || !navigator.canShare || !navigator.canShare(e) ? function(e) { return cs(this, void 0, void 0, (function() { return ps(this, (function(a) { if (ks) return [2, ks(e)]; if (!Es(function(e) { var a = {}; return a["text/plain"] = e, a }(e))) throw new Error("writeText() failed"); return [2] })) })) }(e.text).then(a, s) : navigator.share(e) } catch (e) { s() } var t } var stats = "" var Cs = document.createElement("template"); Cs.innerHTML = '\n <style>\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 16px 0; \n }\n h1 {\n font-weight: 700;\n font-size: 16px;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n text-align: center;\n margin-bottom: 10px;\n }\n \n #statistics {\n display: flex;\n margin-bottom: \n }\n\n .statistic-container {\n flex: 1;\n }\n\n .statistic-container .statistic {\n font-size: 36px;\n font-weight: 400;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n letter-spacing: 0.05em;\n font-variant-numeric: proportional-nums;\n }\n\n .statistic.timer {\n font-variant-numeric: initial;\n }\n\n .statistic-container .label {\n font-size: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 4.378em;\n }\n\n #guess-distribution {\n width: 80%;\n }\n\n .graph-container {\n width: 100%;\n height: 20px;\n display: flex;\n align-items: center;\n padding-bottom: 4px;\n font-size: 14px;\n line-height: 20px;\n }\n\n .graph-container .graph {\n width: 100%;\n height: 100%;\n padding-left: 4px;\n }\n\n .graph-container .graph .graph-bar {\n height: 100%;\n /* Assume no wins */\n width: 0%;\n position: relative;\n background-color: var(--color-absent);\n display: flex;\n justify-content: center;\n }\n\n .graph-container .graph .graph-bar.highlight {\n background-color: var(--color-correct);\n }\n\n .graph-container .graph .graph-bar.align-right {\n justify-content: flex-end;\n padding-right: 8px;\n }\n\n .graph-container .graph .num-guesses {\n font-weight: bold;\n color: var(--tile-text-color);\n }\n\n #statistics,\n #guess-distribution {\n padding-bottom: 10px;\n }\n\n .footer {\n display: flex;\n width: 100%;\n justify-content: center;\n }\n\n .countdown {\n border-right: 1px solid var(--color-tone-1);\n padding-right: 12px;\n width: 50%;\n }\n\n .play-again {\n display: flex;\n justify-content: center;\n align-items: center;\n padding-left: 12px;\n width: 50%;\n }\n\n button#play-again-button {\n background-color: var(--key-bg-correct);\n color: var(--key-evaluated-text-color);\n font-family: inherit;\n font-weight: bold;\n border-radius: 4px;\n cursor: pointer;\n border: none;\n user-select: none;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n -webkit-tap-highlight-color: rgba(0,0,0,0.3);\n width: 80%;\n font-size: 20px;\n height: 52px;\n -webkit-filter: brightness(100%);\n }\n button#play-again-button:hover {\n opacity: 0.9;\n }\n\n .share {\n display: flex;\n justify-content: center;\n align-items: center;\n padding-left: 12px;\n width: 50%;\n }\n\n .no-data {\n text-align: center;\n }\n\n button#share-button {\n background-color: var(--key-bg-correct);\n color: var(--key-evaluated-text-color);\n font-family: inherit;\n font-weight: bold;\n border-radius: 4px;\n cursor: pointer;\n border: none;\n user-select: none;\n display: flex;\n justify-content: center;\n align-items: center;\n text-transform: uppercase;\n -webkit-tap-highlight-color: rgba(0,0,0,0.3);\n width: 80%;\n font-size: 20px;\n height: 52px;\n -webkit-filter: brightness(100%);\n }\n button#share-button:hover {\n opacity: 0.9;\n }\n button#share-button game-icon {\n width: 24px;\n height: 24px;\n padding-left: 8px;\n }\n </style>\n\n <div class="container">\n <h1>Statistics</h1>\n <div id="statistics"></div>\n <h1>Guess Distribution</h1>\n <div id="guess-distribution"></div>\n <div class="footer"></div>\n </div>\n'; var Ls = document.createElement("template"); Ls.innerHTML = '\n <div class="statistic-container">\n <div class="statistic"></div>\n <div class="label"></div>\n </div>\n'; var Ts = document.createElement("template"); Ts.innerHTML = '\n <div class="graph-container">\n <div class="guess"></div>\n <div class="graph">\n <div class="graph-bar">\n <div class="num-guesses">\n </div>\n </div>\n </div>\n </div>\n'; var Is = document.createElement("template"); Is.innerHTML = '\n <div class="share">\n <button id="share-button">\n Share <game-icon icon="share"></game-icon>\n </button>\n </div>\n'; var Ms = { currentStreak: "Current Streak", maxStreak: "Max Streak", winPercentage: "Win %", gamesPlayed: "Played", gamesWon: "Won", averageGuesses: "Av. Guesses" }, Os = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), n(p(e = a.call(this)), "stats", {}), n(p(e), "gameApp", void 0), e.attachShadow({ mode: "open" }), e.stats = Xa(), e } return o(t, [{ key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(Cs.content.cloneNode(!0)); var a = this.shadowRoot.getElementById("statistics"), s = this.shadowRoot.getElementById("guess-distribution"), t = Math.max.apply(Math, g(Object.values(this.stats.guesses))); if (Object.values(this.stats.guesses).every((function(e) { return 0 === e }))) { var o = document.createElement("div"); o.classList.add("no-data"), o.innerText = "No Data", s.appendChild(o) } else for (var n = 1; n < Object.keys(this.stats.guesses).length; n++) { var r = n, i = this.stats.guesses[n], l = Ts.content.cloneNode(!0), d = Math.max(7, Math.round(i / t * 100)); l.querySelector(".guess").textContent = r; var u = l.querySelector(".graph-bar"); if (u.style.width = "".concat(d, "%"), "number" == typeof i) { l.querySelector(".num-guesses").textContent = i, i > 0 && u.classList.add("align-right"); var c = parseInt(this.getAttribute("highlight-guess"), 10); c && n === c && u.classList.add("highlight") } s.appendChild(l) } if (["gamesPlayed", "winPercentage"].forEach((function(s) { var t = Ms[s], o = e.stats[s], n = Ls.content.cloneNode(!0); n.querySelector(".label").textContent = t, n.querySelector(".statistic").textContent = o, a.appendChild(n) })), this.gameApp.gameStatus !== Za) { var p = this.shadowRoot.querySelector(".footer"), m = Is.content.cloneNode(!0); p.appendChild(m), this.shadowRoot.querySelector("button#share-button").addEventListener("click", (function(a) { a.preventDefault(), a.stopPropagation(); As(function(e) { var a = e.evaluations, s = e.dayOffset, t = e.rowIndex, o = e.isHardMode, n = e.isWin, r = JSON.parse(window.localStorage.getItem(j)), i = JSON.parse(window.localStorage.getItem(S)), l = "Wordle ".concat(s); l += " ".concat(n ? t : "X", "/").concat(6), o && (l += "*"); var d = ""; return a.forEach((function(e) { e && (e.forEach((function(e) { if (e) { var a = ""; switch (e) { case Ma: a = function(e) { return e ? "🟧" : "🟩" }(i); break; case Ia: a = function(e) { return e ? "🟦" : "🟨" }(i); break; case Oa: a = function(e) { return e ? "⬛" : "⬜" }(r) } d += a } })), d += "%0A") })), stats = "".concat(l, "%0A%0A").concat(d.trimEnd()); { text: "".concat(l, "\n\n").concat(d.trimEnd()) } }({ evaluations: e.gameApp.evaluations, dayOffset: e.gameApp.dayOffset, rowIndex: e.gameApp.rowIndex, isHardMode: e.gameApp.hardMode, isWin: e.gameApp.gameStatus === es }), (function() { window.open(`https://t.me/share/url?text=%0A${stats}&url=https://t.me/rewordlebot`) // navigator // .share({ // title: document.title, // text: stats, // url: "https://google.com" // }) // .then(() => console.log('Successful share! 🎉')) // .catch(err => console.error(err)); // e.gameApp.addToast("Copied results to clipboard", 2e3, !0) }), (function() { window.open(`https://t.me/share/url?text=%0A${stats}&url=https://t.me/rewordlebot`) // navigator // .share({ // title: document.title, // text: stats, // url: "https://google.com" // }) // .then(() => console.log('Successful share! 🎉')) // .catch(err => console.error(err)); // e.gameApp.addToast("Share failed", 2e3, !0) })) })) } } }]), t }(c(HTMLElement)); customElements.define("game-stats", Os); var Rs = document.createElement("template"); Rs.innerHTML = '\n <style>\n :host {\n }\n .container {\n display: flex;\n justify-content: space-between;\n }\n .switch {\n height: 20px;\n width: 32px;\n vertical-align: middle;\n /* not quite right */\n background: var(--color-tone-3);\n border-radius: 999px;\n display: block;\n position: relative;\n }\n .knob {\n display: block;\n position: absolute;\n left: 2px;\n top: 2px;\n height: calc(100% - 4px);\n width: 50%;\n border-radius: 8px;\n background: var(--white);\n transform: translateX(0);\n transition: transform 0.3s;\n }\n :host([checked]) .switch {\n background: var(--color-correct);\n }\n :host([checked]) .knob {\n transform: translateX(calc(100% - 4px));\n }\n :host([disabled]) .switch {\n opacity: 0.5;\n }\n </style>\n <div class="container">\n <label><slot></slot></label>\n <div class="switch">\n <span class="knob"></div>\n </div>\n </div>\n'; var $s = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(Rs.content.cloneNode(!0)), this.shadowRoot.querySelector(".container").addEventListener("click", (function(a) { a.stopPropagation(), e.hasAttribute("checked") ? e.removeAttribute("checked") : e.setAttribute("checked", ""), e.dispatchEvent(new CustomEvent("game-switch-change", { bubbles: !0, composed: !0, detail: { name: e.getAttribute("name"), checked: e.hasAttribute("checked"), disabled: e.hasAttribute("disabled") } })) })) } }], [{ key: "observedAttributes", get: function() { return ["checked"] } }]), t }(c(HTMLElement)); customElements.define("game-switch", $s); var Ps = document.createElement("template"); Ps.innerHTML = '\n <style>\n .instructions {\n font-size: 14px;\n color: var(--color-tone-1)\n }\n\n .examples {\n border-bottom: 1px solid var(--color-tone-4);\n border-top: 1px solid var(--color-tone-4);\n }\n\n .example {\n margin-top: 24px;\n margin-bottom: 24px;\n }\n\n game-tile {\n width: 40px;\n height: 40px;\n }\n\n :host([page]) section {\n padding: 16px;\n padding-top: 0px;\n }\n\n </style>\n <section>\n <div class="instructions">\n <p>Guess the <strong>WORDLE</strong> in 6 tries.</p>\n <p>Each guess must be a valid 5 letter word. Hit the enter button to submit.</p>\n <p>After each guess, the color of the tiles will change to show how close your guess was to the word.</p>\n <div class="examples">\n <p><strong>Examples</strong></p>\n <div class="example">\n <div class="row">\n <game-tile letter="w" evaluation="correct" reveal></game-tile>\n <game-tile letter="e"></game-tile>\n <game-tile letter="a"></game-tile>\n <game-tile letter="r"></game-tile>\n <game-tile letter="y"></game-tile>\n </div>\n <p>The letter <strong>W</strong> is in the word and in the correct spot.</p>\n </div>\n <div class="example">\n <div class="row">\n <game-tile letter="p"></game-tile>\n <game-tile letter="i" evaluation="present" reveal></game-tile>\n <game-tile letter="l"></game-tile>\n <game-tile letter="l"></game-tile>\n <game-tile letter="s"></game-tile>\n </div>\n <p>The letter <strong>I</strong> is in the word but in the wrong spot.</p>\n </div>\n <div class="example">\n <div class="row">\n <game-tile letter="v"></game-tile>\n <game-tile letter="a"></game-tile>\n <game-tile letter="g"></game-tile>\n <game-tile letter="u" evaluation="absent" reveal></game-tile>\n <game-tile letter="e"></game-tile>\n </div>\n <p>The letter <strong>U</strong> is not in the word in any spot.</p>\n </div>\n </div>\n <p><strong>A new WORDLE will be available each day!<strong></p>\n </div>\n </section>\n'; var Hs = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { this.shadowRoot.appendChild(Ps.content.cloneNode(!0)) } }]), t }(c(HTMLElement)); customElements.define("game-help", Hs); var Ns = document.createElement("template"); Ns.innerHTML = "\n <style>\n .overlay {\n display: none;\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n justify-content: center;\n background-color: var(--color-background);\n animation: SlideIn 100ms linear;\n z-index: ".concat(2e3, ';\n }\n\n :host([open]) .overlay {\n display: flex;\n }\n\n .content {\n position: relative;\n color: var(--color-tone-1);\n padding: 0 32px;\n max-width: var(--game-max-width);\n width: 100%;\n overflow-y: auto;\n height: 100%;\n display: flex;\n flex-direction: column;\n }\n\n .content-container {\n height: 100%;\n }\n\n .overlay.closing {\n animation: SlideOut 150ms linear;\n }\n\n header {\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n }\n\n h1 {\n font-weight: 700;\n font-size: 16px;\n letter-spacing: 0.5px;\n text-transform: uppercase;\n text-align: center;\n margin-bottom: 10px;\n }\n\n game-icon {\n position: absolute;\n right: 0;\n user-select: none;\n cursor: pointer;\n }\n\n @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {\n .content {\n max-width: 100%;\n padding: 0;\n }\n game-icon {\n padding: 0 16px;\n }\n }\n\n @keyframes SlideIn {\n 0% {\n transform: translateY(30px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0px);\n opacity: 1;\n }\n }\n @keyframes SlideOut {\n 0% {\n transform: translateY(0px);\n opacity: 1;\n }\n 90% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateY(60px);\n }\n }\n </style>\n <div class="overlay">\n <div class="content">\n <header>\n <h1><slot></slot></h1>\n <game-icon icon="close"></game-icon>\n </header>\n <div class="content-container">\n <slot name="content"></slot>\n </div>\n </div>\n </div>\n'); var Ds = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(Ns.content.cloneNode(!0)), this.shadowRoot.querySelector("game-icon").addEventListener("click", (function(a) { e.shadowRoot.querySelector(".overlay").classList.add("closing") })), this.shadowRoot.addEventListener("animationend", (function(a) { "SlideOut" === a.animationName && (e.shadowRoot.querySelector(".overlay").classList.remove("closing"), Array.from(e.childNodes).forEach((function(a) { e.removeChild(a) })), e.removeAttribute("open")) })) } }]), t }(c(HTMLElement)); customElements.define("game-page", Ds); var Gs = document.createElement("template"); Gs.innerHTML = '\n <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path fill=var(--color-tone-3) />\n </svg>\n'; var Bs = { help: "M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z", settings: "M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z", backspace: "M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7.07L2.4 12l4.66-7H22v14zm-11.59-2L14 13.41 17.59 17 19 15.59 15.41 12 19 8.41 17.59 7 14 10.59 10.41 7 9 8.41 12.59 12 9 15.59z", close: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z", share: "M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92c0-1.61-1.31-2.92-2.92-2.92zM18 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 13c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm12 7.02c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z", statistics: "M16,11V3H8v6H2v12h20V11H16z M10,5h4v14h-4V5z M4,11h4v8H4V11z M20,19h-4v-6h4V19z" }, Fs = function(e) { r(t, e); var a = h(t); function t() { var e; return s(this, t), (e = a.call(this)).attachShadow({ mode: "open" }), e } return o(t, [{ key: "connectedCallback", value: function() { this.shadowRoot.appendChild(Gs.content.cloneNode(!0)); var e = this.getAttribute("icon"); this.shadowRoot.querySelector("path").setAttribute("d", Bs[e]), "backspace" === e && this.shadowRoot.querySelector("path").setAttribute("fill", "var(--color-tone-1)"), "share" === e && this.shadowRoot.querySelector("path").setAttribute("fill", "var(--white)") } }]), t }(c(HTMLElement)); customElements.define("game-icon", Fs); var Ws = document.createElement("template"); Ws.innerHTML = '\n <div id="timer"></div>\n'; var Ys = 6e4, Js = 36e5, Us = function(e) { r(t, e); var a = h(t); function t() { var e; s(this, t), n(p(e = a.call(this)), "targetEpochMS", void 0), n(p(e), "intervalId", void 0), n(p(e), "$timer", void 0), e.attachShadow({ mode: "open" }); var o = zz; return o.setDate(o.getDate() + 1), o.setHours(0, 0, 0, 0), e.targetEpochMS = o.getTime(), e } return o(t, [{ key: "padDigit", value: function(e) { return e.toString().padStart(2, "0") } }, { key: "updateTimer", value: function() { var e, a = (zz).getTime(), s = Math.floor(this.targetEpochMS - a); if (s <= 0) e = "00:00:00"; else { var t = Math.floor(s % 864e5 / Js), o = Math.floor(s % Js / Ys), n = Math.floor(s % Ys / 1e3); e = "".concat(this.padDigit(t), ":").concat(this.padDigit(o), ":").concat(this.padDigit(n)) } this.$timer.textContent = e } }, { key: "connectedCallback", value: function() { var e = this; this.shadowRoot.appendChild(Ws.content.cloneNode(!0)), this.$timer = this.shadowRoot.querySelector("#timer"), this.intervalId = setInterval((function() { e.updateTimer() }), 200) } }, { key: "disconnectedCallback", value: function() { clearInterval(this.intervalId) } }]), t }(c(HTMLElement)); return customElements.define("countdown-timer", Us), e.CountdownTimer = Us, e.GameApp = ts, e.GameHelp = Hs, e.GameIcon = Fs, e.GameKeyboard = us, e.GameModal = ns, e.GamePage = Ds, e.GameRow = x, e.GameSettings = _a, e.GameStats = Os, e.GameSwitch = $s, e.GameThemeManager = _, e.GameTile = v, e.GameToast = Aa, Object.defineProperty(e, "__esModule", { value: !0 }), e }({});
const { Pool } = require('pg'); const pool = new Pool({ user: "postgres", password: process.env.PSQL_PASSWORD, host: "localhost", port: 5432, database: "boomv1" }); module.exports = { query: (text, params) => pool.query(text, params), };
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { useLocation } from '@reach/router'; import { useStaticQuery, graphql } from 'gatsby'; // https://www.gatsbyjs.com/docs/add-seo-component/ const Head = ({ title, description, image }) => { const { pathname } = useLocation(); const { site } = useStaticQuery( graphql` query { site { siteMetadata { defaultTitle: title defaultDescription: description siteUrl defaultImage: image twitterUsername } } } `, ); const { defaultTitle, defaultDescription, siteUrl, defaultImage, twitterUsername, } = site.siteMetadata; const seo = { title: title || defaultTitle, description: description || defaultDescription, image: `${siteUrl}${image || defaultImage}`, url: `${siteUrl}${pathname}`, }; return ( <Helmet title={'Umesha-Ramanayake'} defaultTitle={'Umesha-Ramanayake'} titleTemplate={`%s`}> <html lang="en" /> <meta name="description" content={seo.description} /> <meta name="image" content={seo.image} /> <meta property="og:title" content={seo.title} /> <meta property="og:description" content={seo.description} /> <meta property="og:image" content={seo.image} /> <meta property="og:url" content={seo.url} /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:creator" content={twitterUsername} /> <meta name="twitter:title" content={seo.title} /> <meta name="twitter:description" content={seo.description} /> <meta name="twitter:image" content={seo.image} /> <meta name="google-site-verification" content="DCl7VAf9tcz6eD9gb67NfkNnJ1PKRNcg8qQiwpbx9Lk" /> </Helmet> ); }; export default Head; Head.propTypes = { title: PropTypes.string, description: PropTypes.string, image: PropTypes.string, }; Head.defaultProps = { title: null, description: null, image: null, };
/* eslint-disable */ const fs = require('fs-extra') const path = require('path') const resolveTypesPath = (...paths) => path.resolve(__dirname, '../types', ...paths) // remove useless types fs.rmdirSync(resolveTypesPath('./dev-entry'), { recursive: true })
/** * @class draw2d.shape.icon.Picture * See the example: * * @example preview small frame * * let icon = new draw2d.shape.icon.Picture(); * * canvas.add(icon,50,10); * * @inheritable * @author Andreas Herz * @extends draw2d.shape.icon.Icon */ import draw2d from '../../packages' draw2d.shape.icon.Picture = draw2d.shape.icon.Icon.extend({ NAME: "draw2d.shape.icon.Picture", /** * * @constructor * Creates a new icon element which are not assigned to any canvas. * * @param {Object} attr the configuration of the shape */ init: function (attr, setter, getter) { this._super(extend({width: 50, height: 50}, attr), setter, getter) }, /** * @private * @returns */ createSet: function () { return this.canvas.paper.path("M2.5,4.833v22.334h27V4.833H2.5zM25.25,25.25H6.75V6.75h18.5V25.25zM11.25,14c1.426,0,2.583-1.157,2.583-2.583c0-1.427-1.157-2.583-2.583-2.583c-1.427,0-2.583,1.157-2.583,2.583C8.667,12.843,9.823,14,11.25,14zM24.251,16.25l-4.917-4.917l-6.917,6.917L10.5,16.333l-2.752,2.752v5.165h16.503V16.25z") } })
import * as utils from './utils'; export default { pluginOptions: {}, data() { return { ymapEventBus: utils.emitter, ymapId: 'yandexMap' + Math.round(Math.random() * 100000), myMap: {}, style: this.ymapClass ? '' : 'width: 100%; height: 100%;' } }, props: { coords: { type: Array, validator(val) { return !val.filter(item => isNaN(item)).length }, required: true }, zoom: { validator(val) { return !isNaN(val) }, default: 18 }, clusterOptions: { type: Object, default: () => ({}) }, clusterCallbacks: { type: Object, default: () => ({}) }, behaviors: { type: Array, default: () => ['default'] }, controls: { type: Array, default: () => ['default'], validator(val) { return utils.controlsTypeValidator(val); } }, detailedControls: { type: Object, validator(val) { const controls = Object.keys(val); return utils.controlsTypeValidator(controls) } }, scrollZoom: { type: Boolean, default: true }, zoomControl: Object, mapType: { type: String, default: 'map', validator(val) { return ['map', 'satellite', 'hybrid'].includes(val) } }, placemarks: { type: Array, default() { return []; } }, useObjectManager: { type: Boolean, default: false }, objectManagerClusterize: { type: Boolean, default: true }, ymapClass: String, initWithoutMarkers: { type: Boolean, default: true }, mapLink: String, debug: { type: Boolean, default: false }, settings: { type: Object, default: () => ({}) }, options: { type: Object, default: () => ({}) } }, computed: { coordinates() { return this.coords.map(item => +item) }, }, methods: { getMarkersFromSlots() { return this.$slots.default && this.$slots.default.map(m => { const props = m.componentOptions && m.componentOptions.propsData; if (!props) return; let balloonOptions = {}; if (props.balloonTemplate) { const BalloonContentLayoutClass = ymaps.templateLayoutFactory.createClass(props.balloonTemplate); balloonOptions = { balloonContentLayout: BalloonContentLayoutClass } } let marker = { markerId: props.markerId, markerType: props.markerType || 'placemark', coords: utils.setCoordsToNumeric(props.coords), hintContent: props.hintContent, markerFill: props.markerFill, circleRadius: +props.circleRadius, clusterName: props.clusterName, markerStroke: props.markerStroke, balloon: props.balloon, callbacks: props.callbacks, properties: props.properties, options: props.options, balloonOptions }; if (props.icon && ['default#image', 'default#imageWithContent'].includes(props.icon.layout)) { marker.iconContent = props.icon.content; marker.iconLayout = props.icon.layout; marker.iconImageHref = props.icon.imageHref; marker.iconImageSize = props.icon.imageSize; marker.iconImageOffset = props.icon.imageOffset; marker.iconContentOffset = props.icon.contentOffset; if (props.icon.contentLayout && typeof props.icon.contentLayout === 'string') { marker.iconContentLayout = ymaps.templateLayoutFactory.createClass(props.icon.contentLayout); } } else { marker.icon = props.icon; } return marker; }).filter(marker => marker && marker.markerType) || []; }, createMarkers() { let markers = []; const myMarkers = this.getMarkersFromSlots(); for (let i = 0; i < myMarkers.length; i++) { const m = myMarkers[i]; const markerType = utils.createMarkerType(m.markerType, this.useObjectManager); const initialProps = { hintContent: m.hintContent, iconContent: m.icon && m.icon.content || m.iconContent, markerId: m.markerId }; const balloonProps = m.balloon ? { balloonContentHeader: m.balloon.header, balloonContentBody: m.balloon.body, balloonContentFooter: m.balloon.footer, } : {}; const properties = Object.assign(initialProps, balloonProps, m.properties); const iconOptions = m.iconLayout ? { iconLayout: m.iconLayout, iconImageHref: m.iconImageHref, iconImageSize: m.iconImageSize, iconImageOffset: m.iconImageOffset, iconContentOffset: m.iconContentOffset, iconContentLayout: m.iconContentLayout, } : { preset: m.icon && `islands#${utils.getIconPreset(m)}Icon` }; const strokeOptions = m.markerStroke ? { strokeColor: m.markerStroke.color || "0066ffff", strokeOpacity: parseFloat(m.markerStroke.opacity) >= 0 ? parseFloat(m.markerStroke.opacity) : 1, strokeStyle: m.markerStroke.style, strokeWidth: parseFloat(m.markerStroke.width) >= 0 ? parseFloat(m.markerStroke.width) : 1 } : {}; const fillOptions = m.markerFill ? { fill: m.markerFill.enabled || true, fillColor: m.markerFill.color || "0066ff99", fillOpacity: parseFloat(m.markerFill.opacity) >= 0 ? parseFloat(m.markerFill.opacity) : 1, fillImageHref: m.markerFill.imageHref || '' } : {}; const options = Object.assign(iconOptions, strokeOptions, fillOptions, m.balloonOptions, m.options); if (markerType === 'Circle') { m.coords = [m.coords, m.circleRadius]; } const obj = { properties, options, markerType, coords: m.coords, clusterName: m.clusterName, callbacks: m.callbacks } const marker = utils.createMarker(obj, this.useObjectManager); markers.push(marker); } if (this.placemarks) { this.placemarks.forEach(placemark => { const { markerType = 'Placemark', properties, options = {}, coords, clusterName, callbacks, balloonTemplate } = placemark; const type = utils.createMarkerType(markerType, this.useObjectManager); if (balloonTemplate) { const BalloonContentLayoutClass = ymaps.templateLayoutFactory.createClass(balloonTemplate); options.balloonContentLayout = BalloonContentLayoutClass; } const obj = { properties, options, markerType: type, coords, clusterName, callbacks } let yplacemark = utils.createMarker(obj, this.useObjectManager); markers.push(yplacemark); }) } return markers; }, setMarkers() { const config = { options: this.clusterOptions, callbacks: this.clusterCallbacks, map: this.myMap, useObjectManager: this.useObjectManager, objectManagerClusterize: this.objectManagerClusterize }; utils.addToCart(this.createMarkers(), config); }, init() { // if ymap isn't initialized or have no markers; if (!window.ymaps || !ymaps.GeoObjectCollection || (!this.initWithoutMarkers && !this.$slots.default && !this.placemarks.length)) return; this.$emit('map-initialization-started'); this.myMap = new ymaps.Map(this.ymapId, { center: this.coordinates, zoom: +this.zoom, behaviors: this.behaviors, controls: this.controls, type: `yandex#${this.mapType}` }, this.options); this.myMap.events.add('click', e => this.$emit('click', e)) if (this.zoomControl) { this.myMap.controls.remove('zoomControl'); this.myMap.controls.add(new ymaps.control.ZoomControl(this.zoomControl)); } if (this.detailedControls) { const controls = Object.keys(this.detailedControls); controls.forEach(controlName => { this.myMap.controls.remove(controlName); this.myMap.controls.add(controlName, this.detailedControls[controlName]); }) } if (this.scrollZoom === false) { this.myMap.behaviors.disable('scrollZoom'); } this.setMarkers(); this.$emit('map-was-initialized', this.myMap); } }, watch: { coordinates(newVal) { this.myMap.panTo && this.myMap.panTo(newVal) }, placemarks() { if (window.ymaps) { this.myMap.geoObjects && this.myMap.geoObjects.removeAll(); this.setMarkers(); } }, zoom() { this.myMap.setZoom(this.zoom); } }, render(h) { return h( 'section', { class: 'ymap-container', ref: 'mapContainer' }, [ h( 'div', { attrs: { id: this.ymapId, class: this.ymapClass, style: this.style } } ), h( 'div', { ref: 'markersContainer', attrs: { class: 'ymap-markers' } }, [ this.$slots.default ] ) ] ) }, mounted() { this.markerObserver = new MutationObserver(function() { this.myMap.geoObjects && this.myMap.geoObjects.removeAll(); this.setMarkers(); }.bind(this)); this.mapObserver = new MutationObserver(function() { this.myMap.container.fitToViewport(); }.bind(this)); // Setup the observer const { markersContainer, mapContainer } = this.$refs; this.markerObserver.observe( markersContainer, { attributes: true, childList: true, characterData: true, subtree: true } ); this.mapObserver.observe( mapContainer, { attributes: true, childList: true, characterData: true, subtree: false } ); if (this.ymapEventBus.scriptIsNotAttached) { const yandexMapScript = document.createElement('SCRIPT'); const { apiKey = '', lang = 'ru_RU', version = '2.1', coordorder = 'latlong' } = { ...this.$options.pluginOptions, ...this.settings }; const mode = this.debug ? 'debug' : 'release'; const settings = `lang=${lang}${ apiKey && `&apikey=${apiKey}` }&mode=${mode}&coordorder=${coordorder}` const mapLink = this.mapLink || `https://api-maps.yandex.ru/${version}/?${settings}`; yandexMapScript.setAttribute('src', mapLink); yandexMapScript.setAttribute('async', ''); yandexMapScript.setAttribute('defer', ''); document.body.appendChild(yandexMapScript); this.ymapEventBus.scriptIsNotAttached = false; yandexMapScript.onload = () => { this.ymapEventBus.ymapReady = true; this.ymapEventBus.$emit('scriptIsLoaded'); } } if (this.ymapEventBus.ymapReady) { ymaps.ready(this.init); } else { this.ymapEventBus.$on('scriptIsLoaded', () => { this.ymapEventBus.updateMap = () => { this.myMap.geoObjects && this.myMap.geoObjects.removeAll(); this.setMarkers(); }; ymaps.ready(this.init); }) } }, beforeDestroy() { this.myMap.geoObjects && this.myMap.geoObjects.removeAll(); this.markerObserver.disconnect(); } }
import React from 'react' import Heading from '../Reuseable/Heading' export default function Contact() { return ( <section className="py-3"> <Heading title="Contact Us" /> <div className="col-10 col-sm-8 mx-auto"> <form action="https://formspree.io/nafila@outlook.com" method="POST"> <div className="form-group"> <input type="text" name="name" id="name" placeholder="Your Name" className="form-control" /> </div> <div className="form-group"> <input type="email" name="email" id="email" placeholder="Your Eamil" className="form-control" /> </div> <div className="form-group"> <input type="text" name="mobile" id="mobile" placeholder="Your mobile" className="form-control" /> </div> <div className="form-group"> <textarea type="text" name="description" id="description" placeholder="Your message" className="form-control" /> </div> <button type="submit" className="btn btn-outline-info btn-block"> Submit </button> </form> </div> </section> ) }
var fs = require("fs"); var path = require("path"); /** * Take BrowserSync plugins and determine if * any UI is provided by looking at data in the the * modules package.json file * @param plugins * @returns {*} */ module.exports = function (plugins) { return require("immutable") .fromJS(plugins) /** * Exclude the UI */ .filter(function (plugin) { return plugin.get("name") !== "UI"; }) /** * Attempt to retrieve a plugins package.json file */ .map(function (plugin) { var moduleName = plugin.getIn(["opts", "moduleName"]); try { plugin = plugin.set("pkg", require("immutable").fromJS(require(path.join(moduleName, "package.json")))); } catch (e) { console.error(e); return plugin; } return plugin.set("relpath", path.dirname(require.resolve(moduleName))); }) /** * Try to load markup for each plugin */ .map(function (plugin) { if (!plugin.hasIn(["pkg", "browser-sync:ui"])) { return plugin; } var template = plugin.getIn(["pkg", "browser-sync:ui", "hooks", "templates"]); var markup = plugin.getIn(["pkg", "browser-sync:ui", "hooks", "markup"]); var templatePath, markupPath; if (template.size) { templatePath = path.join(plugin.get("relpath"), template.get(0)); markupPath = path.join(plugin.get("relpath"), markup); if (fs.existsSync(templatePath)) { plugin = plugin.set("templates", fs.readFileSync(templatePath, "utf-8")); plugin = plugin.set("markup", fs.readFileSync(markupPath, "utf-8")); } } return plugin; }) /** * Try to load Client JS for each plugin */ .map(function (plugin) { if (!plugin.hasIn(["pkg", "browser-sync:ui"])) { return plugin; } var clientJS = plugin.getIn(["pkg", "browser-sync:ui", "hooks", "client:js"]); var clientJSPath; if (clientJS.size) { clientJSPath = path.join(plugin.get("relpath"), clientJS.get(0)); if (fs.existsSync(clientJSPath)) { plugin = plugin.set("client:js", fs.readFileSync(clientJSPath, "utf-8")); } } return plugin; }); };
var tags = require("../models/classAbilityTags"); const factory = require("../controllers/factory"); // ---------------------------------------- Cria a classe Monge function initializeMonk() { const kiPointsProgression = [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, ]; const monkId = factory.classController.addClass( "Monge", "Pontos de Ki", kiPointsProgression, "Tradições Monásticas" ); // Rajada de Golpes - 2º Nível factory.classController.addClassAbility( monkId, "Rajada de Golpes", "Imediatamente após usar a ação de Ataque no seu turno, você pode gastar 1 Ponto de Ki para fazer 2 ataques desarmados como uma ação bônus.", 1, undefined, 2, [tags.COMBAT, tags.DAMAGE] ); // Defesa Paciente - 2º Nível factory.classController.addClassAbility( monkId, "Defesa Paciente", "Você pode gastar 1 Ponto de Ki para usar a ação de Esquiva como uma ação bônus no seu turno.", 1, undefined, 2, [tags.COMBAT, tags.DEFENSE, tags.BUFF] ); // Passo do Vento - 2º Nível factory.classController.addClassAbility( monkId, "Passo do Vento", "Você pode gastar 1 Ponto de Ki para usar a ação de Desengajar ou Disparar como uma ação bônus no seu turno.", 1, undefined, 2, [tags.COMBAT, tags.DEFENSE, tags.BUFF, tags.MOVEMENT] ); // Característica da Tradição Monástica - 3º Nível factory.classController.addClassAbility( monkId, "Habilidade de Subclasse", "", 0, undefined, 3, [] ); // Refletir Projéteis - 3º Nível factory.classController.addClassAbility( monkId, "Refletir Projéteis", "Você pode usar sua reação para refletir ou pegar um projétil quando um ataque com arma à distância acerta você. Ao fazer isso, você reduz o dano do ataque em 1d10 + seu modificador de Destreza + seu nível de Monge.\nSe você reduzir o dano a 0, você pode pegar o projétil se ele for pequeno o suficiente para caber em uma de suas mãos, e você tenha ao menos uma mão livre. Você pode então gastar 1 Ponto de Ki e fazer um ataque à distância com arma (6/18 m de alcance) com a arma ou munição que você pegou, como parte da mesma reação. Você pode adicionar sua proficiência à rolagem de ataque, independentemente da suas proficiências com armas, e o projétil conta como uma arma de Monge para esse ataque.", 0, 1, 3, [tags.COMBAT, tags.DEFENSE, tags.NEGATION, tags.DAMAGE] ); // Ataque Empoderado por Ki - 3º Nível, opcional factory.classController.addClassAbility( monkId, "Ataque Empoderado por Ki", "Se você gastar 1 Ponto de Ki como parte de alguma ação no seu turno, você pode usar sua ação bônus para fazer um ataque desarmado ou com uma Arma de Monge como uma ação bônus antes do final do seu turno.", 1, undefined, 3, [tags.COMBAT, tags.DAMAGE], true ); // Cura Acelerada - 4º Nível, opcional factory.classController.addClassAbility( monkId, "Cura Acelerada", "Como uma ação você casta 2 Pontos de Ki e rola um dado de Artes Marciais. Você recupera um número de Pontos de Vida igual ao número rolado mais seu bônus de proficiência.", 2, undefined, 4, [tags.HEALING], true ); // Golpe Atordoante - 5º Nível factory.classController.addClassAbility( monkId, "Golpe Atordoante", "Quando você acertar outra criatura com um ataque com arma corpo-a-corpo, você pode gastar 1 Ponto de Ki para tentar um golpe atordoante. O alvo deve ter sucesso em um teste de resistência de Constituição ou ficar atordoado até o final de seu próximo turno.", 1, undefined, 5, [tags.COMBAT, tags.CONTROL, tags.DEBUFF] ); // Mira Focada - 5º Nível, opcional factory.classController.addClassAbility( monkId, "Mira Focada", "Quando você errar um ataque, você pode gastar entre 1 a 3 Pontos de Ki para aumentar sua rolagem de ataque em 2 para cada Ponto de Ki gasto, potencialmente transformando seu erro em um acerto.", 1, 3, 5, [tags.COMBAT, tags.DAMAGE], true ); // Característica da Tradição Monástica - 6º Nível factory.classController.addClassAbility( monkId, "Habilidade de Subclasse", "", 0, undefined, 6, [] ); // Característica da Tradição Monástica - 11º Nível factory.classController.addClassAbility( monkId, "Habilidade de Subclasse", "", 0, undefined, 11, [] ); // Alma de Diamante - 14º Nível factory.classController.addClassAbility( monkId, "Alma de Diamante", "Quando você fizer um teste de resistência e falhar, você pode gastar 1 Ponto de Ki para rolá-lo novamente, e deve usar o segundo resultado.", 1, undefined, 14, [tags.COMBAT, tags.DEFENSE] ); // Característica da Tradição Monástica - 17º Nível factory.classController.addClassAbility( monkId, "Habilidade de Subclasse", "", 0, undefined, 17, [] ); // Corpo Vazio - 18º Nível factory.classController.addClassAbility( monkId, "Corpo Vazio", "Você pode usar sua ação para gastar 4 Pontos de Ki e ficar invisível por 1 minuto. Durante esse tempo você tem resistência a todos os tipos de dano, exceto dano de energia.\nAdicionalmente você pode gastar 8 Pontos de Ki para conjurar a magia Projeção Astral, sem a necessidade de componentes materiais. Ao fazer isso, você não pode levar outras criaturas com você.", 4, 8, 18, [tags.COMBAT, tags.DEFENSE] ); console.log("Monk class initialized"); const openHandId = factory.classController.addSubclass("Mão Aberta", monkId); // Técnica da Mão Aberta - 3º Nível factory.classController.addSubclassAbility( openHandId, "Técnica da Mão Aberta", "Você pode manipular o ki do seu oponente enquanto canaliza o seu próprio. Sempre que você acertar uma criatura com um dos ataques garantidos pela Rajada de Golpes, você pode impor um dos seguintes efeitos no alvo.\n-Ele deve ter sucesso em um teste de resistência de Destreza ou ficar caído.\nEle deve ter resistência de Força. Se fracassar, você pode empurrá-lo para até 4,5 metros de você.\nEle não pode ter reações até o final do seu próximo turno.", 0, undefined, 3, [tags.COMBAT, tags.CONTROL, tags.DEBUFF] ); // Completude do Corpo - 6º Nível factory.classController.addSubclassAbility( openHandId, "Completude do Corpo", "Com uma ação, você recupera pontos de vida equivalentes a três vezes o seu nível. Você deve finalizar um descanso longo antes de utilizar essa característica novamente.", 0, undefined, 6, [tags.HEALING] ); // Tranquilidade - 11º Nível factory.classController.addSubclassAbility( openHandId, "Tranquilidade", "No final de um descanso longo, você ganha o efeito da magia santuário que dura até o começo do seu próximo descanso longo (a magia pode acabar mais cedo normalmente). A CD de resistência para a magia é 8 + seu modificador de Sabedoria + seu bônus de proficiência.", 0, undefined, 11, [tags.CONTROL, tags.DEFENSE] ); // Palma Trêmula - 17º Nível factory.classController.addSubclassAbility( openHandId, "Palma Trêmula", "Quando você acerta uma criatura com um ataque desarmado, você pode criar vibrações imperceptíveis que duram por um número de dias igual a seu nível de monge. As vibrações são inofensivas a não ser que você use sua ação para acabá-las. Para isso você e o alvo devem estar no mesmo plano de existência. Ao fazer isso, a criatura deve fazer um teste de resistência de Constituição. Se fracassar, ela cai a 0 pontos de vida. Se tiver sucesso, ela recebe 10d10 de dano necrótico.\nApenas uma criatura pode estar sob efeito dessa característica por vez. Você pode escolher terminar as vibrações de forma inofensiva sem precisar usar uma ação.", 3, undefined, 17, [tags.CONTROL, tags.DAMAGE] ); console.log("Open Hand subclass initialized"); const sombraId = factory.classController.addSubclass("Sombra", monkId); // Artes Sombrias - 3º Nível factory.classController.addSubclassAbility( sombraId, "Artes Sombrias", "Você pode usar sua ação para conjurar escuridão, visão no escuro, passos sem rastros ou siêncio sem precisar de componentes materiais.", 2, undefined, 3, [tags.CONTROL, tags.DEBUFF, tags.BUFF, tags.MOVEMENT] ); // Passo Sombrio - 6º Nível factory.classController.addSubclassAbility( sombraId, "Passo Sombrio", "Você pode usar sua ação bônus para teletransportar-se a até 18 metros para um espaço desocupado que possa ver, desde que você e o destino estejam em penumbra ou escuridão. Após fazer isso você ganha vantagem no primeiro ataque corpo-a-corpo que fizer até o fim do turno.", 0, undefined, 6, [tags.COMBAT, tags.MOVEMENT] ); // Manto de Sombras - 11º Nível factory.classController.addSubclassAbility( sombraId, "Manto de Sombras", "Quando estiver sob penumbra ou escuridão, você pode usar sua ação para ficar invisível. Você permanece invisível até atacar, conjurar uma magia ou estar sob luz plena", 0, undefined, 11, [tags.BUFF, tags.DEFENSE, tags.CONTROL] ); // Oportunista - 17º Nível factory.classController.addSubclassAbility( sombraId, "Oportunista", "Quando uma criatura a 1,5 metros de você for acertada por um ataque feito por outra criatura que não seja você, você pode usar sua reação para atacar aquela criatura.", 0, undefined, 17, [tags.COMBAT, tags.DAMAGE] ); console.log("Shadow subclass initialized"); } module.exports = initializeMonk;
/** * @ngdoc function * @name guideAppApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the guideAppApp */ /*global angular */ angular.module('guideAppApp') .controller('AboutCtrl', function () { 'use strict'; this.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !(function (a, b) { "object" == typeof module && "object" == typeof module.exports ? (module.exports = a.document ? b(a, !0) : function (a) { if (!a.document) throw new Error("jQuery requires a window with a document"); return b(a); }) : b(a); })("undefined" != typeof window ? window : this, function (a, b) { var c = [], d = c.slice, e = c.concat, f = c.push, g = c.indexOf, h = {}, i = h.toString, j = h.hasOwnProperty, k = {}, l = "1.11.2", m = function (a, b) { return new m.fn.init(a, b); }, n = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, o = /^-ms-/, p = /-([\da-z])/gi, q = function (a, b) { return b.toUpperCase(); }; (m.fn = m.prototype = { jquery: l, constructor: m, selector: "", length: 0, toArray: function () { return d.call(this); }, get: function (a) { return null != a ? 0 > a ? this[a + this.length] : this[a] : d.call(this); }, pushStack: function (a) { var b = m.merge(this.constructor(), a); return (b.prevObject = this), (b.context = this.context), b; }, each: function (a, b) { return m.each(this, a, b); }, map: function (a) { return this.pushStack( m.map(this, function (b, c) { return a.call(b, c, b); }) ); }, slice: function () { return this.pushStack(d.apply(this, arguments)); }, first: function () { return this.eq(0); }, last: function () { return this.eq(-1); }, eq: function (a) { var b = this.length, c = +a + (0 > a ? b : 0); return this.pushStack(c >= 0 && b > c ? [this[c]] : []); }, end: function () { return this.prevObject || this.constructor(null); }, push: f, sort: c.sort, splice: c.splice, }), (m.extend = m.fn.extend = function () { var a, b, c, d, e, f, g = arguments[0] || {}, h = 1, i = arguments.length, j = !1; for ( "boolean" == typeof g && ((j = g), (g = arguments[h] || {}), h++), "object" == typeof g || m.isFunction(g) || (g = {}), h === i && ((g = this), h--); i > h; h++ ) if (null != (e = arguments[h])) for (d in e) (a = g[d]), (c = e[d]), g !== c && (j && c && (m.isPlainObject(c) || (b = m.isArray(c))) ? (b ? ((b = !1), (f = a && m.isArray(a) ? a : [])) : (f = a && m.isPlainObject(a) ? a : {}), (g[d] = m.extend(j, f, c))) : void 0 !== c && (g[d] = c)); return g; }), m.extend({ expando: "jQuery" + (l + Math.random()).replace(/\D/g, ""), isReady: !0, error: function (a) { throw new Error(a); }, noop: function () {}, isFunction: function (a) { return "function" === m.type(a); }, isArray: Array.isArray || function (a) { return "array" === m.type(a); }, isWindow: function (a) { return null != a && a == a.window; }, isNumeric: function (a) { return !m.isArray(a) && a - parseFloat(a) + 1 >= 0; }, isEmptyObject: function (a) { var b; for (b in a) return !1; return !0; }, isPlainObject: function (a) { var b; if (!a || "object" !== m.type(a) || a.nodeType || m.isWindow(a)) return !1; try { if ( a.constructor && !j.call(a, "constructor") && !j.call(a.constructor.prototype, "isPrototypeOf") ) return !1; } catch (c) { return !1; } if (k.ownLast) for (b in a) return j.call(a, b); for (b in a); return void 0 === b || j.call(a, b); }, type: function (a) { return null == a ? a + "" : "object" == typeof a || "function" == typeof a ? h[i.call(a)] || "object" : typeof a; }, globalEval: function (b) { b && m.trim(b) && ( a.execScript || function (b) { a.eval.call(a, b); } )(b); }, camelCase: function (a) { return a.replace(o, "ms-").replace(p, q); }, nodeName: function (a, b) { return a.nodeName && a.nodeName.toLowerCase() === b.toLowerCase(); }, each: function (a, b, c) { var d, e = 0, f = a.length, g = r(a); if (c) { if (g) { for (; f > e; e++) if (((d = b.apply(a[e], c)), d === !1)) break; } else for (e in a) if (((d = b.apply(a[e], c)), d === !1)) break; } else if (g) { for (; f > e; e++) if (((d = b.call(a[e], e, a[e])), d === !1)) break; } else for (e in a) if (((d = b.call(a[e], e, a[e])), d === !1)) break; return a; }, trim: function (a) { return null == a ? "" : (a + "").replace(n, ""); }, makeArray: function (a, b) { var c = b || []; return ( null != a && (r(Object(a)) ? m.merge(c, "string" == typeof a ? [a] : a) : f.call(c, a)), c ); }, inArray: function (a, b, c) { var d; if (b) { if (g) return g.call(b, a, c); for ( d = b.length, c = c ? (0 > c ? Math.max(0, d + c) : c) : 0; d > c; c++ ) if (c in b && b[c] === a) return c; } return -1; }, merge: function (a, b) { var c = +b.length, d = 0, e = a.length; while (c > d) a[e++] = b[d++]; if (c !== c) while (void 0 !== b[d]) a[e++] = b[d++]; return (a.length = e), a; }, grep: function (a, b, c) { for (var d, e = [], f = 0, g = a.length, h = !c; g > f; f++) (d = !b(a[f], f)), d !== h && e.push(a[f]); return e; }, map: function (a, b, c) { var d, f = 0, g = a.length, h = r(a), i = []; if (h) for (; g > f; f++) (d = b(a[f], f, c)), null != d && i.push(d); else for (f in a) (d = b(a[f], f, c)), null != d && i.push(d); return e.apply([], i); }, guid: 1, proxy: function (a, b) { var c, e, f; return ( "string" == typeof b && ((f = a[b]), (b = a), (a = f)), m.isFunction(a) ? ((c = d.call(arguments, 2)), (e = function () { return a.apply(b || this, c.concat(d.call(arguments))); }), (e.guid = a.guid = a.guid || m.guid++), e) : void 0 ); }, now: function () { return +new Date(); }, support: k, }), m.each( "Boolean Number String Function Array Date RegExp Object Error".split( " " ), function (a, b) { h["[object " + b + "]"] = b.toLowerCase(); } ); function r(a) { var b = a.length, c = m.type(a); return "function" === c || m.isWindow(a) ? !1 : 1 === a.nodeType && b ? !0 : "array" === c || 0 === b || ("number" == typeof b && b > 0 && b - 1 in a); } var s = (function (a) { var b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u = "sizzle" + 1 * new Date(), v = a.document, w = 0, x = 0, y = hb(), z = hb(), A = hb(), B = function (a, b) { return a === b && (l = !0), 0; }, C = 1 << 31, D = {}.hasOwnProperty, E = [], F = E.pop, G = E.push, H = E.push, I = E.slice, J = function (a, b) { for (var c = 0, d = a.length; d > c; c++) if (a[c] === b) return c; return -1; }, K = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", L = "[\\x20\\t\\r\\n\\f]", M = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", N = M.replace("w", "w#"), O = "\\[" + L + "*(" + M + ")(?:" + L + "*([*^$|!~]?=)" + L + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + N + "))|)" + L + "*\\]", P = ":(" + M + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + O + ")*)|.*)\\)|)", Q = new RegExp(L + "+", "g"), R = new RegExp("^" + L + "+|((?:^|[^\\\\])(?:\\\\.)*)" + L + "+$", "g"), S = new RegExp("^" + L + "*," + L + "*"), T = new RegExp("^" + L + "*([>+~]|" + L + ")" + L + "*"), U = new RegExp("=" + L + "*([^\\]'\"]*?)" + L + "*\\]", "g"), V = new RegExp(P), W = new RegExp("^" + N + "$"), X = { ID: new RegExp("^#(" + M + ")"), CLASS: new RegExp("^\\.(" + M + ")"), TAG: new RegExp("^(" + M.replace("w", "w*") + ")"), ATTR: new RegExp("^" + O), PSEUDO: new RegExp("^" + P), CHILD: new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + L + "*(even|odd|(([+-]|)(\\d*)n|)" + L + "*(?:([+-]|)" + L + "*(\\d+)|))" + L + "*\\)|)", "i" ), bool: new RegExp("^(?:" + K + ")$", "i"), needsContext: new RegExp( "^" + L + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + L + "*((?:-\\d)?\\d*)" + L + "*\\)|)(?=[^-]|$)", "i" ), }, Y = /^(?:input|select|textarea|button)$/i, Z = /^h\d$/i, $ = /^[^{]+\{\s*\[native \w/, _ = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, ab = /[+~]/, bb = /'|\\/g, cb = new RegExp("\\\\([\\da-f]{1,6}" + L + "?|(" + L + ")|.)", "ig"), db = function (a, b, c) { var d = "0x" + b - 65536; return d !== d || c ? b : 0 > d ? String.fromCharCode(d + 65536) : String.fromCharCode((d >> 10) | 55296, (1023 & d) | 56320); }, eb = function () { m(); }; try { H.apply((E = I.call(v.childNodes)), v.childNodes), E[v.childNodes.length].nodeType; } catch (fb) { H = { apply: E.length ? function (a, b) { G.apply(a, I.call(b)); } : function (a, b) { var c = a.length, d = 0; while ((a[c++] = b[d++])); a.length = c - 1; }, }; } function gb(a, b, d, e) { var f, h, j, k, l, o, r, s, w, x; if ( ((b ? b.ownerDocument || b : v) !== n && m(b), (b = b || n), (d = d || []), (k = b.nodeType), "string" != typeof a || !a || (1 !== k && 9 !== k && 11 !== k)) ) return d; if (!e && p) { if (11 !== k && (f = _.exec(a))) if ((j = f[1])) { if (9 === k) { if (((h = b.getElementById(j)), !h || !h.parentNode)) return d; if (h.id === j) return d.push(h), d; } else if ( b.ownerDocument && (h = b.ownerDocument.getElementById(j)) && t(b, h) && h.id === j ) return d.push(h), d; } else { if (f[2]) return H.apply(d, b.getElementsByTagName(a)), d; if ((j = f[3]) && c.getElementsByClassName) return H.apply(d, b.getElementsByClassName(j)), d; } if (c.qsa && (!q || !q.test(a))) { if ( ((s = r = u), (w = b), (x = 1 !== k && a), 1 === k && "object" !== b.nodeName.toLowerCase()) ) { (o = g(a)), (r = b.getAttribute("id")) ? (s = r.replace(bb, "\\$&")) : b.setAttribute("id", s), (s = "[id='" + s + "'] "), (l = o.length); while (l--) o[l] = s + rb(o[l]); (w = (ab.test(a) && pb(b.parentNode)) || b), (x = o.join(",")); } if (x) try { return H.apply(d, w.querySelectorAll(x)), d; } catch (y) { } finally { r || b.removeAttribute("id"); } } } return i(a.replace(R, "$1"), b, d, e); } function hb() { var a = []; function b(c, e) { return ( a.push(c + " ") > d.cacheLength && delete b[a.shift()], (b[c + " "] = e) ); } return b; } function ib(a) { return (a[u] = !0), a; } function jb(a) { var b = n.createElement("div"); try { return !!a(b); } catch (c) { return !1; } finally { b.parentNode && b.parentNode.removeChild(b), (b = null); } } function kb(a, b) { var c = a.split("|"), e = a.length; while (e--) d.attrHandle[c[e]] = b; } function lb(a, b) { var c = b && a, d = c && 1 === a.nodeType && 1 === b.nodeType && (~b.sourceIndex || C) - (~a.sourceIndex || C); if (d) return d; if (c) while ((c = c.nextSibling)) if (c === b) return -1; return a ? 1 : -1; } function mb(a) { return function (b) { var c = b.nodeName.toLowerCase(); return "input" === c && b.type === a; }; } function nb(a) { return function (b) { var c = b.nodeName.toLowerCase(); return ("input" === c || "button" === c) && b.type === a; }; } function ob(a) { return ib(function (b) { return ( (b = +b), ib(function (c, d) { var e, f = a([], c.length, b), g = f.length; while (g--) c[(e = f[g])] && (c[e] = !(d[e] = c[e])); }) ); }); } function pb(a) { return a && "undefined" != typeof a.getElementsByTagName && a; } (c = gb.support = {}), (f = gb.isXML = function (a) { var b = a && (a.ownerDocument || a).documentElement; return b ? "HTML" !== b.nodeName : !1; }), (m = gb.setDocument = function (a) { var b, e, g = a ? a.ownerDocument || a : v; return g !== n && 9 === g.nodeType && g.documentElement ? ((n = g), (o = g.documentElement), (e = g.defaultView), e && e !== e.top && (e.addEventListener ? e.addEventListener("unload", eb, !1) : e.attachEvent && e.attachEvent("onunload", eb)), (p = !f(g)), (c.attributes = jb(function (a) { return (a.className = "i"), !a.getAttribute("className"); })), (c.getElementsByTagName = jb(function (a) { return ( a.appendChild(g.createComment("")), !a.getElementsByTagName("*").length ); })), (c.getElementsByClassName = $.test(g.getElementsByClassName)), (c.getById = jb(function (a) { return ( (o.appendChild(a).id = u), !g.getElementsByName || !g.getElementsByName(u).length ); })), c.getById ? ((d.find.ID = function (a, b) { if ("undefined" != typeof b.getElementById && p) { var c = b.getElementById(a); return c && c.parentNode ? [c] : []; } }), (d.filter.ID = function (a) { var b = a.replace(cb, db); return function (a) { return a.getAttribute("id") === b; }; })) : (delete d.find.ID, (d.filter.ID = function (a) { var b = a.replace(cb, db); return function (a) { var c = "undefined" != typeof a.getAttributeNode && a.getAttributeNode("id"); return c && c.value === b; }; })), (d.find.TAG = c.getElementsByTagName ? function (a, b) { return "undefined" != typeof b.getElementsByTagName ? b.getElementsByTagName(a) : c.qsa ? b.querySelectorAll(a) : void 0; } : function (a, b) { var c, d = [], e = 0, f = b.getElementsByTagName(a); if ("*" === a) { while ((c = f[e++])) 1 === c.nodeType && d.push(c); return d; } return f; }), (d.find.CLASS = c.getElementsByClassName && function (a, b) { return p ? b.getElementsByClassName(a) : void 0; }), (r = []), (q = []), (c.qsa = $.test(g.querySelectorAll)) && (jb(function (a) { (o.appendChild(a).innerHTML = "<a id='" + u + "'></a><select id='" + u + "-\f]' msallowcapture=''><option selected=''></option></select>"), a.querySelectorAll("[msallowcapture^='']").length && q.push("[*^$]=" + L + "*(?:''|\"\")"), a.querySelectorAll("[selected]").length || q.push("\\[" + L + "*(?:value|" + K + ")"), a.querySelectorAll("[id~=" + u + "-]").length || q.push("~="), a.querySelectorAll(":checked").length || q.push(":checked"), a.querySelectorAll("a#" + u + "+*").length || q.push(".#.+[+~]"); }), jb(function (a) { var b = g.createElement("input"); b.setAttribute("type", "hidden"), a.appendChild(b).setAttribute("name", "D"), a.querySelectorAll("[name=d]").length && q.push("name" + L + "*[*^$|!~]?="), a.querySelectorAll(":enabled").length || q.push(":enabled", ":disabled"), a.querySelectorAll("*,:x"), q.push(",.*:"); })), (c.matchesSelector = $.test( (s = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.oMatchesSelector || o.msMatchesSelector) )) && jb(function (a) { (c.disconnectedMatch = s.call(a, "div")), s.call(a, "[s!='']:x"), r.push("!=", P); }), (q = q.length && new RegExp(q.join("|"))), (r = r.length && new RegExp(r.join("|"))), (b = $.test(o.compareDocumentPosition)), (t = b || $.test(o.contains) ? function (a, b) { var c = 9 === a.nodeType ? a.documentElement : a, d = b && b.parentNode; return ( a === d || !( !d || 1 !== d.nodeType || !(c.contains ? c.contains(d) : a.compareDocumentPosition && 16 & a.compareDocumentPosition(d)) ) ); } : function (a, b) { if (b) while ((b = b.parentNode)) if (b === a) return !0; return !1; }), (B = b ? function (a, b) { if (a === b) return (l = !0), 0; var d = !a.compareDocumentPosition - !b.compareDocumentPosition; return d ? d : ((d = (a.ownerDocument || a) === (b.ownerDocument || b) ? a.compareDocumentPosition(b) : 1), 1 & d || (!c.sortDetached && b.compareDocumentPosition(a) === d) ? a === g || (a.ownerDocument === v && t(v, a)) ? -1 : b === g || (b.ownerDocument === v && t(v, b)) ? 1 : k ? J(k, a) - J(k, b) : 0 : 4 & d ? -1 : 1); } : function (a, b) { if (a === b) return (l = !0), 0; var c, d = 0, e = a.parentNode, f = b.parentNode, h = [a], i = [b]; if (!e || !f) return a === g ? -1 : b === g ? 1 : e ? -1 : f ? 1 : k ? J(k, a) - J(k, b) : 0; if (e === f) return lb(a, b); c = a; while ((c = c.parentNode)) h.unshift(c); c = b; while ((c = c.parentNode)) i.unshift(c); while (h[d] === i[d]) d++; return d ? lb(h[d], i[d]) : h[d] === v ? -1 : i[d] === v ? 1 : 0; }), g) : n; }), (gb.matches = function (a, b) { return gb(a, null, null, b); }), (gb.matchesSelector = function (a, b) { if ( ((a.ownerDocument || a) !== n && m(a), (b = b.replace(U, "='$1']")), !(!c.matchesSelector || !p || (r && r.test(b)) || (q && q.test(b)))) ) try { var d = s.call(a, b); if ( d || c.disconnectedMatch || (a.document && 11 !== a.document.nodeType) ) return d; } catch (e) {} return gb(b, n, null, [a]).length > 0; }), (gb.contains = function (a, b) { return (a.ownerDocument || a) !== n && m(a), t(a, b); }), (gb.attr = function (a, b) { (a.ownerDocument || a) !== n && m(a); var e = d.attrHandle[b.toLowerCase()], f = e && D.call(d.attrHandle, b.toLowerCase()) ? e(a, b, !p) : void 0; return void 0 !== f ? f : c.attributes || !p ? a.getAttribute(b) : (f = a.getAttributeNode(b)) && f.specified ? f.value : null; }), (gb.error = function (a) { throw new Error("Syntax error, unrecognized expression: " + a); }), (gb.uniqueSort = function (a) { var b, d = [], e = 0, f = 0; if ( ((l = !c.detectDuplicates), (k = !c.sortStable && a.slice(0)), a.sort(B), l) ) { while ((b = a[f++])) b === a[f] && (e = d.push(f)); while (e--) a.splice(d[e], 1); } return (k = null), a; }), (e = gb.getText = function (a) { var b, c = "", d = 0, f = a.nodeType; if (f) { if (1 === f || 9 === f || 11 === f) { if ("string" == typeof a.textContent) return a.textContent; for (a = a.firstChild; a; a = a.nextSibling) c += e(a); } else if (3 === f || 4 === f) return a.nodeValue; } else while ((b = a[d++])) c += e(b); return c; }), (d = gb.selectors = { cacheLength: 50, createPseudo: ib, match: X, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: !0 }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: !0 }, "~": { dir: "previousSibling" }, }, preFilter: { ATTR: function (a) { return ( (a[1] = a[1].replace(cb, db)), (a[3] = (a[3] || a[4] || a[5] || "").replace(cb, db)), "~=" === a[2] && (a[3] = " " + a[3] + " "), a.slice(0, 4) ); }, CHILD: function (a) { return ( (a[1] = a[1].toLowerCase()), "nth" === a[1].slice(0, 3) ? (a[3] || gb.error(a[0]), (a[4] = +(a[4] ? a[5] + (a[6] || 1) : 2 * ("even" === a[3] || "odd" === a[3]))), (a[5] = +(a[7] + a[8] || "odd" === a[3]))) : a[3] && gb.error(a[0]), a ); }, PSEUDO: function (a) { var b, c = !a[6] && a[2]; return X.CHILD.test(a[0]) ? null : (a[3] ? (a[2] = a[4] || a[5] || "") : c && V.test(c) && (b = g(c, !0)) && (b = c.indexOf(")", c.length - b) - c.length) && ((a[0] = a[0].slice(0, b)), (a[2] = c.slice(0, b))), a.slice(0, 3)); }, }, filter: { TAG: function (a) { var b = a.replace(cb, db).toLowerCase(); return "*" === a ? function () { return !0; } : function (a) { return a.nodeName && a.nodeName.toLowerCase() === b; }; }, CLASS: function (a) { var b = y[a + " "]; return ( b || ((b = new RegExp("(^|" + L + ")" + a + "(" + L + "|$)")) && y(a, function (a) { return b.test( ("string" == typeof a.className && a.className) || ("undefined" != typeof a.getAttribute && a.getAttribute("class")) || "" ); })) ); }, ATTR: function (a, b, c) { return function (d) { var e = gb.attr(d, a); return null == e ? "!=" === b : b ? ((e += ""), "=" === b ? e === c : "!=" === b ? e !== c : "^=" === b ? c && 0 === e.indexOf(c) : "*=" === b ? c && e.indexOf(c) > -1 : "$=" === b ? c && e.slice(-c.length) === c : "~=" === b ? (" " + e.replace(Q, " ") + " ").indexOf(c) > -1 : "|=" === b ? e === c || e.slice(0, c.length + 1) === c + "-" : !1) : !0; }; }, CHILD: function (a, b, c, d, e) { var f = "nth" !== a.slice(0, 3), g = "last" !== a.slice(-4), h = "of-type" === b; return 1 === d && 0 === e ? function (a) { return !!a.parentNode; } : function (b, c, i) { var j, k, l, m, n, o, p = f !== g ? "nextSibling" : "previousSibling", q = b.parentNode, r = h && b.nodeName.toLowerCase(), s = !i && !h; if (q) { if (f) { while (p) { l = b; while ((l = l[p])) if ( h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType ) return !1; o = p = "only" === a && !o && "nextSibling"; } return !0; } if (((o = [g ? q.firstChild : q.lastChild]), g && s)) { (k = q[u] || (q[u] = {})), (j = k[a] || []), (n = j[0] === w && j[1]), (m = j[0] === w && j[2]), (l = n && q.childNodes[n]); while ( (l = (++n && l && l[p]) || (m = n = 0) || o.pop()) ) if (1 === l.nodeType && ++m && l === b) { k[a] = [w, n, m]; break; } } else if ( s && (j = (b[u] || (b[u] = {}))[a]) && j[0] === w ) m = j[1]; else while ( (l = (++n && l && l[p]) || (m = n = 0) || o.pop()) ) if ( (h ? l.nodeName.toLowerCase() === r : 1 === l.nodeType) && ++m && (s && ((l[u] || (l[u] = {}))[a] = [w, m]), l === b) ) break; return (m -= e), m === d || (m % d === 0 && m / d >= 0); } }; }, PSEUDO: function (a, b) { var c, e = d.pseudos[a] || d.setFilters[a.toLowerCase()] || gb.error("unsupported pseudo: " + a); return e[u] ? e(b) : e.length > 1 ? ((c = [a, a, "", b]), d.setFilters.hasOwnProperty(a.toLowerCase()) ? ib(function (a, c) { var d, f = e(a, b), g = f.length; while (g--) (d = J(a, f[g])), (a[d] = !(c[d] = f[g])); }) : function (a) { return e(a, 0, c); }) : e; }, }, pseudos: { not: ib(function (a) { var b = [], c = [], d = h(a.replace(R, "$1")); return d[u] ? ib(function (a, b, c, e) { var f, g = d(a, null, e, []), h = a.length; while (h--) (f = g[h]) && (a[h] = !(b[h] = f)); }) : function (a, e, f) { return ( (b[0] = a), d(b, null, f, c), (b[0] = null), !c.pop() ); }; }), has: ib(function (a) { return function (b) { return gb(a, b).length > 0; }; }), contains: ib(function (a) { return ( (a = a.replace(cb, db)), function (b) { return (b.textContent || b.innerText || e(b)).indexOf(a) > -1; } ); }), lang: ib(function (a) { return ( W.test(a || "") || gb.error("unsupported lang: " + a), (a = a.replace(cb, db).toLowerCase()), function (b) { var c; do if ( (c = p ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang")) ) return ( (c = c.toLowerCase()), c === a || 0 === c.indexOf(a + "-") ); while ((b = b.parentNode) && 1 === b.nodeType); return !1; } ); }), target: function (b) { var c = a.location && a.location.hash; return c && c.slice(1) === b.id; }, root: function (a) { return a === o; }, focus: function (a) { return ( a === n.activeElement && (!n.hasFocus || n.hasFocus()) && !!(a.type || a.href || ~a.tabIndex) ); }, enabled: function (a) { return a.disabled === !1; }, disabled: function (a) { return a.disabled === !0; }, checked: function (a) { var b = a.nodeName.toLowerCase(); return ( ("input" === b && !!a.checked) || ("option" === b && !!a.selected) ); }, selected: function (a) { return ( a.parentNode && a.parentNode.selectedIndex, a.selected === !0 ); }, empty: function (a) { for (a = a.firstChild; a; a = a.nextSibling) if (a.nodeType < 6) return !1; return !0; }, parent: function (a) { return !d.pseudos.empty(a); }, header: function (a) { return Z.test(a.nodeName); }, input: function (a) { return Y.test(a.nodeName); }, button: function (a) { var b = a.nodeName.toLowerCase(); return ("input" === b && "button" === a.type) || "button" === b; }, text: function (a) { var b; return ( "input" === a.nodeName.toLowerCase() && "text" === a.type && (null == (b = a.getAttribute("type")) || "text" === b.toLowerCase()) ); }, first: ob(function () { return [0]; }), last: ob(function (a, b) { return [b - 1]; }), eq: ob(function (a, b, c) { return [0 > c ? c + b : c]; }), even: ob(function (a, b) { for (var c = 0; b > c; c += 2) a.push(c); return a; }), odd: ob(function (a, b) { for (var c = 1; b > c; c += 2) a.push(c); return a; }), lt: ob(function (a, b, c) { for (var d = 0 > c ? c + b : c; --d >= 0; ) a.push(d); return a; }), gt: ob(function (a, b, c) { for (var d = 0 > c ? c + b : c; ++d < b; ) a.push(d); return a; }), }, }), (d.pseudos.nth = d.pseudos.eq); for (b in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 }) d.pseudos[b] = mb(b); for (b in { submit: !0, reset: !0 }) d.pseudos[b] = nb(b); function qb() {} (qb.prototype = d.filters = d.pseudos), (d.setFilters = new qb()), (g = gb.tokenize = function (a, b) { var c, e, f, g, h, i, j, k = z[a + " "]; if (k) return b ? 0 : k.slice(0); (h = a), (i = []), (j = d.preFilter); while (h) { (!c || (e = S.exec(h))) && (e && (h = h.slice(e[0].length) || h), i.push((f = []))), (c = !1), (e = T.exec(h)) && ((c = e.shift()), f.push({ value: c, type: e[0].replace(R, " ") }), (h = h.slice(c.length))); for (g in d.filter) !(e = X[g].exec(h)) || (j[g] && !(e = j[g](e))) || ((c = e.shift()), f.push({ value: c, type: g, matches: e }), (h = h.slice(c.length))); if (!c) break; } return b ? h.length : h ? gb.error(a) : z(a, i).slice(0); }); function rb(a) { for (var b = 0, c = a.length, d = ""; c > b; b++) d += a[b].value; return d; } function sb(a, b, c) { var d = b.dir, e = c && "parentNode" === d, f = x++; return b.first ? function (b, c, f) { while ((b = b[d])) if (1 === b.nodeType || e) return a(b, c, f); } : function (b, c, g) { var h, i, j = [w, f]; if (g) { while ((b = b[d])) if ((1 === b.nodeType || e) && a(b, c, g)) return !0; } else while ((b = b[d])) if (1 === b.nodeType || e) { if ( ((i = b[u] || (b[u] = {})), (h = i[d]) && h[0] === w && h[1] === f) ) return (j[2] = h[2]); if (((i[d] = j), (j[2] = a(b, c, g)))) return !0; } }; } function tb(a) { return a.length > 1 ? function (b, c, d) { var e = a.length; while (e--) if (!a[e](b, c, d)) return !1; return !0; } : a[0]; } function ub(a, b, c) { for (var d = 0, e = b.length; e > d; d++) gb(a, b[d], c); return c; } function vb(a, b, c, d, e) { for (var f, g = [], h = 0, i = a.length, j = null != b; i > h; h++) (f = a[h]) && (!c || c(f, d, e)) && (g.push(f), j && b.push(h)); return g; } function wb(a, b, c, d, e, f) { return ( d && !d[u] && (d = wb(d)), e && !e[u] && (e = wb(e, f)), ib(function (f, g, h, i) { var j, k, l, m = [], n = [], o = g.length, p = f || ub(b || "*", h.nodeType ? [h] : h, []), q = !a || (!f && b) ? p : vb(p, m, a, h, i), r = c ? (e || (f ? a : o || d) ? [] : g) : q; if ((c && c(q, r, h, i), d)) { (j = vb(r, n)), d(j, [], h, i), (k = j.length); while (k--) (l = j[k]) && (r[n[k]] = !(q[n[k]] = l)); } if (f) { if (e || a) { if (e) { (j = []), (k = r.length); while (k--) (l = r[k]) && j.push((q[k] = l)); e(null, (r = []), j, i); } k = r.length; while (k--) (l = r[k]) && (j = e ? J(f, l) : m[k]) > -1 && (f[j] = !(g[j] = l)); } } else (r = vb(r === g ? r.splice(o, r.length) : r)), e ? e(null, g, r, i) : H.apply(g, r); }) ); } function xb(a) { for ( var b, c, e, f = a.length, g = d.relative[a[0].type], h = g || d.relative[" "], i = g ? 1 : 0, k = sb( function (a) { return a === b; }, h, !0 ), l = sb( function (a) { return J(b, a) > -1; }, h, !0 ), m = [ function (a, c, d) { var e = (!g && (d || c !== j)) || ((b = c).nodeType ? k(a, c, d) : l(a, c, d)); return (b = null), e; }, ]; f > i; i++ ) if ((c = d.relative[a[i].type])) m = [sb(tb(m), c)]; else { if (((c = d.filter[a[i].type].apply(null, a[i].matches)), c[u])) { for (e = ++i; f > e; e++) if (d.relative[a[e].type]) break; return wb( i > 1 && tb(m), i > 1 && rb( a .slice(0, i - 1) .concat({ value: " " === a[i - 2].type ? "*" : "" }) ).replace(R, "$1"), c, e > i && xb(a.slice(i, e)), f > e && xb((a = a.slice(e))), f > e && rb(a) ); } m.push(c); } return tb(m); } function yb(a, b) { var c = b.length > 0, e = a.length > 0, f = function (f, g, h, i, k) { var l, m, o, p = 0, q = "0", r = f && [], s = [], t = j, u = f || (e && d.find.TAG("*", k)), v = (w += null == t ? 1 : Math.random() || 0.1), x = u.length; for (k && (j = g !== n && g); q !== x && null != (l = u[q]); q++) { if (e && l) { m = 0; while ((o = a[m++])) if (o(l, g, h)) { i.push(l); break; } k && (w = v); } c && ((l = !o && l) && p--, f && r.push(l)); } if (((p += q), c && q !== p)) { m = 0; while ((o = b[m++])) o(r, s, g, h); if (f) { if (p > 0) while (q--) r[q] || s[q] || (s[q] = F.call(i)); s = vb(s); } H.apply(i, s), k && !f && s.length > 0 && p + b.length > 1 && gb.uniqueSort(i); } return k && ((w = v), (j = t)), r; }; return c ? ib(f) : f; } return ( (h = gb.compile = function (a, b) { var c, d = [], e = [], f = A[a + " "]; if (!f) { b || (b = g(a)), (c = b.length); while (c--) (f = xb(b[c])), f[u] ? d.push(f) : e.push(f); (f = A(a, yb(e, d))), (f.selector = a); } return f; }), (i = gb.select = function (a, b, e, f) { var i, j, k, l, m, n = "function" == typeof a && a, o = !f && g((a = n.selector || a)); if (((e = e || []), 1 === o.length)) { if ( ((j = o[0] = o[0].slice(0)), j.length > 2 && "ID" === (k = j[0]).type && c.getById && 9 === b.nodeType && p && d.relative[j[1].type]) ) { if ( ((b = (d.find.ID(k.matches[0].replace(cb, db), b) || [])[0]), !b) ) return e; n && (b = b.parentNode), (a = a.slice(j.shift().value.length)); } i = X.needsContext.test(a) ? 0 : j.length; while (i--) { if (((k = j[i]), d.relative[(l = k.type)])) break; if ( (m = d.find[l]) && (f = m( k.matches[0].replace(cb, db), (ab.test(j[0].type) && pb(b.parentNode)) || b )) ) { if ((j.splice(i, 1), (a = f.length && rb(j)), !a)) return H.apply(e, f), e; break; } } } return ( (n || h(a, o))(f, b, !p, e, (ab.test(a) && pb(b.parentNode)) || b), e ); }), (c.sortStable = u.split("").sort(B).join("") === u), (c.detectDuplicates = !!l), m(), (c.sortDetached = jb(function (a) { return 1 & a.compareDocumentPosition(n.createElement("div")); })), jb(function (a) { return ( (a.innerHTML = "<a href='#'></a>"), "#" === a.firstChild.getAttribute("href") ); }) || kb("type|href|height|width", function (a, b, c) { return c ? void 0 : a.getAttribute(b, "type" === b.toLowerCase() ? 1 : 2); }), (c.attributes && jb(function (a) { return ( (a.innerHTML = "<input/>"), a.firstChild.setAttribute("value", ""), "" === a.firstChild.getAttribute("value") ); })) || kb("value", function (a, b, c) { return c || "input" !== a.nodeName.toLowerCase() ? void 0 : a.defaultValue; }), jb(function (a) { return null == a.getAttribute("disabled"); }) || kb(K, function (a, b, c) { var d; return c ? void 0 : a[b] === !0 ? b.toLowerCase() : (d = a.getAttributeNode(b)) && d.specified ? d.value : null; }), gb ); })(a); (m.find = s), (m.expr = s.selectors), (m.expr[":"] = m.expr.pseudos), (m.unique = s.uniqueSort), (m.text = s.getText), (m.isXMLDoc = s.isXML), (m.contains = s.contains); var t = m.expr.match.needsContext, u = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, v = /^.[^:#\[\.,]*$/; function w(a, b, c) { if (m.isFunction(b)) return m.grep(a, function (a, d) { return !!b.call(a, d, a) !== c; }); if (b.nodeType) return m.grep(a, function (a) { return (a === b) !== c; }); if ("string" == typeof b) { if (v.test(b)) return m.filter(b, a, c); b = m.filter(b, a); } return m.grep(a, function (a) { return m.inArray(a, b) >= 0 !== c; }); } (m.filter = function (a, b, c) { var d = b[0]; return ( c && (a = ":not(" + a + ")"), 1 === b.length && 1 === d.nodeType ? m.find.matchesSelector(d, a) ? [d] : [] : m.find.matches( a, m.grep(b, function (a) { return 1 === a.nodeType; }) ) ); }), m.fn.extend({ find: function (a) { var b, c = [], d = this, e = d.length; if ("string" != typeof a) return this.pushStack( m(a).filter(function () { for (b = 0; e > b; b++) if (m.contains(d[b], this)) return !0; }) ); for (b = 0; e > b; b++) m.find(a, d[b], c); return ( (c = this.pushStack(e > 1 ? m.unique(c) : c)), (c.selector = this.selector ? this.selector + " " + a : a), c ); }, filter: function (a) { return this.pushStack(w(this, a || [], !1)); }, not: function (a) { return this.pushStack(w(this, a || [], !0)); }, is: function (a) { return !!w(this, "string" == typeof a && t.test(a) ? m(a) : a || [], !1) .length; }, }); var x, y = a.document, z = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, A = (m.fn.init = function (a, b) { var c, d; if (!a) return this; if ("string" == typeof a) { if ( ((c = "<" === a.charAt(0) && ">" === a.charAt(a.length - 1) && a.length >= 3 ? [null, a, null] : z.exec(a)), !c || (!c[1] && b)) ) return !b || b.jquery ? (b || x).find(a) : this.constructor(b).find(a); if (c[1]) { if ( ((b = b instanceof m ? b[0] : b), m.merge( this, m.parseHTML(c[1], b && b.nodeType ? b.ownerDocument || b : y, !0) ), u.test(c[1]) && m.isPlainObject(b)) ) for (c in b) m.isFunction(this[c]) ? this[c](b[c]) : this.attr(c, b[c]); return this; } if (((d = y.getElementById(c[2])), d && d.parentNode)) { if (d.id !== c[2]) return x.find(a); (this.length = 1), (this[0] = d); } return (this.context = y), (this.selector = a), this; } return a.nodeType ? ((this.context = this[0] = a), (this.length = 1), this) : m.isFunction(a) ? "undefined" != typeof x.ready ? x.ready(a) : a(m) : (void 0 !== a.selector && ((this.selector = a.selector), (this.context = a.context)), m.makeArray(a, this)); }); (A.prototype = m.fn), (x = m(y)); var B = /^(?:parents|prev(?:Until|All))/, C = { children: !0, contents: !0, next: !0, prev: !0 }; m.extend({ dir: function (a, b, c) { var d = [], e = a[b]; while ( e && 9 !== e.nodeType && (void 0 === c || 1 !== e.nodeType || !m(e).is(c)) ) 1 === e.nodeType && d.push(e), (e = e[b]); return d; }, sibling: function (a, b) { for (var c = []; a; a = a.nextSibling) 1 === a.nodeType && a !== b && c.push(a); return c; }, }), m.fn.extend({ has: function (a) { var b, c = m(a, this), d = c.length; return this.filter(function () { for (b = 0; d > b; b++) if (m.contains(this, c[b])) return !0; }); }, closest: function (a, b) { for ( var c, d = 0, e = this.length, f = [], g = t.test(a) || "string" != typeof a ? m(a, b || this.context) : 0; e > d; d++ ) for (c = this[d]; c && c !== b; c = c.parentNode) if ( c.nodeType < 11 && (g ? g.index(c) > -1 : 1 === c.nodeType && m.find.matchesSelector(c, a)) ) { f.push(c); break; } return this.pushStack(f.length > 1 ? m.unique(f) : f); }, index: function (a) { return a ? "string" == typeof a ? m.inArray(this[0], m(a)) : m.inArray(a.jquery ? a[0] : a, this) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1; }, add: function (a, b) { return this.pushStack(m.unique(m.merge(this.get(), m(a, b)))); }, addBack: function (a) { return this.add( null == a ? this.prevObject : this.prevObject.filter(a) ); }, }); function D(a, b) { do a = a[b]; while (a && 1 !== a.nodeType); return a; } m.each( { parent: function (a) { var b = a.parentNode; return b && 11 !== b.nodeType ? b : null; }, parents: function (a) { return m.dir(a, "parentNode"); }, parentsUntil: function (a, b, c) { return m.dir(a, "parentNode", c); }, next: function (a) { return D(a, "nextSibling"); }, prev: function (a) { return D(a, "previousSibling"); }, nextAll: function (a) { return m.dir(a, "nextSibling"); }, prevAll: function (a) { return m.dir(a, "previousSibling"); }, nextUntil: function (a, b, c) { return m.dir(a, "nextSibling", c); }, prevUntil: function (a, b, c) { return m.dir(a, "previousSibling", c); }, siblings: function (a) { return m.sibling((a.parentNode || {}).firstChild, a); }, children: function (a) { return m.sibling(a.firstChild); }, contents: function (a) { return m.nodeName(a, "iframe") ? a.contentDocument || a.contentWindow.document : m.merge([], a.childNodes); }, }, function (a, b) { m.fn[a] = function (c, d) { var e = m.map(this, b, c); return ( "Until" !== a.slice(-5) && (d = c), d && "string" == typeof d && (e = m.filter(d, e)), this.length > 1 && (C[a] || (e = m.unique(e)), B.test(a) && (e = e.reverse())), this.pushStack(e) ); }; } ); var E = /\S+/g, F = {}; function G(a) { var b = (F[a] = {}); return ( m.each(a.match(E) || [], function (a, c) { b[c] = !0; }), b ); } (m.Callbacks = function (a) { a = "string" == typeof a ? F[a] || G(a) : m.extend({}, a); var b, c, d, e, f, g, h = [], i = !a.once && [], j = function (l) { for ( c = a.memory && l, d = !0, f = g || 0, g = 0, e = h.length, b = !0; h && e > f; f++ ) if (h[f].apply(l[0], l[1]) === !1 && a.stopOnFalse) { c = !1; break; } (b = !1), h && (i ? i.length && j(i.shift()) : c ? (h = []) : k.disable()); }, k = { add: function () { if (h) { var d = h.length; !(function f(b) { m.each(b, function (b, c) { var d = m.type(c); "function" === d ? (a.unique && k.has(c)) || h.push(c) : c && c.length && "string" !== d && f(c); }); })(arguments), b ? (e = h.length) : c && ((g = d), j(c)); } return this; }, remove: function () { return ( h && m.each(arguments, function (a, c) { var d; while ((d = m.inArray(c, h, d)) > -1) h.splice(d, 1), b && (e >= d && e--, f >= d && f--); }), this ); }, has: function (a) { return a ? m.inArray(a, h) > -1 : !(!h || !h.length); }, empty: function () { return (h = []), (e = 0), this; }, disable: function () { return (h = i = c = void 0), this; }, disabled: function () { return !h; }, lock: function () { return (i = void 0), c || k.disable(), this; }, locked: function () { return !i; }, fireWith: function (a, c) { return ( !h || (d && !i) || ((c = c || []), (c = [a, c.slice ? c.slice() : c]), b ? i.push(c) : j(c)), this ); }, fire: function () { return k.fireWith(this, arguments), this; }, fired: function () { return !!d; }, }; return k; }), m.extend({ Deferred: function (a) { var b = [ ["resolve", "done", m.Callbacks("once memory"), "resolved"], ["reject", "fail", m.Callbacks("once memory"), "rejected"], ["notify", "progress", m.Callbacks("memory")], ], c = "pending", d = { state: function () { return c; }, always: function () { return e.done(arguments).fail(arguments), this; }, then: function () { var a = arguments; return m .Deferred(function (c) { m.each(b, function (b, f) { var g = m.isFunction(a[b]) && a[b]; e[f[1]](function () { var a = g && g.apply(this, arguments); a && m.isFunction(a.promise) ? a .promise() .done(c.resolve) .fail(c.reject) .progress(c.notify) : c[f[0] + "With"]( this === d ? c.promise() : this, g ? [a] : arguments ); }); }), (a = null); }) .promise(); }, promise: function (a) { return null != a ? m.extend(a, d) : d; }, }, e = {}; return ( (d.pipe = d.then), m.each(b, function (a, f) { var g = f[2], h = f[3]; (d[f[1]] = g.add), h && g.add( function () { c = h; }, b[1 ^ a][2].disable, b[2][2].lock ), (e[f[0]] = function () { return e[f[0] + "With"](this === e ? d : this, arguments), this; }), (e[f[0] + "With"] = g.fireWith); }), d.promise(e), a && a.call(e, e), e ); }, when: function (a) { var b = 0, c = d.call(arguments), e = c.length, f = 1 !== e || (a && m.isFunction(a.promise)) ? e : 0, g = 1 === f ? a : m.Deferred(), h = function (a, b, c) { return function (e) { (b[a] = this), (c[a] = arguments.length > 1 ? d.call(arguments) : e), c === i ? g.notifyWith(b, c) : --f || g.resolveWith(b, c); }; }, i, j, k; if (e > 1) for (i = new Array(e), j = new Array(e), k = new Array(e); e > b; b++) c[b] && m.isFunction(c[b].promise) ? c[b] .promise() .done(h(b, k, c)) .fail(g.reject) .progress(h(b, j, i)) : --f; return f || g.resolveWith(k, c), g.promise(); }, }); var H; (m.fn.ready = function (a) { return m.ready.promise().done(a), this; }), m.extend({ isReady: !1, readyWait: 1, holdReady: function (a) { a ? m.readyWait++ : m.ready(!0); }, ready: function (a) { if (a === !0 ? !--m.readyWait : !m.isReady) { if (!y.body) return setTimeout(m.ready); (m.isReady = !0), (a !== !0 && --m.readyWait > 0) || (H.resolveWith(y, [m]), m.fn.triggerHandler && (m(y).triggerHandler("ready"), m(y).off("ready"))); } }, }); function I() { y.addEventListener ? (y.removeEventListener("DOMContentLoaded", J, !1), a.removeEventListener("load", J, !1)) : (y.detachEvent("onreadystatechange", J), a.detachEvent("onload", J)); } function J() { (y.addEventListener || "load" === event.type || "complete" === y.readyState) && (I(), m.ready()); } m.ready.promise = function (b) { if (!H) if (((H = m.Deferred()), "complete" === y.readyState)) setTimeout(m.ready); else if (y.addEventListener) y.addEventListener("DOMContentLoaded", J, !1), a.addEventListener("load", J, !1); else { y.attachEvent("onreadystatechange", J), a.attachEvent("onload", J); var c = !1; try { c = null == a.frameElement && y.documentElement; } catch (d) {} c && c.doScroll && !(function e() { if (!m.isReady) { try { c.doScroll("left"); } catch (a) { return setTimeout(e, 50); } I(), m.ready(); } })(); } return H.promise(b); }; var K = "undefined", L; for (L in m(k)) break; (k.ownLast = "0" !== L), (k.inlineBlockNeedsLayout = !1), m(function () { var a, b, c, d; (c = y.getElementsByTagName("body")[0]), c && c.style && ((b = y.createElement("div")), (d = y.createElement("div")), (d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"), c.appendChild(d).appendChild(b), typeof b.style.zoom !== K && ((b.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"), (k.inlineBlockNeedsLayout = a = 3 === b.offsetWidth), a && (c.style.zoom = 1)), c.removeChild(d)); }), (function () { var a = y.createElement("div"); if (null == k.deleteExpando) { k.deleteExpando = !0; try { delete a.test; } catch (b) { k.deleteExpando = !1; } } a = null; })(), (m.acceptData = function (a) { var b = m.noData[(a.nodeName + " ").toLowerCase()], c = +a.nodeType || 1; return 1 !== c && 9 !== c ? !1 : !b || (b !== !0 && a.getAttribute("classid") === b); }); var M = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, N = /([A-Z])/g; function O(a, b, c) { if (void 0 === c && 1 === a.nodeType) { var d = "data-" + b.replace(N, "-$1").toLowerCase(); if (((c = a.getAttribute(d)), "string" == typeof c)) { try { c = "true" === c ? !0 : "false" === c ? !1 : "null" === c ? null : +c + "" === c ? +c : M.test(c) ? m.parseJSON(c) : c; } catch (e) {} m.data(a, b, c); } else c = void 0; } return c; } function P(a) { var b; for (b in a) if (("data" !== b || !m.isEmptyObject(a[b])) && "toJSON" !== b) return !1; return !0; } function Q(a, b, d, e) { if (m.acceptData(a)) { var f, g, h = m.expando, i = a.nodeType, j = i ? m.cache : a, k = i ? a[h] : a[h] && h; if ( (k && j[k] && (e || j[k].data)) || void 0 !== d || "string" != typeof b ) return ( k || (k = i ? (a[h] = c.pop() || m.guid++) : h), j[k] || (j[k] = i ? {} : { toJSON: m.noop }), ("object" == typeof b || "function" == typeof b) && (e ? (j[k] = m.extend(j[k], b)) : (j[k].data = m.extend(j[k].data, b))), (g = j[k]), e || (g.data || (g.data = {}), (g = g.data)), void 0 !== d && (g[m.camelCase(b)] = d), "string" == typeof b ? ((f = g[b]), null == f && (f = g[m.camelCase(b)])) : (f = g), f ); } } function R(a, b, c) { if (m.acceptData(a)) { var d, e, f = a.nodeType, g = f ? m.cache : a, h = f ? a[m.expando] : m.expando; if (g[h]) { if (b && (d = c ? g[h] : g[h].data)) { m.isArray(b) ? (b = b.concat(m.map(b, m.camelCase))) : b in d ? (b = [b]) : ((b = m.camelCase(b)), (b = b in d ? [b] : b.split(" "))), (e = b.length); while (e--) delete d[b[e]]; if (c ? !P(d) : !m.isEmptyObject(d)) return; } (c || (delete g[h].data, P(g[h]))) && (f ? m.cleanData([a], !0) : k.deleteExpando || g != g.window ? delete g[h] : (g[h] = null)); } } } m.extend({ cache: {}, noData: { "applet ": !0, "embed ": !0, "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", }, hasData: function (a) { return ( (a = a.nodeType ? m.cache[a[m.expando]] : a[m.expando]), !!a && !P(a) ); }, data: function (a, b, c) { return Q(a, b, c); }, removeData: function (a, b) { return R(a, b); }, _data: function (a, b, c) { return Q(a, b, c, !0); }, _removeData: function (a, b) { return R(a, b, !0); }, }), m.fn.extend({ data: function (a, b) { var c, d, e, f = this[0], g = f && f.attributes; if (void 0 === a) { if ( this.length && ((e = m.data(f)), 1 === f.nodeType && !m._data(f, "parsedAttrs")) ) { c = g.length; while (c--) g[c] && ((d = g[c].name), 0 === d.indexOf("data-") && ((d = m.camelCase(d.slice(5))), O(f, d, e[d]))); m._data(f, "parsedAttrs", !0); } return e; } return "object" == typeof a ? this.each(function () { m.data(this, a); }) : arguments.length > 1 ? this.each(function () { m.data(this, a, b); }) : f ? O(f, a, m.data(f, a)) : void 0; }, removeData: function (a) { return this.each(function () { m.removeData(this, a); }); }, }), m.extend({ queue: function (a, b, c) { var d; return a ? ((b = (b || "fx") + "queue"), (d = m._data(a, b)), c && (!d || m.isArray(c) ? (d = m._data(a, b, m.makeArray(c))) : d.push(c)), d || []) : void 0; }, dequeue: function (a, b) { b = b || "fx"; var c = m.queue(a, b), d = c.length, e = c.shift(), f = m._queueHooks(a, b), g = function () { m.dequeue(a, b); }; "inprogress" === e && ((e = c.shift()), d--), e && ("fx" === b && c.unshift("inprogress"), delete f.stop, e.call(a, g, f)), !d && f && f.empty.fire(); }, _queueHooks: function (a, b) { var c = b + "queueHooks"; return ( m._data(a, c) || m._data(a, c, { empty: m.Callbacks("once memory").add(function () { m._removeData(a, b + "queue"), m._removeData(a, c); }), }) ); }, }), m.fn.extend({ queue: function (a, b) { var c = 2; return ( "string" != typeof a && ((b = a), (a = "fx"), c--), arguments.length < c ? m.queue(this[0], a) : void 0 === b ? this : this.each(function () { var c = m.queue(this, a, b); m._queueHooks(this, a), "fx" === a && "inprogress" !== c[0] && m.dequeue(this, a); }) ); }, dequeue: function (a) { return this.each(function () { m.dequeue(this, a); }); }, clearQueue: function (a) { return this.queue(a || "fx", []); }, promise: function (a, b) { var c, d = 1, e = m.Deferred(), f = this, g = this.length, h = function () { --d || e.resolveWith(f, [f]); }; "string" != typeof a && ((b = a), (a = void 0)), (a = a || "fx"); while (g--) (c = m._data(f[g], a + "queueHooks")), c && c.empty && (d++, c.empty.add(h)); return h(), e.promise(b); }, }); var S = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, T = ["Top", "Right", "Bottom", "Left"], U = function (a, b) { return ( (a = b || a), "none" === m.css(a, "display") || !m.contains(a.ownerDocument, a) ); }, V = (m.access = function (a, b, c, d, e, f, g) { var h = 0, i = a.length, j = null == c; if ("object" === m.type(c)) { e = !0; for (h in c) m.access(a, b, h, c[h], !0, f, g); } else if ( void 0 !== d && ((e = !0), m.isFunction(d) || (g = !0), j && (g ? (b.call(a, d), (b = null)) : ((j = b), (b = function (a, b, c) { return j.call(m(a), c); }))), b) ) for (; i > h; h++) b(a[h], c, g ? d : d.call(a[h], h, b(a[h], c))); return e ? a : j ? b.call(a) : i ? b(a[0], c) : f; }), W = /^(?:checkbox|radio)$/i; !(function () { var a = y.createElement("input"), b = y.createElement("div"), c = y.createDocumentFragment(); if ( ((b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"), (k.leadingWhitespace = 3 === b.firstChild.nodeType), (k.tbody = !b.getElementsByTagName("tbody").length), (k.htmlSerialize = !!b.getElementsByTagName("link").length), (k.html5Clone = "<:nav></:nav>" !== y.createElement("nav").cloneNode(!0).outerHTML), (a.type = "checkbox"), (a.checked = !0), c.appendChild(a), (k.appendChecked = a.checked), (b.innerHTML = "<textarea>x</textarea>"), (k.noCloneChecked = !!b.cloneNode(!0).lastChild.defaultValue), c.appendChild(b), (b.innerHTML = "<input type='radio' checked='checked' name='t'/>"), (k.checkClone = b.cloneNode(!0).cloneNode(!0).lastChild.checked), (k.noCloneEvent = !0), b.attachEvent && (b.attachEvent("onclick", function () { k.noCloneEvent = !1; }), b.cloneNode(!0).click()), null == k.deleteExpando) ) { k.deleteExpando = !0; try { delete b.test; } catch (d) { k.deleteExpando = !1; } } })(), (function () { var b, c, d = y.createElement("div"); for (b in { submit: !0, change: !0, focusin: !0 }) (c = "on" + b), (k[b + "Bubbles"] = c in a) || (d.setAttribute(c, "t"), (k[b + "Bubbles"] = d.attributes[c].expando === !1)); d = null; })(); var X = /^(?:input|select|textarea)$/i, Y = /^key/, Z = /^(?:mouse|pointer|contextmenu)|click/, $ = /^(?:focusinfocus|focusoutblur)$/, _ = /^([^.]*)(?:\.(.+)|)$/; function ab() { return !0; } function bb() { return !1; } function cb() { try { return y.activeElement; } catch (a) {} } (m.event = { global: {}, add: function (a, b, c, d, e) { var f, g, h, i, j, k, l, n, o, p, q, r = m._data(a); if (r) { c.handler && ((i = c), (c = i.handler), (e = i.selector)), c.guid || (c.guid = m.guid++), (g = r.events) || (g = r.events = {}), (k = r.handle) || ((k = r.handle = function (a) { return typeof m === K || (a && m.event.triggered === a.type) ? void 0 : m.event.dispatch.apply(k.elem, arguments); }), (k.elem = a)), (b = (b || "").match(E) || [""]), (h = b.length); while (h--) (f = _.exec(b[h]) || []), (o = q = f[1]), (p = (f[2] || "").split(".").sort()), o && ((j = m.event.special[o] || {}), (o = (e ? j.delegateType : j.bindType) || o), (j = m.event.special[o] || {}), (l = m.extend( { type: o, origType: q, data: d, handler: c, guid: c.guid, selector: e, needsContext: e && m.expr.match.needsContext.test(e), namespace: p.join("."), }, i )), (n = g[o]) || ((n = g[o] = []), (n.delegateCount = 0), (j.setup && j.setup.call(a, d, p, k) !== !1) || (a.addEventListener ? a.addEventListener(o, k, !1) : a.attachEvent && a.attachEvent("on" + o, k))), j.add && (j.add.call(a, l), l.handler.guid || (l.handler.guid = c.guid)), e ? n.splice(n.delegateCount++, 0, l) : n.push(l), (m.event.global[o] = !0)); a = null; } }, remove: function (a, b, c, d, e) { var f, g, h, i, j, k, l, n, o, p, q, r = m.hasData(a) && m._data(a); if (r && (k = r.events)) { (b = (b || "").match(E) || [""]), (j = b.length); while (j--) if ( ((h = _.exec(b[j]) || []), (o = q = h[1]), (p = (h[2] || "").split(".").sort()), o) ) { (l = m.event.special[o] || {}), (o = (d ? l.delegateType : l.bindType) || o), (n = k[o] || []), (h = h[2] && new RegExp("(^|\\.)" + p.join("\\.(?:.*\\.|)") + "(\\.|$)")), (i = f = n.length); while (f--) (g = n[f]), (!e && q !== g.origType) || (c && c.guid !== g.guid) || (h && !h.test(g.namespace)) || (d && d !== g.selector && ("**" !== d || !g.selector)) || (n.splice(f, 1), g.selector && n.delegateCount--, l.remove && l.remove.call(a, g)); i && !n.length && ((l.teardown && l.teardown.call(a, p, r.handle) !== !1) || m.removeEvent(a, o, r.handle), delete k[o]); } else for (o in k) m.event.remove(a, o + b[j], c, d, !0); m.isEmptyObject(k) && (delete r.handle, m._removeData(a, "events")); } }, trigger: function (b, c, d, e) { var f, g, h, i, k, l, n, o = [d || y], p = j.call(b, "type") ? b.type : b, q = j.call(b, "namespace") ? b.namespace.split(".") : []; if ( ((h = l = d = d || y), 3 !== d.nodeType && 8 !== d.nodeType && !$.test(p + m.event.triggered) && (p.indexOf(".") >= 0 && ((q = p.split(".")), (p = q.shift()), q.sort()), (g = p.indexOf(":") < 0 && "on" + p), (b = b[m.expando] ? b : new m.Event(p, "object" == typeof b && b)), (b.isTrigger = e ? 2 : 3), (b.namespace = q.join(".")), (b.namespace_re = b.namespace ? new RegExp("(^|\\.)" + q.join("\\.(?:.*\\.|)") + "(\\.|$)") : null), (b.result = void 0), b.target || (b.target = d), (c = null == c ? [b] : m.makeArray(c, [b])), (k = m.event.special[p] || {}), e || !k.trigger || k.trigger.apply(d, c) !== !1)) ) { if (!e && !k.noBubble && !m.isWindow(d)) { for ( i = k.delegateType || p, $.test(i + p) || (h = h.parentNode); h; h = h.parentNode ) o.push(h), (l = h); l === (d.ownerDocument || y) && o.push(l.defaultView || l.parentWindow || a); } n = 0; while ((h = o[n++]) && !b.isPropagationStopped()) (b.type = n > 1 ? i : k.bindType || p), (f = (m._data(h, "events") || {})[b.type] && m._data(h, "handle")), f && f.apply(h, c), (f = g && h[g]), f && f.apply && m.acceptData(h) && ((b.result = f.apply(h, c)), b.result === !1 && b.preventDefault()); if ( ((b.type = p), !e && !b.isDefaultPrevented() && (!k._default || k._default.apply(o.pop(), c) === !1) && m.acceptData(d) && g && d[p] && !m.isWindow(d)) ) { (l = d[g]), l && (d[g] = null), (m.event.triggered = p); try { d[p](); } catch (r) {} (m.event.triggered = void 0), l && (d[g] = l); } return b.result; } }, dispatch: function (a) { a = m.event.fix(a); var b, c, e, f, g, h = [], i = d.call(arguments), j = (m._data(this, "events") || {})[a.type] || [], k = m.event.special[a.type] || {}; if ( ((i[0] = a), (a.delegateTarget = this), !k.preDispatch || k.preDispatch.call(this, a) !== !1) ) { (h = m.event.handlers.call(this, a, j)), (b = 0); while ((f = h[b++]) && !a.isPropagationStopped()) { (a.currentTarget = f.elem), (g = 0); while ((e = f.handlers[g++]) && !a.isImmediatePropagationStopped()) (!a.namespace_re || a.namespace_re.test(e.namespace)) && ((a.handleObj = e), (a.data = e.data), (c = ( (m.event.special[e.origType] || {}).handle || e.handler ).apply(f.elem, i)), void 0 !== c && (a.result = c) === !1 && (a.preventDefault(), a.stopPropagation())); } return k.postDispatch && k.postDispatch.call(this, a), a.result; } }, handlers: function (a, b) { var c, d, e, f, g = [], h = b.delegateCount, i = a.target; if (h && i.nodeType && (!a.button || "click" !== a.type)) for (; i != this; i = i.parentNode || this) if (1 === i.nodeType && (i.disabled !== !0 || "click" !== a.type)) { for (e = [], f = 0; h > f; f++) (d = b[f]), (c = d.selector + " "), void 0 === e[c] && (e[c] = d.needsContext ? m(c, this).index(i) >= 0 : m.find(c, this, null, [i]).length), e[c] && e.push(d); e.length && g.push({ elem: i, handlers: e }); } return h < b.length && g.push({ elem: this, handlers: b.slice(h) }), g; }, fix: function (a) { if (a[m.expando]) return a; var b, c, d, e = a.type, f = a, g = this.fixHooks[e]; g || (this.fixHooks[e] = g = Z.test(e) ? this.mouseHooks : Y.test(e) ? this.keyHooks : {}), (d = g.props ? this.props.concat(g.props) : this.props), (a = new m.Event(f)), (b = d.length); while (b--) (c = d[b]), (a[c] = f[c]); return ( a.target || (a.target = f.srcElement || y), 3 === a.target.nodeType && (a.target = a.target.parentNode), (a.metaKey = !!a.metaKey), g.filter ? g.filter(a, f) : a ); }, props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split( " " ), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function (a, b) { return ( null == a.which && (a.which = null != b.charCode ? b.charCode : b.keyCode), a ); }, }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split( " " ), filter: function (a, b) { var c, d, e, f = b.button, g = b.fromElement; return ( null == a.pageX && null != b.clientX && ((d = a.target.ownerDocument || y), (e = d.documentElement), (c = d.body), (a.pageX = b.clientX + ((e && e.scrollLeft) || (c && c.scrollLeft) || 0) - ((e && e.clientLeft) || (c && c.clientLeft) || 0)), (a.pageY = b.clientY + ((e && e.scrollTop) || (c && c.scrollTop) || 0) - ((e && e.clientTop) || (c && c.clientTop) || 0))), !a.relatedTarget && g && (a.relatedTarget = g === a.target ? b.toElement : g), a.which || void 0 === f || (a.which = 1 & f ? 1 : 2 & f ? 3 : 4 & f ? 2 : 0), a ); }, }, special: { load: { noBubble: !0 }, focus: { trigger: function () { if (this !== cb() && this.focus) try { return this.focus(), !1; } catch (a) {} }, delegateType: "focusin", }, blur: { trigger: function () { return this === cb() && this.blur ? (this.blur(), !1) : void 0; }, delegateType: "focusout", }, click: { trigger: function () { return m.nodeName(this, "input") && "checkbox" === this.type && this.click ? (this.click(), !1) : void 0; }, _default: function (a) { return m.nodeName(a.target, "a"); }, }, beforeunload: { postDispatch: function (a) { void 0 !== a.result && a.originalEvent && (a.originalEvent.returnValue = a.result); }, }, }, simulate: function (a, b, c, d) { var e = m.extend(new m.Event(), c, { type: a, isSimulated: !0, originalEvent: {}, }); d ? m.event.trigger(e, null, b) : m.event.dispatch.call(b, e), e.isDefaultPrevented() && c.preventDefault(); }, }), (m.removeEvent = y.removeEventListener ? function (a, b, c) { a.removeEventListener && a.removeEventListener(b, c, !1); } : function (a, b, c) { var d = "on" + b; a.detachEvent && (typeof a[d] === K && (a[d] = null), a.detachEvent(d, c)); }), (m.Event = function (a, b) { return this instanceof m.Event ? (a && a.type ? ((this.originalEvent = a), (this.type = a.type), (this.isDefaultPrevented = a.defaultPrevented || (void 0 === a.defaultPrevented && a.returnValue === !1) ? ab : bb)) : (this.type = a), b && m.extend(this, b), (this.timeStamp = (a && a.timeStamp) || m.now()), void (this[m.expando] = !0)) : new m.Event(a, b); }), (m.Event.prototype = { isDefaultPrevented: bb, isPropagationStopped: bb, isImmediatePropagationStopped: bb, preventDefault: function () { var a = this.originalEvent; (this.isDefaultPrevented = ab), a && (a.preventDefault ? a.preventDefault() : (a.returnValue = !1)); }, stopPropagation: function () { var a = this.originalEvent; (this.isPropagationStopped = ab), a && (a.stopPropagation && a.stopPropagation(), (a.cancelBubble = !0)); }, stopImmediatePropagation: function () { var a = this.originalEvent; (this.isImmediatePropagationStopped = ab), a && a.stopImmediatePropagation && a.stopImmediatePropagation(), this.stopPropagation(); }, }), m.each( { mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout", }, function (a, b) { m.event.special[a] = { delegateType: b, bindType: b, handle: function (a) { var c, d = this, e = a.relatedTarget, f = a.handleObj; return ( (!e || (e !== d && !m.contains(d, e))) && ((a.type = f.origType), (c = f.handler.apply(this, arguments)), (a.type = b)), c ); }, }; } ), k.submitBubbles || (m.event.special.submit = { setup: function () { return m.nodeName(this, "form") ? !1 : void m.event.add( this, "click._submit keypress._submit", function (a) { var b = a.target, c = m.nodeName(b, "input") || m.nodeName(b, "button") ? b.form : void 0; c && !m._data(c, "submitBubbles") && (m.event.add(c, "submit._submit", function (a) { a._submit_bubble = !0; }), m._data(c, "submitBubbles", !0)); } ); }, postDispatch: function (a) { a._submit_bubble && (delete a._submit_bubble, this.parentNode && !a.isTrigger && m.event.simulate("submit", this.parentNode, a, !0)); }, teardown: function () { return m.nodeName(this, "form") ? !1 : void m.event.remove(this, "._submit"); }, }), k.changeBubbles || (m.event.special.change = { setup: function () { return X.test(this.nodeName) ? (("checkbox" === this.type || "radio" === this.type) && (m.event.add(this, "propertychange._change", function (a) { "checked" === a.originalEvent.propertyName && (this._just_changed = !0); }), m.event.add(this, "click._change", function (a) { this._just_changed && !a.isTrigger && (this._just_changed = !1), m.event.simulate("change", this, a, !0); })), !1) : void m.event.add(this, "beforeactivate._change", function (a) { var b = a.target; X.test(b.nodeName) && !m._data(b, "changeBubbles") && (m.event.add(b, "change._change", function (a) { !this.parentNode || a.isSimulated || a.isTrigger || m.event.simulate("change", this.parentNode, a, !0); }), m._data(b, "changeBubbles", !0)); }); }, handle: function (a) { var b = a.target; return this !== b || a.isSimulated || a.isTrigger || ("radio" !== b.type && "checkbox" !== b.type) ? a.handleObj.handler.apply(this, arguments) : void 0; }, teardown: function () { return m.event.remove(this, "._change"), !X.test(this.nodeName); }, }), k.focusinBubbles || m.each({ focus: "focusin", blur: "focusout" }, function (a, b) { var c = function (a) { m.event.simulate(b, a.target, m.event.fix(a), !0); }; m.event.special[b] = { setup: function () { var d = this.ownerDocument || this, e = m._data(d, b); e || d.addEventListener(a, c, !0), m._data(d, b, (e || 0) + 1); }, teardown: function () { var d = this.ownerDocument || this, e = m._data(d, b) - 1; e ? m._data(d, b, e) : (d.removeEventListener(a, c, !0), m._removeData(d, b)); }, }; }), m.fn.extend({ on: function (a, b, c, d, e) { var f, g; if ("object" == typeof a) { "string" != typeof b && ((c = c || b), (b = void 0)); for (f in a) this.on(f, b, c, a[f], e); return this; } if ( (null == c && null == d ? ((d = b), (c = b = void 0)) : null == d && ("string" == typeof b ? ((d = c), (c = void 0)) : ((d = c), (c = b), (b = void 0))), d === !1) ) d = bb; else if (!d) return this; return ( 1 === e && ((g = d), (d = function (a) { return m().off(a), g.apply(this, arguments); }), (d.guid = g.guid || (g.guid = m.guid++))), this.each(function () { m.event.add(this, a, d, c, b); }) ); }, one: function (a, b, c, d) { return this.on(a, b, c, d, 1); }, off: function (a, b, c) { var d, e; if (a && a.preventDefault && a.handleObj) return ( (d = a.handleObj), m(a.delegateTarget).off( d.namespace ? d.origType + "." + d.namespace : d.origType, d.selector, d.handler ), this ); if ("object" == typeof a) { for (e in a) this.off(e, b, a[e]); return this; } return ( (b === !1 || "function" == typeof b) && ((c = b), (b = void 0)), c === !1 && (c = bb), this.each(function () { m.event.remove(this, a, c, b); }) ); }, trigger: function (a, b) { return this.each(function () { m.event.trigger(a, b, this); }); }, triggerHandler: function (a, b) { var c = this[0]; return c ? m.event.trigger(a, b, c, !0) : void 0; }, }); function db(a) { var b = eb.split("|"), c = a.createDocumentFragment(); if (c.createElement) while (b.length) c.createElement(b.pop()); return c; } var eb = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", fb = / jQuery\d+="(?:null|\d+)"/g, gb = new RegExp("<(?:" + eb + ")[\\s/>]", "i"), hb = /^\s+/, ib = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, jb = /<([\w:]+)/, kb = /<tbody/i, lb = /<|&#?\w+;/, mb = /<(?:script|style|link)/i, nb = /checked\s*(?:[^=]|=\s*.checked.)/i, ob = /^$|\/(?:java|ecma)script/i, pb = /^true\/(.*)/, qb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, rb = { option: [1, "<select multiple='multiple'>", "</select>"], legend: [1, "<fieldset>", "</fieldset>"], area: [1, "<map>", "</map>"], param: [1, "<object>", "</object>"], thead: [1, "<table>", "</table>"], tr: [2, "<table><tbody>", "</tbody></table>"], col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"], td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], _default: k.htmlSerialize ? [0, "", ""] : [1, "X<div>", "</div>"], }, sb = db(y), tb = sb.appendChild(y.createElement("div")); (rb.optgroup = rb.option), (rb.tbody = rb.tfoot = rb.colgroup = rb.caption = rb.thead), (rb.th = rb.td); function ub(a, b) { var c, d, e = 0, f = typeof a.getElementsByTagName !== K ? a.getElementsByTagName(b || "*") : typeof a.querySelectorAll !== K ? a.querySelectorAll(b || "*") : void 0; if (!f) for (f = [], c = a.childNodes || a; null != (d = c[e]); e++) !b || m.nodeName(d, b) ? f.push(d) : m.merge(f, ub(d, b)); return void 0 === b || (b && m.nodeName(a, b)) ? m.merge([a], f) : f; } function vb(a) { W.test(a.type) && (a.defaultChecked = a.checked); } function wb(a, b) { return m.nodeName(a, "table") && m.nodeName(11 !== b.nodeType ? b : b.firstChild, "tr") ? a.getElementsByTagName("tbody")[0] || a.appendChild(a.ownerDocument.createElement("tbody")) : a; } function xb(a) { return (a.type = (null !== m.find.attr(a, "type")) + "/" + a.type), a; } function yb(a) { var b = pb.exec(a.type); return b ? (a.type = b[1]) : a.removeAttribute("type"), a; } function zb(a, b) { for (var c, d = 0; null != (c = a[d]); d++) m._data(c, "globalEval", !b || m._data(b[d], "globalEval")); } function Ab(a, b) { if (1 === b.nodeType && m.hasData(a)) { var c, d, e, f = m._data(a), g = m._data(b, f), h = f.events; if (h) { delete g.handle, (g.events = {}); for (c in h) for (d = 0, e = h[c].length; e > d; d++) m.event.add(b, c, h[c][d]); } g.data && (g.data = m.extend({}, g.data)); } } function Bb(a, b) { var c, d, e; if (1 === b.nodeType) { if (((c = b.nodeName.toLowerCase()), !k.noCloneEvent && b[m.expando])) { e = m._data(b); for (d in e.events) m.removeEvent(b, d, e.handle); b.removeAttribute(m.expando); } "script" === c && b.text !== a.text ? ((xb(b).text = a.text), yb(b)) : "object" === c ? (b.parentNode && (b.outerHTML = a.outerHTML), k.html5Clone && a.innerHTML && !m.trim(b.innerHTML) && (b.innerHTML = a.innerHTML)) : "input" === c && W.test(a.type) ? ((b.defaultChecked = b.checked = a.checked), b.value !== a.value && (b.value = a.value)) : "option" === c ? (b.defaultSelected = b.selected = a.defaultSelected) : ("input" === c || "textarea" === c) && (b.defaultValue = a.defaultValue); } } m.extend({ clone: function (a, b, c) { var d, e, f, g, h, i = m.contains(a.ownerDocument, a); if ( (k.html5Clone || m.isXMLDoc(a) || !gb.test("<" + a.nodeName + ">") ? (f = a.cloneNode(!0)) : ((tb.innerHTML = a.outerHTML), tb.removeChild((f = tb.firstChild))), !( (k.noCloneEvent && k.noCloneChecked) || (1 !== a.nodeType && 11 !== a.nodeType) || m.isXMLDoc(a) )) ) for (d = ub(f), h = ub(a), g = 0; null != (e = h[g]); ++g) d[g] && Bb(e, d[g]); if (b) if (c) for (h = h || ub(a), d = d || ub(f), g = 0; null != (e = h[g]); g++) Ab(e, d[g]); else Ab(a, f); return ( (d = ub(f, "script")), d.length > 0 && zb(d, !i && ub(a, "script")), (d = h = e = null), f ); }, buildFragment: function (a, b, c, d) { for ( var e, f, g, h, i, j, l, n = a.length, o = db(b), p = [], q = 0; n > q; q++ ) if (((f = a[q]), f || 0 === f)) if ("object" === m.type(f)) m.merge(p, f.nodeType ? [f] : f); else if (lb.test(f)) { (h = h || o.appendChild(b.createElement("div"))), (i = (jb.exec(f) || ["", ""])[1].toLowerCase()), (l = rb[i] || rb._default), (h.innerHTML = l[1] + f.replace(ib, "<$1></$2>") + l[2]), (e = l[0]); while (e--) h = h.lastChild; if ( (!k.leadingWhitespace && hb.test(f) && p.push(b.createTextNode(hb.exec(f)[0])), !k.tbody) ) { (f = "table" !== i || kb.test(f) ? "<table>" !== l[1] || kb.test(f) ? 0 : h : h.firstChild), (e = f && f.childNodes.length); while (e--) m.nodeName((j = f.childNodes[e]), "tbody") && !j.childNodes.length && f.removeChild(j); } m.merge(p, h.childNodes), (h.textContent = ""); while (h.firstChild) h.removeChild(h.firstChild); h = o.lastChild; } else p.push(b.createTextNode(f)); h && o.removeChild(h), k.appendChecked || m.grep(ub(p, "input"), vb), (q = 0); while ((f = p[q++])) if ( (!d || -1 === m.inArray(f, d)) && ((g = m.contains(f.ownerDocument, f)), (h = ub(o.appendChild(f), "script")), g && zb(h), c) ) { e = 0; while ((f = h[e++])) ob.test(f.type || "") && c.push(f); } return (h = null), o; }, cleanData: function (a, b) { for ( var d, e, f, g, h = 0, i = m.expando, j = m.cache, l = k.deleteExpando, n = m.event.special; null != (d = a[h]); h++ ) if ((b || m.acceptData(d)) && ((f = d[i]), (g = f && j[f]))) { if (g.events) for (e in g.events) n[e] ? m.event.remove(d, e) : m.removeEvent(d, e, g.handle); j[f] && (delete j[f], l ? delete d[i] : typeof d.removeAttribute !== K ? d.removeAttribute(i) : (d[i] = null), c.push(f)); } }, }), m.fn.extend({ text: function (a) { return V( this, function (a) { return void 0 === a ? m.text(this) : this.empty().append( ((this[0] && this[0].ownerDocument) || y).createTextNode(a) ); }, null, a, arguments.length ); }, append: function () { return this.domManip(arguments, function (a) { if ( 1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType ) { var b = wb(this, a); b.appendChild(a); } }); }, prepend: function () { return this.domManip(arguments, function (a) { if ( 1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType ) { var b = wb(this, a); b.insertBefore(a, b.firstChild); } }); }, before: function () { return this.domManip(arguments, function (a) { this.parentNode && this.parentNode.insertBefore(a, this); }); }, after: function () { return this.domManip(arguments, function (a) { this.parentNode && this.parentNode.insertBefore(a, this.nextSibling); }); }, remove: function (a, b) { for ( var c, d = a ? m.filter(a, this) : this, e = 0; null != (c = d[e]); e++ ) b || 1 !== c.nodeType || m.cleanData(ub(c)), c.parentNode && (b && m.contains(c.ownerDocument, c) && zb(ub(c, "script")), c.parentNode.removeChild(c)); return this; }, empty: function () { for (var a, b = 0; null != (a = this[b]); b++) { 1 === a.nodeType && m.cleanData(ub(a, !1)); while (a.firstChild) a.removeChild(a.firstChild); a.options && m.nodeName(a, "select") && (a.options.length = 0); } return this; }, clone: function (a, b) { return ( (a = null == a ? !1 : a), (b = null == b ? a : b), this.map(function () { return m.clone(this, a, b); }) ); }, html: function (a) { return V( this, function (a) { var b = this[0] || {}, c = 0, d = this.length; if (void 0 === a) return 1 === b.nodeType ? b.innerHTML.replace(fb, "") : void 0; if ( !( "string" != typeof a || mb.test(a) || (!k.htmlSerialize && gb.test(a)) || (!k.leadingWhitespace && hb.test(a)) || rb[(jb.exec(a) || ["", ""])[1].toLowerCase()] ) ) { a = a.replace(ib, "<$1></$2>"); try { for (; d > c; c++) (b = this[c] || {}), 1 === b.nodeType && (m.cleanData(ub(b, !1)), (b.innerHTML = a)); b = 0; } catch (e) {} } b && this.empty().append(a); }, null, a, arguments.length ); }, replaceWith: function () { var a = arguments[0]; return ( this.domManip(arguments, function (b) { (a = this.parentNode), m.cleanData(ub(this)), a && a.replaceChild(b, this); }), a && (a.length || a.nodeType) ? this : this.remove() ); }, detach: function (a) { return this.remove(a, !0); }, domManip: function (a, b) { a = e.apply([], a); var c, d, f, g, h, i, j = 0, l = this.length, n = this, o = l - 1, p = a[0], q = m.isFunction(p); if (q || (l > 1 && "string" == typeof p && !k.checkClone && nb.test(p))) return this.each(function (c) { var d = n.eq(c); q && (a[0] = p.call(this, c, d.html())), d.domManip(a, b); }); if ( l && ((i = m.buildFragment(a, this[0].ownerDocument, !1, this)), (c = i.firstChild), 1 === i.childNodes.length && (i = c), c) ) { for (g = m.map(ub(i, "script"), xb), f = g.length; l > j; j++) (d = i), j !== o && ((d = m.clone(d, !0, !0)), f && m.merge(g, ub(d, "script"))), b.call(this[j], d, j); if (f) for ( h = g[g.length - 1].ownerDocument, m.map(g, yb), j = 0; f > j; j++ ) (d = g[j]), ob.test(d.type || "") && !m._data(d, "globalEval") && m.contains(h, d) && (d.src ? m._evalUrl && m._evalUrl(d.src) : m.globalEval( (d.text || d.textContent || d.innerHTML || "").replace( qb, "" ) )); i = c = null; } return this; }, }), m.each( { appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith", }, function (a, b) { m.fn[a] = function (a) { for (var c, d = 0, e = [], g = m(a), h = g.length - 1; h >= d; d++) (c = d === h ? this : this.clone(!0)), m(g[d])[b](c), f.apply(e, c.get()); return this.pushStack(e); }; } ); var Cb, Db = {}; function Eb(b, c) { var d, e = m(c.createElement(b)).appendTo(c.body), f = a.getDefaultComputedStyle && (d = a.getDefaultComputedStyle(e[0])) ? d.display : m.css(e[0], "display"); return e.detach(), f; } function Fb(a) { var b = y, c = Db[a]; return ( c || ((c = Eb(a, b)), ("none" !== c && c) || ((Cb = ( Cb || m("<iframe frameborder='0' width='0' height='0'/>") ).appendTo(b.documentElement)), (b = (Cb[0].contentWindow || Cb[0].contentDocument).document), b.write(), b.close(), (c = Eb(a, b)), Cb.detach()), (Db[a] = c)), c ); } !(function () { var a; k.shrinkWrapBlocks = function () { if (null != a) return a; a = !1; var b, c, d; return ( (c = y.getElementsByTagName("body")[0]), c && c.style ? ((b = y.createElement("div")), (d = y.createElement("div")), (d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"), c.appendChild(d).appendChild(b), typeof b.style.zoom !== K && ((b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1"), (b.appendChild(y.createElement("div")).style.width = "5px"), (a = 3 !== b.offsetWidth)), c.removeChild(d), a) : void 0 ); }; })(); var Gb = /^margin/, Hb = new RegExp("^(" + S + ")(?!px)[a-z%]+$", "i"), Ib, Jb, Kb = /^(top|right|bottom|left)$/; a.getComputedStyle ? ((Ib = function (b) { return b.ownerDocument.defaultView.opener ? b.ownerDocument.defaultView.getComputedStyle(b, null) : a.getComputedStyle(b, null); }), (Jb = function (a, b, c) { var d, e, f, g, h = a.style; return ( (c = c || Ib(a)), (g = c ? c.getPropertyValue(b) || c[b] : void 0), c && ("" !== g || m.contains(a.ownerDocument, a) || (g = m.style(a, b)), Hb.test(g) && Gb.test(b) && ((d = h.width), (e = h.minWidth), (f = h.maxWidth), (h.minWidth = h.maxWidth = h.width = g), (g = c.width), (h.width = d), (h.minWidth = e), (h.maxWidth = f))), void 0 === g ? g : g + "" ); })) : y.documentElement.currentStyle && ((Ib = function (a) { return a.currentStyle; }), (Jb = function (a, b, c) { var d, e, f, g, h = a.style; return ( (c = c || Ib(a)), (g = c ? c[b] : void 0), null == g && h && h[b] && (g = h[b]), Hb.test(g) && !Kb.test(b) && ((d = h.left), (e = a.runtimeStyle), (f = e && e.left), f && (e.left = a.currentStyle.left), (h.left = "fontSize" === b ? "1em" : g), (g = h.pixelLeft + "px"), (h.left = d), f && (e.left = f)), void 0 === g ? g : g + "" || "auto" ); })); function Lb(a, b) { return { get: function () { var c = a(); if (null != c) return c ? void delete this.get : (this.get = b).apply(this, arguments); }, }; } !(function () { var b, c, d, e, f, g, h; if ( ((b = y.createElement("div")), (b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"), (d = b.getElementsByTagName("a")[0]), (c = d && d.style)) ) { (c.cssText = "float:left;opacity:.5"), (k.opacity = "0.5" === c.opacity), (k.cssFloat = !!c.cssFloat), (b.style.backgroundClip = "content-box"), (b.cloneNode(!0).style.backgroundClip = ""), (k.clearCloneStyle = "content-box" === b.style.backgroundClip), (k.boxSizing = "" === c.boxSizing || "" === c.MozBoxSizing || "" === c.WebkitBoxSizing), m.extend(k, { reliableHiddenOffsets: function () { return null == g && i(), g; }, boxSizingReliable: function () { return null == f && i(), f; }, pixelPosition: function () { return null == e && i(), e; }, reliableMarginRight: function () { return null == h && i(), h; }, }); function i() { var b, c, d, i; (c = y.getElementsByTagName("body")[0]), c && c.style && ((b = y.createElement("div")), (d = y.createElement("div")), (d.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"), c.appendChild(d).appendChild(b), (b.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute"), (e = f = !1), (h = !0), a.getComputedStyle && ((e = "1%" !== (a.getComputedStyle(b, null) || {}).top), (f = "4px" === (a.getComputedStyle(b, null) || { width: "4px" }).width), (i = b.appendChild(y.createElement("div"))), (i.style.cssText = b.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0"), (i.style.marginRight = i.style.width = "0"), (b.style.width = "1px"), (h = !parseFloat( (a.getComputedStyle(i, null) || {}).marginRight )), b.removeChild(i)), (b.innerHTML = "<table><tr><td></td><td>t</td></tr></table>"), (i = b.getElementsByTagName("td")), (i[0].style.cssText = "margin:0;border:0;padding:0;display:none"), (g = 0 === i[0].offsetHeight), g && ((i[0].style.display = ""), (i[1].style.display = "none"), (g = 0 === i[0].offsetHeight)), c.removeChild(d)); } } })(), (m.swap = function (a, b, c, d) { var e, f, g = {}; for (f in b) (g[f] = a.style[f]), (a.style[f] = b[f]); e = c.apply(a, d || []); for (f in b) a.style[f] = g[f]; return e; }); var Mb = /alpha\([^)]*\)/i, Nb = /opacity\s*=\s*([^)]*)/, Ob = /^(none|table(?!-c[ea]).+)/, Pb = new RegExp("^(" + S + ")(.*)$", "i"), Qb = new RegExp("^([+-])=(" + S + ")", "i"), Rb = { position: "absolute", visibility: "hidden", display: "block" }, Sb = { letterSpacing: "0", fontWeight: "400" }, Tb = ["Webkit", "O", "Moz", "ms"]; function Ub(a, b) { if (b in a) return b; var c = b.charAt(0).toUpperCase() + b.slice(1), d = b, e = Tb.length; while (e--) if (((b = Tb[e] + c), b in a)) return b; return d; } function Vb(a, b) { for (var c, d, e, f = [], g = 0, h = a.length; h > g; g++) (d = a[g]), d.style && ((f[g] = m._data(d, "olddisplay")), (c = d.style.display), b ? (f[g] || "none" !== c || (d.style.display = ""), "" === d.style.display && U(d) && (f[g] = m._data(d, "olddisplay", Fb(d.nodeName)))) : ((e = U(d)), ((c && "none" !== c) || !e) && m._data(d, "olddisplay", e ? c : m.css(d, "display")))); for (g = 0; h > g; g++) (d = a[g]), d.style && ((b && "none" !== d.style.display && "" !== d.style.display) || (d.style.display = b ? f[g] || "" : "none")); return a; } function Wb(a, b, c) { var d = Pb.exec(b); return d ? Math.max(0, d[1] - (c || 0)) + (d[2] || "px") : b; } function Xb(a, b, c, d, e) { for ( var f = c === (d ? "border" : "content") ? 4 : "width" === b ? 1 : 0, g = 0; 4 > f; f += 2 ) "margin" === c && (g += m.css(a, c + T[f], !0, e)), d ? ("content" === c && (g -= m.css(a, "padding" + T[f], !0, e)), "margin" !== c && (g -= m.css(a, "border" + T[f] + "Width", !0, e))) : ((g += m.css(a, "padding" + T[f], !0, e)), "padding" !== c && (g += m.css(a, "border" + T[f] + "Width", !0, e))); return g; } function Yb(a, b, c) { var d = !0, e = "width" === b ? a.offsetWidth : a.offsetHeight, f = Ib(a), g = k.boxSizing && "border-box" === m.css(a, "boxSizing", !1, f); if (0 >= e || null == e) { if ( ((e = Jb(a, b, f)), (0 > e || null == e) && (e = a.style[b]), Hb.test(e)) ) return e; (d = g && (k.boxSizingReliable() || e === a.style[b])), (e = parseFloat(e) || 0); } return e + Xb(a, b, c || (g ? "border" : "content"), d, f) + "px"; } m.extend({ cssHooks: { opacity: { get: function (a, b) { if (b) { var c = Jb(a, "opacity"); return "" === c ? "1" : c; } }, }, }, cssNumber: { columnCount: !0, fillOpacity: !0, flexGrow: !0, flexShrink: !0, fontWeight: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, widows: !0, zIndex: !0, zoom: !0, }, cssProps: { float: k.cssFloat ? "cssFloat" : "styleFloat" }, style: function (a, b, c, d) { if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) { var e, f, g, h = m.camelCase(b), i = a.style; if ( ((b = m.cssProps[h] || (m.cssProps[h] = Ub(i, h))), (g = m.cssHooks[b] || m.cssHooks[h]), void 0 === c) ) return g && "get" in g && void 0 !== (e = g.get(a, !1, d)) ? e : i[b]; if ( ((f = typeof c), "string" === f && (e = Qb.exec(c)) && ((c = (e[1] + 1) * e[2] + parseFloat(m.css(a, b))), (f = "number")), null != c && c === c && ("number" !== f || m.cssNumber[h] || (c += "px"), k.clearCloneStyle || "" !== c || 0 !== b.indexOf("background") || (i[b] = "inherit"), !(g && "set" in g && void 0 === (c = g.set(a, c, d))))) ) try { i[b] = c; } catch (j) {} } }, css: function (a, b, c, d) { var e, f, g, h = m.camelCase(b); return ( (b = m.cssProps[h] || (m.cssProps[h] = Ub(a.style, h))), (g = m.cssHooks[b] || m.cssHooks[h]), g && "get" in g && (f = g.get(a, !0, c)), void 0 === f && (f = Jb(a, b, d)), "normal" === f && b in Sb && (f = Sb[b]), "" === c || c ? ((e = parseFloat(f)), c === !0 || m.isNumeric(e) ? e || 0 : f) : f ); }, }), m.each(["height", "width"], function (a, b) { m.cssHooks[b] = { get: function (a, c, d) { return c ? Ob.test(m.css(a, "display")) && 0 === a.offsetWidth ? m.swap(a, Rb, function () { return Yb(a, b, d); }) : Yb(a, b, d) : void 0; }, set: function (a, c, d) { var e = d && Ib(a); return Wb( a, c, d ? Xb( a, b, d, k.boxSizing && "border-box" === m.css(a, "boxSizing", !1, e), e ) : 0 ); }, }; }), k.opacity || (m.cssHooks.opacity = { get: function (a, b) { return Nb.test( (b && a.currentStyle ? a.currentStyle.filter : a.style.filter) || "" ) ? 0.01 * parseFloat(RegExp.$1) + "" : b ? "1" : ""; }, set: function (a, b) { var c = a.style, d = a.currentStyle, e = m.isNumeric(b) ? "alpha(opacity=" + 100 * b + ")" : "", f = (d && d.filter) || c.filter || ""; (c.zoom = 1), ((b >= 1 || "" === b) && "" === m.trim(f.replace(Mb, "")) && c.removeAttribute && (c.removeAttribute("filter"), "" === b || (d && !d.filter))) || (c.filter = Mb.test(f) ? f.replace(Mb, e) : f + " " + e); }, }), (m.cssHooks.marginRight = Lb(k.reliableMarginRight, function (a, b) { return b ? m.swap(a, { display: "inline-block" }, Jb, [a, "marginRight"]) : void 0; })), m.each({ margin: "", padding: "", border: "Width" }, function (a, b) { (m.cssHooks[a + b] = { expand: function (c) { for ( var d = 0, e = {}, f = "string" == typeof c ? c.split(" ") : [c]; 4 > d; d++ ) e[a + T[d] + b] = f[d] || f[d - 2] || f[0]; return e; }, }), Gb.test(a) || (m.cssHooks[a + b].set = Wb); }), m.fn.extend({ css: function (a, b) { return V( this, function (a, b, c) { var d, e, f = {}, g = 0; if (m.isArray(b)) { for (d = Ib(a), e = b.length; e > g; g++) f[b[g]] = m.css(a, b[g], !1, d); return f; } return void 0 !== c ? m.style(a, b, c) : m.css(a, b); }, a, b, arguments.length > 1 ); }, show: function () { return Vb(this, !0); }, hide: function () { return Vb(this); }, toggle: function (a) { return "boolean" == typeof a ? a ? this.show() : this.hide() : this.each(function () { U(this) ? m(this).show() : m(this).hide(); }); }, }); function Zb(a, b, c, d, e) { return new Zb.prototype.init(a, b, c, d, e); } (m.Tween = Zb), (Zb.prototype = { constructor: Zb, init: function (a, b, c, d, e, f) { (this.elem = a), (this.prop = c), (this.easing = e || "swing"), (this.options = b), (this.start = this.now = this.cur()), (this.end = d), (this.unit = f || (m.cssNumber[c] ? "" : "px")); }, cur: function () { var a = Zb.propHooks[this.prop]; return a && a.get ? a.get(this) : Zb.propHooks._default.get(this); }, run: function (a) { var b, c = Zb.propHooks[this.prop]; return ( (this.pos = b = this.options.duration ? m.easing[this.easing]( a, this.options.duration * a, 0, 1, this.options.duration ) : a), (this.now = (this.end - this.start) * b + this.start), this.options.step && this.options.step.call(this.elem, this.now, this), c && c.set ? c.set(this) : Zb.propHooks._default.set(this), this ); }, }), (Zb.prototype.init.prototype = Zb.prototype), (Zb.propHooks = { _default: { get: function (a) { var b; return null == a.elem[a.prop] || (a.elem.style && null != a.elem.style[a.prop]) ? ((b = m.css(a.elem, a.prop, "")), b && "auto" !== b ? b : 0) : a.elem[a.prop]; }, set: function (a) { m.fx.step[a.prop] ? m.fx.step[a.prop](a) : a.elem.style && (null != a.elem.style[m.cssProps[a.prop]] || m.cssHooks[a.prop]) ? m.style(a.elem, a.prop, a.now + a.unit) : (a.elem[a.prop] = a.now); }, }, }), (Zb.propHooks.scrollTop = Zb.propHooks.scrollLeft = { set: function (a) { a.elem.nodeType && a.elem.parentNode && (a.elem[a.prop] = a.now); }, }), (m.easing = { linear: function (a) { return a; }, swing: function (a) { return 0.5 - Math.cos(a * Math.PI) / 2; }, }), (m.fx = Zb.prototype.init), (m.fx.step = {}); var $b, _b, ac = /^(?:toggle|show|hide)$/, bc = new RegExp("^(?:([+-])=|)(" + S + ")([a-z%]*)$", "i"), cc = /queueHooks$/, dc = [ic], ec = { "*": [ function (a, b) { var c = this.createTween(a, b), d = c.cur(), e = bc.exec(b), f = (e && e[3]) || (m.cssNumber[a] ? "" : "px"), g = (m.cssNumber[a] || ("px" !== f && +d)) && bc.exec(m.css(c.elem, a)), h = 1, i = 20; if (g && g[3] !== f) { (f = f || g[3]), (e = e || []), (g = +d || 1); do (h = h || ".5"), (g /= h), m.style(c.elem, a, g + f); while (h !== (h = c.cur() / d) && 1 !== h && --i); } return ( e && ((g = c.start = +g || +d || 0), (c.unit = f), (c.end = e[1] ? g + (e[1] + 1) * e[2] : +e[2])), c ); }, ], }; function fc() { return ( setTimeout(function () { $b = void 0; }), ($b = m.now()) ); } function gc(a, b) { var c, d = { height: a }, e = 0; for (b = b ? 1 : 0; 4 > e; e += 2 - b) (c = T[e]), (d["margin" + c] = d["padding" + c] = a); return b && (d.opacity = d.width = a), d; } function hc(a, b, c) { for ( var d, e = (ec[b] || []).concat(ec["*"]), f = 0, g = e.length; g > f; f++ ) if ((d = e[f].call(c, b, a))) return d; } function ic(a, b, c) { var d, e, f, g, h, i, j, l, n = this, o = {}, p = a.style, q = a.nodeType && U(a), r = m._data(a, "fxshow"); c.queue || ((h = m._queueHooks(a, "fx")), null == h.unqueued && ((h.unqueued = 0), (i = h.empty.fire), (h.empty.fire = function () { h.unqueued || i(); })), h.unqueued++, n.always(function () { n.always(function () { h.unqueued--, m.queue(a, "fx").length || h.empty.fire(); }); })), 1 === a.nodeType && ("height" in b || "width" in b) && ((c.overflow = [p.overflow, p.overflowX, p.overflowY]), (j = m.css(a, "display")), (l = "none" === j ? m._data(a, "olddisplay") || Fb(a.nodeName) : j), "inline" === l && "none" === m.css(a, "float") && (k.inlineBlockNeedsLayout && "inline" !== Fb(a.nodeName) ? (p.zoom = 1) : (p.display = "inline-block"))), c.overflow && ((p.overflow = "hidden"), k.shrinkWrapBlocks() || n.always(function () { (p.overflow = c.overflow[0]), (p.overflowX = c.overflow[1]), (p.overflowY = c.overflow[2]); })); for (d in b) if (((e = b[d]), ac.exec(e))) { if ( (delete b[d], (f = f || "toggle" === e), e === (q ? "hide" : "show")) ) { if ("show" !== e || !r || void 0 === r[d]) continue; q = !0; } o[d] = (r && r[d]) || m.style(a, d); } else j = void 0; if (m.isEmptyObject(o)) "inline" === ("none" === j ? Fb(a.nodeName) : j) && (p.display = j); else { r ? "hidden" in r && (q = r.hidden) : (r = m._data(a, "fxshow", {})), f && (r.hidden = !q), q ? m(a).show() : n.done(function () { m(a).hide(); }), n.done(function () { var b; m._removeData(a, "fxshow"); for (b in o) m.style(a, b, o[b]); }); for (d in o) (g = hc(q ? r[d] : 0, d, n)), d in r || ((r[d] = g.start), q && ((g.end = g.start), (g.start = "width" === d || "height" === d ? 1 : 0))); } } function jc(a, b) { var c, d, e, f, g; for (c in a) if ( ((d = m.camelCase(c)), (e = b[d]), (f = a[c]), m.isArray(f) && ((e = f[1]), (f = a[c] = f[0])), c !== d && ((a[d] = f), delete a[c]), (g = m.cssHooks[d]), g && "expand" in g) ) { (f = g.expand(f)), delete a[d]; for (c in f) c in a || ((a[c] = f[c]), (b[c] = e)); } else b[d] = e; } function kc(a, b, c) { var d, e, f = 0, g = dc.length, h = m.Deferred().always(function () { delete i.elem; }), i = function () { if (e) return !1; for ( var b = $b || fc(), c = Math.max(0, j.startTime + j.duration - b), d = c / j.duration || 0, f = 1 - d, g = 0, i = j.tweens.length; i > g; g++ ) j.tweens[g].run(f); return ( h.notifyWith(a, [j, f, c]), 1 > f && i ? c : (h.resolveWith(a, [j]), !1) ); }, j = h.promise({ elem: a, props: m.extend({}, b), opts: m.extend(!0, { specialEasing: {} }, c), originalProperties: b, originalOptions: c, startTime: $b || fc(), duration: c.duration, tweens: [], createTween: function (b, c) { var d = m.Tween( a, j.opts, b, c, j.opts.specialEasing[b] || j.opts.easing ); return j.tweens.push(d), d; }, stop: function (b) { var c = 0, d = b ? j.tweens.length : 0; if (e) return this; for (e = !0; d > c; c++) j.tweens[c].run(1); return b ? h.resolveWith(a, [j, b]) : h.rejectWith(a, [j, b]), this; }, }), k = j.props; for (jc(k, j.opts.specialEasing); g > f; f++) if ((d = dc[f].call(j, a, k, j.opts))) return d; return ( m.map(k, hc, j), m.isFunction(j.opts.start) && j.opts.start.call(a, j), m.fx.timer(m.extend(i, { elem: a, anim: j, queue: j.opts.queue })), j .progress(j.opts.progress) .done(j.opts.done, j.opts.complete) .fail(j.opts.fail) .always(j.opts.always) ); } (m.Animation = m.extend(kc, { tweener: function (a, b) { m.isFunction(a) ? ((b = a), (a = ["*"])) : (a = a.split(" ")); for (var c, d = 0, e = a.length; e > d; d++) (c = a[d]), (ec[c] = ec[c] || []), ec[c].unshift(b); }, prefilter: function (a, b) { b ? dc.unshift(a) : dc.push(a); }, })), (m.speed = function (a, b, c) { var d = a && "object" == typeof a ? m.extend({}, a) : { complete: c || (!c && b) || (m.isFunction(a) && a), duration: a, easing: (c && b) || (b && !m.isFunction(b) && b), }; return ( (d.duration = m.fx.off ? 0 : "number" == typeof d.duration ? d.duration : d.duration in m.fx.speeds ? m.fx.speeds[d.duration] : m.fx.speeds._default), (null == d.queue || d.queue === !0) && (d.queue = "fx"), (d.old = d.complete), (d.complete = function () { m.isFunction(d.old) && d.old.call(this), d.queue && m.dequeue(this, d.queue); }), d ); }), m.fn.extend({ fadeTo: function (a, b, c, d) { return this.filter(U) .css("opacity", 0) .show() .end() .animate({ opacity: b }, a, c, d); }, animate: function (a, b, c, d) { var e = m.isEmptyObject(a), f = m.speed(b, c, d), g = function () { var b = kc(this, m.extend({}, a), f); (e || m._data(this, "finish")) && b.stop(!0); }; return ( (g.finish = g), e || f.queue === !1 ? this.each(g) : this.queue(f.queue, g) ); }, stop: function (a, b, c) { var d = function (a) { var b = a.stop; delete a.stop, b(c); }; return ( "string" != typeof a && ((c = b), (b = a), (a = void 0)), b && a !== !1 && this.queue(a || "fx", []), this.each(function () { var b = !0, e = null != a && a + "queueHooks", f = m.timers, g = m._data(this); if (e) g[e] && g[e].stop && d(g[e]); else for (e in g) g[e] && g[e].stop && cc.test(e) && d(g[e]); for (e = f.length; e--; ) f[e].elem !== this || (null != a && f[e].queue !== a) || (f[e].anim.stop(c), (b = !1), f.splice(e, 1)); (b || !c) && m.dequeue(this, a); }) ); }, finish: function (a) { return ( a !== !1 && (a = a || "fx"), this.each(function () { var b, c = m._data(this), d = c[a + "queue"], e = c[a + "queueHooks"], f = m.timers, g = d ? d.length : 0; for ( c.finish = !0, m.queue(this, a, []), e && e.stop && e.stop.call(this, !0), b = f.length; b--; ) f[b].elem === this && f[b].queue === a && (f[b].anim.stop(!0), f.splice(b, 1)); for (b = 0; g > b; b++) d[b] && d[b].finish && d[b].finish.call(this); delete c.finish; }) ); }, }), m.each(["toggle", "show", "hide"], function (a, b) { var c = m.fn[b]; m.fn[b] = function (a, d, e) { return null == a || "boolean" == typeof a ? c.apply(this, arguments) : this.animate(gc(b, !0), a, d, e); }; }), m.each( { slideDown: gc("show"), slideUp: gc("hide"), slideToggle: gc("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" }, }, function (a, b) { m.fn[a] = function (a, c, d) { return this.animate(b, a, c, d); }; } ), (m.timers = []), (m.fx.tick = function () { var a, b = m.timers, c = 0; for ($b = m.now(); c < b.length; c++) (a = b[c]), a() || b[c] !== a || b.splice(c--, 1); b.length || m.fx.stop(), ($b = void 0); }), (m.fx.timer = function (a) { m.timers.push(a), a() ? m.fx.start() : m.timers.pop(); }), (m.fx.interval = 13), (m.fx.start = function () { _b || (_b = setInterval(m.fx.tick, m.fx.interval)); }), (m.fx.stop = function () { clearInterval(_b), (_b = null); }), (m.fx.speeds = { slow: 600, fast: 200, _default: 400 }), (m.fn.delay = function (a, b) { return ( (a = m.fx ? m.fx.speeds[a] || a : a), (b = b || "fx"), this.queue(b, function (b, c) { var d = setTimeout(b, a); c.stop = function () { clearTimeout(d); }; }) ); }), (function () { var a, b, c, d, e; (b = y.createElement("div")), b.setAttribute("className", "t"), (b.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"), (d = b.getElementsByTagName("a")[0]), (c = y.createElement("select")), (e = c.appendChild(y.createElement("option"))), (a = b.getElementsByTagName("input")[0]), (d.style.cssText = "top:1px"), (k.getSetAttribute = "t" !== b.className), (k.style = /top/.test(d.getAttribute("style"))), (k.hrefNormalized = "/a" === d.getAttribute("href")), (k.checkOn = !!a.value), (k.optSelected = e.selected), (k.enctype = !!y.createElement("form").enctype), (c.disabled = !0), (k.optDisabled = !e.disabled), (a = y.createElement("input")), a.setAttribute("value", ""), (k.input = "" === a.getAttribute("value")), (a.value = "t"), a.setAttribute("type", "radio"), (k.radioValue = "t" === a.value); })(); var lc = /\r/g; m.fn.extend({ val: function (a) { var b, c, d, e = this[0]; { if (arguments.length) return ( (d = m.isFunction(a)), this.each(function (c) { var e; 1 === this.nodeType && ((e = d ? a.call(this, c, m(this).val()) : a), null == e ? (e = "") : "number" == typeof e ? (e += "") : m.isArray(e) && (e = m.map(e, function (a) { return null == a ? "" : a + ""; })), (b = m.valHooks[this.type] || m.valHooks[this.nodeName.toLowerCase()]), (b && "set" in b && void 0 !== b.set(this, e, "value")) || (this.value = e)); }) ); if (e) return ( (b = m.valHooks[e.type] || m.valHooks[e.nodeName.toLowerCase()]), b && "get" in b && void 0 !== (c = b.get(e, "value")) ? c : ((c = e.value), "string" == typeof c ? c.replace(lc, "") : null == c ? "" : c) ); } }, }), m.extend({ valHooks: { option: { get: function (a) { var b = m.find.attr(a, "value"); return null != b ? b : m.trim(m.text(a)); }, }, select: { get: function (a) { for ( var b, c, d = a.options, e = a.selectedIndex, f = "select-one" === a.type || 0 > e, g = f ? null : [], h = f ? e + 1 : d.length, i = 0 > e ? h : f ? e : 0; h > i; i++ ) if ( ((c = d[i]), !( (!c.selected && i !== e) || (k.optDisabled ? c.disabled : null !== c.getAttribute("disabled")) || (c.parentNode.disabled && m.nodeName(c.parentNode, "optgroup")) )) ) { if (((b = m(c).val()), f)) return b; g.push(b); } return g; }, set: function (a, b) { var c, d, e = a.options, f = m.makeArray(b), g = e.length; while (g--) if (((d = e[g]), m.inArray(m.valHooks.option.get(d), f) >= 0)) try { d.selected = c = !0; } catch (h) { d.scrollHeight; } else d.selected = !1; return c || (a.selectedIndex = -1), e; }, }, }, }), m.each(["radio", "checkbox"], function () { (m.valHooks[this] = { set: function (a, b) { return m.isArray(b) ? (a.checked = m.inArray(m(a).val(), b) >= 0) : void 0; }, }), k.checkOn || (m.valHooks[this].get = function (a) { return null === a.getAttribute("value") ? "on" : a.value; }); }); var mc, nc, oc = m.expr.attrHandle, pc = /^(?:checked|selected)$/i, qc = k.getSetAttribute, rc = k.input; m.fn.extend({ attr: function (a, b) { return V(this, m.attr, a, b, arguments.length > 1); }, removeAttr: function (a) { return this.each(function () { m.removeAttr(this, a); }); }, }), m.extend({ attr: function (a, b, c) { var d, e, f = a.nodeType; if (a && 3 !== f && 8 !== f && 2 !== f) return typeof a.getAttribute === K ? m.prop(a, b, c) : ((1 === f && m.isXMLDoc(a)) || ((b = b.toLowerCase()), (d = m.attrHooks[b] || (m.expr.match.bool.test(b) ? nc : mc))), void 0 === c ? d && "get" in d && null !== (e = d.get(a, b)) ? e : ((e = m.find.attr(a, b)), null == e ? void 0 : e) : null !== c ? d && "set" in d && void 0 !== (e = d.set(a, c, b)) ? e : (a.setAttribute(b, c + ""), c) : void m.removeAttr(a, b)); }, removeAttr: function (a, b) { var c, d, e = 0, f = b && b.match(E); if (f && 1 === a.nodeType) while ((c = f[e++])) (d = m.propFix[c] || c), m.expr.match.bool.test(c) ? (rc && qc) || !pc.test(c) ? (a[d] = !1) : (a[m.camelCase("default-" + c)] = a[d] = !1) : m.attr(a, c, ""), a.removeAttribute(qc ? c : d); }, attrHooks: { type: { set: function (a, b) { if (!k.radioValue && "radio" === b && m.nodeName(a, "input")) { var c = a.value; return a.setAttribute("type", b), c && (a.value = c), b; } }, }, }, }), (nc = { set: function (a, b, c) { return ( b === !1 ? m.removeAttr(a, c) : (rc && qc) || !pc.test(c) ? a.setAttribute((!qc && m.propFix[c]) || c, c) : (a[m.camelCase("default-" + c)] = a[c] = !0), c ); }, }), m.each(m.expr.match.bool.source.match(/\w+/g), function (a, b) { var c = oc[b] || m.find.attr; oc[b] = (rc && qc) || !pc.test(b) ? function (a, b, d) { var e, f; return ( d || ((f = oc[b]), (oc[b] = e), (e = null != c(a, b, d) ? b.toLowerCase() : null), (oc[b] = f)), e ); } : function (a, b, c) { return c ? void 0 : a[m.camelCase("default-" + b)] ? b.toLowerCase() : null; }; }), (rc && qc) || (m.attrHooks.value = { set: function (a, b, c) { return m.nodeName(a, "input") ? void (a.defaultValue = b) : mc && mc.set(a, b, c); }, }), qc || ((mc = { set: function (a, b, c) { var d = a.getAttributeNode(c); return ( d || a.setAttributeNode((d = a.ownerDocument.createAttribute(c))), (d.value = b += ""), "value" === c || b === a.getAttribute(c) ? b : void 0 ); }, }), (oc.id = oc.name = oc.coords = function (a, b, c) { var d; return c ? void 0 : (d = a.getAttributeNode(b)) && "" !== d.value ? d.value : null; }), (m.valHooks.button = { get: function (a, b) { var c = a.getAttributeNode(b); return c && c.specified ? c.value : void 0; }, set: mc.set, }), (m.attrHooks.contenteditable = { set: function (a, b, c) { mc.set(a, "" === b ? !1 : b, c); }, }), m.each(["width", "height"], function (a, b) { m.attrHooks[b] = { set: function (a, c) { return "" === c ? (a.setAttribute(b, "auto"), c) : void 0; }, }; })), k.style || (m.attrHooks.style = { get: function (a) { return a.style.cssText || void 0; }, set: function (a, b) { return (a.style.cssText = b + ""); }, }); var sc = /^(?:input|select|textarea|button|object)$/i, tc = /^(?:a|area)$/i; m.fn.extend({ prop: function (a, b) { return V(this, m.prop, a, b, arguments.length > 1); }, removeProp: function (a) { return ( (a = m.propFix[a] || a), this.each(function () { try { (this[a] = void 0), delete this[a]; } catch (b) {} }) ); }, }), m.extend({ propFix: { for: "htmlFor", class: "className" }, prop: function (a, b, c) { var d, e, f, g = a.nodeType; if (a && 3 !== g && 8 !== g && 2 !== g) return ( (f = 1 !== g || !m.isXMLDoc(a)), f && ((b = m.propFix[b] || b), (e = m.propHooks[b])), void 0 !== c ? e && "set" in e && void 0 !== (d = e.set(a, c, b)) ? d : (a[b] = c) : e && "get" in e && null !== (d = e.get(a, b)) ? d : a[b] ); }, propHooks: { tabIndex: { get: function (a) { var b = m.find.attr(a, "tabindex"); return b ? parseInt(b, 10) : sc.test(a.nodeName) || (tc.test(a.nodeName) && a.href) ? 0 : -1; }, }, }, }), k.hrefNormalized || m.each(["href", "src"], function (a, b) { m.propHooks[b] = { get: function (a) { return a.getAttribute(b, 4); }, }; }), k.optSelected || (m.propHooks.selected = { get: function (a) { var b = a.parentNode; return ( b && (b.selectedIndex, b.parentNode && b.parentNode.selectedIndex), null ); }, }), m.each( [ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable", ], function () { m.propFix[this.toLowerCase()] = this; } ), k.enctype || (m.propFix.enctype = "encoding"); var uc = /[\t\r\n\f]/g; m.fn.extend({ addClass: function (a) { var b, c, d, e, f, g, h = 0, i = this.length, j = "string" == typeof a && a; if (m.isFunction(a)) return this.each(function (b) { m(this).addClass(a.call(this, b, this.className)); }); if (j) for (b = (a || "").match(E) || []; i > h; h++) if ( ((c = this[h]), (d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(uc, " ") : " "))) ) { f = 0; while ((e = b[f++])) d.indexOf(" " + e + " ") < 0 && (d += e + " "); (g = m.trim(d)), c.className !== g && (c.className = g); } return this; }, removeClass: function (a) { var b, c, d, e, f, g, h = 0, i = this.length, j = 0 === arguments.length || ("string" == typeof a && a); if (m.isFunction(a)) return this.each(function (b) { m(this).removeClass(a.call(this, b, this.className)); }); if (j) for (b = (a || "").match(E) || []; i > h; h++) if ( ((c = this[h]), (d = 1 === c.nodeType && (c.className ? (" " + c.className + " ").replace(uc, " ") : ""))) ) { f = 0; while ((e = b[f++])) while (d.indexOf(" " + e + " ") >= 0) d = d.replace(" " + e + " ", " "); (g = a ? m.trim(d) : ""), c.className !== g && (c.className = g); } return this; }, toggleClass: function (a, b) { var c = typeof a; return "boolean" == typeof b && "string" === c ? b ? this.addClass(a) : this.removeClass(a) : this.each( m.isFunction(a) ? function (c) { m(this).toggleClass(a.call(this, c, this.className, b), b); } : function () { if ("string" === c) { var b, d = 0, e = m(this), f = a.match(E) || []; while ((b = f[d++])) e.hasClass(b) ? e.removeClass(b) : e.addClass(b); } else (c === K || "boolean" === c) && (this.className && m._data(this, "__className__", this.className), (this.className = this.className || a === !1 ? "" : m._data(this, "__className__") || "")); } ); }, hasClass: function (a) { for (var b = " " + a + " ", c = 0, d = this.length; d > c; c++) if ( 1 === this[c].nodeType && (" " + this[c].className + " ").replace(uc, " ").indexOf(b) >= 0 ) return !0; return !1; }, }), m.each( "blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split( " " ), function (a, b) { m.fn[b] = function (a, c) { return arguments.length > 0 ? this.on(b, null, a, c) : this.trigger(b); }; } ), m.fn.extend({ hover: function (a, b) { return this.mouseenter(a).mouseleave(b || a); }, bind: function (a, b, c) { return this.on(a, null, b, c); }, unbind: function (a, b) { return this.off(a, null, b); }, delegate: function (a, b, c, d) { return this.on(b, a, c, d); }, undelegate: function (a, b, c) { return 1 === arguments.length ? this.off(a, "**") : this.off(b, a || "**", c); }, }); var vc = m.now(), wc = /\?/, xc = /(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g; (m.parseJSON = function (b) { if (a.JSON && a.JSON.parse) return a.JSON.parse(b + ""); var c, d = null, e = m.trim(b + ""); return e && !m.trim( e.replace(xc, function (a, b, e, f) { return ( c && b && (d = 0), 0 === d ? a : ((c = e || b), (d += !f - !e), "") ); }) ) ? Function("return " + e)() : m.error("Invalid JSON: " + b); }), (m.parseXML = function (b) { var c, d; if (!b || "string" != typeof b) return null; try { a.DOMParser ? ((d = new DOMParser()), (c = d.parseFromString(b, "text/xml"))) : ((c = new ActiveXObject("Microsoft.XMLDOM")), (c.async = "false"), c.loadXML(b)); } catch (e) { c = void 0; } return ( (c && c.documentElement && !c.getElementsByTagName("parsererror").length) || m.error("Invalid XML: " + b), c ); }); var yc, zc, Ac = /#.*$/, Bc = /([?&])_=[^&]*/, Cc = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, Dc = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, Ec = /^(?:GET|HEAD)$/, Fc = /^\/\//, Gc = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/, Hc = {}, Ic = {}, Jc = "*/".concat("*"); try { zc = location.href; } catch (Kc) { (zc = y.createElement("a")), (zc.href = ""), (zc = zc.href); } yc = Gc.exec(zc.toLowerCase()) || []; function Lc(a) { return function (b, c) { "string" != typeof b && ((c = b), (b = "*")); var d, e = 0, f = b.toLowerCase().match(E) || []; if (m.isFunction(c)) while ((d = f[e++])) "+" === d.charAt(0) ? ((d = d.slice(1) || "*"), (a[d] = a[d] || []).unshift(c)) : (a[d] = a[d] || []).push(c); }; } function Mc(a, b, c, d) { var e = {}, f = a === Ic; function g(h) { var i; return ( (e[h] = !0), m.each(a[h] || [], function (a, h) { var j = h(b, c, d); return "string" != typeof j || f || e[j] ? f ? !(i = j) : void 0 : (b.dataTypes.unshift(j), g(j), !1); }), i ); } return g(b.dataTypes[0]) || (!e["*"] && g("*")); } function Nc(a, b) { var c, d, e = m.ajaxSettings.flatOptions || {}; for (d in b) void 0 !== b[d] && ((e[d] ? a : c || (c = {}))[d] = b[d]); return c && m.extend(!0, a, c), a; } function Oc(a, b, c) { var d, e, f, g, h = a.contents, i = a.dataTypes; while ("*" === i[0]) i.shift(), void 0 === e && (e = a.mimeType || b.getResponseHeader("Content-Type")); if (e) for (g in h) if (h[g] && h[g].test(e)) { i.unshift(g); break; } if (i[0] in c) f = i[0]; else { for (g in c) { if (!i[0] || a.converters[g + " " + i[0]]) { f = g; break; } d || (d = g); } f = f || d; } return f ? (f !== i[0] && i.unshift(f), c[f]) : void 0; } function Pc(a, b, c, d) { var e, f, g, h, i, j = {}, k = a.dataTypes.slice(); if (k[1]) for (g in a.converters) j[g.toLowerCase()] = a.converters[g]; f = k.shift(); while (f) if ( (a.responseFields[f] && (c[a.responseFields[f]] = b), !i && d && a.dataFilter && (b = a.dataFilter(b, a.dataType)), (i = f), (f = k.shift())) ) if ("*" === f) f = i; else if ("*" !== i && i !== f) { if (((g = j[i + " " + f] || j["* " + f]), !g)) for (e in j) if ( ((h = e.split(" ")), h[1] === f && (g = j[i + " " + h[0]] || j["* " + h[0]])) ) { g === !0 ? (g = j[e]) : j[e] !== !0 && ((f = h[0]), k.unshift(h[1])); break; } if (g !== !0) if (g && a["throws"]) b = g(b); else try { b = g(b); } catch (l) { return { state: "parsererror", error: g ? l : "No conversion from " + i + " to " + f, }; } } return { state: "success", data: b }; } m.extend({ active: 0, lastModified: {}, etag: {}, ajaxSettings: { url: zc, type: "GET", isLocal: Dc.test(yc[1]), global: !0, processData: !0, async: !0, contentType: "application/x-www-form-urlencoded; charset=UTF-8", accepts: { "*": Jc, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript", }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON", }, converters: { "* text": String, "text html": !0, "text json": m.parseJSON, "text xml": m.parseXML, }, flatOptions: { url: !0, context: !0 }, }, ajaxSetup: function (a, b) { return b ? Nc(Nc(a, m.ajaxSettings), b) : Nc(m.ajaxSettings, a); }, ajaxPrefilter: Lc(Hc), ajaxTransport: Lc(Ic), ajax: function (a, b) { "object" == typeof a && ((b = a), (a = void 0)), (b = b || {}); var c, d, e, f, g, h, i, j, k = m.ajaxSetup({}, b), l = k.context || k, n = k.context && (l.nodeType || l.jquery) ? m(l) : m.event, o = m.Deferred(), p = m.Callbacks("once memory"), q = k.statusCode || {}, r = {}, s = {}, t = 0, u = "canceled", v = { readyState: 0, getResponseHeader: function (a) { var b; if (2 === t) { if (!j) { j = {}; while ((b = Cc.exec(f))) j[b[1].toLowerCase()] = b[2]; } b = j[a.toLowerCase()]; } return null == b ? null : b; }, getAllResponseHeaders: function () { return 2 === t ? f : null; }, setRequestHeader: function (a, b) { var c = a.toLowerCase(); return t || ((a = s[c] = s[c] || a), (r[a] = b)), this; }, overrideMimeType: function (a) { return t || (k.mimeType = a), this; }, statusCode: function (a) { var b; if (a) if (2 > t) for (b in a) q[b] = [q[b], a[b]]; else v.always(a[v.status]); return this; }, abort: function (a) { var b = a || u; return i && i.abort(b), x(0, b), this; }, }; if ( ((o.promise(v).complete = p.add), (v.success = v.done), (v.error = v.fail), (k.url = ((a || k.url || zc) + "") .replace(Ac, "") .replace(Fc, yc[1] + "//")), (k.type = b.method || b.type || k.method || k.type), (k.dataTypes = m .trim(k.dataType || "*") .toLowerCase() .match(E) || [""]), null == k.crossDomain && ((c = Gc.exec(k.url.toLowerCase())), (k.crossDomain = !( !c || (c[1] === yc[1] && c[2] === yc[2] && (c[3] || ("http:" === c[1] ? "80" : "443")) === (yc[3] || ("http:" === yc[1] ? "80" : "443"))) ))), k.data && k.processData && "string" != typeof k.data && (k.data = m.param(k.data, k.traditional)), Mc(Hc, k, b, v), 2 === t) ) return v; (h = m.event && k.global), h && 0 === m.active++ && m.event.trigger("ajaxStart"), (k.type = k.type.toUpperCase()), (k.hasContent = !Ec.test(k.type)), (e = k.url), k.hasContent || (k.data && ((e = k.url += (wc.test(e) ? "&" : "?") + k.data), delete k.data), k.cache === !1 && (k.url = Bc.test(e) ? e.replace(Bc, "$1_=" + vc++) : e + (wc.test(e) ? "&" : "?") + "_=" + vc++)), k.ifModified && (m.lastModified[e] && v.setRequestHeader("If-Modified-Since", m.lastModified[e]), m.etag[e] && v.setRequestHeader("If-None-Match", m.etag[e])), ((k.data && k.hasContent && k.contentType !== !1) || b.contentType) && v.setRequestHeader("Content-Type", k.contentType), v.setRequestHeader( "Accept", k.dataTypes[0] && k.accepts[k.dataTypes[0]] ? k.accepts[k.dataTypes[0]] + ("*" !== k.dataTypes[0] ? ", " + Jc + "; q=0.01" : "") : k.accepts["*"] ); for (d in k.headers) v.setRequestHeader(d, k.headers[d]); if (k.beforeSend && (k.beforeSend.call(l, v, k) === !1 || 2 === t)) return v.abort(); u = "abort"; for (d in { success: 1, error: 1, complete: 1 }) v[d](k[d]); if ((i = Mc(Ic, k, b, v))) { (v.readyState = 1), h && n.trigger("ajaxSend", [v, k]), k.async && k.timeout > 0 && (g = setTimeout(function () { v.abort("timeout"); }, k.timeout)); try { (t = 1), i.send(r, x); } catch (w) { if (!(2 > t)) throw w; x(-1, w); } } else x(-1, "No Transport"); function x(a, b, c, d) { var j, r, s, u, w, x = b; 2 !== t && ((t = 2), g && clearTimeout(g), (i = void 0), (f = d || ""), (v.readyState = a > 0 ? 4 : 0), (j = (a >= 200 && 300 > a) || 304 === a), c && (u = Oc(k, v, c)), (u = Pc(k, u, v, j)), j ? (k.ifModified && ((w = v.getResponseHeader("Last-Modified")), w && (m.lastModified[e] = w), (w = v.getResponseHeader("etag")), w && (m.etag[e] = w)), 204 === a || "HEAD" === k.type ? (x = "nocontent") : 304 === a ? (x = "notmodified") : ((x = u.state), (r = u.data), (s = u.error), (j = !s))) : ((s = x), (a || !x) && ((x = "error"), 0 > a && (a = 0))), (v.status = a), (v.statusText = (b || x) + ""), j ? o.resolveWith(l, [r, x, v]) : o.rejectWith(l, [v, x, s]), v.statusCode(q), (q = void 0), h && n.trigger(j ? "ajaxSuccess" : "ajaxError", [v, k, j ? r : s]), p.fireWith(l, [v, x]), h && (n.trigger("ajaxComplete", [v, k]), --m.active || m.event.trigger("ajaxStop"))); } return v; }, getJSON: function (a, b, c) { return m.get(a, b, c, "json"); }, getScript: function (a, b) { return m.get(a, void 0, b, "script"); }, }), m.each(["get", "post"], function (a, b) { m[b] = function (a, c, d, e) { return ( m.isFunction(c) && ((e = e || d), (d = c), (c = void 0)), m.ajax({ url: a, type: b, dataType: e, data: c, success: d }) ); }; }), (m._evalUrl = function (a) { return m.ajax({ url: a, type: "GET", dataType: "script", async: !1, global: !1, throws: !0, }); }), m.fn.extend({ wrapAll: function (a) { if (m.isFunction(a)) return this.each(function (b) { m(this).wrapAll(a.call(this, b)); }); if (this[0]) { var b = m(a, this[0].ownerDocument).eq(0).clone(!0); this[0].parentNode && b.insertBefore(this[0]), b .map(function () { var a = this; while (a.firstChild && 1 === a.firstChild.nodeType) a = a.firstChild; return a; }) .append(this); } return this; }, wrapInner: function (a) { return this.each( m.isFunction(a) ? function (b) { m(this).wrapInner(a.call(this, b)); } : function () { var b = m(this), c = b.contents(); c.length ? c.wrapAll(a) : b.append(a); } ); }, wrap: function (a) { var b = m.isFunction(a); return this.each(function (c) { m(this).wrapAll(b ? a.call(this, c) : a); }); }, unwrap: function () { return this.parent() .each(function () { m.nodeName(this, "body") || m(this).replaceWith(this.childNodes); }) .end(); }, }), (m.expr.filters.hidden = function (a) { return ( (a.offsetWidth <= 0 && a.offsetHeight <= 0) || (!k.reliableHiddenOffsets() && "none" === ((a.style && a.style.display) || m.css(a, "display"))) ); }), (m.expr.filters.visible = function (a) { return !m.expr.filters.hidden(a); }); var Qc = /%20/g, Rc = /\[\]$/, Sc = /\r?\n/g, Tc = /^(?:submit|button|image|reset|file)$/i, Uc = /^(?:input|select|textarea|keygen)/i; function Vc(a, b, c, d) { var e; if (m.isArray(b)) m.each(b, function (b, e) { c || Rc.test(a) ? d(a, e) : Vc(a + "[" + ("object" == typeof e ? b : "") + "]", e, c, d); }); else if (c || "object" !== m.type(b)) d(a, b); else for (e in b) Vc(a + "[" + e + "]", b[e], c, d); } (m.param = function (a, b) { var c, d = [], e = function (a, b) { (b = m.isFunction(b) ? b() : null == b ? "" : b), (d[d.length] = encodeURIComponent(a) + "=" + encodeURIComponent(b)); }; if ( (void 0 === b && (b = m.ajaxSettings && m.ajaxSettings.traditional), m.isArray(a) || (a.jquery && !m.isPlainObject(a))) ) m.each(a, function () { e(this.name, this.value); }); else for (c in a) Vc(c, a[c], b, e); return d.join("&").replace(Qc, "+"); }), m.fn.extend({ serialize: function () { return m.param(this.serializeArray()); }, serializeArray: function () { return this.map(function () { var a = m.prop(this, "elements"); return a ? m.makeArray(a) : this; }) .filter(function () { var a = this.type; return ( this.name && !m(this).is(":disabled") && Uc.test(this.nodeName) && !Tc.test(a) && (this.checked || !W.test(a)) ); }) .map(function (a, b) { var c = m(this).val(); return null == c ? null : m.isArray(c) ? m.map(c, function (a) { return { name: b.name, value: a.replace(Sc, "\r\n") }; }) : { name: b.name, value: c.replace(Sc, "\r\n") }; }) .get(); }, }), (m.ajaxSettings.xhr = void 0 !== a.ActiveXObject ? function () { return ( (!this.isLocal && /^(get|post|head|put|delete|options)$/i.test(this.type) && Zc()) || $c() ); } : Zc); var Wc = 0, Xc = {}, Yc = m.ajaxSettings.xhr(); a.attachEvent && a.attachEvent("onunload", function () { for (var a in Xc) Xc[a](void 0, !0); }), (k.cors = !!Yc && "withCredentials" in Yc), (Yc = k.ajax = !!Yc), Yc && m.ajaxTransport(function (a) { if (!a.crossDomain || k.cors) { var b; return { send: function (c, d) { var e, f = a.xhr(), g = ++Wc; if ( (f.open(a.type, a.url, a.async, a.username, a.password), a.xhrFields) ) for (e in a.xhrFields) f[e] = a.xhrFields[e]; a.mimeType && f.overrideMimeType && f.overrideMimeType(a.mimeType), a.crossDomain || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest"); for (e in c) void 0 !== c[e] && f.setRequestHeader(e, c[e] + ""); f.send((a.hasContent && a.data) || null), (b = function (c, e) { var h, i, j; if (b && (e || 4 === f.readyState)) if ( (delete Xc[g], (b = void 0), (f.onreadystatechange = m.noop), e) ) 4 !== f.readyState && f.abort(); else { (j = {}), (h = f.status), "string" == typeof f.responseText && (j.text = f.responseText); try { i = f.statusText; } catch (k) { i = ""; } h || !a.isLocal || a.crossDomain ? 1223 === h && (h = 204) : (h = j.text ? 200 : 404); } j && d(h, i, j, f.getAllResponseHeaders()); }), a.async ? 4 === f.readyState ? setTimeout(b) : (f.onreadystatechange = Xc[g] = b) : b(); }, abort: function () { b && b(void 0, !0); }, }; } }); function Zc() { try { return new a.XMLHttpRequest(); } catch (b) {} } function $c() { try { return new a.ActiveXObject("Microsoft.XMLHTTP"); } catch (b) {} } m.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript", }, contents: { script: /(?:java|ecma)script/ }, converters: { "text script": function (a) { return m.globalEval(a), a; }, }, }), m.ajaxPrefilter("script", function (a) { void 0 === a.cache && (a.cache = !1), a.crossDomain && ((a.type = "GET"), (a.global = !1)); }), m.ajaxTransport("script", function (a) { if (a.crossDomain) { var b, c = y.head || m("head")[0] || y.documentElement; return { send: function (d, e) { (b = y.createElement("script")), (b.async = !0), a.scriptCharset && (b.charset = a.scriptCharset), (b.src = a.url), (b.onload = b.onreadystatechange = function (a, c) { (c || !b.readyState || /loaded|complete/.test(b.readyState)) && ((b.onload = b.onreadystatechange = null), b.parentNode && b.parentNode.removeChild(b), (b = null), c || e(200, "success")); }), c.insertBefore(b, c.firstChild); }, abort: function () { b && b.onload(void 0, !0); }, }; } }); var _c = [], ad = /(=)\?(?=&|$)|\?\?/; m.ajaxSetup({ jsonp: "callback", jsonpCallback: function () { var a = _c.pop() || m.expando + "_" + vc++; return (this[a] = !0), a; }, }), m.ajaxPrefilter("json jsonp", function (b, c, d) { var e, f, g, h = b.jsonp !== !1 && (ad.test(b.url) ? "url" : "string" == typeof b.data && !(b.contentType || "").indexOf( "application/x-www-form-urlencoded" ) && ad.test(b.data) && "data"); return h || "jsonp" === b.dataTypes[0] ? ((e = b.jsonpCallback = m.isFunction(b.jsonpCallback) ? b.jsonpCallback() : b.jsonpCallback), h ? (b[h] = b[h].replace(ad, "$1" + e)) : b.jsonp !== !1 && (b.url += (wc.test(b.url) ? "&" : "?") + b.jsonp + "=" + e), (b.converters["script json"] = function () { return g || m.error(e + " was not called"), g[0]; }), (b.dataTypes[0] = "json"), (f = a[e]), (a[e] = function () { g = arguments; }), d.always(function () { (a[e] = f), b[e] && ((b.jsonpCallback = c.jsonpCallback), _c.push(e)), g && m.isFunction(f) && f(g[0]), (g = f = void 0); }), "script") : void 0; }), (m.parseHTML = function (a, b, c) { if (!a || "string" != typeof a) return null; "boolean" == typeof b && ((c = b), (b = !1)), (b = b || y); var d = u.exec(a), e = !c && []; return d ? [b.createElement(d[1])] : ((d = m.buildFragment([a], b, e)), e && e.length && m(e).remove(), m.merge([], d.childNodes)); }); var bd = m.fn.load; (m.fn.load = function (a, b, c) { if ("string" != typeof a && bd) return bd.apply(this, arguments); var d, e, f, g = this, h = a.indexOf(" "); return ( h >= 0 && ((d = m.trim(a.slice(h, a.length))), (a = a.slice(0, h))), m.isFunction(b) ? ((c = b), (b = void 0)) : b && "object" == typeof b && (f = "POST"), g.length > 0 && m .ajax({ url: a, type: f, dataType: "html", data: b }) .done(function (a) { (e = arguments), g.html(d ? m("<div>").append(m.parseHTML(a)).find(d) : a); }) .complete( c && function (a, b) { g.each(c, e || [a.responseText, b, a]); } ), this ); }), m.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend", ], function (a, b) { m.fn[b] = function (a) { return this.on(b, a); }; } ), (m.expr.filters.animated = function (a) { return m.grep(m.timers, function (b) { return a === b.elem; }).length; }); var cd = a.document.documentElement; function dd(a) { return m.isWindow(a) ? a : 9 === a.nodeType ? a.defaultView || a.parentWindow : !1; } (m.offset = { setOffset: function (a, b, c) { var d, e, f, g, h, i, j, k = m.css(a, "position"), l = m(a), n = {}; "static" === k && (a.style.position = "relative"), (h = l.offset()), (f = m.css(a, "top")), (i = m.css(a, "left")), (j = ("absolute" === k || "fixed" === k) && m.inArray("auto", [f, i]) > -1), j ? ((d = l.position()), (g = d.top), (e = d.left)) : ((g = parseFloat(f) || 0), (e = parseFloat(i) || 0)), m.isFunction(b) && (b = b.call(a, c, h)), null != b.top && (n.top = b.top - h.top + g), null != b.left && (n.left = b.left - h.left + e), "using" in b ? b.using.call(a, n) : l.css(n); }, }), m.fn.extend({ offset: function (a) { if (arguments.length) return void 0 === a ? this : this.each(function (b) { m.offset.setOffset(this, a, b); }); var b, c, d = { top: 0, left: 0 }, e = this[0], f = e && e.ownerDocument; if (f) return ( (b = f.documentElement), m.contains(b, e) ? (typeof e.getBoundingClientRect !== K && (d = e.getBoundingClientRect()), (c = dd(f)), { top: d.top + (c.pageYOffset || b.scrollTop) - (b.clientTop || 0), left: d.left + (c.pageXOffset || b.scrollLeft) - (b.clientLeft || 0), }) : d ); }, position: function () { if (this[0]) { var a, b, c = { top: 0, left: 0 }, d = this[0]; return ( "fixed" === m.css(d, "position") ? (b = d.getBoundingClientRect()) : ((a = this.offsetParent()), (b = this.offset()), m.nodeName(a[0], "html") || (c = a.offset()), (c.top += m.css(a[0], "borderTopWidth", !0)), (c.left += m.css(a[0], "borderLeftWidth", !0))), { top: b.top - c.top - m.css(d, "marginTop", !0), left: b.left - c.left - m.css(d, "marginLeft", !0), } ); } }, offsetParent: function () { return this.map(function () { var a = this.offsetParent || cd; while ( a && !m.nodeName(a, "html") && "static" === m.css(a, "position") ) a = a.offsetParent; return a || cd; }); }, }), m.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function (a, b) { var c = /Y/.test(b); m.fn[a] = function (d) { return V( this, function (a, d, e) { var f = dd(a); return void 0 === e ? f ? b in f ? f[b] : f.document.documentElement[d] : a[d] : void (f ? f.scrollTo( c ? m(f).scrollLeft() : e, c ? e : m(f).scrollTop() ) : (a[d] = e)); }, a, d, arguments.length, null ); }; } ), m.each(["top", "left"], function (a, b) { m.cssHooks[b] = Lb(k.pixelPosition, function (a, c) { return c ? ((c = Jb(a, b)), Hb.test(c) ? m(a).position()[b] + "px" : c) : void 0; }); }), m.each({ Height: "height", Width: "width" }, function (a, b) { m.each( { padding: "inner" + a, content: b, "": "outer" + a }, function (c, d) { m.fn[d] = function (d, e) { var f = arguments.length && (c || "boolean" != typeof d), g = c || (d === !0 || e === !0 ? "margin" : "border"); return V( this, function (b, c, d) { var e; return m.isWindow(b) ? b.document.documentElement["client" + a] : 9 === b.nodeType ? ((e = b.documentElement), Math.max( b.body["scroll" + a], e["scroll" + a], b.body["offset" + a], e["offset" + a], e["client" + a] )) : void 0 === d ? m.css(b, c, g) : m.style(b, c, d, g); }, b, f ? d : void 0, f, null ); }; } ); }), (m.fn.size = function () { return this.length; }), (m.fn.andSelf = m.fn.addBack), "function" == typeof define && define.amd && define("jquery", [], function () { return m; }); var ed = a.jQuery, fd = a.$; return ( (m.noConflict = function (b) { return a.$ === m && (a.$ = fd), b && a.jQuery === m && (a.jQuery = ed), m; }), typeof b === K && (a.jQuery = a.$ = m), m ); });
module.exports = { // ROOM EVENTS ROOM_VARIABLE: 'variable', ROOM_DATA: 'data', ROOM_KEY: 'key', ROOM_PUBLIC: 'roomPublic', ROOM_PRIVATE: 'roomPrivate', CLIENT_ROOM_VARIABLE: 'c_variable', CLIENT_ROOM_DATA: 'c_data', CLIENT_ROOM_KEY: 'c_key', // INN KEEPER EVENTS ROOM_RESERVE: 'reserve', ROOM_ENTER: 'enter', ROOM_ENTER_PUBLIC: 'enterPublic', ROOM_ENTER_WITH_KEY: 'enterKey', ROOM_JOIN: 'join', ROOM_LEAVE: 'leave' };
mycallback( {"CONTRIBUTOR OCCUPATION": "Associate Manager", "CONTRIBUTION AMOUNT (F3L Bundled)": "90.00", "ELECTION CODE": "", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Mylan Pharmaceuticals Inc", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1141 Munsey St", "CONTRIBUTOR MIDDLE NAME": "P", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "WV", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Alfonso", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20100930", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "P/R Deduction ($0.00 )", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00332395", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Austria", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "26505", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Morgantown", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "PR575584820383", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110411/721688.fec_1.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "285.00", "FORM TYPE": "SA11ai"});
/** * `tasks/register/buildProd.js` * * --------------------------------------------------------------- * * This Grunt tasklist will be executed instead of `build` if you * run `sails www` in a production environment, e.g.: * `NODE_ENV=production sails www` * * For more information see: * https://sailsjs.com/anatomy/tasks/register/build-prod.js * */ module.exports = function(grunt) { grunt.registerTask('buildProd', [ ]); };
/** * DevExtreme (ui/tree_list/ui.tree_list.context_menu.js) * Version: 20.1.3 * Build date: Fri Apr 24 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _uiTree_list = require("./ui.tree_list.core"); var _uiTree_list2 = _interopRequireDefault(_uiTree_list); var _uiGrid_core = require("../grid_core/ui.grid_core.context_menu"); var _uiGrid_core2 = _interopRequireDefault(_uiGrid_core); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj } } _uiTree_list2.default.registerModule("contextMenu", _uiGrid_core2.default);
exports.level = { "goalTreeString": "%7B%22branches%22%3A%7B%22master%22%3A%7B%22target%22%3A%22C1%22%2C%22id%22%3A%22master%22%2C%22remoteTrackingBranchID%22%3A%22o/master%22%7D%2C%22o/master%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22o/master%22%2C%22remoteTrackingBranchID%22%3Anull%7D%2C%22side%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22side%22%2C%22remoteTrackingBranchID%22%3A%22o/master%22%7D%7D%2C%22commits%22%3A%7B%22C0%22%3A%7B%22parents%22%3A%5B%5D%2C%22id%22%3A%22C0%22%2C%22rootCommit%22%3Atrue%7D%2C%22C1%22%3A%7B%22parents%22%3A%5B%22C0%22%5D%2C%22id%22%3A%22C1%22%7D%2C%22C3%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C3%22%7D%2C%22C2%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C2%22%7D%2C%22C3%27%22%3A%7B%22parents%22%3A%5B%22C2%22%5D%2C%22id%22%3A%22C3%27%22%7D%7D%2C%22HEAD%22%3A%7B%22target%22%3A%22side%22%2C%22id%22%3A%22HEAD%22%7D%2C%22originTree%22%3A%7B%22branches%22%3A%7B%22master%22%3A%7B%22target%22%3A%22C3%27%22%2C%22id%22%3A%22master%22%2C%22remoteTrackingBranchID%22%3Anull%7D%7D%2C%22commits%22%3A%7B%22C0%22%3A%7B%22parents%22%3A%5B%5D%2C%22id%22%3A%22C0%22%2C%22rootCommit%22%3Atrue%7D%2C%22C1%22%3A%7B%22parents%22%3A%5B%22C0%22%5D%2C%22id%22%3A%22C1%22%7D%2C%22C2%22%3A%7B%22parents%22%3A%5B%22C1%22%5D%2C%22id%22%3A%22C2%22%7D%2C%22C3%27%22%3A%7B%22parents%22%3A%5B%22C2%22%5D%2C%22id%22%3A%22C3%27%22%7D%7D%2C%22HEAD%22%3A%7B%22target%22%3A%22master%22%2C%22id%22%3A%22HEAD%22%7D%7D%7D", "solutionCommand": "git checkout -b side o/master;git commit;git pull --rebase;git push", "startTree": "{\"branches\":{\"master\":{\"target\":\"C1\",\"id\":\"master\",\"remoteTrackingBranchID\":\"o/master\"},\"o/master\":{\"target\":\"C1\",\"id\":\"o/master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"}},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"},\"originTree\":{\"branches\":{\"master\":{\"target\":\"C2\",\"id\":\"master\",\"remoteTrackingBranchID\":null}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"}},\"HEAD\":{\"target\":\"master\",\"id\":\"HEAD\"}}}", "name": { "en_US": "Remote Tracking", "zh_CN": "远程追踪", "zh_TW": "remote tracking", "es_AR": "Trackeando remotos", "es_ES": "Trackeando remotos", "pt_BR": "Seguindo remotos", "gl" : "Traceando os remotos", "de_DE": "Remote Tracking", "ja" : "リモートのトラッキング", "fr_FR": "Suivi de branche distante", "ru_RU": "Слежка за удалённым репозиторием", "ko" : "원격 저장소 추적하기", "uk" : "Слідкуємо за віддаленим репозиторієм", "vi" : "Theo dõi từ xa", "sl_SI": "Sledenje Oddaljenega Repota" }, "hint": { "en_US": "Remember there are two ways to set remote tracking!", "zh_CN": "记住,有两种设置 remote tracking 的方法!", "zh_TW": "記住喔,有兩個方式可以去設定 remote tracking", "es_AR": "¡Acordate de que hay dos formas de trackear un remoto!", "es_ES": "¡Recuerda que hay dos formas de trackear un remoto!", "pt_BR": "Lembre-se que há duas formas de seguir um ramo remoto!", "gl" : "¡Lembrate de que hai dúas formas de seguir unha rama remota!", "de_DE": "Nicht vergessen, es gibt zwei Arten Remote Tracking einzurichten!", "ja" : "リモートトラッキングを設定する方法が二つあるのをお忘れなく!", "fr_FR": "Rappelez-vous qu'il existe deux façons de configurer le suivi de branche distante !", "ru_RU": "Помни, есть два способа установить слежку за удалённым репозиторием!", "ko" : "원격 추적하기를 설정하는데에는 두가지 방법이 있습니다!", "uk" : "Пам'ятай, є два способи слідкувати за віддаленим репозиорієм!", "vi" : "Hãy nhớ rằng, có 2 cách để thiết lập theo dõi từ xa!", "sl_SI": "Spomni se, da obstajata dva načina za sledenje oddaljenega repota." }, "startDialog": { "en_US": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Remote-Tracking branches", "", "One thing that might have seemed \"magical\" about the last few lessons is that git knew the `master` branch was related to `o/master`. Sure these branches have similar names and it might make logical sense to connect the `master` branch on the remote to the local `master` branch, but this connection is demonstrated clearly in two scenarios:", "", "* During a pull operation, commits are downloaded onto `o/master` and then *merged* into the `master` branch. The implied target of the merge is determined from this connection.", "* During a push operation, work from the `master` branch was pushed onto the remote's `master` branch (which was then represented by `o/master` locally). The *destination* of the push is determined from the connection between `master` and `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Remote tracking", "", "Long story short, this connection between `master` and `o/master` is explained simply by the \"remote tracking\" property of branches. The `master` branch is set to track `o/master` -- this means there is an implied merge target and implied push destination for the `master` branch.", "", "You may be wondering how this property got set on the `master` branch when you didn't run any commands to specify it. Well, when you clone a repository with git, this property is actually set for you automatically. ", "", "During a clone, git creates a remote branch for every branch on the remote (aka branches like `o/master`). It then creates a local branch that tracks the currently active branch on the remote, which is `master` in most cases.", "", "Once git clone is complete, you only have one local branch (so you aren't overwhelmed) but you can see all the different branches on the remote (if you happen to be very curious). It's the best of both worlds!", "", "This also explains why you may see the following command output when cloning:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Can I specify this myself?", "", "Yes you can! You can make any arbitrary branch track `o/master`, and if you do so, that branch will have the same implied push destination and merge target as `master`. This means you can run `git push` on a branch named `totallyNotMaster` and have your work pushed to the `master` branch on the remote!", "", "There are two ways to set this property. The first is to checkout a new branch by using a remote branch as the specified ref. Running", "", "`git checkout -b totallyNotMaster o/master`", "", "Creates a new branch named `totallyNotMaster` and sets it to track `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Enough talking, let's see a demonstration! We will checkout a new branch named `foo` and set it to track `master` on the remote." ], "afterMarkdowns": [ "As you can see, we used the implied merge target of `o/master` to update the `foo` branch. Note how master doesn't get updated!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "This also applies for git push" ], "afterMarkdowns": [ "Boom. We pushed our work to the `master` on the remote even though our branch was named something totally different" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Way #2", "", "Another way to set remote tracking on a branch is to simply use the `git branch -u` option. Running", "", "`git branch -u o/master foo`", "", "will set the `foo` branch to track `o/master`. If `foo` is currently checked out you can even leave it off:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Let's see this other way of specifying remote tracking real quick..." ], "afterMarkdowns": [ "Same as before, just a more explicit command. Sweet!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Ok! For this level let's push work onto the `master` branch on remote while *not* checked out on `master` locally. I'll let you figure out the rest since this is the advanced course :P" ] } } ] }, "fr_FR": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Le suivi des branches distantes", "", "Dans les dernières leçons, git savait que la branche `master` était reliée à `o/master`, et cela a pu vous paraître \"magique\". Il est certain que ces deux branches ont des noms similaires et il peut être logique de croire que la branche locale `master` est liée à la branche distante `master`, mais la relation n'est prouvée que dans deux scénarios :", "", "* Pendant un pull, les commits sont téléchargés dans `o/master` et ensuite *fusionnés* (merge) dans la branche `master`. La cible impliquée dans cette fusion est déterminée par cette relation.", "* Pendant un push, le travail de la branche `master` a été envoyé sur la branche distante `master` (qui est localement représentée par `o/master`). La *destination* du push est déterminée par la relation entre `master` and `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Remote tracking", "", "Pour faire court, cette relation entre `master` et `o/master` est simplement portée par la propriété \"remote tracking\" (suivi distant) des branches. La branche `master` est configurée pour suivre `o/master` : cela signifie qu'il y a une cible de fusion et une destination d'envoi implicites pour la branche `master`.", "", "Vous vous demandez peut-être comment cette propriété a été configurée pour la branche `master` alors que vous n'avez exécuté aucune commande pour le faire. Eh bien, quand vous clonez un dépôt avec git, cette propriété est configurée automatiquement. ", "", "Pendant le clonage, git crée une branche distante pour chaque branche du dépôt distant (c'est à dire des branches comme `o/master`). Il crée ensuite une branche locale qui suit la branche actuellement active sur le dépôt distant, qui se trouve être `master` dans la plupart des cas.", "", "Une fois que git clone est terminé, vous avez seulement une branche locale (comme ça vous n'êtes pas submergé) mais vous pouvez voir toutes les branches distantes (si vous êtes très curieux). C'est le compromis idéal !", "", "Cela explique aussi pourquoi vous avez peut-être vu la sortie suivante pendant le clonage :", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Puis-je configurer cette relation moi-même ?", "", "Absolument ! Vous pouvez suivre `o/master` depuis n'importe quelle branche, et si vous le faîtes, cette branche va avoir la même destination de push et cible de merge que pour `master`. Cela signifie que vous pouvez exécuter `git push` sur une branche nommée `totallyNotMaster` mais envoyer tout de même votre travail sur la branche `master` du dépôt distant !", "", "Il y a deux façons de configurer cette propriété. La première est de créer une nouvelle branche en la branchant immédiatement sur la branche distante, à l'aide de `git checkout -b` :", "", "`git checkout -b totallyNotMaster o/master`", "", "Cette commande crée une nouvelle branche nommée `totallyNotMaster` et la configure pour suivre `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Assez parlé, faisons une démonstration ! Nous allons nous placer sur une nouvelle branche nommée `foo` et la configurer pour suivre `master` du dépôt distant." ], "afterMarkdowns": [ "Comme vous pouvez le voir, nous avons utilisé la cible de fusion déclarée pour `o/master` afin de mettre à jour la branche `foo`. Remarquez que la branche master n'a pas été mise à jour !!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Cela s'applique aussi pour git push :" ], "afterMarkdowns": [ "Boum. Nous avons envoyé notre travail sur `master` vers le dépôt distant alors que notre branche avait un nom totalement différent." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Méthode n°2", "", "Une autre façon de configurer le suivi d'une branche est d'utiliser l'option `git branch -u`. La commande est alors :", "", "`git branch -u o/master foo`", "", "Ce qui va configurer la branche `foo` (déjà existante) pour suivre `o/master`. Si `foo` est la branche courante, vous pouvez même ne pas la préciser :", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Voyons cette autre manière de paramètrer le suivi d'une branche distante..." ], "afterMarkdowns": [ "C'est la même chose, et c'est juste un peu plus explicite. Cool !" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Ok ! Pour ce niveau, envoyons notre travail sur la branche distante `master` en ne se trouvant *pas* sur la branche `master` locale. Je vous laisse chercher comment faire, puisque c'est une leçon de niveau avancé :P" ] } } ] }, "es_AR": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Ramas que trackean remotos", "", "Una de las cosas que pueden haber parecido \"mágicas\" de las últimas lecciones es que git sabía que la rama `master` estaba relacionada con `o/master`. Obviamente, estas ramas tienen nombres parecidos, y podría parecer lógico conectar la rama `master` del remoto con la rama `master` local, pero esta conexión es bien evidente en dos escenarios:", "", "* Durante una operación de pull, los commits se descargan a `o/master` y después se *mergean* a la rama `master`. El objetivo implícito del merge se determina con esta conexión.", "* Durante un push, el trabajo de la rama `master` se sube a la rama `master` del remoto (que estaba representada localmente por `o/master`). El *destino* del push se determina con esta conexión entre `master` y `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Trackeando remotos", "", "Haciéndola corta, esta conexión entre `master` y `o/master` se explica simplemente por la propiedad de \"trackear (seguir) remotos\" de las ramas. La rama `master` está configurada para trackear `o/master` -- osea, que hay un objetivo implícito para el merge y un destino implícito para de la rama `master`.", "", "Podrías estar pensando cómo esa propiedad apareció en tu rama `master` si vos no corriste ningún comando para especificarlo. Bueno, cuando clonás un repositorio con git, esta propiedad se asigna por vos automáticamente.", "", "Durante un clone, git crea una rama remota por cada rama en el remoto (por ejemplo, ramas como `o/master`). Pero después crea una rama local que trackea la rama activa del remote, que suele ser `master`.", "", "Una vez completado el git clone, sólo tenés una única rama local (para que no te asustes) pero podés ver todas las ramas que del remoto (si fueras tan curioso). ¡Es lo mejor de ambos mundos!", "", "Esto también explica por qué podrías ver un mensaje como este durante la clonación:", "", " local branch \"master\" set to track remote branch \"o/master\"", "", " rama local \"master\" establecida para trackear la rama remota \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### ¿Puedo especificarlo yo?", "", "¡Claro que sí! Podés hacer que cualquier rama que quieras trackee `o/master`, y si lo hicieras, esa rama va a tener el mismo destino implícito de push y objetivo implícito de merge que `master`. Eso significa que podés correr `git push` en una rama llamada `absolutamenteNoEsMaster` y ¡que tu trabajo se pushee a la rama `master` del remoto!", "", "Hay dos formas de establecer esta propiedad. La primera es checkoutear una nueva rama usando una rama remota como la referencia especificada. Ejecutar", "", "`git checkout -b absolutamenteNoEsMaster o/master`", "", "Crea una nueva rama llamada `absolutamenteNoEsMaster` y la hace trackear a `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Suficiente charla, ¡veamos una demo! Vamos a checkoutear una nueva rama llamada `foo` y hacer que trackee a `master` en el remoto." ], "afterMarkdowns": [ "Como podés ver, usamos el objetivo implícito de merge `o/master` para actualizar la rama `foo`. ¡Notá cómo `master` no fue actualizada!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Lo mismo aplica para git push" ], "afterMarkdowns": [ "Boom. Pusheamos nuestro trabajo a la rama `master` del remoto incluso cuando nuestra rama se llamaba totalmente distinto" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Forma número 2", "", "Otra forma de especificar la rama a trackear es usar la opción `git branch -u`. Ejecutando", "", "`git branch -u o/master foo`", "", "establecemos que la rama `foo` trackee a `o/master`. Si encima estás parado en `foo`, incluso podés obviarlo:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Veamos rápidamente esta otra forma de especificar la rama a trackear..." ], "afterMarkdowns": [ "Lo mismo que antes, sólo que con un comando bastante más explícito. ¡Una belleza!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "¡Ok! Para este nivel, pusheá tu trabajo a la rama `master` del remoto *sin* estar parado sobre `master` localmente. Te dejo que te des cuenta del resto solo, que para algo este es el curso avanzado :P" ] } } ] }, "es_ES": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Ramas que trackean remotos", "", "Una de las cosas que te pueden haber parecido \"mágicas\" de las últimas lecciones es que git sabía que la rama `master` estaba relacionada con `o/master`. Obviamente, estas ramas tienen nombres parecidos, y podría parecer lógico conectar la rama `master` del remoto con la rama `master` local, pero esta conexión es bien evidente en dos escenarios:", "", "* Durante una operación de pull, los commits se descargan a `o/master` y después se *mergean* a la rama `master`. El objetivo implícito del merge se determina con esta conexión.", "* Durante un push, el trabajo de la rama `master` se sube a la rama `master` del remoto (que estaba representada localmente por `o/master`). El *destino* del push se determina con esta conexión entre `master` y `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Trackeando remotos", "", "Resumiendo, esta conexión entre `master` y `o/master` se explica simplemente por la propiedad de \"trackear (seguir) remotos\" de las ramas. La rama `master` está configurada para trackear `o/master` -- osea, que hay un objetivo implícito para el merge y un destino implícito para de la rama `master`.", "", "Podrías estar pensando cómo esa propiedad apareció en tu rama `master` si no ejecutaste ningún comando para especificarlo. Bueno, cuando clonas un repositorio con git, esta propiedad es asignada por ti automáticamente.", "", "Durante un clone, git crea una rama remota por cada rama en el remoto (por ejemplo, ramas como `o/master`). Pero después crea una rama local que trackea la rama activa del remote, que suele ser `master`.", "", "Una vez completado el git clone, sólo tienes una única rama local (para que no te asustes) pero puedes ver todas las ramas del remoto (si fueses curioso). ¡Es lo mejor de ambos mundos!", "", "Esto también explica por qué podrías ver un mensaje como este durante la clonación:", "", " local branch \"master\" set to track remote branch \"o/master\"", "", " rama local \"master\" establecida para trackear la rama remota \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### ¿Puedo especificarlo yo?", "", "¡Claro que sí! Puedes hacer que cualquier rama que quieras trackee `o/master`, y si lo hicieras, esa rama va a tener el mismo destino implícito de push y objetivo implícito de merge que `master`. Eso significa que puedes ejecutar `git push` en una rama llamada `absolutamenteNoEsMaster` y ¡que tu trabajo se pushee a la rama `master` del remoto!", "", "Hay dos formas de establecer esta propiedad. La primera es hacer checkout sobre una nueva rama usando una rama remota como la referencia especificada. Ejecutar", "", "`git checkout -b absolutamenteNoEsMaster o/master`", "", "Crea una nueva rama llamada `absolutamenteNoEsMaster` y la hace trackear a `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Basta de charla, ¡veamos un ejemplo! Vamos a hacer checkout de una nueva rama llamada `foo` y hacer que trackee a `master` en el remoto." ], "afterMarkdowns": [ "Como puedes ver, usamos el objetivo implícito de merge `o/master` para actualizar la rama `foo`. ¡Observa cómo `master` no fue actualizada!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Lo mismo aplica para git push" ], "afterMarkdowns": [ "Zas. Hacemos push de nuestro trabajo a la rama `master` del remoto incluso cuando nuestra rama se llamaba totalmente distinto" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Forma número 2", "", "Otra forma de especificar la rama a trackear es usar la opción `git branch -u`. Ejecutando", "", "`git branch -u o/master foo`", "", "establecemos que la rama `foo` trackee a `o/master`. Si encima estás parado en `foo`, incluso puedes obviarlo:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Veamos rápidamente esta otra forma de especificar la rama a trackear..." ], "afterMarkdowns": [ "Lo mismo que antes, sólo que con un comando bastante más explícito. ¡Muy útil!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "¡Perfecto! Para este nivel, haz push de tu trabajo a la rama `master` del remoto *sin* estar parado sobre `master` localmente. Te dejo que te des cuenta del resto solo, que para algo este es el curso avanzado :P" ] } } ] }, "pt_BR": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Seguindo ramos remotos", "", "Uma coisa que pode ter parecido \"mágica\" nas lições passadas é que o Git sabia que o ramo `master` estava relacionado com o `o/master`. Certamente esses ramos possuem nomes similares, e tem todo sentido lógico conectar o ramo `master` do lado remoto com o ramo `master` local, mas essa conexão é demonstrada claramente em dois cenários:", "", "* Durante uma operação de pull, os commits são baixados em `o/master` e então são *mergidos* no ramo `master`. O alvo do merge é determinado a partir dessa conexão.", "* Durante uma operação de push, o trabalho do ramo `master` local é enviado para o ramo `master` remoto (que é representado localmente por `o/master`). O *destino* do push é determinado da conexão entre `master` e `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Remote tracking", "", "Resumindo a história, essa conexão entre `master` e `o/master` é explicada pela propriedade de \"remote tracking\" dos ramos. O ramo `master` é configurado para seguir o ramo `o/master` -- isso significa que existe um alvo implícito de merge e um destino implícito de push para o ramo `master`.", "", "Você pode estar se perguntando como essa propriedade foi configurada no ramo `master` se você não executou nenhum comando ordenando que isso fosse feito. Bem, quando você clona um repositório com o Git, essa propriedade é configurada para você automaticamente. ", "", "Durante a clonagem, o Git cria um ramo remoto para cada ramo que existe no repositório remoto (ou seja, ramos como o `o/master`). Ele cria então um ramo local que segue o ramo atualmente ativo no repositório remoto, que geralmente é o `master`.", "", "Uma vez que a clonagem esteja completa, você terá apenas um único ramo local (para que você não seja sobrecarregado), mas você pode ver todos os ramos diferentes que existem no repositório remoto (caso você esteja curioso). É o melhor dos dois mundos!", "", "Isso também explica porque você vê a seguinte mensagem quando clona um repositório:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Posso eu mesmo especificar isso?", "", "Sim, você pode! Você pode fazer com que qualquer ramo arbitrário siga o `o/master`, e se você fizer isso, esse ramo terá o mesmo destino de push implícito que e o mesmo alvo de merge que o `master`. Isso significa que você pode executar `git push` em um ramo chamado `realmenteNaoSouOMaster` e ainda assim ter seu trabalho enviado ao ramo `master` do repositório remoto!", "", "Há duas formas de configurar essa propriedade. A primeira consiste em fazer checkout de um novo ramo usando o ramo remoto como especificação de referência. Executar", "", "`git checkout -b realmenteNaoSouOMaster o/master`", "", "Cria um novo ramo chamado `realmenteNaoSouOMaster` e o configura para seguir o `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Já foi conversa o suficiente, vamos ver uma demonstração! Vamos fazer checkout de um novo ramo chamado `foo` e configurá-lo para seguir o `master` do repositório remoto." ], "afterMarkdowns": [ "Como você pode ver, usamos o alvo implícito de merge do `o/master` para atualizar o ramo `foo`. Veja como o master local não sofreu atualização!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Isso também se aplica ao git push" ], "afterMarkdowns": [ "Boom. Nós enviamos nosso trabalho para o ramo remoto `master` ainda que nosso ramo local tivesse um nome completamente diferente" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Forma #2", "", "Outra maneira de configurar remote tracking em um ramo é utilizando `git branch -u`. Executando", "", "`git branch -u o/master foo`", "", "configuraremos o ramo local `foo` para seguir o `o/master`. Se `foo` for o que estiver atualmente em checkout, você pode inclusive omiti-lo:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Vejamos outra forma realmente rápida de configurar remote tracking..." ], "afterMarkdowns": [ "O mesmo de antes, apenas um comando mais explícito. Doce!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Ok! Para este nível, vamos fazer push no ramo remoto `master` *sem estar* em um checkout do `master` local. Vou deixar você descobrir o resto, já que isto é um curso avançado :P" ] } } ] }, "gl": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Ramas que trackean os remotos", "", "Unha das cousas que poden semellar \"máxicas\" das últimas leccións é que git sabía que a rama `master` estaba relacionada co `o/master`. Obviamente, estas ramas teñen nomes semellantes, e podería semellar lóxico conectar a rama `master` do remoto ca rama `master` local, pero esta conexión é ben evidente nos dous escenarios:", "", "* Durante unha operación de pull, os commits descarganse ó `o/master` e logo *mesturanse* á rama `master`. O obxectivo implícito do merge determinase con esta conexión.", "* Durante un push, o traballo da rama `master` súbese á rama `master` do remoto (que estaba representada localmente por `o/master`). O *destino* do push determinouse con esta conexión entre `master` e `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Trackeando remotos", "", "Facéndoa curta, esta conexión entre `master` e `o/master` ensínase pola propiedade de \"trackear (seguir) remotos\" das ramas. A rama `master` está configurada para trackear `o/master` -- o que quere dicir, que hai un obxectivo implícito para o merge e un destino implícito para a rama `master`.", "", "Poderías estar pensando cómo esa propiedade apareceu na túa rama `master` se ti non executaches ningún comando para especificalo. Bueno, cando clonas un repositorio co git, esta propiedade asignase por ti automáticamente.", "", "Durante un clone, git crea unha rama remota por cada rama no remoto (por exemplo, ramas como `o/master`). Pero despois crea unha rama local que trakea a rama activa do remoto, que habitúa ser `master`.", "", "Una vez completado o git clone, só tés unha única rama local (para que non te asustes) pero podes ver todalas ramas que do remoto (se fora tan curioso). ¡É o mellor de ámbolos dous mundos!", "", "Esto tamén explica por qué poderías ver unha mensaxe como este durante a clonación:", "", " local branch \"master\" set to track remote branch \"o/master\"", "", " rama local \"master\" establecida para trackear a rama remota \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### ¿Podo especificalo eu?", "", "¡Claro que sí! Podes facer que calquera rama que quixeras seguir `o/master`, e se o fixeras, esa rama vai ter o mesmo destino implícito de push e obxectivo implícito de merge que `master`. Eso significa que podes executar `git push` nunha rama chamada `nonMaster` e ¡que o teu traballo se empurre á rama `master` do remoto!", "", "Hai dúas formas de establecer esta propiedade. A primeira é facer checkout a unha nova rama empregando unha rama remota como a referencia especificada. Executar", "", "`git checkout -b nonMaster o/master`", "", "Crea unha nova rama chamada `nonMaster` e persigue a `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Suficiente charla, ¡vexamos unha demo! Imos facer checkout a unha nova rama chamada `foo` e facer que siga a `master` no remoto." ], "afterMarkdowns": [ "Como podes ver, empregamos o obxectivo implícito de merge `o/master` para actualizar a rama `foo`. ¡Nota como `master` non foi actualizada!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "O mismo aplica para git push" ], "afterMarkdowns": [ "Boom. Empurramos o noso traballo á rama `master` do remoto incluso cando a nosa rama se chamaba totalmete distinto" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Forma número 2", "", "Outra forma de especificar a rama a seguir é usar a opción `git branch -u`. Executando", "", "`git branch -u o/master foo`", "", "establecemos que a rama `foo` segue a `o/mater`. Se por riba estás parado en `foo`, incluso podes obvialo:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Vexamos rápidamente está outra forma de especificar a rama a seguir..." ], "afterMarkdowns": [ "O mesmo que antes, só que un comando bastante máis explícito. ¡Unha cousa preciosa!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "¡Ok! Para este nivel, empurra o teu traballo á rama `master` do remoto *sen* estar parado sobre `master` localmente. Déixote que te decates do resto ti só, que para algo estás nun nivel avanzado :P" ] } } ] }, "zh_TW": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### remote tracking branch", "", "在之前的課程中,有一件事情看起來很\"神奇\",那就是 git 知道 `master` branch 是對應到 `o/master` branch。當然這些 branch 有類似的名稱,所以可以大概猜到, local 的 `master` branch 可以對應到 remote 的 `master branch`,但是我們是在兩種情況下可以確定有這個對應關係:", "", "* 在使用 `pull` 的時候,下載 commit 到 `o/master`,並且 `merge` 這些 commit 到 `master` branch,這就表示這個 merge 的目標是決定於這個對應關係。", "* 在使用 `push` 的時候,在 `master` branch 上面的 commit 被 push 到 remote 上面的 `master` branch (它在 local 被表示成 `o/master`),這就表示 push 的目標是決定於 `master` 以及 `o/master` 之間的對應關係。", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Remote tracking", "", "長話短說,我們可以用 branch 上面的 \"remote tracking\" 特性來表示介於 `master` 以及 `o/master` 的對應關係,`master` branch 被設定用來追蹤(track) `o/master`,這就表示對於 `master` branch 來說的話,有一個 merge 的目標以及 push 的目標。", "", "你可能會覺得很奇怪,當你沒有下任何指令去設定的時候,關於 `master` branch 的對應關係是如何被設定的。喔!其實當你 clone 一個 repo 的時候,其實就已經自動幫你做設定了。 ", "", "在做 clone 的時候,git 會針對每一個在 remote 上面的 branch 建立一個 branch (例如 `o/master`),之後它會建立一個 local branch 來追蹤目前在 remote 上面的 active branch,在大部份的情況下,幾乎都是設定 `master` branch。", "", "一旦 git 完成這個動作,你就只會有一個 local branch ,但是你可以看到所有在 remote 上面的不同的 branch,對於 local 和 remote 來說的話,這樣子是最好的!", "", "這也解釋了為什麼當你 clone 的時候可能會看到以下被輸出的指令:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 我可以自己設定嗎?", "", "是的你可以!你可以設定任何的 branch 來 track `o/master`, 假如你真的這麼做的話,那麼該 branch 的 push 及 merge 的目標就會跟 `master` 一樣。這就表示說你可以在 `totallyNotMaster` branch 上面執行 `git push`,並且 push 你的 commit 到 remote 的 `master` branch!", "", "有兩個方式可以設定,第一個就是藉由參考一個 remote branch 來 checkout 一個新的 branch。執行", "", "`git checkout -b totallyNotMaster o/master`", "", "建立一個新的 `totallyNotMaster` branch 並且它會 track `o/master`。" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "說的好多,我們現在來看一個例子!我們會 checkout 一個新的 `foo` branch,而且該 branch 會被用來 track remote 上的 `master` branch。" ], "afterMarkdowns": [ "就像你看到的,當 `o/master` 更新的時候,`foo` branch 也跟著一起被更新,要注意 master 並沒有被更新!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "同樣適用於 `git push`" ], "afterMarkdowns": [ "哇,即使我們的 branch 名稱完全一點關係都沒有,但我們還是 push 了 commit 到 remote 的 `master` branch 上面。" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 方法 #2", "", "另外一個設定 remote tracking 的方法是使用 `git branch -u` 這一個指令,執行", "", "`git branch -u o/master foo`", "", "你就會看到 `foo` branch 被設定成 track `o/master`,如果你現在已經 checkout 到 foo 這個 branch 上面了,你就可以省略掉它:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "我們來看這個快速設定 remote tracking 的方法..." ], "afterMarkdowns": [ "跟之前一樣,就只是一個更加明確的指令,讚啦!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "好!在這個關卡中,我們要 push 我們的 commit 到 remote 上面的 `master` branch,但是我們*不* checkout 到 local 的 `master` branch。因為這是一個進階的課程,所以我會讓你明白其它的東西。:P" ] } } ] }, "zh_CN":{ "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### 远程跟踪分支", "", "在前几节课程中有件事儿挺神奇的,Git 好像知道 `master` 与 `o/master` 是相关的。当然这些分支的名字是相似的,可能会让你觉得是依此将远程分支 master 和本地的 master 分支进行了关联。这种关联在以下两种情况下可以清楚地得到展示:", "", "* pull 操作时, 提交记录会被先下载到 o/master 上,之后再合并到本地的 master 分支。隐含的合并目标由这个关联确定的。", "* push 操作时, 我们把工作从 `master` 推到远程仓库中的 `master` 分支(同时会更新远程分支 `o/master`) 。这个推送的目的地也是由这种关联确定的!", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## 远程跟踪", "", "直接了当地讲,`master` 和 `o/master` 的关联关系就是由分支的“remote tracking”属性决定的。`master` 被设定为跟踪 `o/master` —— 这意味着为 `master` 分支指定了推送的目的地以及拉取后合并的目标。", "", "你可能想知道 `master` 分支上这个属性是怎么被设定的,你并没有用任何命令指定过这个属性呀!好吧, 当你克隆仓库的时候, Git 就自动帮你把这个属性设置好了。", "", "当你克隆时, Git 会为远程仓库中的每个分支在本地仓库中创建一个远程分支(比如 `o/master`)。然后再创建一个跟踪远程仓库中活动分支的本地分支,默认情况下这个本地分支会被命名为 `master`。", "", "克隆完成后,你会得到一个本地分支(如果没有这个本地分支的话,你的目录就是“空白”的),但是可以查看远程仓库中所有的分支(如果你好奇心很强的话)。这样做对于本地仓库和远程仓库来说,都是最佳选择。", "", "这也解释了为什么会在克隆的时候会看到下面的输出:", "", " local branch \"master\" set to track remote branch \"o/master\"", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 我能自己指定这个属性吗?", "", "当然可以啦!你可以让任意分支跟踪 `o/master`, 然后该分支会像 `master` 分支一样得到隐含的 push 目的地以及 merge 的目标。 这意味着你可以在分支 `totallyNotMaster` 上执行 `git push`,将工作推送到远程仓库的 `master` 分支上。", "", "有两种方法设置这个属性,第一种就是通过远程分支检出一个新的分支,执行: ", "", "`git checkout -b totallyNotMaster o/master`", "", "就可以创建一个名为 `totallyNotMaster` 的分支,它跟踪远程分支 `o/master`。" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "闲话少说,咱们先看看演示!我们检出一个名叫 `foo` 的新分支,让其跟踪远程仓库中的 `master`" ], "afterMarkdowns": [ "正如你所看到的, 我们使用了隐含的目标 `o/master` 来更新 `foo` 分支。需要注意的是 master 并未被更新!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "git push 同样适用" ], "afterMarkdowns": [ "我们将一个并不叫 `master` 的分支上的工作推送到了远程仓库中的 `master` 分支上" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 第二种方法", "", "另一种设置远程追踪分支的方法就是使用:`git branch -u` 命令,执行:", "", "`git branch -u o/master foo`", "", "这样 `foo` 就会跟踪 `o/master` 了。如果当前就在 foo 分支上, 还可以省略 foo:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "看看这种方式的实际的效果..." ], "afterMarkdowns": [ "跟之前一样, 但这个命令更明确!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "OK! 本节我们在**不**检出 `master` 分支的情况下将工作推送到的远程仓库中的 `master` 分支上。因为这是高级课程, 就不做过多的提示了! :P" ] } } ] }, "de_DE": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Remote Tracking Branches", "", "In den letzten paar Leveln wirkte es womöglich etwas \"magisch\", dass Git automatisch wusste, dass der Branch `master` irgendwie mit `o/master` verwandt ist. Klar, sie haben ähnliche Namen und daher mag es logisch erscheinen sie in Verbindung zu bringen, aber offensichtlich wird es in zwei Szenarien:", "", "* Beim `pull` werden Commits in `o/master` heruntergeladen und dann per *Merge* in den Branch `master` gebracht. Aus der Verbindung zwischen den beiden Branches leitet sich das Ziel des Merges ab.", "* Beim `push` werden Commits vom `master` auf den `master` auf dem Remote Server geschoben (und die Änderung _danach_ in `o/master` abgebildet). Das *Ziel* des Push wird aus der Verbindung zwischen `master` und `o/master` abgeleitet.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "Langer Rede kurzer Sinn, die Verbindung zwischen `master` und `o/master` ist einfach die Eigenschaft des \"Remote Tracking\" dieser Branches. `master` ist so eingestellt, dass er `o/master` trackt -- das heißt es gibt ein implizites Ziel für `pull` und `push` Operationen auf dem `master` Branch.", "", "Du fragst dich vielleicht wieso diese Eigenschaft auf dem `master` definiert ist, wenn du das doch gar nicht explizit gemacht hast. Naja, beim Clonen eines Repository macht Git das für den `master` automatisch.", "", "Während des Clonens erstellt Git einen Remote Branch für jeden Branch, den es auf dem Remote Server findet (also Branches wie `o/master`); dann erstellt es für den Branch, auf den auf dem entfernten Server `HEAD` zeigt (meistens `master`) automatisch einen lokalen Branch und stellt ihn so ein, dass er sein Gegenstück auf dem Server trackt. Deswegen hast du beim clonen vielleicht schon mal dies gesehen:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Kann ich das auch selbst machen?", "", "Na klar! Du kannst jeden beliebigen Branch so einstellen, dass er `o/master` trackt, und wenn du das tust wird der Branch dieselben impliziten Zielangaben für `push` und `pull` haben wie `master`. Du kannst also `git push` auf dem Branch `absolut_nicht_master` ausführen und deine Commits auf `master` auf dem entfernten Server schieben lassen.", "", "Es gibt zwei Möglichkeiten diese Eigenschaft zu definieren. Die erste ist, einen neuen lokalen Branch von einem Remote Branch auszuchecken. Wenn man", "", " git checkout -b absolut_nicht_master o/master", "", "eingibt, wird ein neuer lokaler Branch namens `absolut_nicht_master` angelegt, der `o/master` trackt." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Genug gequatscht, schauen wir uns eine Demonstration an! Wir checken einen neuen Branch `foo` aus, so dass er `master` auf dem Server trackt." ], "afterMarkdowns": [ "Wie du siehst benutzen wir der implizite Ziel beim `pull` um `foo` zu aktualisieren. Beachte, dass `master` nicht aktualisiert wird." ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Das gilt auch für `git push`." ], "afterMarkdowns": [ "Bämm. Wir haben unsere Commits auf den `master` auf dem Server geschoben, obwohl unser lokaler Branch völlig anders heißt." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Methode 2", "", "Noch eine Möglichkeit um Remote Tracking auf einem Branch einzustellen, ist einfach `git branch -u` zu benutzen. Wenn man", "", " git branch -u o/master foo", "", "eingibt, wir damit der lokale Branch `foo` so eingestellt, dass er `o/master` trackt. Den Namen des lokalen Branch kannst du auch weglassen, falls du ihn eh aktuell ausgecheckt hast:", "", " git branch -u o/master", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Schauen wir uns auch diese Methode noch an ..." ], "afterMarkdowns": [ "Genau wie vorher, nur ein bisschen ausführlicherer Befehl. Schick!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Ok. In diesem Level muss du Commits auf den `master` auf dem Server schieben, *ohne* den lokalen `master` ausgecheckt zu haben. Den Rest kannst du selbst herausfinden, schließlich ist das hier für Fortgeschrittene. :P" ] } } ] }, "ru_RU": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Удалённые-отслеживаемые ветки", "", "Единственное, что могло бы показаться вам \"магией\" в нескольких предыдущих уроках - это то, как git знает, что ветка `master` соответствует `o/master`. Конечно, эти ветки имеют схожие имена и связь между локальной и удалённой ветками `master` выглядит вполне логично, однако, эта связь наглядно продемонстрирована в двух сценариях:", "", "* Во время операции pull коммиты скачиваются в ветку `o/master` и затем *соединяются* в ветку `master`. Подразумеваемая цель слияния определяется исходя из этой связи.", "* Во время операции push наработки из ветки `master` закачиваются на удалённую ветку `master` (которая в локальном представлении выглядит как `o/master`). *Пункт назначения* операции push определяется исходя из связи между `master` и `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Удалённые-отслеживаемые ветки", "", "Короче, связь между `master` и `o/master` объясняется не иначе как свойство \"удалённое отслеживание\" веток. Ветка `master` настроена так, чтобы следить за `o/master` -- это подразумевает наличие источника для merge и пункта назначения для push в контексте ветки `master`.", "", "Вы, должно быть, удивлены, как это отслеживание появилось на ветке `master`, если мы не запускали ни одной специфической команды. На самом деле, когда вы клонируете репозиторий, это слежение включается автоматически.", "", "В процессе клонирования git локально создаёт удалённые ветки для каждой ветки с удалённого репозитория (такие как `o/master`). Затем он - git - создаёт локальные ветки, которые отслеживают текущую, активную ветку на удалённом репозитории. В большинстве случаев - это `master`.", "", "К тому моменту как `git clone` завершит своё выполнение, у вас будет лишь одна локальная ветка (так что вы ещё не сильно перегружены), но, если вам будет интересно, вы сможете увидеть все удалённые ветки (при желании).", "", "Именно это объясняет, почему сразу после клонирования вы видите в консоли надпись:", "", " local branch \"master\" set to track remote branch \"o/master\"", "", " (локальная ветка \"master\" теперь следит за удалённой веткой \"o/master\") " ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### А могу ли я сделать это самостоятельно?", "", "Само собой! Вы можете сказать любой из веток, чтобы она отслеживала `o/master`, и если вы так сделаете, эта ветка будет иметь такой же пункт назначения для push и merge как и локальная ветка `master`. Это значит, что вы можете выполнить `git push`, находясь на ветке `totallyNotMaster`, и все ваши наработки с ветки `totallyNotMaster` будут закачены на ветку `master` удалённого репозитория!", "", "Есть два способа сделать это. Первый - это выполнить checkout для новой ветки, указав удалённую ветку в качестве ссылки. Для этого необходимо выполнить команду", "", "`git checkout -b totallyNotMaster o/master`", "", ", которая создаст новую ветку с именем `totallyNotMaster` и укажет ей следить за `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Хватит болтовни, давайте взглянем на демонстрацию! Мы выполним checkout для новой ветки `foo` и укажем ей, чтобы она отслеживала `master` с удалённого репозитория." ], "afterMarkdowns": [ "Как вы увидели, мы использовали `o/master`, чтобы обновить ветку `foo`. Обратите внимание, как обновился `master`!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Это работает также и для git push" ], "afterMarkdowns": [ "Оп! Мы закачали наши наработки на ветку `master` нашего удалённого репозитория. При том, что наша локальная ветка называется абсолютно по-другому." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Способ №2", "", "Другой способ указать ветке отслеживать удалённую ветку — это просто использовать команду `git branch -u`. Выполнив команду", "", "`git branch -u o/master foo`", "", "вы укажете ветке `foo` следить за `o/master`. А если вы ещё при этом находитесь на ветке `foo`, то её можно не указывать:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Как видно, второй способ указать слежение за веткой намного быстрее..." ], "afterMarkdowns": [ "Словом, всё как и раньше, просто отдельная, специальная команда. Здорово!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Отлично! Для выполнения этого уровня давайте выполним push наших наработок в ветку `master` на удалённом репозитории, при этом *не* скачивая и не создавая ветку `master` локально. Я объясню вам оставшееся чуть позже, т.к. это продвинутый курс :P" ] } } ] }, "ja": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### リモートトラッキングブランチ", "", "もしかしたら直近の幾つかの章で、あることが「魔法」に見えたかもしれません。それは、gitが`master`ブランチは`o/master`に関連していることを知っていたということです。確かにこれらのブランチは似た名前を持っていて、それは、リモートの`master`ブランチとローカルの`master`ブランチを繋ぐ論理的な意味を成すかもしれません。しかし、リモートトラッキングの関係が、次のような2つの手順を明確にしています:", "", "* プルの実行時は、コミットを`o/master`上にダウンロードし、`master`ブランチにそれを*マージ*します。マージの暗黙のターゲットは、リモートトラッキングの関係によって決められます。", "* プッシュの実行時は、`master`ブランチの作業はリモートの`master`ブランチ(ローカルでは`o/master`によって表現されています)にプッシュされます。プッシュ動作の決定は、`master`と`o/master`のリモートトラッキングな関係から決定されます。", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## リモートトラッキング", "", "かいつまんでは、`master`と`o/master`の関係は、単にそれぞれのブランチの\"remote traking\"というプロパティによって説召されます。`master`ブランチには`o/master`を追跡しているというように設定されているのです。これは、`master`ブランチのための暗黙のプッシュ先と暗黙の取り込み先が存在することを意味します。", "", "あなたは特に何も指定せずにコマンドを走らせていたのに、`master`ブランチにこのプロパティが設定されていたことに疑問を持つかもしれません。そう、gitによってリポジトリを複製した時、gitは実はこのプロパティを自動的に設定してくれるのです。", "", "クローンしている間、gitはリモートブランチをリモートのブランチ全てに対して作ります(例えば、`o/master`のような感じです)。その後、現在アクティブなブランチを追跡するローカルブランチを作成します。多くの場合それは`master`ブランチになります。", "", "gitのクローンが完了した時、あなたの手にはたった一つだけローカルブランチがあります(なので、閉口しないでも大丈夫です)。しかし、あなたは全てのリモートのブランチ同士の違いを見ることができるのです(もし、あなたがそれについて非常に好奇心旺盛であるときはいつでもね!)。これは、両方の世界にとってベストです!", "", "これはクローン中に次のようなコマンド出力が表示されることも説明します:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 私は自分でトラッキングを設定できますか?", "", "はい、できます!あなたは、全てのブランチについて`o/master`との追跡を設定でき、もしそうした時は、同じ暗黙のプッシュ先と取り込み先を`master`として設定します。これは、例えば`tottallyNotMaster`という名前のブランチで`git push`を走らせ、作業をリモートの`master`ブランチにプッシュするといったことができるということを意味しています!", "", "このプロパティを設定するには2つの方法があります。一つ目は、リモートブランチのリファレンスを使用して新しいブランチをチェックアウトするというものです。例えば次のコマンドを走らせてます", "", "`git checkout -b totallyNotMaster o/master`", "", "これは`totallyNotMaster`という名前のブランチを新しく作り、`o/master`への追跡プロパティを設定します。" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "説明は十分でしょう、デモを見ていきましょう!`foo`という名前の新しいブランチをチェックアウトし、リモートの`master`への追跡プロパティを設定してみます。" ], "afterMarkdowns": [ "私たちは暗黙の取り込み先である`o/master`を使って、`foo`ブランチを更新します。`master`は更新されないことに注意してください!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "これは`git push`にも適用されます" ], "afterMarkdowns": [ "わーお。全く違う名前がつけられているブランチですが、リモートの`master`に私たちの作業をプッシュできました。" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 二番目の方法", "", "ブランチのリモートトラッキングを設定するもう一つの方法は、単に`git branch -u`オプションを使うというものです。例えば以下のようにです", "", "`git branch -u o/master foo`", "", "これは、`foo`ブランチを`o/master`を追跡するように設定します。もし、`foo`が現在チェックアウトしているブランチだった場合、以下のように省略することができます:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "実際に素早く、もう一つの方法でリモートトラッキングを指定する様子を見てみましょう..." ], "afterMarkdowns": [ "前回と一緒で、より明示的なコマンドですね。とてもいい感じです!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "OK!このレベルでは、ローカルで`master`にチェックアウトしていない状態で、リモートの`master`ブランチに作業をプッシュしてみましょう。これは高度な課題ですから、理解するのに少し時間をおく必要があると言っておきます:P" ] } } ] }, "ko": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### 원격-추적 브랜치", "", "지난 몇개의 레슨에서 \"마법\"처럼 보일 수 있는게 하나 있었는데, git이 `master`브랜치가 `o/master`와 연관 되어있는걸 안다는 것입니다. 물론 이 두 브랜치가 이름이 비슷하기 때문에 로컬 `master`브랜치가 원격의 `master`브랜치와 연결 되어있다고 하자면 어찌 논리적으로 말이 되긴 합니다만..., 이 연결은 두가지 시나리오를 통해 뚜렷하게 확인이 됩니다:", "", "* pull 작업을 하는 도중, 커밋들은 `o/master`에 내려받아 지고 그다음 `master` 브랜치로 *merge*됩니다. merge에서 내재된 타겟은 이 연결에서 결정합니다.", "* push 작업을 하는 도중, `master` 브랜치의 작업은 원격의 `master`브랜치(로컬에서 `o/master`로 표현되는)로 push 됩니다. push의 *목적지*는 master와 `o/master`의 연결에서 결정됩니다.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## 원격 추적", "", "간단히 말해서, 이 `master`와 `o/master`사이의 연결은 브랜치의 \"원격 추적\" 속성을 통해 간단하게 설명됩니다. `master`브랜치는 `o/master`브랜치를 추적하도록 설정되어 있습니다 -- 이것은 `master`가 merge와 push할 내재된 목적지가 생겼다는 뜻 입니다.", "", "여러분은 어떻게 이 속성을 지정해주는 그 어떤 명령어 없이 `master` 브랜치에 설정되있는지 궁금할것 입니다. 사실, 여러분이 git으로 저장소를 clone할때 이 속성이 여러분을 위해 자동으로 설정 됩니다.", "", "clone을 진행하면서 git은 원격 저장소에있는 모든 브랜치에 대해 로컬에 원격 브랜치를 생성합니다(`o/master`같은것들 말이죠). 그 후 원격 저장소에서 현재 active한 브랜치를 추적하는 로컬 브랜치를 생성합니다, 대부분의 경우 `master`가 됩니다.", "", "git clone이 완료되면, 여러분은 오로지 하나의 로컬 브랜치를 가지게 됩니다(부담스럽지 않도록) 물론 원격 저장소에있는 여러 다른 브랜치도 여전히 확인할 수 있습니다(호기심이 많으시다면). 로컬, 원격 저장소 양쪽에 최적화 되있는거죠!", "", "여러분이 clone을 할 때 아래의 명령어를 볼 수도 있는 이유입니다:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 내 스스로 지정할수도 있나요?", "", "당연하죠! 여러분은 아무 임의의 브랜치를 `o/master`를 추적하게 만들 수 있습니다. 이렇게 하면 이 브랜치 또한 내재된 push,merge 목적지를 `master`로 할 것입니다. 여러분은 이제 `totallyNotMaster`라는 브랜치에서 `git push`를 수행해서 원격 저장소의 브랜치 `master`로 작업을 push할 수 있습니다!", "", "이 속성을 설정하는데에는 두가지 방법이 있습니다. 첫 번째는 지정한 원격 브랜치를 참조해서 새로운 브랜치를 생성하여 checkout 하는 방법 입니다. 다음을 실행하면", "", "`git checkout -b totallyNotMaster o/master`", "", "`totallyNotMaster`라는 이름의 새 브랜치를 생성하고 `o/master`를 추적하게 설정합니다." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "설명은 충분히 한듯 합니다. 직접 확인해 봅시다! `foo`라는 이름의 새 브랜치를 checkout하고 이것을 원격 저장소의 `master`를 추적하도록 설정하겠습니다." ], "afterMarkdowns": [ "보이듯이, 우리는 `o/master`를 `foo` 브랜치를 갱신하기 위한 내재된 merge 타겟으로 사용하고 있습니다. master가 갱신되지 않는다는것을 눈치챘죠?" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "git push에도 적용이 됩니다" ], "afterMarkdowns": [ "Boom. 브랜치의 이름을 전혀 다른것으로 지었는데도 불구하고 우리 작업이 `master`로 push 되었습니다." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### 방법 #2", "", "브랜치에 원격 추적 설정을 하는 또 다른 방법으로는 간단하게 `git branch -u` 옵션을 사용하는 방법이 있습니다. 다음을 실행하면", "", "`git branch -u o/master foo`", "", "가 `foo` 브랜치가 `o/master`를 추적하도록 설정합니다. 만약 `foo`가 현재 작업하고 있는 브랜치라면 생략해도 됩니다:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "자 이 다른 방법이 작동하는 모습을 확인해 봅시다..." ], "afterMarkdowns": [ "이전과 같습니다, 좀 더 분명하게 알 수 있느 명령어죠. 좋아요!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ " 이번 레벨에서는 로컬의 `master`브랜치가 아닌 다른 브랜치에서 작업을 원격 저장소의 `master`브랜치로 push하세요. 고급 과정이니 더 길게 설명하지는 않을게요 :p" ] } } ] }, "uk": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Гілки віддаленого стеження", "", "Одна з речей в попередніх уроках, яка могла виглядати, наче \"магія\" -- це те, що гіт якось знає, що локальна гілка `master` відповідає віддаленій `o/master`. Звичайно, ці гілки мають схожі назви, і виглядає логічним співставити віддалену гілку `master` з локальною `master`, однак цей зв'язок найкраще видно в двох випадках:", "", "* Під час операції `pull`, коміти попадають в `o/master`, а вже потім *мерджаться* в локальний `master`. Гілка в яку відбудеться мердж якраз і визначається цим зв'язком.", "* Під час операції `push`, коміти з гілки `master` переносяться у віддалений `master` (який локально представлений як `o/master`). *Гілка-призначення* для `push` визначена зв'язком між `master` і `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Гілки віддаленого стеження", "", "В двох словах, цей зв'язок між `master` та `o/master` і є тим \"віддаленим стеженням\", визначеним для гілки. Гілка `master` налаштована стежити за `o/master` -- це визначає неявну ціль для мерджу і неявне призначення під час операції `push` для гілки `master`.", "", "Ви можете подумати, а як же такий зв'язок було встановлено, якщо я не виконував жодної команди? Ну, коли гіт клонує репозиторій, він встановлює цей зв'язок автоматично.", "", "Під час клонування гіт створює гілки для стеження за кожною гілкою віддаленого репозиторію (напр. `o/master`). Потім він створює локальну гілку, що пов'язана і стежить за активною гілкою у віддаленому репозиторії, яка в більшості випадків називається `master`.", "", "Після закінчення клонування у вас буде лише одна локальна гілка (щоб не перевантажувати) але ви можете переглянути всі віддалені гілки (якщо буде цікаво). Такий собі розумний компроміс!", "", "Це пояснює чому ви бачите наступне повідомлення під час клонування:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### А можу я сам вибирати?", "", "Так, можеш! Ти можеш вибрати довільну гілку, яка слідкуватиме за `o/master`, і тоді для цієї гілки `push` та `merge` автоматично працюватимуть з `master`. Це означає, що виконання `git push` в гілці з назвою `totallyNotMaster` (зовсім не master) може зберегти локальні коміти у віддалену гілку `master`!", "", "Є два шляхи встановити такий зв'язок. Перший - створити нову гілку з явним вказанням зв'язку (за ким слідкувати). Виконання", "", "`git checkout -b totallyNotMaster o/master`", "", "створить гілку `totallyNotMaster`, яка слідкує за `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Досить розмов, подивімось в дії! Створімо нову гілку `foo` і змусьмо її слідкувати за віддаленою гілкою `master`." ], "afterMarkdowns": [ "Як видно з результату, при оновленні `foo` було використано автоматичний зв'язок з `o/master` під час операції `merge`. Зверніть увагу, `master` не було оновлено!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Це також справджується і для git push" ], "afterMarkdowns": [ "Ка-бум!. Ми запушили наші зміни у віддалений `master`, незважаючи на те, що локальна гілка називалась зовсім по-іншому." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Спосіб №2", "", "Інший спосіб вказати за якою віддаленою гілкою слідкувати -- просто використовувати опцію `git branch -u`. Виконання", "", "`git branch -u o/master foo`", "", "заставить гілку `foo` слідкувати за `o/master`. Якщо `foo` є поточною гілкою, її можна навіть не вказувати:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Подивімось на цей спосіб швидко вказати віддалену гілку для відслідковування..." ], "afterMarkdowns": [ "Як і перший спосіб, але своя окрема команда." ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Гаразд! На цьому рівні збережімо свою роботу у віддалену гілку `master` *без* переходу на локальну `master`. Про решту здогадайся сам, раз ти вже дойшов до цього рівня :P" ] } } ] }, "vi": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Theo dõi nhánh từ xa", "", "Trong những bài học vừa qua có một điểu có vẻ như là \"ma thuật\" đó là git lại biết được nhánh `master` có liên kết đến nhánh `o/master`. Đúng là chúng có tên tương tự và nhánh `master` ở kho chứa từ xa có kết nối đến nhánh `master` ở kho chứa địa phương có vẻ như là hợp lý, nhưng kết nối này được thể hiện rõ ràng trong 2 trường hợp:", "", "* Trong quá trình thực hiện thao tác kéo, các commit được tải xuống nhánh `o/master` và sau đó *hợp nhất* vào nhánh `master`. Mục tiêu hợp nhất dược ngầm định bởi kết nối này.", "* Trong quá trình thực hiện thao tác đẩy, thảnh quả trên nhánh `master` được đẩy lên nhánh `master` từ xa (sau dó được biểu thị bằng nhánh `o/master` ở kho chứa địa phương). *Đích đến* của lệnh đẩy được xác định bằng kết nối giữa nhánh `master` và nhánh `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Theo dõi từ xa", "", "Nói tóm lại, kết nối giữa nhánh `master` và nhánh `o/master` đơn giản được giải thích bằng thuộc tính \"theo dõi từ xa\" (\"remote tracking\") của các nhánh. Nhánh `master` được thiết lập để theo dõi nhánh `o/master` -- Điều này có nghĩa là nhánh `master` được chỉ định đích của lệnh đẩy và mục tiêu hợp nhất sau khi kéo.", "", "Có thể bạn sẽ thắc mắc rằng tại sao thuộc tính này được thiết lập lên nhánh `master` trong khi bạn chẳng hề chạy một câu lệnh nào chỉ định điều này. Chà, khi bạn dùng git để nhân bản kho chứa, thì thuộc tính này đã được tự động thiết lập cho bạn rồi. ", "", "Trong quá trình thực hiện nhân bản, git tạo ra nhánh từ xa trên kho chứa địa phương cho tất cả các nhánh trên kho chứa từ xa (các nhánh như `o/master`). Sau đó nó sẽ tạo một nhánh địa phương theo dõi nhánh hoạt dộng hiện tại của kho chứa từ xa, đa phần các trường hợp là nhánh `master`.", "", "Một khi quá trình nhân bản hoàn thành, bạn sẽ chỉ có một nhánh địa phương (để bạn không thấy quá tải) nhưng bạn có thể thấy tất cả các nhánh trên kho chứa từ xa (phòng trường hợp bạn thấy tò mò). Đây là phương án tối ưu!", "", "Điều này giải thích việc sau khi nhân bản bạn có thể thấy dòng lệnh sau xuất hiện:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Tôi có thể tự chỉ định chứ?", "", "Tất nhiên là được chứ! Bạn có thế khiến bất kỳ nhánh nào theo dõi nhánh `o/master`, và nếu bạn làm vậy, nhánh đó sẽ được được chỉ định đích của lệnh đẩy và mục tiêu hợp nhất giống như nhánh `master`. Điều này có nghĩa là bạn có thể chạy lệnh `git push` trên nhánh có tên là `totallyNotMaster` và thành quả của bạn sẽ được đẩy lên nhánh `master` ở kho chứa từ xa!", "", "Có 2 cách để thiết lập thuộc tính này. Cách đầu tiên là chuyển sang một nhánh mới từ một nhánh từ xa bằng cách thực hiện", "", "`git checkout -b totallyNotMaster o/master`", "", "Tạo ra một nhánh mới `totallyNotMaster` và thiết lập cho nó theo dõi nhánh `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Nói vậy là đủ rồi, hãy xem thử một mô tả nào! Ta sẽ chuyển sang một nhánh tên là `foo` và thiết lập cho nó theo dõi nhánh `master` trên kho chứa từ xa." ], "afterMarkdowns": [ "Như bạn đã thấy, chúng tôi đã sử dụng mục tiêu ngầm `o / master` để cập nhật nhánh` foo. Để ý rằng nhánh `master` không được cập nhật!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Điểu này cũng được áp dụng cho lệnh git push" ], "afterMarkdowns": [ "Bùùm. Ta đã đẩy thành quả lên nhánh `master` ở kho chứa tù xa mặc dù nhánh của ta có tên hoàn toàn khác biệt" ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Cách thứ #2", "", "Cách khác để thiết lập theo dõi trên một nhánh đó là đơn giản sử dụng lệnh `git branch -u`. Thực hiện", "", "`git branch -u o/master foo`", "", "sẽ thiết lập nhánh `foo` theo dõi nhánh `o/master`. Nếu nhánh `foo` đang được `HEAD` trỏ tới bạn có thể bỏ tham số này:", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Hãy xem thử cách khác để thiết lập theo dõi..." ], "afterMarkdowns": [ "Y hệt như trước, nhưng lệnh này biểu hiện rõ ràng hơn. Tuyệt!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Được rồi! Ở cấp độ này hãy để thành quả lên nhánh `master` trên kho lưu trữ từ xa mà không chuyển sang nhánh `master` tại kho địa phương. Hãy tự tìm ra cách nhé, giờ là khóa học nâng cao rồi :P" ] } } ] }, "sl_SI": { "childViews": [ { "type": "ModalAlert", "options": { "markdowns": [ "### Sledenje oddaljenih branchev", "", "Stvar, ki se je morda zdela \"čarobna\" v zadnjih lekcijah je, da je git vedel, da je `master` branch povezan z `o/master`. Seveda imata brancha podobno ime in morda deluje logično, da se poveže `master` branch na oddaljenem repotu z lokalnim `master` branchem, toda ta povezava je jasno predstavljena v dveh scenarijih:", "", "* Med pull operacijo so commiti preneseni na `o/master` in nato *zmergani* v `master` branch. Implicirana tarča merga je določena iz te povezave.", "* Med push operacijo je delo iz `master` brancha naloženo na oddaljen `master` branch (ki je bil prej predstavljen kot `o/master` lokalno). *Destinacija* pusha je določena iz povezave med `master` in `o/master`.", "" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "## Sledenje oddaljenega repota", "", "Če povzamem, ta povezava med `master` in `o/master` je preprosto razložena z lastnostnjo \"oddaljenega sledenja\" branchev. `master` branch je nastavljen, da sledi `o/master` -- to pomeni, da obstaja impliciran cilj merga in impliciran cilj pusha za `master` branch.", "", "Morda se sprašuješ, kako se je nastavila ta lastnost na `master` branchu, čeprav nisi izvedel nobenega ukaza za to. No, ko kloniraš repo z gitom, je ta lastnost v bistvu nastavljena zate avtomatično. ", "", "Med kloniranjem git ustvari oddaljen branch za vsak branch na oddaljenem repotu (branchi kot `o/master`). Nato ustvari lokalen branch, ki sledi trenutno aktivnemu branchu na oddaljenem repotu, ki je v večini primerov `master`.", "", "Ko git clone zaključi, imaš samo en lokalen branch (da nisi zasipan), ampak lahko vidiš vse različne branche na oddaljenem repotu (če si zelo radoveden). Najboljše iz obeh svetov!", "", "To tudi razloži, zakaj lahko vidiš sledeč izpis ukaza med kloniranjem:", "", " local branch \"master\" set to track remote branch \"o/master\"" ] } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Ali ga lahko določim sam?", "", "Seveda se da! Narediš lahko, da bilokateri branch sledi `o/master`. V tem primeru bo imel ta branch enak impliciran cilj za push in merge kot `master`. To pomeni, da lahko poženeš `git push` na branchu poimenovanem `splohNiMaster` in pushas svoje delo na `master` branch na oddaljenem repotu!", "", "Obstajata dva načina, da nastaviš to lastnost. Prvi je, da checkoutaš nov branch z uporabo oddaljenega brancha kot določeno referenca. Izvedba", "", "`git checkout -b splohNiMaster o/master`", "", "Ustvari nov branch imenovan `splohNiMaster` in nastavi, da sledi `o/master`." ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Dovolj besedičenja, poglejmo primer! Checkoutali bomo nov branch poimenovan `foo` in ga nastavili, da sledi `master` na oddaljenem repotu." ], "afterMarkdowns": [ "Kot lahko vidiš, smo uporabili impliciran cilj mergea `o/master`, da posodobi `foo` branch. Opazi, kako se master ne posodobi!!" ], "command": "git checkout -b foo o/master; git pull", "beforeCommand": "git clone; git fakeTeamwork" } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "To velja tudi za git push" ], "afterMarkdowns": [ "Boom. Naše delo smo naložili na `master` na oddaljenem repotu, čeprav je ime našega brancha nekaj povsem drugega." ], "command": "git checkout -b foo o/master; git commit; git push", "beforeCommand": "git clone" } }, { "type": "ModalAlert", "options": { "markdowns": [ "### Način #2", "", "Še en način, da se nastavi oddaljeno sledenje na branchu, je, da se uporabi `git branch -u` opcija. Izvedba", "", "`git branch -u o/master foo`", "", "bo nastavila `foo` branch, da sledi `o/master`. Če je `foo` trenutno checkoutan, ga lahko celo izpustiš", "", "`git branch -u o/master`", "" ] } }, { "type": "GitDemonstrationView", "options": { "beforeMarkdowns": [ "Poglejmo si na hitro še ta drug način določanja oddaljenega sledenja ..." ], "afterMarkdowns": [ "Enako kot prej, le bolj natančno. Lepa!" ], "command": "git branch -u o/master foo; git commit; git push", "beforeCommand": "git clone; git checkout -b foo" } }, { "type": "ModalAlert", "options": { "markdowns": [ "Ok! Za to stopnjo pushajmo delo na `master` branch na oddaljenem repotu, medtem ko lokalno *nismo* na `masterju`. Ostalo prepustim tebi, ker je to vseeno napredna stopnja :P" ] } } ] } } };
/* ******************************************************************************************* * * * Plese read the following tutorial before implementing tasks: * * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Numbers_and_dates * * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number * * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math * * * ******************************************************************************************* */ /** * Returns an area of a rectangle given by width and heigth. * * @param {numder} width * @param {number} height * @return {number} * * @example: * 5, 10 => 50 * 5, 5 => 25 */ function getRectangleArea(width, height) { return width * height; } /** * Returns a circumference of circle given by radius. * * @param {number} radius * @return {number} * * @example: * 5 => 31.41592653589793 * 3.14 => 19.729201864543903 * 0 => 0 */ function getCicleCircumference(radius) { return 2 * Math.PI * radius; } /** * Returns an average of two given numbers. * * @param {numder} value1 * @param {number} value2 * @return {number} * * @example: * 5, 5 => 5 * 10, 0 => 5 * -3, 3 => 0 */ function getAverage(value1, value2) { const avg = (value1 + value2) / 2; return avg === Infinity ? Number.MAX_VALUE : avg; } /** * Returns a distance beetween two points by cartesian coordinates. * * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * * @return {number} * * @example: * (0,0) (0,1) => 1 * (0,0) (1,0) => 1 * (-5,0) (10,-10) => 18.027756377319946 */ function getDistanceBetweenPoints(x1, y1, x2, y2) { return Math.hypot(x2 - x1, y2 - y1); } /** * Returns a root of linear equation a*x + b = 0 given by coefficients a and b. * * @param {number} a * @param {number} b * @return {number} * * @example: * 5*x - 10 = 0 => 2 * x + 8 = 0 => -8 * 5*x = 0 => 0 */ function getLinearEquationRoot(a, b) { return -b / a; } /** * Returns an angle (in radians) between two vectors given by xi and yi, * coordinates in Cartesian plane. * See details https://en.wikipedia.org/wiki/Euclidean_vector#Representations * * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @return {number} * * @example: * (1,0) (0,1) => π/2 * (0,1) (0,-1) => π * (0,-1) (1,0) => π/2 * (0,1) (0,1) => 0 * (0,1) (1,2) => 0 */ function getAngleBetweenVectors(x1, y1, x2, y2) { const angle = Math.atan2(y2, x2) - Math.atan2(y1, x1); return angle < 0 ? -angle : angle; } /** * Returns a last digit of a integer number. * * @param {number} value * @return {number} * * @example: * 100 => 0 * 37 => 7 * 5 => 5 * 0 => 0 */ function getLastDigit(value) { const valueStr = value.toString(); return parseInt(valueStr.charAt(valueStr.length - 1), 10); } /** * Returns a number by given string representation. * * @param {string} value * @return {number} * * @example: * '100' => 100 * '37' => 37 * '-525.5' => -525.5 */ function parseNumberFromString(value) { return parseFloat(value, 10); } /** * Returns a diagonal length of the rectangular parallelepiped given by its sides a,b,c. * * @param {number} a * @param {number} b * @param {number} c * @return {number} * * @example: * 1,1,1 => 1.7320508075688772 * 3,3,3 => 5.196152422706632 * 1,2,3 => 3.741657386773941 */ function getParallelipidedDiagonal(a, b, c) { return Math.sqrt((a ** 2) + (b ** 2) + (c ** 2)); } /** * Returns the number rounded to specified power of 10. * * @param {number} num * @param {number} pow * @return {number} * * @example: * 1234, 0 => 1234 * 1234, 1 => 1230 * 1234, 2 => 1200 * 1234, 3 => 1000 * 1678, 0 => 1678 * 1678, 1 => 1680 * 1678, 2 => 1700 * 1678, 3 => 2000 */ function roundToPowerOfTen(num, pow) { return Math.round(num / (10 ** pow)) * (10 ** pow); } /** * Returns true is the number is prime; otherwise false. * See: https://en.wikipedia.org/wiki/Primality_test * * @param {number} n * @return {bool} * * @example: * 4 => false * 5 => true * 6 => false * 7 => true * 11 => true * 12 => false * 16 => false * 17 => true */ function isPrime(n) { if (n <= 3) return true; if (n % 2 === 0) return false; // if divisible by any number <= Math.sqrt(n) return false; for (let i = 2; i < n; i += 1) { if (n % i === 0) return false; } return true; } /** * Tries to convert value to number and returns it if conversion was successfull; * otherwise returns default value passed as a second argument. * * @param {any} value * @param {any} def * @return {number} * * @example * toNumber(null, 0) => 0 * toNumber('test', 0) => 0 * toNumber('1', 0) => 1 * toNumber(42, 0) => 42 * toNumber(new Number(42), 0) => 42 */ function toNumber(value, def) { const convert = parseInt(value, 10); return (Number.isNaN(convert) || typeof convert !== 'number') ? def : convert; } module.exports = { getRectangleArea, getCicleCircumference, getAverage, getDistanceBetweenPoints, getLinearEquationRoot, getAngleBetweenVectors, getLastDigit, parseNumberFromString, getParallelipidedDiagonal, roundToPowerOfTen, isPrime, toNumber, };
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import warning from 'warning'; import { settings } from 'carbon-components'; import uid from '../../tools/uniqueId'; const { prefix } = settings; class RadioButton extends React.Component { static propTypes = { /** * Specify whether the <RadioButton> is currently checked */ checked: PropTypes.bool, /** * Provide an optional className to be applied to the containing node */ className: PropTypes.string, /** * Specify whether the <RadioButton> should be checked by default */ defaultChecked: PropTypes.bool, /** * Specify whether the control is disabled */ disabled: PropTypes.bool, /** * Provide a unique id for the underlying <input> node */ id: PropTypes.string, /** * Provide label text to be read by screen readers when interacting with the * control */ labelText: PropTypes.node.isRequired, /** * Specify whether the label should be hidden, or not */ hideLabel: PropTypes.bool, /** * Provide where label text should be placed * NOTE: `top`/`bottom` are deprecated */ labelPosition: PropTypes.oneOf(['top', 'right', 'bottom', 'left']), /** * Provide a name for the underlying <input> node */ name: PropTypes.string, /** * Provide a handler that is invoked when a user clicks on the control */ onClick: PropTypes.func, /** * Provide an optional `onChange` hook that is called each time the value of * the underlying <input> changes */ onChange: PropTypes.func, /** * Specify the value of the <RadioButton> */ value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, }; static defaultProps = { labelText: '', labelPosition: 'right', onChange: () => {}, value: '', }; uid = this.props.id || uid(); handleChange = evt => { this.props.onChange(this.props.value, this.props.name, evt); }; render() { const { className, labelText, labelPosition, innerRef: ref, hideLabel, ...other } = this.props; if (__DEV__) { warning( labelPosition !== 'top' && labelPosition !== 'bottom', '`top`/`bottom` values for `labelPosition` property in the `RadioButton` component is deprecated ' + 'and being removed in the next release of `carbon-components-react`.' ); } const innerLabelClasses = classNames({ [`${prefix}--visually-hidden`]: hideLabel, }); const wrapperClasses = classNames( className, `${prefix}--radio-button-wrapper`, { [`${prefix}--radio-button-wrapper--label-${labelPosition}`]: labelPosition !== 'right', } ); return ( <div className={wrapperClasses}> <input {...other} type="radio" className={`${prefix}--radio-button`} onChange={this.handleChange} id={this.uid} ref={ref} /> <label htmlFor={this.uid} className={`${prefix}--radio-button__label`} aria-label={labelText}> <span className={`${prefix}--radio-button__appearance`} /> <span className={innerLabelClasses}>{labelText}</span> </label> </div> ); } } export default (() => { const forwardRef = (props, ref) => <RadioButton {...props} innerRef={ref} />; forwardRef.displayName = 'RadioButton'; return React.forwardRef(forwardRef); })();
/** * @author ohad * Created on 31.01.2017 */ (function () { 'use strict'; angular.module('BrainPal.theme.components') .directive('widgets', widgets); /** @ngInject */ function widgets() { return { restrict : 'EA', scope : { ngModel: '=' }, templateUrl: 'app/theme/components/widgets/widgets.html', replace : true }; } })();
import { radiusDefault } from 'reactackle-core'; export default { borderWidth: 1, borderRadius: radiusDefault, color: { default: 'currentColor', light: 'rgba(255, 255, 255, 0.54)', dark: 'rgba(0, 0, 0, 0.54)', }, size: { small: { borderWidth: 1, height: 18, width: null, imgSize: null, borderedImgSize: null, roundedImgSize: null, }, normal: { borderWidth: 1, height: 24, width: null, imgSize: null, borderedImgSize: null, roundedImgSize: null, }, large: { borderWidth: 2, height: 36, width: null, imgSize: null, borderedImgSize: null, roundedImgSize: null, }, xlarge: { borderWidth: 2, height: 48, width: null, imgSize: null, borderedImgSize: null, roundedImgSize: null, }, }, };
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v19.1.2 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); var component_1 = require("../../widgets/component"); var context_1 = require("../../context/context"); var gridOptionsWrapper_1 = require("../../gridOptionsWrapper"); var PopupEditorWrapper = /** @class */ (function (_super) { __extends(PopupEditorWrapper, _super); function PopupEditorWrapper(cellEditor) { var _this = _super.call(this, "<div class=\"ag-popup-editor\" tabindex=\"-1\"/>") || this; _this.getGuiCalledOnChild = false; _this.cellEditor = cellEditor; return _this; } PopupEditorWrapper.prototype.onKeyDown = function (event) { this.params.onKeyDown(event); }; PopupEditorWrapper.prototype.getGui = function () { // we call getGui() on child here (rather than in the constructor) // as we should wait for 'init' to be called on child first. if (!this.getGuiCalledOnChild) { this.appendChild(this.cellEditor.getGui()); this.getGuiCalledOnChild = true; } return _super.prototype.getGui.call(this); }; PopupEditorWrapper.prototype.init = function (params) { var _this = this; this.params = params; this.gridOptionsWrapper.setDomData(this.getGui(), PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER, true); this.addDestroyFunc(function () { if (_this.cellEditor.destroy) { _this.cellEditor.destroy(); } }); this.addDestroyableEventListener( // this needs to be 'super' and not 'this' as if we call 'this', // it ends up called 'getGui()' on the child before 'init' was called, // which is not good _super.prototype.getGui.call(this), 'keydown', this.onKeyDown.bind(this)); }; PopupEditorWrapper.prototype.afterGuiAttached = function () { if (this.cellEditor.afterGuiAttached) { this.cellEditor.afterGuiAttached(); } }; PopupEditorWrapper.prototype.getValue = function () { return this.cellEditor.getValue(); }; PopupEditorWrapper.prototype.isPopup = function () { return true; }; PopupEditorWrapper.prototype.isCancelBeforeStart = function () { if (this.cellEditor.isCancelBeforeStart) { return this.cellEditor.isCancelBeforeStart(); } }; PopupEditorWrapper.prototype.isCancelAfterEnd = function () { if (this.cellEditor.isCancelAfterEnd) { return this.cellEditor.isCancelAfterEnd(); } }; PopupEditorWrapper.prototype.focusIn = function () { if (this.cellEditor.focusIn) { this.cellEditor.focusIn(); } }; PopupEditorWrapper.prototype.focusOut = function () { if (this.cellEditor.focusOut) { this.cellEditor.focusOut(); } }; PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER = 'popupEditorWrapper'; __decorate([ context_1.Autowired('gridOptionsWrapper'), __metadata("design:type", gridOptionsWrapper_1.GridOptionsWrapper) ], PopupEditorWrapper.prototype, "gridOptionsWrapper", void 0); return PopupEditorWrapper; }(component_1.Component)); exports.PopupEditorWrapper = PopupEditorWrapper;
import DesignSystem, { pxTo, toPx, txPx, parseUnit, themed } from '../design-system'; describe('DesignSystem', () => { let ds; it('constructor should throw when not given a token', () => { expect(() => { ds = new DesignSystem(); }).toThrow(); }); it('should create an instance', () => { ds = new DesignSystem({}); expect(ds).toBeDefined(); }); describe('class', () => { const token = { breakpoints: ['40rem', '60rem', '100rem', '120rem'], colors: { accents: { base: ['#123456'], }, neutrals: { base: ['#333'], }, black: { base: '#101010', }, }, fonts: { system: 'systemui', }, fontSizes: ['12px', '14px', '16px'], fontWeights: { light: 300, regular: 400, }, lineHeights: [0.7, 1.4, 2.8], radii: [0, 2, 4], space: [0, 4, 8, 16, 32], }; beforeAll(() => { ds = new DesignSystem(token, 'base'); }); it('should return undefined if key does not exist', () => { expect(DesignSystem.getValueFromToken(ds, 'styledVariants.NonExistent')).toBeUndefined(); }); it('should return the design system token', () => { expect(ds.toJSON()).toEqual({ ...token, variant: 'base' }); }); it('should get breakpoints property', () => { expect(ds.breakpoints).toEqual(token.breakpoints); }); it('should get colors property', () => { expect(ds.colors).toEqual(token.colors); }); it('should get the color "black"', () => { expect(ds.getColor('black')).toBe(token.colors.black.base); expect(ds.getColor('black.base')).toBe(token.colors.black.base); }); it('should get the first color in "accents"', () => { expect(ds.getColor('accents.base.0', 'base')).toBe(token.colors.accents.base[0]); expect(ds.getColor('accents.base.0')).toBe(token.colors.accents.base[0]); expect(ds.getColor('accents.0')).toBe(token.colors.accents.base[0]); }); it('should get fonts property', () => { expect(ds.fonts).toEqual(token.fonts); }); it('should get fontSizes property', () => { expect(ds.fontSizes).toEqual(token.fontSizes); }); it('should get fontWeights property', () => { expect(ds.fontWeights).toEqual(token.fontWeights); }); it('should get lineHeights property', () => { expect(ds.lineHeights).toEqual(token.lineHeights); }); it('should get radii property', () => { expect(ds.radii).toEqual(token.radii); }); it('should get space property', () => { expect(ds.space).toEqual(token.space); }); it('should get variant property', () => { expect(ds.variant).toEqual('base'); }); it('should set variant property', () => { expect(() => { ds.variant = undefined; }).toThrow(); ds.variant = 'dark'; expect(ds.variant).toEqual('dark'); }); describe('helpers', () => { it('should convert px to rem unit', () => { const expected = '2rem'; const value = pxTo('32px'); expect(value).toBe(expected); }); it('should convert px to em unit', () => { let expected = '2rem'; let value = pxTo('32px'); expect(value).toBe(expected); expected = '2em'; value = pxTo('32px', { unit: 'em' }); expect(value).toBe(expected); }); it('should convert to px unit', () => { const expected = '32px'; let value = toPx('2rem'); expect(value).toBe(expected); value = toPx(4, { base: 8 }); expect(value).toBe(expected); value = toPx('2rem', { base: 16 }); expect(value).toBe(expected); }); it('should transform value to px unit', () => { const expected = '32px'; const value = txPx(32); expect(value).toBe(expected); }); it('should parse unit', () => { expect(parseUnit('2')).toEqual([2, '']); expect(parseUnit('2em')).toEqual([2, 'em']); expect(parseUnit('2rem')).toEqual([2, 'rem']); }); it('should get value from theme', () => { let value = themed('colors.black.base')({ theme: ds }); expect(value).toBe(token.colors.black.base); value = themed('colors.missing.size', { defaultValue: 16, transformValue: v => toPx(v, { base: 1 }), })({ theme: ds, }); expect(value).toBe('16px'); value = themed('colors.missing.pink', { defaultValue: 'red' })({ theme: ds }); expect(value).toBe('red'); value = themed('colors.missing.pink', { defaultValue: 'red' })(); expect(value).toBe('red'); }); }); }); });
class SimulatedEntity { constructor() { } }
// Generated by BUCKLESCRIPT VERSION 5.0.6, PLEASE EDIT WITH CARE 'use strict'; var BTC = require("../../application/wallet/BTC.bs.js"); var Grid = require("./Grid.bs.js"); var Curry = require("bs-platform/lib/js/curry.js"); var React = require("react"); var MButton = require("./MButton.bs.js"); var Belt_List = require("bs-platform/lib/js/belt_List.js"); var ViewCommon = require("../ViewCommon.bs.js"); var Caml_option = require("bs-platform/lib/js/caml_option.js"); var MTypography = require("./MTypography.bs.js"); var ReasonReact = require("reason-react/src/ReasonReact.js"); var CommandExecutor = require("./CommandExecutor.bs.js"); var MaterialUi_Table = require("@jsiebern/bs-material-ui/src/MaterialUi_Table.bs.js"); var MaterialUi_TableRow = require("@jsiebern/bs-material-ui/src/MaterialUi_TableRow.bs.js"); var MaterialUi_TableBody = require("@jsiebern/bs-material-ui/src/MaterialUi_TableBody.bs.js"); var MaterialUi_TableCell = require("@jsiebern/bs-material-ui/src/MaterialUi_TableCell.bs.js"); var MaterialUi_TableHead = require("@jsiebern/bs-material-ui/src/MaterialUi_TableHead.bs.js"); var component = ReasonReact.statelessComponent("LedgerConfirmation"); function make(action, onCancel, summary, misthosFeeAddress, changeAddress, cmdStatus, _children) { return /* record */[ /* debugName */component[/* debugName */0], /* reactClassInternal */component[/* reactClassInternal */1], /* handedOffState */component[/* handedOffState */2], /* willReceiveProps */component[/* willReceiveProps */3], /* didMount */component[/* didMount */4], /* didUpdate */component[/* didUpdate */5], /* willUnmount */component[/* willUnmount */6], /* willUpdate */component[/* willUpdate */7], /* shouldUpdate */component[/* shouldUpdate */8], /* render */(function (param) { var destRows = Belt_List.toArray(Belt_List.mapWithIndexU(summary[/* destinations */1], (function (idx, param) { return ReasonReact.element(String(idx), undefined, MaterialUi_TableRow.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(param[0])])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(BTC.format(param[1]) + " BTC")])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("RECIPIENT ADDRESS")])) ])); }))); var match = summary[/* misthosFee */3]; return ReasonReact.element(undefined, undefined, Grid.make(Caml_option.some(ViewCommon.text("Awaiting Ledger Confirmation")), undefined, undefined, undefined, Caml_option.some(React.createElement("div", undefined, ReasonReact.element(undefined, undefined, MTypography.make(/* Body2 */-904051920, undefined, undefined, undefined, undefined, undefined, /* array */["You will need to individually approve the following outputs:"])), ReasonReact.element(undefined, undefined, MTypography.make(/* Body2 */-904051920, undefined, undefined, undefined, undefined, undefined, /* array */[ReasonReact.element(undefined, undefined, MaterialUi_Table.make(undefined, undefined, undefined, undefined, undefined, /* array */[ ReasonReact.element(undefined, undefined, MaterialUi_TableHead.make(undefined, undefined, undefined, undefined, /* array */[ReasonReact.element(undefined, undefined, MaterialUi_TableRow.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("OUTPUT ADDRESS")])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("AMOUNT")])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("DESCRIPTION")])) ]))])), ReasonReact.element(undefined, undefined, MaterialUi_TableBody.make(undefined, undefined, undefined, undefined, /* array */[ destRows, misthosFeeAddress !== undefined && match.gt(BTC.zero) ? ReasonReact.element("misthos-fee", undefined, MaterialUi_TableRow.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(misthosFeeAddress)])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(BTC.format(summary[/* misthosFee */3]) + " BTC")])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("MISTHOS FEE")])) ])) : null, changeAddress !== undefined ? ReasonReact.element("change-address", undefined, MaterialUi_TableRow.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(changeAddress[/* displayAddress */5])])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text(BTC.format(summary[/* reserved */0].minus(summary[/* spentWithFees */2])) + " BTC")])), ReasonReact.element(undefined, undefined, MaterialUi_TableCell.make(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("CHANGE ADDRESS")])) ])) : null ])) ]))])), ReasonReact.element(undefined, undefined, CommandExecutor.Status[/* make */2](cmdStatus, action, /* array */[])), ReasonReact.element(undefined, undefined, MButton.make(undefined, (function (_e) { return Curry._1(onCancel, /* () */0); }), undefined, undefined, /* Flat */0, undefined, undefined, undefined, undefined, undefined, undefined, /* array */[ViewCommon.text("Cancel")])))), undefined, undefined, undefined, /* array */[])); }), /* initialState */component[/* initialState */10], /* retainedProps */component[/* retainedProps */11], /* reducer */component[/* reducer */12], /* jsElementWrapped */component[/* jsElementWrapped */13] ]; } var text = ViewCommon.text; var extractString = ViewCommon.extractString; var ignoreEvent = ViewCommon.ignoreEvent; exports.text = text; exports.extractString = extractString; exports.ignoreEvent = ignoreEvent; exports.component = component; exports.make = make; /* component Not a pure module */
import React from 'react'; import { useTranslation } from 'react-i18next'; function NotFound() { const { t } = useTranslation(); return ( <div> <h1>{t('Page Not Found')}</h1> </div> ); } export default NotFound;
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* eslint-disable */ import util from 'util'; console.log(util.format('hello world'));
/* See license.txt for terms of usage */ "use strict"; /*const { Trace, TraceError } = require("./core/trace.js").get(module.id); const { Item, SelectionContext } = require("sdk/context-menu"); var menuItem = Item({ label: "Log Selection", context: SelectionContext(), contentScript: 'self.on("click", function () {' + ' let text = window.getSelection().toString();' + ' self.postMessage(text);' + '});', onMessage: function (selectionText) { Trace.sysout(selectionText); } }); exports.menuItem = menuItem; */
import cloneDeep from 'lodash.clonedeep'; import Dictionary from 'utils/dictionary/dictionary'; import { CODES_LIST_INPUT_ENUM, QUESTION_TYPE_ENUM } from 'constants/pogues-constants'; import { getComponentsTargetsByComponent } from 'utils/model/redirections-utils'; import { generateCollectedVariables } from 'utils/variables/collected-variables-utils'; const { NEW } = CODES_LIST_INPUT_ENUM; const { SINGLE_CHOICE, SIMPLE, TABLE, MULTIPLE_CHOICE } = QUESTION_TYPE_ENUM; export function required(value = '') { const val = value.trim ? value.trim().replace(/[^\w\s]/gi, '') : value; if (typeof val === 'string' || val instanceof String) { return val.length > 0 ? undefined : Dictionary.validationRequired; } return val ? undefined : Dictionary.validationRequired; } export function unique(property) { return function(values) { if (values.length <= 1) { return undefined; } const orderList = values.map(v => v[property]).sort((v1, v2) => v1 > v2); for (let i = 0; i < orderList.length; i += 1) { if (orderList[i + 1] && orderList[i] === orderList[i + 1]) { return 'unique'; } } return undefined; }; } export function uniqueCode() { return unique('code'); } export function maxLength(max) { return function(value) { return value && value.length > max ? `Must be ${max} characters or less` : undefined; }; } export function maxLength15() { return maxLength(15); } export function number(value) { return value && isNaN(Number(value)) ? Dictionary.validationNumber : undefined; } export function minValue(min) { return function(value) { if (value === undefined || value === '') return `${Dictionary.validationMinNumber} ${min}`; return parseInt(value, 10) < min ? `${Dictionary.validationMinNumber} ${min}` : undefined; }; } export function maxValue(max) { return function(value) { if (value === undefined || value === '') return `${Dictionary.validationMaxNumber} ${max}`; return parseInt(value, 10) > max ? `${Dictionary.validationMaxNumber} ${max}` : undefined; }; } export function email(value) { return value && !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(value) ? 'Invalid email address' : undefined; } export function requiredSelect(value = '') { return value !== '' ? undefined : Dictionary.validationRequired; } export function requiredSelectMultiple(value = []) { return value.length > 0 ? undefined : Dictionary.validationRequiredMultiple; } export function requiredListCheckboxes(value) { return value !== '' ? undefined : Dictionary.validationRequiredMultiple; } export function name(value = '') { return value !== '' && !/^[A-Z0-9\-_]+$/i.test(value) ? Dictionary.validationInvalidName : undefined; } export function nameSize(value) { return value && value.length > 32 ? Dictionary.validationInvalidNameSize : undefined; } export function emptyCodes(codes = []) { return codes.length === 0 ? 'No codes' : undefined; } export function emptyMeasures(measures) { return measures.length === 0 ? Dictionary.noMeasureYet : undefined; } export function uniqueCodeAttr(value, { editing, previousValue, codes }) { if (editing && value === previousValue) { return undefined; } return codes.filter(code => code.value === value).length > 0 ? 'unique' : undefined; } export function validCodesList(codesList) { const { id, label, codes, panel } = codesList; const errors = []; let errorRequired; let errorNoCodes; if (panel === NEW) { errorRequired = required(label); errorNoCodes = emptyCodes(codes); } else { errorRequired = required(id); } if (errorRequired) errors.push(errorRequired); if (errorNoCodes) errors.push(errorNoCodes); return errors; } export function validCollectedVariables( value, { form, stores: { codesListsStore } } ) { function checkIfCodesListTheSame(expected, values) { if (!expected[0]) { return true; } return expected.filter(e => !values.includes(e)).length === 0; } // @TODO: Improve this validation testing the coordinates of the variables const { name: nameComponent, responseFormat: { type, [type]: responseFormatValues } } = form; let expectedVariables; if (nameComponent !== '' && type !== '') { expectedVariables = generateCollectedVariables( type, nameComponent, responseFormatValues, codesListsStore ); } /** * for Single Choice Response, we check if the codeListReference for each * variable are in the same order as the ones expected */ const isCodesTheSame = checkIfCodesListTheSame( expectedVariables.map(e => e.codeListReference), value.map(e => e.codeListReference) ); /** * For a SINGLE_CHOICE question with a codelist, the codeListReference should be the same * It solves this issue : https://trello.com/c/bZo4vAei/397-255-questionnaire-non-r%C3%A9cup%C3%A9r%C3%A9-par-lapplication */ function objectCompare(object1, object2) { let equal = true; for (var p in object1) { if (object1[p] == '' && object2[p] != undefined && object2[p] != '') { equal = false; } else if(object1[p] != '' && object2[p] == undefined) { equal = false; } else if( object1[p] != '' && object2[p] != undefined) { if (object1[p] != object2[p]) { equal = false; } } } return equal; } let codeListPrecision = false; if(expectedVariables.length === value.length && type === SINGLE_CHOICE){ for (var i=1; i < value.length; i++) { const resultat = Object.values(expectedVariables).find(res => res.name === value[i].name ); if (resultat) { if(resultat.TEXT.maxLength != value[i].TEXT.maxLength) { codeListPrecision = true; } } else{ codeListPrecision = true; } } } else if(expectedVariables.length === value.length && type === MULTIPLE_CHOICE){ for (let i=0; i < value.length; i++) { if(value[i].type == "TEXT" && value[i].codeListReference == undefined){ const resultat = Object.values(expectedVariables).find(res => res.name === value[i].name); if(resultat){ codeListPrecision = resultat.label != value[i].label || resultat.TEXT.maxLength != value[i].TEXT.maxLength; } else { codeListPrecision = false } } } } else { codeListPrecision = true; } if ( type === SINGLE_CHOICE && value[0] && value[0].codeListReference !== expectedVariables[0].codeListReference || type === SINGLE_CHOICE && value[0] && value[0].codeListReferenceLabel !== expectedVariables[0].codeListReferenceLabel || type === SINGLE_CHOICE && value[0] && codeListPrecision ) { return Dictionary.validation_collectedvariable_need_reset; } if ( type === MULTIPLE_CHOICE && value[0] && value[0].codeListReference !== expectedVariables[0].codeListReference|| type === MULTIPLE_CHOICE && value[0] && codeListPrecision ) { return Dictionary.validation_collectedvariable_need_reset; } if (type === TABLE && value[0] || type === SIMPLE && value[0] ) { const typevalue = value[0].type; const typeexpectedVariables = expectedVariables[0].type; if ( value[0].codeListReference || typevalue !== typeexpectedVariables || !objectCompare(expectedVariables[0][typeexpectedVariables], value[0][typevalue]) ) { return Dictionary.validation_collectedvariable_need_reset; } } /** * For Multiple Choice Reponse, we check if all the codes of a code list * are in the right order. */ const isTheSameOrder = true; if (expectedVariables && value.length === 0 && expectedVariables.length > 0) { return Dictionary.validation_collectedvariable_need_creation; } if ( expectedVariables && value.length === 1 && expectedVariables.length === 1 ){ return false; } return isCodesTheSame && isTheSameOrder && (expectedVariables && value.length === expectedVariables.length) ? undefined : Dictionary.validation_collectedvariable_need_reset; } export function validateEarlyTarget( value, { stores: { componentsStore, editingComponentId } } ) { let result; if (editingComponentId !== '') { result = value !== '' && componentsStore[value] && getComponentsTargetsByComponent( componentsStore, componentsStore[editingComponentId] ).indexOf(value) === -1 ? Dictionary.errorGoToEarlierTgt : undefined; } return result; } export function validateExistingTarget(value, { stores: { componentsStore } }) { return value !== '' && !componentsStore[value] ? Dictionary.errorGoToNonExistingTgt : undefined; } export function validateDuplicates(value, { form }) { return value !== '' && form.filter(i => i.name === value).length > 0 ? 'Duplicated' : undefined; } export function validateDuplicatesCalculated( value, { form: { calculatedVariables: values }, state: { selectedItemIndex } } ) { const listItems = cloneDeep(values.calculatedVariables); // We need to remove the element from the list if (selectedItemIndex !== undefined) { listItems.splice(selectedItemIndex, 1); } return validateDuplicates(value, { form: listItems }); } export function validateDuplicatesExternal( value, { form: { externalVariables: values }, state: { selectedItemIndex } } ) { const listItems = cloneDeep(values.externalVariables); // We need to remove the element from the list if (selectedItemIndex !== undefined) { listItems.splice(selectedItemIndex, 1); } return validateDuplicates(value, { form: listItems }); } export function validateDuplicatesCollected( value, { form: { collectedVariables: values }, state: { selectedItemIndex } } ) { const listItems = cloneDeep(values.collectedVariables); // We need to remove the element from the list if (selectedItemIndex !== undefined) { listItems.splice(selectedItemIndex, 1); } return validateDuplicates(value, { form: listItems }); }
'use strict'; var exec = require('child_process').exec; var express = require('express'); var cv = require('opencv'); var ejs = require('ejs'); var app = express(); var people = 0; // Setup Express and routes: app.engine('html', ejs.renderFile); app.set('view engine', 'ejs'); app.use(express.static('bower_components')); app.use(express.static('public')); app.get('/', function(req, res){ res.render('index.html'); }); app.get('/say', function(req, res){ console.log('Remote request!'); process.emit('remote-say', people); res.end(String(people)); }); // Initialize CV environment: var camWidth = 320; var camHeight = 240; var camFps = 10; var camInterval = 1000 / camFps; var rectColor = [0, 255, 0]; var rectThickness = 2; // Found faces var currentFaces = []; // Initialize camera: var camera = new cv.VideoCapture(0); camera.setWidth(camWidth); camera.setHeight(camHeight); // Based on https://github.com/drejkim/face-detection-node-opencv function faceDetection(socket){ console.log('Face detection engine started.'); var say = function(people) { socket.emit('clear-faces'); currentFaces.forEach(function(face, pos){ socket.emit('face-pic', {buffer: face.toBuffer(), pos: pos}); }); // Text-to-speech: switch(Number(people)) { case 0: exec('say ". I do not see anyone."'); break; case 1: exec('say ". I see one person."'); break; default: exec('say ". I see '+people+' people."'); break; } }; // Event listeners: process.on('frame', function(buffer){ socket.emit('frame', buffer); }); process.on('people-i-see', function(people){ socket.emit('people-i-see', people); }); process.on('remote-say', function(people){ say(people); }); socket.on('say', say); } // Start server var server = app.listen(3000, function(){ // Initialize socket.io var io = require('socket.io')(server); io.sockets.setMaxListeners(1); io.on('connection', faceDetection); // Real time, should be on-demand: setInterval(function() { camera.read(function(err, im) { if (!err) { // Stock Haar classifier cascade im.detectObject('./node_modules/opencv/data/haarcascade_frontalface_alt2.xml', {}, function(err, faces) { if (!err) { // How many people are there and who they are: people = faces.length; currentFaces = []; // Draw green rectangle and crop: for (var i = 0; i < people; i+=1) { var face = faces[i]; currentFaces.push(im.copy().roi(face.x, face.y, face.width, face.height)); im.rectangle([face.x, face.y], [face.width, face.height], rectColor, rectThickness); } // Trigger event to be emitted: process.emit('frame', { buffer: im.toBuffer() }); process.emit('people-i-see', people); } }); } }); }, camInterval); console.log('Server listening on port %s', server.address().port); });
// pages/login/login.js Page({ data: { code_text: '获取验证码', wait: 60, phone: '', vcode: '', disabled: false }, onLoad: function (options) { }, onBindInputPhone: function (e) { this.setData({ phone: e.detail.value }) }, onBindInputCode: function (e) { this.setData({ vcode: e.detail.value }) }, getCode: function (e) { console.log(this.data.phone); if (this.data.phone == '') { wx.showToast({ title: "请检查手机号", icon: 'loading', duration: 1500 }); } else { var reg = /^[1][34578][0-9]{9}$/; if (true) { this.time(); this.setData({ disabled: !this.data.disabled }) wx.showToast({ title: "验证码已发送", icon: '成功', duration: 2000 }); var url = 'https://wx.viparker.com/valetparking/api/web/index.php/user/send-sms' wx.request({ url: url, header: { "Content-Type": "application/x-www-form-urlencoded" }, data: { phone: this.data.phone }, method: "POST", success: function (res) { console.log(res) } }) } else { wx.showToast({ title: '请输入有效的手机号', icon: 'loading', duration: 1500 }) } } }, time: function () { var that = this; var wait = that.data.wait if (that.data.wait == 0) { that.setData({ code_text: "获取验证码", wait: 60 }); return; } var time = setTimeout(function () { that.setData({ code_text: wait + "s", wait: wait - 1, }); that.time(); }, 1000); }, bindSuccess: function () { wx.request({ url: 'https://wx.viparker.com/valetparking/api/web/index.php/user/bind-phone ', header: { "Content-Type": "application/x-www-form-urlencoded" }, data: { openid: wx.getStorageSync('openid'), phone: this.data.phone, code: this.data.vcode, nickname: wx.getStorageSync('nickName'), sex: wx.getStorageSync('gender'), avatarurl: wx.getStorageSync('avatarUrl') }, method: "POST", success: function (res) { console.log(res) wx.navigateBack({ delta: 1 }) } }) } })
/** * @version 1.4.10 * @license MIT */ !function(t,e){"use strict";t.module("smart-table",[]).run(["$templateCache",function(t){t.put("template/smart-table/pagination.html",'<div class="pagination" ng-if="pages.length >= 2"><ul class="pagination"><li ng-repeat="page in pages" ng-class="{active: page==currentPage}"><a ng-click="selectPage(page)">{{page}}</a></li></ul></div>')}]),t.module("smart-table").controller("stTableController",["$scope","$parse","$filter","$attrs",function(a,n,s,r){function i(t){return t?[].concat(t):[]}function c(){m=i(l(a)),b===!0&&S.pipe()}var l,o,u=r.stTable,p=n(u),g=p.assign,f=s("orderBy"),d=s("filter"),m=i(p(a)),h={sort:{},search:{},pagination:{start:0}},b=!0,S=this;r.stSafeSrc&&(l=n(r.stSafeSrc),a.$watch(function(){var t=l(a);return t?t.length:0},function(t){t!==m.length&&c()}),a.$watch(function(){return l(a)},function(t,e){t!==e&&c()})),this.sortBy=function(e,a){return h.sort.predicate=e,h.sort.reverse=a===!0,t.isFunction(e)?h.sort.functionName=e.name:delete h.sort.functionName,h.pagination.start=0,this.pipe()},this.search=function(e,a){var n=h.search.predicateObject||{},s=a?a:"$";return e=t.isString(e)?e.trim():e,n[s]=e,e||delete n[s],h.search.predicateObject=n,h.pagination.start=0,this.pipe()},this.pipe=function(){var t=h.pagination,n=h.search.predicateObject?d(m,h.search.predicateObject):m;h.sort.predicate&&(n=f(n,h.sort.predicate,h.sort.reverse)),t.number!==e&&(t.numberOfPages=n.length>0?Math.ceil(n.length/t.number):1,t.start=t.start>=n.length?(t.numberOfPages-1)*t.number:t.start,n=n.slice(t.start,t.start+parseInt(t.number))),g(a,n)},this.select=function(t,a){var n=m,s=n.indexOf(t);-1!==s&&("single"===a?(t.isSelected=t.isSelected!==!0,o&&(o.isSelected=!1),o=t.isSelected===!0?t:e):n[s].isSelected=!n[s].isSelected)},this.slice=function(t,e){return h.pagination.start=t,h.pagination.number=e,this.pipe()},this.tableState=function(){return h},this.setFilterFunction=function(t){d=s(t)},this.setSortFunction=function(t){f=s(t)},this.preventPipeOnWatch=function(){b=!1}}]).directive("stTable",function(){return{restrict:"A",controller:"stTableController",link:function(t,e,a,n){a.stSetFilter&&n.setFilterFunction(a.stSetFilter),a.stSetSort&&n.setSortFunction(a.stSetSort)}}}),t.module("smart-table").directive("stSearch",["$timeout",function(t){return{require:"^stTable",scope:{predicate:"=?stSearch"},link:function(e,a,n,s){var r=s,i=null,c=n.stDelay||400;e.$watch("predicate",function(t,e){t!==e&&(s.tableState().search={},r.search(a[0].value||"",t))}),e.$watch(function(){return s.tableState().search},function(t){var n=e.predicate||"$";t.predicateObject&&t.predicateObject[n]!==a[0].value&&(a[0].value=t.predicateObject[n]||"")},!0),a.bind("input",function(a){a=a.originalEvent||a,null!==i&&t.cancel(i),i=t(function(){r.search(a.target.value,e.predicate||""),i=null},c)})}}}]),t.module("smart-table").directive("stSelectRow",function(){return{restrict:"A",require:"^stTable",scope:{row:"=stSelectRow"},link:function(t,e,a,n){var s=a.stSelectMode||"single";e.bind("click",function(){t.$apply(function(){n.select(t.row,s)})}),t.$watch("row.isSelected",function(t){t===!0?e.addClass("st-selected"):e.removeClass("st-selected")})}}}),t.module("smart-table").directive("stSort",["$parse",function(a){return{restrict:"A",require:"^stTable",link:function(n,s,r,i){function c(){p++,o=t.isFunction(u(n))?u(n):r.stSort,p%3===0&&r.stSkipNatural===e?(p=0,i.tableState().sort={},i.tableState().pagination.start=0,i.pipe()):i.sortBy(o,p%2===0)}var l,o=r.stSort,u=a(o),p=0,g=r.stClassAscent||"st-sort-ascent",f=r.stClassDescent||"st-sort-descent",d=[g,f];r.stSortDefault&&(l=n.$eval(r.stSortDefault)!==e?n.$eval(r.stSortDefault):r.stSortDefault),s.bind("click",function(){o&&n.$apply(c)}),l&&(p="reverse"===r.stSortDefault?1:0,c()),n.$watch(function(){return i.tableState().sort},function(t){t.predicate!==o?(p=0,s.removeClass(g).removeClass(f)):(p=t.reverse===!0?2:1,s.removeClass(d[p%2]).addClass(d[p-1]))},!0)}}}]),t.module("smart-table").directive("stPagination",function(){return{restrict:"EA",require:"^stTable",scope:{stItemsByPage:"=?",stDisplayedPages:"=?"},templateUrl:function(t,e){return e.stTemplate?e.stTemplate:"template/smart-table/pagination.html"},link:function(t,e,a,n){function s(){var e,a,s=n.tableState().pagination,r=1;for(t.currentPage=Math.floor(s.start/s.number)+1,r=Math.max(r,t.currentPage-Math.abs(Math.floor(t.stDisplayedPages/2))),e=r+t.stDisplayedPages,e>s.numberOfPages&&(e=s.numberOfPages+1,r=Math.max(1,e-t.stDisplayedPages)),t.pages=[],t.numPages=s.numberOfPages,a=r;e>a;a++)t.pages.push(a)}t.stItemsByPage=t.stItemsByPage?+t.stItemsByPage:10,t.stDisplayedPages=t.stDisplayedPages?+t.stDisplayedPages:5,t.currentPage=1,t.pages=[],t.$watch(function(){return n.tableState().pagination},s,!0),t.$watch("stItemsByPage",function(e,a){e!==a&&t.selectPage(1)}),t.$watch("stDisplayedPages",s),t.selectPage=function(e){e>0&&e<=t.numPages&&n.slice((e-1)*t.stItemsByPage,t.stItemsByPage)},n.tableState().pagination.number||n.slice(0,t.stItemsByPage)}}}),t.module("smart-table").directive("stPipe",function(){return{require:"stTable",scope:{stPipe:"="},link:{pre:function(t,e,a,n){n.preventPipeOnWatch(),n.pipe=function(){return t.stPipe(n.tableState(),n)}},post:function(t,e,a,n){n.pipe()}}}})}(angular);
"use strict"; exports.default = void 0; /* eslint-disable node/no-unsupported-features/es-syntax */ // !!! AUTO-GENERATED FILE, DO NOT EDIT var _default = { "en-150": "en-001", "en-AG": "en-001", "en-AI": "en-001", "en-AU": "en-001", "en-BB": "en-001", "en-BM": "en-001", "en-BS": "en-001", "en-BW": "en-001", "en-BZ": "en-001", "en-CC": "en-001", "en-CK": "en-001", "en-CM": "en-001", "en-CX": "en-001", "en-CY": "en-001", "en-DG": "en-001", "en-DM": "en-001", "en-ER": "en-001", "en-FJ": "en-001", "en-FK": "en-001", "en-FM": "en-001", "en-GB": "en-001", "en-GD": "en-001", "en-GG": "en-001", "en-GH": "en-001", "en-GI": "en-001", "en-GM": "en-001", "en-GY": "en-001", "en-HK": "en-001", "en-IE": "en-001", "en-IL": "en-001", "en-IM": "en-001", "en-IN": "en-001", "en-IO": "en-001", "en-JE": "en-001", "en-JM": "en-001", "en-KE": "en-001", "en-KI": "en-001", "en-KN": "en-001", "en-KY": "en-001", "en-LC": "en-001", "en-LR": "en-001", "en-LS": "en-001", "en-MG": "en-001", "en-MO": "en-001", "en-MS": "en-001", "en-MT": "en-001", "en-MU": "en-001", "en-MV": "en-001", "en-MW": "en-001", "en-MY": "en-001", "en-NA": "en-001", "en-NF": "en-001", "en-NG": "en-001", "en-NR": "en-001", "en-NU": "en-001", "en-NZ": "en-001", "en-PG": "en-001", "en-PK": "en-001", "en-PN": "en-001", "en-PW": "en-001", "en-RW": "en-001", "en-SB": "en-001", "en-SC": "en-001", "en-SD": "en-001", "en-SG": "en-001", "en-SH": "en-001", "en-SL": "en-001", "en-SS": "en-001", "en-SX": "en-001", "en-SZ": "en-001", "en-TC": "en-001", "en-TK": "en-001", "en-TO": "en-001", "en-TT": "en-001", "en-TV": "en-001", "en-TZ": "en-001", "en-UG": "en-001", "en-VC": "en-001", "en-VG": "en-001", "en-VU": "en-001", "en-WS": "en-001", "en-ZA": "en-001", "en-ZM": "en-001", "en-ZW": "en-001", "en-AT": "en-150", "en-BE": "en-150", "en-CH": "en-150", "en-DE": "en-150", "en-DK": "en-150", "en-FI": "en-150", "en-NL": "en-150", "en-SE": "en-150", "en-SI": "en-150", "hi-Latn": "en-IN", "es-AR": "es-419", "es-BO": "es-419", "es-BR": "es-419", "es-BZ": "es-419", "es-CL": "es-419", "es-CO": "es-419", "es-CR": "es-419", "es-CU": "es-419", "es-DO": "es-419", "es-EC": "es-419", "es-GT": "es-419", "es-HN": "es-419", "es-MX": "es-419", "es-NI": "es-419", "es-PA": "es-419", "es-PE": "es-419", "es-PR": "es-419", "es-PY": "es-419", "es-SV": "es-419", "es-US": "es-419", "es-UY": "es-419", "es-VE": "es-419", "nb": "no", "nn": "no", "pt-AO": "pt-PT", "pt-CH": "pt-PT", "pt-CV": "pt-PT", "pt-FR": "pt-PT", "pt-GQ": "pt-PT", "pt-GW": "pt-PT", "pt-LU": "pt-PT", "pt-MO": "pt-PT", "pt-MZ": "pt-PT", "pt-ST": "pt-PT", "pt-TL": "pt-PT", "az-Arab": "und", "az-Cyrl": "und", "bal-Latn": "und", "blt-Latn": "und", "bm-Nkoo": "und", "bs-Cyrl": "und", "byn-Latn": "und", "cu-Glag": "und", "dje-Arab": "und", "dyo-Arab": "und", "en-Dsrt": "und", "en-Shaw": "und", "ff-Adlm": "und", "ff-Arab": "und", "ha-Arab": "und", "iu-Latn": "und", "kk-Arab": "und", "ks-Deva": "und", "ku-Arab": "und", "ky-Arab": "und", "ky-Latn": "und", "ml-Arab": "und", "mn-Mong": "und", "mni-Mtei": "und", "ms-Arab": "und", "pa-Arab": "und", "sat-Deva": "und", "sd-Deva": "und", "sd-Khoj": "und", "sd-Sind": "und", "shi-Latn": "und", "so-Arab": "und", "sr-Latn": "und", "sw-Arab": "und", "tg-Arab": "und", "ug-Cyrl": "und", "uz-Arab": "und", "uz-Cyrl": "und", "vai-Latn": "und", "wo-Arab": "und", "yo-Arab": "und", "yue-Hans": "und", "zh-Hant": "und", "zh-Hant-MO": "zh-Hant-HK" }; exports.default = _default; module.exports = exports.default; module.exports.default = exports.default;
var structBloomberg_1_1quantum_1_1ITask = [ [ "Ptr", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a6c5b8216547b11f3f0e0e6bc7d20956d", null ], [ "WeakPtr", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#aae43ecce0c2cdbdfa677d9d0846f1e48", null ], [ "RetCode", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a45b23ed79b48f3120e69510692fd3c0b", [ [ "Success", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a45b23ed79b48f3120e69510692fd3c0ba505a83f220c02df2f85c3810cd9ceb38", null ], [ "Running", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a45b23ed79b48f3120e69510692fd3c0ba5bda814c4aedb126839228f1a3d92f09", null ], [ "Exception", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a45b23ed79b48f3120e69510692fd3c0bab0d4998a26f5b5742ad38c4af8817e32", null ], [ "NotCallable", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a45b23ed79b48f3120e69510692fd3c0ba34e84ea7adffeee28b31a3d92a5c8436", null ] ] ], [ "Type", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14", [ [ "Standalone", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14a5c80f101108a356211fcb26b3f83eabb", null ], [ "First", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14a7fb55ed0b7a30342ba6da306428cae04", null ], [ "Continuation", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14af11580a0250ef12842e64f487810cc70", null ], [ "ErrorHandler", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14a1f7e195559ec06a7b2d22bd481043c6c", null ], [ "Final", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14abeae421a14a34f831c113f61323d1ab3", null ], [ "Termination", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14a61e77370e51c7ffa489700cbd32f2ad9", null ], [ "IO", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#ae01baba509e1529f4f89e01d9c19fa14acf3882f1c43ab22bff0bd9d82d83251b", null ] ] ], [ "~ITask", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#aee1b51813555c7444e451f3d5cb8111a", null ], [ "getQueueId", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a75f6344a0b5b9a8edace7a73bd8bd878", null ], [ "getType", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a83f6b10ce06794400a21503b067e1a24", null ], [ "isBlocked", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a253eedcec3acde6b433d7450fb199aac", null ], [ "isHighPriority", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a3ceb7ba29318e456566c2ecee16332c6", null ], [ "isSleeping", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a9695a227000791bcce83f63dcd843d4f", null ], [ "run", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a8996616a07e7cb2e875d58735e0bed77", null ], [ "setQueueId", "df/daf/structBloomberg_1_1quantum_1_1ITask.html#a22afcbfc617f93299eec91b1c25dfb7b", null ] ];
import * as types from '../mutation-types' import Vue from 'vue' import {ToastProgrammatic as Toast} from 'buefy/src' import {addUrlQueryParams} from '../../utils' import {version} from '../../../package.json' const state = { loading: { app: {}, user: {}, users: {}, dcloud: {}, provision: {} }, working: { app: {}, user: {}, users: {}, dcloud: {}, provision: {} }, isProduction: process.env.NODE_ENV === 'production', uiVersion: version, apiVersion: 'Loading...', authApiVersion: 'Loading...' } const getters = { isProduction: state => state.isProduction, loading: state => state.loading, working: state => state.working, uiVersion: state => state.uiVersion, apiVersion: state => state.apiVersion, authApiVersion: state => state.authApiVersion, isLocked: state => false } const mutations = { [types.SET_WORKING] (state, data) { // if state container for this group is not existing, create it if (!state.working[data.group]) { Vue.set(state.working, data.group, {}) } // if state container for this type is not existing, create it if (!state.working[data.group][data.type]) { Vue.set(state.working[data.group], data.type, data.value) } else { state.working[data.group][data.type] = data.value } }, [types.SET_LOADING] (state, data) { // if state container for this group is not existing, create it if (!state.loading[data.group]) { Vue.set(state.loading, data.group, {}) } // if state container for this type is not existing, create it if (!state.loading[data.group][data.type]) { Vue.set(state.loading[data.group], data.type, data.value) } else { state.loading[data.group][data.type] = data.value } }, [types.SET_API_VERSION] (state, data) { state.apiVersion = data.version }, [types.SET_AUTH_API_VERSION] (state, data) { state.authApiVersion = data.version } } const actions = { async fetch ({commit, getters, dispatch}, { group, type, url, options = {}, mutation, message, showNotification = true, onError, transform }) { message = message || `${options.method === 'POST' ? 'save' : 'get'} ${group} ${type}` if (!url) { throw Error('url is a required parameter for fetch ' + message) } console.log(`${message}...`) const loadingOrWorking = !options.method || options.method === 'GET' ? 'setLoading' : 'setWorking' dispatch(loadingOrWorking, {group, type, value: true}) try { // const data = await dispatch('fetch', {url, options}) // set default headers options.headers = options.headers || {} // set content type to JSON by default options.headers['Content-Type'] = options.headers['Content-Type'] || 'application/json' // set accept to JSON by default options.headers['Accept'] = options.headers['Accept'] || 'application/json' // set JWT auth header by default options.headers['Authorization'] = options.headers['Authorization'] || 'Bearer ' + getters.jwt // set instant demo instance name // options.headers['Instance'] = getters.instanceName // stringify body if it is an object if (typeof options.body === 'object') { options.body = JSON.stringify(options.body) } // add query parameters to URL const endpoint = addUrlQueryParams(url, options.query) // console.log('endpoint', endpoint) const response = await window.fetch(endpoint, options) // get the response body as text const text = await response.text() // response code 200 - 299? if (response.ok) { try { // parse response text into JSON const json = JSON.parse(text) console.log(`${message} success:`, json) if (typeof mutation === 'string') { if (typeof transform === 'function') { // put transformed JSON data into state commit(mutation, transform(json)) } else { // put JSON data into state commit(mutation, json) } } return json } catch (e) { // body is not json data. return the raw text, and don't attempt // to put it into state console.log(`${message} success:`, text) return text } } else if (response.status === 401) { // expired JWT. forget jwt and forward to SSO login window.localStorage.removeItem('jwt') return dispatch('login') } else { // not OK and not 401 let m = text try { const json = JSON.parse(text) m = json.message || json.apiError || json.error_description || json[Object.keys(json)[0]] } catch (e) { // use empty string instead of text/html content const regex = /text\/html/i if (response.headers.get('content-type').match(regex)) { console.log('removing html response from message') m = '' } } // console.log('bad response', m) let message = `${response.status} ${response.statusText}` if (m.length) { message += ` - ${m}` } const error = Error(message) error.status = response.status error.statusText = response.statusText error.text = m // throw error if (typeof onError === 'function') { onError(error) } return error } } catch (e) { console.error(`${message} failed: ${e.message}`) if (showNotification) { Toast.open({ message: `Failed to ${message}: ${e.message}`, type: 'is-danger', duration: 6 * 1000, queue: false }) } } finally { dispatch(loadingOrWorking, {group, type, value: false}) } }, setWorking ({commit}, {group, type, value = true}) { commit(types.SET_WORKING, {group, type, value}) }, setLoading ({commit}, {group, type, value = true}) { commit(types.SET_LOADING, {group, type, value}) }, async getApiVersion ({commit, dispatch, getters}) { // get REST API version dispatch('fetch', { group: 'app', type: 'version', url: getters.endpoints.version, mutation: types.SET_API_VERSION, }) }, async getAuthApiVersion ({commit, dispatch, getters}) { // get REST API version dispatch('fetch', { group: 'app', type: 'version', url: getters.endpoints.authVersion, mutation: types.SET_AUTH_API_VERSION, }) }, copyToClipboard ({}, {string, type = 'Text'}) { // copy text to clipboard const input = document.createElement('input') document.body.appendChild(input) input.value = string input.select() const result = document.execCommand('copy') if (result === 'unsuccessful') { // failed console.error('Failed to copy text.') } else { // success Toast.open({ message: type + ' Copied to Your Clipboard', queue: false }) } // Remove the selections - NOTE: Should use // removeRange(range) when it is supported window.getSelection().removeAllRanges() // remove the input field input.remove() } } export default { state, getters, mutations, actions }
/*! ========================================================= * Paper Dashboard React - v1.2.0 ========================================================= * Product Page: https://www.creative-tim.com/product/paper-dashboard-react * Copyright 2020 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https://github.com/creativetimofficial/paper-dashboard-react/blob/master/LICENSE.md) * Coded by Creative Tim ========================================================= * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */ import React from "react"; // react plugin used to create charts import { Line, Pie } from "react-chartjs-2"; import { default as NumberFormat } from 'react-number-format'; // reactstrap components import { Card, CardHeader, CardBody, CardFooter, CardTitle, Row, Col, } from "reactstrap"; // core components import { dashboard24HoursPerformanceChart, dashboardEmailStatisticsChart, dashboardNASDAQChart, } from "variables/charts.js"; class Dashboard extends React.Component { state = { loading: true, btcprice: [], usdbtc: [] }; async componentDidMount() { try { const url = "https://localhost:44319/api/coinmarketapi/getprice"; const response = await fetch(url); const data = await response.json(); this.setState({ btcprice: data.results }); } catch(error){ console.log(error); } const urlusd = "https://blockchain.info/tobtc?currency=USD&value=1"; const responseusd = await fetch(urlusd); const datausd = await responseusd.json(); this.setState({ usdbtc: datausd}); } render() { this.state = { btcprice: {symbol: '', quote:{usd :{price: ''}}} } return ( <> <div className="content"> <Row> <Col lg="3" md="6" sm="6"> <Card className="card-stats"> <CardBody> <Row> <Col md="4" xs="5"> <div className="icon-big text-center icon-warning"> <img src="https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg" /> </div> </Col> <Col md="8" xs="7"> <div className="numbers"> <p className="card-category">{this.state.btcprice.symbol}</p> <NumberFormat value={this.state.btcprice.quote.usd.price} displayType={'text'} decimalScale={2} thousandSeparator={true} prefix={'$'} /> <p /> </div> </Col> </Row> </CardBody> <CardFooter> <hr /> <div className="stats"> <i className="fas fa-sync-alt" /> Update Now </div> </CardFooter> </Card> </Col> <Col lg="4" md="8" sm="6"> <Card className="card-stats"> <CardBody> <Row> <Col md="4" xs="5"> <div className="icon-big text-center icon-warning"> <i className="nc-icon nc-money-coins text-success" /> </div> </Col> <Col md="8" xs="7"> <div className="numbers"> <p className="card-category">USD TO BTC</p> <CardTitle tag="p">1 USD = {this.state.usdbtc} BTC</CardTitle> <p /> </div> </Col> </Row> </CardBody> <CardFooter> <hr /> <div className="stats"> <i className="far fa-calendar" /> Last day </div> </CardFooter> </Card> </Col> <Col lg="3" md="6" sm="6"> <Card className="card-stats"> <CardBody> <Row> <Col md="4" xs="5"> <div className="icon-big text-center icon-warning"> <i className="nc-icon nc-favourite-28 text-primary" /> </div> </Col> <Col md="8" xs="7"> <div className="numbers"> <p className="card-category">Followers</p> <CardTitle tag="p">+45K</CardTitle> <p /> </div> </Col> </Row> </CardBody> <CardFooter> <hr /> <div className="stats"> <i className="fas fa-sync-alt" /> Update now </div> </CardFooter> </Card> </Col> </Row> <Row> <Col md="12"> <Card> <CardHeader> <CardTitle tag="h5">Users Behavior</CardTitle> <p className="card-category">24 Hours performance</p> </CardHeader> <CardBody> <Line data={dashboard24HoursPerformanceChart.data} options={dashboard24HoursPerformanceChart.options} width={400} height={100} /> </CardBody> <CardFooter> <hr /> <div className="stats"> <i className="fa fa-history" /> Updated 3 minutes ago </div> </CardFooter> </Card> </Col> </Row> <Row> <Col md="4"> <Card> <CardHeader> <CardTitle tag="h5">Email Statistics</CardTitle> <p className="card-category">Last Campaign Performance</p> </CardHeader> <CardBody> <Pie data={dashboardEmailStatisticsChart.data} options={dashboardEmailStatisticsChart.options} /> </CardBody> <CardFooter> <div className="legend"> <i className="fa fa-circle text-primary" /> Opened{" "} <i className="fa fa-circle text-warning" /> Read{" "} <i className="fa fa-circle text-danger" /> Deleted{" "} <i className="fa fa-circle text-gray" /> Unopened </div> <hr /> <div className="stats"> <i className="fa fa-calendar" /> Number of emails sent </div> </CardFooter> </Card> </Col> <Col md="8"> <Card className="card-chart"> <CardHeader> <CardTitle tag="h5">NASDAQ: AAPL</CardTitle> <p className="card-category">Line Chart with Points</p> </CardHeader> <CardBody> <Line data={dashboardNASDAQChart.data} options={dashboardNASDAQChart.options} width={400} height={100} /> </CardBody> <CardFooter> <div className="chart-legend"> <i className="fa fa-circle text-info" /> Tesla Model S{" "} <i className="fa fa-circle text-warning" /> BMW 5 Series </div> <hr /> <div className="card-stats"> <i className="fa fa-check" /> Data information certified </div> </CardFooter> </Card> </Col> </Row> </div> </> ); } } export default Dashboard;
import React from "react" import { Link } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" const IndexPage = () => ( <Layout> <SEO title="Home" /> <h1>Headless Wordpress</h1> <p>Now I just need to figure out where to host my WordPress build</p> <div style={{ maxWidth: `300px`, marginBottom: `1.45rem` }}> <Image /> </div> <Link to="/page-2/">Go to page 2</Link> </Layout> ) export default IndexPage
define(function(require, exports, module) { 'use strict'; var Abstract = require('./abstract'); var Calc = require('common/calc'); var Calendar = require('./calendar'); var core = require('core'); var denodeifyAll = require('common/promise').denodeifyAll; function Events() { Abstract.apply(this, arguments); denodeifyAll(this, [ 'providerFor', 'findByIds', 'ownersOf', 'eventsForCalendar' ]); } module.exports = Events; Events.prototype = { __proto__: Abstract.prototype, _store: 'events', _dependentStores: ['events', 'busytimes', 'alarms', 'icalComponents'], /** disable caching */ _addToCache: function() {}, _removeFromCache: function() {}, _createModel: function(input, id) { var _super = Abstract.prototype._createModel; var model = _super.apply(this, arguments); model.remote.startDate = Calc.dateFromTransport(model.remote.start); model.remote.endDate = Calc.dateFromTransport(model.remote.end); return model; }, /** * Link busytime dependants see _addDependents. */ _removeDependents: function(id, trans) { this.removeByIndex('parentId', id, trans); var busy = core.storeFactory.get('Busytime'); busy.removeEvent(id, trans); var component = core.storeFactory.get('IcalComponent'); component.remove(id, trans); }, /** * Generate an id for a newly created record. * Based off of remote id (uuid) and calendar id. */ _assignId: function(obj) { var id = obj.calendarId + '-' + obj.remote.id; obj._id = id; return id; }, /** * Shortcut finds provider for given event. * * @param {Object} event full event record from db. */ providerFor: function(event, callback) { this.ownersOf(event, function(err, owners) { callback(null, core.providerFactory.get(owners.account.providerType)); }); }, /** * Finds a list of events by id. * * @param {Array} ids list of ids. * @param {Function} callback node style second argument * is an object of _id/event. */ findByIds: function(ids, callback) { var results = {}; var pending = ids.length; var self = this; if (!pending) { callback(null, results); } function next() { if (!(--pending)) { // fatal errors should break // and so we are not handling them // here... callback(null, results); } } function success(e) { var item = e.target.result; if (item) { results[item._id] = self._createModel(item); } next(); } function error() { // can't find it or something // skip! next(); } ids.forEach(function(id) { var trans = core.db.transaction('events'); var store = trans.objectStore('events'); var req = store.get(id); req.onsuccess = success; req.onerror = error; }, this); }, /** * Finds calendar/account for a given event. * * @param {Object} event must contain .calendarId. * @param {Function} callback [err, { ... }]. */ ownersOf: Calendar.prototype.ownersOf, /** * Loads all events for given calendarId * and returns results. Does not cache. * * @param {String} calendarId calendar to find. * @param {Function} callback node style [err, array of events]. */ eventsForCalendar: function(calendarId, callback) { var trans = core.db.transaction('events'); var store = trans.objectStore('events'); var index = store.index('calendarId'); var key = IDBKeyRange.only(calendarId); var req = index.mozGetAll(key); req.onsuccess = function(e) { callback(null, e.target.result); }; req.onerror = function(e) { callback(e); }; } }; });
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { color } from '../../widget' import { screen, system } from '../../common' import HomeGridItem from './HomeGridItem' export default class HomeGridView extends Component { static defaultProps = { infos: [] } render() { let { infos } = this.props let gridItems = infos.map( (info, i) => ( <HomeGridItem info={infos[i]} key={i} onPress={() => this.props.onGridSelected(i)} /> ) ) return ( <View style={styles.container}> {gridItems} </View> ); } } // define your styles const styles = StyleSheet.create({ container: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'space-between', borderTopWidth: screen.onePixel, borderLeftWidth: screen.onePixel, borderColor: color.border }, });
import React, { Component } from 'react'; import { Translation } from 'react-i18next'; import Switch from "react-switch"; import { Col, Container, Form, FormGroup, Row } from 'reactstrap'; import Button from '../../Base/FormControl/Button'; import CheckBox from '../../Base/FormControl/CheckBox'; import Input from '../../Base/FormControl/Input'; import Select from '../../Base/FormControl/Select'; import CountryList from '../../Common/CountryList'; export class AddTrunkGroupOrder extends Component { constructor(props) { super(props); this.state = { errors:{ siteOrderNumber: '', city: '', site: '', countryName:'', deviceCountry: '' }, addTrunkGroupOrder: { trunkGroupOrderNumber:'', primarySiteOrder:'', siteOrderNumber:'', deviceCountry:'', city:'', deviceXngCityName:'', deviceXngCityCode:'', site:'', csrName:'', voipClassOfService:'', voip:'', routerId:'', managementAddress:'', deviceName:'', deviceNameSelect:'', snmpro:'', snmpv3ContextName:'', snmpv3ContextEngineId:'', snmpv3SecurityUserName:'', snmpv3AuthProto:'', snmpv3AuthPassword:'', premiseName:'', premiseCode:'', trunkGroupOrder:'' }, deviceNameSelect:[{ name: "Indias", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], voip:[{ name: "Indias", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], primarySiteOrder:[{ name: "Indias", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], deviceCountry:[{ name: "Indias", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], site:[{ name: "India", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], city: [ { name: "India", code: "IN" }, { name: "United State", code: "US" }, { name: "United Kingdom", code: "UK" }, { name: "Luxembourg", code: "LU" }, { name: "Netherlands", code: "NL" }, { name: "Sweden", code: "SE" } ], country : [ { "name": "AT (Austria)", "code": "AT" }, { "name": "BE (Belgium)", "code": "BE" }, { "name": "CH (Switzerland)", "code": "CH" }, { "name": "DE (Germany)", "code": "DE" }, { "name": "DK (Denmark)", "code": "DK" }, { "name": "ES (Spain)", "code": "ES" }, { "name": "FR (France)", "code": "FR" }, { "name": "IE (Ireland)", "code": "IE" }, { "name": "INT (International)", "code": "INT" }, { "name": "IS (Iceland)", "code": "IS" }, { "name": "IT (Italy)", "code": "IT" }, { "name": "LU (Luxembourg)", "code": "LU" }, { "name": "NL (Netherlands)", "code": "NL" }, { "name": "PT (Portugal)", "code": "PT" }, { "name": "SE (Sweden)", "code": "SE" }, { "name": "UK (United Kingdom)", "code": "UK" }, { "name": "US (United States)", "code": "US" } ], type : [ { "name": "Colt Telecom - internal", "code": "AT" }, { "name": "End Corporate Customer", "code": "BE" }, { "name": "Partner", "code": "CH" }, { "name": "SME", "code": "DE" }, { "name": "Supplier", "code": "DK" }, { "name": "Wholesale Customer", "code": "ES" } ], trunkGroupOrder:true, voipClassOfService:true, enableDedicatedPortal : [''], addCityFlag:true , addSiteFlag:true , addPremiseFlag:true , addDeviceFlag:true , siteOrderFlag:true, voipClassOfServiceFlag:true } this.handleFormSubmit = this.handleFormSubmit.bind(this); this.handleClearForm = this.handleClearForm.bind(this); this.handleCheckBox = this.handleCheckBox.bind(this); this.handleInput = this.handleInput.bind(this); this.toggleCityDetails = this.toggleCityDetails.bind(this); this.toggleSiteDetails = this.toggleSiteDetails.bind(this); this.toggleDeviceDetails = this.toggleDeviceDetails.bind(this); this.togglePremiseDetails = this.togglePremiseDetails.bind(this); this.toggleTrunkGroup = this.toggleTrunkGroup.bind(this); this.toggleVoipClassOfService = this.toggleVoipClassOfService.bind(this); } handleInput(e) { let value = e.target.value; let name = e.target.name; this.setState(prevState => ({ addTrunkGroupOrder: { ...prevState.addTrunkGroupOrder, [name]: value } }), () => console.log(this.state.addTrunkGroupOrder)) } handleCheckBox(e) { debugger const value = e.target.checked; const name = e.target.name; this.setState({ [name]: value }); if("trunkGroupOrder"===name) this.toggleTrunkGroup(); if("voipClassOfService"===name) this.toggleVoipClassOfService(); } handleFormSubmit(e) { console.log("addTrunkGroup form submit" +JSON.stringify(this.state.addTrunkGroupOrder)); e.preventDefault(); let userData = this.state.addTrunkGroupOrder; if(userData.siteOrderNumber.length <1){ this.setState({errorAlertFlag: true}); this.setState(prevState => ({ errors:{ ...prevState.errors, siteOrderNumber: "Site order number is required" }})); }else if(userData.city.length <1){ this.setState({errorAlertFlag: true}); this.setState(prevState => ({ errors:{ ...prevState.errors, city: "Device xng city is required" }})); }else if(userData.site.length <1){ this.setState({errorAlertFlag: true}); this.setState(prevState => ({ errors:{ ...prevState.errors, site: "Physical site is required" }})); } else{ this.props.history.push('/viewCustomer'); fetch('http://example.com', { method: "POST", body: JSON.stringify(userData), headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, }).then(response => { response.json().then(data => { console.log("Successful" + data); }) })} } handleClearForm(e) { e.preventDefault(); this.setState({ addTrunkGroup: { legalCustomerName:'', mainDomain:'', ocn :'', name: '', age: '', gender:'' , skills: [], about: '' }, }) } toggleVoipClassOfService() { this.setState({ voipClassOfServiceFlag: !this.state.voipClassOfServiceFlag}); } toggleTrunkGroup() { this.setState({ siteOrderFlag: !this.state.siteOrderFlag}); } toggleCityDetails() { this.setState({ addCityFlag: !this.state.addCityFlag}); } toggleSiteDetails(){ this.setState({ addSiteFlag: !this.state.addSiteFlag}); } toggleDeviceDetails(){ this.setState({ addDeviceFlag: !this.state.addDeviceFlag}); } togglePremiseDetails(){ this.setState({ addPremiseFlag: !this.state.addPremiseFlag}); } render() { const voipClassOfServiceFlagShow = { display: this.state.voipClassOfServiceFlag ? "inline" : "none" }; const siteOrderFlagShow = { display: this.state.siteOrderFlag ? "inline" : "none" }; const chooseSiteOrderFlagShow = { display: !this.state.siteOrderFlag ? "inline" : "none" }; const addCityShow = { display: this.state.addCityFlag ? "inline" : "none" }; const addSiteShow = { display: this.state.addSiteFlag ? "inline" : "none" }; const addPremiseShow = { display: this.state.addPremiseFlag ? "inline" : "none" }; const addDeviceShow = { display: this.state.addDeviceFlag ? "inline" : "none" }; const chooseCityShow = { display: !this.state.addCityFlag ? "inline" : "none" }; const chooseSiteShow = { display: !this.state.addSiteFlag ? "inline" : "none" }; const choosePremiseShow = { display: !this.state.addPremiseFlag ? "inline" : "none" }; const chooseDeviceShow = { display: !this.state.addDeviceFlag ? "inline" : "none" }; return ( <div className="glb-font"> <Container > {/* <Row > <Col className="heading-gray" xs="12" sm="12" md="12"> <h5> <Translation>{(t) => <p>{t('order.trunkGroup.title')}</p>}</Translation> </h5> </Col> </Row> */} </Container> <Container className="div-border div-margin"> <Form method="POST" onSubmit={this.handleFormSubmit}> <Row className="heading-green-row"> <Col className="heading-green" xs="12" sm="12" md="12"> <Translation>{(t) => <>{t('order.trunkGroup.title')}</>}</Translation> </Col> </Row> <div style={chooseSiteOrderFlagShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <CheckBox title="order.trunkGroup.trunkGroupOrder" name={"trunkGroupOrder"} checked={this.state.trunkGroupOrder} handleChange={this.handleCheckBox} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.trunkGroupOrderNumber" name={"trunkGroupOrderNumber"} value={this.state.addTrunkGroupOrder.trunkGroupOrderNumber ||''} placeholder={"Enter Trunk Group Order Number"} onChange={this.handleInput} isrequired={true} /> <span style={spanStyle}>{this.state.errors.trunkGroupOrderNumber}</span> </FormGroup> </Col> </Row> </div> <div style={siteOrderFlagShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <CheckBox title="order.trunkGroup.trunkGroupOrder" name={"trunkGroupOrder"} checked={this.state.trunkGroupOrder} handleChange={this.handleCheckBox} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> {/* <label className="form-label" style={labelStyles} ><Translation>{ (t) => <>{t('order.trunkGroup.primarySiteOrder')}</> }</Translation></label> */} <Select title="order.trunkGroup.primarySiteOrder" name={"primarySiteOrder"} multiple={false} options={this.state.primarySiteOrder} value={this.state.addTrunkGroupOrder.primarySiteOrder} placeholder={"Choose a Primary Site Order"} handleChange={this.handleInput} /> </FormGroup> </Col> </Row> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.siteOrderNumber" name={"siteOrderNumber"} id={"siteOrderNumber"} value={this.state.addTrunkGroupOrder.siteOrderNumber ||''} placeholder={"Enter Site Order Number"} onChange={this.handleInput} isrequired={true} /> <span style={spanStyle}>{this.state.errors.siteOrderNumber}</span> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <label className="form-label" style={labelStyles} ><Translation>{ (t) => <>{t('order.trunkGroup.deviceCountry')}</> }</Translation></label> <CountryList title="order.trunkGroup.deviceCountry" name={"deviceCountry"} multiple={false} options={this.state.deviceCountry} value={this.state.addTrunkGroupOrder.deviceCountry} placeholder={"Choose a country"} handleChange={this.handleInput} isrequired={true} /> </FormGroup> </Col> </Row> <div style={addCityShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Select title="order.trunkGroup.deviceXngCity" name={"city"} multiple={false} options={this.state.city} value={this.state.addTrunkGroupOrder.city} placeholder={"Choose a City"} handleChange={this.handleInput} isrequired={true} /> <span style={spanStyle}>{this.state.errors.city}</span> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addCityFlag} onChange={this.toggleCityDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2" > <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectCity')}</> }</Translation></label> </Col> </Row> </div> <div style={chooseCityShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.deviceXngCityName" name={"deviceXngCityName"} value={this.state.addTrunkGroupOrder.deviceXngCityName ||''} placeholder={"Device Xng City Name"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.deviceXngCityCode" name={"deviceXngCityCode"} value={this.state.addTrunkGroupOrder.deviceXngCityCode ||''} placeholder={"Device Xng City Code"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addCityFlag} onChange={this.toggleCityDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2" > <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectCity')}</> }</Translation></label> </Col> </Row> </div> <div style={chooseSiteShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.csrName" name={"csrName"} value={this.state.addTrunkGroupOrder.csrName ||''} placeholder={"Enter CSR Name"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addSiteFlag} onChange={this.toggleSiteDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectSite')}</> }</Translation></label> </Col> </Row> </div> <div style={addSiteShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Select title="order.trunkGroup.physicalSite" name={"site"} multiple={false} options={this.state.site} value={this.state.addTrunkGroupOrder.site} placeholder={"Choose a Site"} handleChange={this.handleInput} isrequired={true}/> <span style={spanStyle}>{this.state.errors.site}</span> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addSiteFlag} onChange={this.toggleSiteDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectSite')}</> }</Translation></label> </Col> </Row> </div> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <CheckBox title="order.trunkGroup.voip" name={"voipClassOfService"} checked={this.state.voipClassOfService} handleChange={this.handleCheckBox} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4" style={voipClassOfServiceFlagShow}> <FormGroup> {/* <label className="form-label" style={labelStyles} ><Translation>{ (t) => <>{t('order.trunkGroup.voipClassService')}</> }</Translation></label> */} <Select title="order.trunkGroup.voipClassService" name={"voip"} multiple={false} options={this.state.voip} value={this.state.addTrunkGroupOrder.voip} placeholder={"Choose a voip Class Service"} handleChange={this.handleInput} isrequired={true}/> </FormGroup> </Col> </Row> <Row className="div-margin heading-green-row"> <Col className="heading-green" xs="12" sm="12" md="12"> <Translation>{(t) => <>{t('order.trunkGroup.device')}</>}</Translation> </Col> </Row> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.routerId" name={"routerId"} value={this.state.addTrunkGroupOrder.routerId ||''} placeholder={"Enter Router ID"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.managementAddress" name={"managementAddress"} value={this.state.addTrunkGroupOrder.managementAddress ||''} placeholder={"Enter Management Address"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <label className="form-label" style={labelStyles} ><Translation>{ (t) => <>{t('order.trunkGroup.vendorModel')}</> }</Translation></label> <CountryList/> </FormGroup> </Col> </Row> <div style={addDeviceShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.deviceName" name={"deviceName"} value={this.state.addTrunkGroupOrder.deviceName ||''} placeholder={"Enter Device Name"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addDeviceFlag} onChange={this.toggleDeviceDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2" > <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectDevice')}</> }</Translation></label> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpro" name={"snmpro"} value={this.state.addTrunkGroupOrder.snmpro ||''} placeholder={"Enter Snmpro Details"} onChange={this.handleInput} /> </FormGroup> </Col> </Row> </div> <div style={chooseDeviceShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Select title="order.trunkGroup.deviceName" name={"deviceNameSelect"} multiple={false} options={this.state.deviceNameSelect} value={this.state.addTrunkGroupOrder.deviceNameSelect} placeholder={"Choose a Device"} handleChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addDeviceFlag} onChange={this.toggleDeviceDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectDevice')}</> }</Translation></label> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpro" name={"snmpro"} value={this.state.addTrunkGroupOrder.snmpro ||''} placeholder={"Enter Snmpro Details"} onChange={this.handleInput} /> </FormGroup> </Col> </Row> </div> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmprw" name={"snmprw"} value={this.state.addTrunkGroupOrder.snmprw ||''} placeholder={"Enter Snmprw Details"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpv3ContextName" name={"snmpv3ContextName"} value={this.state.addTrunkGroupOrder.snmpv3ContextName ||''} placeholder={"Enter Snmp V3 Context Name"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpv3ContextEngineId" name={"snmpv3ContextEngineId"} value={this.state.addTrunkGroupOrder.snmpv3ContextEngineId ||''} placeholder={"Enter Snmp V3 Context Engine ID"} onChange={this.handleInput} /> </FormGroup> </Col> </Row> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpv3SecurityUserName" name={"snmpv3SecurityUserName"} value={this.state.addTrunkGroupOrder.snmpv3SecurityUserName ||''} placeholder={"Enter Snmp V3 Security Username"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpv3AuthProto" name={"snmpv3AuthProto"} value={this.state.addTrunkGroupOrder.snmpv3AuthProto ||''} placeholder={"Snmp V3 Auth Proto"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.snmpv3AuthPassword" name={"snmpv3AuthPassword"} value={this.state.addTrunkGroupOrder.snmpv3AuthPassword ||''} placeholder={"Enter Snmp V3 Auth Password"} onChange={this.handleInput} /> </FormGroup> </Col> </Row> <div style={addPremiseShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <label className="form-label" style={labelStyles} ><Translation>{ (t) => <>{t('order.trunkGroup.premise')}</> }</Translation></label> <CountryList/> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addPremiseFlag} onChange={this.togglePremiseDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectPremise')}</> }</Translation></label> </Col> </Row> </div> <div style={choosePremiseShow}> <Row className="div-margin"> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.premiseName" name={"premiseName"} value={this.state.addTrunkGroupOrder.premiseName ||''} placeholder={"Premise Name"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="4"> <FormGroup> <Input inputtype={"text"} title="order.trunkGroup.premiseCode" name={"premiseCode"} value={this.state.addTrunkGroupOrder.premiseCode ||''} placeholder={"Premise Code"} onChange={this.handleInput} /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <FormGroup style={{marginTop:"8%"}}> <Switch checked={this.state.addPremiseFlag} onChange={this.togglePremiseDetails} uncheckedIcon={false} checkedIcon={false} onColor={'#088'} offColor={'#888'} className="react-switch" id="icon-switch" /> </FormGroup> </Col> <Col xs="12" sm="12" md="2"> <label className="form-label" style={labelStyle} ><Translation>{ (t) => <>{t('common.selectPremise')}</> }</Translation></label> </Col> </Row> </div> </div> <Row> <Col> <FormGroup> <Button action={this.handleClearForm} type={"secondary"} align={'right'} submit={true} title="common.cancel"/> <Button action={this.handleClearForm} type={"secondary"} align={'right'} submit={true} title="common.next"/> </FormGroup> </Col> </Row> </Form> </Container> </div> ); } } const labelStyle = { color: "gray", display: "inline-block", maxWidth: "100%", marginBottom: "5px", fontWeight: "500", marginTop: "19px", marginLeft:"-67%" }; const labelStyles = { color: "gray", display: "inline-block", maxWidth: "100%", marginBottom: "5px", fontWeight: "500", }; const spanStyle={ color: "red" } export default AddTrunkGroupOrder
import OpnSettingTab from "./settingTab"; import { Plugin, TFile } from "obsidian"; import { log, publishNote } from "./utils"; import { Client } from "@notionhq/client"; const DEFAULT_SETTINGS = { token: "", database: "", }; /** * * Icons list * * 'logo-crystal', 'create-new', 'trash', 'search', 'right-triangle', 'document', 'folder', 'pencil', 'left-arrow', 'right-arrow', 'three-horizontal-bars', 'dot-network', 'audio-file', 'image-file', 'pdf-file', 'gear', 'documents', 'blocks', 'go-to-file', 'presentation', 'cross-in-box', 'microphone', 'microphone-filled', 'two-columns', 'link', 'popup-open', 'checkmark', 'hashtag', 'left-arrow-with-tail', 'right-arrow-with-tail', 'lines-of-text', 'vertical-three-dots', 'pin', 'magnifying-glass', 'info', 'horizontal-split', 'vertical-split', 'calendar-with-checkmark', 'sheets-in-box', 'up-and-down-arrows', 'broken-link', 'cross', 'any-key', 'reset', 'star', 'crossed-star', 'dice', 'filled-pin', 'enter', 'help', 'vault', 'open-vault', 'paper-plane', 'bullet-list', 'uppercase-lowercase-a', 'star-list', 'expand-vertically', 'languages', 'switch', 'pane-layout', 'install' */ export let PLUGIN; export let NOTION_CLIENT; export const pluginIcon = "documents"; export default class ObsidianPublishWithNotion extends Plugin { async onload() { log("loading plugin"); await this.loadSettings(); this.addSettingTab(new OpnSettingTab(this.app, this)); PLUGIN = this; NOTION_CLIENT = new Client({ auth: PLUGIN.settings.token, baseUrl: "https://cors.bridged.cc/https://api.notion.com", }); // * Publish active note onload for faster testing // let activeFile = this.app.workspace.getActiveFile(); // publishNote(activeFile); this.addCommand({ id: "publish-to-notion", name: "Publish", checkCallback: (checking) => { let leaf = this.app.workspace.activeLeaf; let activeFile = this.app.workspace.getActiveFile(); if (!leaf || !activeFile) return false; if (checking) return true; // log(leaf); log(activeFile); publishNote(activeFile); return true; }, }); // * Add Publish menu item to the folder context menu this.registerEvent( this.app.workspace.on("file-menu", (menu, file) => { if (file instanceof TFile) { menu.addItem((item) => { item .setTitle("Publish to Notion") .setIcon(pluginIcon) .onClick(() => publishNote(file)); }); } }) ); } onunload() { log("unloading plugin"); } async loadSettings() { this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData()); } async saveSettings() { await this.saveData(this.settings); } }
const express = require('express'); const path = require('path'); const bodyParser = require('body-parser'); const routes = require('./routes/index'); const app = express(); app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'pug'); app.use(bodyParser.urlencoded({ extended: true })); //app.use(express.static('public')); // Static app.use('/public', express.static(path.join(__dirname, '.', 'public'))); app.use('/', routes); module.exports = app;
import { localize } from '@deriv/translations'; import { messageWithButton, arrayAsMessage } from 'Components'; const showErrorMessageWithButton = (message, block_id, showErrorMessage, centerAndHighlightBlock) => { showErrorMessage( messageWithButton({ unique_id: block_id, type: 'error', message, btn_text: localize('Go to block'), onClick: () => { centerAndHighlightBlock(); }, }) ); }; export const isCustomJournalMessage = ( { message, block_id, variable_name }, showErrorMessage, centerAndHighlightBlock, pushMessage ) => { // notify undefined variable block if (message === undefined && variable_name != null) { showErrorMessageWithButton( localize( "Variable '{{variable_name}}' has no value. Please set a value for variable '{{variable_name}}' to notify.", { variable_name } ), block_id, showErrorMessage, centerAndHighlightBlock ); return true; } // notify null variable block if (message === null) { pushMessage('NULL'); return true; } // notify NaN variable block if (Object.is(message, NaN)) { showErrorMessageWithButton( localize('Tried to perform an invalid operation.'), block_id, showErrorMessage, centerAndHighlightBlock ); return true; } // notify list block if (Array.isArray(message)) { const message_length = message.length; const parsedArray = { header: variable_name !== 'null' ? `${variable_name}: (${message_length})` : localize('List: ({{message_length}})', { message_length }), content: parseArray(message), }; pushMessage(arrayAsMessage(parsedArray)); return true; } // notify boolean results if (typeof message === 'boolean') { pushMessage(message.toString()); return true; } return false; }; const parseArray = message => { return message.map(item => { return { id: new Date().getTime() * Math.random(), value: item && Array.isArray(item) ? parseArray(item) : item, }; }); };
const R = require("ramda") const marked = require("marked") const converter = options => (files, metalsmith, done) => { R.forEachObjIndexed(file => { const markdown = file.contents.toString() // TODO: Regexify all delimiters with #map const slides = R.pipe( splitSlides(file), R.map(R.map(formatSubsection(file))), wrapSlidesInSections )(markdown) Object.assign(file, { contents: new Buffer(slides) }) }, files) done() } const doesColumnHaveSingleSlide = R.pipe(R.length, R.gte(1)) // Anything wrapped should be converted from MD you already trust. const wrap = contents => `<section>${contents}</section>` const wrapSlidesInSections = R.pipe( R.map(R.pipe( R.ifElse( doesColumnHaveSingleSlide, R.head, R.pipe( R.map(wrap), R.join("\n") ) ), wrap )), R.join("\n") ) const formatSubsection = file => R.pipe( R.trim, wrapNotes(file["separator-notes"]), marked) const wrapNotes = R.curry((noteSeparator, markdown) => { // The reveal.js spec has `^Notes?:` as the default separator. To enable // multiline notes (delimited by \n\n or end of string), we have to do some // special altenation magic wrt `^`. noteSeparator = R.replace(/^\^/, "", noteSeparator) const reg = new RegExp(`(^|\\n)${noteSeparator}\\s?([\\w\\W]+?)(?=$|\\n\\n)`, "g") return markdown.replace(reg, (match, p1, p2) => ( `${p1}<aside class='notes'>${marked(p2)}</aside>` )) // TODO: We should ideally combine all notes into one. This is not part of the // behavior of the existing reveal.js spec }) const splitSlides = file => R.pipe( R.split(new RegExp(file["separator"], "m")), R.map(R.split(new RegExp(file["separator-vertical"], "m"))) ) module.exports = converter
require("heatshrink").decompress(atob("mEwwhC/AH4AakUiiMRCiQACC4IACiATIgQUEC44aICxAXIDAoX/C51Eonu7vUAgNEC5IRCABXtDoVAC4cOCpYAF6AXu8AXE8htCR4sUBIQAC7ovEX98EolCokk93iokuX4PRokd7tBohNBU43i9wTBAYfu6PdjwDEO4hHMFYNBAYQvEO94X+lGIxGCC6QWCAAOAC6EYCwYYFC5gSBwc/+c4AoIXOiQWB/4ACDAIXOIwM/CwXzmZIDC5Z1BFwc9n4XPIwk97pIEC54WB74XRx4XBl5GB//4C6Pz0f9DYIXDDBJHE+WqkaoGAAYXJlQWCC5IaEdwfz0SpDU4YALhGImbYDLwIXOgDAEFwJGKC4wYBn/zLoIXQJAIAEIx4YGCyIYECwYA=="))
/** * Auto-generated action file for "Docker Engine" API. * * Generated at: 2019-05-07T14:40:15.285Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / docker-com-engine-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All files of this connector are licensed under the Apache 2.0 License. For details * see the file LICENSE on the toplevel directory. * * * Operation: 'NetworkList' * Endpoint Path: '/networks' * Method: 'get' * */ const Swagger = require('swagger-client'); const processWrapper = require('../services/process-wrapper'); const spec = require('../spec.json'); // this wrapers offers a simplified emitData(data) function module.exports.process = processWrapper(processAction); // parameter names for this call const PARAMETERS = [ "filters" ]; // mappings from connector field names to API field names const FIELD_MAP = { "filters": "filters" }; function processAction(msg, cfg) { var isVerbose = process.env.debug || cfg.verbose; if (isVerbose) { console.log(`---MSG: ${JSON.stringify(msg)}`); console.log(`---CFG: ${JSON.stringify(cfg)}`); console.log(`---ENV: ${JSON.stringify(process.env)}`); } const contentType = undefined; const body = msg.body; mapFieldNames(body); let parameters = {}; for(let param of PARAMETERS) { parameters[param] = body[param]; } // credentials for this operation let securities = {}; let callParams = { spec: spec, operationId: 'NetworkList', pathName: '/networks', method: 'get', parameters: parameters, requestContentType: contentType, requestBody: body.requestBody, securities: {authorized: securities}, server: spec.servers[cfg.server] || cfg.otherServer, }; if (isVerbose) { let out = Object.assign({}, callParams); out.spec = '[omitted]'; console.log(`--SWAGGER CALL: ${JSON.stringify(out)}`); } // Call operation via Swagger client return Swagger.execute(callParams).then(data => { // emit a single message with data this.emitData(data); // if the response contains an array of entities, you can emit them one by one: // data.obj.someItems.forEach((item) => { // this.emitData(item); // } }); } function mapFieldNames(obj) { if(Array.isArray(obj)) { obj.forEach(mapFieldNames); } else if(typeof obj === 'object' && obj) { Object.keys(obj).forEach(key => { mapFieldNames(obj[key]); let goodKey = FIELD_MAP[key]; if(goodKey && goodKey !== key) { obj[goodKey] = obj[key]; delete obj[key]; } }); } }
// @require core/cash.js // @require core/variables.js fn.map = function ( callback ) { return cash ( map.call ( this, ( ele, i ) => callback.call ( ele, i, ele ) ) ); };
const initialState = { user: {}, userGroups: [], error: null, loading: false, } export default (state = initialState, action) => { switch (action.type) { case 'Something': return state default: return state; } }
$(function() { $.get('/config', function(response) { Object.keys(fields).forEach(configureField(fields, response)); Object.keys(buttons).forEach(configureButton(buttons, response)); }); // Button Ids' and Config Keys var buttons = { chatDemoButton: 'TwilioChatServiceSid' }; // Field Ids' and Masked Flag var fields = { twilioAccountSid: false, twilioApiKey: false, twilioApiSecret: true, twilioChatServiceSid: false }; var configureField = function(fields, response) { var htmlContent = 'Not configured in .env'; var cssClass = 'unset'; return function(fieldId) { var configKey = strToConfig(fieldId); var isMasked = fields[fieldId]; if (!!response[configKey]) { htmlContent = isMasked ? 'Configured properly' : response[configKey]; cssClass = 'set'; } $('#' + fieldId).html(htmlContent).addClass(cssClass); }; }; var configureButton = function(buttons, response) { var hasBasicConfig = !!response.TWILIO_ACCOUNT_SID && !!response.TWILIO_API_KEY && !!response.TWILIO_API_SECRET; return function(buttonId) { var configKey = strToConfig(buttons[buttonId]); var cssClass = hasBasicConfig && !!response[configKey] ? 'btn-success' : 'btn-danger'; $('#' + buttonId).addClass(cssClass); }; }; var strToConfig = function(string) { return string .split(/(?=[A-Z])/) .map(function(e) { return e.toUpperCase(); }) .join('_'); } });
/*! p5.dom.js v0.2.10 April 25, 2016 */ /** * <p>The web is much more than just canvas and p5.dom makes it easy to interact * with other HTML5 objects, including text, hyperlink, image, input, video, * audio, and webcam.</p> * <p>There is a set of creation methods, DOM manipulation methods, and * an extended p5.Element that supports a range of HTML elements. See the * <a href="https://github.com/processing/p5.js/wiki/Beyond-the-canvas"> * beyond the canvas tutorial</a> for a full overview of how this addon works. * * <p>Methods and properties shown in black are part of the p5.js core, items in * blue are part of the p5.dom library. You will need to include an extra file * in order to access the blue functions. See the * <a href="http://p5js.org/libraries/#using-a-library">using a library</a> * section for information on how to include this library. p5.dom comes with * <a href="http://p5js.org/download">p5 complete</a> or you can download the single file * <a href="https://raw.githubusercontent.com/lmccart/p5.js/master/lib/addons/p5.dom.js"> * here</a>.</p> * <p>See <a href="https://github.com/processing/p5.js/wiki/Beyond-the-canvas">tutorial: beyond the canvas</a> * for more info on how to use this libary.</a> * * @module p5.dom * @submodule p5.dom * @for p5.dom * @main */ (function (root, factory) { if (typeof define === 'function' && define.amd) define('p5.dom', ['src/p5js/p5'], function (p5) { (factory(p5));}); else if (typeof exports === 'object') {/*factory(require('src/p5js/p5'));*/} else factory(root['p5']); }(this, function (p5) { // ============================================================================= // p5 additions // ============================================================================= /** * Searches the page for an element with the given ID, class, or tag name (using the '#' or '.' * prefixes to specify an ID or class respectively, and none for a tag) and returns it as * a p5.Element. If a class or tag name is given with more than 1 element, * only the first element will be returned. * The DOM node itself can be accessed with .elt. * Returns null if none found. You can also specify a container to search within. * * @method select * @param {String} name id, class, or tag name of element to search for * @param {String} [container] id, p5.Element, or HTML element to search within * @return {Object/p5.Element|Null} p5.Element containing node found * @example * <div ><code class='norender'> * function setup() { * createCanvas(100,100); * //translates canvas 50px down * select('canvas').position(100, 100); * } * </code></div> * <div ><code class='norender'> * // these are all valid calls to select() * var a = select('#moo'); * var b = select('#blah', '#myContainer'); * var c = select('#foo', b); * var d = document.getElementById('beep'); * var e = select('p', d); * </code></div> * */ p5.prototype.select = function (e, p) { var res = null; var container = getContainer(p); if (e[0] === '.'){ e = e.slice(1); res = container.getElementsByClassName(e); if (res.length) { res = res[0]; } else { res = null; } }else if (e[0] === '#'){ e = e.slice(1); res = container.getElementById(e); }else { res = container.getElementsByTagName(e); if (res.length) { res = res[0]; } else { res = null; } } if (res) { return wrapElement(res); } else { return null; } }; /** * Searches the page for elements with the given class or tag name (using the '.' prefix * to specify a class and no prefix for a tag) and returns them as p5.Elements * in an array. * The DOM node itself can be accessed with .elt. * Returns an empty array if none found. * You can also specify a container to search within. * * @method selectAll * @param {String} name class or tag name of elements to search for * @param {String} [container] id, p5.Element, or HTML element to search within * @return {Array} Array of p5.Elements containing nodes found * @example * <div class='norender'><code> * function setup() { * createButton('btn'); * createButton('2nd btn'); * createButton('3rd btn'); * var buttons = selectAll('button'); * * for (var i = 0; i < buttons.length; i++){ * buttons[i].size(100,100); * } * } * </code></div> * <div class='norender'><code> * // these are all valid calls to selectAll() * var a = selectAll('.moo'); * var b = selectAll('div'); * var c = selectAll('button', '#myContainer'); * var d = select('#container'); * var e = selectAll('p', d); * var f = document.getElementById('beep'); * var g = select('.blah', f); * </code></div> * */ p5.prototype.selectAll = function (e, p) { var arr = []; var res; var container = getContainer(p); if (e[0] === '.'){ e = e.slice(1); res = container.getElementsByClassName(e); } else { res = container.getElementsByTagName(e); } if (res) { for (var j = 0; j < res.length; j++) { var obj = wrapElement(res[j]); arr.push(obj); } } return arr; }; /** * Helper function for select and selectAll */ function getContainer(p) { var container = document; if (typeof p === 'string' && p[0] === '#'){ p = p.slice(1); container = document.getElementById(p) || document; } else if (p instanceof p5.Element){ container = p.elt; } else if (p instanceof HTMLElement){ container = p; } return container; } /** * Helper function for getElement and getElements. */ function wrapElement(elt) { if(elt.tagName === "INPUT" && elt.type === "checkbox") { var converted = new p5.Element(elt); converted.checked = function(){ if (arguments.length === 0){ return this.elt.checked; } else if(arguments[0]) { this.elt.checked = true; } else { this.elt.checked = false; } return this; }; return converted; } else if (elt.tagName === "VIDEO" || elt.tagName === "AUDIO") { return new p5.MediaElement(elt); } else { return new p5.Element(elt); } } /** * Removes all elements created by p5, except any canvas / graphics * elements created by createCanvas or createGraphics. * Event handlers are removed, and element is removed from the DOM. * @method removeElements * @example * <div class='norender'><code> * function setup() { * createCanvas(100, 100); * createDiv('this is some text'); * createP('this is a paragraph'); * } * function mousePressed() { * removeElements(); // this will remove the div and p, not canvas * } * </code></div> * */ p5.prototype.removeElements = function (e) { for (var i=0; i<this._elements.length; i++) { if (!(this._elements[i].elt instanceof HTMLCanvasElement)) { this._elements[i].remove(); } } }; /** * Helpers for create methods. */ function addElement(elt, pInst, media) { var node = pInst._userNode ? pInst._userNode : document.body; node.appendChild(elt); var c = media ? new p5.MediaElement(elt) : new p5.Element(elt); pInst._elements.push(c); return c; } /** * Creates a &lt;div&gt;&lt;/div&gt; element in the DOM with given inner HTML. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createDiv * @param {String} html inner HTML for element created * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myDiv; * function setup() { * myDiv = createDiv('this is some text'); * } * </code></div> */ /** * Creates a &lt;p&gt;&lt;/p&gt; element in the DOM with given inner HTML. Used * for paragraph length text. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createP * @param {String} html inner HTML for element created * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myP; * function setup() { * myP = createP('this is some text'); * } * </code></div> */ /** * Creates a &lt;span&gt;&lt;/span&gt; element in the DOM with given inner HTML. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createSpan * @param {String} html inner HTML for element created * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var mySpan; * function setup() { * mySpan = createSpan('this is some text'); * } * </code></div> */ var tags = ['div', 'p', 'span']; tags.forEach(function(tag) { var method = 'create' + tag.charAt(0).toUpperCase() + tag.slice(1); p5.prototype[method] = function(html) { var elt = document.createElement(tag); elt.innerHTML = typeof html === undefined ? "" : html; return addElement(elt, this); } }); /** * Creates an &lt;img /&gt; element in the DOM with given src and * alternate text. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createImg * @param {String} src src path or url for image * @param {String} [alt] alternate text to be used if image does not load * @param {Function} [successCallback] callback to be called once image data is loaded * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var img; * function setup() { * img = createImg('http://p5js.org/img/asterisk-01.png'); * } * </code></div> */ p5.prototype.createImg = function() { var elt = document.createElement('img'); var args = arguments; var self; var setAttrs = function(){ self.width = elt.offsetWidth; self.height = elt.offsetHeight; if (args.length > 1 && typeof args[1] === 'function'){ self.fn = args[1]; self.fn(); }else if (args.length > 1 && typeof args[2] === 'function'){ self.fn = args[2]; self.fn(); } }; elt.src = args[0]; if (args.length > 1 && typeof args[1] === 'string'){ elt.alt = args[1]; } elt.onload = function(){ setAttrs(); } self = addElement(elt, this); return self; }; /** * Creates an &lt;a&gt;&lt;/a&gt; element in the DOM for including a hyperlink. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createA * @param {String} href url of page to link to * @param {String} html inner html of link element to display * @param {String} [target] target where new link should open, * could be _blank, _self, _parent, _top. * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var myLink; * function setup() { * myLink = createA('http://p5js.org/', 'this is a link'); * } * </code></div> */ p5.prototype.createA = function(href, html, target) { var elt = document.createElement('a'); elt.href = href; elt.innerHTML = html; if (target) elt.target = target; return addElement(elt, this); }; /** INPUT **/ /** * Creates a slider &lt;input&gt;&lt;/input&gt; element in the DOM. * Use .size() to set the display length of the slider. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createSlider * @param {Number} min minimum value of the slider * @param {Number} max maximum value of the slider * @param {Number} [value] default value of the slider * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div><code> * var slider; * function setup() { * slider = createSlider(0, 255, 100); * slider.position(10, 10); * slider.style('width', '80px'); * } * * function draw() { * var val = slider.value(); * background(val); * } * </code></div> */ p5.prototype.createSlider = function(min, max, value, step) { var elt = document.createElement('input'); elt.type = 'range'; elt.min = min; elt.max = max; if (step) elt.step = step; if (typeof(value) === "number") elt.value = value; return addElement(elt, this); }; /** * Creates a &lt;button&gt;&lt;/button&gt; element in the DOM. * Use .size() to set the display size of the button. * Use .mousePressed() to specify behavior on press. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createButton * @param {String} label label displayed on the button * @param {String} [value] value of the button * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var button; * function setup() { * createCanvas(100, 100); * background(0); * button = createButton('click me'); * button.position(19, 19); * button.mousePressed(changeBG); * } * * function changeBG() { * var val = random(255); * background(val); * } * </code></div> */ p5.prototype.createButton = function(label, value) { var elt = document.createElement('button'); elt.innerHTML = label; elt.value = value; if (value) elt.value = value; return addElement(elt, this); }; /** * Creates a checkbox &lt;input&gt;&lt;/input&gt; element in the DOM. * Calling .checked() on a checkbox returns if it is checked or not * * @method createCheckbox * @param {String} [label] label displayed after checkbox * @param {boolean} [value] value of the checkbox; checked is true, unchecked is false.Unchecked if no value given * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var checkbox; * * function setup() { * checkbox = createCheckbox('label', false); * checkbox.changed(myCheckedEvent); * } * * function myCheckedEvent() { * if (this.checked()) { * console.log("Checking!"); * } else { * console.log("Unchecking!"); * } * } * </code></div> */ p5.prototype.createCheckbox = function() { var elt = document.createElement('div'); var checkbox = document.createElement('input'); checkbox.type = 'checkbox'; elt.appendChild(checkbox); //checkbox must be wrapped in p5.Element before label so that label appears after var self = addElement(elt, this); self.checked = function(){ var cb = self.elt.getElementsByTagName('input')[0]; if (cb) { if (arguments.length === 0){ return cb.checked; }else if(arguments[0]){ cb.checked = true; }else{ cb.checked = false; } } return self; }; this.value = function(val){ self.value = val; return this; }; if (arguments[0]){ var ran = Math.random().toString(36).slice(2); var label = document.createElement('label'); checkbox.setAttribute('id', ran); label.htmlFor = ran; self.value(arguments[0]); label.appendChild(document.createTextNode(arguments[0])); elt.appendChild(label); } if (arguments[1]){ checkbox.checked = true; } return self; }; /** * Creates a dropdown menu &lt;select&gt;&lt;/select&gt; element in the DOM. * @method createSelect * @param {boolean} [multiple] [true if dropdown should support multiple selections] * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div><code> * var sel; * * function setup() { * textAlign(CENTER); * background(200); * sel = createSelect(); * sel.position(10, 10); * sel.option('pear'); * sel.option('kiwi'); * sel.option('grape'); * sel.changed(mySelectEvent); * } * * function mySelectEvent() { * var item = sel.value(); * background(200); * text("it's a "+item+"!", 50, 50); * } * </code></div> */ p5.prototype.createSelect = function(mult) { var elt = document.createElement('select'); if (mult){ elt.setAttribute('multiple', 'true'); } var self = addElement(elt, this); self.option = function(name, value){ var opt = document.createElement('option'); opt.innerHTML = name; if (arguments.length > 1) opt.value = value; else opt.value = name; elt.appendChild(opt); }; self.selected = function(value){ var arr = []; if (arguments.length > 0){ for (var i = 0; i < this.elt.length; i++){ if (value.toString() === this.elt[i].value){ this.elt.selectedIndex = i; } } return this; }else{ if (mult){ for (var i = 0; i < this.elt.selectedOptions.length; i++){ arr.push(this.elt.selectedOptions[i].value); } return arr; }else{ return this.elt.value; } } }; return self; }; /** * Creates a radio button &lt;input&gt;&lt;/input&gt; element in the DOM. * The .option() method can be used to set options for the radio after it is * created. The .value() method will return the currently selected option. * * @method createRadio * @param {String} [divId] the id and name of the created div and input field respectively * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div><code> * var radio; * * function setup() { * radio = createRadio(); * radio.option("black"); * radio.option("white"); * radio.option("gray"); * radio.style('width', '60px'); * textAlign(CENTER); * fill(255, 0, 0); * } * * function draw() { * var val = radio.value(); * background(val); * text(val, width/2, height/2); * } * </code></div> * <div><code> * var radio; * * function setup() { * radio = createRadio(); * radio.option('apple', 1); * radio.option('bread', 2); * radio.option('juice', 3); * radio.style('width', '60px'); * textAlign(CENTER); * } * * function draw() { * background(200); * var val = radio.value(); * if (val) { * text('item cost is $'+val, width/2, height/2); * } * } * </code></div> */ p5.prototype.createRadio = function() { var radios = document.querySelectorAll("input[type=radio]"); var count = 0; if(radios.length > 1){ console.log(radios,radios[0].name); var length = radios.length; var prev=radios[0].name; var current = radios[1].name; count=1; for(var i = 1; i < length; i++ ){ current = radios[i].name; if(prev != current){ count++; } prev = current; } } else if (radios.length == 1){ count = 1; } var elt = document.createElement('div'); var self = addElement(elt, this); var times = -1; self.option = function(name, value){ var opt = document.createElement('input'); opt.type = 'radio'; opt.innerHTML = name; if (arguments.length > 1) opt.value = value; else opt.value = name; opt.setAttribute('name',"defaultradio"+count); elt.appendChild(opt); if (name){ times++; var ran = Math.random().toString(36).slice(2); var label = document.createElement('label'); opt.setAttribute('id', "defaultradio"+count+"-"+times); label.htmlFor = "defaultradio"+count+"-"+times; label.appendChild(document.createTextNode(name)); elt.appendChild(label); } return opt; }; self.selected = function(){ var length = this.elt.childNodes.length; if(arguments[0]) { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].value == arguments[0]) this.elt.childNodes[i].checked = true; } return this; } else { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].checked == true) return this.elt.childNodes[i].value; } } }; self.value = function(){ var length = this.elt.childNodes.length; if(arguments[0]) { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].value == arguments[0]) this.elt.childNodes[i].checked = true; } return this; } else { for (var i = 0; i < length; i+=2){ if(this.elt.childNodes[i].checked == true) return this.elt.childNodes[i].value; } return ""; } }; return self }; /** * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM for text input. * Use .size() to set the display length of the box. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createInput * @param {Number} [value] default value of the input box * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * function setup(){ * var inp = createInput(''); * inp.input(myInputEvent); * } * * function myInputEvent(){ * console.log('you are typing: ', this.value()); * } * * </code></div> */ p5.prototype.createInput = function(value) { var elt = document.createElement('input'); elt.type = 'text'; if (value) elt.value = value; return addElement(elt, this); }; /** * Creates an &lt;input&gt;&lt;/input&gt; element in the DOM of type 'file'. * This allows users to select local files for use in a sketch. * * @method createFileInput * @param {Function} [callback] callback function for when a file loaded * @param {String} [multiple] optional to allow multiple files selected * @return {Object/p5.Element} pointer to p5.Element holding created DOM element */ p5.prototype.createFileInput = function(callback, multiple) { // Is the file stuff supported? if (window.File && window.FileReader && window.FileList && window.Blob) { // Yup, we're ok and make an input file selector var elt = document.createElement('input'); elt.type = 'file'; // If we get a second argument that evaluates to true // then we are looking for multiple files if (multiple) { // Anything gets the job done elt.multiple = 'multiple'; } // Function to handle when a file is selected // We're simplifying life and assuming that we always // want to load every selected file function handleFileSelect(evt) { // These are the files var files = evt.target.files; // Load each one and trigger a callback for (var i = 0; i < files.length; i++) { var f = files[i]; var reader = new FileReader(); function makeLoader(theFile) { // Making a p5.File object var p5file = new p5.File(theFile); return function(e) { p5file.data = e.target.result; callback(p5file); }; }; reader.onload = makeLoader(f); // Text or data? // This should likely be improved if (f.type.indexOf('text') > -1) { reader.readAsText(f); } else { reader.readAsDataURL(f); } } } // Now let's handle when a file was selected elt.addEventListener('change', handleFileSelect, false); return addElement(elt, this); } else { console.log('The File APIs are not fully supported in this browser. Cannot create element.'); } }; /** VIDEO STUFF **/ function createMedia(pInst, type, src, callback) { var elt = document.createElement(type); // allow src to be empty var src = src || ''; if (typeof src === 'string') { src = [src]; } for (var i=0; i<src.length; i++) { var source = document.createElement('source'); source.src = src[i]; elt.appendChild(source); } if (typeof callback !== 'undefined') { var callbackHandler = function() { callback(); elt.removeEventListener('canplaythrough', callbackHandler); } elt.addEventListener('canplaythrough', callbackHandler); } var c = addElement(elt, pInst, true); c.loadedmetadata = false; // set width and height onload metadata elt.addEventListener('loadedmetadata', function() { c.width = elt.videoWidth; c.height = elt.videoHeight; // set elt width and height if not set if (c.elt.width === 0) c.elt.width = elt.videoWidth; if (c.elt.height === 0) c.elt.height = elt.videoHeight; c.loadedmetadata = true; }); return c; } /** * Creates an HTML5 &lt;video&gt; element in the DOM for simple playback * of audio/video. Shown by default, can be hidden with .hide() * and drawn into canvas using video(). Appends to the container * node if one is specified, otherwise appends to body. The first parameter * can be either a single string path to a video file, or an array of string * paths to different formats of the same video. This is useful for ensuring * that your video can play across different browsers, as each supports * different formats. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats">this * page</a> for further information about supported formats. * * @method createVideo * @param {String|Array} src path to a video file, or array of paths for * supporting different browsers * @param {Object} [callback] callback function to be called upon * 'canplaythrough' event fire, that is, when the * browser can play the media, and estimates that * enough data has been loaded to play the media * up to its end without having to stop for * further buffering of content * @return {Object/p5.Element} pointer to video p5.Element */ p5.prototype.createVideo = function(src, callback) { return createMedia(this, 'video', src, callback); }; /** AUDIO STUFF **/ /** * Creates a hidden HTML5 &lt;audio&gt; element in the DOM for simple audio * playback. Appends to the container node if one is specified, * otherwise appends to body. The first parameter * can be either a single string path to a audio file, or an array of string * paths to different formats of the same audio. This is useful for ensuring * that your audio can play across different browsers, as each supports * different formats. See <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats">this * page for further information about supported formats</a>. * * @method createAudio * @param {String|Array} src path to an audio file, or array of paths for * supporting different browsers * @param {Object} [callback] callback function to be called upon * 'canplaythrough' event fire, that is, when the * browser can play the media, and estimates that * enough data has been loaded to play the media * up to its end without having to stop for * further buffering of content * @return {Object/p5.Element} pointer to audio p5.Element */ p5.prototype.createAudio = function(src, callback) { return createMedia(this, 'audio', src, callback); }; /** CAMERA STUFF **/ p5.prototype.VIDEO = 'video'; p5.prototype.AUDIO = 'audio'; navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia; /** * <p>Creates a new &lt;video&gt; element that contains the audio/video feed * from a webcam. This can be drawn onto the canvas using video().</p> * <p>More specific properties of the feed can be passing in a Constraints object. * See the * <a href="http://w3c.github.io/mediacapture-main/getusermedia.html#media-track-constraints"> W3C * spec</a> for possible properties. Note that not all of these are supported * by all browsers.</p> * <p>Security note: A new browser security specification requires that getUserMedia, * which is behind createCapture(), only works when you're running the code locally, * or on HTTPS. Learn more <a href="http://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https">here</a> * and <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">here</a>.</p> * * @method createCapture * @param {String|Constant|Object} type type of capture, either VIDEO or * AUDIO if none specified, default both, * or a Constraints object * @param {Function} callback function to be called once * stream has loaded * @return {Object/p5.Element} capture video p5.Element * @example * <div class='norender'><code> * var capture; * * function setup() { * createCanvas(480, 120); * capture = createCapture(VIDEO); * } * * function draw() { * image(capture, 0, 0, width, width*capture.height/capture.width); * filter(INVERT); * } * </code></div> * <div class='norender'><code> * function setup() { * createCanvas(480, 120); * var constraints = { * video: { * mandatory: { * minWidth: 1280, * minHeight: 720 * }, * optional: [ * { maxFrameRate: 10 } * ] * }, * audio: true * }; * createCapture(constraints, function(stream) { * console.log(stream); * }); * } * </code></div> */ p5.prototype.createCapture = function() { var useVideo = true; var useAudio = true; var constraints; var cb; for (var i=0; i<arguments.length; i++) { if (arguments[i] === p5.prototype.VIDEO) { useAudio = false; } else if (arguments[i] === p5.prototype.AUDIO) { useVideo = false; } else if (typeof arguments[i] === 'object') { constraints = arguments[i]; } else if (typeof arguments[i] === 'function') { cb = arguments[i]; } } if (navigator.getUserMedia) { var elt = document.createElement('video'); if (!constraints) { constraints = {video: useVideo, audio: useAudio}; } navigator.getUserMedia(constraints, function(stream) { elt.src = window.URL.createObjectURL(stream); if (cb) { cb(stream); } }, function(e) { console.log(e); }); } else { throw 'getUserMedia not supported in this browser'; } var c = addElement(elt, this, true); c.loadedmetadata = false; // set width and height onload metadata elt.addEventListener('loadedmetadata', function() { elt.play(); c.width = elt.width = elt.videoWidth; c.height = elt.height = elt.videoHeight; c.loadedmetadata = true; }); return c; }; /** * Creates element with given tag in the DOM with given content. * Appends to the container node if one is specified, otherwise * appends to body. * * @method createElement * @param {String} tag tag for the new element * @param {String} [content] html content to be inserted into the element * @return {Object/p5.Element} pointer to p5.Element holding created node * @example * <div class='norender'><code> * var h2 = createElement('h2','im an h2 p5.element!'); * </code></div> */ p5.prototype.createElement = function(tag, content) { var elt = document.createElement(tag); if (typeof content !== 'undefined') { elt.innerHTML = content; } return addElement(elt, this); }; // ============================================================================= // p5.Element additions // ============================================================================= /** * * Adds specified class to the element. * * @for p5.Element * @method addClass * @param {String} class name of class to add * @return {Object/p5.Element} * @example * <div class='norender'><code> * var div = createDiv('div'); * div.addClass('myClass'); * </code></div> */ p5.Element.prototype.addClass = function(c) { if (this.elt.className) { // PEND don't add class more than once //var regex = new RegExp('[^a-zA-Z\d:]?'+c+'[^a-zA-Z\d:]?'); //if (this.elt.className.search(/[^a-zA-Z\d:]?hi[^a-zA-Z\d:]?/) === -1) { this.elt.className = this.elt.className+' '+c; //} } else { this.elt.className = c; } return this; } /** * * Removes specified class from the element. * * @method removeClass * @param {String} class name of class to remove * @return {Object/p5.Element} */ p5.Element.prototype.removeClass = function(c) { var regex = new RegExp('(?:^|\\s)'+c+'(?!\\S)'); this.elt.className = this.elt.className.replace(regex, ''); this.elt.className = this.elt.className.replace(/^\s+|\s+$/g, ""); //prettify (optional) return this; } /** * * Attaches the element as a child to the parent specified. * Accepts either a string ID, DOM node, or p5.Element. * If no argument is specified, an array of children DOM nodes is returned. * * @method child * @param {String|Object|p5.Element} [child] the ID, DOM node, or p5.Element * to add to the current element * @return {p5.Element} * @example * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var div1 = createDiv('this is the child'); * div0.child(div1); // use p5.Element * </code></div> * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var div1 = createDiv('this is the child'); * div1.id('apples'); * div0.child('apples'); // use id * </code></div> * <div class='norender'><code> * var div0 = createDiv('this is the parent'); * var elt = document.getElementById('myChildDiv'); * div0.child(elt); // use element from page * </code></div> */ p5.Element.prototype.child = function(c) { if (c === null){ return this.elt.childNodes } if (typeof c === 'string') { if (c[0] === '#') { c = c.substring(1); } c = document.getElementById(c); } else if (c instanceof p5.Element) { c = c.elt; } this.elt.appendChild(c); return this; }; /** * Centers a p5 Element either vertically, horizontally, * or both, relative to its parent or according to * the body if the Element has no parent. If no argument is passed * the Element is aligned both vertically and horizontally. * * @param {String} align passing 'vertical', 'horizontal' aligns element accordingly * @return {Object/p5.Element} pointer to p5.Element * @example * <div><code> * function setup() { * var div = createDiv('').size(10,10); * div.style('background-color','orange'); * div.center(); * * } * </code></div> */ p5.Element.prototype.center = function(align) { var style = this.elt.style.display; var hidden = this.elt.style.display === 'none'; var parentHidden = this.parent().style.display === 'none'; var pos = { x : this.elt.offsetLeft, y : this.elt.offsetTop }; if (hidden) this.show(); this.elt.style.display = 'block'; this.position(0,0); if (parentHidden) this.parent().style.display = 'block'; var wOffset = Math.abs(this.parent().offsetWidth - this.elt.offsetWidth); var hOffset = Math.abs(this.parent().offsetHeight - this.elt.offsetHeight); var y = pos.y; var x = pos.x; if (align === 'both' || align === undefined){ this.position(wOffset/2, hOffset/2); }else if (align === 'horizontal'){ this.position(wOffset/2, y); }else if (align === 'vertical'){ this.position(x, hOffset/2); } this.style('display', style); if (hidden) this.hide(); if (parentHidden) this.parent().style.display = 'none'; return this; }; /** * * If an argument is given, sets the inner HTML of the element, * replacing any existing html. If no arguments are given, returns * the inner HTML of the element. * * @for p5.Element * @method html * @param {String} [html] the HTML to be placed inside the element * @return {Object/p5.Element|String} * @example * <div class='norender'><code> * var div = createDiv('').size(100,100); * div.style('background-color','orange'); * div.html('hi'); * </code></div> */ p5.Element.prototype.html = function(html) { if (typeof html !== 'undefined') { this.elt.innerHTML = html; return this; } else { return this.elt.innerHTML; } }; /** * * Sets the position of the element relative to (0, 0) of the * window. Essentially, sets position:absolute and left and top * properties of style. If no arguments given returns the x and y position * of the element in an object. * * @method position * @param {Number} [x] x-position relative to upper left of window * @param {Number} [y] y-position relative to upper left of window * @return {Object/p5.Element} * @example * <div><code class='norender'> * function setup() { * var cnv = createCanvas(100, 100); * // positions canvas 50px to the right and 100px * // below upper left corner of the window * cnv.position(50, 100); * } * </code></div> */ p5.Element.prototype.position = function() { if (arguments.length === 0){ return { 'x' : this.elt.offsetLeft , 'y' : this.elt.offsetTop }; }else{ this.elt.style.position = 'absolute'; this.elt.style.left = arguments[0]+'px'; this.elt.style.top = arguments[1]+'px'; this.x = arguments[0]; this.y = arguments[1]; return this; } }; /* Helper method called by p5.Element.style() */ p5.Element.prototype._translate = function(){ this.elt.style.position = 'absolute'; // save out initial non-translate transform styling var transform = ''; if (this.elt.style.transform) { transform = this.elt.style.transform.replace(/translate3d\(.*\)/g, ''); transform = transform.replace(/translate[X-Z]?\(.*\)/g, ''); } if (arguments.length === 2) { this.elt.style.transform = 'translate('+arguments[0]+'px, '+arguments[1]+'px)'; } else if (arguments.length > 2) { this.elt.style.transform = 'translate3d('+arguments[0]+'px,'+arguments[1]+'px,'+arguments[2]+'px)'; if (arguments.length === 3) { this.elt.parentElement.style.perspective = '1000px'; } else { this.elt.parentElement.style.perspective = arguments[3]+'px'; } } // add any extra transform styling back on end this.elt.style.transform += transform; return this; }; /* Helper method called by p5.Element.style() */ p5.Element.prototype._rotate = function(){ // save out initial non-rotate transform styling var transform = ''; if (this.elt.style.transform) { var transform = this.elt.style.transform.replace(/rotate3d\(.*\)/g, ''); transform = transform.replace(/rotate[X-Z]?\(.*\)/g, ''); } if (arguments.length === 1){ this.elt.style.transform = 'rotate('+arguments[0]+'deg)'; }else if (arguments.length === 2){ this.elt.style.transform = 'rotate('+arguments[0]+'deg, '+arguments[1]+'deg)'; }else if (arguments.length === 3){ this.elt.style.transform = 'rotateX('+arguments[0]+'deg)'; this.elt.style.transform += 'rotateY('+arguments[1]+'deg)'; this.elt.style.transform += 'rotateZ('+arguments[2]+'deg)'; } // add remaining transform back on this.elt.style.transform += transform; return this; }; /** * Sets the given style (css) property (1st arg) of the element with the * given value (2nd arg). If a single argument is given, .style() * returns the value of the given property; however, if the single argument * is given in css syntax ('text-align:center'), .style() sets the css * appropriatly. .style() also handles 2d and 3d css transforms. If * the 1st arg is 'rotate', 'translate', or 'position', the following arguments * accept Numbers as values. ('translate', 10, 100, 50); * * @method style * @param {String} property property to be set * @param {String|Number|p5.Color} [value] value to assign to property * @param {String|Number} [value] value to assign to property (rotate/translate) * @param {String|Number} [value] value to assign to property (rotate/translate) * @param {String|Number} [value] value to assign to property (translate) * @return {String|Object/p5.Element} value of property, if no value is specified * or p5.Element * @example * <div><code class="norender"> * var myDiv = createDiv("I like pandas."); * myDiv.style("font-size", "18px"); * myDiv.style("color", "#ff0000"); * </code></div> * <div><code class="norender"> * var col = color(25,23,200,50); * var button = createButton("button"); * button.style("background-color", col); * button.position(10, 10); * </code></div> * <div><code class="norender"> * var myDiv = createDiv("I like lizards."); * myDiv.style("position", 20, 20); * myDiv.style("rotate", 45); * </code></div> * <div><code class="norender"> * var myDiv; * function setup() { * background(200); * myDiv = createDiv("I like gray."); * myDiv.position(20, 20); * } * * function draw() { * myDiv.style("font-size", mouseX+"px"); * } * </code></div> */ p5.Element.prototype.style = function(prop, val) { var self = this; if (val instanceof p5.Color) { val = 'rgba(' + val.levels[0] + ',' + val.levels[1] + ',' + val.levels[2] + ',' + val.levels[3]/255 + ')' } if (typeof val === 'undefined') { if (prop.indexOf(':') === -1) { var styles = window.getComputedStyle(self.elt); var style = styles.getPropertyValue(prop); return style; } else { var attrs = prop.split(';'); for (var i = 0; i < attrs.length; i++) { var parts = attrs[i].split(':'); if (parts[0] && parts[1]) { this.elt.style[parts[0].trim()] = parts[1].trim(); } } } } else { if (prop === 'rotate' || prop === 'translate' || prop === 'position'){ var trans = Array.prototype.shift.apply(arguments); var f = this[trans] || this['_'+trans]; f.apply(this, arguments); } else { this.elt.style[prop] = val; if (prop === 'width' || prop === 'height' || prop === 'left' || prop === 'top') { var numVal = val.replace(/\D+/g, ''); this[prop] = parseInt(numVal, 10); // pend: is this necessary? } } } return this; }; /** * * Adds a new attribute or changes the value of an existing attribute * on the specified element. If no value is specified, returns the * value of the given attribute, or null if attribute is not set. * * @method attribute * @param {String} attr attribute to set * @param {String} [value] value to assign to attribute * @return {String|Object/p5.Element} value of attribute, if no value is * specified or p5.Element * @example * <div class="norender"><code> * var myDiv = createDiv("I like pandas."); * myDiv.attribute("align", "center"); * </code></div> */ p5.Element.prototype.attribute = function(attr, value) { if (typeof value === 'undefined') { return this.elt.getAttribute(attr); } else { this.elt.setAttribute(attr, value); return this; } }; /** * Either returns the value of the element if no arguments * given, or sets the value of the element. * * @method value * @param {String|Number} [value] * @return {String|Object/p5.Element} value of element if no value is specified or p5.Element * @example * <div class='norender'><code> * // gets the value * var inp; * function setup() { * inp = createInput(''); * } * * function mousePressed() { * print(inp.value()); * } * </code></div> * <div class='norender'><code> * // sets the value * var inp; * function setup() { * inp = createInput('myValue'); * } * * function mousePressed() { * inp.value("myValue"); * } * </code></div> */ p5.Element.prototype.value = function() { if (arguments.length > 0) { this.elt.value = arguments[0]; return this; } else { if (this.elt.type === 'range') { return parseFloat(this.elt.value); } else return this.elt.value; } }; /** * * Shows the current element. Essentially, setting display:block for the style. * * @method show * @return {Object/p5.Element} * @example * <div class='norender'><code> * var div = createDiv('div'); * div.attribute("display", "none"); * div.show(); // turns display to block * </code></div> */ p5.Element.prototype.show = function() { this.elt.style.display = 'block'; return this; }; /** * Hides the current element. Essentially, setting display:none for the style. * * @method hide * @return {Object/p5.Element} * @example * <div class='norender'><code> * var div = createDiv('this is a div'); * div.hide(); * </code></div> */ p5.Element.prototype.hide = function() { this.elt.style.display = 'none'; return this; }; /** * * Sets the width and height of the element. AUTO can be used to * only adjust one dimension. If no arguments given returns the width and height * of the element in an object. * * @method size * @param {Number} [w] width of the element * @param {Number} [h] height of the element * @return {Object/p5.Element} * @example * <div class='norender'><code> * var div = createDiv('this is a div'); * div.size(100, 100); * </code></div> */ p5.Element.prototype.size = function(w, h) { if (arguments.length === 0){ return { 'width' : this.elt.offsetWidth , 'height' : this.elt.offsetHeight }; }else{ var aW = w; var aH = h; var AUTO = p5.prototype.AUTO; if (aW !== AUTO || aH !== AUTO) { if (aW === AUTO) { aW = h * this.width / this.height; } else if (aH === AUTO) { aH = w * this.height / this.width; } // set diff for cnv vs normal div if (this.elt instanceof HTMLCanvasElement) { var j = {}; var k = this.elt.getContext('2d'); for (var prop in k) { j[prop] = k[prop]; } this.elt.setAttribute('width', aW * this._pInst._pixelDensity); this.elt.setAttribute('height', aH * this._pInst._pixelDensity); this.elt.setAttribute('style', 'width:' + aW + 'px; height:' + aH + 'px'); this._pInst.scale(this._pInst._pixelDensity, this._pInst._pixelDensity); for (var prop in j) { this.elt.getContext('2d')[prop] = j[prop]; } } else { this.elt.style.width = aW+'px'; this.elt.style.height = aH+'px'; this.elt.width = aW; this.elt.height = aH; this.width = aW; this.height = aH; } this.width = this.elt.offsetWidth; this.height = this.elt.offsetHeight; if (this._pInst) { // main canvas associated with p5 instance if (this._pInst._curElement.elt === this.elt) { this._pInst._setProperty('width', this.elt.offsetWidth); this._pInst._setProperty('height', this.elt.offsetHeight); } } } return this; } }; /** * Removes the element and deregisters all listeners. * @method remove * @example * <div class='norender'><code> * var myDiv = createDiv('this is some text'); * myDiv.remove(); * </code></div> */ p5.Element.prototype.remove = function() { // deregister events for (var ev in this._events) { this.elt.removeEventListener(ev, this._events[ev]); } if (this.elt.parentNode) { this.elt.parentNode.removeChild(this.elt); } delete(this); }; // ============================================================================= // p5.MediaElement additions // ============================================================================= /** * Extends p5.Element to handle audio and video. In addition to the methods * of p5.Element, it also contains methods for controlling media. It is not * called directly, but p5.MediaElements are created by calling createVideo, * createAudio, and createCapture. * * @class p5.MediaElement * @constructor * @param {String} elt DOM node that is wrapped * @param {Object} [pInst] pointer to p5 instance */ p5.MediaElement = function(elt, pInst) { p5.Element.call(this, elt, pInst); var self = this; this.elt.crossOrigin = 'anonymous'; this._prevTime = 0; this._cueIDCounter = 0; this._cues = []; this._pixelDensity = 1; /** * Path to the media element source. * * @property src * @return {String} src */ Object.defineProperty(self, 'src', { get: function() { var firstChildSrc = self.elt.children[0].src; var srcVal = self.elt.src === window.location.href ? '' : self.elt.src; var ret = firstChildSrc === window.location.href ? srcVal : firstChildSrc; return ret; }, set: function(newValue) { for (var i = 0; i < self.elt.children.length; i++) { self.elt.removeChild(self.elt.children[i]); } var source = document.createElement('source'); source.src = newValue; elt.appendChild(source); self.elt.src = newValue; }, }); // private _onended callback, set by the method: onended(callback) self._onended = function() {}; self.elt.onended = function() { self._onended(self); } }; p5.MediaElement.prototype = Object.create(p5.Element.prototype); /** * Play an HTML5 media element. * * @method play * @return {Object/p5.Element} */ p5.MediaElement.prototype.play = function() { if (this.elt.currentTime === this.elt.duration) { this.elt.currentTime = 0; } if (this.elt.readyState > 1) { this.elt.play(); } else { // in Chrome, playback cannot resume after being stopped and must reload this.elt.load(); this.elt.play(); } return this; }; /** * Stops an HTML5 media element (sets current time to zero). * * @method stop * @return {Object/p5.Element} */ p5.MediaElement.prototype.stop = function() { this.elt.pause(); this.elt.currentTime = 0; return this; }; /** * Pauses an HTML5 media element. * * @method pause * @return {Object/p5.Element} */ p5.MediaElement.prototype.pause = function() { this.elt.pause(); return this; }; /** * Set 'loop' to true for an HTML5 media element, and starts playing. * * @method loop * @return {Object/p5.Element} */ p5.MediaElement.prototype.loop = function() { this.elt.setAttribute('loop', true); this.play(); return this; }; /** * Set 'loop' to false for an HTML5 media element. Element will stop * when it reaches the end. * * @method noLoop * @return {Object/p5.Element} */ p5.MediaElement.prototype.noLoop = function() { this.elt.setAttribute('loop', false); return this; }; /** * Set HTML5 media element to autoplay or not. * * @method autoplay * @param {Boolean} autoplay whether the element should autoplay * @return {Object/p5.Element} */ p5.MediaElement.prototype.autoplay = function(val) { this.elt.setAttribute('autoplay', val); return this; }; /** * Sets volume for this HTML5 media element. If no argument is given, * returns the current volume. * * @param {Number} [val] volume between 0.0 and 1.0 * @return {Number|p5.MediaElement} current volume or p5.MediaElement * @method volume */ p5.MediaElement.prototype.volume = function(val) { if (typeof val === 'undefined') { return this.elt.volume; } else { this.elt.volume = val; } }; /** * If no arguments are given, returns the current playback speed of the * element. The speed parameter sets the speed where 2.0 will play the * element twice as fast, 0.5 will play at half the speed, and -1 will play * the element in normal speed in reverse.(Note that not all browsers support * backward playback and even if they do, playback might not be smooth.) * * @method speed * @param {Number} [speed] speed multiplier for element playback * @return {Number|Object/p5.MediaElement} current playback speed or p5.MediaElement */ p5.MediaElement.prototype.speed = function(val) { if (typeof val === 'undefined') { return this.elt.playbackRate; } else { this.elt.playbackRate = val; } }; /** * If no arguments are given, returns the current time of the element. * If an argument is given the current time of the element is set to it. * * @method time * @param {Number} [time] time to jump to (in seconds) * @return {Number|Object/p5.MediaElement} current time (in seconds) * or p5.MediaElement */ p5.MediaElement.prototype.time = function(val) { if (typeof val === 'undefined') { return this.elt.currentTime; } else { this.elt.currentTime = val; } }; /** * Returns the duration of the HTML5 media element. * * @method duration * @return {Number} duration */ p5.MediaElement.prototype.duration = function() { return this.elt.duration; }; p5.MediaElement.prototype.pixels = []; p5.MediaElement.prototype.loadPixels = function() { if (!this.canvas) { this.canvas = document.createElement('canvas'); this.drawingContext = this.canvas.getContext('2d'); } if (this.loadedmetadata) { // wait for metadata for w/h if (this.canvas.width !== this.elt.width) { this.canvas.width = this.elt.width; this.canvas.height = this.elt.height; this.width = this.canvas.width; this.height = this.canvas.height; } this.drawingContext.drawImage(this.elt, 0, 0, this.canvas.width, this.canvas.height); p5.Renderer2D.prototype.loadPixels.call(this); } return this; } p5.MediaElement.prototype.updatePixels = function(x, y, w, h){ if (this.loadedmetadata) { // wait for metadata p5.Renderer2D.prototype.updatePixels.call(this, x, y, w, h); } return this; } p5.MediaElement.prototype.get = function(x, y, w, h){ if (this.loadedmetadata) { // wait for metadata return p5.Renderer2D.prototype.get.call(this, x, y, w, h); } else return [0, 0, 0, 255]; }; p5.MediaElement.prototype.set = function(x, y, imgOrCol){ if (this.loadedmetadata) { // wait for metadata p5.Renderer2D.prototype.set.call(this, x, y, imgOrCol); } }; /** * Schedule an event to be called when the audio or video * element reaches the end. If the element is looping, * this will not be called. The element is passed in * as the argument to the onended callback. * * @method onended * @param {Function} callback function to call when the * soundfile has ended. The * media element will be passed * in as the argument to the * callback. * @return {Object/p5.MediaElement} * @example * <div><code> * function setup() { * audioEl = createAudio('assets/beat.mp3'); * audioEl.showControls(true); * audioEl.onended(sayDone); * } * * function sayDone(elt) { * alert('done playing ' + elt.src ); * } * </code></div> */ p5.MediaElement.prototype.onended = function(callback) { this._onended = callback; return this; }; /*** CONNECT TO WEB AUDIO API / p5.sound.js ***/ /** * Send the audio output of this element to a specified audioNode or * p5.sound object. If no element is provided, connects to p5's master * output. That connection is established when this method is first called. * All connections are removed by the .disconnect() method. * * This method is meant to be used with the p5.sound.js addon library. * * @method connect * @param {AudioNode|p5.sound object} audioNode AudioNode from the Web Audio API, * or an object from the p5.sound library */ p5.MediaElement.prototype.connect = function(obj) { var audioContext, masterOutput; // if p5.sound exists, same audio context if (typeof p5.prototype.getAudioContext === 'function') { audioContext = p5.prototype.getAudioContext(); masterOutput = p5.soundOut.input; } else { try { audioContext = obj.context; masterOutput = audioContext.destination } catch(e) { throw 'connect() is meant to be used with Web Audio API or p5.sound.js' } } // create a Web Audio MediaElementAudioSourceNode if none already exists if (!this.audioSourceNode) { this.audioSourceNode = audioContext.createMediaElementSource(this.elt); // connect to master output when this method is first called this.audioSourceNode.connect(masterOutput); } // connect to object if provided if (obj) { if (obj.input) { this.audioSourceNode.connect(obj.input); } else { this.audioSourceNode.connect(obj); } } // otherwise connect to master output of p5.sound / AudioContext else { this.audioSourceNode.connect(masterOutput); } }; /** * Disconnect all Web Audio routing, including to master output. * This is useful if you want to re-route the output through * audio effects, for example. * * @method disconnect */ p5.MediaElement.prototype.disconnect = function() { if (this.audioSourceNode) { this.audioSourceNode.disconnect(); } else { throw 'nothing to disconnect'; } }; /*** SHOW / HIDE CONTROLS ***/ /** * Show the default MediaElement controls, as determined by the web browser. * * @method showControls */ p5.MediaElement.prototype.showControls = function() { // must set style for the element to show on the page this.elt.style['text-align'] = 'inherit'; this.elt.controls = true; }; /** * Hide the default mediaElement controls. * * @method hideControls */ p5.MediaElement.prototype.hideControls = function() { this.elt.controls = false; }; /*** SCHEDULE EVENTS ***/ /** * Schedule events to trigger every time a MediaElement * (audio/video) reaches a playback cue point. * * Accepts a callback function, a time (in seconds) at which to trigger * the callback, and an optional parameter for the callback. * * Time will be passed as the first parameter to the callback function, * and param will be the second parameter. * * * @method addCue * @param {Number} time Time in seconds, relative to this media * element's playback. For example, to trigger * an event every time playback reaches two * seconds, pass in the number 2. This will be * passed as the first parameter to * the callback function. * @param {Function} callback Name of a function that will be * called at the given time. The callback will * receive time and (optionally) param as its * two parameters. * @param {Object} [value] An object to be passed as the * second parameter to the * callback function. * @return {Number} id ID of this cue, * useful for removeCue(id) * @example * <div><code> * function setup() { * background(255,255,255); * * audioEl = createAudio('assets/beat.mp3'); * audioEl.showControls(); * * // schedule three calls to changeBackground * audioEl.addCue(0.5, changeBackground, color(255,0,0) ); * audioEl.addCue(1.0, changeBackground, color(0,255,0) ); * audioEl.addCue(2.5, changeBackground, color(0,0,255) ); * audioEl.addCue(3.0, changeBackground, color(0,255,255) ); * audioEl.addCue(4.2, changeBackground, color(255,255,0) ); * audioEl.addCue(5.0, changeBackground, color(255,255,0) ); * } * * function changeBackground(val) { * background(val); * } * </code></div> */ p5.MediaElement.prototype.addCue = function(time, callback, val) { var id = this._cueIDCounter++; var cue = new Cue(callback, time, id, val); this._cues.push(cue); if (!this.elt.ontimeupdate) { this.elt.ontimeupdate = this._onTimeUpdate.bind(this); } return id; }; /** * Remove a callback based on its ID. The ID is returned by the * addCue method. * * @method removeCue * @param {Number} id ID of the cue, as returned by addCue */ p5.MediaElement.prototype.removeCue = function(id) { for (var i = 0; i < this._cues.length; i++) { var cue = this._cues[i]; if (cue.id === id) { this.cues.splice(i, 1); } } if (this._cues.length === 0) { this.elt.ontimeupdate = null } }; /** * Remove all of the callbacks that had originally been scheduled * via the addCue method. * * @method clearCues */ p5.MediaElement.prototype.clearCues = function() { this._cues = []; this.elt.ontimeupdate = null; }; // private method that checks for cues to be fired if events // have been scheduled using addCue(callback, time). p5.MediaElement.prototype._onTimeUpdate = function() { var playbackTime = this.time(); for (var i = 0 ; i < this._cues.length; i++) { var callbackTime = this._cues[i].time; var val = this._cues[i].val; if (this._prevTime < callbackTime && callbackTime <= playbackTime) { // pass the scheduled callbackTime as parameter to the callback this._cues[i].callback(val); } } this._prevTime = playbackTime; }; // Cue inspired by JavaScript setTimeout, and the // Tone.js Transport Timeline Event, MIT License Yotam Mann 2015 tonejs.org var Cue = function(callback, time, id, val) { this.callback = callback; this.time = time; this.id = id; this.val = val; }; // ============================================================================= // p5.File // ============================================================================= /** * Base class for a file * Using this for createFileInput * * @class p5.File * @constructor * @param {File} file File that is wrapped * @param {Object} [pInst] pointer to p5 instance */ p5.File = function(file, pInst) { /** * Underlying File object. All normal File methods can be called on this. * * @property file */ this.file = file; this._pInst = pInst; // Splitting out the file type into two components // This makes determining if image or text etc simpler var typeList = file.type.split('/'); /** * File type (image, text, etc.) * * @property type */ this.type = typeList[0]; /** * File subtype (usually the file extension jpg, png, xml, etc.) * * @property subtype */ this.subtype = typeList[1]; /** * File name * * @property name */ this.name = file.name; /** * File size * * @property size */ this.size = file.size; /** * URL string containing image data. * * @property data */ this.data = undefined; }; }));
'use strict'; var Promise = require('es6-promise').Promise; // jshint ignore:line marionette('LockScreen: ensure passcode unlock works', function() { var client = marionette.client(); var LockScreenPasscodeUnlockActions, actions; var LockScreen = require('./lib/lockscreen.js'); var lockScreen = (new LockScreen()).start(client); setup(function() { LockScreenPasscodeUnlockActions = require('./lib/lockscreen_passcode_unlock_actions.js'); actions = (new LockScreenPasscodeUnlockActions()).start(client); }); test('setup the passcode and lock it, to test if pressing keys can unlock', function(done) { var passcode = ['1', '3', '3', '7']; new Promise(function(resolve) { lockScreen.setPasscode(passcode.join(''), resolve); }) .then(function(r) { actions.activateSlidingUnlock(); passcode.forEach(function(keyChar) { actions.pressKey(keyChar); }); }) .then(function() { return actions.waitForUnlock(); }) .then(done) .catch(done); }); test('setup the passcode and lock it, to test if pressing *wrong* ' + 'keys cannot unlock', function(done) { var passcode = ['1', '3', '3', '7']; var wrongPasscode = ['1', '2', '3', '4']; new Promise(function(resolve) { lockScreen.setPasscode(passcode.join(''), resolve); }) .then(function() { actions.activateSlidingUnlock(); wrongPasscode.forEach(function(keyChar) { actions.pressKey(keyChar); }); }) .then(function() { return actions.notUnlock(); }) .then(done) .catch(done); }); });
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import KiAccordionItem from './KiAccordionItem'; import styles from './styles'; const KiAccordion = ({ data = [], expandedKeys, actions = {}, styles = {}, classes }) => { return ( <div className={classes.root} style={styles.root}> {data.map((item, index) => { return ( <KiAccordionItem key={index} expanded={!!~expandedKeys.indexOf(item.key)} data={item} actions={{ handleExpand: actions.handleExpandItem, }} styles={item.styles} /> ); })} </div> ); }; KiAccordion.propTypes = { data: PropTypes.arrayOf(PropTypes.shape({ key: PropTypes.string, content: PropTypes.any, expanded: PropTypes.bool, })), expandedKeys: PropTypes.arrayOf(PropTypes.string), actions: PropTypes.shape({ handleExpandItem: PropTypes.func.isRequired, }), styles: PropTypes.shape({ root: PropTypes.object, }), classes: PropTypes.shape({ root: PropTypes.string, }), }; export default withStyles(() => styles.accordion)(KiAccordion);
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var monitorSchema = new Schema({ _id: Schema.Types.ObjectId, menu: String, subMenu : String, url: String, userId: String, isTestPassed: Boolean, log: String, testDate: Date },{collection : 'monitor'}); module.exports = monitorSchema;
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Accordion = exports.AccordionItem = undefined; var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames); var _bind = require('classnames'); var _bind2 = _interopRequireDefault(_bind); var _uncontrollable = require('uncontrollable'); var _uncontrollable2 = _interopRequireDefault(_uncontrollable); var _includes = require('lodash/includes'); var _includes2 = _interopRequireDefault(_includes); var _noop = require('lodash/noop'); var _noop2 = _interopRequireDefault(_noop); var _isBlank = require('underscore.string/isBlank'); var _isBlank2 = _interopRequireDefault(_isBlank); var _collapse = require('../collapse'); var _styles = {}; var _styles2 = _interopRequireDefault(_styles); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var cxStyles = _bind2.default.bind(_styles2.default); var AccordionItemControlled = function AccordionItemControlled(_ref) { var active = _ref.active, children = _ref.children, className = _ref.className, contentClassName = _ref.contentClassName, contentStyle = _ref.contentStyle, eventKey = _ref.eventKey, id = _ref.id, onClick = _ref.onClick, onSelect = _ref.onSelect, onToggle = _ref.onToggle, title = _ref.title, titleClassName = _ref.titleClassName, titleStyle = _ref.titleStyle, restProps = (0, _objectWithoutProperties3.default)(_ref, ['active', 'children', 'className', 'contentClassName', 'contentStyle', 'eventKey', 'id', 'onClick', 'onSelect', 'onToggle', 'title', 'titleClassName', 'titleStyle']); var classNames = (0, _classnames2.default)(className, cxStyles('accordion-item', { 'is-active': active })); var titleClassNames = (0, _classnames2.default)(titleClassName, cxStyles('accordion-title')); var contentClassNames = (0, _classnames2.default)(contentClassName, cxStyles('accordion-content')); var titleId = null; var contentId = null; if (!(0, _isBlank2.default)(id)) { titleId = id + 'Title'; contentId = id + 'Content'; } var onTitleClick = function onTitleClick() { for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var event = args[0]; event.preventDefault(); if (onClick) { onClick.apply(undefined, args); } if (onToggle) { onToggle.apply(undefined, [!active].concat(args)); } if (onSelect) { onSelect.apply(undefined, [eventKey].concat(args)); } }; return _react2.default.createElement( 'li', (0, _extends3.default)({}, restProps, { className: classNames, id: id }), _react2.default.createElement( 'a', { 'aria-controls': contentId, 'aria-expanded': active, 'aria-selected': active, className: titleClassNames, href: '#', id: titleId, onClick: onTitleClick, role: 'tab', style: titleStyle }, title ), _react2.default.createElement( _collapse.Collapse, { 'in': active }, _react2.default.createElement( 'div', null, _react2.default.createElement( 'div', { 'aria-hidden': !active, 'aria-labelledby': titleId, className: contentClassNames, id: contentId, role: 'tabpanel', style: (0, _extends3.default)({}, contentStyle, { display: 'block' }) }, children ) ) ) ); }; AccordionItemControlled.propTypes = { active: _propTypes2.default.bool, children: _propTypes2.default.node, className: _propTypes2.default.string, contentClassName: _propTypes2.default.string, contentStyle: _propTypes2.default.object, eventKey: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), id: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]), onClick: _propTypes2.default.func, onSelect: _propTypes2.default.func, onToggle: _propTypes2.default.func, title: _propTypes2.default.node, titleClassName: _propTypes2.default.string, titleStyle: _propTypes2.default.object }; var AccordionItem = exports.AccordionItem = (0, _uncontrollable2.default)(AccordionItemControlled, { active: 'onToggle' }); AccordionItem.displayName = 'AccordionItem'; var AccordionControlled = function AccordionControlled(_ref2) { var allowAllClosed = _ref2.allowAllClosed, children = _ref2.children, className = _ref2.className, multiExpand = _ref2.multiExpand, _ref2$activeKey = _ref2.activeKey, maybeActiveKey = _ref2$activeKey === undefined ? multiExpand ? [] : null : _ref2$activeKey, onSelect = _ref2.onSelect, restProps = (0, _objectWithoutProperties3.default)(_ref2, ['allowAllClosed', 'children', 'className', 'multiExpand', 'activeKey', 'onSelect']); var activeKey = maybeActiveKey; if (!allowAllClosed && (multiExpand && activeKey.length === 0 || (0, _isBlank2.default)(activeKey))) { var childArray = _react.Children.toArray(children).filter(function (child) { return (0, _react.isValidElement)(child) && !(0, _isBlank2.default)(child.props.eventKey); }); if (childArray.length >= 1) { var firstKey = childArray[0].props.eventKey; activeKey = multiExpand ? [firstKey] : firstKey; } } var onChildSelect = function onChildSelect(eventKey) { for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } if (multiExpand) { if ((0, _includes2.default)(activeKey, eventKey)) { var filtered = activeKey.filter(function (item) { return item !== eventKey; }); if (!allowAllClosed && filtered.length === 0) { onSelect.apply(undefined, [[eventKey]].concat(args)); } else { onSelect.apply(undefined, [filtered].concat(args)); } } else { onSelect.apply(undefined, [[].concat((0, _toConsumableArray3.default)(activeKey), [eventKey])].concat(args)); } } else { if (allowAllClosed && activeKey === eventKey) { onSelect.apply(undefined, [null].concat(args)); } else { onSelect.apply(undefined, [eventKey].concat(args)); } } }; var classNames = (0, _classnames2.default)(className, cxStyles('accordion')); var clonedChildren = _react.Children.map(children, function (child) { if ((0, _react.isValidElement)(child)) { return (0, _react.cloneElement)(child, { active: multiExpand ? (0, _includes2.default)(activeKey, child.props.eventKey) : activeKey === child.props.eventKey, onSelect: onChildSelect, onToggle: _noop2.default }); } return child; }); return _react2.default.createElement( 'ul', (0, _extends3.default)({}, restProps, { className: classNames, role: 'tablist' }), clonedChildren ); }; AccordionControlled.propTypes = { activeKey: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number, _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]))]), allowAllClosed: _propTypes2.default.bool, children: _propTypes2.default.node, className: _propTypes2.default.string, defaultActiveKey: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number, _propTypes2.default.arrayOf(_propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]))]), multiExpand: _propTypes2.default.bool, onSelect: _propTypes2.default.func }; var Accordion = exports.Accordion = (0, _uncontrollable2.default)(AccordionControlled, { activeKey: 'onSelect' }); Accordion.displayName = 'Accordion'; Accordion.Item = AccordionItem; exports.default = Accordion;
import preparePairs from 'Utils/preparePairs'; import pair from 'Mocks/pair'; import processedPairs from 'Mocks/processedPairs'; describe('Prepare pairs', () => { it('pairs are prepared correctly', () => { expect(preparePairs(pair)).toEqual(processedPairs); }); });
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}();
import React, { useState, useEffect } from "react"; import Button from "../../button"; import styles from "./index.module.css"; const CommentForm = ({ text, formSubmitHandler, buttonText }) => { const [content, setContent] = useState(""); useEffect(() => { setContent(text); }, [text]); return ( <form className={styles.form} onSubmit={(event) => { event.preventDefault(); formSubmitHandler(content); setContent(""); }} > <div> <textarea value={content} onChange={(event) => setContent(event.target.value)} /> </div> <Button text={buttonText} /> </form> ); }; export default CommentForm;
import React from "react"; export default function(props) { return ( <div> <h2>Ideaz Detail for {props.match.params.slug}</h2> </div> ); }
/*! DataTables 1.10.19 * ©2008-2018 SpryMedia Ltd - datatables.net/license */ /** * @summary DataTables * @description Paginate, search and order HTML tables * @version 1.10.19 * @file jquery.dataTables.js * @author SpryMedia Ltd * @contact www.datatables.net * @copyright Copyright 2008-2018 SpryMedia Ltd. * * This source file is free software, available under the following license: * MIT license - http://datatables.net/license * * This source file is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. * * For details please refer to: http://www.datatables.net */ /*jslint evil: true, undef: true, browser: true */ /*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/ (function( factory ) { "use strict"; if ( typeof define === 'function' && define.amd ) { // AMD define( ['jquery'], function ( $ ) { return factory( $, window, document ); } ); } else if ( typeof exports === 'object' ) { // CommonJS module.exports = function (root, $) { if ( ! root ) { // CommonJS environments without a window global must pass a // root. This will give an error otherwise root = window; } if ( ! $ ) { $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window require('jquery') : require('jquery')( root ); } return factory( $, root, root.document ); }; } else { // Browser factory( jQuery, window, document ); } } (function( $, window, document, undefined ) { "use strict"; /** * DataTables is a plug-in for the jQuery Javascript library. It is a highly * flexible tool, based upon the foundations of progressive enhancement, * which will add advanced interaction controls to any HTML table. For a * full list of features please refer to * [DataTables.net](href="http://datatables.net). * * Note that the `DataTable` object is not a global variable but is aliased * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may * be accessed. * * @class * @param {object} [init={}] Configuration object for DataTables. Options * are defined by {@link DataTable.defaults} * @requires jQuery 1.7+ * * @example * // Basic initialisation * $(document).ready( function { * $('#example').dataTable(); * } ); * * @example * // Initialisation with configuration options - in this case, disable * // pagination and sorting. * $(document).ready( function { * $('#example').dataTable( { * "paginate": false, * "sort": false * } ); * } ); */ var DataTable = function ( options ) { /** * Perform a jQuery selector action on the table's TR elements (from the tbody) and * return the resulting jQuery object. * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on * @param {object} [oOpts] Optional parameters for modifying the rows to be included * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter * criterion ("applied") or all TR elements (i.e. no filter). * @param {string} [oOpts.order=current] Order of the TR elements in the processed array. * Can be either 'current', whereby the current sorting of the table is used, or * 'original' whereby the original order the data was read into the table is used. * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page * ("current") or not ("all"). If 'current' is given, then order is assumed to be * 'current' and filter is 'applied', regardless of what they might be given as. * @returns {object} jQuery object, filtered by the given selector. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Highlight every second row * oTable.$('tr:odd').css('backgroundColor', 'blue'); * } ); * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Filter to rows with 'Webkit' in them, add a background colour and then * // remove the filter, thus highlighting the 'Webkit' rows only. * oTable.fnFilter('Webkit'); * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue'); * oTable.fnFilter(''); * } ); */ this.$ = function ( sSelector, oOpts ) { return this.api(true).$( sSelector, oOpts ); }; /** * Almost identical to $ in operation, but in this case returns the data for the matched * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes * rather than any descendants, so the data can be obtained for the row/cell. If matching * rows are found, the data returned is the original data array/object that was used to * create the row (or a generated array if from a DOM source). * * This method is often useful in-combination with $ where both functions are given the * same parameters and the array indexes will match identically. * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on * @param {object} [oOpts] Optional parameters for modifying the rows to be included * @param {string} [oOpts.filter=none] Select elements that meet the current filter * criterion ("applied") or all elements (i.e. no filter). * @param {string} [oOpts.order=current] Order of the data in the processed array. * Can be either 'current', whereby the current sorting of the table is used, or * 'original' whereby the original order the data was read into the table is used. * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page * ("current") or not ("all"). If 'current' is given, then order is assumed to be * 'current' and filter is 'applied', regardless of what they might be given as. * @returns {array} Data for the matched elements. If any elements, as a result of the * selector, were not TR, TD or TH elements in the DataTable, they will have a null * entry in the array. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Get the data from the first row in the table * var data = oTable._('tr:first'); * * // Do something useful with the data * alert( "First cell is: "+data[0] ); * } ); * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Filter to 'Webkit' and get all data for * oTable.fnFilter('Webkit'); * var data = oTable._('tr', {"search": "applied"}); * * // Do something with the data * alert( data.length+" rows matched the search" ); * } ); */ this._ = function ( sSelector, oOpts ) { return this.api(true).rows( sSelector, oOpts ).data(); }; /** * Create a DataTables Api instance, with the currently selected tables for * the Api's context. * @param {boolean} [traditional=false] Set the API instance's context to be * only the table referred to by the `DataTable.ext.iApiIndex` option, as was * used in the API presented by DataTables 1.9- (i.e. the traditional mode), * or if all tables captured in the jQuery object should be used. * @return {DataTables.Api} */ this.api = function ( traditional ) { return traditional ? new _Api( _fnSettingsFromNode( this[ _ext.iApiIndex ] ) ) : new _Api( this ); }; /** * Add a single new row or multiple rows of data to the table. Please note * that this is suitable for client-side processing only - if you are using * server-side processing (i.e. "bServerSide": true), then to add data, you * must add it to the data source, i.e. the server-side, through an Ajax call. * @param {array|object} data The data to be added to the table. This can be: * <ul> * <li>1D array of data - add a single row with the data provided</li> * <li>2D array of arrays - add multiple rows in a single call</li> * <li>object - data object when using <i>mData</i></li> * <li>array of objects - multiple data objects when using <i>mData</i></li> * </ul> * @param {bool} [redraw=true] redraw the table or not * @returns {array} An array of integers, representing the list of indexes in * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to * the table. * @dtopt API * @deprecated Since v1.10 * * @example * // Global var for counter * var giCount = 2; * * $(document).ready(function() { * $('#example').dataTable(); * } ); * * function fnClickAddRow() { * $('#example').dataTable().fnAddData( [ * giCount+".1", * giCount+".2", * giCount+".3", * giCount+".4" ] * ); * * giCount++; * } */ this.fnAddData = function( data, redraw ) { var api = this.api( true ); /* Check if we want to add multiple rows or not */ var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ? api.rows.add( data ) : api.row.add( data ); if ( redraw === undefined || redraw ) { api.draw(); } return rows.flatten().toArray(); }; /** * This function will make DataTables recalculate the column sizes, based on the data * contained in the table and the sizes applied to the columns (in the DOM, CSS or * through the sWidth parameter). This can be useful when the width of the table's * parent element changes (for example a window resize). * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable( { * "sScrollY": "200px", * "bPaginate": false * } ); * * $(window).on('resize', function () { * oTable.fnAdjustColumnSizing(); * } ); * } ); */ this.fnAdjustColumnSizing = function ( bRedraw ) { var api = this.api( true ).columns.adjust(); var settings = api.settings()[0]; var scroll = settings.oScroll; if ( bRedraw === undefined || bRedraw ) { api.draw( false ); } else if ( scroll.sX !== "" || scroll.sY !== "" ) { /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */ _fnScrollDraw( settings ); } }; /** * Quickly and simply clear a table * @param {bool} [bRedraw=true] redraw the table or not * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...) * oTable.fnClearTable(); * } ); */ this.fnClearTable = function( bRedraw ) { var api = this.api( true ).clear(); if ( bRedraw === undefined || bRedraw ) { api.draw(); } }; /** * The exact opposite of 'opening' a row, this function will close any rows which * are currently 'open'. * @param {node} nTr the table row to 'close' * @returns {int} 0 on success, or 1 if failed (can't find the row) * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable; * * // 'open' an information row when a row is clicked on * $('#example tbody tr').click( function () { * if ( oTable.fnIsOpen(this) ) { * oTable.fnClose( this ); * } else { * oTable.fnOpen( this, "Temporary row opened", "info_row" ); * } * } ); * * oTable = $('#example').dataTable(); * } ); */ this.fnClose = function( nTr ) { this.api( true ).row( nTr ).child.hide(); }; /** * Remove a row for the table * @param {mixed} target The index of the row from aoData to be deleted, or * the TR element you want to delete * @param {function|null} [callBack] Callback function * @param {bool} [redraw=true] Redraw the table or not * @returns {array} The row that was deleted * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Immediately remove the first row * oTable.fnDeleteRow( 0 ); * } ); */ this.fnDeleteRow = function( target, callback, redraw ) { var api = this.api( true ); var rows = api.rows( target ); var settings = rows.settings()[0]; var data = settings.aoData[ rows[0][0] ]; rows.remove(); if ( callback ) { callback.call( this, settings, data ); } if ( redraw === undefined || redraw ) { api.draw(); } return data; }; /** * Restore the table to it's original state in the DOM by removing all of DataTables * enhancements, alterations to the DOM structure of the table and event listeners. * @param {boolean} [remove=false] Completely remove the table from the DOM * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * // This example is fairly pointless in reality, but shows how fnDestroy can be used * var oTable = $('#example').dataTable(); * oTable.fnDestroy(); * } ); */ this.fnDestroy = function ( remove ) { this.api( true ).destroy( remove ); }; /** * Redraw the table * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Re-draw the table - you wouldn't want to do it here, but it's an example :-) * oTable.fnDraw(); * } ); */ this.fnDraw = function( complete ) { // Note that this isn't an exact match to the old call to _fnDraw - it takes // into account the new data, but can hold position. this.api( true ).draw( complete ); }; /** * Filter the input based on data * @param {string} sInput String to filter the table on * @param {int|null} [iColumn] Column to limit filtering to * @param {bool} [bRegex=false] Treat as regular expression or not * @param {bool} [bSmart=true] Perform smart filtering or not * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es) * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false) * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Sometime later - filter... * oTable.fnFilter( 'test string' ); * } ); */ this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive ) { var api = this.api( true ); if ( iColumn === null || iColumn === undefined ) { api.search( sInput, bRegex, bSmart, bCaseInsensitive ); } else { api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive ); } api.draw(); }; /** * Get the data for the whole table, an individual row or an individual cell based on the * provided parameters. * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as * a TR node then the data source for the whole row will be returned. If given as a * TD/TH cell node then iCol will be automatically calculated and the data for the * cell returned. If given as an integer, then this is treated as the aoData internal * data index for the row (see fnGetPosition) and the data for that row used. * @param {int} [col] Optional column index that you want the data of. * @returns {array|object|string} If mRow is undefined, then the data for all rows is * returned. If mRow is defined, just data for that row, and is iCol is * defined, only data for the designated cell is returned. * @dtopt API * @deprecated Since v1.10 * * @example * // Row data * $(document).ready(function() { * oTable = $('#example').dataTable(); * * oTable.$('tr').click( function () { * var data = oTable.fnGetData( this ); * // ... do something with the array / object of data for the row * } ); * } ); * * @example * // Individual cell data * $(document).ready(function() { * oTable = $('#example').dataTable(); * * oTable.$('td').click( function () { * var sData = oTable.fnGetData( this ); * alert( 'The cell clicked on had the value of '+sData ); * } ); * } ); */ this.fnGetData = function( src, col ) { var api = this.api( true ); if ( src !== undefined ) { var type = src.nodeName ? src.nodeName.toLowerCase() : ''; return col !== undefined || type == 'td' || type == 'th' ? api.cell( src, col ).data() : api.row( src ).data() || null; } return api.data().toArray(); }; /** * Get an array of the TR nodes that are used in the table's body. Note that you will * typically want to use the '$' API method in preference to this as it is more * flexible. * @param {int} [iRow] Optional row index for the TR element you want * @returns {array|node} If iRow is undefined, returns an array of all TR elements * in the table's body, or iRow is defined, just the TR element requested. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Get the nodes from the table * var nNodes = oTable.fnGetNodes( ); * } ); */ this.fnGetNodes = function( iRow ) { var api = this.api( true ); return iRow !== undefined ? api.row( iRow ).node() : api.rows().nodes().flatten().toArray(); }; /** * Get the array indexes of a particular cell from it's DOM element * and column index including hidden columns * @param {node} node this can either be a TR, TD or TH in the table's body * @returns {int} If nNode is given as a TR, then a single index is returned, or * if given as a cell, an array of [row index, column index (visible), * column index (all)] is given. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * $('#example tbody td').click( function () { * // Get the position of the current data from the node * var aPos = oTable.fnGetPosition( this ); * * // Get the data array for this row * var aData = oTable.fnGetData( aPos[0] ); * * // Update the data array and return the value * aData[ aPos[1] ] = 'clicked'; * this.innerHTML = 'clicked'; * } ); * * // Init DataTables * oTable = $('#example').dataTable(); * } ); */ this.fnGetPosition = function( node ) { var api = this.api( true ); var nodeName = node.nodeName.toUpperCase(); if ( nodeName == 'TR' ) { return api.row( node ).index(); } else if ( nodeName == 'TD' || nodeName == 'TH' ) { var cell = api.cell( node ).index(); return [ cell.row, cell.columnVisible, cell.column ]; } return null; }; /** * Check to see if a row is 'open' or not. * @param {node} nTr the table row to check * @returns {boolean} true if the row is currently open, false otherwise * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable; * * // 'open' an information row when a row is clicked on * $('#example tbody tr').click( function () { * if ( oTable.fnIsOpen(this) ) { * oTable.fnClose( this ); * } else { * oTable.fnOpen( this, "Temporary row opened", "info_row" ); * } * } ); * * oTable = $('#example').dataTable(); * } ); */ this.fnIsOpen = function( nTr ) { return this.api( true ).row( nTr ).child.isShown(); }; /** * This function will place a new row directly after a row which is currently * on display on the page, with the HTML contents that is passed into the * function. This can be used, for example, to ask for confirmation that a * particular record should be deleted. * @param {node} nTr The table row to 'open' * @param {string|node|jQuery} mHtml The HTML to put into the row * @param {string} sClass Class to give the new TD cell * @returns {node} The row opened. Note that if the table row passed in as the * first parameter, is not found in the table, this method will silently * return. * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable; * * // 'open' an information row when a row is clicked on * $('#example tbody tr').click( function () { * if ( oTable.fnIsOpen(this) ) { * oTable.fnClose( this ); * } else { * oTable.fnOpen( this, "Temporary row opened", "info_row" ); * } * } ); * * oTable = $('#example').dataTable(); * } ); */ this.fnOpen = function( nTr, mHtml, sClass ) { return this.api( true ) .row( nTr ) .child( mHtml, sClass ) .show() .child()[0]; }; /** * Change the pagination - provides the internal logic for pagination in a simple API * function. With this function you can have a DataTables table go to the next, * previous, first or last pages. * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last" * or page number to jump to (integer), note that page 0 is the first page. * @param {bool} [bRedraw=true] Redraw the table or not * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * oTable.fnPageChange( 'next' ); * } ); */ this.fnPageChange = function ( mAction, bRedraw ) { var api = this.api( true ).page( mAction ); if ( bRedraw === undefined || bRedraw ) { api.draw(false); } }; /** * Show a particular column * @param {int} iCol The column whose display should be changed * @param {bool} bShow Show (true) or hide (false) the column * @param {bool} [bRedraw=true] Redraw the table or not * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Hide the second column after initialisation * oTable.fnSetColumnVis( 1, false ); * } ); */ this.fnSetColumnVis = function ( iCol, bShow, bRedraw ) { var api = this.api( true ).column( iCol ).visible( bShow ); if ( bRedraw === undefined || bRedraw ) { api.columns.adjust().draw(); } }; /** * Get the settings for a particular table for external manipulation * @returns {object} DataTables settings object. See * {@link DataTable.models.oSettings} * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * var oSettings = oTable.fnSettings(); * * // Show an example parameter from the settings * alert( oSettings._iDisplayStart ); * } ); */ this.fnSettings = function() { return _fnSettingsFromNode( this[_ext.iApiIndex] ); }; /** * Sort the table by a particular column * @param {int} iCol the data index to sort on. Note that this will not match the * 'display index' if you have hidden data entries * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Sort immediately with columns 0 and 1 * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] ); * } ); */ this.fnSort = function( aaSort ) { this.api( true ).order( aaSort ).draw(); }; /** * Attach a sort listener to an element for a given column * @param {node} nNode the element to attach the sort listener to * @param {int} iColumn the column that a click on this node will sort on * @param {function} [fnCallback] callback function when sort is run * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * * // Sort on column 1, when 'sorter' is clicked on * oTable.fnSortListener( document.getElementById('sorter'), 1 ); * } ); */ this.fnSortListener = function( nNode, iColumn, fnCallback ) { this.api( true ).order.listener( nNode, iColumn, fnCallback ); }; /** * Update a table cell or row - this method will accept either a single value to * update the cell with, an array of values with one element for each column or * an object in the same format as the original data source. The function is * self-referencing in order to make the multi column updates easier. * @param {object|array|string} mData Data to update the cell/row with * @param {node|int} mRow TR element you want to update or the aoData index * @param {int} [iColumn] The column to update, give as null or undefined to * update a whole row. * @param {bool} [bRedraw=true] Redraw the table or not * @param {bool} [bAction=true] Perform pre-draw actions or not * @returns {int} 0 on success, 1 on error * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row * } ); */ this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction ) { var api = this.api( true ); if ( iColumn === undefined || iColumn === null ) { api.row( mRow ).data( mData ); } else { api.cell( mRow, iColumn ).data( mData ); } if ( bAction === undefined || bAction ) { api.columns.adjust(); } if ( bRedraw === undefined || bRedraw ) { api.draw(); } return 0; }; /** * Provide a common method for plug-ins to check the version of DataTables being used, in order * to ensure compatibility. * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the * formats "X" and "X.Y" are also acceptable. * @returns {boolean} true if this version of DataTables is greater or equal to the required * version, or false if this version of DataTales is not suitable * @method * @dtopt API * @deprecated Since v1.10 * * @example * $(document).ready(function() { * var oTable = $('#example').dataTable(); * alert( oTable.fnVersionCheck( '1.9.0' ) ); * } ); */ this.fnVersionCheck = _ext.fnVersionCheck; var _that = this; var emptyInit = options === undefined; var len = this.length; if ( emptyInit ) { options = {}; } this.oApi = this.internal = _ext.internal; // Extend with old style plug-in API methods for ( var fn in DataTable.ext.internal ) { if ( fn ) { this[fn] = _fnExternApiFunc(fn); } } this.each(function() { // For each initialisation we want to give it a clean initialisation // object that can be bashed around var o = {}; var oInit = len > 1 ? // optimisation for single table case _fnExtend( o, options, true ) : options; /*global oInit,_that,emptyInit*/ var i=0, iLen, j, jLen, k, kLen; var sId = this.getAttribute( 'id' ); var bInitHandedOff = false; var defaults = DataTable.defaults; var $this = $(this); /* Sanity check */ if ( this.nodeName.toLowerCase() != 'table' ) { _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 ); return; } /* Backwards compatibility for the defaults */ _fnCompatOpts( defaults ); _fnCompatCols( defaults.column ); /* Convert the camel-case defaults to Hungarian */ _fnCamelToHungarian( defaults, defaults, true ); _fnCamelToHungarian( defaults.column, defaults.column, true ); /* Setting up the initialisation object */ _fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) ); /* Check to see if we are re-initialising a table */ var allSettings = DataTable.settings; for ( i=0, iLen=allSettings.length ; i<iLen ; i++ ) { var s = allSettings[i]; /* Base check on table node */ if ( s.nTable == this || (s.nTHead && s.nTHead.parentNode == this) || (s.nTFoot && s.nTFoot.parentNode == this) ) { var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve; var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy; if ( emptyInit || bRetrieve ) { return s.oInstance; } else if ( bDestroy ) { s.oInstance.fnDestroy(); break; } else { _fnLog( s, 0, 'Cannot reinitialise DataTable', 3 ); return; } } /* If the element we are initialising has the same ID as a table which was previously * initialised, but the table nodes don't match (from before) then we destroy the old * instance by simply deleting it. This is under the assumption that the table has been * destroyed by other methods. Anyone using non-id selectors will need to do this manually */ if ( s.sTableId == this.id ) { allSettings.splice( i, 1 ); break; } } /* Ensure the table has an ID - required for accessibility */ if ( sId === null || sId === "" ) { sId = "DataTables_Table_"+(DataTable.ext._unique++); this.id = sId; } /* Create the settings object for this table and set some of the default parameters */ var oSettings = $.extend( true, {}, DataTable.models.oSettings, { "sDestroyWidth": $this[0].style.width, "sInstance": sId, "sTableId": sId } ); oSettings.nTable = this; oSettings.oApi = _that.internal; oSettings.oInit = oInit; allSettings.push( oSettings ); // Need to add the instance after the instance after the settings object has been added // to the settings array, so we can self reference the table instance if more than one oSettings.oInstance = (_that.length===1) ? _that : $this.dataTable(); // Backwards compatibility, before we apply all the defaults _fnCompatOpts( oInit ); _fnLanguageCompat( oInit.oLanguage ); // If the length menu is given, but the init display length is not, use the length menu if ( oInit.aLengthMenu && ! oInit.iDisplayLength ) { oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ? oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0]; } // Apply the defaults and init options to make a single init object will all // options defined from defaults and instance options. oInit = _fnExtend( $.extend( true, {}, defaults ), oInit ); // Map the initialisation options onto the settings object _fnMap( oSettings.oFeatures, oInit, [ "bPaginate", "bLengthChange", "bFilter", "bSort", "bSortMulti", "bInfo", "bProcessing", "bAutoWidth", "bSortClasses", "bServerSide", "bDeferRender" ] ); _fnMap( oSettings, oInit, [ "asStripeClasses", "ajax", "fnServerData", "fnFormatNumber", "sServerMethod", "aaSorting", "aaSortingFixed", "aLengthMenu", "sPaginationType", "sAjaxSource", "sAjaxDataProp", "iStateDuration", "sDom", "bSortCellsTop", "iTabIndex", "fnStateLoadCallback", "fnStateSaveCallback", "renderer", "searchDelay", "rowId", [ "iCookieDuration", "iStateDuration" ], // backwards compat [ "oSearch", "oPreviousSearch" ], [ "aoSearchCols", "aoPreSearchCols" ], [ "iDisplayLength", "_iDisplayLength" ] ] ); _fnMap( oSettings.oScroll, oInit, [ [ "sScrollX", "sX" ], [ "sScrollXInner", "sXInner" ], [ "sScrollY", "sY" ], [ "bScrollCollapse", "bCollapse" ] ] ); _fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" ); /* Callback functions which are array driven */ _fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' ); _fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' ); _fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' ); _fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' ); _fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' ); _fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' ); _fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' ); _fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' ); _fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' ); _fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' ); _fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' ); oSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId ); /* Browser support detection */ _fnBrowserDetect( oSettings ); var oClasses = oSettings.oClasses; $.extend( oClasses, DataTable.ext.classes, oInit.oClasses ); $this.addClass( oClasses.sTable ); if ( oSettings.iInitDisplayStart === undefined ) { /* Display start point, taking into account the save saving */ oSettings.iInitDisplayStart = oInit.iDisplayStart; oSettings._iDisplayStart = oInit.iDisplayStart; } if ( oInit.iDeferLoading !== null ) { oSettings.bDeferLoading = true; var tmp = $.isArray( oInit.iDeferLoading ); oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading; oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading; } /* Language definitions */ var oLanguage = oSettings.oLanguage; $.extend( true, oLanguage, oInit.oLanguage ); if ( oLanguage.sUrl ) { /* Get the language definitions from a file - because this Ajax call makes the language * get async to the remainder of this function we use bInitHandedOff to indicate that * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor */ $.ajax( { dataType: 'json', url: oLanguage.sUrl, success: function ( json ) { _fnLanguageCompat( json ); _fnCamelToHungarian( defaults.oLanguage, json ); $.extend( true, oLanguage, json ); _fnInitialise( oSettings ); }, error: function () { // Error occurred loading language file, continue on as best we can _fnInitialise( oSettings ); } } ); bInitHandedOff = true; } /* * Stripes */ if ( oInit.asStripeClasses === null ) { oSettings.asStripeClasses =[ oClasses.sStripeOdd, oClasses.sStripeEven ]; } /* Remove row stripe classes if they are already on the table row */ var stripeClasses = oSettings.asStripeClasses; var rowOne = $this.children('tbody').find('tr').eq(0); if ( $.inArray( true, $.map( stripeClasses, function(el, i) { return rowOne.hasClass(el); } ) ) !== -1 ) { $('tbody tr', this).removeClass( stripeClasses.join(' ') ); oSettings.asDestroyStripes = stripeClasses.slice(); } /* * Columns * See if we should load columns automatically or use defined ones */ var anThs = []; var aoColumnsInit; var nThead = this.getElementsByTagName('thead'); if ( nThead.length !== 0 ) { _fnDetectHeader( oSettings.aoHeader, nThead[0] ); anThs = _fnGetUniqueThs( oSettings ); } /* If not given a column array, generate one with nulls */ if ( oInit.aoColumns === null ) { aoColumnsInit = []; for ( i=0, iLen=anThs.length ; i<iLen ; i++ ) { aoColumnsInit.push( null ); } } else { aoColumnsInit = oInit.aoColumns; } /* Add the columns */ for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ ) { _fnAddColumn( oSettings, anThs ? anThs[i] : null ); } /* Apply the column definitions */ _fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) { _fnColumnOptions( oSettings, iCol, oDef ); } ); /* HTML5 attribute detection - build an mData object automatically if the * attributes are found */ if ( rowOne.length ) { var a = function ( cell, name ) { return cell.getAttribute( 'data-'+name ) !== null ? name : null; }; $( rowOne[0] ).children('th, td').each( function (i, cell) { var col = oSettings.aoColumns[i]; if ( col.mData === i ) { var sort = a( cell, 'sort' ) || a( cell, 'order' ); var filter = a( cell, 'filter' ) || a( cell, 'search' ); if ( sort !== null || filter !== null ) { col.mData = { _: i+'.display', sort: sort !== null ? i+'.@data-'+sort : undefined, type: sort !== null ? i+'.@data-'+sort : undefined, filter: filter !== null ? i+'.@data-'+filter : undefined }; _fnColumnOptions( oSettings, i ); } } } ); } var features = oSettings.oFeatures; var loadedInit = function () { /* * Sorting * @todo For modularisation (1.11) this needs to do into a sort start up handler */ // If aaSorting is not defined, then we use the first indicator in asSorting // in case that has been altered, so the default sort reflects that option if ( oInit.aaSorting === undefined ) { var sorting = oSettings.aaSorting; for ( i=0, iLen=sorting.length ; i<iLen ; i++ ) { sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0]; } } /* Do a first pass on the sorting classes (allows any size changes to be taken into * account, and also will apply sorting disabled classes if disabled */ _fnSortingClasses( oSettings ); if ( features.bSort ) { _fnCallbackReg( oSettings, 'aoDrawCallback', function () { if ( oSettings.bSorted ) { var aSort = _fnSortFlatten( oSettings ); var sortedColumns = {}; $.each( aSort, function (i, val) { sortedColumns[ val.src ] = val.dir; } ); _fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] ); _fnSortAria( oSettings ); } } ); } _fnCallbackReg( oSettings, 'aoDrawCallback', function () { if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) { _fnSortingClasses( oSettings ); } }, 'sc' ); /* * Final init * Cache the header, body and footer as required, creating them if needed */ // Work around for Webkit bug 83867 - store the caption-side before removing from doc var captions = $this.children('caption').each( function () { this._captionSide = $(this).css('caption-side'); } ); var thead = $this.children('thead'); if ( thead.length === 0 ) { thead = $('<thead/>').appendTo($this); } oSettings.nTHead = thead[0]; var tbody = $this.children('tbody'); if ( tbody.length === 0 ) { tbody = $('<tbody/>').appendTo($this); } oSettings.nTBody = tbody[0]; var tfoot = $this.children('tfoot'); if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") ) { // If we are a scrolling table, and no footer has been given, then we need to create // a tfoot element for the caption element to be appended to tfoot = $('<tfoot/>').appendTo($this); } if ( tfoot.length === 0 || tfoot.children().length === 0 ) { $this.addClass( oClasses.sNoFooter ); } else if ( tfoot.length > 0 ) { oSettings.nTFoot = tfoot[0]; _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot ); } /* Check if there is data passing into the constructor */ if ( oInit.aaData ) { for ( i=0 ; i<oInit.aaData.length ; i++ ) { _fnAddData( oSettings, oInit.aaData[ i ] ); } } else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' ) { /* Grab the data from the page - only do this when deferred loading or no Ajax * source since there is no point in reading the DOM data if we are then going * to replace it with Ajax data */ _fnAddTr( oSettings, $(oSettings.nTBody).children('tr') ); } /* Copy the data index array */ oSettings.aiDisplay = oSettings.aiDisplayMaster.slice(); /* Initialisation complete - table can be drawn */ oSettings.bInitialised = true; /* Check if we need to initialise the table (it might not have been handed off to the * language processor) */ if ( bInitHandedOff === false ) { _fnInitialise( oSettings ); } }; /* Must be done after everything which can be overridden by the state saving! */ if ( oInit.bStateSave ) { features.bStateSave = true; _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' ); _fnLoadState( oSettings, oInit, loadedInit ); } else { loadedInit(); } } ); _that = null; return this; }; /* * It is useful to have variables which are scoped locally so only the * DataTables functions can access them and they don't leak into global space. * At the same time these functions are often useful over multiple files in the * core and API, so we list, or at least document, all variables which are used * by DataTables as private variables here. This also ensures that there is no * clashing of variable names and that they can easily referenced for reuse. */ // Defined else where // _selector_run // _selector_opts // _selector_first // _selector_row_indexes var _ext; // DataTable.ext var _Api; // DataTable.Api var _api_register; // DataTable.Api.register var _api_registerPlural; // DataTable.Api.registerPlural var _re_dic = {}; var _re_new_lines = /[\r\n]/g; var _re_html = /<.*?>/g; // This is not strict ISO8601 - Date.parse() is quite lax, although // implementations differ between browsers. var _re_date = /^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/; // Escape regular expression special characters var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' ); // http://en.wikipedia.org/wiki/Foreign_exchange_market // - \u20BD - Russian ruble. // - \u20a9 - South Korean Won // - \u20BA - Turkish Lira // - \u20B9 - Indian Rupee // - R - Brazil (R$) and South Africa // - fr - Swiss Franc // - kr - Swedish krona, Norwegian krone and Danish krone // - \u2009 is thin space and \u202F is narrow no-break space, both used in many // - Ƀ - Bitcoin // - Ξ - Ethereum // standards as thousands separators. var _re_formatted_numeric = /[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi; var _empty = function ( d ) { return !d || d === true || d === '-' ? true : false; }; var _intVal = function ( s ) { var integer = parseInt( s, 10 ); return !isNaN(integer) && isFinite(s) ? integer : null; }; // Convert from a formatted number with characters other than `.` as the // decimal place, to a Javascript number var _numToDecimal = function ( num, decimalPoint ) { // Cache created regular expressions for speed as this function is called often if ( ! _re_dic[ decimalPoint ] ) { _re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' ); } return typeof num === 'string' && decimalPoint !== '.' ? num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) : num; }; var _isNumber = function ( d, decimalPoint, formatted ) { var strType = typeof d === 'string'; // If empty return immediately so there must be a number if it is a // formatted string (this stops the string "k", or "kr", etc being detected // as a formatted number for currency if ( _empty( d ) ) { return true; } if ( decimalPoint && strType ) { d = _numToDecimal( d, decimalPoint ); } if ( formatted && strType ) { d = d.replace( _re_formatted_numeric, '' ); } return !isNaN( parseFloat(d) ) && isFinite( d ); }; // A string without HTML in it can be considered to be HTML still var _isHtml = function ( d ) { return _empty( d ) || typeof d === 'string'; }; var _htmlNumeric = function ( d, decimalPoint, formatted ) { if ( _empty( d ) ) { return true; } var html = _isHtml( d ); return ! html ? null : _isNumber( _stripHtml( d ), decimalPoint, formatted ) ? true : null; }; var _pluck = function ( a, prop, prop2 ) { var out = []; var i=0, ien=a.length; // Could have the test in the loop for slightly smaller code, but speed // is essential here if ( prop2 !== undefined ) { for ( ; i<ien ; i++ ) { if ( a[i] && a[i][ prop ] ) { out.push( a[i][ prop ][ prop2 ] ); } } } else { for ( ; i<ien ; i++ ) { if ( a[i] ) { out.push( a[i][ prop ] ); } } } return out; }; // Basically the same as _pluck, but rather than looping over `a` we use `order` // as the indexes to pick from `a` var _pluck_order = function ( a, order, prop, prop2 ) { var out = []; var i=0, ien=order.length; // Could have the test in the loop for slightly smaller code, but speed // is essential here if ( prop2 !== undefined ) { for ( ; i<ien ; i++ ) { if ( a[ order[i] ][ prop ] ) { out.push( a[ order[i] ][ prop ][ prop2 ] ); } } } else { for ( ; i<ien ; i++ ) { out.push( a[ order[i] ][ prop ] ); } } return out; }; var _range = function ( len, start ) { var out = []; var end; if ( start === undefined ) { start = 0; end = len; } else { end = start; start = len; } for ( var i=start ; i<end ; i++ ) { out.push( i ); } return out; }; var _removeEmpty = function ( a ) { var out = []; for ( var i=0, ien=a.length ; i<ien ; i++ ) { if ( a[i] ) { // careful - will remove all falsy values! out.push( a[i] ); } } return out; }; var _stripHtml = function ( d ) { return d.replace( _re_html, '' ); }; /** * Determine if all values in the array are unique. This means we can short * cut the _unique method at the cost of a single loop. A sorted array is used * to easily check the values. * * @param {array} src Source array * @return {boolean} true if all unique, false otherwise * @ignore */ var _areAllUnique = function ( src ) { if ( src.length < 2 ) { return true; } var sorted = src.slice().sort(); var last = sorted[0]; for ( var i=1, ien=sorted.length ; i<ien ; i++ ) { if ( sorted[i] === last ) { return false; } last = sorted[i]; } return true; }; /** * Find the unique elements in a source array. * * @param {array} src Source array * @return {array} Array of unique items * @ignore */ var _unique = function ( src ) { if ( _areAllUnique( src ) ) { return src.slice(); } // A faster unique method is to use object keys to identify used values, // but this doesn't work with arrays or objects, which we must also // consider. See jsperf.com/compare-array-unique-versions/4 for more // information. var out = [], val, i, ien=src.length, j, k=0; again: for ( i=0 ; i<ien ; i++ ) { val = src[i]; for ( j=0 ; j<k ; j++ ) { if ( out[j] === val ) { continue again; } } out.push( val ); k++; } return out; }; /** * DataTables utility methods * * This namespace provides helper methods that DataTables uses internally to * create a DataTable, but which are not exclusively used only for DataTables. * These methods can be used by extension authors to save the duplication of * code. * * @namespace */ DataTable.util = { /** * Throttle the calls to a function. Arguments and context are maintained * for the throttled function. * * @param {function} fn Function to be called * @param {integer} freq Call frequency in mS * @return {function} Wrapped function */ throttle: function ( fn, freq ) { var frequency = freq !== undefined ? freq : 200, last, timer; return function () { var that = this, now = +new Date(), args = arguments; if ( last && now < last + frequency ) { clearTimeout( timer ); timer = setTimeout( function () { last = undefined; fn.apply( that, args ); }, frequency ); } else { last = now; fn.apply( that, args ); } }; }, /** * Escape a string such that it can be used in a regular expression * * @param {string} val string to escape * @returns {string} escaped string */ escapeRegex: function ( val ) { return val.replace( _re_escape_regex, '\\$1' ); } }; /** * Create a mapping object that allows camel case parameters to be looked up * for their Hungarian counterparts. The mapping is stored in a private * parameter called `_hungarianMap` which can be accessed on the source object. * @param {object} o * @memberof DataTable#oApi */ function _fnHungarianMap ( o ) { var hungarian = 'a aa ai ao as b fn i m o s ', match, newKey, map = {}; $.each( o, function (key, val) { match = key.match(/^([^A-Z]+?)([A-Z])/); if ( match && hungarian.indexOf(match[1]+' ') !== -1 ) { newKey = key.replace( match[0], match[2].toLowerCase() ); map[ newKey ] = key; if ( match[1] === 'o' ) { _fnHungarianMap( o[key] ); } } } ); o._hungarianMap = map; } /** * Convert from camel case parameters to Hungarian, based on a Hungarian map * created by _fnHungarianMap. * @param {object} src The model object which holds all parameters that can be * mapped. * @param {object} user The object to convert from camel case to Hungarian. * @param {boolean} force When set to `true`, properties which already have a * Hungarian value in the `user` object will be overwritten. Otherwise they * won't be. * @memberof DataTable#oApi */ function _fnCamelToHungarian ( src, user, force ) { if ( ! src._hungarianMap ) { _fnHungarianMap( src ); } var hungarianKey; $.each( user, function (key, val) { hungarianKey = src._hungarianMap[ key ]; if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) ) { // For objects, we need to buzz down into the object to copy parameters if ( hungarianKey.charAt(0) === 'o' ) { // Copy the camelCase options over to the hungarian if ( ! user[ hungarianKey ] ) { user[ hungarianKey ] = {}; } $.extend( true, user[hungarianKey], user[key] ); _fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force ); } else { user[hungarianKey] = user[ key ]; } } } ); } /** * Language compatibility - when certain options are given, and others aren't, we * need to duplicate the values over, in order to provide backwards compatibility * with older language files. * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnLanguageCompat( lang ) { // Note the use of the Hungarian notation for the parameters in this method as // this is called after the mapping of camelCase to Hungarian var defaults = DataTable.defaults.oLanguage; // Default mapping var defaultDecimal = defaults.sDecimal; if ( defaultDecimal ) { _addNumericSort( defaultDecimal ); } if ( lang ) { var zeroRecords = lang.sZeroRecords; // Backwards compatibility - if there is no sEmptyTable given, then use the same as // sZeroRecords - assuming that is given. if ( ! lang.sEmptyTable && zeroRecords && defaults.sEmptyTable === "No data available in table" ) { _fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' ); } // Likewise with loading records if ( ! lang.sLoadingRecords && zeroRecords && defaults.sLoadingRecords === "Loading..." ) { _fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' ); } // Old parameter name of the thousands separator mapped onto the new if ( lang.sInfoThousands ) { lang.sThousands = lang.sInfoThousands; } var decimal = lang.sDecimal; if ( decimal && defaultDecimal !== decimal ) { _addNumericSort( decimal ); } } } /** * Map one parameter onto another * @param {object} o Object to map * @param {*} knew The new parameter name * @param {*} old The old parameter name */ var _fnCompatMap = function ( o, knew, old ) { if ( o[ knew ] !== undefined ) { o[ old ] = o[ knew ]; } }; /** * Provide backwards compatibility for the main DT options. Note that the new * options are mapped onto the old parameters, so this is an external interface * change only. * @param {object} init Object to map */ function _fnCompatOpts ( init ) { _fnCompatMap( init, 'ordering', 'bSort' ); _fnCompatMap( init, 'orderMulti', 'bSortMulti' ); _fnCompatMap( init, 'orderClasses', 'bSortClasses' ); _fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' ); _fnCompatMap( init, 'order', 'aaSorting' ); _fnCompatMap( init, 'orderFixed', 'aaSortingFixed' ); _fnCompatMap( init, 'paging', 'bPaginate' ); _fnCompatMap( init, 'pagingType', 'sPaginationType' ); _fnCompatMap( init, 'pageLength', 'iDisplayLength' ); _fnCompatMap( init, 'searching', 'bFilter' ); // Boolean initialisation of x-scrolling if ( typeof init.sScrollX === 'boolean' ) { init.sScrollX = init.sScrollX ? '100%' : ''; } if ( typeof init.scrollX === 'boolean' ) { init.scrollX = init.scrollX ? '100%' : ''; } // Column search objects are in an array, so it needs to be converted // element by element var searchCols = init.aoSearchCols; if ( searchCols ) { for ( var i=0, ien=searchCols.length ; i<ien ; i++ ) { if ( searchCols[i] ) { _fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] ); } } } } /** * Provide backwards compatibility for column options. Note that the new options * are mapped onto the old parameters, so this is an external interface change * only. * @param {object} init Object to map */ function _fnCompatCols ( init ) { _fnCompatMap( init, 'orderable', 'bSortable' ); _fnCompatMap( init, 'orderData', 'aDataSort' ); _fnCompatMap( init, 'orderSequence', 'asSorting' ); _fnCompatMap( init, 'orderDataType', 'sortDataType' ); // orderData can be given as an integer var dataSort = init.aDataSort; if ( typeof dataSort === 'number' && ! $.isArray( dataSort ) ) { init.aDataSort = [ dataSort ]; } } /** * Browser feature detection for capabilities, quirks * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnBrowserDetect( settings ) { // We don't need to do this every time DataTables is constructed, the values // calculated are specific to the browser and OS configuration which we // don't expect to change between initialisations if ( ! DataTable.__browser ) { var browser = {}; DataTable.__browser = browser; // Scrolling feature / quirks detection var n = $('<div/>') .css( { position: 'fixed', top: 0, left: $(window).scrollLeft()*-1, // allow for scrolling height: 1, width: 1, overflow: 'hidden' } ) .append( $('<div/>') .css( { position: 'absolute', top: 1, left: 1, width: 100, overflow: 'scroll' } ) .append( $('<div/>') .css( { width: '100%', height: 10 } ) ) ) .appendTo( 'body' ); var outer = n.children(); var inner = outer.children(); // Numbers below, in order, are: // inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth // // IE6 XP: 100 100 100 83 // IE7 Vista: 100 100 100 83 // IE 8+ Windows: 83 83 100 83 // Evergreen Windows: 83 83 100 83 // Evergreen Mac with scrollbars: 85 85 100 85 // Evergreen Mac without scrollbars: 100 100 100 100 // Get scrollbar width browser.barWidth = outer[0].offsetWidth - outer[0].clientWidth; // IE6/7 will oversize a width 100% element inside a scrolling element, to // include the width of the scrollbar, while other browsers ensure the inner // element is contained without forcing scrolling browser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100; // In rtl text layout, some browsers (most, but not all) will place the // scrollbar on the left, rather than the right. browser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1; // IE8- don't provide height and width for getBoundingClientRect browser.bBounding = n[0].getBoundingClientRect().width ? true : false; n.remove(); } $.extend( settings.oBrowser, DataTable.__browser ); settings.oScroll.iBarWidth = DataTable.__browser.barWidth; } /** * Array.prototype reduce[Right] method, used for browsers which don't support * JS 1.6. Done this way to reduce code size, since we iterate either way * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnReduce ( that, fn, init, start, end, inc ) { var i = start, value, isSet = false; if ( init !== undefined ) { value = init; isSet = true; } while ( i !== end ) { if ( ! that.hasOwnProperty(i) ) { continue; } value = isSet ? fn( value, that[i], i, that ) : that[i]; isSet = true; i += inc; } return value; } /** * Add a column to the list used for the table with default values * @param {object} oSettings dataTables settings object * @param {node} nTh The th element for this column * @memberof DataTable#oApi */ function _fnAddColumn( oSettings, nTh ) { // Add column to aoColumns array var oDefaults = DataTable.defaults.column; var iCol = oSettings.aoColumns.length; var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, { "nTh": nTh ? nTh : document.createElement('th'), "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '', "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol], "mData": oDefaults.mData ? oDefaults.mData : iCol, idx: iCol } ); oSettings.aoColumns.push( oCol ); // Add search object for column specific search. Note that the `searchCols[ iCol ]` // passed into extend can be undefined. This allows the user to give a default // with only some of the parameters defined, and also not give a default var searchCols = oSettings.aoPreSearchCols; searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] ); // Use the default column options function to initialise classes etc _fnColumnOptions( oSettings, iCol, $(nTh).data() ); } /** * Apply options for a column * @param {object} oSettings dataTables settings object * @param {int} iCol column index to consider * @param {object} oOptions object with sType, bVisible and bSearchable etc * @memberof DataTable#oApi */ function _fnColumnOptions( oSettings, iCol, oOptions ) { var oCol = oSettings.aoColumns[ iCol ]; var oClasses = oSettings.oClasses; var th = $(oCol.nTh); // Try to get width information from the DOM. We can't get it from CSS // as we'd need to parse the CSS stylesheet. `width` option can override if ( ! oCol.sWidthOrig ) { // Width attribute oCol.sWidthOrig = th.attr('width') || null; // Style attribute var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/); if ( t ) { oCol.sWidthOrig = t[1]; } } /* User specified column options */ if ( oOptions !== undefined && oOptions !== null ) { // Backwards compatibility _fnCompatCols( oOptions ); // Map camel case parameters to their Hungarian counterparts _fnCamelToHungarian( DataTable.defaults.column, oOptions ); /* Backwards compatibility for mDataProp */ if ( oOptions.mDataProp !== undefined && !oOptions.mData ) { oOptions.mData = oOptions.mDataProp; } if ( oOptions.sType ) { oCol._sManualType = oOptions.sType; } // `class` is a reserved word in Javascript, so we need to provide // the ability to use a valid name for the camel case input if ( oOptions.className && ! oOptions.sClass ) { oOptions.sClass = oOptions.className; } if ( oOptions.sClass ) { th.addClass( oOptions.sClass ); } $.extend( oCol, oOptions ); _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" ); /* iDataSort to be applied (backwards compatibility), but aDataSort will take * priority if defined */ if ( oOptions.iDataSort !== undefined ) { oCol.aDataSort = [ oOptions.iDataSort ]; } _fnMap( oCol, oOptions, "aDataSort" ); } /* Cache the data get and set functions for speed */ var mDataSrc = oCol.mData; var mData = _fnGetObjectDataFn( mDataSrc ); var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null; var attrTest = function( src ) { return typeof src === 'string' && src.indexOf('@') !== -1; }; oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && ( attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter) ); oCol._setter = null; oCol.fnGetData = function (rowData, type, meta) { var innerData = mData( rowData, type, undefined, meta ); return mRender && type ? mRender( innerData, type, rowData, meta ) : innerData; }; oCol.fnSetData = function ( rowData, val, meta ) { return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta ); }; // Indicate if DataTables should read DOM data as an object or array // Used in _fnGetRowElements if ( typeof mDataSrc !== 'number' ) { oSettings._rowReadObject = true; } /* Feature sorting overrides column specific when off */ if ( !oSettings.oFeatures.bSort ) { oCol.bSortable = false; th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called } /* Check that the class assignment is correct for sorting */ var bAsc = $.inArray('asc', oCol.asSorting) !== -1; var bDesc = $.inArray('desc', oCol.asSorting) !== -1; if ( !oCol.bSortable || (!bAsc && !bDesc) ) { oCol.sSortingClass = oClasses.sSortableNone; oCol.sSortingClassJUI = ""; } else if ( bAsc && !bDesc ) { oCol.sSortingClass = oClasses.sSortableAsc; oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed; } else if ( !bAsc && bDesc ) { oCol.sSortingClass = oClasses.sSortableDesc; oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed; } else { oCol.sSortingClass = oClasses.sSortable; oCol.sSortingClassJUI = oClasses.sSortJUI; } } /** * Adjust the table column widths for new data. Note: you would probably want to * do a redraw after calling this function! * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnAdjustColumnSizing ( settings ) { /* Not interested in doing column width calculation if auto-width is disabled */ if ( settings.oFeatures.bAutoWidth !== false ) { var columns = settings.aoColumns; _fnCalculateColumnWidths( settings ); for ( var i=0 , iLen=columns.length ; i<iLen ; i++ ) { columns[i].nTh.style.width = columns[i].sWidth; } } var scroll = settings.oScroll; if ( scroll.sY !== '' || scroll.sX !== '') { _fnScrollDraw( settings ); } _fnCallbackFire( settings, null, 'column-sizing', [settings] ); } /** * Covert the index of a visible column to the index in the data array (take account * of hidden columns) * @param {object} oSettings dataTables settings object * @param {int} iMatch Visible column index to lookup * @returns {int} i the data index * @memberof DataTable#oApi */ function _fnVisibleToColumnIndex( oSettings, iMatch ) { var aiVis = _fnGetColumns( oSettings, 'bVisible' ); return typeof aiVis[iMatch] === 'number' ? aiVis[iMatch] : null; } /** * Covert the index of an index in the data array and convert it to the visible * column index (take account of hidden columns) * @param {int} iMatch Column index to lookup * @param {object} oSettings dataTables settings object * @returns {int} i the data index * @memberof DataTable#oApi */ function _fnColumnIndexToVisible( oSettings, iMatch ) { var aiVis = _fnGetColumns( oSettings, 'bVisible' ); var iPos = $.inArray( iMatch, aiVis ); return iPos !== -1 ? iPos : null; } /** * Get the number of visible columns * @param {object} oSettings dataTables settings object * @returns {int} i the number of visible columns * @memberof DataTable#oApi */ function _fnVisbleColumns( oSettings ) { var vis = 0; // No reduce in IE8, use a loop for now $.each( oSettings.aoColumns, function ( i, col ) { if ( col.bVisible && $(col.nTh).css('display') !== 'none' ) { vis++; } } ); return vis; } /** * Get an array of column indexes that match a given property * @param {object} oSettings dataTables settings object * @param {string} sParam Parameter in aoColumns to look for - typically * bVisible or bSearchable * @returns {array} Array of indexes with matched properties * @memberof DataTable#oApi */ function _fnGetColumns( oSettings, sParam ) { var a = []; $.map( oSettings.aoColumns, function(val, i) { if ( val[sParam] ) { a.push( i ); } } ); return a; } /** * Calculate the 'type' of a column * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnColumnTypes ( settings ) { var columns = settings.aoColumns; var data = settings.aoData; var types = DataTable.ext.type.detect; var i, ien, j, jen, k, ken; var col, cell, detectedType, cache; // For each column, spin over the for ( i=0, ien=columns.length ; i<ien ; i++ ) { col = columns[i]; cache = []; if ( ! col.sType && col._sManualType ) { col.sType = col._sManualType; } else if ( ! col.sType ) { for ( j=0, jen=types.length ; j<jen ; j++ ) { for ( k=0, ken=data.length ; k<ken ; k++ ) { // Use a cache array so we only need to get the type data // from the formatter once (when using multiple detectors) if ( cache[k] === undefined ) { cache[k] = _fnGetCellData( settings, k, i, 'type' ); } detectedType = types[j]( cache[k], settings ); // If null, then this type can't apply to this column, so // rather than testing all cells, break out. There is an // exception for the last type which is `html`. We need to // scan all rows since it is possible to mix string and HTML // types if ( ! detectedType && j !== types.length-1 ) { break; } // Only a single match is needed for html type since it is // bottom of the pile and very similar to string if ( detectedType === 'html' ) { break; } } // Type is valid for all data points in the column - use this // type if ( detectedType ) { col.sType = detectedType; break; } } // Fall back - if no type was detected, always use string if ( ! col.sType ) { col.sType = 'string'; } } } } /** * Take the column definitions and static columns arrays and calculate how * they relate to column indexes. The callback function will then apply the * definition found for a column to a suitable configuration object. * @param {object} oSettings dataTables settings object * @param {array} aoColDefs The aoColumnDefs array that is to be applied * @param {array} aoCols The aoColumns array that defines columns individually * @param {function} fn Callback function - takes two parameters, the calculated * column index and the definition for that column. * @memberof DataTable#oApi */ function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn ) { var i, iLen, j, jLen, k, kLen, def; var columns = oSettings.aoColumns; // Column definitions with aTargets if ( aoColDefs ) { /* Loop over the definitions array - loop in reverse so first instance has priority */ for ( i=aoColDefs.length-1 ; i>=0 ; i-- ) { def = aoColDefs[i]; /* Each definition can target multiple columns, as it is an array */ var aTargets = def.targets !== undefined ? def.targets : def.aTargets; if ( ! $.isArray( aTargets ) ) { aTargets = [ aTargets ]; } for ( j=0, jLen=aTargets.length ; j<jLen ; j++ ) { if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 ) { /* Add columns that we don't yet know about */ while( columns.length <= aTargets[j] ) { _fnAddColumn( oSettings ); } /* Integer, basic index */ fn( aTargets[j], def ); } else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 ) { /* Negative integer, right to left column counting */ fn( columns.length+aTargets[j], def ); } else if ( typeof aTargets[j] === 'string' ) { /* Class name matching on TH element */ for ( k=0, kLen=columns.length ; k<kLen ; k++ ) { if ( aTargets[j] == "_all" || $(columns[k].nTh).hasClass( aTargets[j] ) ) { fn( k, def ); } } } } } } // Statically defined columns array if ( aoCols ) { for ( i=0, iLen=aoCols.length ; i<iLen ; i++ ) { fn( i, aoCols[i] ); } } } /** * Add a data array to the table, creating DOM node etc. This is the parallel to * _fnGatherData, but for adding rows from a Javascript source, rather than a * DOM source. * @param {object} oSettings dataTables settings object * @param {array} aData data array to be added * @param {node} [nTr] TR element to add to the table - optional. If not given, * DataTables will create a row automatically * @param {array} [anTds] Array of TD|TH elements for the row - must be given * if nTr is. * @returns {int} >=0 if successful (index of new aoData entry), -1 if failed * @memberof DataTable#oApi */ function _fnAddData ( oSettings, aDataIn, nTr, anTds ) { /* Create the object for storing information about this new row */ var iRow = oSettings.aoData.length; var oData = $.extend( true, {}, DataTable.models.oRow, { src: nTr ? 'dom' : 'data', idx: iRow } ); oData._aData = aDataIn; oSettings.aoData.push( oData ); /* Create the cells */ var nTd, sThisType; var columns = oSettings.aoColumns; // Invalidate the column types as the new data needs to be revalidated for ( var i=0, iLen=columns.length ; i<iLen ; i++ ) { columns[i].sType = null; } /* Add to the display array */ oSettings.aiDisplayMaster.push( iRow ); var id = oSettings.rowIdFn( aDataIn ); if ( id !== undefined ) { oSettings.aIds[ id ] = oData; } /* Create the DOM information, or register it if already present */ if ( nTr || ! oSettings.oFeatures.bDeferRender ) { _fnCreateTr( oSettings, iRow, nTr, anTds ); } return iRow; } /** * Add one or more TR elements to the table. Generally we'd expect to * use this for reading data from a DOM sourced table, but it could be * used for an TR element. Note that if a TR is given, it is used (i.e. * it is not cloned). * @param {object} settings dataTables settings object * @param {array|node|jQuery} trs The TR element(s) to add to the table * @returns {array} Array of indexes for the added rows * @memberof DataTable#oApi */ function _fnAddTr( settings, trs ) { var row; // Allow an individual node to be passed in if ( ! (trs instanceof $) ) { trs = $(trs); } return trs.map( function (i, el) { row = _fnGetRowElements( settings, el ); return _fnAddData( settings, row.data, el, row.cells ); } ); } /** * Take a TR element and convert it to an index in aoData * @param {object} oSettings dataTables settings object * @param {node} n the TR element to find * @returns {int} index if the node is found, null if not * @memberof DataTable#oApi */ function _fnNodeToDataIndex( oSettings, n ) { return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null; } /** * Take a TD element and convert it into a column data index (not the visible index) * @param {object} oSettings dataTables settings object * @param {int} iRow The row number the TD/TH can be found in * @param {node} n The TD/TH element to find * @returns {int} index if the node is found, -1 if not * @memberof DataTable#oApi */ function _fnNodeToColumnIndex( oSettings, iRow, n ) { return $.inArray( n, oSettings.aoData[ iRow ].anCells ); } /** * Get the data for a given cell from the internal cache, taking into account data mapping * @param {object} settings dataTables settings object * @param {int} rowIdx aoData row id * @param {int} colIdx Column index * @param {string} type data get type ('display', 'type' 'filter' 'sort') * @returns {*} Cell data * @memberof DataTable#oApi */ function _fnGetCellData( settings, rowIdx, colIdx, type ) { var draw = settings.iDraw; var col = settings.aoColumns[colIdx]; var rowData = settings.aoData[rowIdx]._aData; var defaultContent = col.sDefaultContent; var cellData = col.fnGetData( rowData, type, { settings: settings, row: rowIdx, col: colIdx } ); if ( cellData === undefined ) { if ( settings.iDrawError != draw && defaultContent === null ) { _fnLog( settings, 0, "Requested unknown parameter "+ (typeof col.mData=='function' ? '{function}' : "'"+col.mData+"'")+ " for row "+rowIdx+", column "+colIdx, 4 ); settings.iDrawError = draw; } return defaultContent; } // When the data source is null and a specific data type is requested (i.e. // not the original data), we can use default column data if ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) { cellData = defaultContent; } else if ( typeof cellData === 'function' ) { // If the data source is a function, then we run it and use the return, // executing in the scope of the data object (for instances) return cellData.call( rowData ); } if ( cellData === null && type == 'display' ) { return ''; } return cellData; } /** * Set the value for a specific cell, into the internal data cache * @param {object} settings dataTables settings object * @param {int} rowIdx aoData row id * @param {int} colIdx Column index * @param {*} val Value to set * @memberof DataTable#oApi */ function _fnSetCellData( settings, rowIdx, colIdx, val ) { var col = settings.aoColumns[colIdx]; var rowData = settings.aoData[rowIdx]._aData; col.fnSetData( rowData, val, { settings: settings, row: rowIdx, col: colIdx } ); } // Private variable that is used to match action syntax in the data property object var __reArray = /\[.*?\]$/; var __reFn = /\(\)$/; /** * Split string on periods, taking into account escaped periods * @param {string} str String to split * @return {array} Split string */ function _fnSplitObjNotation( str ) { return $.map( str.match(/(\\.|[^\.])+/g) || [''], function ( s ) { return s.replace(/\\\./g, '.'); } ); } /** * Return a function that can be used to get data from a source object, taking * into account the ability to use nested objects as a source * @param {string|int|function} mSource The data source for the object * @returns {function} Data get function * @memberof DataTable#oApi */ function _fnGetObjectDataFn( mSource ) { if ( $.isPlainObject( mSource ) ) { /* Build an object of get functions, and wrap them in a single call */ var o = {}; $.each( mSource, function (key, val) { if ( val ) { o[key] = _fnGetObjectDataFn( val ); } } ); return function (data, type, row, meta) { var t = o[type] || o._; return t !== undefined ? t(data, type, row, meta) : data; }; } else if ( mSource === null ) { /* Give an empty string for rendering / sorting etc */ return function (data) { // type, row and meta also passed, but not used return data; }; } else if ( typeof mSource === 'function' ) { return function (data, type, row, meta) { return mSource( data, type, row, meta ); }; } else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) ) { /* If there is a . in the source string then the data source is in a * nested object so we loop over the data for each level to get the next * level down. On each loop we test for undefined, and if found immediately * return. This allows entire objects to be missing and sDefaultContent to * be used if defined, rather than throwing an error */ var fetchData = function (data, type, src) { var arrayNotation, funcNotation, out, innerSrc; if ( src !== "" ) { var a = _fnSplitObjNotation( src ); for ( var i=0, iLen=a.length ; i<iLen ; i++ ) { // Check if we are dealing with special notation arrayNotation = a[i].match(__reArray); funcNotation = a[i].match(__reFn); if ( arrayNotation ) { // Array notation a[i] = a[i].replace(__reArray, ''); // Condition allows simply [] to be passed in if ( a[i] !== "" ) { data = data[ a[i] ]; } out = []; // Get the remainder of the nested object to get a.splice( 0, i+1 ); innerSrc = a.join('.'); // Traverse each entry in the array getting the properties requested if ( $.isArray( data ) ) { for ( var j=0, jLen=data.length ; j<jLen ; j++ ) { out.push( fetchData( data[j], type, innerSrc ) ); } } // If a string is given in between the array notation indicators, that // is used to join the strings together, otherwise an array is returned var join = arrayNotation[0].substring(1, arrayNotation[0].length-1); data = (join==="") ? out : out.join(join); // The inner call to fetchData has already traversed through the remainder // of the source requested, so we exit from the loop break; } else if ( funcNotation ) { // Function call a[i] = a[i].replace(__reFn, ''); data = data[ a[i] ](); continue; } if ( data === null || data[ a[i] ] === undefined ) { return undefined; } data = data[ a[i] ]; } } return data; }; return function (data, type) { // row and meta also passed, but not used return fetchData( data, type, mSource ); }; } else { /* Array or flat object mapping */ return function (data, type) { // row and meta also passed, but not used return data[mSource]; }; } } /** * Return a function that can be used to set data from a source object, taking * into account the ability to use nested objects as a source * @param {string|int|function} mSource The data source for the object * @returns {function} Data set function * @memberof DataTable#oApi */ function _fnSetObjectDataFn( mSource ) { if ( $.isPlainObject( mSource ) ) { /* Unlike get, only the underscore (global) option is used for for * setting data since we don't know the type here. This is why an object * option is not documented for `mData` (which is read/write), but it is * for `mRender` which is read only. */ return _fnSetObjectDataFn( mSource._ ); } else if ( mSource === null ) { /* Nothing to do when the data source is null */ return function () {}; } else if ( typeof mSource === 'function' ) { return function (data, val, meta) { mSource( data, 'set', val, meta ); }; } else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) ) { /* Like the get, we need to get data from a nested object */ var setData = function (data, val, src) { var a = _fnSplitObjNotation( src ), b; var aLast = a[a.length-1]; var arrayNotation, funcNotation, o, innerSrc; for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ ) { // Check if we are dealing with an array notation request arrayNotation = a[i].match(__reArray); funcNotation = a[i].match(__reFn); if ( arrayNotation ) { a[i] = a[i].replace(__reArray, ''); data[ a[i] ] = []; // Get the remainder of the nested object to set so we can recurse b = a.slice(); b.splice( 0, i+1 ); innerSrc = b.join('.'); // Traverse each entry in the array setting the properties requested if ( $.isArray( val ) ) { for ( var j=0, jLen=val.length ; j<jLen ; j++ ) { o = {}; setData( o, val[j], innerSrc ); data[ a[i] ].push( o ); } } else { // We've been asked to save data to an array, but it // isn't array data to be saved. Best that can be done // is to just save the value. data[ a[i] ] = val; } // The inner call to setData has already traversed through the remainder // of the source and has set the data, thus we can exit here return; } else if ( funcNotation ) { // Function call a[i] = a[i].replace(__reFn, ''); data = data[ a[i] ]( val ); } // If the nested object doesn't currently exist - since we are // trying to set the value - create it if ( data[ a[i] ] === null || data[ a[i] ] === undefined ) { data[ a[i] ] = {}; } data = data[ a[i] ]; } // Last item in the input - i.e, the actual set if ( aLast.match(__reFn ) ) { // Function call data = data[ aLast.replace(__reFn, '') ]( val ); } else { // If array notation is used, we just want to strip it and use the property name // and assign the value. If it isn't used, then we get the result we want anyway data[ aLast.replace(__reArray, '') ] = val; } }; return function (data, val) { // meta is also passed in, but not used return setData( data, val, mSource ); }; } else { /* Array or flat object mapping */ return function (data, val) { // meta is also passed in, but not used data[mSource] = val; }; } } /** * Return an array with the full table data * @param {object} oSettings dataTables settings object * @returns array {array} aData Master data array * @memberof DataTable#oApi */ function _fnGetDataMaster ( settings ) { return _pluck( settings.aoData, '_aData' ); } /** * Nuke the table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnClearTable( settings ) { settings.aoData.length = 0; settings.aiDisplayMaster.length = 0; settings.aiDisplay.length = 0; settings.aIds = {}; } /** * Take an array of integers (index array) and remove a target integer (value - not * the key!) * @param {array} a Index array to target * @param {int} iTarget value to find * @memberof DataTable#oApi */ function _fnDeleteIndex( a, iTarget, splice ) { var iTargetIndex = -1; for ( var i=0, iLen=a.length ; i<iLen ; i++ ) { if ( a[i] == iTarget ) { iTargetIndex = i; } else if ( a[i] > iTarget ) { a[i]--; } } if ( iTargetIndex != -1 && splice === undefined ) { a.splice( iTargetIndex, 1 ); } } /** * Mark cached data as invalid such that a re-read of the data will occur when * the cached data is next requested. Also update from the data source object. * * @param {object} settings DataTables settings object * @param {int} rowIdx Row index to invalidate * @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom' * or 'data' * @param {int} [colIdx] Column index to invalidate. If undefined the whole * row will be invalidated * @memberof DataTable#oApi * * @todo For the modularisation of v1.11 this will need to become a callback, so * the sort and filter methods can subscribe to it. That will required * initialisation options for sorting, which is why it is not already baked in */ function _fnInvalidate( settings, rowIdx, src, colIdx ) { var row = settings.aoData[ rowIdx ]; var i, ien; var cellWrite = function ( cell, col ) { // This is very frustrating, but in IE if you just write directly // to innerHTML, and elements that are overwritten are GC'ed, // even if there is a reference to them elsewhere while ( cell.childNodes.length ) { cell.removeChild( cell.firstChild ); } cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' ); }; // Are we reading last data from DOM or the data object? if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) { // Read the data from the DOM row._aData = _fnGetRowElements( settings, row, colIdx, colIdx === undefined ? undefined : row._aData ) .data; } else { // Reading from data object, update the DOM var cells = row.anCells; if ( cells ) { if ( colIdx !== undefined ) { cellWrite( cells[colIdx], colIdx ); } else { for ( i=0, ien=cells.length ; i<ien ; i++ ) { cellWrite( cells[i], i ); } } } } // For both row and cell invalidation, the cached data for sorting and // filtering is nulled out row._aSortData = null; row._aFilterData = null; // Invalidate the type for a specific column (if given) or all columns since // the data might have changed var cols = settings.aoColumns; if ( colIdx !== undefined ) { cols[ colIdx ].sType = null; } else { for ( i=0, ien=cols.length ; i<ien ; i++ ) { cols[i].sType = null; } // Update DataTables special `DT_*` attributes for the row _fnRowAttributes( settings, row ); } } /** * Build a data source object from an HTML row, reading the contents of the * cells that are in the row. * * @param {object} settings DataTables settings object * @param {node|object} TR element from which to read data or existing row * object from which to re-read the data from the cells * @param {int} [colIdx] Optional column index * @param {array|object} [d] Data source object. If `colIdx` is given then this * parameter should also be given and will be used to write the data into. * Only the column in question will be written * @returns {object} Object with two parameters: `data` the data read, in * document order, and `cells` and array of nodes (they can be useful to the * caller, so rather than needing a second traversal to get them, just return * them from here). * @memberof DataTable#oApi */ function _fnGetRowElements( settings, row, colIdx, d ) { var tds = [], td = row.firstChild, name, col, o, i=0, contents, columns = settings.aoColumns, objectRead = settings._rowReadObject; // Allow the data object to be passed in, or construct d = d !== undefined ? d : objectRead ? {} : []; var attr = function ( str, td ) { if ( typeof str === 'string' ) { var idx = str.indexOf('@'); if ( idx !== -1 ) { var attr = str.substring( idx+1 ); var setter = _fnSetObjectDataFn( str ); setter( d, td.getAttribute( attr ) ); } } }; // Read data from a cell and store into the data object var cellProcess = function ( cell ) { if ( colIdx === undefined || colIdx === i ) { col = columns[i]; contents = $.trim(cell.innerHTML); if ( col && col._bAttrSrc ) { var setter = _fnSetObjectDataFn( col.mData._ ); setter( d, contents ); attr( col.mData.sort, cell ); attr( col.mData.type, cell ); attr( col.mData.filter, cell ); } else { // Depending on the `data` option for the columns the data can // be read to either an object or an array. if ( objectRead ) { if ( ! col._setter ) { // Cache the setter function col._setter = _fnSetObjectDataFn( col.mData ); } col._setter( d, contents ); } else { d[i] = contents; } } } i++; }; if ( td ) { // `tr` element was passed in while ( td ) { name = td.nodeName.toUpperCase(); if ( name == "TD" || name == "TH" ) { cellProcess( td ); tds.push( td ); } td = td.nextSibling; } } else { // Existing row object passed in tds = row.anCells; for ( var j=0, jen=tds.length ; j<jen ; j++ ) { cellProcess( tds[j] ); } } // Read the ID from the DOM if present var rowNode = row.firstChild ? row : row.nTr; if ( rowNode ) { var id = rowNode.getAttribute( 'id' ); if ( id ) { _fnSetObjectDataFn( settings.rowId )( d, id ); } } return { data: d, cells: tds }; } /** * Create a new TR element (and it's TD children) for a row * @param {object} oSettings dataTables settings object * @param {int} iRow Row to consider * @param {node} [nTrIn] TR element to add to the table - optional. If not given, * DataTables will create a row automatically * @param {array} [anTds] Array of TD|TH elements for the row - must be given * if nTr is. * @memberof DataTable#oApi */ function _fnCreateTr ( oSettings, iRow, nTrIn, anTds ) { var row = oSettings.aoData[iRow], rowData = row._aData, cells = [], nTr, nTd, oCol, i, iLen; if ( row.nTr === null ) { nTr = nTrIn || document.createElement('tr'); row.nTr = nTr; row.anCells = cells; /* Use a private property on the node to allow reserve mapping from the node * to the aoData array for fast look up */ nTr._DT_RowIndex = iRow; /* Special parameters can be given by the data source to be used on the row */ _fnRowAttributes( oSettings, row ); /* Process each column */ for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ ) { oCol = oSettings.aoColumns[i]; nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType ); nTd._DT_CellIndex = { row: iRow, column: i }; cells.push( nTd ); // Need to create the HTML if new, or if a rendering function is defined if ( (!nTrIn || oCol.mRender || oCol.mData !== i) && (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display') ) { nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' ); } /* Add user defined class */ if ( oCol.sClass ) { nTd.className += ' '+oCol.sClass; } // Visibility - add or remove as required if ( oCol.bVisible && ! nTrIn ) { nTr.appendChild( nTd ); } else if ( ! oCol.bVisible && nTrIn ) { nTd.parentNode.removeChild( nTd ); } if ( oCol.fnCreatedCell ) { oCol.fnCreatedCell.call( oSettings.oInstance, nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i ); } } _fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow, cells] ); } // Remove once webkit bug 131819 and Chromium bug 365619 have been resolved // and deployed row.nTr.setAttribute( 'role', 'row' ); } /** * Add attributes to a row based on the special `DT_*` parameters in a data * source object. * @param {object} settings DataTables settings object * @param {object} DataTables row object for the row to be modified * @memberof DataTable#oApi */ function _fnRowAttributes( settings, row ) { var tr = row.nTr; var data = row._aData; if ( tr ) { var id = settings.rowIdFn( data ); if ( id ) { tr.id = id; } if ( data.DT_RowClass ) { // Remove any classes added by DT_RowClass before var a = data.DT_RowClass.split(' '); row.__rowc = row.__rowc ? _unique( row.__rowc.concat( a ) ) : a; $(tr) .removeClass( row.__rowc.join(' ') ) .addClass( data.DT_RowClass ); } if ( data.DT_RowAttr ) { $(tr).attr( data.DT_RowAttr ); } if ( data.DT_RowData ) { $(tr).data( data.DT_RowData ); } } } /** * Create the HTML header for the table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnBuildHead( oSettings ) { var i, ien, cell, row, column; var thead = oSettings.nTHead; var tfoot = oSettings.nTFoot; var createHeader = $('th, td', thead).length === 0; var classes = oSettings.oClasses; var columns = oSettings.aoColumns; if ( createHeader ) { row = $('<tr/>').appendTo( thead ); } for ( i=0, ien=columns.length ; i<ien ; i++ ) { column = columns[i]; cell = $( column.nTh ).addClass( column.sClass ); if ( createHeader ) { cell.appendTo( row ); } // 1.11 move into sorting if ( oSettings.oFeatures.bSort ) { cell.addClass( column.sSortingClass ); if ( column.bSortable !== false ) { cell .attr( 'tabindex', oSettings.iTabIndex ) .attr( 'aria-controls', oSettings.sTableId ); _fnSortAttachListener( oSettings, column.nTh, i ); } } if ( column.sTitle != cell[0].innerHTML ) { cell.html( column.sTitle ); } _fnRenderer( oSettings, 'header' )( oSettings, cell, column, classes ); } if ( createHeader ) { _fnDetectHeader( oSettings.aoHeader, thead ); } /* ARIA role for the rows */ $(thead).find('>tr').attr('role', 'row'); /* Deal with the footer - add classes if required */ $(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH ); $(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH ); // Cache the footer cells. Note that we only take the cells from the first // row in the footer. If there is more than one row the user wants to // interact with, they need to use the table().foot() method. Note also this // allows cells to be used for multiple columns using colspan if ( tfoot !== null ) { var cells = oSettings.aoFooter[0]; for ( i=0, ien=cells.length ; i<ien ; i++ ) { column = columns[i]; column.nTf = cells[i].cell; if ( column.sClass ) { $(column.nTf).addClass( column.sClass ); } } } } /** * Draw the header (or footer) element based on the column visibility states. The * methodology here is to use the layout array from _fnDetectHeader, modified for * the instantaneous column visibility, to construct the new layout. The grid is * traversed over cell at a time in a rows x columns grid fashion, although each * cell insert can cover multiple elements in the grid - which is tracks using the * aApplied array. Cell inserts in the grid will only occur where there isn't * already a cell in that position. * @param {object} oSettings dataTables settings object * @param array {objects} aoSource Layout array from _fnDetectHeader * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc, * @memberof DataTable#oApi */ function _fnDrawHead( oSettings, aoSource, bIncludeHidden ) { var i, iLen, j, jLen, k, kLen, n, nLocalTr; var aoLocal = []; var aApplied = []; var iColumns = oSettings.aoColumns.length; var iRowspan, iColspan; if ( ! aoSource ) { return; } if ( bIncludeHidden === undefined ) { bIncludeHidden = false; } /* Make a copy of the master layout array, but without the visible columns in it */ for ( i=0, iLen=aoSource.length ; i<iLen ; i++ ) { aoLocal[i] = aoSource[i].slice(); aoLocal[i].nTr = aoSource[i].nTr; /* Remove any columns which are currently hidden */ for ( j=iColumns-1 ; j>=0 ; j-- ) { if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden ) { aoLocal[i].splice( j, 1 ); } } /* Prep the applied array - it needs an element for each row */ aApplied.push( [] ); } for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ ) { nLocalTr = aoLocal[i].nTr; /* All cells are going to be replaced, so empty out the row */ if ( nLocalTr ) { while( (n = nLocalTr.firstChild) ) { nLocalTr.removeChild( n ); } } for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ ) { iRowspan = 1; iColspan = 1; /* Check to see if there is already a cell (row/colspan) covering our target * insert point. If there is, then there is nothing to do. */ if ( aApplied[i][j] === undefined ) { nLocalTr.appendChild( aoLocal[i][j].cell ); aApplied[i][j] = 1; /* Expand the cell to cover as many rows as needed */ while ( aoLocal[i+iRowspan] !== undefined && aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell ) { aApplied[i+iRowspan][j] = 1; iRowspan++; } /* Expand the cell to cover as many columns as needed */ while ( aoLocal[i][j+iColspan] !== undefined && aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell ) { /* Must update the applied array over the rows for the columns */ for ( k=0 ; k<iRowspan ; k++ ) { aApplied[i+k][j+iColspan] = 1; } iColspan++; } /* Do the actual expansion in the DOM */ $(aoLocal[i][j].cell) .attr('rowspan', iRowspan) .attr('colspan', iColspan); } } } } /** * Insert the required TR nodes into the table for display * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnDraw( oSettings ) { /* Provide a pre-callback function which can be used to cancel the draw is false is returned */ var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] ); if ( $.inArray( false, aPreDraw ) !== -1 ) { _fnProcessingDisplay( oSettings, false ); return; } var i, iLen, n; var anRows = []; var iRowCount = 0; var asStripeClasses = oSettings.asStripeClasses; var iStripes = asStripeClasses.length; var iOpenRows = oSettings.aoOpenRows.length; var oLang = oSettings.oLanguage; var iInitDisplayStart = oSettings.iInitDisplayStart; var bServerSide = _fnDataSource( oSettings ) == 'ssp'; var aiDisplay = oSettings.aiDisplay; oSettings.bDrawing = true; /* Check and see if we have an initial draw position from state saving */ if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 ) { oSettings._iDisplayStart = bServerSide ? iInitDisplayStart : iInitDisplayStart >= oSettings.fnRecordsDisplay() ? 0 : iInitDisplayStart; oSettings.iInitDisplayStart = -1; } var iDisplayStart = oSettings._iDisplayStart; var iDisplayEnd = oSettings.fnDisplayEnd(); /* Server-side processing draw intercept */ if ( oSettings.bDeferLoading ) { oSettings.bDeferLoading = false; oSettings.iDraw++; _fnProcessingDisplay( oSettings, false ); } else if ( !bServerSide ) { oSettings.iDraw++; } else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) ) { return; } if ( aiDisplay.length !== 0 ) { var iStart = bServerSide ? 0 : iDisplayStart; var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd; for ( var j=iStart ; j<iEnd ; j++ ) { var iDataIndex = aiDisplay[j]; var aoData = oSettings.aoData[ iDataIndex ]; if ( aoData.nTr === null ) { _fnCreateTr( oSettings, iDataIndex ); } var nRow = aoData.nTr; /* Remove the old striping classes and then add the new one */ if ( iStripes !== 0 ) { var sStripe = asStripeClasses[ iRowCount % iStripes ]; if ( aoData._sRowStripe != sStripe ) { $(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe ); aoData._sRowStripe = sStripe; } } // Row callback functions - might want to manipulate the row // iRowCount and j are not currently documented. Are they at all // useful? _fnCallbackFire( oSettings, 'aoRowCallback', null, [nRow, aoData._aData, iRowCount, j, iDataIndex] ); anRows.push( nRow ); iRowCount++; } } else { /* Table is empty - create a row with an empty message in it */ var sZero = oLang.sZeroRecords; if ( oSettings.iDraw == 1 && _fnDataSource( oSettings ) == 'ajax' ) { sZero = oLang.sLoadingRecords; } else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 ) { sZero = oLang.sEmptyTable; } anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } ) .append( $('<td />', { 'valign': 'top', 'colSpan': _fnVisbleColumns( oSettings ), 'class': oSettings.oClasses.sRowEmpty } ).html( sZero ) )[0]; } /* Header and footer callbacks */ _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0], _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] ); _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0], _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] ); var body = $(oSettings.nTBody); body.children().detach(); body.append( $(anRows) ); /* Call all required callback functions for the end of a draw */ _fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] ); /* Draw is complete, sorting and filtering must be as well */ oSettings.bSorted = false; oSettings.bFiltered = false; oSettings.bDrawing = false; } /** * Redraw the table - taking account of the various features which are enabled * @param {object} oSettings dataTables settings object * @param {boolean} [holdPosition] Keep the current paging position. By default * the paging is reset to the first page * @memberof DataTable#oApi */ function _fnReDraw( settings, holdPosition ) { var features = settings.oFeatures, sort = features.bSort, filter = features.bFilter; if ( sort ) { _fnSort( settings ); } if ( filter ) { _fnFilterComplete( settings, settings.oPreviousSearch ); } else { // No filtering, so we want to just use the display master settings.aiDisplay = settings.aiDisplayMaster.slice(); } if ( holdPosition !== true ) { settings._iDisplayStart = 0; } // Let any modules know about the draw hold position state (used by // scrolling internally) settings._drawHold = holdPosition; _fnDraw( settings ); settings._drawHold = false; } /** * Add the options to the page HTML for the table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnAddOptionsHtml ( oSettings ) { var classes = oSettings.oClasses; var table = $(oSettings.nTable); var holding = $('<div/>').insertBefore( table ); // Holding element for speed var features = oSettings.oFeatures; // All DataTables are wrapped in a div var insert = $('<div/>', { id: oSettings.sTableId+'_wrapper', 'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter) } ); oSettings.nHolding = holding[0]; oSettings.nTableWrapper = insert[0]; oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling; /* Loop over the user set positioning and place the elements as needed */ var aDom = oSettings.sDom.split(''); var featureNode, cOption, nNewNode, cNext, sAttr, j; for ( var i=0 ; i<aDom.length ; i++ ) { featureNode = null; cOption = aDom[i]; if ( cOption == '<' ) { /* New container div */ nNewNode = $('<div/>')[0]; /* Check to see if we should append an id and/or a class name to the container */ cNext = aDom[i+1]; if ( cNext == "'" || cNext == '"' ) { sAttr = ""; j = 2; while ( aDom[i+j] != cNext ) { sAttr += aDom[i+j]; j++; } /* Replace jQuery UI constants @todo depreciated */ if ( sAttr == "H" ) { sAttr = classes.sJUIHeader; } else if ( sAttr == "F" ) { sAttr = classes.sJUIFooter; } /* The attribute can be in the format of "#id.class", "#id" or "class" This logic * breaks the string into parts and applies them as needed */ if ( sAttr.indexOf('.') != -1 ) { var aSplit = sAttr.split('.'); nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1); nNewNode.className = aSplit[1]; } else if ( sAttr.charAt(0) == "#" ) { nNewNode.id = sAttr.substr(1, sAttr.length-1); } else { nNewNode.className = sAttr; } i += j; /* Move along the position array */ } insert.append( nNewNode ); insert = $(nNewNode); } else if ( cOption == '>' ) { /* End container div */ insert = insert.parent(); } // @todo Move options into their own plugins? else if ( cOption == 'l' && features.bPaginate && features.bLengthChange ) { /* Length */ featureNode = _fnFeatureHtmlLength( oSettings ); } else if ( cOption == 'f' && features.bFilter ) { /* Filter */ featureNode = _fnFeatureHtmlFilter( oSettings ); } else if ( cOption == 'r' && features.bProcessing ) { /* pRocessing */ featureNode = _fnFeatureHtmlProcessing( oSettings ); } else if ( cOption == 't' ) { /* Table */ featureNode = _fnFeatureHtmlTable( oSettings ); } else if ( cOption == 'i' && features.bInfo ) { /* Info */ featureNode = _fnFeatureHtmlInfo( oSettings ); } else if ( cOption == 'p' && features.bPaginate ) { /* Pagination */ featureNode = _fnFeatureHtmlPaginate( oSettings ); } else if ( DataTable.ext.feature.length !== 0 ) { /* Plug-in features */ var aoFeatures = DataTable.ext.feature; for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ ) { if ( cOption == aoFeatures[k].cFeature ) { featureNode = aoFeatures[k].fnInit( oSettings ); break; } } } /* Add to the 2D features array */ if ( featureNode ) { var aanFeatures = oSettings.aanFeatures; if ( ! aanFeatures[cOption] ) { aanFeatures[cOption] = []; } aanFeatures[cOption].push( featureNode ); insert.append( featureNode ); } } /* Built our DOM structure - replace the holding div with what we want */ holding.replaceWith( insert ); oSettings.nHolding = null; } /** * Use the DOM source to create up an array of header cells. The idea here is to * create a layout grid (array) of rows x columns, which contains a reference * to the cell that that point in the grid (regardless of col/rowspan), such that * any column / row could be removed and the new grid constructed * @param array {object} aLayout Array to store the calculated layout in * @param {node} nThead The header/footer element for the table * @memberof DataTable#oApi */ function _fnDetectHeader ( aLayout, nThead ) { var nTrs = $(nThead).children('tr'); var nTr, nCell; var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan; var bUnique; var fnShiftCol = function ( a, i, j ) { var k = a[i]; while ( k[j] ) { j++; } return j; }; aLayout.splice( 0, aLayout.length ); /* We know how many rows there are in the layout - so prep it */ for ( i=0, iLen=nTrs.length ; i<iLen ; i++ ) { aLayout.push( [] ); } /* Calculate a layout array */ for ( i=0, iLen=nTrs.length ; i<iLen ; i++ ) { nTr = nTrs[i]; iColumn = 0; /* For every cell in the row... */ nCell = nTr.firstChild; while ( nCell ) { if ( nCell.nodeName.toUpperCase() == "TD" || nCell.nodeName.toUpperCase() == "TH" ) { /* Get the col and rowspan attributes from the DOM and sanitise them */ iColspan = nCell.getAttribute('colspan') * 1; iRowspan = nCell.getAttribute('rowspan') * 1; iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan; iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan; /* There might be colspan cells already in this row, so shift our target * accordingly */ iColShifted = fnShiftCol( aLayout, i, iColumn ); /* Cache calculation for unique columns */ bUnique = iColspan === 1 ? true : false; /* If there is col / rowspan, copy the information into the layout grid */ for ( l=0 ; l<iColspan ; l++ ) { for ( k=0 ; k<iRowspan ; k++ ) { aLayout[i+k][iColShifted+l] = { "cell": nCell, "unique": bUnique }; aLayout[i+k].nTr = nTr; } } } nCell = nCell.nextSibling; } } } /** * Get an array of unique th elements, one for each column * @param {object} oSettings dataTables settings object * @param {node} nHeader automatically detect the layout from this node - optional * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional * @returns array {node} aReturn list of unique th's * @memberof DataTable#oApi */ function _fnGetUniqueThs ( oSettings, nHeader, aLayout ) { var aReturn = []; if ( !aLayout ) { aLayout = oSettings.aoHeader; if ( nHeader ) { aLayout = []; _fnDetectHeader( aLayout, nHeader ); } } for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ ) { for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ ) { if ( aLayout[i][j].unique && (!aReturn[j] || !oSettings.bSortCellsTop) ) { aReturn[j] = aLayout[i][j].cell; } } } return aReturn; } /** * Create an Ajax call based on the table's settings, taking into account that * parameters can have multiple forms, and backwards compatibility. * * @param {object} oSettings dataTables settings object * @param {array} data Data to send to the server, required by * DataTables - may be augmented by developer callbacks * @param {function} fn Callback function to run when data is obtained */ function _fnBuildAjax( oSettings, data, fn ) { // Compatibility with 1.9-, allow fnServerData and event to manipulate _fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] ); // Convert to object based for 1.10+ if using the old array scheme which can // come from server-side processing or serverParams if ( data && $.isArray(data) ) { var tmp = {}; var rbracket = /(.*?)\[\]$/; $.each( data, function (key, val) { var match = val.name.match(rbracket); if ( match ) { // Support for arrays var name = match[0]; if ( ! tmp[ name ] ) { tmp[ name ] = []; } tmp[ name ].push( val.value ); } else { tmp[val.name] = val.value; } } ); data = tmp; } var ajaxData; var ajax = oSettings.ajax; var instance = oSettings.oInstance; var callback = function ( json ) { _fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] ); fn( json ); }; if ( $.isPlainObject( ajax ) && ajax.data ) { ajaxData = ajax.data; var newData = typeof ajaxData === 'function' ? ajaxData( data, oSettings ) : // fn can manipulate data or return ajaxData; // an object object or array to merge // If the function returned something, use that alone data = typeof ajaxData === 'function' && newData ? newData : $.extend( true, data, newData ); // Remove the data property as we've resolved it already and don't want // jQuery to do it again (it is restored at the end of the function) delete ajax.data; } var baseAjax = { "data": data, "success": function (json) { var error = json.error || json.sError; if ( error ) { _fnLog( oSettings, 0, error ); } oSettings.json = json; callback( json ); }, "dataType": "json", "cache": false, "type": oSettings.sServerMethod, "error": function (xhr, error, thrown) { var ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] ); if ( $.inArray( true, ret ) === -1 ) { if ( error == "parsererror" ) { _fnLog( oSettings, 0, 'Invalid JSON response', 1 ); } else if ( xhr.readyState === 4 ) { _fnLog( oSettings, 0, 'Ajax error', 7 ); } } _fnProcessingDisplay( oSettings, false ); } }; // Store the data submitted for the API oSettings.oAjaxData = data; // Allow plug-ins and external processes to modify the data _fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] ); if ( oSettings.fnServerData ) { // DataTables 1.9- compatibility oSettings.fnServerData.call( instance, oSettings.sAjaxSource, $.map( data, function (val, key) { // Need to convert back to 1.9 trad format return { name: key, value: val }; } ), callback, oSettings ); } else if ( oSettings.sAjaxSource || typeof ajax === 'string' ) { // DataTables 1.9- compatibility oSettings.jqXHR = $.ajax( $.extend( baseAjax, { url: ajax || oSettings.sAjaxSource } ) ); } else if ( typeof ajax === 'function' ) { // Is a function - let the caller define what needs to be done oSettings.jqXHR = ajax.call( instance, data, callback, oSettings ); } else { // Object to extend the base settings oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) ); // Restore for next time around ajax.data = ajaxData; } } /** * Update the table using an Ajax call * @param {object} settings dataTables settings object * @returns {boolean} Block the table drawing or not * @memberof DataTable#oApi */ function _fnAjaxUpdate( settings ) { if ( settings.bAjaxDataGet ) { settings.iDraw++; _fnProcessingDisplay( settings, true ); _fnBuildAjax( settings, _fnAjaxParameters( settings ), function(json) { _fnAjaxUpdateDraw( settings, json ); } ); return false; } return true; } /** * Build up the parameters in an object needed for a server-side processing * request. Note that this is basically done twice, is different ways - a modern * method which is used by default in DataTables 1.10 which uses objects and * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if * the sAjaxSource option is used in the initialisation, or the legacyAjax * option is set. * @param {object} oSettings dataTables settings object * @returns {bool} block the table drawing or not * @memberof DataTable#oApi */ function _fnAjaxParameters( settings ) { var columns = settings.aoColumns, columnCount = columns.length, features = settings.oFeatures, preSearch = settings.oPreviousSearch, preColSearch = settings.aoPreSearchCols, i, data = [], dataProp, column, columnSearch, sort = _fnSortFlatten( settings ), displayStart = settings._iDisplayStart, displayLength = features.bPaginate !== false ? settings._iDisplayLength : -1; var param = function ( name, value ) { data.push( { 'name': name, 'value': value } ); }; // DataTables 1.9- compatible method param( 'sEcho', settings.iDraw ); param( 'iColumns', columnCount ); param( 'sColumns', _pluck( columns, 'sName' ).join(',') ); param( 'iDisplayStart', displayStart ); param( 'iDisplayLength', displayLength ); // DataTables 1.10+ method var d = { draw: settings.iDraw, columns: [], order: [], start: displayStart, length: displayLength, search: { value: preSearch.sSearch, regex: preSearch.bRegex } }; for ( i=0 ; i<columnCount ; i++ ) { column = columns[i]; columnSearch = preColSearch[i]; dataProp = typeof column.mData=="function" ? 'function' : column.mData ; d.columns.push( { data: dataProp, name: column.sName, searchable: column.bSearchable, orderable: column.bSortable, search: { value: columnSearch.sSearch, regex: columnSearch.bRegex } } ); param( "mDataProp_"+i, dataProp ); if ( features.bFilter ) { param( 'sSearch_'+i, columnSearch.sSearch ); param( 'bRegex_'+i, columnSearch.bRegex ); param( 'bSearchable_'+i, column.bSearchable ); } if ( features.bSort ) { param( 'bSortable_'+i, column.bSortable ); } } if ( features.bFilter ) { param( 'sSearch', preSearch.sSearch ); param( 'bRegex', preSearch.bRegex ); } if ( features.bSort ) { $.each( sort, function ( i, val ) { d.order.push( { column: val.col, dir: val.dir } ); param( 'iSortCol_'+i, val.col ); param( 'sSortDir_'+i, val.dir ); } ); param( 'iSortingCols', sort.length ); } // If the legacy.ajax parameter is null, then we automatically decide which // form to use, based on sAjaxSource var legacy = DataTable.ext.legacy.ajax; if ( legacy === null ) { return settings.sAjaxSource ? data : d; } // Otherwise, if legacy has been specified then we use that to decide on the // form return legacy ? data : d; } /** * Data the data from the server (nuking the old) and redraw the table * @param {object} oSettings dataTables settings object * @param {object} json json data return from the server. * @param {string} json.sEcho Tracking flag for DataTables to match requests * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering * @param {array} json.aaData The data to display on this page * @param {string} [json.sColumns] Column ordering (sName, comma separated) * @memberof DataTable#oApi */ function _fnAjaxUpdateDraw ( settings, json ) { // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation. // Support both var compat = function ( old, modern ) { return json[old] !== undefined ? json[old] : json[modern]; }; var data = _fnAjaxDataSrc( settings, json ); var draw = compat( 'sEcho', 'draw' ); var recordsTotal = compat( 'iTotalRecords', 'recordsTotal' ); var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' ); if ( draw ) { // Protect against out of sequence returns if ( draw*1 < settings.iDraw ) { return; } settings.iDraw = draw * 1; } _fnClearTable( settings ); settings._iRecordsTotal = parseInt(recordsTotal, 10); settings._iRecordsDisplay = parseInt(recordsFiltered, 10); for ( var i=0, ien=data.length ; i<ien ; i++ ) { _fnAddData( settings, data[i] ); } settings.aiDisplay = settings.aiDisplayMaster.slice(); settings.bAjaxDataGet = false; _fnDraw( settings ); if ( ! settings._bInitComplete ) { _fnInitComplete( settings, json ); } settings.bAjaxDataGet = true; _fnProcessingDisplay( settings, false ); } /** * Get the data from the JSON data source to use for drawing a table. Using * `_fnGetObjectDataFn` allows the data to be sourced from a property of the * source object, or from a processing function. * @param {object} oSettings dataTables settings object * @param {object} json Data source object / array from the server * @return {array} Array of data to use */ function _fnAjaxDataSrc ( oSettings, json ) { var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ? oSettings.ajax.dataSrc : oSettings.sAjaxDataProp; // Compatibility with 1.9-. // Compatibility with 1.9-. In order to read from aaData, check if the // default has been changed, if not, check for aaData if ( dataSrc === 'data' ) { return json.aaData || json[dataSrc]; } return dataSrc !== "" ? _fnGetObjectDataFn( dataSrc )( json ) : json; } /** * Generate the node required for filtering text * @returns {node} Filter control element * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnFeatureHtmlFilter ( settings ) { var classes = settings.oClasses; var tableId = settings.sTableId; var language = settings.oLanguage; var previousSearch = settings.oPreviousSearch; var features = settings.aanFeatures; var input = '<input type="search" class="'+classes.sFilterInput+'"/>'; var str = language.sSearch; str = str.match(/_INPUT_/) ? str.replace('_INPUT_', input) : str+input; var filter = $('<div/>', { 'id': ! features.f ? tableId+'_filter' : null, 'class': classes.sFilter } ) .append( $('<label/>' ).append( str ) ); var searchFn = function() { /* Update all other filter input elements for the new display */ var n = features.f; var val = !this.value ? "" : this.value; // mental IE8 fix :-( /* Now do the filter */ if ( val != previousSearch.sSearch ) { _fnFilterComplete( settings, { "sSearch": val, "bRegex": previousSearch.bRegex, "bSmart": previousSearch.bSmart , "bCaseInsensitive": previousSearch.bCaseInsensitive } ); // Need to redraw, without resorting settings._iDisplayStart = 0; _fnDraw( settings ); } }; var searchDelay = settings.searchDelay !== null ? settings.searchDelay : _fnDataSource( settings ) === 'ssp' ? 400 : 0; var jqFilter = $('input', filter) .val( previousSearch.sSearch ) .attr( 'placeholder', language.sSearchPlaceholder ) .on( 'keyup.DT search.DT input.DT paste.DT cut.DT', searchDelay ? _fnThrottle( searchFn, searchDelay ) : searchFn ) .on( 'keypress.DT', function(e) { /* Prevent form submission */ if ( e.keyCode == 13 ) { return false; } } ) .attr('aria-controls', tableId); // Update the input elements whenever the table is filtered $(settings.nTable).on( 'search.dt.DT', function ( ev, s ) { if ( settings === s ) { // IE9 throws an 'unknown error' if document.activeElement is used // inside an iframe or frame... try { if ( jqFilter[0] !== document.activeElement ) { jqFilter.val( previousSearch.sSearch ); } } catch ( e ) {} } } ); return filter[0]; } /** * Filter the table using both the global filter and column based filtering * @param {object} oSettings dataTables settings object * @param {object} oSearch search information * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0) * @memberof DataTable#oApi */ function _fnFilterComplete ( oSettings, oInput, iForce ) { var oPrevSearch = oSettings.oPreviousSearch; var aoPrevSearch = oSettings.aoPreSearchCols; var fnSaveFilter = function ( oFilter ) { /* Save the filtering values */ oPrevSearch.sSearch = oFilter.sSearch; oPrevSearch.bRegex = oFilter.bRegex; oPrevSearch.bSmart = oFilter.bSmart; oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive; }; var fnRegex = function ( o ) { // Backwards compatibility with the bEscapeRegex option return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex; }; // Resolve any column types that are unknown due to addition or invalidation // @todo As per sort - can this be moved into an event handler? _fnColumnTypes( oSettings ); /* In server-side processing all filtering is done by the server, so no point hanging around here */ if ( _fnDataSource( oSettings ) != 'ssp' ) { /* Global filter */ _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive ); fnSaveFilter( oInput ); /* Now do the individual column filter */ for ( var i=0 ; i<aoPrevSearch.length ; i++ ) { _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]), aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive ); } /* Custom filtering */ _fnFilterCustom( oSettings ); } else { fnSaveFilter( oInput ); } /* Tell the draw function we have been filtering */ oSettings.bFiltered = true; _fnCallbackFire( oSettings, null, 'search', [oSettings] ); } /** * Apply custom filtering functions * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnFilterCustom( settings ) { var filters = DataTable.ext.search; var displayRows = settings.aiDisplay; var row, rowIdx; for ( var i=0, ien=filters.length ; i<ien ; i++ ) { var rows = []; // Loop over each row and see if it should be included for ( var j=0, jen=displayRows.length ; j<jen ; j++ ) { rowIdx = displayRows[ j ]; row = settings.aoData[ rowIdx ]; if ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) { rows.push( rowIdx ); } } // So the array reference doesn't break set the results into the // existing array displayRows.length = 0; $.merge( displayRows, rows ); } } /** * Filter the table on a per-column basis * @param {object} oSettings dataTables settings object * @param {string} sInput string to filter on * @param {int} iColumn column to filter * @param {bool} bRegex treat search string as a regular expression or not * @param {bool} bSmart use smart filtering or not * @param {bool} bCaseInsensitive Do case insenstive matching or not * @memberof DataTable#oApi */ function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive ) { if ( searchStr === '' ) { return; } var data; var out = []; var display = settings.aiDisplay; var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive ); for ( var i=0 ; i<display.length ; i++ ) { data = settings.aoData[ display[i] ]._aFilterData[ colIdx ]; if ( rpSearch.test( data ) ) { out.push( display[i] ); } } settings.aiDisplay = out; } /** * Filter the data table based on user input and draw the table * @param {object} settings dataTables settings object * @param {string} input string to filter on * @param {int} force optional - force a research of the master array (1) or not (undefined or 0) * @param {bool} regex treat as a regular expression or not * @param {bool} smart perform smart filtering or not * @param {bool} caseInsensitive Do case insenstive matching or not * @memberof DataTable#oApi */ function _fnFilter( settings, input, force, regex, smart, caseInsensitive ) { var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive ); var prevSearch = settings.oPreviousSearch.sSearch; var displayMaster = settings.aiDisplayMaster; var display, invalidated, i; var filtered = []; // Need to take account of custom filtering functions - always filter if ( DataTable.ext.search.length !== 0 ) { force = true; } // Check if any of the rows were invalidated invalidated = _fnFilterData( settings ); // If the input is blank - we just want the full data set if ( input.length <= 0 ) { settings.aiDisplay = displayMaster.slice(); } else { // New search - start from the master array if ( invalidated || force || prevSearch.length > input.length || input.indexOf(prevSearch) !== 0 || settings.bSorted // On resort, the display master needs to be // re-filtered since indexes will have changed ) { settings.aiDisplay = displayMaster.slice(); } // Search the display array display = settings.aiDisplay; for ( i=0 ; i<display.length ; i++ ) { if ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) { filtered.push( display[i] ); } } settings.aiDisplay = filtered; } } /** * Build a regular expression object suitable for searching a table * @param {string} sSearch string to search for * @param {bool} bRegex treat as a regular expression or not * @param {bool} bSmart perform smart filtering or not * @param {bool} bCaseInsensitive Do case insensitive matching or not * @returns {RegExp} constructed object * @memberof DataTable#oApi */ function _fnFilterCreateSearch( search, regex, smart, caseInsensitive ) { search = regex ? search : _fnEscapeRegex( search ); if ( smart ) { /* For smart filtering we want to allow the search to work regardless of * word order. We also want double quoted text to be preserved, so word * order is important - a la google. So this is what we want to * generate: * * ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$ */ var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || [''], function ( word ) { if ( word.charAt(0) === '"' ) { var m = word.match( /^"(.*)"$/ ); word = m ? m[1] : word; } return word.replace('"', ''); } ); search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$'; } return new RegExp( search, caseInsensitive ? 'i' : '' ); } /** * Escape a string such that it can be used in a regular expression * @param {string} sVal string to escape * @returns {string} escaped string * @memberof DataTable#oApi */ var _fnEscapeRegex = DataTable.util.escapeRegex; var __filter_div = $('<div>')[0]; var __filter_div_textContent = __filter_div.textContent !== undefined; // Update the filtering data for each row if needed (by invalidation or first run) function _fnFilterData ( settings ) { var columns = settings.aoColumns; var column; var i, j, ien, jen, filterData, cellData, row; var fomatters = DataTable.ext.type.search; var wasInvalidated = false; for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) { row = settings.aoData[i]; if ( ! row._aFilterData ) { filterData = []; for ( j=0, jen=columns.length ; j<jen ; j++ ) { column = columns[j]; if ( column.bSearchable ) { cellData = _fnGetCellData( settings, i, j, 'filter' ); if ( fomatters[ column.sType ] ) { cellData = fomatters[ column.sType ]( cellData ); } // Search in DataTables 1.10 is string based. In 1.11 this // should be altered to also allow strict type checking. if ( cellData === null ) { cellData = ''; } if ( typeof cellData !== 'string' && cellData.toString ) { cellData = cellData.toString(); } } else { cellData = ''; } // If it looks like there is an HTML entity in the string, // attempt to decode it so sorting works as expected. Note that // we could use a single line of jQuery to do this, but the DOM // method used here is much faster http://jsperf.com/html-decode if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) { __filter_div.innerHTML = cellData; cellData = __filter_div_textContent ? __filter_div.textContent : __filter_div.innerText; } if ( cellData.replace ) { cellData = cellData.replace(/[\r\n]/g, ''); } filterData.push( cellData ); } row._aFilterData = filterData; row._sFilterRow = filterData.join(' '); wasInvalidated = true; } } return wasInvalidated; } /** * Convert from the internal Hungarian notation to camelCase for external * interaction * @param {object} obj Object to convert * @returns {object} Inverted object * @memberof DataTable#oApi */ function _fnSearchToCamel ( obj ) { return { search: obj.sSearch, smart: obj.bSmart, regex: obj.bRegex, caseInsensitive: obj.bCaseInsensitive }; } /** * Convert from camelCase notation to the internal Hungarian. We could use the * Hungarian convert function here, but this is cleaner * @param {object} obj Object to convert * @returns {object} Inverted object * @memberof DataTable#oApi */ function _fnSearchToHung ( obj ) { return { sSearch: obj.search, bSmart: obj.smart, bRegex: obj.regex, bCaseInsensitive: obj.caseInsensitive }; } /** * Generate the node required for the info display * @param {object} oSettings dataTables settings object * @returns {node} Information element * @memberof DataTable#oApi */ function _fnFeatureHtmlInfo ( settings ) { var tid = settings.sTableId, nodes = settings.aanFeatures.i, n = $('<div/>', { 'class': settings.oClasses.sInfo, 'id': ! nodes ? tid+'_info' : null } ); if ( ! nodes ) { // Update display on each draw settings.aoDrawCallback.push( { "fn": _fnUpdateInfo, "sName": "information" } ); n .attr( 'role', 'status' ) .attr( 'aria-live', 'polite' ); // Table is described by our info div $(settings.nTable).attr( 'aria-describedby', tid+'_info' ); } return n[0]; } /** * Update the information elements in the display * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnUpdateInfo ( settings ) { /* Show information about the table */ var nodes = settings.aanFeatures.i; if ( nodes.length === 0 ) { return; } var lang = settings.oLanguage, start = settings._iDisplayStart+1, end = settings.fnDisplayEnd(), max = settings.fnRecordsTotal(), total = settings.fnRecordsDisplay(), out = total ? lang.sInfo : lang.sInfoEmpty; if ( total !== max ) { /* Record set after filtering */ out += ' ' + lang.sInfoFiltered; } // Convert the macros out += lang.sInfoPostFix; out = _fnInfoMacros( settings, out ); var callback = lang.fnInfoCallback; if ( callback !== null ) { out = callback.call( settings.oInstance, settings, start, end, max, total, out ); } $(nodes).html( out ); } function _fnInfoMacros ( settings, str ) { // When infinite scrolling, we are always starting at 1. _iDisplayStart is used only // internally var formatter = settings.fnFormatNumber, start = settings._iDisplayStart+1, len = settings._iDisplayLength, vis = settings.fnRecordsDisplay(), all = len === -1; return str. replace(/_START_/g, formatter.call( settings, start ) ). replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ). replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ). replace(/_TOTAL_/g, formatter.call( settings, vis ) ). replace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ). replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) ); } /** * Draw the table for the first time, adding all required features * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnInitialise ( settings ) { var i, iLen, iAjaxStart=settings.iInitDisplayStart; var columns = settings.aoColumns, column; var features = settings.oFeatures; var deferLoading = settings.bDeferLoading; // value modified by the draw /* Ensure that the table data is fully initialised */ if ( ! settings.bInitialised ) { setTimeout( function(){ _fnInitialise( settings ); }, 200 ); return; } /* Show the display HTML options */ _fnAddOptionsHtml( settings ); /* Build and draw the header / footer for the table */ _fnBuildHead( settings ); _fnDrawHead( settings, settings.aoHeader ); _fnDrawHead( settings, settings.aoFooter ); /* Okay to show that something is going on now */ _fnProcessingDisplay( settings, true ); /* Calculate sizes for columns */ if ( features.bAutoWidth ) { _fnCalculateColumnWidths( settings ); } for ( i=0, iLen=columns.length ; i<iLen ; i++ ) { column = columns[i]; if ( column.sWidth ) { column.nTh.style.width = _fnStringToCss( column.sWidth ); } } _fnCallbackFire( settings, null, 'preInit', [settings] ); // If there is default sorting required - let's do it. The sort function // will do the drawing for us. Otherwise we draw the table regardless of the // Ajax source - this allows the table to look initialised for Ajax sourcing // data (show 'loading' message possibly) _fnReDraw( settings ); // Server-side processing init complete is done by _fnAjaxUpdateDraw var dataSrc = _fnDataSource( settings ); if ( dataSrc != 'ssp' || deferLoading ) { // if there is an ajax source load the data if ( dataSrc == 'ajax' ) { _fnBuildAjax( settings, [], function(json) { var aData = _fnAjaxDataSrc( settings, json ); // Got the data - add it to the table for ( i=0 ; i<aData.length ; i++ ) { _fnAddData( settings, aData[i] ); } // Reset the init display for cookie saving. We've already done // a filter, and therefore cleared it before. So we need to make // it appear 'fresh' settings.iInitDisplayStart = iAjaxStart; _fnReDraw( settings ); _fnProcessingDisplay( settings, false ); _fnInitComplete( settings, json ); }, settings ); } else { _fnProcessingDisplay( settings, false ); _fnInitComplete( settings ); } } } /** * Draw the table for the first time, adding all required features * @param {object} oSettings dataTables settings object * @param {object} [json] JSON from the server that completed the table, if using Ajax source * with client-side processing (optional) * @memberof DataTable#oApi */ function _fnInitComplete ( settings, json ) { settings._bInitComplete = true; // When data was added after the initialisation (data or Ajax) we need to // calculate the column sizing if ( json || settings.oInit.aaData ) { _fnAdjustColumnSizing( settings ); } _fnCallbackFire( settings, null, 'plugin-init', [settings, json] ); _fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] ); } function _fnLengthChange ( settings, val ) { var len = parseInt( val, 10 ); settings._iDisplayLength = len; _fnLengthOverflow( settings ); // Fire length change event _fnCallbackFire( settings, null, 'length', [settings, len] ); } /** * Generate the node required for user display length changing * @param {object} settings dataTables settings object * @returns {node} Display length feature node * @memberof DataTable#oApi */ function _fnFeatureHtmlLength ( settings ) { var classes = settings.oClasses, tableId = settings.sTableId, menu = settings.aLengthMenu, d2 = $.isArray( menu[0] ), lengths = d2 ? menu[0] : menu, language = d2 ? menu[1] : menu; var select = $('<select/>', { 'name': tableId+'_length', 'aria-controls': tableId, 'class': classes.sLengthSelect } ); for ( var i=0, ien=lengths.length ; i<ien ; i++ ) { select[0][ i ] = new Option( typeof language[i] === 'number' ? settings.fnFormatNumber( language[i] ) : language[i], lengths[i] ); } var div = $('<div><label/></div>').addClass( classes.sLength ); if ( ! settings.aanFeatures.l ) { div[0].id = tableId+'_length'; } div.children().append( settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML ) ); // Can't use `select` variable as user might provide their own and the // reference is broken by the use of outerHTML $('select', div) .val( settings._iDisplayLength ) .on( 'change.DT', function(e) { _fnLengthChange( settings, $(this).val() ); _fnDraw( settings ); } ); // Update node value whenever anything changes the table's length $(settings.nTable).on( 'length.dt.DT', function (e, s, len) { if ( settings === s ) { $('select', div).val( len ); } } ); return div[0]; } /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Note that most of the paging logic is done in * DataTable.ext.pager */ /** * Generate the node required for default pagination * @param {object} oSettings dataTables settings object * @returns {node} Pagination feature node * @memberof DataTable#oApi */ function _fnFeatureHtmlPaginate ( settings ) { var type = settings.sPaginationType, plugin = DataTable.ext.pager[ type ], modern = typeof plugin === 'function', redraw = function( settings ) { _fnDraw( settings ); }, node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0], features = settings.aanFeatures; if ( ! modern ) { plugin.fnInit( settings, node, redraw ); } /* Add a draw callback for the pagination on first instance, to update the paging display */ if ( ! features.p ) { node.id = settings.sTableId+'_paginate'; settings.aoDrawCallback.push( { "fn": function( settings ) { if ( modern ) { var start = settings._iDisplayStart, len = settings._iDisplayLength, visRecords = settings.fnRecordsDisplay(), all = len === -1, page = all ? 0 : Math.ceil( start / len ), pages = all ? 1 : Math.ceil( visRecords / len ), buttons = plugin(page, pages), i, ien; for ( i=0, ien=features.p.length ; i<ien ; i++ ) { _fnRenderer( settings, 'pageButton' )( settings, features.p[i], i, buttons, page, pages ); } } else { plugin.fnUpdate( settings, redraw ); } }, "sName": "pagination" } ); } return node; } /** * Alter the display settings to change the page * @param {object} settings DataTables settings object * @param {string|int} action Paging action to take: "first", "previous", * "next" or "last" or page number to jump to (integer) * @param [bool] redraw Automatically draw the update or not * @returns {bool} true page has changed, false - no change * @memberof DataTable#oApi */ function _fnPageChange ( settings, action, redraw ) { var start = settings._iDisplayStart, len = settings._iDisplayLength, records = settings.fnRecordsDisplay(); if ( records === 0 || len === -1 ) { start = 0; } else if ( typeof action === "number" ) { start = action * len; if ( start > records ) { start = 0; } } else if ( action == "first" ) { start = 0; } else if ( action == "previous" ) { start = len >= 0 ? start - len : 0; if ( start < 0 ) { start = 0; } } else if ( action == "next" ) { if ( start + len < records ) { start += len; } } else if ( action == "last" ) { start = Math.floor( (records-1) / len) * len; } else { _fnLog( settings, 0, "Unknown paging action: "+action, 5 ); } var changed = settings._iDisplayStart !== start; settings._iDisplayStart = start; if ( changed ) { _fnCallbackFire( settings, null, 'page', [settings] ); if ( redraw ) { _fnDraw( settings ); } } return changed; } /** * Generate the node required for the processing node * @param {object} settings dataTables settings object * @returns {node} Processing element * @memberof DataTable#oApi */ function _fnFeatureHtmlProcessing ( settings ) { return $('<div/>', { 'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null, 'class': settings.oClasses.sProcessing } ) .html( settings.oLanguage.sProcessing ) .insertBefore( settings.nTable )[0]; } /** * Display or hide the processing indicator * @param {object} settings dataTables settings object * @param {bool} show Show the processing indicator (true) or not (false) * @memberof DataTable#oApi */ function _fnProcessingDisplay ( settings, show ) { if ( settings.oFeatures.bProcessing ) { $(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' ); } _fnCallbackFire( settings, null, 'processing', [settings, show] ); } /** * Add any control elements for the table - specifically scrolling * @param {object} settings dataTables settings object * @returns {node} Node to add to the DOM * @memberof DataTable#oApi */ function _fnFeatureHtmlTable ( settings ) { var table = $(settings.nTable); // Add the ARIA grid role to the table table.attr( 'role', 'grid' ); // Scrolling from here on in var scroll = settings.oScroll; if ( scroll.sX === '' && scroll.sY === '' ) { return settings.nTable; } var scrollX = scroll.sX; var scrollY = scroll.sY; var classes = settings.oClasses; var caption = table.children('caption'); var captionSide = caption.length ? caption[0]._captionSide : null; var headerClone = $( table[0].cloneNode(false) ); var footerClone = $( table[0].cloneNode(false) ); var footer = table.children('tfoot'); var _div = '<div/>'; var size = function ( s ) { return !s ? null : _fnStringToCss( s ); }; if ( ! footer.length ) { footer = null; } /* * The HTML structure that we want to generate in this function is: * div - scroller * div - scroll head * div - scroll head inner * table - scroll head table * thead - thead * div - scroll body * table - table (master table) * thead - thead clone for sizing * tbody - tbody * div - scroll foot * div - scroll foot inner * table - scroll foot table * tfoot - tfoot */ var scroller = $( _div, { 'class': classes.sScrollWrapper } ) .append( $(_div, { 'class': classes.sScrollHead } ) .css( { overflow: 'hidden', position: 'relative', border: 0, width: scrollX ? size(scrollX) : '100%' } ) .append( $(_div, { 'class': classes.sScrollHeadInner } ) .css( { 'box-sizing': 'content-box', width: scroll.sXInner || '100%' } ) .append( headerClone .removeAttr('id') .css( 'margin-left', 0 ) .append( captionSide === 'top' ? caption : null ) .append( table.children('thead') ) ) ) ) .append( $(_div, { 'class': classes.sScrollBody } ) .css( { position: 'relative', overflow: 'auto', width: size( scrollX ) } ) .append( table ) ); if ( footer ) { scroller.append( $(_div, { 'class': classes.sScrollFoot } ) .css( { overflow: 'hidden', border: 0, width: scrollX ? size(scrollX) : '100%' } ) .append( $(_div, { 'class': classes.sScrollFootInner } ) .append( footerClone .removeAttr('id') .css( 'margin-left', 0 ) .append( captionSide === 'bottom' ? caption : null ) .append( table.children('tfoot') ) ) ) ); } var children = scroller.children(); var scrollHead = children[0]; var scrollBody = children[1]; var scrollFoot = footer ? children[2] : null; // When the body is scrolled, then we also want to scroll the headers if ( scrollX ) { $(scrollBody).on( 'scroll.DT', function (e) { var scrollLeft = this.scrollLeft; scrollHead.scrollLeft = scrollLeft; if ( footer ) { scrollFoot.scrollLeft = scrollLeft; } } ); } $(scrollBody).css( scrollY && scroll.bCollapse ? 'max-height' : 'height', scrollY ); settings.nScrollHead = scrollHead; settings.nScrollBody = scrollBody; settings.nScrollFoot = scrollFoot; // On redraw - align columns settings.aoDrawCallback.push( { "fn": _fnScrollDraw, "sName": "scrolling" } ); return scroller[0]; } /** * Update the header, footer and body tables for resizing - i.e. column * alignment. * * Welcome to the most horrible function DataTables. The process that this * function follows is basically: * 1. Re-create the table inside the scrolling div * 2. Take live measurements from the DOM * 3. Apply the measurements to align the columns * 4. Clean up * * @param {object} settings dataTables settings object * @memberof DataTable#oApi */ function _fnScrollDraw ( settings ) { // Given that this is such a monster function, a lot of variables are use // to try and keep the minimised size as small as possible var scroll = settings.oScroll, scrollX = scroll.sX, scrollXInner = scroll.sXInner, scrollY = scroll.sY, barWidth = scroll.iBarWidth, divHeader = $(settings.nScrollHead), divHeaderStyle = divHeader[0].style, divHeaderInner = divHeader.children('div'), divHeaderInnerStyle = divHeaderInner[0].style, divHeaderTable = divHeaderInner.children('table'), divBodyEl = settings.nScrollBody, divBody = $(divBodyEl), divBodyStyle = divBodyEl.style, divFooter = $(settings.nScrollFoot), divFooterInner = divFooter.children('div'), divFooterTable = divFooterInner.children('table'), header = $(settings.nTHead), table = $(settings.nTable), tableEl = table[0], tableStyle = tableEl.style, footer = settings.nTFoot ? $(settings.nTFoot) : null, browser = settings.oBrowser, ie67 = browser.bScrollOversize, dtHeaderCells = _pluck( settings.aoColumns, 'nTh' ), headerTrgEls, footerTrgEls, headerSrcEls, footerSrcEls, headerCopy, footerCopy, headerWidths=[], footerWidths=[], headerContent=[], footerContent=[], idx, correction, sanityWidth, zeroOut = function(nSizer) { var style = nSizer.style; style.paddingTop = "0"; style.paddingBottom = "0"; style.borderTopWidth = "0"; style.borderBottomWidth = "0"; style.height = 0; }; // If the scrollbar visibility has changed from the last draw, we need to // adjust the column sizes as the table width will have changed to account // for the scrollbar var scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight; if ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) { settings.scrollBarVis = scrollBarVis; _fnAdjustColumnSizing( settings ); return; // adjust column sizing will call this function again } else { settings.scrollBarVis = scrollBarVis; } /* * 1. Re-create the table inside the scrolling div */ // Remove the old minimised thead and tfoot elements in the inner table table.children('thead, tfoot').remove(); if ( footer ) { footerCopy = footer.clone().prependTo( table ); footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized footerSrcEls = footerCopy.find('tr'); } // Clone the current header and footer elements and then place it into the inner table headerCopy = header.clone().prependTo( table ); headerTrgEls = header.find('tr'); // original header is in its own table headerSrcEls = headerCopy.find('tr'); headerCopy.find('th, td').removeAttr('tabindex'); /* * 2. Take live measurements from the DOM - do not alter the DOM itself! */ // Remove old sizing and apply the calculated column widths // Get the unique column headers in the newly created (cloned) header. We want to apply the // calculated sizes to this header if ( ! scrollX ) { divBodyStyle.width = '100%'; divHeader[0].style.width = '100%'; } $.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) { idx = _fnVisibleToColumnIndex( settings, i ); el.style.width = settings.aoColumns[idx].sWidth; } ); if ( footer ) { _fnApplyToChildren( function(n) { n.style.width = ""; }, footerSrcEls ); } // Size the table as a whole sanityWidth = table.outerWidth(); if ( scrollX === "" ) { // No x scrolling tableStyle.width = "100%"; // IE7 will make the width of the table when 100% include the scrollbar // - which is shouldn't. When there is a scrollbar we need to take this // into account. if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll") ) { tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth); } // Recalculate the sanity width sanityWidth = table.outerWidth(); } else if ( scrollXInner !== "" ) { // legacy x scroll inner has been given - use it tableStyle.width = _fnStringToCss(scrollXInner); // Recalculate the sanity width sanityWidth = table.outerWidth(); } // Hidden header should have zero height, so remove padding and borders. Then // set the width based on the real headers // Apply all styles in one pass _fnApplyToChildren( zeroOut, headerSrcEls ); // Read all widths in next pass _fnApplyToChildren( function(nSizer) { headerContent.push( nSizer.innerHTML ); headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) ); }, headerSrcEls ); // Apply all widths in final pass _fnApplyToChildren( function(nToSize, i) { // Only apply widths to the DataTables detected header cells - this // prevents complex headers from having contradictory sizes applied if ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) { nToSize.style.width = headerWidths[i]; } }, headerTrgEls ); $(headerSrcEls).height(0); /* Same again with the footer if we have one */ if ( footer ) { _fnApplyToChildren( zeroOut, footerSrcEls ); _fnApplyToChildren( function(nSizer) { footerContent.push( nSizer.innerHTML ); footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) ); }, footerSrcEls ); _fnApplyToChildren( function(nToSize, i) { nToSize.style.width = footerWidths[i]; }, footerTrgEls ); $(footerSrcEls).height(0); } /* * 3. Apply the measurements */ // "Hide" the header and footer that we used for the sizing. We need to keep // the content of the cell so that the width applied to the header and body // both match, but we want to hide it completely. We want to also fix their // width to what they currently are _fnApplyToChildren( function(nSizer, i) { nSizer.innerHTML = '<div class="dataTables_sizing">'+headerContent[i]+'</div>'; nSizer.childNodes[0].style.height = "0"; nSizer.childNodes[0].style.overflow = "hidden"; nSizer.style.width = headerWidths[i]; }, headerSrcEls ); if ( footer ) { _fnApplyToChildren( function(nSizer, i) { nSizer.innerHTML = '<div class="dataTables_sizing">'+footerContent[i]+'</div>'; nSizer.childNodes[0].style.height = "0"; nSizer.childNodes[0].style.overflow = "hidden"; nSizer.style.width = footerWidths[i]; }, footerSrcEls ); } // Sanity check that the table is of a sensible width. If not then we are going to get // misalignment - try to prevent this by not allowing the table to shrink below its min width if ( table.outerWidth() < sanityWidth ) { // The min width depends upon if we have a vertical scrollbar visible or not */ correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")) ? sanityWidth+barWidth : sanityWidth; // IE6/7 are a law unto themselves... if ( ie67 && (divBodyEl.scrollHeight > divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll") ) { tableStyle.width = _fnStringToCss( correction-barWidth ); } // And give the user a warning that we've stopped the table getting too small if ( scrollX === "" || scrollXInner !== "" ) { _fnLog( settings, 1, 'Possible column misalignment', 6 ); } } else { correction = '100%'; } // Apply to the container elements divBodyStyle.width = _fnStringToCss( correction ); divHeaderStyle.width = _fnStringToCss( correction ); if ( footer ) { settings.nScrollFoot.style.width = _fnStringToCss( correction ); } /* * 4. Clean up */ if ( ! scrollY ) { /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting * the scrollbar height from the visible display, rather than adding it on. We need to * set the height in order to sort this. Don't want to do it in any other browsers. */ if ( ie67 ) { divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth ); } } /* Finally set the width's of the header and footer tables */ var iOuterWidth = table.outerWidth(); divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth ); divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth ); // Figure out if there are scrollbar present - if so then we need a the header and footer to // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar) var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll"; var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' ); divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px"; if ( footer ) { divFooterTable[0].style.width = _fnStringToCss( iOuterWidth ); divFooterInner[0].style.width = _fnStringToCss( iOuterWidth ); divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px"; } // Correct DOM ordering for colgroup - comes before the thead table.children('colgroup').insertBefore( table.children('thead') ); /* Adjust the position of the header in case we loose the y-scrollbar */ divBody.scroll(); // If sorting or filtering has occurred, jump the scrolling back to the top // only if we aren't holding the position if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) { divBodyEl.scrollTop = 0; } } /** * Apply a given function to the display child nodes of an element array (typically * TD children of TR rows * @param {function} fn Method to apply to the objects * @param array {nodes} an1 List of elements to look through for display children * @param array {nodes} an2 Another list (identical structure to the first) - optional * @memberof DataTable#oApi */ function _fnApplyToChildren( fn, an1, an2 ) { var index=0, i=0, iLen=an1.length; var nNode1, nNode2; while ( i < iLen ) { nNode1 = an1[i].firstChild; nNode2 = an2 ? an2[i].firstChild : null; while ( nNode1 ) { if ( nNode1.nodeType === 1 ) { if ( an2 ) { fn( nNode1, nNode2, index ); } else { fn( nNode1, index ); } index++; } nNode1 = nNode1.nextSibling; nNode2 = an2 ? nNode2.nextSibling : null; } i++; } } var __re_html_remove = /<.*?>/g; /** * Calculate the width of columns for the table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnCalculateColumnWidths ( oSettings ) { var table = oSettings.nTable, columns = oSettings.aoColumns, scroll = oSettings.oScroll, scrollY = scroll.sY, scrollX = scroll.sX, scrollXInner = scroll.sXInner, columnCount = columns.length, visibleColumns = _fnGetColumns( oSettings, 'bVisible' ), headerCells = $('th', oSettings.nTHead), tableWidthAttr = table.getAttribute('width'), // from DOM element tableContainer = table.parentNode, userInputs = false, i, column, columnIdx, width, outerWidth, browser = oSettings.oBrowser, ie67 = browser.bScrollOversize; var styleWidth = table.style.width; if ( styleWidth && styleWidth.indexOf('%') !== -1 ) { tableWidthAttr = styleWidth; } /* Convert any user input sizes into pixel sizes */ for ( i=0 ; i<visibleColumns.length ; i++ ) { column = columns[ visibleColumns[i] ]; if ( column.sWidth !== null ) { column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer ); userInputs = true; } } /* If the number of columns in the DOM equals the number that we have to * process in DataTables, then we can use the offsets that are created by * the web- browser. No custom sizes can be set in order for this to happen, * nor scrolling used */ if ( ie67 || ! userInputs && ! scrollX && ! scrollY && columnCount == _fnVisbleColumns( oSettings ) && columnCount == headerCells.length ) { for ( i=0 ; i<columnCount ; i++ ) { var colIdx = _fnVisibleToColumnIndex( oSettings, i ); if ( colIdx !== null ) { columns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() ); } } } else { // Otherwise construct a single row, worst case, table with the widest // node in the data, assign any user defined widths, then insert it into // the DOM and allow the browser to do all the hard work of calculating // table widths var tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table .css( 'visibility', 'hidden' ) .removeAttr( 'id' ); // Clean up the table body tmpTable.find('tbody tr').remove(); var tr = $('<tr/>').appendTo( tmpTable.find('tbody') ); // Clone the table header and footer - we can't use the header / footer // from the cloned table, since if scrolling is active, the table's // real header and footer are contained in different table tags tmpTable.find('thead, tfoot').remove(); tmpTable .append( $(oSettings.nTHead).clone() ) .append( $(oSettings.nTFoot).clone() ); // Remove any assigned widths from the footer (from scrolling) tmpTable.find('tfoot th, tfoot td').css('width', ''); // Apply custom sizing to the cloned header headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] ); for ( i=0 ; i<visibleColumns.length ; i++ ) { column = columns[ visibleColumns[i] ]; headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ? _fnStringToCss( column.sWidthOrig ) : ''; // For scrollX we need to force the column width otherwise the // browser will collapse it. If this width is smaller than the // width the column requires, then it will have no effect if ( column.sWidthOrig && scrollX ) { $( headerCells[i] ).append( $('<div/>').css( { width: column.sWidthOrig, margin: 0, padding: 0, border: 0, height: 1 } ) ); } } // Find the widest cell for each column and put it into the table if ( oSettings.aoData.length ) { for ( i=0 ; i<visibleColumns.length ; i++ ) { columnIdx = visibleColumns[i]; column = columns[ columnIdx ]; $( _fnGetWidestNode( oSettings, columnIdx ) ) .clone( false ) .append( column.sContentPadding ) .appendTo( tr ); } } // Tidy the temporary table - remove name attributes so there aren't // duplicated in the dom (radio elements for example) $('[name]', tmpTable).removeAttr('name'); // Table has been built, attach to the document so we can work with it. // A holding element is used, positioned at the top of the container // with minimal height, so it has no effect on if the container scrolls // or not. Otherwise it might trigger scrolling when it actually isn't // needed var holder = $('<div/>').css( scrollX || scrollY ? { position: 'absolute', top: 0, left: 0, height: 1, right: 0, overflow: 'hidden' } : {} ) .append( tmpTable ) .appendTo( tableContainer ); // When scrolling (X or Y) we want to set the width of the table as // appropriate. However, when not scrolling leave the table width as it // is. This results in slightly different, but I think correct behaviour if ( scrollX && scrollXInner ) { tmpTable.width( scrollXInner ); } else if ( scrollX ) { tmpTable.css( 'width', 'auto' ); tmpTable.removeAttr('width'); // If there is no width attribute or style, then allow the table to // collapse if ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) { tmpTable.width( tableContainer.clientWidth ); } } else if ( scrollY ) { tmpTable.width( tableContainer.clientWidth ); } else if ( tableWidthAttr ) { tmpTable.width( tableWidthAttr ); } // Get the width of each column in the constructed table - we need to // know the inner width (so it can be assigned to the other table's // cells) and the outer width so we can calculate the full width of the // table. This is safe since DataTables requires a unique cell for each // column, but if ever a header can span multiple columns, this will // need to be modified. var total = 0; for ( i=0 ; i<visibleColumns.length ; i++ ) { var cell = $(headerCells[i]); var border = cell.outerWidth() - cell.width(); // Use getBounding... where possible (not IE8-) because it can give // sub-pixel accuracy, which we then want to round up! var bounding = browser.bBounding ? Math.ceil( headerCells[i].getBoundingClientRect().width ) : cell.outerWidth(); // Total is tracked to remove any sub-pixel errors as the outerWidth // of the table might not equal the total given here (IE!). total += bounding; // Width for each column to use columns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border ); } table.style.width = _fnStringToCss( total ); // Finished with the table - ditch it holder.remove(); } // If there is a width attr, we want to attach an event listener which // allows the table sizing to automatically adjust when the window is // resized. Use the width attr rather than CSS, since we can't know if the // CSS is a relative value or absolute - DOM read is always px. if ( tableWidthAttr ) { table.style.width = _fnStringToCss( tableWidthAttr ); } if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) { var bindResize = function () { $(window).on('resize.DT-'+oSettings.sInstance, _fnThrottle( function () { _fnAdjustColumnSizing( oSettings ); } ) ); }; // IE6/7 will crash if we bind a resize event handler on page load. // To be removed in 1.11 which drops IE6/7 support if ( ie67 ) { setTimeout( bindResize, 1000 ); } else { bindResize(); } oSettings._reszEvt = true; } } /** * Throttle the calls to a function. Arguments and context are maintained for * the throttled function * @param {function} fn Function to be called * @param {int} [freq=200] call frequency in mS * @returns {function} wrapped function * @memberof DataTable#oApi */ var _fnThrottle = DataTable.util.throttle; /** * Convert a CSS unit width to pixels (e.g. 2em) * @param {string} width width to be converted * @param {node} parent parent to get the with for (required for relative widths) - optional * @returns {int} width in pixels * @memberof DataTable#oApi */ function _fnConvertToWidth ( width, parent ) { if ( ! width ) { return 0; } var n = $('<div/>') .css( 'width', _fnStringToCss( width ) ) .appendTo( parent || document.body ); var val = n[0].offsetWidth; n.remove(); return val; } /** * Get the widest node * @param {object} settings dataTables settings object * @param {int} colIdx column of interest * @returns {node} widest table node * @memberof DataTable#oApi */ function _fnGetWidestNode( settings, colIdx ) { var idx = _fnGetMaxLenString( settings, colIdx ); if ( idx < 0 ) { return null; } var data = settings.aoData[ idx ]; return ! data.nTr ? // Might not have been created when deferred rendering $('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] : data.anCells[ colIdx ]; } /** * Get the maximum strlen for each data column * @param {object} settings dataTables settings object * @param {int} colIdx column of interest * @returns {string} max string length for each column * @memberof DataTable#oApi */ function _fnGetMaxLenString( settings, colIdx ) { var s, max=-1, maxIdx = -1; for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) { s = _fnGetCellData( settings, i, colIdx, 'display' )+''; s = s.replace( __re_html_remove, '' ); s = s.replace( /&nbsp;/g, ' ' ); if ( s.length > max ) { max = s.length; maxIdx = i; } } return maxIdx; } /** * Append a CSS unit (only if required) to a string * @param {string} value to css-ify * @returns {string} value with css unit * @memberof DataTable#oApi */ function _fnStringToCss( s ) { if ( s === null ) { return '0px'; } if ( typeof s == 'number' ) { return s < 0 ? '0px' : s+'px'; } // Check it has a unit character already return s.match(/\d$/) ? s+'px' : s; } function _fnSortFlatten ( settings ) { var i, iLen, k, kLen, aSort = [], aiOrig = [], aoColumns = settings.aoColumns, aDataSort, iCol, sType, srcCol, fixed = settings.aaSortingFixed, fixedObj = $.isPlainObject( fixed ), nestedSort = [], add = function ( a ) { if ( a.length && ! $.isArray( a[0] ) ) { // 1D array nestedSort.push( a ); } else { // 2D array $.merge( nestedSort, a ); } }; // Build the sort array, with pre-fix and post-fix options if they have been // specified if ( $.isArray( fixed ) ) { add( fixed ); } if ( fixedObj && fixed.pre ) { add( fixed.pre ); } add( settings.aaSorting ); if (fixedObj && fixed.post ) { add( fixed.post ); } for ( i=0 ; i<nestedSort.length ; i++ ) { srcCol = nestedSort[i][0]; aDataSort = aoColumns[ srcCol ].aDataSort; for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ ) { iCol = aDataSort[k]; sType = aoColumns[ iCol ].sType || 'string'; if ( nestedSort[i]._idx === undefined ) { nestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting ); } aSort.push( { src: srcCol, col: iCol, dir: nestedSort[i][1], index: nestedSort[i]._idx, type: sType, formatter: DataTable.ext.type.order[ sType+"-pre" ] } ); } } return aSort; } /** * Change the order of the table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi * @todo This really needs split up! */ function _fnSort ( oSettings ) { var i, ien, iLen, j, jLen, k, kLen, sDataType, nTh, aiOrig = [], oExtSort = DataTable.ext.type.order, aoData = oSettings.aoData, aoColumns = oSettings.aoColumns, aDataSort, data, iCol, sType, oSort, formatters = 0, sortCol, displayMaster = oSettings.aiDisplayMaster, aSort; // Resolve any column types that are unknown due to addition or invalidation // @todo Can this be moved into a 'data-ready' handler which is called when // data is going to be used in the table? _fnColumnTypes( oSettings ); aSort = _fnSortFlatten( oSettings ); for ( i=0, ien=aSort.length ; i<ien ; i++ ) { sortCol = aSort[i]; // Track if we can use the fast sort algorithm if ( sortCol.formatter ) { formatters++; } // Load the data needed for the sort, for each cell _fnSortData( oSettings, sortCol.col ); } /* No sorting required if server-side or no sorting array */ if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 ) { // Create a value - key array of the current row positions such that we can use their // current position during the sort, if values match, in order to perform stable sorting for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) { aiOrig[ displayMaster[i] ] = i; } /* Do the sort - here we want multi-column sorting based on a given data source (column) * and sorting function (from oSort) in a certain direction. It's reasonably complex to * follow on it's own, but this is what we want (example two column sorting): * fnLocalSorting = function(a,b){ * var iTest; * iTest = oSort['string-asc']('data11', 'data12'); * if (iTest !== 0) * return iTest; * iTest = oSort['numeric-desc']('data21', 'data22'); * if (iTest !== 0) * return iTest; * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] ); * } * Basically we have a test for each sorting column, if the data in that column is equal, * test the next column. If all columns match, then we use a numeric sort on the row * positions in the original data array to provide a stable sort. * * Note - I know it seems excessive to have two sorting methods, but the first is around * 15% faster, so the second is only maintained for backwards compatibility with sorting * methods which do not have a pre-sort formatting function. */ if ( formatters === aSort.length ) { // All sort types have formatting functions displayMaster.sort( function ( a, b ) { var x, y, k, test, sort, len=aSort.length, dataA = aoData[a]._aSortData, dataB = aoData[b]._aSortData; for ( k=0 ; k<len ; k++ ) { sort = aSort[k]; x = dataA[ sort.col ]; y = dataB[ sort.col ]; test = x<y ? -1 : x>y ? 1 : 0; if ( test !== 0 ) { return sort.dir === 'asc' ? test : -test; } } x = aiOrig[a]; y = aiOrig[b]; return x<y ? -1 : x>y ? 1 : 0; } ); } else { // Depreciated - remove in 1.11 (providing a plug-in option) // Not all sort types have formatting methods, so we have to call their sorting // methods. displayMaster.sort( function ( a, b ) { var x, y, k, l, test, sort, fn, len=aSort.length, dataA = aoData[a]._aSortData, dataB = aoData[b]._aSortData; for ( k=0 ; k<len ; k++ ) { sort = aSort[k]; x = dataA[ sort.col ]; y = dataB[ sort.col ]; fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ]; test = fn( x, y ); if ( test !== 0 ) { return test; } } x = aiOrig[a]; y = aiOrig[b]; return x<y ? -1 : x>y ? 1 : 0; } ); } } /* Tell the draw function that we have sorted the data */ oSettings.bSorted = true; } function _fnSortAria ( settings ) { var label; var nextSort; var columns = settings.aoColumns; var aSort = _fnSortFlatten( settings ); var oAria = settings.oLanguage.oAria; // ARIA attributes - need to loop all columns, to update all (removing old // attributes as needed) for ( var i=0, iLen=columns.length ; i<iLen ; i++ ) { var col = columns[i]; var asSorting = col.asSorting; var sTitle = col.sTitle.replace( /<.*?>/g, "" ); var th = col.nTh; // IE7 is throwing an error when setting these properties with jQuery's // attr() and removeAttr() methods... th.removeAttribute('aria-sort'); /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */ if ( col.bSortable ) { if ( aSort.length > 0 && aSort[0].col == i ) { th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" ); nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0]; } else { nextSort = asSorting[0]; } label = sTitle + ( nextSort === "asc" ? oAria.sSortAscending : oAria.sSortDescending ); } else { label = sTitle; } th.setAttribute('aria-label', label); } } /** * Function to run on user sort request * @param {object} settings dataTables settings object * @param {node} attachTo node to attach the handler to * @param {int} colIdx column sorting index * @param {boolean} [append=false] Append the requested sort to the existing * sort if true (i.e. multi-column sort) * @param {function} [callback] callback function * @memberof DataTable#oApi */ function _fnSortListener ( settings, colIdx, append, callback ) { var col = settings.aoColumns[ colIdx ]; var sorting = settings.aaSorting; var asSorting = col.asSorting; var nextSortIdx; var next = function ( a, overflow ) { var idx = a._idx; if ( idx === undefined ) { idx = $.inArray( a[1], asSorting ); } return idx+1 < asSorting.length ? idx+1 : overflow ? null : 0; }; // Convert to 2D array if needed if ( typeof sorting[0] === 'number' ) { sorting = settings.aaSorting = [ sorting ]; } // If appending the sort then we are multi-column sorting if ( append && settings.oFeatures.bSortMulti ) { // Are we already doing some kind of sort on this column? var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') ); if ( sortIdx !== -1 ) { // Yes, modify the sort nextSortIdx = next( sorting[sortIdx], true ); if ( nextSortIdx === null && sorting.length === 1 ) { nextSortIdx = 0; // can't remove sorting completely } if ( nextSortIdx === null ) { sorting.splice( sortIdx, 1 ); } else { sorting[sortIdx][1] = asSorting[ nextSortIdx ]; sorting[sortIdx]._idx = nextSortIdx; } } else { // No sort on this column yet sorting.push( [ colIdx, asSorting[0], 0 ] ); sorting[sorting.length-1]._idx = 0; } } else if ( sorting.length && sorting[0][0] == colIdx ) { // Single column - already sorting on this column, modify the sort nextSortIdx = next( sorting[0] ); sorting.length = 1; sorting[0][1] = asSorting[ nextSortIdx ]; sorting[0]._idx = nextSortIdx; } else { // Single column - sort only on this column sorting.length = 0; sorting.push( [ colIdx, asSorting[0] ] ); sorting[0]._idx = 0; } // Run the sort by calling a full redraw _fnReDraw( settings ); // callback used for async user interaction if ( typeof callback == 'function' ) { callback( settings ); } } /** * Attach a sort handler (click) to a node * @param {object} settings dataTables settings object * @param {node} attachTo node to attach the handler to * @param {int} colIdx column sorting index * @param {function} [callback] callback function * @memberof DataTable#oApi */ function _fnSortAttachListener ( settings, attachTo, colIdx, callback ) { var col = settings.aoColumns[ colIdx ]; _fnBindAction( attachTo, {}, function (e) { /* If the column is not sortable - don't to anything */ if ( col.bSortable === false ) { return; } // If processing is enabled use a timeout to allow the processing // display to be shown - otherwise to it synchronously if ( settings.oFeatures.bProcessing ) { _fnProcessingDisplay( settings, true ); setTimeout( function() { _fnSortListener( settings, colIdx, e.shiftKey, callback ); // In server-side processing, the draw callback will remove the // processing display if ( _fnDataSource( settings ) !== 'ssp' ) { _fnProcessingDisplay( settings, false ); } }, 0 ); } else { _fnSortListener( settings, colIdx, e.shiftKey, callback ); } } ); } /** * Set the sorting classes on table's body, Note: it is safe to call this function * when bSort and bSortClasses are false * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnSortingClasses( settings ) { var oldSort = settings.aLastSort; var sortClass = settings.oClasses.sSortColumn; var sort = _fnSortFlatten( settings ); var features = settings.oFeatures; var i, ien, colIdx; if ( features.bSort && features.bSortClasses ) { // Remove old sorting classes for ( i=0, ien=oldSort.length ; i<ien ; i++ ) { colIdx = oldSort[i].src; // Remove column sorting $( _pluck( settings.aoData, 'anCells', colIdx ) ) .removeClass( sortClass + (i<2 ? i+1 : 3) ); } // Add new column sorting for ( i=0, ien=sort.length ; i<ien ; i++ ) { colIdx = sort[i].src; $( _pluck( settings.aoData, 'anCells', colIdx ) ) .addClass( sortClass + (i<2 ? i+1 : 3) ); } } settings.aLastSort = sort; } // Get the data to sort a column, be it from cache, fresh (populating the // cache), or from a sort formatter function _fnSortData( settings, idx ) { // Custom sorting function - provided by the sort data type var column = settings.aoColumns[ idx ]; var customSort = DataTable.ext.order[ column.sSortDataType ]; var customData; if ( customSort ) { customData = customSort.call( settings.oInstance, settings, idx, _fnColumnIndexToVisible( settings, idx ) ); } // Use / populate cache var row, cellData; var formatter = DataTable.ext.type.order[ column.sType+"-pre" ]; for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) { row = settings.aoData[i]; if ( ! row._aSortData ) { row._aSortData = []; } if ( ! row._aSortData[idx] || customSort ) { cellData = customSort ? customData[i] : // If there was a custom sort function, use data from there _fnGetCellData( settings, i, idx, 'sort' ); row._aSortData[ idx ] = formatter ? formatter( cellData ) : cellData; } } } /** * Save the state of a table * @param {object} oSettings dataTables settings object * @memberof DataTable#oApi */ function _fnSaveState ( settings ) { if ( !settings.oFeatures.bStateSave || settings.bDestroying ) { return; } /* Store the interesting variables */ var state = { time: +new Date(), start: settings._iDisplayStart, length: settings._iDisplayLength, order: $.extend( true, [], settings.aaSorting ), search: _fnSearchToCamel( settings.oPreviousSearch ), columns: $.map( settings.aoColumns, function ( col, i ) { return { visible: col.bVisible, search: _fnSearchToCamel( settings.aoPreSearchCols[i] ) }; } ) }; _fnCallbackFire( settings, "aoStateSaveParams", 'stateSaveParams', [settings, state] ); settings.oSavedState = state; settings.fnStateSaveCallback.call( settings.oInstance, settings, state ); } /** * Attempt to load a saved table state * @param {object} oSettings dataTables settings object * @param {object} oInit DataTables init object so we can override settings * @param {function} callback Callback to execute when the state has been loaded * @memberof DataTable#oApi */ function _fnLoadState ( settings, oInit, callback ) { var i, ien; var columns = settings.aoColumns; var loaded = function ( s ) { if ( ! s || ! s.time ) { callback(); return; } // Allow custom and plug-in manipulation functions to alter the saved data set and // cancelling of loading by returning false var abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s] ); if ( $.inArray( false, abStateLoad ) !== -1 ) { callback(); return; } // Reject old data var duration = settings.iStateDuration; if ( duration > 0 && s.time < +new Date() - (duration*1000) ) { callback(); return; } // Number of columns have changed - all bets are off, no restore of settings if ( s.columns && columns.length !== s.columns.length ) { callback(); return; } // Store the saved state so it might be accessed at any time settings.oLoadedState = $.extend( true, {}, s ); // Restore key features - todo - for 1.11 this needs to be done by // subscribed events if ( s.start !== undefined ) { settings._iDisplayStart = s.start; settings.iInitDisplayStart = s.start; } if ( s.length !== undefined ) { settings._iDisplayLength = s.length; } // Order if ( s.order !== undefined ) { settings.aaSorting = []; $.each( s.order, function ( i, col ) { settings.aaSorting.push( col[0] >= columns.length ? [ 0, col[1] ] : col ); } ); } // Search if ( s.search !== undefined ) { $.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) ); } // Columns // if ( s.columns ) { for ( i=0, ien=s.columns.length ; i<ien ; i++ ) { var col = s.columns[i]; // Visibility if ( col.visible !== undefined ) { columns[i].bVisible = col.visible; } // Search if ( col.search !== undefined ) { $.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) ); } } } _fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, s] ); callback(); } if ( ! settings.oFeatures.bStateSave ) { callback(); return; } var state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded ); if ( state !== undefined ) { loaded( state ); } // otherwise, wait for the loaded callback to be executed } /** * Return the settings object for a particular table * @param {node} table table we are using as a dataTable * @returns {object} Settings object - or null if not found * @memberof DataTable#oApi */ function _fnSettingsFromNode ( table ) { var settings = DataTable.settings; var idx = $.inArray( table, _pluck( settings, 'nTable' ) ); return idx !== -1 ? settings[ idx ] : null; } /** * Log an error message * @param {object} settings dataTables settings object * @param {int} level log error messages, or display them to the user * @param {string} msg error message * @param {int} tn Technical note id to get more information about the error. * @memberof DataTable#oApi */ function _fnLog( settings, level, msg, tn ) { msg = 'DataTables warning: '+ (settings ? 'table id='+settings.sTableId+' - ' : '')+msg; if ( tn ) { msg += '. For more information about this error, please see '+ 'http://datatables.net/tn/'+tn; } if ( ! level ) { // Backwards compatibility pre 1.10 var ext = DataTable.ext; var type = ext.sErrMode || ext.errMode; if ( settings ) { _fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] ); } if ( type == 'alert' ) { alert( msg ); } else if ( type == 'throw' ) { throw new Error(msg); } else if ( typeof type == 'function' ) { type( settings, tn, msg ); } } else if ( window.console && console.log ) { console.log( msg ); } } /** * See if a property is defined on one object, if so assign it to the other object * @param {object} ret target object * @param {object} src source object * @param {string} name property * @param {string} [mappedName] name to map too - optional, name used if not given * @memberof DataTable#oApi */ function _fnMap( ret, src, name, mappedName ) { if ( $.isArray( name ) ) { $.each( name, function (i, val) { if ( $.isArray( val ) ) { _fnMap( ret, src, val[0], val[1] ); } else { _fnMap( ret, src, val ); } } ); return; } if ( mappedName === undefined ) { mappedName = name; } if ( src[name] !== undefined ) { ret[mappedName] = src[name]; } } /** * Extend objects - very similar to jQuery.extend, but deep copy objects, and * shallow copy arrays. The reason we need to do this, is that we don't want to * deep copy array init values (such as aaSorting) since the dev wouldn't be * able to override them, but we do want to deep copy arrays. * @param {object} out Object to extend * @param {object} extender Object from which the properties will be applied to * out * @param {boolean} breakRefs If true, then arrays will be sliced to take an * independent copy with the exception of the `data` or `aaData` parameters * if they are present. This is so you can pass in a collection to * DataTables and have that used as your data source without breaking the * references * @returns {object} out Reference, just for convenience - out === the return. * @memberof DataTable#oApi * @todo This doesn't take account of arrays inside the deep copied objects. */ function _fnExtend( out, extender, breakRefs ) { var val; for ( var prop in extender ) { if ( extender.hasOwnProperty(prop) ) { val = extender[prop]; if ( $.isPlainObject( val ) ) { if ( ! $.isPlainObject( out[prop] ) ) { out[prop] = {}; } $.extend( true, out[prop], val ); } else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) { out[prop] = val.slice(); } else { out[prop] = val; } } } return out; } /** * Bind an event handers to allow a click or return key to activate the callback. * This is good for accessibility since a return on the keyboard will have the * same effect as a click, if the element has focus. * @param {element} n Element to bind the action to * @param {object} oData Data object to pass to the triggered function * @param {function} fn Callback function for when the event is triggered * @memberof DataTable#oApi */ function _fnBindAction( n, oData, fn ) { $(n) .on( 'click.DT', oData, function (e) { $(n).blur(); // Remove focus outline for mouse users fn(e); } ) .on( 'keypress.DT', oData, function (e){ if ( e.which === 13 ) { e.preventDefault(); fn(e); } } ) .on( 'selectstart.DT', function () { /* Take the brutal approach to cancelling text selection */ return false; } ); } /** * Register a callback function. Easily allows a callback function to be added to * an array store of callback functions that can then all be called together. * @param {object} oSettings dataTables settings object * @param {string} sStore Name of the array storage for the callbacks in oSettings * @param {function} fn Function to be called back * @param {string} sName Identifying name for the callback (i.e. a label) * @memberof DataTable#oApi */ function _fnCallbackReg( oSettings, sStore, fn, sName ) { if ( fn ) { oSettings[sStore].push( { "fn": fn, "sName": sName } ); } } /** * Fire callback functions and trigger events. Note that the loop over the * callback array store is done backwards! Further note that you do not want to * fire off triggers in time sensitive applications (for example cell creation) * as its slow. * @param {object} settings dataTables settings object * @param {string} callbackArr Name of the array storage for the callbacks in * oSettings * @param {string} eventName Name of the jQuery custom event to trigger. If * null no trigger is fired * @param {array} args Array of arguments to pass to the callback function / * trigger * @memberof DataTable#oApi */ function _fnCallbackFire( settings, callbackArr, eventName, args ) { var ret = []; if ( callbackArr ) { ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) { return val.fn.apply( settings.oInstance, args ); } ); } if ( eventName !== null ) { var e = $.Event( eventName+'.dt' ); $(settings.nTable).trigger( e, args ); ret.push( e.result ); } return ret; } function _fnLengthOverflow ( settings ) { var start = settings._iDisplayStart, end = settings.fnDisplayEnd(), len = settings._iDisplayLength; /* If we have space to show extra rows (backing up from the end point - then do so */ if ( start >= end ) { start = end - len; } // Keep the start record on the current page start -= (start % len); if ( len === -1 || start < 0 ) { start = 0; } settings._iDisplayStart = start; } function _fnRenderer( settings, type ) { var renderer = settings.renderer; var host = DataTable.ext.renderer[type]; if ( $.isPlainObject( renderer ) && renderer[type] ) { // Specific renderer for this type. If available use it, otherwise use // the default. return host[renderer[type]] || host._; } else if ( typeof renderer === 'string' ) { // Common renderer - if there is one available for this type use it, // otherwise use the default return host[renderer] || host._; } // Use the default return host._; } /** * Detect the data source being used for the table. Used to simplify the code * a little (ajax) and to make it compress a little smaller. * * @param {object} settings dataTables settings object * @returns {string} Data source * @memberof DataTable#oApi */ function _fnDataSource ( settings ) { if ( settings.oFeatures.bServerSide ) { return 'ssp'; } else if ( settings.ajax || settings.sAjaxSource ) { return 'ajax'; } return 'dom'; } /** * Computed structure of the DataTables API, defined by the options passed to * `DataTable.Api.register()` when building the API. * * The structure is built in order to speed creation and extension of the Api * objects since the extensions are effectively pre-parsed. * * The array is an array of objects with the following structure, where this * base array represents the Api prototype base: * * [ * { * name: 'data' -- string - Property name * val: function () {}, -- function - Api method (or undefined if just an object * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result * propExt: [ ... ] -- array - Array of Api object definitions to extend the property * }, * { * name: 'row' * val: {}, * methodExt: [ ... ], * propExt: [ * { * name: 'data' * val: function () {}, * methodExt: [ ... ], * propExt: [ ... ] * }, * ... * ] * } * ] * * @type {Array} * @ignore */ var __apiStruct = []; /** * `Array.prototype` reference. * * @type object * @ignore */ var __arrayProto = Array.prototype; /** * Abstraction for `context` parameter of the `Api` constructor to allow it to * take several different forms for ease of use. * * Each of the input parameter types will be converted to a DataTables settings * object where possible. * * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one * of: * * * `string` - jQuery selector. Any DataTables' matching the given selector * with be found and used. * * `node` - `TABLE` node which has already been formed into a DataTable. * * `jQuery` - A jQuery object of `TABLE` nodes. * * `object` - DataTables settings object * * `DataTables.Api` - API instance * @return {array|null} Matching DataTables settings objects. `null` or * `undefined` is returned if no matching DataTable is found. * @ignore */ var _toSettings = function ( mixed ) { var idx, jq; var settings = DataTable.settings; var tables = $.map( settings, function (el, i) { return el.nTable; } ); if ( ! mixed ) { return []; } else if ( mixed.nTable && mixed.oApi ) { // DataTables settings object return [ mixed ]; } else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) { // Table node idx = $.inArray( mixed, tables ); return idx !== -1 ? [ settings[idx] ] : null; } else if ( mixed && typeof mixed.settings === 'function' ) { return mixed.settings().toArray(); } else if ( typeof mixed === 'string' ) { // jQuery selector jq = $(mixed); } else if ( mixed instanceof $ ) { // jQuery object (also DataTables instance) jq = mixed; } if ( jq ) { return jq.map( function(i) { idx = $.inArray( this, tables ); return idx !== -1 ? settings[idx] : null; } ).toArray(); } }; /** * DataTables API class - used to control and interface with one or more * DataTables enhanced tables. * * The API class is heavily based on jQuery, presenting a chainable interface * that you can use to interact with tables. Each instance of the API class has * a "context" - i.e. the tables that it will operate on. This could be a single * table, all tables on a page or a sub-set thereof. * * Additionally the API is designed to allow you to easily work with the data in * the tables, retrieving and manipulating it as required. This is done by * presenting the API class as an array like interface. The contents of the * array depend upon the actions requested by each method (for example * `rows().nodes()` will return an array of nodes, while `rows().data()` will * return an array of objects or arrays depending upon your table's * configuration). The API object has a number of array like methods (`push`, * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`, * `unique` etc) to assist your working with the data held in a table. * * Most methods (those which return an Api instance) are chainable, which means * the return from a method call also has all of the methods available that the * top level object had. For example, these two calls are equivalent: * * // Not chained * api.row.add( {...} ); * api.draw(); * * // Chained * api.row.add( {...} ).draw(); * * @class DataTable.Api * @param {array|object|string|jQuery} context DataTable identifier. This is * used to define which DataTables enhanced tables this API will operate on. * Can be one of: * * * `string` - jQuery selector. Any DataTables' matching the given selector * with be found and used. * * `node` - `TABLE` node which has already been formed into a DataTable. * * `jQuery` - A jQuery object of `TABLE` nodes. * * `object` - DataTables settings object * @param {array} [data] Data to initialise the Api instance with. * * @example * // Direct initialisation during DataTables construction * var api = $('#example').DataTable(); * * @example * // Initialisation using a DataTables jQuery object * var api = $('#example').dataTable().api(); * * @example * // Initialisation as a constructor * var api = new $.fn.DataTable.Api( 'table.dataTable' ); */ _Api = function ( context, data ) { if ( ! (this instanceof _Api) ) { return new _Api( context, data ); } var settings = []; var ctxSettings = function ( o ) { var a = _toSettings( o ); if ( a ) { settings = settings.concat( a ); } }; if ( $.isArray( context ) ) { for ( var i=0, ien=context.length ; i<ien ; i++ ) { ctxSettings( context[i] ); } } else { ctxSettings( context ); } // Remove duplicates this.context = _unique( settings ); // Initial data if ( data ) { $.merge( this, data ); } // selector this.selector = { rows: null, cols: null, opts: null }; _Api.extend( this, this, __apiStruct ); }; DataTable.Api = _Api; // Don't destroy the existing prototype, just extend it. Required for jQuery 2's // isPlainObject. $.extend( _Api.prototype, { any: function () { return this.count() !== 0; }, concat: __arrayProto.concat, context: [], // array of table settings objects count: function () { return this.flatten().length; }, each: function ( fn ) { for ( var i=0, ien=this.length ; i<ien; i++ ) { fn.call( this, this[i], i, this ); } return this; }, eq: function ( idx ) { var ctx = this.context; return ctx.length > idx ? new _Api( ctx[idx], this[idx] ) : null; }, filter: function ( fn ) { var a = []; if ( __arrayProto.filter ) { a = __arrayProto.filter.call( this, fn, this ); } else { // Compatibility for browsers without EMCA-252-5 (JS 1.6) for ( var i=0, ien=this.length ; i<ien ; i++ ) { if ( fn.call( this, this[i], i, this ) ) { a.push( this[i] ); } } } return new _Api( this.context, a ); }, flatten: function () { var a = []; return new _Api( this.context, a.concat.apply( a, this.toArray() ) ); }, join: __arrayProto.join, indexOf: __arrayProto.indexOf || function (obj, start) { for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) { if ( this[i] === obj ) { return i; } } return -1; }, iterator: function ( flatten, type, fn, alwaysNew ) { var a = [], ret, i, ien, j, jen, context = this.context, rows, items, item, selector = this.selector; // Argument shifting if ( typeof flatten === 'string' ) { alwaysNew = fn; fn = type; type = flatten; flatten = false; } for ( i=0, ien=context.length ; i<ien ; i++ ) { var apiInst = new _Api( context[i] ); if ( type === 'table' ) { ret = fn.call( apiInst, context[i], i ); if ( ret !== undefined ) { a.push( ret ); } } else if ( type === 'columns' || type === 'rows' ) { // this has same length as context - one entry for each table ret = fn.call( apiInst, context[i], this[i], i ); if ( ret !== undefined ) { a.push( ret ); } } else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) { // columns and rows share the same structure. // 'this' is an array of column indexes for each context items = this[i]; if ( type === 'column-rows' ) { rows = _selector_row_indexes( context[i], selector.opts ); } for ( j=0, jen=items.length ; j<jen ; j++ ) { item = items[j]; if ( type === 'cell' ) { ret = fn.call( apiInst, context[i], item.row, item.column, i, j ); } else { ret = fn.call( apiInst, context[i], item, i, j, rows ); } if ( ret !== undefined ) { a.push( ret ); } } } } if ( a.length || alwaysNew ) { var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a ); var apiSelector = api.selector; apiSelector.rows = selector.rows; apiSelector.cols = selector.cols; apiSelector.opts = selector.opts; return api; } return this; }, lastIndexOf: __arrayProto.lastIndexOf || function (obj, start) { // Bit cheeky... return this.indexOf.apply( this.toArray.reverse(), arguments ); }, length: 0, map: function ( fn ) { var a = []; if ( __arrayProto.map ) { a = __arrayProto.map.call( this, fn, this ); } else { // Compatibility for browsers without EMCA-252-5 (JS 1.6) for ( var i=0, ien=this.length ; i<ien ; i++ ) { a.push( fn.call( this, this[i], i ) ); } } return new _Api( this.context, a ); }, pluck: function ( prop ) { return this.map( function ( el ) { return el[ prop ]; } ); }, pop: __arrayProto.pop, push: __arrayProto.push, // Does not return an API instance reduce: __arrayProto.reduce || function ( fn, init ) { return _fnReduce( this, fn, init, 0, this.length, 1 ); }, reduceRight: __arrayProto.reduceRight || function ( fn, init ) { return _fnReduce( this, fn, init, this.length-1, -1, -1 ); }, reverse: __arrayProto.reverse, // Object with rows, columns and opts selector: null, shift: __arrayProto.shift, slice: function () { return new _Api( this.context, this ); }, sort: __arrayProto.sort, // ? name - order? splice: __arrayProto.splice, toArray: function () { return __arrayProto.slice.call( this ); }, to$: function () { return $( this ); }, toJQuery: function () { return $( this ); }, unique: function () { return new _Api( this.context, _unique(this) ); }, unshift: __arrayProto.unshift } ); _Api.extend = function ( scope, obj, ext ) { // Only extend API instances and static properties of the API if ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) { return; } var i, ien, j, jen, struct, inner, methodScoping = function ( scope, fn, struc ) { return function () { var ret = fn.apply( scope, arguments ); // Method extension _Api.extend( ret, ret, struc.methodExt ); return ret; }; }; for ( i=0, ien=ext.length ; i<ien ; i++ ) { struct = ext[i]; // Value obj[ struct.name ] = typeof struct.val === 'function' ? methodScoping( scope, struct.val, struct ) : $.isPlainObject( struct.val ) ? {} : struct.val; obj[ struct.name ].__dt_wrapper = true; // Property extension _Api.extend( scope, obj[ struct.name ], struct.propExt ); } }; // @todo - Is there need for an augment function? // _Api.augment = function ( inst, name ) // { // // Find src object in the structure from the name // var parts = name.split('.'); // _Api.extend( inst, obj ); // }; // [ // { // name: 'data' -- string - Property name // val: function () {}, -- function - Api method (or undefined if just an object // methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result // propExt: [ ... ] -- array - Array of Api object definitions to extend the property // }, // { // name: 'row' // val: {}, // methodExt: [ ... ], // propExt: [ // { // name: 'data' // val: function () {}, // methodExt: [ ... ], // propExt: [ ... ] // }, // ... // ] // } // ] _Api.register = _api_register = function ( name, val ) { if ( $.isArray( name ) ) { for ( var j=0, jen=name.length ; j<jen ; j++ ) { _Api.register( name[j], val ); } return; } var i, ien, heir = name.split('.'), struct = __apiStruct, key, method; var find = function ( src, name ) { for ( var i=0, ien=src.length ; i<ien ; i++ ) { if ( src[i].name === name ) { return src[i]; } } return null; }; for ( i=0, ien=heir.length ; i<ien ; i++ ) { method = heir[i].indexOf('()') !== -1; key = method ? heir[i].replace('()', '') : heir[i]; var src = find( struct, key ); if ( ! src ) { src = { name: key, val: {}, methodExt: [], propExt: [] }; struct.push( src ); } if ( i === ien-1 ) { src.val = val; } else { struct = method ? src.methodExt : src.propExt; } } }; _Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) { _Api.register( pluralName, val ); _Api.register( singularName, function () { var ret = val.apply( this, arguments ); if ( ret === this ) { // Returned item is the API instance that was passed in, return it return this; } else if ( ret instanceof _Api ) { // New API instance returned, want the value from the first item // in the returned array for the singular result. return ret.length ? $.isArray( ret[0] ) ? new _Api( ret.context, ret[0] ) : // Array results are 'enhanced' ret[0] : undefined; } // Non-API return - just fire it back return ret; } ); }; /** * Selector for HTML tables. Apply the given selector to the give array of * DataTables settings objects. * * @param {string|integer} [selector] jQuery selector string or integer * @param {array} Array of DataTables settings objects to be filtered * @return {array} * @ignore */ var __table_selector = function ( selector, a ) { // Integer is used to pick out a table by index if ( typeof selector === 'number' ) { return [ a[ selector ] ]; } // Perform a jQuery selector on the table nodes var nodes = $.map( a, function (el, i) { return el.nTable; } ); return $(nodes) .filter( selector ) .map( function (i) { // Need to translate back from the table node to the settings var idx = $.inArray( this, nodes ); return a[ idx ]; } ) .toArray(); }; /** * Context selector for the API's context (i.e. the tables the API instance * refers to. * * @name DataTable.Api#tables * @param {string|integer} [selector] Selector to pick which tables the iterator * should operate on. If not given, all tables in the current context are * used. This can be given as a jQuery selector (for example `':gt(0)'`) to * select multiple tables or as an integer to select a single table. * @returns {DataTable.Api} Returns a new API instance if a selector is given. */ _api_register( 'tables()', function ( selector ) { // A new instance is created if there was a selector specified return selector ? new _Api( __table_selector( selector, this.context ) ) : this; } ); _api_register( 'table()', function ( selector ) { var tables = this.tables( selector ); var ctx = tables.context; // Truncate to the first matched table return ctx.length ? new _Api( ctx[0] ) : tables; } ); _api_registerPlural( 'tables().nodes()', 'table().node()' , function () { return this.iterator( 'table', function ( ctx ) { return ctx.nTable; }, 1 ); } ); _api_registerPlural( 'tables().body()', 'table().body()' , function () { return this.iterator( 'table', function ( ctx ) { return ctx.nTBody; }, 1 ); } ); _api_registerPlural( 'tables().header()', 'table().header()' , function () { return this.iterator( 'table', function ( ctx ) { return ctx.nTHead; }, 1 ); } ); _api_registerPlural( 'tables().footer()', 'table().footer()' , function () { return this.iterator( 'table', function ( ctx ) { return ctx.nTFoot; }, 1 ); } ); _api_registerPlural( 'tables().containers()', 'table().container()' , function () { return this.iterator( 'table', function ( ctx ) { return ctx.nTableWrapper; }, 1 ); } ); /** * Redraw the tables in the current context. */ _api_register( 'draw()', function ( paging ) { return this.iterator( 'table', function ( settings ) { if ( paging === 'page' ) { _fnDraw( settings ); } else { if ( typeof paging === 'string' ) { paging = paging === 'full-hold' ? false : true; } _fnReDraw( settings, paging===false ); } } ); } ); /** * Get the current page index. * * @return {integer} Current page index (zero based) *//** * Set the current page. * * Note that if you attempt to show a page which does not exist, DataTables will * not throw an error, but rather reset the paging. * * @param {integer|string} action The paging action to take. This can be one of: * * `integer` - The page index to jump to * * `string` - An action to take: * * `first` - Jump to first page. * * `next` - Jump to the next page * * `previous` - Jump to previous page * * `last` - Jump to the last page. * @returns {DataTables.Api} this */ _api_register( 'page()', function ( action ) { if ( action === undefined ) { return this.page.info().page; // not an expensive call } // else, have an action to take on all tables return this.iterator( 'table', function ( settings ) { _fnPageChange( settings, action ); } ); } ); /** * Paging information for the first table in the current context. * * If you require paging information for another table, use the `table()` method * with a suitable selector. * * @return {object} Object with the following properties set: * * `page` - Current page index (zero based - i.e. the first page is `0`) * * `pages` - Total number of pages * * `start` - Display index for the first record shown on the current page * * `end` - Display index for the last record shown on the current page * * `length` - Display length (number of records). Note that generally `start * + length = end`, but this is not always true, for example if there are * only 2 records to show on the final page, with a length of 10. * * `recordsTotal` - Full data set length * * `recordsDisplay` - Data set length once the current filtering criterion * are applied. */ _api_register( 'page.info()', function ( action ) { if ( this.context.length === 0 ) { return undefined; } var settings = this.context[0], start = settings._iDisplayStart, len = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1, visRecords = settings.fnRecordsDisplay(), all = len === -1; return { "page": all ? 0 : Math.floor( start / len ), "pages": all ? 1 : Math.ceil( visRecords / len ), "start": start, "end": settings.fnDisplayEnd(), "length": len, "recordsTotal": settings.fnRecordsTotal(), "recordsDisplay": visRecords, "serverSide": _fnDataSource( settings ) === 'ssp' }; } ); /** * Get the current page length. * * @return {integer} Current page length. Note `-1` indicates that all records * are to be shown. *//** * Set the current page length. * * @param {integer} Page length to set. Use `-1` to show all records. * @returns {DataTables.Api} this */ _api_register( 'page.len()', function ( len ) { // Note that we can't call this function 'length()' because `length` // is a Javascript property of functions which defines how many arguments // the function expects. if ( len === undefined ) { return this.context.length !== 0 ? this.context[0]._iDisplayLength : undefined; } // else, set the page length return this.iterator( 'table', function ( settings ) { _fnLengthChange( settings, len ); } ); } ); var __reload = function ( settings, holdPosition, callback ) { // Use the draw event to trigger a callback if ( callback ) { var api = new _Api( settings ); api.one( 'draw', function () { callback( api.ajax.json() ); } ); } if ( _fnDataSource( settings ) == 'ssp' ) { _fnReDraw( settings, holdPosition ); } else { _fnProcessingDisplay( settings, true ); // Cancel an existing request var xhr = settings.jqXHR; if ( xhr && xhr.readyState !== 4 ) { xhr.abort(); } // Trigger xhr _fnBuildAjax( settings, [], function( json ) { _fnClearTable( settings ); var data = _fnAjaxDataSrc( settings, json ); for ( var i=0, ien=data.length ; i<ien ; i++ ) { _fnAddData( settings, data[i] ); } _fnReDraw( settings, holdPosition ); _fnProcessingDisplay( settings, false ); } ); } }; /** * Get the JSON response from the last Ajax request that DataTables made to the * server. Note that this returns the JSON from the first table in the current * context. * * @return {object} JSON received from the server. */ _api_register( 'ajax.json()', function () { var ctx = this.context; if ( ctx.length > 0 ) { return ctx[0].json; } // else return undefined; } ); /** * Get the data submitted in the last Ajax request */ _api_register( 'ajax.params()', function () { var ctx = this.context; if ( ctx.length > 0 ) { return ctx[0].oAjaxData; } // else return undefined; } ); /** * Reload tables from the Ajax data source. Note that this function will * automatically re-draw the table when the remote data has been loaded. * * @param {boolean} [reset=true] Reset (default) or hold the current paging * position. A full re-sort and re-filter is performed when this method is * called, which is why the pagination reset is the default action. * @returns {DataTables.Api} this */ _api_register( 'ajax.reload()', function ( callback, resetPaging ) { return this.iterator( 'table', function (settings) { __reload( settings, resetPaging===false, callback ); } ); } ); /** * Get the current Ajax URL. Note that this returns the URL from the first * table in the current context. * * @return {string} Current Ajax source URL *//** * Set the Ajax URL. Note that this will set the URL for all tables in the * current context. * * @param {string} url URL to set. * @returns {DataTables.Api} this */ _api_register( 'ajax.url()', function ( url ) { var ctx = this.context; if ( url === undefined ) { // get if ( ctx.length === 0 ) { return undefined; } ctx = ctx[0]; return ctx.ajax ? $.isPlainObject( ctx.ajax ) ? ctx.ajax.url : ctx.ajax : ctx.sAjaxSource; } // set return this.iterator( 'table', function ( settings ) { if ( $.isPlainObject( settings.ajax ) ) { settings.ajax.url = url; } else { settings.ajax = url; } // No need to consider sAjaxSource here since DataTables gives priority // to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any // value of `sAjaxSource` redundant. } ); } ); /** * Load data from the newly set Ajax URL. Note that this method is only * available when `ajax.url()` is used to set a URL. Additionally, this method * has the same effect as calling `ajax.reload()` but is provided for * convenience when setting a new URL. Like `ajax.reload()` it will * automatically redraw the table once the remote data has been loaded. * * @returns {DataTables.Api} this */ _api_register( 'ajax.url().load()', function ( callback, resetPaging ) { // Same as a reload, but makes sense to present it for easy access after a // url change return this.iterator( 'table', function ( ctx ) { __reload( ctx, resetPaging===false, callback ); } ); } ); var _selector_run = function ( type, selector, selectFn, settings, opts ) { var out = [], res, a, i, ien, j, jen, selectorType = typeof selector; // Can't just check for isArray here, as an API or jQuery instance might be // given with their array like look if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) { selector = [ selector ]; } for ( i=0, ien=selector.length ; i<ien ; i++ ) { // Only split on simple strings - complex expressions will be jQuery selectors a = selector[i] && selector[i].split && ! selector[i].match(/[\[\(:]/) ? selector[i].split(',') : [ selector[i] ]; for ( j=0, jen=a.length ; j<jen ; j++ ) { res = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] ); if ( res && res.length ) { out = out.concat( res ); } } } // selector extensions var ext = _ext.selector[ type ]; if ( ext.length ) { for ( i=0, ien=ext.length ; i<ien ; i++ ) { out = ext[i]( settings, opts, out ); } } return _unique( out ); }; var _selector_opts = function ( opts ) { if ( ! opts ) { opts = {}; } // Backwards compatibility for 1.9- which used the terminology filter rather // than search if ( opts.filter && opts.search === undefined ) { opts.search = opts.filter; } return $.extend( { search: 'none', order: 'current', page: 'all' }, opts ); }; var _selector_first = function ( inst ) { // Reduce the API instance to the first item found for ( var i=0, ien=inst.length ; i<ien ; i++ ) { if ( inst[i].length > 0 ) { // Assign the first element to the first item in the instance // and truncate the instance and context inst[0] = inst[i]; inst[0].length = 1; inst.length = 1; inst.context = [ inst.context[i] ]; return inst; } } // Not found - return an empty instance inst.length = 0; return inst; }; var _selector_row_indexes = function ( settings, opts ) { var i, ien, tmp, a=[], displayFiltered = settings.aiDisplay, displayMaster = settings.aiDisplayMaster; var search = opts.search, // none, applied, removed order = opts.order, // applied, current, index (original - compatibility with 1.9) page = opts.page; // all, current if ( _fnDataSource( settings ) == 'ssp' ) { // In server-side processing mode, most options are irrelevant since // rows not shown don't exist and the index order is the applied order // Removed is a special case - for consistency just return an empty // array return search === 'removed' ? [] : _range( 0, displayMaster.length ); } else if ( page == 'current' ) { // Current page implies that order=current and fitler=applied, since it is // fairly senseless otherwise, regardless of what order and search actually // are for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) { a.push( displayFiltered[i] ); } } else if ( order == 'current' || order == 'applied' ) { if ( search == 'none') { a = displayMaster.slice(); } else if ( search == 'applied' ) { a = displayFiltered.slice(); } else if ( search == 'removed' ) { // O(n+m) solution by creating a hash map var displayFilteredMap = {}; for ( var i=0, ien=displayFiltered.length ; i<ien ; i++ ) { displayFilteredMap[displayFiltered[i]] = null; } a = $.map( displayMaster, function (el) { return ! displayFilteredMap.hasOwnProperty(el) ? el : null; } ); } } else if ( order == 'index' || order == 'original' ) { for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) { if ( search == 'none' ) { a.push( i ); } else { // applied | removed tmp = $.inArray( i, displayFiltered ); if ((tmp === -1 && search == 'removed') || (tmp >= 0 && search == 'applied') ) { a.push( i ); } } } } return a; }; /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Rows * * {} - no selector - use all available rows * {integer} - row aoData index * {node} - TR node * {string} - jQuery selector to apply to the TR elements * {array} - jQuery array of nodes, or simply an array of TR nodes * */ var __row_selector = function ( settings, selector, opts ) { var rows; var run = function ( sel ) { var selInt = _intVal( sel ); var i, ien; var aoData = settings.aoData; // Short cut - selector is a number and no options provided (default is // all records, so no need to check if the index is in there, since it // must be - dev error if the index doesn't exist). if ( selInt !== null && ! opts ) { return [ selInt ]; } if ( ! rows ) { rows = _selector_row_indexes( settings, opts ); } if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) { // Selector - integer return [ selInt ]; } else if ( sel === null || sel === undefined || sel === '' ) { // Selector - none return rows; } // Selector - function if ( typeof sel === 'function' ) { return $.map( rows, function (idx) { var row = aoData[ idx ]; return sel( idx, row._aData, row.nTr ) ? idx : null; } ); } // Selector - node if ( sel.nodeName ) { var rowIdx = sel._DT_RowIndex; // Property added by DT for fast lookup var cellIdx = sel._DT_CellIndex; if ( rowIdx !== undefined ) { // Make sure that the row is actually still present in the table return aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ? [ rowIdx ] : []; } else if ( cellIdx ) { return aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel ? [ cellIdx.row ] : []; } else { var host = $(sel).closest('*[data-dt-row]'); return host.length ? [ host.data('dt-row') ] : []; } } // ID selector. Want to always be able to select rows by id, regardless // of if the tr element has been created or not, so can't rely upon // jQuery here - hence a custom implementation. This does not match // Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything, // but to select it using a CSS selector engine (like Sizzle or // querySelect) it would need to need to be escaped for some characters. // DataTables simplifies this for row selectors since you can select // only a row. A # indicates an id any anything that follows is the id - // unescaped. if ( typeof sel === 'string' && sel.charAt(0) === '#' ) { // get row index from id var rowObj = settings.aIds[ sel.replace( /^#/, '' ) ]; if ( rowObj !== undefined ) { return [ rowObj.idx ]; } // need to fall through to jQuery in case there is DOM id that // matches } // Get nodes in the order from the `rows` array with null values removed var nodes = _removeEmpty( _pluck_order( settings.aoData, rows, 'nTr' ) ); // Selector - jQuery selector string, array of nodes or jQuery object/ // As jQuery's .filter() allows jQuery objects to be passed in filter, // it also allows arrays, so this will cope with all three options return $(nodes) .filter( sel ) .map( function () { return this._DT_RowIndex; } ) .toArray(); }; return _selector_run( 'row', selector, run, settings, opts ); }; _api_register( 'rows()', function ( selector, opts ) { // argument shifting if ( selector === undefined ) { selector = ''; } else if ( $.isPlainObject( selector ) ) { opts = selector; selector = ''; } opts = _selector_opts( opts ); var inst = this.iterator( 'table', function ( settings ) { return __row_selector( settings, selector, opts ); }, 1 ); // Want argument shifting here and in __row_selector? inst.selector.rows = selector; inst.selector.opts = opts; return inst; } ); _api_register( 'rows().nodes()', function () { return this.iterator( 'row', function ( settings, row ) { return settings.aoData[ row ].nTr || undefined; }, 1 ); } ); _api_register( 'rows().data()', function () { return this.iterator( true, 'rows', function ( settings, rows ) { return _pluck_order( settings.aoData, rows, '_aData' ); }, 1 ); } ); _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) { return this.iterator( 'row', function ( settings, row ) { var r = settings.aoData[ row ]; return type === 'search' ? r._aFilterData : r._aSortData; }, 1 ); } ); _api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) { return this.iterator( 'row', function ( settings, row ) { _fnInvalidate( settings, row, src ); } ); } ); _api_registerPlural( 'rows().indexes()', 'row().index()', function () { return this.iterator( 'row', function ( settings, row ) { return row; }, 1 ); } ); _api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) { var a = []; var context = this.context; // `iterator` will drop undefined values, but in this case we want them for ( var i=0, ien=context.length ; i<ien ; i++ ) { for ( var j=0, jen=this[i].length ; j<jen ; j++ ) { var id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData ); a.push( (hash === true ? '#' : '' )+ id ); } } return new _Api( context, a ); } ); _api_registerPlural( 'rows().remove()', 'row().remove()', function () { var that = this; this.iterator( 'row', function ( settings, row, thatIdx ) { var data = settings.aoData; var rowData = data[ row ]; var i, ien, j, jen; var loopRow, loopCells; data.splice( row, 1 ); // Update the cached indexes for ( i=0, ien=data.length ; i<ien ; i++ ) { loopRow = data[i]; loopCells = loopRow.anCells; // Rows if ( loopRow.nTr !== null ) { loopRow.nTr._DT_RowIndex = i; } // Cells if ( loopCells !== null ) { for ( j=0, jen=loopCells.length ; j<jen ; j++ ) { loopCells[j]._DT_CellIndex.row = i; } } } // Delete from the display arrays _fnDeleteIndex( settings.aiDisplayMaster, row ); _fnDeleteIndex( settings.aiDisplay, row ); _fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes // For server-side processing tables - subtract the deleted row from the count if ( settings._iRecordsDisplay > 0 ) { settings._iRecordsDisplay--; } // Check for an 'overflow' they case for displaying the table _fnLengthOverflow( settings ); // Remove the row's ID reference if there is one var id = settings.rowIdFn( rowData._aData ); if ( id !== undefined ) { delete settings.aIds[ id ]; } } ); this.iterator( 'table', function ( settings ) { for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) { settings.aoData[i].idx = i; } } ); return this; } ); _api_register( 'rows.add()', function ( rows ) { var newRows = this.iterator( 'table', function ( settings ) { var row, i, ien; var out = []; for ( i=0, ien=rows.length ; i<ien ; i++ ) { row = rows[i]; if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) { out.push( _fnAddTr( settings, row )[0] ); } else { out.push( _fnAddData( settings, row ) ); } } return out; }, 1 ); // Return an Api.rows() extended instance, so rows().nodes() etc can be used var modRows = this.rows( -1 ); modRows.pop(); $.merge( modRows, newRows ); return modRows; } ); /** * */ _api_register( 'row()', function ( selector, opts ) { return _selector_first( this.rows( selector, opts ) ); } ); _api_register( 'row().data()', function ( data ) { var ctx = this.context; if ( data === undefined ) { // Get return ctx.length && this.length ? ctx[0].aoData[ this[0] ]._aData : undefined; } // Set var row = ctx[0].aoData[ this[0] ]; row._aData = data; // If the DOM has an id, and the data source is an array if ( $.isArray( data ) && row.nTr.id ) { _fnSetObjectDataFn( ctx[0].rowId )( data, row.nTr.id ); } // Automatically invalidate _fnInvalidate( ctx[0], this[0], 'data' ); return this; } ); _api_register( 'row().node()', function () { var ctx = this.context; return ctx.length && this.length ? ctx[0].aoData[ this[0] ].nTr || null : null; } ); _api_register( 'row.add()', function ( row ) { // Allow a jQuery object to be passed in - only a single row is added from // it though - the first element in the set if ( row instanceof $ && row.length ) { row = row[0]; } var rows = this.iterator( 'table', function ( settings ) { if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) { return _fnAddTr( settings, row )[0]; } return _fnAddData( settings, row ); } ); // Return an Api.rows() extended instance, with the newly added row selected return this.row( rows[0] ); } ); var __details_add = function ( ctx, row, data, klass ) { // Convert to array of TR elements var rows = []; var addRow = function ( r, k ) { // Recursion to allow for arrays of jQuery objects if ( $.isArray( r ) || r instanceof $ ) { for ( var i=0, ien=r.length ; i<ien ; i++ ) { addRow( r[i], k ); } return; } // If we get a TR element, then just add it directly - up to the dev // to add the correct number of columns etc if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) { rows.push( r ); } else { // Otherwise create a row with a wrapper var created = $('<tr><td/></tr>').addClass( k ); $('td', created) .addClass( k ) .html( r ) [0].colSpan = _fnVisbleColumns( ctx ); rows.push( created[0] ); } }; addRow( data, klass ); if ( row._details ) { row._details.detach(); } row._details = $(rows); // If the children were already shown, that state should be retained if ( row._detailsShow ) { row._details.insertAfter( row.nTr ); } }; var __details_remove = function ( api, idx ) { var ctx = api.context; if ( ctx.length ) { var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ]; if ( row && row._details ) { row._details.remove(); row._detailsShow = undefined; row._details = undefined; } } }; var __details_display = function ( api, show ) { var ctx = api.context; if ( ctx.length && api.length ) { var row = ctx[0].aoData[ api[0] ]; if ( row._details ) { row._detailsShow = show; if ( show ) { row._details.insertAfter( row.nTr ); } else { row._details.detach(); } __details_events( ctx[0] ); } } }; var __details_events = function ( settings ) { var api = new _Api( settings ); var namespace = '.dt.DT_details'; var drawEvent = 'draw'+namespace; var colvisEvent = 'column-visibility'+namespace; var destroyEvent = 'destroy'+namespace; var data = settings.aoData; api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent ); if ( _pluck( data, '_details' ).length > 0 ) { // On each draw, insert the required elements into the document api.on( drawEvent, function ( e, ctx ) { if ( settings !== ctx ) { return; } api.rows( {page:'current'} ).eq(0).each( function (idx) { // Internal data grab var row = data[ idx ]; if ( row._detailsShow ) { row._details.insertAfter( row.nTr ); } } ); } ); // Column visibility change - update the colspan api.on( colvisEvent, function ( e, ctx, idx, vis ) { if ( settings !== ctx ) { return; } // Update the colspan for the details rows (note, only if it already has // a colspan) var row, visible = _fnVisbleColumns( ctx ); for ( var i=0, ien=data.length ; i<ien ; i++ ) { row = data[i]; if ( row._details ) { row._details.children('td[colspan]').attr('colspan', visible ); } } } ); // Table destroyed - nuke any child rows api.on( destroyEvent, function ( e, ctx ) { if ( settings !== ctx ) { return; } for ( var i=0, ien=data.length ; i<ien ; i++ ) { if ( data[i]._details ) { __details_remove( api, i ); } } } ); } }; // Strings for the method names to help minification var _emp = ''; var _child_obj = _emp+'row().child'; var _child_mth = _child_obj+'()'; // data can be: // tr // string // jQuery or array of any of the above _api_register( _child_mth, function ( data, klass ) { var ctx = this.context; if ( data === undefined ) { // get return ctx.length && this.length ? ctx[0].aoData[ this[0] ]._details : undefined; } else if ( data === true ) { // show this.child.show(); } else if ( data === false ) { // remove __details_remove( this ); } else if ( ctx.length && this.length ) { // set __details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass ); } return this; } ); _api_register( [ _child_obj+'.show()', _child_mth+'.show()' // only when `child()` was called with parameters (without ], function ( show ) { // it returns an object and this method is not executed) __details_display( this, true ); return this; } ); _api_register( [ _child_obj+'.hide()', _child_mth+'.hide()' // only when `child()` was called with parameters (without ], function () { // it returns an object and this method is not executed) __details_display( this, false ); return this; } ); _api_register( [ _child_obj+'.remove()', _child_mth+'.remove()' // only when `child()` was called with parameters (without ], function () { // it returns an object and this method is not executed) __details_remove( this ); return this; } ); _api_register( _child_obj+'.isShown()', function () { var ctx = this.context; if ( ctx.length && this.length ) { // _detailsShown as false or undefined will fall through to return false return ctx[0].aoData[ this[0] ]._detailsShow || false; } return false; } ); /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Columns * * {integer} - column index (>=0 count from left, <0 count from right) * "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right) * "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right) * "{string}:name" - column name * "{string}" - jQuery selector on column header nodes * */ // can be an array of these items, comma separated list, or an array of comma // separated lists var __re_column_selector = /^([^:]+):(name|visIdx|visible)$/; // r1 and r2 are redundant - but it means that the parameters match for the // iterator callback in columns().data() var __columnData = function ( settings, column, r1, r2, rows ) { var a = []; for ( var row=0, ien=rows.length ; row<ien ; row++ ) { a.push( _fnGetCellData( settings, rows[row], column ) ); } return a; }; var __column_selector = function ( settings, selector, opts ) { var columns = settings.aoColumns, names = _pluck( columns, 'sName' ), nodes = _pluck( columns, 'nTh' ); var run = function ( s ) { var selInt = _intVal( s ); // Selector - all if ( s === '' ) { return _range( columns.length ); } // Selector - index if ( selInt !== null ) { return [ selInt >= 0 ? selInt : // Count from left columns.length + selInt // Count from right (+ because its a negative value) ]; } // Selector = function if ( typeof s === 'function' ) { var rows = _selector_row_indexes( settings, opts ); return $.map( columns, function (col, idx) { return s( idx, __columnData( settings, idx, 0, 0, rows ), nodes[ idx ] ) ? idx : null; } ); } // jQuery or string selector var match = typeof s === 'string' ? s.match( __re_column_selector ) : ''; if ( match ) { switch( match[2] ) { case 'visIdx': case 'visible': var idx = parseInt( match[1], 10 ); // Visible index given, convert to column index if ( idx < 0 ) { // Counting from the right var visColumns = $.map( columns, function (col,i) { return col.bVisible ? i : null; } ); return [ visColumns[ visColumns.length + idx ] ]; } // Counting from the left return [ _fnVisibleToColumnIndex( settings, idx ) ]; case 'name': // match by name. `names` is column index complete and in order return $.map( names, function (name, i) { return name === match[1] ? i : null; } ); default: return []; } } // Cell in the table body if ( s.nodeName && s._DT_CellIndex ) { return [ s._DT_CellIndex.column ]; } // jQuery selector on the TH elements for the columns var jqResult = $( nodes ) .filter( s ) .map( function () { return $.inArray( this, nodes ); // `nodes` is column index complete and in order } ) .toArray(); if ( jqResult.length || ! s.nodeName ) { return jqResult; } // Otherwise a node which might have a `dt-column` data attribute, or be // a child or such an element var host = $(s).closest('*[data-dt-column]'); return host.length ? [ host.data('dt-column') ] : []; }; return _selector_run( 'column', selector, run, settings, opts ); }; var __setColumnVis = function ( settings, column, vis ) { var cols = settings.aoColumns, col = cols[ column ], data = settings.aoData, row, cells, i, ien, tr; // Get if ( vis === undefined ) { return col.bVisible; } // Set // No change if ( col.bVisible === vis ) { return; } if ( vis ) { // Insert column // Need to decide if we should use appendChild or insertBefore var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 ); for ( i=0, ien=data.length ; i<ien ; i++ ) { tr = data[i].nTr; cells = data[i].anCells; if ( tr ) { // insertBefore can act like appendChild if 2nd arg is null tr.insertBefore( cells[ column ], cells[ insertBefore ] || null ); } } } else { // Remove column $( _pluck( settings.aoData, 'anCells', column ) ).detach(); } // Common actions col.bVisible = vis; _fnDrawHead( settings, settings.aoHeader ); _fnDrawHead( settings, settings.aoFooter ); // Update colspan for no records display. Child rows and extensions will use their own // listeners to do this - only need to update the empty table item here if ( ! settings.aiDisplay.length ) { $(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings)); } _fnSaveState( settings ); }; _api_register( 'columns()', function ( selector, opts ) { // argument shifting if ( selector === undefined ) { selector = ''; } else if ( $.isPlainObject( selector ) ) { opts = selector; selector = ''; } opts = _selector_opts( opts ); var inst = this.iterator( 'table', function ( settings ) { return __column_selector( settings, selector, opts ); }, 1 ); // Want argument shifting here and in _row_selector? inst.selector.cols = selector; inst.selector.opts = opts; return inst; } ); _api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) { return this.iterator( 'column', function ( settings, column ) { return settings.aoColumns[column].nTh; }, 1 ); } ); _api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) { return this.iterator( 'column', function ( settings, column ) { return settings.aoColumns[column].nTf; }, 1 ); } ); _api_registerPlural( 'columns().data()', 'column().data()', function () { return this.iterator( 'column-rows', __columnData, 1 ); } ); _api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () { return this.iterator( 'column', function ( settings, column ) { return settings.aoColumns[column].mData; }, 1 ); } ); _api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) { return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) { return _pluck_order( settings.aoData, rows, type === 'search' ? '_aFilterData' : '_aSortData', column ); }, 1 ); } ); _api_registerPlural( 'columns().nodes()', 'column().nodes()', function () { return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) { return _pluck_order( settings.aoData, rows, 'anCells', column ) ; }, 1 ); } ); _api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) { var ret = this.iterator( 'column', function ( settings, column ) { if ( vis === undefined ) { return settings.aoColumns[ column ].bVisible; } // else __setColumnVis( settings, column, vis ); } ); // Group the column visibility changes if ( vis !== undefined ) { // Second loop once the first is done for events this.iterator( 'column', function ( settings, column ) { _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, calc] ); } ); if ( calc === undefined || calc ) { this.columns.adjust(); } } return ret; } ); _api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) { return this.iterator( 'column', function ( settings, column ) { return type === 'visible' ? _fnColumnIndexToVisible( settings, column ) : column; }, 1 ); } ); _api_register( 'columns.adjust()', function () { return this.iterator( 'table', function ( settings ) { _fnAdjustColumnSizing( settings ); }, 1 ); } ); _api_register( 'column.index()', function ( type, idx ) { if ( this.context.length !== 0 ) { var ctx = this.context[0]; if ( type === 'fromVisible' || type === 'toData' ) { return _fnVisibleToColumnIndex( ctx, idx ); } else if ( type === 'fromData' || type === 'toVisible' ) { return _fnColumnIndexToVisible( ctx, idx ); } } } ); _api_register( 'column()', function ( selector, opts ) { return _selector_first( this.columns( selector, opts ) ); } ); var __cell_selector = function ( settings, selector, opts ) { var data = settings.aoData; var rows = _selector_row_indexes( settings, opts ); var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) ); var allCells = $( [].concat.apply([], cells) ); var row; var columns = settings.aoColumns.length; var a, i, ien, j, o, host; var run = function ( s ) { var fnSelector = typeof s === 'function'; if ( s === null || s === undefined || fnSelector ) { // All cells and function selectors a = []; for ( i=0, ien=rows.length ; i<ien ; i++ ) { row = rows[i]; for ( j=0 ; j<columns ; j++ ) { o = { row: row, column: j }; if ( fnSelector ) { // Selector - function host = data[ row ]; if ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) { a.push( o ); } } else { // Selector - all a.push( o ); } } } return a; } // Selector - index if ( $.isPlainObject( s ) ) { // Valid cell index and its in the array of selectable rows return s.column !== undefined && s.row !== undefined && $.inArray( s.row, rows ) !== -1 ? [s] : []; } // Selector - jQuery filtered cells var jqResult = allCells .filter( s ) .map( function (i, el) { return { // use a new object, in case someone changes the values row: el._DT_CellIndex.row, column: el._DT_CellIndex.column }; } ) .toArray(); if ( jqResult.length || ! s.nodeName ) { return jqResult; } // Otherwise the selector is a node, and there is one last option - the // element might be a child of an element which has dt-row and dt-column // data attributes host = $(s).closest('*[data-dt-row]'); return host.length ? [ { row: host.data('dt-row'), column: host.data('dt-column') } ] : []; }; return _selector_run( 'cell', selector, run, settings, opts ); }; _api_register( 'cells()', function ( rowSelector, columnSelector, opts ) { // Argument shifting if ( $.isPlainObject( rowSelector ) ) { // Indexes if ( rowSelector.row === undefined ) { // Selector options in first parameter opts = rowSelector; rowSelector = null; } else { // Cell index objects in first parameter opts = columnSelector; columnSelector = null; } } if ( $.isPlainObject( columnSelector ) ) { opts = columnSelector; columnSelector = null; } // Cell selector if ( columnSelector === null || columnSelector === undefined ) { return this.iterator( 'table', function ( settings ) { return __cell_selector( settings, rowSelector, _selector_opts( opts ) ); } ); } // Row + column selector var columns = this.columns( columnSelector ); var rows = this.rows( rowSelector ); var a, i, ien, j, jen; this.iterator( 'table', function ( settings, idx ) { a = []; for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) { for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) { a.push( { row: rows[idx][i], column: columns[idx][j] } ); } } }, 1 ); // Now pass through the cell selector for options var cells = this.cells( a, opts ); $.extend( cells.selector, { cols: columnSelector, rows: rowSelector, opts: opts } ); return cells; } ); _api_registerPlural( 'cells().nodes()', 'cell().node()', function () { return this.iterator( 'cell', function ( settings, row, column ) { var data = settings.aoData[ row ]; return data && data.anCells ? data.anCells[ column ] : undefined; }, 1 ); } ); _api_register( 'cells().data()', function () { return this.iterator( 'cell', function ( settings, row, column ) { return _fnGetCellData( settings, row, column ); }, 1 ); } ); _api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) { type = type === 'search' ? '_aFilterData' : '_aSortData'; return this.iterator( 'cell', function ( settings, row, column ) { return settings.aoData[ row ][ type ][ column ]; }, 1 ); } ); _api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) { return this.iterator( 'cell', function ( settings, row, column ) { return _fnGetCellData( settings, row, column, type ); }, 1 ); } ); _api_registerPlural( 'cells().indexes()', 'cell().index()', function () { return this.iterator( 'cell', function ( settings, row, column ) { return { row: row, column: column, columnVisible: _fnColumnIndexToVisible( settings, column ) }; }, 1 ); } ); _api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) { return this.iterator( 'cell', function ( settings, row, column ) { _fnInvalidate( settings, row, src, column ); } ); } ); _api_register( 'cell()', function ( rowSelector, columnSelector, opts ) { return _selector_first( this.cells( rowSelector, columnSelector, opts ) ); } ); _api_register( 'cell().data()', function ( data ) { var ctx = this.context; var cell = this[0]; if ( data === undefined ) { // Get return ctx.length && cell.length ? _fnGetCellData( ctx[0], cell[0].row, cell[0].column ) : undefined; } // Set _fnSetCellData( ctx[0], cell[0].row, cell[0].column, data ); _fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column ); return this; } ); /** * Get current ordering (sorting) that has been applied to the table. * * @returns {array} 2D array containing the sorting information for the first * table in the current context. Each element in the parent array represents * a column being sorted upon (i.e. multi-sorting with two columns would have * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is * the column index that the sorting condition applies to, the second is the * direction of the sort (`desc` or `asc`) and, optionally, the third is the * index of the sorting order from the `column.sorting` initialisation array. *//** * Set the ordering for the table. * * @param {integer} order Column index to sort upon. * @param {string} direction Direction of the sort to be applied (`asc` or `desc`) * @returns {DataTables.Api} this *//** * Set the ordering for the table. * * @param {array} order 1D array of sorting information to be applied. * @param {array} [...] Optional additional sorting conditions * @returns {DataTables.Api} this *//** * Set the ordering for the table. * * @param {array} order 2D array of sorting information to be applied. * @returns {DataTables.Api} this */ _api_register( 'order()', function ( order, dir ) { var ctx = this.context; if ( order === undefined ) { // get return ctx.length !== 0 ? ctx[0].aaSorting : undefined; } // set if ( typeof order === 'number' ) { // Simple column / direction passed in order = [ [ order, dir ] ]; } else if ( order.length && ! $.isArray( order[0] ) ) { // Arguments passed in (list of 1D arrays) order = Array.prototype.slice.call( arguments ); } // otherwise a 2D array was passed in return this.iterator( 'table', function ( settings ) { settings.aaSorting = order.slice(); } ); } ); /** * Attach a sort listener to an element for a given column * * @param {node|jQuery|string} node Identifier for the element(s) to attach the * listener to. This can take the form of a single DOM node, a jQuery * collection of nodes or a jQuery selector which will identify the node(s). * @param {integer} column the column that a click on this node will sort on * @param {function} [callback] callback function when sort is run * @returns {DataTables.Api} this */ _api_register( 'order.listener()', function ( node, column, callback ) { return this.iterator( 'table', function ( settings ) { _fnSortAttachListener( settings, node, column, callback ); } ); } ); _api_register( 'order.fixed()', function ( set ) { if ( ! set ) { var ctx = this.context; var fixed = ctx.length ? ctx[0].aaSortingFixed : undefined; return $.isArray( fixed ) ? { pre: fixed } : fixed; } return this.iterator( 'table', function ( settings ) { settings.aaSortingFixed = $.extend( true, {}, set ); } ); } ); // Order by the selected column(s) _api_register( [ 'columns().order()', 'column().order()' ], function ( dir ) { var that = this; return this.iterator( 'table', function ( settings, i ) { var sort = []; $.each( that[i], function (j, col) { sort.push( [ col, dir ] ); } ); settings.aaSorting = sort; } ); } ); _api_register( 'search()', function ( input, regex, smart, caseInsen ) { var ctx = this.context; if ( input === undefined ) { // get return ctx.length !== 0 ? ctx[0].oPreviousSearch.sSearch : undefined; } // set return this.iterator( 'table', function ( settings ) { if ( ! settings.oFeatures.bFilter ) { return; } _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, { "sSearch": input+"", "bRegex": regex === null ? false : regex, "bSmart": smart === null ? true : smart, "bCaseInsensitive": caseInsen === null ? true : caseInsen } ), 1 ); } ); } ); _api_registerPlural( 'columns().search()', 'column().search()', function ( input, regex, smart, caseInsen ) { return this.iterator( 'column', function ( settings, column ) { var preSearch = settings.aoPreSearchCols; if ( input === undefined ) { // get return preSearch[ column ].sSearch; } // set if ( ! settings.oFeatures.bFilter ) { return; } $.extend( preSearch[ column ], { "sSearch": input+"", "bRegex": regex === null ? false : regex, "bSmart": smart === null ? true : smart, "bCaseInsensitive": caseInsen === null ? true : caseInsen } ); _fnFilterComplete( settings, settings.oPreviousSearch, 1 ); } ); } ); /* * State API methods */ _api_register( 'state()', function () { return this.context.length ? this.context[0].oSavedState : null; } ); _api_register( 'state.clear()', function () { return this.iterator( 'table', function ( settings ) { // Save an empty object settings.fnStateSaveCallback.call( settings.oInstance, settings, {} ); } ); } ); _api_register( 'state.loaded()', function () { return this.context.length ? this.context[0].oLoadedState : null; } ); _api_register( 'state.save()', function () { return this.iterator( 'table', function ( settings ) { _fnSaveState( settings ); } ); } ); /** * Provide a common method for plug-ins to check the version of DataTables being * used, in order to ensure compatibility. * * @param {string} version Version string to check for, in the format "X.Y.Z". * Note that the formats "X" and "X.Y" are also acceptable. * @returns {boolean} true if this version of DataTables is greater or equal to * the required version, or false if this version of DataTales is not * suitable * @static * @dtopt API-Static * * @example * alert( $.fn.dataTable.versionCheck( '1.9.0' ) ); */ DataTable.versionCheck = DataTable.fnVersionCheck = function( version ) { var aThis = DataTable.version.split('.'); var aThat = version.split('.'); var iThis, iThat; for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) { iThis = parseInt( aThis[i], 10 ) || 0; iThat = parseInt( aThat[i], 10 ) || 0; // Parts are the same, keep comparing if (iThis === iThat) { continue; } // Parts are different, return immediately return iThis > iThat; } return true; }; /** * Check if a `<table>` node is a DataTable table already or not. * * @param {node|jquery|string} table Table node, jQuery object or jQuery * selector for the table to test. Note that if more than more than one * table is passed on, only the first will be checked * @returns {boolean} true the table given is a DataTable, or false otherwise * @static * @dtopt API-Static * * @example * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) { * $('#example').dataTable(); * } */ DataTable.isDataTable = DataTable.fnIsDataTable = function ( table ) { var t = $(table).get(0); var is = false; if ( table instanceof DataTable.Api ) { return true; } $.each( DataTable.settings, function (i, o) { var head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null; var foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null; if ( o.nTable === t || head === t || foot === t ) { is = true; } } ); return is; }; /** * Get all DataTable tables that have been initialised - optionally you can * select to get only currently visible tables. * * @param {boolean} [visible=false] Flag to indicate if you want all (default) * or visible tables only. * @returns {array} Array of `table` nodes (not DataTable instances) which are * DataTables * @static * @dtopt API-Static * * @example * $.each( $.fn.dataTable.tables(true), function () { * $(table).DataTable().columns.adjust(); * } ); */ DataTable.tables = DataTable.fnTables = function ( visible ) { var api = false; if ( $.isPlainObject( visible ) ) { api = visible.api; visible = visible.visible; } var a = $.map( DataTable.settings, function (o) { if ( !visible || (visible && $(o.nTable).is(':visible')) ) { return o.nTable; } } ); return api ? new _Api( a ) : a; }; /** * Convert from camel case parameters to Hungarian notation. This is made static * for the extensions to provide the same ability as DataTables core to accept * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase * parameters. * * @param {object} src The model object which holds all parameters that can be * mapped. * @param {object} user The object to convert from camel case to Hungarian. * @param {boolean} force When set to `true`, properties which already have a * Hungarian value in the `user` object will be overwritten. Otherwise they * won't be. */ DataTable.camelToHungarian = _fnCamelToHungarian; /** * */ _api_register( '$()', function ( selector, opts ) { var rows = this.rows( opts ).nodes(), // Get all rows jqRows = $(rows); return $( [].concat( jqRows.filter( selector ).toArray(), jqRows.find( selector ).toArray() ) ); } ); // jQuery functions to operate on the tables $.each( [ 'on', 'one', 'off' ], function (i, key) { _api_register( key+'()', function ( /* event, handler */ ) { var args = Array.prototype.slice.call(arguments); // Add the `dt` namespace automatically if it isn't already present args[0] = $.map( args[0].split( /\s/ ), function ( e ) { return ! e.match(/\.dt\b/) ? e+'.dt' : e; } ).join( ' ' ); var inst = $( this.tables().nodes() ); inst[key].apply( inst, args ); return this; } ); } ); _api_register( 'clear()', function () { return this.iterator( 'table', function ( settings ) { _fnClearTable( settings ); } ); } ); _api_register( 'settings()', function () { return new _Api( this.context, this.context ); } ); _api_register( 'init()', function () { var ctx = this.context; return ctx.length ? ctx[0].oInit : null; } ); _api_register( 'data()', function () { return this.iterator( 'table', function ( settings ) { return _pluck( settings.aoData, '_aData' ); } ).flatten(); } ); _api_register( 'destroy()', function ( remove ) { remove = remove || false; return this.iterator( 'table', function ( settings ) { var orig = settings.nTableWrapper.parentNode; var classes = settings.oClasses; var table = settings.nTable; var tbody = settings.nTBody; var thead = settings.nTHead; var tfoot = settings.nTFoot; var jqTable = $(table); var jqTbody = $(tbody); var jqWrapper = $(settings.nTableWrapper); var rows = $.map( settings.aoData, function (r) { return r.nTr; } ); var i, ien; // Flag to note that the table is currently being destroyed - no action // should be taken settings.bDestroying = true; // Fire off the destroy callbacks for plug-ins etc _fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] ); // If not being removed from the document, make all columns visible if ( ! remove ) { new _Api( settings ).columns().visible( true ); } // Blitz all `DT` namespaced events (these are internal events, the // lowercase, `dt` events are user subscribed and they are responsible // for removing them jqWrapper.off('.DT').find(':not(tbody *)').off('.DT'); $(window).off('.DT-'+settings.sInstance); // When scrolling we had to break the table up - restore it if ( table != thead.parentNode ) { jqTable.children('thead').detach(); jqTable.append( thead ); } if ( tfoot && table != tfoot.parentNode ) { jqTable.children('tfoot').detach(); jqTable.append( tfoot ); } settings.aaSorting = []; settings.aaSortingFixed = []; _fnSortingClasses( settings ); $( rows ).removeClass( settings.asStripeClasses.join(' ') ); $('th, td', thead).removeClass( classes.sSortable+' '+ classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone ); // Add the TR elements back into the table in their original order jqTbody.children().detach(); jqTbody.append( rows ); // Remove the DataTables generated nodes, events and classes var removedMethod = remove ? 'remove' : 'detach'; jqTable[ removedMethod ](); jqWrapper[ removedMethod ](); // If we need to reattach the table to the document if ( ! remove && orig ) { // insertBefore acts like appendChild if !arg[1] orig.insertBefore( table, settings.nTableReinsertBefore ); // Restore the width of the original table - was read from the style property, // so we can restore directly to that jqTable .css( 'width', settings.sDestroyWidth ) .removeClass( classes.sTable ); // If the were originally stripe classes - then we add them back here. // Note this is not fool proof (for example if not all rows had stripe // classes - but it's a good effort without getting carried away ien = settings.asDestroyStripes.length; if ( ien ) { jqTbody.children().each( function (i) { $(this).addClass( settings.asDestroyStripes[i % ien] ); } ); } } /* Remove the settings object from the settings array */ var idx = $.inArray( settings, DataTable.settings ); if ( idx !== -1 ) { DataTable.settings.splice( idx, 1 ); } } ); } ); // Add the `every()` method for rows, columns and cells in a compact form $.each( [ 'column', 'row', 'cell' ], function ( i, type ) { _api_register( type+'s().every()', function ( fn ) { var opts = this.selector.opts; var api = this; return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) { // Rows and columns: // arg1 - index // arg2 - table counter // arg3 - loop counter // arg4 - undefined // Cells: // arg1 - row index // arg2 - column index // arg3 - table counter // arg4 - loop counter fn.call( api[ type ]( arg1, type==='cell' ? arg2 : opts, type==='cell' ? opts : undefined ), arg1, arg2, arg3, arg4 ); } ); } ); } ); // i18n method for extensions to be able to use the language object from the // DataTable _api_register( 'i18n()', function ( token, def, plural ) { var ctx = this.context[0]; var resolved = _fnGetObjectDataFn( token )( ctx.oLanguage ); if ( resolved === undefined ) { resolved = def; } if ( plural !== undefined && $.isPlainObject( resolved ) ) { resolved = resolved[ plural ] !== undefined ? resolved[ plural ] : resolved._; } return resolved.replace( '%d', plural ); // nb: plural might be undefined, } ); /** * Version string for plug-ins to check compatibility. Allowed format is * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used * only for non-release builds. See http://semver.org/ for more information. * @member * @type string * @default Version number */ DataTable.version = "1.10.19"; /** * Private data store, containing all of the settings objects that are * created for the tables on a given page. * * Note that the `DataTable.settings` object is aliased to * `jQuery.fn.dataTableExt` through which it may be accessed and * manipulated, or `jQuery.fn.dataTable.settings`. * @member * @type array * @default [] * @private */ DataTable.settings = []; /** * Object models container, for the various models that DataTables has * available to it. These models define the objects that are used to hold * the active state and configuration of the table. * @namespace */ DataTable.models = {}; /** * Template object for the way in which DataTables holds information about * search information for the global filter and individual column filters. * @namespace */ DataTable.models.oSearch = { /** * Flag to indicate if the filtering should be case insensitive or not * @type boolean * @default true */ "bCaseInsensitive": true, /** * Applied search term * @type string * @default <i>Empty string</i> */ "sSearch": "", /** * Flag to indicate if the search term should be interpreted as a * regular expression (true) or not (false) and therefore and special * regex characters escaped. * @type boolean * @default false */ "bRegex": false, /** * Flag to indicate if DataTables is to use its smart filtering or not. * @type boolean * @default true */ "bSmart": true }; /** * Template object for the way in which DataTables holds information about * each individual row. This is the object format used for the settings * aoData array. * @namespace */ DataTable.models.oRow = { /** * TR element for the row * @type node * @default null */ "nTr": null, /** * Array of TD elements for each row. This is null until the row has been * created. * @type array nodes * @default [] */ "anCells": null, /** * Data object from the original data source for the row. This is either * an array if using the traditional form of DataTables, or an object if * using mData options. The exact type will depend on the passed in * data from the data source, or will be an array if using DOM a data * source. * @type array|object * @default [] */ "_aData": [], /** * Sorting data cache - this array is ostensibly the same length as the * number of columns (although each index is generated only as it is * needed), and holds the data that is used for sorting each column in the * row. We do this cache generation at the start of the sort in order that * the formatting of the sort data need be done only once for each cell * per sort. This array should not be read from or written to by anything * other than the master sorting methods. * @type array * @default null * @private */ "_aSortData": null, /** * Per cell filtering data cache. As per the sort data cache, used to * increase the performance of the filtering in DataTables * @type array * @default null * @private */ "_aFilterData": null, /** * Filtering data cache. This is the same as the cell filtering cache, but * in this case a string rather than an array. This is easily computed with * a join on `_aFilterData`, but is provided as a cache so the join isn't * needed on every search (memory traded for performance) * @type array * @default null * @private */ "_sFilterRow": null, /** * Cache of the class name that DataTables has applied to the row, so we * can quickly look at this variable rather than needing to do a DOM check * on className for the nTr property. * @type string * @default <i>Empty string</i> * @private */ "_sRowStripe": "", /** * Denote if the original data source was from the DOM, or the data source * object. This is used for invalidating data, so DataTables can * automatically read data from the original source, unless uninstructed * otherwise. * @type string * @default null * @private */ "src": null, /** * Index in the aoData array. This saves an indexOf lookup when we have the * object, but want to know the index * @type integer * @default -1 * @private */ "idx": -1 }; /** * Template object for the column information object in DataTables. This object * is held in the settings aoColumns array and contains all the information that * DataTables needs about each individual column. * * Note that this object is related to {@link DataTable.defaults.column} * but this one is the internal data store for DataTables's cache of columns. * It should NOT be manipulated outside of DataTables. Any configuration should * be done through the initialisation options. * @namespace */ DataTable.models.oColumn = { /** * Column index. This could be worked out on-the-fly with $.inArray, but it * is faster to just hold it as a variable * @type integer * @default null */ "idx": null, /** * A list of the columns that sorting should occur on when this column * is sorted. That this property is an array allows multi-column sorting * to be defined for a column (for example first name / last name columns * would benefit from this). The values are integers pointing to the * columns to be sorted on (typically it will be a single integer pointing * at itself, but that doesn't need to be the case). * @type array */ "aDataSort": null, /** * Define the sorting directions that are applied to the column, in sequence * as the column is repeatedly sorted upon - i.e. the first value is used * as the sorting direction when the column if first sorted (clicked on). * Sort it again (click again) and it will move on to the next index. * Repeat until loop. * @type array */ "asSorting": null, /** * Flag to indicate if the column is searchable, and thus should be included * in the filtering or not. * @type boolean */ "bSearchable": null, /** * Flag to indicate if the column is sortable or not. * @type boolean */ "bSortable": null, /** * Flag to indicate if the column is currently visible in the table or not * @type boolean */ "bVisible": null, /** * Store for manual type assignment using the `column.type` option. This * is held in store so we can manipulate the column's `sType` property. * @type string * @default null * @private */ "_sManualType": null, /** * Flag to indicate if HTML5 data attributes should be used as the data * source for filtering or sorting. True is either are. * @type boolean * @default false * @private */ "_bAttrSrc": false, /** * Developer definable function that is called whenever a cell is created (Ajax source, * etc) or processed for input (DOM source). This can be used as a compliment to mRender * allowing you to modify the DOM element (add background colour for example) when the * element is available. * @type function * @param {element} nTd The TD node that has been created * @param {*} sData The Data for the cell * @param {array|object} oData The data for the whole row * @param {int} iRow The row index for the aoData data store * @default null */ "fnCreatedCell": null, /** * Function to get data from a cell in a column. You should <b>never</b> * access data directly through _aData internally in DataTables - always use * the method attached to this property. It allows mData to function as * required. This function is automatically assigned by the column * initialisation method * @type function * @param {array|object} oData The data array/object for the array * (i.e. aoData[]._aData) * @param {string} sSpecific The specific data type you want to get - * 'display', 'type' 'filter' 'sort' * @returns {*} The data for the cell from the given row's data * @default null */ "fnGetData": null, /** * Function to set data for a cell in the column. You should <b>never</b> * set the data directly to _aData internally in DataTables - always use * this method. It allows mData to function as required. This function * is automatically assigned by the column initialisation method * @type function * @param {array|object} oData The data array/object for the array * (i.e. aoData[]._aData) * @param {*} sValue Value to set * @default null */ "fnSetData": null, /** * Property to read the value for the cells in the column from the data * source array / object. If null, then the default content is used, if a * function is given then the return from the function is used. * @type function|int|string|null * @default null */ "mData": null, /** * Partner property to mData which is used (only when defined) to get * the data - i.e. it is basically the same as mData, but without the * 'set' option, and also the data fed to it is the result from mData. * This is the rendering method to match the data method of mData. * @type function|int|string|null * @default null */ "mRender": null, /** * Unique header TH/TD element for this column - this is what the sorting * listener is attached to (if sorting is enabled.) * @type node * @default null */ "nTh": null, /** * Unique footer TH/TD element for this column (if there is one). Not used * in DataTables as such, but can be used for plug-ins to reference the * footer for each column. * @type node * @default null */ "nTf": null, /** * The class to apply to all TD elements in the table's TBODY for the column * @type string * @default null */ "sClass": null, /** * When DataTables calculates the column widths to assign to each column, * it finds the longest string in each column and then constructs a * temporary table and reads the widths from that. The problem with this * is that "mmm" is much wider then "iiii", but the latter is a longer * string - thus the calculation can go wrong (doing it properly and putting * it into an DOM object and measuring that is horribly(!) slow). Thus as * a "work around" we provide this option. It will append its value to the * text that is found to be the longest string for the column - i.e. padding. * @type string */ "sContentPadding": null, /** * Allows a default value to be given for a column's data, and will be used * whenever a null data source is encountered (this can be because mData * is set to null, or because the data source itself is null). * @type string * @default null */ "sDefaultContent": null, /** * Name for the column, allowing reference to the column by name as well as * by index (needs a lookup to work by name). * @type string */ "sName": null, /** * Custom sorting data type - defines which of the available plug-ins in * afnSortData the custom sorting will use - if any is defined. * @type string * @default std */ "sSortDataType": 'std', /** * Class to be applied to the header element when sorting on this column * @type string * @default null */ "sSortingClass": null, /** * Class to be applied to the header element when sorting on this column - * when jQuery UI theming is used. * @type string * @default null */ "sSortingClassJUI": null, /** * Title of the column - what is seen in the TH element (nTh). * @type string */ "sTitle": null, /** * Column sorting and filtering type * @type string * @default null */ "sType": null, /** * Width of the column * @type string * @default null */ "sWidth": null, /** * Width of the column when it was first "encountered" * @type string * @default null */ "sWidthOrig": null }; /* * Developer note: The properties of the object below are given in Hungarian * notation, that was used as the interface for DataTables prior to v1.10, however * from v1.10 onwards the primary interface is camel case. In order to avoid * breaking backwards compatibility utterly with this change, the Hungarian * version is still, internally the primary interface, but is is not documented * - hence the @name tags in each doc comment. This allows a Javascript function * to create a map from Hungarian notation to camel case (going the other direction * would require each property to be listed, which would at around 3K to the size * of DataTables, while this method is about a 0.5K hit. * * Ultimately this does pave the way for Hungarian notation to be dropped * completely, but that is a massive amount of work and will break current * installs (therefore is on-hold until v2). */ /** * Initialisation options that can be given to DataTables at initialisation * time. * @namespace */ DataTable.defaults = { /** * An array of data to use for the table, passed in at initialisation which * will be used in preference to any data which is already in the DOM. This is * particularly useful for constructing tables purely in Javascript, for * example with a custom Ajax call. * @type array * @default null * * @dtopt Option * @name DataTable.defaults.data * * @example * // Using a 2D array data source * $(document).ready( function () { * $('#example').dataTable( { * "data": [ * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'], * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'], * ], * "columns": [ * { "title": "Engine" }, * { "title": "Browser" }, * { "title": "Platform" }, * { "title": "Version" }, * { "title": "Grade" } * ] * } ); * } ); * * @example * // Using an array of objects as a data source (`data`) * $(document).ready( function () { * $('#example').dataTable( { * "data": [ * { * "engine": "Trident", * "browser": "Internet Explorer 4.0", * "platform": "Win 95+", * "version": 4, * "grade": "X" * }, * { * "engine": "Trident", * "browser": "Internet Explorer 5.0", * "platform": "Win 95+", * "version": 5, * "grade": "C" * } * ], * "columns": [ * { "title": "Engine", "data": "engine" }, * { "title": "Browser", "data": "browser" }, * { "title": "Platform", "data": "platform" }, * { "title": "Version", "data": "version" }, * { "title": "Grade", "data": "grade" } * ] * } ); * } ); */ "aaData": null, /** * If ordering is enabled, then DataTables will perform a first pass sort on * initialisation. You can define which column(s) the sort is performed * upon, and the sorting direction, with this variable. The `sorting` array * should contain an array for each column to be sorted initially containing * the column's index and a direction string ('asc' or 'desc'). * @type array * @default [[0,'asc']] * * @dtopt Option * @name DataTable.defaults.order * * @example * // Sort by 3rd column first, and then 4th column * $(document).ready( function() { * $('#example').dataTable( { * "order": [[2,'asc'], [3,'desc']] * } ); * } ); * * // No initial sorting * $(document).ready( function() { * $('#example').dataTable( { * "order": [] * } ); * } ); */ "aaSorting": [[0,'asc']], /** * This parameter is basically identical to the `sorting` parameter, but * cannot be overridden by user interaction with the table. What this means * is that you could have a column (visible or hidden) which the sorting * will always be forced on first - any sorting after that (from the user) * will then be performed as required. This can be useful for grouping rows * together. * @type array * @default null * * @dtopt Option * @name DataTable.defaults.orderFixed * * @example * $(document).ready( function() { * $('#example').dataTable( { * "orderFixed": [[0,'asc']] * } ); * } ) */ "aaSortingFixed": [], /** * DataTables can be instructed to load data to display in the table from a * Ajax source. This option defines how that Ajax call is made and where to. * * The `ajax` property has three different modes of operation, depending on * how it is defined. These are: * * * `string` - Set the URL from where the data should be loaded from. * * `object` - Define properties for `jQuery.ajax`. * * `function` - Custom data get function * * `string` * -------- * * As a string, the `ajax` property simply defines the URL from which * DataTables will load data. * * `object` * -------- * * As an object, the parameters in the object are passed to * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control * of the Ajax request. DataTables has a number of default parameters which * you can override using this option. Please refer to the jQuery * documentation for a full description of the options available, although * the following parameters provide additional options in DataTables or * require special consideration: * * * `data` - As with jQuery, `data` can be provided as an object, but it * can also be used as a function to manipulate the data DataTables sends * to the server. The function takes a single parameter, an object of * parameters with the values that DataTables has readied for sending. An * object may be returned which will be merged into the DataTables * defaults, or you can add the items to the object that was passed in and * not return anything from the function. This supersedes `fnServerParams` * from DataTables 1.9-. * * * `dataSrc` - By default DataTables will look for the property `data` (or * `aaData` for compatibility with DataTables 1.9-) when obtaining data * from an Ajax source or for server-side processing - this parameter * allows that property to be changed. You can use Javascript dotted * object notation to get a data source for multiple levels of nesting, or * it my be used as a function. As a function it takes a single parameter, * the JSON returned from the server, which can be manipulated as * required, with the returned value being that used by DataTables as the * data source for the table. This supersedes `sAjaxDataProp` from * DataTables 1.9-. * * * `success` - Should not be overridden it is used internally in * DataTables. To manipulate / transform the data returned by the server * use `ajax.dataSrc`, or use `ajax` as a function (see below). * * `function` * ---------- * * As a function, making the Ajax call is left up to yourself allowing * complete control of the Ajax request. Indeed, if desired, a method other * than Ajax could be used to obtain the required data, such as Web storage * or an AIR database. * * The function is given four parameters and no return is required. The * parameters are: * * 1. _object_ - Data to send to the server * 2. _function_ - Callback function that must be executed when the required * data has been obtained. That data should be passed into the callback * as the only parameter * 3. _object_ - DataTables settings object for the table * * Note that this supersedes `fnServerData` from DataTables 1.9-. * * @type string|object|function * @default null * * @dtopt Option * @name DataTable.defaults.ajax * @since 1.10.0 * * @example * // Get JSON data from a file via Ajax. * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default). * $('#example').dataTable( { * "ajax": "data.json" * } ); * * @example * // Get JSON data from a file via Ajax, using `dataSrc` to change * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`) * $('#example').dataTable( { * "ajax": { * "url": "data.json", * "dataSrc": "tableData" * } * } ); * * @example * // Get JSON data from a file via Ajax, using `dataSrc` to read data * // from a plain array rather than an array in an object * $('#example').dataTable( { * "ajax": { * "url": "data.json", * "dataSrc": "" * } * } ); * * @example * // Manipulate the data returned from the server - add a link to data * // (note this can, should, be done using `render` for the column - this * // is just a simple example of how the data can be manipulated). * $('#example').dataTable( { * "ajax": { * "url": "data.json", * "dataSrc": function ( json ) { * for ( var i=0, ien=json.length ; i<ien ; i++ ) { * json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>'; * } * return json; * } * } * } ); * * @example * // Add data to the request * $('#example').dataTable( { * "ajax": { * "url": "data.json", * "data": function ( d ) { * return { * "extra_search": $('#extra').val() * }; * } * } * } ); * * @example * // Send request as POST * $('#example').dataTable( { * "ajax": { * "url": "data.json", * "type": "POST" * } * } ); * * @example * // Get the data from localStorage (could interface with a form for * // adding, editing and removing rows). * $('#example').dataTable( { * "ajax": function (data, callback, settings) { * callback( * JSON.parse( localStorage.getItem('dataTablesData') ) * ); * } * } ); */ "ajax": null, /** * This parameter allows you to readily specify the entries in the length drop * down menu that DataTables shows when pagination is enabled. It can be * either a 1D array of options which will be used for both the displayed * option and the value, or a 2D array which will use the array in the first * position as the value, and the array in the second position as the * displayed options (useful for language strings such as 'All'). * * Note that the `pageLength` property will be automatically set to the * first value given in this array, unless `pageLength` is also provided. * @type array * @default [ 10, 25, 50, 100 ] * * @dtopt Option * @name DataTable.defaults.lengthMenu * * @example * $(document).ready( function() { * $('#example').dataTable( { * "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]] * } ); * } ); */ "aLengthMenu": [ 10, 25, 50, 100 ], /** * The `columns` option in the initialisation parameter allows you to define * details about the way individual columns behave. For a full list of * column options that can be set, please see * {@link DataTable.defaults.column}. Note that if you use `columns` to * define your columns, you must have an entry in the array for every single * column that you have in your table (these can be null if you don't which * to specify any options). * @member * * @name DataTable.defaults.column */ "aoColumns": null, /** * Very similar to `columns`, `columnDefs` allows you to target a specific * column, multiple columns, or all columns, using the `targets` property of * each object in the array. This allows great flexibility when creating * tables, as the `columnDefs` arrays can be of any length, targeting the * columns you specifically want. `columnDefs` may use any of the column * options available: {@link DataTable.defaults.column}, but it _must_ * have `targets` defined in each object in the array. Values in the `targets` * array may be: * <ul> * <li>a string - class name will be matched on the TH for the column</li> * <li>0 or a positive integer - column index counting from the left</li> * <li>a negative integer - column index counting from the right</li> * <li>the string "_all" - all columns (i.e. assign a default)</li> * </ul> * @member * * @name DataTable.defaults.columnDefs */ "aoColumnDefs": null, /** * Basically the same as `search`, this parameter defines the individual column * filtering state at initialisation time. The array must be of the same size * as the number of columns, and each element be an object with the parameters * `search` and `escapeRegex` (the latter is optional). 'null' is also * accepted and the default will be used. * @type array * @default [] * * @dtopt Option * @name DataTable.defaults.searchCols * * @example * $(document).ready( function() { * $('#example').dataTable( { * "searchCols": [ * null, * { "search": "My filter" }, * null, * { "search": "^[0-9]", "escapeRegex": false } * ] * } ); * } ) */ "aoSearchCols": [], /** * An array of CSS classes that should be applied to displayed rows. This * array may be of any length, and DataTables will apply each class * sequentially, looping when required. * @type array * @default null <i>Will take the values determined by the `oClasses.stripe*` * options</i> * * @dtopt Option * @name DataTable.defaults.stripeClasses * * @example * $(document).ready( function() { * $('#example').dataTable( { * "stripeClasses": [ 'strip1', 'strip2', 'strip3' ] * } ); * } ) */ "asStripeClasses": null, /** * Enable or disable automatic column width calculation. This can be disabled * as an optimisation (it takes some time to calculate the widths) if the * tables widths are passed in using `columns`. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.autoWidth * * @example * $(document).ready( function () { * $('#example').dataTable( { * "autoWidth": false * } ); * } ); */ "bAutoWidth": true, /** * Deferred rendering can provide DataTables with a huge speed boost when you * are using an Ajax or JS data source for the table. This option, when set to * true, will cause DataTables to defer the creation of the table elements for * each row until they are needed for a draw - saving a significant amount of * time. * @type boolean * @default false * * @dtopt Features * @name DataTable.defaults.deferRender * * @example * $(document).ready( function() { * $('#example').dataTable( { * "ajax": "sources/arrays.txt", * "deferRender": true * } ); * } ); */ "bDeferRender": false, /** * Replace a DataTable which matches the given selector and replace it with * one which has the properties of the new initialisation object passed. If no * table matches the selector, then the new DataTable will be constructed as * per normal. * @type boolean * @default false * * @dtopt Options * @name DataTable.defaults.destroy * * @example * $(document).ready( function() { * $('#example').dataTable( { * "srollY": "200px", * "paginate": false * } ); * * // Some time later.... * $('#example').dataTable( { * "filter": false, * "destroy": true * } ); * } ); */ "bDestroy": false, /** * Enable or disable filtering of data. Filtering in DataTables is "smart" in * that it allows the end user to input multiple words (space separated) and * will match a row containing those words, even if not in the order that was * specified (this allow matching across multiple columns). Note that if you * wish to use filtering in DataTables this must remain 'true' - to remove the * default filtering input box and retain filtering abilities, please use * {@link DataTable.defaults.dom}. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.searching * * @example * $(document).ready( function () { * $('#example').dataTable( { * "searching": false * } ); * } ); */ "bFilter": true, /** * Enable or disable the table information display. This shows information * about the data that is currently visible on the page, including information * about filtered data if that action is being performed. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.info * * @example * $(document).ready( function () { * $('#example').dataTable( { * "info": false * } ); * } ); */ "bInfo": true, /** * Allows the end user to select the size of a formatted page from a select * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`). * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.lengthChange * * @example * $(document).ready( function () { * $('#example').dataTable( { * "lengthChange": false * } ); * } ); */ "bLengthChange": true, /** * Enable or disable pagination. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.paging * * @example * $(document).ready( function () { * $('#example').dataTable( { * "paging": false * } ); * } ); */ "bPaginate": true, /** * Enable or disable the display of a 'processing' indicator when the table is * being processed (e.g. a sort). This is particularly useful for tables with * large amounts of data where it can take a noticeable amount of time to sort * the entries. * @type boolean * @default false * * @dtopt Features * @name DataTable.defaults.processing * * @example * $(document).ready( function () { * $('#example').dataTable( { * "processing": true * } ); * } ); */ "bProcessing": false, /** * Retrieve the DataTables object for the given selector. Note that if the * table has already been initialised, this parameter will cause DataTables * to simply return the object that has already been set up - it will not take * account of any changes you might have made to the initialisation object * passed to DataTables (setting this parameter to true is an acknowledgement * that you understand this). `destroy` can be used to reinitialise a table if * you need. * @type boolean * @default false * * @dtopt Options * @name DataTable.defaults.retrieve * * @example * $(document).ready( function() { * initTable(); * tableActions(); * } ); * * function initTable () * { * return $('#example').dataTable( { * "scrollY": "200px", * "paginate": false, * "retrieve": true * } ); * } * * function tableActions () * { * var table = initTable(); * // perform API operations with oTable * } */ "bRetrieve": false, /** * When vertical (y) scrolling is enabled, DataTables will force the height of * the table's viewport to the given height at all times (useful for layout). * However, this can look odd when filtering data down to a small data set, * and the footer is left "floating" further down. This parameter (when * enabled) will cause DataTables to collapse the table's viewport down when * the result set will fit within the given Y height. * @type boolean * @default false * * @dtopt Options * @name DataTable.defaults.scrollCollapse * * @example * $(document).ready( function() { * $('#example').dataTable( { * "scrollY": "200", * "scrollCollapse": true * } ); * } ); */ "bScrollCollapse": false, /** * Configure DataTables to use server-side processing. Note that the * `ajax` parameter must also be given in order to give DataTables a * source to obtain the required data for each draw. * @type boolean * @default false * * @dtopt Features * @dtopt Server-side * @name DataTable.defaults.serverSide * * @example * $(document).ready( function () { * $('#example').dataTable( { * "serverSide": true, * "ajax": "xhr.php" * } ); * } ); */ "bServerSide": false, /** * Enable or disable sorting of columns. Sorting of individual columns can be * disabled by the `sortable` option for each column. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.ordering * * @example * $(document).ready( function () { * $('#example').dataTable( { * "ordering": false * } ); * } ); */ "bSort": true, /** * Enable or display DataTables' ability to sort multiple columns at the * same time (activated by shift-click by the user). * @type boolean * @default true * * @dtopt Options * @name DataTable.defaults.orderMulti * * @example * // Disable multiple column sorting ability * $(document).ready( function () { * $('#example').dataTable( { * "orderMulti": false * } ); * } ); */ "bSortMulti": true, /** * Allows control over whether DataTables should use the top (true) unique * cell that is found for a single column, or the bottom (false - default). * This is useful when using complex headers. * @type boolean * @default false * * @dtopt Options * @name DataTable.defaults.orderCellsTop * * @example * $(document).ready( function() { * $('#example').dataTable( { * "orderCellsTop": true * } ); * } ); */ "bSortCellsTop": false, /** * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and * `sorting\_3` to the columns which are currently being sorted on. This is * presented as a feature switch as it can increase processing time (while * classes are removed and added) so for large data sets you might want to * turn this off. * @type boolean * @default true * * @dtopt Features * @name DataTable.defaults.orderClasses * * @example * $(document).ready( function () { * $('#example').dataTable( { * "orderClasses": false * } ); * } ); */ "bSortClasses": true, /** * Enable or disable state saving. When enabled HTML5 `localStorage` will be * used to save table display information such as pagination information, * display length, filtering and sorting. As such when the end user reloads * the page the display display will match what thy had previously set up. * * Due to the use of `localStorage` the default state saving is not supported * in IE6 or 7. If state saving is required in those browsers, use * `stateSaveCallback` to provide a storage solution such as cookies. * @type boolean * @default false * * @dtopt Features * @name DataTable.defaults.stateSave * * @example * $(document).ready( function () { * $('#example').dataTable( { * "stateSave": true * } ); * } ); */ "bStateSave": false, /** * This function is called when a TR element is created (and all TD child * elements have been inserted), or registered if using a DOM source, allowing * manipulation of the TR element (adding classes etc). * @type function * @param {node} row "TR" element for the current row * @param {array} data Raw data array for this row * @param {int} dataIndex The index of this row in the internal aoData array * * @dtopt Callbacks * @name DataTable.defaults.createdRow * * @example * $(document).ready( function() { * $('#example').dataTable( { * "createdRow": function( row, data, dataIndex ) { * // Bold the grade for all 'A' grade browsers * if ( data[4] == "A" ) * { * $('td:eq(4)', row).html( '<b>A</b>' ); * } * } * } ); * } ); */ "fnCreatedRow": null, /** * This function is called on every 'draw' event, and allows you to * dynamically modify any aspect you want about the created DOM. * @type function * @param {object} settings DataTables settings object * * @dtopt Callbacks * @name DataTable.defaults.drawCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "drawCallback": function( settings ) { * alert( 'DataTables has redrawn the table' ); * } * } ); * } ); */ "fnDrawCallback": null, /** * Identical to fnHeaderCallback() but for the table footer this function * allows you to modify the table footer on every 'draw' event. * @type function * @param {node} foot "TR" element for the footer * @param {array} data Full table data (as derived from the original HTML) * @param {int} start Index for the current display starting point in the * display array * @param {int} end Index for the current display ending point in the * display array * @param {array int} display Index array to translate the visual position * to the full data array * * @dtopt Callbacks * @name DataTable.defaults.footerCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "footerCallback": function( tfoot, data, start, end, display ) { * tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start; * } * } ); * } ) */ "fnFooterCallback": null, /** * When rendering large numbers in the information element for the table * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers * to have a comma separator for the 'thousands' units (e.g. 1 million is * rendered as "1,000,000") to help readability for the end user. This * function will override the default method DataTables uses. * @type function * @member * @param {int} toFormat number to be formatted * @returns {string} formatted string for DataTables to show the number * * @dtopt Callbacks * @name DataTable.defaults.formatNumber * * @example * // Format a number using a single quote for the separator (note that * // this can also be done with the language.thousands option) * $(document).ready( function() { * $('#example').dataTable( { * "formatNumber": function ( toFormat ) { * return toFormat.toString().replace( * /\B(?=(\d{3})+(?!\d))/g, "'" * ); * }; * } ); * } ); */ "fnFormatNumber": function ( toFormat ) { return toFormat.toString().replace( /\B(?=(\d{3})+(?!\d))/g, this.oLanguage.sThousands ); }, /** * This function is called on every 'draw' event, and allows you to * dynamically modify the header row. This can be used to calculate and * display useful information about the table. * @type function * @param {node} head "TR" element for the header * @param {array} data Full table data (as derived from the original HTML) * @param {int} start Index for the current display starting point in the * display array * @param {int} end Index for the current display ending point in the * display array * @param {array int} display Index array to translate the visual position * to the full data array * * @dtopt Callbacks * @name DataTable.defaults.headerCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "fheaderCallback": function( head, data, start, end, display ) { * head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records"; * } * } ); * } ) */ "fnHeaderCallback": null, /** * The information element can be used to convey information about the current * state of the table. Although the internationalisation options presented by * DataTables are quite capable of dealing with most customisations, there may * be times where you wish to customise the string further. This callback * allows you to do exactly that. * @type function * @param {object} oSettings DataTables settings object * @param {int} start Starting position in data for the draw * @param {int} end End position in data for the draw * @param {int} max Total number of rows in the table (regardless of * filtering) * @param {int} total Total number of rows in the data set, after filtering * @param {string} pre The string that DataTables has formatted using it's * own rules * @returns {string} The string to be displayed in the information element. * * @dtopt Callbacks * @name DataTable.defaults.infoCallback * * @example * $('#example').dataTable( { * "infoCallback": function( settings, start, end, max, total, pre ) { * return start +" to "+ end; * } * } ); */ "fnInfoCallback": null, /** * Called when the table has been initialised. Normally DataTables will * initialise sequentially and there will be no need for this function, * however, this does not hold true when using external language information * since that is obtained using an async XHR call. * @type function * @param {object} settings DataTables settings object * @param {object} json The JSON object request from the server - only * present if client-side Ajax sourced data is used * * @dtopt Callbacks * @name DataTable.defaults.initComplete * * @example * $(document).ready( function() { * $('#example').dataTable( { * "initComplete": function(settings, json) { * alert( 'DataTables has finished its initialisation.' ); * } * } ); * } ) */ "fnInitComplete": null, /** * Called at the very start of each table draw and can be used to cancel the * draw by returning false, any other return (including undefined) results in * the full draw occurring). * @type function * @param {object} settings DataTables settings object * @returns {boolean} False will cancel the draw, anything else (including no * return) will allow it to complete. * * @dtopt Callbacks * @name DataTable.defaults.preDrawCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "preDrawCallback": function( settings ) { * if ( $('#test').val() == 1 ) { * return false; * } * } * } ); * } ); */ "fnPreDrawCallback": null, /** * This function allows you to 'post process' each row after it have been * generated for each table draw, but before it is rendered on screen. This * function might be used for setting the row class name etc. * @type function * @param {node} row "TR" element for the current row * @param {array} data Raw data array for this row * @param {int} displayIndex The display index for the current table draw * @param {int} displayIndexFull The index of the data in the full list of * rows (after filtering) * * @dtopt Callbacks * @name DataTable.defaults.rowCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "rowCallback": function( row, data, displayIndex, displayIndexFull ) { * // Bold the grade for all 'A' grade browsers * if ( data[4] == "A" ) { * $('td:eq(4)', row).html( '<b>A</b>' ); * } * } * } ); * } ); */ "fnRowCallback": null, /** * __Deprecated__ The functionality provided by this parameter has now been * superseded by that provided through `ajax`, which should be used instead. * * This parameter allows you to override the default function which obtains * the data from the server so something more suitable for your application. * For example you could use POST data, or pull information from a Gears or * AIR database. * @type function * @member * @param {string} source HTTP source to obtain the data from (`ajax`) * @param {array} data A key/value pair object containing the data to send * to the server * @param {function} callback to be called on completion of the data get * process that will draw the data on the page. * @param {object} settings DataTables settings object * * @dtopt Callbacks * @dtopt Server-side * @name DataTable.defaults.serverData * * @deprecated 1.10. Please use `ajax` for this functionality now. */ "fnServerData": null, /** * __Deprecated__ The functionality provided by this parameter has now been * superseded by that provided through `ajax`, which should be used instead. * * It is often useful to send extra data to the server when making an Ajax * request - for example custom filtering information, and this callback * function makes it trivial to send extra information to the server. The * passed in parameter is the data set that has been constructed by * DataTables, and you can add to this or modify it as you require. * @type function * @param {array} data Data array (array of objects which are name/value * pairs) that has been constructed by DataTables and will be sent to the * server. In the case of Ajax sourced data with server-side processing * this will be an empty array, for server-side processing there will be a * significant number of parameters! * @returns {undefined} Ensure that you modify the data array passed in, * as this is passed by reference. * * @dtopt Callbacks * @dtopt Server-side * @name DataTable.defaults.serverParams * * @deprecated 1.10. Please use `ajax` for this functionality now. */ "fnServerParams": null, /** * Load the table state. With this function you can define from where, and how, the * state of a table is loaded. By default DataTables will load from `localStorage` * but you might wish to use a server-side database or cookies. * @type function * @member * @param {object} settings DataTables settings object * @param {object} callback Callback that can be executed when done. It * should be passed the loaded state object. * @return {object} The DataTables state object to be loaded * * @dtopt Callbacks * @name DataTable.defaults.stateLoadCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateLoadCallback": function (settings, callback) { * $.ajax( { * "url": "/state_load", * "dataType": "json", * "success": function (json) { * callback( json ); * } * } ); * } * } ); * } ); */ "fnStateLoadCallback": function ( settings ) { try { return JSON.parse( (settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem( 'DataTables_'+settings.sInstance+'_'+location.pathname ) ); } catch (e) {} }, /** * Callback which allows modification of the saved state prior to loading that state. * This callback is called when the table is loading state from the stored data, but * prior to the settings object being modified by the saved state. Note that for * plug-in authors, you should use the `stateLoadParams` event to load parameters for * a plug-in. * @type function * @param {object} settings DataTables settings object * @param {object} data The state object that is to be loaded * * @dtopt Callbacks * @name DataTable.defaults.stateLoadParams * * @example * // Remove a saved filter, so filtering is never loaded * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateLoadParams": function (settings, data) { * data.oSearch.sSearch = ""; * } * } ); * } ); * * @example * // Disallow state loading by returning false * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateLoadParams": function (settings, data) { * return false; * } * } ); * } ); */ "fnStateLoadParams": null, /** * Callback that is called when the state has been loaded from the state saving method * and the DataTables settings object has been modified as a result of the loaded state. * @type function * @param {object} settings DataTables settings object * @param {object} data The state object that was loaded * * @dtopt Callbacks * @name DataTable.defaults.stateLoaded * * @example * // Show an alert with the filtering value that was saved * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateLoaded": function (settings, data) { * alert( 'Saved filter was: '+data.oSearch.sSearch ); * } * } ); * } ); */ "fnStateLoaded": null, /** * Save the table state. This function allows you to define where and how the state * information for the table is stored By default DataTables will use `localStorage` * but you might wish to use a server-side database or cookies. * @type function * @member * @param {object} settings DataTables settings object * @param {object} data The state object to be saved * * @dtopt Callbacks * @name DataTable.defaults.stateSaveCallback * * @example * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateSaveCallback": function (settings, data) { * // Send an Ajax request to the server with the state object * $.ajax( { * "url": "/state_save", * "data": data, * "dataType": "json", * "method": "POST" * "success": function () {} * } ); * } * } ); * } ); */ "fnStateSaveCallback": function ( settings, data ) { try { (settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem( 'DataTables_'+settings.sInstance+'_'+location.pathname, JSON.stringify( data ) ); } catch (e) {} }, /** * Callback which allows modification of the state to be saved. Called when the table * has changed state a new state save is required. This method allows modification of * the state saving object prior to actually doing the save, including addition or * other state properties or modification. Note that for plug-in authors, you should * use the `stateSaveParams` event to save parameters for a plug-in. * @type function * @param {object} settings DataTables settings object * @param {object} data The state object to be saved * * @dtopt Callbacks * @name DataTable.defaults.stateSaveParams * * @example * // Remove a saved filter, so filtering is never saved * $(document).ready( function() { * $('#example').dataTable( { * "stateSave": true, * "stateSaveParams": function (settings, data) { * data.oSearch.sSearch = ""; * } * } ); * } ); */ "fnStateSaveParams": null, /** * Duration for which the saved state information is considered valid. After this period * has elapsed the state will be returned to the default. * Value is given in seconds. * @type int * @default 7200 <i>(2 hours)</i> * * @dtopt Options * @name DataTable.defaults.stateDuration * * @example * $(document).ready( function() { * $('#example').dataTable( { * "stateDuration": 60*60*24; // 1 day * } ); * } ) */ "iStateDuration": 7200, /** * When enabled DataTables will not make a request to the server for the first * page draw - rather it will use the data already on the page (no sorting etc * will be applied to it), thus saving on an XHR at load time. `deferLoading` * is used to indicate that deferred loading is required, but it is also used * to tell DataTables how many records there are in the full table (allowing * the information element and pagination to be displayed correctly). In the case * where a filtering is applied to the table on initial load, this can be * indicated by giving the parameter as an array, where the first element is * the number of records available after filtering and the second element is the * number of records without filtering (allowing the table information element * to be shown correctly). * @type int | array * @default null * * @dtopt Options * @name DataTable.defaults.deferLoading * * @example * // 57 records available in the table, no filtering applied * $(document).ready( function() { * $('#example').dataTable( { * "serverSide": true, * "ajax": "scripts/server_processing.php", * "deferLoading": 57 * } ); * } ); * * @example * // 57 records after filtering, 100 without filtering (an initial filter applied) * $(document).ready( function() { * $('#example').dataTable( { * "serverSide": true, * "ajax": "scripts/server_processing.php", * "deferLoading": [ 57, 100 ], * "search": { * "search": "my_filter" * } * } ); * } ); */ "iDeferLoading": null, /** * Number of rows to display on a single page when using pagination. If * feature enabled (`lengthChange`) then the end user will be able to override * this to a custom setting using a pop-up menu. * @type int * @default 10 * * @dtopt Options * @name DataTable.defaults.pageLength * * @example * $(document).ready( function() { * $('#example').dataTable( { * "pageLength": 50 * } ); * } ) */ "iDisplayLength": 10, /** * Define the starting point for data display when using DataTables with * pagination. Note that this parameter is the number of records, rather than * the page number, so if you have 10 records per page and want to start on * the third page, it should be "20". * @type int * @default 0 * * @dtopt Options * @name DataTable.defaults.displayStart * * @example * $(document).ready( function() { * $('#example').dataTable( { * "displayStart": 20 * } ); * } ) */ "iDisplayStart": 0, /** * By default DataTables allows keyboard navigation of the table (sorting, paging, * and filtering) by adding a `tabindex` attribute to the required elements. This * allows you to tab through the controls and press the enter key to activate them. * The tabindex is default 0, meaning that the tab follows the flow of the document. * You can overrule this using this parameter if you wish. Use a value of -1 to * disable built-in keyboard navigation. * @type int * @default 0 * * @dtopt Options * @name DataTable.defaults.tabIndex * * @example * $(document).ready( function() { * $('#example').dataTable( { * "tabIndex": 1 * } ); * } ); */ "iTabIndex": 0, /** * Classes that DataTables assigns to the various components and features * that it adds to the HTML table. This allows classes to be configured * during initialisation in addition to through the static * {@link DataTable.ext.oStdClasses} object). * @namespace * @name DataTable.defaults.classes */ "oClasses": {}, /** * All strings that DataTables uses in the user interface that it creates * are defined in this object, allowing you to modified them individually or * completely replace them all as required. * @namespace * @name DataTable.defaults.language */ "oLanguage": { /** * Strings that are used for WAI-ARIA labels and controls only (these are not * actually visible on the page, but will be read by screenreaders, and thus * must be internationalised as well). * @namespace * @name DataTable.defaults.language.aria */ "oAria": { /** * ARIA label that is added to the table headers when the column may be * sorted ascending by activing the column (click or return when focused). * Note that the column header is prefixed to this string. * @type string * @default : activate to sort column ascending * * @dtopt Language * @name DataTable.defaults.language.aria.sortAscending * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "aria": { * "sortAscending": " - click/return to sort ascending" * } * } * } ); * } ); */ "sSortAscending": ": activate to sort column ascending", /** * ARIA label that is added to the table headers when the column may be * sorted descending by activing the column (click or return when focused). * Note that the column header is prefixed to this string. * @type string * @default : activate to sort column ascending * * @dtopt Language * @name DataTable.defaults.language.aria.sortDescending * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "aria": { * "sortDescending": " - click/return to sort descending" * } * } * } ); * } ); */ "sSortDescending": ": activate to sort column descending" }, /** * Pagination string used by DataTables for the built-in pagination * control types. * @namespace * @name DataTable.defaults.language.paginate */ "oPaginate": { /** * Text to use when using the 'full_numbers' type of pagination for the * button to take the user to the first page. * @type string * @default First * * @dtopt Language * @name DataTable.defaults.language.paginate.first * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "paginate": { * "first": "First page" * } * } * } ); * } ); */ "sFirst": "First", /** * Text to use when using the 'full_numbers' type of pagination for the * button to take the user to the last page. * @type string * @default Last * * @dtopt Language * @name DataTable.defaults.language.paginate.last * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "paginate": { * "last": "Last page" * } * } * } ); * } ); */ "sLast": "Last", /** * Text to use for the 'next' pagination button (to take the user to the * next page). * @type string * @default Next * * @dtopt Language * @name DataTable.defaults.language.paginate.next * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "paginate": { * "next": "Next page" * } * } * } ); * } ); */ "sNext": "Next", /** * Text to use for the 'previous' pagination button (to take the user to * the previous page). * @type string * @default Previous * * @dtopt Language * @name DataTable.defaults.language.paginate.previous * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "paginate": { * "previous": "Previous page" * } * } * } ); * } ); */ "sPrevious": "Previous" }, /** * This string is shown in preference to `zeroRecords` when the table is * empty of data (regardless of filtering). Note that this is an optional * parameter - if it is not given, the value of `zeroRecords` will be used * instead (either the default or given value). * @type string * @default No data available in table * * @dtopt Language * @name DataTable.defaults.language.emptyTable * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "emptyTable": "No data available in table" * } * } ); * } ); */ "sEmptyTable": "No data available in table", /** * This string gives information to the end user about the information * that is current on display on the page. The following tokens can be * used in the string and will be dynamically replaced as the table * display updates. This tokens can be placed anywhere in the string, or * removed as needed by the language requires: * * * `\_START\_` - Display index of the first record on the current page * * `\_END\_` - Display index of the last record on the current page * * `\_TOTAL\_` - Number of records in the table after filtering * * `\_MAX\_` - Number of records in the table without filtering * * `\_PAGE\_` - Current page number * * `\_PAGES\_` - Total number of pages of data in the table * * @type string * @default Showing _START_ to _END_ of _TOTAL_ entries * * @dtopt Language * @name DataTable.defaults.language.info * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "info": "Showing page _PAGE_ of _PAGES_" * } * } ); * } ); */ "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries", /** * Display information string for when the table is empty. Typically the * format of this string should match `info`. * @type string * @default Showing 0 to 0 of 0 entries * * @dtopt Language * @name DataTable.defaults.language.infoEmpty * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "infoEmpty": "No entries to show" * } * } ); * } ); */ "sInfoEmpty": "Showing 0 to 0 of 0 entries", /** * When a user filters the information in a table, this string is appended * to the information (`info`) to give an idea of how strong the filtering * is. The variable _MAX_ is dynamically updated. * @type string * @default (filtered from _MAX_ total entries) * * @dtopt Language * @name DataTable.defaults.language.infoFiltered * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "infoFiltered": " - filtering from _MAX_ records" * } * } ); * } ); */ "sInfoFiltered": "(filtered from _MAX_ total entries)", /** * If can be useful to append extra information to the info string at times, * and this variable does exactly that. This information will be appended to * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are * being used) at all times. * @type string * @default <i>Empty string</i> * * @dtopt Language * @name DataTable.defaults.language.infoPostFix * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "infoPostFix": "All records shown are derived from real information." * } * } ); * } ); */ "sInfoPostFix": "", /** * This decimal place operator is a little different from the other * language options since DataTables doesn't output floating point * numbers, so it won't ever use this for display of a number. Rather, * what this parameter does is modify the sort methods of the table so * that numbers which are in a format which has a character other than * a period (`.`) as a decimal place will be sorted numerically. * * Note that numbers with different decimal places cannot be shown in * the same table and still be sortable, the table must be consistent. * However, multiple different tables on the page can use different * decimal place characters. * @type string * @default * * @dtopt Language * @name DataTable.defaults.language.decimal * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "decimal": "," * "thousands": "." * } * } ); * } ); */ "sDecimal": "", /** * DataTables has a build in number formatter (`formatNumber`) which is * used to format large numbers that are used in the table information. * By default a comma is used, but this can be trivially changed to any * character you wish with this parameter. * @type string * @default , * * @dtopt Language * @name DataTable.defaults.language.thousands * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "thousands": "'" * } * } ); * } ); */ "sThousands": ",", /** * Detail the action that will be taken when the drop down menu for the * pagination length option is changed. The '_MENU_' variable is replaced * with a default select list of 10, 25, 50 and 100, and can be replaced * with a custom select box if required. * @type string * @default Show _MENU_ entries * * @dtopt Language * @name DataTable.defaults.language.lengthMenu * * @example * // Language change only * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "lengthMenu": "Display _MENU_ records" * } * } ); * } ); * * @example * // Language and options change * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "lengthMenu": 'Display <select>'+ * '<option value="10">10</option>'+ * '<option value="20">20</option>'+ * '<option value="30">30</option>'+ * '<option value="40">40</option>'+ * '<option value="50">50</option>'+ * '<option value="-1">All</option>'+ * '</select> records' * } * } ); * } ); */ "sLengthMenu": "Show _MENU_ entries", /** * When using Ajax sourced data and during the first draw when DataTables is * gathering the data, this message is shown in an empty row in the table to * indicate to the end user the the data is being loaded. Note that this * parameter is not used when loading data by server-side processing, just * Ajax sourced data with client-side processing. * @type string * @default Loading... * * @dtopt Language * @name DataTable.defaults.language.loadingRecords * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "loadingRecords": "Please wait - loading..." * } * } ); * } ); */ "sLoadingRecords": "Loading...", /** * Text which is displayed when the table is processing a user action * (usually a sort command or similar). * @type string * @default Processing... * * @dtopt Language * @name DataTable.defaults.language.processing * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "processing": "DataTables is currently busy" * } * } ); * } ); */ "sProcessing": "Processing...", /** * Details the actions that will be taken when the user types into the * filtering input text box. The variable "_INPUT_", if used in the string, * is replaced with the HTML text box for the filtering input allowing * control over where it appears in the string. If "_INPUT_" is not given * then the input box is appended to the string automatically. * @type string * @default Search: * * @dtopt Language * @name DataTable.defaults.language.search * * @example * // Input text box will be appended at the end automatically * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "search": "Filter records:" * } * } ); * } ); * * @example * // Specify where the filter should appear * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "search": "Apply filter _INPUT_ to table" * } * } ); * } ); */ "sSearch": "Search:", /** * Assign a `placeholder` attribute to the search `input` element * @type string * @default * * @dtopt Language * @name DataTable.defaults.language.searchPlaceholder */ "sSearchPlaceholder": "", /** * All of the language information can be stored in a file on the * server-side, which DataTables will look up if this parameter is passed. * It must store the URL of the language file, which is in a JSON format, * and the object has the same properties as the oLanguage object in the * initialiser object (i.e. the above parameters). Please refer to one of * the example language files to see how this works in action. * @type string * @default <i>Empty string - i.e. disabled</i> * * @dtopt Language * @name DataTable.defaults.language.url * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "url": "http://www.sprymedia.co.uk/dataTables/lang.txt" * } * } ); * } ); */ "sUrl": "", /** * Text shown inside the table records when the is no information to be * displayed after filtering. `emptyTable` is shown when there is simply no * information in the table at all (regardless of filtering). * @type string * @default No matching records found * * @dtopt Language * @name DataTable.defaults.language.zeroRecords * * @example * $(document).ready( function() { * $('#example').dataTable( { * "language": { * "zeroRecords": "No records to display" * } * } ); * } ); */ "sZeroRecords": "No matching records found" }, /** * This parameter allows you to have define the global filtering state at * initialisation time. As an object the `search` parameter must be * defined, but all other parameters are optional. When `regex` is true, * the search string will be treated as a regular expression, when false * (default) it will be treated as a straight string. When `smart` * DataTables will use it's smart filtering methods (to word match at * any point in the data), when false this will not be done. * @namespace * @extends DataTable.models.oSearch * * @dtopt Options * @name DataTable.defaults.search * * @example * $(document).ready( function() { * $('#example').dataTable( { * "search": {"search": "Initial search"} * } ); * } ) */ "oSearch": $.extend( {}, DataTable.models.oSearch ), /** * __Deprecated__ The functionality provided by this parameter has now been * superseded by that provided through `ajax`, which should be used instead. * * By default DataTables will look for the property `data` (or `aaData` for * compatibility with DataTables 1.9-) when obtaining data from an Ajax * source or for server-side processing - this parameter allows that * property to be changed. You can use Javascript dotted object notation to * get a data source for multiple levels of nesting. * @type string * @default data * * @dtopt Options * @dtopt Server-side * @name DataTable.defaults.ajaxDataProp * * @deprecated 1.10. Please use `ajax` for this functionality now. */ "sAjaxDataProp": "data", /** * __Deprecated__ The functionality provided by this parameter has now been * superseded by that provided through `ajax`, which should be used instead. * * You can instruct DataTables to load data from an external * source using this parameter (use aData if you want to pass data in you * already have). Simply provide a url a JSON object can be obtained from. * @type string * @default null * * @dtopt Options * @dtopt Server-side * @name DataTable.defaults.ajaxSource * * @deprecated 1.10. Please use `ajax` for this functionality now. */ "sAjaxSource": null, /** * This initialisation variable allows you to specify exactly where in the * DOM you want DataTables to inject the various controls it adds to the page * (for example you might want the pagination controls at the top of the * table). DIV elements (with or without a custom class) can also be added to * aid styling. The follow syntax is used: * <ul> * <li>The following options are allowed: * <ul> * <li>'l' - Length changing</li> * <li>'f' - Filtering input</li> * <li>'t' - The table!</li> * <li>'i' - Information</li> * <li>'p' - Pagination</li> * <li>'r' - pRocessing</li> * </ul> * </li> * <li>The following constants are allowed: * <ul> * <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li> * <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li> * </ul> * </li> * <li>The following syntax is expected: * <ul> * <li>'&lt;' and '&gt;' - div elements</li> * <li>'&lt;"class" and '&gt;' - div with a class</li> * <li>'&lt;"#id" and '&gt;' - div with an ID</li> * </ul> * </li> * <li>Examples: * <ul> * <li>'&lt;"wrapper"flipt&gt;'</li> * <li>'&lt;lf&lt;t&gt;ip&gt;'</li> * </ul> * </li> * </ul> * @type string * @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b> * <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i> * * @dtopt Options * @name DataTable.defaults.dom * * @example * $(document).ready( function() { * $('#example').dataTable( { * "dom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;' * } ); * } ); */ "sDom": "lfrtip", /** * Search delay option. This will throttle full table searches that use the * DataTables provided search input element (it does not effect calls to * `dt-api search()`, providing a delay before the search is made. * @type integer * @default 0 * * @dtopt Options * @name DataTable.defaults.searchDelay * * @example * $(document).ready( function() { * $('#example').dataTable( { * "searchDelay": 200 * } ); * } ) */ "searchDelay": null, /** * DataTables features six different built-in options for the buttons to * display for pagination control: * * * `numbers` - Page number buttons only * * `simple` - 'Previous' and 'Next' buttons only * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers * * Further methods can be added using {@link DataTable.ext.oPagination}. * @type string * @default simple_numbers * * @dtopt Options * @name DataTable.defaults.pagingType * * @example * $(document).ready( function() { * $('#example').dataTable( { * "pagingType": "full_numbers" * } ); * } ) */ "sPaginationType": "simple_numbers", /** * Enable horizontal scrolling. When a table is too wide to fit into a * certain layout, or you have a large number of columns in the table, you * can enable x-scrolling to show the table in a viewport, which can be * scrolled. This property can be `true` which will allow the table to * scroll horizontally when needed, or any CSS unit, or a number (in which * case it will be treated as a pixel measurement). Setting as simply `true` * is recommended. * @type boolean|string * @default <i>blank string - i.e. disabled</i> * * @dtopt Features * @name DataTable.defaults.scrollX * * @example * $(document).ready( function() { * $('#example').dataTable( { * "scrollX": true, * "scrollCollapse": true * } ); * } ); */ "sScrollX": "", /** * This property can be used to force a DataTable to use more width than it * might otherwise do when x-scrolling is enabled. For example if you have a * table which requires to be well spaced, this parameter is useful for * "over-sizing" the table, and thus forcing scrolling. This property can by * any CSS unit, or a number (in which case it will be treated as a pixel * measurement). * @type string * @default <i>blank string - i.e. disabled</i> * * @dtopt Options * @name DataTable.defaults.scrollXInner * * @example * $(document).ready( function() { * $('#example').dataTable( { * "scrollX": "100%", * "scrollXInner": "110%" * } ); * } ); */ "sScrollXInner": "", /** * Enable vertical scrolling. Vertical scrolling will constrain the DataTable * to the given height, and enable scrolling for any data which overflows the * current viewport. This can be used as an alternative to paging to display * a lot of data in a small area (although paging and scrolling can both be * enabled at the same time). This property can be any CSS unit, or a number * (in which case it will be treated as a pixel measurement). * @type string * @default <i>blank string - i.e. disabled</i> * * @dtopt Features * @name DataTable.defaults.scrollY * * @example * $(document).ready( function() { * $('#example').dataTable( { * "scrollY": "200px", * "paginate": false * } ); * } ); */ "sScrollY": "", /** * __Deprecated__ The functionality provided by this parameter has now been * superseded by that provided through `ajax`, which should be used instead. * * Set the HTTP method that is used to make the Ajax call for server-side * processing or Ajax sourced data. * @type string * @default GET * * @dtopt Options * @dtopt Server-side * @name DataTable.defaults.serverMethod * * @deprecated 1.10. Please use `ajax` for this functionality now. */ "sServerMethod": "GET", /** * DataTables makes use of renderers when displaying HTML elements for * a table. These renderers can be added or modified by plug-ins to * generate suitable mark-up for a site. For example the Bootstrap * integration plug-in for DataTables uses a paging button renderer to * display pagination buttons in the mark-up required by Bootstrap. * * For further information about the renderers available see * DataTable.ext.renderer * @type string|object * @default null * * @name DataTable.defaults.renderer * */ "renderer": null, /** * Set the data property name that DataTables should use to get a row's id * to set as the `id` property in the node. * @type string * @default DT_RowId * * @name DataTable.defaults.rowId */ "rowId": "DT_RowId" }; _fnHungarianMap( DataTable.defaults ); /* * Developer note - See note in model.defaults.js about the use of Hungarian * notation and camel case. */ /** * Column options that can be given to DataTables at initialisation time. * @namespace */ DataTable.defaults.column = { /** * Define which column(s) an order will occur on for this column. This * allows a column's ordering to take multiple columns into account when * doing a sort or use the data from a different column. For example first * name / last name columns make sense to do a multi-column sort over the * two columns. * @type array|int * @default null <i>Takes the value of the column index automatically</i> * * @name DataTable.defaults.column.orderData * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "orderData": [ 0, 1 ], "targets": [ 0 ] }, * { "orderData": [ 1, 0 ], "targets": [ 1 ] }, * { "orderData": 2, "targets": [ 2 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "orderData": [ 0, 1 ] }, * { "orderData": [ 1, 0 ] }, * { "orderData": 2 }, * null, * null * ] * } ); * } ); */ "aDataSort": null, "iDataSort": -1, /** * You can control the default ordering direction, and even alter the * behaviour of the sort handler (i.e. only allow ascending ordering etc) * using this parameter. * @type array * @default [ 'asc', 'desc' ] * * @name DataTable.defaults.column.orderSequence * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "orderSequence": [ "asc" ], "targets": [ 1 ] }, * { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] }, * { "orderSequence": [ "desc" ], "targets": [ 3 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * null, * { "orderSequence": [ "asc" ] }, * { "orderSequence": [ "desc", "asc", "asc" ] }, * { "orderSequence": [ "desc" ] }, * null * ] * } ); * } ); */ "asSorting": [ 'asc', 'desc' ], /** * Enable or disable filtering on the data in this column. * @type boolean * @default true * * @name DataTable.defaults.column.searchable * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "searchable": false, "targets": [ 0 ] } * ] } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "searchable": false }, * null, * null, * null, * null * ] } ); * } ); */ "bSearchable": true, /** * Enable or disable ordering on this column. * @type boolean * @default true * * @name DataTable.defaults.column.orderable * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "orderable": false, "targets": [ 0 ] } * ] } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "orderable": false }, * null, * null, * null, * null * ] } ); * } ); */ "bSortable": true, /** * Enable or disable the display of this column. * @type boolean * @default true * * @name DataTable.defaults.column.visible * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "visible": false, "targets": [ 0 ] } * ] } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "visible": false }, * null, * null, * null, * null * ] } ); * } ); */ "bVisible": true, /** * Developer definable function that is called whenever a cell is created (Ajax source, * etc) or processed for input (DOM source). This can be used as a compliment to mRender * allowing you to modify the DOM element (add background colour for example) when the * element is available. * @type function * @param {element} td The TD node that has been created * @param {*} cellData The Data for the cell * @param {array|object} rowData The data for the whole row * @param {int} row The row index for the aoData data store * @param {int} col The column index for aoColumns * * @name DataTable.defaults.column.createdCell * @dtopt Columns * * @example * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [3], * "createdCell": function (td, cellData, rowData, row, col) { * if ( cellData == "1.7" ) { * $(td).css('color', 'blue') * } * } * } ] * }); * } ); */ "fnCreatedCell": null, /** * This parameter has been replaced by `data` in DataTables to ensure naming * consistency. `dataProp` can still be used, as there is backwards * compatibility in DataTables for this option, but it is strongly * recommended that you use `data` in preference to `dataProp`. * @name DataTable.defaults.column.dataProp */ /** * This property can be used to read data from any data source property, * including deeply nested objects / properties. `data` can be given in a * number of different ways which effect its behaviour: * * * `integer` - treated as an array index for the data source. This is the * default that DataTables uses (incrementally increased for each column). * * `string` - read an object property from the data source. There are * three 'special' options that can be used in the string to alter how * DataTables reads the data from the source object: * * `.` - Dotted Javascript notation. Just as you use a `.` in * Javascript to read from nested objects, so to can the options * specified in `data`. For example: `browser.version` or * `browser.name`. If your object parameter name contains a period, use * `\\` to escape it - i.e. `first\\.name`. * * `[]` - Array notation. DataTables can automatically combine data * from and array source, joining the data with the characters provided * between the two brackets. For example: `name[, ]` would provide a * comma-space separated list from the source array. If no characters * are provided between the brackets, the original array source is * returned. * * `()` - Function notation. Adding `()` to the end of a parameter will * execute a function of the name given. For example: `browser()` for a * simple function on the data source, `browser.version()` for a * function in a nested property or even `browser().version` to get an * object property if the function called returns an object. Note that * function notation is recommended for use in `render` rather than * `data` as it is much simpler to use as a renderer. * * `null` - use the original data source for the row rather than plucking * data directly from it. This action has effects on two other * initialisation options: * * `defaultContent` - When null is given as the `data` option and * `defaultContent` is specified for the column, the value defined by * `defaultContent` will be used for the cell. * * `render` - When null is used for the `data` option and the `render` * option is specified for the column, the whole data source for the * row is used for the renderer. * * `function` - the function given will be executed whenever DataTables * needs to set or get the data for a cell in the column. The function * takes three parameters: * * Parameters: * * `{array|object}` The data source for the row * * `{string}` The type call data requested - this will be 'set' when * setting data or 'filter', 'display', 'type', 'sort' or undefined * when gathering data. Note that when `undefined` is given for the * type DataTables expects to get the raw data for the object back< * * `{*}` Data to set when the second parameter is 'set'. * * Return: * * The return value from the function is not required when 'set' is * the type of call, but otherwise the return is what will be used * for the data requested. * * Note that `data` is a getter and setter option. If you just require * formatting of data for output, you will likely want to use `render` which * is simply a getter and thus simpler to use. * * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The * name change reflects the flexibility of this property and is consistent * with the naming of mRender. If 'mDataProp' is given, then it will still * be used by DataTables, as it automatically maps the old name to the new * if required. * * @type string|int|function|null * @default null <i>Use automatically calculated column index</i> * * @name DataTable.defaults.column.data * @dtopt Columns * * @example * // Read table data from objects * // JSON structure for each row: * // { * // "engine": {value}, * // "browser": {value}, * // "platform": {value}, * // "version": {value}, * // "grade": {value} * // } * $(document).ready( function() { * $('#example').dataTable( { * "ajaxSource": "sources/objects.txt", * "columns": [ * { "data": "engine" }, * { "data": "browser" }, * { "data": "platform" }, * { "data": "version" }, * { "data": "grade" } * ] * } ); * } ); * * @example * // Read information from deeply nested objects * // JSON structure for each row: * // { * // "engine": {value}, * // "browser": {value}, * // "platform": { * // "inner": {value} * // }, * // "details": [ * // {value}, {value} * // ] * // } * $(document).ready( function() { * $('#example').dataTable( { * "ajaxSource": "sources/deep.txt", * "columns": [ * { "data": "engine" }, * { "data": "browser" }, * { "data": "platform.inner" }, * { "data": "details.0" }, * { "data": "details.1" } * ] * } ); * } ); * * @example * // Using `data` as a function to provide different information for * // sorting, filtering and display. In this case, currency (price) * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": function ( source, type, val ) { * if (type === 'set') { * source.price = val; * // Store the computed dislay and filter values for efficiency * source.price_display = val=="" ? "" : "$"+numberFormat(val); * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val; * return; * } * else if (type === 'display') { * return source.price_display; * } * else if (type === 'filter') { * return source.price_filter; * } * // 'sort', 'type' and undefined all just use the integer * return source.price; * } * } ] * } ); * } ); * * @example * // Using default content * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": null, * "defaultContent": "Click to edit" * } ] * } ); * } ); * * @example * // Using array notation - outputting a list from an array * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": "name[, ]" * } ] * } ); * } ); * */ "mData": null, /** * This property is the rendering partner to `data` and it is suggested that * when you want to manipulate data for display (including filtering, * sorting etc) without altering the underlying data for the table, use this * property. `render` can be considered to be the the read only companion to * `data` which is read / write (then as such more complex). Like `data` * this option can be given in a number of different ways to effect its * behaviour: * * * `integer` - treated as an array index for the data source. This is the * default that DataTables uses (incrementally increased for each column). * * `string` - read an object property from the data source. There are * three 'special' options that can be used in the string to alter how * DataTables reads the data from the source object: * * `.` - Dotted Javascript notation. Just as you use a `.` in * Javascript to read from nested objects, so to can the options * specified in `data`. For example: `browser.version` or * `browser.name`. If your object parameter name contains a period, use * `\\` to escape it - i.e. `first\\.name`. * * `[]` - Array notation. DataTables can automatically combine data * from and array source, joining the data with the characters provided * between the two brackets. For example: `name[, ]` would provide a * comma-space separated list from the source array. If no characters * are provided between the brackets, the original array source is * returned. * * `()` - Function notation. Adding `()` to the end of a parameter will * execute a function of the name given. For example: `browser()` for a * simple function on the data source, `browser.version()` for a * function in a nested property or even `browser().version` to get an * object property if the function called returns an object. * * `object` - use different data for the different data types requested by * DataTables ('filter', 'display', 'type' or 'sort'). The property names * of the object is the data type the property refers to and the value can * defined using an integer, string or function using the same rules as * `render` normally does. Note that an `_` option _must_ be specified. * This is the default value to use if you haven't specified a value for * the data type requested by DataTables. * * `function` - the function given will be executed whenever DataTables * needs to set or get the data for a cell in the column. The function * takes three parameters: * * Parameters: * * {array|object} The data source for the row (based on `data`) * * {string} The type call data requested - this will be 'filter', * 'display', 'type' or 'sort'. * * {array|object} The full data source for the row (not based on * `data`) * * Return: * * The return value from the function is what will be used for the * data requested. * * @type string|int|function|object|null * @default null Use the data source value. * * @name DataTable.defaults.column.render * @dtopt Columns * * @example * // Create a comma separated list from an array of objects * $(document).ready( function() { * $('#example').dataTable( { * "ajaxSource": "sources/deep.txt", * "columns": [ * { "data": "engine" }, * { "data": "browser" }, * { * "data": "platform", * "render": "[, ].name" * } * ] * } ); * } ); * * @example * // Execute a function to obtain data * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": null, // Use the full data source object for the renderer's source * "render": "browserName()" * } ] * } ); * } ); * * @example * // As an object, extracting different data for the different types * // This would be used with a data source such as: * // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" } * // Here the `phone` integer is used for sorting and type detection, while `phone_filter` * // (which has both forms) is used for filtering for if a user inputs either format, while * // the formatted phone number is the one that is shown in the table. * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": null, // Use the full data source object for the renderer's source * "render": { * "_": "phone", * "filter": "phone_filter", * "display": "phone_display" * } * } ] * } ); * } ); * * @example * // Use as a function to create a link from the data source * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "data": "download_link", * "render": function ( data, type, full ) { * return '<a href="'+data+'">Download</a>'; * } * } ] * } ); * } ); */ "mRender": null, /** * Change the cell type created for the column - either TD cells or TH cells. This * can be useful as TH cells have semantic meaning in the table body, allowing them * to act as a header for a row (you may wish to add scope='row' to the TH elements). * @type string * @default td * * @name DataTable.defaults.column.cellType * @dtopt Columns * * @example * // Make the first column use TH cells * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ { * "targets": [ 0 ], * "cellType": "th" * } ] * } ); * } ); */ "sCellType": "td", /** * Class to give to each cell in this column. * @type string * @default <i>Empty string</i> * * @name DataTable.defaults.column.class * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "class": "my_class", "targets": [ 0 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "class": "my_class" }, * null, * null, * null, * null * ] * } ); * } ); */ "sClass": "", /** * When DataTables calculates the column widths to assign to each column, * it finds the longest string in each column and then constructs a * temporary table and reads the widths from that. The problem with this * is that "mmm" is much wider then "iiii", but the latter is a longer * string - thus the calculation can go wrong (doing it properly and putting * it into an DOM object and measuring that is horribly(!) slow). Thus as * a "work around" we provide this option. It will append its value to the * text that is found to be the longest string for the column - i.e. padding. * Generally you shouldn't need this! * @type string * @default <i>Empty string<i> * * @name DataTable.defaults.column.contentPadding * @dtopt Columns * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * null, * null, * null, * { * "contentPadding": "mmm" * } * ] * } ); * } ); */ "sContentPadding": "", /** * Allows a default value to be given for a column's data, and will be used * whenever a null data source is encountered (this can be because `data` * is set to null, or because the data source itself is null). * @type string * @default null * * @name DataTable.defaults.column.defaultContent * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { * "data": null, * "defaultContent": "Edit", * "targets": [ -1 ] * } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * null, * null, * null, * { * "data": null, * "defaultContent": "Edit" * } * ] * } ); * } ); */ "sDefaultContent": null, /** * This parameter is only used in DataTables' server-side processing. It can * be exceptionally useful to know what columns are being displayed on the * client side, and to map these to database fields. When defined, the names * also allow DataTables to reorder information from the server if it comes * back in an unexpected order (i.e. if you switch your columns around on the * client-side, your server-side code does not also need updating). * @type string * @default <i>Empty string</i> * * @name DataTable.defaults.column.name * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "name": "engine", "targets": [ 0 ] }, * { "name": "browser", "targets": [ 1 ] }, * { "name": "platform", "targets": [ 2 ] }, * { "name": "version", "targets": [ 3 ] }, * { "name": "grade", "targets": [ 4 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "name": "engine" }, * { "name": "browser" }, * { "name": "platform" }, * { "name": "version" }, * { "name": "grade" } * ] * } ); * } ); */ "sName": "", /** * Defines a data source type for the ordering which can be used to read * real-time information from the table (updating the internally cached * version) prior to ordering. This allows ordering to occur on user * editable elements such as form inputs. * @type string * @default std * * @name DataTable.defaults.column.orderDataType * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "orderDataType": "dom-text", "targets": [ 2, 3 ] }, * { "type": "numeric", "targets": [ 3 ] }, * { "orderDataType": "dom-select", "targets": [ 4 ] }, * { "orderDataType": "dom-checkbox", "targets": [ 5 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * null, * null, * { "orderDataType": "dom-text" }, * { "orderDataType": "dom-text", "type": "numeric" }, * { "orderDataType": "dom-select" }, * { "orderDataType": "dom-checkbox" } * ] * } ); * } ); */ "sSortDataType": "std", /** * The title of this column. * @type string * @default null <i>Derived from the 'TH' value for this column in the * original HTML table.</i> * * @name DataTable.defaults.column.title * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "title": "My column title", "targets": [ 0 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "title": "My column title" }, * null, * null, * null, * null * ] * } ); * } ); */ "sTitle": null, /** * The type allows you to specify how the data for this column will be * ordered. Four types (string, numeric, date and html (which will strip * HTML tags before ordering)) are currently available. Note that only date * formats understood by Javascript's Date() object will be accepted as type * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string', * 'numeric', 'date' or 'html' (by default). Further types can be adding * through plug-ins. * @type string * @default null <i>Auto-detected from raw data</i> * * @name DataTable.defaults.column.type * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "type": "html", "targets": [ 0 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "type": "html" }, * null, * null, * null, * null * ] * } ); * } ); */ "sType": null, /** * Defining the width of the column, this parameter may take any CSS value * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not * been given a specific width through this interface ensuring that the table * remains readable. * @type string * @default null <i>Automatic</i> * * @name DataTable.defaults.column.width * @dtopt Columns * * @example * // Using `columnDefs` * $(document).ready( function() { * $('#example').dataTable( { * "columnDefs": [ * { "width": "20%", "targets": [ 0 ] } * ] * } ); * } ); * * @example * // Using `columns` * $(document).ready( function() { * $('#example').dataTable( { * "columns": [ * { "width": "20%" }, * null, * null, * null, * null * ] * } ); * } ); */ "sWidth": null }; _fnHungarianMap( DataTable.defaults.column ); /** * DataTables settings object - this holds all the information needed for a * given table, including configuration, data and current application of the * table options. DataTables does not have a single instance for each DataTable * with the settings attached to that instance, but rather instances of the * DataTable "class" are created on-the-fly as needed (typically by a * $().dataTable() call) and the settings object is then applied to that * instance. * * Note that this object is related to {@link DataTable.defaults} but this * one is the internal data store for DataTables's cache of columns. It should * NOT be manipulated outside of DataTables. Any configuration should be done * through the initialisation options. * @namespace * @todo Really should attach the settings object to individual instances so we * don't need to create new instances on each $().dataTable() call (if the * table already exists). It would also save passing oSettings around and * into every single function. However, this is a very significant * architecture change for DataTables and will almost certainly break * backwards compatibility with older installations. This is something that * will be done in 2.0. */ DataTable.models.oSettings = { /** * Primary features of DataTables and their enablement state. * @namespace */ "oFeatures": { /** * Flag to say if DataTables should automatically try to calculate the * optimum table and columns widths (true) or not (false). * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bAutoWidth": null, /** * Delay the creation of TR and TD elements until they are actually * needed by a driven page draw. This can give a significant speed * increase for Ajax source and Javascript source data, but makes no * difference at all fro DOM and server-side processing tables. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bDeferRender": null, /** * Enable filtering on the table or not. Note that if this is disabled * then there is no filtering at all on the table, including fnFilter. * To just remove the filtering input use sDom and remove the 'f' option. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bFilter": null, /** * Table information element (the 'Showing x of y records' div) enable * flag. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bInfo": null, /** * Present a user control allowing the end user to change the page size * when pagination is enabled. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bLengthChange": null, /** * Pagination enabled or not. Note that if this is disabled then length * changing must also be disabled. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bPaginate": null, /** * Processing indicator enable flag whenever DataTables is enacting a * user request - typically an Ajax request for server-side processing. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bProcessing": null, /** * Server-side processing enabled flag - when enabled DataTables will * get all data from the server for every draw - there is no filtering, * sorting or paging done on the client-side. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bServerSide": null, /** * Sorting enablement flag. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bSort": null, /** * Multi-column sorting * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bSortMulti": null, /** * Apply a class to the columns which are being sorted to provide a * visual highlight or not. This can slow things down when enabled since * there is a lot of DOM interaction. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bSortClasses": null, /** * State saving enablement flag. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bStateSave": null }, /** * Scrolling settings for a table. * @namespace */ "oScroll": { /** * When the table is shorter in height than sScrollY, collapse the * table container down to the height of the table (when true). * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bCollapse": null, /** * Width of the scrollbar for the web-browser's platform. Calculated * during table initialisation. * @type int * @default 0 */ "iBarWidth": 0, /** * Viewport width for horizontal scrolling. Horizontal scrolling is * disabled if an empty string. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string */ "sX": null, /** * Width to expand the table to when using x-scrolling. Typically you * should not need to use this. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string * @deprecated */ "sXInner": null, /** * Viewport height for vertical scrolling. Vertical scrolling is disabled * if an empty string. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string */ "sY": null }, /** * Language information for the table. * @namespace * @extends DataTable.defaults.oLanguage */ "oLanguage": { /** * Information callback function. See * {@link DataTable.defaults.fnInfoCallback} * @type function * @default null */ "fnInfoCallback": null }, /** * Browser support parameters * @namespace */ "oBrowser": { /** * Indicate if the browser incorrectly calculates width:100% inside a * scrolling element (IE6/7) * @type boolean * @default false */ "bScrollOversize": false, /** * Determine if the vertical scrollbar is on the right or left of the * scrolling container - needed for rtl language layout, although not * all browsers move the scrollbar (Safari). * @type boolean * @default false */ "bScrollbarLeft": false, /** * Flag for if `getBoundingClientRect` is fully supported or not * @type boolean * @default false */ "bBounding": false, /** * Browser scrollbar width * @type integer * @default 0 */ "barWidth": 0 }, "ajax": null, /** * Array referencing the nodes which are used for the features. The * parameters of this object match what is allowed by sDom - i.e. * <ul> * <li>'l' - Length changing</li> * <li>'f' - Filtering input</li> * <li>'t' - The table!</li> * <li>'i' - Information</li> * <li>'p' - Pagination</li> * <li>'r' - pRocessing</li> * </ul> * @type array * @default [] */ "aanFeatures": [], /** * Store data information - see {@link DataTable.models.oRow} for detailed * information. * @type array * @default [] */ "aoData": [], /** * Array of indexes which are in the current display (after filtering etc) * @type array * @default [] */ "aiDisplay": [], /** * Array of indexes for display - no filtering * @type array * @default [] */ "aiDisplayMaster": [], /** * Map of row ids to data indexes * @type object * @default {} */ "aIds": {}, /** * Store information about each column that is in use * @type array * @default [] */ "aoColumns": [], /** * Store information about the table's header * @type array * @default [] */ "aoHeader": [], /** * Store information about the table's footer * @type array * @default [] */ "aoFooter": [], /** * Store the applied global search information in case we want to force a * research or compare the old search to a new one. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @namespace * @extends DataTable.models.oSearch */ "oPreviousSearch": {}, /** * Store the applied search for each column - see * {@link DataTable.models.oSearch} for the format that is used for the * filtering information for each column. * @type array * @default [] */ "aoPreSearchCols": [], /** * Sorting that is applied to the table. Note that the inner arrays are * used in the following manner: * <ul> * <li>Index 0 - column number</li> * <li>Index 1 - current sorting direction</li> * </ul> * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type array * @todo These inner arrays should really be objects */ "aaSorting": null, /** * Sorting that is always applied to the table (i.e. prefixed in front of * aaSorting). * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type array * @default [] */ "aaSortingFixed": [], /** * Classes to use for the striping of a table. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type array * @default [] */ "asStripeClasses": null, /** * If restoring a table - we should restore its striping classes as well * @type array * @default [] */ "asDestroyStripes": [], /** * If restoring a table - we should restore its width * @type int * @default 0 */ "sDestroyWidth": 0, /** * Callback functions array for every time a row is inserted (i.e. on a draw). * @type array * @default [] */ "aoRowCallback": [], /** * Callback functions for the header on each draw. * @type array * @default [] */ "aoHeaderCallback": [], /** * Callback function for the footer on each draw. * @type array * @default [] */ "aoFooterCallback": [], /** * Array of callback functions for draw callback functions * @type array * @default [] */ "aoDrawCallback": [], /** * Array of callback functions for row created function * @type array * @default [] */ "aoRowCreatedCallback": [], /** * Callback functions for just before the table is redrawn. A return of * false will be used to cancel the draw. * @type array * @default [] */ "aoPreDrawCallback": [], /** * Callback functions for when the table has been initialised. * @type array * @default [] */ "aoInitComplete": [], /** * Callbacks for modifying the settings to be stored for state saving, prior to * saving state. * @type array * @default [] */ "aoStateSaveParams": [], /** * Callbacks for modifying the settings that have been stored for state saving * prior to using the stored values to restore the state. * @type array * @default [] */ "aoStateLoadParams": [], /** * Callbacks for operating on the settings object once the saved state has been * loaded * @type array * @default [] */ "aoStateLoaded": [], /** * Cache the table ID for quick access * @type string * @default <i>Empty string</i> */ "sTableId": "", /** * The TABLE node for the main table * @type node * @default null */ "nTable": null, /** * Permanent ref to the thead element * @type node * @default null */ "nTHead": null, /** * Permanent ref to the tfoot element - if it exists * @type node * @default null */ "nTFoot": null, /** * Permanent ref to the tbody element * @type node * @default null */ "nTBody": null, /** * Cache the wrapper node (contains all DataTables controlled elements) * @type node * @default null */ "nTableWrapper": null, /** * Indicate if when using server-side processing the loading of data * should be deferred until the second draw. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean * @default false */ "bDeferLoading": false, /** * Indicate if all required information has been read in * @type boolean * @default false */ "bInitialised": false, /** * Information about open rows. Each object in the array has the parameters * 'nTr' and 'nParent' * @type array * @default [] */ "aoOpenRows": [], /** * Dictate the positioning of DataTables' control elements - see * {@link DataTable.model.oInit.sDom}. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string * @default null */ "sDom": null, /** * Search delay (in mS) * @type integer * @default null */ "searchDelay": null, /** * Which type of pagination should be used. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string * @default two_button */ "sPaginationType": "two_button", /** * The state duration (for `stateSave`) in seconds. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type int * @default 0 */ "iStateDuration": 0, /** * Array of callback functions for state saving. Each array element is an * object with the following parameters: * <ul> * <li>function:fn - function to call. Takes two parameters, oSettings * and the JSON string to save that has been thus far created. Returns * a JSON string to be inserted into a json object * (i.e. '"param": [ 0, 1, 2]')</li> * <li>string:sName - name of callback</li> * </ul> * @type array * @default [] */ "aoStateSave": [], /** * Array of callback functions for state loading. Each array element is an * object with the following parameters: * <ul> * <li>function:fn - function to call. Takes two parameters, oSettings * and the object stored. May return false to cancel state loading</li> * <li>string:sName - name of callback</li> * </ul> * @type array * @default [] */ "aoStateLoad": [], /** * State that was saved. Useful for back reference * @type object * @default null */ "oSavedState": null, /** * State that was loaded. Useful for back reference * @type object * @default null */ "oLoadedState": null, /** * Source url for AJAX data for the table. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string * @default null */ "sAjaxSource": null, /** * Property from a given object from which to read the table data from. This * can be an empty string (when not server-side processing), in which case * it is assumed an an array is given directly. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string */ "sAjaxDataProp": null, /** * Note if draw should be blocked while getting data * @type boolean * @default true */ "bAjaxDataGet": true, /** * The last jQuery XHR object that was used for server-side data gathering. * This can be used for working with the XHR information in one of the * callbacks * @type object * @default null */ "jqXHR": null, /** * JSON returned from the server in the last Ajax request * @type object * @default undefined */ "json": undefined, /** * Data submitted as part of the last Ajax request * @type object * @default undefined */ "oAjaxData": undefined, /** * Function to get the server-side data. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type function */ "fnServerData": null, /** * Functions which are called prior to sending an Ajax request so extra * parameters can easily be sent to the server * @type array * @default [] */ "aoServerParams": [], /** * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if * required). * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type string */ "sServerMethod": null, /** * Format numbers for display. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type function */ "fnFormatNumber": null, /** * List of options that can be used for the user selectable length menu. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type array * @default [] */ "aLengthMenu": null, /** * Counter for the draws that the table does. Also used as a tracker for * server-side processing * @type int * @default 0 */ "iDraw": 0, /** * Indicate if a redraw is being done - useful for Ajax * @type boolean * @default false */ "bDrawing": false, /** * Draw index (iDraw) of the last error when parsing the returned data * @type int * @default -1 */ "iDrawError": -1, /** * Paging display length * @type int * @default 10 */ "_iDisplayLength": 10, /** * Paging start point - aiDisplay index * @type int * @default 0 */ "_iDisplayStart": 0, /** * Server-side processing - number of records in the result set * (i.e. before filtering), Use fnRecordsTotal rather than * this property to get the value of the number of records, regardless of * the server-side processing setting. * @type int * @default 0 * @private */ "_iRecordsTotal": 0, /** * Server-side processing - number of records in the current display set * (i.e. after filtering). Use fnRecordsDisplay rather than * this property to get the value of the number of records, regardless of * the server-side processing setting. * @type boolean * @default 0 * @private */ "_iRecordsDisplay": 0, /** * The classes to use for the table * @type object * @default {} */ "oClasses": {}, /** * Flag attached to the settings object so you can check in the draw * callback if filtering has been done in the draw. Deprecated in favour of * events. * @type boolean * @default false * @deprecated */ "bFiltered": false, /** * Flag attached to the settings object so you can check in the draw * callback if sorting has been done in the draw. Deprecated in favour of * events. * @type boolean * @default false * @deprecated */ "bSorted": false, /** * Indicate that if multiple rows are in the header and there is more than * one unique cell per column, if the top one (true) or bottom one (false) * should be used for sorting / title by DataTables. * Note that this parameter will be set by the initialisation routine. To * set a default use {@link DataTable.defaults}. * @type boolean */ "bSortCellsTop": null, /** * Initialisation object that is used for the table * @type object * @default null */ "oInit": null, /** * Destroy callback functions - for plug-ins to attach themselves to the * destroy so they can clean up markup and events. * @type array * @default [] */ "aoDestroyCallback": [], /** * Get the number of records in the current record set, before filtering * @type function */ "fnRecordsTotal": function () { return _fnDataSource( this ) == 'ssp' ? this._iRecordsTotal * 1 : this.aiDisplayMaster.length; }, /** * Get the number of records in the current record set, after filtering * @type function */ "fnRecordsDisplay": function () { return _fnDataSource( this ) == 'ssp' ? this._iRecordsDisplay * 1 : this.aiDisplay.length; }, /** * Get the display end point - aiDisplay index * @type function */ "fnDisplayEnd": function () { var len = this._iDisplayLength, start = this._iDisplayStart, calc = start + len, records = this.aiDisplay.length, features = this.oFeatures, paginate = features.bPaginate; if ( features.bServerSide ) { return paginate === false || len === -1 ? start + records : Math.min( start+len, this._iRecordsDisplay ); } else { return ! paginate || calc>records || len===-1 ? records : calc; } }, /** * The DataTables object for this table * @type object * @default null */ "oInstance": null, /** * Unique identifier for each instance of the DataTables object. If there * is an ID on the table node, then it takes that value, otherwise an * incrementing internal counter is used. * @type string * @default null */ "sInstance": null, /** * tabindex attribute value that is added to DataTables control elements, allowing * keyboard navigation of the table and its controls. */ "iTabIndex": 0, /** * DIV container for the footer scrolling table if scrolling */ "nScrollHead": null, /** * DIV container for the footer scrolling table if scrolling */ "nScrollFoot": null, /** * Last applied sort * @type array * @default [] */ "aLastSort": [], /** * Stored plug-in instances * @type object * @default {} */ "oPlugins": {}, /** * Function used to get a row's id from the row's data * @type function * @default null */ "rowIdFn": null, /** * Data location where to store a row's id * @type string * @default null */ "rowId": null }; /** * Extension object for DataTables that is used to provide all extension * options. * * Note that the `DataTable.ext` object is available through * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is * also aliased to `jQuery.fn.dataTableExt` for historic reasons. * @namespace * @extends DataTable.models.ext */ /** * DataTables extensions * * This namespace acts as a collection area for plug-ins that can be used to * extend DataTables capabilities. Indeed many of the build in methods * use this method to provide their own capabilities (sorting methods for * example). * * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy * reasons * * @namespace */ DataTable.ext = _ext = { /** * Buttons. For use with the Buttons extension for DataTables. This is * defined here so other extensions can define buttons regardless of load * order. It is _not_ used by DataTables core. * * @type object * @default {} */ buttons: {}, /** * Element class names * * @type object * @default {} */ classes: {}, /** * DataTables build type (expanded by the download builder) * * @type string */ builder: "-source-", /** * Error reporting. * * How should DataTables report an error. Can take the value 'alert', * 'throw', 'none' or a function. * * @type string|function * @default alert */ errMode: "alert", /** * Feature plug-ins. * * This is an array of objects which describe the feature plug-ins that are * available to DataTables. These feature plug-ins are then available for * use through the `dom` initialisation option. * * Each feature plug-in is described by an object which must have the * following properties: * * * `fnInit` - function that is used to initialise the plug-in, * * `cFeature` - a character so the feature can be enabled by the `dom` * instillation option. This is case sensitive. * * The `fnInit` function has the following input parameters: * * 1. `{object}` DataTables settings object: see * {@link DataTable.models.oSettings} * * And the following return is expected: * * * {node|null} The element which contains your feature. Note that the * return may also be void if your plug-in does not require to inject any * DOM elements into DataTables control (`dom`) - for example this might * be useful when developing a plug-in which allows table control via * keyboard entry * * @type array * * @example * $.fn.dataTable.ext.features.push( { * "fnInit": function( oSettings ) { * return new TableTools( { "oDTSettings": oSettings } ); * }, * "cFeature": "T" * } ); */ feature: [], /** * Row searching. * * This method of searching is complimentary to the default type based * searching, and a lot more comprehensive as it allows you complete control * over the searching logic. Each element in this array is a function * (parameters described below) that is called for every row in the table, * and your logic decides if it should be included in the searching data set * or not. * * Searching functions have the following input parameters: * * 1. `{object}` DataTables settings object: see * {@link DataTable.models.oSettings} * 2. `{array|object}` Data for the row to be processed (same as the * original format that was passed in as the data source, or an array * from a DOM data source * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which * can be useful to retrieve the `TR` element if you need DOM interaction. * * And the following return is expected: * * * {boolean} Include the row in the searched result set (true) or not * (false) * * Note that as with the main search ability in DataTables, technically this * is "filtering", since it is subtractive. However, for consistency in * naming we call it searching here. * * @type array * @default [] * * @example * // The following example shows custom search being applied to the * // fourth column (i.e. the data[3] index) based on two input values * // from the end-user, matching the data in a certain range. * $.fn.dataTable.ext.search.push( * function( settings, data, dataIndex ) { * var min = document.getElementById('min').value * 1; * var max = document.getElementById('max').value * 1; * var version = data[3] == "-" ? 0 : data[3]*1; * * if ( min == "" && max == "" ) { * return true; * } * else if ( min == "" && version < max ) { * return true; * } * else if ( min < version && "" == max ) { * return true; * } * else if ( min < version && version < max ) { * return true; * } * return false; * } * ); */ search: [], /** * Selector extensions * * The `selector` option can be used to extend the options available for the * selector modifier options (`selector-modifier` object data type) that * each of the three built in selector types offer (row, column and cell + * their plural counterparts). For example the Select extension uses this * mechanism to provide an option to select only rows, columns and cells * that have been marked as selected by the end user (`{selected: true}`), * which can be used in conjunction with the existing built in selector * options. * * Each property is an array to which functions can be pushed. The functions * take three attributes: * * * Settings object for the host table * * Options object (`selector-modifier` object type) * * Array of selected item indexes * * The return is an array of the resulting item indexes after the custom * selector has been applied. * * @type object */ selector: { cell: [], column: [], row: [] }, /** * Internal functions, exposed for used in plug-ins. * * Please note that you should not need to use the internal methods for * anything other than a plug-in (and even then, try to avoid if possible). * The internal function may change between releases. * * @type object * @default {} */ internal: {}, /** * Legacy configuration options. Enable and disable legacy options that * are available in DataTables. * * @type object */ legacy: { /** * Enable / disable DataTables 1.9 compatible server-side processing * requests * * @type boolean * @default null */ ajax: null }, /** * Pagination plug-in methods. * * Each entry in this object is a function and defines which buttons should * be shown by the pagination rendering method that is used for the table: * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the * buttons are displayed in the document, while the functions here tell it * what buttons to display. This is done by returning an array of button * descriptions (what each button will do). * * Pagination types (the four built in options and any additional plug-in * options defined here) can be used through the `paginationType` * initialisation parameter. * * The functions defined take two parameters: * * 1. `{int} page` The current page index * 2. `{int} pages` The number of pages in the table * * Each function is expected to return an array where each element of the * array can be one of: * * * `first` - Jump to first page when activated * * `last` - Jump to last page when activated * * `previous` - Show previous page when activated * * `next` - Show next page when activated * * `{int}` - Show page of the index given * * `{array}` - A nested array containing the above elements to add a * containing 'DIV' element (might be useful for styling). * * Note that DataTables v1.9- used this object slightly differently whereby * an object with two functions would be defined for each plug-in. That * ability is still supported by DataTables 1.10+ to provide backwards * compatibility, but this option of use is now decremented and no longer * documented in DataTables 1.10+. * * @type object * @default {} * * @example * // Show previous, next and current page buttons only * $.fn.dataTableExt.oPagination.current = function ( page, pages ) { * return [ 'previous', page, 'next' ]; * }; */ pager: {}, renderer: { pageButton: {}, header: {} }, /** * Ordering plug-ins - custom data source * * The extension options for ordering of data available here is complimentary * to the default type based ordering that DataTables typically uses. It * allows much greater control over the the data that is being used to * order a column, but is necessarily therefore more complex. * * This type of ordering is useful if you want to do ordering based on data * live from the DOM (for example the contents of an 'input' element) rather * than just the static string that DataTables knows of. * * The way these plug-ins work is that you create an array of the values you * wish to be ordering for the column in question and then return that * array. The data in the array much be in the index order of the rows in * the table (not the currently ordering order!). Which order data gathering * function is run here depends on the `dt-init columns.orderDataType` * parameter that is used for the column (if any). * * The functions defined take two parameters: * * 1. `{object}` DataTables settings object: see * {@link DataTable.models.oSettings} * 2. `{int}` Target column index * * Each function is expected to return an array: * * * `{array}` Data for the column to be ordering upon * * @type array * * @example * // Ordering using `input` node values * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col ) * { * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) { * return $('input', td).val(); * } ); * } */ order: {}, /** * Type based plug-ins. * * Each column in DataTables has a type assigned to it, either by automatic * detection or by direct assignment using the `type` option for the column. * The type of a column will effect how it is ordering and search (plug-ins * can also make use of the column type if required). * * @namespace */ type: { /** * Type detection functions. * * The functions defined in this object are used to automatically detect * a column's type, making initialisation of DataTables super easy, even * when complex data is in the table. * * The functions defined take two parameters: * * 1. `{*}` Data from the column cell to be analysed * 2. `{settings}` DataTables settings object. This can be used to * perform context specific type detection - for example detection * based on language settings such as using a comma for a decimal * place. Generally speaking the options from the settings will not * be required * * Each function is expected to return: * * * `{string|null}` Data type detected, or null if unknown (and thus * pass it on to the other type detection functions. * * @type array * * @example * // Currency type detection plug-in: * $.fn.dataTable.ext.type.detect.push( * function ( data, settings ) { * // Check the numeric part * if ( ! data.substring(1).match(/[0-9]/) ) { * return null; * } * * // Check prefixed by currency * if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) { * return 'currency'; * } * return null; * } * ); */ detect: [], /** * Type based search formatting. * * The type based searching functions can be used to pre-format the * data to be search on. For example, it can be used to strip HTML * tags or to de-format telephone numbers for numeric only searching. * * Note that is a search is not defined for a column of a given type, * no search formatting will be performed. * * Pre-processing of searching data plug-ins - When you assign the sType * for a column (or have it automatically detected for you by DataTables * or a type detection plug-in), you will typically be using this for * custom sorting, but it can also be used to provide custom searching * by allowing you to pre-processing the data and returning the data in * the format that should be searched upon. This is done by adding * functions this object with a parameter name which matches the sType * for that target column. This is the corollary of <i>afnSortData</i> * for searching data. * * The functions defined take a single parameter: * * 1. `{*}` Data from the column cell to be prepared for searching * * Each function is expected to return: * * * `{string|null}` Formatted string that will be used for the searching. * * @type object * @default {} * * @example * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) { * return d.replace(/\n/g," ").replace( /<.*?>/g, "" ); * } */ search: {}, /** * Type based ordering. * * The column type tells DataTables what ordering to apply to the table * when a column is sorted upon. The order for each type that is defined, * is defined by the functions available in this object. * * Each ordering option can be described by three properties added to * this object: * * * `{type}-pre` - Pre-formatting function * * `{type}-asc` - Ascending order function * * `{type}-desc` - Descending order function * * All three can be used together, only `{type}-pre` or only * `{type}-asc` and `{type}-desc` together. It is generally recommended * that only `{type}-pre` is used, as this provides the optimal * implementation in terms of speed, although the others are provided * for compatibility with existing Javascript sort functions. * * `{type}-pre`: Functions defined take a single parameter: * * 1. `{*}` Data from the column cell to be prepared for ordering * * And return: * * * `{*}` Data to be sorted upon * * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort * functions, taking two parameters: * * 1. `{*}` Data to compare to the second parameter * 2. `{*}` Data to compare to the first parameter * * And returning: * * * `{*}` Ordering match: <0 if first parameter should be sorted lower * than the second parameter, ===0 if the two parameters are equal and * >0 if the first parameter should be sorted height than the second * parameter. * * @type object * @default {} * * @example * // Numeric ordering of formatted numbers with a pre-formatter * $.extend( $.fn.dataTable.ext.type.order, { * "string-pre": function(x) { * a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" ); * return parseFloat( a ); * } * } ); * * @example * // Case-sensitive string ordering, with no pre-formatting method * $.extend( $.fn.dataTable.ext.order, { * "string-case-asc": function(x,y) { * return ((x < y) ? -1 : ((x > y) ? 1 : 0)); * }, * "string-case-desc": function(x,y) { * return ((x < y) ? 1 : ((x > y) ? -1 : 0)); * } * } ); */ order: {} }, /** * Unique DataTables instance counter * * @type int * @private */ _unique: 0, // // Depreciated // The following properties are retained for backwards compatiblity only. // The should not be used in new projects and will be removed in a future // version // /** * Version check function. * @type function * @depreciated Since 1.10 */ fnVersionCheck: DataTable.fnVersionCheck, /** * Index for what 'this' index API functions should use * @type int * @deprecated Since v1.10 */ iApiIndex: 0, /** * jQuery UI class container * @type object * @deprecated Since v1.10 */ oJUIClasses: {}, /** * Software version * @type string * @deprecated Since v1.10 */ sVersion: DataTable.version }; // // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts // $.extend( _ext, { afnFiltering: _ext.search, aTypes: _ext.type.detect, ofnSearch: _ext.type.search, oSort: _ext.type.order, afnSortData: _ext.order, aoFeatures: _ext.feature, oApi: _ext.internal, oStdClasses: _ext.classes, oPagination: _ext.pager } ); $.extend( DataTable.ext.classes, { "sTable": "dataTable", "sNoFooter": "no-footer", /* Paging buttons */ "sPageButton": "paginate_button", "sPageButtonActive": "current", "sPageButtonDisabled": "disabled", /* Striping classes */ "sStripeOdd": "odd", "sStripeEven": "even", /* Empty row */ "sRowEmpty": "dataTables_empty", /* Features */ "sWrapper": "dataTables_wrapper", "sFilter": "dataTables_filter", "sInfo": "dataTables_info", "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */ "sLength": "dataTables_length", "sProcessing": "dataTables_processing", /* Sorting */ "sSortAsc": "sorting_asc", "sSortDesc": "sorting_desc", "sSortable": "sorting", /* Sortable in both directions */ "sSortableAsc": "sorting_asc_disabled", "sSortableDesc": "sorting_desc_disabled", "sSortableNone": "sorting_disabled", "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */ /* Filtering */ "sFilterInput": "", /* Page length */ "sLengthSelect": "", /* Scrolling */ "sScrollWrapper": "dataTables_scroll", "sScrollHead": "dataTables_scrollHead", "sScrollHeadInner": "dataTables_scrollHeadInner", "sScrollBody": "dataTables_scrollBody", "sScrollFoot": "dataTables_scrollFoot", "sScrollFootInner": "dataTables_scrollFootInner", /* Misc */ "sHeaderTH": "", "sFooterTH": "", // Deprecated "sSortJUIAsc": "", "sSortJUIDesc": "", "sSortJUI": "", "sSortJUIAscAllowed": "", "sSortJUIDescAllowed": "", "sSortJUIWrapper": "", "sSortIcon": "", "sJUIHeader": "", "sJUIFooter": "" } ); var extPagination = DataTable.ext.pager; function _numbers ( page, pages ) { var numbers = [], buttons = extPagination.numbers_length, half = Math.floor( buttons / 2 ), i = 1; if ( pages <= buttons ) { numbers = _range( 0, pages ); } else if ( page <= half ) { numbers = _range( 0, buttons-2 ); numbers.push( 'ellipsis' ); numbers.push( pages-1 ); } else if ( page >= pages - 1 - half ) { numbers = _range( pages-(buttons-2), pages ); numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6 numbers.splice( 0, 0, 0 ); } else { numbers = _range( page-half+2, page+half-1 ); numbers.push( 'ellipsis' ); numbers.push( pages-1 ); numbers.splice( 0, 0, 'ellipsis' ); numbers.splice( 0, 0, 0 ); } numbers.DT_el = 'span'; return numbers; } $.extend( extPagination, { simple: function ( page, pages ) { return [ 'previous', 'next' ]; }, full: function ( page, pages ) { return [ 'first', 'previous', 'next', 'last' ]; }, numbers: function ( page, pages ) { return [ _numbers(page, pages) ]; }, simple_numbers: function ( page, pages ) { return [ 'previous', _numbers(page, pages), 'next' ]; }, full_numbers: function ( page, pages ) { return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ]; }, first_last_numbers: function (page, pages) { return ['first', _numbers(page, pages), 'last']; }, // For testing and plug-ins to use _numbers: _numbers, // Number of number buttons (including ellipsis) to show. _Must be odd!_ numbers_length: 7 } ); $.extend( true, DataTable.ext.renderer, { pageButton: { _: function ( settings, host, idx, buttons, page, pages ) { var classes = settings.oClasses; var lang = settings.oLanguage.oPaginate; var aria = settings.oLanguage.oAria.paginate || {}; var btnDisplay, btnClass, counter=0; var attach = function( container, buttons ) { var i, ien, node, button; var clickHandler = function ( e ) { _fnPageChange( settings, e.data.action, true ); }; for ( i=0, ien=buttons.length ; i<ien ; i++ ) { button = buttons[i]; if ( $.isArray( button ) ) { var inner = $( '<'+(button.DT_el || 'div')+'/>' ) .appendTo( container ); attach( inner, button ); } else { btnDisplay = null; btnClass = ''; switch ( button ) { case 'ellipsis': container.append('<span class="ellipsis">&#x2026;</span>'); break; case 'first': btnDisplay = lang.sFirst; btnClass = button + (page > 0 ? '' : ' '+classes.sPageButtonDisabled); break; case 'previous': btnDisplay = lang.sPrevious; btnClass = button + (page > 0 ? '' : ' '+classes.sPageButtonDisabled); break; case 'next': btnDisplay = lang.sNext; btnClass = button + (page < pages-1 ? '' : ' '+classes.sPageButtonDisabled); break; case 'last': btnDisplay = lang.sLast; btnClass = button + (page < pages-1 ? '' : ' '+classes.sPageButtonDisabled); break; default: btnDisplay = button + 1; btnClass = page === button ? classes.sPageButtonActive : ''; break; } if ( btnDisplay !== null ) { node = $('<a>', { 'class': classes.sPageButton+' '+btnClass, 'aria-controls': settings.sTableId, 'aria-label': aria[ button ], 'data-dt-idx': counter, 'tabindex': settings.iTabIndex, 'id': idx === 0 && typeof button === 'string' ? settings.sTableId +'_'+ button : null } ) .html( btnDisplay ) .appendTo( container ); _fnBindAction( node, {action: button}, clickHandler ); counter++; } } } }; // IE9 throws an 'unknown error' if document.activeElement is used // inside an iframe or frame. Try / catch the error. Not good for // accessibility, but neither are frames. var activeEl; try { // Because this approach is destroying and recreating the paging // elements, focus is lost on the select button which is bad for // accessibility. So we want to restore focus once the draw has // completed activeEl = $(host).find(document.activeElement).data('dt-idx'); } catch (e) {} attach( $(host).empty(), buttons ); if ( activeEl !== undefined ) { $(host).find( '[data-dt-idx='+activeEl+']' ).focus(); } } } } ); // Built in type detection. See model.ext.aTypes for information about // what is required from this methods. $.extend( DataTable.ext.type.detect, [ // Plain numbers - first since V8 detects some plain numbers as dates // e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...). function ( d, settings ) { var decimal = settings.oLanguage.sDecimal; return _isNumber( d, decimal ) ? 'num'+decimal : null; }, // Dates (only those recognised by the browser's Date.parse) function ( d, settings ) { // V8 tries _very_ hard to make a string passed into `Date.parse()` // valid, so we need to use a regex to restrict date formats. Use a // plug-in for anything other than ISO8601 style strings if ( d && !(d instanceof Date) && ! _re_date.test(d) ) { return null; } var parsed = Date.parse(d); return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null; }, // Formatted numbers function ( d, settings ) { var decimal = settings.oLanguage.sDecimal; return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null; }, // HTML numeric function ( d, settings ) { var decimal = settings.oLanguage.sDecimal; return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null; }, // HTML numeric, formatted function ( d, settings ) { var decimal = settings.oLanguage.sDecimal; return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null; }, // HTML (this is strict checking - there must be html) function ( d, settings ) { return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ? 'html' : null; } ] ); // Filter formatting functions. See model.ext.ofnSearch for information about // what is required from these methods. // // Note that additional search methods are added for the html numbers and // html formatted numbers by `_addNumericSort()` when we know what the decimal // place is $.extend( DataTable.ext.type.search, { html: function ( data ) { return _empty(data) ? data : typeof data === 'string' ? data .replace( _re_new_lines, " " ) .replace( _re_html, "" ) : ''; }, string: function ( data ) { return _empty(data) ? data : typeof data === 'string' ? data.replace( _re_new_lines, " " ) : data; } } ); var __numericReplace = function ( d, decimalPlace, re1, re2 ) { if ( d !== 0 && (!d || d === '-') ) { return -Infinity; } // If a decimal place other than `.` is used, it needs to be given to the // function so we can detect it and replace with a `.` which is the only // decimal place Javascript recognises - it is not locale aware. if ( decimalPlace ) { d = _numToDecimal( d, decimalPlace ); } if ( d.replace ) { if ( re1 ) { d = d.replace( re1, '' ); } if ( re2 ) { d = d.replace( re2, '' ); } } return d * 1; }; // Add the numeric 'deformatting' functions for sorting and search. This is done // in a function to provide an easy ability for the language options to add // additional methods if a non-period decimal place is used. function _addNumericSort ( decimalPlace ) { $.each( { // Plain numbers "num": function ( d ) { return __numericReplace( d, decimalPlace ); }, // Formatted numbers "num-fmt": function ( d ) { return __numericReplace( d, decimalPlace, _re_formatted_numeric ); }, // HTML numeric "html-num": function ( d ) { return __numericReplace( d, decimalPlace, _re_html ); }, // HTML numeric, formatted "html-num-fmt": function ( d ) { return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric ); } }, function ( key, fn ) { // Add the ordering method _ext.type.order[ key+decimalPlace+'-pre' ] = fn; // For HTML types add a search formatter that will strip the HTML if ( key.match(/^html\-/) ) { _ext.type.search[ key+decimalPlace ] = _ext.type.search.html; } } ); } // Default sort methods $.extend( _ext.type.order, { // Dates "date-pre": function ( d ) { var ts = Date.parse( d ); return isNaN(ts) ? -Infinity : ts; }, // html "html-pre": function ( a ) { return _empty(a) ? '' : a.replace ? a.replace( /<.*?>/g, "" ).toLowerCase() : a+''; }, // string "string-pre": function ( a ) { // This is a little complex, but faster than always calling toString, // http://jsperf.com/tostring-v-check return _empty(a) ? '' : typeof a === 'string' ? a.toLowerCase() : ! a.toString ? '' : a.toString(); }, // string-asc and -desc are retained only for compatibility with the old // sort methods "string-asc": function ( x, y ) { return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }, "string-desc": function ( x, y ) { return ((x < y) ? 1 : ((x > y) ? -1 : 0)); } } ); // Numeric sorting types - order doesn't matter here _addNumericSort( '' ); $.extend( true, DataTable.ext.renderer, { header: { _: function ( settings, cell, column, classes ) { // No additional mark-up required // Attach a sort listener to update on sort - note that using the // `DT` namespace will allow the event to be removed automatically // on destroy, while the `dt` namespaced event is the one we are // listening for $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) { if ( settings !== ctx ) { // need to check this this is the host return; // table, not a nested one } var colIdx = column.idx; cell .removeClass( column.sSortingClass +' '+ classes.sSortAsc +' '+ classes.sSortDesc ) .addClass( columns[ colIdx ] == 'asc' ? classes.sSortAsc : columns[ colIdx ] == 'desc' ? classes.sSortDesc : column.sSortingClass ); } ); }, jqueryui: function ( settings, cell, column, classes ) { $('<div/>') .addClass( classes.sSortJUIWrapper ) .append( cell.contents() ) .append( $('<span/>') .addClass( classes.sSortIcon+' '+column.sSortingClassJUI ) ) .appendTo( cell ); // Attach a sort listener to update on sort $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) { if ( settings !== ctx ) { return; } var colIdx = column.idx; cell .removeClass( classes.sSortAsc +" "+classes.sSortDesc ) .addClass( columns[ colIdx ] == 'asc' ? classes.sSortAsc : columns[ colIdx ] == 'desc' ? classes.sSortDesc : column.sSortingClass ); cell .find( 'span.'+classes.sSortIcon ) .removeClass( classes.sSortJUIAsc +" "+ classes.sSortJUIDesc +" "+ classes.sSortJUI +" "+ classes.sSortJUIAscAllowed +" "+ classes.sSortJUIDescAllowed ) .addClass( columns[ colIdx ] == 'asc' ? classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ? classes.sSortJUIDesc : column.sSortingClassJUI ); } ); } } } ); /* * Public helper functions. These aren't used internally by DataTables, or * called by any of the options passed into DataTables, but they can be used * externally by developers working with DataTables. They are helper functions * to make working with DataTables a little bit easier. */ var __htmlEscapeEntities = function ( d ) { return typeof d === 'string' ? d.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') : d; }; /** * Helpers for `columns.render`. * * The options defined here can be used with the `columns.render` initialisation * option to provide a display renderer. The following functions are defined: * * * `number` - Will format numeric data (defined by `columns.data`) for * display, retaining the original unformatted data for sorting and filtering. * It takes 5 parameters: * * `string` - Thousands grouping separator * * `string` - Decimal point indicator * * `integer` - Number of decimal points to show * * `string` (optional) - Prefix. * * `string` (optional) - Postfix (/suffix). * * `text` - Escape HTML to help prevent XSS attacks. It has no optional * parameters. * * @example * // Column definition using the number renderer * { * data: "salary", * render: $.fn.dataTable.render.number( '\'', '.', 0, '$' ) * } * * @namespace */ DataTable.render = { number: function ( thousands, decimal, precision, prefix, postfix ) { return { display: function ( d ) { if ( typeof d !== 'number' && typeof d !== 'string' ) { return d; } var negative = d < 0 ? '-' : ''; var flo = parseFloat( d ); // If NaN then there isn't much formatting that we can do - just // return immediately, escaping any HTML (this was supposed to // be a number after all) if ( isNaN( flo ) ) { return __htmlEscapeEntities( d ); } flo = flo.toFixed( precision ); d = Math.abs( flo ); var intPart = parseInt( d, 10 ); var floatPart = precision ? decimal+(d - intPart).toFixed( precision ).substring( 2 ): ''; return negative + (prefix||'') + intPart.toString().replace( /\B(?=(\d{3})+(?!\d))/g, thousands ) + floatPart + (postfix||''); } }; }, text: function () { return { display: __htmlEscapeEntities, filter: __htmlEscapeEntities }; } }; /* * This is really a good bit rubbish this method of exposing the internal methods * publicly... - To be fixed in 2.0 using methods on the prototype */ /** * Create a wrapper function for exporting an internal functions to an external API. * @param {string} fn API function name * @returns {function} wrapped function * @memberof DataTable#internal */ function _fnExternApiFunc (fn) { return function() { var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat( Array.prototype.slice.call(arguments) ); return DataTable.ext.internal[fn].apply( this, args ); }; } /** * Reference to internal functions for use by plug-in developers. Note that * these methods are references to internal functions and are considered to be * private. If you use these methods, be aware that they are liable to change * between versions. * @namespace */ $.extend( DataTable.ext.internal, { _fnExternApiFunc: _fnExternApiFunc, _fnBuildAjax: _fnBuildAjax, _fnAjaxUpdate: _fnAjaxUpdate, _fnAjaxParameters: _fnAjaxParameters, _fnAjaxUpdateDraw: _fnAjaxUpdateDraw, _fnAjaxDataSrc: _fnAjaxDataSrc, _fnAddColumn: _fnAddColumn, _fnColumnOptions: _fnColumnOptions, _fnAdjustColumnSizing: _fnAdjustColumnSizing, _fnVisibleToColumnIndex: _fnVisibleToColumnIndex, _fnColumnIndexToVisible: _fnColumnIndexToVisible, _fnVisbleColumns: _fnVisbleColumns, _fnGetColumns: _fnGetColumns, _fnColumnTypes: _fnColumnTypes, _fnApplyColumnDefs: _fnApplyColumnDefs, _fnHungarianMap: _fnHungarianMap, _fnCamelToHungarian: _fnCamelToHungarian, _fnLanguageCompat: _fnLanguageCompat, _fnBrowserDetect: _fnBrowserDetect, _fnAddData: _fnAddData, _fnAddTr: _fnAddTr, _fnNodeToDataIndex: _fnNodeToDataIndex, _fnNodeToColumnIndex: _fnNodeToColumnIndex, _fnGetCellData: _fnGetCellData, _fnSetCellData: _fnSetCellData, _fnSplitObjNotation: _fnSplitObjNotation, _fnGetObjectDataFn: _fnGetObjectDataFn, _fnSetObjectDataFn: _fnSetObjectDataFn, _fnGetDataMaster: _fnGetDataMaster, _fnClearTable: _fnClearTable, _fnDeleteIndex: _fnDeleteIndex, _fnInvalidate: _fnInvalidate, _fnGetRowElements: _fnGetRowElements, _fnCreateTr: _fnCreateTr, _fnBuildHead: _fnBuildHead, _fnDrawHead: _fnDrawHead, _fnDraw: _fnDraw, _fnReDraw: _fnReDraw, _fnAddOptionsHtml: _fnAddOptionsHtml, _fnDetectHeader: _fnDetectHeader, _fnGetUniqueThs: _fnGetUniqueThs, _fnFeatureHtmlFilter: _fnFeatureHtmlFilter, _fnFilterComplete: _fnFilterComplete, _fnFilterCustom: _fnFilterCustom, _fnFilterColumn: _fnFilterColumn, _fnFilter: _fnFilter, _fnFilterCreateSearch: _fnFilterCreateSearch, _fnEscapeRegex: _fnEscapeRegex, _fnFilterData: _fnFilterData, _fnFeatureHtmlInfo: _fnFeatureHtmlInfo, _fnUpdateInfo: _fnUpdateInfo, _fnInfoMacros: _fnInfoMacros, _fnInitialise: _fnInitialise, _fnInitComplete: _fnInitComplete, _fnLengthChange: _fnLengthChange, _fnFeatureHtmlLength: _fnFeatureHtmlLength, _fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate, _fnPageChange: _fnPageChange, _fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing, _fnProcessingDisplay: _fnProcessingDisplay, _fnFeatureHtmlTable: _fnFeatureHtmlTable, _fnScrollDraw: _fnScrollDraw, _fnApplyToChildren: _fnApplyToChildren, _fnCalculateColumnWidths: _fnCalculateColumnWidths, _fnThrottle: _fnThrottle, _fnConvertToWidth: _fnConvertToWidth, _fnGetWidestNode: _fnGetWidestNode, _fnGetMaxLenString: _fnGetMaxLenString, _fnStringToCss: _fnStringToCss, _fnSortFlatten: _fnSortFlatten, _fnSort: _fnSort, _fnSortAria: _fnSortAria, _fnSortListener: _fnSortListener, _fnSortAttachListener: _fnSortAttachListener, _fnSortingClasses: _fnSortingClasses, _fnSortData: _fnSortData, _fnSaveState: _fnSaveState, _fnLoadState: _fnLoadState, _fnSettingsFromNode: _fnSettingsFromNode, _fnLog: _fnLog, _fnMap: _fnMap, _fnBindAction: _fnBindAction, _fnCallbackReg: _fnCallbackReg, _fnCallbackFire: _fnCallbackFire, _fnLengthOverflow: _fnLengthOverflow, _fnRenderer: _fnRenderer, _fnDataSource: _fnDataSource, _fnRowAttributes: _fnRowAttributes, _fnExtend: _fnExtend, _fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant // in 1.10, so this dead-end function is // added to prevent errors } ); // jQuery access $.fn.dataTable = DataTable; // Provide access to the host jQuery object (circular reference) DataTable.$ = $; // Legacy aliases $.fn.dataTableSettings = DataTable.settings; $.fn.dataTableExt = DataTable.ext; // With a capital `D` we return a DataTables API instance rather than a // jQuery object $.fn.DataTable = function ( opts ) { return $(this).dataTable( opts ).api(); }; // All properties that are available to $.fn.dataTable should also be // available on $.fn.DataTable $.each( DataTable, function ( prop, val ) { $.fn.DataTable[ prop ] = val; } ); // Information about events fired by DataTables - for documentation. /** * Draw event, fired whenever the table is redrawn on the page, at the same * point as fnDrawCallback. This may be useful for binding events or * performing calculations when the table is altered at all. * @name DataTable#draw.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * Search event, fired when the searching applied to the table (using the * built-in global search, or column filters) is altered. * @name DataTable#search.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * Page change event, fired when the paging of the table is altered. * @name DataTable#page.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * Order event, fired when the ordering applied to the table is altered. * @name DataTable#order.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * DataTables initialisation complete event, fired when the table is fully * drawn, including Ajax data loaded, if Ajax data is required. * @name DataTable#init.dt * @event * @param {event} e jQuery event object * @param {object} oSettings DataTables settings object * @param {object} json The JSON object request from the server - only * present if client-side Ajax sourced data is used</li></ol> */ /** * State save event, fired when the table has changed state a new state save * is required. This event allows modification of the state saving object * prior to actually doing the save, including addition or other state * properties (for plug-ins) or modification of a DataTables core property. * @name DataTable#stateSaveParams.dt * @event * @param {event} e jQuery event object * @param {object} oSettings DataTables settings object * @param {object} json The state information to be saved */ /** * State load event, fired when the table is loading state from the stored * data, but prior to the settings object being modified by the saved state * - allowing modification of the saved state is required or loading of * state for a plug-in. * @name DataTable#stateLoadParams.dt * @event * @param {event} e jQuery event object * @param {object} oSettings DataTables settings object * @param {object} json The saved state information */ /** * State loaded event, fired when state has been loaded from stored data and * the settings object has been modified by the loaded data. * @name DataTable#stateLoaded.dt * @event * @param {event} e jQuery event object * @param {object} oSettings DataTables settings object * @param {object} json The saved state information */ /** * Processing event, fired when DataTables is doing some kind of processing * (be it, order, searcg or anything else). It can be used to indicate to * the end user that there is something happening, or that something has * finished. * @name DataTable#processing.dt * @event * @param {event} e jQuery event object * @param {object} oSettings DataTables settings object * @param {boolean} bShow Flag for if DataTables is doing processing or not */ /** * Ajax (XHR) event, fired whenever an Ajax request is completed from a * request to made to the server for new data. This event is called before * DataTables processed the returned data, so it can also be used to pre- * process the data returned from the server, if needed. * * Note that this trigger is called in `fnServerData`, if you override * `fnServerData` and which to use this event, you need to trigger it in you * success function. * @name DataTable#xhr.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} * @param {object} json JSON returned from the server * * @example * // Use a custom property returned from the server in another DOM element * $('#table').dataTable().on('xhr.dt', function (e, settings, json) { * $('#status').html( json.status ); * } ); * * @example * // Pre-process the data returned from the server * $('#table').dataTable().on('xhr.dt', function (e, settings, json) { * for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) { * json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two; * } * // Note no return - manipulate the data directly in the JSON object. * } ); */ /** * Destroy event, fired when the DataTable is destroyed by calling fnDestroy * or passing the bDestroy:true parameter in the initialisation object. This * can be used to remove bound events, added DOM nodes, etc. * @name DataTable#destroy.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * Page length change event, fired when number of records to show on each * page (the length) is changed. * @name DataTable#length.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} * @param {integer} len New length */ /** * Column sizing has changed. * @name DataTable#column-sizing.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} */ /** * Column visibility has changed. * @name DataTable#column-visibility.dt * @event * @param {event} e jQuery event object * @param {object} o DataTables settings object {@link DataTable.models.oSettings} * @param {int} column Column index * @param {bool} vis `false` if column now hidden, or `true` if visible */ return $.fn.dataTable; }));
const {app} = require('electron') const {Client} = require('discord-rpc'); const {Analytics} = require("../analytics/sentry"); Analytics.init() module.exports = { connect: function (clientId) { if (!app.preferences.value('general.discordRPC').includes(true)) return; app.discord.client = new Client({ transport: "ipc", }); // Login to Discord app.discord.client.login({clientId}) .then(() => { console.log("[DiscordRPC][connect] Successfully Connected to Discord!"); app.discord.connected = true; if (app.discord.activityCache) { app.discord.client.setActivity(app.discord.activityCache).catch((e) => console.error(e)); app.discord.activityCache = null; } }) .catch((e) => console.error(`[DiscordRPC][connect] ${e}`)); // Handles Errors app.discord.client.on('error', err => { console.error(`[DiscordRPC][connect] Error: ${err}`); console.error(`[DiscordRPC][connect] Disconnecting from Discord.`) this.disconnect() app.discord.client = false; }); }, disconnect: function () { if (!app.preferences.value('general.discordRPC').includes(true)) return; console.log('[DiscordRPC][disconnect] Disconnecting from discord.') app.discord.client.destroy().catch((e) => console.error(`[DiscordRPC][disconnect] ${e}`)); }, updateActivity: function (attributes) { if (!app.preferences.value('general.discordRPC').includes(true)) return; if (!app.discord.connected) { this.connect() } console.log('[DiscordRPC][updateActivity] Updating Discord Activity.') if (!app.discord.connected) return; let ActivityObject = { details: attributes.name, state: `by ${attributes.artistName}`, startTimestamp: attributes.startTime, endTimestamp: attributes.endTime, largeImageKey: 'apple', largeImageText: attributes.albumName, smallImageKey: 'play', smallImageText: 'Playing', instance: false, }; if (!((new Date(attributes.endTime)).getTime() > 0)) { delete ActivityObject.startTimestamp delete ActivityObject.endTimestamp } if (!attributes.artistName) { delete ActivityObject.state } if (!attributes.albumName) { delete ActivityObject.largeImageText } if (attributes.status) { if (app.preferences.value('advanced.discordClearActivityOnPause').includes(true)) { delete ActivityObject.smallImageKey delete ActivityObject.smallImageText } } else { if (app.preferences.value('advanced.discordClearActivityOnPause').includes(true)) { app.discord.client.clearActivity().catch((e) => console.error(`[DiscordRPC][clearActivity] ${e}`)); ActivityObject = null } else { delete ActivityObject.startTimestamp delete ActivityObject.endTimestamp ActivityObject.smallImageKey = 'pause' ActivityObject.smallImageText = 'Paused' } } if (ActivityObject) { app.discord.client.setActivity(ActivityObject) } }, }
import React, { Component, useCallback } from "react"; import Dropzone, { useDropzone } from "react-dropzone"; import AdminUploadButton from "../AdminUploadButton"; // Container for holding uploaded file contents class AdminDropZone extends Component { constructor() { super(); this.onDrop = (files) => { this.setState({files}) }; this.state = { files: [] }; } render() { const files = this.state.files.map(file => ( <span key={file.name}> {file.name} - {file.size} bytes </span> )); return ( <Dropzone onDrop = {this.onDrop}> {({getRootProps, getInputProps}) => ( <section className="container"> <div {...getRootProps({ className: "dropzone" })}> <input {...getInputProps({ multiple: false })} /> <p className="dropzone-text">Drag and drop a file here, or click to select a file</p> </div> <aside> File selected: <br/> { files } </aside> <AdminUploadButton selectedFile={ this.state.files[0] }/> </section> )} </Dropzone> ); } } // function AdminDropZone() { // const onDrop = useCallback(acceptedFiles => { // const reader = new FileReader(); // reader.onabort = () => console.log('file reading was aborted'); // reader.onerror = () => console.log('file reading has failed'); // reader.onload = () => { // const binaryStr = reader.result; // // console.log(binaryStr); // jsonData = JSON.parse(binaryStr); // } // acceptedFiles.forEach(file => reader.readAsBinaryString(file)); // }, []); // const {getRootProps, getInputProps, isDragActive} = useDropzone({onDrop}); // return ( // <div id="ugly-hack-need-to-fix"> // <div {...getRootProps()} id="dropzone"> // <input {...getInputProps({ multiple: false })} id="drop-input" /> // { // isDragActive ? // <p>Drop new game file here ...</p> : // <p>Drag 'n' drop game file here, or click to select file</p> // } // </div> // <button id="upload-button" className="pure-button pure-button-primary" onClick={ API.uploadStory(jsonData) }>Upload File</button> // </div> // ) // } export default AdminDropZone;
/** * Brian Woodward * * Brian Woodward <http://github.com/doowb> * Created and maintained by Brian Woodward * * Copyright (c) 2014 Brian Woodward. * Licensed under the MIT License (MIT). */ /** * This code and some of the ideas in the code are inspired by the following * article from "25 days of AngularJS Calendar | 2013" * http://www.ng-newsletter.com/advent2013/#!/day/17 */ 'use strict'; angular.module('doowb.angular-pusher', []) // create a provider that loads the pusher script from a cdn .provider('PusherService', function () { var scriptUrl = '//js.pusher.com/2.1/pusher.min.js'; var scriptId = 'pusher-sdk'; var apiKey = ''; var initOptions = {}; this.setPusherUrl = function (url) { scriptUrl = url || scriptUrl; return this; }; this.setOptions = function (options) { initOptions = options || initOptions; return this; }; this.setToken = function (token) { apiKey = token || apiKey; return this; }; // load the pusher api script async function createScript ($document, callback, success) { var tag = $document.createElement('script'); tag.type = 'text/javascript'; tag.async = true; tag.id = scriptId; tag.src = scriptUrl; tag.onreadystatechange = tag.onload = function () { var state = tag.readState; if (!callback.done && (!state || /loaded|complete/.test(state))) { callback.done = true; callback(); } }; $document.getElementsByTagName('head')[0].appendChild(tag); } this.$get = ['$document', '$timeout', '$q', '$rootScope', '$window', function ($document, $timeout, $q, $rootScope, $window) { var deferred = $q.defer(); var socket; var pusher; function onSuccess () { pusher = new $window.Pusher(apiKey, initOptions); } var onScriptLoad = function (callback) { onSuccess(); $timeout(function () { deferred.resolve(pusher); }); }; createScript($document[0], onScriptLoad); return deferred.promise; }]; }) .factory('Pusher', ['$rootScope', 'PusherService', function ($rootScope, PusherService) { return { subscribe: function (channelName, eventName, callback) { PusherService.then(function (pusher) { var channel = pusher.channel(channelName) || pusher.subscribe(channelName); channel.bind(eventName, function (data) { if (callback) callback(data); $rootScope.$broadcast(channelName + ':' + eventName, data); $rootScope.$digest(); }); }); } }; } ]);
calculist.require(['Item','_','parseTextDoc','getNewGuid','transaction','itemOfFocus','itemsByGuid','calculistFileFormatter', 'emojiHelper'], function (Item, _, parseTextDoc, getNewGuid, transaction, itemOfFocus, itemsByGuid, calculistFileFormatter, emojiHelper) { Item.prototype.handlePaste = function(e, options) { if (this.mode != null) return; var content, selectionEnd, selectionStart, _ref, _ref1; // content = ? e : e.originalEvent.clipboardData.getData('text/plain'); // _ref = e.target, selectionStart = _ref.selectionStart, selectionEnd = _ref.selectionEnd; if (_.isString(e)) { content = e; } else { content = e.originalEvent.clipboardData.getData('text/plain'); e.preventDefault(); } content = content.replace(emojiHelper.emojiPattern, function (emoji) { return '\\emoji[' + emojiHelper.toCodePointString(emoji) + ']'; }); if (content.split('\n').length > 1) { transaction(function () { var isCalculistFile = options && options.isCalculistFile; var items = isCalculistFile ? calculistFileFormatter.parseFile(content) : parseTextDoc(content); var firstItem = items.shift(); if (itemOfFocus.is(this)) { this.insertTextAtCursor(firstItem.text); } else { this.changeText(firstItem.text); } if (isCalculistFile) { this.guid = firstItem.guid; itemsByGuid[this.guid] = this; } newChildren = firstItem.items.map((function(_this) { return function(item) { item.parent = _this; item.guid || (item.guid = getNewGuid()); return new Item(item); }; })(this)); this.items.unshift.apply(this.items, newChildren); this.refreshDepth(); if (items.length) { var parent = this.parent || this; _.reduce(items, function (previousSibling, item) { item.parent = parent; item.guid = getNewGuid(); item = new Item(item); parent.insertAfter(item, previousSibling); return item; }, this); parent.refreshDepth(); parent.renderChildren(); } else { this.renderChildren(); } this.focus(); }, this); } else { this.insertTextAtCursor(content); } }; });