diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 272b042d..00000000 --- a/.babelrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "presets": [ - [ - "env", - { - "modules": false, - "useBuiltIns": "entry" - } - ], - "stage-2" - ], - "plugins": ["transform-runtime", "lodash"], - "env": { - "test": { - "plugins": ["istanbul"] - } - } -} diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..be283eda --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +VUE_APP_FULL_BUNDLE=true +VUE_APP_DEV_PROJECT=["basic", "checklist", "custom", "full", "grouping", "multiselect", "multi", "picker"] diff --git a/.env.test b/.env.test new file mode 100644 index 00000000..cf57e409 --- /dev/null +++ b/.env.test @@ -0,0 +1 @@ +VUE_APP_FULL_BUNDLE=true diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index e05ca94d..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = { - root: true, - parser: "vue-eslint-parser", - parserOptions: { - sourceType: "module", - parser: "babel-eslint" - }, - env: { - browser: true, - commonjs: true - }, - globals: { - process: true - }, - extends: ["eslint:recommended", "prettier", "plugin:vue/essential"], - plugins: ["prettier", "babel"], - rules: { - indent: [1, "tab", { SwitchCase: 1 }], - quotes: [1, "double", { allowTemplateLiterals: true }], - semi: [2, "always"], - "no-var": [2], - "no-console": [0], - "no-unused-vars": [1], - "no-throw-literal": 0, - eqeqeq: [2, "smart"] - } -}; diff --git a/.gitignore b/.gitignore index 6c546dcb..041e95de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,22 @@ .DS_Store node_modules/ -docs/_book/ -npm-debug.log -selenium-debug.log -test/unit/coverage -test/e2e/reports -stats.json -typings/ -typings.json +dist/*.html +tests/unit/coverage + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw* diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 00000000..fdf8d343 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,4 @@ +module.exports = { + presets: ["@vue/app"], + plugins: ["lodash"] +}; diff --git a/build/utils.js b/build/utils.js deleted file mode 100644 index 414d5eb5..00000000 --- a/build/utils.js +++ /dev/null @@ -1,63 +0,0 @@ -let path = require("path"); -let ExtractTextPlugin = require("extract-text-webpack-plugin"); - -exports.cssLoaders = function(options) { - options = options || {}; - - let cssLoader = { - loader: "css-loader", - options: { - minimize: process.env.NODE_ENV === "production", - sourceMap: options.sourceMap - } - }; - - // generate loader string to be used with extract text plugin - function generateLoaders(loader, loaderOptions) { - let loaders = [cssLoader]; - if (loader) { - loaders.push({ - loader: loader + "-loader", - options: Object.assign({}, loaderOptions, { - sourceMap: options.sourceMap - }) - }); - } - - // Extract CSS when that option is specified - // (which is the case during production build) - if (options.extract) { - return ExtractTextPlugin.extract({ - use: loaders, - fallback: "vue-style-loader" - }); - } else { - return ["vue-style-loader"].concat(loaders); - } - } - - // https://vue-loader.vuejs.org/en/configurations/extract-css.html - return { - css: generateLoaders(), - postcss: generateLoaders(), - less: generateLoaders("less"), - sass: generateLoaders("sass", { indentedSyntax: true }), - scss: generateLoaders("sass"), - stylus: generateLoaders("stylus"), - styl: generateLoaders("stylus") - }; -}; - -// Generate loaders for standalone style files (outside of .vue) -exports.styleLoaders = function(options) { - let output = []; - let loaders = exports.cssLoaders(options); - for (let extension in loaders) { - let loader = loaders[extension]; - output.push({ - test: new RegExp("\\." + extension + "$"), - use: loader - }); - } - return output; -}; diff --git a/build/vue-loader.conf.js b/build/vue-loader.conf.js deleted file mode 100644 index ae4f2e8a..00000000 --- a/build/vue-loader.conf.js +++ /dev/null @@ -1,10 +0,0 @@ -let utils = require("./utils"); -let isProduction = process.env.NODE_ENV === "production"; - -module.exports = { - esModule: false, - loaders: utils.cssLoaders({ - sourceMap: false, - extract: isProduction - }) -}; diff --git a/build/webpack.build.config.js b/build/webpack.build.config.js deleted file mode 100644 index 57b8a53b..00000000 --- a/build/webpack.build.config.js +++ /dev/null @@ -1,104 +0,0 @@ -const path = require("path"); -const webpack = require("webpack"); -const utils = require("./utils"); -const version = require("../package.json").version; -const banner = - "/**\n" + - " * vue-form-generator v" + - version + - "\n" + - " * https://github.com/vue-generators/vue-form-generator/\n" + - " * Released under the MIT License.\n" + - " */\n"; -const ExtractTextPlugin = require("extract-text-webpack-plugin"); -const StatsPlugin = require("stats-webpack-plugin"); -const vueLoaderConfig = require("./vue-loader.conf"); - -let rules = [ - { - test: /\.(js|vue)$/, - loader: "eslint-loader", - enforce: "pre", - include: [path.resolve("src")], - options: { - formatter: require("eslint-friendly-formatter") - } - }, - { - test: /\.vue$/, - loader: "vue-loader", - include: [path.resolve("src")], - exclude: /node_modules/, - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: "babel-loader", - include: [path.resolve("src")], - exclude: /node_modules/ - }, - { - test: /\.(woff2?|svg)$/, - loader: "url-loader", - include: [path.resolve("src")] - }, - { - test: /\.(ttf|eot)$/, - loader: "url-loader", - include: [path.resolve("src")] - } -]; - -let cssFileName; -if (process.env.FULL_BUNDLE !== "false") { - cssFileName = "vfg.css"; -} else { - cssFileName = "vfg-core.css"; -} - -module.exports = [ - { - entry: "./src/index.js", - output: { - path: path.resolve("dist"), - filename: "vfg.js", - library: "VueFormGenerator", - libraryTarget: "umd" - }, - - plugins: [ - new webpack.DefinePlugin({ - "process.env": { - NODE_ENV: JSON.stringify("production") - } - }), - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false - } - }), - new webpack.BannerPlugin({ - banner, - raw: true - }), - new ExtractTextPlugin(cssFileName, { allChunks: true }), - new StatsPlugin("../stats.json", { - chunkModules: true - //exclude: [/node_modules[\\\/]react/] - }) - ], - - module: { - rules - }, - - resolve: { - aliasFields: ["browser"], - extensions: [".js", ".vue", ".json"], - alias: { - vue$: "vue/dist/vue.esm.js", - "@": path.resolve("src") - } - } - } -]; diff --git a/build/webpack.dev.config.js b/build/webpack.dev.config.js deleted file mode 100644 index dfced552..00000000 --- a/build/webpack.dev.config.js +++ /dev/null @@ -1,83 +0,0 @@ -const path = require("path"); -const webpack = require("webpack"); -const projectRoot = path.resolve(__dirname, "../"); -const vueLoaderConfig = require("./vue-loader.conf"); - -let rules = [ - { - test: /\.(js|vue)$/, - loader: "eslint-loader", - enforce: "pre", - include: [path.resolve("src"), path.resolve("dev")], - options: { - formatter: require("eslint-friendly-formatter") - } - }, - { - test: /\.vue$/, - loader: "vue-loader", - include: [path.resolve("src"), path.resolve("dev")], - exclude: /node_modules/, - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: "babel-loader", - include: [path.resolve("src"), path.resolve("dev")], - exclude: /node_modules/ - }, - { - test: /\.(woff2?|svg)$/, - loader: "url-loader", - include: [path.resolve("src"), path.resolve("dev")] - }, - { - test: /\.(ttf|eot)$/, - loader: "url-loader", - include: [path.resolve("src"), path.resolve("dev")] - } -]; - -module.exports = { - devtool: "source-map", - devServer: { - contentBase: [path.resolve("dev/projects")] - }, - entry: { - basic: path.resolve("dev", "projects", "basic", "main.js"), - checklist: path.resolve("dev", "projects", "checklist", "main.js"), - custom: path.resolve("dev", "projects", "custom", "main.js"), - full: path.resolve("dev", "projects", "full", "main.js"), - grouping: path.resolve("dev", "projects", "grouping", "main.js"), - mselect: path.resolve("dev", "projects", "multiselect", "main.js"), - multi: path.resolve("dev", "projects", "multi", "main.js"), - picker: path.resolve("dev", "projects", "picker", "main.js") - }, - - output: { - path: path.resolve("dev/projects"), - filename: "[name].js", - publicPath: "/" - }, - - plugins: [ - new webpack.DefinePlugin({ - "process.env": { - NODE_ENV: JSON.stringify("development"), - FULL_BUNDLE: true - } - }) - ], - - module: { - rules - }, - - resolve: { - extensions: [".js", ".vue", ".json"], - alias: { - vue$: "vue/dist/vue.esm.js", - "@": path.resolve("src") - } - } -}; diff --git a/build/webpack.test.config.js b/build/webpack.test.config.js deleted file mode 100644 index 32812ad9..00000000 --- a/build/webpack.test.config.js +++ /dev/null @@ -1,68 +0,0 @@ -const path = require("path"); -const vueLoaderConfig = require("./vue-loader.conf"); -const nodeExternals = require("webpack-node-externals"); - -let rules = [ - { - test: /\.(js|vue)$/, - loader: "eslint-loader", - enforce: "pre", - include: [path.resolve("src")], - options: { - formatter: require("eslint-friendly-formatter") - } - }, - { - test: /\.vue$/, - loader: "vue-loader", - include: [path.resolve("src"), path.resolve("test")], - exclude: /node_modules/, - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: "babel-loader", - include: [path.resolve("src"), path.resolve("test")], - exclude: /node_modules/ - }, - { - test: /\.(woff2?|svg)$/, - loader: "url-loader", - include: [path.resolve("src"), path.resolve("test")] - }, - { - test: /\.(ttf|eot)$/, - loader: "url-loader", - include: [path.resolve("src"), path.resolve("test")] - } -]; - -module.exports = { - devtool: "inline-cheap-module-source-map", - - entry: "./src/index.js", - - output: { - path: path.resolve("dist"), - filename: "vfg.js", - library: "VueFormGenerator", - libraryTarget: "umd" - }, - - module: { - rules - }, - - plugins: [], - - resolve: { - aliasFields: ["browser"], - extensions: [".js", ".vue", ".json"], - alias: { - vue$: "vue/dist/vue.esm.js", - src: path.resolve("src") - } - }, - - externals: [nodeExternals()] -}; diff --git a/dev/app.vue b/dev/app.vue new file mode 100644 index 00000000..db707222 --- /dev/null +++ b/dev/app.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/dev/index.js b/dev/index.js new file mode 100644 index 00000000..cc66d0ed --- /dev/null +++ b/dev/index.js @@ -0,0 +1,6 @@ +import Vue from "vue"; +import App from "./app.vue"; + +new Vue({ + render: (h) => h(App) +}).$mount("#app"); diff --git a/dev/mixins/utils.js b/dev/mixins/utils.js index 43de4913..edeea40c 100644 --- a/dev/mixins/utils.js +++ b/dev/mixins/utils.js @@ -1,33 +1,7 @@ export default { computed: { prettyModel() { - return this.prettyJSON(this.model); - } - }, - methods: { - prettyJSON(json) { - if (json) { - json = JSON.stringify(json, null, 4); - json = json - .replace(/&/g, "&") - .replace(//g, ">"); - return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g, function(match) { - let cls = "number"; - if (/^"/.test(match)) { - if (/:$/.test(match)) { - cls = "key"; - } else { - cls = "string"; - } - } else if (/true|false/.test(match)) { - cls = "boolean"; - } else if (/null/.test(match)) { - cls = "null"; - } - return "" + match + ""; - }); - } + return JSON.stringify(this.model, null, 4); } } }; diff --git a/dev/projects/basic/app.vue b/dev/projects/basic/app.vue index c01d7bdb..8b5b0594 100644 --- a/dev/projects/basic/app.vue +++ b/dev/projects/basic/app.vue @@ -8,7 +8,7 @@
-

+				
diff --git a/dev/projects/basic/index.html b/dev/projects/basic/index.html index 6d875116..32232395 100644 --- a/dev/projects/basic/index.html +++ b/dev/projects/basic/index.html @@ -2,21 +2,23 @@ - - vue-form-generator development - + + + <%= htmlWebpackPlugin.options.title %> + + + - - - - - + + + + + -
-
- +
+
- \ No newline at end of file + diff --git a/dev/projects/basic/main.js b/dev/projects/basic/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/basic/main.js +++ b/dev/projects/basic/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/checklist/app.vue b/dev/projects/checklist/app.vue index c013bfcc..9db66144 100644 --- a/dev/projects/checklist/app.vue +++ b/dev/projects/checklist/app.vue @@ -8,7 +8,7 @@
-

+				
diff --git a/dev/projects/checklist/index.html b/dev/projects/checklist/index.html index 153ed6bd..c81e2b07 100644 --- a/dev/projects/checklist/index.html +++ b/dev/projects/checklist/index.html @@ -2,15 +2,17 @@ - - vue-form-generator multiselect demo - + + + <%= htmlWebpackPlugin.options.title %> + + + -
-
- +
+
- \ No newline at end of file + diff --git a/dev/projects/checklist/main.js b/dev/projects/checklist/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/checklist/main.js +++ b/dev/projects/checklist/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/custom/app.vue b/dev/projects/custom/app.vue index 47f2a839..39cd1fa7 100644 --- a/dev/projects/custom/app.vue +++ b/dev/projects/custom/app.vue @@ -49,7 +49,7 @@
-

+				
diff --git a/dev/projects/custom/index.html b/dev/projects/custom/index.html index 22dec0f7..f07ee077 100644 --- a/dev/projects/custom/index.html +++ b/dev/projects/custom/index.html @@ -3,16 +3,18 @@ - vue-form-generator multiple forms demo + + <%= htmlWebpackPlugin.options.title %> + +
- diff --git a/dev/projects/custom/main.js b/dev/projects/custom/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/custom/main.js +++ b/dev/projects/custom/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/full/app.vue b/dev/projects/full/app.vue index 46bfaaec..2c7064a7 100644 --- a/dev/projects/full/app.vue +++ b/dev/projects/full/app.vue @@ -27,7 +27,7 @@
-

+				
diff --git a/dev/projects/full/dataTable.vue b/dev/projects/full/dataTable.vue index 72948bc2..d44eb421 100644 --- a/dev/projects/full/dataTable.vue +++ b/dev/projects/full/dataTable.vue @@ -36,7 +36,7 @@ export default { }, getRoleName(row) { - let role = find(roles, role => role.id === row.role); + let role = find(roles, (role) => role.id === row.role); return role ? role.name : ""; } } diff --git a/dev/projects/full/index.html b/dev/projects/full/index.html index 33d02d6f..f438f574 100644 --- a/dev/projects/full/index.html +++ b/dev/projects/full/index.html @@ -3,7 +3,10 @@ - vue-form-generator development + + <%= htmlWebpackPlugin.options.title %> + + @@ -39,7 +42,6 @@
- diff --git a/dev/projects/full/main.js b/dev/projects/full/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/full/main.js +++ b/dev/projects/full/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/grouping/app.vue b/dev/projects/grouping/app.vue index 9a81fb18..91b52ab7 100644 --- a/dev/projects/grouping/app.vue +++ b/dev/projects/grouping/app.vue @@ -8,7 +8,7 @@
-

+				
diff --git a/dev/projects/grouping/index.html b/dev/projects/grouping/index.html index 40518dd5..4395d467 100644 --- a/dev/projects/grouping/index.html +++ b/dev/projects/grouping/index.html @@ -2,15 +2,17 @@ - - vue-form-generator multiple forms demo - + + + <%= htmlWebpackPlugin.options.title %> + + + -
-
- +
+
- \ No newline at end of file + diff --git a/dev/projects/grouping/main.js b/dev/projects/grouping/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/grouping/main.js +++ b/dev/projects/grouping/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/multi/app.vue b/dev/projects/multi/app.vue index 694f86f5..3940d979 100644 --- a/dev/projects/multi/app.vue +++ b/dev/projects/multi/app.vue @@ -13,7 +13,7 @@
-

+				
diff --git a/dev/projects/multi/index.html b/dev/projects/multi/index.html index c9dde342..32232395 100644 --- a/dev/projects/multi/index.html +++ b/dev/projects/multi/index.html @@ -3,8 +3,11 @@ - vue-form-generator development + + <%= htmlWebpackPlugin.options.title %> + + @@ -16,7 +19,6 @@
- diff --git a/dev/projects/multi/main.js b/dev/projects/multi/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/multi/main.js +++ b/dev/projects/multi/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/multiselect/app.vue b/dev/projects/multiselect/app.vue index 4374ee4f..69600b21 100644 --- a/dev/projects/multiselect/app.vue +++ b/dev/projects/multiselect/app.vue @@ -8,7 +8,7 @@
-

+				
diff --git a/dev/projects/multiselect/index.html b/dev/projects/multiselect/index.html index c4963d50..81dfd0dc 100644 --- a/dev/projects/multiselect/index.html +++ b/dev/projects/multiselect/index.html @@ -2,17 +2,19 @@ - - vue-form-generator multiselect demo - - - + + + <%= htmlWebpackPlugin.options.title %> + + + + + -
-
- +
+
- \ No newline at end of file + diff --git a/dev/projects/multiselect/main.js b/dev/projects/multiselect/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/multiselect/main.js +++ b/dev/projects/multiselect/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/projects/picker/app.vue b/dev/projects/picker/app.vue index a94544f5..3631f83b 100644 --- a/dev/projects/picker/app.vue +++ b/dev/projects/picker/app.vue @@ -8,7 +8,7 @@
-

+				
diff --git a/dev/projects/picker/index.html b/dev/projects/picker/index.html index 5ce966c4..bbbe2995 100644 --- a/dev/projects/picker/index.html +++ b/dev/projects/picker/index.html @@ -2,26 +2,28 @@ - - vue-form-generator datePicker demo + + + <%= htmlWebpackPlugin.options.title %> + - - - + + + + - - - + + + - - + + -
-
- +
+
- \ No newline at end of file + diff --git a/dev/projects/picker/main.js b/dev/projects/picker/main.js index b63543ee..93c7785b 100644 --- a/dev/projects/picker/main.js +++ b/dev/projects/picker/main.js @@ -1,9 +1,13 @@ import Vue from "vue"; -import VueFormGenerator from "../../../src"; + +import VueFormGenerator from "@"; Vue.use(VueFormGenerator); +import VueHighlightJS from "vue-highlightjs"; +Vue.use(VueHighlightJS); + import App from "./app.vue"; new Vue({ - ...App + render: (h) => h(App) }).$mount("#app"); diff --git a/dev/style.scss b/dev/style.scss index 0dc91ccf..8d5d467c 100644 --- a/dev/style.scss +++ b/dev/style.scss @@ -1,4 +1,4 @@ -@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Open+Sans+Condensed:300&subset=latin,latin-ext); +@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,600,700&subset=latin-ext"); html { font-family: "Open Sans"; font-size: 14px; @@ -10,26 +10,6 @@ html { box-sizing: border-box; } -pre { - overflow: auto; - - .string { - color: #885800; - } - .number { - color: blue; - } - .boolean { - color: magenta; - } - .null { - color: red; - } - .key { - color: green; - } -} - .control-buttons { button { margin: 0.2em 0.3em; @@ -58,7 +38,7 @@ pre { } fieldset.vue-form-generator { - .form-group.half-width { + .form-element.half-width { width: 50%; } diff --git a/dist/vfg-core.common.js b/dist/vfg-core.common.js new file mode 100644 index 00000000..0a053449 --- /dev/null +++ b/dist/vfg-core.common.js @@ -0,0 +1,8754 @@ + +/** + * vue-form-generator 3.0.0-beta.4 + * https://github.com/vue-generators/vue-form-generator/ + * Released under the MIT License. + */ + +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "fae3"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "00ec": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cadf"); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("ac6a"); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a481"); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__); + + + +var fieldComponents = {}; + +var coreFields = __webpack_require__("c5d8"); + +var getCompName = function getCompName(key) { + return key.replace(/^\.\//, "").replace(/\.vue/, ""); +}; + +coreFields.keys().forEach(function (key) { + fieldComponents[getCompName(key)] = coreFields(key).default; +}); + +if (false) { var optionalFields; } + +/* harmony default export */ __webpack_exports__["default"] = (fieldComponents); + +/***/ }), + +/***/ "01f9": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var LIBRARY = __webpack_require__("2d00"); +var $export = __webpack_require__("5ca1"); +var redefine = __webpack_require__("2aba"); +var hide = __webpack_require__("32e9"); +var Iterators = __webpack_require__("84f2"); +var $iterCreate = __webpack_require__("41a0"); +var setToStringTag = __webpack_require__("7f20"); +var getPrototypeOf = __webpack_require__("38fd"); +var ITERATOR = __webpack_require__("2b4c")('iterator'); +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` +var FF_ITERATOR = '@@iterator'; +var KEYS = 'keys'; +var VALUES = 'values'; + +var returnThis = function () { return this; }; + +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { + $iterCreate(Constructor, NAME, next); + var getMethod = function (kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: return function keys() { return new Constructor(this, kind); }; + case VALUES: return function values() { return new Constructor(this, kind); }; + } return function entries() { return new Constructor(this, kind); }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); + } + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { return $native.call(this); }; + } + // Define iterator + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries + }; + if (FORCED) for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); + } + return methods; +}; + + +/***/ }), + +/***/ "03dd": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("91e9"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), + +/***/ "0644": +/***/ (function(module, exports, __webpack_require__) { + +var baseClone = __webpack_require__("3818"); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_SYMBOLS_FLAG = 4; + +/** + * This method is like `_.clone` except that it recursively clones `value`. + * + * @static + * @memberOf _ + * @since 1.0.0 + * @category Lang + * @param {*} value The value to recursively clone. + * @returns {*} Returns the deep cloned value. + * @see _.clone + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var deep = _.cloneDeep(objects); + * console.log(deep[0] === objects[0]); + * // => false + */ +function cloneDeep(value) { + return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); +} + +module.exports = cloneDeep; + + +/***/ }), + +/***/ "0b07": +/***/ (function(module, exports) { + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +module.exports = getValue; + + +/***/ }), + +/***/ "0bfb": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// 21.2.5.3 get RegExp.prototype.flags +var anObject = __webpack_require__("cb7c"); +module.exports = function () { + var that = anObject(this); + var result = ''; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.unicode) result += 'u'; + if (that.sticky) result += 'y'; + return result; +}; + + +/***/ }), + +/***/ "0d24": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "0d58": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.14 / 15.2.3.14 Object.keys(O) +var $keys = __webpack_require__("ce10"); +var enumBugKeys = __webpack_require__("e11e"); + +module.exports = Object.keys || function keys(O) { + return $keys(O, enumBugKeys); +}; + + +/***/ }), + +/***/ "0f0f": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("8eeb"), + keysIn = __webpack_require__("9934"); + +/** + * The base implementation of `_.assignIn` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssignIn(object, source) { + return object && copyObject(source, keysIn(source), object); +} + +module.exports = baseAssignIn; + + +/***/ }), + +/***/ "0f5c": +/***/ (function(module, exports, __webpack_require__) { + +var baseSet = __webpack_require__("159a"); + +/** + * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, + * it's created. Arrays are created for missing index properties while objects + * are created for all other missing properties. Use `_.setWith` to customize + * `path` creation. + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @returns {Object} Returns `object`. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.set(object, 'a[0].b.c', 4); + * console.log(object.a[0].b.c); + * // => 4 + * + * _.set(object, ['x', '0', 'y', 'z'], 5); + * console.log(object.x[0].y.z); + * // => 5 + */ +function set(object, path, value) { + return object == null ? object : baseSet(object, path, value); +} + +module.exports = set; + + +/***/ }), + +/***/ "100e": +/***/ (function(module, exports, __webpack_require__) { + +var identity = __webpack_require__("cd9d"), + overRest = __webpack_require__("2286"), + setToString = __webpack_require__("c1c9"); + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + return setToString(overRest(func, start, identity), func + ''); +} + +module.exports = baseRest; + + +/***/ }), + +/***/ "1041": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("8eeb"), + getSymbolsIn = __webpack_require__("a029"); + +/** + * Copies own and inherited symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbolsIn(source, object) { + return copyObject(source, getSymbolsIn(source), object); +} + +module.exports = copySymbolsIn; + + +/***/ }), + +/***/ "11e9": +/***/ (function(module, exports, __webpack_require__) { + +var pIE = __webpack_require__("52a7"); +var createDesc = __webpack_require__("4630"); +var toIObject = __webpack_require__("6821"); +var toPrimitive = __webpack_require__("6a99"); +var has = __webpack_require__("69a8"); +var IE8_DOM_DEFINE = __webpack_require__("c69a"); +var gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) try { + return gOPD(O, P); + } catch (e) { /* empty */ } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); +}; + + +/***/ }), + +/***/ "1310": +/***/ (function(module, exports) { + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return value != null && typeof value == 'object'; +} + +module.exports = isObjectLike; + + +/***/ }), + +/***/ "13ea": +/***/ (function(module, exports, __webpack_require__) { + +var baseKeys = __webpack_require__("03dd"), + getTag = __webpack_require__("42a2"), + isArguments = __webpack_require__("d370"), + isArray = __webpack_require__("6747"), + isArrayLike = __webpack_require__("30c9"), + isBuffer = __webpack_require__("0d24"), + isPrototype = __webpack_require__("eac5"), + isTypedArray = __webpack_require__("73ac"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + setTag = '[object Set]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if `value` is an empty object, collection, map, or set. + * + * Objects are considered empty if they have no own enumerable string keyed + * properties. + * + * Array-like values such as `arguments` objects, arrays, buffers, strings, or + * jQuery-like collections are considered empty if they have a `length` of `0`. + * Similarly, maps and sets are considered empty if they have a `size` of `0`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is empty, else `false`. + * @example + * + * _.isEmpty(null); + * // => true + * + * _.isEmpty(true); + * // => true + * + * _.isEmpty(1); + * // => true + * + * _.isEmpty([1, 2, 3]); + * // => false + * + * _.isEmpty({ 'a': 1 }); + * // => false + */ +function isEmpty(value) { + if (value == null) { + return true; + } + if (isArrayLike(value) && + (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || + isBuffer(value) || isTypedArray(value) || isArguments(value))) { + return !value.length; + } + var tag = getTag(value); + if (tag == mapTag || tag == setTag) { + return !value.size; + } + if (isPrototype(value)) { + return !baseKeys(value).length; + } + for (var key in value) { + if (hasOwnProperty.call(value, key)) { + return false; + } + } + return true; +} + +module.exports = isEmpty; + + +/***/ }), + +/***/ "1495": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("86cc"); +var anObject = __webpack_require__("cb7c"); +var getKeys = __webpack_require__("0d58"); + +module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + while (length > i) dP.f(O, P = keys[i++], Properties[P]); + return O; +}; + + +/***/ }), + +/***/ "1560": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldChecklist.vue?vue&type=template&id=acf2f6e8&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"attributes",rawName:"v-attributes",value:('wrapper'),expression:"'wrapper'"}],staticClass:"wrapper"},[(_vm.useListBox)?_c('div',{staticClass:"listbox form-control",attrs:{"disabled":_vm.disabled}},_vm._l((_vm.items),function(item){return _c('div',{staticClass:"list-row",class:{'is-checked': _vm.isItemChecked(item)}},[_c('label',[_c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],attrs:{"id":_vm.fieldID,"type":"checkbox","disabled":_vm.disabled,"name":_vm.getInputName(item)},domProps:{"checked":_vm.isItemChecked(item)},on:{"change":function($event){_vm.onChanged($event, item)}}}),_vm._v(_vm._s(_vm.getItemName(item)))])])})):_vm._e(),(!_vm.useListBox)?_c('div',{staticClass:"combobox form-control",attrs:{"disabled":_vm.disabled}},[_c('div',{staticClass:"mainRow",class:{ expanded: _vm.comboExpanded },on:{"click":_vm.onExpandCombo}},[_c('div',{staticClass:"info"},[_vm._v(_vm._s(_vm.selectedCount)+" selected")]),_c('div',{staticClass:"arrow"})]),_c('div',{staticClass:"dropList"},_vm._l((_vm.items),function(item){return (_vm.comboExpanded)?_c('div',{staticClass:"list-row",class:{'is-checked': _vm.isItemChecked(item)}},[_c('label',[_c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],attrs:{"id":_vm.fieldID,"type":"checkbox","disabled":_vm.disabled,"name":_vm.getInputName(item)},domProps:{"checked":_vm.isItemChecked(item)},on:{"change":function($event){_vm.onChanged($event, item)}}}),_vm._v(_vm._s(_vm.getItemName(item)))])]):_vm._e()}))]):_vm._e()])} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=acf2f6e8&lang=pug& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js +var es6_function_name = __webpack_require__("7f7f"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js +var web_dom_iterable = __webpack_require__("ac6a"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js +var es6_array_iterator = __webpack_require__("cadf"); + +// EXTERNAL MODULE: ./node_modules/lodash/clone.js +var clone = __webpack_require__("b8ce"); +var clone_default = /*#__PURE__*/__webpack_require__.n(clone); + +// EXTERNAL MODULE: ./node_modules/lodash/isNil.js +var isNil = __webpack_require__("2768"); +var isNil_default = /*#__PURE__*/__webpack_require__.n(isNil); + +// EXTERNAL MODULE: ./node_modules/lodash/isObject.js +var isObject = __webpack_require__("1a8c"); +var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// EXTERNAL MODULE: ./src/utils/schema.js +var schema = __webpack_require__("d2e7"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldChecklist.vue?vue&type=script&lang=js& + + + + + + + + +/* harmony default export */ var fieldChecklistvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + data: function data() { + return { + comboExpanded: false + }; + }, + computed: { + items: function items() { + var values = this.schema.values; + + if (typeof values == "function") { + return values.apply(this, [this.model, this.schema]); + } else return values; + }, + selectedCount: function selectedCount() { + if (this.value) return this.value.length; + return 0; + }, + useListBox: function useListBox() { + return this.fieldOptions.listBox; + } + }, + methods: { + getInputName: function getInputName(item) { + if (this.inputName && this.inputName.length > 0) { + return Object(schema["slugify"])(this.inputName + "_" + this.getItemValue(item)); + } + + return Object(schema["slugify"])(this.getItemValue(item)); + }, + getItemValue: function getItemValue(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["value"] !== "undefined") { + return item[this.fieldOptions.value]; + } else { + if (typeof item["value"] !== "undefined") { + return item.value; + } else { + throw "`value` is not defined. If you want to use another key name, add a `value` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"; + } + } + } else { + return item; + } + }, + getItemName: function getItemName(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["name"] !== "undefined") { + return item[this.fieldOptions.name]; + } else { + if (typeof item["name"] !== "undefined") { + return item.name; + } else { + throw "`name` is not defined. If you want to use another key name, add a `name` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"; + } + } + } else { + return item; + } + }, + isItemChecked: function isItemChecked(item) { + return this.value && this.value.indexOf(this.getItemValue(item)) !== -1; + }, + onChanged: function onChanged(event, item) { + var isChecked = event.target.checked; + + if (isNil_default()(this.value) || !Array.isArray(this.value)) { + this.value = []; + } + + if (isChecked) { + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var arr = clone_default()(this.value); + + arr.push(this.getItemValue(item)); + this.value = arr; + } else { + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var _arr = clone_default()(this.value); + + _arr.splice(this.value.indexOf(this.getItemValue(item)), 1); + + this.value = _arr; + } + }, + onExpandCombo: function onExpandCombo() { + this.comboExpanded = !this.comboExpanded; + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldChecklistvue_type_script_lang_js_ = (fieldChecklistvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=style&index=0&lang=scss& +var fieldChecklistvue_type_style_index_0_lang_scss_ = __webpack_require__("3f6b"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldChecklistvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldChecklist.vue" +/* harmony default export */ var fieldChecklist = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "159a": +/***/ (function(module, exports, __webpack_require__) { + +var assignValue = __webpack_require__("32b3"), + castPath = __webpack_require__("e2e4"), + isIndex = __webpack_require__("c098"), + isObject = __webpack_require__("1a8c"), + toKey = __webpack_require__("f4d6"); + +/** + * The base implementation of `_.set`. + * + * @private + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {*} value The value to set. + * @param {Function} [customizer] The function to customize path creation. + * @returns {Object} Returns `object`. + */ +function baseSet(object, path, value, customizer) { + if (!isObject(object)) { + return object; + } + path = castPath(path, object); + + var index = -1, + length = path.length, + lastIndex = length - 1, + nested = object; + + while (nested != null && ++index < length) { + var key = toKey(path[index]), + newValue = value; + + if (index != lastIndex) { + var objValue = nested[key]; + newValue = customizer ? customizer(objValue, key, nested) : undefined; + if (newValue === undefined) { + newValue = isObject(objValue) + ? objValue + : (isIndex(path[index + 1]) ? [] : {}); + } + } + assignValue(nested, key, newValue); + nested = nested[key]; + } + return object; +} + +module.exports = baseSet; + + +/***/ }), + +/***/ "1991": +/***/ (function(module, exports, __webpack_require__) { + +var ctx = __webpack_require__("9b43"); +var invoke = __webpack_require__("31f4"); +var html = __webpack_require__("fab2"); +var cel = __webpack_require__("230e"); +var global = __webpack_require__("7726"); +var process = global.process; +var setTask = global.setImmediate; +var clearTask = global.clearImmediate; +var MessageChannel = global.MessageChannel; +var Dispatch = global.Dispatch; +var counter = 0; +var queue = {}; +var ONREADYSTATECHANGE = 'onreadystatechange'; +var defer, channel, port; +var run = function () { + var id = +this; + // eslint-disable-next-line no-prototype-builtins + if (queue.hasOwnProperty(id)) { + var fn = queue[id]; + delete queue[id]; + fn(); + } +}; +var listener = function (event) { + run.call(event.data); +}; +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: +if (!setTask || !clearTask) { + setTask = function setImmediate(fn) { + var args = []; + var i = 1; + while (arguments.length > i) args.push(arguments[i++]); + queue[++counter] = function () { + // eslint-disable-next-line no-new-func + invoke(typeof fn == 'function' ? fn : Function(fn), args); + }; + defer(counter); + return counter; + }; + clearTask = function clearImmediate(id) { + delete queue[id]; + }; + // Node.js 0.8- + if (__webpack_require__("2d95")(process) == 'process') { + defer = function (id) { + process.nextTick(ctx(run, id, 1)); + }; + // Sphere (JS game engine) Dispatch API + } else if (Dispatch && Dispatch.now) { + defer = function (id) { + Dispatch.now(ctx(run, id, 1)); + }; + // Browsers with MessageChannel, includes WebWorkers + } else if (MessageChannel) { + channel = new MessageChannel(); + port = channel.port2; + channel.port1.onmessage = listener; + defer = ctx(port.postMessage, port, 1); + // Browsers with postMessage, skip WebWorkers + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' + } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { + defer = function (id) { + global.postMessage(id + '', '*'); + }; + global.addEventListener('message', listener, false); + // IE8- + } else if (ONREADYSTATECHANGE in cel('script')) { + defer = function (id) { + html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { + html.removeChild(this); + run.call(id); + }; + }; + // Rest old browsers + } else { + defer = function (id) { + setTimeout(ctx(run, id, 1), 0); + }; + } +} +module.exports = { + set: setTask, + clear: clearTask +}; + + +/***/ }), + +/***/ "1a8c": +/***/ (function(module, exports) { + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +module.exports = isObject; + + +/***/ }), + +/***/ "1bac": +/***/ (function(module, exports) { + +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +module.exports = nativeKeysIn; + + +/***/ }), + +/***/ "1eb2": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +// This file is imported into lib/wc client bundles. + +if (typeof window !== 'undefined') { + var i + if ((i = window.document.currentScript) && (i = i.src.match(/(.+\/)[^/]+\.js$/))) { + __webpack_require__.p = i[1] // eslint-disable-line + } +} + +// Indicate to webpack that this file can be concatenated +/* unused harmony default export */ var _unused_webpack_default_export = (null); + + +/***/ }), + +/***/ "1fa8": +/***/ (function(module, exports, __webpack_require__) { + +// call something on iterator step with safe closing on error +var anObject = __webpack_require__("cb7c"); +module.exports = function (iterator, fn, value, entries) { + try { + return entries ? fn(anObject(value)[0], value[1]) : fn(value); + // 7.4.6 IteratorClose(iterator, completion) + } catch (e) { + var ret = iterator['return']; + if (ret !== undefined) anObject(ret.call(iterator)); + throw e; + } +}; + + +/***/ }), + +/***/ "214f": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var hide = __webpack_require__("32e9"); +var redefine = __webpack_require__("2aba"); +var fails = __webpack_require__("79e5"); +var defined = __webpack_require__("be13"); +var wks = __webpack_require__("2b4c"); + +module.exports = function (KEY, length, exec) { + var SYMBOL = wks(KEY); + var fns = exec(defined, SYMBOL, ''[KEY]); + var strfn = fns[0]; + var rxfn = fns[1]; + if (fails(function () { + var O = {}; + O[SYMBOL] = function () { return 7; }; + return ''[KEY](O) != 7; + })) { + redefine(String.prototype, KEY, strfn); + hide(RegExp.prototype, SYMBOL, length == 2 + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) + // 21.2.5.11 RegExp.prototype[@@split](string, limit) + ? function (string, arg) { return rxfn.call(string, this, arg); } + // 21.2.5.6 RegExp.prototype[@@match](string) + // 21.2.5.9 RegExp.prototype[@@search](string) + : function (string) { return rxfn.call(string, this); } + ); + } +}; + + +/***/ }), + +/***/ "2286": +/***/ (function(module, exports, __webpack_require__) { + +var apply = __webpack_require__("85e3"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * A specialized version of `baseRest` which transforms the rest array. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @param {Function} transform The rest array transform. + * @returns {Function} Returns the new function. + */ +function overRest(func, start, transform) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = transform(array); + return apply(func, this, otherArgs); + }; +} + +module.exports = overRest; + + +/***/ }), + +/***/ "230e": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("d3f4"); +var document = __webpack_require__("7726").document; +// typeof document.createElement is 'object' in old IE +var is = isObject(document) && isObject(document.createElement); +module.exports = function (it) { + return is ? document.createElement(it) : {}; +}; + + +/***/ }), + +/***/ "23c6": +/***/ (function(module, exports, __webpack_require__) { + +// getting tag from 19.1.3.6 Object.prototype.toString() +var cof = __webpack_require__("2d95"); +var TAG = __webpack_require__("2b4c")('toStringTag'); +// ES3 wrong here +var ARG = cof(function () { return arguments; }()) == 'Arguments'; + +// fallback for IE11 Script Access Denied error +var tryGet = function (it, key) { + try { + return it[key]; + } catch (e) { /* empty */ } +}; + +module.exports = function (it) { + var O, T, B; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T + // builtinTag case + : ARG ? cof(O) + // ES3 arguments fallback + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; +}; + + +/***/ }), + +/***/ "260c": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "2768": +/***/ (function(module, exports) { + +/** + * Checks if `value` is `null` or `undefined`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is nullish, else `false`. + * @example + * + * _.isNil(null); + * // => true + * + * _.isNil(void 0); + * // => true + * + * _.isNil(NaN); + * // => false + */ +function isNil(value) { + return value == null; +} + +module.exports = isNil; + + +/***/ }), + +/***/ "2769": +/***/ (function(module, exports, __webpack_require__) { + +var createFind = __webpack_require__("5ca0"), + findIndex = __webpack_require__("51f5"); + +/** + * Iterates over elements of `collection`, returning the first element + * `predicate` returns truthy for. The predicate is invoked with three + * arguments: (value, index|key, collection). + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Collection + * @param {Array|Object} collection The collection to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {*} Returns the matched element, else `undefined`. + * @example + * + * var users = [ + * { 'user': 'barney', 'age': 36, 'active': true }, + * { 'user': 'fred', 'age': 40, 'active': false }, + * { 'user': 'pebbles', 'age': 1, 'active': true } + * ]; + * + * _.find(users, function(o) { return o.age < 40; }); + * // => object for 'barney' + * + * // The `_.matches` iteratee shorthand. + * _.find(users, { 'age': 1, 'active': true }); + * // => object for 'pebbles' + * + * // The `_.matchesProperty` iteratee shorthand. + * _.find(users, ['active', false]); + * // => object for 'fred' + * + * // The `_.property` iteratee shorthand. + * _.find(users, 'active'); + * // => object for 'barney' + */ +var find = createFind(findIndex); + +module.exports = find; + + +/***/ }), + +/***/ "27ee": +/***/ (function(module, exports, __webpack_require__) { + +var classof = __webpack_require__("23c6"); +var ITERATOR = __webpack_require__("2b4c")('iterator'); +var Iterators = __webpack_require__("84f2"); +module.exports = __webpack_require__("8378").getIteratorMethod = function (it) { + if (it != undefined) return it[ITERATOR] + || it['@@iterator'] + || Iterators[classof(it)]; +}; + + +/***/ }), + +/***/ "2877": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; }); +/* globals __VUE_SSR_CONTEXT__ */ + +// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). +// This module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle. + +function normalizeComponent ( + scriptExports, + render, + staticRenderFns, + functionalTemplate, + injectStyles, + scopeId, + moduleIdentifier, /* server only */ + shadowMode /* vue-cli only */ +) { + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (render) { + options.render = render + options.staticRenderFns = staticRenderFns + options._compiled = true + } + + // functional template + if (functionalTemplate) { + options.functional = true + } + + // scopedId + if (scopeId) { + options._scopeId = 'data-v-' + scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = shadowMode + ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } + : injectStyles + } + + if (hook) { + if (options.functional) { + // for template-only hot-reload because in that case the render fn doesn't + // go through the normalizer + options._injectStyles = hook + // register for functioal component in vue file + var originalRender = options.render + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return originalRender(h, context) + } + } else { + // inject component registration as beforeCreate hook + var existing = options.beforeCreate + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } + } + + return { + exports: scriptExports, + options: options + } +} + + +/***/ }), + +/***/ "28a5": +/***/ (function(module, exports, __webpack_require__) { + +// @@split logic +__webpack_require__("214f")('split', 2, function (defined, SPLIT, $split) { + 'use strict'; + var isRegExp = __webpack_require__("aae3"); + var _split = $split; + var $push = [].push; + var $SPLIT = 'split'; + var LENGTH = 'length'; + var LAST_INDEX = 'lastIndex'; + if ( + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || + '.'[$SPLIT](/()()/)[LENGTH] > 1 || + ''[$SPLIT](/.?/)[LENGTH] + ) { + var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group + // based on es5-shim implementation, need to rework it + $split = function (separator, limit) { + var string = String(this); + if (separator === undefined && limit === 0) return []; + // If `separator` is not a regex, use native split + if (!isRegExp(separator)) return _split.call(string, separator, limit); + var output = []; + var flags = (separator.ignoreCase ? 'i' : '') + + (separator.multiline ? 'm' : '') + + (separator.unicode ? 'u' : '') + + (separator.sticky ? 'y' : ''); + var lastLastIndex = 0; + var splitLimit = limit === undefined ? 4294967295 : limit >>> 0; + // Make `global` and avoid `lastIndex` issues by working with a copy + var separatorCopy = new RegExp(separator.source, flags + 'g'); + var separator2, match, lastIndex, lastLength, i; + // Doesn't need flags gy, but they don't hurt + if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags); + while (match = separatorCopy.exec(string)) { + // `separatorCopy.lastIndex` is not reliable cross-browser + lastIndex = match.index + match[0][LENGTH]; + if (lastIndex > lastLastIndex) { + output.push(string.slice(lastLastIndex, match.index)); + // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG + // eslint-disable-next-line no-loop-func + if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () { + for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined; + }); + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); + lastLength = match[0][LENGTH]; + lastLastIndex = lastIndex; + if (output[LENGTH] >= splitLimit) break; + } + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop + } + if (lastLastIndex === string[LENGTH]) { + if (lastLength || !separatorCopy.test('')) output.push(''); + } else output.push(string.slice(lastLastIndex)); + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; + }; + // Chakra, V8 + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { + $split = function (separator, limit) { + return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit); + }; + } + // 21.1.3.17 String.prototype.split(separator, limit) + return [function split(separator, limit) { + var O = defined(this); + var fn = separator == undefined ? undefined : separator[SPLIT]; + return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit); + }, $split]; +}); + + +/***/ }), + +/***/ "28c9": +/***/ (function(module, exports) { + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; + this.size = 0; +} + +module.exports = listCacheClear; + + +/***/ }), + +/***/ "2aba": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("7726"); +var hide = __webpack_require__("32e9"); +var has = __webpack_require__("69a8"); +var SRC = __webpack_require__("ca5a")('src'); +var TO_STRING = 'toString'; +var $toString = Function[TO_STRING]; +var TPL = ('' + $toString).split(TO_STRING); + +__webpack_require__("8378").inspectSource = function (it) { + return $toString.call(it); +}; + +(module.exports = function (O, key, val, safe) { + var isFunction = typeof val == 'function'; + if (isFunction) has(val, 'name') || hide(val, 'name', key); + if (O[key] === val) return; + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if (O === global) { + O[key] = val; + } else if (!safe) { + delete O[key]; + hide(O, key, val); + } else if (O[key]) { + O[key] = val; + } else { + hide(O, key, val); + } +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +})(Function.prototype, TO_STRING, function toString() { + return typeof this == 'function' && this[SRC] || $toString.call(this); +}); + + +/***/ }), + +/***/ "2aeb": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) +var anObject = __webpack_require__("cb7c"); +var dPs = __webpack_require__("1495"); +var enumBugKeys = __webpack_require__("e11e"); +var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); +var Empty = function () { /* empty */ }; +var PROTOTYPE = 'prototype'; + +// Create object with fake `null` prototype: use iframe Object with cleared prototype +var createDict = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__("230e")('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__("fab2").appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); +}; + +module.exports = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); +}; + + +/***/ }), + +/***/ "2b03": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +module.exports = baseFindIndex; + + +/***/ }), + +/***/ "2b3e": +/***/ (function(module, exports, __webpack_require__) { + +var freeGlobal = __webpack_require__("585a"); + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +module.exports = root; + + +/***/ }), + +/***/ "2b4c": +/***/ (function(module, exports, __webpack_require__) { + +var store = __webpack_require__("5537")('wks'); +var uid = __webpack_require__("ca5a"); +var Symbol = __webpack_require__("7726").Symbol; +var USE_SYMBOL = typeof Symbol == 'function'; + +var $exports = module.exports = function (name) { + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; + +$exports.store = store; + + +/***/ }), + +/***/ "2c4d": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "2d00": +/***/ (function(module, exports) { + +module.exports = false; + + +/***/ }), + +/***/ "2d95": +/***/ (function(module, exports) { + +var toString = {}.toString; + +module.exports = function (it) { + return toString.call(it).slice(8, -1); +}; + + +/***/ }), + +/***/ "2dcb": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("91e9"); + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +module.exports = getPrototype; + + +/***/ }), + +/***/ "30c9": +/***/ (function(module, exports, __webpack_require__) { + +var isFunction = __webpack_require__("9520"), + isLength = __webpack_require__("b218"); + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +module.exports = isArrayLike; + + +/***/ }), + +/***/ "31f4": +/***/ (function(module, exports) { + +// fast apply, http://jsperf.lnkit.com/fast-apply/5 +module.exports = function (fn, args, that) { + var un = that === undefined; + switch (args.length) { + case 0: return un ? fn() + : fn.call(that); + case 1: return un ? fn(args[0]) + : fn.call(that, args[0]); + case 2: return un ? fn(args[0], args[1]) + : fn.call(that, args[0], args[1]); + case 3: return un ? fn(args[0], args[1], args[2]) + : fn.call(that, args[0], args[1], args[2]); + case 4: return un ? fn(args[0], args[1], args[2], args[3]) + : fn.call(that, args[0], args[1], args[2], args[3]); + } return fn.apply(that, args); +}; + + +/***/ }), + +/***/ "32b3": +/***/ (function(module, exports, __webpack_require__) { + +var baseAssignValue = __webpack_require__("872a"), + eq = __webpack_require__("9638"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || + (value === undefined && !(key in object))) { + baseAssignValue(object, key, value); + } +} + +module.exports = assignValue; + + +/***/ }), + +/***/ "32e9": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("86cc"); +var createDesc = __webpack_require__("4630"); +module.exports = __webpack_require__("9e1e") ? function (object, key, value) { + return dP.f(object, key, createDesc(1, value)); +} : function (object, key, value) { + object[key] = value; + return object; +}; + + +/***/ }), + +/***/ "32f4": +/***/ (function(module, exports) { + +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} + +module.exports = stubArray; + + +/***/ }), + +/***/ "33a4": +/***/ (function(module, exports, __webpack_require__) { + +// check on default Array iterator +var Iterators = __webpack_require__("84f2"); +var ITERATOR = __webpack_require__("2b4c")('iterator'); +var ArrayProto = Array.prototype; + +module.exports = function (it) { + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); +}; + + +/***/ }), + +/***/ "3729": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString.call(value); +} + +module.exports = objectToString; + + +/***/ }), + +/***/ "3818": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("7e64"), + arrayEach = __webpack_require__("8057"), + assignValue = __webpack_require__("32b3"), + baseAssign = __webpack_require__("5b01"), + baseAssignIn = __webpack_require__("0f0f"), + cloneBuffer = __webpack_require__("e538"), + copyArray = __webpack_require__("4359"), + copySymbols = __webpack_require__("54eb"), + copySymbolsIn = __webpack_require__("1041"), + getAllKeys = __webpack_require__("a994"), + getAllKeysIn = __webpack_require__("1bac"), + getTag = __webpack_require__("42a2"), + initCloneArray = __webpack_require__("c87c"), + initCloneByTag = __webpack_require__("c2b6"), + initCloneObject = __webpack_require__("fa21"), + isArray = __webpack_require__("6747"), + isBuffer = __webpack_require__("0d24"), + isMap = __webpack_require__("cc45"), + isObject = __webpack_require__("1a8c"), + isSet = __webpack_require__("d7ee"), + keys = __webpack_require__("ec69"); + +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1, + CLONE_FLAT_FLAG = 2, + CLONE_SYMBOLS_FLAG = 4; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]', + weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]', + float32Tag = '[object Float32Array]', + float64Tag = '[object Float64Array]', + int8Tag = '[object Int8Array]', + int16Tag = '[object Int16Array]', + int32Tag = '[object Int32Array]', + uint8Tag = '[object Uint8Array]', + uint8ClampedTag = '[object Uint8ClampedArray]', + uint16Tag = '[object Uint16Array]', + uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values supported by `_.clone`. */ +var cloneableTags = {}; +cloneableTags[argsTag] = cloneableTags[arrayTag] = +cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = +cloneableTags[boolTag] = cloneableTags[dateTag] = +cloneableTags[float32Tag] = cloneableTags[float64Tag] = +cloneableTags[int8Tag] = cloneableTags[int16Tag] = +cloneableTags[int32Tag] = cloneableTags[mapTag] = +cloneableTags[numberTag] = cloneableTags[objectTag] = +cloneableTags[regexpTag] = cloneableTags[setTag] = +cloneableTags[stringTag] = cloneableTags[symbolTag] = +cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = +cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; +cloneableTags[errorTag] = cloneableTags[funcTag] = +cloneableTags[weakMapTag] = false; + +/** + * The base implementation of `_.clone` and `_.cloneDeep` which tracks + * traversed objects. + * + * @private + * @param {*} value The value to clone. + * @param {boolean} bitmask The bitmask flags. + * 1 - Deep clone + * 2 - Flatten inherited properties + * 4 - Clone symbols + * @param {Function} [customizer] The function to customize cloning. + * @param {string} [key] The key of `value`. + * @param {Object} [object] The parent object of `value`. + * @param {Object} [stack] Tracks traversed objects and their clone counterparts. + * @returns {*} Returns the cloned value. + */ +function baseClone(value, bitmask, customizer, key, object, stack) { + var result, + isDeep = bitmask & CLONE_DEEP_FLAG, + isFlat = bitmask & CLONE_FLAT_FLAG, + isFull = bitmask & CLONE_SYMBOLS_FLAG; + + if (customizer) { + result = object ? customizer(value, key, object, stack) : customizer(value); + } + if (result !== undefined) { + return result; + } + if (!isObject(value)) { + return value; + } + var isArr = isArray(value); + if (isArr) { + result = initCloneArray(value); + if (!isDeep) { + return copyArray(value, result); + } + } else { + var tag = getTag(value), + isFunc = tag == funcTag || tag == genTag; + + if (isBuffer(value)) { + return cloneBuffer(value, isDeep); + } + if (tag == objectTag || tag == argsTag || (isFunc && !object)) { + result = (isFlat || isFunc) ? {} : initCloneObject(value); + if (!isDeep) { + return isFlat + ? copySymbolsIn(value, baseAssignIn(result, value)) + : copySymbols(value, baseAssign(result, value)); + } + } else { + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag(value, tag, isDeep); + } + } + // Check for circular references and return its corresponding clone. + stack || (stack = new Stack); + var stacked = stack.get(value); + if (stacked) { + return stacked; + } + stack.set(value, result); + + if (isSet(value)) { + value.forEach(function(subValue) { + result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); + }); + + return result; + } + + if (isMap(value)) { + value.forEach(function(subValue, key) { + result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + + return result; + } + + var keysFunc = isFull + ? (isFlat ? getAllKeysIn : getAllKeys) + : (isFlat ? keysIn : keys); + + var props = isArr ? undefined : keysFunc(value); + arrayEach(props || value, function(subValue, key) { + if (props) { + key = subValue; + subValue = value[key]; + } + // Recursively populate clone (susceptible to call stack limits). + assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); + }); + return result; +} + +module.exports = baseClone; + + +/***/ }), + +/***/ "3846": +/***/ (function(module, exports, __webpack_require__) { + +// 21.2.5.3 get RegExp.prototype.flags() +if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', { + configurable: true, + get: __webpack_require__("0bfb") +}); + + +/***/ }), + +/***/ "38fd": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) +var has = __webpack_require__("69a8"); +var toObject = __webpack_require__("4bf8"); +var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); +var ObjectProto = Object.prototype; + +module.exports = Object.getPrototypeOf || function (O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } return O instanceof Object ? ObjectProto : null; +}; + + +/***/ }), + +/***/ "3b2b": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("7726"); +var inheritIfRequired = __webpack_require__("5dbc"); +var dP = __webpack_require__("86cc").f; +var gOPN = __webpack_require__("9093").f; +var isRegExp = __webpack_require__("aae3"); +var $flags = __webpack_require__("0bfb"); +var $RegExp = global.RegExp; +var Base = $RegExp; +var proto = $RegExp.prototype; +var re1 = /a/g; +var re2 = /a/g; +// "new" creates a new object, old webkit buggy here +var CORRECT_NEW = new $RegExp(re1) !== re1; + +if (__webpack_require__("9e1e") && (!CORRECT_NEW || __webpack_require__("79e5")(function () { + re2[__webpack_require__("2b4c")('match')] = false; + // RegExp constructor can alter flags and IsRegExp works correct with @@match + return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i'; +}))) { + $RegExp = function RegExp(p, f) { + var tiRE = this instanceof $RegExp; + var piRE = isRegExp(p); + var fiU = f === undefined; + return !tiRE && piRE && p.constructor === $RegExp && fiU ? p + : inheritIfRequired(CORRECT_NEW + ? new Base(piRE && !fiU ? p.source : p, f) + : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f) + , tiRE ? this : proto, $RegExp); + }; + var proxy = function (key) { + key in $RegExp || dP($RegExp, key, { + configurable: true, + get: function () { return Base[key]; }, + set: function (it) { Base[key] = it; } + }); + }; + for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]); + proto.constructor = $RegExp; + $RegExp.prototype = proto; + __webpack_require__("2aba")(global, 'RegExp', $RegExp); +} + +__webpack_require__("7a56")('RegExp'); + + +/***/ }), + +/***/ "3b4a": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"); + +var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); + +module.exports = defineProperty; + + +/***/ }), + +/***/ "3f6b": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldChecklist_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9ee4"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldChecklist_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldChecklist_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldChecklist_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "408c": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("2b3e"); + +/** + * Gets the timestamp of the number of milliseconds that have elapsed since + * the Unix epoch (1 January 1970 00:00:00 UTC). + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Date + * @returns {number} Returns the timestamp. + * @example + * + * _.defer(function(stamp) { + * console.log(_.now() - stamp); + * }, _.now()); + * // => Logs the number of milliseconds it took for the deferred invocation. + */ +var now = function() { + return root.Date.now(); +}; + +module.exports = now; + + +/***/ }), + +/***/ "409c": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formGenerator.vue?vue&type=template&id=4818e5c5& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.schema != null)?_c('div',{staticClass:"vue-form-generator"},[_c('form-group',{attrs:{"tag":_vm.tag,"fields":_vm.fields,"model":_vm.model,"options":_vm.options,"errors":_vm.errors,"eventBus":_vm.eventBus},scopedSlots:_vm._u([{key:"element",fn:function(slotProps){return [_c('form-element',{attrs:{"field":slotProps.field,"model":slotProps.model,"options":slotProps.options,"errors":slotProps.errors,"eventBus":_vm.eventBus},scopedSlots:_vm._u([{key:"label",fn:function(ref){ +var field = ref.field; +var getValueFromOption = ref.getValueFromOption; +return [_vm._t("label",[_c('span',{domProps:{"innerHTML":_vm._s(field.label)}})],{field:field,getValueFromOption:getValueFromOption})]}},{key:"help",fn:function(ref){ +var field = ref.field; +var getValueFromOption = ref.getValueFromOption; +return [_vm._t("help",[(field.help)?_c('span',{staticClass:"help"},[_c('i',{staticClass:"icon"}),_c('div',{staticClass:"helpText",domProps:{"innerHTML":_vm._s(field.help)}})]):_vm._e()],{field:field,getValueFromOption:getValueFromOption})]}},{key:"hint",fn:function(ref){ +var field = ref.field; +var getValueFromOption = ref.getValueFromOption; +return [_vm._t("hint",[_c('div',{staticClass:"hint",domProps:{"innerHTML":_vm._s(getValueFromOption(field, 'hint', undefined))}})],{field:field,getValueFromOption:getValueFromOption})]}},{key:"errors",fn:function(ref){ +var childErrors = ref.childErrors; +var field = ref.field; +var getValueFromOption = ref.getValueFromOption; +return [_vm._t("errors",[_c('div',{staticClass:"errors help-block"},_vm._l((childErrors),function(error,index){return _c('span',{key:index,domProps:{"innerHTML":_vm._s(error)}})}))],{errors:childErrors,field:field,getValueFromOption:getValueFromOption})]}}])})]}}])})],1):_vm._e()} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=template&id=4818e5c5& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js +var es6_promise = __webpack_require__("551c"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js +var web_dom_iterable = __webpack_require__("ac6a"); + +// EXTERNAL MODULE: ./node_modules/lodash/isArray.js +var isArray = __webpack_require__("6747"); +var isArray_default = /*#__PURE__*/__webpack_require__.n(isArray); + +// EXTERNAL MODULE: ./node_modules/lodash/get.js +var get = __webpack_require__("9b02"); +var get_default = /*#__PURE__*/__webpack_require__.n(get); + +// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"} +var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf"); +var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formGroup.vue?vue&type=template&id=fa5d698c& +var formGroupvue_type_template_id_fa5d698c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.fields)?_c(_vm.tag,{ref:"group",tag:"fieldset",class:[_vm.groupRowClasses, _vm.validationClass]},[(_vm.groupLegend)?_c('legend',[_vm._v(_vm._s(_vm.groupLegend))]):_vm._e(),_vm._l((_vm.fields),function(field,index){return [(_vm.fieldVisible(field))?[(field.type === 'group')?[_c('form-group',{key:index,attrs:{"fields":field.fields,"group":field,"tag":_vm.getGroupTag(field),"model":_vm.model,"options":_vm.options,"errors":_vm.errors,"eventBus":_vm.eventBus},scopedSlots:_vm._u([{key:"element",fn:function(slotProps){return [_vm._t("element",null,{field:slotProps.field,model:slotProps.model,options:slotProps.options,errors:slotProps.errors,eventBus:slotProps.eventBus})]}}])})]:[_vm._t("element",null,{field:field,model:_vm.model,options:_vm.options,errors:_vm.errors,eventBus:_vm.eventBus})]]:_vm._e()]})],2):_vm._e()} +var formGroupvue_type_template_id_fa5d698c_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=fa5d698c& + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/defineProperty.js +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} +// EXTERNAL MODULE: ./node_modules/lodash/isNil.js +var isNil = __webpack_require__("2768"); +var isNil_default = /*#__PURE__*/__webpack_require__.n(isNil); + +// EXTERNAL MODULE: ./node_modules/lodash/isFunction.js +var isFunction = __webpack_require__("9520"); +var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction); + +// EXTERNAL MODULE: ./node_modules/lodash/isString.js +var isString = __webpack_require__("e2a0"); +var isString_default = /*#__PURE__*/__webpack_require__.n(isString); + +// CONCATENATED MODULE: ./src/formMixin.js + + + +/* harmony default export */ var formMixin = ({ + methods: { + getStyleClasses: function getStyleClasses(field, baseClasses) { + var styleClasses = field.styleClasses; + + if (isArray_default()(styleClasses)) { + styleClasses.forEach(function (c) { + baseClasses[c] = true; + }); + } else if (isString_default()(styleClasses)) { + baseClasses[styleClasses] = true; + } + + return baseClasses; + } + } +}); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formGroup.vue?vue&type=script&lang=js& + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ var formGroupvue_type_script_lang_js_ = ({ + name: "form-group", + mixins: [formMixin], + props: { + fields: { + type: Array + }, + group: { + type: Object + }, + tag: { + type: String, + default: "fieldset", + validator: function validator(value) { + return value.length > 0; + } + }, + model: { + type: Object + }, + options: { + type: Object + }, + errors: { + type: Array + }, + eventBus: { + type: Object + } + }, + data: function data() { + return { + validationClass: {} + }; + }, + computed: { + groupLegend: function groupLegend() { + if (this.group && this.group.legend) { + return this.group.legend; + } + }, + groupRowClasses: function groupRowClasses() { + // TODO find a way to detect errors in child to add some classes (error/valid/etc) + var baseClasses = { + "field-group": true + }; + + if (!isNil_default()(this.group)) { + baseClasses = this.getStyleClasses(this.group, baseClasses); + } + + return baseClasses; + } + }, + methods: { + // Get visible prop of field + fieldVisible: function fieldVisible(field) { + if (isFunction_default()(field.visible)) { + return field.visible.call(this, this.model, field, this); + } + + if (isNil_default()(field.visible)) { + return true; + } + + return field.visible; + }, + getGroupTag: function getGroupTag(field) { + if (!isNil_default()(field.tag)) { + return field.tag; + } else { + return this.tag; + } + } + }, + created: function created() { + var _this = this; + + this.eventBus.$on("field-validated", function () { + _this.$nextTick(function () { + var _this$validationClass; + + var containFieldWithError = _this.$refs.group.querySelector(".form-element.error") !== null; + _this.validationClass = (_this$validationClass = {}, _defineProperty(_this$validationClass, get_default()(_this.options, "validationErrorClass", "error"), containFieldWithError), _defineProperty(_this$validationClass, get_default()(_this.options, "validationSuccessClass", "valid"), !containFieldWithError), _this$validationClass); + }); + }); + } +}); +// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=script&lang=js& + /* harmony default export */ var src_formGroupvue_type_script_lang_js_ = (formGroupvue_type_script_lang_js_); +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/formGroup.vue + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + src_formGroupvue_type_script_lang_js_, + formGroupvue_type_template_id_fa5d698c_render, + formGroupvue_type_template_id_fa5d698c_staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "formGroup.vue" +/* harmony default export */ var formGroup = (component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formElement.vue?vue&type=template&id=3531549f& +var formElementvue_type_template_id_3531549f_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-element",class:[_vm.fieldRowClasses]},[(_vm.fieldTypeHasLabel)?_c('label',{class:_vm.field.labelClasses,attrs:{"for":_vm.fieldID}},[_vm._t("label",null,{field:_vm.field,getValueFromOption:_vm.getValueFromOption}),_vm._t("help",null,{field:_vm.field,getValueFromOption:_vm.getValueFromOption})],2):_vm._e(),_c('div',{staticClass:"field-wrap"},[_c(_vm.fieldType,{ref:"child",tag:"component",attrs:{"model":_vm.model,"schema":_vm.field,"formOptions":_vm.options,"eventBus":_vm.eventBus,"fieldID":_vm.fieldID},on:{"field-touched":_vm.onFieldTouched,"errors-updated":_vm.onChildValidated}}),(_vm.buttonsAreVisible)?_c('div',{staticClass:"buttons"},_vm._l((_vm.field.buttons),function(btn,index){return _c('button',{key:index,class:btn.classes,domProps:{"textContent":_vm._s(btn.label)},on:{"click":function($event){_vm.buttonClickHandler(btn, _vm.field, $event)}}})})):_vm._e()],1),(_vm.fieldHasHint)?[_vm._t("hint",null,{field:_vm.field,getValueFromOption:_vm.getValueFromOption})]:_vm._e(),(_vm.fieldHasErrors)?[_vm._t("errors",null,{childErrors:_vm.childErrors,field:_vm.field,getValueFromOption:_vm.getValueFromOption})]:_vm._e()],2)} +var formElementvue_type_template_id_3531549f_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/formElement.vue?vue&type=template&id=3531549f& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js +var es7_array_includes = __webpack_require__("6762"); + +// EXTERNAL MODULE: ./src/utils/schema.js +var schema = __webpack_require__("d2e7"); + +// EXTERNAL MODULE: ./src/utils/fieldsLoader.js +var fieldsLoader = __webpack_require__("00ec"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formElement.vue?vue&type=script&lang=js& + + + + + + + + + +/* harmony default export */ var formElementvue_type_script_lang_js_ = ({ + name: "form-element", + components: fieldsLoader["default"], + mixins: [formMixin], + props: { + model: { + type: Object + }, + options: { + type: Object + }, + field: { + type: Object, + required: true + }, + errors: { + type: Array + }, + eventBus: { + type: Object + } + }, + data: function data() { + return { + childErrors: [], + childTouched: false + }; + }, + computed: { + fieldID: function fieldID() { + var idPrefix = get_default()(this.options, "fieldIdPrefix", ""); + + return Object(schema["slugifyFormID"])(this.field, idPrefix); + }, + // Get type of field 'field-xxx'. It'll be the name of HTML element + fieldType: function fieldType() { + return "field-" + this.field.type; + }, + // Should field type have a label? + fieldTypeHasLabel: function fieldTypeHasLabel() { + if (isNil_default()(this.field.label)) { + return false; + } + + var fieldOptions = this.getValueFromOption(this.field, "fieldOptions"); + var condition = this.field.type === "input" && !isNil_default()(fieldOptions); + var relevantType = condition ? fieldOptions.inputType : this.field.type; + var typeWithoutLabel = ["button", "submit", "reset"]; + return !typeWithoutLabel.includes(relevantType); + }, + fieldHasHint: function fieldHasHint() { + return !isNil_default()(this.field.hint); + }, + fieldHasErrors: function fieldHasErrors() { + return this.childErrors.length > 0; + }, + fieldRowClasses: function fieldRowClasses() { + var _baseClasses; + + var baseClasses = (_baseClasses = {}, _defineProperty(_baseClasses, get_default()(this.options, "validationErrorClass", "error"), this.fieldHasErrors), _defineProperty(_baseClasses, get_default()(this.options, "validationSuccessClass", "valid"), !this.fieldHasErrors && this.childTouched), _defineProperty(_baseClasses, get_default()(this.options, "validationCleanClass", "clean"), !this.fieldHasErrors && !this.childTouched), _defineProperty(_baseClasses, "disabled", this.getValueFromOption(this.field, "disabled")), _defineProperty(_baseClasses, "readonly", this.getValueFromOption(this.field, "readonly")), _defineProperty(_baseClasses, "featured", this.getValueFromOption(this.field, "featured")), _defineProperty(_baseClasses, "required", this.getValueFromOption(this.field, "required")), _baseClasses); + baseClasses = this.getStyleClasses(this.field, baseClasses); + + if (!isNil_default()(this.field.type)) { + baseClasses["field-" + this.field.type] = true; + } + + return baseClasses; + }, + buttonsAreVisible: function buttonsAreVisible() { + return isArray_default()(this.field.buttons) && this.field.buttons.length > 0; + } + }, + methods: { + getValueFromOption: function getValueFromOption(field, option) { + var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + if (isFunction_default()(field[option])) { + return field[option].call(this, this.model, field, this); + } + + if (isNil_default()(field[option])) { + return defaultValue; + } + + return field[option]; + }, + buttonClickHandler: function buttonClickHandler(btn, field, event) { + return btn.onclick.call(this, this.model, field, event, this); + }, + onFieldTouched: function onFieldTouched() { + this.childTouched = true; + }, + onChildValidated: function onChildValidated(errors) { + this.childErrors = errors; + } + } +}); +// CONCATENATED MODULE: ./src/formElement.vue?vue&type=script&lang=js& + /* harmony default export */ var src_formElementvue_type_script_lang_js_ = (formElementvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/formElement.vue?vue&type=style&index=0&lang=scss& +var formElementvue_type_style_index_0_lang_scss_ = __webpack_require__("b7fb"); + +// CONCATENATED MODULE: ./src/formElement.vue + + + + + + +/* normalize component */ + +var formElement_component = Object(componentNormalizer["a" /* default */])( + src_formElementvue_type_script_lang_js_, + formElementvue_type_template_id_3531549f_render, + formElementvue_type_template_id_3531549f_staticRenderFns, + false, + null, + null, + null + +) + +formElement_component.options.__file = "formElement.vue" +/* harmony default export */ var formElement = (formElement_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/formGenerator.vue?vue&type=script&lang=js& + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ var formGeneratorvue_type_script_lang_js_ = ({ + name: "formGenerator", + components: { + formGroup: formGroup, + formElement: formElement + }, + props: { + schema: { + type: Object + }, + model: { + type: Object + }, + options: { + type: Object, + default: function _default() { + return { + validateAfterLoad: false, + validateAsync: false, + validateAfterChanged: false, + validationErrorClass: "error", + validationSuccessClass: "" + }; + } + }, + isNewModel: { + type: Boolean, + default: false + }, + tag: { + type: String, + default: "fieldset", + validator: function validator(value) { + return value.length > 0; + } + } + }, + data: function data() { + var eventBus = new external_commonjs_vue_commonjs2_vue_root_Vue_default.a(); + return { + eventBus: eventBus, + totalNumberOfFields: 0, + errors: [] // Validation errors + + }; + }, + computed: { + fields: function fields() { + if (this.schema && this.schema.fields) { + return this.schema.fields; + } + } + }, + watch: { + // new model loaded + model: { + handler: function handler(newModel, oldModel) { + var _this = this; + + if (oldModel === newModel) { + // model property changed, skip + return; + } + + if (newModel != null) { + this.$nextTick(function () { + // Model changed! + if (_this.options.validateAfterLoad === true && _this.isNewModel !== true) { + _this.validate().then(function () {}, function () {}); + } else { + _this.clearValidationErrors(); + } + }); + } + }, + immediate: function immediate() { + return true; + } + } + }, + methods: { + fillErrors: function fillErrors(fieldErrors, errors, uid) { + if (isArray_default()(fieldErrors) && fieldErrors.length > 0) { + fieldErrors.forEach(function (error) { + errors.push({ + uid: uid, + error: error + }); + }); + } + }, + // Child field executed validation + onFieldValidated: function onFieldValidated(fieldIsValid, fieldErrors, uid) { + // Remove old errors for this field + this.errors = this.errors.filter(function (e) { + return e.uid !== uid; + }); + this.fillErrors(fieldErrors, this.errors, uid); + var isValid = this.errors.length === 0; + this.$emit("validated", isValid, this.errors, this); + }, + onModelUpdated: function onModelUpdated(newVal, schema) { + this.$emit("model-updated", newVal, schema); + }, + // Validating the model properties + validate: function validate() { + var _this2 = this; + + return new Promise(function (resolve, reject) { + _this2.clearValidationErrors(); + + var fieldsValidated = 0; + var formErrors = []; + + _this2.eventBus.$on("field-deregistering", function () { + // console.warn("Fields were deleted during validation process"); + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + reject(formErrors); + }); + + var counter = function counter(isValid, fieldErrors, uid) { + fieldsValidated++; + + _this2.fillErrors(fieldErrors, formErrors, uid); + + if (fieldsValidated === _this2.totalNumberOfFields) { + _this2.eventBus.$off("field-validated", counter); + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + _this2.eventBus.$on("field-validated", _this2.onFieldValidated); + } + + _this2.errors = formErrors; + + var _isValid = formErrors.length === 0; + + _this2.$emit("validated", _isValid, formErrors, _this2); + + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + if (_isValid) { + resolve(); + } else { + reject(formErrors); + } + } + }; + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + _this2.eventBus.$off("field-validated", _this2.onFieldValidated); + } + + _this2.eventBus.$on("field-validated", counter); + + _this2.eventBus.$emit("validate-fields", _this2); + }); + }, + // Clear validation errors + clearValidationErrors: function clearValidationErrors() { + this.errors.splice(0); + this.eventBus.$emit("clear-validation-errors", this.clearValidationErrors); + } + }, + created: function created() { + var _this3 = this; + + if (get_default()(this.options, "validateAfterChanged", false)) { + this.eventBus.$on("field-validated", this.onFieldValidated); + } + + this.eventBus.$on("model-updated", this.onModelUpdated); + this.eventBus.$on("fields-validation-trigger", this.validate); + this.eventBus.$on("field-registering", function () { + _this3.totalNumberOfFields = _this3.totalNumberOfFields + 1; + }); + this.eventBus.$on("field-deregistering", function () { + _this3.totalNumberOfFields = _this3.totalNumberOfFields - 1; + }); + }, + beforeDestroy: function beforeDestroy() { + this.eventBus.$off("field-validated"); + this.eventBus.$off("model-updated"); + this.eventBus.$off("fields-validation-trigger"); + this.eventBus.$off("field-registering"); + this.eventBus.$off("field-deregistering"); + } +}); +// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=script&lang=js& + /* harmony default export */ var src_formGeneratorvue_type_script_lang_js_ = (formGeneratorvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/formGenerator.vue?vue&type=style&index=0&lang=scss& +var formGeneratorvue_type_style_index_0_lang_scss_ = __webpack_require__("bfd2"); + +// CONCATENATED MODULE: ./src/formGenerator.vue + + + + + + +/* normalize component */ + +var formGenerator_component = Object(componentNormalizer["a" /* default */])( + src_formGeneratorvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +formGenerator_component.options.__file = "formGenerator.vue" +/* harmony default export */ var formGenerator = __webpack_exports__["default"] = (formGenerator_component.exports); + +/***/ }), + +/***/ "41a0": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var create = __webpack_require__("2aeb"); +var descriptor = __webpack_require__("4630"); +var setToStringTag = __webpack_require__("7f20"); +var IteratorPrototype = {}; + +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() +__webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; }); + +module.exports = function (Constructor, NAME, next) { + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); + setToStringTag(Constructor, NAME + ' Iterator'); +}; + + +/***/ }), + +/***/ "42a2": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString.call(value); +} + +module.exports = objectToString; + + +/***/ }), + +/***/ "4359": +/***/ (function(module, exports) { + +/** + * Copies the values of `source` to `array`. + * + * @private + * @param {Array} source The array to copy values from. + * @param {Array} [array=[]] The array to copy values to. + * @returns {Array} Returns `array`. + */ +function copyArray(source, array) { + var index = -1, + length = source.length; + + array || (array = Array(length)); + while (++index < length) { + array[index] = source[index]; + } + return array; +} + +module.exports = copyArray; + + +/***/ }), + +/***/ "456d": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.14 Object.keys(O) +var toObject = __webpack_require__("4bf8"); +var $keys = __webpack_require__("0d58"); + +__webpack_require__("5eda")('keys', function () { + return function keys(it) { + return $keys(toObject(it)); + }; +}); + + +/***/ }), + +/***/ "4588": +/***/ (function(module, exports) { + +// 7.1.4 ToInteger +var ceil = Math.ceil; +var floor = Math.floor; +module.exports = function (it) { + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); +}; + + +/***/ }), + +/***/ "4630": +/***/ (function(module, exports) { + +module.exports = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; +}; + + +/***/ }), + +/***/ "4a59": +/***/ (function(module, exports, __webpack_require__) { + +var ctx = __webpack_require__("9b43"); +var call = __webpack_require__("1fa8"); +var isArrayIter = __webpack_require__("33a4"); +var anObject = __webpack_require__("cb7c"); +var toLength = __webpack_require__("9def"); +var getIterFn = __webpack_require__("27ee"); +var BREAK = {}; +var RETURN = {}; +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); + var f = ctx(fn, that, entries ? 2 : 1); + var index = 0; + var length, step, iterator, result; + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); + // fast case for arrays with default iterator + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); + if (result === BREAK || result === RETURN) return result; + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { + result = call(iterator, f, step.value, entries); + if (result === BREAK || result === RETURN) return result; + } +}; +exports.BREAK = BREAK; +exports.RETURN = RETURN; + + +/***/ }), + +/***/ "4b17": +/***/ (function(module, exports, __webpack_require__) { + +var toFinite = __webpack_require__("6428"); + +/** + * Converts `value` to an integer. + * + * **Note:** This method is loosely based on + * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted integer. + * @example + * + * _.toInteger(3.2); + * // => 3 + * + * _.toInteger(Number.MIN_VALUE); + * // => 0 + * + * _.toInteger(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toInteger('3.2'); + * // => 3 + */ +function toInteger(value) { + var result = toFinite(value), + remainder = result % 1; + + return result === result ? (remainder ? result - remainder : result) : 0; +} + +module.exports = toInteger; + + +/***/ }), + +/***/ "4bf8": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.13 ToObject(argument) +var defined = __webpack_require__("be13"); +module.exports = function (it) { + return Object(defined(it)); +}; + + +/***/ }), + +/***/ "501e": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var numberTag = '[object Number]'; + +/** + * Checks if `value` is classified as a `Number` primitive or object. + * + * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are + * classified as numbers, use the `_.isFinite` method. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a number, else `false`. + * @example + * + * _.isNumber(3); + * // => true + * + * _.isNumber(Number.MIN_VALUE); + * // => true + * + * _.isNumber(Infinity); + * // => true + * + * _.isNumber('3'); + * // => false + */ +function isNumber(value) { + return typeof value == 'number' || + (isObjectLike(value) && baseGetTag(value) == numberTag); +} + +module.exports = isNumber; + + +/***/ }), + +/***/ "51f5": +/***/ (function(module, exports, __webpack_require__) { + +var baseFindIndex = __webpack_require__("2b03"), + baseIteratee = __webpack_require__("badf"), + toInteger = __webpack_require__("4b17"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * This method is like `_.find` except that it returns the index of the first + * element `predicate` returns truthy for instead of the element itself. + * + * @static + * @memberOf _ + * @since 1.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [predicate=_.identity] The function invoked per iteration. + * @param {number} [fromIndex=0] The index to search from. + * @returns {number} Returns the index of the found element, else `-1`. + * @example + * + * var users = [ + * { 'user': 'barney', 'active': false }, + * { 'user': 'fred', 'active': false }, + * { 'user': 'pebbles', 'active': true } + * ]; + * + * _.findIndex(users, function(o) { return o.user == 'barney'; }); + * // => 0 + * + * // The `_.matches` iteratee shorthand. + * _.findIndex(users, { 'user': 'fred', 'active': false }); + * // => 1 + * + * // The `_.matchesProperty` iteratee shorthand. + * _.findIndex(users, ['active', false]); + * // => 0 + * + * // The `_.property` iteratee shorthand. + * _.findIndex(users, 'active'); + * // => 2 + */ +function findIndex(array, predicate, fromIndex) { + var length = array == null ? 0 : array.length; + if (!length) { + return -1; + } + var index = fromIndex == null ? 0 : toInteger(fromIndex); + if (index < 0) { + index = nativeMax(length + index, 0); + } + return baseFindIndex(array, baseIteratee(predicate, 3), index); +} + +module.exports = findIndex; + + +/***/ }), + +/***/ "52a7": +/***/ (function(module, exports) { + +exports.f = {}.propertyIsEnumerable; + + +/***/ }), + +/***/ "54eb": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("8eeb"), + getSymbols = __webpack_require__("32f4"); + +/** + * Copies own symbols of `source` to `object`. + * + * @private + * @param {Object} source The object to copy symbols from. + * @param {Object} [object={}] The object to copy symbols to. + * @returns {Object} Returns `object`. + */ +function copySymbols(source, object) { + return copyObject(source, getSymbols(source), object); +} + +module.exports = copySymbols; + + +/***/ }), + +/***/ "551c": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var LIBRARY = __webpack_require__("2d00"); +var global = __webpack_require__("7726"); +var ctx = __webpack_require__("9b43"); +var classof = __webpack_require__("23c6"); +var $export = __webpack_require__("5ca1"); +var isObject = __webpack_require__("d3f4"); +var aFunction = __webpack_require__("d8e8"); +var anInstance = __webpack_require__("f605"); +var forOf = __webpack_require__("4a59"); +var speciesConstructor = __webpack_require__("ebd6"); +var task = __webpack_require__("1991").set; +var microtask = __webpack_require__("8079")(); +var newPromiseCapabilityModule = __webpack_require__("a5b8"); +var perform = __webpack_require__("9c80"); +var userAgent = __webpack_require__("a25f"); +var promiseResolve = __webpack_require__("bcaa"); +var PROMISE = 'Promise'; +var TypeError = global.TypeError; +var process = global.process; +var versions = process && process.versions; +var v8 = versions && versions.v8 || ''; +var $Promise = global[PROMISE]; +var isNode = classof(process) == 'process'; +var empty = function () { /* empty */ }; +var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; +var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; + +var USE_NATIVE = !!function () { + try { + // correct subclassing with @@species support + var promise = $Promise.resolve(1); + var FakePromise = (promise.constructor = {})[__webpack_require__("2b4c")('species')] = function (exec) { + exec(empty, empty); + }; + // unhandled rejections tracking support, NodeJS Promise without it fails @@species test + return (isNode || typeof PromiseRejectionEvent == 'function') + && promise.then(empty) instanceof FakePromise + // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 + // we can't detect it synchronously, so just check versions + && v8.indexOf('6.6') !== 0 + && userAgent.indexOf('Chrome/66') === -1; + } catch (e) { /* empty */ } +}(); + +// helpers +var isThenable = function (it) { + var then; + return isObject(it) && typeof (then = it.then) == 'function' ? then : false; +}; +var notify = function (promise, isReject) { + if (promise._n) return; + promise._n = true; + var chain = promise._c; + microtask(function () { + var value = promise._v; + var ok = promise._s == 1; + var i = 0; + var run = function (reaction) { + var handler = ok ? reaction.ok : reaction.fail; + var resolve = reaction.resolve; + var reject = reaction.reject; + var domain = reaction.domain; + var result, then, exited; + try { + if (handler) { + if (!ok) { + if (promise._h == 2) onHandleUnhandled(promise); + promise._h = 1; + } + if (handler === true) result = value; + else { + if (domain) domain.enter(); + result = handler(value); // may throw + if (domain) { + domain.exit(); + exited = true; + } + } + if (result === reaction.promise) { + reject(TypeError('Promise-chain cycle')); + } else if (then = isThenable(result)) { + then.call(result, resolve, reject); + } else resolve(result); + } else reject(value); + } catch (e) { + if (domain && !exited) domain.exit(); + reject(e); + } + }; + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach + promise._c = []; + promise._n = false; + if (isReject && !promise._h) onUnhandled(promise); + }); +}; +var onUnhandled = function (promise) { + task.call(global, function () { + var value = promise._v; + var unhandled = isUnhandled(promise); + var result, handler, console; + if (unhandled) { + result = perform(function () { + if (isNode) { + process.emit('unhandledRejection', value, promise); + } else if (handler = global.onunhandledrejection) { + handler({ promise: promise, reason: value }); + } else if ((console = global.console) && console.error) { + console.error('Unhandled promise rejection', value); + } + }); + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should + promise._h = isNode || isUnhandled(promise) ? 2 : 1; + } promise._a = undefined; + if (unhandled && result.e) throw result.v; + }); +}; +var isUnhandled = function (promise) { + return promise._h !== 1 && (promise._a || promise._c).length === 0; +}; +var onHandleUnhandled = function (promise) { + task.call(global, function () { + var handler; + if (isNode) { + process.emit('rejectionHandled', promise); + } else if (handler = global.onrejectionhandled) { + handler({ promise: promise, reason: promise._v }); + } + }); +}; +var $reject = function (value) { + var promise = this; + if (promise._d) return; + promise._d = true; + promise = promise._w || promise; // unwrap + promise._v = value; + promise._s = 2; + if (!promise._a) promise._a = promise._c.slice(); + notify(promise, true); +}; +var $resolve = function (value) { + var promise = this; + var then; + if (promise._d) return; + promise._d = true; + promise = promise._w || promise; // unwrap + try { + if (promise === value) throw TypeError("Promise can't be resolved itself"); + if (then = isThenable(value)) { + microtask(function () { + var wrapper = { _w: promise, _d: false }; // wrap + try { + then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); + } catch (e) { + $reject.call(wrapper, e); + } + }); + } else { + promise._v = value; + promise._s = 1; + notify(promise, false); + } + } catch (e) { + $reject.call({ _w: promise, _d: false }, e); // wrap + } +}; + +// constructor polyfill +if (!USE_NATIVE) { + // 25.4.3.1 Promise(executor) + $Promise = function Promise(executor) { + anInstance(this, $Promise, PROMISE, '_h'); + aFunction(executor); + Internal.call(this); + try { + executor(ctx($resolve, this, 1), ctx($reject, this, 1)); + } catch (err) { + $reject.call(this, err); + } + }; + // eslint-disable-next-line no-unused-vars + Internal = function Promise(executor) { + this._c = []; // <- awaiting reactions + this._a = undefined; // <- checked in isUnhandled reactions + this._s = 0; // <- state + this._d = false; // <- done + this._v = undefined; // <- value + this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled + this._n = false; // <- notify + }; + Internal.prototype = __webpack_require__("dcbc")($Promise.prototype, { + // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) + then: function then(onFulfilled, onRejected) { + var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); + reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; + reaction.fail = typeof onRejected == 'function' && onRejected; + reaction.domain = isNode ? process.domain : undefined; + this._c.push(reaction); + if (this._a) this._a.push(reaction); + if (this._s) notify(this, false); + return reaction.promise; + }, + // 25.4.5.1 Promise.prototype.catch(onRejected) + 'catch': function (onRejected) { + return this.then(undefined, onRejected); + } + }); + OwnPromiseCapability = function () { + var promise = new Internal(); + this.promise = promise; + this.resolve = ctx($resolve, promise, 1); + this.reject = ctx($reject, promise, 1); + }; + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { + return C === $Promise || C === Wrapper + ? new OwnPromiseCapability(C) + : newGenericPromiseCapability(C); + }; +} + +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); +__webpack_require__("7f20")($Promise, PROMISE); +__webpack_require__("7a56")(PROMISE); +Wrapper = __webpack_require__("8378")[PROMISE]; + +// statics +$export($export.S + $export.F * !USE_NATIVE, PROMISE, { + // 25.4.4.5 Promise.reject(r) + reject: function reject(r) { + var capability = newPromiseCapability(this); + var $$reject = capability.reject; + $$reject(r); + return capability.promise; + } +}); +$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { + // 25.4.4.6 Promise.resolve(x) + resolve: function resolve(x) { + return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); + } +}); +$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__("5cc5")(function (iter) { + $Promise.all(iter)['catch'](empty); +})), PROMISE, { + // 25.4.4.1 Promise.all(iterable) + all: function all(iterable) { + var C = this; + var capability = newPromiseCapability(C); + var resolve = capability.resolve; + var reject = capability.reject; + var result = perform(function () { + var values = []; + var index = 0; + var remaining = 1; + forOf(iterable, false, function (promise) { + var $index = index++; + var alreadyCalled = false; + values.push(undefined); + remaining++; + C.resolve(promise).then(function (value) { + if (alreadyCalled) return; + alreadyCalled = true; + values[$index] = value; + --remaining || resolve(values); + }, reject); + }); + --remaining || resolve(values); + }); + if (result.e) reject(result.v); + return capability.promise; + }, + // 25.4.4.4 Promise.race(iterable) + race: function race(iterable) { + var C = this; + var capability = newPromiseCapability(C); + var reject = capability.reject; + var result = perform(function () { + forOf(iterable, false, function (promise) { + C.resolve(promise).then(capability.resolve, reject); + }); + }); + if (result.e) reject(result.v); + return capability.promise; + } +}); + + +/***/ }), + +/***/ "5537": +/***/ (function(module, exports, __webpack_require__) { + +var core = __webpack_require__("8378"); +var global = __webpack_require__("7726"); +var SHARED = '__core-js_shared__'; +var store = global[SHARED] || (global[SHARED] = {}); + +(module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: core.version, + mode: __webpack_require__("2d00") ? 'pure' : 'global', + copyright: '© 2018 Denis Pushkarev (zloirock.ru)' +}); + + +/***/ }), + +/***/ "574e": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "585a": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +module.exports = freeGlobal; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) + +/***/ }), + +/***/ "5b01": +/***/ (function(module, exports, __webpack_require__) { + +var copyObject = __webpack_require__("8eeb"), + keys = __webpack_require__("ec69"); + +/** + * The base implementation of `_.assign` without support for multiple sources + * or `customizer` functions. + * + * @private + * @param {Object} object The destination object. + * @param {Object} source The source object. + * @returns {Object} Returns `object`. + */ +function baseAssign(object, source) { + return object && copyObject(source, keys(source), object); +} + +module.exports = baseAssign; + + +/***/ }), + +/***/ "5ca0": +/***/ (function(module, exports, __webpack_require__) { + +var baseIteratee = __webpack_require__("badf"), + isArrayLike = __webpack_require__("30c9"), + keys = __webpack_require__("ec69"); + +/** + * Creates a `_.find` or `_.findLast` function. + * + * @private + * @param {Function} findIndexFunc The function to find the collection index. + * @returns {Function} Returns the new find function. + */ +function createFind(findIndexFunc) { + return function(collection, predicate, fromIndex) { + var iterable = Object(collection); + if (!isArrayLike(collection)) { + var iteratee = baseIteratee(predicate, 3); + collection = keys(collection); + predicate = function(key) { return iteratee(iterable[key], key, iterable); }; + } + var index = findIndexFunc(collection, predicate, fromIndex); + return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined; + }; +} + +module.exports = createFind; + + +/***/ }), + +/***/ "5ca1": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("7726"); +var core = __webpack_require__("8378"); +var hide = __webpack_require__("32e9"); +var redefine = __webpack_require__("2aba"); +var ctx = __webpack_require__("9b43"); +var PROTOTYPE = 'prototype'; + +var $export = function (type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); + var key, own, out, exp; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + // export native or passed + out = (own ? target : source)[key]; + // bind timers to global for call from export context + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // extend global + if (target) redefine(target, key, out, type & $export.U); + // export + if (exports[key] != out) hide(exports, key, exp); + if (IS_PROTO && expProto[key] != out) expProto[key] = out; + } +}; +global.core = core; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + + +/***/ }), + +/***/ "5cc5": +/***/ (function(module, exports, __webpack_require__) { + +var ITERATOR = __webpack_require__("2b4c")('iterator'); +var SAFE_CLOSING = false; + +try { + var riter = [7][ITERATOR](); + riter['return'] = function () { SAFE_CLOSING = true; }; + // eslint-disable-next-line no-throw-literal + Array.from(riter, function () { throw 2; }); +} catch (e) { /* empty */ } + +module.exports = function (exec, skipClosing) { + if (!skipClosing && !SAFE_CLOSING) return false; + var safe = false; + try { + var arr = [7]; + var iter = arr[ITERATOR](); + iter.next = function () { return { done: safe = true }; }; + arr[ITERATOR] = function () { return iter; }; + exec(arr); + } catch (e) { /* empty */ } + return safe; +}; + + +/***/ }), + +/***/ "5dbc": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("d3f4"); +var setPrototypeOf = __webpack_require__("8b97").set; +module.exports = function (that, target, C) { + var S = target.constructor; + var P; + if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { + setPrototypeOf(that, P); + } return that; +}; + + +/***/ }), + +/***/ "5eda": +/***/ (function(module, exports, __webpack_require__) { + +// most Object methods by ES6 should accept primitives +var $export = __webpack_require__("5ca1"); +var core = __webpack_require__("8378"); +var fails = __webpack_require__("79e5"); +module.exports = function (KEY, exec) { + var fn = (core.Object || {})[KEY] || Object[KEY]; + var exp = {}; + exp[KEY] = exec(fn); + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); +}; + + +/***/ }), + +/***/ "5ff7": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "602f": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRadios_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("260c"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRadios_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRadios_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRadios_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "613b": +/***/ (function(module, exports, __webpack_require__) { + +var shared = __webpack_require__("5537")('keys'); +var uid = __webpack_require__("ca5a"); +module.exports = function (key) { + return shared[key] || (shared[key] = uid(key)); +}; + + +/***/ }), + +/***/ "6186": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "626a": +/***/ (function(module, exports, __webpack_require__) { + +// fallback for non-array-like ES3 and non-enumerable old V8 strings +var cof = __webpack_require__("2d95"); +// eslint-disable-next-line no-prototype-builtins +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { + return cof(it) == 'String' ? it.split('') : Object(it); +}; + + +/***/ }), + +/***/ "62e4": +/***/ (function(module, exports) { + +module.exports = function(module) { + if (!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if (!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; + + +/***/ }), + +/***/ "6428": +/***/ (function(module, exports, __webpack_require__) { + +var toNumber = __webpack_require__("b4b0"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_INTEGER = 1.7976931348623157e+308; + +/** + * Converts `value` to a finite number. + * + * @static + * @memberOf _ + * @since 4.12.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {number} Returns the converted number. + * @example + * + * _.toFinite(3.2); + * // => 3.2 + * + * _.toFinite(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toFinite(Infinity); + * // => 1.7976931348623157e+308 + * + * _.toFinite('3.2'); + * // => 3.2 + */ +function toFinite(value) { + if (!value) { + return value === 0 ? value : 0; + } + value = toNumber(value); + if (value === INFINITY || value === -INFINITY) { + var sign = (value < 0 ? -1 : 1); + return sign * MAX_INTEGER; + } + return value === value ? value : 0; +} + +module.exports = toFinite; + + +/***/ }), + +/***/ "656b": +/***/ (function(module, exports) { + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +module.exports = getValue; + + +/***/ }), + +/***/ "672d": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("456d"); +/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("28a5"); +/* harmony import */ var core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_split__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("a481"); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("551c"); +/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("cadf"); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("ac6a"); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("98dc"); +/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2768"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("b047"); +/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("6747"); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("e2a0"); +/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("9520"); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("6cd4"); +/* harmony import */ var lodash_forEach__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_forEach__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("9b02"); +/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_13__); +/* harmony import */ var _utils_validators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("a00a"); + + + + + + + + + + + + + + + + +var convertValidator = function convertValidator(validator) { + if (lodash_isString__WEBPACK_IMPORTED_MODULE_10___default()(validator)) { + if (_utils_validators__WEBPACK_IMPORTED_MODULE_14__["default"][validator] != null) return _utils_validators__WEBPACK_IMPORTED_MODULE_14__["default"][validator];else { + console.warn("'".concat(validator, "' is not a validator function!")); + return null; // caller need to handle null + } + } + + return validator; +}; + +function attributesDirective(el, binding, vnode) { + var attrs = lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(vnode.context, "schema.attributes", {}); + + var container = binding.value || "input"; + + if (lodash_isString__WEBPACK_IMPORTED_MODULE_10___default()(container)) { + attrs = lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(attrs, container) || attrs; + } + + lodash_forEach__WEBPACK_IMPORTED_MODULE_12___default()(attrs, function (val, key) { + el.setAttribute(key, val); + }); +} + +/* harmony default export */ __webpack_exports__["default"] = ({ + props: { + model: { + type: Object + }, + schema: { + type: Object + }, + formOptions: { + type: Object + }, + eventBus: { + type: Object + }, + fieldID: { + type: String + } + }, + data: function data() { + var fieldUID = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_6___default()(this.fieldID + "_"); + + return { + fieldUID: fieldUID, + touched: false, + errors: [], + debouncedValidateFunc: null, + debouncedFormatFunction: null + }; + }, + directives: { + attributes: { + bind: attributesDirective, + updated: attributesDirective, + componentUpdated: attributesDirective + } + }, + computed: { + value: { + cache: false, + get: function get() { + var val; + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.schema, "get"))) { + val = this.schema.get(this.model); + } else { + val = lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.model, this.schema.model); + } + + return this.formatValueToField(val); + }, + set: function set(newValue) { + this.touch(); + var oldValue = this.value; + newValue = this.formatValueToModel(newValue); + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(newValue)) { + newValue(newValue, oldValue); + } else { + this.updateModelValue(newValue, oldValue); + } + } + }, + disabled: function disabled() { + return this.getValueFromOption(this.schema, "disabled"); + }, + fieldClasses: function fieldClasses() { + return this.getValueFromOption(this.schema, "fieldClasses", []); + }, + fieldOptions: function fieldOptions() { + return this.getValueFromOption(this.schema, "fieldOptions", {}); + }, + inputName: function inputName() { + return this.getValueFromOption(this.schema, "inputName", ""); + }, + placeholder: function placeholder() { + return this.getValueFromOption(this.schema, "placeholder", ""); + }, + readonly: function readonly() { + return this.getValueFromOption(this.schema, "readonly"); + }, + required: function required() { + return this.getValueFromOption(this.schema, "required"); + }, + values: function values() { + return this.getValueFromOption(this.schema, "values", []); + } + }, + watch: { + errors: { + handler: function handler(errors) { + this.$emit("errors-updated", errors); + } + } + }, + methods: { + getValueFromOption: function getValueFromOption(field, option, defaultValue) { + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(this.$parent.getValueFromOption)) { + return this.$parent.getValueFromOption(field, option, defaultValue); + } else { + // Environnement de test ? + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_7___default()(field[option])) { + return defaultValue; + } + + return field[option]; + } + }, + validate: function validate() { + var _this = this; + + this.touch(); + this.clearValidationErrors(); + + var validateAsync = lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.formOptions, "validateAsync", false); + + var results = []; + + if (this.schema.validator && this.readonly !== true && this.schema.readonly !== true && // only for the test + this.disabled !== true) { + var _validators = []; + + if (!lodash_isArray__WEBPACK_IMPORTED_MODULE_9___default()(this.schema.validator)) { + _validators.push(convertValidator(this.schema.validator).bind(this)); + } else { + this.schema.validator.forEach(function (validator) { + _validators.push(convertValidator(validator).bind(_this)); + }); + } + + _validators.forEach(function (validator) { + if (validateAsync) { + results.push(validator(_this.value, _this.schema, _this.model)); + } else { + var result = validator(_this.value, _this.schema, _this.model); + + if (result && lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(result.then)) { + result.then(function (err) { + if (err) { + _this.errors = _this.errors.concat(err); + } + }); + } else if (result) { + results = results.concat(result); + } + } + }); + } + + var handleErrors = function handleErrors(errors) { + var fieldErrors = []; + errors.forEach(function (err) { + if (lodash_isArray__WEBPACK_IMPORTED_MODULE_9___default()(err) && err.length > 0) { + fieldErrors = fieldErrors.concat(err); + } else if (lodash_isString__WEBPACK_IMPORTED_MODULE_10___default()(err)) { + fieldErrors.push(err); + } + }); + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(_this.schema.onValidated)) { + _this.schema.onValidated.call(_this, _this.model, fieldErrors, _this.schema); + } + + var isValid = fieldErrors.length === 0; + _this.errors = fieldErrors; + + _this.eventBus.$emit("field-validated", isValid, fieldErrors, _this.fieldUID); + + return fieldErrors; + }; + + if (!validateAsync) { + return handleErrors(results); + } + + return Promise.all(results).then(handleErrors).catch(function (error) { + console.warn("Problem during field validation", error); + }); + }, + debouncedValidate: function debouncedValidate() { + if (!lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(this.debouncedValidateFunc)) { + this.debouncedValidateFunc = lodash_debounce__WEBPACK_IMPORTED_MODULE_8___default()(this.validate.bind(this), lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.formOptions, "validateDebounceTime", 500)); + } + + this.debouncedValidateFunc(); + }, + updateModelValue: function updateModelValue(newValue, oldValue) { + var changed = false; + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(this.schema.set)) { + this.schema.set(this.model, newValue); + changed = true; + } else if (this.schema.model) { + this.setModelValueByPath(this.schema.model, newValue); + changed = true; + } + + if (changed) { + this.eventBus.$emit("model-updated", newValue, this.schema.model); + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_11___default()(this.schema.onChanged)) { + this.schema.onChanged.call(this, this.model, newValue, oldValue, this.schema); + } + + if (lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.formOptions, "validateAfterChanged", false)) { + if (lodash_get__WEBPACK_IMPORTED_MODULE_13___default()(this.formOptions, "validateDebounceTime", 500) > 0) { + this.debouncedValidate(); + } else { + this.validate(); + } + } + } + }, + clearValidationErrors: function clearValidationErrors() { + this.errors.splice(0); + }, + setModelValueByPath: function setModelValueByPath(path, value) { + // convert array indexes to properties + var s = path.replace(/\[(\w+)\]/g, ".$1"); // strip a leading dot + + s = s.replace(/^\./, ""); + var o = this.model; + var a = s.split("."); + var i = 0; + var n = a.length; + + while (i < n) { + var k = a[i]; + if (i < n - 1) { + if (o[k] !== undefined) { + // Found parent property. Step in + o = o[k]; + } else { + // Create missing property (new level) + this.$root.$set(o, k, {}); + o = o[k]; + } + } else { + // Set final property value + this.$root.$set(o, k, value); + return; + } + ++i; + } + }, + formatValueToField: function formatValueToField(value) { + return value; + }, + formatValueToModel: function formatValueToModel(value) { + return value; + }, + touch: function touch() { + if (!this.touched) { + this.touched = true; + this.$emit("field-touched"); + } + } + }, + created: function created() { + this.eventBus.$on("clear-validation-errors", this.clearValidationErrors); + this.eventBus.$on("validate-fields", this.validate); + this.eventBus.$emit("field-registering"); + }, + mounted: function mounted() { + var diff = function diff(a, b) { + return b.filter(function (i) { + return a.indexOf(i) < 0; + }); + }; + + var allowedKeys = [// Minimal + "type", "model", // Identity + "id", "inputName", // Texts + "label", "placeholder", "hint", "help", // Modifiers + "featured", "visible", "disabled", "required", "readonly", "validator", // Other options + "styleClasses", "labelClasses", "fieldClasses", "fieldOptions", "values", "buttons", "attributes", // Getter/Setter + "get", "set", // Events + "onChanged", "onValidated"]; + + if (this.schema) { + var currentKeys = Object.keys(this.schema); + var result = diff(allowedKeys, currentKeys); + + if (result.length > 0) { + console.log("diff", result, this.schema.type, this.schema.model); + } + } + }, + beforeDestroy: function beforeDestroy() { + this.eventBus.$off("clear-validation-errors"); + this.eventBus.$off("validate-fields"); + this.eventBus.$emit("field-deregistering", this); + } +}); + +/***/ }), + +/***/ "6747": +/***/ (function(module, exports) { + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +module.exports = isArray; + + +/***/ }), + +/***/ "6762": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// https://github.com/tc39/Array.prototype.includes +var $export = __webpack_require__("5ca1"); +var $includes = __webpack_require__("c366")(true); + +$export($export.P, 'Array', { + includes: function includes(el /* , fromIndex = 0 */) { + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); + } +}); + +__webpack_require__("9c6c")('includes'); + + +/***/ }), + +/***/ "67ca": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("cb5a"); + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +module.exports = listCacheSet; + + +/***/ }), + +/***/ "67cd": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldTextArea.vue?vue&type=template&id=36334204&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('textarea',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"},{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],staticClass:"form-control",class:_vm.fieldClasses,attrs:{"id":_vm.fieldID,"disabled":_vm.disabled,"maxlength":_vm.fieldOptions.max,"minlength":_vm.fieldOptions.min,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"rows":_vm.fieldOptions.rows || 2,"name":_vm.inputName},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=36334204&lang=pug& + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldTextArea.vue?vue&type=script&lang=js& +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ var fieldTextAreavue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]] +}); +// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldTextAreavue_type_script_lang_js_ = (fieldTextAreavue_type_script_lang_js_); +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldTextAreavue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldTextArea.vue" +/* harmony default export */ var fieldTextArea = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "6821": +/***/ (function(module, exports, __webpack_require__) { + +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__("626a"); +var defined = __webpack_require__("be13"); +module.exports = function (it) { + return IObject(defined(it)); +}; + + +/***/ }), + +/***/ "697e": +/***/ (function(module, exports, __webpack_require__) { + +var toInteger = __webpack_require__("4b17"); + +/** + * Checks if `value` is an integer. + * + * **Note:** This method is based on + * [`Number.isInteger`](https://mdn.io/Number/isInteger). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an integer, else `false`. + * @example + * + * _.isInteger(3); + * // => true + * + * _.isInteger(Number.MIN_VALUE); + * // => false + * + * _.isInteger(Infinity); + * // => false + * + * _.isInteger('3'); + * // => false + */ +function isInteger(value) { + return typeof value == 'number' && value == toInteger(value); +} + +module.exports = isInteger; + + +/***/ }), + +/***/ "69a8": +/***/ (function(module, exports) { + +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function (it, key) { + return hasOwnProperty.call(it, key); +}; + + +/***/ }), + +/***/ "69d5": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("cb5a"); + +/** Used for built-in method references. */ +var arrayProto = Array.prototype; + +/** Built-in value references. */ +var splice = arrayProto.splice; + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; +} + +module.exports = listCacheDelete; + + +/***/ }), + +/***/ "6a99": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__("d3f4"); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function (it, S) { + if (!isObject(it)) return it; + var fn, val; + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; + throw TypeError("Can't convert object to primitive value"); +}; + + +/***/ }), + +/***/ "6b54": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +__webpack_require__("3846"); +var anObject = __webpack_require__("cb7c"); +var $flags = __webpack_require__("0bfb"); +var DESCRIPTORS = __webpack_require__("9e1e"); +var TO_STRING = 'toString'; +var $toString = /./[TO_STRING]; + +var define = function (fn) { + __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true); +}; + +// 21.2.5.14 RegExp.prototype.toString() +if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { + define(function toString() { + var R = anObject(this); + return '/'.concat(R.source, '/', + 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); + }); +// FF44- RegExp#toString has a wrong name +} else if ($toString.name != TO_STRING) { + define(function toString() { + return $toString.call(this); + }); +} + + +/***/ }), + +/***/ "6cd4": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; + + +/***/ }), + +/***/ "73ac": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "74d5": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "7530": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"); + +/** Built-in value references. */ +var objectCreate = Object.create; + +/** + * The base implementation of `_.create` without support for assigning + * properties to the created object. + * + * @private + * @param {Object} proto The object to inherit from. + * @returns {Object} Returns the new object. + */ +var baseCreate = (function() { + function object() {} + return function(proto) { + if (!isObject(proto)) { + return {}; + } + if (objectCreate) { + return objectCreate(proto); + } + object.prototype = proto; + var result = new object; + object.prototype = undefined; + return result; + }; +}()); + +module.exports = baseCreate; + + +/***/ }), + +/***/ "76dd": +/***/ (function(module, exports, __webpack_require__) { + +var baseToString = __webpack_require__("ce86"); + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +module.exports = toString; + + +/***/ }), + +/***/ "7726": +/***/ (function(module, exports) { + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "77f1": +/***/ (function(module, exports, __webpack_require__) { + +var toInteger = __webpack_require__("4588"); +var max = Math.max; +var min = Math.min; +module.exports = function (index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); +}; + + +/***/ }), + +/***/ "7948": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +module.exports = arrayMap; + + +/***/ }), + +/***/ "79e5": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return !!exec(); + } catch (e) { + return true; + } +}; + + +/***/ }), + +/***/ "7a56": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var global = __webpack_require__("7726"); +var dP = __webpack_require__("86cc"); +var DESCRIPTORS = __webpack_require__("9e1e"); +var SPECIES = __webpack_require__("2b4c")('species'); + +module.exports = function (KEY) { + var C = global[KEY]; + if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { + configurable: true, + get: function () { return this; } + }); +}; + + +/***/ }), + +/***/ "7e64": +/***/ (function(module, exports, __webpack_require__) { + +var listCacheClear = __webpack_require__("28c9"), + listCacheDelete = __webpack_require__("69d5"), + listCacheGet = __webpack_require__("b4c0"), + listCacheHas = __webpack_require__("fba5"), + listCacheSet = __webpack_require__("67ca"); + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +module.exports = ListCache; + + +/***/ }), + +/***/ "7f20": +/***/ (function(module, exports, __webpack_require__) { + +var def = __webpack_require__("86cc").f; +var has = __webpack_require__("69a8"); +var TAG = __webpack_require__("2b4c")('toStringTag'); + +module.exports = function (it, tag, stat) { + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); +}; + + +/***/ }), + +/***/ "7f7f": +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__("86cc").f; +var FProto = Function.prototype; +var nameRE = /^\s*function ([^ (]*)/; +var NAME = 'name'; + +// 19.2.4.2 name +NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { + configurable: true, + get: function () { + try { + return ('' + this).match(nameRE)[1]; + } catch (e) { + return ''; + } + } +}); + + +/***/ }), + +/***/ "8057": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; + + +/***/ }), + +/***/ "8079": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("7726"); +var macrotask = __webpack_require__("1991").set; +var Observer = global.MutationObserver || global.WebKitMutationObserver; +var process = global.process; +var Promise = global.Promise; +var isNode = __webpack_require__("2d95")(process) == 'process'; + +module.exports = function () { + var head, last, notify; + + var flush = function () { + var parent, fn; + if (isNode && (parent = process.domain)) parent.exit(); + while (head) { + fn = head.fn; + head = head.next; + try { + fn(); + } catch (e) { + if (head) notify(); + else last = undefined; + throw e; + } + } last = undefined; + if (parent) parent.enter(); + }; + + // Node.js + if (isNode) { + notify = function () { + process.nextTick(flush); + }; + // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 + } else if (Observer && !(global.navigator && global.navigator.standalone)) { + var toggle = true; + var node = document.createTextNode(''); + new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new + notify = function () { + node.data = toggle = !toggle; + }; + // environments with maybe non-completely correct, but existent Promise + } else if (Promise && Promise.resolve) { + // Promise.resolve without an argument throws an error in LG WebOS 2 + var promise = Promise.resolve(undefined); + notify = function () { + promise.then(flush); + }; + // for other environments - macrotask based on: + // - setImmediate + // - MessageChannel + // - window.postMessag + // - onreadystatechange + // - setTimeout + } else { + notify = function () { + // strange IE + webpack dev server bug - use .call(global) + macrotask.call(global, flush); + }; + } + + return function (fn) { + var task = { fn: fn, next: undefined }; + if (last) last.next = task; + if (!head) { + head = task; + notify(); + } last = task; + }; +}; + + +/***/ }), + +/***/ "8378": +/***/ (function(module, exports) { + +var core = module.exports = { version: '2.5.7' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), + +/***/ "846c": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldCheckbox.vue?vue&type=template&id=6caa46da&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"},{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],class:_vm.fieldClasses,attrs:{"id":_vm.fieldID,"type":"checkbox","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"name":_vm.inputName},domProps:{"checked":Array.isArray(_vm.value)?_vm._i(_vm.value,null)>-1:(_vm.value)},on:{"change":function($event){var $$a=_vm.value,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.value=$$a.concat([$$v]))}else{$$i>-1&&(_vm.value=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{_vm.value=$$c}}}})} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=6caa46da&lang=pug& + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldCheckbox.vue?vue&type=script&lang=js& +// +// +// +// + +/* harmony default export */ var fieldCheckboxvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]] +}); +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldCheckboxvue_type_script_lang_js_ = (fieldCheckboxvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=style&index=0&lang=scss& +var fieldCheckboxvue_type_style_index_0_lang_scss_ = __webpack_require__("c495"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldCheckboxvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldCheckbox.vue" +/* harmony default export */ var fieldCheckbox = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "84f2": +/***/ (function(module, exports) { + +module.exports = {}; + + +/***/ }), + +/***/ "85e3": +/***/ (function(module, exports) { + +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +module.exports = apply; + + +/***/ }), + +/***/ "86c9": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldLabel.vue?vue&type=template&id=96b37eee&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{directives:[{name:"attributes",rawName:"v-attributes",value:('label'),expression:"'label'"}],class:_vm.fieldClasses,attrs:{"id":_vm.fieldID}},[_vm._v(_vm._s(_vm.value))])} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=template&id=96b37eee&lang=pug& + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldLabel.vue?vue&type=script&lang=js& +// +// +// +// + +/* harmony default export */ var fieldLabelvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]] +}); +// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldLabelvue_type_script_lang_js_ = (fieldLabelvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldLabel.vue?vue&type=style&index=0&lang=scss& +var fieldLabelvue_type_style_index_0_lang_scss_ = __webpack_require__("b72b"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldLabelvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldLabel.vue" +/* harmony default export */ var fieldLabel = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "86cc": +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__("cb7c"); +var IE8_DOM_DEFINE = __webpack_require__("c69a"); +var toPrimitive = __webpack_require__("6a99"); +var dP = Object.defineProperty; + +exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) try { + return dP(O, P, Attributes); + } catch (e) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; +}; + + +/***/ }), + +/***/ "872a": +/***/ (function(module, exports, __webpack_require__) { + +var defineProperty = __webpack_require__("3b4a"); + +/** + * The base implementation of `assignValue` and `assignMergeValue` without + * value checks. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function baseAssignValue(object, key, value) { + if (key == '__proto__' && defineProperty) { + defineProperty(object, key, { + 'configurable': true, + 'enumerable': true, + 'value': value, + 'writable': true + }); + } else { + object[key] = value; + } +} + +module.exports = baseAssignValue; + + +/***/ }), + +/***/ "89d0": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldUpload.vue?vue&type=template&id=e2e95000&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"attributes",rawName:"v-attributes",value:('wrapper'),expression:"'wrapper'"}],staticClass:"wrapper"},[_c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],staticClass:"form-control",attrs:{"id":_vm.fieldID,"type":"file","name":_vm.inputName,"accept":_vm.fieldOptions.accept,"multiple":_vm.fieldOptions.multiple,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"required":_vm.schema.required,"disabled":_vm.disabled},on:{"change":_vm.onChange}})])} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=e2e95000&lang=pug& + +// EXTERNAL MODULE: ./node_modules/lodash/isFunction.js +var isFunction = __webpack_require__("9520"); +var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldUpload.vue?vue&type=script&lang=js& + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ var fieldUploadvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + methods: { + onChange: function onChange($event) { + if (isFunction_default()(this.schema.onChanged)) { + // Schema has defined onChange method. + this.schema.onChanged.call(this, this.model, this.schema, $event, this); + } + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldUploadvue_type_script_lang_js_ = (fieldUploadvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldUpload.vue?vue&type=style&index=0&lang=scss& +var fieldUploadvue_type_style_index_0_lang_scss_ = __webpack_require__("b018"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldUploadvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldUpload.vue" +/* harmony default export */ var fieldUpload = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "8a23": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldInput_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6186"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldInput_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldInput_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldInput_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "8b97": +/***/ (function(module, exports, __webpack_require__) { + +// Works with __proto__ only. Old v8 can't work with null proto objects. +/* eslint-disable no-proto */ +var isObject = __webpack_require__("d3f4"); +var anObject = __webpack_require__("cb7c"); +var check = function (O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); +}; +module.exports = { + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line + function (test, buggy, set) { + try { + set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { buggy = true; } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + }({}, false) : undefined), + check: check +}; + + +/***/ }), + +/***/ "8bbf": +/***/ (function(module, exports) { + +module.exports = require("vue"); + +/***/ }), + +/***/ "8eeb": +/***/ (function(module, exports, __webpack_require__) { + +var assignValue = __webpack_require__("32b3"), + baseAssignValue = __webpack_require__("872a"); + +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ +function copyObject(source, props, object, customizer) { + var isNew = !object; + object || (object = {}); + + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + + var newValue = customizer + ? customizer(object[key], source[key], key, object, source) + : undefined; + + if (newValue === undefined) { + newValue = source[key]; + } + if (isNew) { + baseAssignValue(object, key, newValue); + } else { + assignValue(object, key, newValue); + } + } + return object; +} + +module.exports = copyObject; + + +/***/ }), + +/***/ "9093": +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) +var $keys = __webpack_require__("ce10"); +var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype'); + +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); +}; + + +/***/ }), + +/***/ "91e9": +/***/ (function(module, exports) { + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +module.exports = overArg; + + +/***/ }), + +/***/ "9520": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObject = __webpack_require__("1a8c"); + +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]', + proxyTag = '[object Proxy]'; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} + +module.exports = isFunction; + + +/***/ }), + +/***/ "95ae": +/***/ (function(module, exports, __webpack_require__) { + +var baseRest = __webpack_require__("100e"), + eq = __webpack_require__("9638"), + isIterateeCall = __webpack_require__("9aff"), + keysIn = __webpack_require__("9934"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var defaults = baseRest(function(object, sources) { + object = Object(object); + + var index = -1; + var length = sources.length; + var guard = length > 2 ? sources[2] : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + length = 1; + } + + while (++index < length) { + var source = sources[index]; + var props = keysIn(source); + var propsIndex = -1; + var propsLength = props.length; + + while (++propsIndex < propsLength) { + var key = props[propsIndex]; + var value = object[key]; + + if (value === undefined || + (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) { + object[key] = source[key]; + } + } + } + + return object; +}); + +module.exports = defaults; + + +/***/ }), + +/***/ "9638": +/***/ (function(module, exports) { + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +module.exports = eq; + + +/***/ }), + +/***/ "96e7": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldInput.vue?vue&type=template&id=c3692b4a&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"attributes",rawName:"v-attributes",value:('wrapper'),expression:"'wrapper'"}],staticClass:"wrapper"},[_c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],staticClass:"form-control",class:_vm.fieldClasses,attrs:{"id":_vm.fieldID,"type":_vm.inputType,"disabled":_vm.disabled,"accept":_vm.fieldOptions.accept,"alt":_vm.fieldOptions.alt,"autocomplete":_vm.fieldOptions.autocomplete,"dirname":_vm.fieldOptions.dirname,"formaction":_vm.fieldOptions.formaction,"formenctype":_vm.fieldOptions.formenctype,"formmethod":_vm.fieldOptions.formmethod,"formnovalidate":_vm.fieldOptions.formnovalidate,"formtarget":_vm.fieldOptions.formtarget,"height":_vm.fieldOptions.height,"list":_vm.fieldOptions.list,"max":_vm.fieldOptions.max,"maxlength":_vm.fieldOptions.maxlength,"min":_vm.fieldOptions.min,"minlength":_vm.fieldOptions.minlength,"multiple":_vm.fieldOptions.multiple,"name":_vm.inputName,"pattern":_vm.fieldOptions.pattern,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"required":_vm.schema.required,"size":_vm.fieldOptions.size,"src":_vm.fieldOptions.src,"step":_vm.fieldOptions.step,"width":_vm.fieldOptions.width,"files":_vm.fieldOptions.files},domProps:{"value":_vm.value,"checked":_vm.fieldOptions.checked},on:{"input":_vm.onInput,"blur":_vm.onBlur,"change":function($event){_vm.schema.onChange || null}}}),(_vm.inputType === 'color' || _vm.inputType === 'range')?_c('span',{staticClass:"helper"},[_vm._v(_vm._s(_vm.value))]):_vm._e()])} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=c3692b4a&lang=pug& + +// EXTERNAL MODULE: ./node_modules/lodash/isNumber.js +var isNumber = __webpack_require__("501e"); +var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber); + +// EXTERNAL MODULE: ./node_modules/lodash/isFunction.js +var isFunction = __webpack_require__("9520"); +var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction); + +// EXTERNAL MODULE: ./node_modules/lodash/get.js +var get = __webpack_require__("9b02"); +var get_default = /*#__PURE__*/__webpack_require__.n(get); + +// EXTERNAL MODULE: ./node_modules/lodash/debounce.js +var debounce = __webpack_require__("b047"); +var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// EXTERNAL MODULE: ./node_modules/fecha/fecha.js +var fecha = __webpack_require__("9e99"); +var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldInput.vue?vue&type=script&lang=js& + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +var DATETIME_FORMATS = { + date: "YYYY-MM-DD", + datetime: "YYYY-MM-DD HH:mm:ss", + "datetime-local": "YYYY-MM-DDTHH:mm:ss" +}; +/* harmony default export */ var fieldInputvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + computed: { + inputType: function inputType() { + if (typeof this.fieldOptions.inputType !== "undefined") { + return this.fieldOptions.inputType.toLowerCase(); + } else { + console.warn("Missing inputType", this.fieldOptions, this.fieldOptions.inputType); + } + } + }, + methods: { + formatValueToModel: function formatValueToModel(value) { + var _this = this; + + if (value != null) { + switch (this.inputType) { + case "date": + case "datetime": + case "datetime-local": + case "number": + case "range": + // debounce + return function (newValue, oldValue) { + _this.debouncedFormatFunc(value, oldValue); + }; + } + } + + return value; + }, + formatDatetimeToModel: function formatDatetimeToModel(newValue, oldValue) { + var defaultFormat = DATETIME_FORMATS[this.inputType]; + var m = fecha_default.a.parse(newValue, defaultFormat); + + if (m !== false) { + if (this.schema.format) { + newValue = fecha_default.a.format(m, this.schema.format); + } else { + newValue = m.valueOf(); + } + } + + this.updateModelValue(newValue, oldValue); + }, + formatNumberToModel: function formatNumberToModel(newValue, oldValue) { + if (!isNumber_default()(newValue)) { + newValue = NaN; + } + + this.updateModelValue(newValue, oldValue); + }, + onInput: function onInput($event) { + var value = $event.target.value; + + switch (this.inputType) { + case "number": + case "range": + if (isNumber_default()(parseFloat($event.target.value))) { + value = parseFloat($event.target.value); + } + + break; + } + + this.value = value; + }, + onBlur: function onBlur() { + if (isFunction_default()(this.debouncedFormatFunc)) { + this.debouncedFormatFunc.flush(); + } + } + }, + mounted: function mounted() { + var _this2 = this; + + switch (this.inputType) { + case "number": + case "range": + this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + _this2.formatNumberToModel(newValue, oldValue); + }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { + trailing: true, + leading: false + }); + break; + + case "date": + case "datetime": + case "datetime-local": + // wait 1s before calling 'formatDatetimeToModel' to allow user to input data + this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + _this2.formatDatetimeToModel(newValue, oldValue); + }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { + trailing: true, + leading: false + }); + break; + } + }, + created: function created() { + if (this.inputType === "file") { + console.warn("The 'file' type in input field is deprecated. Use 'file' field instead."); + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldInputvue_type_script_lang_js_ = (fieldInputvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldInput.vue?vue&type=style&index=0&lang=scss& +var fieldInputvue_type_style_index_0_lang_scss_ = __webpack_require__("8a23"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldInputvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldInput.vue" +/* harmony default export */ var fieldInput = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "98dc": +/***/ (function(module, exports, __webpack_require__) { + +var toString = __webpack_require__("76dd"); + +/** Used to generate unique IDs. */ +var idCounter = 0; + +/** + * Generates a unique ID. If `prefix` is given, the ID is appended to it. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {string} [prefix=''] The value to prefix the ID with. + * @returns {string} Returns the unique ID. + * @example + * + * _.uniqueId('contact_'); + * // => 'contact_104' + * + * _.uniqueId(); + * // => '105' + */ +function uniqueId(prefix) { + var id = ++idCounter; + return toString(prefix) + id; +} + +module.exports = uniqueId; + + +/***/ }), + +/***/ "9934": +/***/ (function(module, exports) { + +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +module.exports = nativeKeysIn; + + +/***/ }), + +/***/ "9aff": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "9b02": +/***/ (function(module, exports, __webpack_require__) { + +var baseGet = __webpack_require__("656b"); + +/** + * Gets the value at `path` of `object`. If the resolved value is + * `undefined`, the `defaultValue` is returned in its place. + * + * @static + * @memberOf _ + * @since 3.7.0 + * @category Object + * @param {Object} object The object to query. + * @param {Array|string} path The path of the property to get. + * @param {*} [defaultValue] The value returned for `undefined` resolved values. + * @returns {*} Returns the resolved value. + * @example + * + * var object = { 'a': [{ 'b': { 'c': 3 } }] }; + * + * _.get(object, 'a[0].b.c'); + * // => 3 + * + * _.get(object, ['a', '0', 'b', 'c']); + * // => 3 + * + * _.get(object, 'a.b.c', 'default'); + * // => 'default' + */ +function get(object, path, defaultValue) { + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; +} + +module.exports = get; + + +/***/ }), + +/***/ "9b43": +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__("d8e8"); +module.exports = function (fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; +}; + + +/***/ }), + +/***/ "9c6c": +/***/ (function(module, exports, __webpack_require__) { + +// 22.1.3.31 Array.prototype[@@unscopables] +var UNSCOPABLES = __webpack_require__("2b4c")('unscopables'); +var ArrayProto = Array.prototype; +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {}); +module.exports = function (key) { + ArrayProto[UNSCOPABLES][key] = true; +}; + + +/***/ }), + +/***/ "9c80": +/***/ (function(module, exports) { + +module.exports = function (exec) { + try { + return { e: false, v: exec() }; + } catch (e) { + return { e: true, v: e }; + } +}; + + +/***/ }), + +/***/ "9def": +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.15 ToLength +var toInteger = __webpack_require__("4588"); +var min = Math.min; +module.exports = function (it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 +}; + + +/***/ }), + +/***/ "9e1e": +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__("79e5")(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "9e69": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("2b3e"); + +/** Built-in value references. */ +var Symbol = root.Symbol; + +module.exports = Symbol; + + +/***/ }), + +/***/ "9e99": +/***/ (function(module, exports, __webpack_require__) { + +var __WEBPACK_AMD_DEFINE_RESULT__;(function (main) { + 'use strict'; + + /** + * Parse or format dates + * @class fecha + */ + var fecha = {}; + var token = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g; + var twoDigits = /\d\d?/; + var threeDigits = /\d{3}/; + var fourDigits = /\d{4}/; + var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i; + var literal = /\[([^]*?)\]/gm; + var noop = function () { + }; + + function shorten(arr, sLen) { + var newArr = []; + for (var i = 0, len = arr.length; i < len; i++) { + newArr.push(arr[i].substr(0, sLen)); + } + return newArr; + } + + function monthUpdate(arrName) { + return function (d, v, i18n) { + var index = i18n[arrName].indexOf(v.charAt(0).toUpperCase() + v.substr(1).toLowerCase()); + if (~index) { + d.month = index; + } + }; + } + + function pad(val, len) { + val = String(val); + len = len || 2; + while (val.length < len) { + val = '0' + val; + } + return val; + } + + var dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; + var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; + var monthNamesShort = shorten(monthNames, 3); + var dayNamesShort = shorten(dayNames, 3); + fecha.i18n = { + dayNamesShort: dayNamesShort, + dayNames: dayNames, + monthNamesShort: monthNamesShort, + monthNames: monthNames, + amPm: ['am', 'pm'], + DoFn: function DoFn(D) { + return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10]; + } + }; + + var formatFlags = { + D: function(dateObj) { + return dateObj.getDate(); + }, + DD: function(dateObj) { + return pad(dateObj.getDate()); + }, + Do: function(dateObj, i18n) { + return i18n.DoFn(dateObj.getDate()); + }, + d: function(dateObj) { + return dateObj.getDay(); + }, + dd: function(dateObj) { + return pad(dateObj.getDay()); + }, + ddd: function(dateObj, i18n) { + return i18n.dayNamesShort[dateObj.getDay()]; + }, + dddd: function(dateObj, i18n) { + return i18n.dayNames[dateObj.getDay()]; + }, + M: function(dateObj) { + return dateObj.getMonth() + 1; + }, + MM: function(dateObj) { + return pad(dateObj.getMonth() + 1); + }, + MMM: function(dateObj, i18n) { + return i18n.monthNamesShort[dateObj.getMonth()]; + }, + MMMM: function(dateObj, i18n) { + return i18n.monthNames[dateObj.getMonth()]; + }, + YY: function(dateObj) { + return String(dateObj.getFullYear()).substr(2); + }, + YYYY: function(dateObj) { + return pad(dateObj.getFullYear(), 4); + }, + h: function(dateObj) { + return dateObj.getHours() % 12 || 12; + }, + hh: function(dateObj) { + return pad(dateObj.getHours() % 12 || 12); + }, + H: function(dateObj) { + return dateObj.getHours(); + }, + HH: function(dateObj) { + return pad(dateObj.getHours()); + }, + m: function(dateObj) { + return dateObj.getMinutes(); + }, + mm: function(dateObj) { + return pad(dateObj.getMinutes()); + }, + s: function(dateObj) { + return dateObj.getSeconds(); + }, + ss: function(dateObj) { + return pad(dateObj.getSeconds()); + }, + S: function(dateObj) { + return Math.round(dateObj.getMilliseconds() / 100); + }, + SS: function(dateObj) { + return pad(Math.round(dateObj.getMilliseconds() / 10), 2); + }, + SSS: function(dateObj) { + return pad(dateObj.getMilliseconds(), 3); + }, + a: function(dateObj, i18n) { + return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1]; + }, + A: function(dateObj, i18n) { + return dateObj.getHours() < 12 ? i18n.amPm[0].toUpperCase() : i18n.amPm[1].toUpperCase(); + }, + ZZ: function(dateObj) { + var o = dateObj.getTimezoneOffset(); + return (o > 0 ? '-' : '+') + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4); + } + }; + + var parseFlags = { + D: [twoDigits, function (d, v) { + d.day = v; + }], + Do: [new RegExp(twoDigits.source + word.source), function (d, v) { + d.day = parseInt(v, 10); + }], + M: [twoDigits, function (d, v) { + d.month = v - 1; + }], + YY: [twoDigits, function (d, v) { + var da = new Date(), cent = +('' + da.getFullYear()).substr(0, 2); + d.year = '' + (v > 68 ? cent - 1 : cent) + v; + }], + h: [twoDigits, function (d, v) { + d.hour = v; + }], + m: [twoDigits, function (d, v) { + d.minute = v; + }], + s: [twoDigits, function (d, v) { + d.second = v; + }], + YYYY: [fourDigits, function (d, v) { + d.year = v; + }], + S: [/\d/, function (d, v) { + d.millisecond = v * 100; + }], + SS: [/\d{2}/, function (d, v) { + d.millisecond = v * 10; + }], + SSS: [threeDigits, function (d, v) { + d.millisecond = v; + }], + d: [twoDigits, noop], + ddd: [word, noop], + MMM: [word, monthUpdate('monthNamesShort')], + MMMM: [word, monthUpdate('monthNames')], + a: [word, function (d, v, i18n) { + var val = v.toLowerCase(); + if (val === i18n.amPm[0]) { + d.isPm = false; + } else if (val === i18n.amPm[1]) { + d.isPm = true; + } + }], + ZZ: [/([\+\-]\d\d:?\d\d|Z)/, function (d, v) { + if (v === 'Z') v = '+00:00'; + var parts = (v + '').match(/([\+\-]|\d\d)/gi), minutes; + + if (parts) { + minutes = +(parts[1] * 60) + parseInt(parts[2], 10); + d.timezoneOffset = parts[0] === '+' ? minutes : -minutes; + } + }] + }; + parseFlags.dd = parseFlags.d; + parseFlags.dddd = parseFlags.ddd; + parseFlags.DD = parseFlags.D; + parseFlags.mm = parseFlags.m; + parseFlags.hh = parseFlags.H = parseFlags.HH = parseFlags.h; + parseFlags.MM = parseFlags.M; + parseFlags.ss = parseFlags.s; + parseFlags.A = parseFlags.a; + + + // Some common format strings + fecha.masks = { + default: 'ddd MMM DD YYYY HH:mm:ss', + shortDate: 'M/D/YY', + mediumDate: 'MMM D, YYYY', + longDate: 'MMMM D, YYYY', + fullDate: 'dddd, MMMM D, YYYY', + shortTime: 'HH:mm', + mediumTime: 'HH:mm:ss', + longTime: 'HH:mm:ss.SSS' + }; + + /*** + * Format a date + * @method format + * @param {Date|number} dateObj + * @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate' + */ + fecha.format = function (dateObj, mask, i18nSettings) { + var i18n = i18nSettings || fecha.i18n; + + if (typeof dateObj === 'number') { + dateObj = new Date(dateObj); + } + + if (Object.prototype.toString.call(dateObj) !== '[object Date]' || isNaN(dateObj.getTime())) { + throw new Error('Invalid Date in fecha.format'); + } + + mask = fecha.masks[mask] || mask || fecha.masks['default']; + + var literals = []; + + // Make literals inactive by replacing them with ?? + mask = mask.replace(literal, function($0, $1) { + literals.push($1); + return '??'; + }); + // Apply formatting rules + mask = mask.replace(token, function ($0) { + return $0 in formatFlags ? formatFlags[$0](dateObj, i18n) : $0.slice(1, $0.length - 1); + }); + // Inline literal values back into the formatted value + return mask.replace(/\?\?/g, function() { + return literals.shift(); + }); + }; + + /** + * Parse a date string into an object, changes - into / + * @method parse + * @param {string} dateStr Date string + * @param {string} format Date parse format + * @returns {Date|boolean} + */ + fecha.parse = function (dateStr, format, i18nSettings) { + var i18n = i18nSettings || fecha.i18n; + + if (typeof format !== 'string') { + throw new Error('Invalid format in fecha.parse'); + } + + format = fecha.masks[format] || format; + + // Avoid regular expression denial of service, fail early for really long strings + // https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS + if (dateStr.length > 1000) { + return false; + } + + var isValid = true; + var dateInfo = {}; + format.replace(token, function ($0) { + if (parseFlags[$0]) { + var info = parseFlags[$0]; + var index = dateStr.search(info[0]); + if (!~index) { + isValid = false; + } else { + dateStr.replace(info[0], function (result) { + info[1](dateInfo, result, i18n); + dateStr = dateStr.substr(index + result.length); + return result; + }); + } + } + + return parseFlags[$0] ? '' : $0.slice(1, $0.length - 1); + }); + + if (!isValid) { + return false; + } + + var today = new Date(); + if (dateInfo.isPm === true && dateInfo.hour != null && +dateInfo.hour !== 12) { + dateInfo.hour = +dateInfo.hour + 12; + } else if (dateInfo.isPm === false && +dateInfo.hour === 12) { + dateInfo.hour = 0; + } + + var date; + if (dateInfo.timezoneOffset != null) { + dateInfo.minute = +(dateInfo.minute || 0) - +dateInfo.timezoneOffset; + date = new Date(Date.UTC(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, + dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0)); + } else { + date = new Date(dateInfo.year || today.getFullYear(), dateInfo.month || 0, dateInfo.day || 1, + dateInfo.hour || 0, dateInfo.minute || 0, dateInfo.second || 0, dateInfo.millisecond || 0); + } + return date; + }; + + /* istanbul ignore next */ + if (typeof module !== 'undefined' && module.exports) { + module.exports = fecha; + } else if (true) { + !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { + return fecha; + }).call(exports, __webpack_require__, exports, module), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else {} +})(this); + + +/***/ }), + +/***/ "9ee4": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "a00a": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7f7f"); +/* harmony import */ var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("cadf"); +/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("456d"); +/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ac6a"); +/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("3b2b"); +/* harmony import */ var core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a481"); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("9520"); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("6747"); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("e2a0"); +/* harmony import */ var lodash_isString__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isString__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var lodash_isInteger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("697e"); +/* harmony import */ var lodash_isInteger__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isInteger__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("501e"); +/* harmony import */ var lodash_isNumber__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_isNumber__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("2768"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("95ae"); +/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var fecha__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("9e99"); +/* harmony import */ var fecha__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(fecha__WEBPACK_IMPORTED_MODULE_13__); + + + + + + + + + + + + + + +var resources = { + fieldIsRequired: "This field is required!", + invalidFormat: "Invalid format!", + numberTooSmall: "The number is too small! Minimum: {0}", + numberTooBig: "The number is too big! Maximum: {0}", + invalidNumber: "Invalid number", + invalidInteger: "The value is not an integer", + textTooSmall: "The length of text is too small! Current: {0}, Minimum: {1}", + textTooBig: "The length of text is too big! Current: {0}, Maximum: {1}", + thisNotText: "This is not a text!", + thisNotArray: "This is not an array!", + selectMinItems: "Select minimum {0} items!", + selectMaxItems: "Select maximum {0} items!", + invalidDate: "Invalid date!", + dateIsEarly: "The date is too early! Current: {0}, Minimum: {1}", + dateIsLate: "The date is too late! Current: {0}, Maximum: {1}", + invalidEmail: "Invalid e-mail address!", + invalidURL: "Invalid URL!", + invalidCard: "Invalid card format!", + invalidCardNumber: "Invalid card number!", + invalidTextContainNumber: "Invalid text! Cannot contains numbers or special characters", + invalidTextContainSpec: "Invalid text! Cannot contains special characters" +}; + +function checkEmpty(value, required) { + var messages = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : resources; + + if (lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(value) || value === "") { + if (required) { + return [msg(messages.fieldIsRequired)]; + } else { + return []; + } + } + + return null; +} + +function msg(text) { + if (text != null && arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + text = text.replace("{" + (i - 1) + "}", arguments[i]); + } + } + + return text; +} + +var validators = { + resources: resources, + required: function required(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + return checkEmpty(value, field.required, messages); + }, + number: function number(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + + if (res != null) { + return res; + } + + var err = []; + + if (lodash_isNumber__WEBPACK_IMPORTED_MODULE_10___default()(value)) { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.min) && value < field.fieldOptions.min) { + err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); + } + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.max) && value > field.fieldOptions.max) { + err.push(msg(messages.numberTooBig, field.fieldOptions.max)); + } + } else { + err.push(msg(messages.invalidNumber)); + } + + return err; + }, + integer: function integer(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var errs = validators.number(value, field, model, messages); + + if (!lodash_isInteger__WEBPACK_IMPORTED_MODULE_9___default()(value)) { + errs.push(msg(messages.invalidInteger)); + } + + return errs; + }, + double: function double(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + + if (!lodash_isNumber__WEBPACK_IMPORTED_MODULE_10___default()(value) || isNaN(value)) { + return [msg(messages.invalidNumber)]; + } + }, + string: function string(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var err = []; + + if (lodash_isString__WEBPACK_IMPORTED_MODULE_8___default()(value)) { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { + err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); + } + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.max) && value.length > field.fieldOptions.max) { + err.push(msg(messages.textTooBig, value.length, field.fieldOptions.max)); + } + } else { + err.push(msg(messages.thisNotText)); + } + + return err; + }, + array: function array(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + + if (field.required) { + if (!lodash_isArray__WEBPACK_IMPORTED_MODULE_7___default()(value)) { + return [msg(messages.thisNotArray)]; + } + + if (value.length === 0) { + return [msg(messages.fieldIsRequired)]; + } + } + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(value)) { + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { + return [msg(messages.selectMinItems, field.fieldOptions.min)]; + } + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.max) && value.length > field.fieldOptions.max) { + return [msg(messages.selectMaxItems, field.fieldOptions.max)]; + } + } + }, + date: function date(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var m = new Date(value); + + if (!m) { + return [msg(messages.invalidDate)]; + } + + var err = []; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.min)) { + var min = new Date(field.fieldOptions.min); + + if (m.valueOf() < min.valueOf()) { + err.push(msg(messages.dateIsEarly, fecha__WEBPACK_IMPORTED_MODULE_13___default.a.format(m), fecha__WEBPACK_IMPORTED_MODULE_13___default.a.format(min))); + } + } + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.fieldOptions.max)) { + var max = new Date(field.fieldOptions.max); + + if (m.valueOf() > max.valueOf()) { + err.push(msg(messages.dateIsLate, fecha__WEBPACK_IMPORTED_MODULE_13___default.a.format(m), fecha__WEBPACK_IMPORTED_MODULE_13___default.a.format(max))); + } + } + + return err; + }, + regexp: function regexp(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_11___default()(field.pattern)) { + var re = new RegExp(field.pattern); + + if (!re.test(value)) { + return [msg(messages.invalidFormat)]; + } + } + }, + email: function email(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; // eslint-disable-line no-useless-escape + + if (!re.test(value)) { + return [msg(messages.invalidEmail)]; + } + }, + url: function url(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var re = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g; // eslint-disable-line no-useless-escape + + if (!re.test(value)) { + return [msg(messages.invalidURL)]; + } + }, + creditCard: function creditCard(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + /* From validator.js code + https://github.com/chriso/validator.js/blob/master/src/lib/isCreditCard.js + */ + + var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/; + var sanitized = value.replace(/[^0-9]+/g, ""); + + if (!creditCard.test(sanitized)) { + return [msg(messages.invalidCard)]; + } + + var sum = 0; + var digit; + var tmpNum; + var shouldDouble; + + for (var i = sanitized.length - 1; i >= 0; i--) { + digit = sanitized.substring(i, i + 1); + tmpNum = parseInt(digit, 10); + + if (shouldDouble) { + tmpNum *= 2; + + if (tmpNum >= 10) { + sum += tmpNum % 10 + 1; + } else { + sum += tmpNum; + } + } else { + sum += tmpNum; + } + + shouldDouble = !shouldDouble; + } + + if (!(sum % 10 === 0 ? sanitized : false)) { + return [msg(messages.invalidCardNumber)]; + } + }, + alpha: function alpha(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var re = /^[a-zA-Z]*$/; + + if (!re.test(value)) { + return [msg(messages.invalidTextContainNumber)]; + } + }, + alphaNumeric: function alphaNumeric(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + var res = checkEmpty(value, field.required, messages); + if (res != null) return res; + var re = /^[a-zA-Z0-9]*$/; + + if (!re.test(value)) { + return [msg(messages.invalidTextContainSpec)]; + } + } +}; +Object.keys(validators).forEach(function (name) { + var fn = validators[name]; + + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_6___default()(fn)) { + fn.locale = function (customMessages) { + return function (value, field, model) { + return fn(value, field, model, lodash_defaults__WEBPACK_IMPORTED_MODULE_12___default()(customMessages, resources)); + }; + }; + } +}); +/* harmony default export */ __webpack_exports__["default"] = (validators); + +/***/ }), + +/***/ "a029": +/***/ (function(module, exports) { + +/** + * This method returns a new empty array. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {Array} Returns the new empty array. + * @example + * + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false + */ +function stubArray() { + return []; +} + +module.exports = stubArray; + + +/***/ }), + +/***/ "a25f": +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__("7726"); +var navigator = global.navigator; + +module.exports = navigator && navigator.userAgent || ''; + + +/***/ }), + +/***/ "a481": +/***/ (function(module, exports, __webpack_require__) { + +// @@replace logic +__webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace) { + // 21.1.3.14 String.prototype.replace(searchValue, replaceValue) + return [function replace(searchValue, replaceValue) { + 'use strict'; + var O = defined(this); + var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; + return fn !== undefined + ? fn.call(searchValue, O, replaceValue) + : $replace.call(String(O), searchValue, replaceValue); + }, $replace]; +}); + + +/***/ }), + +/***/ "a5b8": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// 25.4.1.5 NewPromiseCapability(C) +var aFunction = __webpack_require__("d8e8"); + +function PromiseCapability(C) { + var resolve, reject; + this.promise = new C(function ($$resolve, $$reject) { + if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); + resolve = $$resolve; + reject = $$reject; + }); + this.resolve = aFunction(resolve); + this.reject = aFunction(reject); +} + +module.exports.f = function (C) { + return new PromiseCapability(C); +}; + + +/***/ }), + +/***/ "a994": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("91e9"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), + +/***/ "aae3": +/***/ (function(module, exports, __webpack_require__) { + +// 7.2.8 IsRegExp(argument) +var isObject = __webpack_require__("d3f4"); +var cof = __webpack_require__("2d95"); +var MATCH = __webpack_require__("2b4c")('match'); +module.exports = function (it) { + var isRegExp; + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); +}; + + +/***/ }), + +/***/ "ac6a": +/***/ (function(module, exports, __webpack_require__) { + +var $iterators = __webpack_require__("cadf"); +var getKeys = __webpack_require__("0d58"); +var redefine = __webpack_require__("2aba"); +var global = __webpack_require__("7726"); +var hide = __webpack_require__("32e9"); +var Iterators = __webpack_require__("84f2"); +var wks = __webpack_require__("2b4c"); +var ITERATOR = wks('iterator'); +var TO_STRING_TAG = wks('toStringTag'); +var ArrayValues = Iterators.Array; + +var DOMIterables = { + CSSRuleList: true, // TODO: Not spec compliant, should be false. + CSSStyleDeclaration: false, + CSSValueList: false, + ClientRectList: false, + DOMRectList: false, + DOMStringList: false, + DOMTokenList: true, + DataTransferItemList: false, + FileList: false, + HTMLAllCollection: false, + HTMLCollection: false, + HTMLFormElement: false, + HTMLSelectElement: false, + MediaList: true, // TODO: Not spec compliant, should be false. + MimeTypeArray: false, + NamedNodeMap: false, + NodeList: true, + PaintRequestList: false, + Plugin: false, + PluginArray: false, + SVGLengthList: false, + SVGNumberList: false, + SVGPathSegList: false, + SVGPointList: false, + SVGStringList: false, + SVGTransformList: false, + SourceBufferList: false, + StyleSheetList: true, // TODO: Not spec compliant, should be false. + TextTrackCueList: false, + TextTrackList: false, + TouchList: false +}; + +for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { + var NAME = collections[i]; + var explicit = DOMIterables[NAME]; + var Collection = global[NAME]; + var proto = Collection && Collection.prototype; + var key; + if (proto) { + if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); + Iterators[NAME] = ArrayValues; + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); + } +} + + +/***/ }), + +/***/ "b018": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2c4d"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldUpload_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "b047": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"), + now = __webpack_require__("408c"), + toNumber = __webpack_require__("b4b0"); + +/** Error message constants. */ +var FUNC_ERROR_TEXT = 'Expected a function'; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max, + nativeMin = Math.min; + +/** + * Creates a debounced function that delays invoking `func` until after `wait` + * milliseconds have elapsed since the last time the debounced function was + * invoked. The debounced function comes with a `cancel` method to cancel + * delayed `func` invocations and a `flush` method to immediately invoke them. + * Provide `options` to indicate whether `func` should be invoked on the + * leading and/or trailing edge of the `wait` timeout. The `func` is invoked + * with the last arguments provided to the debounced function. Subsequent + * calls to the debounced function return the result of the last `func` + * invocation. + * + * **Note:** If `leading` and `trailing` options are `true`, `func` is + * invoked on the trailing edge of the timeout only if the debounced function + * is invoked more than once during the `wait` timeout. + * + * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred + * until to the next tick, similar to `setTimeout` with a timeout of `0`. + * + * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/) + * for details over the differences between `_.debounce` and `_.throttle`. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Function + * @param {Function} func The function to debounce. + * @param {number} [wait=0] The number of milliseconds to delay. + * @param {Object} [options={}] The options object. + * @param {boolean} [options.leading=false] + * Specify invoking on the leading edge of the timeout. + * @param {number} [options.maxWait] + * The maximum time `func` is allowed to be delayed before it's invoked. + * @param {boolean} [options.trailing=true] + * Specify invoking on the trailing edge of the timeout. + * @returns {Function} Returns the new debounced function. + * @example + * + * // Avoid costly calculations while the window size is in flux. + * jQuery(window).on('resize', _.debounce(calculateLayout, 150)); + * + * // Invoke `sendMail` when clicked, debouncing subsequent calls. + * jQuery(element).on('click', _.debounce(sendMail, 300, { + * 'leading': true, + * 'trailing': false + * })); + * + * // Ensure `batchLog` is invoked once after 1 second of debounced calls. + * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 }); + * var source = new EventSource('/stream'); + * jQuery(source).on('message', debounced); + * + * // Cancel the trailing debounced invocation. + * jQuery(window).on('popstate', debounced.cancel); + */ +function debounce(func, wait, options) { + var lastArgs, + lastThis, + maxWait, + result, + timerId, + lastCallTime, + lastInvokeTime = 0, + leading = false, + maxing = false, + trailing = true; + + if (typeof func != 'function') { + throw new TypeError(FUNC_ERROR_TEXT); + } + wait = toNumber(wait) || 0; + if (isObject(options)) { + leading = !!options.leading; + maxing = 'maxWait' in options; + maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; + trailing = 'trailing' in options ? !!options.trailing : trailing; + } + + function invokeFunc(time) { + var args = lastArgs, + thisArg = lastThis; + + lastArgs = lastThis = undefined; + lastInvokeTime = time; + result = func.apply(thisArg, args); + return result; + } + + function leadingEdge(time) { + // Reset any `maxWait` timer. + lastInvokeTime = time; + // Start the timer for the trailing edge. + timerId = setTimeout(timerExpired, wait); + // Invoke the leading edge. + return leading ? invokeFunc(time) : result; + } + + function remainingWait(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime, + timeWaiting = wait - timeSinceLastCall; + + return maxing + ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) + : timeWaiting; + } + + function shouldInvoke(time) { + var timeSinceLastCall = time - lastCallTime, + timeSinceLastInvoke = time - lastInvokeTime; + + // Either this is the first call, activity has stopped and we're at the + // trailing edge, the system time has gone backwards and we're treating + // it as the trailing edge, or we've hit the `maxWait` limit. + return (lastCallTime === undefined || (timeSinceLastCall >= wait) || + (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait)); + } + + function timerExpired() { + var time = now(); + if (shouldInvoke(time)) { + return trailingEdge(time); + } + // Restart the timer. + timerId = setTimeout(timerExpired, remainingWait(time)); + } + + function trailingEdge(time) { + timerId = undefined; + + // Only invoke if we have `lastArgs` which means `func` has been + // debounced at least once. + if (trailing && lastArgs) { + return invokeFunc(time); + } + lastArgs = lastThis = undefined; + return result; + } + + function cancel() { + if (timerId !== undefined) { + clearTimeout(timerId); + } + lastInvokeTime = 0; + lastArgs = lastCallTime = lastThis = timerId = undefined; + } + + function flush() { + return timerId === undefined ? result : trailingEdge(now()); + } + + function debounced() { + var time = now(), + isInvoking = shouldInvoke(time); + + lastArgs = arguments; + lastThis = this; + lastCallTime = time; + + if (isInvoking) { + if (timerId === undefined) { + return leadingEdge(lastCallTime); + } + if (maxing) { + // Handle invocations in a tight loop. + timerId = setTimeout(timerExpired, wait); + return invokeFunc(lastCallTime); + } + } + if (timerId === undefined) { + timerId = setTimeout(timerExpired, wait); + } + return result; + } + debounced.cancel = cancel; + debounced.flush = flush; + return debounced; +} + +module.exports = debounce; + + +/***/ }), + +/***/ "b218": +/***/ (function(module, exports) { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +module.exports = isLength; + + +/***/ }), + +/***/ "b4b0": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"), + isSymbol = __webpack_require__("ffd6"); + +/** Used as references for various `Number` constants. */ +var NAN = 0 / 0; + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** Used to detect bad signed hexadecimal string values. */ +var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; + +/** Used to detect binary string values. */ +var reIsBinary = /^0b[01]+$/i; + +/** Used to detect octal string values. */ +var reIsOctal = /^0o[0-7]+$/i; + +/** Built-in method references without a dependency on `root`. */ +var freeParseInt = parseInt; + +/** + * Converts `value` to a number. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to process. + * @returns {number} Returns the number. + * @example + * + * _.toNumber(3.2); + * // => 3.2 + * + * _.toNumber(Number.MIN_VALUE); + * // => 5e-324 + * + * _.toNumber(Infinity); + * // => Infinity + * + * _.toNumber('3.2'); + * // => 3.2 + */ +function toNumber(value) { + if (typeof value == 'number') { + return value; + } + if (isSymbol(value)) { + return NAN; + } + if (isObject(value)) { + var other = typeof value.valueOf == 'function' ? value.valueOf() : value; + value = isObject(other) ? (other + '') : other; + } + if (typeof value != 'string') { + return value === 0 ? value : +value; + } + value = value.replace(reTrim, ''); + var isBinary = reIsBinary.test(value); + return (isBinary || reIsOctal.test(value)) + ? freeParseInt(value.slice(2), isBinary ? 2 : 8) + : (reIsBadHex.test(value) ? NAN : +value); +} + +module.exports = toNumber; + + +/***/ }), + +/***/ "b4c0": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("cb5a"); + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +module.exports = listCacheGet; + + +/***/ }), + +/***/ "b635": +/***/ (function(module, exports, __webpack_require__) { + +var component = __webpack_require__("409c").default; + +var schema = __webpack_require__("d2e7"); + +var validators = __webpack_require__("a00a").default; + +var fieldComponents = __webpack_require__("00ec").default; + +var abstractField = __webpack_require__("672d").default; + +var install = function install(Vue) { + Vue.component("VueFormGenerator", module.exports.component); +}; + +module.exports = { + component: component, + schema: schema, + validators: validators, + abstractField: abstractField, + fieldComponents: fieldComponents, + install: install +}; + +/***/ }), + +/***/ "b72b": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldLabel_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b828"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldLabel_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldLabel_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldLabel_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "b7fb": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formElement_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("74d5"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formElement_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formElement_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formElement_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "b828": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "b8ce": +/***/ (function(module, exports, __webpack_require__) { + +var baseClone = __webpack_require__("3818"); + +/** Used to compose bitmasks for cloning. */ +var CLONE_SYMBOLS_FLAG = 4; + +/** + * Creates a shallow clone of `value`. + * + * **Note:** This method is loosely based on the + * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm) + * and supports cloning arrays, array buffers, booleans, date objects, maps, + * numbers, `Object` objects, regexes, sets, strings, symbols, and typed + * arrays. The own enumerable properties of `arguments` objects are cloned + * as plain objects. An empty object is returned for uncloneable values such + * as error objects, functions, DOM nodes, and WeakMaps. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to clone. + * @returns {*} Returns the cloned value. + * @see _.cloneDeep + * @example + * + * var objects = [{ 'a': 1 }, { 'b': 2 }]; + * + * var shallow = _.clone(objects); + * console.log(shallow[0] === objects[0]); + * // => true + */ +function clone(value) { + return baseClone(value, CLONE_SYMBOLS_FLAG); +} + +module.exports = clone; + + +/***/ }), + +/***/ "badf": +/***/ (function(module, exports) { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ "bcaa": +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__("cb7c"); +var isObject = __webpack_require__("d3f4"); +var newPromiseCapability = __webpack_require__("a5b8"); + +module.exports = function (C, x) { + anObject(C); + if (isObject(x) && x.constructor === C) return x; + var promiseCapability = newPromiseCapability.f(C); + var resolve = promiseCapability.resolve; + resolve(x); + return promiseCapability.promise; +}; + + +/***/ }), + +/***/ "be13": +/***/ (function(module, exports) { + +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; +}; + + +/***/ }), + +/***/ "bfd2": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formGenerator_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e279"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formGenerator_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formGenerator_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_formGenerator_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "c098": +/***/ (function(module, exports) { + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); +} + +module.exports = isIndex; + + +/***/ }), + +/***/ "c16e": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldSubmit.vue?vue&type=template&id=e89a313c&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],class:_vm.fieldClasses,attrs:{"id":_vm.fieldID,"type":"submit","name":_vm.inputName,"disabled":_vm.disabled},domProps:{"value":_vm.fieldOptions.buttonText},on:{"click":_vm.onClick}})} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=e89a313c&lang=pug& + +// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js +var isEmpty = __webpack_require__("13ea"); +var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); + +// EXTERNAL MODULE: ./node_modules/lodash/isFunction.js +var isFunction = __webpack_require__("9520"); +var isFunction_default = /*#__PURE__*/__webpack_require__.n(isFunction); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldSubmit.vue?vue&type=script&lang=js& + + +// +// +// +// + +/* harmony default export */ var fieldSubmitvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + methods: { + onClick: function onClick($event) { + var _this = this; + + if (this.fieldOptions.validateBeforeSubmit === true) { + // prevent a
from having it's submit event triggered + // when we have to validate data first + $event.preventDefault(); + this.eventBus.$emit("fields-validation-trigger"); + this.eventBus.$on("fields-validation-terminated", function (formErrors) { + if (!isEmpty_default()(formErrors) && isFunction_default()(_this.fieldOptions.onValidationError)) { + _this.fieldOptions.onValidationError(_this.model, _this.schema, formErrors, $event); + } else if (isFunction_default()(_this.fieldOptions.onSubmit)) { + _this.fieldOptions.onSubmit(_this.model, _this.schema, $event); + } + }); + } else if (isFunction_default()(this.fieldOptions.onSubmit)) { + // if we aren't validating, just pass the onSubmit handler the $event + // so it can be handled there + this.fieldOptions.onSubmit(this.model, this.schema, $event); + } + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldSubmitvue_type_script_lang_js_ = (fieldSubmitvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=style&index=0&lang=scss& +var fieldSubmitvue_type_style_index_0_lang_scss_ = __webpack_require__("eb5d"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldSubmitvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldSubmit.vue" +/* harmony default export */ var fieldSubmit = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "c1c9": +/***/ (function(module, exports) { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ "c2b6": +/***/ (function(module, exports) { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ "c366": +/***/ (function(module, exports, __webpack_require__) { + +// false -> Array#indexOf +// true -> Array#includes +var toIObject = __webpack_require__("6821"); +var toLength = __webpack_require__("9def"); +var toAbsoluteIndex = __webpack_require__("77f1"); +module.exports = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; +}; + + +/***/ }), + +/***/ "c495": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldCheckbox_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("574e"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldCheckbox_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldCheckbox_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldCheckbox_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "c5d8": +/***/ (function(module, exports, __webpack_require__) { + +var map = { + "./fieldCheckbox.vue": "846c", + "./fieldChecklist.vue": "1560", + "./fieldInput.vue": "96e7", + "./fieldLabel.vue": "86c9", + "./fieldRadios.vue": "e41f", + "./fieldSelect.vue": "cf3a", + "./fieldSubmit.vue": "c16e", + "./fieldTextArea.vue": "67cd", + "./fieldUpload.vue": "89d0" +}; + + +function webpackContext(req) { + var id = webpackContextResolve(req); + return __webpack_require__(id); +} +function webpackContextResolve(req) { + var id = map[req]; + if(!(id + 1)) { // check for number or string + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; + } + return id; +} +webpackContext.keys = function webpackContextKeys() { + return Object.keys(map); +}; +webpackContext.resolve = webpackContextResolve; +module.exports = webpackContext; +webpackContext.id = "c5d8"; + +/***/ }), + +/***/ "c641": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +module.exports = arrayEach; + + +/***/ }), + +/***/ "c69a": +/***/ (function(module, exports, __webpack_require__) { + +module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () { + return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7; +}); + + +/***/ }), + +/***/ "c87c": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Initializes an array clone. + * + * @private + * @param {Array} array The array to clone. + * @returns {Array} Returns the initialized clone. + */ +function initCloneArray(array) { + var length = array.length, + result = new array.constructor(length); + + // Add properties assigned by `RegExp#exec`. + if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { + result.index = array.index; + result.input = array.input; + } + return result; +} + +module.exports = initCloneArray; + + +/***/ }), + +/***/ "c8ba": +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1, eval)("this"); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), + +/***/ "ca5a": +/***/ (function(module, exports) { + +var id = 0; +var px = Math.random(); +module.exports = function (key) { + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); +}; + + +/***/ }), + +/***/ "cadf": +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var addToUnscopables = __webpack_require__("9c6c"); +var step = __webpack_require__("d53b"); +var Iterators = __webpack_require__("84f2"); +var toIObject = __webpack_require__("6821"); + +// 22.1.3.4 Array.prototype.entries() +// 22.1.3.13 Array.prototype.keys() +// 22.1.3.29 Array.prototype.values() +// 22.1.3.30 Array.prototype[@@iterator]() +module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) { + this._t = toIObject(iterated); // target + this._i = 0; // next index + this._k = kind; // kind +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() +}, function () { + var O = this._t; + var kind = this._k; + var index = this._i++; + if (!O || index >= O.length) { + this._t = undefined; + return step(1); + } + if (kind == 'keys') return step(0, index); + if (kind == 'values') return step(0, O[index]); + return step(0, [index, O[index]]); +}, 'values'); + +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) +Iterators.Arguments = Iterators.Array; + +addToUnscopables('keys'); +addToUnscopables('values'); +addToUnscopables('entries'); + + +/***/ }), + +/***/ "cb5a": +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__("9638"); + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +module.exports = assocIndexOf; + + +/***/ }), + +/***/ "cb7c": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("d3f4"); +module.exports = function (it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; +}; + + +/***/ }), + +/***/ "cc45": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "cd9d": +/***/ (function(module, exports) { + +/** + * This method returns the first argument it receives. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Util + * @param {*} value Any value. + * @returns {*} Returns `value`. + * @example + * + * var object = { 'a': 1 }; + * + * console.log(_.identity(object) === object); + * // => true + */ +function identity(value) { + return value; +} + +module.exports = identity; + + +/***/ }), + +/***/ "ce10": +/***/ (function(module, exports, __webpack_require__) { + +var has = __webpack_require__("69a8"); +var toIObject = __webpack_require__("6821"); +var arrayIndexOf = __webpack_require__("c366")(false); +var IE_PROTO = __webpack_require__("613b")('IE_PROTO'); + +module.exports = function (object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; +}; + + +/***/ }), + +/***/ "ce86": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("9e69"), + arrayMap = __webpack_require__("7948"), + isArray = __webpack_require__("6747"), + isSymbol = __webpack_require__("ffd6"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = baseToString; + + +/***/ }), + +/***/ "cf3a": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldSelect.vue?vue&type=template&id=917b3f28&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('select',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"},{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],staticClass:"form-control",class:_vm.fieldClasses,attrs:{"disabled":_vm.disabled,"name":_vm.inputName,"id":_vm.fieldID},on:{"change":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return val}); _vm.value=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[(!_vm.fieldOptions.hideNoneSelectedText)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null}},[_vm._v(_vm._s(_vm.fieldOptions.noneSelectedText || ""))]):_vm._e(),_vm._l((_vm.items),function(item){return [(item.group)?_c('optgroup',{attrs:{"label":_vm.getGroupName(item)}},_vm._l((item.ops),function(i){return (item.ops)?_c('option',{domProps:{"value":_vm.getItemValue(i)}},[_vm._v(_vm._s(_vm.getItemName(i)))]):_vm._e()})):_vm._e(),(!item.group)?_c('option',{domProps:{"value":_vm.getItemValue(item)}},[_vm._v(_vm._s(_vm.getItemName(item)))]):_vm._e()]})],2)} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue?vue&type=template&id=917b3f28&lang=pug& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js +var es6_function_name = __webpack_require__("7f7f"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js +var web_dom_iterable = __webpack_require__("ac6a"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js +var es6_array_iterator = __webpack_require__("cadf"); + +// EXTERNAL MODULE: ./node_modules/lodash/find.js +var find = __webpack_require__("2769"); +var find_default = /*#__PURE__*/__webpack_require__.n(find); + +// EXTERNAL MODULE: ./node_modules/lodash/isNil.js +var isNil = __webpack_require__("2768"); +var isNil_default = /*#__PURE__*/__webpack_require__.n(isNil); + +// EXTERNAL MODULE: ./node_modules/lodash/isObject.js +var isObject = __webpack_require__("1a8c"); +var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldSelect.vue?vue&type=script&lang=js& + + + + + + + +/* harmony default export */ var fieldSelectvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + computed: { + items: function items() { + var values = this.schema.values; + + if (typeof values == "function") { + return this.groupValues(values.apply(this, [this.model, this.schema])); + } else return this.groupValues(values); + } + }, + methods: { + formatValueToField: function formatValueToField(value) { + if (isNil_default()(value)) { + return null; + } + + return value; + }, + groupValues: function groupValues(values) { + var array = []; + var arrayElement = {}; + values.forEach(function (item) { + arrayElement = null; + + if (item.group && isObject_default()(item)) { + // There is in a group. + // Find element with this group. + arrayElement = find_default()(array, function (i) { + return i.group === item.group; + }); + + if (arrayElement) { + // There is such a group. + arrayElement.ops.push({ + id: item.id, + name: item.name + }); + } else { + // There is not such a group. + // Initialising. + arrayElement = { + group: "", + ops: [] + }; // Set group. + + arrayElement.group = item.group; // Set Group element. + + arrayElement.ops.push({ + id: item.id, + name: item.name + }); // Add array. + + array.push(arrayElement); + } + } else { + // There is not in a group. + array.push(item); + } + }); // With Groups. + + return array; + }, + getGroupName: function getGroupName(item) { + if (item && item.group) { + return item.group; + } + + throw "Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"; + }, + getItemValue: function getItemValue(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["value"] !== "undefined") { + return item[this.fieldOptions.value]; + } else { + // Use 'id' instead of 'value' cause of backward compatibility + if (typeof item["id"] !== "undefined") { + return item.id; + } else { + throw "`id` is not defined. If you want to use another key name, add a `value` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"; + } + } + } else { + return item; + } + }, + getItemName: function getItemName(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["name"] !== "undefined") { + return item[this.fieldOptions.name]; + } else { + if (typeof item["name"] !== "undefined") { + return item.name; + } else { + throw "`name` is not defined. If you want to use another key name, add a `name` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"; + } + } + } else { + return item; + } + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldSelectvue_type_script_lang_js_ = (fieldSelectvue_type_script_lang_js_); +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldSelectvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldSelect.vue" +/* harmony default export */ var fieldSelect = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "d2e7": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createDefaultObject", function() { return createDefaultObject; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMultipleFields", function() { return getMultipleFields; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMultiObjectFields", function() { return mergeMultiObjectFields; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slugifyFormID", function() { return slugifyFormID; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slugify", function() { return slugify; }); +/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6b54"); +/* harmony import */ var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("a481"); +/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("0644"); +/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2768"); +/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9520"); +/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("6747"); +/* harmony import */ var lodash_isArray__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isArray__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("1a8c"); +/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("c641"); +/* harmony import */ var lodash_each__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_each__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("0f5c"); +/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("9b02"); +/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_9__); + + + + + + + + + + + +// Create a new model by schema default values +var createDefaultObject = function createDefaultObject(schema) { + var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + lodash_each__WEBPACK_IMPORTED_MODULE_7___default()(schema.fields, function (field) { + if (lodash_get__WEBPACK_IMPORTED_MODULE_9___default()(obj, field.model) === undefined && field.default !== undefined) { + if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(field.default)) { + lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(obj, field.model, field.default(field, schema, obj)); + } else if (lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(field.default) || lodash_isArray__WEBPACK_IMPORTED_MODULE_5___default()(field.default)) { + lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(obj, field.model, lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(field.default)); + } else lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(obj, field.model, field.default); + } + }); + + return obj; +}; // Get a new model which contains only properties of multi-edit fields + + +var getMultipleFields = function getMultipleFields(schema) { + var res = []; + + lodash_each__WEBPACK_IMPORTED_MODULE_7___default()(schema.fields, function (field) { + if (field.multi === true) res.push(field); + }); + + return res; +}; // Merge many models to one 'work model' by schema + + +var mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { + var model = {}; + var fields = getMultipleFields(schema); + + lodash_each__WEBPACK_IMPORTED_MODULE_7___default()(fields, function (field) { + var mergedValue; + var notSet = true; + var path = field.model; + + lodash_each__WEBPACK_IMPORTED_MODULE_7___default()(objs, function (obj) { + var v = lodash_get__WEBPACK_IMPORTED_MODULE_9___default()(obj, path); + + if (notSet) { + mergedValue = v; + notSet = false; + } else if (mergedValue !== v) { + mergedValue = undefined; + } + }); + + lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(model, path, mergedValue); + }); + + return model; +}; + +var slugifyFormID = function slugifyFormID(schema) { + var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; + + // Try to get a reasonable default id from the schema, + // then slugify it. + if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(schema.id)) { + // If an ID's been explicitly set, use it unchanged + return prefix + schema.id; + } else { + // Return the slugified version of either: + return prefix + (schema.inputName || schema.label || schema.model || ""). // NB: This is a very simple, conservative, slugify function, + // avoiding extra dependencies. + toString().trim().toLowerCase() // Spaces & underscores to dashes + .replace(/ |_/g, "-") // Multiple dashes to one + .replace(/-{2,}/g, "-") // Remove leading & trailing dashes + .replace(/^-+|-+$/g, "") // Remove anything that isn't a (English/ASCII) letter, number or dash. + .replace(/([^a-zA-Z0-9-]+)/g, ""); + } +}; + +var slugify = function slugify() { + var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; + // Return the slugified version of either: + return name // NB: This is a very simple, conservative, slugify function, + // avoiding extra dependencies. + .toString().trim() // .toLowerCase() + // Spaces to dashes + .replace(/ /g, "-") // Multiple dashes to one + .replace(/-{2,}/g, "-") // Remove leading & trailing dashes + .replace(/^-+|-+$/g, "") // Remove anything that isn't a (English/ASCII) letter, number or dash. + .replace(/([^a-zA-Z0-9-_/./:]+)/g, ""); +}; + + + +/***/ }), + +/***/ "d370": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "d3f4": +/***/ (function(module, exports) { + +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + + +/***/ }), + +/***/ "d53b": +/***/ (function(module, exports) { + +module.exports = function (done, value) { + return { value: value, done: !!done }; +}; + + +/***/ }), + +/***/ "d7ee": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "d8e8": +/***/ (function(module, exports) { + +module.exports = function (it) { + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); + return it; +}; + + +/***/ }), + +/***/ "dcbc": +/***/ (function(module, exports, __webpack_require__) { + +var redefine = __webpack_require__("2aba"); +module.exports = function (target, src, safe) { + for (var key in src) redefine(target, key, src[key], safe); + return target; +}; + + +/***/ }), + +/***/ "e11e": +/***/ (function(module, exports) { + +// IE 8- don't enum bug keys +module.exports = ( + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' +).split(','); + + +/***/ }), + +/***/ "e279": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + +/***/ "e2a0": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isArray = __webpack_require__("6747"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var stringTag = '[object String]'; + +/** + * Checks if `value` is classified as a `String` primitive or object. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a string, else `false`. + * @example + * + * _.isString('abc'); + * // => true + * + * _.isString(1); + * // => false + */ +function isString(value) { + return typeof value == 'string' || + (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag); +} + +module.exports = isString; + + +/***/ }), + +/***/ "e2e4": +/***/ (function(module, exports, __webpack_require__) { + +var isArray = __webpack_require__("6747"); + +/** + * Casts `value` as an array if it's not one. + * + * @static + * @memberOf _ + * @since 4.4.0 + * @category Lang + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast array. + * @example + * + * _.castArray(1); + * // => [1] + * + * _.castArray({ 'a': 1 }); + * // => [{ 'a': 1 }] + * + * _.castArray('abc'); + * // => ['abc'] + * + * _.castArray(null); + * // => [null] + * + * _.castArray(undefined); + * // => [undefined] + * + * _.castArray(); + * // => [] + * + * var array = [1, 2, 3]; + * console.log(_.castArray(array) === array); + * // => true + */ +function castArray() { + if (!arguments.length) { + return []; + } + var value = arguments[0]; + return isArray(value) ? value : [value]; +} + +module.exports = castArray; + + +/***/ }), + +/***/ "e41f": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"138839da-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/pug-plain-loader!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldRadios.vue?vue&type=template&id=33a8beba&lang=pug& +var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"attributes",rawName:"v-attributes",value:('wrapper'),expression:"'wrapper'"}],staticClass:"radio-list",attrs:{"disabled":_vm.disabled}},_vm._l((_vm.items),function(item){return _c('label',{directives:[{name:"attributes",rawName:"v-attributes",value:('label'),expression:"'label'"}],class:{'is-checked': _vm.isItemChecked(item)}},[_c('input',{directives:[{name:"attributes",rawName:"v-attributes",value:('input'),expression:"'input'"}],class:_vm.fieldClasses,attrs:{"id":_vm.fieldID,"type":"radio","disabled":_vm.disabled,"name":_vm.id},domProps:{"value":_vm.getItemValue(item),"checked":_vm.isItemChecked(item)},on:{"click":function($event){_vm.onSelection(item)}}}),_vm._v(_vm._s(_vm.getItemName(item)))])}))} +var staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=33a8beba&lang=pug& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.function.name.js +var es6_function_name = __webpack_require__("7f7f"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js +var web_dom_iterable = __webpack_require__("ac6a"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js +var es6_array_iterator = __webpack_require__("cadf"); + +// EXTERNAL MODULE: ./node_modules/lodash/isObject.js +var isObject = __webpack_require__("1a8c"); +var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject); + +// EXTERNAL MODULE: ./src/fields/abstractField.js +var abstractField = __webpack_require__("672d"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--11-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/fields/core/fieldRadios.vue?vue&type=script&lang=js& + + + + + +/* harmony default export */ var fieldRadiosvue_type_script_lang_js_ = ({ + mixins: [abstractField["default"]], + computed: { + items: function items() { + var values = this.schema.values; + + if (typeof values == "function") { + return values.apply(this, [this.model, this.schema]); + } else { + return values; + } + }, + id: function id() { + return this.schema.model; + } + }, + methods: { + getItemValue: function getItemValue(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["value"] !== "undefined") { + return item[this.fieldOptions.value]; + } else { + if (typeof item["value"] !== "undefined") { + return item.value; + } else { + throw "`value` is not defined. If you want to use another key name, add a `value` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"; + } + } + } else { + return item; + } + }, + getItemName: function getItemName(item) { + if (isObject_default()(item)) { + if (typeof this.fieldOptions["name"] !== "undefined") { + return item[this.fieldOptions.name]; + } else { + if (typeof item["name"] !== "undefined") { + return item.name; + } else { + throw "`name` is not defined. If you want to use another key name, add a `name` property under `fieldOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"; + } + } + } else { + return item; + } + }, + onSelection: function onSelection(item) { + this.value = this.getItemValue(item); + }, + isItemChecked: function isItemChecked(item) { + var currentValue = this.getItemValue(item); + return currentValue === this.value; + } + } +}); +// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=script&lang=js& + /* harmony default export */ var core_fieldRadiosvue_type_script_lang_js_ = (fieldRadiosvue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/core/fieldRadios.vue?vue&type=style&index=0&lang=scss& +var fieldRadiosvue_type_style_index_0_lang_scss_ = __webpack_require__("602f"); + +// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js +var componentNormalizer = __webpack_require__("2877"); + +// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue + + + + + + +/* normalize component */ + +var component = Object(componentNormalizer["a" /* default */])( + core_fieldRadiosvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +component.options.__file = "fieldRadios.vue" +/* harmony default export */ var fieldRadios = __webpack_exports__["default"] = (component.exports); + +/***/ }), + +/***/ "e538": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"); + +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined, + allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; + +/** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ +function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var length = buffer.length, + result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); + + buffer.copy(result); + return result; +} + +module.exports = cloneBuffer; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) + +/***/ }), + +/***/ "eac5": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }), + +/***/ "eb5d": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSubmit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5ff7"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSubmit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSubmit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_index_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_7_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSubmit_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); + +/***/ }), + +/***/ "ebd6": +/***/ (function(module, exports, __webpack_require__) { + +// 7.3.20 SpeciesConstructor(O, defaultConstructor) +var anObject = __webpack_require__("cb7c"); +var aFunction = __webpack_require__("d8e8"); +var SPECIES = __webpack_require__("2b4c")('species'); +module.exports = function (O, D) { + var C = anObject(O).constructor; + var S; + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); +}; + + +/***/ }), + +/***/ "ec69": +/***/ (function(module, exports, __webpack_require__) { + +var overArg = __webpack_require__("91e9"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +module.exports = nativeKeys; + + +/***/ }), + +/***/ "f4d6": +/***/ (function(module, exports, __webpack_require__) { + +var isSymbol = __webpack_require__("ffd6"); + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** + * Converts `value` to a string key if it's not a string or symbol. + * + * @private + * @param {*} value The value to inspect. + * @returns {string|symbol} Returns the key. + */ +function toKey(value) { + if (typeof value == 'string' || isSymbol(value)) { + return value; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +module.exports = toKey; + + +/***/ }), + +/***/ "f605": +/***/ (function(module, exports) { + +module.exports = function (it, Constructor, name, forbiddenField) { + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { + throw TypeError(name + ': incorrect invocation!'); + } return it; +}; + + +/***/ }), + +/***/ "fa21": +/***/ (function(module, exports, __webpack_require__) { + +var baseCreate = __webpack_require__("7530"), + getPrototype = __webpack_require__("2dcb"), + isPrototype = __webpack_require__("eac5"); + +/** + * Initializes an object clone. + * + * @private + * @param {Object} object The object to clone. + * @returns {Object} Returns the initialized clone. + */ +function initCloneObject(object) { + return (typeof object.constructor == 'function' && !isPrototype(object)) + ? baseCreate(getPrototype(object)) + : {}; +} + +module.exports = initCloneObject; + + +/***/ }), + +/***/ "fab2": +/***/ (function(module, exports, __webpack_require__) { + +var document = __webpack_require__("7726").document; +module.exports = document && document.documentElement; + + +/***/ }), + +/***/ "fae3": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _setPublicPath__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1eb2"); +/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("b635"); +/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_entry__WEBPACK_IMPORTED_MODULE_1__); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _entry__WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _entry__WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + + + + +/***/ }), + +/***/ "fba5": +/***/ (function(module, exports, __webpack_require__) { + +var assocIndexOf = __webpack_require__("cb5a"); + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +module.exports = listCacheHas; + + +/***/ }), + +/***/ "ffd6": +/***/ (function(module, exports) { + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +module.exports = stubFalse; + + +/***/ }) + +/******/ }); \ No newline at end of file diff --git a/dist/vfg-core.css b/dist/vfg-core.css index 6f6a8955..91f85915 100644 --- a/dist/vfg-core.css +++ b/dist/vfg-core.css @@ -1,7 +1 @@ -/** - * vue-form-generator v2.2.2 - * https://github.com/icebob/vue-form-generator - * Released under the MIT License. - */ - -.vue-form-generator *{box-sizing:border-box}.vue-form-generator .form-control{display:block;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.vue-form-generator .form-control:not([class*=" col-"]){width:100%}.vue-form-generator span.help{margin-left:.3em;position:relative}.vue-form-generator span.help .icon{display:inline-block;width:16px;height:14px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4ja3TS0oDQRAG4C8+lq7ceICICoLGK7iXuNBbeAMJuPVOIm7cqmDiIncIggg+cMZFaqCnZyYKWtB0df31V1VXdfNH6S2wD9CP8xT3KH8T9BiTcE7XBMOfyBcogvCFO9ziLWwFRosyV+QxthNsA9dJkEYlvazsQdi3sBv6Ol6TBLX+HWT3fcQZ3vGM5fBLk+ynAU41m1biCXvhs4OPBDuBpa6GxF0P8YAj3GA1d1qJfdoS4DOIcIm1DK9x8iaWeDF/SP3QU6zRROpjLDFLsFlibx1jJaMkSIGrWKntvItcyTBKzCcybsvc9ZmYz3kz9Ooz/b98A8yvW13B3ch6AAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:50%}.vue-form-generator span.help .helpText{background-color:#444;bottom:30px;color:#fff;display:block;left:0;opacity:0;padding:20px;pointer-events:none;position:absolute;text-align:justify;width:300px;transition:all .25s ease-out;box-shadow:2px 2px 6px rgba(0,0,0,.5);border-radius:6px}.vue-form-generator span.help .helpText a{font-weight:700;text-decoration:underline}.vue-form-generator span.help .helpText:before{bottom:-20px;content:" ";display:block;height:20px;left:0;position:absolute;width:100%}.vue-form-generator span.help:hover .helpText{opacity:1;pointer-events:auto;transform:translateY(0)}.vue-form-generator .field-wrap{display:flex}.vue-form-generator .field-wrap .buttons{white-space:nowrap;margin-left:4px}.vue-form-generator .field-wrap button,.vue-form-generator .field-wrap input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;touch-action:manipulation;cursor:pointer;user-select:none;color:#333;background-color:#fff;border:1px solid #ccc;border-radius:4px}.vue-form-generator .field-wrap button:not(:last-child),.vue-form-generator .field-wrap input[type=submit]:not(:last-child){margin-right:4px}.vue-form-generator .field-wrap button:hover,.vue-form-generator .field-wrap input[type=submit]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.vue-form-generator .field-wrap button:active,.vue-form-generator .field-wrap input[type=submit]:active{color:#333;background-color:#d4d4d4;border-color:#8c8c8c;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.vue-form-generator .field-wrap button:disabled,.vue-form-generator .field-wrap input[type=submit]:disabled{opacity:.6;cursor:not-allowed}.vue-form-generator .hint{font-style:italic;font-size:.8em}.vue-form-generator .form-group{display:inline-block;vertical-align:top;width:100%;margin-bottom:1rem}.vue-form-generator .form-group label{font-weight:400}.vue-form-generator .form-group.featured>label{font-weight:700}.vue-form-generator .form-group.required>label:after{content:"*";font-weight:400;color:red;padding-left:.2em;font-size:1em}.vue-form-generator .form-group.disabled>label{color:#666;font-style:italic}.vue-form-generator .form-group.error input:not([type=checkbox]),.vue-form-generator .form-group.error select,.vue-form-generator .form-group.error textarea{border:1px solid red;background-color:rgba(255,0,0,.15)}.vue-form-generator .form-group.error .errors{color:red;font-size:.8em}.vue-form-generator .form-group.error .errors span{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiklEQVR4Xt2TMQoCQQxF3xdhu72MpZU3GU/meBFLOztPYrVWsQmEWSaMsIXgK8P8RyYkMjO2sAN+K9gTIAmDAlzoUzE7p4IFytvDCQWJKSStYB2efcAvqZFM0BcstMx5naSDYFzfLhh/4SmRM+6Agw/xIX0tKEDFufeDNRUc4XqLRz3qabVIf3BMHwl6Ktexn3nmAAAAAElFTkSuQmCC");background-repeat:no-repeat;padding-left:17px;padding-top:0;margin-top:.2em;font-weight:600}.vue-form-generator .field-checkbox input{margin-left:12px}.vue-form-generator .field-checklist .dropList,.vue-form-generator .field-checklist .listbox{height:auto;max-height:150px;overflow:auto}.vue-form-generator .field-checklist .dropList .list-row label,.vue-form-generator .field-checklist .listbox .list-row label{font-weight:400}.vue-form-generator .field-checklist .dropList .list-row input,.vue-form-generator .field-checklist .listbox .list-row input{margin-right:.3em}.vue-form-generator .field-checklist .combobox{height:auto;overflow:hidden}.vue-form-generator .field-checklist .combobox .mainRow{cursor:pointer;position:relative;padding-right:10px}.vue-form-generator .field-checklist .combobox .mainRow .arrow{position:absolute;right:-9px;top:3px;width:16px;height:16px;transform:rotate(0deg);transition:transform .5s;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGdJREFUOI3tzjsOwjAURNGDUqSgTxU5K2AVrJtswjUsgHSR0qdxAZZFPrS+3ZvRzBsqf9MUtBtazJk+oMe0VTriiZCFX8nbpENMgfARjsn74vKj5IFruhfc8d6zIF9S/Hyk5HS4spMVeFcOjszaOwMAAAAASUVORK5CYII=");background-repeat:no-repeat}.vue-form-generator .field-checklist .combobox .mainRow.expanded .arrow{transform:rotate(-180deg)}.vue-form-generator .field-checklist .combobox .dropList{transition:height .5s}.vue-form-generator .field-input .wrapper,.vue-form-generator .field-input input[type=radio]{width:100%}.vue-form-generator .field-input input[type=color]{width:60px}.vue-form-generator .field-input input[type=range]{padding:0}.vue-form-generator .field-input .helper{margin:auto .5em}.vue-form-generator .field-label span{display:block;width:100%;margin-left:12px}.vue-form-generator .field-radios .radio-list label{display:block}.vue-form-generator .field-radios .radio-list label input[type=radio]{margin-right:5px}.vue-form-generator .field-submit input{color:#fff!important;background-color:#337ab7!important;border-color:#2e6da4!important}.vue-form-generator .field-input .wrapper{width:100%}.vue-form-generator .field-input .helper{margin:auto .5em} \ No newline at end of file +.vue-form-generator .field-checkbox input{margin-left:12px}.vue-form-generator .field-checklist .dropList,.vue-form-generator .field-checklist .listbox{height:auto;max-height:150px;overflow:auto}.vue-form-generator .field-checklist .dropList .list-row label,.vue-form-generator .field-checklist .listbox .list-row label{font-weight:400}.vue-form-generator .field-checklist .dropList .list-row input,.vue-form-generator .field-checklist .listbox .list-row input{margin-right:.3em}.vue-form-generator .field-checklist .combobox{height:auto;overflow:hidden}.vue-form-generator .field-checklist .combobox .mainRow{cursor:pointer;position:relative;padding-right:10px}.vue-form-generator .field-checklist .combobox .mainRow .arrow{position:absolute;right:-9px;top:3px;width:16px;height:16px;-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAGdJREFUOI3tzjsOwjAURNGDUqSgTxU5K2AVrJtswjUsgHSR0qdxAZZFPrS+3ZvRzBsqf9MUtBtazJk+oMe0VTriiZCFX8nbpENMgfARjsn74vKj5IFruhfc8d6zIF9S/Hyk5HS4spMVeFcOjszaOwMAAAAASUVORK5CYII=");background-repeat:no-repeat}.vue-form-generator .field-checklist .combobox .mainRow.expanded .arrow{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.vue-form-generator .field-checklist .combobox .dropList{-webkit-transition:height .5s;transition:height .5s}.vue-form-generator .field-input input[type=radio]{width:100%}.vue-form-generator .field-input input[type=color]{width:60px}.vue-form-generator .field-input input[type=range]{padding:0}.vue-form-generator .field-label span{display:block;width:100%;margin-left:12px}.vue-form-generator .field-radios .radio-list label{display:block}.vue-form-generator .field-radios .radio-list label input[type=radio]{margin-right:5px}.vue-form-generator .field-submit input{color:#fff!important;background-color:#337ab7!important;border-color:#2e6da4!important}.vue-form-generator .field-input .wrapper{width:100%}.vue-form-generator .field-input .helper{margin:auto .5em}.form-element:not([class*=" col-"]){width:100%}.form-element{display:inline-block;vertical-align:top;margin-bottom:1rem}.form-element label{font-weight:400}.form-element label>:first-child{display:inline-block}.form-element.featured>label{font-weight:700}.form-element.required>label:after{content:"*";font-weight:400;color:red;padding-left:.2em;font-size:1em}.form-element.disabled>label{color:#666;font-style:italic}.form-element.error input:not([type=checkbox]),.form-element.error select,.form-element.error textarea{border:1px solid red;background-color:rgba(255,0,0,.15)}.form-element.error .errors{color:red;font-size:.8em}.form-element.error .errors span{display:block;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAiklEQVR4Xt2TMQoCQQxF3xdhu72MpZU3GU/meBFLOztPYrVWsQmEWSaMsIXgK8P8RyYkMjO2sAN+K9gTIAmDAlzoUzE7p4IFytvDCQWJKSStYB2efcAvqZFM0BcstMx5naSDYFzfLhh/4SmRM+6Agw/xIX0tKEDFufeDNRUc4XqLRz3qabVIf3BMHwl6Ktexn3nmAAAAAElFTkSuQmCC");background-repeat:no-repeat;padding-left:17px;padding-top:0;margin-top:.2em;font-weight:600}.vue-form-generator *{-webkit-box-sizing:border-box;box-sizing:border-box}.vue-form-generator .form-control{display:block;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out}.vue-form-generator .form-control:not([class*=" col-"]){width:100%}.vue-form-generator span.help{margin-left:.3em;position:relative}.vue-form-generator span.help .icon{display:inline-block;width:16px;height:14px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4ja3TS0oDQRAG4C8+lq7ceICICoLGK7iXuNBbeAMJuPVOIm7cqmDiIncIggg+cMZFaqCnZyYKWtB0df31V1VXdfNH6S2wD9CP8xT3KH8T9BiTcE7XBMOfyBcogvCFO9ziLWwFRosyV+QxthNsA9dJkEYlvazsQdi3sBv6Ol6TBLX+HWT3fcQZ3vGM5fBLk+ynAU41m1biCXvhs4OPBDuBpa6GxF0P8YAj3GA1d1qJfdoS4DOIcIm1DK9x8iaWeDF/SP3QU6zRROpjLDFLsFlibx1jJaMkSIGrWKntvItcyTBKzCcybsvc9ZmYz3kz9Ooz/b98A8yvW13B3ch6AAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:50%}.vue-form-generator span.help .helpText{background-color:#444;bottom:30px;color:#fff;display:block;left:0;opacity:0;padding:20px;pointer-events:none;position:absolute;text-align:justify;width:300px;-webkit-transition:all .25s ease-out;transition:all .25s ease-out;-webkit-box-shadow:2px 2px 6px rgba(0,0,0,.5);box-shadow:2px 2px 6px rgba(0,0,0,.5);border-radius:6px}.vue-form-generator span.help .helpText a{font-weight:700;text-decoration:underline}.vue-form-generator span.help .helpText:before{bottom:-20px;content:" ";display:block;height:20px;left:0;position:absolute;width:100%}.vue-form-generator span.help:hover .helpText{opacity:1;pointer-events:auto;-webkit-transform:translateY(0);transform:translateY(0)}.vue-form-generator .field-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-form-generator .field-wrap .buttons{white-space:nowrap;margin-left:4px}.vue-form-generator .field-wrap button,.vue-form-generator .field-wrap input[type=submit]{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#333;background-color:#fff;border:1px solid #ccc;border-radius:4px}.vue-form-generator .field-wrap button:not(:last-child),.vue-form-generator .field-wrap input[type=submit]:not(:last-child){margin-right:4px}.vue-form-generator .field-wrap button:hover,.vue-form-generator .field-wrap input[type=submit]:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.vue-form-generator .field-wrap button:active,.vue-form-generator .field-wrap input[type=submit]:active{color:#333;background-color:#d4d4d4;border-color:#8c8c8c;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.vue-form-generator .field-wrap button:disabled,.vue-form-generator .field-wrap input[type=submit]:disabled{opacity:.6;cursor:not-allowed}.vue-form-generator .hint{font-style:italic;font-size:.8em} \ No newline at end of file diff --git a/dist/vfg-core.js b/dist/vfg-core.js deleted file mode 100644 index 7158b890..00000000 --- a/dist/vfg-core.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * vue-form-generator v2.3.0 - * https://github.com/vue-generators/vue-form-generator/ - * Released under the MIT License. - */ - -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueFormGenerator=e():t.VueFormGenerator=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=123)}([function(t,e){var n=Array.isArray;t.exports=n},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(74)("wks"),o=n(75),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==u||e==s||e==a||e==c}var o=n(11),i=n(1),a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(84),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){t=t||{};var s=typeof t.default;"object"!==s&&"function"!==s||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var f;if(a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=f):o&&(f=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(c.functional){c._injectStyles=f;var l=c.render;c.render=function(t,e){return f.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,f):[f]}return{exports:t,options:c}}e.a=r},function(t,e,n){"use strict";function r(t){return d()(t)?null!=g.default[t]?g.default[t]:(console.warn("'"+t+"' is not a validator function!"),null):t}function o(t,e,n){var r=y()(n.context,"schema.attributes",{}),o=e.value||"input";d()(o)&&(r=y()(r,o)||r),m()(r,function(e,n){t.setAttribute(n,e)})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(68),a=n.n(i),u=n(104),s=n.n(u),c=n(0),f=n.n(c),l=n(61),d=n.n(l),p=n(4),h=n.n(p),v=n(24),m=n.n(v),b=n(12),y=n.n(b),g=n(106),x=n(41);e.default={props:["model","schema","formOptions","disabled"],data:function(){return{errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:o,updated:o,componentUpdated:o}},computed:{value:{cache:!1,get:function(){var t=void 0;return t=h()(y()(this.schema,"get"))?this.schema.get(this.model):y()(this.model,this.schema.model),this.formatValueToField(t)},set:function(t){var e=this.value;t=this.formatValueToModel(t),h()(t)?t(t,e):this.updateModelValue(t,e)}}},methods:{validate:function(t){var e=this;this.clearValidationErrors();var n=y()(this.formOptions,"validateAsync",!1),o=[];if(this.schema.validator&&!0!==this.schema.readonly&&!0!==this.disabled){var i=[];f()(this.schema.validator)?m()(this.schema.validator,function(t){i.push(r(t).bind(e))}):i.push(r(this.schema.validator).bind(this)),m()(i,function(t){if(n)o.push(t(e.value,e.schema,e.model));else{var r=t(e.value,e.schema,e.model);r&&h()(r.then)?r.then(function(t){t&&(e.errors=e.errors.concat(t));var n=0===e.errors.length;e.$emit("validated",n,e.errors,e)}):r&&(o=o.concat(r))}})}var u=function(n){var r=[];m()(n,function(t){f()(t)&&t.length>0?r=r.concat(t):d()(t)&&r.push(t)}),h()(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,r,e.schema);var o=0===r.length;return t||e.$emit("validated",o,r,e),e.errors=r,r};return n?a.a.all(o).then(u):u(o)},debouncedValidate:function(){h()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=s()(this.validate.bind(this),y()(this,"$parent.options.validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(t,e){var n=!1;h()(this.schema.set)?(this.schema.set(this.model,t),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),n=!0),n&&(this.$emit("model-updated",t,this.schema.model),h()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,e,this.schema),!0===y()(this.$parent,"options.validateAfterChanged",!1)&&(y()(this.$parent,"options.validateDebounceTime",0)>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,e){var n=t.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");for(var r=this.model,o=n.split("."),i=0,a=o.length;i-1&&t%1==0&&t1&&void 0!==arguments[1]?arguments[1]:{};return d()(t.fields,function(n){void 0===m()(e,n.model)&&void 0!==n.default&&(a()(n.default)?h()(e,n.model,n.default(n,t,e)):f()(n.default)||s()(n.default)?h()(e,n.model,o()(n.default)):h()(e,n.model,n.default))}),e},y=function(t){var e=[];return d()(t.fields,function(t){!0===t.multi&&e.push(t)}),e},g=function(t,e){var n={},r=y(t);return d()(r,function(t){var r=void 0,o=!0,i=t.model;d()(e,function(t){var e=m()(t,i);o?(r=e,o=!1):r!==e&&(r=void 0)}),h()(n,i,r)}),n},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==t.id?e+t.id:e+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},_=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,e,n){function r(t,e,n,r){var a=!n;n||(n={});for(var u=-1,s=e.length;++u0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(21),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(137),o=n(44);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(74)("keys"),o=n(75);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(20).f,o=n(30),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(29);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(166),o=n(9),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(168),o=n(55),i=n(56),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(84),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,u=a&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=s}).call(e,n(52)(t))},function(t,e,n){function r(t,e){return o(t)?t:i(t,e)?[t]:a(u(t))}var o=n(0),i=n(58),a=n(172),u=n(196);t.exports=r},function(t,e,n){function r(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(u.test(t)||!a.test(t)||null!=e&&t in Object(e))}var o=n(0),i=n(36),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0}}},data:function(){return{errors:[]}},computed:{fields:function(){var t=this,e=[];return this.schema&&this.schema.fields&&d()(this.schema.fields,function(n){t.multiple&&!0!==n.multi||e.push(n)}),e},groups:function(){var t=[];return this.schema&&this.schema.groups&&d()(this.schema.groups.slice(0),function(e){t.push(e)}),t}},watch:{model:function(t,e){var n=this;e!==t&&null!=t&&this.$nextTick(function(){!0===n.options.validateAfterLoad&&!0!==n.isNewModel?n.validate():n.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(!0===t.options.validateAfterLoad&&!0!==t.isNewModel?t.validate():t.clearValidationErrors())})},methods:{fieldVisible:function(t){return f()(t.visible)?t.visible.call(this,this.model,t,this):!!s()(t.visible)||t.visible},onFieldValidated:function(t,e,n){var r=this;this.errors=this.errors.filter(function(t){return t.field!==n.schema}),!t&&e&&e.length>0&&d()(e,function(t){r.errors.push({field:n.schema,error:t})});var o=0===this.errors.length;this.$emit("validated",o,this.errors,this)},validate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=h()(this.options,"validateAsync",!1)),this.clearValidationErrors();var n=[],r=[];d()(this.$children,function(t){f()(t.validate)&&(n.push(t.$refs.child),r.push(t.validate(!0)))});var i=function(r){var o=[];d()(r,function(t,e){a()(t)&&t.length>0&&d()(t,function(t){o.push({field:n[e].schema,error:t})})}),t.errors=o;var i=0===o.length;return t.$emit("validated",i,o,t),e?o:i};return e?o.a.all(r).then(i):i(r)},clearValidationErrors:function(){this.errors.splice(0),d()(this.$children,function(t){t.clearValidationErrors()})}}}},function(t,e,n){t.exports={default:n(126),__esModule:!0}},function(t,e,n){"use strict";var r=n(70),o=n(14),i=n(132),a=n(15),u=n(30),s=n(22),c=n(133),f=n(49),l=n(140),d=n(3)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,m,b,y){c(n,e,v);var g,x,_,j=function(t){if(!p&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==m,M=!1,C=t.prototype,S=C[d]||C["@@iterator"]||m&&C[m],T=S||j(m),F=m?O?j("entries"):T:void 0,I="Array"==e?C.entries||S:S;if(I&&(_=l(I.call(new t)))!==Object.prototype&&_.next&&(f(_,w,!0),r||u(_,d)||a(_,d,h)),O&&S&&"values"!==S.name&&(M=!0,T=function(){return S.call(this)}),r&&!y||!p&&!M&&C[d]||a(C,d,T),s[e]=T,s[w]=h,m)if(g={values:O?T:j("values"),keys:b?T:j("keys"),entries:F},y)for(x in g)x in C||i(C,x,g[x]);else o(o.P+o.F*(p||M),e,g);return g}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(136),o=n(76);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(43),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(44);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(31),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(10),o=n(29),i=n(3)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(28),u=n(151),s=n(77),c=n(46),f=n(2),l=f.process,d=f.setImmediate,p=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,b={},y=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},g=function(t){y.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete b[t]},"process"==n(31)(l)?r=function(t){l.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=g,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(10),o=n(21),i=n(50);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(158))},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n0,r=(e={},o()(e,m()(this.options,"validationErrorClass","error"),n),o()(e,m()(this.options,"validationSuccessClass","valid"),!n),o()(e,"disabled",this.fieldDisabled(t)),o()(e,"readonly",this.fieldReadonly(t)),o()(e,"featured",this.fieldFeatured(t)),o()(e,"required",this.fieldRequired(t)),e);return f()(t.styleClasses)?h()(t.styleClasses,function(t){return r[t]=!0}):s()(t.styleClasses)&&(r[t.styleClasses]=!0),d()(t.type)||(r["field-"+t.type]=!0),r},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},fieldDisabled:function(t){return a()(t.disabled)?t.disabled.call(this,this.model,t,this):!d()(t.disabled)&&t.disabled},fieldReadonly:function(t){return a()(t.readonly)?t.readonly.call(this,this.model,t,this):!d()(t.readonly)&&t.readonly},fieldFeatured:function(t){return a()(t.featured)?t.featured.call(this,this.model,t,this):!d()(t.featured)&&t.featured},fieldRequired:function(t){return a()(t.required)?t.required.call(this,this.model,t,this):!d()(t.required)&&t.required}}}},function(t,e,n){"use strict";var r=n(4),o=n.n(r),i=n(17),a=n.n(i),u=n(24),s=n.n(u),c=n(12),f=n.n(c),l=n(41),d=n(91),p={},h=n(240);s()(h.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");p[e]=h(t).default});e.a={name:"form-group",components:p,mixins:[d.a],props:{model:Object,options:{type:Object},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}}},methods:{fieldTypeHasLabel:function(t){if(a()(t.label))return!1;switch("input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},getFieldID:function(t){var e=f()(this.options,"fieldIdPrefix","");return Object(l.slugifyFormID)(t,e)},getFieldType:function(t){return"field-"+t.type},onFieldValidated:function(t,e,n){this.$emit("validated",t,e,n)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},buttonClickHandler:function(t,e,n){return t.onclick.call(this,this.model,e,n,this)},fieldHint:function(t){return o()(t.hint)?t.hint.call(this,this.model,t,this):t.hint},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},modelUpdated:function(t,e){this.$emit("model-updated",t,e)},validate:function(t){return this.$refs.child.validate(t)},clearValidationErrors:function(){if(this.$refs.child)return this.$refs.child.clearValidationErrors()}}}},function(t,e,n){function r(t,e,n,A,D,N){var E,V=e&M,L=e&C,$=e&S;if(n&&(E=D?n(t,A,D,N):n(t)),void 0!==E)return E;if(!j(t))return t;var Y=g(t);if(Y){if(E=m(t),!V)return f(t,E)}else{var z=v(t),R=z==F||z==I;if(x(t))return c(t,V);if(z==P||z==T||R&&!D){if(E=L||R?{}:y(t),!V)return L?d(t,s(E,t)):l(t,u(E,t))}else{if(!k[z])return D?t:{};E=b(t,z,V)}}N||(N=new o);var H=N.get(t);if(H)return H;if(N.set(t,E),w(t))return t.forEach(function(o){E.add(r(o,e,n,o,t,N))}),E;if(_(t))return t.forEach(function(o,i){E.set(i,r(o,e,n,i,t,N))}),E;var q=$?L?h:p:L?keysIn:O,U=Y?void 0:q(t);return i(U||t,function(o,i){U&&(i=o,o=t[i]),a(E,i,r(o,e,n,i,t,N))}),E}var o=n(62),i=n(85),a=n(63),u=n(211),s=n(212),c=n(215),f=n(216),l=n(217),d=n(219),p=n(100),h=n(220),v=n(27),m=n(225),b=n(226),y=n(231),g=n(0),x=n(32),_=n(233),j=n(1),w=n(235),O=n(18),M=1,C=2,S=4,T="[object Arguments]",F="[object Function]",I="[object GeneratorFunction]",P="[object Object]",k={};k[T]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[F]=k["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(95);t.exports=r},function(t,e,n){var r=n(13),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){var r=n(98),o=n(99),i=n(65),a=n(96),u=Object.getOwnPropertySymbols,s=u?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n=e||n<0||C&&r>=x}function p(){var t=i();if(d(t))return h(t);j=setTimeout(p,l(t))}function h(t){return j=void 0,S&&y?r(t):(y=g=void 0,_)}function v(){void 0!==j&&clearTimeout(j),O=0,y=w=g=j=void 0}function m(){return void 0===j?_:h(i())}function b(){var t=i(),n=d(t);if(y=arguments,g=this,w=t,n){if(void 0===j)return f(w);if(C)return j=setTimeout(p,e),r(w)}return void 0===j&&(j=setTimeout(p,e)),_}var y,g,x,_,j,w,O=0,M=!1,C=!1,S=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,o(n)&&(M=!!n.leading,C="maxWait"in n,x=C?s(a(n.maxWait)||0,e):x,S="trailing"in n?!!n.trailing:S),b.cancel=v,b.flush=m,b}var o=n(1),i=n(243),a=n(105),u="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=c.test(t);return n||f.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}var o=n(1),i=n(36),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return y()(t)||""===t?e?[o(n.fieldIsRequired)]:[]:null}function o(t){if(null!=t&&arguments.length>1)for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:w;return r(t,e.required,o)},number:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=[];return m()(t)?(!y()(e.min)&&te.max&&u.push(o(i.numberTooBig,e.max))):u.push(o(i.invalidNumber)),u},integer:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=O.number(t,e,n,i);return h()(t)||u.push(o(i.invalidInteger)),u},double:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:!m()(t)||isNaN(t)?[o(i.invalidNumber)]:void 0},string:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=[];return d()(t)?(!y()(e.min)&&t.lengthe.max&&u.push(o(i.textTooBig,t.length,e.max))):u.push(o(i.thisNotText)),u},array:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w;if(e.required){if(!f()(t))return[o(r.thisNotArray)];if(0===t.length)return[o(r.fieldIsRequired)]}if(!y()(t)){if(!y()(e.min)&&t.lengthe.max)return[o(r.selectMaxItems,e.max)]}},date:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=new Date(t);if(!u)return[o(i.invalidDate)];var s=[];if(!y()(e.min)){var c=new Date(e.min);u.valueOf()f.valueOf()&&s.push(o(i.dateIsLate,j.a.format(u),j.a.format(f)))}return s},regexp:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;if(!y()(e.pattern)){if(!new RegExp(e.pattern).test(t))return[o(i.invalidFormat)]}},email:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)?void 0:[o(i.invalidEmail)]},url:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g.test(t)?void 0:[o(i.invalidURL)]},creditCard:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,s=t.replace(/[^0-9]+/g,"");if(!u.test(s))return[o(i.invalidCard)];for(var c=0,f=void 0,l=void 0,d=void 0,p=s.length-1;p>=0;p--)f=s.substring(p,p+1),l=parseInt(f,10),d?(l*=2,c+=l>=10?l%10+1:l):c+=l,d=!d;return c%10==0&&s?void 0:[o(i.invalidCardNumber)]},alpha:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^[a-zA-Z]*$/.test(t)?void 0:[o(i.invalidTextContainNumber)]},alphaNumeric:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^[a-zA-Z0-9]*$/.test(t)?void 0:[o(i.invalidTextContainSpec)]}};a()(O).forEach(function(t){var e=O[t];s()(e)&&(e.locale=function(t){return function(n,r,o){return e(n,r,o,x()(t,w))}})}),e.default=O},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(249);t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(11),i=n(9),a="[object Number]";t.exports=r},function(t,e,n){var r;!function(o){"use strict";function i(t,e){for(var n=[],r=0,o=t.length;r3?0:(t-t%10!=10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return u(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return u(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return u(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},_={D:[f,function(t,e){t.day=e}],Do:[new RegExp(f.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[f,function(t,e){t.month=e-1}],YY:[f,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[f,function(t,e){t.hour=e}],m:[f,function(t,e){t.minute=e}],s:[f,function(t,e){t.second=e}],YYYY:[d,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[l,function(t,e){t.millisecond=e}],d:[f,v],ddd:[p,v],MMM:[p,a("monthNamesShort")],MMMM:[p,a("monthNames")],a:[p,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,s.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},s.format=function(t,e,n){var r=n||s.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=s.masks[e]||e||s.masks.default;var o=[];return e=e.replace(h,function(t,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},s.parse=function(t,e,n){var r=n||s.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=s.masks[e]||e,t.length>1e3)return!1;var o=!0,i={};if(e.replace(c,function(e){if(_[e]){var n=_[e],a=t.search(n[0]);~a?t.replace(n[0],function(e){return n[1](i,e,r),t=t.substr(a+e.length),e}):o=!1}return _[e]?"":e.slice(1,e.length-1)}),!o)return!1;var a=new Date;!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0);var u;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,u=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):u=new Date(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),u},void 0!==t&&t.exports?t.exports=s:void 0!==(r=function(){return s}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict";var r=n(262),o=n.n(r),i=n(17),a=n.n(i),u=n(1),s=n.n(u),c=n(7),f=n(41);e.a={mixins:[c.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?Object(f.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):Object(f.slugify)(this.getItemValue(t))},getItemValue:function(t){if(s()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if(s()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&-1!==this.value.indexOf(this.getItemValue(t))},onChanged:function(t,e){if(!a()(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var n=o()(this.value);n.push(this.getItemValue(e)),this.value=n}else{var r=o()(this.value);r.splice(this.value.indexOf(this.getItemValue(e)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,e,n){"use strict";var r=n(108),o=n.n(r),i=n(4),a=n.n(i),u=n(12),s=n.n(u),c=n(104),f=n.n(c),l=n(7),d=n(109),p=n.n(d),h={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};e.a={mixins:[l.default],methods:{formatValueToModel:function(t){var e=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,r){e.debouncedFormatFunc(t,r)}}return t},formatDatetimeToModel:function(t,e){var n=h[this.schema.inputType.toLowerCase()],r=p.a.parse(t,n);!1!==r&&(t=this.schema.format?p.a.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,e)},formatNumberToModel:function(t,e){o()(t)||(t=NaN),this.updateModelValue(t,e)},onInput:function(t){var e=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":o()(t.target.valueAsNumber)&&(e=t.target.valueAsNumber)}this.value=e},onBlur:function(){a()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=f()(function(e,n){t.formatNumberToModel(e,n)},parseInt(s()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=f()(function(e,n){t.formatDatetimeToModel(e,n)},parseInt(s()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"===this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,e,n){"use strict";var r=n(7);e.a={mixins:[r.default]}},function(t,e,n){"use strict";var r=n(1),o=n.n(r),i=n(7);e.a={mixins:[i.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if(o()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if(o()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){return this.getItemValue(t)===this.value}}}},function(t,e,n){"use strict";var r=n(275),o=n.n(r),i=n(17),a=n.n(i),u=n(1),s=n.n(u),c=n(7);e.a={mixins:[c.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return a()(t)?null:t},groupValues:function(t){var e=[],n={};return t.forEach(function(t){n=null,t.group&&s()(t)?(n=o()(e,function(e){return e.group===t.group}),n?n.ops.push({id:t.id,name:t.name}):(n={group:"",ops:[]},n.group=t.group,n.ops.push({id:t.id,name:t.name}),e.push(n))):e.push(t)}),e},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if(s()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if(void 0!==t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if(s()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?i(t[0],t[1]):o(t):s(t)}var o=n(277),i=n(290),a=n(35),u=n(0),s=n(294);t.exports=r},function(t,e,n){function r(t,e,n,a,u){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,a,r,u))}var o=n(279),i=n(9);t.exports=r},function(t,e,n){function r(t,e,n,r,c,f){var l=n&u,d=t.length,p=e.length;if(d!=p&&!(l&&p>d))return!1;var h=f.get(t);if(h&&f.get(e))return h==e;var v=-1,m=!0,b=n&s?new o:void 0;for(f.set(t,e),f.set(e,t);++v=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(43),o=n(44);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){t.exports=!n(16)&&!n(45)(function(){return 7!=Object.defineProperty(n(46)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(21);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(15)},function(t,e,n){"use strict";var r=n(134),o=n(71),i=n(49),a={};n(15)(a,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(10),o=n(135),i=n(76),a=n(48)("IE_PROTO"),u=function(){},s=function(){var t,e=n(46)("iframe"),r=i.length;for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("