From c6111324197a212725ea0d421d3b51705ebf5176 Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Thu, 18 Oct 2018 17:07:49 +0200 Subject: [PATCH 1/4] Update submodule dev --- dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev b/dev index 8080b9f9..7bdefd5d 160000 --- a/dev +++ b/dev @@ -1 +1 @@ -Subproject commit 8080b9f9add9453e4f433bf6c02704aec19f5dcd +Subproject commit 7bdefd5da01631da1e20f50d16590cae7e962434 From b6031962ff930fb6b0e3fb6b4944faf49dc8dd75 Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Thu, 18 Oct 2018 18:16:06 +0200 Subject: [PATCH 2/4] Clean useless folders --- examples/post-form/index.html | 103 ------------------------- examples/post-form/main.js | 137 ---------------------------------- examples/simple/index.html | 101 ------------------------- examples/simple/main.js | 119 ----------------------------- public/favicon.ico | Bin 1150 -> 0 bytes public/index.html | 23 ------ 6 files changed, 483 deletions(-) delete mode 100644 examples/post-form/index.html delete mode 100644 examples/post-form/main.js delete mode 100644 examples/simple/index.html delete mode 100644 examples/simple/main.js delete mode 100644 public/favicon.ico delete mode 100644 public/index.html diff --git a/examples/post-form/index.html b/examples/post-form/index.html deleted file mode 100644 index 363ee306..00000000 --- a/examples/post-form/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - Demo of vue-form-generator - - - - - - -

Submit the form

-
-
-
Form
-
-
- -
-
-
- -
-
Model
-
-

-      
-
- -
- - - - - \ No newline at end of file diff --git a/examples/post-form/main.js b/examples/post-form/main.js deleted file mode 100644 index b08ea053..00000000 --- a/examples/post-form/main.js +++ /dev/null @@ -1,137 +0,0 @@ -var VueFormGenerator = window.VueFormGenerator; - -var vm = new Vue({ - el: "#app", - components: { - "vue-form-generator": VueFormGenerator.component - }, - - methods: { - prettyJSON: function (json) { - if (json) { - json = JSON.stringify(json, undefined, 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) { - var 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 + ""; - }); - } - } - }, - - data: { - model: { - id: 1, - name: "John Doe", - password: "J0hnD03!x4", - skills: "Javascript", - email: "john.doe@gmail.com", - status: true - }, - schema: { - fields: [ - { - type: "input", - inputType: "text", - label: "ID", - model: "id", - inputName: "id", - readonly: true, - featured: false, - disabled: true - }, - { - type: "input", - inputType: "text", - label: "Name", - model: "name", - inputName: "name", - readonly: false, - featured: true, - required: true, - disabled: false, - placeholder: "User's name", - validator: VueFormGenerator.validators.string - }, - { - type: "input", - inputType: "password", - label: "Password", - model: "password", - inputName: "password", - min: 6, - required: true, - hint: "Minimum 6 characters", - validator: VueFormGenerator.validators.string - }, - { - type: "input", - inputType: "email", - label: "E-mail", - model: "email", - inputName: "email", - placeholder: "User's e-mail address", - validator: VueFormGenerator.validators.email - }, - { - type: "select", - label: "Skills", - model: "skills", - inputName: "skills", - required: true, - values: [ - "HTML5", - "Javascript", - "CSS3", - "CoffeeScript", - "AngularJS", - "ReactJS", - "VueJS" - ], - validator: VueFormGenerator.validators.string - }, { - type: "upload", - label: "Photo", - model: "photo", - inputName: "photo", - onChanged(model, schema, event) { - console.log(model, schema, event); - } - }, - { - type: "checkbox", - label: "Status", - model: "status", - inputName: "status", - readonly: false, - featured: false, - disabled: false, - default: true - }, - { - type: "submit", - label: "", - buttonText: "Submit", - validateBeforeSubmit: true - } - - ] - }, - - formOptions: { - validateAfterLoad: false, - validateAfterChanged: false - } - } -}); \ No newline at end of file diff --git a/examples/simple/index.html b/examples/simple/index.html deleted file mode 100644 index cfb7e012..00000000 --- a/examples/simple/index.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - Demo of vue-form-generator - - - - - - -

Demo of vue-form-generator

-
-
-
Form
-
- -
-
- -
-
Model
-
-

-      
-
- -
- - - - - \ No newline at end of file diff --git a/examples/simple/main.js b/examples/simple/main.js deleted file mode 100644 index c41a0797..00000000 --- a/examples/simple/main.js +++ /dev/null @@ -1,119 +0,0 @@ -var VueFormGenerator = window.VueFormGenerator; - -var vm = new Vue({ - el: "#app", - components: { - "vue-form-generator": VueFormGenerator.component - }, - - methods: { - prettyJSON: function(json) { - if (json) { - json = JSON.stringify(json, undefined, 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) { - var 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 + ""; - }); - } - } - }, - - data: { - model: { - id: 1, - name: "John Doe", - password: "J0hnD03!x4", - skills: [ - "Javascript", - "VueJS" - ], - email: "john.doe@gmail.com", - status: true - }, - schema: { - fields: [ - { - type: "input", - inputType: "text", - label: "ID", - model: "id", - readonly: true, - featured: false, - disabled: true - }, - { - type: "input", - inputType: "text", - label: "Name", - model: "name", - readonly: false, - featured: true, - required: true, - disabled: false, - placeholder: "User's name", - validator: VueFormGenerator.validators.string - }, - { - type: "input", - inputType: "password", - label: "Password", - model: "password", - min: 6, - required: true, - hint: "Minimum 6 characters", - validator: VueFormGenerator.validators.string - }, - { - type: "input", - inputType: "email", - label: "E-mail", - model: "email", - placeholder: "User's e-mail address", - validator: VueFormGenerator.validators.email - }, - { - type: "checklist", - label: "Skills", - model: "skills", - required: true, - values: [ - "HTML5", - "Javascript", - "CSS3", - "CoffeeScript", - "AngularJS", - "ReactJS", - "VueJS" - ], - validator: VueFormGenerator.validators.array - }, - { - type: "checkbox", - label: "Status", - model: "status", - readonly: false, - featured: false, - disabled: false, - default: true - } - ] - }, - - formOptions: { - validateAfterLoad: true, - validateAfterChanged: true - } - } -}); \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index c7b9a43c8cd16d0b434adaf513fcacb340809a11..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmchVOGsN$5QZm2NTI$erQpKHrdQX(jn+pVxKN`Ng)RzW5+8_2Xb@Y)Dkd6tq9V8u z3WAh^C@KZ1kA;tohzs}b3NC_*QmUXr$oP*rH(2mdT{z*(KX=aj=bX$9kqMvFRKj;Q zwI&d~A);J>5-PDega~WT5us%#Dc(Y}C4WpP?+fS;FaZ*z_CFzgiW=w{I02=q_TUz( z?=^H2uwoIK1n%|Ay21~QgjV1emYtWttJdz^L#=DjJ@Ex*9UPc*7<=rZo*_NAh4PxA zqkso~Ioa1y$e+3kIkXi29YNLi&lW}vY6C}ut4{8ou(7w=$_=$v{yJ$h?y!&bJfq*( zL_NQRF37$6e>%9erGV?p^lRFD?|5J_eupXaS;QluyrOmBT>PJhirMYb*i?(4Tf=j~?VvnUlY_ zDCVuuk3E&T9aP~Cr-0i-MaKUjf_|U!=R&t}_CfD=d${p~HH`BPaqb9aXT}UI$iGRg z>0^GlZ`vM4?;$*LhfI(RG|XK4GF+@-W*W}YJT5&2N_ZyZuaM_Ry=%PWx>r0P(Rc?> jRc4}SfGA>*agjwN{7E7DEm(*)%rSx{B0<6wBoglxJAy|R diff --git a/public/index.html b/public/index.html deleted file mode 100644 index b198269c..00000000 --- a/public/index.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - vue-form-generator-cli - - - - - -
-
- - - - From 2b31d12cd100205c0c12f25d8b2c952540381e6e Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Fri, 19 Oct 2018 10:35:17 +0200 Subject: [PATCH 3/4] Single export - No more core vs full since both are the same right now - Optionnal fields will be removed from it in future update --- .env.development | 1 - .env.test | 1 - package.json | 9 +-------- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 .env.test diff --git a/.env.development b/.env.development index be283eda..ba436466 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1 @@ -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 deleted file mode 100644 index cf57e409..00000000 --- a/.env.test +++ /dev/null @@ -1 +0,0 @@ -VUE_APP_FULL_BUNDLE=true diff --git a/package.json b/package.json index 4ad8dcef..4903460b 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,7 @@ "scripts": { "serve": "vue-cli-service serve", "prebuild": "npm run test:unit", - "build": "npm run build:core && npm run build:full", - "build:core": "cross-env VUE_APP_FULL_BUNDLE=false vue-cli-service build --no-clean --target lib --name vfg-core src/index.js --report", - "build:full": "cross-env VUE_APP_FULL_BUNDLE=true vue-cli-service build --no-clean --target lib --name vfg src/index.js --report", + "build": "vue-cli-service build --no-clean --target lib --name vfg src/index.js --report", "lint": "vue-cli-service lint", "test:unit": "nyc vue-cli-service test:unit --include ./tests/unit/setup.js", "coverall": "cat ./tests/unit/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", @@ -35,10 +33,6 @@ "dist/vfg.css", "dist/vfg.umd.js", "dist/vfg.umd.min.js", - "dist/vfg-core.common.js", - "dist/vfg-core.css", - "dist/vfg-core.umd.js", - "dist/vfg-core.umd.min.js", "src" ], "author": "Icebob", @@ -69,7 +63,6 @@ "cleave.js": "1.4.4", "conventional-changelog-cli": "2.0.5", "coveralls": "3.0.2", - "cross-env": "5.2.0", "eonasdan-bootstrap-datetimepicker": "4.17.47", "fakerator": "0.3.0", "fecha": "2.3.3", From 449da34c6e203307fe288cc8c0840d22fe5c5803 Mon Sep 17 00:00:00 2001 From: Lionel Bijaoui Date: Fri, 19 Oct 2018 10:38:41 +0200 Subject: [PATCH 4/4] Bump version to 3.0.0-beta.7 - Update dependencies - Export dist files --- dist/vfg-core.common.js | 10253 ------------ dist/vfg-core.css | 1 - dist/vfg-core.umd.js | 10263 ------------ dist/vfg-core.umd.min.js | 1 - dist/vfg.common.js | 33194 +++++++++++++++++++++++++++++++++++-- dist/vfg.umd.js | 33194 +++++++++++++++++++++++++++++++++++-- dist/vfg.umd.min.js | 2 +- package-lock.json | 617 +- package.json | 4 +- vue.config.js | 2 +- 10 files changed, 63359 insertions(+), 24172 deletions(-) delete mode 100644 dist/vfg-core.common.js delete mode 100644 dist/vfg-core.css delete mode 100644 dist/vfg-core.umd.js delete mode 100644 dist/vfg-core.umd.min.js diff --git a/dist/vfg-core.common.js b/dist/vfg-core.common.js deleted file mode 100644 index 278484d3..00000000 --- a/dist/vfg-core.common.js +++ /dev/null @@ -1,10253 +0,0 @@ - -/** - * vue-form-generator 3.0.0-beta.5 - * 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 = "fb15"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "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; - - -/***/ }), - -/***/ "1437": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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; -}; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "1958": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2e12"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - } -}; - - -/***/ }), - -/***/ "2149": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1437"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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)]; -}; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "2d36": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d302"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "2e12": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "7375": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "76c3": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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 - - -/***/ }), - -/***/ "77cf": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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 - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "8a23": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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 - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "aa77": -/***/ (function(module, exports, __webpack_require__) { - -var $export = __webpack_require__("5ca1"); -var defined = __webpack_require__("be13"); -var fails = __webpack_require__("79e5"); -var spaces = __webpack_require__("fdef"); -var space = '[' + spaces + ']'; -var non = '\u200b\u0085'; -var ltrim = RegExp('^' + space + space + '*'); -var rtrim = RegExp(space + space + '*$'); - -var exporter = function (KEY, exec, ALIAS) { - var exp = {}; - var FORCE = fails(function () { - return !!spaces[KEY]() || non[KEY]() != non; - }); - var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; - if (ALIAS) exp[ALIAS] = fn; - $export($export.P + $export.F * FORCE, 'String', exp); -}; - -// 1 -> String#trimLeft -// 2 -> String#trimRight -// 3 -> String#trim -var trim = exporter.trim = function (string, TYPE) { - string = String(defined(string)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; -}; - -module.exports = exporter; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "b72b": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; -}; - - -/***/ }), - -/***/ "bf23": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("77cf"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "bfd2": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); - -/***/ }), - -/***/ "c5f6": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var global = __webpack_require__("7726"); -var has = __webpack_require__("69a8"); -var cof = __webpack_require__("2d95"); -var inheritIfRequired = __webpack_require__("5dbc"); -var toPrimitive = __webpack_require__("6a99"); -var fails = __webpack_require__("79e5"); -var gOPN = __webpack_require__("9093").f; -var gOPD = __webpack_require__("11e9").f; -var dP = __webpack_require__("86cc").f; -var $trim = __webpack_require__("aa77").trim; -var NUMBER = 'Number'; -var $Number = global[NUMBER]; -var Base = $Number; -var proto = $Number.prototype; -// Opera ~12 has broken Object#toString -var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; -var TRIM = 'trim' in String.prototype; - -// 7.1.3 ToNumber(argument) -var toNumber = function (argument) { - var it = toPrimitive(argument, false); - if (typeof it == 'string' && it.length > 2) { - it = TRIM ? it.trim() : $trim(it, 3); - var first = it.charCodeAt(0); - var third, radix, maxCode; - if (first === 43 || first === 45) { - third = it.charCodeAt(2); - if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix - } else if (first === 48) { - switch (it.charCodeAt(1)) { - case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i - case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i - default: return +it; - } - for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { - code = digits.charCodeAt(i); - // parseInt parses a string to a first unavailable symbol - // but ToNumber should return NaN if a string contains unavailable symbols - if (code < 48 || code > maxCode) return NaN; - } return parseInt(digits, radix); - } - } return +it; -}; - -if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { - $Number = function Number(value) { - var it = arguments.length < 1 ? 0 : value; - var that = this; - return that instanceof $Number - // check on 1..constructor(foo) case - && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) - ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); - }; - for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES6 (in case, if modules with ES6 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + - 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' - ).split(','), j = 0, key; keys.length > j; j++) { - if (has(Base, key = keys[j]) && !has($Number, key)) { - dP($Number, key, gOPD(Base, key)); - } - } - $Number.prototype = proto; - proto.constructor = $Number; - __webpack_require__("2aba")(global, NUMBER, $Number); -} - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "d302": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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'; -}; - - -/***/ }), - -/***/ "d474": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7375"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; -}; - - -/***/ }), - -/***/ "e0bf": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("76c3"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "fb15": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var schema_namespaceObject = {}; -__webpack_require__.r(schema_namespaceObject); -__webpack_require__.d(schema_namespaceObject, "createDefaultObject", function() { return schema_createDefaultObject; }); -__webpack_require__.d(schema_namespaceObject, "getMultipleFields", function() { return schema_getMultipleFields; }); -__webpack_require__.d(schema_namespaceObject, "mergeMultiObjectFields", function() { return schema_mergeMultiObjectFields; }); -__webpack_require__.d(schema_namespaceObject, "slugifyFormID", function() { return schema_slugifyFormID; }); -__webpack_require__.d(schema_namespaceObject, "slugify", function() { return slugify; }); -var fieldsLoader_namespaceObject = {}; -__webpack_require__.r(fieldsLoader_namespaceObject); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldCheckbox", function() { return fieldCheckbox; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldChecklist", function() { return fieldChecklist; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldInput", function() { return fieldInput; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldLabel", function() { return fieldLabel; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldRadios", function() { return fieldRadios; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSelect", function() { return fieldSelect; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSubmit", function() { return fieldSubmit; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldTextArea", function() { return fieldTextArea; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldUpload", function() { return fieldUpload; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldCleave", function() { return fieldCleave; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldDateTimePicker", function() { return fieldDateTimePicker; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldGoogleAddress", function() { return fieldGoogleAddress; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldImage", function() { return fieldImage; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldMasked", function() { return fieldMasked; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldNoUiSlider", function() { return fieldNoUiSlider; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldPikaday", function() { return fieldPikaday; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldRangeSlider", function() { return fieldRangeSlider; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSelectEx", function() { return fieldSelectEx; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSpectrum", function() { return fieldSpectrum; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldStaticMap", function() { return fieldStaticMap; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSwitch", function() { return fieldSwitch; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldVueMultiSelect", function() { return fieldVueMultiSelect; }); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js -// This file is imported into lib/wc client bundles. - -if (typeof window !== 'undefined') { - var setPublicPath_i - if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js$/))) { - __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line - } -} - -// Indicate to webpack that this file can be concatenated -/* harmony default export */ var setPublicPath = (null); - -// 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"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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=bed362a6& -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,"event-bus":_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,"event-bus":_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=bed362a6& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js -var es6_promise = __webpack_require__("551c"); - -// 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 lodash_get = __webpack_require__("9b02"); -var get_default = /*#__PURE__*/__webpack_require__.n(lodash_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":"4faaeac7-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=12ad8b0b& -var formGroupvue_type_template_id_12ad8b0b_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,"event-bus":_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_12ad8b0b_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=12ad8b0b& - -// 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--12-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, - default: function _default() { - return []; - } - }, - group: { - type: Object, - default: function _default() { - return {}; - } - }, - tag: { - type: String, - default: "fieldset", - validator: function validator(value) { - return value.length > 0; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; - } - }, - errors: { - type: Array, - default: function _default() { - return []; - } - }, - eventBus: { - type: Object, - default: function _default() { - return {}; - } - } - }, - 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_); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -/* 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 - } -} - -// CONCATENATED MODULE: ./src/formGroup.vue - - - - - -/* normalize component */ - -var component = normalizeComponent( - src_formGroupvue_type_script_lang_js_, - formGroupvue_type_template_id_12ad8b0b_render, - formGroupvue_type_template_id_12ad8b0b_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":"4faaeac7-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=fc1a7bb6& -var formElementvue_type_template_id_fc1a7bb6_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,"form-options":_vm.options,"event-bus":_vm.eventBus,"field-id":_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_fc1a7bb6_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/formElement.vue?vue&type=template&id=fc1a7bb6& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js -var es7_array_includes = __webpack_require__("6762"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js -var es6_regexp_to_string = __webpack_require__("6b54"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js -var es6_regexp_replace = __webpack_require__("a481"); - -// EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js -var cloneDeep = __webpack_require__("0644"); -var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); - -// EXTERNAL MODULE: ./node_modules/lodash/isObject.js -var isObject = __webpack_require__("1a8c"); -var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject); - -// EXTERNAL MODULE: ./node_modules/lodash/each.js -var each = __webpack_require__("c641"); -var each_default = /*#__PURE__*/__webpack_require__.n(each); - -// EXTERNAL MODULE: ./node_modules/lodash/set.js -var lodash_set = __webpack_require__("0f5c"); -var set_default = /*#__PURE__*/__webpack_require__.n(lodash_set); - -// CONCATENATED MODULE: ./src/utils/schema.js - - - - - - - - - - - -// Create a new model by schema default values -var schema_createDefaultObject = function createDefaultObject(schema) { - var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - each_default()(schema.fields, function (field) { - if (get_default()(obj, field.model) === undefined && field.default !== undefined) { - if (isFunction_default()(field.default)) { - set_default()(obj, field.model, field.default(field, schema, obj)); - } else if (isObject_default()(field.default) || isArray_default()(field.default)) { - set_default()(obj, field.model, cloneDeep_default()(field.default)); - } else set_default()(obj, field.model, field.default); - } - }); - - return obj; -}; // Get a new model which contains only properties of multi-edit fields - - -var schema_getMultipleFields = function getMultipleFields(schema) { - var res = []; - - each_default()(schema.fields, function (field) { - if (field.multi === true) res.push(field); - }); - - return res; -}; // Merge many models to one 'work model' by schema - - -var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { - var model = {}; - var fields = schema_getMultipleFields(schema); - - each_default()(fields, function (field) { - var mergedValue; - var notSet = true; - var path = field.model; - - each_default()(objs, function (obj) { - var v = get_default()(obj, path); - - if (notSet) { - mergedValue = v; - notSet = false; - } else if (mergedValue !== v) { - mergedValue = undefined; - } - }); - - set_default()(model, path, mergedValue); - }); - - return model; -}; - -var schema_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 (!isNil_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, ""); -}; - - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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", - mixins: [formMixin], - props: { - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; - } - }, - field: { - type: Object, - required: true - }, - errors: { - type: Array, - default: function _default() { - return []; - } - }, - eventBus: { - type: Object, - default: function _default() { - return {}; - } - } - }, - data: function data() { - return { - childErrors: [], - childTouched: false - }; - }, - computed: { - fieldID: function fieldID() { - var idPrefix = get_default()(this.options, "fieldIdPrefix", ""); - - return 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 = normalizeComponent( - src_formElementvue_type_script_lang_js_, - formElementvue_type_template_id_fc1a7bb6_render, - formElementvue_type_template_id_fc1a7bb6_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--12-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: "form-generator", - components: { - formGroup: formGroup, - formElement: formElement - }, - props: { - schema: { - type: Object, - default: function _default() { - return {}; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - 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 = normalizeComponent( - src_formGeneratorvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -formGenerator_component.options.__file = "formGenerator.vue" -/* harmony default export */ var formGenerator = (formGenerator_component.exports); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js -var es6_array_iterator = __webpack_require__("cadf"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js -var es6_object_keys = __webpack_require__("456d"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js -var es6_regexp_constructor = __webpack_require__("3b2b"); - -// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js -var isInteger = __webpack_require__("697e"); -var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); - -// 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/defaults.js -var defaults = __webpack_require__("95ae"); -var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); - -// EXTERNAL MODULE: ./node_modules/fecha/fecha.js -var fecha = __webpack_require__("9e99"); -var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); - -// CONCATENATED MODULE: ./src/utils/validators.js - - - - - - - - - - - - - - -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 (isNil_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 (isNumber_default()(value)) { - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.min) && value < field.fieldOptions.min) { - err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); - } - - if (!isNil_default()(field.fieldOptions) && !isNil_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 (!isInteger_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 (!isNumber_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 (isString_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); - } - - if (!isNil_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 (!isArray_default()(value)) { - return [msg(messages.thisNotArray)]; - } - - if (value.length === 0) { - return [msg(messages.fieldIsRequired)]; - } - } - - if (!isNil_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - return [msg(messages.selectMinItems, field.fieldOptions.min)]; - } - - if (!isNil_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 (!isNil_default()(field.fieldOptions.min)) { - var min = new Date(field.fieldOptions.min); - - if (m.valueOf() < min.valueOf()) { - err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); - } - } - - if (!isNil_default()(field.fieldOptions.max)) { - var max = new Date(field.fieldOptions.max); - - if (m.valueOf() > max.valueOf()) { - err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_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 (!isNil_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 (isFunction_default()(fn)) { - fn.locale = function (customMessages) { - return function (value, field, model) { - return fn(value, field, model, defaults_default()(customMessages, resources)); - }; - }; - } -}); -/* harmony default export */ var utils_validators = (validators); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& -var fieldCheckboxvue_type_template_id_a12bd5d0_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 fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js -var es6_regexp_split = __webpack_require__("28a5"); - -// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js -var uniqueId = __webpack_require__("98dc"); -var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); - -// EXTERNAL MODULE: ./node_modules/lodash/debounce.js -var debounce = __webpack_require__("b047"); -var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); - -// EXTERNAL MODULE: ./node_modules/lodash/forEach.js -var forEach = __webpack_require__("6cd4"); -var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); - -// CONCATENATED MODULE: ./src/fields/abstractField.js - - - - - - - - - - - - - - - - -var abstractField_convertValidator = function convertValidator(validator) { - if (isString_default()(validator)) { - if (utils_validators[validator] != null) return utils_validators[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 = get_default()(vnode.context, "schema.attributes", {}); - - var container = binding.value || "input"; - - if (isString_default()(container)) { - attrs = get_default()(attrs, container) || attrs; - } - - forEach_default()(attrs, function (val, key) { - el.setAttribute(key, val); - }); -} - -/* harmony default export */ var abstractField = ({ - props: { - model: { - type: Object - }, - schema: { - type: Object - }, - formOptions: { - type: Object - }, - eventBus: { - type: Object - }, - fieldID: { - type: String - } - }, - data: function data() { - var fieldUID = uniqueId_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 (isFunction_default()(get_default()(this.schema, "get"))) { - val = this.schema.get(this.model); - } else { - val = get_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 (isFunction_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 (isFunction_default()(this.$parent.getValueFromOption)) { - return this.$parent.getValueFromOption(field, option, defaultValue); - } else { - // Environnement de test ? - if (isNil_default()(field[option])) { - return defaultValue; - } - - return field[option]; - } - }, - validate: function validate() { - var _this = this; - - this.touch(); - this.clearValidationErrors(); - - var validateAsync = get_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 (!isArray_default()(this.schema.validator)) { - _validators.push(abstractField_convertValidator(this.schema.validator).bind(this)); - } else { - this.schema.validator.forEach(function (validator) { - _validators.push(abstractField_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 && isFunction_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 (isArray_default()(err) && err.length > 0) { - fieldErrors = fieldErrors.concat(err); - } else if (isString_default()(err)) { - fieldErrors.push(err); - } - }); - - if (isFunction_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 (!isFunction_default()(this.debouncedValidateFunc)) { - this.debouncedValidateFunc = debounce_default()(this.validate.bind(this), get_default()(this.formOptions, "validateDebounceTime", 500)); - } - - this.debouncedValidateFunc(); - }, - updateModelValue: function updateModelValue(newValue, oldValue) { - var changed = false; - - if (isFunction_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 (isFunction_default()(this.schema.onChanged)) { - this.schema.onChanged.call(this, this.model, newValue, oldValue, this.schema); - } - - if (get_default()(this.formOptions, "validateAfterChanged", false)) { - if (get_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); - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checkbox", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue - - - - - - -/* normalize component */ - -var fieldCheckbox_component = normalizeComponent( - core_fieldCheckboxvue_type_script_lang_js_, - fieldCheckboxvue_type_template_id_a12bd5d0_render, - fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns, - false, - null, - null, - null - -) - -fieldCheckbox_component.options.__file = "fieldCheckbox.vue" -/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& -var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} -var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& - -// EXTERNAL MODULE: ./node_modules/lodash/clone.js -var clone = __webpack_require__("b8ce"); -var clone_default = /*#__PURE__*/__webpack_require__.n(clone); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checklist", - mixins: [abstractField], - 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 slugify(this.inputName + "_" + this.getItemValue(item)); - } - - return 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue - - - - - - -/* normalize component */ - -var fieldChecklist_component = normalizeComponent( - core_fieldChecklistvue_type_script_lang_js_, - fieldChecklistvue_type_template_id_29d9d05a_render, - fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, - false, - null, - null, - null - -) - -fieldChecklist_component.options.__file = "fieldChecklist.vue" -/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& -var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} -var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-input", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue - - - - - - -/* normalize component */ - -var fieldInput_component = normalizeComponent( - core_fieldInputvue_type_script_lang_js_, - fieldInputvue_type_template_id_413f6cd1_render, - fieldInputvue_type_template_id_413f6cd1_staticRenderFns, - false, - null, - null, - null - -) - -fieldInput_component.options.__file = "fieldInput.vue" -/* harmony default export */ var fieldInput = (fieldInput_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& -var fieldLabelvue_type_template_id_b7bdf280_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},domProps:{"textContent":_vm._s(_vm.value)}})} -var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-label", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue - - - - - - -/* normalize component */ - -var fieldLabel_component = normalizeComponent( - core_fieldLabelvue_type_script_lang_js_, - fieldLabelvue_type_template_id_b7bdf280_render, - fieldLabelvue_type_template_id_b7bdf280_staticRenderFns, - false, - null, - null, - null - -) - -fieldLabel_component.options.__file = "fieldLabel.vue" -/* harmony default export */ var fieldLabel = (fieldLabel_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& -var fieldRadiosvue_type_template_id_3944ded4_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'"}],key:_vm.getItemValue(item),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))+"\n\t")])}))} -var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-radios", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue - - - - - - -/* normalize component */ - -var fieldRadios_component = normalizeComponent( - core_fieldRadiosvue_type_script_lang_js_, - fieldRadiosvue_type_template_id_3944ded4_render, - fieldRadiosvue_type_template_id_3944ded4_staticRenderFns, - false, - null, - null, - null - -) - -fieldRadios_component.options.__file = "fieldRadios.vue" -/* harmony default export */ var fieldRadios = (fieldRadios_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& -var fieldSelectvue_type_template_id_d7c686e6_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 || "")+"\n\t")]):_vm._e(),_vm._l((_vm.items),function(item){return [(item.group)?_c('optgroup',{key:_vm.getItemValue(item),attrs:{"label":_vm.getGroupName(item)}},_vm._l((item.ops),function(i){return (item.ops)?_c('option',{key:_vm.getItemValue(i),domProps:{"value":_vm.getItemValue(i)}},[_vm._v(" "+_vm._s(_vm.getItemName(i)))]):_vm._e()})):_vm._e(),(!item.group)?_c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))]):_vm._e()]})],2)} -var fieldSelectvue_type_template_id_d7c686e6_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& - -// EXTERNAL MODULE: ./node_modules/lodash/find.js -var find = __webpack_require__("2769"); -var find_default = /*#__PURE__*/__webpack_require__.n(find); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-select", - mixins: [abstractField], - 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_); -// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue - - - - - -/* normalize component */ - -var fieldSelect_component = normalizeComponent( - core_fieldSelectvue_type_script_lang_js_, - fieldSelectvue_type_template_id_d7c686e6_render, - fieldSelectvue_type_template_id_d7c686e6_staticRenderFns, - false, - null, - null, - null - -) - -fieldSelect_component.options.__file = "fieldSelect.vue" -/* harmony default export */ var fieldSelect = (fieldSelect_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& -var fieldSubmitvue_type_template_id_11503acf_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 fieldSubmitvue_type_template_id_11503acf_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& - -// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js -var isEmpty = __webpack_require__("13ea"); -var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-submit", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue - - - - - - -/* normalize component */ - -var fieldSubmit_component = normalizeComponent( - core_fieldSubmitvue_type_script_lang_js_, - fieldSubmitvue_type_template_id_11503acf_render, - fieldSubmitvue_type_template_id_11503acf_staticRenderFns, - false, - null, - null, - null - -) - -fieldSubmit_component.options.__file = "fieldSubmit.vue" -/* harmony default export */ var fieldSubmit = (fieldSubmit_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& -var fieldTextAreavue_type_template_id_4f6b57f4_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 fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-textArea", - mixins: [abstractField] -}); -// 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_); -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue - - - - - -/* normalize component */ - -var fieldTextArea_component = normalizeComponent( - core_fieldTextAreavue_type_script_lang_js_, - fieldTextAreavue_type_template_id_4f6b57f4_render, - fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns, - false, - null, - null, - null - -) - -fieldTextArea_component.options.__file = "fieldTextArea.vue" -/* harmony default export */ var fieldTextArea = (fieldTextArea_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& -var fieldUploadvue_type_template_id_2593d5d7_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 fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-upload", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue - - - - - - -/* normalize component */ - -var fieldUpload_component = normalizeComponent( - core_fieldUploadvue_type_script_lang_js_, - fieldUploadvue_type_template_id_2593d5d7_render, - fieldUploadvue_type_template_id_2593d5d7_staticRenderFns, - false, - null, - null, - null - -) - -fieldUpload_component.options.__file = "fieldUpload.vue" -/* harmony default export */ var fieldUpload = (fieldUpload_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& -var fieldCleavevue_type_template_id_51b82522_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":_vm.value}})} -var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldCleave.vue?vue&type=script&lang=js& - -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldCleavevue_type_script_lang_js_ = ({ - name: "field-cleave", - mixins: [abstractField], - data: function data() { - return { - cleave: null - }; - }, - mounted: function mounted() { - this.$nextTick(function () { - var _this = this; - - if (window.Cleave) { - this.cleave = new window.Cleave(this.$el, defaults_default()(this.fieldOptions, { - // Credit Card - creditCard: false, - // onCreditCardTypeChanged: onCreditCardTypeChanged.bind(this), - // Phone - phone: false, - phoneRegionCode: "AU", - // Date - date: false, - datePattern: ["d", "m", "Y"], - // Numerals - numeral: false, - numeralThousandsGroupStyle: "thousand", - numeralDecimalScale: 2, - numeralDecimalMark: ".", - // General - blocks: [], - delimiter: " ", - prefix: null, - numericOnly: false, - uppercase: false, - lowercase: false, - maxLength: 0 - })); - - if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) { - this.$watch("cleave.properties.result", function () { - _this.value = _this.cleave.properties.result; - }); - } else { - this.$el.addEventListener("input", this.inputChange); - } - } else { - console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!"); - } - }); - }, - methods: { - inputChange: function inputChange() { - this.value = this.$el.value; - } - }, - beforeDestroy: function beforeDestroy() { - if (this.cleave) { - this.cleave.destroy(); - this.$el.removeEventListener("input", this.inputChange); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldCleavevue_type_script_lang_js_ = (fieldCleavevue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue - - - - - -/* normalize component */ - -var fieldCleave_component = normalizeComponent( - optional_fieldCleavevue_type_script_lang_js_, - fieldCleavevue_type_template_id_51b82522_render, - fieldCleavevue_type_template_id_51b82522_staticRenderFns, - false, - null, - null, - null - -) - -fieldCleave_component.options.__file = "fieldCleave.vue" -/* harmony default export */ var fieldCleave = (fieldCleave_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& -var fieldDateTimePickervue_type_template_id_0b5a21ff_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"input-group date"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._m(0)])} -var fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"input-group-addon"},[_c('span',{staticClass:"glyphicon glyphicon-calendar"})])}] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/objectSpread.js - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } - - return target; -} -// CONCATENATED MODULE: ./src/utils/dateFieldHelper.js - -var inputFormat = "YYYY-MM-DD HH:mm:ss"; -/* harmony default export */ var dateFieldHelper = ({ - getDefaultInputFormat: function getDefaultInputFormat() { - return inputFormat; - }, - getDateFormat: function getDateFormat() { - if (typeof this.fieldOptions.format !== "undefined") { - return this.fieldOptions.format; - } else { - return this.getDefaultInputFormat(); - } - }, - formatValueToField: function formatValueToField(value) { - if (value != null) { - var dt; - - if (typeof this.fieldOptions.format !== "undefined") { - dt = fecha_default.a.parse(value, this.fieldOptions.format); - } else { - dt = new Date(value); - } - - return fecha_default.a.format(dt, this.getDateFormat()); - } - - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null) { - var m = fecha_default.a.parse(value, this.getDateFormat()); - - if (typeof this.fieldOptions.format !== "undefined") { - value = fecha_default.a.format(m, this.fieldOptions.format); - } else { - value = m.valueOf(); - } - } - - return value; - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - - -/* harmony default export */ var fieldDateTimePickervue_type_script_lang_js_ = ({ - name: "field-dateTimePicker", - mixins: [abstractField], - methods: _objectSpread({}, dateFieldHelper), - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.$ && window.$.fn.datetimepicker) { - var input = _this.$el.querySelector(".form-control"); - - $(_this.$el).datetimepicker(defaults_default()(_this.fieldOptions, { - format: _this.getDefaultInputFormat() - })).on("dp.change", function () { - _this.value = input.value; - }); - } else { - console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.datetimepicker) { - $(this.$el).data("DateTimePicker").destroy(); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldDateTimePickervue_type_script_lang_js_ = (fieldDateTimePickervue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue - - - - - -/* normalize component */ - -var fieldDateTimePicker_component = normalizeComponent( - optional_fieldDateTimePickervue_type_script_lang_js_, - fieldDateTimePickervue_type_template_id_0b5a21ff_render, - fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns, - false, - null, - null, - null - -) - -fieldDateTimePicker_component.options.__file = "fieldDateTimePicker.vue" -/* harmony default export */ var fieldDateTimePicker = (fieldDateTimePicker_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& -var fieldGoogleAddressvue_type_template_id_40223704_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"debounce":"500","id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"focus":function($event){_vm.geolocate()},"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& - -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/** - * Based on gocanto"s Google Autocomplete library - * https://github.com/gocanto/google-autocomplete - */ - - -/* global google */ -/* harmony default export */ var fieldGoogleAddressvue_type_script_lang_js_ = ({ - name: "field-googleAddress", - mixins: [abstractField], - data: function data() { - return { - // google autocomplete object - autocomplete: "", - // google inputs retrieved - inputs: { - street_number: "long_name", - route: "long_name", - country: "long_name", - administrative_area_level_1: "long_name", - administrative_area_level_2: "long_name", - locality: "long_name", - postal_code: "short_name" - } - }; - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.google && window.google.maps && window.google.maps.places && window.google.maps.places.Autocomplete) { - _this.autocomplete = new google.maps.places.Autocomplete(_this.$el, { - types: ["geocode"] - }); - - _this.autocomplete.addListener("place_changed", _this.pipeAddress); - } else { - console.warn("Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!"); - } - }); - }, - methods: { - /** - * Look up places and dispatch an event. - * @return void - */ - pipeAddress: function pipeAddress() { - var place = this.autocomplete.getPlace(); - - if (place) { - this.value = place.formatted_address; - var data = {}; - - if (place.address_components !== undefined) { - for (var i = 0; i < place.address_components.length; i++) { - var input = place.address_components[i].types[0]; - - if (this.inputs[input]) { - data[input] = place.address_components[i][this.inputs[input]]; - } - } - } // Call event in schema - - - if (isFunction_default()(this.fieldOptions.onPlaceChanged)) this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); - } - }, - - /** - * Get the user location. - * @return void - */ - geolocate: function geolocate() { - var _this2 = this; - - if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(function (position) { - var geolocation = { - lat: position.coords.latitude, - lng: position.coords.longitude - }; - var circle = new window.google.maps.Circle({ - center: geolocation, - radius: position.coords.accuracy - }); - - _this2.autocomplete.setBounds(circle.getBounds()); - }); - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldGoogleAddressvue_type_script_lang_js_ = (fieldGoogleAddressvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue - - - - - -/* normalize component */ - -var fieldGoogleAddress_component = normalizeComponent( - optional_fieldGoogleAddressvue_type_script_lang_js_, - fieldGoogleAddressvue_type_template_id_40223704_render, - fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns, - false, - null, - null, - null - -) - -fieldGoogleAddress_component.options.__file = "fieldGoogleAddress.vue" -/* harmony default export */ var fieldGoogleAddress = (fieldGoogleAddress_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& -var fieldImagevue_type_template_id_31dfdf94_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper"},[_c('input',{directives:[{name:"show",rawName:"v-show",value:(_vm.fieldOptions.hideInput !== true),expression:"fieldOptions.hideInput !== true"},{name:"model",rawName:"v-model",value:(_vm.wrappedValue),expression:"wrappedValue"}],staticClass:"form-control link",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly},domProps:{"value":(_vm.wrappedValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.wrappedValue=$event.target.value}}}),(_vm.fieldOptions.browse !== false)?_c('input',{staticClass:"form-control file",attrs:{"type":"file","disabled":_vm.disabled,"name":_vm.inputName},on:{"change":_vm.fileChanged}}):_vm._e(),_c('div',{staticClass:"preview",style:(_vm.previewStyle)},[_c('div',{staticClass:"remove",attrs:{"title":"Remove image"},on:{"click":_vm.remove}})])])} -var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldImagevue_type_script_lang_js_ = ({ - name: "field-image", - mixins: [abstractField], - computed: { - previewStyle: function previewStyle() { - if (this.fieldOptions.preview !== false) { - return { - display: "block", - "background-image": this.value != null ? "url(" + this.value + ")" : "none" - }; - } else { - return { - display: "none" - }; - } - }, - wrappedValue: { - get: function get() { - if (this.value && this.value.indexOf("data") === 0) return "";else return this.value; - }, - set: function set(newValue) { - if (newValue && newValue.indexOf("http") === 0) { - this.value = newValue; - } - } - } - }, - watch: { - model: function model() { - var el = this.$el.querySelector("input.file"); - - if (el) { - el.value = ""; - } - } - }, - methods: { - remove: function remove() { - this.value = ""; - }, - fileChanged: function fileChanged(event) { - var _this = this; - - var reader = new FileReader(); - - reader.onload = function (e) { - _this.value = e.target.result; - }; - - if (event.target.files && event.target.files.length > 0) { - reader.readAsDataURL(event.target.files[0]); - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldImagevue_type_script_lang_js_ = (fieldImagevue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldImage.vue?vue&type=style&index=0&lang=scss& -var fieldImagevue_type_style_index_0_lang_scss_ = __webpack_require__("2d36"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue - - - - - - -/* normalize component */ - -var fieldImage_component = normalizeComponent( - optional_fieldImagevue_type_script_lang_js_, - fieldImagevue_type_template_id_31dfdf94_render, - fieldImagevue_type_template_id_31dfdf94_staticRenderFns, - false, - null, - null, - null - -) - -fieldImage_component.options.__file = "fieldImage.vue" -/* harmony default export */ var fieldImage = (fieldImage_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& -var fieldMaskedvue_type_template_id_11c3a35a_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldMasked.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldMaskedvue_type_script_lang_js_ = ({ - name: "field-masked", - mixins: [abstractField], - mounted: function mounted() { - this.$nextTick(function () { - if (window.$ && window.$.fn.mask) { - $(this.$el).unmask().mask(this.fieldOptions.mask, this.fieldOptions.maskOptions); - } else { - console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.mask) $(this.$el).unmask(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue - - - - - -/* normalize component */ - -var fieldMasked_component = normalizeComponent( - optional_fieldMaskedvue_type_script_lang_js_, - fieldMaskedvue_type_template_id_11c3a35a_render, - fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, - false, - null, - null, - null - -) - -fieldMasked_component.options.__file = "fieldMasked.vue" -/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& -var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} -var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js -var es6_number_constructor = __webpack_require__("c5f6"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// - -/* harmony default export */ var fieldNoUiSlidervue_type_script_lang_js_ = ({ - name: "field-noUiSlider", - mixins: [abstractField], - data: function data() { - return { - slider: null - }; - }, - watch: { - model: function model() { - if (window.noUiSlider && this.slider && this.slider.noUiSlider) { - this.slider.noUiSlider.set(this.value); - } - } - }, - computed: { - containPips: function containPips() { - return typeof this.fieldOptions.pips !== "undefined"; - }, - containTooltip: function containTooltip() { - return typeof this.fieldOptions.tooltips !== "undefined"; - } - }, - methods: { - onChange: function onChange(value) { - if (isArray_default()(value)) { - // Array (range) - this.value = [parseFloat(value[0]), parseFloat(value[1])]; - } else { - // Single value - this.value = parseFloat(value); - } - }, - formatValueToField: function formatValueToField(value) { - if (this.slider !== null && typeof this.slider.noUiSlider !== "undefined") { - this.slider.noUiSlider.set(value); - } - }, - formatValueToModel: function formatValueToModel(val) { - if (typeof this.slider.noUiSlider !== "undefined") { - if (val instanceof Array) { - return [Number(val[0]), Number(val[1])]; - } else { - return Number(val); - } - } - }, - getStartValue: function getStartValue() { - if (this.value != null) { - return this.value; - } else { - if (typeof this.fieldOptions.double !== "undefined") { - return [this.fieldOptions.min, this.fieldOptions.min]; - } else { - return this.fieldOptions.min; - } - } - } - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.noUiSlider) { - _this.slider = _this.$el; - window.noUiSlider.create(_this.slider, defaults_default()(_this.fieldOptions || {}, { - start: _this.getStartValue(), - range: { - min: _this.fieldOptions.min, - max: _this.fieldOptions.max - } - })); - - _this.slider.noUiSlider.on("change", _this.onChange.bind(_this)); - } else { - console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.noUiSlider.off("change"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldNoUiSlidervue_type_script_lang_js_ = (fieldNoUiSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=style&index=0&lang=scss& -var fieldNoUiSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("bf23"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue - - - - - - -/* normalize component */ - -var fieldNoUiSlider_component = normalizeComponent( - optional_fieldNoUiSlidervue_type_script_lang_js_, - fieldNoUiSlidervue_type_template_id_2698b894_render, - fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns, - false, - null, - null, - null - -) - -fieldNoUiSlider_component.options.__file = "fieldNoUiSlider.vue" -/* harmony default export */ var fieldNoUiSlider = (fieldNoUiSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& -var fieldPikadayvue_type_template_id_69cdd058_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldPikaday.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// -// -// -// -// -// - - -/* harmony default export */ var fieldPikadayvue_type_script_lang_js_ = ({ - name: "field-pikaday", - mixins: [abstractField], - data: function data() { - return { - picker: null - }; - }, - methods: _objectSpread({}, dateFieldHelper), - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.Pikaday) { - _this.picker = new window.Pikaday(defaults_default()(_this.fieldOptions, { - field: _this.$el, - // bind the datepicker to a form field - onSelect: function onSelect() { - _this.value = _this.picker.toString(); - } // trigger: , // use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`) - - })); - } else { - console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue - - - - - -/* normalize component */ - -var fieldPikaday_component = normalizeComponent( - optional_fieldPikadayvue_type_script_lang_js_, - fieldPikadayvue_type_template_id_69cdd058_render, - fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, - false, - null, - null, - null - -) - -fieldPikaday_component.options.__file = "fieldPikaday.vue" -/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& -var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} -var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js - - - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldRangeSlidervue_type_script_lang_js_ = ({ - name: "field-rangeSlider", - mixins: [abstractField], - data: function data() { - return { - slider: null - }; - }, - watch: { - model: function model() { - if (window.$ && window.$.fn.ionRangeSlider) { - var valueFrom, valueTo; - - if (isArray_default()(this.value)) { - var _this$value = _slicedToArray(this.value, 2); - - valueFrom = _this$value[0]; - valueTo = _this$value[1]; - } else valueFrom = this.value; - - if (this.slider) { - this.slider.update({ - from: valueFrom, - to: valueTo - }); - } - } - } - }, - mounted: function mounted() { - this.$nextTick(function () { - if (window.$ && window.$.fn.ionRangeSlider) { - var valueFrom, valueTo; - - if (isArray_default()(this.value)) { - var _this$value2 = _slicedToArray(this.value, 2); - - valueFrom = _this$value2[0]; - valueTo = _this$value2[1]; - } else valueFrom = this.value; - - var self = this; - $(this.$el).ionRangeSlider(defaults_default()(this.fieldOptions, { - type: "single", - grid: true, - hide_min_max: true, - from: valueFrom, - to: valueTo, - onChange: function onChange(slider) { - if (self.slider.options.type === "double") { - self.value = [slider.from, slider.to]; - } else { - self.value = slider.from; - } - } - })); - this.slider = $(this.$el).data("ionRangeSlider"); - } else { - console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& -var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue - - - - - - -/* normalize component */ - -var fieldRangeSlider_component = normalizeComponent( - optional_fieldRangeSlidervue_type_script_lang_js_, - fieldRangeSlidervue_type_template_id_6be663d2_render, - fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, - false, - null, - null, - null - -) - -fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" -/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& -var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} -var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& - - - - - -/* harmony default export */ var fieldSelectExvue_type_script_lang_js_ = ({ - name: "field-selectex", - mixins: [abstractField], - computed: { - items: function items() { - var values = this.schema.values; - - if (typeof values == "function") { - return values.apply(this, [this.model, this.schema]); - } else return values; - } - }, - methods: { - 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; - } - } - }, - watch: { - model: function model() { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) $(this.$el).selectpicker("refresh"); - } - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) { - $(_this.$el).selectpicker("destroy").selectpicker(_this.fieldOptions); - } else { - console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if ($.fn.selectpicker) $(this.$el).selectpicker("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSelectExvue_type_script_lang_js_ = (fieldSelectExvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=style&index=0&lang=scss& -var fieldSelectExvue_type_style_index_0_lang_scss_ = __webpack_require__("1958"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue - - - - - - -/* normalize component */ - -var fieldSelectEx_component = normalizeComponent( - optional_fieldSelectExvue_type_script_lang_js_, - fieldSelectExvue_type_template_id_2aa7bc96_render, - fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns, - false, - null, - null, - null - -) - -fieldSelectEx_component.options.__file = "fieldSelectEx.vue" -/* harmony default export */ var fieldSelectEx = (fieldSelectEx_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& -var fieldSpectrumvue_type_template_id_13b45188_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID}})} -var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSpectrum.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldSpectrumvue_type_script_lang_js_ = ({ - name: "field-spectrum", - mixins: [abstractField], - data: function data() { - return { - picker: null - }; - }, - watch: { - model: function model() { - if (window.$ && window.$.fn.spectrum) { - this.picker.spectrum("set", this.value); - } - }, - disabled: function disabled(val) { - if (val) this.picker.spectrum("disable");else this.picker.spectrum("enable"); - } - }, - mounted: function mounted() { - this.$nextTick(function () { - var _this = this; - - if (window.$ && window.$.fn.spectrum) { - this.picker = $(this.$el).spectrum("destroy").spectrum(defaults_default()(this.fieldOptions, { - showInput: true, - showAlpha: true, - disabled: this.schema.disabled, - allowEmpty: !this.schema.required, - preferredFormat: "hex", - change: function change(color) { - _this.value = color ? color.toString() : null; - } - })); - this.picker.spectrum("set", this.value); - } else { - console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.spectrum("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue - - - - - -/* normalize component */ - -var fieldSpectrum_component = normalizeComponent( - optional_fieldSpectrumvue_type_script_lang_js_, - fieldSpectrumvue_type_template_id_13b45188_render, - fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, - false, - null, - null, - null - -) - -fieldSpectrum_component.options.__file = "fieldSpectrum.vue" -/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& -var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} -var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& - -// -// -// -// - -/* harmony default export */ var fieldStaticMapvue_type_script_lang_js_ = ({ - name: "field-staticmap", - mixins: [abstractField], - computed: { - mapLink: function mapLink() { - if (this.value) { - var lat, lng; - - var options = defaults_default()(this.fieldOptions, { - lat: "lat", - lng: "lng", - zoom: 8, - sizeX: 640, - sizeY: 640 - }); - - lat = this.value[options.lat]; - lng = this.value[options.lng]; - var url = "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY); - var props = ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]; - - for (var _i = 0; _i < props.length; _i++) { - var prop = props[_i]; - - if (typeof options[prop] !== "undefined") { - url += "&".concat(prop, "=").concat(options[prop]); - } - } - - if (lat && lng) { - return url; - } - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldStaticMapvue_type_script_lang_js_ = (fieldStaticMapvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=style&index=0&lang=scss& -var fieldStaticMapvue_type_style_index_0_lang_scss_ = __webpack_require__("2149"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue - - - - - - -/* normalize component */ - -var fieldStaticMap_component = normalizeComponent( - optional_fieldStaticMapvue_type_script_lang_js_, - fieldStaticMapvue_type_template_id_0cb20abb_render, - fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns, - false, - null, - null, - null - -) - -fieldStaticMap_component.options.__file = "fieldStaticMap.vue" -/* harmony default export */ var fieldStaticMap = (fieldStaticMap_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& -var fieldSwitchvue_type_template_id_5a71b352_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],attrs:{"type":"checkbox","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"name":_vm.inputName,"id":_vm.fieldID},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}}}}),_c('span',{staticClass:"label",attrs:{"data-on":_vm.fieldOptions.textOn || 'On',"data-off":_vm.fieldOptions.textOff || 'Off',"for":_vm.fieldID}}),_c('span',{staticClass:"handle"})])} -var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSwitch.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldSwitchvue_type_script_lang_js_ = ({ - name: "field-switch", - mixins: [abstractField], - methods: { - formatValueToField: function formatValueToField(value) { - if (value != null && this.fieldOptions.valueOn) return value === this.fieldOptions.valueOn; - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null && this.fieldOptions.valueOn) { - if (value) return this.fieldOptions.valueOn;else return this.fieldOptions.valueOff; - } - - return value; - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSwitchvue_type_script_lang_js_ = (fieldSwitchvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=style&index=0&lang=scss& -var fieldSwitchvue_type_style_index_0_lang_scss_ = __webpack_require__("e0bf"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue - - - - - - -/* normalize component */ - -var fieldSwitch_component = normalizeComponent( - optional_fieldSwitchvue_type_script_lang_js_, - fieldSwitchvue_type_template_id_5a71b352_render, - fieldSwitchvue_type_template_id_5a71b352_staticRenderFns, - false, - null, - null, - null - -) - -fieldSwitch_component.options.__file = "fieldSwitch.vue" -/* harmony default export */ var fieldSwitch = (fieldSwitch_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& -var fieldVueMultiSelectvue_type_template_id_032ae05c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('multiselect',{attrs:{"id":_vm.fieldOptions.id,"options":_vm.options,"value":_vm.value,"multiple":_vm.fieldOptions.multiple,"track-by":_vm.fieldOptions.trackBy || null,"label":_vm.fieldOptions.label || null,"searchable":_vm.fieldOptions.searchable,"clear-on-select":_vm.fieldOptions.clearOnSelect,"hide-selected":_vm.fieldOptions.hideSelected,"placeholder":_vm.placeholder,"allow-empty":_vm.fieldOptions.allowEmpty,"reset-after":_vm.fieldOptions.resetAfter,"close-on-select":_vm.fieldOptions.closeOnSelect,"custom-label":_vm.customLabel,"taggable":_vm.fieldOptions.taggable,"tag-placeholder":_vm.fieldOptions.tagPlaceholder,"max":_vm.fieldOptions.max || null,"options-limit":_vm.fieldOptions.optionsLimit,"group-values":_vm.fieldOptions.groupValues,"group-label":_vm.fieldOptions.groupLabel,"block-keys":_vm.fieldOptions.blockKeys,"internal-search":_vm.fieldOptions.internalSearch,"select-label":_vm.fieldOptions.selectLabel,"selected-label":_vm.fieldOptions.selectedLabel,"deselect-label":_vm.fieldOptions.deselectLabel,"show-labels":_vm.fieldOptions.showLabels,"limit":_vm.fieldOptions.limit,"limit-text":_vm.fieldOptions.limitText,"loading":_vm.fieldOptions.loading,"disabled":_vm.disabled,"max-height":_vm.fieldOptions.maxHeight,"show-pointer":_vm.fieldOptions.showPointer,"option-height":_vm.fieldOptions.optionHeight},on:{"input":_vm.updateSelected,"select":_vm.onSelect,"remove":_vm.onRemove,"search-change":_vm.onSearchChange,"tag":_vm.addTag,"open":_vm.onOpen,"close":_vm.onClose}},[_c('span',{attrs:{"slot":"noResult"},slot:"noResult"},[_vm._v("\n\t\t"+_vm._s(_vm.fieldOptions.noResult)+"\n\t")])])} -var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldVueMultiSelectvue_type_script_lang_js_ = ({ - name: "field-vueMultiSelect", - mixins: [abstractField], - computed: { - options: function options() { - var values = this.schema.values; - - if (typeof values == "function") { - return values.apply(this, [this.model, this.schema]); - } else { - return values; - } - }, - customLabel: function customLabel() { - if (typeof this.fieldOptions.customLabel !== "undefined" && typeof this.fieldOptions.customLabel === "function") { - return this.fieldOptions.customLabel; - } else { - // this will let the multiselect library use the default behavior if customLabel is not specified - return undefined; - } - } - }, - methods: { - updateSelected: function updateSelected(value - /* , id*/ - ) { - this.value = value; - }, - addTag: function addTag(newTag, id) { - var onNewTag = this.fieldOptions.onNewTag; - - if (typeof onNewTag == "function") { - onNewTag(newTag, id, this.options, this.value); - } - }, - onSearchChange: function onSearchChange(searchQuery, id) { - var onSearch = this.fieldOptions.onSearch; - - if (typeof onSearch == "function") { - onSearch(searchQuery, id, this.options); - } - }, - onSelect: function onSelect() - /* selectedOption, id */ - {// console.log("onSelect", selectedOption, id); - }, - onRemove: function onRemove() - /* removedOption, id */ - {// console.log("onRemove", removedOption, id); - }, - onOpen: function onOpen() - /* id */ - {// console.log("onOpen", id); - }, - onClose: function onClose() - /* value, id */ - {// console.log("onClose", value, id); - } - }, - created: function created() { - // Check if the component is loaded globally - if (!this.$root.$options.components["multiselect"]) { - console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!"); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldVueMultiSelectvue_type_script_lang_js_ = (fieldVueMultiSelectvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue - - - - - -/* normalize component */ - -var fieldVueMultiSelect_component = normalizeComponent( - optional_fieldVueMultiSelectvue_type_script_lang_js_, - fieldVueMultiSelectvue_type_template_id_032ae05c_render, - fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns, - false, - null, - null, - null - -) - -fieldVueMultiSelect_component.options.__file = "fieldVueMultiSelect.vue" -/* harmony default export */ var fieldVueMultiSelect = (fieldVueMultiSelect_component.exports); -// CONCATENATED MODULE: ./src/utils/fieldsLoader.js -// core - - - - - - - - - // optional - - - - - - - - - - - - - - - -// CONCATENATED MODULE: ./src/index.js - - - - - - - - -var src_install = function install(Vue) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (options.fields) { - options.fields.forEach(function (field) { - if (typeof field.name !== "undefined") { - Vue.component(field.name, field); - } - }); - } - - Vue.component("VueFormGenerator", formGenerator); -}; - -/* harmony default export */ var src = ({ - component: formGenerator, - schema: schema_namespaceObject, - validators: utils_validators, - abstractField: abstractField, - fieldsLoader: fieldsLoader_namespaceObject, - install: src_install -}); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js - - -/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); - - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "fdef": -/***/ (function(module, exports) { - -module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - - -/***/ }), - -/***/ "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 deleted file mode 100644 index 8cbb3734..00000000 --- a/dist/vfg-core.css +++ /dev/null @@ -1 +0,0 @@ -.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}.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}.vue-form-generator .field-image .wrapper{width:100%}.vue-form-generator .field-image .preview{position:relative;margin-top:5px;height:100px;background-repeat:no-repeat;background-size:contain;background-position:50%;border:1px solid #ccc;border-radius:3px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.vue-form-generator .field-image .preview .remove{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXUlEQVR42u2SwQoAIAhD88vVLy8KBlaS0i1oJwP3piGVg0Skmpq8HjqZrWl9uwCbGAmwKYGZs/6iqgMyAdJuM8W2QmYKpLt/0AG9ASCv/oAnANd3AEjmAlFT1BypAV+PnRH5YehvAAAAAElFTkSuQmCC");width:16px;height:16px;font-size:1.2em;position:absolute;right:.2em;bottom:.2em;opacity:.7}.vue-form-generator .field-image .preview .remove:hover{opacity:1;cursor:pointer}.vue-form-generator .field-noUiSlider .field-wrap{display:block}.vue-form-generator .field-noUiSlider .contain-pips{margin-bottom:30px}.vue-form-generator .field-noUiSlider .contain-tooltip{margin-top:30px}.vue-form-generator .field-noUiSlider .noUi-vertical{height:200px;margin:10px 0}.vue-form-generator .field-rangeSlider .irs{width:100%}.vue-form-generator .field-selectEx .bootstrap-select .dropdown-menu li.selected .text{font-weight:700}.vue-form-generator .field-staticMap img{display:block;width:auto;max-width:100%}.vue-form-generator .field-switch .field-wrap label{position:relative;display:block;width:120px;height:30px;padding:0;margin:0 10px 10px 0;border-radius:15px;-webkit-box-shadow:inset 0 -1px #fff,inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 -1px #fff,inset 0 1px 1px rgba(0,0,0,.05);cursor:pointer}.vue-form-generator .field-switch input{position:absolute;top:0;left:0;opacity:0}.vue-form-generator .field-switch .label{position:relative;display:block;height:inherit;font-size:10px;text-transform:uppercase;background:#eceeef;border-radius:inherit;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.12),inset 0 0 2px rgba(0,0,0,.15);box-shadow:inset 0 1px 2px rgba(0,0,0,.12),inset 0 0 2px rgba(0,0,0,.15)}.vue-form-generator .field-switch .label:after,.vue-form-generator .field-switch .label:before{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;transition:inherit}.vue-form-generator .field-switch .label:before{content:attr(data-off);right:11px;color:#aaa;text-shadow:0 1px hsla(0,0%,100%,.5)}.vue-form-generator .field-switch .label:after{content:attr(data-on);left:11px;color:#fff;text-shadow:0 1px rgba(0,0,0,.2);opacity:0}.vue-form-generator .field-switch input:checked~.label{background:#e1b42b;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.15),inset 0 0 3px rgba(0,0,0,.2);box-shadow:inset 0 1px 2px rgba(0,0,0,.15),inset 0 0 3px rgba(0,0,0,.2)}.vue-form-generator .field-switch input:checked~.label:before{opacity:0}.vue-form-generator .field-switch input:checked~.label:after{opacity:1}.vue-form-generator .field-switch .handle{position:absolute;top:1px;left:1px;width:28px;height:28px;background:-webkit-gradient(linear,left top,left bottom,color-stop(40%,#fff),to(#f0f0f0));background:linear-gradient(180deg,#fff 40%,#f0f0f0);background-image:-webkit-linear-gradient(top,#fff 40%,#f0f0f0);border-radius:100%;-webkit-box-shadow:1px 1px 5px rgba(0,0,0,.2);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.vue-form-generator .field-switch .handle:before{content:"";position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#fff));background:linear-gradient(180deg,#eee,#fff);background-image:-webkit-linear-gradient(top,#eee,#fff);border-radius:6px;-webkit-box-shadow:inset 0 1px rgba(0,0,0,.02);box-shadow:inset 0 1px rgba(0,0,0,.02)}.vue-form-generator .field-switch input:checked~.handle{left:91px;left:calc(100% - 29px);-webkit-box-shadow:-1px 1px 5px rgba(0,0,0,.2);box-shadow:-1px 1px 5px rgba(0,0,0,.2)}.vue-form-generator .field-switch .handle,.vue-form-generator .field-switch .label{-webkit-transition:all .3s ease;transition:all .3s ease} \ No newline at end of file diff --git a/dist/vfg-core.umd.js b/dist/vfg-core.umd.js deleted file mode 100644 index 5eff073a..00000000 --- a/dist/vfg-core.umd.js +++ /dev/null @@ -1,10263 +0,0 @@ - -/** - * vue-form-generator 3.0.0-beta.5 - * https://github.com/vue-generators/vue-form-generator/ - * Released under the MIT License. - */ - -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("vue")); - else if(typeof define === 'function' && define.amd) - define([], factory); - else if(typeof exports === 'object') - exports["vfg-core"] = factory(require("vue")); - else - root["vfg-core"] = factory(root["Vue"]); -})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) { -return /******/ (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 = "fb15"); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ "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; - - -/***/ }), - -/***/ "1437": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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; -}; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "1958": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2e12"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSelectEx_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - } -}; - - -/***/ }), - -/***/ "2149": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1437"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldStaticMap_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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)]; -}; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "2d36": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d302"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "2e12": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "7375": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "76c3": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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 - - -/***/ }), - -/***/ "77cf": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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 - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "8a23": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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 = __WEBPACK_EXTERNAL_MODULE__8bbf__; - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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 - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "aa77": -/***/ (function(module, exports, __webpack_require__) { - -var $export = __webpack_require__("5ca1"); -var defined = __webpack_require__("be13"); -var fails = __webpack_require__("79e5"); -var spaces = __webpack_require__("fdef"); -var space = '[' + spaces + ']'; -var non = '\u200b\u0085'; -var ltrim = RegExp('^' + space + space + '*'); -var rtrim = RegExp(space + space + '*$'); - -var exporter = function (KEY, exec, ALIAS) { - var exp = {}; - var FORCE = fails(function () { - return !!spaces[KEY]() || non[KEY]() != non; - }); - var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; - if (ALIAS) exp[ALIAS] = fn; - $export($export.P + $export.F * FORCE, 'String', exp); -}; - -// 1 -> String#trimLeft -// 2 -> String#trimRight -// 3 -> String#trim -var trim = exporter.trim = function (string, TYPE) { - string = String(defined(string)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; -}; - -module.exports = exporter; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "b72b": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; -}; - - -/***/ }), - -/***/ "bf23": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("77cf"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldNoUiSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "bfd2": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); - -/***/ }), - -/***/ "c5f6": -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var global = __webpack_require__("7726"); -var has = __webpack_require__("69a8"); -var cof = __webpack_require__("2d95"); -var inheritIfRequired = __webpack_require__("5dbc"); -var toPrimitive = __webpack_require__("6a99"); -var fails = __webpack_require__("79e5"); -var gOPN = __webpack_require__("9093").f; -var gOPD = __webpack_require__("11e9").f; -var dP = __webpack_require__("86cc").f; -var $trim = __webpack_require__("aa77").trim; -var NUMBER = 'Number'; -var $Number = global[NUMBER]; -var Base = $Number; -var proto = $Number.prototype; -// Opera ~12 has broken Object#toString -var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER; -var TRIM = 'trim' in String.prototype; - -// 7.1.3 ToNumber(argument) -var toNumber = function (argument) { - var it = toPrimitive(argument, false); - if (typeof it == 'string' && it.length > 2) { - it = TRIM ? it.trim() : $trim(it, 3); - var first = it.charCodeAt(0); - var third, radix, maxCode; - if (first === 43 || first === 45) { - third = it.charCodeAt(2); - if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix - } else if (first === 48) { - switch (it.charCodeAt(1)) { - case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i - case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i - default: return +it; - } - for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) { - code = digits.charCodeAt(i); - // parseInt parses a string to a first unavailable symbol - // but ToNumber should return NaN if a string contains unavailable symbols - if (code < 48 || code > maxCode) return NaN; - } return parseInt(digits, radix); - } - } return +it; -}; - -if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { - $Number = function Number(value) { - var it = arguments.length < 1 ? 0 : value; - var that = this; - return that instanceof $Number - // check on 1..constructor(foo) case - && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER) - ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it); - }; - for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES6 (in case, if modules with ES6 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + - 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger' - ).split(','), j = 0, key; keys.length > j; j++) { - if (has(Base, key = keys[j]) && !has($Number, key)) { - dP($Number, key, gOPD(Base, key)); - } - } - $Number.prototype = proto; - proto.constructor = $Number; - __webpack_require__("2aba")(global, NUMBER, $Number); -} - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "d302": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - -/***/ "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'; -}; - - -/***/ }), - -/***/ "d474": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7375"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldRangeSlider_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; -}; - - -/***/ }), - -/***/ "e0bf": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("76c3"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldSwitch_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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; - - -/***/ }), - -/***/ "fb15": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -var schema_namespaceObject = {}; -__webpack_require__.r(schema_namespaceObject); -__webpack_require__.d(schema_namespaceObject, "createDefaultObject", function() { return schema_createDefaultObject; }); -__webpack_require__.d(schema_namespaceObject, "getMultipleFields", function() { return schema_getMultipleFields; }); -__webpack_require__.d(schema_namespaceObject, "mergeMultiObjectFields", function() { return schema_mergeMultiObjectFields; }); -__webpack_require__.d(schema_namespaceObject, "slugifyFormID", function() { return schema_slugifyFormID; }); -__webpack_require__.d(schema_namespaceObject, "slugify", function() { return slugify; }); -var fieldsLoader_namespaceObject = {}; -__webpack_require__.r(fieldsLoader_namespaceObject); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldCheckbox", function() { return fieldCheckbox; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldChecklist", function() { return fieldChecklist; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldInput", function() { return fieldInput; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldLabel", function() { return fieldLabel; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldRadios", function() { return fieldRadios; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSelect", function() { return fieldSelect; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSubmit", function() { return fieldSubmit; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldTextArea", function() { return fieldTextArea; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldUpload", function() { return fieldUpload; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldCleave", function() { return fieldCleave; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldDateTimePicker", function() { return fieldDateTimePicker; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldGoogleAddress", function() { return fieldGoogleAddress; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldImage", function() { return fieldImage; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldMasked", function() { return fieldMasked; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldNoUiSlider", function() { return fieldNoUiSlider; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldPikaday", function() { return fieldPikaday; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldRangeSlider", function() { return fieldRangeSlider; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSelectEx", function() { return fieldSelectEx; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSpectrum", function() { return fieldSpectrum; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldStaticMap", function() { return fieldStaticMap; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldSwitch", function() { return fieldSwitch; }); -__webpack_require__.d(fieldsLoader_namespaceObject, "fieldVueMultiSelect", function() { return fieldVueMultiSelect; }); - -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js -// This file is imported into lib/wc client bundles. - -if (typeof window !== 'undefined') { - var setPublicPath_i - if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js$/))) { - __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line - } -} - -// Indicate to webpack that this file can be concatenated -/* harmony default export */ var setPublicPath = (null); - -// 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"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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=bed362a6& -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,"event-bus":_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,"event-bus":_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=bed362a6& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js -var es6_promise = __webpack_require__("551c"); - -// 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 lodash_get = __webpack_require__("9b02"); -var get_default = /*#__PURE__*/__webpack_require__.n(lodash_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":"4faaeac7-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=12ad8b0b& -var formGroupvue_type_template_id_12ad8b0b_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,"event-bus":_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_12ad8b0b_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=12ad8b0b& - -// 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--12-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, - default: function _default() { - return []; - } - }, - group: { - type: Object, - default: function _default() { - return {}; - } - }, - tag: { - type: String, - default: "fieldset", - validator: function validator(value) { - return value.length > 0; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; - } - }, - errors: { - type: Array, - default: function _default() { - return []; - } - }, - eventBus: { - type: Object, - default: function _default() { - return {}; - } - } - }, - 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_); -// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js -/* 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 - } -} - -// CONCATENATED MODULE: ./src/formGroup.vue - - - - - -/* normalize component */ - -var component = normalizeComponent( - src_formGroupvue_type_script_lang_js_, - formGroupvue_type_template_id_12ad8b0b_render, - formGroupvue_type_template_id_12ad8b0b_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":"4faaeac7-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=fc1a7bb6& -var formElementvue_type_template_id_fc1a7bb6_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,"form-options":_vm.options,"event-bus":_vm.eventBus,"field-id":_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_fc1a7bb6_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/formElement.vue?vue&type=template&id=fc1a7bb6& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js -var es7_array_includes = __webpack_require__("6762"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js -var es6_regexp_to_string = __webpack_require__("6b54"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js -var es6_regexp_replace = __webpack_require__("a481"); - -// EXTERNAL MODULE: ./node_modules/lodash/cloneDeep.js -var cloneDeep = __webpack_require__("0644"); -var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); - -// EXTERNAL MODULE: ./node_modules/lodash/isObject.js -var isObject = __webpack_require__("1a8c"); -var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject); - -// EXTERNAL MODULE: ./node_modules/lodash/each.js -var each = __webpack_require__("c641"); -var each_default = /*#__PURE__*/__webpack_require__.n(each); - -// EXTERNAL MODULE: ./node_modules/lodash/set.js -var lodash_set = __webpack_require__("0f5c"); -var set_default = /*#__PURE__*/__webpack_require__.n(lodash_set); - -// CONCATENATED MODULE: ./src/utils/schema.js - - - - - - - - - - - -// Create a new model by schema default values -var schema_createDefaultObject = function createDefaultObject(schema) { - var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - each_default()(schema.fields, function (field) { - if (get_default()(obj, field.model) === undefined && field.default !== undefined) { - if (isFunction_default()(field.default)) { - set_default()(obj, field.model, field.default(field, schema, obj)); - } else if (isObject_default()(field.default) || isArray_default()(field.default)) { - set_default()(obj, field.model, cloneDeep_default()(field.default)); - } else set_default()(obj, field.model, field.default); - } - }); - - return obj; -}; // Get a new model which contains only properties of multi-edit fields - - -var schema_getMultipleFields = function getMultipleFields(schema) { - var res = []; - - each_default()(schema.fields, function (field) { - if (field.multi === true) res.push(field); - }); - - return res; -}; // Merge many models to one 'work model' by schema - - -var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { - var model = {}; - var fields = schema_getMultipleFields(schema); - - each_default()(fields, function (field) { - var mergedValue; - var notSet = true; - var path = field.model; - - each_default()(objs, function (obj) { - var v = get_default()(obj, path); - - if (notSet) { - mergedValue = v; - notSet = false; - } else if (mergedValue !== v) { - mergedValue = undefined; - } - }); - - set_default()(model, path, mergedValue); - }); - - return model; -}; - -var schema_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 (!isNil_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, ""); -}; - - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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", - mixins: [formMixin], - props: { - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; - } - }, - field: { - type: Object, - required: true - }, - errors: { - type: Array, - default: function _default() { - return []; - } - }, - eventBus: { - type: Object, - default: function _default() { - return {}; - } - } - }, - data: function data() { - return { - childErrors: [], - childTouched: false - }; - }, - computed: { - fieldID: function fieldID() { - var idPrefix = get_default()(this.options, "fieldIdPrefix", ""); - - return 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 = normalizeComponent( - src_formElementvue_type_script_lang_js_, - formElementvue_type_template_id_fc1a7bb6_render, - formElementvue_type_template_id_fc1a7bb6_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--12-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: "form-generator", - components: { - formGroup: formGroup, - formElement: formElement - }, - props: { - schema: { - type: Object, - default: function _default() { - return {}; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - 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 = normalizeComponent( - src_formGeneratorvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) - -formGenerator_component.options.__file = "formGenerator.vue" -/* harmony default export */ var formGenerator = (formGenerator_component.exports); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js -var es6_array_iterator = __webpack_require__("cadf"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js -var es6_object_keys = __webpack_require__("456d"); - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js -var es6_regexp_constructor = __webpack_require__("3b2b"); - -// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js -var isInteger = __webpack_require__("697e"); -var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); - -// 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/defaults.js -var defaults = __webpack_require__("95ae"); -var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); - -// EXTERNAL MODULE: ./node_modules/fecha/fecha.js -var fecha = __webpack_require__("9e99"); -var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); - -// CONCATENATED MODULE: ./src/utils/validators.js - - - - - - - - - - - - - - -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 (isNil_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 (isNumber_default()(value)) { - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.min) && value < field.fieldOptions.min) { - err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); - } - - if (!isNil_default()(field.fieldOptions) && !isNil_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 (!isInteger_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 (!isNumber_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 (isString_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); - } - - if (!isNil_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 (!isArray_default()(value)) { - return [msg(messages.thisNotArray)]; - } - - if (value.length === 0) { - return [msg(messages.fieldIsRequired)]; - } - } - - if (!isNil_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - return [msg(messages.selectMinItems, field.fieldOptions.min)]; - } - - if (!isNil_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 (!isNil_default()(field.fieldOptions.min)) { - var min = new Date(field.fieldOptions.min); - - if (m.valueOf() < min.valueOf()) { - err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); - } - } - - if (!isNil_default()(field.fieldOptions.max)) { - var max = new Date(field.fieldOptions.max); - - if (m.valueOf() > max.valueOf()) { - err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_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 (!isNil_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 (isFunction_default()(fn)) { - fn.locale = function (customMessages) { - return function (value, field, model) { - return fn(value, field, model, defaults_default()(customMessages, resources)); - }; - }; - } -}); -/* harmony default export */ var utils_validators = (validators); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& -var fieldCheckboxvue_type_template_id_a12bd5d0_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 fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js -var es6_regexp_split = __webpack_require__("28a5"); - -// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js -var uniqueId = __webpack_require__("98dc"); -var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); - -// EXTERNAL MODULE: ./node_modules/lodash/debounce.js -var debounce = __webpack_require__("b047"); -var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); - -// EXTERNAL MODULE: ./node_modules/lodash/forEach.js -var forEach = __webpack_require__("6cd4"); -var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); - -// CONCATENATED MODULE: ./src/fields/abstractField.js - - - - - - - - - - - - - - - - -var abstractField_convertValidator = function convertValidator(validator) { - if (isString_default()(validator)) { - if (utils_validators[validator] != null) return utils_validators[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 = get_default()(vnode.context, "schema.attributes", {}); - - var container = binding.value || "input"; - - if (isString_default()(container)) { - attrs = get_default()(attrs, container) || attrs; - } - - forEach_default()(attrs, function (val, key) { - el.setAttribute(key, val); - }); -} - -/* harmony default export */ var abstractField = ({ - props: { - model: { - type: Object - }, - schema: { - type: Object - }, - formOptions: { - type: Object - }, - eventBus: { - type: Object - }, - fieldID: { - type: String - } - }, - data: function data() { - var fieldUID = uniqueId_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 (isFunction_default()(get_default()(this.schema, "get"))) { - val = this.schema.get(this.model); - } else { - val = get_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 (isFunction_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 (isFunction_default()(this.$parent.getValueFromOption)) { - return this.$parent.getValueFromOption(field, option, defaultValue); - } else { - // Environnement de test ? - if (isNil_default()(field[option])) { - return defaultValue; - } - - return field[option]; - } - }, - validate: function validate() { - var _this = this; - - this.touch(); - this.clearValidationErrors(); - - var validateAsync = get_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 (!isArray_default()(this.schema.validator)) { - _validators.push(abstractField_convertValidator(this.schema.validator).bind(this)); - } else { - this.schema.validator.forEach(function (validator) { - _validators.push(abstractField_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 && isFunction_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 (isArray_default()(err) && err.length > 0) { - fieldErrors = fieldErrors.concat(err); - } else if (isString_default()(err)) { - fieldErrors.push(err); - } - }); - - if (isFunction_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 (!isFunction_default()(this.debouncedValidateFunc)) { - this.debouncedValidateFunc = debounce_default()(this.validate.bind(this), get_default()(this.formOptions, "validateDebounceTime", 500)); - } - - this.debouncedValidateFunc(); - }, - updateModelValue: function updateModelValue(newValue, oldValue) { - var changed = false; - - if (isFunction_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 (isFunction_default()(this.schema.onChanged)) { - this.schema.onChanged.call(this, this.model, newValue, oldValue, this.schema); - } - - if (get_default()(this.formOptions, "validateAfterChanged", false)) { - if (get_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); - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checkbox", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue - - - - - - -/* normalize component */ - -var fieldCheckbox_component = normalizeComponent( - core_fieldCheckboxvue_type_script_lang_js_, - fieldCheckboxvue_type_template_id_a12bd5d0_render, - fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns, - false, - null, - null, - null - -) - -fieldCheckbox_component.options.__file = "fieldCheckbox.vue" -/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& -var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} -var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& - -// EXTERNAL MODULE: ./node_modules/lodash/clone.js -var clone = __webpack_require__("b8ce"); -var clone_default = /*#__PURE__*/__webpack_require__.n(clone); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checklist", - mixins: [abstractField], - 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 slugify(this.inputName + "_" + this.getItemValue(item)); - } - - return 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue - - - - - - -/* normalize component */ - -var fieldChecklist_component = normalizeComponent( - core_fieldChecklistvue_type_script_lang_js_, - fieldChecklistvue_type_template_id_29d9d05a_render, - fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, - false, - null, - null, - null - -) - -fieldChecklist_component.options.__file = "fieldChecklist.vue" -/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& -var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} -var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-input", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue - - - - - - -/* normalize component */ - -var fieldInput_component = normalizeComponent( - core_fieldInputvue_type_script_lang_js_, - fieldInputvue_type_template_id_413f6cd1_render, - fieldInputvue_type_template_id_413f6cd1_staticRenderFns, - false, - null, - null, - null - -) - -fieldInput_component.options.__file = "fieldInput.vue" -/* harmony default export */ var fieldInput = (fieldInput_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& -var fieldLabelvue_type_template_id_b7bdf280_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},domProps:{"textContent":_vm._s(_vm.value)}})} -var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-label", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue - - - - - - -/* normalize component */ - -var fieldLabel_component = normalizeComponent( - core_fieldLabelvue_type_script_lang_js_, - fieldLabelvue_type_template_id_b7bdf280_render, - fieldLabelvue_type_template_id_b7bdf280_staticRenderFns, - false, - null, - null, - null - -) - -fieldLabel_component.options.__file = "fieldLabel.vue" -/* harmony default export */ var fieldLabel = (fieldLabel_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& -var fieldRadiosvue_type_template_id_3944ded4_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'"}],key:_vm.getItemValue(item),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))+"\n\t")])}))} -var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-radios", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue - - - - - - -/* normalize component */ - -var fieldRadios_component = normalizeComponent( - core_fieldRadiosvue_type_script_lang_js_, - fieldRadiosvue_type_template_id_3944ded4_render, - fieldRadiosvue_type_template_id_3944ded4_staticRenderFns, - false, - null, - null, - null - -) - -fieldRadios_component.options.__file = "fieldRadios.vue" -/* harmony default export */ var fieldRadios = (fieldRadios_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& -var fieldSelectvue_type_template_id_d7c686e6_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 || "")+"\n\t")]):_vm._e(),_vm._l((_vm.items),function(item){return [(item.group)?_c('optgroup',{key:_vm.getItemValue(item),attrs:{"label":_vm.getGroupName(item)}},_vm._l((item.ops),function(i){return (item.ops)?_c('option',{key:_vm.getItemValue(i),domProps:{"value":_vm.getItemValue(i)}},[_vm._v(" "+_vm._s(_vm.getItemName(i)))]):_vm._e()})):_vm._e(),(!item.group)?_c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))]):_vm._e()]})],2)} -var fieldSelectvue_type_template_id_d7c686e6_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& - -// EXTERNAL MODULE: ./node_modules/lodash/find.js -var find = __webpack_require__("2769"); -var find_default = /*#__PURE__*/__webpack_require__.n(find); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-select", - mixins: [abstractField], - 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_); -// CONCATENATED MODULE: ./src/fields/core/fieldSelect.vue - - - - - -/* normalize component */ - -var fieldSelect_component = normalizeComponent( - core_fieldSelectvue_type_script_lang_js_, - fieldSelectvue_type_template_id_d7c686e6_render, - fieldSelectvue_type_template_id_d7c686e6_staticRenderFns, - false, - null, - null, - null - -) - -fieldSelect_component.options.__file = "fieldSelect.vue" -/* harmony default export */ var fieldSelect = (fieldSelect_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& -var fieldSubmitvue_type_template_id_11503acf_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 fieldSubmitvue_type_template_id_11503acf_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& - -// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js -var isEmpty = __webpack_require__("13ea"); -var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-submit", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue - - - - - - -/* normalize component */ - -var fieldSubmit_component = normalizeComponent( - core_fieldSubmitvue_type_script_lang_js_, - fieldSubmitvue_type_template_id_11503acf_render, - fieldSubmitvue_type_template_id_11503acf_staticRenderFns, - false, - null, - null, - null - -) - -fieldSubmit_component.options.__file = "fieldSubmit.vue" -/* harmony default export */ var fieldSubmit = (fieldSubmit_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& -var fieldTextAreavue_type_template_id_4f6b57f4_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 fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-textArea", - mixins: [abstractField] -}); -// 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_); -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue - - - - - -/* normalize component */ - -var fieldTextArea_component = normalizeComponent( - core_fieldTextAreavue_type_script_lang_js_, - fieldTextAreavue_type_template_id_4f6b57f4_render, - fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns, - false, - null, - null, - null - -) - -fieldTextArea_component.options.__file = "fieldTextArea.vue" -/* harmony default export */ var fieldTextArea = (fieldTextArea_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& -var fieldUploadvue_type_template_id_2593d5d7_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 fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-upload", - mixins: [abstractField], - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue - - - - - - -/* normalize component */ - -var fieldUpload_component = normalizeComponent( - core_fieldUploadvue_type_script_lang_js_, - fieldUploadvue_type_template_id_2593d5d7_render, - fieldUploadvue_type_template_id_2593d5d7_staticRenderFns, - false, - null, - null, - null - -) - -fieldUpload_component.options.__file = "fieldUpload.vue" -/* harmony default export */ var fieldUpload = (fieldUpload_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& -var fieldCleavevue_type_template_id_51b82522_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":_vm.value}})} -var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldCleave.vue?vue&type=script&lang=js& - -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldCleavevue_type_script_lang_js_ = ({ - name: "field-cleave", - mixins: [abstractField], - data: function data() { - return { - cleave: null - }; - }, - mounted: function mounted() { - this.$nextTick(function () { - var _this = this; - - if (window.Cleave) { - this.cleave = new window.Cleave(this.$el, defaults_default()(this.fieldOptions, { - // Credit Card - creditCard: false, - // onCreditCardTypeChanged: onCreditCardTypeChanged.bind(this), - // Phone - phone: false, - phoneRegionCode: "AU", - // Date - date: false, - datePattern: ["d", "m", "Y"], - // Numerals - numeral: false, - numeralThousandsGroupStyle: "thousand", - numeralDecimalScale: 2, - numeralDecimalMark: ".", - // General - blocks: [], - delimiter: " ", - prefix: null, - numericOnly: false, - uppercase: false, - lowercase: false, - maxLength: 0 - })); - - if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) { - this.$watch("cleave.properties.result", function () { - _this.value = _this.cleave.properties.result; - }); - } else { - this.$el.addEventListener("input", this.inputChange); - } - } else { - console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!"); - } - }); - }, - methods: { - inputChange: function inputChange() { - this.value = this.$el.value; - } - }, - beforeDestroy: function beforeDestroy() { - if (this.cleave) { - this.cleave.destroy(); - this.$el.removeEventListener("input", this.inputChange); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldCleavevue_type_script_lang_js_ = (fieldCleavevue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue - - - - - -/* normalize component */ - -var fieldCleave_component = normalizeComponent( - optional_fieldCleavevue_type_script_lang_js_, - fieldCleavevue_type_template_id_51b82522_render, - fieldCleavevue_type_template_id_51b82522_staticRenderFns, - false, - null, - null, - null - -) - -fieldCleave_component.options.__file = "fieldCleave.vue" -/* harmony default export */ var fieldCleave = (fieldCleave_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& -var fieldDateTimePickervue_type_template_id_0b5a21ff_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"input-group date"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._m(0)])} -var fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"input-group-addon"},[_c('span',{staticClass:"glyphicon glyphicon-calendar"})])}] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/objectSpread.js - -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - var ownKeys = Object.keys(source); - - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - - ownKeys.forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } - - return target; -} -// CONCATENATED MODULE: ./src/utils/dateFieldHelper.js - -var inputFormat = "YYYY-MM-DD HH:mm:ss"; -/* harmony default export */ var dateFieldHelper = ({ - getDefaultInputFormat: function getDefaultInputFormat() { - return inputFormat; - }, - getDateFormat: function getDateFormat() { - if (typeof this.fieldOptions.format !== "undefined") { - return this.fieldOptions.format; - } else { - return this.getDefaultInputFormat(); - } - }, - formatValueToField: function formatValueToField(value) { - if (value != null) { - var dt; - - if (typeof this.fieldOptions.format !== "undefined") { - dt = fecha_default.a.parse(value, this.fieldOptions.format); - } else { - dt = new Date(value); - } - - return fecha_default.a.format(dt, this.getDateFormat()); - } - - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null) { - var m = fecha_default.a.parse(value, this.getDateFormat()); - - if (typeof this.fieldOptions.format !== "undefined") { - value = fecha_default.a.format(m, this.fieldOptions.format); - } else { - value = m.valueOf(); - } - } - - return value; - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - - -/* harmony default export */ var fieldDateTimePickervue_type_script_lang_js_ = ({ - name: "field-dateTimePicker", - mixins: [abstractField], - methods: _objectSpread({}, dateFieldHelper), - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.$ && window.$.fn.datetimepicker) { - var input = _this.$el.querySelector(".form-control"); - - $(_this.$el).datetimepicker(defaults_default()(_this.fieldOptions, { - format: _this.getDefaultInputFormat() - })).on("dp.change", function () { - _this.value = input.value; - }); - } else { - console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.datetimepicker) { - $(this.$el).data("DateTimePicker").destroy(); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldDateTimePickervue_type_script_lang_js_ = (fieldDateTimePickervue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldDateTimePicker.vue - - - - - -/* normalize component */ - -var fieldDateTimePicker_component = normalizeComponent( - optional_fieldDateTimePickervue_type_script_lang_js_, - fieldDateTimePickervue_type_template_id_0b5a21ff_render, - fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns, - false, - null, - null, - null - -) - -fieldDateTimePicker_component.options.__file = "fieldDateTimePicker.vue" -/* harmony default export */ var fieldDateTimePicker = (fieldDateTimePicker_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& -var fieldGoogleAddressvue_type_template_id_40223704_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"debounce":"500","id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"focus":function($event){_vm.geolocate()},"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& - -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/** - * Based on gocanto"s Google Autocomplete library - * https://github.com/gocanto/google-autocomplete - */ - - -/* global google */ -/* harmony default export */ var fieldGoogleAddressvue_type_script_lang_js_ = ({ - name: "field-googleAddress", - mixins: [abstractField], - data: function data() { - return { - // google autocomplete object - autocomplete: "", - // google inputs retrieved - inputs: { - street_number: "long_name", - route: "long_name", - country: "long_name", - administrative_area_level_1: "long_name", - administrative_area_level_2: "long_name", - locality: "long_name", - postal_code: "short_name" - } - }; - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.google && window.google.maps && window.google.maps.places && window.google.maps.places.Autocomplete) { - _this.autocomplete = new google.maps.places.Autocomplete(_this.$el, { - types: ["geocode"] - }); - - _this.autocomplete.addListener("place_changed", _this.pipeAddress); - } else { - console.warn("Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!"); - } - }); - }, - methods: { - /** - * Look up places and dispatch an event. - * @return void - */ - pipeAddress: function pipeAddress() { - var place = this.autocomplete.getPlace(); - - if (place) { - this.value = place.formatted_address; - var data = {}; - - if (place.address_components !== undefined) { - for (var i = 0; i < place.address_components.length; i++) { - var input = place.address_components[i].types[0]; - - if (this.inputs[input]) { - data[input] = place.address_components[i][this.inputs[input]]; - } - } - } // Call event in schema - - - if (isFunction_default()(this.fieldOptions.onPlaceChanged)) this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); - } - }, - - /** - * Get the user location. - * @return void - */ - geolocate: function geolocate() { - var _this2 = this; - - if (navigator.geolocation) { - navigator.geolocation.getCurrentPosition(function (position) { - var geolocation = { - lat: position.coords.latitude, - lng: position.coords.longitude - }; - var circle = new window.google.maps.Circle({ - center: geolocation, - radius: position.coords.accuracy - }); - - _this2.autocomplete.setBounds(circle.getBounds()); - }); - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldGoogleAddressvue_type_script_lang_js_ = (fieldGoogleAddressvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue - - - - - -/* normalize component */ - -var fieldGoogleAddress_component = normalizeComponent( - optional_fieldGoogleAddressvue_type_script_lang_js_, - fieldGoogleAddressvue_type_template_id_40223704_render, - fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns, - false, - null, - null, - null - -) - -fieldGoogleAddress_component.options.__file = "fieldGoogleAddress.vue" -/* harmony default export */ var fieldGoogleAddress = (fieldGoogleAddress_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& -var fieldImagevue_type_template_id_31dfdf94_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper"},[_c('input',{directives:[{name:"show",rawName:"v-show",value:(_vm.fieldOptions.hideInput !== true),expression:"fieldOptions.hideInput !== true"},{name:"model",rawName:"v-model",value:(_vm.wrappedValue),expression:"wrappedValue"}],staticClass:"form-control link",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly},domProps:{"value":(_vm.wrappedValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.wrappedValue=$event.target.value}}}),(_vm.fieldOptions.browse !== false)?_c('input',{staticClass:"form-control file",attrs:{"type":"file","disabled":_vm.disabled,"name":_vm.inputName},on:{"change":_vm.fileChanged}}):_vm._e(),_c('div',{staticClass:"preview",style:(_vm.previewStyle)},[_c('div',{staticClass:"remove",attrs:{"title":"Remove image"},on:{"click":_vm.remove}})])])} -var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldImagevue_type_script_lang_js_ = ({ - name: "field-image", - mixins: [abstractField], - computed: { - previewStyle: function previewStyle() { - if (this.fieldOptions.preview !== false) { - return { - display: "block", - "background-image": this.value != null ? "url(" + this.value + ")" : "none" - }; - } else { - return { - display: "none" - }; - } - }, - wrappedValue: { - get: function get() { - if (this.value && this.value.indexOf("data") === 0) return "";else return this.value; - }, - set: function set(newValue) { - if (newValue && newValue.indexOf("http") === 0) { - this.value = newValue; - } - } - } - }, - watch: { - model: function model() { - var el = this.$el.querySelector("input.file"); - - if (el) { - el.value = ""; - } - } - }, - methods: { - remove: function remove() { - this.value = ""; - }, - fileChanged: function fileChanged(event) { - var _this = this; - - var reader = new FileReader(); - - reader.onload = function (e) { - _this.value = e.target.result; - }; - - if (event.target.files && event.target.files.length > 0) { - reader.readAsDataURL(event.target.files[0]); - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldImagevue_type_script_lang_js_ = (fieldImagevue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldImage.vue?vue&type=style&index=0&lang=scss& -var fieldImagevue_type_style_index_0_lang_scss_ = __webpack_require__("2d36"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue - - - - - - -/* normalize component */ - -var fieldImage_component = normalizeComponent( - optional_fieldImagevue_type_script_lang_js_, - fieldImagevue_type_template_id_31dfdf94_render, - fieldImagevue_type_template_id_31dfdf94_staticRenderFns, - false, - null, - null, - null - -) - -fieldImage_component.options.__file = "fieldImage.vue" -/* harmony default export */ var fieldImage = (fieldImage_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& -var fieldMaskedvue_type_template_id_11c3a35a_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldMasked.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldMaskedvue_type_script_lang_js_ = ({ - name: "field-masked", - mixins: [abstractField], - mounted: function mounted() { - this.$nextTick(function () { - if (window.$ && window.$.fn.mask) { - $(this.$el).unmask().mask(this.fieldOptions.mask, this.fieldOptions.maskOptions); - } else { - console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.mask) $(this.$el).unmask(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue - - - - - -/* normalize component */ - -var fieldMasked_component = normalizeComponent( - optional_fieldMaskedvue_type_script_lang_js_, - fieldMaskedvue_type_template_id_11c3a35a_render, - fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, - false, - null, - null, - null - -) - -fieldMasked_component.options.__file = "fieldMasked.vue" -/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& -var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} -var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js -var es6_number_constructor = __webpack_require__("c5f6"); - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// - -/* harmony default export */ var fieldNoUiSlidervue_type_script_lang_js_ = ({ - name: "field-noUiSlider", - mixins: [abstractField], - data: function data() { - return { - slider: null - }; - }, - watch: { - model: function model() { - if (window.noUiSlider && this.slider && this.slider.noUiSlider) { - this.slider.noUiSlider.set(this.value); - } - } - }, - computed: { - containPips: function containPips() { - return typeof this.fieldOptions.pips !== "undefined"; - }, - containTooltip: function containTooltip() { - return typeof this.fieldOptions.tooltips !== "undefined"; - } - }, - methods: { - onChange: function onChange(value) { - if (isArray_default()(value)) { - // Array (range) - this.value = [parseFloat(value[0]), parseFloat(value[1])]; - } else { - // Single value - this.value = parseFloat(value); - } - }, - formatValueToField: function formatValueToField(value) { - if (this.slider !== null && typeof this.slider.noUiSlider !== "undefined") { - this.slider.noUiSlider.set(value); - } - }, - formatValueToModel: function formatValueToModel(val) { - if (typeof this.slider.noUiSlider !== "undefined") { - if (val instanceof Array) { - return [Number(val[0]), Number(val[1])]; - } else { - return Number(val); - } - } - }, - getStartValue: function getStartValue() { - if (this.value != null) { - return this.value; - } else { - if (typeof this.fieldOptions.double !== "undefined") { - return [this.fieldOptions.min, this.fieldOptions.min]; - } else { - return this.fieldOptions.min; - } - } - } - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.noUiSlider) { - _this.slider = _this.$el; - window.noUiSlider.create(_this.slider, defaults_default()(_this.fieldOptions || {}, { - start: _this.getStartValue(), - range: { - min: _this.fieldOptions.min, - max: _this.fieldOptions.max - } - })); - - _this.slider.noUiSlider.on("change", _this.onChange.bind(_this)); - } else { - console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.noUiSlider.off("change"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldNoUiSlidervue_type_script_lang_js_ = (fieldNoUiSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=style&index=0&lang=scss& -var fieldNoUiSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("bf23"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue - - - - - - -/* normalize component */ - -var fieldNoUiSlider_component = normalizeComponent( - optional_fieldNoUiSlidervue_type_script_lang_js_, - fieldNoUiSlidervue_type_template_id_2698b894_render, - fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns, - false, - null, - null, - null - -) - -fieldNoUiSlider_component.options.__file = "fieldNoUiSlider.vue" -/* harmony default export */ var fieldNoUiSlider = (fieldNoUiSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& -var fieldPikadayvue_type_template_id_69cdd058_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} -var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldPikaday.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// -// -// -// -// -// - - -/* harmony default export */ var fieldPikadayvue_type_script_lang_js_ = ({ - name: "field-pikaday", - mixins: [abstractField], - data: function data() { - return { - picker: null - }; - }, - methods: _objectSpread({}, dateFieldHelper), - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (window.Pikaday) { - _this.picker = new window.Pikaday(defaults_default()(_this.fieldOptions, { - field: _this.$el, - // bind the datepicker to a form field - onSelect: function onSelect() { - _this.value = _this.picker.toString(); - } // trigger: , // use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`) - - })); - } else { - console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue - - - - - -/* normalize component */ - -var fieldPikaday_component = normalizeComponent( - optional_fieldPikadayvue_type_script_lang_js_, - fieldPikadayvue_type_template_id_69cdd058_render, - fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, - false, - null, - null, - null - -) - -fieldPikaday_component.options.__file = "fieldPikaday.vue" -/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& -var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} -var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } - } - - return _arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js - - - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - - - -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldRangeSlidervue_type_script_lang_js_ = ({ - name: "field-rangeSlider", - mixins: [abstractField], - data: function data() { - return { - slider: null - }; - }, - watch: { - model: function model() { - if (window.$ && window.$.fn.ionRangeSlider) { - var valueFrom, valueTo; - - if (isArray_default()(this.value)) { - var _this$value = _slicedToArray(this.value, 2); - - valueFrom = _this$value[0]; - valueTo = _this$value[1]; - } else valueFrom = this.value; - - if (this.slider) { - this.slider.update({ - from: valueFrom, - to: valueTo - }); - } - } - } - }, - mounted: function mounted() { - this.$nextTick(function () { - if (window.$ && window.$.fn.ionRangeSlider) { - var valueFrom, valueTo; - - if (isArray_default()(this.value)) { - var _this$value2 = _slicedToArray(this.value, 2); - - valueFrom = _this$value2[0]; - valueTo = _this$value2[1]; - } else valueFrom = this.value; - - var self = this; - $(this.$el).ionRangeSlider(defaults_default()(this.fieldOptions, { - type: "single", - grid: true, - hide_min_max: true, - from: valueFrom, - to: valueTo, - onChange: function onChange(slider) { - if (self.slider.options.type === "double") { - self.value = [slider.from, slider.to]; - } else { - self.value = slider.from; - } - } - })); - this.slider = $(this.$el).data("ionRangeSlider"); - } else { - console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& -var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue - - - - - - -/* normalize component */ - -var fieldRangeSlider_component = normalizeComponent( - optional_fieldRangeSlidervue_type_script_lang_js_, - fieldRangeSlidervue_type_template_id_6be663d2_render, - fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, - false, - null, - null, - null - -) - -fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" -/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& -var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} -var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& - - - - - -/* harmony default export */ var fieldSelectExvue_type_script_lang_js_ = ({ - name: "field-selectex", - mixins: [abstractField], - computed: { - items: function items() { - var values = this.schema.values; - - if (typeof values == "function") { - return values.apply(this, [this.model, this.schema]); - } else return values; - } - }, - methods: { - 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; - } - } - }, - watch: { - model: function model() { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) $(this.$el).selectpicker("refresh"); - } - }, - mounted: function mounted() { - var _this = this; - - this.$nextTick(function () { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) { - $(_this.$el).selectpicker("destroy").selectpicker(_this.fieldOptions); - } else { - console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if ($.fn.selectpicker) $(this.$el).selectpicker("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSelectExvue_type_script_lang_js_ = (fieldSelectExvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=style&index=0&lang=scss& -var fieldSelectExvue_type_style_index_0_lang_scss_ = __webpack_require__("1958"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue - - - - - - -/* normalize component */ - -var fieldSelectEx_component = normalizeComponent( - optional_fieldSelectExvue_type_script_lang_js_, - fieldSelectExvue_type_template_id_2aa7bc96_render, - fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns, - false, - null, - null, - null - -) - -fieldSelectEx_component.options.__file = "fieldSelectEx.vue" -/* harmony default export */ var fieldSelectEx = (fieldSelectEx_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& -var fieldSpectrumvue_type_template_id_13b45188_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID}})} -var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSpectrum.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// - -/* global $ */ - -/* harmony default export */ var fieldSpectrumvue_type_script_lang_js_ = ({ - name: "field-spectrum", - mixins: [abstractField], - data: function data() { - return { - picker: null - }; - }, - watch: { - model: function model() { - if (window.$ && window.$.fn.spectrum) { - this.picker.spectrum("set", this.value); - } - }, - disabled: function disabled(val) { - if (val) this.picker.spectrum("disable");else this.picker.spectrum("enable"); - } - }, - mounted: function mounted() { - this.$nextTick(function () { - var _this = this; - - if (window.$ && window.$.fn.spectrum) { - this.picker = $(this.$el).spectrum("destroy").spectrum(defaults_default()(this.fieldOptions, { - showInput: true, - showAlpha: true, - disabled: this.schema.disabled, - allowEmpty: !this.schema.required, - preferredFormat: "hex", - change: function change(color) { - _this.value = color ? color.toString() : null; - } - })); - this.picker.spectrum("set", this.value); - } else { - console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); - } - }); - }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.spectrum("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue - - - - - -/* normalize component */ - -var fieldSpectrum_component = normalizeComponent( - optional_fieldSpectrumvue_type_script_lang_js_, - fieldSpectrumvue_type_template_id_13b45188_render, - fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, - false, - null, - null, - null - -) - -fieldSpectrum_component.options.__file = "fieldSpectrum.vue" -/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& -var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} -var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& - -// -// -// -// - -/* harmony default export */ var fieldStaticMapvue_type_script_lang_js_ = ({ - name: "field-staticmap", - mixins: [abstractField], - computed: { - mapLink: function mapLink() { - if (this.value) { - var lat, lng; - - var options = defaults_default()(this.fieldOptions, { - lat: "lat", - lng: "lng", - zoom: 8, - sizeX: 640, - sizeY: 640 - }); - - lat = this.value[options.lat]; - lng = this.value[options.lng]; - var url = "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY); - var props = ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]; - - for (var _i = 0; _i < props.length; _i++) { - var prop = props[_i]; - - if (typeof options[prop] !== "undefined") { - url += "&".concat(prop, "=").concat(options[prop]); - } - } - - if (lat && lng) { - return url; - } - } - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldStaticMapvue_type_script_lang_js_ = (fieldStaticMapvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=style&index=0&lang=scss& -var fieldStaticMapvue_type_style_index_0_lang_scss_ = __webpack_require__("2149"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue - - - - - - -/* normalize component */ - -var fieldStaticMap_component = normalizeComponent( - optional_fieldStaticMapvue_type_script_lang_js_, - fieldStaticMapvue_type_template_id_0cb20abb_render, - fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns, - false, - null, - null, - null - -) - -fieldStaticMap_component.options.__file = "fieldStaticMap.vue" -/* harmony default export */ var fieldStaticMap = (fieldStaticMap_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& -var fieldSwitchvue_type_template_id_5a71b352_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],attrs:{"type":"checkbox","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"name":_vm.inputName,"id":_vm.fieldID},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}}}}),_c('span',{staticClass:"label",attrs:{"data-on":_vm.fieldOptions.textOn || 'On',"data-off":_vm.fieldOptions.textOff || 'Off',"for":_vm.fieldID}}),_c('span',{staticClass:"handle"})])} -var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSwitch.vue?vue&type=script&lang=js& -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldSwitchvue_type_script_lang_js_ = ({ - name: "field-switch", - mixins: [abstractField], - methods: { - formatValueToField: function formatValueToField(value) { - if (value != null && this.fieldOptions.valueOn) return value === this.fieldOptions.valueOn; - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null && this.fieldOptions.valueOn) { - if (value) return this.fieldOptions.valueOn;else return this.fieldOptions.valueOff; - } - - return value; - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSwitchvue_type_script_lang_js_ = (fieldSwitchvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=style&index=0&lang=scss& -var fieldSwitchvue_type_style_index_0_lang_scss_ = __webpack_require__("e0bf"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue - - - - - - -/* normalize component */ - -var fieldSwitch_component = normalizeComponent( - optional_fieldSwitchvue_type_script_lang_js_, - fieldSwitchvue_type_template_id_5a71b352_render, - fieldSwitchvue_type_template_id_5a71b352_staticRenderFns, - false, - null, - null, - null - -) - -fieldSwitch_component.options.__file = "fieldSwitch.vue" -/* harmony default export */ var fieldSwitch = (fieldSwitch_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& -var fieldVueMultiSelectvue_type_template_id_032ae05c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('multiselect',{attrs:{"id":_vm.fieldOptions.id,"options":_vm.options,"value":_vm.value,"multiple":_vm.fieldOptions.multiple,"track-by":_vm.fieldOptions.trackBy || null,"label":_vm.fieldOptions.label || null,"searchable":_vm.fieldOptions.searchable,"clear-on-select":_vm.fieldOptions.clearOnSelect,"hide-selected":_vm.fieldOptions.hideSelected,"placeholder":_vm.placeholder,"allow-empty":_vm.fieldOptions.allowEmpty,"reset-after":_vm.fieldOptions.resetAfter,"close-on-select":_vm.fieldOptions.closeOnSelect,"custom-label":_vm.customLabel,"taggable":_vm.fieldOptions.taggable,"tag-placeholder":_vm.fieldOptions.tagPlaceholder,"max":_vm.fieldOptions.max || null,"options-limit":_vm.fieldOptions.optionsLimit,"group-values":_vm.fieldOptions.groupValues,"group-label":_vm.fieldOptions.groupLabel,"block-keys":_vm.fieldOptions.blockKeys,"internal-search":_vm.fieldOptions.internalSearch,"select-label":_vm.fieldOptions.selectLabel,"selected-label":_vm.fieldOptions.selectedLabel,"deselect-label":_vm.fieldOptions.deselectLabel,"show-labels":_vm.fieldOptions.showLabels,"limit":_vm.fieldOptions.limit,"limit-text":_vm.fieldOptions.limitText,"loading":_vm.fieldOptions.loading,"disabled":_vm.disabled,"max-height":_vm.fieldOptions.maxHeight,"show-pointer":_vm.fieldOptions.showPointer,"option-height":_vm.fieldOptions.optionHeight},on:{"input":_vm.updateSelected,"select":_vm.onSelect,"remove":_vm.onRemove,"search-change":_vm.onSearchChange,"tag":_vm.addTag,"open":_vm.onOpen,"close":_vm.onClose}},[_c('span',{attrs:{"slot":"noResult"},slot:"noResult"},[_vm._v("\n\t\t"+_vm._s(_vm.fieldOptions.noResult)+"\n\t")])])} -var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& - - -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// - -/* harmony default export */ var fieldVueMultiSelectvue_type_script_lang_js_ = ({ - name: "field-vueMultiSelect", - mixins: [abstractField], - computed: { - options: function options() { - var values = this.schema.values; - - if (typeof values == "function") { - return values.apply(this, [this.model, this.schema]); - } else { - return values; - } - }, - customLabel: function customLabel() { - if (typeof this.fieldOptions.customLabel !== "undefined" && typeof this.fieldOptions.customLabel === "function") { - return this.fieldOptions.customLabel; - } else { - // this will let the multiselect library use the default behavior if customLabel is not specified - return undefined; - } - } - }, - methods: { - updateSelected: function updateSelected(value - /* , id*/ - ) { - this.value = value; - }, - addTag: function addTag(newTag, id) { - var onNewTag = this.fieldOptions.onNewTag; - - if (typeof onNewTag == "function") { - onNewTag(newTag, id, this.options, this.value); - } - }, - onSearchChange: function onSearchChange(searchQuery, id) { - var onSearch = this.fieldOptions.onSearch; - - if (typeof onSearch == "function") { - onSearch(searchQuery, id, this.options); - } - }, - onSelect: function onSelect() - /* selectedOption, id */ - {// console.log("onSelect", selectedOption, id); - }, - onRemove: function onRemove() - /* removedOption, id */ - {// console.log("onRemove", removedOption, id); - }, - onOpen: function onOpen() - /* id */ - {// console.log("onOpen", id); - }, - onClose: function onClose() - /* value, id */ - {// console.log("onClose", value, id); - } - }, - created: function created() { - // Check if the component is loaded globally - if (!this.$root.$options.components["multiselect"]) { - console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!"); - } - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldVueMultiSelectvue_type_script_lang_js_ = (fieldVueMultiSelectvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue - - - - - -/* normalize component */ - -var fieldVueMultiSelect_component = normalizeComponent( - optional_fieldVueMultiSelectvue_type_script_lang_js_, - fieldVueMultiSelectvue_type_template_id_032ae05c_render, - fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns, - false, - null, - null, - null - -) - -fieldVueMultiSelect_component.options.__file = "fieldVueMultiSelect.vue" -/* harmony default export */ var fieldVueMultiSelect = (fieldVueMultiSelect_component.exports); -// CONCATENATED MODULE: ./src/utils/fieldsLoader.js -// core - - - - - - - - - // optional - - - - - - - - - - - - - - - -// CONCATENATED MODULE: ./src/index.js - - - - - - - - -var src_install = function install(Vue) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (options.fields) { - options.fields.forEach(function (field) { - if (typeof field.name !== "undefined") { - Vue.component(field.name, field); - } - }); - } - - Vue.component("VueFormGenerator", formGenerator); -}; - -/* harmony default export */ var src = ({ - component: formGenerator, - schema: schema_namespaceObject, - validators: utils_validators, - abstractField: abstractField, - fieldsLoader: fieldsLoader_namespaceObject, - install: src_install -}); -// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js - - -/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src); - - - -/***/ }), - -/***/ "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; - - -/***/ }), - -/***/ "fdef": -/***/ (function(module, exports) { - -module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + - '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - - -/***/ }), - -/***/ "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.umd.min.js b/dist/vfg-core.umd.min.js deleted file mode 100644 index adb7aae3..00000000 --- a/dist/vfg-core.umd.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vfg-core"]=t(require("vue")):e["vfg-core"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),l=n("7f20"),c=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,b,g,y,x){u(n,t,b);var O,_,w,S=function(e){if(!d&&e in j)return j[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=g==m,T=!1,j=e.prototype,M=j[f]||j[p]||g&&j[g],I=M||S(g),$=g?C?S("entries"):I:void 0,F="Array"==t&&j.entries||M;if(F&&(w=c(F.call(new e)),w!==Object.prototype&&w.next&&(l(w,k,!0),i||"function"==typeof w[f]||a(w,f,v))),C&&M&&M.name!==m&&(T=!0,I=function(){return M.call(this)}),i&&!x||!d&&!T&&j[f]||a(j,f,I),s[t]=I,s[k]=v,g)if(O={values:C?I:S(m),keys:y?I:S(h),entries:$},x)for(_ in O)_ in j||o(j,_,O[_]);else r(r.P+r.F*(d||T),t,O);return O}},"03dd":function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},"0644":function(e,t,n){var i=n("3818"),r=1,o=4;function a(e){return i(e,r|o)}e.exports=a},"0b07":function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d24":function(e,t){function n(){return!1}e.exports=n},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},"0f0f":function(e,t,n){var i=n("8eeb"),r=n("9934");function o(e,t){return e&&i(t,r(t),e)}e.exports=o},"0f5c":function(e,t,n){var i=n("159a");function r(e,t,n){return null==e?e:i(e,t,n)}e.exports=r},"100e":function(e,t,n){var i=n("cd9d"),r=n("2286"),o=n("c1c9");function a(e,t){return o(r(e,t,i),e+"")}e.exports=a},1041:function(e,t,n){var i=n("8eeb"),r=n("a029");function o(e,t){return i(e,r(e),t)}e.exports=o},"11e9":function(e,t,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),u=n("c69a"),l=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},"13ea":function(e,t,n){var i=n("03dd"),r=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),l=n("eac5"),c=n("73ac"),f="[object Map]",d="[object Set]",p=Object.prototype,h=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=r(e);if(t==f||t==d)return!e.size;if(l(e))return!i(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}e.exports=m},1437:function(e,t,n){},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,u=0;while(s>u)i.f(e,n=a[u++],t[n]);return e}},"159a":function(e,t,n){var i=n("32b3"),r=n("e2e4"),o=n("c098"),a=n("1a8c"),s=n("f4d6");function u(e,t,n,u){if(!a(e))return e;t=r(t,e);var l=-1,c=t.length,f=c-1,d=e;while(null!=d&&++ln)t.push(arguments[n++]);return b[++v]=function(){s("function"==typeof e?e:Function(e),t)},i(v),v},p=function(e){delete b[e]},"process"==n("2d95")(f)?i=function(e){f.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:h?(r=new h,o=r.port2,r.port1.onmessage=x,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",x,!1)):i=g in l("script")?function(e){u.appendChild(l("script"))[g]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1bac":function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e["return"];throw void 0!==o&&i(o.call(e)),t}}},2149:function(e,t,n){"use strict";var i=n("1437"),r=n.n(i);r.a},"214f":function(e,t,n){"use strict";var i=n("32e9"),r=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var u=s(e),l=n(a,u,""[e]),c=l[0],f=l[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),i(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},2286:function(e,t,n){var i=n("85e3"),r=Math.max;function o(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=r(o.length-t,0),u=Array(s);while(++a1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!r(e))return o.call(n,e,t);var i,s,f,d,p,h=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,b=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,m+"g");c||(i=new RegExp("^"+g.source+"$(?!\\s)",m));while(s=g.exec(n)){if(f=s.index+s[0][u],f>v&&(h.push(n.slice(v,s.index)),!c&&s[u]>1&&s[0].replace(i,function(){for(p=1;p1&&s.index=b))break;g[l]===s.index&&g[l]++}return v===n[u]?!d&&g.test("")||h.push(""):h.push(n.slice(v)),h[u]>b?h.slice(0,b):h}}else"0"[s](void 0,0)[u]&&(i=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,r){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},i]})},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",u=Function[s],l=(""+u).split(s);n("8378").inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||r(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("230e")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;while(i--)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},"2b03":function(e,t){function n(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++ob;)m(v[b++]);f.constructor=l,l.prototype=f,n("2aba")(i,"RegExp",l)}n("7a56")("RegExp")},"3b4a":function(e,t,n){var i=n("0b07"),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},"3f6b":function(e,t,n){"use strict";var i=n("9ee4"),r=n.n(i);r.a},"408c":function(e,t,n){var i=n("2b3e"),r=function(){return i.Date.now()};e.exports=r},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"42a2":function(e,t){var n=Object.prototype,i=n.toString;function r(e){return i.call(e)}e.exports=r},4359:function(e,t){function n(e,t){var n=-1,i=e.length;t||(t=Array(i));while(++n0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4a59":function(e,t,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),u=n("27ee"),l={},c={};t=e.exports=function(e,t,n,f,d){var p,h,m,v,b=d?function(){return e}:u(e),g=i(n,f,t?2:1),y=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(o(b)){for(p=s(e.length);p>y;y++)if(v=t?g(a(h=e[y])[0],h[1]):g(e[y]),v===l||v===c)return v}else for(m=b.call(e);!(h=m.next()).done;)if(v=r(m,g,h.value,t),v===l||v===c)return v};t.BREAK=l,t.RETURN=c},"4b17":function(e,t,n){var i=n("6428");function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}e.exports=r},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},"501e":function(e,t,n){var i=n("3729"),r=n("1310"),o="[object Number]";function a(e){return"number"==typeof e||r(e)&&i(e)==o}e.exports=a},"51f5":function(e,t,n){var i=n("2b03"),r=n("badf"),o=n("4b17"),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),i(e,r(t,3),u)}e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"54eb":function(e,t,n){var i=n("8eeb"),r=n("32f4");function o(e,t){return i(e,r(e),t)}e.exports=o},"551c":function(e,t,n){"use strict";var i,r,o,a,s=n("2d00"),u=n("7726"),l=n("9b43"),c=n("23c6"),f=n("5ca1"),d=n("d3f4"),p=n("d8e8"),h=n("f605"),m=n("4a59"),v=n("ebd6"),b=n("1991").set,g=n("8079")(),y=n("a5b8"),x=n("9c80"),O=n("a25f"),_=n("bcaa"),w="Promise",S=u.TypeError,k=u.process,C=k&&k.versions,T=C&&C.v8||"",j=u[w],M="process"==c(k),I=function(){},$=r=y.f,F=!!function(){try{var e=j.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(I,I)};return(M||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==T.indexOf("6.6")&&-1===O.indexOf("Chrome/66")}catch(e){}}(),E=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(r||(2==e._h&&D(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===t.promise?l(S("Promise-chain cycle")):(o=E(n))?o.call(n,u,l):u(n)):l(i)}catch(e){c&&!a&&c.exit(),l(e)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){b.call(u,function(){var t,n,i,r=e._v,o=V(e);if(o&&(t=x(function(){M?k.emit("unhandledRejection",r,e):(n=u.onunhandledrejection)?n({promise:e,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=M||V(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},V=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){b.call(u,function(){var t;M?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=E(e))?g(function(){var i={_w:n,_d:!1};try{t.call(e,l(L,i,1),l(A,i,1))}catch(e){A.call(i,e)}}):(n._v=e,n._s=1,N(n,!1))}catch(e){A.call({_w:n,_d:!1},e)}}};F||(j=function(e){h(this,j,w,"_h"),p(e),i.call(this);try{e(l(L,this,1),l(A,this,1))}catch(e){A.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("dcbc")(j.prototype,{then:function(e,t){var n=$(v(this,j));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=l(L,e,1),this.reject=l(A,e,1)},y.f=$=function(e){return e===j||e===a?new o(e):r(e)}),f(f.G+f.W+f.F*!F,{Promise:j}),n("7f20")(j,w),n("7a56")(w),a=n("8378")[w],f(f.S+f.F*!F,w,{reject:function(e){var t=$(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!F),w,{resolve:function(e){return _(s&&this===a?j:this,e)}}),f(f.S+f.F*!(F&&n("5cc5")(function(e){j.all(e)["catch"](I)})),w,{all:function(e){var t=this,n=$(t),i=n.resolve,r=n.reject,o=x(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=$(t),i=n.reject,r=x(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},5537:function(e,t,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"574e":function(e,t,n){},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"5b01":function(e,t,n){var i=n("8eeb"),r=n("ec69");function o(e,t){return e&&i(t,r(t),e)}e.exports=o},"5ca0":function(e,t,n){var i=n("badf"),r=n("30c9"),o=n("ec69");function a(e){return function(t,n,a){var s=Object(t);if(!r(t)){var u=i(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}e.exports=a},"5ca1":function(e,t,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,f,d,p,h=e&l.F,m=e&l.G,v=e&l.S,b=e&l.P,g=e&l.B,y=m?i:v?i[t]||(i[t]={}):(i[t]||{})[u],x=m?r:r[t]||(r[t]={}),O=x[u]||(x[u]={});for(c in m&&(n=t),n)f=!h&&y&&void 0!==y[c],d=(f?y:n)[c],p=g&&f?s(d,i):b&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),x[c]!=d&&o(x,c,p),b&&O[c]!=d&&(O[c]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5cc5":function(e,t,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},"5dbc":function(e,t,n){var i=n("d3f4"),r=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(e,o),e}},"5eda":function(e,t,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},"5ff7":function(e,t,n){},"602f":function(e,t,n){"use strict";var i=n("260c"),r=n.n(i);r.a},"613b":function(e,t,n){var i=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return i[e]||(i[e]=r(e))}},6186:function(e,t,n){},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6428:function(e,t,n){var i=n("b4b0"),r=1/0,o=1.7976931348623157e308;function a(e){if(!e)return 0===e?e:0;if(e=i(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},"656b":function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},6747:function(e,t){var n=Array.isArray;e.exports=n},6762:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ca":function(e,t,n){var i=n("cb5a");function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e.exports=r},6821:function(e,t,n){var i=n("626a"),r=n("be13");e.exports=function(e){return i(r(e))}},"697e":function(e,t,n){var i=n("4b17");function r(e){return"number"==typeof e&&e==i(e)}e.exports=r},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d5":function(e,t,n){var i=n("cb5a"),r=Array.prototype,o=r.splice;function a(e){var t=this.__data__,n=i(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"6b54":function(e,t,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],u=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?r.call(e):void 0)}):s.name!=a&&u(function(){return s.call(this)})},"6cd4":function(e,t){function n(e,t){var n=-1,i=null==e?0:e.length;while(++n2?t[2]:void 0;l&&o(t[0],t[1],l)&&(i=1);while(++n0?r(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e69":function(e,t,n){var i=n("2b3e"),r=i.Symbol;e.exports=r},"9e99":function(e,t,n){var i;(function(r){"use strict";var o={},a=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s=/\d\d?/,u=/\d{3}/,l=/\d{4}/,c=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,d=function(){};function p(e,t){for(var n=[],i=0,r=e.length;i3?0:(e-e%10!==10)*e%10]}};var x={D:function(e){return e.getDate()},DD:function(e){return m(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return m(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return String(e.getFullYear()).substr(2)},YYYY:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={D:[s,function(e,t){e.day=t}],Do:[new RegExp(s.source+c.source),function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],YY:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],YYYY:[l,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[u,function(e,t){e.millisecond=t}],d:[s,d],ddd:[c,d],MMM:[c,h("monthNamesShort")],MMMM:[c,h("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(e,t){"Z"===t&&(t="+00:00");var n,i=(t+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};O.dd=O.d,O.dddd=O.ddd,O.DD=O.D,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,o.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"},o.format=function(e,t,n){var i=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var r=[];return t=t.replace(f,function(e,t){return r.push(t),"??"}),t=t.replace(a,function(t){return t in x?x[t](e,i):t.slice(1,t.length-1)}),t.replace(/\?\?/g,function(){return r.shift()})},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return!1;var r=!0,s={};if(t.replace(a,function(t){if(O[t]){var n=O[t],o=e.search(n[0]);~o?e.replace(n[0],function(t){return n[1](s,t,i),e=e.substr(o+t.length),t}):r=!1}return O[t]?"":t.slice(1,t.length-1)}),!r)return!1;var u,l=new Date;return!0===s.isPm&&null!=s.hour&&12!==+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12===+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,u=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):u=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),u},"undefined"!==typeof e&&e.exports?e.exports=o:(i=function(){return o}.call(t,n,t,e),void 0===i||(e.exports=i))})()},"9ee4":function(e,t,n){},a029:function(e,t){function n(){return[]}e.exports=n},a25f:function(e,t,n){var i=n("7726"),r=i.navigator;e.exports=r&&r.userAgent||""},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(i,r){"use strict";var o=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},n]})},a5b8:function(e,t,n){"use strict";var i=n("d8e8");function r(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},a994:function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},aa77:function(e,t,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var r={},s=o(function(){return!!a[e]()||u[e]()!=u}),l=r[e]=s?t(d):a[e];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},d=f.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},aae3:function(e,t,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),l=n("2b4c"),c=l("iterator"),f=l("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),m=0;m=t||n<0||b&&i>=f}function w(){var e=r();if(_(e))return S(e);p=setTimeout(w,O(e))}function S(e){return p=void 0,g&&l?y(e):(l=c=void 0,d)}function k(){void 0!==p&&clearTimeout(p),m=0,l=h=c=p=void 0}function C(){return void 0===p?d:S(r())}function T(){var e=r(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return x(h);if(b)return p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=o(t)||0,i(n)&&(v=!!n.leading,b="maxWait"in n,f=b?s(o(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),T.cancel=k,T.flush=C,T}e.exports=l},b218:function(e,t){var n=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=i},b4b0:function(e,t,n){var i=n("1a8c"),r=n("ffd6"),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(r(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}e.exports=f},b4c0:function(e,t,n){var i=n("cb5a");function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}e.exports=r},b72b:function(e,t,n){"use strict";var i=n("b828"),r=n.n(i);r.a},b7fb:function(e,t,n){"use strict";var i=n("74d5"),r=n.n(i);r.a},b828:function(e,t,n){},b8ce:function(e,t,n){var i=n("3818"),r=4;function o(e){return i(e,r)}e.exports=o},badf:function(e,t){function n(e){return e}e.exports=n},bcaa:function(e,t,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf23:function(e,t,n){"use strict";var i=n("77cf"),r=n.n(i);r.a},bfd2:function(e,t,n){"use strict";var i=n("e279"),r=n.n(i);r.a},c098:function(e,t){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t=null==t?n:t,!!t&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&ec)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c495:function(e,t,n){"use strict";var i=n("574e"),r=n.n(i);r.a},c5f6:function(e,t,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),u=n("79e5"),l=n("9093").f,c=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=i[p],m=h,v=h.prototype,b=o(n("2aeb")(v))==p,g="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():d(t,3);var n,i,r,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var a,u=t.slice(2),l=0,c=u.length;lr)return NaN;return parseInt(u,i)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(b?u(function(){v.valueOf.call(n)}):o(n)!=p)?a(new m(y(t)),n,h):y(t)};for(var x,O=n("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;O.length>_;_++)r(m,x=O[_])&&!r(h,x)&&f(h,x,c(m,x));h.prototype=v,v.constructor=h,n("2aba")(i,p,h)}},c641:function(e,t){function n(e,t){var n=-1,i=null==e?0:e.length;while(++n=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb5a:function(e,t,n){var i=n("9638");function r(e,t){var n=e.length;while(n--)if(i(e[n][0],t))return n;return-1}e.exports=r},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},cc45:function(e,t){function n(){return!1}e.exports=n},cd9d:function(e,t){function n(e){return e}e.exports=n},ce10:function(e,t,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);while(t.length>u)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},ce86:function(e,t,n){var i=n("9e69"),r=n("7948"),o=n("6747"),a=n("ffd6"),s=1/0,u=i?i.prototype:void 0,l=u?u.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return r(e,c)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=c},d302:function(e,t,n){},d370:function(e,t){function n(){return!1}e.exports=n},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d474:function(e,t,n){"use strict";var i=n("7375"),r=n.n(i);r.a},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d7ee:function(e,t){function n(){return!1}e.exports=n},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dcbc:function(e,t,n){var i=n("2aba");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e0bf:function(e,t,n){"use strict";var i=n("76c3"),r=n.n(i);r.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(e,t,n){},e2a0:function(e,t,n){var i=n("3729"),r=n("6747"),o=n("1310"),a="[object String]";function s(e){return"string"==typeof e||!r(e)&&o(e)&&i(e)==a}e.exports=s},e2e4:function(e,t,n){var i=n("6747");function r(){if(!arguments.length)return[];var e=arguments[0];return i(e)?e:[e]}e.exports=r},e538:function(e,t,n){(function(e){var i=n("2b3e"),r="object"==typeof t&&t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===r,s=a?i.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(e,t){if(t)return e.slice();var n=e.length,i=u?u(n):new e.constructor(n);return e.copy(i),i}e.exports=l}).call(this,n("62e4")(e))},eac5:function(e,t){function n(){return!1}e.exports=n},eb5d:function(e,t,n){"use strict";var i=n("5ff7"),r=n.n(i);r.a},ebd6:function(e,t,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},ec69:function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},f4d6:function(e,t,n){var i=n("ffd6"),r=1/0;function o(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}e.exports=o},f605:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},fa21:function(e,t,n){var i=n("7530"),r=n("2dcb"),o=n("eac5");function a(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}e.exports=a},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"createDefaultObject",function(){return B}),n.d(i,"getMultipleFields",function(){return R}),n.d(i,"mergeMultiObjectFields",function(){return Y}),n.d(i,"slugifyFormID",function(){return H}),n.d(i,"slugify",function(){return U});var r,o={};(n.r(o),n.d(o,"fieldCheckbox",function(){return Ce}),n.d(o,"fieldChecklist",function(){return Ne}),n.d(o,"fieldInput",function(){return Re}),n.d(o,"fieldLabel",function(){return Ge}),n.d(o,"fieldRadios",function(){return Qe}),n.d(o,"fieldSelect",function(){return st}),n.d(o,"fieldSubmit",function(){return mt}),n.d(o,"fieldTextArea",function(){return Ot}),n.d(o,"fieldUpload",function(){return Tt}),n.d(o,"fieldCleave",function(){return Et}),n.d(o,"fieldDateTimePicker",function(){return Yt}),n.d(o,"fieldGoogleAddress",function(){return Zt}),n.d(o,"fieldImage",function(){return en}),n.d(o,"fieldMasked",function(){return sn}),n.d(o,"fieldNoUiSlider",function(){return pn}),n.d(o,"fieldPikaday",function(){return yn}),n.d(o,"fieldRangeSlider",function(){return Mn}),n.d(o,"fieldSelectEx",function(){return Pn}),n.d(o,"fieldSpectrum",function(){return Rn}),n.d(o,"fieldStaticMap",function(){return Gn}),n.d(o,"fieldSwitch",function(){return Qn}),n.d(o,"fieldVueMultiSelect",function(){return oi}),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));n("7f7f"),n("ac6a");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!=e.schema?n("div",{staticClass:"vue-form-generator"},[n("form-group",{attrs:{tag:e.tag,fields:e.fields,model:e.model,options:e.options,errors:e.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"element",fn:function(t){return[n("form-element",{attrs:{field:t.field,model:t.model,options:t.options,errors:t.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"label",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("label",[n("span",{domProps:{innerHTML:e._s(i.label)}})],{field:i,getValueFromOption:r})]}},{key:"help",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("help",[i.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:e._s(i.help)}})]):e._e()],{field:i,getValueFromOption:r})]}},{key:"hint",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("hint",[n("div",{staticClass:"hint",domProps:{innerHTML:e._s(r(i,"hint",void 0))}})],{field:i,getValueFromOption:r})]}},{key:"errors",fn:function(t){var i=t.childErrors,r=t.field,o=t.getValueFromOption;return[e._t("errors",[n("div",{staticClass:"errors help-block"},e._l(i,function(t,i){return n("span",{key:i,domProps:{innerHTML:e._s(t)}})}))],{errors:i,field:r,getValueFromOption:o})]}}])})]}}])})],1):e._e()},s=[],u=(n("551c"),n("6747")),l=n.n(u),c=n("9b02"),f=n.n(c),d=n("8bbf"),p=n.n(d),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.fields?n(e.tag,{ref:"group",tag:"fieldset",class:[e.groupRowClasses,e.validationClass]},[e.groupLegend?n("legend",[e._v(e._s(e.groupLegend))]):e._e(),e._l(e.fields,function(t,i){return[e.fieldVisible(t)?["group"===t.type?[n("form-group",{key:i,attrs:{fields:t.fields,group:t,tag:e.getGroupTag(t),model:e.model,options:e.options,errors:e.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"element",fn:function(t){return[e._t("element",null,{field:t.field,model:t.model,options:t.options,errors:t.errors,eventBus:t.eventBus})]}}])})]:[e._t("element",null,{field:t,model:e.model,options:e.options,errors:e.errors,eventBus:e.eventBus})]]:e._e()]})],2):e._e()},m=[];function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=n("2768"),g=n.n(b),y=n("9520"),x=n.n(y),O=n("e2a0"),_=n.n(O),w={methods:{getStyleClasses:function(e,t){var n=e.styleClasses;return l()(n)?n.forEach(function(e){t[e]=!0}):_()(n)&&(t[n]=!0),t}}},S={name:"form-group",mixins:[w],props:{fields:{type:Array,default:function(){return[]}},group:{type:Object,default:function(){return{}}},tag:{type:String,default:"fieldset",validator:function(e){return e.length>0}},model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},errors:{type:Array,default:function(){return[]}},eventBus:{type:Object,default:function(){return{}}}},data:function(){return{validationClass:{}}},computed:{groupLegend:function(){if(this.group&&this.group.legend)return this.group.legend},groupRowClasses:function(){var e={"field-group":!0};return g()(this.group)||(e=this.getStyleClasses(this.group,e)),e}},methods:{fieldVisible:function(e){return x()(e.visible)?e.visible.call(this,this.model,e,this):!!g()(e.visible)||e.visible},getGroupTag:function(e){return g()(e.tag)?this.tag:e.tag}},created:function(){var e=this;this.eventBus.$on("field-validated",function(){e.$nextTick(function(){var t,n=null!==e.$refs.group.querySelector(".form-element.error");e.validationClass=(t={},v(t,f()(e.options,"validationErrorClass","error"),n),v(t,f()(e.options,"validationSuccessClass","valid"),!n),t)})})}},k=S;function C(e,t,n,i,r,o,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}var T=C(k,h,m,!1,null,null,null);T.options.__file="formGroup.vue";var j=T.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-element",class:[e.fieldRowClasses]},[e.fieldTypeHasLabel?n("label",{class:e.field.labelClasses,attrs:{for:e.fieldID}},[e._t("label",null,{field:e.field,getValueFromOption:e.getValueFromOption}),e._t("help",null,{field:e.field,getValueFromOption:e.getValueFromOption})],2):e._e(),n("div",{staticClass:"field-wrap"},[n(e.fieldType,{ref:"child",tag:"component",attrs:{model:e.model,schema:e.field,"form-options":e.options,"event-bus":e.eventBus,"field-id":e.fieldID},on:{"field-touched":e.onFieldTouched,"errors-updated":e.onChildValidated}}),e.buttonsAreVisible?n("div",{staticClass:"buttons"},e._l(e.field.buttons,function(t,i){return n("button",{key:i,class:t.classes,domProps:{textContent:e._s(t.label)},on:{click:function(n){e.buttonClickHandler(t,e.field,n)}}})})):e._e()],1),e.fieldHasHint?[e._t("hint",null,{field:e.field,getValueFromOption:e.getValueFromOption})]:e._e(),e.fieldHasErrors?[e._t("errors",null,{childErrors:e.childErrors,field:e.field,getValueFromOption:e.getValueFromOption})]:e._e()],2)},I=[],F=(n("6762"),n("6b54"),n("a481"),n("0644")),E=n.n(F),N=n("1a8c"),P=n.n(N),V=n("c641"),D=n.n(V),A=n("0f5c"),L=n.n(A),B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return D()(e.fields,function(n){void 0===f()(t,n.model)&&void 0!==n.default&&(x()(n.default)?L()(t,n.model,n.default(n,e,t)):P()(n.default)||l()(n.default)?L()(t,n.model,E()(n.default)):L()(t,n.model,n.default))}),t},R=function(e){var t=[];return D()(e.fields,function(e){!0===e.multi&&t.push(e)}),t},Y=function(e,t){var n={},i=R(e);return D()(i,function(e){var i,r=!0,o=e.model;D()(t,function(e){var t=f()(e,o);r?(i=t,r=!1):i!==t&&(i=void 0)}),L()(n,o,i)}),n},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return g()(e.id)?t+(e.inputName||e.label||e.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,""):t+e.id},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_/./:]+)/g,"")},q={name:"form-element",mixins:[w],props:{model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}},eventBus:{type:Object,default:function(){return{}}}},data:function(){return{childErrors:[],childTouched:!1}},computed:{fieldID:function(){var e=f()(this.options,"fieldIdPrefix","");return H(this.field,e)},fieldType:function(){return"field-"+this.field.type},fieldTypeHasLabel:function(){if(g()(this.field.label))return!1;var e=this.getValueFromOption(this.field,"fieldOptions"),t="input"===this.field.type&&!g()(e),n=t?e.inputType:this.field.type,i=["button","submit","reset"];return!i.includes(n)},fieldHasHint:function(){return!g()(this.field.hint)},fieldHasErrors:function(){return this.childErrors.length>0},fieldRowClasses:function(){var e,t=(e={},v(e,f()(this.options,"validationErrorClass","error"),this.fieldHasErrors),v(e,f()(this.options,"validationSuccessClass","valid"),!this.fieldHasErrors&&this.childTouched),v(e,f()(this.options,"validationCleanClass","clean"),!this.fieldHasErrors&&!this.childTouched),v(e,"disabled",this.getValueFromOption(this.field,"disabled")),v(e,"readonly",this.getValueFromOption(this.field,"readonly")),v(e,"featured",this.getValueFromOption(this.field,"featured")),v(e,"required",this.getValueFromOption(this.field,"required")),e);return t=this.getStyleClasses(this.field,t),g()(this.field.type)||(t["field-"+this.field.type]=!0),t},buttonsAreVisible:function(){return l()(this.field.buttons)&&this.field.buttons.length>0}},methods:{getValueFromOption:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x()(e[t])?e[t].call(this,this.model,e,this):g()(e[t])?n:e[t]},buttonClickHandler:function(e,t,n){return e.onclick.call(this,this.model,t,n,this)},onFieldTouched:function(){this.childTouched=!0},onChildValidated:function(e){this.childErrors=e}}},z=q,G=(n("b7fb"),C(z,M,I,!1,null,null,null));G.options.__file="formElement.vue";var Z=G.exports,W={name:"form-generator",components:{formGroup:j,formElement:Z},props:{schema:{type:Object,default:function(){return{}}},model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAsync:!1,validateAfterChanged:!1,validationErrorClass:"error",validationSuccessClass:""}}},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(e){return e.length>0}}},data:function(){var e=new p.a;return{eventBus:e,totalNumberOfFields:0,errors:[]}},computed:{fields:function(){if(this.schema&&this.schema.fields)return this.schema.fields}},watch:{model:{handler:function(e,t){var n=this;t!==e&&null!=e&&this.$nextTick(function(){!0===n.options.validateAfterLoad&&!0!==n.isNewModel?n.validate().then(function(){},function(){}):n.clearValidationErrors()})},immediate:function(){return!0}}},methods:{fillErrors:function(e,t,n){l()(e)&&e.length>0&&e.forEach(function(e){t.push({uid:n,error:e})})},onFieldValidated:function(e,t,n){this.errors=this.errors.filter(function(e){return e.uid!==n}),this.fillErrors(t,this.errors,n);var i=0===this.errors.length;this.$emit("validated",i,this.errors,this)},onModelUpdated:function(e,t){this.$emit("model-updated",e,t)},validate:function(){var e=this;return new Promise(function(t,n){e.clearValidationErrors();var i=0,r=[];e.eventBus.$on("field-deregistering",function(){e.eventBus.$emit("fields-validation-terminated",r),n(r)});var o=function o(a,s,u){if(i++,e.fillErrors(s,r,u),i===e.totalNumberOfFields){e.eventBus.$off("field-validated",o),f()(e.options,"validateAfterChanged",!1)&&e.eventBus.$on("field-validated",e.onFieldValidated),e.errors=r;var l=0===r.length;e.$emit("validated",l,r,e),e.eventBus.$emit("fields-validation-terminated",r),l?t():n(r)}};f()(e.options,"validateAfterChanged",!1)&&e.eventBus.$off("field-validated",e.onFieldValidated),e.eventBus.$on("field-validated",o),e.eventBus.$emit("validate-fields",e)})},clearValidationErrors:function(){this.errors.splice(0),this.eventBus.$emit("clear-validation-errors",this.clearValidationErrors)}},created:function(){var e=this;f()(this.options,"validateAfterChanged",!1)&&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(){e.totalNumberOfFields=e.totalNumberOfFields+1}),this.eventBus.$on("field-deregistering",function(){e.totalNumberOfFields=e.totalNumberOfFields-1})},beforeDestroy:function(){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")}},X=W,J=(n("bfd2"),C(X,a,s,!1,null,null,null));J.options.__file="formGenerator.vue";var K=J.exports,Q=(n("cadf"),n("456d"),n("3b2b"),n("697e")),ee=n.n(Q),te=n("501e"),ne=n.n(te),ie=n("95ae"),re=n.n(ie),oe=n("9e99"),ae=n.n(oe),se={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 ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se;return g()(e)||""===e?t?[le(n.fieldIsRequired)]:[]:null}function le(e){if(null!=e&&arguments.length>1)for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:se;return ue(e,t.required,i)},number:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=[];return ne()(e)?(!g()(t.fieldOptions)&&!g()(t.fieldOptions.min)&&et.fieldOptions.max&&o.push(le(i.numberTooBig,t.fieldOptions.max))):o.push(le(i.invalidNumber)),o},integer:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=ce.number(e,t,n,i);return ee()(e)||o.push(le(i.invalidInteger)),o},double:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);return null!=r?r:!ne()(e)||isNaN(e)?[le(i.invalidNumber)]:void 0},string:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=[];return _()(e)?(!g()(t.fieldOptions.min)&&e.lengtht.fieldOptions.max&&o.push(le(i.textTooBig,e.length,t.fieldOptions.max))):o.push(le(i.thisNotText)),o},array:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se;if(t.required){if(!l()(e))return[le(i.thisNotArray)];if(0===e.length)return[le(i.fieldIsRequired)]}if(!g()(e)){if(!g()(t.fieldOptions.min)&&e.lengtht.fieldOptions.max)return[le(i.selectMaxItems,t.fieldOptions.max)]}},date:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=new Date(e);if(!o)return[le(i.invalidDate)];var a=[];if(!g()(t.fieldOptions.min)){var s=new Date(t.fieldOptions.min);o.valueOf()u.valueOf()&&a.push(le(i.dateIsLate,ae.a.format(o),ae.a.format(u)))}return a},regexp:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;if(!g()(t.pattern)){var o=new RegExp(t.pattern);if(!o.test(e))return[le(i.invalidFormat)]}},email:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^(([^<>()\[\]\\.,;:\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,}))$/;return o.test(e)?void 0:[le(i.invalidEmail)]},url:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;return o.test(e)?void 0:[le(i.invalidURL)]},creditCard:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^(?: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})$/,a=e.replace(/[^0-9]+/g,"");if(!o.test(a))return[le(i.invalidCard)];for(var s,u,l,c=0,f=a.length-1;f>=0;f--)s=a.substring(f,f+1),u=parseInt(s,10),l?(u*=2,c+=u>=10?u%10+1:u):c+=u,l=!l;return c%10===0&&a?void 0:[le(i.invalidCardNumber)]},alpha:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^[a-zA-Z]*$/;return o.test(e)?void 0:[le(i.invalidTextContainNumber)]},alphaNumeric:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^[a-zA-Z0-9]*$/;return o.test(e)?void 0:[le(i.invalidTextContainSpec)]}};Object.keys(ce).forEach(function(e){var t=ce[e];x()(t)&&(t.locale=function(e){return function(n,i,r){return t(n,i,r,re()(e,se))}})});var fe=ce,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"checkbox",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,name:e.inputName},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=r}}})},pe=[],he=(n("28a5"),n("98dc")),me=n.n(he),ve=n("b047"),be=n.n(ve),ge=n("6cd4"),ye=n.n(ge),xe=function(e){return _()(e)?null!=fe[e]?fe[e]:(console.warn("'".concat(e,"' is not a validator function!")),null):e};function Oe(e,t,n){var i=f()(n.context,"schema.attributes",{}),r=t.value||"input";_()(r)&&(i=f()(i,r)||i),ye()(i,function(t,n){e.setAttribute(n,t)})}var _e={props:{model:{type:Object},schema:{type:Object},formOptions:{type:Object},eventBus:{type:Object},fieldID:{type:String}},data:function(){var e=me()(this.fieldID+"_");return{fieldUID:e,touched:!1,errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:Oe,updated:Oe,componentUpdated:Oe}},computed:{value:{cache:!1,get:function(){var e;return e=x()(f()(this.schema,"get"))?this.schema.get(this.model):f()(this.model,this.schema.model),this.formatValueToField(e)},set:function(e){this.touch();var t=this.value;e=this.formatValueToModel(e),x()(e)?e(e,t):this.updateModelValue(e,t)}},disabled:function(){return this.getValueFromOption(this.schema,"disabled")},fieldClasses:function(){return this.getValueFromOption(this.schema,"fieldClasses",[])},fieldOptions:function(){return this.getValueFromOption(this.schema,"fieldOptions",{})},inputName:function(){return this.getValueFromOption(this.schema,"inputName","")},placeholder:function(){return this.getValueFromOption(this.schema,"placeholder","")},readonly:function(){return this.getValueFromOption(this.schema,"readonly")},required:function(){return this.getValueFromOption(this.schema,"required")},values:function(){return this.getValueFromOption(this.schema,"values",[])}},watch:{errors:{handler:function(e){this.$emit("errors-updated",e)}}},methods:{getValueFromOption:function(e,t,n){return x()(this.$parent.getValueFromOption)?this.$parent.getValueFromOption(e,t,n):g()(e[t])?n:e[t]},validate:function(){var e=this;this.touch(),this.clearValidationErrors();var t=f()(this.formOptions,"validateAsync",!1),n=[];if(this.schema.validator&&!0!==this.readonly&&!0!==this.schema.readonly&&!0!==this.disabled){var i=[];l()(this.schema.validator)?this.schema.validator.forEach(function(t){i.push(xe(t).bind(e))}):i.push(xe(this.schema.validator).bind(this)),i.forEach(function(i){if(t)n.push(i(e.value,e.schema,e.model));else{var r=i(e.value,e.schema,e.model);r&&x()(r.then)?r.then(function(t){t&&(e.errors=e.errors.concat(t))}):r&&(n=n.concat(r))}})}var r=function(t){var n=[];t.forEach(function(e){l()(e)&&e.length>0?n=n.concat(e):_()(e)&&n.push(e)}),x()(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,n,e.schema);var i=0===n.length;return e.errors=n,e.eventBus.$emit("field-validated",i,n,e.fieldUID),n};return t?Promise.all(n).then(r).catch(function(e){console.warn("Problem during field validation",e)}):r(n)},debouncedValidate:function(){x()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=be()(this.validate.bind(this),f()(this.formOptions,"validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(e,t){var n=!1;x()(this.schema.set)?(this.schema.set(this.model,e),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,e),n=!0),n&&(this.eventBus.$emit("model-updated",e,this.schema.model),x()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,e,t,this.schema),f()(this.formOptions,"validateAfterChanged",!1)&&(f()(this.formOptions,"validateDebounceTime",500)>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(e,t){var n=e.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");var i=this.model,r=n.split("."),o=0,a=r.length;while(o0&&console.log("diff",i,this.schema.type,this.schema.model)}},beforeDestroy:function(){this.eventBus.$off("clear-validation-errors"),this.eventBus.$off("validate-fields"),this.eventBus.$emit("field-deregistering",this)}},we={name:"field-checkbox",mixins:[_e]},Se=we,ke=(n("c495"),C(Se,de,pe,!1,null,null,null));ke.options.__file="fieldCheckbox.vue";var Ce=ke.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[e.useListBox?n("div",{staticClass:"listbox form-control",attrs:{disabled:e.disabled}},e._l(e.items,function(t){return n("div",{key:e.getItemValue(t),staticClass:"list-row",class:{"is-checked":e.isItemChecked(t)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:e.fieldID,type:"checkbox",disabled:e.disabled,name:e.getInputName(t)},domProps:{checked:e.isItemChecked(t)},on:{change:function(n){e.onChanged(n,t)}}}),e._v(e._s(e.getItemName(t))+"\n\t\t\t")])])})):e._e(),e.useListBox?e._e():n("div",{staticClass:"combobox form-control",attrs:{disabled:e.disabled}},[n("div",{staticClass:"mainRow",class:{expanded:e.comboExpanded},on:{click:e.onExpandCombo}},[n("div",{staticClass:"info"},[e._v(" "+e._s(e.selectedCount)+" selected")]),n("div",{staticClass:"arrow"})]),n("div",{staticClass:"dropList"},e._l(e.items,function(t){return e.comboExpanded?n("div",{key:e.getItemValue(t),staticClass:"list-row",class:{"is-checked":e.isItemChecked(t)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:e.fieldID,type:"checkbox",disabled:e.disabled,name:e.getInputName(t)},domProps:{checked:e.isItemChecked(t)},on:{change:function(n){e.onChanged(n,t)}}}),e._v("\n\t\t\t\t\t"+e._s(e.getItemName(t))+"\n\t\t\t\t")])]):e._e()}))])])},je=[],Me=n("b8ce"),Ie=n.n(Me),$e={name:"field-checklist",mixins:[_e],data:function(){return{comboExpanded:!1}},computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},selectedCount:function(){return this.value?this.value.length:0},useListBox:function(){return this.fieldOptions.listBox}},methods:{getInputName:function(e){return this.inputName&&this.inputName.length>0?U(this.inputName+"_"+this.getItemValue(e)):U(this.getItemValue(e))},getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["value"])return e.value;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e},isItemChecked:function(e){return this.value&&-1!==this.value.indexOf(this.getItemValue(e))},onChanged:function(e,t){var n=e.target.checked;if(!g()(this.value)&&Array.isArray(this.value)||(this.value=[]),n){var i=Ie()(this.value);i.push(this.getItemValue(t)),this.value=i}else{var r=Ie()(this.value);r.splice(this.value.indexOf(this.getItemValue(t)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}},Fe=$e,Ee=(n("3f6b"),C(Fe,Te,je,!1,null,null,null));Ee.options.__file="fieldChecklist.vue";var Ne=Ee.exports,Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{id:e.fieldID,type:e.inputType,disabled:e.disabled,accept:e.fieldOptions.accept,alt:e.fieldOptions.alt,autocomplete:e.fieldOptions.autocomplete,dirname:e.fieldOptions.dirname,formaction:e.fieldOptions.formaction,formenctype:e.fieldOptions.formenctype,formmethod:e.fieldOptions.formmethod,formnovalidate:e.fieldOptions.formnovalidate,formtarget:e.fieldOptions.formtarget,height:e.fieldOptions.height,list:e.fieldOptions.list,max:e.fieldOptions.max,maxlength:e.fieldOptions.maxlength,min:e.fieldOptions.min,minlength:e.fieldOptions.minlength,multiple:e.fieldOptions.multiple,name:e.inputName,pattern:e.fieldOptions.pattern,placeholder:e.placeholder,readonly:e.readonly,required:e.schema.required,size:e.fieldOptions.size,src:e.fieldOptions.src,step:e.fieldOptions.step,width:e.fieldOptions.width,files:e.fieldOptions.files},domProps:{value:e.value,checked:e.fieldOptions.checked},on:{input:e.onInput,blur:e.onBlur,change:function(t){e.schema.onChange}}}),"color"===e.inputType||"range"===e.inputType?n("span",{staticClass:"helper",domProps:{textContent:e._s(e.value)}}):e._e()])},Ve=[],De={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"},Ae={name:"field-input",mixins:[_e],computed:{inputType:function(){if("undefined"!==typeof this.fieldOptions.inputType)return this.fieldOptions.inputType.toLowerCase();console.warn("Missing inputType",this.fieldOptions,this.fieldOptions.inputType)}},methods:{formatValueToModel:function(e){var t=this;if(null!=e)switch(this.inputType){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,i){t.debouncedFormatFunc(e,i)}}return e},formatDatetimeToModel:function(e,t){var n=De[this.inputType],i=ae.a.parse(e,n);!1!==i&&(e=this.schema.format?ae.a.format(i,this.schema.format):i.valueOf()),this.updateModelValue(e,t)},formatNumberToModel:function(e,t){ne()(e)||(e=NaN),this.updateModelValue(e,t)},onInput:function(e){var t=e.target.value;switch(this.inputType){case"number":case"range":ne()(parseFloat(e.target.value))&&(t=parseFloat(e.target.value));break}this.value=t},onBlur:function(){x()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var e=this;switch(this.inputType){case"number":case"range":this.debouncedFormatFunc=be()(function(t,n){e.formatNumberToModel(t,n)},parseInt(f()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=be()(function(t,n){e.formatDatetimeToModel(t,n)},parseInt(f()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break}},created:function(){"file"===this.inputType&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}},Le=Ae,Be=(n("8a23"),C(Le,Pe,Ve,!1,null,null,null));Be.options.__file="fieldInput.vue";var Re=Be.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],class:e.fieldClasses,attrs:{id:e.fieldID},domProps:{textContent:e._s(e.value)}})},He=[],Ue={name:"field-label",mixins:[_e]},qe=Ue,ze=(n("b72b"),C(qe,Ye,He,!1,null,null,null));ze.options.__file="fieldLabel.vue";var Ge=ze.exports,Ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"radio-list",attrs:{disabled:e.disabled}},e._l(e.items,function(t){return n("label",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],key:e.getItemValue(t),class:{"is-checked":e.isItemChecked(t)}},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"radio",disabled:e.disabled,name:e.id},domProps:{value:e.getItemValue(t),checked:e.isItemChecked(t)},on:{click:function(n){e.onSelection(t)}}}),e._v(e._s(e.getItemName(t))+"\n\t")])}))},We=[],Xe={name:"field-radios",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},id:function(){return this.schema.model}},methods:{getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["value"])return e.value;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e},onSelection:function(e){this.value=this.getItemValue(e)},isItemChecked:function(e){var t=this.getItemValue(e);return t===this.value}}},Je=Xe,Ke=(n("602f"),C(Je,Ze,We,!1,null,null,null));Ke.options.__file="fieldRadios.vue";var Qe=Ke.exports,et=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{disabled:e.disabled,name:e.inputName,id:e.fieldID},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},[e.fieldOptions.hideNoneSelectedText?e._e():n("option",{attrs:{disabled:e.schema.required},domProps:{value:null}},[e._v(" "+e._s(e.fieldOptions.noneSelectedText||"")+"\n\t")]),e._l(e.items,function(t){return[t.group?n("optgroup",{key:e.getItemValue(t),attrs:{label:e.getGroupName(t)}},e._l(t.ops,function(i){return t.ops?n("option",{key:e.getItemValue(i),domProps:{value:e.getItemValue(i)}},[e._v(" "+e._s(e.getItemName(i)))]):e._e()})):e._e(),t.group?e._e():n("option",{key:e.getItemValue(t),domProps:{value:e.getItemValue(t)}},[e._v(" "+e._s(e.getItemName(t)))])]})],2)},tt=[],nt=n("2769"),it=n.n(nt),rt={name:"field-select",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?this.groupValues(e.apply(this,[this.model,this.schema])):this.groupValues(e)}},methods:{formatValueToField:function(e){return g()(e)?null:e},groupValues:function(e){var t=[],n={};return e.forEach(function(e){n=null,e.group&&P()(e)?(n=it()(t,function(t){return t.group===e.group}),n?n.ops.push({id:e.id,name:e.name}):(n={group:"",ops:[]},n.group=e.group,n.ops.push({id:e.id,name:e.name}),t.push(n))):t.push(e)}),t},getGroupName:function(e){if(e&&e.group)return e.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["id"])return e.id;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e}}},ot=rt,at=C(ot,et,tt,!1,null,null,null);at.options.__file="fieldSelect.vue";var st=at.exports,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"submit",name:e.inputName,disabled:e.disabled},domProps:{value:e.fieldOptions.buttonText},on:{click:e.onClick}})},lt=[],ct=n("13ea"),ft=n.n(ct),dt={name:"field-submit",mixins:[_e],methods:{onClick:function(e){var t=this;!0===this.fieldOptions.validateBeforeSubmit?(e.preventDefault(),this.eventBus.$emit("fields-validation-trigger"),this.eventBus.$on("fields-validation-terminated",function(n){!ft()(n)&&x()(t.fieldOptions.onValidationError)?t.fieldOptions.onValidationError(t.model,t.schema,n,e):x()(t.fieldOptions.onSubmit)&&t.fieldOptions.onSubmit(t.model,t.schema,e)})):x()(this.fieldOptions.onSubmit)&&this.fieldOptions.onSubmit(this.model,this.schema,e)}}},pt=dt,ht=(n("eb5d"),C(pt,ut,lt,!1,null,null,null));ht.options.__file="fieldSubmit.vue";var mt=ht.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{id:e.fieldID,disabled:e.disabled,maxlength:e.fieldOptions.max,minlength:e.fieldOptions.min,placeholder:e.placeholder,readonly:e.readonly,rows:e.fieldOptions.rows||2,name:e.inputName},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},bt=[],gt={name:"field-textArea",mixins:[_e]},yt=gt,xt=C(yt,vt,bt,!1,null,null,null);xt.options.__file="fieldTextArea.vue";var Ot=xt.exports,_t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",attrs:{id:e.fieldID,type:"file",name:e.inputName,accept:e.fieldOptions.accept,multiple:e.fieldOptions.multiple,placeholder:e.placeholder,readonly:e.readonly,required:e.schema.required,disabled:e.disabled},on:{change:e.onChange}})])},wt=[],St={name:"field-upload",mixins:[_e],methods:{onChange:function(e){x()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,e,this)}}},kt=St,Ct=(n("b018"),C(kt,_t,wt,!1,null,null,null));Ct.options.__file="fieldUpload.vue";var Tt=Ct.exports,jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value}})},Mt=[],It={name:"field-cleave",mixins:[_e],data:function(){return{cleave:null}},mounted:function(){this.$nextTick(function(){var e=this;window.Cleave?(this.cleave=new window.Cleave(this.$el,re()(this.fieldOptions,{creditCard:!1,phone:!1,phoneRegionCode:"AU",date:!1,datePattern:["d","m","Y"],numeral:!1,numeralThousandsGroupStyle:"thousand",numeralDecimalScale:2,numeralDecimalMark:".",blocks:[],delimiter:" ",prefix:null,numericOnly:!1,uppercase:!1,lowercase:!1,maxLength:0})),this.cleave.properties&&this.cleave.properties.hasOwnProperty("result")?this.$watch("cleave.properties.result",function(){e.value=e.cleave.properties.result}):this.$el.addEventListener("input",this.inputChange)):console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!")})},methods:{inputChange:function(){this.value=this.$el.value}},beforeDestroy:function(){this.cleave&&(this.cleave.destroy(),this.$el.removeEventListener("input",this.inputChange))}},$t=It,Ft=C($t,jt,Mt,!1,null,null,null);Ft.options.__file="fieldCleave.vue";var Et=Ft.exports,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"input-group date"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),e._m(0)])},Pt=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"input-group-addon"},[n("span",{staticClass:"glyphicon glyphicon-calendar"})])}];function Vt(e){for(var t=1;t":this.value},set:function(e){e&&0===e.indexOf("http")&&(this.value=e)}}},watch:{model:function(){var e=this.$el.querySelector("input.file");e&&(e.value="")}},methods:{remove:function(){this.value=""},fileChanged:function(e){var t=this,n=new FileReader;n.onload=function(e){t.value=e.target.result},e.target.files&&e.target.files.length>0&&n.readAsDataURL(e.target.files[0])}}},Kt=Jt,Qt=(n("2d36"),C(Kt,Wt,Xt,!1,null,null,null));Qt.options.__file="fieldImage.vue";var en=Qt.exports,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},nn=[],rn={name:"field-masked",mixins:[_e],mounted:function(){this.$nextTick(function(){window.$&&window.$.fn.mask?$(this.$el).unmask().mask(this.fieldOptions.mask,this.fieldOptions.maskOptions):console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!")})},beforeDestroy:function(){window.$&&window.$.fn.mask&&$(this.$el).unmask()}},on=rn,an=C(on,tn,nn,!1,null,null,null);an.options.__file="fieldMasked.vue";var sn=an.exports,un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"slider",class:{"contain-pips":e.containPips,"contain-tooltip":e.containTooltip},attrs:{disabled:e.disabled}})},ln=[],cn=(n("c5f6"),{name:"field-noUiSlider",mixins:[_e],data:function(){return{slider:null}},watch:{model:function(){window.noUiSlider&&this.slider&&this.slider.noUiSlider&&this.slider.noUiSlider.set(this.value)}},computed:{containPips:function(){return"undefined"!==typeof this.fieldOptions.pips},containTooltip:function(){return"undefined"!==typeof this.fieldOptions.tooltips}},methods:{onChange:function(e){l()(e)?this.value=[parseFloat(e[0]),parseFloat(e[1])]:this.value=parseFloat(e)},formatValueToField:function(e){null!==this.slider&&"undefined"!==typeof this.slider.noUiSlider&&this.slider.noUiSlider.set(e)},formatValueToModel:function(e){if("undefined"!==typeof this.slider.noUiSlider)return e instanceof Array?[Number(e[0]),Number(e[1])]:Number(e)},getStartValue:function(){return null!=this.value?this.value:"undefined"!==typeof this.fieldOptions.double?[this.fieldOptions.min,this.fieldOptions.min]:this.fieldOptions.min}},mounted:function(){var e=this;this.$nextTick(function(){window.noUiSlider?(e.slider=e.$el,window.noUiSlider.create(e.slider,re()(e.fieldOptions||{},{start:e.getStartValue(),range:{min:e.fieldOptions.min,max:e.fieldOptions.max}})),e.slider.noUiSlider.on("change",e.onChange.bind(e))):console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.noUiSlider.off("change")}}),fn=cn,dn=(n("bf23"),C(fn,un,ln,!1,null,null,null));dn.options.__file="fieldNoUiSlider.vue";var pn=dn.exports,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},mn=[],vn={name:"field-pikaday",mixins:[_e],data:function(){return{picker:null}},methods:Vt({},At),mounted:function(){var e=this;this.$nextTick(function(){window.Pikaday?e.picker=new window.Pikaday(re()(e.fieldOptions,{field:e.$el,onSelect:function(){e.value=e.picker.toString()}})):console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.picker&&this.picker.destroy()}},bn=vn,gn=C(bn,hn,mn,!1,null,null,null);gn.options.__file="fieldPikaday.vue";var yn=gn.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,"data-disable":e.disabled,"data-max":e.fieldOptions.max,"data-min":e.fieldOptions.min,"data-step":e.fieldOptions.step,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName}})},On=[];function _n(e){if(Array.isArray(e))return e}function wn(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(e){r=!0,o=e}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function Sn(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function kn(e,t){return _n(e)||wn(e,t)||Sn()}var Cn={name:"field-rangeSlider",mixins:[_e],data:function(){return{slider:null}},watch:{model:function(){if(window.$&&window.$.fn.ionRangeSlider){var e,t;if(l()(this.value)){var n=kn(this.value,2);e=n[0],t=n[1]}else e=this.value;this.slider&&this.slider.update({from:e,to:t})}}},mounted:function(){this.$nextTick(function(){if(window.$&&window.$.fn.ionRangeSlider){var e,t;if(l()(this.value)){var n=kn(this.value,2);e=n[0],t=n[1]}else e=this.value;var i=this;$(this.$el).ionRangeSlider(re()(this.fieldOptions,{type:"single",grid:!0,hide_min_max:!0,from:e,to:t,onChange:function(e){"double"===i.slider.options.type?i.value=[e.from,e.to]:i.value=e.from}})),this.slider=$(this.$el).data("ionRangeSlider")}else console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.destroy()}},Tn=Cn,jn=(n("d474"),C(Tn,xn,On,!1,null,null,null));jn.options.__file="fieldRangeSlider.vue";var Mn=jn.exports,In=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"selectpicker",attrs:{disabled:e.disabled,multiple:e.fieldOptions.multiSelect,title:e.placeholder,"data-width":"100%",name:e.inputName},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},[!0!==e.fieldOptions.multiSelect?n("option",{attrs:{disabled:e.schema.required},domProps:{value:null,selected:void 0==e.value}}):e._e(),e._l(e.items,function(t){return n("option",{key:e.getItemValue(t),domProps:{value:e.getItemValue(t)}},[e._v(" "+e._s(e.getItemName(t)))])})],2)},$n=[],Fn={name:"field-selectex",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e}},methods:{getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["id"])return e.id;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e}},watch:{model:function(){"undefined"!==typeof $.fn&&$.fn.selectpicker&&$(this.$el).selectpicker("refresh")}},mounted:function(){var e=this;this.$nextTick(function(){"undefined"!==typeof $.fn&&$.fn.selectpicker?$(e.$el).selectpicker("destroy").selectpicker(e.fieldOptions):console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){$.fn.selectpicker&&$(this.$el).selectpicker("destroy")}},En=Fn,Nn=(n("1958"),C(En,In,$n,!1,null,null,null));Nn.options.__file="fieldSelectEx.vue";var Pn=Nn.exports,Vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID}})},Dn=[],An={name:"field-spectrum",mixins:[_e],data:function(){return{picker:null}},watch:{model:function(){window.$&&window.$.fn.spectrum&&this.picker.spectrum("set",this.value)},disabled:function(e){e?this.picker.spectrum("disable"):this.picker.spectrum("enable")}},mounted:function(){this.$nextTick(function(){var e=this;window.$&&window.$.fn.spectrum?(this.picker=$(this.$el).spectrum("destroy").spectrum(re()(this.fieldOptions,{showInput:!0,showAlpha:!0,disabled:this.schema.disabled,allowEmpty:!this.schema.required,preferredFormat:"hex",change:function(t){e.value=t?t.toString():null}})),this.picker.spectrum("set",this.value)):console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.picker&&this.picker.spectrum("destroy")}},Ln=An,Bn=C(Ln,Vn,Dn,!1,null,null,null);Bn.options.__file="fieldSpectrum.vue";var Rn=Bn.exports,Yn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{attrs:{src:e.mapLink}})},Hn=[],Un={name:"field-staticmap",mixins:[_e],computed:{mapLink:function(){if(this.value){var e,t,n=re()(this.fieldOptions,{lat:"lat",lng:"lng",zoom:8,sizeX:640,sizeY:640});e=this.value[n.lat],t=this.value[n.lng];for(var i="http://maps.googleapis.com/maps/api/staticmap?center=".concat(e,",").concat(t,"&zoom=").concat(n.zoom,"&size=").concat(n.sizeX,"x").concat(n.sizeY),r=["scale","format","maptype","language","region","markers","path","visible","style","key","signature"],o=0;o-1:e.value},on:{change:function(t){var n=e.value,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=r}}}),n("span",{staticClass:"label",attrs:{"data-on":e.fieldOptions.textOn||"On","data-off":e.fieldOptions.textOff||"Off",for:e.fieldID}}),n("span",{staticClass:"handle"})])},Wn=[],Xn={name:"field-switch",mixins:[_e],methods:{formatValueToField:function(e){return null!=e&&this.fieldOptions.valueOn?e===this.fieldOptions.valueOn:e},formatValueToModel:function(e){return null!=e&&this.fieldOptions.valueOn?e?this.fieldOptions.valueOn:this.fieldOptions.valueOff:e}}},Jn=Xn,Kn=(n("e0bf"),C(Jn,Zn,Wn,!1,null,null,null));Kn.options.__file="fieldSwitch.vue";var Qn=Kn.exports,ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("multiselect",{attrs:{id:e.fieldOptions.id,options:e.options,value:e.value,multiple:e.fieldOptions.multiple,"track-by":e.fieldOptions.trackBy||null,label:e.fieldOptions.label||null,searchable:e.fieldOptions.searchable,"clear-on-select":e.fieldOptions.clearOnSelect,"hide-selected":e.fieldOptions.hideSelected,placeholder:e.placeholder,"allow-empty":e.fieldOptions.allowEmpty,"reset-after":e.fieldOptions.resetAfter,"close-on-select":e.fieldOptions.closeOnSelect,"custom-label":e.customLabel,taggable:e.fieldOptions.taggable,"tag-placeholder":e.fieldOptions.tagPlaceholder,max:e.fieldOptions.max||null,"options-limit":e.fieldOptions.optionsLimit,"group-values":e.fieldOptions.groupValues,"group-label":e.fieldOptions.groupLabel,"block-keys":e.fieldOptions.blockKeys,"internal-search":e.fieldOptions.internalSearch,"select-label":e.fieldOptions.selectLabel,"selected-label":e.fieldOptions.selectedLabel,"deselect-label":e.fieldOptions.deselectLabel,"show-labels":e.fieldOptions.showLabels,limit:e.fieldOptions.limit,"limit-text":e.fieldOptions.limitText,loading:e.fieldOptions.loading,disabled:e.disabled,"max-height":e.fieldOptions.maxHeight,"show-pointer":e.fieldOptions.showPointer,"option-height":e.fieldOptions.optionHeight},on:{input:e.updateSelected,select:e.onSelect,remove:e.onRemove,"search-change":e.onSearchChange,tag:e.addTag,open:e.onOpen,close:e.onClose}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[e._v("\n\t\t"+e._s(e.fieldOptions.noResult)+"\n\t")])])},ti=[],ni={name:"field-vueMultiSelect",mixins:[_e],computed:{options:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},customLabel:function(){return"undefined"!==typeof this.fieldOptions.customLabel&&"function"===typeof this.fieldOptions.customLabel?this.fieldOptions.customLabel:void 0}},methods:{updateSelected:function(e){this.value=e},addTag:function(e,t){var n=this.fieldOptions.onNewTag;"function"==typeof n&&n(e,t,this.options,this.value)},onSearchChange:function(e,t){var n=this.fieldOptions.onSearch;"function"==typeof n&&n(e,t,this.options)},onSelect:function(){},onRemove:function(){},onOpen:function(){},onClose:function(){}},created:function(){this.$root.$options.components["multiselect"]||console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!")}},ii=ni,ri=C(ii,ei,ti,!1,null,null,null);ri.options.__file="fieldVueMultiSelect.vue";var oi=ri.exports,ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.fields&&t.fields.forEach(function(t){"undefined"!==typeof t.name&&e.component(t.name,t)}),e.component("VueFormGenerator",K)},si={component:K,schema:i,validators:fe,abstractField:_e,fieldsLoader:o,install:ai};t["default"]=si},fba5:function(e,t,n){var i=n("cb5a");function r(e){return i(this.__data__,e)>-1}e.exports=r},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ffd6:function(e,t){function n(){return!1}e.exports=n}})}); \ No newline at end of file diff --git a/dist/vfg.common.js b/dist/vfg.common.js index 278484d3..7b1c9649 100644 --- a/dist/vfg.common.js +++ b/dist/vfg.common.js @@ -1,6 +1,6 @@ /** - * vue-form-generator 3.0.0-beta.5 + * vue-form-generator 3.0.0-beta.7 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ @@ -94,6 +94,59 @@ module.exports = /************************************************************************/ /******/ ({ +/***/ "00fd": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("9e69"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} + +module.exports = getRawTag; + + +/***/ }), + /***/ "01f9": /***/ (function(module, exports, __webpack_require__) { @@ -174,12 +227,36 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var isPrototype = __webpack_require__("eac5"), + nativeKeys = __webpack_require__("57a5"); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +/** Used for built-in method references. */ +var objectProto = Object.prototype; -module.exports = nativeKeys; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; /***/ }), @@ -220,22 +297,100 @@ module.exports = cloneDeep; /***/ }), -/***/ "0b07": +/***/ "07c7": /***/ (function(module, exports) { /** - * Gets the value at `key` of `object`. + * 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; + + +/***/ }), + +/***/ "087d": +/***/ (function(module, exports) { + +/** + * Appends the elements of `values` to `array`. * * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. */ -function getValue(object, key) { - return object == null ? undefined : object[key]; +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; } -module.exports = getValue; +module.exports = arrayPush; + + +/***/ }), + +/***/ "08cc": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"); + +/** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ +function isStrictComparable(value) { + return value === value && !isObject(value); +} + +module.exports = isStrictComparable; + + +/***/ }), + +/***/ "0b07": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsNative = __webpack_require__("34ac"), + getValue = __webpack_require__("3698"); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; /***/ }), @@ -262,27 +417,48 @@ module.exports = function () { /***/ }), /***/ "0d24": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), + stubFalse = __webpack_require__("07c7"); + +/** 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; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** - * This method returns `false`. + * Checks if `value` is a buffer. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false */ -function stubFalse() { - return false; -} +var isBuffer = nativeIsBuffer || stubFalse; -module.exports = stubFalse; +module.exports = isBuffer; +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), @@ -434,6 +610,49 @@ exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescript }; +/***/ }), + +/***/ "1290": +/***/ (function(module, exports) { + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +module.exports = isKeyable; + + +/***/ }), + +/***/ "1304": +/***/ (function(module, exports, __webpack_require__) { + +var identity = __webpack_require__("cd9d"); + +/** + * Casts `value` to `identity` if it's not a function. + * + * @private + * @param {*} value The value to inspect. + * @returns {Function} Returns cast function. + */ +function castFunction(value) { + return typeof value == 'function' ? value : identity; +} + +module.exports = castFunction; + + /***/ }), /***/ "1310": @@ -470,6 +689,33 @@ function isObjectLike(value) { module.exports = isObjectLike; +/***/ }), + +/***/ "1368": +/***/ (function(module, exports, __webpack_require__) { + +var coreJsData = __webpack_require__("da03"); + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +module.exports = isMasked; + + /***/ }), /***/ "13ea": @@ -635,6 +881,46 @@ function baseSet(object, path, value, customizer) { module.exports = baseSet; +/***/ }), + +/***/ "1838": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsEqual = __webpack_require__("c05f"), + get = __webpack_require__("9b02"), + hasIn = __webpack_require__("8604"), + isKey = __webpack_require__("f608"), + isStrictComparable = __webpack_require__("08cc"), + matchesStrictComparable = __webpack_require__("20ec"), + toKey = __webpack_require__("f4d6"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return (objValue === undefined && objValue === srcValue) + ? hasIn(object, path) + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); + }; +} + +module.exports = baseMatchesProperty; + + /***/ }), /***/ "1958": @@ -737,6 +1023,31 @@ module.exports = { }; +/***/ }), + +/***/ "1a2d": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("42a2"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]'; + +/** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ +function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; +} + +module.exports = baseIsMap; + + /***/ }), /***/ "1a8c": @@ -778,37 +1089,191 @@ module.exports = isObject; /***/ }), /***/ "1bac": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseGetAllKeys = __webpack_require__("7d1f"), + getSymbolsIn = __webpack_require__("a029"), + keysIn = __webpack_require__("9934"); /** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. * * @private * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. + * @returns {Array} Returns the array of property names and symbols. */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); } -module.exports = nativeKeysIn; +module.exports = getAllKeysIn; /***/ }), -/***/ "1fa8": +/***/ "1c3c": /***/ (function(module, exports, __webpack_require__) { -// call something on iterator step with safe closing on error -var anObject = __webpack_require__("cb7c"); +var Symbol = __webpack_require__("9e69"), + Uint8Array = __webpack_require__("2474"), + eq = __webpack_require__("9638"), + equalArrays = __webpack_require__("a2be"), + mapToArray = __webpack_require__("edfa"), + setToArray = __webpack_require__("ac41"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; +} + +module.exports = equalByTag; + + +/***/ }), + +/***/ "1cec": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); + +module.exports = Promise; + + +/***/ }), + +/***/ "1efc": +/***/ (function(module, exports) { + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} + +module.exports = hashDelete; + + +/***/ }), + +/***/ "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); @@ -821,6 +1286,62 @@ module.exports = function (iterator, fn, value, entries) { }; +/***/ }), + +/***/ "1fc8": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} + +module.exports = mapCacheSet; + + +/***/ }), + +/***/ "20ec": +/***/ (function(module, exports) { + +/** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; +} + +module.exports = matchesStrictComparable; + + /***/ }), /***/ "2149": @@ -955,6 +1476,120 @@ module.exports = function (it) { }; +/***/ }), + +/***/ "242e": +/***/ (function(module, exports, __webpack_require__) { + +var baseFor = __webpack_require__("72af"), + keys = __webpack_require__("ec69"); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + +/***/ }), + +/***/ "2474": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("2b3e"); + +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; + +module.exports = Uint8Array; + + +/***/ }), + +/***/ "2478": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +module.exports = mapCacheGet; + + +/***/ }), + +/***/ "2524": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +module.exports = hashSet; + + +/***/ }), + +/***/ "253c": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; + + /***/ }), /***/ "260c": @@ -1156,6 +1791,35 @@ function listCacheClear() { module.exports = listCacheClear; +/***/ }), + +/***/ "29f3": +/***/ (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; + + /***/ }), /***/ "2aba": @@ -1333,6 +1997,38 @@ module.exports = false; /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); +/***/ }), + +/***/ "2d7c": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = arrayFilter; + + /***/ }), /***/ "2d95": @@ -1367,24 +2063,49 @@ module.exports = getPrototype; /***/ }), -/***/ "30c9": -/***/ (function(module, exports, __webpack_require__) { - -var isFunction = __webpack_require__("9520"), - isLength = __webpack_require__("b218"); +/***/ "2fcc": +/***/ (function(module, exports) { /** - * 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 + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; +} + +module.exports = stackDelete; + + +/***/ }), + +/***/ "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 @@ -1481,31 +2202,38 @@ module.exports = __webpack_require__("9e1e") ? function (object, key, value) { /***/ }), /***/ "32f4": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayFilter = __webpack_require__("2d7c"), + stubArray = __webpack_require__("d327"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; /** - * 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); - * // => [[], []] + * Creates an array of the own enumerable symbols of `object`. * - * console.log(arrays[0] === arrays[1]); - * // => false + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. */ -function stubArray() { - return []; -} +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; -module.exports = stubArray; +module.exports = getSymbols; /***/ }), @@ -1525,31 +2253,111 @@ module.exports = function (it) { /***/ }), -/***/ "3729": -/***/ (function(module, exports) { +/***/ "34ac": +/***/ (function(module, exports, __webpack_require__) { + +var isFunction = __webpack_require__("9520"), + isMasked = __webpack_require__("1368"), + isObject = __webpack_require__("1a8c"), + toSource = __webpack_require__("dc57"); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ -var objectProto = Object.prototype; +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. */ -var nativeObjectToString = objectProto.toString; +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +module.exports = baseIsNative; + + +/***/ }), + +/***/ "3698": +/***/ (function(module, exports) { /** - * Converts `value` to a string using `Object.prototype.toString`. + * Gets the value at `key` of `object`. * * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. */ -function objectToString(value) { - return nativeObjectToString.call(value); +function getValue(object, key) { + return object == null ? undefined : object[key]; } -module.exports = objectToString; +module.exports = getValue; + + +/***/ }), + +/***/ "3729": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("9e69"), + getRawTag = __webpack_require__("00fd"), + objectToString = __webpack_require__("29f3"); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; /***/ }), @@ -1762,6 +2570,20 @@ module.exports = Object.getPrototypeOf || function (O) { }; +/***/ }), + +/***/ "39ff": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); + +module.exports = WeakMap; + + /***/ }), /***/ "3b2b": @@ -1830,6 +2652,37 @@ var defineProperty = (function() { module.exports = defineProperty; +/***/ }), + +/***/ "3bb4": +/***/ (function(module, exports, __webpack_require__) { + +var isStrictComparable = __webpack_require__("08cc"), + keys = __webpack_require__("ec69"); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; + + /***/ }), /***/ "3f6b": @@ -1894,31 +2747,162 @@ module.exports = function (Constructor, NAME, next) { /***/ }), -/***/ "42a2": -/***/ (function(module, exports) { +/***/ "41c3": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"), + isPrototype = __webpack_require__("eac5"), + nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. */ -var nativeObjectToString = objectProto.toString; +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +module.exports = baseKeysIn; + + +/***/ }), + +/***/ "4245": +/***/ (function(module, exports, __webpack_require__) { + +var isKeyable = __webpack_require__("1290"); /** - * Converts `value` to a string using `Object.prototype.toString`. + * Gets the data for `map`. * * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. */ -function objectToString(value) { - return nativeObjectToString.call(value); +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -module.exports = objectToString; +module.exports = getMapData; + + +/***/ }), + +/***/ "4284": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} + +module.exports = arraySome; + + +/***/ }), + +/***/ "42a2": +/***/ (function(module, exports, __webpack_require__) { + +var DataView = __webpack_require__("b5a7"), + Map = __webpack_require__("79bc"), + Promise = __webpack_require__("1cec"), + Set = __webpack_require__("c869"), + WeakMap = __webpack_require__("39ff"), + baseGetTag = __webpack_require__("3729"), + toSource = __webpack_require__("dc57"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + +var dataViewTag = '[object DataView]'; + +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + +/** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +var getTag = baseGetTag; + +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || + (Map && getTag(new Map) != mapTag) || + (Promise && getTag(Promise.resolve()) != promiseTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { + getTag = function(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: return dataViewTag; + case mapCtorString: return mapTag; + case promiseCtorString: return promiseTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; + } + } + return result; + }; +} + +module.exports = getTag; /***/ }), @@ -1994,14 +2978,57 @@ module.exports = function (bitmap, value) { /***/ }), -/***/ "4a59": +/***/ "48a0": /***/ (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 baseForOwn = __webpack_require__("242e"), + createBaseEach = __webpack_require__("950a"); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), + +/***/ "49f4": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; +} + +module.exports = hashClear; + + +/***/ }), + +/***/ "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 = {}; @@ -2124,6 +3151,33 @@ function isNumber(value) { module.exports = isNumber; +/***/ }), + +/***/ "50d8": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +module.exports = baseTimes; + + /***/ }), /***/ "51f5": @@ -2530,6 +3584,27 @@ var store = global[SHARED] || (global[SHARED] = {}); }); +/***/ }), + +/***/ "55a3": +/***/ (function(module, exports) { + +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} + +module.exports = stackHas; + + /***/ }), /***/ "574e": @@ -2537,6 +3612,19 @@ var store = global[SHARED] || (global[SHARED] = {}); // extracted by mini-css-extract-plugin +/***/ }), + +/***/ "57a5": +/***/ (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; + + /***/ }), /***/ "585a": @@ -2684,6 +3772,29 @@ module.exports = function (exec, skipClosing) { }; +/***/ }), + +/***/ "5d89": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("f8af"); + +/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} + +module.exports = cloneDataView; + + /***/ }), /***/ "5dbc": @@ -2700,6 +3811,45 @@ module.exports = function (that, target, C) { }; +/***/ }), + +/***/ "5e2e": +/***/ (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; + + /***/ }), /***/ "5eda": @@ -2735,6 +3885,19 @@ module.exports = function (KEY, exec) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "6044": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"); + +/* Built-in method references that are verified to be native. */ +var nativeCreate = getNative(Object, 'create'); + +module.exports = nativeCreate; + + /***/ }), /***/ "613b": @@ -2845,6 +4008,35 @@ function toFinite(value) { module.exports = toFinite; +/***/ }), + +/***/ "642a": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMatch = __webpack_require__("966f"), + getMatchData = __webpack_require__("3bb4"), + matchesStrictComparable = __webpack_require__("20ec"); + +/** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; +} + +module.exports = baseMatches; + + /***/ }), /***/ "656b": @@ -3112,88 +4304,319 @@ if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a /***/ }), /***/ "6cd4": +/***/ (function(module, exports, __webpack_require__) { + +var arrayEach = __webpack_require__("8057"), + baseEach = __webpack_require__("48a0"), + castFunction = __webpack_require__("1304"), + isArray = __webpack_require__("6747"); + +/** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ +function forEach(collection, iteratee) { + var func = isArray(collection) ? arrayEach : baseEach; + return func(collection, castFunction(iteratee)); +} + +module.exports = forEach; + + +/***/ }), + +/***/ "6f6c": /***/ (function(module, exports) { +/** Used to match `RegExp` flags from their coerced string values. */ +var reFlags = /\w*$/; + /** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. + * Creates a clone of `regexp`. * * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. */ -function arrayEach(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length; +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; +module.exports = cloneRegExp; + + +/***/ }), + +/***/ "6fcd": +/***/ (function(module, exports, __webpack_require__) { + +var baseTimes = __webpack_require__("50d8"), + isArguments = __webpack_require__("d370"), + isArray = __webpack_require__("6747"), + isBuffer = __webpack_require__("0d24"), + isIndex = __webpack_require__("c098"), + isTypedArray = __webpack_require__("73ac"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); } } - return array; + return result; } -module.exports = arrayEach; +module.exports = arrayLikeKeys; /***/ }), -/***/ "7375": +/***/ "72af": /***/ (function(module, exports, __webpack_require__) { -// extracted by mini-css-extract-plugin +var createBaseFor = __webpack_require__("99cd"); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + /***/ }), -/***/ "73ac": +/***/ "72f0": /***/ (function(module, exports) { /** - * This method returns `false`. + * Creates a function that returns `value`. * * @static * @memberOf _ - * @since 4.13.0 + * @since 2.4.0 * @category Util - * @returns {boolean} Returns `false`. + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true */ -function stubFalse() { - return false; +function constant(value) { + return function() { + return value; + }; } -module.exports = stubFalse; +module.exports = constant; /***/ }), -/***/ "74d5": +/***/ "7375": /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), -/***/ "7530": +/***/ "73ac": /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__("1a8c"); +var baseIsTypedArray = __webpack_require__("743f"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); -/** Built-in value references. */ -var objectCreate = Object.create; +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. + * Checks if `value` is classified as a typed array. * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +module.exports = isTypedArray; + + +/***/ }), + +/***/ "743f": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isLength = __webpack_require__("b218"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + 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 of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; + + +/***/ }), + +/***/ "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() {} @@ -3318,6 +4741,20 @@ function arrayMap(array, iteratee) { module.exports = arrayMap; +/***/ }), + +/***/ "79bc": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); + +module.exports = Map; + + /***/ }), /***/ "79e5": @@ -3332,6 +4769,36 @@ module.exports = function (exec) { }; +/***/ }), + +/***/ "7a48": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); +} + +module.exports = hashHas; + + /***/ }), /***/ "7a56": @@ -3355,23 +4822,23 @@ module.exports = function (KEY) { /***/ }), -/***/ "7e64": +/***/ "7b83": /***/ (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"); +var mapCacheClear = __webpack_require__("7c64"), + mapCacheDelete = __webpack_require__("93ed"), + mapCacheGet = __webpack_require__("2478"), + mapCacheHas = __webpack_require__("a524"), + mapCacheSet = __webpack_require__("1fc8"); /** - * Creates an list cache object. + * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ -function ListCache(entries) { +function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; @@ -3382,14 +4849,219 @@ function ListCache(entries) { } } -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; -module.exports = ListCache; +module.exports = MapCache; + + +/***/ }), + +/***/ "7b97": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("7e64"), + equalArrays = __webpack_require__("a2be"), + equalByTag = __webpack_require__("1c3c"), + equalObjects = __webpack_require__("b1e5"), + getTag = __webpack_require__("42a2"), + isArray = __webpack_require__("6747"), + isBuffer = __webpack_require__("0d24"), + isTypedArray = __webpack_require__("73ac"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); +} + +module.exports = baseIsEqualDeep; + + +/***/ }), + +/***/ "7c64": +/***/ (function(module, exports, __webpack_require__) { + +var Hash = __webpack_require__("e24b"), + ListCache = __webpack_require__("5e2e"), + Map = __webpack_require__("79bc"); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +module.exports = mapCacheClear; + + +/***/ }), + +/***/ "7d1f": +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("087d"), + isArray = __webpack_require__("6747"); + +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} + +module.exports = baseGetAllKeys; + + +/***/ }), + +/***/ "7e64": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"), + stackClear = __webpack_require__("efb6"), + stackDelete = __webpack_require__("2fcc"), + stackGet = __webpack_require__("802a"), + stackHas = __webpack_require__("55a3"), + stackSet = __webpack_require__("d02c"); + +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} + +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; + +module.exports = Stack; + + +/***/ }), + +/***/ "7ed2": +/***/ (function(module, exports) { + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; /***/ }), @@ -3429,6 +5101,27 @@ NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { }); +/***/ }), + +/***/ "802a": +/***/ (function(module, exports) { + +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} + +module.exports = stackGet; + + /***/ }), /***/ "8057": @@ -3581,17 +5274,37 @@ module.exports = apply; /***/ }), -/***/ "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; +/***/ "8604": +/***/ (function(module, exports) { -exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); +/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHasIn(object, key) { + return object != null && key in Object(object); +} + +module.exports = baseHasIn; + + +/***/ }), + +/***/ "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); @@ -3767,6 +5480,70 @@ function overArg(func, transform) { module.exports = overArg; +/***/ }), + +/***/ "93ed": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} + +module.exports = mapCacheDelete; + + +/***/ }), + +/***/ "950a": +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__("30c9"); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + /***/ }), /***/ "9520": @@ -3926,6 +5703,75 @@ function eq(value, other) { module.exports = eq; +/***/ }), + +/***/ "966f": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("7e64"), + baseIsEqual = __webpack_require__("c05f"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.isMatch` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ +function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var stack = new Stack; + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === undefined + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) + : result + )) { + return false; + } + } + } + return true; +} + +module.exports = baseIsMatch; + + /***/ }), /***/ "98dc": @@ -3964,53 +5810,147 @@ module.exports = uniqueId; /***/ }), /***/ "9934": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeKeys = __webpack_require__("6fcd"), + baseKeysIn = __webpack_require__("41c3"), + isArrayLike = __webpack_require__("30c9"); /** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. + * Creates an array of the own and inherited enumerable property names of `object`. * - * @private + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } -module.exports = nativeKeysIn; +module.exports = keysIn; /***/ }), -/***/ "9aff": +/***/ "99cd": /***/ (function(module, exports) { /** - * This method returns `false`. + * Creates a base function for methods like `_.forIn` and `_.forOwn`. * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), + +/***/ "99d3": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); + +/** 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; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) + +/***/ }), + +/***/ "9aff": +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__("9638"), + isArrayLike = __webpack_require__("30c9"), + isIndex = __webpack_require__("c098"), + isObject = __webpack_require__("1a8c"); + +/** + * Checks if the given arguments are from an iteratee call. * - * _.times(2, _.stubFalse); - * // => [false, false] + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. */ -function stubFalse() { +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } return false; } -module.exports = stubFalse; +module.exports = isIterateeCall; /***/ }), @@ -4495,31 +6435,33 @@ var __WEBPACK_AMD_DEFINE_RESULT__;(function (main) { /***/ }), /***/ "a029": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("087d"), + getPrototype = __webpack_require__("2dcb"), + getSymbols = __webpack_require__("32f4"), + stubArray = __webpack_require__("d327"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; /** - * 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); - * // => [[], []] + * Creates an array of the own and inherited enumerable symbols of `object`. * - * console.log(arrays[0] === arrays[1]); - * // => false + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. */ -function stubArray() { - return []; -} +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; -module.exports = stubArray; +module.exports = getSymbolsIn; /***/ }), @@ -4535,32 +6477,199 @@ module.exports = navigator && navigator.userAgent || ''; /***/ }), -/***/ "a481": +/***/ "a2be": /***/ (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]; -}); +var SetCache = __webpack_require__("d612"), + arraySome = __webpack_require__("4284"), + cacheHas = __webpack_require__("c584"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ +function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; + + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, + result = true, + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; + + stack.set(array, other); + stack.set(other, array); + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!arraySome(other, function(othValue, othIndex) { + if (!cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!( + arrValue === othValue || + equalFunc(arrValue, othValue, bitmask, customizer, stack) + )) { + result = false; + break; + } + } + stack['delete'](array); + stack['delete'](other); + return result; +} + +module.exports = equalArrays; /***/ }), -/***/ "a5b8": +/***/ "a2db": /***/ (function(module, exports, __webpack_require__) { -"use strict"; +var Symbol = __webpack_require__("9e69"); -// 25.4.1.5 NewPromiseCapability(C) -var aFunction = __webpack_require__("d8e8"); +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} + +module.exports = cloneSymbol; + + +/***/ }), + +/***/ "a454": +/***/ (function(module, exports, __webpack_require__) { + +var constant = __webpack_require__("72f0"), + defineProperty = __webpack_require__("3b4a"), + identity = __webpack_require__("cd9d"); + +/** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); +}; + +module.exports = baseSetToString; + + +/***/ }), + +/***/ "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]; +}); + + +/***/ }), + +/***/ "a524": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +module.exports = mapCacheHas; + + +/***/ }), + +/***/ "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; @@ -4583,12 +6692,22 @@ module.exports.f = function (C) { /***/ "a994": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var baseGetAllKeys = __webpack_require__("7d1f"), + getSymbols = __webpack_require__("32f4"), + keys = __webpack_require__("ec69"); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} -module.exports = nativeKeys; +module.exports = getAllKeys; /***/ }), @@ -4643,6 +6762,31 @@ module.exports = function (it) { }; +/***/ }), + +/***/ "ac41": +/***/ (function(module, exports) { + +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +module.exports = setToArray; + + /***/ }), /***/ "ac6a": @@ -4916,6 +7060,123 @@ function debounce(func, wait, options) { module.exports = debounce; +/***/ }), + +/***/ "b047f": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +module.exports = baseUnary; + + +/***/ }), + +/***/ "b1e5": +/***/ (function(module, exports, __webpack_require__) { + +var getAllKeys = __webpack_require__("a994"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + } + // Recursively compare objects (susceptible to call stack limits). + if (!(compared === undefined + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { + result = false; + break; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + stack['delete'](object); + stack['delete'](other); + return result; +} + +module.exports = equalObjects; + + /***/ }), /***/ "b218": @@ -5057,6 +7318,20 @@ function listCacheGet(key) { module.exports = listCacheGet; +/***/ }), + +/***/ "b5a7": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); + +module.exports = DataView; + + /***/ }), /***/ "b72b": @@ -5132,29 +7407,76 @@ module.exports = clone; /***/ }), /***/ "badf": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseMatches = __webpack_require__("642a"), + baseMatchesProperty = __webpack_require__("1838"), + identity = __webpack_require__("cd9d"), + isArray = __webpack_require__("6747"), + property = __webpack_require__("f9ce"); /** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example + * The base implementation of `_.iteratee`. * - * var object = { 'a': 1 }; + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ +function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); +} + +module.exports = baseIteratee; + + +/***/ }), + +/***/ "bbc0": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the hash value for `key`. * - * console.log(_.identity(object) === object); - * // => true + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function identity(value) { - return value; +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; } -module.exports = identity; +module.exports = hashGet; /***/ }), @@ -5210,6 +7532,41 @@ module.exports = function (it) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "c05f": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsEqualDeep = __webpack_require__("7b97"), + isObjectLike = __webpack_require__("1310"); + +/** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); +} + +module.exports = baseIsEqual; + + /***/ }), /***/ "c098": @@ -5245,57 +7602,106 @@ module.exports = isIndex; /***/ }), /***/ "c1c9": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseSetToString = __webpack_require__("a454"), + shortOut = __webpack_require__("f3c1"); /** - * 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 }; + * Sets the `toString` method of `func` to return `string`. * - * console.log(_.identity(object) === object); - * // => true + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. */ -function identity(value) { - return value; -} +var setToString = shortOut(baseSetToString); -module.exports = identity; +module.exports = setToString; /***/ }), /***/ "c2b6": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/** - * 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 +var cloneArrayBuffer = __webpack_require__("f8af"), + cloneDataView = __webpack_require__("5d89"), + cloneRegExp = __webpack_require__("6f6c"), + cloneSymbol = __webpack_require__("a2db"), + cloneTypedArray = __webpack_require__("c8fe"); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +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]'; + +/** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. */ -function identity(value) { - return value; +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } } -module.exports = identity; +module.exports = initCloneByTag; /***/ }), @@ -5328,6 +7734,31 @@ module.exports = function (IS_INCLUDES) { }; +/***/ }), + +/***/ "c3fc": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("42a2"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var setTag = '[object Set]'; + +/** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ +function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; +} + +module.exports = baseIsSet; + + /***/ }), /***/ "c495": @@ -5339,6 +7770,26 @@ module.exports = function (IS_INCLUDES) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "c584": +/***/ (function(module, exports) { + +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; + + /***/ }), /***/ "c5f6": @@ -5419,30 +7870,9 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { /***/ }), /***/ "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; -} +/***/ (function(module, exports, __webpack_require__) { -module.exports = arrayEach; +module.exports = __webpack_require__("6cd4"); /***/ }), @@ -5455,6 +7885,20 @@ module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(fu }); +/***/ }), + +/***/ "c869": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); + +module.exports = Set; + + /***/ }), /***/ "c87c": @@ -5515,6 +7959,29 @@ try { module.exports = g; +/***/ }), + +/***/ "c8fe": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("f8af"); + +/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} + +module.exports = cloneTypedArray; + + /***/ }), /***/ "ca5a": @@ -5612,26 +8079,35 @@ module.exports = function (it) { /***/ }), /***/ "cc45": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMap = __webpack_require__("1a2d"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); + +/* Node.js helper references. */ +var nodeIsMap = nodeUtil && nodeUtil.isMap; /** - * This method returns `false`. + * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false */ -function stubFalse() { - return false; -} +var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; -module.exports = stubFalse; +module.exports = isMap; /***/ }), @@ -5730,6 +8206,47 @@ function baseToString(value) { module.exports = baseToString; +/***/ }), + +/***/ "d02c": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"), + Map = __webpack_require__("79bc"), + MapCache = __webpack_require__("7b83"); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; + + /***/ }), /***/ "d302": @@ -5739,27 +8256,75 @@ module.exports = baseToString; /***/ }), -/***/ "d370": +/***/ "d327": /***/ (function(module, exports) { /** - * This method returns `false`. + * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util - * @returns {boolean} Returns `false`. + * @returns {Array} Returns the new empty array. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false */ -function stubFalse() { - return false; +function stubArray() { + return []; } -module.exports = stubFalse; +module.exports = stubArray; + + +/***/ }), + +/***/ "d370": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsArguments = __webpack_require__("253c"), + isObjectLike = __webpack_require__("1310"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +module.exports = isArguments; /***/ }), @@ -5793,29 +8358,72 @@ module.exports = function (done, value) { }; +/***/ }), + +/***/ "d612": +/***/ (function(module, exports, __webpack_require__) { + +var MapCache = __webpack_require__("7b83"), + setCacheAdd = __webpack_require__("7ed2"), + setCacheHas = __webpack_require__("dc0f"); + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +module.exports = SetCache; + + /***/ }), /***/ "d7ee": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseIsSet = __webpack_require__("c3fc"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); + +/* Node.js helper references. */ +var nodeIsSet = nodeUtil && nodeUtil.isSet; /** - * This method returns `false`. + * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false */ -function stubFalse() { - return false; -} +var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; -module.exports = stubFalse; +module.exports = isSet; /***/ }), @@ -5831,17 +8439,84 @@ module.exports = function (it) { /***/ }), -/***/ "dcbc": +/***/ "da03": /***/ (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; -}; +var root = __webpack_require__("2b3e"); +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; -/***/ }), +module.exports = coreJsData; + + +/***/ }), + +/***/ "dc0f": +/***/ (function(module, exports) { + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; + + +/***/ }), + +/***/ "dc57": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var funcProto = Function.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +module.exports = toSource; + + +/***/ }), + +/***/ "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; +}; + + +/***/ }), /***/ "e0bf": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5863,6 +8538,45 @@ module.exports = ( ).split(','); +/***/ }), + +/***/ "e24b": +/***/ (function(module, exports, __webpack_require__) { + +var hashClear = __webpack_require__("49f4"), + hashDelete = __webpack_require__("1efc"), + hashGet = __webpack_require__("bbc0"), + hashHas = __webpack_require__("7a48"), + hashSet = __webpack_require__("2524"); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(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 `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +module.exports = Hash; + + /***/ }), /***/ "e279": @@ -6006,24 +8720,24 @@ module.exports = cloneBuffer; /***/ "eac5": /***/ (function(module, exports) { +/** Used for built-in method references. */ +var objectProto = Object.prototype; + /** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example + * Checks if `value` is likely a prototype object. * - * _.times(2, _.stubFalse); - * // => [false, false] + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ -function stubFalse() { - return false; +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; } -module.exports = stubFalse; +module.exports = isPrototype; /***/ }), @@ -6058,12 +8772,161 @@ module.exports = function (O, D) { /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var arrayLikeKeys = __webpack_require__("6fcd"), + baseKeys = __webpack_require__("03dd"), + isArrayLike = __webpack_require__("30c9"); + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +module.exports = keys; + + +/***/ }), + +/***/ "ec8c": +/***/ (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; + + +/***/ }), + +/***/ "edfa": +/***/ (function(module, exports) { + +/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ +function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} + +module.exports = mapToArray; + + +/***/ }), + +/***/ "efb6": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"); + +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} + +module.exports = stackClear; + + +/***/ }), + +/***/ "f3c1": +/***/ (function(module, exports) { + +/** Used to detect hot functions by number of calls within a span of milliseconds. */ +var HOT_COUNT = 800, + HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +var nativeNow = Date.now; -module.exports = nativeKeys; +/** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ +function shortOut(func) { + var count = 0, + lastCalled = 0; + + return function() { + var stamp = nativeNow(), + remaining = HOT_SPAN - (stamp - lastCalled); + + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(undefined, arguments); + }; +} + +module.exports = shortOut; /***/ }), @@ -6106,6 +8969,78 @@ module.exports = function (it, Constructor, name, forbiddenField) { }; +/***/ }), + +/***/ "f608": +/***/ (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; + + +/***/ }), + +/***/ "f8af": +/***/ (function(module, exports, __webpack_require__) { + +var Uint8Array = __webpack_require__("2474"); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; + + +/***/ }), + +/***/ "f9ce": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty; + + /***/ }), /***/ "fa21": @@ -6198,8 +9133,13 @@ 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"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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=bed362a6& -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,"event-bus":_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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"label",fn:function(ref){ +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=339caff2& +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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"group-legend",fn:function(ref){ +var group = ref.group; +var groupLegend = ref.groupLegend; +return [_vm._t("group-legend",[(groupLegend)?_c('legend',[_c('span',{domProps:{"innerHTML":_vm._s(groupLegend)}})]):_vm._e()],{group:group,groupLegend:groupLegend})]}},{key:"group-help",fn:function(ref){ +var group = ref.group; +return [_vm._t("group-help",[(group.help)?_c('span',{staticClass:"help"},[_c('i',{staticClass:"icon"}),_c('div',{staticClass:"helpText",domProps:{"innerHTML":_vm._s(group.help)}})]):_vm._e()],{group:group})]}},{key:"element",fn:function(slotProps){return [_c('form-element',{attrs:{"field":slotProps.field,"model":slotProps.model,"options":slotProps.options,"errors":slotProps.errors,"event-bus":_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){ @@ -6216,7 +9156,7 @@ return [_vm._t("errors",[_c('div',{staticClass:"errors help-block"},_vm._l((chil var staticRenderFns = [] -// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=template&id=bed362a6& +// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=template&id=339caff2& // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js var es6_promise = __webpack_require__("551c"); @@ -6233,12 +9173,12 @@ var get_default = /*#__PURE__*/__webpack_require__.n(lodash_get); 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":"4faaeac7-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=12ad8b0b& -var formGroupvue_type_template_id_12ad8b0b_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,"event-bus":_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_12ad8b0b_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=f1ae3a1c& +var formGroupvue_type_template_id_f1ae3a1c_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._t("group-legend",null,{group:_vm.group,groupLegend:_vm.groupLegend}),_vm._t("group-help",null,{group:_vm.group}),_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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"group-legend",fn:function(slotProps){return [_vm._t("group-legend",null,{group:slotProps.group,groupLegend:slotProps.groupLegend})]}},{key:"group-help",fn:function(slotProps){return [_vm._t("group-help",null,{group:slotProps.group})]}},{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_f1ae3a1c_staticRenderFns = [] -// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=12ad8b0b& +// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=f1ae3a1c& // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/defineProperty.js function _defineProperty(obj, key, value) { @@ -6289,21 +9229,939 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); } }); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& - - - - -// -// -// -// -// -// -// -// -// -// -// +var cov_d4vsnj82q = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formGroup.vue", + hash = "6f7c2f1892f2b3aac935f542b34676571ee2c801", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formGroup.vue", + statementMap: { + "0": { + start: { + line: 74, + column: 4 + }, + end: { + line: 74, + column: 14 + } + }, + "1": { + start: { + line: 80, + column: 4 + }, + end: { + line: 80, + column: 14 + } + }, + "2": { + start: { + line: 87, + column: 4 + }, + end: { + line: 87, + column: 28 + } + }, + "3": { + start: { + line: 94, + column: 4 + }, + end: { + line: 94, + column: 14 + } + }, + "4": { + start: { + line: 100, + column: 4 + }, + end: { + line: 100, + column: 14 + } + }, + "5": { + start: { + line: 106, + column: 4 + }, + end: { + line: 106, + column: 14 + } + }, + "6": { + start: { + line: 112, + column: 4 + }, + end: { + line: 112, + column: 14 + } + }, + "7": { + start: { + line: 117, + column: 2 + }, + end: { + line: 119, + column: 4 + } + }, + "8": { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, + "9": { + start: { + line: 124, + column: 4 + }, + end: { + line: 124, + column: 29 + } + }, + "10": { + start: { + line: 129, + column: 21 + }, + end: { + line: 131, + column: 4 + } + }, + "11": { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, + "12": { + start: { + line: 133, + column: 4 + }, + end: { + line: 133, + column: 64 + } + }, + "13": { + start: { + line: 135, + column: 3 + }, + end: { + line: 135, + column: 22 + } + }, + "14": { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, + "15": { + start: { + line: 142, + column: 4 + }, + end: { + line: 142, + column: 61 + } + }, + "16": { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, + "17": { + start: { + line: 146, + column: 4 + }, + end: { + line: 146, + column: 16 + } + }, + "18": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 24 + } + }, + "19": { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, + "20": { + start: { + line: 154, + column: 4 + }, + end: { + line: 154, + column: 21 + } + }, + "21": { + start: { + line: 156, + column: 4 + }, + end: { + line: 156, + column: 20 + } + }, + "22": { + start: { + line: 161, + column: 2 + }, + end: { + line: 172, + column: 5 + } + }, + "23": { + start: { + line: 162, + column: 3 + }, + end: { + line: 171, + column: 6 + } + }, + "24": { + start: { + line: 164, + column: 5 + }, + end: { + line: 166, + column: 15 + } + }, + "25": { + start: { + line: 167, + column: 4 + }, + end: { + line: 170, + column: 6 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 73, + column: 3 + }, + end: { + line: 73, + column: 4 + } + }, + loc: { + start: { + line: 73, + column: 13 + }, + end: { + line: 75, + column: 4 + } + }, + line: 73 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 79, + column: 3 + }, + end: { + line: 79, + column: 4 + } + }, + loc: { + start: { + line: 79, + column: 13 + }, + end: { + line: 81, + column: 4 + } + }, + line: 79 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 86, + column: 3 + }, + end: { + line: 86, + column: 4 + } + }, + loc: { + start: { + line: 86, + column: 20 + }, + end: { + line: 88, + column: 4 + } + }, + line: 86 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 93, + column: 3 + }, + end: { + line: 93, + column: 4 + } + }, + loc: { + start: { + line: 93, + column: 13 + }, + end: { + line: 95, + column: 4 + } + }, + line: 93 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 99, + column: 3 + }, + end: { + line: 99, + column: 4 + } + }, + loc: { + start: { + line: 99, + column: 13 + }, + end: { + line: 101, + column: 4 + } + }, + line: 99 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 105, + column: 3 + }, + end: { + line: 105, + column: 4 + } + }, + loc: { + start: { + line: 105, + column: 13 + }, + end: { + line: 107, + column: 4 + } + }, + line: 105 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 111, + column: 3 + }, + end: { + line: 111, + column: 4 + } + }, + loc: { + start: { + line: 111, + column: 13 + }, + end: { + line: 113, + column: 4 + } + }, + line: 111 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 116, + column: 1 + }, + end: { + line: 116, + column: 2 + } + }, + loc: { + start: { + line: 116, + column: 8 + }, + end: { + line: 120, + column: 2 + } + }, + line: 116 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 122, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + loc: { + start: { + line: 122, + column: 16 + }, + end: { + line: 126, + column: 3 + } + }, + line: 122 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 127, + column: 2 + }, + end: { + line: 127, + column: 3 + } + }, + loc: { + start: { + line: 127, + column: 20 + }, + end: { + line: 136, + column: 3 + } + }, + line: 127 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 140, + column: 2 + }, + end: { + line: 140, + column: 3 + } + }, + loc: { + start: { + line: 140, + column: 22 + }, + end: { + line: 150, + column: 3 + } + }, + line: 140 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 152, + column: 2 + }, + end: { + line: 152, + column: 3 + } + }, + loc: { + start: { + line: 152, + column: 21 + }, + end: { + line: 158, + column: 3 + } + }, + line: 152 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 160, + column: 1 + }, + end: { + line: 160, + column: 2 + } + }, + loc: { + start: { + line: 160, + column: 11 + }, + end: { + line: 173, + column: 2 + } + }, + line: 160 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 161, + column: 39 + }, + end: { + line: 161, + column: 40 + } + }, + loc: { + start: { + line: 161, + column: 45 + }, + end: { + line: 172, + column: 3 + } + }, + line: 161 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 162, + column: 18 + }, + end: { + line: 162, + column: 19 + } + }, + loc: { + start: { + line: 162, + column: 24 + }, + end: { + line: 171, + column: 4 + } + }, + line: 162 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }], + line: 123 + }, + "1": { + loc: { + start: { + line: 123, + column: 7 + }, + end: { + line: 123, + column: 38 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 123, + column: 7 + }, + end: { + line: 123, + column: 17 + } + }, { + start: { + line: 123, + column: 21 + }, + end: { + line: 123, + column: 38 + } + }], + line: 123 + }, + "2": { + loc: { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }], + line: 132 + }, + "3": { + loc: { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }], + line: 141 + }, + "4": { + loc: { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }], + line: 145 + }, + "5": { + loc: { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }], + line: 153 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// // // // @@ -6342,12 +10200,16 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); fields: { type: Array, default: function _default() { + cov_d4vsnj82q.f[0]++; + cov_d4vsnj82q.s[0]++; return []; } }, group: { type: Object, default: function _default() { + cov_d4vsnj82q.f[1]++; + cov_d4vsnj82q.s[1]++; return {}; } }, @@ -6355,75 +10217,122 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); type: String, default: "fieldset", validator: function validator(value) { + cov_d4vsnj82q.f[2]++; + cov_d4vsnj82q.s[2]++; return value.length > 0; } }, model: { type: Object, default: function _default() { + cov_d4vsnj82q.f[3]++; + cov_d4vsnj82q.s[3]++; return {}; } }, options: { type: Object, default: function _default() { + cov_d4vsnj82q.f[4]++; + cov_d4vsnj82q.s[4]++; return {}; } }, errors: { type: Array, default: function _default() { + cov_d4vsnj82q.f[5]++; + cov_d4vsnj82q.s[5]++; return []; } }, eventBus: { type: Object, default: function _default() { + cov_d4vsnj82q.f[6]++; + cov_d4vsnj82q.s[6]++; return {}; } } }, data: function data() { + cov_d4vsnj82q.f[7]++; + cov_d4vsnj82q.s[7]++; return { validationClass: {} }; }, computed: { groupLegend: function groupLegend() { - if (this.group && this.group.legend) { + cov_d4vsnj82q.f[8]++; + cov_d4vsnj82q.s[8]++; + + if ((cov_d4vsnj82q.b[1][0]++, this.group) && (cov_d4vsnj82q.b[1][1]++, this.group.legend)) { + cov_d4vsnj82q.b[0][0]++; + cov_d4vsnj82q.s[9]++; return this.group.legend; + } else { + cov_d4vsnj82q.b[0][1]++; } }, groupRowClasses: function groupRowClasses() { + cov_d4vsnj82q.f[9]++; // TODO find a way to detect errors in child to add some classes (error/valid/etc) - var baseClasses = { + var baseClasses = (cov_d4vsnj82q.s[10]++, { "field-group": true - }; + }); + cov_d4vsnj82q.s[11]++; if (!isNil_default()(this.group)) { + cov_d4vsnj82q.b[2][0]++; + cov_d4vsnj82q.s[12]++; baseClasses = this.getStyleClasses(this.group, baseClasses); + } else { + cov_d4vsnj82q.b[2][1]++; } + cov_d4vsnj82q.s[13]++; return baseClasses; } }, methods: { // Get visible prop of field fieldVisible: function fieldVisible(field) { + cov_d4vsnj82q.f[10]++; + cov_d4vsnj82q.s[14]++; + if (isFunction_default()(field.visible)) { + cov_d4vsnj82q.b[3][0]++; + cov_d4vsnj82q.s[15]++; return field.visible.call(this, this.model, field, this); + } else { + cov_d4vsnj82q.b[3][1]++; } + cov_d4vsnj82q.s[16]++; + if (isNil_default()(field.visible)) { + cov_d4vsnj82q.b[4][0]++; + cov_d4vsnj82q.s[17]++; return true; + } else { + cov_d4vsnj82q.b[4][1]++; } + cov_d4vsnj82q.s[18]++; return field.visible; }, getGroupTag: function getGroupTag(field) { + cov_d4vsnj82q.f[11]++; + cov_d4vsnj82q.s[19]++; + if (!isNil_default()(field.tag)) { + cov_d4vsnj82q.b[5][0]++; + cov_d4vsnj82q.s[20]++; return field.tag; } else { + cov_d4vsnj82q.b[5][1]++; + cov_d4vsnj82q.s[21]++; return this.tag; } } @@ -6431,11 +10340,18 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); created: function created() { var _this = this; + cov_d4vsnj82q.f[12]++; + cov_d4vsnj82q.s[22]++; this.eventBus.$on("field-validated", function () { + cov_d4vsnj82q.f[13]++; + cov_d4vsnj82q.s[23]++; + _this.$nextTick(function () { var _this$validationClass; - var containFieldWithError = _this.$refs.group.querySelector(".form-element.error") !== null; + cov_d4vsnj82q.f[14]++; + var containFieldWithError = (cov_d4vsnj82q.s[24]++, _this.$refs.group.querySelector(".form-element." + get_default()(_this.options, "validationErrorClass", "error")) !== null); + cov_d4vsnj82q.s[25]++; _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); }); }); @@ -6548,8 +10464,8 @@ function normalizeComponent ( var component = normalizeComponent( src_formGroupvue_type_script_lang_js_, - formGroupvue_type_template_id_12ad8b0b_render, - formGroupvue_type_template_id_12ad8b0b_staticRenderFns, + formGroupvue_type_template_id_f1ae3a1c_render, + formGroupvue_type_template_id_f1ae3a1c_staticRenderFns, false, null, null, @@ -6559,7 +10475,7 @@ var component = normalizeComponent( 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":"4faaeac7-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=fc1a7bb6& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=fc1a7bb6& var formElementvue_type_template_id_fc1a7bb6_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,"form-options":_vm.options,"event-bus":_vm.eventBus,"field-id":_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_fc1a7bb6_staticRenderFns = [] @@ -6592,909 +10508,13137 @@ var lodash_set = __webpack_require__("0f5c"); var set_default = /*#__PURE__*/__webpack_require__.n(lodash_set); // CONCATENATED MODULE: ./src/utils/schema.js - - - - - - - - - - - -// Create a new model by schema default values -var schema_createDefaultObject = function createDefaultObject(schema) { - var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - each_default()(schema.fields, function (field) { - if (get_default()(obj, field.model) === undefined && field.default !== undefined) { - if (isFunction_default()(field.default)) { - set_default()(obj, field.model, field.default(field, schema, obj)); - } else if (isObject_default()(field.default) || isArray_default()(field.default)) { - set_default()(obj, field.model, cloneDeep_default()(field.default)); - } else set_default()(obj, field.model, field.default); - } - }); - - return obj; -}; // Get a new model which contains only properties of multi-edit fields - - -var schema_getMultipleFields = function getMultipleFields(schema) { - var res = []; - - each_default()(schema.fields, function (field) { - if (field.multi === true) res.push(field); - }); - - return res; -}; // Merge many models to one 'work model' by schema - - -var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { - var model = {}; - var fields = schema_getMultipleFields(schema); - - each_default()(fields, function (field) { - var mergedValue; - var notSet = true; - var path = field.model; - - each_default()(objs, function (obj) { - var v = get_default()(obj, path); - - if (notSet) { - mergedValue = v; - notSet = false; - } else if (mergedValue !== v) { - mergedValue = undefined; - } - }); - - set_default()(model, path, mergedValue); - }); - - return model; -}; - -var schema_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 (!isNil_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, ""); -}; - - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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", - mixins: [formMixin], - props: { - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; +var cov_gintv1cay = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\schema.js", + hash = "a53cef1e41564f1bee324738d46948dfa72edad7", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\schema.js", + statementMap: { + "0": { + start: { + line: 4, + column: 28 + }, + end: { + line: 15, + column: 1 + } + }, + "1": { + start: { + line: 5, + column: 1 + }, + end: { + line: 13, + column: 4 + } + }, + "2": { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, + "3": { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, + "4": { + start: { + line: 8, + column: 4 + }, + end: { + line: 8, + column: 61 + } + }, + "5": { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + "6": { + start: { + line: 10, + column: 4 + }, + end: { + line: 10, + column: 52 + } + }, + "7": { + start: { + line: 11, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + "8": { + start: { + line: 14, + column: 1 + }, + end: { + line: 14, + column: 12 + } + }, + "9": { + start: { + line: 18, + column: 26 + }, + end: { + line: 25, + column: 1 + } + }, + "10": { + start: { + line: 19, + column: 11 + }, + end: { + line: 19, + column: 13 + } + }, + "11": { + start: { + line: 20, + column: 1 + }, + end: { + line: 22, + column: 4 + } + }, + "12": { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, + "13": { + start: { + line: 21, + column: 28 + }, + end: { + line: 21, + column: 44 + } + }, + "14": { + start: { + line: 24, + column: 1 + }, + end: { + line: 24, + column: 12 + } + }, + "15": { + start: { + line: 28, + column: 31 + }, + end: { + line: 52, + column: 1 + } + }, + "16": { + start: { + line: 29, + column: 13 + }, + end: { + line: 29, + column: 15 + } + }, + "17": { + start: { + line: 31, + column: 14 + }, + end: { + line: 31, + column: 39 + } + }, + "18": { + start: { + line: 33, + column: 1 + }, + end: { + line: 49, + column: 4 + } + }, + "19": { + start: { + line: 35, + column: 15 + }, + end: { + line: 35, + column: 19 + } + }, + "20": { + start: { + line: 36, + column: 13 + }, + end: { + line: 36, + column: 24 + } + }, + "21": { + start: { + line: 38, + column: 2 + }, + end: { + line: 46, + column: 5 + } + }, + "22": { + start: { + line: 39, + column: 11 + }, + end: { + line: 39, + column: 25 + } + }, + "23": { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, + "24": { + start: { + line: 41, + column: 4 + }, + end: { + line: 41, + column: 20 + } + }, + "25": { + start: { + line: 42, + column: 4 + }, + end: { + line: 42, + column: 19 + } + }, + "26": { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, + "27": { + start: { + line: 44, + column: 4 + }, + end: { + line: 44, + column: 28 + } + }, + "28": { + start: { + line: 48, + column: 2 + }, + end: { + line: 48, + column: 32 + } + }, + "29": { + start: { + line: 51, + column: 1 + }, + end: { + line: 51, + column: 14 + } + }, + "30": { + start: { + line: 54, + column: 22 + }, + end: { + line: 80, + column: 1 + } + }, + "31": { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + "32": { + start: { + line: 59, + column: 2 + }, + end: { + line: 59, + column: 28 + } + }, + "33": { + start: { + line: 62, + column: 2 + }, + end: { + line: 78, + column: 4 + } + }, + "34": { + start: { + line: 82, + column: 16 + }, + end: { + line: 100, + column: 1 + } + }, + "35": { + start: { + line: 84, + column: 1 + }, + end: { + line: 99, + column: 3 + } } }, - field: { - type: Object, - required: true - }, - errors: { - type: Array, - default: function _default() { - return []; + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 4, + column: 28 + }, + end: { + line: 4, + column: 29 + } + }, + loc: { + start: { + line: 4, + column: 50 + }, + end: { + line: 15, + column: 1 + } + }, + line: 4 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 5, + column: 21 + }, + end: { + line: 5, + column: 22 + } + }, + loc: { + start: { + line: 5, + column: 32 + }, + end: { + line: 13, + column: 2 + } + }, + line: 5 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 18, + column: 26 + }, + end: { + line: 18, + column: 27 + } + }, + loc: { + start: { + line: 18, + column: 38 + }, + end: { + line: 25, + column: 1 + } + }, + line: 18 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 20, + column: 21 + }, + end: { + line: 20, + column: 22 + } + }, + loc: { + start: { + line: 20, + column: 32 + }, + end: { + line: 22, + column: 2 + } + }, + line: 20 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 28, + column: 31 + }, + end: { + line: 28, + column: 32 + } + }, + loc: { + start: { + line: 28, + column: 49 + }, + end: { + line: 52, + column: 1 + } + }, + line: 28 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 33, + column: 14 + }, + end: { + line: 33, + column: 15 + } + }, + loc: { + start: { + line: 33, + column: 25 + }, + end: { + line: 49, + column: 2 + } + }, + line: 33 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 38, + column: 13 + }, + end: { + line: 38, + column: 14 + } + }, + loc: { + start: { + line: 38, + column: 22 + }, + end: { + line: 46, + column: 3 + } + }, + line: 38 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 54, + column: 22 + }, + end: { + line: 54, + column: 23 + } + }, + loc: { + start: { + line: 54, + column: 47 + }, + end: { + line: 80, + column: 1 + } + }, + line: 54 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 82, + column: 16 + }, + end: { + line: 82, + column: 17 + } + }, + loc: { + start: { + line: 82, + column: 31 + }, + end: { + line: 100, + column: 1 + } + }, + line: 82 } }, - eventBus: { - type: Object, - default: function _default() { - return {}; + branchMap: { + "0": { + loc: { + start: { + line: 4, + column: 37 + }, + end: { + line: 4, + column: 45 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 4, + column: 43 + }, + end: { + line: 4, + column: 45 + } + }], + line: 4 + }, + "1": { + loc: { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }], + line: 6 + }, + "2": { + loc: { + start: { + line: 6, + column: 6 + }, + end: { + line: 6, + column: 72 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 6, + column: 6 + }, + end: { + line: 6, + column: 41 + } + }, { + start: { + line: 6, + column: 45 + }, + end: { + line: 6, + column: 72 + } + }], + line: 6 + }, + "3": { + loc: { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, + type: "if", + locations: [{ + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }], + line: 7 + }, + "4": { + loc: { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + type: "if", + locations: [{ + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }], + line: 9 + }, + "5": { + loc: { + start: { + line: 9, + column: 14 + }, + end: { + line: 9, + column: 63 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 9, + column: 14 + }, + end: { + line: 9, + column: 37 + } + }, { + start: { + line: 9, + column: 41 + }, + end: { + line: 9, + column: 63 + } + }], + line: 9 + }, + "6": { + loc: { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, + type: "if", + locations: [{ + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }], + line: 21 + }, + "7": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }], + line: 40 + }, + "8": { + loc: { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }], + line: 43 + }, + "9": { + loc: { + start: { + line: 54, + column: 31 + }, + end: { + line: 54, + column: 42 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 54, + column: 40 + }, + end: { + line: 54, + column: 42 + } + }], + line: 54 + }, + "10": { + loc: { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }], + line: 57 + }, + "11": { + loc: { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 58 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 20 + } + }, { + start: { + line: 64, + column: 24 + }, + end: { + line: 64, + column: 36 + } + }, { + start: { + line: 64, + column: 40 + }, + end: { + line: 64, + column: 52 + } + }, { + start: { + line: 64, + column: 56 + }, + end: { + line: 64, + column: 58 + } + }], + line: 64 + }, + "12": { + loc: { + start: { + line: 82, + column: 17 + }, + end: { + line: 82, + column: 26 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 82, + column: 24 + }, + end: { + line: 82, + column: 26 + } + }], + line: 82 } - } - }, - data: function data() { - return { - childErrors: [], - childTouched: false - }; - }, - computed: { - fieldID: function fieldID() { - var idPrefix = get_default()(this.options, "fieldIdPrefix", ""); - - return 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); + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0 }, - fieldHasHint: function fieldHasHint() { - return !isNil_default()(this.field.hint); + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0 }, - fieldHasErrors: function fieldHasErrors() { - return this.childErrors.length > 0; + b: { + "0": [0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0], + "10": [0, 0], + "11": [0, 0, 0, 0], + "12": [0] }, - fieldRowClasses: function fieldRowClasses() { - var _baseClasses; + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); - 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 (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } - if (!isNil_default()(this.field.type)) { - baseClasses["field-" + this.field.type] = true; - } + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); - 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 */ +cov_gintv1cay.s[0]++; -var formElement_component = normalizeComponent( - src_formElementvue_type_script_lang_js_, - formElementvue_type_template_id_fc1a7bb6_render, - formElementvue_type_template_id_fc1a7bb6_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--12-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& +// Create a new model by schema default values +var schema_createDefaultObject = function createDefaultObject(schema) { + var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_gintv1cay.b[0][0]++, {}); + cov_gintv1cay.f[0]++; + cov_gintv1cay.s[1]++; + each_default()(schema.fields, function (field) { + cov_gintv1cay.f[1]++; + cov_gintv1cay.s[2]++; + if ((cov_gintv1cay.b[2][0]++, get_default()(obj, field.model) === undefined) && (cov_gintv1cay.b[2][1]++, field.default !== undefined)) { + cov_gintv1cay.b[1][0]++; + cov_gintv1cay.s[3]++; + if (isFunction_default()(field.default)) { + cov_gintv1cay.b[3][0]++; + cov_gintv1cay.s[4]++; -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// + set_default()(obj, field.model, field.default(field, schema, obj)); + } else { + cov_gintv1cay.b[3][1]++; + cov_gintv1cay.s[5]++; + if ((cov_gintv1cay.b[5][0]++, isObject_default()(field.default)) || (cov_gintv1cay.b[5][1]++, isArray_default()(field.default))) { + cov_gintv1cay.b[4][0]++; + cov_gintv1cay.s[6]++; + set_default()(obj, field.model, cloneDeep_default()(field.default)); + } else { + cov_gintv1cay.b[4][1]++; + cov_gintv1cay.s[7]++; -/* harmony default export */ var formGeneratorvue_type_script_lang_js_ = ({ - name: "form-generator", - components: { - formGroup: formGroup, - formElement: formElement - }, - props: { - schema: { - type: Object, - default: function _default() { - return {}; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - 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; + set_default()(obj, field.model, field.default); + } } + } else { + cov_gintv1cay.b[1][1]++; } - }, - 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; + cov_gintv1cay.s[8]++; + return obj; +}; // Get a new model which contains only properties of multi-edit fields - 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; - } +cov_gintv1cay.s[9]++; + +var schema_getMultipleFields = function getMultipleFields(schema) { + cov_gintv1cay.f[2]++; + var res = (cov_gintv1cay.s[10]++, []); + cov_gintv1cay.s[11]++; + + each_default()(schema.fields, function (field) { + cov_gintv1cay.f[3]++; + cov_gintv1cay.s[12]++; + + if (field.multi === true) { + cov_gintv1cay.b[6][0]++; + cov_gintv1cay.s[13]++; + res.push(field); + } else { + cov_gintv1cay.b[6][1]++; } - }, - 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(); + cov_gintv1cay.s[14]++; + return res; +}; // Merge many models to one 'work model' by schema - 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); +cov_gintv1cay.s[15]++; - reject(formErrors); - }); +var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { + cov_gintv1cay.f[4]++; + var model = (cov_gintv1cay.s[16]++, {}); + var fields = (cov_gintv1cay.s[17]++, schema_getMultipleFields(schema)); + cov_gintv1cay.s[18]++; - var counter = function counter(isValid, fieldErrors, uid) { - fieldsValidated++; + each_default()(fields, function (field) { + cov_gintv1cay.f[5]++; + var mergedValue; + var notSet = (cov_gintv1cay.s[19]++, true); + var path = (cov_gintv1cay.s[20]++, field.model); + cov_gintv1cay.s[21]++; - _this2.fillErrors(fieldErrors, formErrors, uid); + each_default()(objs, function (obj) { + cov_gintv1cay.f[6]++; + var v = (cov_gintv1cay.s[22]++, get_default()(obj, path)); + cov_gintv1cay.s[23]++; - if (fieldsValidated === _this2.totalNumberOfFields) { - _this2.eventBus.$off("field-validated", counter); + if (notSet) { + cov_gintv1cay.b[7][0]++; + cov_gintv1cay.s[24]++; + mergedValue = v; + cov_gintv1cay.s[25]++; + notSet = false; + } else { + cov_gintv1cay.b[7][1]++; + cov_gintv1cay.s[26]++; - if (get_default()(_this2.options, "validateAfterChanged", false)) { - _this2.eventBus.$on("field-validated", _this2.onFieldValidated); - } + if (mergedValue !== v) { + cov_gintv1cay.b[8][0]++; + cov_gintv1cay.s[27]++; + mergedValue = undefined; + } else { + cov_gintv1cay.b[8][1]++; + } + } + }); - _this2.errors = formErrors; + cov_gintv1cay.s[28]++; - var _isValid = formErrors.length === 0; + set_default()(model, path, mergedValue); + }); - _this2.$emit("validated", _isValid, formErrors, _this2); + cov_gintv1cay.s[29]++; + return model; +}; - _this2.eventBus.$emit("fields-validation-terminated", formErrors); +cov_gintv1cay.s[30]++; - if (_isValid) { - resolve(); - } else { - reject(formErrors); - } - } - }; +var schema_slugifyFormID = function slugifyFormID(schema) { + var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_gintv1cay.b[9][0]++, ""); + cov_gintv1cay.f[7]++; + cov_gintv1cay.s[31]++; - if (get_default()(_this2.options, "validateAfterChanged", false)) { - _this2.eventBus.$off("field-validated", _this2.onFieldValidated); - } + // Try to get a reasonable default id from the schema, + // then slugify it. + if (!isNil_default()(schema.id)) { + cov_gintv1cay.b[10][0]++; + cov_gintv1cay.s[32]++; + // If an ID's been explicitly set, use it unchanged + return prefix + schema.id; + } else { + cov_gintv1cay.b[10][1]++; + cov_gintv1cay.s[33]++; + // Return the slugified version of either: + return prefix + ((cov_gintv1cay.b[11][0]++, schema.inputName) || (cov_gintv1cay.b[11][1]++, schema.label) || (cov_gintv1cay.b[11][2]++, schema.model) || (cov_gintv1cay.b[11][3]++, "")). // 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, ""); + } +}; - _this2.eventBus.$on("field-validated", counter); +cov_gintv1cay.s[34]++; - _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; +var slugify = function slugify() { + var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_gintv1cay.b[12][0]++, ""); + cov_gintv1cay.f[8]++; + cov_gintv1cay.s[35]++; + // 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, ""); +}; - 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; - }); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1auykt9f6c = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formElement.vue", + hash = "ce162c16619138421bf005fefa40794742d45759", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formElement.vue", + statementMap: { + "0": { + start: { + line: 70, + column: 4 + }, + end: { + line: 70, + column: 14 + } + }, + "1": { + start: { + line: 76, + column: 4 + }, + end: { + line: 76, + column: 14 + } + }, + "2": { + start: { + line: 86, + column: 4 + }, + end: { + line: 86, + column: 14 + } + }, + "3": { + start: { + line: 92, + column: 4 + }, + end: { + line: 92, + column: 14 + } + }, + "4": { + start: { + line: 97, + column: 2 + }, + end: { + line: 100, + column: 4 + } + }, + "5": { + start: { + line: 104, + column: 20 + }, + end: { + line: 104, + column: 61 + } + }, + "6": { + start: { + line: 105, + column: 3 + }, + end: { + line: 105, + column: 46 + } + }, + "7": { + start: { + line: 109, + column: 3 + }, + end: { + line: 109, + column: 37 + } + }, + "8": { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "9": { + start: { + line: 114, + column: 4 + }, + end: { + line: 114, + column: 17 + } + }, + "10": { + start: { + line: 116, + column: 22 + }, + end: { + line: 116, + column: 73 + } + }, + "11": { + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 70 + } + }, + "12": { + start: { + line: 118, + column: 22 + }, + end: { + line: 118, + column: 74 + } + }, + "13": { + start: { + line: 119, + column: 28 + }, + end: { + line: 119, + column: 57 + } + }, + "14": { + start: { + line: 121, + column: 3 + }, + end: { + line: 121, + column: 51 + } + }, + "15": { + start: { + line: 124, + column: 3 + }, + end: { + line: 124, + column: 34 + } + }, + "16": { + start: { + line: 127, + column: 3 + }, + end: { + line: 127, + column: 38 + } + }, + "17": { + start: { + line: 130, + column: 21 + }, + end: { + line: 138, + column: 4 + } + }, + "18": { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 63 + } + }, + "19": { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, + "20": { + start: { + line: 143, + column: 4 + }, + end: { + line: 143, + column: 51 + } + }, + "21": { + start: { + line: 146, + column: 3 + }, + end: { + line: 146, + column: 22 + } + }, + "22": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 71 + } + }, + "23": { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, + "24": { + start: { + line: 155, + column: 4 + }, + end: { + line: 155, + column: 61 + } + }, + "25": { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, + "26": { + start: { + line: 159, + column: 4 + }, + end: { + line: 159, + column: 24 + } + }, + "27": { + start: { + line: 162, + column: 3 + }, + end: { + line: 162, + column: 24 + } + }, + "28": { + start: { + line: 166, + column: 3 + }, + end: { + line: 166, + column: 65 + } + }, + "29": { + start: { + line: 169, + column: 3 + }, + end: { + line: 169, + column: 28 + } + }, + "30": { + start: { + line: 172, + column: 3 + }, + end: { + line: 172, + column: 29 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 69, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + loc: { + start: { + line: 69, + column: 13 + }, + end: { + line: 71, + column: 4 + } + }, + line: 69 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 75, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + loc: { + start: { + line: 75, + column: 13 + }, + end: { + line: 77, + column: 4 + } + }, + line: 75 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 85, + column: 3 + }, + end: { + line: 85, + column: 4 + } + }, + loc: { + start: { + line: 85, + column: 13 + }, + end: { + line: 87, + column: 4 + } + }, + line: 85 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 91, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + loc: { + start: { + line: 91, + column: 13 + }, + end: { + line: 93, + column: 4 + } + }, + line: 91 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 96, + column: 1 + }, + end: { + line: 96, + column: 2 + } + }, + loc: { + start: { + line: 96, + column: 8 + }, + end: { + line: 101, + column: 2 + } + }, + line: 96 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 103, + column: 2 + }, + end: { + line: 103, + column: 3 + } + }, + loc: { + start: { + line: 103, + column: 12 + }, + end: { + line: 106, + column: 3 + } + }, + line: 103 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 108, + column: 2 + }, + end: { + line: 108, + column: 3 + } + }, + loc: { + start: { + line: 108, + column: 14 + }, + end: { + line: 110, + column: 3 + } + }, + line: 108 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 112, + column: 2 + }, + end: { + line: 112, + column: 3 + } + }, + loc: { + start: { + line: 112, + column: 22 + }, + end: { + line: 122, + column: 3 + } + }, + line: 112 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 123, + column: 2 + }, + end: { + line: 123, + column: 3 + } + }, + loc: { + start: { + line: 123, + column: 17 + }, + end: { + line: 125, + column: 3 + } + }, + line: 123 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 126, + column: 2 + }, + end: { + line: 126, + column: 3 + } + }, + loc: { + start: { + line: 126, + column: 19 + }, + end: { + line: 128, + column: 3 + } + }, + line: 126 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 129, + column: 2 + }, + end: { + line: 129, + column: 3 + } + }, + loc: { + start: { + line: 129, + column: 20 + }, + end: { + line: 147, + column: 3 + } + }, + line: 129 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 148, + column: 2 + }, + end: { + line: 148, + column: 3 + } + }, + loc: { + start: { + line: 148, + column: 22 + }, + end: { + line: 150, + column: 3 + } + }, + line: 148 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 153, + column: 2 + }, + end: { + line: 153, + column: 3 + } + }, + loc: { + start: { + line: 153, + column: 58 + }, + end: { + line: 163, + column: 3 + } + }, + line: 153 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 165, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + loc: { + start: { + line: 165, + column: 40 + }, + end: { + line: 167, + column: 3 + } + }, + line: 165 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 168, + column: 2 + }, + end: { + line: 168, + column: 3 + } + }, + loc: { + start: { + line: 168, + column: 19 + }, + end: { + line: 170, + column: 3 + } + }, + line: 168 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 171, + column: 2 + }, + end: { + line: 171, + column: 3 + } + }, + loc: { + start: { + line: 171, + column: 27 + }, + end: { + line: 173, + column: 3 + } + }, + line: 171 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }], + line: 113 + }, + "1": { + loc: { + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 70 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 46 + } + }, { + start: { + line: 117, + column: 50 + }, + end: { + line: 117, + column: 70 + } + }], + line: 117 + }, + "2": { + loc: { + start: { + line: 118, + column: 22 + }, + end: { + line: 118, + column: 74 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 118, + column: 34 + }, + end: { + line: 118, + column: 56 + } + }, { + start: { + line: 118, + column: 59 + }, + end: { + line: 118, + column: 74 + } + }], + line: 118 + }, + "3": { + loc: { + start: { + line: 132, + column: 63 + }, + end: { + line: 132, + column: 104 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 132, + column: 63 + }, + end: { + line: 132, + column: 83 + } + }, { + start: { + line: 132, + column: 87 + }, + end: { + line: 132, + column: 104 + } + }], + line: 132 + }, + "4": { + loc: { + start: { + line: 133, + column: 61 + }, + end: { + line: 133, + column: 103 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 133, + column: 61 + }, + end: { + line: 133, + column: 81 + } + }, { + start: { + line: 133, + column: 85 + }, + end: { + line: 133, + column: 103 + } + }], + line: 133 + }, + "5": { + loc: { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }], + line: 142 + }, + "6": { + loc: { + start: { + line: 149, + column: 10 + }, + end: { + line: 149, + column: 70 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 149, + column: 10 + }, + end: { + line: 149, + column: 37 + } + }, { + start: { + line: 149, + column: 41 + }, + end: { + line: 149, + column: 70 + } + }], + line: 149 + }, + "7": { + loc: { + start: { + line: 153, + column: 36 + }, + end: { + line: 153, + column: 56 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 153, + column: 51 + }, + end: { + line: 153, + column: 56 + } + }], + line: 153 + }, + "8": { + loc: { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }], + line: 154 + }, + "9": { + loc: { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }], + line: 158 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0], + "8": [0, 0], + "9": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - 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 - + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -/* normalize component */ -var formGenerator_component = normalizeComponent( - src_formGeneratorvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) -formGenerator_component.options.__file = "formGenerator.vue" -/* harmony default export */ var formGenerator = (formGenerator_component.exports); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js -var es6_array_iterator = __webpack_require__("cadf"); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js -var es6_object_keys = __webpack_require__("456d"); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js -var es6_regexp_constructor = __webpack_require__("3b2b"); -// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js -var isInteger = __webpack_require__("697e"); -var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); -// 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/defaults.js -var defaults = __webpack_require__("95ae"); -var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); - -// EXTERNAL MODULE: ./node_modules/fecha/fecha.js -var fecha = __webpack_require__("9e99"); -var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); - -// CONCATENATED MODULE: ./src/utils/validators.js - - - - - - - - - - - - - - -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 (isNil_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 (isNumber_default()(value)) { - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.min) && value < field.fieldOptions.min) { - err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); +/* harmony default export */ var formElementvue_type_script_lang_js_ = ({ + name: "form-element", + mixins: [formMixin], + props: { + model: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[0]++; + cov_1auykt9f6c.s[0]++; + return {}; } - - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.max) && value > field.fieldOptions.max) { - err.push(msg(messages.numberTooBig, field.fieldOptions.max)); + }, + options: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[1]++; + cov_1auykt9f6c.s[1]++; + return {}; + } + }, + field: { + type: Object, + required: true + }, + errors: { + type: Array, + default: function _default() { + cov_1auykt9f6c.f[2]++; + cov_1auykt9f6c.s[2]++; + return []; + } + }, + eventBus: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[3]++; + cov_1auykt9f6c.s[3]++; + return {}; } - } 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); + data: function data() { + cov_1auykt9f6c.f[4]++; + cov_1auykt9f6c.s[4]++; + return { + childErrors: [], + childTouched: false + }; + }, + computed: { + fieldID: function fieldID() { + cov_1auykt9f6c.f[5]++; + var idPrefix = (cov_1auykt9f6c.s[5]++, get_default()(this.options, "fieldIdPrefix", "")); + cov_1auykt9f6c.s[6]++; + return schema_slugifyFormID(this.field, idPrefix); + }, + // Get type of field 'field-xxx'. It'll be the name of HTML element + fieldType: function fieldType() { + cov_1auykt9f6c.f[6]++; + cov_1auykt9f6c.s[7]++; + return "field-" + this.field.type; + }, + // Should field type have a label? + fieldTypeHasLabel: function fieldTypeHasLabel() { + cov_1auykt9f6c.f[7]++; + cov_1auykt9f6c.s[8]++; - if (!isInteger_default()(value)) { - errs.push(msg(messages.invalidInteger)); - } + if (isNil_default()(this.field.label)) { + cov_1auykt9f6c.b[0][0]++; + cov_1auykt9f6c.s[9]++; + return false; + } else { + cov_1auykt9f6c.b[0][1]++; + } - 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; + var fieldOptions = (cov_1auykt9f6c.s[10]++, this.getValueFromOption(this.field, "fieldOptions")); + var condition = (cov_1auykt9f6c.s[11]++, (cov_1auykt9f6c.b[1][0]++, this.field.type === "input") && (cov_1auykt9f6c.b[1][1]++, !isNil_default()(fieldOptions))); + var relevantType = (cov_1auykt9f6c.s[12]++, condition ? (cov_1auykt9f6c.b[2][0]++, fieldOptions.inputType) : (cov_1auykt9f6c.b[2][1]++, this.field.type)); + var typeWithoutLabel = (cov_1auykt9f6c.s[13]++, ["button", "submit", "reset"]); + cov_1auykt9f6c.s[14]++; + return !typeWithoutLabel.includes(relevantType); + }, + fieldHasHint: function fieldHasHint() { + cov_1auykt9f6c.f[8]++; + cov_1auykt9f6c.s[15]++; + return !isNil_default()(this.field.hint); + }, + fieldHasErrors: function fieldHasErrors() { + cov_1auykt9f6c.f[9]++; + cov_1auykt9f6c.s[16]++; + return this.childErrors.length > 0; + }, + fieldRowClasses: function fieldRowClasses() { + var _ref; - if (!isNumber_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 = []; + cov_1auykt9f6c.f[10]++; + var baseClasses = (cov_1auykt9f6c.s[17]++, (_ref = {}, _defineProperty(_ref, get_default()(this.options, "validationErrorClass", "error"), this.fieldHasErrors), _defineProperty(_ref, get_default()(this.options, "validationSuccessClass", "valid"), (cov_1auykt9f6c.b[3][0]++, !this.fieldHasErrors) && (cov_1auykt9f6c.b[3][1]++, this.childTouched)), _defineProperty(_ref, get_default()(this.options, "validationCleanClass", "clean"), (cov_1auykt9f6c.b[4][0]++, !this.fieldHasErrors) && (cov_1auykt9f6c.b[4][1]++, !this.childTouched)), _defineProperty(_ref, "disabled", this.getValueFromOption(this.field, "disabled")), _defineProperty(_ref, "readonly", this.getValueFromOption(this.field, "readonly")), _defineProperty(_ref, "featured", this.getValueFromOption(this.field, "featured")), _defineProperty(_ref, "required", this.getValueFromOption(this.field, "required")), _ref)); + cov_1auykt9f6c.s[18]++; + baseClasses = this.getStyleClasses(this.field, baseClasses); + cov_1auykt9f6c.s[19]++; - if (isString_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); + if (!isNil_default()(this.field.type)) { + cov_1auykt9f6c.b[5][0]++; + cov_1auykt9f6c.s[20]++; + baseClasses["field-" + this.field.type] = true; + } else { + cov_1auykt9f6c.b[5][1]++; } - if (!isNil_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)); + cov_1auykt9f6c.s[21]++; + return baseClasses; + }, + buttonsAreVisible: function buttonsAreVisible() { + cov_1auykt9f6c.f[11]++; + cov_1auykt9f6c.s[22]++; + return (cov_1auykt9f6c.b[6][0]++, isArray_default()(this.field.buttons)) && (cov_1auykt9f6c.b[6][1]++, this.field.buttons.length > 0); } - - return err; }, - array: function array(value, field, model) { - var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + methods: { + getValueFromOption: function getValueFromOption(field, option) { + var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (cov_1auykt9f6c.b[7][0]++, false); + cov_1auykt9f6c.f[12]++; + cov_1auykt9f6c.s[23]++; - if (field.required) { - if (!isArray_default()(value)) { - return [msg(messages.thisNotArray)]; + if (isFunction_default()(field[option])) { + cov_1auykt9f6c.b[8][0]++; + cov_1auykt9f6c.s[24]++; + return field[option].call(this, this.model, field, this); + } else { + cov_1auykt9f6c.b[8][1]++; } - if (value.length === 0) { - return [msg(messages.fieldIsRequired)]; - } - } + cov_1auykt9f6c.s[25]++; - if (!isNil_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - return [msg(messages.selectMinItems, field.fieldOptions.min)]; + if (isNil_default()(field[option])) { + cov_1auykt9f6c.b[9][0]++; + cov_1auykt9f6c.s[26]++; + return defaultValue; + } else { + cov_1auykt9f6c.b[9][1]++; } - if (!isNil_default()(field.fieldOptions.max) && value.length > field.fieldOptions.max) { - return [msg(messages.selectMaxItems, field.fieldOptions.max)]; - } + cov_1auykt9f6c.s[27]++; + return field[option]; + }, + buttonClickHandler: function buttonClickHandler(btn, field, event) { + cov_1auykt9f6c.f[13]++; + cov_1auykt9f6c.s[28]++; + return btn.onclick.call(this, this.model, field, event, this); + }, + onFieldTouched: function onFieldTouched() { + cov_1auykt9f6c.f[14]++; + cov_1auykt9f6c.s[29]++; + this.childTouched = true; + }, + onChildValidated: function onChildValidated(errors) { + cov_1auykt9f6c.f[15]++; + cov_1auykt9f6c.s[30]++; + this.childErrors = errors; } - }, - 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); + } +}); +// 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"); - if (!m) { - return [msg(messages.invalidDate)]; - } +// CONCATENATED MODULE: ./src/formElement.vue - var err = []; - if (!isNil_default()(field.fieldOptions.min)) { - var min = new Date(field.fieldOptions.min); - if (m.valueOf() < min.valueOf()) { - err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); - } - } - if (!isNil_default()(field.fieldOptions.max)) { - var max = new Date(field.fieldOptions.max); - if (m.valueOf() > max.valueOf()) { - err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_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; +/* normalize component */ - if (!isNil_default()(field.pattern)) { - var re = new RegExp(field.pattern); +var formElement_component = normalizeComponent( + src_formElementvue_type_script_lang_js_, + formElementvue_type_template_id_fc1a7bb6_render, + formElementvue_type_template_id_fc1a7bb6_staticRenderFns, + false, + null, + null, + null + +) - if (!re.test(value)) { - return [msg(messages.invalidFormat)]; +formElement_component.options.__file = "formElement.vue" +/* harmony default export */ var formElement = (formElement_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_ordn025cj = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formGenerator.vue", + hash = "db4e640ecbe1b1eb8d262df4419d404d2ae8a540", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formGenerator.vue", + statementMap: { + "0": { + start: { + line: 127, + column: 4 + }, + end: { + line: 127, + column: 14 + } + }, + "1": { + start: { + line: 134, + column: 4 + }, + end: { + line: 134, + column: 14 + } + }, + "2": { + start: { + line: 141, + column: 4 + }, + end: { + line: 147, + column: 6 + } + }, + "3": { + start: { + line: 160, + column: 4 + }, + end: { + line: 160, + column: 28 + } + }, + "4": { + start: { + line: 166, + column: 19 + }, + end: { + line: 166, + column: 28 + } + }, + "5": { + start: { + line: 167, + column: 2 + }, + end: { + line: 171, + column: 4 + } + }, + "6": { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, + "7": { + start: { + line: 177, + column: 4 + }, + end: { + line: 177, + column: 30 + } + }, + "8": { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, + "9": { + start: { + line: 188, + column: 5 + }, + end: { + line: 188, + column: 12 + } + }, + "10": { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, + "11": { + start: { + line: 192, + column: 5 + }, + end: { + line: 199, + column: 8 + } + }, + "12": { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, + "13": { + start: { + line: 195, + column: 7 + }, + end: { + line: 195, + column: 48 + } + }, + "14": { + start: { + line: 197, + column: 7 + }, + end: { + line: 197, + column: 36 + } + }, + "15": { + start: { + line: 203, + column: 4 + }, + end: { + line: 203, + column: 16 + } + }, + "16": { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + "17": { + start: { + line: 211, + column: 4 + }, + end: { + line: 216, + column: 7 + } + }, + "18": { + start: { + line: 212, + column: 5 + }, + end: { + line: 215, + column: 8 + } + }, + "19": { + start: { + line: 223, + column: 3 + }, + end: { + line: 223, + column: 58 + } + }, + "20": { + start: { + line: 223, + column: 43 + }, + end: { + line: 223, + column: 56 + } + }, + "21": { + start: { + line: 225, + column: 3 + }, + end: { + line: 225, + column: 50 + } + }, + "22": { + start: { + line: 227, + column: 17 + }, + end: { + line: 227, + column: 41 + } + }, + "23": { + start: { + line: 228, + column: 3 + }, + end: { + line: 228, + column: 55 + } + }, + "24": { + start: { + line: 232, + column: 3 + }, + end: { + line: 232, + column: 47 + } + }, + "25": { + start: { + line: 237, + column: 3 + }, + end: { + line: 277, + column: 6 + } + }, + "26": { + start: { + line: 238, + column: 4 + }, + end: { + line: 238, + column: 33 + } + }, + "27": { + start: { + line: 240, + column: 26 + }, + end: { + line: 240, + column: 27 + } + }, + "28": { + start: { + line: 242, + column: 21 + }, + end: { + line: 242, + column: 23 + } + }, + "29": { + start: { + line: 244, + column: 4 + }, + end: { + line: 248, + column: 7 + } + }, + "30": { + start: { + line: 246, + column: 5 + }, + end: { + line: 246, + column: 69 + } + }, + "31": { + start: { + line: 247, + column: 5 + }, + end: { + line: 247, + column: 24 + } + }, + "32": { + start: { + line: 250, + column: 20 + }, + end: { + line: 271, + column: 5 + } + }, + "33": { + start: { + line: 251, + column: 5 + }, + end: { + line: 251, + column: 23 + } + }, + "34": { + start: { + line: 253, + column: 5 + }, + end: { + line: 253, + column: 51 + } + }, + "35": { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, + "36": { + start: { + line: 256, + column: 6 + }, + end: { + line: 256, + column: 53 + } + }, + "37": { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, + "38": { + start: { + line: 258, + column: 7 + }, + end: { + line: 258, + column: 67 + } + }, + "39": { + start: { + line: 260, + column: 6 + }, + end: { + line: 260, + column: 31 + } + }, + "40": { + start: { + line: 261, + column: 20 + }, + end: { + line: 261, + column: 43 + } + }, + "41": { + start: { + line: 262, + column: 6 + }, + end: { + line: 262, + column: 57 + } + }, + "42": { + start: { + line: 263, + column: 6 + }, + end: { + line: 263, + column: 70 + } + }, + "43": { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, + "44": { + start: { + line: 266, + column: 7 + }, + end: { + line: 266, + column: 17 + } + }, + "45": { + start: { + line: 268, + column: 7 + }, + end: { + line: 268, + column: 26 + } + }, + "46": { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, + "47": { + start: { + line: 273, + column: 5 + }, + end: { + line: 273, + column: 66 + } + }, + "48": { + start: { + line: 275, + column: 4 + }, + end: { + line: 275, + column: 50 + } + }, + "49": { + start: { + line: 276, + column: 4 + }, + end: { + line: 276, + column: 49 + } + }, + "50": { + start: { + line: 282, + column: 3 + }, + end: { + line: 282, + column: 25 + } + }, + "51": { + start: { + line: 283, + column: 3 + }, + end: { + line: 283, + column: 78 + } + }, + "52": { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, + "53": { + start: { + line: 289, + column: 3 + }, + end: { + line: 289, + column: 63 + } + }, + "54": { + start: { + line: 291, + column: 2 + }, + end: { + line: 291, + column: 58 + } + }, + "55": { + start: { + line: 292, + column: 2 + }, + end: { + line: 292, + column: 64 + } + }, + "56": { + start: { + line: 293, + column: 2 + }, + end: { + line: 295, + column: 5 + } + }, + "57": { + start: { + line: 294, + column: 3 + }, + end: { + line: 294, + column: 59 + } + }, + "58": { + start: { + line: 296, + column: 2 + }, + end: { + line: 298, + column: 5 + } + }, + "59": { + start: { + line: 297, + column: 3 + }, + end: { + line: 297, + column: 59 + } + }, + "60": { + start: { + line: 301, + column: 2 + }, + end: { + line: 301, + column: 40 + } + }, + "61": { + start: { + line: 302, + column: 2 + }, + end: { + line: 302, + column: 38 + } + }, + "62": { + start: { + line: 303, + column: 2 + }, + end: { + line: 303, + column: 50 + } + }, + "63": { + start: { + line: 304, + column: 2 + }, + end: { + line: 304, + column: 42 + } + }, + "64": { + start: { + line: 305, + column: 2 + }, + end: { + line: 305, + column: 44 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 126, + column: 3 + }, + end: { + line: 126, + column: 4 + } + }, + loc: { + start: { + line: 126, + column: 13 + }, + end: { + line: 128, + column: 4 + } + }, + line: 126 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 133, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + loc: { + start: { + line: 133, + column: 13 + }, + end: { + line: 135, + column: 4 + } + }, + line: 133 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 4 + } + }, + loc: { + start: { + line: 140, + column: 13 + }, + end: { + line: 148, + column: 4 + } + }, + line: 140 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 159, + column: 3 + }, + end: { + line: 159, + column: 4 + } + }, + loc: { + start: { + line: 159, + column: 20 + }, + end: { + line: 161, + column: 4 + } + }, + line: 159 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 165, + column: 1 + }, + end: { + line: 165, + column: 2 + } + }, + loc: { + start: { + line: 165, + column: 8 + }, + end: { + line: 172, + column: 2 + } + }, + line: 165 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 175, + column: 2 + }, + end: { + line: 175, + column: 3 + } + }, + loc: { + start: { + line: 175, + column: 11 + }, + end: { + line: 179, + column: 3 + } + }, + line: 175 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 185, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + loc: { + start: { + line: 185, + column: 31 + }, + end: { + line: 201, + column: 4 + } + }, + line: 185 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 192, + column: 20 + }, + end: { + line: 192, + column: 21 + } + }, + loc: { + start: { + line: 192, + column: 26 + }, + end: { + line: 199, + column: 6 + } + }, + line: 192 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 195, + column: 28 + }, + end: { + line: 195, + column: 29 + } + }, + loc: { + start: { + line: 195, + column: 34 + }, + end: { + line: 195, + column: 36 + } + }, + line: 195 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 195, + column: 38 + }, + end: { + line: 195, + column: 39 + } + }, + loc: { + start: { + line: 195, + column: 44 + }, + end: { + line: 195, + column: 46 + } + }, + line: 195 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 202, + column: 14 + }, + end: { + line: 202, + column: 15 + } + }, + loc: { + start: { + line: 202, + column: 20 + }, + end: { + line: 204, + column: 4 + } + }, + line: 202 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 209, + column: 2 + }, + end: { + line: 209, + column: 3 + } + }, + loc: { + start: { + line: 209, + column: 39 + }, + end: { + line: 218, + column: 3 + } + }, + line: 209 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 211, + column: 24 + }, + end: { + line: 211, + column: 25 + } + }, + loc: { + start: { + line: 211, + column: 35 + }, + end: { + line: 216, + column: 5 + } + }, + line: 211 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 221, + column: 2 + }, + end: { + line: 221, + column: 3 + } + }, + loc: { + start: { + line: 221, + column: 51 + }, + end: { + line: 229, + column: 3 + } + }, + line: 221 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 223, + column: 36 + }, + end: { + line: 223, + column: 37 + } + }, + loc: { + start: { + line: 223, + column: 43 + }, + end: { + line: 223, + column: 56 + } + }, + line: 223 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 231, + column: 2 + }, + end: { + line: 231, + column: 3 + } + }, + loc: { + start: { + line: 231, + column: 33 + }, + end: { + line: 233, + column: 3 + } + }, + line: 231 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 236, + column: 2 + }, + end: { + line: 236, + column: 3 + } + }, + loc: { + start: { + line: 236, + column: 13 + }, + end: { + line: 278, + column: 3 + } + }, + line: 236 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 237, + column: 22 + }, + end: { + line: 237, + column: 23 + } + }, + loc: { + start: { + line: 237, + column: 43 + }, + end: { + line: 277, + column: 4 + } + }, + line: 237 + }, + "18": { + name: "(anonymous_18)", + decl: { + start: { + line: 244, + column: 45 + }, + end: { + line: 244, + column: 46 + } + }, + loc: { + start: { + line: 244, + column: 51 + }, + end: { + line: 248, + column: 5 + } + }, + line: 244 + }, + "19": { + name: "(anonymous_19)", + decl: { + start: { + line: 250, + column: 20 + }, + end: { + line: 250, + column: 21 + } + }, + loc: { + start: { + line: 250, + column: 51 + }, + end: { + line: 271, + column: 5 + } + }, + line: 250 + }, + "20": { + name: "(anonymous_20)", + decl: { + start: { + line: 281, + column: 2 + }, + end: { + line: 281, + column: 3 + } + }, + loc: { + start: { + line: 281, + column: 26 + }, + end: { + line: 284, + column: 3 + } + }, + line: 281 + }, + "21": { + name: "(anonymous_21)", + decl: { + start: { + line: 287, + column: 1 + }, + end: { + line: 287, + column: 2 + } + }, + loc: { + start: { + line: 287, + column: 11 + }, + end: { + line: 299, + column: 2 + } + }, + line: 287 + }, + "22": { + name: "(anonymous_22)", + decl: { + start: { + line: 293, + column: 41 + }, + end: { + line: 293, + column: 42 + } + }, + loc: { + start: { + line: 293, + column: 47 + }, + end: { + line: 295, + column: 3 + } + }, + line: 293 + }, + "23": { + name: "(anonymous_23)", + decl: { + start: { + line: 296, + column: 43 + }, + end: { + line: 296, + column: 44 + } + }, + loc: { + start: { + line: 296, + column: 49 + }, + end: { + line: 298, + column: 3 + } + }, + line: 296 + }, + "24": { + name: "(anonymous_24)", + decl: { + start: { + line: 300, + column: 1 + }, + end: { + line: 300, + column: 2 + } + }, + loc: { + start: { + line: 300, + column: 17 + }, + end: { + line: 306, + column: 2 + } + }, + line: 300 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }], + line: 176 + }, + "1": { + loc: { + start: { + line: 176, + column: 7 + }, + end: { + line: 176, + column: 40 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 176, + column: 7 + }, + end: { + line: 176, + column: 18 + } + }, { + start: { + line: 176, + column: 22 + }, + end: { + line: 176, + column: 40 + } + }], + line: 176 + }, + "2": { + loc: { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }], + line: 186 + }, + "3": { + loc: { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }], + line: 191 + }, + "4": { + loc: { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }], + line: 194 + }, + "5": { + loc: { + start: { + line: 194, + column: 10 + }, + end: { + line: 194, + column: 77 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 194, + column: 10 + }, + end: { + line: 194, + column: 49 + } + }, { + start: { + line: 194, + column: 53 + }, + end: { + line: 194, + column: 77 + } + }], + line: 194 + }, + "6": { + loc: { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }], + line: 210 + }, + "7": { + loc: { + start: { + line: 210, + column: 7 + }, + end: { + line: 210, + column: 53 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 210, + column: 7 + }, + end: { + line: 210, + column: 27 + } + }, { + start: { + line: 210, + column: 31 + }, + end: { + line: 210, + column: 53 + } + }], + line: 210 + }, + "8": { + loc: { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }], + line: 255 + }, + "9": { + loc: { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }], + line: 257 + }, + "10": { + loc: { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }], + line: 265 + }, + "11": { + loc: { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }], + line: 272 + }, + "12": { + loc: { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }], + line: 288 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ var formGeneratorvue_type_script_lang_js_ = ({ + name: "form-generator", + components: { + formGroup: formGroup, + formElement: formElement + }, + props: { + schema: { + type: Object, + default: function _default() { + cov_ordn025cj.f[0]++; + cov_ordn025cj.s[0]++; + return {}; + } + }, + model: { + type: Object, + default: function _default() { + cov_ordn025cj.f[1]++; + cov_ordn025cj.s[1]++; + return {}; + } + }, + options: { + type: Object, + default: function _default() { + cov_ordn025cj.f[2]++; + cov_ordn025cj.s[2]++; + return { + validateAfterLoad: false, + validateAsync: false, + validateAfterChanged: false, + validationErrorClass: "error", + validationSuccessClass: "" + }; + } + }, + isNewModel: { + type: Boolean, + default: false + }, + tag: { + type: String, + default: "fieldset", + validator: function validator(value) { + cov_ordn025cj.f[3]++; + cov_ordn025cj.s[3]++; + return value.length > 0; + } + } + }, + data: function data() { + cov_ordn025cj.f[4]++; + var eventBus = (cov_ordn025cj.s[4]++, new external_commonjs_vue_commonjs2_vue_root_Vue_default.a()); + cov_ordn025cj.s[5]++; + return { + eventBus: eventBus, + totalNumberOfFields: 0, + errors: [] // Validation errors + + }; + }, + computed: { + fields: function fields() { + cov_ordn025cj.f[5]++; + cov_ordn025cj.s[6]++; + + if ((cov_ordn025cj.b[1][0]++, this.schema) && (cov_ordn025cj.b[1][1]++, this.schema.fields)) { + cov_ordn025cj.b[0][0]++; + cov_ordn025cj.s[7]++; + return this.schema.fields; + } else { + cov_ordn025cj.b[0][1]++; + } + } + }, + watch: { + // new model loaded + model: { + handler: function handler(newModel, oldModel) { + var _this = this; + + cov_ordn025cj.f[6]++; + cov_ordn025cj.s[8]++; + + if (oldModel === newModel) { + cov_ordn025cj.b[2][0]++; + cov_ordn025cj.s[9]++; + // model property changed, skip + return; + } else { + cov_ordn025cj.b[2][1]++; + } + + cov_ordn025cj.s[10]++; + + if (newModel != null) { + cov_ordn025cj.b[3][0]++; + cov_ordn025cj.s[11]++; + this.$nextTick(function () { + cov_ordn025cj.f[7]++; + cov_ordn025cj.s[12]++; + + // Model changed! + if ((cov_ordn025cj.b[5][0]++, _this.options.validateAfterLoad === true) && (cov_ordn025cj.b[5][1]++, _this.isNewModel !== true)) { + cov_ordn025cj.b[4][0]++; + cov_ordn025cj.s[13]++; + + _this.validate().then(function () { + cov_ordn025cj.f[8]++; + }, function () { + cov_ordn025cj.f[9]++; + }); + } else { + cov_ordn025cj.b[4][1]++; + cov_ordn025cj.s[14]++; + + _this.clearValidationErrors(); + } + }); + } else { + cov_ordn025cj.b[3][1]++; + } + }, + immediate: function immediate() { + cov_ordn025cj.f[10]++; + cov_ordn025cj.s[15]++; + return true; + } + } + }, + methods: { + fillErrors: function fillErrors(fieldErrors, errors, uid) { + cov_ordn025cj.f[11]++; + cov_ordn025cj.s[16]++; + + if ((cov_ordn025cj.b[7][0]++, isArray_default()(fieldErrors)) && (cov_ordn025cj.b[7][1]++, fieldErrors.length > 0)) { + cov_ordn025cj.b[6][0]++; + cov_ordn025cj.s[17]++; + fieldErrors.forEach(function (error) { + cov_ordn025cj.f[12]++; + cov_ordn025cj.s[18]++; + errors.push({ + uid: uid, + error: error + }); + }); + } else { + cov_ordn025cj.b[6][1]++; + } + }, + // Child field executed validation + onFieldValidated: function onFieldValidated(fieldIsValid, fieldErrors, uid) { + cov_ordn025cj.f[13]++; + cov_ordn025cj.s[19]++; + // Remove old errors for this field + this.errors = this.errors.filter(function (e) { + cov_ordn025cj.f[14]++; + cov_ordn025cj.s[20]++; + return e.uid !== uid; + }); + cov_ordn025cj.s[21]++; + this.fillErrors(fieldErrors, this.errors, uid); + var isValid = (cov_ordn025cj.s[22]++, this.errors.length === 0); + cov_ordn025cj.s[23]++; + this.$emit("validated", isValid, this.errors, this); + }, + onModelUpdated: function onModelUpdated(newVal, schema) { + cov_ordn025cj.f[15]++; + cov_ordn025cj.s[24]++; + this.$emit("model-updated", newVal, schema); + }, + // Validating the model properties + validate: function validate() { + var _this2 = this; + + cov_ordn025cj.f[16]++; + cov_ordn025cj.s[25]++; + return new Promise(function (resolve, reject) { + cov_ordn025cj.f[17]++; + cov_ordn025cj.s[26]++; + + _this2.clearValidationErrors(); + + var fieldsValidated = (cov_ordn025cj.s[27]++, 0); + var formErrors = (cov_ordn025cj.s[28]++, []); + cov_ordn025cj.s[29]++; + + _this2.eventBus.$on("field-deregistering", function () { + cov_ordn025cj.f[18]++; + cov_ordn025cj.s[30]++; + + // console.warn("Fields were deleted during validation process"); + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + cov_ordn025cj.s[31]++; + reject(formErrors); + }); + + cov_ordn025cj.s[32]++; + + var counter = function counter(isValid, fieldErrors, uid) { + cov_ordn025cj.f[19]++; + cov_ordn025cj.s[33]++; + fieldsValidated++; + cov_ordn025cj.s[34]++; + + _this2.fillErrors(fieldErrors, formErrors, uid); + + cov_ordn025cj.s[35]++; + + if (fieldsValidated === _this2.totalNumberOfFields) { + cov_ordn025cj.b[8][0]++; + cov_ordn025cj.s[36]++; + + _this2.eventBus.$off("field-validated", counter); + + cov_ordn025cj.s[37]++; + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[9][0]++; + cov_ordn025cj.s[38]++; + + _this2.eventBus.$on("field-validated", _this2.onFieldValidated); + } else { + cov_ordn025cj.b[9][1]++; + } + + cov_ordn025cj.s[39]++; + _this2.errors = formErrors; + + var _isValid = (cov_ordn025cj.s[40]++, formErrors.length === 0); + + cov_ordn025cj.s[41]++; + + _this2.$emit("validated", _isValid, formErrors, _this2); + + cov_ordn025cj.s[42]++; + + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + cov_ordn025cj.s[43]++; + + if (_isValid) { + cov_ordn025cj.b[10][0]++; + cov_ordn025cj.s[44]++; + resolve(); + } else { + cov_ordn025cj.b[10][1]++; + cov_ordn025cj.s[45]++; + reject(formErrors); + } + } else { + cov_ordn025cj.b[8][1]++; + } + }; + + cov_ordn025cj.s[46]++; + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[11][0]++; + cov_ordn025cj.s[47]++; + + _this2.eventBus.$off("field-validated", _this2.onFieldValidated); + } else { + cov_ordn025cj.b[11][1]++; + } + + cov_ordn025cj.s[48]++; + + _this2.eventBus.$on("field-validated", counter); + + cov_ordn025cj.s[49]++; + + _this2.eventBus.$emit("validate-fields", _this2); + }); + }, + // Clear validation errors + clearValidationErrors: function clearValidationErrors() { + cov_ordn025cj.f[20]++; + cov_ordn025cj.s[50]++; + this.errors.splice(0); + cov_ordn025cj.s[51]++; + this.eventBus.$emit("clear-validation-errors", this.clearValidationErrors); + } + }, + created: function created() { + var _this3 = this; + + cov_ordn025cj.f[21]++; + cov_ordn025cj.s[52]++; + + if (get_default()(this.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[12][0]++; + cov_ordn025cj.s[53]++; + this.eventBus.$on("field-validated", this.onFieldValidated); + } else { + cov_ordn025cj.b[12][1]++; + } + + cov_ordn025cj.s[54]++; + this.eventBus.$on("model-updated", this.onModelUpdated); + cov_ordn025cj.s[55]++; + this.eventBus.$on("fields-validation-trigger", this.validate); + cov_ordn025cj.s[56]++; + this.eventBus.$on("field-registering", function () { + cov_ordn025cj.f[22]++; + cov_ordn025cj.s[57]++; + _this3.totalNumberOfFields = _this3.totalNumberOfFields + 1; + }); + cov_ordn025cj.s[58]++; + this.eventBus.$on("field-deregistering", function () { + cov_ordn025cj.f[23]++; + cov_ordn025cj.s[59]++; + _this3.totalNumberOfFields = _this3.totalNumberOfFields - 1; + }); + }, + beforeDestroy: function beforeDestroy() { + cov_ordn025cj.f[24]++; + cov_ordn025cj.s[60]++; + this.eventBus.$off("field-validated"); + cov_ordn025cj.s[61]++; + this.eventBus.$off("model-updated"); + cov_ordn025cj.s[62]++; + this.eventBus.$off("fields-validation-trigger"); + cov_ordn025cj.s[63]++; + this.eventBus.$off("field-registering"); + cov_ordn025cj.s[64]++; + 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 = normalizeComponent( + src_formGeneratorvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +formGenerator_component.options.__file = "formGenerator.vue" +/* harmony default export */ var formGenerator = (formGenerator_component.exports); +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js +var es6_array_iterator = __webpack_require__("cadf"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js +var es6_object_keys = __webpack_require__("456d"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js +var es6_regexp_constructor = __webpack_require__("3b2b"); + +// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js +var isInteger = __webpack_require__("697e"); +var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); + +// 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/defaults.js +var defaults = __webpack_require__("95ae"); +var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); + +// EXTERNAL MODULE: ./node_modules/fecha/fecha.js +var fecha = __webpack_require__("9e99"); +var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); + +// CONCATENATED MODULE: ./src/utils/validators.js +var cov_1fcwr61zql = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\validators.js", + hash = "52f5775a27146fed9d406240542b06f3a114a90f", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\validators.js", + statementMap: { + "0": { + start: { + line: 4, + column: 16 + }, + end: { + line: 34, + column: 1 + } + }, + "1": { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, + "2": { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, + "3": { + start: { + line: 39, + column: 3 + }, + end: { + line: 39, + column: 42 + } + }, + "4": { + start: { + line: 41, + column: 3 + }, + end: { + line: 41, + column: 13 + } + }, + "5": { + start: { + line: 44, + column: 1 + }, + end: { + line: 44, + column: 13 + } + }, + "6": { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, + "7": { + start: { + line: 49, + column: 2 + }, + end: { + line: 51, + column: 3 + } + }, + "8": { + start: { + line: 50, + column: 3 + }, + end: { + line: 50, + column: 58 + } + }, + "9": { + start: { + line: 54, + column: 1 + }, + end: { + line: 54, + column: 13 + } + }, + "10": { + start: { + line: 57, + column: 19 + }, + end: { + line: 265, + column: 1 + } + }, + "11": { + start: { + line: 61, + column: 2 + }, + end: { + line: 61, + column: 53 + } + }, + "12": { + start: { + line: 65, + column: 12 + }, + end: { + line: 65, + column: 55 + } + }, + "13": { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, + "14": { + start: { + line: 67, + column: 3 + }, + end: { + line: 67, + column: 14 + } + }, + "15": { + start: { + line: 70, + column: 12 + }, + end: { + line: 70, + column: 14 + } + }, + "16": { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + "17": { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, + "18": { + start: { + line: 73, + column: 4 + }, + end: { + line: 73, + column: 67 + } + }, + "19": { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + "20": { + start: { + line: 77, + column: 4 + }, + end: { + line: 77, + column: 65 + } + }, + "21": { + start: { + line: 80, + column: 3 + }, + end: { + line: 80, + column: 41 + } + }, + "22": { + start: { + line: 83, + column: 2 + }, + end: { + line: 83, + column: 13 + } + }, + "23": { + start: { + line: 87, + column: 12 + }, + end: { + line: 87, + column: 55 + } + }, + "24": { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, + "25": { + start: { + line: 88, + column: 19 + }, + end: { + line: 88, + column: 30 + } + }, + "26": { + start: { + line: 89, + column: 13 + }, + end: { + line: 89, + column: 61 + } + }, + "27": { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, + "28": { + start: { + line: 92, + column: 3 + }, + end: { + line: 92, + column: 43 + } + }, + "29": { + start: { + line: 95, + column: 2 + }, + end: { + line: 95, + column: 14 + } + }, + "30": { + start: { + line: 99, + column: 12 + }, + end: { + line: 99, + column: 55 + } + }, + "31": { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, + "32": { + start: { + line: 100, + column: 19 + }, + end: { + line: 100, + column: 30 + } + }, + "33": { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, + "34": { + start: { + line: 103, + column: 3 + }, + end: { + line: 103, + column: 40 + } + }, + "35": { + start: { + line: 108, + column: 12 + }, + end: { + line: 108, + column: 55 + } + }, + "36": { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, + "37": { + start: { + line: 109, + column: 19 + }, + end: { + line: 109, + column: 30 + } + }, + "38": { + start: { + line: 111, + column: 12 + }, + end: { + line: 111, + column: 14 + } + }, + "39": { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + "40": { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "41": { + start: { + line: 114, + column: 4 + }, + end: { + line: 114, + column: 79 + } + }, + "42": { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + "43": { + start: { + line: 118, + column: 4 + }, + end: { + line: 118, + column: 77 + } + }, + "44": { + start: { + line: 121, + column: 3 + }, + end: { + line: 121, + column: 39 + } + }, + "45": { + start: { + line: 124, + column: 2 + }, + end: { + line: 124, + column: 13 + } + }, + "46": { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, + "47": { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, + "48": { + start: { + line: 130, + column: 4 + }, + end: { + line: 130, + column: 40 + } + }, + "49": { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, + "50": { + start: { + line: 134, + column: 4 + }, + end: { + line: 134, + column: 43 + } + }, + "51": { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, + "52": { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, + "53": { + start: { + line: 140, + column: 4 + }, + end: { + line: 140, + column: 66 + } + }, + "54": { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "55": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 66 + } + }, + "56": { + start: { + line: 150, + column: 12 + }, + end: { + line: 150, + column: 55 + } + }, + "57": { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, + "58": { + start: { + line: 151, + column: 19 + }, + end: { + line: 151, + column: 30 + } + }, + "59": { + start: { + line: 153, + column: 10 + }, + end: { + line: 153, + column: 25 + } + }, + "60": { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, + "61": { + start: { + line: 155, + column: 3 + }, + end: { + line: 155, + column: 38 + } + }, + "62": { + start: { + line: 158, + column: 12 + }, + end: { + line: 158, + column: 14 + } + }, + "63": { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + "64": { + start: { + line: 161, + column: 13 + }, + end: { + line: 161, + column: 45 + } + }, + "65": { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, + "66": { + start: { + line: 163, + column: 4 + }, + end: { + line: 163, + column: 76 + } + }, + "67": { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, + "68": { + start: { + line: 168, + column: 13 + }, + end: { + line: 168, + column: 45 + } + }, + "69": { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, + "70": { + start: { + line: 170, + column: 4 + }, + end: { + line: 170, + column: 75 + } + }, + "71": { + start: { + line: 174, + column: 2 + }, + end: { + line: 174, + column: 13 + } + }, + "72": { + start: { + line: 178, + column: 12 + }, + end: { + line: 178, + column: 55 + } + }, + "73": { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, + "74": { + start: { + line: 179, + column: 19 + }, + end: { + line: 179, + column: 30 + } + }, + "75": { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, + "76": { + start: { + line: 182, + column: 12 + }, + end: { + line: 182, + column: 37 + } + }, + "77": { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + "78": { + start: { + line: 184, + column: 4 + }, + end: { + line: 184, + column: 41 + } + }, + "79": { + start: { + line: 190, + column: 12 + }, + end: { + line: 190, + column: 55 + } + }, + "80": { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, + "81": { + start: { + line: 191, + column: 19 + }, + end: { + line: 191, + column: 30 + } + }, + "82": { + start: { + line: 193, + column: 11 + }, + end: { + line: 193, + column: 163 + } + }, + "83": { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, + "84": { + start: { + line: 195, + column: 3 + }, + end: { + line: 195, + column: 39 + } + }, + "85": { + start: { + line: 200, + column: 12 + }, + end: { + line: 200, + column: 55 + } + }, + "86": { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, + "87": { + start: { + line: 201, + column: 19 + }, + end: { + line: 201, + column: 30 + } + }, + "88": { + start: { + line: 203, + column: 11 + }, + end: { + line: 203, + column: 105 + } + }, + "89": { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, + "90": { + start: { + line: 205, + column: 3 + }, + end: { + line: 205, + column: 37 + } + }, + "91": { + start: { + line: 210, + column: 12 + }, + end: { + line: 210, + column: 55 + } + }, + "92": { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, + "93": { + start: { + line: 211, + column: 19 + }, + end: { + line: 211, + column: 30 + } + }, + "94": { + start: { + line: 216, + column: 21 + }, + end: { + line: 216, + column: 172 + } + }, + "95": { + start: { + line: 217, + column: 20 + }, + end: { + line: 217, + column: 49 + } + }, + "96": { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, + "97": { + start: { + line: 219, + column: 3 + }, + end: { + line: 219, + column: 38 + } + }, + "98": { + start: { + line: 221, + column: 12 + }, + end: { + line: 221, + column: 13 + } + }, + "99": { + start: { + line: 225, + column: 2 + }, + end: { + line: 239, + column: 3 + } + }, + "100": { + start: { + line: 226, + column: 3 + }, + end: { + line: 226, + column: 41 + } + }, + "101": { + start: { + line: 227, + column: 3 + }, + end: { + line: 227, + column: 32 + } + }, + "102": { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, + "103": { + start: { + line: 229, + column: 4 + }, + end: { + line: 229, + column: 16 + } + }, + "104": { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, + "105": { + start: { + line: 231, + column: 5 + }, + end: { + line: 231, + column: 30 + } + }, + "106": { + start: { + line: 233, + column: 5 + }, + end: { + line: 233, + column: 19 + } + }, + "107": { + start: { + line: 236, + column: 4 + }, + end: { + line: 236, + column: 18 + } + }, + "108": { + start: { + line: 238, + column: 3 + }, + end: { + line: 238, + column: 32 + } + }, + "109": { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, + "110": { + start: { + line: 242, + column: 3 + }, + end: { + line: 242, + column: 44 + } + }, + "111": { + start: { + line: 247, + column: 12 + }, + end: { + line: 247, + column: 55 + } + }, + "112": { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, + "113": { + start: { + line: 248, + column: 19 + }, + end: { + line: 248, + column: 30 + } + }, + "114": { + start: { + line: 250, + column: 11 + }, + end: { + line: 250, + column: 24 + } + }, + "115": { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, + "116": { + start: { + line: 252, + column: 3 + }, + end: { + line: 252, + column: 51 + } + }, + "117": { + start: { + line: 257, + column: 12 + }, + end: { + line: 257, + column: 55 + } + }, + "118": { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, + "119": { + start: { + line: 258, + column: 19 + }, + end: { + line: 258, + column: 30 + } + }, + "120": { + start: { + line: 260, + column: 11 + }, + end: { + line: 260, + column: 27 + } + }, + "121": { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, + "122": { + start: { + line: 262, + column: 3 + }, + end: { + line: 262, + column: 49 + } + }, + "123": { + start: { + line: 267, + column: 0 + }, + end: { + line: 273, + column: 3 + } + }, + "124": { + start: { + line: 268, + column: 12 + }, + end: { + line: 268, + column: 28 + } + }, + "125": { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, + "126": { + start: { + line: 270, + column: 2 + }, + end: { + line: 271, + column: 64 + } + }, + "127": { + start: { + line: 270, + column: 34 + }, + end: { + line: 271, + column: 63 + } + }, + "128": { + start: { + line: 271, + column: 3 + }, + end: { + line: 271, + column: 63 + } + } + }, + fnMap: { + "0": { + name: "checkEmpty", + decl: { + start: { + line: 36, + column: 9 + }, + end: { + line: 36, + column: 19 + } + }, + loc: { + start: { + line: 36, + column: 59 + }, + end: { + line: 45, + column: 1 + } + }, + line: 36 + }, + "1": { + name: "msg", + decl: { + start: { + line: 47, + column: 9 + }, + end: { + line: 47, + column: 12 + } + }, + loc: { + start: { + line: 47, + column: 19 + }, + end: { + line: 55, + column: 1 + } + }, + line: 47 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 60, + column: 1 + }, + end: { + line: 60, + column: 2 + } + }, + loc: { + start: { + line: 60, + column: 53 + }, + end: { + line: 62, + column: 2 + } + }, + line: 60 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 64, + column: 1 + }, + end: { + line: 64, + column: 2 + } + }, + loc: { + start: { + line: 64, + column: 51 + }, + end: { + line: 84, + column: 2 + } + }, + line: 64 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 86, + column: 1 + }, + end: { + line: 86, + column: 2 + } + }, + loc: { + start: { + line: 86, + column: 52 + }, + end: { + line: 96, + column: 2 + } + }, + line: 86 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 98, + column: 1 + }, + end: { + line: 98, + column: 2 + } + }, + loc: { + start: { + line: 98, + column: 51 + }, + end: { + line: 105, + column: 2 + } + }, + line: 98 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 107, + column: 1 + }, + end: { + line: 107, + column: 2 + } + }, + loc: { + start: { + line: 107, + column: 51 + }, + end: { + line: 125, + column: 2 + } + }, + line: 107 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 127, + column: 1 + }, + end: { + line: 127, + column: 2 + } + }, + loc: { + start: { + line: 127, + column: 50 + }, + end: { + line: 147, + column: 2 + } + }, + line: 127 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 149, + column: 1 + }, + end: { + line: 149, + column: 2 + } + }, + loc: { + start: { + line: 149, + column: 49 + }, + end: { + line: 175, + column: 2 + } + }, + line: 149 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 177, + column: 1 + }, + end: { + line: 177, + column: 2 + } + }, + loc: { + start: { + line: 177, + column: 51 + }, + end: { + line: 187, + column: 2 + } + }, + line: 177 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 189, + column: 1 + }, + end: { + line: 189, + column: 2 + } + }, + loc: { + start: { + line: 189, + column: 50 + }, + end: { + line: 197, + column: 2 + } + }, + line: 189 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 199, + column: 1 + }, + end: { + line: 199, + column: 2 + } + }, + loc: { + start: { + line: 199, + column: 48 + }, + end: { + line: 207, + column: 2 + } + }, + line: 199 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 209, + column: 1 + }, + end: { + line: 209, + column: 2 + } + }, + loc: { + start: { + line: 209, + column: 55 + }, + end: { + line: 244, + column: 2 + } + }, + line: 209 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 246, + column: 1 + }, + end: { + line: 246, + column: 2 + } + }, + loc: { + start: { + line: 246, + column: 50 + }, + end: { + line: 254, + column: 2 + } + }, + line: 246 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 256, + column: 1 + }, + end: { + line: 256, + column: 2 + } + }, + loc: { + start: { + line: 256, + column: 57 + }, + end: { + line: 264, + column: 2 + } + }, + line: 256 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 267, + column: 32 + }, + end: { + line: 267, + column: 33 + } + }, + loc: { + start: { + line: 267, + column: 42 + }, + end: { + line: 273, + column: 1 + } + }, + line: 267 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 270, + column: 14 + }, + end: { + line: 270, + column: 15 + } + }, + loc: { + start: { + line: 270, + column: 34 + }, + end: { + line: 271, + column: 63 + } + }, + line: 270 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 270, + column: 34 + }, + end: { + line: 270, + column: 35 + } + }, + loc: { + start: { + line: 271, + column: 3 + }, + end: { + line: 271, + column: 63 + } + }, + line: 271 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 36, + column: 37 + }, + end: { + line: 36, + column: 57 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 36, + column: 48 + }, + end: { + line: 36, + column: 57 + } + }], + line: 36 + }, + "1": { + loc: { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }], + line: 37 + }, + "2": { + loc: { + start: { + line: 37, + column: 5 + }, + end: { + line: 37, + column: 33 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 37, + column: 5 + }, + end: { + line: 37, + column: 17 + } + }, { + start: { + line: 37, + column: 21 + }, + end: { + line: 37, + column: 33 + } + }], + line: 37 + }, + "3": { + loc: { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }], + line: 38 + }, + "4": { + loc: { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }], + line: 48 + }, + "5": { + loc: { + start: { + line: 48, + column: 5 + }, + end: { + line: 48, + column: 41 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 48, + column: 5 + }, + end: { + line: 48, + column: 17 + } + }, { + start: { + line: 48, + column: 21 + }, + end: { + line: 48, + column: 41 + } + }], + line: 48 + }, + "6": { + loc: { + start: { + line: 60, + column: 31 + }, + end: { + line: 60, + column: 51 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 60, + column: 42 + }, + end: { + line: 60, + column: 51 + } + }], + line: 60 + }, + "7": { + loc: { + start: { + line: 64, + column: 29 + }, + end: { + line: 64, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 64, + column: 40 + }, + end: { + line: 64, + column: 49 + } + }], + line: 64 + }, + "8": { + loc: { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }], + line: 66 + }, + "9": { + loc: { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }], + line: 71 + }, + "10": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }], + line: 72 + }, + "11": { + loc: { + start: { + line: 72, + column: 7 + }, + end: { + line: 72, + column: 101 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 72, + column: 7 + }, + end: { + line: 72, + column: 33 + } + }, { + start: { + line: 72, + column: 37 + }, + end: { + line: 72, + column: 67 + } + }, { + start: { + line: 72, + column: 71 + }, + end: { + line: 72, + column: 101 + } + }], + line: 72 + }, + "12": { + loc: { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }], + line: 76 + }, + "13": { + loc: { + start: { + line: 76, + column: 7 + }, + end: { + line: 76, + column: 101 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 76, + column: 7 + }, + end: { + line: 76, + column: 33 + } + }, { + start: { + line: 76, + column: 37 + }, + end: { + line: 76, + column: 67 + } + }, { + start: { + line: 76, + column: 71 + }, + end: { + line: 76, + column: 101 + } + }], + line: 76 + }, + "14": { + loc: { + start: { + line: 86, + column: 30 + }, + end: { + line: 86, + column: 50 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 86, + column: 41 + }, + end: { + line: 86, + column: 50 + } + }], + line: 86 + }, + "15": { + loc: { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }], + line: 88 + }, + "16": { + loc: { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }], + line: 91 + }, + "17": { + loc: { + start: { + line: 98, + column: 29 + }, + end: { + line: 98, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 98, + column: 40 + }, + end: { + line: 98, + column: 49 + } + }], + line: 98 + }, + "18": { + loc: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }], + line: 100 + }, + "19": { + loc: { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }], + line: 102 + }, + "20": { + loc: { + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 38 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 22 + } + }, { + start: { + line: 102, + column: 26 + }, + end: { + line: 102, + column: 38 + } + }], + line: 102 + }, + "21": { + loc: { + start: { + line: 107, + column: 29 + }, + end: { + line: 107, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 107, + column: 40 + }, + end: { + line: 107, + column: 49 + } + }], + line: 107 + }, + "22": { + loc: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }], + line: 109 + }, + "23": { + loc: { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }], + line: 112 + }, + "24": { + loc: { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }], + line: 113 + }, + "25": { + loc: { + start: { + line: 113, + column: 7 + }, + end: { + line: 113, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 113, + column: 7 + }, + end: { + line: 113, + column: 37 + } + }, { + start: { + line: 113, + column: 41 + }, + end: { + line: 113, + column: 78 + } + }], + line: 113 + }, + "26": { + loc: { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }], + line: 117 + }, + "27": { + loc: { + start: { + line: 117, + column: 7 + }, + end: { + line: 117, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 117, + column: 7 + }, + end: { + line: 117, + column: 37 + } + }, { + start: { + line: 117, + column: 41 + }, + end: { + line: 117, + column: 78 + } + }], + line: 117 + }, + "28": { + loc: { + start: { + line: 127, + column: 28 + }, + end: { + line: 127, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 127, + column: 39 + }, + end: { + line: 127, + column: 48 + } + }], + line: 127 + }, + "29": { + loc: { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }], + line: 128 + }, + "30": { + loc: { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }], + line: 129 + }, + "31": { + loc: { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }], + line: 133 + }, + "32": { + loc: { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }], + line: 138 + }, + "33": { + loc: { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }], + line: 139 + }, + "34": { + loc: { + start: { + line: 139, + column: 7 + }, + end: { + line: 139, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 139, + column: 7 + }, + end: { + line: 139, + column: 37 + } + }, { + start: { + line: 139, + column: 41 + }, + end: { + line: 139, + column: 78 + } + }], + line: 139 + }, + "35": { + loc: { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 143 + }, + "36": { + loc: { + start: { + line: 143, + column: 7 + }, + end: { + line: 143, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 143, + column: 7 + }, + end: { + line: 143, + column: 37 + } + }, { + start: { + line: 143, + column: 41 + }, + end: { + line: 143, + column: 78 + } + }], + line: 143 + }, + "37": { + loc: { + start: { + line: 149, + column: 27 + }, + end: { + line: 149, + column: 47 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 149, + column: 38 + }, + end: { + line: 149, + column: 47 + } + }], + line: 149 + }, + "38": { + loc: { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }], + line: 151 + }, + "39": { + loc: { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }], + line: 154 + }, + "40": { + loc: { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }], + line: 160 + }, + "41": { + loc: { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }], + line: 162 + }, + "42": { + loc: { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }], + line: 167 + }, + "43": { + loc: { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }], + line: 169 + }, + "44": { + loc: { + start: { + line: 177, + column: 29 + }, + end: { + line: 177, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 177, + column: 40 + }, + end: { + line: 177, + column: 49 + } + }], + line: 177 + }, + "45": { + loc: { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }], + line: 179 + }, + "46": { + loc: { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }], + line: 181 + }, + "47": { + loc: { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }], + line: 183 + }, + "48": { + loc: { + start: { + line: 189, + column: 28 + }, + end: { + line: 189, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 189, + column: 39 + }, + end: { + line: 189, + column: 48 + } + }], + line: 189 + }, + "49": { + loc: { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }], + line: 191 + }, + "50": { + loc: { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }], + line: 194 + }, + "51": { + loc: { + start: { + line: 199, + column: 26 + }, + end: { + line: 199, + column: 46 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 199, + column: 37 + }, + end: { + line: 199, + column: 46 + } + }], + line: 199 + }, + "52": { + loc: { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }], + line: 201 + }, + "53": { + loc: { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }], + line: 204 + }, + "54": { + loc: { + start: { + line: 209, + column: 33 + }, + end: { + line: 209, + column: 53 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 209, + column: 44 + }, + end: { + line: 209, + column: 53 + } + }], + line: 209 + }, + "55": { + loc: { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }], + line: 211 + }, + "56": { + loc: { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }], + line: 218 + }, + "57": { + loc: { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }], + line: 228 + }, + "58": { + loc: { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }], + line: 230 + }, + "59": { + loc: { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }], + line: 241 + }, + "60": { + loc: { + start: { + line: 241, + column: 8 + }, + end: { + line: 241, + column: 42 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 241, + column: 25 + }, + end: { + line: 241, + column: 34 + } + }, { + start: { + line: 241, + column: 37 + }, + end: { + line: 241, + column: 42 + } + }], + line: 241 + }, + "61": { + loc: { + start: { + line: 246, + column: 28 + }, + end: { + line: 246, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 246, + column: 39 + }, + end: { + line: 246, + column: 48 + } + }], + line: 246 + }, + "62": { + loc: { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }], + line: 248 + }, + "63": { + loc: { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }], + line: 251 + }, + "64": { + loc: { + start: { + line: 256, + column: 35 + }, + end: { + line: 256, + column: 55 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 256, + column: 46 + }, + end: { + line: 256, + column: 55 + } + }], + line: 256 + }, + "65": { + loc: { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }], + line: 258 + }, + "66": { + loc: { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }], + line: 261 + }, + "67": { + loc: { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }], + line: 269 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0, + "65": 0, + "66": 0, + "67": 0, + "68": 0, + "69": 0, + "70": 0, + "71": 0, + "72": 0, + "73": 0, + "74": 0, + "75": 0, + "76": 0, + "77": 0, + "78": 0, + "79": 0, + "80": 0, + "81": 0, + "82": 0, + "83": 0, + "84": 0, + "85": 0, + "86": 0, + "87": 0, + "88": 0, + "89": 0, + "90": 0, + "91": 0, + "92": 0, + "93": 0, + "94": 0, + "95": 0, + "96": 0, + "97": 0, + "98": 0, + "99": 0, + "100": 0, + "101": 0, + "102": 0, + "103": 0, + "104": 0, + "105": 0, + "106": 0, + "107": 0, + "108": 0, + "109": 0, + "110": 0, + "111": 0, + "112": 0, + "113": 0, + "114": 0, + "115": 0, + "116": 0, + "117": 0, + "118": 0, + "119": 0, + "120": 0, + "121": 0, + "122": 0, + "123": 0, + "124": 0, + "125": 0, + "126": 0, + "127": 0, + "128": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0 + }, + b: { + "0": [0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0], + "7": [0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0, 0], + "12": [0, 0], + "13": [0, 0, 0], + "14": [0], + "15": [0, 0], + "16": [0, 0], + "17": [0], + "18": [0, 0], + "19": [0, 0], + "20": [0, 0], + "21": [0], + "22": [0, 0], + "23": [0, 0], + "24": [0, 0], + "25": [0, 0], + "26": [0, 0], + "27": [0, 0], + "28": [0], + "29": [0, 0], + "30": [0, 0], + "31": [0, 0], + "32": [0, 0], + "33": [0, 0], + "34": [0, 0], + "35": [0, 0], + "36": [0, 0], + "37": [0], + "38": [0, 0], + "39": [0, 0], + "40": [0, 0], + "41": [0, 0], + "42": [0, 0], + "43": [0, 0], + "44": [0], + "45": [0, 0], + "46": [0, 0], + "47": [0, 0], + "48": [0], + "49": [0, 0], + "50": [0, 0], + "51": [0], + "52": [0, 0], + "53": [0, 0], + "54": [0], + "55": [0, 0], + "56": [0, 0], + "57": [0, 0], + "58": [0, 0], + "59": [0, 0], + "60": [0, 0], + "61": [0], + "62": [0, 0], + "63": [0, 0], + "64": [0], + "65": [0, 0], + "66": [0, 0], + "67": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + + + + + + + + + + + +var resources = (cov_1fcwr61zql.s[0]++, { + 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] : (cov_1fcwr61zql.b[0][0]++, resources); + cov_1fcwr61zql.f[0]++; + cov_1fcwr61zql.s[1]++; + + if ((cov_1fcwr61zql.b[2][0]++, isNil_default()(value)) || (cov_1fcwr61zql.b[2][1]++, value === "")) { + cov_1fcwr61zql.b[1][0]++; + cov_1fcwr61zql.s[2]++; + + if (required) { + cov_1fcwr61zql.b[3][0]++; + cov_1fcwr61zql.s[3]++; + return [msg(messages.fieldIsRequired)]; + } else { + cov_1fcwr61zql.b[3][1]++; + cov_1fcwr61zql.s[4]++; + return []; + } + } else { + cov_1fcwr61zql.b[1][1]++; + } + + cov_1fcwr61zql.s[5]++; + return null; +} + +function msg(text) { + cov_1fcwr61zql.f[1]++; + cov_1fcwr61zql.s[6]++; + + if ((cov_1fcwr61zql.b[5][0]++, text != null) && (cov_1fcwr61zql.b[5][1]++, arguments.length > 1)) { + cov_1fcwr61zql.b[4][0]++; + cov_1fcwr61zql.s[7]++; + + for (var i = 1; i < arguments.length; i++) { + cov_1fcwr61zql.s[8]++; + text = text.replace("{" + (i - 1) + "}", arguments[i]); + } + } else { + cov_1fcwr61zql.b[4][1]++; + } + + cov_1fcwr61zql.s[9]++; + return text; +} + +var validators = (cov_1fcwr61zql.s[10]++, { + resources: resources, + required: function required(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[6][0]++, resources); + cov_1fcwr61zql.f[2]++; + cov_1fcwr61zql.s[11]++; + return checkEmpty(value, field.required, messages); + }, + number: function number(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[7][0]++, resources); + cov_1fcwr61zql.f[3]++; + var res = (cov_1fcwr61zql.s[12]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[13]++; + + if (res != null) { + cov_1fcwr61zql.b[8][0]++; + cov_1fcwr61zql.s[14]++; + return res; + } else { + cov_1fcwr61zql.b[8][1]++; + } + + var err = (cov_1fcwr61zql.s[15]++, []); + cov_1fcwr61zql.s[16]++; + + if (isNumber_default()(value)) { + cov_1fcwr61zql.b[9][0]++; + cov_1fcwr61zql.s[17]++; + + if ((cov_1fcwr61zql.b[11][0]++, !isNil_default()(field.fieldOptions)) && (cov_1fcwr61zql.b[11][1]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[11][2]++, value < field.fieldOptions.min)) { + cov_1fcwr61zql.b[10][0]++; + cov_1fcwr61zql.s[18]++; + err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); + } else { + cov_1fcwr61zql.b[10][1]++; + } + + cov_1fcwr61zql.s[19]++; + + if ((cov_1fcwr61zql.b[13][0]++, !isNil_default()(field.fieldOptions)) && (cov_1fcwr61zql.b[13][1]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[13][2]++, value > field.fieldOptions.max)) { + cov_1fcwr61zql.b[12][0]++; + cov_1fcwr61zql.s[20]++; + err.push(msg(messages.numberTooBig, field.fieldOptions.max)); + } else { + cov_1fcwr61zql.b[12][1]++; + } + } else { + cov_1fcwr61zql.b[9][1]++; + cov_1fcwr61zql.s[21]++; + err.push(msg(messages.invalidNumber)); + } + + cov_1fcwr61zql.s[22]++; + return err; + }, + integer: function integer(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[14][0]++, resources); + cov_1fcwr61zql.f[4]++; + var res = (cov_1fcwr61zql.s[23]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[24]++; + + if (res != null) { + cov_1fcwr61zql.b[15][0]++; + cov_1fcwr61zql.s[25]++; + return res; + } else { + cov_1fcwr61zql.b[15][1]++; + } + + var errs = (cov_1fcwr61zql.s[26]++, validators.number(value, field, model, messages)); + cov_1fcwr61zql.s[27]++; + + if (!isInteger_default()(value)) { + cov_1fcwr61zql.b[16][0]++; + cov_1fcwr61zql.s[28]++; + errs.push(msg(messages.invalidInteger)); + } else { + cov_1fcwr61zql.b[16][1]++; + } + + cov_1fcwr61zql.s[29]++; + return errs; + }, + double: function double(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[17][0]++, resources); + cov_1fcwr61zql.f[5]++; + var res = (cov_1fcwr61zql.s[30]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[31]++; + + if (res != null) { + cov_1fcwr61zql.b[18][0]++; + cov_1fcwr61zql.s[32]++; + return res; + } else { + cov_1fcwr61zql.b[18][1]++; + } + + cov_1fcwr61zql.s[33]++; + + if ((cov_1fcwr61zql.b[20][0]++, !isNumber_default()(value)) || (cov_1fcwr61zql.b[20][1]++, isNaN(value))) { + cov_1fcwr61zql.b[19][0]++; + cov_1fcwr61zql.s[34]++; + return [msg(messages.invalidNumber)]; + } else { + cov_1fcwr61zql.b[19][1]++; + } + }, + string: function string(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[21][0]++, resources); + cov_1fcwr61zql.f[6]++; + var res = (cov_1fcwr61zql.s[35]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[36]++; + + if (res != null) { + cov_1fcwr61zql.b[22][0]++; + cov_1fcwr61zql.s[37]++; + return res; + } else { + cov_1fcwr61zql.b[22][1]++; + } + + var err = (cov_1fcwr61zql.s[38]++, []); + cov_1fcwr61zql.s[39]++; + + if (isString_default()(value)) { + cov_1fcwr61zql.b[23][0]++; + cov_1fcwr61zql.s[40]++; + + if ((cov_1fcwr61zql.b[25][0]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[25][1]++, value.length < field.fieldOptions.min)) { + cov_1fcwr61zql.b[24][0]++; + cov_1fcwr61zql.s[41]++; + err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); + } else { + cov_1fcwr61zql.b[24][1]++; + } + + cov_1fcwr61zql.s[42]++; + + if ((cov_1fcwr61zql.b[27][0]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[27][1]++, value.length > field.fieldOptions.max)) { + cov_1fcwr61zql.b[26][0]++; + cov_1fcwr61zql.s[43]++; + err.push(msg(messages.textTooBig, value.length, field.fieldOptions.max)); + } else { + cov_1fcwr61zql.b[26][1]++; + } + } else { + cov_1fcwr61zql.b[23][1]++; + cov_1fcwr61zql.s[44]++; + err.push(msg(messages.thisNotText)); + } + + cov_1fcwr61zql.s[45]++; + return err; + }, + array: function array(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[28][0]++, resources); + cov_1fcwr61zql.f[7]++; + cov_1fcwr61zql.s[46]++; + + if (field.required) { + cov_1fcwr61zql.b[29][0]++; + cov_1fcwr61zql.s[47]++; + + if (!isArray_default()(value)) { + cov_1fcwr61zql.b[30][0]++; + cov_1fcwr61zql.s[48]++; + return [msg(messages.thisNotArray)]; + } else { + cov_1fcwr61zql.b[30][1]++; + } + + cov_1fcwr61zql.s[49]++; + + if (value.length === 0) { + cov_1fcwr61zql.b[31][0]++; + cov_1fcwr61zql.s[50]++; + return [msg(messages.fieldIsRequired)]; + } else { + cov_1fcwr61zql.b[31][1]++; + } + } else { + cov_1fcwr61zql.b[29][1]++; + } + + cov_1fcwr61zql.s[51]++; + + if (!isNil_default()(value)) { + cov_1fcwr61zql.b[32][0]++; + cov_1fcwr61zql.s[52]++; + + if ((cov_1fcwr61zql.b[34][0]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[34][1]++, value.length < field.fieldOptions.min)) { + cov_1fcwr61zql.b[33][0]++; + cov_1fcwr61zql.s[53]++; + return [msg(messages.selectMinItems, field.fieldOptions.min)]; + } else { + cov_1fcwr61zql.b[33][1]++; + } + + cov_1fcwr61zql.s[54]++; + + if ((cov_1fcwr61zql.b[36][0]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[36][1]++, value.length > field.fieldOptions.max)) { + cov_1fcwr61zql.b[35][0]++; + cov_1fcwr61zql.s[55]++; + return [msg(messages.selectMaxItems, field.fieldOptions.max)]; + } else { + cov_1fcwr61zql.b[35][1]++; + } + } else { + cov_1fcwr61zql.b[32][1]++; + } + }, + date: function date(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[37][0]++, resources); + cov_1fcwr61zql.f[8]++; + var res = (cov_1fcwr61zql.s[56]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[57]++; + + if (res != null) { + cov_1fcwr61zql.b[38][0]++; + cov_1fcwr61zql.s[58]++; + return res; + } else { + cov_1fcwr61zql.b[38][1]++; + } + + var m = (cov_1fcwr61zql.s[59]++, new Date(value)); + cov_1fcwr61zql.s[60]++; + + if (!m) { + cov_1fcwr61zql.b[39][0]++; + cov_1fcwr61zql.s[61]++; + return [msg(messages.invalidDate)]; + } else { + cov_1fcwr61zql.b[39][1]++; + } + + var err = (cov_1fcwr61zql.s[62]++, []); + cov_1fcwr61zql.s[63]++; + + if (!isNil_default()(field.fieldOptions.min)) { + cov_1fcwr61zql.b[40][0]++; + var min = (cov_1fcwr61zql.s[64]++, new Date(field.fieldOptions.min)); + cov_1fcwr61zql.s[65]++; + + if (m.valueOf() < min.valueOf()) { + cov_1fcwr61zql.b[41][0]++; + cov_1fcwr61zql.s[66]++; + err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); + } else { + cov_1fcwr61zql.b[41][1]++; + } + } else { + cov_1fcwr61zql.b[40][1]++; + } + + cov_1fcwr61zql.s[67]++; + + if (!isNil_default()(field.fieldOptions.max)) { + cov_1fcwr61zql.b[42][0]++; + var max = (cov_1fcwr61zql.s[68]++, new Date(field.fieldOptions.max)); + cov_1fcwr61zql.s[69]++; + + if (m.valueOf() > max.valueOf()) { + cov_1fcwr61zql.b[43][0]++; + cov_1fcwr61zql.s[70]++; + err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_default.a.format(max))); + } else { + cov_1fcwr61zql.b[43][1]++; + } + } else { + cov_1fcwr61zql.b[42][1]++; + } + + cov_1fcwr61zql.s[71]++; + return err; + }, + regexp: function regexp(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[44][0]++, resources); + cov_1fcwr61zql.f[9]++; + var res = (cov_1fcwr61zql.s[72]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[73]++; + + if (res != null) { + cov_1fcwr61zql.b[45][0]++; + cov_1fcwr61zql.s[74]++; + return res; + } else { + cov_1fcwr61zql.b[45][1]++; + } + + cov_1fcwr61zql.s[75]++; + + if (!isNil_default()(field.pattern)) { + cov_1fcwr61zql.b[46][0]++; + var re = (cov_1fcwr61zql.s[76]++, new RegExp(field.pattern)); + cov_1fcwr61zql.s[77]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[47][0]++; + cov_1fcwr61zql.s[78]++; + return [msg(messages.invalidFormat)]; + } else { + cov_1fcwr61zql.b[47][1]++; + } + } else { + cov_1fcwr61zql.b[46][1]++; + } + }, + email: function email(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[48][0]++, resources); + cov_1fcwr61zql.f[10]++; + var res = (cov_1fcwr61zql.s[79]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[80]++; + + if (res != null) { + cov_1fcwr61zql.b[49][0]++; + cov_1fcwr61zql.s[81]++; + return res; + } else { + cov_1fcwr61zql.b[49][1]++; + } + + var re = (cov_1fcwr61zql.s[82]++, /^(([^<>()\[\]\\.,;:\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 + + cov_1fcwr61zql.s[83]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[50][0]++; + cov_1fcwr61zql.s[84]++; + return [msg(messages.invalidEmail)]; + } else { + cov_1fcwr61zql.b[50][1]++; + } + }, + url: function url(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[51][0]++, resources); + cov_1fcwr61zql.f[11]++; + var res = (cov_1fcwr61zql.s[85]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[86]++; + + if (res != null) { + cov_1fcwr61zql.b[52][0]++; + cov_1fcwr61zql.s[87]++; + return res; + } else { + cov_1fcwr61zql.b[52][1]++; + } + + var re = (cov_1fcwr61zql.s[88]++, /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g); // eslint-disable-line no-useless-escape + + cov_1fcwr61zql.s[89]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[53][0]++; + cov_1fcwr61zql.s[90]++; + return [msg(messages.invalidURL)]; + } else { + cov_1fcwr61zql.b[53][1]++; + } + }, + creditCard: function creditCard(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[54][0]++, resources); + cov_1fcwr61zql.f[12]++; + var res = (cov_1fcwr61zql.s[91]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[92]++; + + if (res != null) { + cov_1fcwr61zql.b[55][0]++; + cov_1fcwr61zql.s[93]++; + return res; + } else { + cov_1fcwr61zql.b[55][1]++; + } + /* From validator.js code + https://github.com/chriso/validator.js/blob/master/src/lib/isCreditCard.js + */ + + + var creditCard = (cov_1fcwr61zql.s[94]++, /^(?: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 = (cov_1fcwr61zql.s[95]++, value.replace(/[^0-9]+/g, "")); + cov_1fcwr61zql.s[96]++; + + if (!creditCard.test(sanitized)) { + cov_1fcwr61zql.b[56][0]++; + cov_1fcwr61zql.s[97]++; + return [msg(messages.invalidCard)]; + } else { + cov_1fcwr61zql.b[56][1]++; + } + + var sum = (cov_1fcwr61zql.s[98]++, 0); + var digit; + var tmpNum; + var shouldDouble; + cov_1fcwr61zql.s[99]++; + + for (var i = sanitized.length - 1; i >= 0; i--) { + cov_1fcwr61zql.s[100]++; + digit = sanitized.substring(i, i + 1); + cov_1fcwr61zql.s[101]++; + tmpNum = parseInt(digit, 10); + cov_1fcwr61zql.s[102]++; + + if (shouldDouble) { + cov_1fcwr61zql.b[57][0]++; + cov_1fcwr61zql.s[103]++; + tmpNum *= 2; + cov_1fcwr61zql.s[104]++; + + if (tmpNum >= 10) { + cov_1fcwr61zql.b[58][0]++; + cov_1fcwr61zql.s[105]++; + sum += tmpNum % 10 + 1; + } else { + cov_1fcwr61zql.b[58][1]++; + cov_1fcwr61zql.s[106]++; + sum += tmpNum; + } + } else { + cov_1fcwr61zql.b[57][1]++; + cov_1fcwr61zql.s[107]++; + sum += tmpNum; + } + + cov_1fcwr61zql.s[108]++; + shouldDouble = !shouldDouble; + } + + cov_1fcwr61zql.s[109]++; + + if (!(sum % 10 === 0 ? (cov_1fcwr61zql.b[60][0]++, sanitized) : (cov_1fcwr61zql.b[60][1]++, false))) { + cov_1fcwr61zql.b[59][0]++; + cov_1fcwr61zql.s[110]++; + return [msg(messages.invalidCardNumber)]; + } else { + cov_1fcwr61zql.b[59][1]++; + } + }, + alpha: function alpha(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[61][0]++, resources); + cov_1fcwr61zql.f[13]++; + var res = (cov_1fcwr61zql.s[111]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[112]++; + + if (res != null) { + cov_1fcwr61zql.b[62][0]++; + cov_1fcwr61zql.s[113]++; + return res; + } else { + cov_1fcwr61zql.b[62][1]++; + } + + var re = (cov_1fcwr61zql.s[114]++, /^[a-zA-Z]*$/); + cov_1fcwr61zql.s[115]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[63][0]++; + cov_1fcwr61zql.s[116]++; + return [msg(messages.invalidTextContainNumber)]; + } else { + cov_1fcwr61zql.b[63][1]++; + } + }, + alphaNumeric: function alphaNumeric(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[64][0]++, resources); + cov_1fcwr61zql.f[14]++; + var res = (cov_1fcwr61zql.s[117]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[118]++; + + if (res != null) { + cov_1fcwr61zql.b[65][0]++; + cov_1fcwr61zql.s[119]++; + return res; + } else { + cov_1fcwr61zql.b[65][1]++; + } + + var re = (cov_1fcwr61zql.s[120]++, /^[a-zA-Z0-9]*$/); + cov_1fcwr61zql.s[121]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[66][0]++; + cov_1fcwr61zql.s[122]++; + return [msg(messages.invalidTextContainSpec)]; + } else { + cov_1fcwr61zql.b[66][1]++; + } + } +}); +cov_1fcwr61zql.s[123]++; +Object.keys(validators).forEach(function (name) { + cov_1fcwr61zql.f[15]++; + var fn = (cov_1fcwr61zql.s[124]++, validators[name]); + cov_1fcwr61zql.s[125]++; + + if (isFunction_default()(fn)) { + cov_1fcwr61zql.b[67][0]++; + cov_1fcwr61zql.s[126]++; + + fn.locale = function (customMessages) { + cov_1fcwr61zql.f[16]++; + cov_1fcwr61zql.s[127]++; + return function (value, field, model) { + cov_1fcwr61zql.f[17]++; + cov_1fcwr61zql.s[128]++; + return fn(value, field, model, defaults_default()(customMessages, resources)); + }; + }; + } else { + cov_1fcwr61zql.b[67][1]++; + } +}); +/* harmony default export */ var utils_validators = (validators); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldCheckbox.vue?vue&type=template&id=8e952a54& +var fieldCheckboxvue_type_template_id_8e952a54_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,"required":_vm.required},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 fieldCheckboxvue_type_template_id_8e952a54_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=8e952a54& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js +var es6_regexp_split = __webpack_require__("28a5"); + +// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js +var uniqueId = __webpack_require__("98dc"); +var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); + +// EXTERNAL MODULE: ./node_modules/lodash/debounce.js +var debounce = __webpack_require__("b047"); +var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); + +// EXTERNAL MODULE: ./node_modules/lodash/forEach.js +var forEach = __webpack_require__("6cd4"); +var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); + +// CONCATENATED MODULE: ./src/fields/abstractField.js +var cov_1x7yuo2leq = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js", + hash = "4d4265b060ef40dc8fcf211d60e214c1c4dbbe72", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js", + statementMap: { + "0": { + start: { + line: 4, + column: 25 + }, + end: { + line: 13, + column: 1 + } + }, + "1": { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, + "2": { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, + "3": { + start: { + line: 6, + column: 37 + }, + end: { + line: 6, + column: 66 + } + }, + "4": { + start: { + line: 8, + column: 3 + }, + end: { + line: 8, + column: 63 + } + }, + "5": { + start: { + line: 9, + column: 3 + }, + end: { + line: 9, + column: 15 + } + }, + "6": { + start: { + line: 12, + column: 1 + }, + end: { + line: 12, + column: 18 + } + }, + "7": { + start: { + line: 16, + column: 13 + }, + end: { + line: 16, + column: 59 + } + }, + "8": { + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 41 + } + }, + "9": { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + "10": { + start: { + line: 19, + column: 2 + }, + end: { + line: 19, + column: 44 + } + }, + "11": { + start: { + line: 21, + column: 1 + }, + end: { + line: 23, + column: 4 + } + }, + "12": { + start: { + line: 22, + column: 2 + }, + end: { + line: 22, + column: 28 + } + }, + "13": { + start: { + line: 46, + column: 19 + }, + end: { + line: 46, + column: 47 + } + }, + "14": { + start: { + line: 47, + column: 2 + }, + end: { + line: 53, + column: 4 + } + }, + "15": { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, + "16": { + start: { + line: 70, + column: 5 + }, + end: { + line: 70, + column: 39 + } + }, + "17": { + start: { + line: 72, + column: 5 + }, + end: { + line: 72, + column: 49 + } + }, + "18": { + start: { + line: 75, + column: 4 + }, + end: { + line: 75, + column: 40 + } + }, + "19": { + start: { + line: 79, + column: 4 + }, + end: { + line: 79, + column: 17 + } + }, + "20": { + start: { + line: 81, + column: 19 + }, + end: { + line: 81, + column: 29 + } + }, + "21": { + start: { + line: 82, + column: 4 + }, + end: { + line: 82, + column: 49 + } + }, + "22": { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, + "23": { + start: { + line: 85, + column: 5 + }, + end: { + line: 85, + column: 34 + } + }, + "24": { + start: { + line: 87, + column: 5 + }, + end: { + line: 87, + column: 47 + } + }, + "25": { + start: { + line: 92, + column: 3 + }, + end: { + line: 92, + column: 59 + } + }, + "26": { + start: { + line: 95, + column: 3 + }, + end: { + line: 95, + column: 67 + } + }, + "27": { + start: { + line: 98, + column: 3 + }, + end: { + line: 98, + column: 67 + } + }, + "28": { + start: { + line: 101, + column: 3 + }, + end: { + line: 101, + column: 64 + } + }, + "29": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 66 + } + }, + "30": { + start: { + line: 107, + column: 3 + }, + end: { + line: 107, + column: 59 + } + }, + "31": { + start: { + line: 110, + column: 3 + }, + end: { + line: 110, + column: 59 + } + }, + "32": { + start: { + line: 113, + column: 3 + }, + end: { + line: 113, + column: 61 + } + }, + "33": { + start: { + line: 120, + column: 4 + }, + end: { + line: 120, + column: 41 + } + }, + "34": { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, + "35": { + start: { + line: 128, + column: 4 + }, + end: { + line: 128, + column: 72 + } + }, + "36": { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, + "37": { + start: { + line: 132, + column: 5 + }, + end: { + line: 132, + column: 25 + } + }, + "38": { + start: { + line: 135, + column: 4 + }, + end: { + line: 135, + column: 25 + } + }, + "39": { + start: { + line: 139, + column: 3 + }, + end: { + line: 139, + column: 16 + } + }, + "40": { + start: { + line: 141, + column: 3 + }, + end: { + line: 141, + column: 32 + } + }, + "41": { + start: { + line: 142, + column: 23 + }, + end: { + line: 142, + column: 71 + } + }, + "42": { + start: { + line: 144, + column: 17 + }, + end: { + line: 144, + column: 19 + } + }, + "43": { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, + "44": { + start: { + line: 152, + column: 21 + }, + end: { + line: 152, + column: 23 + } + }, + "45": { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, + "46": { + start: { + line: 154, + column: 5 + }, + end: { + line: 154, + column: 73 + } + }, + "47": { + start: { + line: 156, + column: 5 + }, + end: { + line: 158, + column: 8 + } + }, + "48": { + start: { + line: 157, + column: 6 + }, + end: { + line: 157, + column: 62 + } + }, + "49": { + start: { + line: 161, + column: 4 + }, + end: { + line: 176, + column: 7 + } + }, + "50": { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, + "51": { + start: { + line: 163, + column: 6 + }, + end: { + line: 163, + column: 67 + } + }, + "52": { + start: { + line: 165, + column: 19 + }, + end: { + line: 165, + column: 65 + } + }, + "53": { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, + "54": { + start: { + line: 167, + column: 7 + }, + end: { + line: 171, + column: 10 + } + }, + "55": { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, + "56": { + start: { + line: 169, + column: 9 + }, + end: { + line: 169, + column: 47 + } + }, + "57": { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, + "58": { + start: { + line: 173, + column: 7 + }, + end: { + line: 173, + column: 40 + } + }, + "59": { + start: { + line: 179, + column: 22 + }, + end: { + line: 198, + column: 4 + } + }, + "60": { + start: { + line: 180, + column: 22 + }, + end: { + line: 180, + column: 24 + } + }, + "61": { + start: { + line: 181, + column: 4 + }, + end: { + line: 187, + column: 7 + } + }, + "62": { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, + "63": { + start: { + line: 183, + column: 6 + }, + end: { + line: 183, + column: 44 + } + }, + "64": { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, + "65": { + start: { + line: 185, + column: 6 + }, + end: { + line: 185, + column: 28 + } + }, + "66": { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, + "67": { + start: { + line: 189, + column: 5 + }, + end: { + line: 189, + column: 78 + } + }, + "68": { + start: { + line: 192, + column: 18 + }, + end: { + line: 192, + column: 42 + } + }, + "69": { + start: { + line: 194, + column: 4 + }, + end: { + line: 194, + column: 30 + } + }, + "70": { + start: { + line: 196, + column: 4 + }, + end: { + line: 196, + column: 80 + } + }, + "71": { + start: { + line: 197, + column: 4 + }, + end: { + line: 197, + column: 23 + } + }, + "72": { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, + "73": { + start: { + line: 201, + column: 4 + }, + end: { + line: 201, + column: 33 + } + }, + "74": { + start: { + line: 204, + column: 3 + }, + end: { + line: 208, + column: 7 + } + }, + "75": { + start: { + line: 207, + column: 5 + }, + end: { + line: 207, + column: 60 + } + }, + "76": { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + "77": { + start: { + line: 213, + column: 4 + }, + end: { + line: 216, + column: 6 + } + }, + "78": { + start: { + line: 218, + column: 3 + }, + end: { + line: 218, + column: 32 + } + }, + "79": { + start: { + line: 222, + column: 17 + }, + end: { + line: 222, + column: 22 + } + }, + "80": { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, + "81": { + start: { + line: 224, + column: 4 + }, + end: { + line: 224, + column: 42 + } + }, + "82": { + start: { + line: 225, + column: 4 + }, + end: { + line: 225, + column: 19 + } + }, + "83": { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, + "84": { + start: { + line: 227, + column: 4 + }, + end: { + line: 227, + column: 58 + } + }, + "85": { + start: { + line: 228, + column: 4 + }, + end: { + line: 228, + column: 19 + } + }, + "86": { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, + "87": { + start: { + line: 232, + column: 4 + }, + end: { + line: 232, + column: 70 + } + }, + "88": { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, + "89": { + start: { + line: 235, + column: 5 + }, + end: { + line: 235, + column: 83 + } + }, + "90": { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, + "91": { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, + "92": { + start: { + line: 239, + column: 6 + }, + end: { + line: 239, + column: 31 + } + }, + "93": { + start: { + line: 241, + column: 6 + }, + end: { + line: 241, + column: 22 + } + }, + "94": { + start: { + line: 248, + column: 3 + }, + end: { + line: 248, + column: 25 + } + }, + "95": { + start: { + line: 253, + column: 11 + }, + end: { + line: 253, + column: 44 + } + }, + "96": { + start: { + line: 256, + column: 3 + }, + end: { + line: 256, + column: 28 + } + }, + "97": { + start: { + line: 258, + column: 11 + }, + end: { + line: 258, + column: 21 + } + }, + "98": { + start: { + line: 259, + column: 13 + }, + end: { + line: 259, + column: 25 + } + }, + "99": { + start: { + line: 260, + column: 11 + }, + end: { + line: 260, + column: 12 + } + }, + "100": { + start: { + line: 261, + column: 13 + }, + end: { + line: 261, + column: 21 + } + }, + "101": { + start: { + line: 262, + column: 3 + }, + end: { + line: 280, + column: 4 + } + }, + "102": { + start: { + line: 263, + column: 12 + }, + end: { + line: 263, + column: 16 + } + }, + "103": { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, + "104": { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, + "105": { + start: { + line: 267, + column: 6 + }, + end: { + line: 267, + column: 15 + } + }, + "106": { + start: { + line: 270, + column: 6 + }, + end: { + line: 270, + column: 32 + } + }, + "107": { + start: { + line: 271, + column: 6 + }, + end: { + line: 271, + column: 15 + } + }, + "108": { + start: { + line: 275, + column: 5 + }, + end: { + line: 275, + column: 34 + } + }, + "109": { + start: { + line: 276, + column: 5 + }, + end: { + line: 276, + column: 12 + } + }, + "110": { + start: { + line: 279, + column: 4 + }, + end: { + line: 279, + column: 8 + } + }, + "111": { + start: { + line: 284, + column: 3 + }, + end: { + line: 284, + column: 16 + } + }, + "112": { + start: { + line: 288, + column: 3 + }, + end: { + line: 288, + column: 16 + } + }, + "113": { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, + "114": { + start: { + line: 293, + column: 4 + }, + end: { + line: 293, + column: 24 + } + }, + "115": { + start: { + line: 294, + column: 4 + }, + end: { + line: 294, + column: 32 + } + }, + "116": { + start: { + line: 299, + column: 2 + }, + end: { + line: 299, + column: 75 + } + }, + "117": { + start: { + line: 300, + column: 2 + }, + end: { + line: 300, + column: 54 + } + }, + "118": { + start: { + line: 301, + column: 2 + }, + end: { + line: 301, + column: 43 + } + }, + "119": { + start: { + line: 304, + column: 15 + }, + end: { + line: 308, + column: 3 + } + }, + "120": { + start: { + line: 305, + column: 3 + }, + end: { + line: 307, + column: 6 + } + }, + "121": { + start: { + line: 306, + column: 4 + }, + end: { + line: 306, + column: 28 + } + }, + "122": { + start: { + line: 309, + column: 22 + }, + end: { + line: 342, + column: 3 + } + }, + "123": { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, + "124": { + start: { + line: 344, + column: 21 + }, + end: { + line: 344, + column: 45 + } + }, + "125": { + start: { + line: 345, + column: 16 + }, + end: { + line: 345, + column: 46 + } + }, + "126": { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, + "127": { + start: { + line: 347, + column: 4 + }, + end: { + line: 347, + column: 69 + } + }, + "128": { + start: { + line: 352, + column: 2 + }, + end: { + line: 352, + column: 48 + } + }, + "129": { + start: { + line: 353, + column: 2 + }, + end: { + line: 353, + column: 40 + } + }, + "130": { + start: { + line: 354, + column: 2 + }, + end: { + line: 354, + column: 51 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 4, + column: 25 + }, + end: { + line: 4, + column: 26 + } + }, + loc: { + start: { + line: 4, + column: 40 + }, + end: { + line: 13, + column: 1 + } + }, + line: 4 + }, + "1": { + name: "attributesDirective", + decl: { + start: { + line: 15, + column: 9 + }, + end: { + line: 15, + column: 28 + } + }, + loc: { + start: { + line: 15, + column: 49 + }, + end: { + line: 24, + column: 1 + } + }, + line: 15 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 21, + column: 16 + }, + end: { + line: 21, + column: 17 + } + }, + loc: { + start: { + line: 21, + column: 30 + }, + end: { + line: 23, + column: 2 + } + }, + line: 21 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 45, + column: 1 + }, + end: { + line: 45, + column: 2 + } + }, + loc: { + start: { + line: 45, + column: 8 + }, + end: { + line: 54, + column: 2 + } + }, + line: 45 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 67, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + loc: { + start: { + line: 67, + column: 9 + }, + end: { + line: 76, + column: 4 + } + }, + line: 67 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 78, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + loc: { + start: { + line: 78, + column: 17 + }, + end: { + line: 89, + column: 4 + } + }, + line: 78 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 91, + column: 2 + }, + end: { + line: 91, + column: 3 + } + }, + loc: { + start: { + line: 91, + column: 13 + }, + end: { + line: 93, + column: 3 + } + }, + line: 91 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 17 + }, + end: { + line: 96, + column: 3 + } + }, + line: 94 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 97, + column: 2 + }, + end: { + line: 97, + column: 3 + } + }, + loc: { + start: { + line: 97, + column: 17 + }, + end: { + line: 99, + column: 3 + } + }, + line: 97 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 14 + }, + end: { + line: 102, + column: 3 + } + }, + line: 100 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 103, + column: 2 + }, + end: { + line: 103, + column: 3 + } + }, + loc: { + start: { + line: 103, + column: 16 + }, + end: { + line: 105, + column: 3 + } + }, + line: 103 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 106, + column: 2 + }, + end: { + line: 106, + column: 3 + } + }, + loc: { + start: { + line: 106, + column: 13 + }, + end: { + line: 108, + column: 3 + } + }, + line: 106 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 3 + } + }, + loc: { + start: { + line: 109, + column: 13 + }, + end: { + line: 111, + column: 3 + } + }, + line: 109 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 112, + column: 2 + }, + end: { + line: 112, + column: 3 + } + }, + loc: { + start: { + line: 112, + column: 11 + }, + end: { + line: 114, + column: 3 + } + }, + line: 112 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 119, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + loc: { + start: { + line: 119, + column: 19 + }, + end: { + line: 121, + column: 4 + } + }, + line: 119 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 126, + column: 2 + }, + end: { + line: 126, + column: 3 + } + }, + loc: { + start: { + line: 126, + column: 50 + }, + end: { + line: 137, + column: 3 + } + }, + line: 126 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 138, + column: 2 + }, + end: { + line: 138, + column: 3 + } + }, + loc: { + start: { + line: 138, + column: 13 + }, + end: { + line: 209, + column: 3 + } + }, + line: 138 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 156, + column: 35 + }, + end: { + line: 156, + column: 36 + } + }, + loc: { + start: { + line: 156, + column: 50 + }, + end: { + line: 158, + column: 6 + } + }, + line: 156 + }, + "18": { + name: "(anonymous_18)", + decl: { + start: { + line: 161, + column: 23 + }, + end: { + line: 161, + column: 24 + } + }, + loc: { + start: { + line: 161, + column: 38 + }, + end: { + line: 176, + column: 5 + } + }, + line: 161 + }, + "19": { + name: "(anonymous_19)", + decl: { + start: { + line: 167, + column: 19 + }, + end: { + line: 167, + column: 20 + } + }, + loc: { + start: { + line: 167, + column: 28 + }, + end: { + line: 171, + column: 8 + } + }, + line: 167 + }, + "20": { + name: "(anonymous_20)", + decl: { + start: { + line: 179, + column: 22 + }, + end: { + line: 179, + column: 23 + } + }, + loc: { + start: { + line: 179, + column: 34 + }, + end: { + line: 198, + column: 4 + } + }, + line: 179 + }, + "21": { + name: "(anonymous_21)", + decl: { + start: { + line: 181, + column: 19 + }, + end: { + line: 181, + column: 20 + } + }, + loc: { + start: { + line: 181, + column: 28 + }, + end: { + line: 187, + column: 5 + } + }, + line: 181 + }, + "22": { + name: "(anonymous_22)", + decl: { + start: { + line: 206, + column: 11 + }, + end: { + line: 206, + column: 12 + } + }, + loc: { + start: { + line: 206, + column: 22 + }, + end: { + line: 208, + column: 5 + } + }, + line: 206 + }, + "23": { + name: "(anonymous_23)", + decl: { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 3 + } + }, + loc: { + start: { + line: 211, + column: 22 + }, + end: { + line: 219, + column: 3 + } + }, + line: 211 + }, + "24": { + name: "(anonymous_24)", + decl: { + start: { + line: 221, + column: 2 + }, + end: { + line: 221, + column: 3 + } + }, + loc: { + start: { + line: 221, + column: 39 + }, + end: { + line: 245, + column: 3 + } + }, + line: 221 + }, + "25": { + name: "(anonymous_25)", + decl: { + start: { + line: 247, + column: 2 + }, + end: { + line: 247, + column: 3 + } + }, + loc: { + start: { + line: 247, + column: 26 + }, + end: { + line: 249, + column: 3 + } + }, + line: 247 + }, + "26": { + name: "(anonymous_26)", + decl: { + start: { + line: 251, + column: 2 + }, + end: { + line: 251, + column: 3 + } + }, + loc: { + start: { + line: 251, + column: 35 + }, + end: { + line: 281, + column: 3 + } + }, + line: 251 + }, + "27": { + name: "(anonymous_27)", + decl: { + start: { + line: 283, + column: 2 + }, + end: { + line: 283, + column: 3 + } + }, + loc: { + start: { + line: 283, + column: 28 + }, + end: { + line: 285, + column: 3 + } + }, + line: 283 + }, + "28": { + name: "(anonymous_28)", + decl: { + start: { + line: 287, + column: 2 + }, + end: { + line: 287, + column: 3 + } + }, + loc: { + start: { + line: 287, + column: 28 + }, + end: { + line: 289, + column: 3 + } + }, + line: 287 + }, + "29": { + name: "(anonymous_29)", + decl: { + start: { + line: 291, + column: 2 + }, + end: { + line: 291, + column: 3 + } + }, + loc: { + start: { + line: 291, + column: 10 + }, + end: { + line: 296, + column: 3 + } + }, + line: 291 + }, + "30": { + name: "(anonymous_30)", + decl: { + start: { + line: 298, + column: 1 + }, + end: { + line: 298, + column: 2 + } + }, + loc: { + start: { + line: 298, + column: 11 + }, + end: { + line: 302, + column: 2 + } + }, + line: 298 + }, + "31": { + name: "(anonymous_31)", + decl: { + start: { + line: 303, + column: 1 + }, + end: { + line: 303, + column: 2 + } + }, + loc: { + start: { + line: 303, + column: 11 + }, + end: { + line: 350, + column: 2 + } + }, + line: 303 + }, + "32": { + name: "(anonymous_32)", + decl: { + start: { + line: 304, + column: 15 + }, + end: { + line: 304, + column: 16 + } + }, + loc: { + start: { + line: 304, + column: 30 + }, + end: { + line: 308, + column: 3 + } + }, + line: 304 + }, + "33": { + name: "(anonymous_33)", + decl: { + start: { + line: 305, + column: 19 + }, + end: { + line: 305, + column: 20 + } + }, + loc: { + start: { + line: 305, + column: 31 + }, + end: { + line: 307, + column: 4 + } + }, + line: 305 + }, + "34": { + name: "(anonymous_34)", + decl: { + start: { + line: 351, + column: 1 + }, + end: { + line: 351, + column: 2 + } + }, + loc: { + start: { + line: 351, + column: 17 + }, + end: { + line: 355, + column: 2 + } + }, + line: 351 } - } - }, - 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; + }, + branchMap: { + "0": { + loc: { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }], + line: 5 + }, + "1": { + loc: { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }], + line: 6 + }, + "2": { + loc: { + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 41 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 30 + } + }, { + start: { + line: 17, + column: 34 + }, + end: { + line: 17, + column: 41 + } + }], + line: 17 + }, + "3": { + loc: { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }], + line: 18 + }, + "4": { + loc: { + start: { + line: 19, + column: 10 + }, + end: { + line: 19, + column: 43 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 19, + column: 10 + }, + end: { + line: 19, + column: 34 + } + }, { + start: { + line: 19, + column: 38 + }, + end: { + line: 19, + column: 43 + } + }], + line: 19 + }, + "5": { + loc: { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }], + line: 69 + }, + "6": { + loc: { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }], + line: 84 + }, + "7": { + loc: { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }], + line: 127 + }, + "8": { + loc: { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }], + line: 131 + }, + "9": { + loc: { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }], + line: 146 + }, + "10": { + loc: { + start: { + line: 147, + column: 4 + }, + end: { + line: 150, + column: 26 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 147, + column: 4 + }, + end: { + line: 147, + column: 25 + } + }, { + start: { + line: 148, + column: 4 + }, + end: { + line: 148, + column: 26 + } + }, { + start: { + line: 149, + column: 4 + }, + end: { + line: 149, + column: 33 + } + }, { + start: { + line: 150, + column: 4 + }, + end: { + line: 150, + column: 26 + } + }], + line: 147 + }, + "11": { + loc: { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }], + line: 153 + }, + "12": { + loc: { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }], + line: 162 + }, + "13": { + loc: { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }], + line: 166 + }, + "14": { + loc: { + start: { + line: 166, + column: 10 + }, + end: { + line: 166, + column: 43 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 166, + column: 10 + }, + end: { + line: 166, + column: 16 + } + }, { + start: { + line: 166, + column: 20 + }, + end: { + line: 166, + column: 43 + } + }], + line: 166 + }, + "15": { + loc: { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, + type: "if", + locations: [{ + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }], + line: 168 + }, + "16": { + loc: { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }], + line: 172 + }, + "17": { + loc: { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }], + line: 182 + }, + "18": { + loc: { + start: { + line: 182, + column: 9 + }, + end: { + line: 182, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 182, + column: 9 + }, + end: { + line: 182, + column: 21 + } + }, { + start: { + line: 182, + column: 25 + }, + end: { + line: 182, + column: 39 + } + }], + line: 182 + }, + "19": { + loc: { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }], + line: 184 + }, + "20": { + loc: { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }], + line: 188 + }, + "21": { + loc: { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }], + line: 200 + }, + "22": { + loc: { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }], + line: 212 + }, + "23": { + loc: { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }], + line: 223 + }, + "24": { + loc: { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }], + line: 226 + }, + "25": { + loc: { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }], + line: 231 + }, + "26": { + loc: { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }], + line: 234 + }, + "27": { + loc: { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }], + line: 237 + }, + "28": { + loc: { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }], + line: 238 + }, + "29": { + loc: { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }], + line: 264 + }, + "30": { + loc: { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }], + line: 265 + }, + "31": { + loc: { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }], + line: 292 + }, + "32": { + loc: { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }], + line: 343 + }, + "33": { + loc: { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }], + line: 346 } - - 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)]; - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0, + "65": 0, + "66": 0, + "67": 0, + "68": 0, + "69": 0, + "70": 0, + "71": 0, + "72": 0, + "73": 0, + "74": 0, + "75": 0, + "76": 0, + "77": 0, + "78": 0, + "79": 0, + "80": 0, + "81": 0, + "82": 0, + "83": 0, + "84": 0, + "85": 0, + "86": 0, + "87": 0, + "88": 0, + "89": 0, + "90": 0, + "91": 0, + "92": 0, + "93": 0, + "94": 0, + "95": 0, + "96": 0, + "97": 0, + "98": 0, + "99": 0, + "100": 0, + "101": 0, + "102": 0, + "103": 0, + "104": 0, + "105": 0, + "106": 0, + "107": 0, + "108": 0, + "109": 0, + "110": 0, + "111": 0, + "112": 0, + "113": 0, + "114": 0, + "115": 0, + "116": 0, + "117": 0, + "118": 0, + "119": 0, + "120": 0, + "121": 0, + "122": 0, + "123": 0, + "124": 0, + "125": 0, + "126": 0, + "127": 0, + "128": 0, + "129": 0, + "130": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0, 0, 0], + "11": [0, 0], + "12": [0, 0], + "13": [0, 0], + "14": [0, 0], + "15": [0, 0], + "16": [0, 0], + "17": [0, 0], + "18": [0, 0], + "19": [0, 0], + "20": [0, 0], + "21": [0, 0], + "22": [0, 0], + "23": [0, 0], + "24": [0, 0], + "25": [0, 0], + "26": [0, 0], + "27": [0, 0], + "28": [0, 0], + "29": [0, 0], + "30": [0, 0], + "31": [0, 0], + "32": [0, 0], + "33": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - 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]; + coverage = global[gcv] || (global[gcv] = {}); - if (isFunction_default()(fn)) { - fn.locale = function (customMessages) { - return function (value, field, model) { - return fn(value, field, model, defaults_default()(customMessages, resources)); - }; - }; + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } -}); -/* harmony default export */ var utils_validators = (validators); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& -var fieldCheckboxvue_type_template_id_a12bd5d0_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 fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js -var es6_regexp_split = __webpack_require__("28a5"); - -// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js -var uniqueId = __webpack_require__("98dc"); -var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); - -// EXTERNAL MODULE: ./node_modules/lodash/debounce.js -var debounce = __webpack_require__("b047"); -var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); -// EXTERNAL MODULE: ./node_modules/lodash/forEach.js -var forEach = __webpack_require__("6cd4"); -var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./src/fields/abstractField.js @@ -7510,28 +23654,54 @@ var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); +cov_1x7yuo2leq.s[0]++; var abstractField_convertValidator = function convertValidator(validator) { + cov_1x7yuo2leq.f[0]++; + cov_1x7yuo2leq.s[1]++; + if (isString_default()(validator)) { - if (utils_validators[validator] != null) return utils_validators[validator];else { + cov_1x7yuo2leq.b[0][0]++; + cov_1x7yuo2leq.s[2]++; + + if (utils_validators[validator] != null) { + cov_1x7yuo2leq.b[1][0]++; + cov_1x7yuo2leq.s[3]++; + return utils_validators[validator]; + } else { + cov_1x7yuo2leq.b[1][1]++; + cov_1x7yuo2leq.s[4]++; console.warn("'".concat(validator, "' is not a validator function!")); + cov_1x7yuo2leq.s[5]++; return null; // caller need to handle null } + } else { + cov_1x7yuo2leq.b[0][1]++; } + cov_1x7yuo2leq.s[6]++; return validator; }; function attributesDirective(el, binding, vnode) { - var attrs = get_default()(vnode.context, "schema.attributes", {}); - - var container = binding.value || "input"; + cov_1x7yuo2leq.f[1]++; + var attrs = (cov_1x7yuo2leq.s[7]++, get_default()(vnode.context, "schema.attributes", {})); + var container = (cov_1x7yuo2leq.s[8]++, (cov_1x7yuo2leq.b[2][0]++, binding.value) || (cov_1x7yuo2leq.b[2][1]++, "input")); + cov_1x7yuo2leq.s[9]++; if (isString_default()(container)) { - attrs = get_default()(attrs, container) || attrs; + cov_1x7yuo2leq.b[3][0]++; + cov_1x7yuo2leq.s[10]++; + attrs = (cov_1x7yuo2leq.b[4][0]++, get_default()(attrs, container)) || (cov_1x7yuo2leq.b[4][1]++, attrs); + } else { + cov_1x7yuo2leq.b[3][1]++; } + cov_1x7yuo2leq.s[11]++; + forEach_default()(attrs, function (val, key) { + cov_1x7yuo2leq.f[2]++; + cov_1x7yuo2leq.s[12]++; el.setAttribute(key, val); }); } @@ -7555,8 +23725,9 @@ function attributesDirective(el, binding, vnode) { } }, data: function data() { - var fieldUID = uniqueId_default()(this.fieldID + "_"); - + cov_1x7yuo2leq.f[3]++; + var fieldUID = (cov_1x7yuo2leq.s[13]++, uniqueId_default()(this.fieldID + "_")); + cov_1x7yuo2leq.s[14]++; return { fieldUID: fieldUID, touched: false, @@ -7576,315 +23747,1744 @@ function attributesDirective(el, binding, vnode) { value: { cache: false, get: function get() { + cov_1x7yuo2leq.f[4]++; var val; + cov_1x7yuo2leq.s[15]++; if (isFunction_default()(get_default()(this.schema, "get"))) { + cov_1x7yuo2leq.b[5][0]++; + cov_1x7yuo2leq.s[16]++; val = this.schema.get(this.model); } else { + cov_1x7yuo2leq.b[5][1]++; + cov_1x7yuo2leq.s[17]++; val = get_default()(this.model, this.schema.model); } + cov_1x7yuo2leq.s[18]++; return this.formatValueToField(val); }, set: function set(newValue) { + cov_1x7yuo2leq.f[5]++; + cov_1x7yuo2leq.s[19]++; this.touch(); - var oldValue = this.value; + var oldValue = (cov_1x7yuo2leq.s[20]++, this.value); + cov_1x7yuo2leq.s[21]++; newValue = this.formatValueToModel(newValue); + cov_1x7yuo2leq.s[22]++; if (isFunction_default()(newValue)) { + cov_1x7yuo2leq.b[6][0]++; + cov_1x7yuo2leq.s[23]++; newValue(newValue, oldValue); } else { + cov_1x7yuo2leq.b[6][1]++; + cov_1x7yuo2leq.s[24]++; this.updateModelValue(newValue, oldValue); } } }, disabled: function disabled() { + cov_1x7yuo2leq.f[6]++; + cov_1x7yuo2leq.s[25]++; return this.getValueFromOption(this.schema, "disabled"); }, fieldClasses: function fieldClasses() { + cov_1x7yuo2leq.f[7]++; + cov_1x7yuo2leq.s[26]++; return this.getValueFromOption(this.schema, "fieldClasses", []); }, fieldOptions: function fieldOptions() { + cov_1x7yuo2leq.f[8]++; + cov_1x7yuo2leq.s[27]++; return this.getValueFromOption(this.schema, "fieldOptions", {}); }, inputName: function inputName() { + cov_1x7yuo2leq.f[9]++; + cov_1x7yuo2leq.s[28]++; return this.getValueFromOption(this.schema, "inputName", ""); }, placeholder: function placeholder() { + cov_1x7yuo2leq.f[10]++; + cov_1x7yuo2leq.s[29]++; return this.getValueFromOption(this.schema, "placeholder", ""); }, readonly: function readonly() { + cov_1x7yuo2leq.f[11]++; + cov_1x7yuo2leq.s[30]++; return this.getValueFromOption(this.schema, "readonly"); }, required: function required() { + cov_1x7yuo2leq.f[12]++; + cov_1x7yuo2leq.s[31]++; return this.getValueFromOption(this.schema, "required"); }, values: function values() { + cov_1x7yuo2leq.f[13]++; + cov_1x7yuo2leq.s[32]++; return this.getValueFromOption(this.schema, "values", []); } }, watch: { errors: { handler: function handler(errors) { + cov_1x7yuo2leq.f[14]++; + cov_1x7yuo2leq.s[33]++; this.$emit("errors-updated", errors); } } }, methods: { getValueFromOption: function getValueFromOption(field, option, defaultValue) { + cov_1x7yuo2leq.f[15]++; + cov_1x7yuo2leq.s[34]++; + if (isFunction_default()(this.$parent.getValueFromOption)) { + cov_1x7yuo2leq.b[7][0]++; + cov_1x7yuo2leq.s[35]++; return this.$parent.getValueFromOption(field, option, defaultValue); } else { + cov_1x7yuo2leq.b[7][1]++; + cov_1x7yuo2leq.s[36]++; + // Environnement de test ? if (isNil_default()(field[option])) { + cov_1x7yuo2leq.b[8][0]++; + cov_1x7yuo2leq.s[37]++; return defaultValue; + } else { + cov_1x7yuo2leq.b[8][1]++; } + cov_1x7yuo2leq.s[38]++; return field[option]; } }, validate: function validate() { var _this = this; + cov_1x7yuo2leq.f[16]++; + cov_1x7yuo2leq.s[39]++; this.touch(); + cov_1x7yuo2leq.s[40]++; this.clearValidationErrors(); + var validateAsync = (cov_1x7yuo2leq.s[41]++, get_default()(this.formOptions, "validateAsync", false)); + var results = (cov_1x7yuo2leq.s[42]++, []); + cov_1x7yuo2leq.s[43]++; - var validateAsync = get_default()(this.formOptions, "validateAsync", false); + if ((cov_1x7yuo2leq.b[10][0]++, this.schema.validator) && (cov_1x7yuo2leq.b[10][1]++, this.readonly !== true) && (cov_1x7yuo2leq.b[10][2]++, this.schema.readonly !== true) && (cov_1x7yuo2leq.b[10][3]++, // only for the test + this.disabled !== true)) { + cov_1x7yuo2leq.b[9][0]++; - var results = []; + var _validators = (cov_1x7yuo2leq.s[44]++, []); - if (this.schema.validator && this.readonly !== true && this.schema.readonly !== true && // only for the test - this.disabled !== true) { - var _validators = []; + cov_1x7yuo2leq.s[45]++; if (!isArray_default()(this.schema.validator)) { + cov_1x7yuo2leq.b[11][0]++; + cov_1x7yuo2leq.s[46]++; + _validators.push(abstractField_convertValidator(this.schema.validator).bind(this)); } else { + cov_1x7yuo2leq.b[11][1]++; + cov_1x7yuo2leq.s[47]++; this.schema.validator.forEach(function (validator) { + cov_1x7yuo2leq.f[17]++; + cov_1x7yuo2leq.s[48]++; + _validators.push(abstractField_convertValidator(validator).bind(_this)); }); } + cov_1x7yuo2leq.s[49]++; + _validators.forEach(function (validator) { + cov_1x7yuo2leq.f[18]++; + cov_1x7yuo2leq.s[50]++; + if (validateAsync) { + cov_1x7yuo2leq.b[12][0]++; + cov_1x7yuo2leq.s[51]++; results.push(validator(_this.value, _this.schema, _this.model)); } else { - var result = validator(_this.value, _this.schema, _this.model); + cov_1x7yuo2leq.b[12][1]++; + var result = (cov_1x7yuo2leq.s[52]++, validator(_this.value, _this.schema, _this.model)); + cov_1x7yuo2leq.s[53]++; - if (result && isFunction_default()(result.then)) { + if ((cov_1x7yuo2leq.b[14][0]++, result) && (cov_1x7yuo2leq.b[14][1]++, isFunction_default()(result.then))) { + cov_1x7yuo2leq.b[13][0]++; + cov_1x7yuo2leq.s[54]++; result.then(function (err) { + cov_1x7yuo2leq.f[19]++; + cov_1x7yuo2leq.s[55]++; + if (err) { + cov_1x7yuo2leq.b[15][0]++; + cov_1x7yuo2leq.s[56]++; _this.errors = _this.errors.concat(err); + } else { + cov_1x7yuo2leq.b[15][1]++; } }); - } else if (result) { - results = results.concat(result); + } else { + cov_1x7yuo2leq.b[13][1]++; + cov_1x7yuo2leq.s[57]++; + + if (result) { + cov_1x7yuo2leq.b[16][0]++; + cov_1x7yuo2leq.s[58]++; + results = results.concat(result); + } else { + cov_1x7yuo2leq.b[16][1]++; + } } } }); + } else { + cov_1x7yuo2leq.b[9][1]++; } + cov_1x7yuo2leq.s[59]++; + var handleErrors = function handleErrors(errors) { - var fieldErrors = []; + cov_1x7yuo2leq.f[20]++; + var fieldErrors = (cov_1x7yuo2leq.s[60]++, []); + cov_1x7yuo2leq.s[61]++; errors.forEach(function (err) { - if (isArray_default()(err) && err.length > 0) { + cov_1x7yuo2leq.f[21]++; + cov_1x7yuo2leq.s[62]++; + + if ((cov_1x7yuo2leq.b[18][0]++, isArray_default()(err)) && (cov_1x7yuo2leq.b[18][1]++, err.length > 0)) { + cov_1x7yuo2leq.b[17][0]++; + cov_1x7yuo2leq.s[63]++; fieldErrors = fieldErrors.concat(err); - } else if (isString_default()(err)) { - fieldErrors.push(err); + } else { + cov_1x7yuo2leq.b[17][1]++; + cov_1x7yuo2leq.s[64]++; + + if (isString_default()(err)) { + cov_1x7yuo2leq.b[19][0]++; + cov_1x7yuo2leq.s[65]++; + fieldErrors.push(err); + } else { + cov_1x7yuo2leq.b[19][1]++; + } } }); + cov_1x7yuo2leq.s[66]++; if (isFunction_default()(_this.schema.onValidated)) { + cov_1x7yuo2leq.b[20][0]++; + cov_1x7yuo2leq.s[67]++; + _this.schema.onValidated.call(_this, _this.model, fieldErrors, _this.schema); + } else { + cov_1x7yuo2leq.b[20][1]++; } - var isValid = fieldErrors.length === 0; + var isValid = (cov_1x7yuo2leq.s[68]++, fieldErrors.length === 0); + cov_1x7yuo2leq.s[69]++; _this.errors = fieldErrors; + cov_1x7yuo2leq.s[70]++; _this.eventBus.$emit("field-validated", isValid, fieldErrors, _this.fieldUID); + cov_1x7yuo2leq.s[71]++; return fieldErrors; }; + cov_1x7yuo2leq.s[72]++; + if (!validateAsync) { + cov_1x7yuo2leq.b[21][0]++; + cov_1x7yuo2leq.s[73]++; return handleErrors(results); + } else { + cov_1x7yuo2leq.b[21][1]++; } + cov_1x7yuo2leq.s[74]++; return Promise.all(results).then(handleErrors).catch(function (error) { + cov_1x7yuo2leq.f[22]++; + cov_1x7yuo2leq.s[75]++; console.warn("Problem during field validation", error); }); }, debouncedValidate: function debouncedValidate() { + cov_1x7yuo2leq.f[23]++; + cov_1x7yuo2leq.s[76]++; + if (!isFunction_default()(this.debouncedValidateFunc)) { + cov_1x7yuo2leq.b[22][0]++; + cov_1x7yuo2leq.s[77]++; this.debouncedValidateFunc = debounce_default()(this.validate.bind(this), get_default()(this.formOptions, "validateDebounceTime", 500)); + } else { + cov_1x7yuo2leq.b[22][1]++; } + cov_1x7yuo2leq.s[78]++; this.debouncedValidateFunc(); }, updateModelValue: function updateModelValue(newValue, oldValue) { - var changed = false; + cov_1x7yuo2leq.f[24]++; + var changed = (cov_1x7yuo2leq.s[79]++, false); + cov_1x7yuo2leq.s[80]++; if (isFunction_default()(this.schema.set)) { + cov_1x7yuo2leq.b[23][0]++; + cov_1x7yuo2leq.s[81]++; this.schema.set(this.model, newValue); + cov_1x7yuo2leq.s[82]++; changed = true; - } else if (this.schema.model) { - this.setModelValueByPath(this.schema.model, newValue); - changed = true; + } else { + cov_1x7yuo2leq.b[23][1]++; + cov_1x7yuo2leq.s[83]++; + + if (this.schema.model) { + cov_1x7yuo2leq.b[24][0]++; + cov_1x7yuo2leq.s[84]++; + this.setModelValueByPath(this.schema.model, newValue); + cov_1x7yuo2leq.s[85]++; + changed = true; + } else { + cov_1x7yuo2leq.b[24][1]++; + } } + cov_1x7yuo2leq.s[86]++; + if (changed) { + cov_1x7yuo2leq.b[25][0]++; + cov_1x7yuo2leq.s[87]++; this.eventBus.$emit("model-updated", newValue, this.schema.model); + cov_1x7yuo2leq.s[88]++; if (isFunction_default()(this.schema.onChanged)) { + cov_1x7yuo2leq.b[26][0]++; + cov_1x7yuo2leq.s[89]++; this.schema.onChanged.call(this, this.model, newValue, oldValue, this.schema); + } else { + cov_1x7yuo2leq.b[26][1]++; } + cov_1x7yuo2leq.s[90]++; + if (get_default()(this.formOptions, "validateAfterChanged", false)) { + cov_1x7yuo2leq.b[27][0]++; + cov_1x7yuo2leq.s[91]++; + if (get_default()(this.formOptions, "validateDebounceTime", 500) > 0) { + cov_1x7yuo2leq.b[28][0]++; + cov_1x7yuo2leq.s[92]++; this.debouncedValidate(); } else { + cov_1x7yuo2leq.b[28][1]++; + cov_1x7yuo2leq.s[93]++; this.validate(); } + } else { + cov_1x7yuo2leq.b[27][1]++; } + } else { + cov_1x7yuo2leq.b[25][1]++; } }, clearValidationErrors: function clearValidationErrors() { + cov_1x7yuo2leq.f[25]++; + cov_1x7yuo2leq.s[94]++; this.errors.splice(0); }, setModelValueByPath: function setModelValueByPath(path, value) { + cov_1x7yuo2leq.f[26]++; // convert array indexes to properties - var s = path.replace(/\[(\w+)\]/g, ".$1"); // strip a leading dot + var s = (cov_1x7yuo2leq.s[95]++, path.replace(/\[(\w+)\]/g, ".$1")); // strip a leading dot + cov_1x7yuo2leq.s[96]++; s = s.replace(/^\./, ""); - var o = this.model; - var a = s.split("."); - var i = 0; - var n = a.length; + var o = (cov_1x7yuo2leq.s[97]++, this.model); + var a = (cov_1x7yuo2leq.s[98]++, s.split(".")); + var i = (cov_1x7yuo2leq.s[99]++, 0); + var n = (cov_1x7yuo2leq.s[100]++, a.length); + cov_1x7yuo2leq.s[101]++; while (i < n) { - var k = a[i]; + var k = (cov_1x7yuo2leq.s[102]++, a[i]); + cov_1x7yuo2leq.s[103]++; + if (i < n - 1) { + cov_1x7yuo2leq.b[29][0]++; + cov_1x7yuo2leq.s[104]++; + if (o[k] !== undefined) { + cov_1x7yuo2leq.b[30][0]++; + cov_1x7yuo2leq.s[105]++; // Found parent property. Step in o = o[k]; } else { + cov_1x7yuo2leq.b[30][1]++; + cov_1x7yuo2leq.s[106]++; // Create missing property (new level) this.$root.$set(o, k, {}); + cov_1x7yuo2leq.s[107]++; o = o[k]; } } else { + cov_1x7yuo2leq.b[29][1]++; + cov_1x7yuo2leq.s[108]++; // Set final property value this.$root.$set(o, k, value); + cov_1x7yuo2leq.s[109]++; return; } + + cov_1x7yuo2leq.s[110]++; ++i; } }, formatValueToField: function formatValueToField(value) { + cov_1x7yuo2leq.f[27]++; + cov_1x7yuo2leq.s[111]++; return value; }, formatValueToModel: function formatValueToModel(value) { + cov_1x7yuo2leq.f[28]++; + cov_1x7yuo2leq.s[112]++; return value; }, touch: function touch() { + cov_1x7yuo2leq.f[29]++; + cov_1x7yuo2leq.s[113]++; + if (!this.touched) { + cov_1x7yuo2leq.b[31][0]++; + cov_1x7yuo2leq.s[114]++; this.touched = true; + cov_1x7yuo2leq.s[115]++; this.$emit("field-touched"); + } else { + cov_1x7yuo2leq.b[31][1]++; } } }, created: function created() { + cov_1x7yuo2leq.f[30]++; + cov_1x7yuo2leq.s[116]++; this.eventBus.$on("clear-validation-errors", this.clearValidationErrors); + cov_1x7yuo2leq.s[117]++; this.eventBus.$on("validate-fields", this.validate); + cov_1x7yuo2leq.s[118]++; this.eventBus.$emit("field-registering"); }, mounted: function mounted() { + cov_1x7yuo2leq.f[31]++; + cov_1x7yuo2leq.s[119]++; + var diff = function diff(a, b) { + cov_1x7yuo2leq.f[32]++; + cov_1x7yuo2leq.s[120]++; return b.filter(function (i) { + cov_1x7yuo2leq.f[33]++; + cov_1x7yuo2leq.s[121]++; return a.indexOf(i) < 0; }); }; - var allowedKeys = [// Minimal + var allowedKeys = (cov_1x7yuo2leq.s[122]++, [// 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"]; + "onChanged", "onValidated"]); + cov_1x7yuo2leq.s[123]++; if (this.schema) { - var currentKeys = Object.keys(this.schema); - var result = diff(allowedKeys, currentKeys); + cov_1x7yuo2leq.b[32][0]++; + var currentKeys = (cov_1x7yuo2leq.s[124]++, Object.keys(this.schema)); + var result = (cov_1x7yuo2leq.s[125]++, diff(allowedKeys, currentKeys)); + cov_1x7yuo2leq.s[126]++; if (result.length > 0) { + cov_1x7yuo2leq.b[33][0]++; + cov_1x7yuo2leq.s[127]++; console.log("diff", result, this.schema.type, this.schema.model); + } else { + cov_1x7yuo2leq.b[33][1]++; + } + } else { + cov_1x7yuo2leq.b[32][1]++; + } + }, + beforeDestroy: function beforeDestroy() { + cov_1x7yuo2leq.f[34]++; + cov_1x7yuo2leq.s[128]++; + this.eventBus.$off("clear-validation-errors"); + cov_1x7yuo2leq.s[129]++; + this.eventBus.$off("validate-fields"); + cov_1x7yuo2leq.s[130]++; + this.eventBus.$emit("field-deregistering", this); + } +}); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_2b0f9xcfqr = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue", + hash = "a1e2c7137f1a4487dc9d52e4f243eacebb30bf5c", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ var fieldCheckboxvue_type_script_lang_js_ = ({ + name: "field-checkbox", + mixins: [abstractField] +}); +// 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"); + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue + + + + + + +/* normalize component */ + +var fieldCheckbox_component = normalizeComponent( + core_fieldCheckboxvue_type_script_lang_js_, + fieldCheckboxvue_type_template_id_8e952a54_render, + fieldCheckboxvue_type_template_id_8e952a54_staticRenderFns, + false, + null, + null, + null + +) + +fieldCheckbox_component.options.__file = "fieldCheckbox.vue" +/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& +var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} +var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& + +// EXTERNAL MODULE: ./node_modules/lodash/clone.js +var clone = __webpack_require__("b8ce"); +var clone_default = /*#__PURE__*/__webpack_require__.n(clone); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_239wk76om5 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue", + hash = "314329f4a36eb9bbe20e291b8953e924977bc9cf", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue", + statementMap: { + "0": { + start: { + line: 64, + column: 2 + }, + end: { + line: 66, + column: 4 + } + }, + "1": { + start: { + line: 71, + column: 16 + }, + end: { + line: 71, + column: 34 + } + }, + "2": { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, + "3": { + start: { + line: 73, + column: 4 + }, + end: { + line: 73, + column: 57 + } + }, + "4": { + start: { + line: 74, + column: 10 + }, + end: { + line: 74, + column: 24 + } + }, + "5": { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, + "6": { + start: { + line: 77, + column: 19 + }, + end: { + line: 77, + column: 44 + } + }, + "7": { + start: { + line: 79, + column: 3 + }, + end: { + line: 79, + column: 12 + } + }, + "8": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 36 + } + }, + "9": { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, + "10": { + start: { + line: 89, + column: 4 + }, + end: { + line: 89, + column: 67 + } + }, + "11": { + start: { + line: 91, + column: 3 + }, + end: { + line: 91, + column: 43 + } + }, + "12": { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, + "13": { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, + "14": { + start: { + line: 97, + column: 5 + }, + end: { + line: 97, + column: 42 + } + }, + "15": { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, + "16": { + start: { + line: 100, + column: 6 + }, + end: { + line: 100, + column: 24 + } + }, + "17": { + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 243 + } + }, + "18": { + start: { + line: 106, + column: 4 + }, + end: { + line: 106, + column: 16 + } + }, + "19": { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, + "20": { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, + "21": { + start: { + line: 112, + column: 5 + }, + end: { + line: 112, + column: 41 + } + }, + "22": { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, + "23": { + start: { + line: 115, + column: 6 + }, + end: { + line: 115, + column: 23 + } + }, + "24": { + start: { + line: 117, + column: 6 + }, + end: { + line: 117, + column: 241 + } + }, + "25": { + start: { + line: 121, + column: 4 + }, + end: { + line: 121, + column: 16 + } + }, + "26": { + start: { + line: 126, + column: 3 + }, + end: { + line: 126, + column: 75 + } + }, + "27": { + start: { + line: 130, + column: 19 + }, + end: { + line: 130, + column: 39 + } + }, + "28": { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + "29": { + start: { + line: 132, + column: 4 + }, + end: { + line: 132, + column: 20 + } + }, + "30": { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "31": { + start: { + line: 137, + column: 16 + }, + end: { + line: 137, + column: 33 + } + }, + "32": { + start: { + line: 138, + column: 4 + }, + end: { + line: 138, + column: 38 + } + }, + "33": { + start: { + line: 139, + column: 4 + }, + end: { + line: 139, + column: 21 + } + }, + "34": { + start: { + line: 142, + column: 16 + }, + end: { + line: 142, + column: 33 + } + }, + "35": { + start: { + line: 143, + column: 4 + }, + end: { + line: 143, + column: 63 + } + }, + "36": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 21 + } + }, + "37": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 44 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 63, + column: 1 + }, + end: { + line: 63, + column: 2 + } + }, + loc: { + start: { + line: 63, + column: 8 + }, + end: { + line: 67, + column: 2 + } + }, + line: 63 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 70, + column: 2 + }, + end: { + line: 70, + column: 3 + } + }, + loc: { + start: { + line: 70, + column: 10 + }, + end: { + line: 75, + column: 3 + } + }, + line: 70 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 18 + }, + end: { + line: 80, + column: 3 + } + }, + line: 76 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 81, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + loc: { + start: { + line: 81, + column: 15 + }, + end: { + line: 83, + column: 3 + } + }, + line: 81 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 87, + column: 2 + }, + end: { + line: 87, + column: 3 + } + }, + loc: { + start: { + line: 87, + column: 21 + }, + end: { + line: 92, + column: 3 + } + }, + line: 87 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 21 + }, + end: { + line: 108, + column: 3 + } + }, + line: 94 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 3 + } + }, + loc: { + start: { + line: 109, + column: 20 + }, + end: { + line: 123, + column: 3 + } + }, + line: 109 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 125, + column: 2 + }, + end: { + line: 125, + column: 3 + } + }, + loc: { + start: { + line: 125, + column: 22 + }, + end: { + line: 127, + column: 3 + } + }, + line: 125 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 129, + column: 2 + }, + end: { + line: 129, + column: 3 + } + }, + loc: { + start: { + line: 129, + column: 25 + }, + end: { + line: 146, + column: 3 + } + }, + line: 129 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 148, + column: 2 + }, + end: { + line: 148, + column: 3 + } + }, + loc: { + start: { + line: 148, + column: 18 + }, + end: { + line: 150, + column: 3 + } + }, + line: 148 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }], + line: 72 + }, + "1": { + loc: { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, + type: "if", + locations: [{ + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }], + line: 77 + }, + "2": { + loc: { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }], + line: 88 + }, + "3": { + loc: { + start: { + line: 88, + column: 7 + }, + end: { + line: 88, + column: 50 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 88, + column: 7 + }, + end: { + line: 88, + column: 21 + } + }, { + start: { + line: 88, + column: 25 + }, + end: { + line: 88, + column: 50 + } + }], + line: 88 + }, + "4": { + loc: { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }], + line: 95 + }, + "5": { + loc: { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }], + line: 96 + }, + "6": { + loc: { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }], + line: 99 + }, + "7": { + loc: { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }], + line: 110 + }, + "8": { + loc: { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }], + line: 111 + }, + "9": { + loc: { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }], + line: 114 + }, + "10": { + loc: { + start: { + line: 126, + column: 10 + }, + end: { + line: 126, + column: 74 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 126, + column: 10 + }, + end: { + line: 126, + column: 20 + } + }, { + start: { + line: 126, + column: 24 + }, + end: { + line: 126, + column: 74 + } + }], + line: 126 + }, + "11": { + loc: { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }], + line: 131 + }, + "12": { + loc: { + start: { + line: 131, + column: 7 + }, + end: { + line: 131, + column: 54 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 131, + column: 7 + }, + end: { + line: 131, + column: 24 + } + }, { + start: { + line: 131, + column: 28 + }, + end: { + line: 131, + column: 54 + } + }], + line: 131 + }, + "13": { + loc: { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 135 } - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0], + "13": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - this.eventBus.$off("clear-validation-errors"); - this.eventBus.$off("validate-fields"); - this.eventBus.$emit("field-deregistering", this); - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checkbox", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue - - - - - - -/* normalize component */ - -var fieldCheckbox_component = normalizeComponent( - core_fieldCheckboxvue_type_script_lang_js_, - fieldCheckboxvue_type_template_id_a12bd5d0_render, - fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns, - false, - null, - null, - null - -) - -fieldCheckbox_component.options.__file = "fieldCheckbox.vue" -/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& -var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} -var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] - + coverage = global[gcv] || (global[gcv] = {}); -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// EXTERNAL MODULE: ./node_modules/lodash/clone.js -var clone = __webpack_require__("b8ce"); -var clone_default = /*#__PURE__*/__webpack_require__.n(clone); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -7897,129 +25497,1344 @@ var clone_default = /*#__PURE__*/__webpack_require__.n(clone); name: "field-checklist", mixins: [abstractField], data: function data() { + cov_239wk76om5.f[0]++; + cov_239wk76om5.s[0]++; return { comboExpanded: false }; }, computed: { items: function items() { - var values = this.schema.values; + cov_239wk76om5.f[1]++; + var values = (cov_239wk76om5.s[1]++, this.schema.values); + cov_239wk76om5.s[2]++; if (typeof values == "function") { + cov_239wk76om5.b[0][0]++; + cov_239wk76om5.s[3]++; return values.apply(this, [this.model, this.schema]); - } else return values; + } else { + cov_239wk76om5.b[0][1]++; + cov_239wk76om5.s[4]++; + return values; + } }, selectedCount: function selectedCount() { - if (this.value) return this.value.length; + cov_239wk76om5.f[2]++; + cov_239wk76om5.s[5]++; + + if (this.value) { + cov_239wk76om5.b[1][0]++; + cov_239wk76om5.s[6]++; + return this.value.length; + } else { + cov_239wk76om5.b[1][1]++; + } + + cov_239wk76om5.s[7]++; return 0; }, useListBox: function useListBox() { + cov_239wk76om5.f[3]++; + cov_239wk76om5.s[8]++; return this.fieldOptions.listBox; } }, methods: { getInputName: function getInputName(item) { - if (this.inputName && this.inputName.length > 0) { + cov_239wk76om5.f[4]++; + cov_239wk76om5.s[9]++; + + if ((cov_239wk76om5.b[3][0]++, this.inputName) && (cov_239wk76om5.b[3][1]++, this.inputName.length > 0)) { + cov_239wk76om5.b[2][0]++; + cov_239wk76om5.s[10]++; return slugify(this.inputName + "_" + this.getItemValue(item)); + } else { + cov_239wk76om5.b[2][1]++; } + cov_239wk76om5.s[11]++; return slugify(this.getItemValue(item)); }, getItemValue: function getItemValue(item) { + cov_239wk76om5.f[5]++; + cov_239wk76om5.s[12]++; + if (isObject_default()(item)) { + cov_239wk76om5.b[4][0]++; + cov_239wk76om5.s[13]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_239wk76om5.b[5][0]++; + cov_239wk76om5.s[14]++; return item[this.fieldOptions.value]; } else { + cov_239wk76om5.b[5][1]++; + cov_239wk76om5.s[15]++; + if (typeof item["value"] !== "undefined") { + cov_239wk76om5.b[6][0]++; + cov_239wk76om5.s[16]++; return item.value; } else { + cov_239wk76om5.b[6][1]++; + cov_239wk76om5.s[17]++; 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; + } + } else { + cov_239wk76om5.b[4][1]++; + cov_239wk76om5.s[18]++; + return item; + } + }, + getItemName: function getItemName(item) { + cov_239wk76om5.f[6]++; + cov_239wk76om5.s[19]++; + + if (isObject_default()(item)) { + cov_239wk76om5.b[7][0]++; + cov_239wk76om5.s[20]++; + + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_239wk76om5.b[8][0]++; + cov_239wk76om5.s[21]++; + return item[this.fieldOptions.name]; + } else { + cov_239wk76om5.b[8][1]++; + cov_239wk76om5.s[22]++; + + if (typeof item["name"] !== "undefined") { + cov_239wk76om5.b[9][0]++; + cov_239wk76om5.s[23]++; + return item.name; + } else { + cov_239wk76om5.b[9][1]++; + cov_239wk76om5.s[24]++; + 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 { + cov_239wk76om5.b[7][1]++; + cov_239wk76om5.s[25]++; + return item; + } + }, + isItemChecked: function isItemChecked(item) { + cov_239wk76om5.f[7]++; + cov_239wk76om5.s[26]++; + return (cov_239wk76om5.b[10][0]++, this.value) && (cov_239wk76om5.b[10][1]++, this.value.indexOf(this.getItemValue(item)) !== -1); + }, + onChanged: function onChanged(event, item) { + cov_239wk76om5.f[8]++; + var isChecked = (cov_239wk76om5.s[27]++, event.target.checked); + cov_239wk76om5.s[28]++; + + if ((cov_239wk76om5.b[12][0]++, isNil_default()(this.value)) || (cov_239wk76om5.b[12][1]++, !Array.isArray(this.value))) { + cov_239wk76om5.b[11][0]++; + cov_239wk76om5.s[29]++; + this.value = []; + } else { + cov_239wk76om5.b[11][1]++; + } + + cov_239wk76om5.s[30]++; + + if (isChecked) { + cov_239wk76om5.b[13][0]++; + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var arr = (cov_239wk76om5.s[31]++, clone_default()(this.value)); + cov_239wk76om5.s[32]++; + arr.push(this.getItemValue(item)); + cov_239wk76om5.s[33]++; + this.value = arr; + } else { + cov_239wk76om5.b[13][1]++; + + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var _arr = (cov_239wk76om5.s[34]++, clone_default()(this.value)); + + cov_239wk76om5.s[35]++; + + _arr.splice(this.value.indexOf(this.getItemValue(item)), 1); + + cov_239wk76om5.s[36]++; + this.value = _arr; + } + }, + onExpandCombo: function onExpandCombo() { + cov_239wk76om5.f[9]++; + cov_239wk76om5.s[37]++; + 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"); + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue + + + + + + +/* normalize component */ + +var fieldChecklist_component = normalizeComponent( + core_fieldChecklistvue_type_script_lang_js_, + fieldChecklistvue_type_template_id_29d9d05a_render, + fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, + false, + null, + null, + null + +) + +fieldChecklist_component.options.__file = "fieldChecklist.vue" +/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& +var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} +var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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 cov_19faszspp7 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue", + hash = "21b1cece73d1932c4ddcb91d9ff3c2a8b33dd5e4", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue", + statementMap: { + "0": { + start: { + line: 52, + column: 25 + }, + end: { + line: 56, + column: 1 + } + }, + "1": { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + "2": { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 53 + } + }, + "3": { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 86 + } + }, + "4": { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + "5": { + start: { + line: 73, + column: 4 + }, + end: { + line: 83, + column: 5 + } + }, + "6": { + start: { + line: 80, + column: 6 + }, + end: { + line: 82, + column: 8 + } + }, + "7": { + start: { + line: 81, + column: 7 + }, + end: { + line: 81, + column: 49 + } + }, + "8": { + start: { + line: 86, + column: 3 + }, + end: { + line: 86, + column: 16 + } + }, + "9": { + start: { + line: 89, + column: 23 + }, + end: { + line: 89, + column: 55 + } + }, + "10": { + start: { + line: 90, + column: 11 + }, + end: { + line: 90, + column: 47 + } + }, + "11": { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, + "12": { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, + "13": { + start: { + line: 93, + column: 5 + }, + end: { + line: 93, + column: 52 + } + }, + "14": { + start: { + line: 95, + column: 5 + }, + end: { + line: 95, + column: 28 + } + }, + "15": { + start: { + line: 98, + column: 3 + }, + end: { + line: 98, + column: 45 + } + }, + "16": { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, + "17": { + start: { + line: 102, + column: 4 + }, + end: { + line: 102, + column: 19 + } + }, + "18": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 45 + } + }, + "19": { + start: { + line: 107, + column: 15 + }, + end: { + line: 107, + column: 34 + } + }, + "20": { + start: { + line: 108, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "21": { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, + "22": { + start: { + line: 112, + column: 6 + }, + end: { + line: 112, + column: 46 + } + }, + "23": { + start: { + line: 114, + column: 5 + }, + end: { + line: 114, + column: 11 + } + }, + "24": { + start: { + line: 116, + column: 3 + }, + end: { + line: 116, + column: 22 + } + }, + "25": { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, + "26": { + start: { + line: 120, + column: 4 + }, + end: { + line: 120, + column: 37 + } + }, + "27": { + start: { + line: 126, + column: 2 + }, + end: { + line: 155, + column: 3 + } + }, + "28": { + start: { + line: 129, + column: 4 + }, + end: { + line: 138, + column: 6 + } + }, + "29": { + start: { + line: 131, + column: 6 + }, + end: { + line: 131, + column: 51 + } + }, + "30": { + start: { + line: 139, + column: 4 + }, + end: { + line: 139, + column: 10 + } + }, + "31": { + start: { + line: 144, + column: 4 + }, + end: { + line: 153, + column: 6 + } + }, + "32": { + start: { + line: 146, + column: 6 + }, + end: { + line: 146, + column: 53 + } + }, + "33": { + start: { + line: 154, + column: 4 + }, + end: { + line: 154, + column: 10 + } + }, + "34": { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, + "35": { + start: { + line: 160, + column: 3 + }, + end: { + line: 160, + column: 91 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 14 + }, + end: { + line: 68, + column: 3 + } + }, + line: 62 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 71, + column: 2 + }, + end: { + line: 71, + column: 3 + } + }, + loc: { + start: { + line: 71, + column: 28 + }, + end: { + line: 87, + column: 3 + } + }, + line: 71 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 80, + column: 13 + }, + end: { + line: 80, + column: 14 + } + }, + loc: { + start: { + line: 80, + column: 37 + }, + end: { + line: 82, + column: 7 + } + }, + line: 80 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 3 + } + }, + loc: { + start: { + line: 88, + column: 44 + }, + end: { + line: 99, + column: 3 + } + }, + line: 88 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 42 + }, + end: { + line: 105, + column: 3 + } + }, + line: 100 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 106, + column: 2 + }, + end: { + line: 106, + column: 3 + } + }, + loc: { + start: { + line: 106, + column: 18 + }, + end: { + line: 117, + column: 3 + } + }, + line: 106 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 118, + column: 2 + }, + end: { + line: 118, + column: 3 + } + }, + loc: { + start: { + line: 118, + column: 11 + }, + end: { + line: 122, + column: 3 + } + }, + line: 118 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 125, + column: 1 + }, + end: { + line: 125, + column: 2 + } + }, + loc: { + start: { + line: 125, + column: 11 + }, + end: { + line: 156, + column: 2 + } + }, + line: 125 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 130, + column: 5 + }, + end: { + line: 130, + column: 6 + } + }, + loc: { + start: { + line: 130, + column: 29 + }, + end: { + line: 132, + column: 6 + } + }, + line: 130 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 145, + column: 5 + }, + end: { + line: 145, + column: 6 + } + }, + loc: { + start: { + line: 145, + column: 29 + }, + end: { + line: 147, + column: 6 + } + }, + line: 145 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 158, + column: 1 + }, + end: { + line: 158, + column: 2 + } + }, + loc: { + start: { + line: 158, + column: 11 + }, + end: { + line: 162, + column: 2 + } + }, + line: 158 } }, - 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"; + branchMap: { + "0": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 } - } - } else { - return item; + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }], + line: 63 + }, + "1": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }], + line: 72 + }, + "2": { + loc: { + start: { + line: 73, + column: 4 + }, + end: { + line: 83, + column: 5 + } + }, + type: "switch", + locations: [{ + start: { + line: 74, + column: 5 + }, + end: { + line: 74, + column: 17 + } + }, { + start: { + line: 75, + column: 5 + }, + end: { + line: 75, + column: 21 + } + }, { + start: { + line: 76, + column: 5 + }, + end: { + line: 76, + column: 27 + } + }, { + start: { + line: 77, + column: 5 + }, + end: { + line: 77, + column: 19 + } + }, { + start: { + line: 78, + column: 5 + }, + end: { + line: 82, + column: 8 + } + }], + line: 73 + }, + "3": { + loc: { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }], + line: 91 + }, + "4": { + loc: { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }], + line: 92 + }, + "5": { + loc: { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }], + line: 101 + }, + "6": { + loc: { + start: { + line: 108, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "switch", + locations: [{ + start: { + line: 109, + column: 4 + }, + end: { + line: 109, + column: 18 + } + }, { + start: { + line: 110, + column: 4 + }, + end: { + line: 114, + column: 11 + } + }], + line: 108 + }, + "7": { + loc: { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }], + line: 111 + }, + "8": { + loc: { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }], + line: 119 + }, + "9": { + loc: { + start: { + line: 126, + column: 2 + }, + end: { + line: 155, + column: 3 + } + }, + type: "switch", + locations: [{ + start: { + line: 127, + column: 3 + }, + end: { + line: 127, + column: 17 + } + }, { + start: { + line: 128, + column: 3 + }, + end: { + line: 139, + column: 10 + } + }, { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 15 + } + }, { + start: { + line: 141, + column: 3 + }, + end: { + line: 141, + column: 19 + } + }, { + start: { + line: 142, + column: 3 + }, + end: { + line: 154, + column: 10 + } + }], + line: 126 + }, + "10": { + loc: { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }], + line: 159 } }, - isItemChecked: function isItemChecked(item) { - return this.value && this.value.indexOf(this.getItemValue(item)) !== -1; + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0 }, - 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; - } + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 }, - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue - - - - - - -/* normalize component */ - -var fieldChecklist_component = normalizeComponent( - core_fieldChecklistvue_type_script_lang_js_, - fieldChecklistvue_type_template_id_29d9d05a_render, - fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, - false, - null, - null, - null - -) - -fieldChecklist_component.options.__file = "fieldChecklist.vue" -/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& -var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} -var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0, 0, 0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0, 0, 0, 0], + "10": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -8072,19 +26887,26 @@ var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] // -var DATETIME_FORMATS = { +var DATETIME_FORMATS = (cov_19faszspp7.s[0]++, { 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_ = ({ name: "field-input", mixins: [abstractField], computed: { inputType: function inputType() { + cov_19faszspp7.f[0]++; + cov_19faszspp7.s[1]++; + if (typeof this.fieldOptions.inputType !== "undefined") { + cov_19faszspp7.b[0][0]++; + cov_19faszspp7.s[2]++; return this.fieldOptions.inputType.toLowerCase(); } else { + cov_19faszspp7.b[0][1]++; + cov_19faszspp7.s[3]++; console.warn("Missing inputType", this.fieldOptions, this.fieldOptions.inputType); } } @@ -8093,94 +26915,184 @@ var DATETIME_FORMATS = { formatValueToModel: function formatValueToModel(value) { var _this = this; + cov_19faszspp7.f[1]++; + cov_19faszspp7.s[4]++; + if (value != null) { + cov_19faszspp7.b[1][0]++; + cov_19faszspp7.s[5]++; + switch (this.inputType) { case "date": + cov_19faszspp7.b[2][0]++; + case "datetime": + cov_19faszspp7.b[2][1]++; + case "datetime-local": + cov_19faszspp7.b[2][2]++; + case "number": + cov_19faszspp7.b[2][3]++; + case "range": + cov_19faszspp7.b[2][4]++; + cov_19faszspp7.s[6]++; // debounce return function (newValue, oldValue) { + cov_19faszspp7.f[2]++; + cov_19faszspp7.s[7]++; + _this.debouncedFormatFunc(value, oldValue); }; } + } else { + cov_19faszspp7.b[1][1]++; } + cov_19faszspp7.s[8]++; return value; }, formatDatetimeToModel: function formatDatetimeToModel(newValue, oldValue) { - var defaultFormat = DATETIME_FORMATS[this.inputType]; - var m = fecha_default.a.parse(newValue, defaultFormat); + cov_19faszspp7.f[3]++; + var defaultFormat = (cov_19faszspp7.s[9]++, DATETIME_FORMATS[this.inputType]); + var m = (cov_19faszspp7.s[10]++, fecha_default.a.parse(newValue, defaultFormat)); + cov_19faszspp7.s[11]++; if (m !== false) { + cov_19faszspp7.b[3][0]++; + cov_19faszspp7.s[12]++; + if (this.schema.format) { + cov_19faszspp7.b[4][0]++; + cov_19faszspp7.s[13]++; newValue = fecha_default.a.format(m, this.schema.format); } else { + cov_19faszspp7.b[4][1]++; + cov_19faszspp7.s[14]++; newValue = m.valueOf(); } + } else { + cov_19faszspp7.b[3][1]++; } + cov_19faszspp7.s[15]++; this.updateModelValue(newValue, oldValue); }, formatNumberToModel: function formatNumberToModel(newValue, oldValue) { + cov_19faszspp7.f[4]++; + cov_19faszspp7.s[16]++; + if (!isNumber_default()(newValue)) { + cov_19faszspp7.b[5][0]++; + cov_19faszspp7.s[17]++; newValue = NaN; + } else { + cov_19faszspp7.b[5][1]++; } + cov_19faszspp7.s[18]++; this.updateModelValue(newValue, oldValue); }, onInput: function onInput($event) { - var value = $event.target.value; + cov_19faszspp7.f[5]++; + var value = (cov_19faszspp7.s[19]++, $event.target.value); + cov_19faszspp7.s[20]++; switch (this.inputType) { case "number": + cov_19faszspp7.b[6][0]++; + case "range": + cov_19faszspp7.b[6][1]++; + cov_19faszspp7.s[21]++; + if (isNumber_default()(parseFloat($event.target.value))) { + cov_19faszspp7.b[7][0]++; + cov_19faszspp7.s[22]++; value = parseFloat($event.target.value); + } else { + cov_19faszspp7.b[7][1]++; } + cov_19faszspp7.s[23]++; break; } + cov_19faszspp7.s[24]++; this.value = value; }, onBlur: function onBlur() { + cov_19faszspp7.f[6]++; + cov_19faszspp7.s[25]++; + if (isFunction_default()(this.debouncedFormatFunc)) { + cov_19faszspp7.b[8][0]++; + cov_19faszspp7.s[26]++; this.debouncedFormatFunc.flush(); + } else { + cov_19faszspp7.b[8][1]++; } } }, mounted: function mounted() { var _this2 = this; + cov_19faszspp7.f[7]++; + cov_19faszspp7.s[27]++; + switch (this.inputType) { case "number": + cov_19faszspp7.b[9][0]++; + case "range": + cov_19faszspp7.b[9][1]++; + cov_19faszspp7.s[28]++; this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + cov_19faszspp7.f[8]++; + cov_19faszspp7.s[29]++; + _this2.formatNumberToModel(newValue, oldValue); }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { trailing: true, leading: false }); + cov_19faszspp7.s[30]++; break; case "date": + cov_19faszspp7.b[9][2]++; + case "datetime": + cov_19faszspp7.b[9][3]++; + case "datetime-local": + cov_19faszspp7.b[9][4]++; + cov_19faszspp7.s[31]++; // wait 1s before calling 'formatDatetimeToModel' to allow user to input data this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + cov_19faszspp7.f[9]++; + cov_19faszspp7.s[32]++; + _this2.formatDatetimeToModel(newValue, oldValue); }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { trailing: true, leading: false }); + cov_19faszspp7.s[33]++; break; } }, created: function created() { + cov_19faszspp7.f[10]++; + cov_19faszspp7.s[34]++; + if (this.inputType === "file") { + cov_19faszspp7.b[10][0]++; + cov_19faszspp7.s[35]++; console.warn("The 'file' type in input field is deprecated. Use 'file' field instead."); + } else { + cov_19faszspp7.b[10][1]++; } } }); @@ -8211,7 +27123,7 @@ var fieldInput_component = normalizeComponent( fieldInput_component.options.__file = "fieldInput.vue" /* harmony default export */ var fieldInput = (fieldInput_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& var fieldLabelvue_type_template_id_b7bdf280_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},domProps:{"textContent":_vm._s(_vm.value)}})} var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] @@ -8219,6 +27131,32 @@ var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1z02pwffjf = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue", + hash = "e0e8d398553634fa5cd6162f995cc222d002256b", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -8258,14 +27196,676 @@ var fieldLabel_component = normalizeComponent( fieldLabel_component.options.__file = "fieldLabel.vue" /* harmony default export */ var fieldLabel = (fieldLabel_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& -var fieldRadiosvue_type_template_id_3944ded4_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'"}],key:_vm.getItemValue(item),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))+"\n\t")])}))} -var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldRadios.vue?vue&type=template&id=02c30276& +var fieldRadiosvue_type_template_id_02c30276_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'"}],key:_vm.getItemValue(item),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,"required":_vm.required},domProps:{"value":_vm.getItemValue(item),"checked":_vm.isItemChecked(item)},on:{"click":function($event){_vm.onSelection(item)}}}),_vm._v(_vm._s(_vm.getItemName(item))+"\n\t")])}))} +var fieldRadiosvue_type_template_id_02c30276_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=02c30276& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_26ma8ejo1y = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue", + hash = "41a18432705c71af0b221e887e1a797ecd647f22", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue", + statementMap: { + "0": { + start: { + line: 34, + column: 16 + }, + end: { + line: 34, + column: 34 + } + }, + "1": { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + "2": { + start: { + line: 36, + column: 4 + }, + end: { + line: 36, + column: 57 + } + }, + "3": { + start: { + line: 38, + column: 4 + }, + end: { + line: 38, + column: 18 + } + }, + "4": { + start: { + line: 42, + column: 3 + }, + end: { + line: 42, + column: 28 + } + }, + "5": { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "6": { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + "7": { + start: { + line: 50, + column: 5 + }, + end: { + line: 50, + column: 42 + } + }, + "8": { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, + "9": { + start: { + line: 53, + column: 6 + }, + end: { + line: 53, + column: 24 + } + }, + "10": { + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 237 + } + }, + "11": { + start: { + line: 59, + column: 4 + }, + end: { + line: 59, + column: 16 + } + }, + "12": { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + "13": { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, + "14": { + start: { + line: 65, + column: 5 + }, + end: { + line: 65, + column: 41 + } + }, + "15": { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, + "16": { + start: { + line: 68, + column: 6 + }, + end: { + line: 68, + column: 23 + } + }, + "17": { + start: { + line: 70, + column: 6 + }, + end: { + line: 70, + column: 235 + } + }, + "18": { + start: { + line: 74, + column: 4 + }, + end: { + line: 74, + column: 16 + } + }, + "19": { + start: { + line: 78, + column: 3 + }, + end: { + line: 78, + column: 40 + } + }, + "20": { + start: { + line: 81, + column: 22 + }, + end: { + line: 81, + column: 45 + } + }, + "21": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 38 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 33, + column: 2 + }, + end: { + line: 33, + column: 3 + } + }, + loc: { + start: { + line: 33, + column: 10 + }, + end: { + line: 40, + column: 3 + } + }, + line: 33 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 41, + column: 2 + }, + end: { + line: 41, + column: 3 + } + }, + loc: { + start: { + line: 41, + column: 7 + }, + end: { + line: 43, + column: 3 + } + }, + line: 41 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 47, + column: 2 + }, + end: { + line: 47, + column: 3 + } + }, + loc: { + start: { + line: 47, + column: 21 + }, + end: { + line: 61, + column: 3 + } + }, + line: 47 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 20 + }, + end: { + line: 76, + column: 3 + } + }, + line: 62 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 77, + column: 2 + }, + end: { + line: 77, + column: 3 + } + }, + loc: { + start: { + line: 77, + column: 20 + }, + end: { + line: 79, + column: 3 + } + }, + line: 77 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 80, + column: 2 + }, + end: { + line: 80, + column: 3 + } + }, + loc: { + start: { + line: 80, + column: 22 + }, + end: { + line: 83, + column: 3 + } + }, + line: 80 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }], + line: 35 + }, + "1": { + loc: { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 48 + }, + "2": { + loc: { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }], + line: 49 + }, + "3": { + loc: { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }], + line: 52 + }, + "4": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }], + line: 63 + }, + "5": { + loc: { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }], + line: 64 + }, + "6": { + loc: { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }], + line: 67 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -8276,54 +27876,100 @@ var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_26ma8ejo1y.f[0]++; + var values = (cov_26ma8ejo1y.s[0]++, this.schema.values); + cov_26ma8ejo1y.s[1]++; if (typeof values == "function") { + cov_26ma8ejo1y.b[0][0]++; + cov_26ma8ejo1y.s[2]++; return values.apply(this, [this.model, this.schema]); } else { + cov_26ma8ejo1y.b[0][1]++; + cov_26ma8ejo1y.s[3]++; return values; } }, id: function id() { + cov_26ma8ejo1y.f[1]++; + cov_26ma8ejo1y.s[4]++; return this.schema.model; } }, methods: { getItemValue: function getItemValue(item) { + cov_26ma8ejo1y.f[2]++; + cov_26ma8ejo1y.s[5]++; + if (isObject_default()(item)) { + cov_26ma8ejo1y.b[1][0]++; + cov_26ma8ejo1y.s[6]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_26ma8ejo1y.b[2][0]++; + cov_26ma8ejo1y.s[7]++; return item[this.fieldOptions.value]; } else { + cov_26ma8ejo1y.b[2][1]++; + cov_26ma8ejo1y.s[8]++; + if (typeof item["value"] !== "undefined") { + cov_26ma8ejo1y.b[3][0]++; + cov_26ma8ejo1y.s[9]++; return item.value; } else { + cov_26ma8ejo1y.b[3][1]++; + cov_26ma8ejo1y.s[10]++; 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 { + cov_26ma8ejo1y.b[1][1]++; + cov_26ma8ejo1y.s[11]++; return item; } }, getItemName: function getItemName(item) { + cov_26ma8ejo1y.f[3]++; + cov_26ma8ejo1y.s[12]++; + if (isObject_default()(item)) { + cov_26ma8ejo1y.b[4][0]++; + cov_26ma8ejo1y.s[13]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_26ma8ejo1y.b[5][0]++; + cov_26ma8ejo1y.s[14]++; return item[this.fieldOptions.name]; } else { + cov_26ma8ejo1y.b[5][1]++; + cov_26ma8ejo1y.s[15]++; + if (typeof item["name"] !== "undefined") { + cov_26ma8ejo1y.b[6][0]++; + cov_26ma8ejo1y.s[16]++; return item.name; } else { + cov_26ma8ejo1y.b[6][1]++; + cov_26ma8ejo1y.s[17]++; 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 { + cov_26ma8ejo1y.b[4][1]++; + cov_26ma8ejo1y.s[18]++; return item; } }, onSelection: function onSelection(item) { + cov_26ma8ejo1y.f[4]++; + cov_26ma8ejo1y.s[19]++; this.value = this.getItemValue(item); }, isItemChecked: function isItemChecked(item) { - var currentValue = this.getItemValue(item); + cov_26ma8ejo1y.f[5]++; + var currentValue = (cov_26ma8ejo1y.s[20]++, this.getItemValue(item)); + cov_26ma8ejo1y.s[21]++; return currentValue === this.value; } } @@ -8344,8 +27990,8 @@ var fieldRadiosvue_type_style_index_0_lang_scss_ = __webpack_require__("602f"); var fieldRadios_component = normalizeComponent( core_fieldRadiosvue_type_script_lang_js_, - fieldRadiosvue_type_template_id_3944ded4_render, - fieldRadiosvue_type_template_id_3944ded4_staticRenderFns, + fieldRadiosvue_type_template_id_02c30276_render, + fieldRadiosvue_type_template_id_02c30276_staticRenderFns, false, null, null, @@ -8355,7 +28001,7 @@ var fieldRadios_component = normalizeComponent( fieldRadios_component.options.__file = "fieldRadios.vue" /* harmony default export */ var fieldRadios = (fieldRadios_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& var fieldSelectvue_type_template_id_d7c686e6_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 || "")+"\n\t")]):_vm._e(),_vm._l((_vm.items),function(item){return [(item.group)?_c('optgroup',{key:_vm.getItemValue(item),attrs:{"label":_vm.getGroupName(item)}},_vm._l((item.ops),function(i){return (item.ops)?_c('option',{key:_vm.getItemValue(i),domProps:{"value":_vm.getItemValue(i)}},[_vm._v(" "+_vm._s(_vm.getItemName(i)))]):_vm._e()})):_vm._e(),(!item.group)?_c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))]):_vm._e()]})],2)} var fieldSelectvue_type_template_id_d7c686e6_staticRenderFns = [] @@ -8367,6 +28013,1109 @@ var find = __webpack_require__("2769"); var find_default = /*#__PURE__*/__webpack_require__.n(find); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_lmw4dbcxz = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue", + hash = "8eabcdaef34305c76a5accd8a0e0c7e6b0d9ee14", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue", + statementMap: { + "0": { + start: { + line: 41, + column: 16 + }, + end: { + line: 41, + column: 34 + } + }, + "1": { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, + "2": { + start: { + line: 43, + column: 4 + }, + end: { + line: 43, + column: 75 + } + }, + "3": { + start: { + line: 44, + column: 10 + }, + end: { + line: 44, + column: 42 + } + }, + "4": { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + "5": { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 16 + } + }, + "6": { + start: { + line: 53, + column: 3 + }, + end: { + line: 53, + column: 16 + } + }, + "7": { + start: { + line: 57, + column: 15 + }, + end: { + line: 57, + column: 17 + } + }, + "8": { + start: { + line: 58, + column: 22 + }, + end: { + line: 58, + column: 24 + } + }, + "9": { + start: { + line: 60, + column: 3 + }, + end: { + line: 101, + column: 6 + } + }, + "10": { + start: { + line: 61, + column: 4 + }, + end: { + line: 61, + column: 24 + } + }, + "11": { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, + "12": { + start: { + line: 67, + column: 5 + }, + end: { + line: 67, + column: 63 + } + }, + "13": { + start: { + line: 67, + column: 39 + }, + end: { + line: 67, + column: 61 + } + }, + "14": { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, + "15": { + start: { + line: 72, + column: 6 + }, + end: { + line: 75, + column: 9 + } + }, + "16": { + start: { + line: 80, + column: 6 + }, + end: { + line: 83, + column: 8 + } + }, + "17": { + start: { + line: 86, + column: 6 + }, + end: { + line: 86, + column: 38 + } + }, + "18": { + start: { + line: 89, + column: 6 + }, + end: { + line: 92, + column: 9 + } + }, + "19": { + start: { + line: 95, + column: 6 + }, + end: { + line: 95, + column: 31 + } + }, + "20": { + start: { + line: 99, + column: 5 + }, + end: { + line: 99, + column: 22 + } + }, + "21": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 16 + } + }, + "22": { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, + "23": { + start: { + line: 109, + column: 4 + }, + end: { + line: 109, + column: 22 + } + }, + "24": { + start: { + line: 112, + column: 3 + }, + end: { + line: 112, + column: 136 + } + }, + "25": { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, + "26": { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, + "27": { + start: { + line: 118, + column: 5 + }, + end: { + line: 118, + column: 42 + } + }, + "28": { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, + "29": { + start: { + line: 122, + column: 6 + }, + end: { + line: 122, + column: 21 + } + }, + "30": { + start: { + line: 124, + column: 6 + }, + end: { + line: 124, + column: 233 + } + }, + "31": { + start: { + line: 128, + column: 4 + }, + end: { + line: 128, + column: 16 + } + }, + "32": { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "33": { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, + "34": { + start: { + line: 135, + column: 5 + }, + end: { + line: 135, + column: 41 + } + }, + "35": { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, + "36": { + start: { + line: 138, + column: 6 + }, + end: { + line: 138, + column: 23 + } + }, + "37": { + start: { + line: 140, + column: 6 + }, + end: { + line: 140, + column: 234 + } + }, + "38": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 40, + column: 2 + }, + end: { + line: 40, + column: 3 + } + }, + loc: { + start: { + line: 40, + column: 10 + }, + end: { + line: 45, + column: 3 + } + }, + line: 40 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 3 + } + }, + loc: { + start: { + line: 49, + column: 28 + }, + end: { + line: 54, + column: 3 + } + }, + line: 49 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 56, + column: 2 + }, + end: { + line: 56, + column: 3 + } + }, + loc: { + start: { + line: 56, + column: 22 + }, + end: { + line: 105, + column: 3 + } + }, + line: 56 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 60, + column: 18 + }, + end: { + line: 60, + column: 19 + } + }, + loc: { + start: { + line: 60, + column: 28 + }, + end: { + line: 101, + column: 4 + } + }, + line: 60 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 67, + column: 32 + }, + end: { + line: 67, + column: 33 + } + }, + loc: { + start: { + line: 67, + column: 39 + }, + end: { + line: 67, + column: 61 + } + }, + line: 67 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 107, + column: 2 + }, + end: { + line: 107, + column: 3 + } + }, + loc: { + start: { + line: 107, + column: 21 + }, + end: { + line: 113, + column: 3 + } + }, + line: 107 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 115, + column: 2 + }, + end: { + line: 115, + column: 3 + } + }, + loc: { + start: { + line: 115, + column: 21 + }, + end: { + line: 130, + column: 3 + } + }, + line: 115 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 132, + column: 2 + }, + end: { + line: 132, + column: 3 + } + }, + loc: { + start: { + line: 132, + column: 20 + }, + end: { + line: 146, + column: 3 + } + }, + line: 132 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, + type: "if", + locations: [{ + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }], + line: 42 + }, + "1": { + loc: { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }], + line: 50 + }, + "2": { + loc: { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }], + line: 63 + }, + "3": { + loc: { + start: { + line: 63, + column: 8 + }, + end: { + line: 63, + column: 36 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 63, + column: 8 + }, + end: { + line: 63, + column: 18 + } + }, { + start: { + line: 63, + column: 22 + }, + end: { + line: 63, + column: 36 + } + }], + line: 63 + }, + "4": { + loc: { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }], + line: 69 + }, + "5": { + loc: { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }], + line: 108 + }, + "6": { + loc: { + start: { + line: 108, + column: 7 + }, + end: { + line: 108, + column: 25 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 108, + column: 7 + }, + end: { + line: 108, + column: 11 + } + }, { + start: { + line: 108, + column: 15 + }, + end: { + line: 108, + column: 25 + } + }], + line: 108 + }, + "7": { + loc: { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }], + line: 116 + }, + "8": { + loc: { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }], + line: 117 + }, + "9": { + loc: { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }], + line: 121 + }, + "10": { + loc: { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 133 + }, + "11": { + loc: { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }], + line: 134 + }, + "12": { + loc: { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }], + line: 137 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + @@ -8379,41 +29128,71 @@ var find_default = /*#__PURE__*/__webpack_require__.n(find); mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_lmw4dbcxz.f[0]++; + var values = (cov_lmw4dbcxz.s[0]++, this.schema.values); + cov_lmw4dbcxz.s[1]++; if (typeof values == "function") { + cov_lmw4dbcxz.b[0][0]++; + cov_lmw4dbcxz.s[2]++; return this.groupValues(values.apply(this, [this.model, this.schema])); - } else return this.groupValues(values); + } else { + cov_lmw4dbcxz.b[0][1]++; + cov_lmw4dbcxz.s[3]++; + return this.groupValues(values); + } } }, methods: { formatValueToField: function formatValueToField(value) { + cov_lmw4dbcxz.f[1]++; + cov_lmw4dbcxz.s[4]++; + if (isNil_default()(value)) { + cov_lmw4dbcxz.b[1][0]++; + cov_lmw4dbcxz.s[5]++; return null; + } else { + cov_lmw4dbcxz.b[1][1]++; } + cov_lmw4dbcxz.s[6]++; return value; }, groupValues: function groupValues(values) { - var array = []; - var arrayElement = {}; + cov_lmw4dbcxz.f[2]++; + var array = (cov_lmw4dbcxz.s[7]++, []); + var arrayElement = (cov_lmw4dbcxz.s[8]++, {}); + cov_lmw4dbcxz.s[9]++; values.forEach(function (item) { + cov_lmw4dbcxz.f[3]++; + cov_lmw4dbcxz.s[10]++; arrayElement = null; + cov_lmw4dbcxz.s[11]++; - if (item.group && isObject_default()(item)) { + if ((cov_lmw4dbcxz.b[3][0]++, item.group) && (cov_lmw4dbcxz.b[3][1]++, isObject_default()(item))) { + cov_lmw4dbcxz.b[2][0]++; + cov_lmw4dbcxz.s[12]++; // There is in a group. // Find element with this group. arrayElement = find_default()(array, function (i) { + cov_lmw4dbcxz.f[4]++; + cov_lmw4dbcxz.s[13]++; return i.group === item.group; }); + cov_lmw4dbcxz.s[14]++; if (arrayElement) { + cov_lmw4dbcxz.b[4][0]++; + cov_lmw4dbcxz.s[15]++; // There is such a group. arrayElement.ops.push({ id: item.id, name: item.name }); } else { + cov_lmw4dbcxz.b[4][1]++; + cov_lmw4dbcxz.s[16]++; // There is not such a group. // Initialising. arrayElement = { @@ -8421,58 +29200,106 @@ var find_default = /*#__PURE__*/__webpack_require__.n(find); ops: [] }; // Set group. + cov_lmw4dbcxz.s[17]++; arrayElement.group = item.group; // Set Group element. + cov_lmw4dbcxz.s[18]++; arrayElement.ops.push({ id: item.id, name: item.name }); // Add array. + cov_lmw4dbcxz.s[19]++; array.push(arrayElement); } } else { + cov_lmw4dbcxz.b[2][1]++; + cov_lmw4dbcxz.s[20]++; // There is not in a group. array.push(item); } }); // With Groups. + cov_lmw4dbcxz.s[21]++; return array; }, getGroupName: function getGroupName(item) { - if (item && item.group) { + cov_lmw4dbcxz.f[5]++; + cov_lmw4dbcxz.s[22]++; + + if ((cov_lmw4dbcxz.b[6][0]++, item) && (cov_lmw4dbcxz.b[6][1]++, item.group)) { + cov_lmw4dbcxz.b[5][0]++; + cov_lmw4dbcxz.s[23]++; return item.group; + } else { + cov_lmw4dbcxz.b[5][1]++; } + cov_lmw4dbcxz.s[24]++; throw "Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"; }, getItemValue: function getItemValue(item) { + cov_lmw4dbcxz.f[6]++; + cov_lmw4dbcxz.s[25]++; + if (isObject_default()(item)) { + cov_lmw4dbcxz.b[7][0]++; + cov_lmw4dbcxz.s[26]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_lmw4dbcxz.b[8][0]++; + cov_lmw4dbcxz.s[27]++; return item[this.fieldOptions.value]; } else { + cov_lmw4dbcxz.b[8][1]++; + cov_lmw4dbcxz.s[28]++; + // Use 'id' instead of 'value' cause of backward compatibility if (typeof item["id"] !== "undefined") { + cov_lmw4dbcxz.b[9][0]++; + cov_lmw4dbcxz.s[29]++; return item.id; } else { + cov_lmw4dbcxz.b[9][1]++; + cov_lmw4dbcxz.s[30]++; 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 { + cov_lmw4dbcxz.b[7][1]++; + cov_lmw4dbcxz.s[31]++; return item; } }, getItemName: function getItemName(item) { + cov_lmw4dbcxz.f[7]++; + cov_lmw4dbcxz.s[32]++; + if (isObject_default()(item)) { + cov_lmw4dbcxz.b[10][0]++; + cov_lmw4dbcxz.s[33]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_lmw4dbcxz.b[11][0]++; + cov_lmw4dbcxz.s[34]++; return item[this.fieldOptions.name]; } else { + cov_lmw4dbcxz.b[11][1]++; + cov_lmw4dbcxz.s[35]++; + if (typeof item["name"] !== "undefined") { + cov_lmw4dbcxz.b[12][0]++; + cov_lmw4dbcxz.s[36]++; return item.name; } else { + cov_lmw4dbcxz.b[12][1]++; + cov_lmw4dbcxz.s[37]++; 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 { + cov_lmw4dbcxz.b[10][1]++; + cov_lmw4dbcxz.s[38]++; return item; } } @@ -8501,18 +29328,380 @@ var fieldSelect_component = normalizeComponent( fieldSelect_component.options.__file = "fieldSelect.vue" /* harmony default export */ var fieldSelect = (fieldSelect_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& var fieldSubmitvue_type_template_id_11503acf_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 fieldSubmitvue_type_template_id_11503acf_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& +// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& + +// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js +var isEmpty = __webpack_require__("13ea"); +var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1eyhbnl2w4 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue", + hash = "705dcd2f9bd065a866442cf99ecf19cdc719dc61", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + "1": { + start: { + line: 25, + column: 4 + }, + end: { + line: 25, + column: 28 + } + }, + "2": { + start: { + line: 27, + column: 4 + }, + end: { + line: 27, + column: 53 + } + }, + "3": { + start: { + line: 28, + column: 4 + }, + end: { + line: 34, + column: 7 + } + }, + "4": { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, + "5": { + start: { + line: 30, + column: 6 + }, + end: { + line: 30, + column: 87 + } + }, + "6": { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, + "7": { + start: { + line: 32, + column: 6 + }, + end: { + line: 32, + column: 66 + } + }, + "8": { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, + "9": { + start: { + line: 38, + column: 4 + }, + end: { + line: 38, + column: 64 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 3 + } + }, + loc: { + start: { + line: 21, + column: 18 + }, + end: { + line: 40, + column: 3 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 28, + column: 54 + }, + end: { + line: 28, + column: 55 + } + }, + loc: { + start: { + line: 28, + column: 70 + }, + end: { + line: 34, + column: 5 + } + }, + line: 28 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }], + line: 22 + }, + "1": { + loc: { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }], + line: 29 + }, + "2": { + loc: { + start: { + line: 29, + column: 9 + }, + end: { + line: 29, + column: 80 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 29, + column: 9 + }, + end: { + line: 29, + column: 29 + } + }, { + start: { + line: 29, + column: 33 + }, + end: { + line: 29, + column: 80 + } + }], + line: 29 + }, + "3": { + loc: { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }], + line: 31 + }, + "4": { + loc: { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }], + line: 35 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js -var isEmpty = __webpack_require__("13ea"); -var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& // @@ -8534,22 +29723,54 @@ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); onClick: function onClick($event) { var _this = this; + cov_1eyhbnl2w4.f[0]++; + cov_1eyhbnl2w4.s[0]++; + if (this.fieldOptions.validateBeforeSubmit === true) { + cov_1eyhbnl2w4.b[0][0]++; + cov_1eyhbnl2w4.s[1]++; // prevent a from having it's submit event triggered // when we have to validate data first $event.preventDefault(); + cov_1eyhbnl2w4.s[2]++; this.eventBus.$emit("fields-validation-trigger"); + cov_1eyhbnl2w4.s[3]++; this.eventBus.$on("fields-validation-terminated", function (formErrors) { - if (!isEmpty_default()(formErrors) && isFunction_default()(_this.fieldOptions.onValidationError)) { + cov_1eyhbnl2w4.f[1]++; + cov_1eyhbnl2w4.s[4]++; + + if ((cov_1eyhbnl2w4.b[2][0]++, !isEmpty_default()(formErrors)) && (cov_1eyhbnl2w4.b[2][1]++, isFunction_default()(_this.fieldOptions.onValidationError))) { + cov_1eyhbnl2w4.b[1][0]++; + cov_1eyhbnl2w4.s[5]++; + _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 { + cov_1eyhbnl2w4.b[1][1]++; + cov_1eyhbnl2w4.s[6]++; + + if (isFunction_default()(_this.fieldOptions.onSubmit)) { + cov_1eyhbnl2w4.b[3][0]++; + cov_1eyhbnl2w4.s[7]++; + + _this.fieldOptions.onSubmit(_this.model, _this.schema, $event); + } else { + cov_1eyhbnl2w4.b[3][1]++; + } } }); - } 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); + } else { + cov_1eyhbnl2w4.b[0][1]++; + cov_1eyhbnl2w4.s[8]++; + + if (isFunction_default()(this.fieldOptions.onSubmit)) { + cov_1eyhbnl2w4.b[4][0]++; + cov_1eyhbnl2w4.s[9]++; + // 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); + } else { + cov_1eyhbnl2w4.b[4][1]++; + } } } } @@ -8581,14 +29802,41 @@ var fieldSubmit_component = normalizeComponent( fieldSubmit_component.options.__file = "fieldSubmit.vue" /* harmony default export */ var fieldSubmit = (fieldSubmit_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& -var fieldTextAreavue_type_template_id_4f6b57f4_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 fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldTextArea.vue?vue&type=template&id=f39f9114& +var fieldTextAreavue_type_template_id_f39f9114_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,"required":_vm.required,"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 fieldTextAreavue_type_template_id_f39f9114_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& +// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=f39f9114& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1hqhuum74p = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue", + hash = "cad11a306f38168b3da4ad2f7aaa633fbbd53d56", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + +// // // // @@ -8621,8 +29869,8 @@ var fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] var fieldTextArea_component = normalizeComponent( core_fieldTextAreavue_type_script_lang_js_, - fieldTextAreavue_type_template_id_4f6b57f4_render, - fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns, + fieldTextAreavue_type_template_id_f39f9114_render, + fieldTextAreavue_type_template_id_f39f9114_staticRenderFns, false, null, null, @@ -8632,14 +29880,127 @@ var fieldTextArea_component = normalizeComponent( fieldTextArea_component.options.__file = "fieldTextArea.vue" /* harmony default export */ var fieldTextArea = (fieldTextArea_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& -var fieldUploadvue_type_template_id_2593d5d7_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 fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldUpload.vue?vue&type=template&id=94384992& +var fieldUploadvue_type_template_id_94384992_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 fieldUploadvue_type_template_id_94384992_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& +// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=94384992& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_ne4lthbiz = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue", + hash = "2d53023d636a56005ec40d048d8b3dd58211ad58", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue", + statementMap: { + "0": { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + "1": { + start: { + line: 30, + column: 4 + }, + end: { + line: 30, + column: 82 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 27, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }, + loc: { + start: { + line: 27, + column: 19 + }, + end: { + line: 32, + column: 3 + } + }, + line: 27 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }], + line: 28 + } + }, + s: { + "0": 0, + "1": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8665,9 +30026,16 @@ var fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] mixins: [abstractField], methods: { onChange: function onChange($event) { - if (isFunction_default()(this.schema.onChanged)) { + cov_ne4lthbiz.f[0]++; + cov_ne4lthbiz.s[0]++; + + if (isFunction_default()(this.fieldOptions.onChanged)) { + cov_ne4lthbiz.b[0][0]++; + cov_ne4lthbiz.s[1]++; // Schema has defined onChange method. - this.schema.onChanged.call(this, this.model, this.schema, $event, this); + this.fieldOptions.onChanged.call(this, this.model, this.schema, $event, this); + } else { + cov_ne4lthbiz.b[0][1]++; } } } @@ -8688,8 +30056,8 @@ var fieldUploadvue_type_style_index_0_lang_scss_ = __webpack_require__("b018"); var fieldUpload_component = normalizeComponent( core_fieldUploadvue_type_script_lang_js_, - fieldUploadvue_type_template_id_2593d5d7_render, - fieldUploadvue_type_template_id_2593d5d7_staticRenderFns, + fieldUploadvue_type_template_id_94384992_render, + fieldUploadvue_type_template_id_94384992_staticRenderFns, false, null, null, @@ -8699,7 +30067,7 @@ var fieldUpload_component = normalizeComponent( fieldUpload_component.options.__file = "fieldUpload.vue" /* harmony default export */ var fieldUpload = (fieldUpload_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& var fieldCleavevue_type_template_id_51b82522_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":_vm.value}})} var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] @@ -8707,6 +30075,467 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldCleave.vue?vue&type=script&lang=js& +var cov_6hfcii981 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue", + hash = "42d278f718bae81662eb9c983c26bea42713db98", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 2 + }, + end: { + line: 24, + column: 4 + } + }, + "1": { + start: { + line: 28, + column: 2 + }, + end: { + line: 70, + column: 5 + } + }, + "2": { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + "3": { + start: { + line: 30, + column: 4 + }, + end: { + line: 56, + column: 6 + } + }, + "4": { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, + "5": { + start: { + line: 59, + column: 5 + }, + end: { + line: 61, + column: 8 + } + }, + "6": { + start: { + line: 60, + column: 6 + }, + end: { + line: 60, + column: 49 + } + }, + "7": { + start: { + line: 63, + column: 5 + }, + end: { + line: 63, + column: 58 + } + }, + "8": { + start: { + line: 66, + column: 4 + }, + end: { + line: 68, + column: 6 + } + }, + "9": { + start: { + line: 75, + column: 3 + }, + end: { + line: 75, + column: 31 + } + }, + "10": { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, + "11": { + start: { + line: 81, + column: 3 + }, + end: { + line: 81, + column: 25 + } + }, + "12": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 59 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 1 + }, + end: { + line: 21, + column: 2 + } + }, + loc: { + start: { + line: 21, + column: 8 + }, + end: { + line: 25, + column: 2 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 27, + column: 1 + }, + end: { + line: 27, + column: 2 + } + }, + loc: { + start: { + line: 27, + column: 11 + }, + end: { + line: 71, + column: 2 + } + }, + line: 27 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 28, + column: 17 + }, + end: { + line: 28, + column: 18 + } + }, + loc: { + start: { + line: 28, + column: 28 + }, + end: { + line: 70, + column: 3 + } + }, + line: 28 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 59, + column: 45 + }, + end: { + line: 59, + column: 46 + } + }, + loc: { + start: { + line: 59, + column: 51 + }, + end: { + line: 61, + column: 6 + } + }, + line: 59 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 74, + column: 2 + }, + end: { + line: 74, + column: 3 + } + }, + loc: { + start: { + line: 74, + column: 16 + }, + end: { + line: 76, + column: 3 + } + }, + line: 74 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 79, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + loc: { + start: { + line: 79, + column: 17 + }, + end: { + line: 84, + column: 2 + } + }, + line: 79 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }], + line: 29 + }, + "1": { + loc: { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }], + line: 58 + }, + "2": { + loc: { + start: { + line: 58, + column: 8 + }, + end: { + line: 58, + column: 81 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 58, + column: 8 + }, + end: { + line: 58, + column: 30 + } + }, { + start: { + line: 58, + column: 34 + }, + end: { + line: 58, + column: 81 + } + }], + line: 58 + }, + "3": { + loc: { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }], + line: 80 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8725,15 +30554,24 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] name: "field-cleave", mixins: [abstractField], data: function data() { + cov_6hfcii981.f[0]++; + cov_6hfcii981.s[0]++; return { cleave: null }; }, mounted: function mounted() { + cov_6hfcii981.f[1]++; + cov_6hfcii981.s[1]++; this.$nextTick(function () { var _this = this; + cov_6hfcii981.f[2]++; + cov_6hfcii981.s[2]++; + if (window.Cleave) { + cov_6hfcii981.b[0][0]++; + cov_6hfcii981.s[3]++; this.cleave = new window.Cleave(this.$el, defaults_default()(this.fieldOptions, { // Credit Card creditCard: false, @@ -8758,28 +30596,47 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] lowercase: false, maxLength: 0 })); + cov_6hfcii981.s[4]++; - if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) { + if ((cov_6hfcii981.b[2][0]++, this.cleave.properties) && (cov_6hfcii981.b[2][1]++, this.cleave.properties.hasOwnProperty("result"))) { + cov_6hfcii981.b[1][0]++; + cov_6hfcii981.s[5]++; this.$watch("cleave.properties.result", function () { + cov_6hfcii981.f[3]++; + cov_6hfcii981.s[6]++; _this.value = _this.cleave.properties.result; }); } else { + cov_6hfcii981.b[1][1]++; + cov_6hfcii981.s[7]++; this.$el.addEventListener("input", this.inputChange); } } else { + cov_6hfcii981.b[0][1]++; + cov_6hfcii981.s[8]++; console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!"); } }); }, methods: { inputChange: function inputChange() { + cov_6hfcii981.f[4]++; + cov_6hfcii981.s[9]++; this.value = this.$el.value; } }, beforeDestroy: function beforeDestroy() { + cov_6hfcii981.f[5]++; + cov_6hfcii981.s[10]++; + if (this.cleave) { + cov_6hfcii981.b[3][0]++; + cov_6hfcii981.s[11]++; this.cleave.destroy(); + cov_6hfcii981.s[12]++; this.$el.removeEventListener("input", this.inputChange); + } else { + cov_6hfcii981.b[3][1]++; } } }); @@ -8806,7 +30663,7 @@ var fieldCleave_component = normalizeComponent( fieldCleave_component.options.__file = "fieldCleave.vue" /* harmony default export */ var fieldCleave = (fieldCleave_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& var fieldDateTimePickervue_type_template_id_0b5a21ff_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"input-group date"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._m(0)])} var fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"input-group-addon"},[_c('span',{staticClass:"glyphicon glyphicon-calendar"})])}] @@ -8834,49 +30691,928 @@ function _objectSpread(target) { return target; } // CONCATENATED MODULE: ./src/utils/dateFieldHelper.js +var cov_4891oh4b8 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\dateFieldHelper.js", + hash = "8a5e584ed31b0565879c911f0bd7f5bce9fc41d8", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\dateFieldHelper.js", + statementMap: { + "0": { + start: { + line: 2, + column: 18 + }, + end: { + line: 2, + column: 39 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 21 + } + }, + "2": { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, + "3": { + start: { + line: 10, + column: 3 + }, + end: { + line: 10, + column: 35 + } + }, + "4": { + start: { + line: 12, + column: 3 + }, + end: { + line: 12, + column: 39 + } + }, + "5": { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + "6": { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, + "7": { + start: { + line: 19, + column: 4 + }, + end: { + line: 19, + column: 54 + } + }, + "8": { + start: { + line: 21, + column: 4 + }, + end: { + line: 21, + column: 25 + } + }, + "9": { + start: { + line: 24, + column: 3 + }, + end: { + line: 24, + column: 49 + } + }, + "10": { + start: { + line: 27, + column: 2 + }, + end: { + line: 27, + column: 15 + } + }, + "11": { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + "12": { + start: { + line: 32, + column: 11 + }, + end: { + line: 32, + column: 51 + } + }, + "13": { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, + "14": { + start: { + line: 34, + column: 4 + }, + end: { + line: 34, + column: 54 + } + }, + "15": { + start: { + line: 36, + column: 4 + }, + end: { + line: 36, + column: 24 + } + }, + "16": { + start: { + line: 40, + column: 2 + }, + end: { + line: 40, + column: 15 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 5, + column: 1 + }, + end: { + line: 5, + column: 2 + } + }, + loc: { + start: { + line: 5, + column: 25 + }, + end: { + line: 7, + column: 2 + } + }, + line: 5 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 8, + column: 1 + }, + end: { + line: 8, + column: 2 + } + }, + loc: { + start: { + line: 8, + column: 17 + }, + end: { + line: 14, + column: 2 + } + }, + line: 8 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 15, + column: 1 + }, + end: { + line: 15, + column: 2 + } + }, + loc: { + start: { + line: 15, + column: 27 + }, + end: { + line: 28, + column: 2 + } + }, + line: 15 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 30, + column: 1 + }, + end: { + line: 30, + column: 2 + } + }, + loc: { + start: { + line: 30, + column: 27 + }, + end: { + line: 41, + column: 2 + } + }, + line: 30 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }], + line: 9 + }, + "1": { + loc: { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }], + line: 16 + }, + "2": { + loc: { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }], + line: 18 + }, + "3": { + loc: { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }], + line: 31 + }, + "4": { + loc: { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }], + line: 33 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -var inputFormat = "YYYY-MM-DD HH:mm:ss"; + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + +var inputFormat = (cov_4891oh4b8.s[0]++, "YYYY-MM-DD HH:mm:ss"); /* harmony default export */ var dateFieldHelper = ({ getDefaultInputFormat: function getDefaultInputFormat() { + cov_4891oh4b8.f[0]++; + cov_4891oh4b8.s[1]++; return inputFormat; }, getDateFormat: function getDateFormat() { + cov_4891oh4b8.f[1]++; + cov_4891oh4b8.s[2]++; + if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[0][0]++; + cov_4891oh4b8.s[3]++; return this.fieldOptions.format; } else { + cov_4891oh4b8.b[0][1]++; + cov_4891oh4b8.s[4]++; return this.getDefaultInputFormat(); } }, formatValueToField: function formatValueToField(value) { + cov_4891oh4b8.f[2]++; + cov_4891oh4b8.s[5]++; + if (value != null) { + cov_4891oh4b8.b[1][0]++; var dt; + cov_4891oh4b8.s[6]++; if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[2][0]++; + cov_4891oh4b8.s[7]++; dt = fecha_default.a.parse(value, this.fieldOptions.format); } else { + cov_4891oh4b8.b[2][1]++; + cov_4891oh4b8.s[8]++; dt = new Date(value); } - - return fecha_default.a.format(dt, this.getDateFormat()); - } - - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null) { - var m = fecha_default.a.parse(value, this.getDateFormat()); - - if (typeof this.fieldOptions.format !== "undefined") { - value = fecha_default.a.format(m, this.fieldOptions.format); - } else { - value = m.valueOf(); + + cov_4891oh4b8.s[9]++; + return fecha_default.a.format(dt, this.getDateFormat()); + } else { + cov_4891oh4b8.b[1][1]++; + } + + cov_4891oh4b8.s[10]++; + return value; + }, + formatValueToModel: function formatValueToModel(value) { + cov_4891oh4b8.f[3]++; + cov_4891oh4b8.s[11]++; + + if (value != null) { + cov_4891oh4b8.b[3][0]++; + var m = (cov_4891oh4b8.s[12]++, fecha_default.a.parse(value, this.getDateFormat())); + cov_4891oh4b8.s[13]++; + + if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[4][0]++; + cov_4891oh4b8.s[14]++; + value = fecha_default.a.format(m, this.fieldOptions.format); + } else { + cov_4891oh4b8.b[4][1]++; + cov_4891oh4b8.s[15]++; + value = m.valueOf(); + } + } else { + cov_4891oh4b8.b[3][1]++; + } + + cov_4891oh4b8.s[16]++; + return value; + } +}); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& +var cov_ss81vc3vc = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldDateTimePicker.vue", + hash = "a0c9914272485c207dd0659497f9cf854f571041", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldDateTimePicker.vue", + statementMap: { + "0": { + start: { + line: 34, + column: 2 + }, + end: { + line: 51, + column: 5 + } + }, + "1": { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + "2": { + start: { + line: 36, + column: 16 + }, + end: { + line: 36, + column: 55 + } + }, + "3": { + start: { + line: 37, + column: 4 + }, + end: { + line: 45, + column: 8 + } + }, + "4": { + start: { + line: 44, + column: 6 + }, + end: { + line: 44, + column: 31 + } + }, + "5": { + start: { + line: 47, + column: 4 + }, + end: { + line: 49, + column: 6 + } + }, + "6": { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, + "7": { + start: { + line: 56, + column: 3 + }, + end: { + line: 58, + column: 15 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 33, + column: 1 + }, + end: { + line: 33, + column: 2 + } + }, + loc: { + start: { + line: 33, + column: 11 + }, + end: { + line: 52, + column: 2 + } + }, + line: 33 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 34, + column: 17 + }, + end: { + line: 34, + column: 18 + } + }, + loc: { + start: { + line: 34, + column: 23 + }, + end: { + line: 51, + column: 3 + } + }, + line: 34 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 43, + column: 22 + }, + end: { + line: 43, + column: 23 + } + }, + loc: { + start: { + line: 43, + column: 28 + }, + end: { + line: 45, + column: 6 + } + }, + line: 43 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 54, + column: 1 + }, + end: { + line: 54, + column: 2 + } + }, + loc: { + start: { + line: 54, + column: 17 + }, + end: { + line: 60, + column: 2 + } + }, + line: 54 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }], + line: 35 + }, + "1": { + loc: { + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 15 + } + }, { + start: { + line: 35, + column: 19 + }, + end: { + line: 35, + column: 45 + } + }], + line: 35 + }, + "2": { + loc: { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }], + line: 55 + }, + "3": { + loc: { + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 44 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 14 + } + }, { + start: { + line: 55, + column: 18 + }, + end: { + line: 55, + column: 44 + } + }], + line: 55 } - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); - return value; + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -8908,23 +31644,40 @@ var inputFormat = "YYYY-MM-DD HH:mm:ss"; mounted: function mounted() { var _this = this; + cov_ss81vc3vc.f[0]++; + cov_ss81vc3vc.s[0]++; this.$nextTick(function () { - if (window.$ && window.$.fn.datetimepicker) { - var input = _this.$el.querySelector(".form-control"); + cov_ss81vc3vc.f[1]++; + cov_ss81vc3vc.s[1]++; + if ((cov_ss81vc3vc.b[1][0]++, window.$) && (cov_ss81vc3vc.b[1][1]++, window.$.fn.datetimepicker)) { + cov_ss81vc3vc.b[0][0]++; + var input = (cov_ss81vc3vc.s[2]++, _this.$el.querySelector(".form-control")); + cov_ss81vc3vc.s[3]++; $(_this.$el).datetimepicker(defaults_default()(_this.fieldOptions, { format: _this.getDefaultInputFormat() })).on("dp.change", function () { + cov_ss81vc3vc.f[2]++; + cov_ss81vc3vc.s[4]++; _this.value = input.value; }); } else { + cov_ss81vc3vc.b[0][1]++; + cov_ss81vc3vc.s[5]++; console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.datetimepicker) { + cov_ss81vc3vc.f[3]++; + cov_ss81vc3vc.s[6]++; + + if ((cov_ss81vc3vc.b[3][0]++, window.$) && (cov_ss81vc3vc.b[3][1]++, window.$.fn.datetimepicker)) { + cov_ss81vc3vc.b[2][0]++; + cov_ss81vc3vc.s[7]++; $(this.$el).data("DateTimePicker").destroy(); + } else { + cov_ss81vc3vc.b[2][1]++; } } }); @@ -8951,7 +31704,7 @@ var fieldDateTimePicker_component = normalizeComponent( fieldDateTimePicker_component.options.__file = "fieldDateTimePicker.vue" /* harmony default export */ var fieldDateTimePicker = (fieldDateTimePicker_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& var fieldGoogleAddressvue_type_template_id_40223704_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"debounce":"500","id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"focus":function($event){_vm.geolocate()},"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] @@ -8959,6 +31712,686 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& +var cov_15atxd0s5z = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldGoogleAddress.vue", + hash = "85e096e1ddc0e465e7b584ed1fd114afcb2f579c", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldGoogleAddress.vue", + statementMap: { + "0": { + start: { + line: 30, + column: 2 + }, + end: { + line: 44, + column: 4 + } + }, + "1": { + start: { + line: 48, + column: 2 + }, + end: { + line: 65, + column: 5 + } + }, + "2": { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, + "3": { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 7 + } + }, + "4": { + start: { + line: 59, + column: 4 + }, + end: { + line: 59, + column: 69 + } + }, + "5": { + start: { + line: 61, + column: 4 + }, + end: { + line: 63, + column: 6 + } + }, + "6": { + start: { + line: 74, + column: 15 + }, + end: { + line: 74, + column: 43 + } + }, + "7": { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + "8": { + start: { + line: 76, + column: 4 + }, + end: { + line: 76, + column: 41 + } + }, + "9": { + start: { + line: 78, + column: 15 + }, + end: { + line: 78, + column: 17 + } + }, + "10": { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, + "11": { + start: { + line: 80, + column: 5 + }, + end: { + line: 85, + column: 6 + } + }, + "12": { + start: { + line: 81, + column: 18 + }, + end: { + line: 81, + column: 54 + } + }, + "13": { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, + "14": { + start: { + line: 83, + column: 7 + }, + end: { + line: 83, + column: 69 + } + }, + "15": { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, + "16": { + start: { + line: 90, + column: 5 + }, + end: { + line: 90, + column: 88 + } + }, + "17": { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, + "18": { + start: { + line: 100, + column: 4 + }, + end: { + line: 112, + column: 7 + } + }, + "19": { + start: { + line: 101, + column: 23 + }, + end: { + line: 104, + column: 6 + } + }, + "20": { + start: { + line: 106, + column: 18 + }, + end: { + line: 109, + column: 7 + } + }, + "21": { + start: { + line: 111, + column: 5 + }, + end: { + line: 111, + column: 53 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 29, + column: 1 + }, + end: { + line: 29, + column: 2 + } + }, + loc: { + start: { + line: 29, + column: 8 + }, + end: { + line: 45, + column: 2 + } + }, + line: 29 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 47, + column: 1 + }, + end: { + line: 47, + column: 2 + } + }, + loc: { + start: { + line: 47, + column: 11 + }, + end: { + line: 66, + column: 2 + } + }, + line: 47 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 48, + column: 17 + }, + end: { + line: 48, + column: 18 + } + }, + loc: { + start: { + line: 48, + column: 23 + }, + end: { + line: 65, + column: 3 + } + }, + line: 48 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 73, + column: 2 + }, + end: { + line: 73, + column: 3 + } + }, + loc: { + start: { + line: 73, + column: 16 + }, + end: { + line: 92, + column: 3 + } + }, + line: 73 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 98, + column: 2 + }, + end: { + line: 98, + column: 3 + } + }, + loc: { + start: { + line: 98, + column: 14 + }, + end: { + line: 114, + column: 3 + } + }, + line: 98 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 100, + column: 45 + }, + end: { + line: 100, + column: 46 + } + }, + loc: { + start: { + line: 100, + column: 59 + }, + end: { + line: 112, + column: 5 + } + }, + line: 100 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }], + line: 49 + }, + "1": { + loc: { + start: { + line: 50, + column: 4 + }, + end: { + line: 53, + column: 42 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 50, + column: 4 + }, + end: { + line: 50, + column: 17 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 22 + } + }, { + start: { + line: 52, + column: 4 + }, + end: { + line: 52, + column: 29 + } + }, { + start: { + line: 53, + column: 4 + }, + end: { + line: 53, + column: 42 + } + }], + line: 50 + }, + "2": { + loc: { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }], + line: 75 + }, + "3": { + loc: { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }], + line: 79 + }, + "4": { + loc: { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }], + line: 82 + }, + "5": { + loc: { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, + type: "if", + locations: [{ + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }], + line: 89 + }, + "6": { + loc: { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }], + line: 99 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0, 0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8986,6 +32419,8 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] name: "field-googleAddress", mixins: [abstractField], data: function data() { + cov_15atxd0s5z.f[0]++; + cov_15atxd0s5z.s[0]++; return { // google autocomplete object autocomplete: "", @@ -9004,14 +32439,24 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] mounted: function mounted() { var _this = this; + cov_15atxd0s5z.f[1]++; + cov_15atxd0s5z.s[1]++; this.$nextTick(function () { - if (window.google && window.google.maps && window.google.maps.places && window.google.maps.places.Autocomplete) { + cov_15atxd0s5z.f[2]++; + cov_15atxd0s5z.s[2]++; + + if ((cov_15atxd0s5z.b[1][0]++, window.google) && (cov_15atxd0s5z.b[1][1]++, window.google.maps) && (cov_15atxd0s5z.b[1][2]++, window.google.maps.places) && (cov_15atxd0s5z.b[1][3]++, window.google.maps.places.Autocomplete)) { + cov_15atxd0s5z.b[0][0]++; + cov_15atxd0s5z.s[3]++; _this.autocomplete = new google.maps.places.Autocomplete(_this.$el, { types: ["geocode"] }); + cov_15atxd0s5z.s[4]++; _this.autocomplete.addListener("place_changed", _this.pipeAddress); } else { + cov_15atxd0s5z.b[0][1]++; + cov_15atxd0s5z.s[5]++; console.warn("Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!"); } }); @@ -9022,24 +32467,49 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] * @return void */ pipeAddress: function pipeAddress() { - var place = this.autocomplete.getPlace(); + cov_15atxd0s5z.f[3]++; + var place = (cov_15atxd0s5z.s[6]++, this.autocomplete.getPlace()); + cov_15atxd0s5z.s[7]++; if (place) { + cov_15atxd0s5z.b[2][0]++; + cov_15atxd0s5z.s[8]++; this.value = place.formatted_address; - var data = {}; + var data = (cov_15atxd0s5z.s[9]++, {}); + cov_15atxd0s5z.s[10]++; if (place.address_components !== undefined) { + cov_15atxd0s5z.b[3][0]++; + cov_15atxd0s5z.s[11]++; + for (var i = 0; i < place.address_components.length; i++) { - var input = place.address_components[i].types[0]; + var input = (cov_15atxd0s5z.s[12]++, place.address_components[i].types[0]); + cov_15atxd0s5z.s[13]++; if (this.inputs[input]) { + cov_15atxd0s5z.b[4][0]++; + cov_15atxd0s5z.s[14]++; data[input] = place.address_components[i][this.inputs[input]]; + } else { + cov_15atxd0s5z.b[4][1]++; } } + } else { + cov_15atxd0s5z.b[3][1]++; } // Call event in schema - if (isFunction_default()(this.fieldOptions.onPlaceChanged)) this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); + cov_15atxd0s5z.s[15]++; + + if (isFunction_default()(this.fieldOptions.onPlaceChanged)) { + cov_15atxd0s5z.b[5][0]++; + cov_15atxd0s5z.s[16]++; + this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); + } else { + cov_15atxd0s5z.b[5][1]++; + } + } else { + cov_15atxd0s5z.b[2][1]++; } }, @@ -9050,19 +32520,28 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] geolocate: function geolocate() { var _this2 = this; + cov_15atxd0s5z.f[4]++; + cov_15atxd0s5z.s[17]++; + if (navigator.geolocation) { + cov_15atxd0s5z.b[6][0]++; + cov_15atxd0s5z.s[18]++; navigator.geolocation.getCurrentPosition(function (position) { - var geolocation = { + cov_15atxd0s5z.f[5]++; + var geolocation = (cov_15atxd0s5z.s[19]++, { lat: position.coords.latitude, lng: position.coords.longitude - }; - var circle = new window.google.maps.Circle({ + }); + var circle = (cov_15atxd0s5z.s[20]++, new window.google.maps.Circle({ center: geolocation, radius: position.coords.accuracy - }); + })); + cov_15atxd0s5z.s[21]++; _this2.autocomplete.setBounds(circle.getBounds()); }); + } else { + cov_15atxd0s5z.b[6][1]++; } } } @@ -9090,14 +32569,714 @@ var fieldGoogleAddress_component = normalizeComponent( fieldGoogleAddress_component.options.__file = "fieldGoogleAddress.vue" /* harmony default export */ var fieldGoogleAddress = (fieldGoogleAddress_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& var fieldImagevue_type_template_id_31dfdf94_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper"},[_c('input',{directives:[{name:"show",rawName:"v-show",value:(_vm.fieldOptions.hideInput !== true),expression:"fieldOptions.hideInput !== true"},{name:"model",rawName:"v-model",value:(_vm.wrappedValue),expression:"wrappedValue"}],staticClass:"form-control link",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly},domProps:{"value":(_vm.wrappedValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.wrappedValue=$event.target.value}}}),(_vm.fieldOptions.browse !== false)?_c('input',{staticClass:"form-control file",attrs:{"type":"file","disabled":_vm.disabled,"name":_vm.inputName},on:{"change":_vm.fileChanged}}):_vm._e(),_c('div',{staticClass:"preview",style:(_vm.previewStyle)},[_c('div',{staticClass:"remove",attrs:{"title":"Remove image"},on:{"click":_vm.remove}})])])} var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& +// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& +var cov_15avo8ilqu = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldImage.vue", + hash = "5b1f5eddc9b6301c4f67c93ef59a5212aea2e918", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldImage.vue", + statementMap: { + "0": { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + "1": { + start: { + line: 38, + column: 4 + }, + end: { + line: 41, + column: 6 + } + }, + "2": { + start: { + line: 43, + column: 4 + }, + end: { + line: 45, + column: 6 + } + }, + "3": { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, + "4": { + start: { + line: 51, + column: 56 + }, + end: { + line: 51, + column: 87 + } + }, + "5": { + start: { + line: 52, + column: 9 + }, + end: { + line: 52, + column: 27 + } + }, + "6": { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + "7": { + start: { + line: 56, + column: 5 + }, + end: { + line: 56, + column: 27 + } + }, + "8": { + start: { + line: 64, + column: 12 + }, + end: { + line: 64, + column: 48 + } + }, + "9": { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + "10": { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 18 + } + }, + "11": { + start: { + line: 73, + column: 3 + }, + end: { + line: 73, + column: 19 + } + }, + "12": { + start: { + line: 77, + column: 16 + }, + end: { + line: 77, + column: 32 + } + }, + "13": { + start: { + line: 78, + column: 3 + }, + end: { + line: 80, + column: 5 + } + }, + "14": { + start: { + line: 79, + column: 4 + }, + end: { + line: 79, + column: 33 + } + }, + "15": { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + "16": { + start: { + line: 83, + column: 4 + }, + end: { + line: 83, + column: 48 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 3 + } + }, + loc: { + start: { + line: 36, + column: 17 + }, + end: { + line: 47, + column: 3 + } + }, + line: 36 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 50, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + loc: { + start: { + line: 50, + column: 9 + }, + end: { + line: 53, + column: 4 + } + }, + line: 50 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 54, + column: 3 + }, + end: { + line: 54, + column: 4 + } + }, + loc: { + start: { + line: 54, + column: 17 + }, + end: { + line: 58, + column: 4 + } + }, + line: 54 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 63, + column: 2 + }, + end: { + line: 63, + column: 3 + } + }, + loc: { + start: { + line: 63, + column: 10 + }, + end: { + line: 68, + column: 3 + } + }, + line: 63 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 72, + column: 2 + }, + end: { + line: 72, + column: 3 + } + }, + loc: { + start: { + line: 72, + column: 11 + }, + end: { + line: 74, + column: 3 + } + }, + line: 72 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 21 + }, + end: { + line: 85, + column: 3 + } + }, + line: 76 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 78, + column: 19 + }, + end: { + line: 78, + column: 20 + } + }, + loc: { + start: { + line: 78, + column: 26 + }, + end: { + line: 80, + column: 4 + } + }, + line: 78 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }], + line: 37 + }, + "1": { + loc: { + start: { + line: 40, + column: 25 + }, + end: { + line: 40, + column: 80 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 40, + column: 46 + }, + end: { + line: 40, + column: 71 + } + }, { + start: { + line: 40, + column: 74 + }, + end: { + line: 40, + column: 80 + } + }], + line: 40 + }, + "2": { + loc: { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, + type: "if", + locations: [{ + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }], + line: 51 + }, + "3": { + loc: { + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 54 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 18 + } + }, { + start: { + line: 51, + column: 22 + }, + end: { + line: 51, + column: 54 + } + }], + line: 51 + }, + "4": { + loc: { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }], + line: 55 + }, + "5": { + loc: { + start: { + line: 55, + column: 8 + }, + end: { + line: 55, + column: 50 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 55, + column: 8 + }, + end: { + line: 55, + column: 16 + } + }, { + start: { + line: 55, + column: 20 + }, + end: { + line: 55, + column: 50 + } + }], + line: 55 + }, + "6": { + loc: { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }], + line: 65 + }, + "7": { + loc: { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }], + line: 82 + }, + "8": { + loc: { + start: { + line: 82, + column: 7 + }, + end: { + line: 82, + column: 58 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 82, + column: 7 + }, + end: { + line: 82, + column: 25 + } + }, { + start: { + line: 82, + column: 29 + }, + end: { + line: 82, + column: 58 + } + }], + line: 82 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& // // // @@ -9131,12 +33310,19 @@ var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] mixins: [abstractField], computed: { previewStyle: function previewStyle() { + cov_15avo8ilqu.f[0]++; + cov_15avo8ilqu.s[0]++; + if (this.fieldOptions.preview !== false) { + cov_15avo8ilqu.b[0][0]++; + cov_15avo8ilqu.s[1]++; return { display: "block", - "background-image": this.value != null ? "url(" + this.value + ")" : "none" + "background-image": this.value != null ? (cov_15avo8ilqu.b[1][0]++, "url(" + this.value + ")") : (cov_15avo8ilqu.b[1][1]++, "none") }; } else { + cov_15avo8ilqu.b[0][1]++; + cov_15avo8ilqu.s[2]++; return { display: "none" }; @@ -9144,39 +33330,75 @@ var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] }, wrappedValue: { get: function get() { - if (this.value && this.value.indexOf("data") === 0) return "";else return this.value; + cov_15avo8ilqu.f[1]++; + cov_15avo8ilqu.s[3]++; + + if ((cov_15avo8ilqu.b[3][0]++, this.value) && (cov_15avo8ilqu.b[3][1]++, this.value.indexOf("data") === 0)) { + cov_15avo8ilqu.b[2][0]++; + cov_15avo8ilqu.s[4]++; + return ""; + } else { + cov_15avo8ilqu.b[2][1]++; + cov_15avo8ilqu.s[5]++; + return this.value; + } }, set: function set(newValue) { - if (newValue && newValue.indexOf("http") === 0) { + cov_15avo8ilqu.f[2]++; + cov_15avo8ilqu.s[6]++; + + if ((cov_15avo8ilqu.b[5][0]++, newValue) && (cov_15avo8ilqu.b[5][1]++, newValue.indexOf("http") === 0)) { + cov_15avo8ilqu.b[4][0]++; + cov_15avo8ilqu.s[7]++; this.value = newValue; + } else { + cov_15avo8ilqu.b[4][1]++; } } } }, watch: { model: function model() { - var el = this.$el.querySelector("input.file"); + cov_15avo8ilqu.f[3]++; + var el = (cov_15avo8ilqu.s[8]++, this.$el.querySelector("input.file")); + cov_15avo8ilqu.s[9]++; if (el) { + cov_15avo8ilqu.b[6][0]++; + cov_15avo8ilqu.s[10]++; el.value = ""; + } else { + cov_15avo8ilqu.b[6][1]++; } } }, methods: { remove: function remove() { + cov_15avo8ilqu.f[4]++; + cov_15avo8ilqu.s[11]++; this.value = ""; }, fileChanged: function fileChanged(event) { var _this = this; - var reader = new FileReader(); + cov_15avo8ilqu.f[5]++; + var reader = (cov_15avo8ilqu.s[12]++, new FileReader()); + cov_15avo8ilqu.s[13]++; reader.onload = function (e) { + cov_15avo8ilqu.f[6]++; + cov_15avo8ilqu.s[14]++; _this.value = e.target.result; }; - if (event.target.files && event.target.files.length > 0) { + cov_15avo8ilqu.s[15]++; + + if ((cov_15avo8ilqu.b[8][0]++, event.target.files) && (cov_15avo8ilqu.b[8][1]++, event.target.files.length > 0)) { + cov_15avo8ilqu.b[7][0]++; + cov_15avo8ilqu.s[16]++; reader.readAsDataURL(event.target.files[0]); + } else { + cov_15avo8ilqu.b[7][1]++; } } } @@ -9208,7 +33430,7 @@ var fieldImage_component = normalizeComponent( fieldImage_component.options.__file = "fieldImage.vue" /* harmony default export */ var fieldImage = (fieldImage_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& var fieldMaskedvue_type_template_id_11c3a35a_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] @@ -9216,6 +33438,315 @@ var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldMasked.vue?vue&type=script&lang=js& +var cov_1evfiru9hh = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue", + hash = "7fb5aa8ab47674e512530fcd6cbeff0c35705026", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 2 + }, + end: { + line: 32, + column: 5 + } + }, + "1": { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + "2": { + start: { + line: 24, + column: 4 + }, + end: { + line: 26, + column: 66 + } + }, + "3": { + start: { + line: 28, + column: 4 + }, + end: { + line: 30, + column: 6 + } + }, + "4": { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, + "5": { + start: { + line: 36, + column: 36 + }, + end: { + line: 36, + column: 57 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 1 + }, + end: { + line: 21, + column: 2 + } + }, + loc: { + start: { + line: 21, + column: 11 + }, + end: { + line: 33, + column: 2 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 22, + column: 17 + }, + end: { + line: 22, + column: 18 + } + }, + loc: { + start: { + line: 22, + column: 28 + }, + end: { + line: 32, + column: 3 + } + }, + line: 22 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 35, + column: 1 + }, + end: { + line: 35, + column: 2 + } + }, + loc: { + start: { + line: 35, + column: 17 + }, + end: { + line: 37, + column: 2 + } + }, + line: 35 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }], + line: 23 + }, + "1": { + loc: { + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 35 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 15 + } + }, { + start: { + line: 23, + column: 19 + }, + end: { + line: 23, + column: 35 + } + }], + line: 23 + }, + "2": { + loc: { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, + type: "if", + locations: [{ + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }], + line: 36 + }, + "3": { + loc: { + start: { + line: 36, + column: 6 + }, + end: { + line: 36, + column: 34 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 36, + column: 6 + }, + end: { + line: 36, + column: 14 + } + }, { + start: { + line: 36, + column: 18 + }, + end: { + line: 36, + column: 34 + } + }], + line: 36 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -9235,52 +33766,1091 @@ var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] name: "field-masked", mixins: [abstractField], mounted: function mounted() { + cov_1evfiru9hh.f[0]++; + cov_1evfiru9hh.s[0]++; this.$nextTick(function () { - if (window.$ && window.$.fn.mask) { + cov_1evfiru9hh.f[1]++; + cov_1evfiru9hh.s[1]++; + + if ((cov_1evfiru9hh.b[1][0]++, window.$) && (cov_1evfiru9hh.b[1][1]++, window.$.fn.mask)) { + cov_1evfiru9hh.b[0][0]++; + cov_1evfiru9hh.s[2]++; $(this.$el).unmask().mask(this.fieldOptions.mask, this.fieldOptions.maskOptions); } else { + cov_1evfiru9hh.b[0][1]++; + cov_1evfiru9hh.s[3]++; console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!"); } }); }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.mask) $(this.$el).unmask(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue - - - - - -/* normalize component */ - -var fieldMasked_component = normalizeComponent( - optional_fieldMaskedvue_type_script_lang_js_, - fieldMaskedvue_type_template_id_11c3a35a_render, - fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, - false, - null, - null, - null - -) - -fieldMasked_component.options.__file = "fieldMasked.vue" -/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& -var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} -var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] + beforeDestroy: function beforeDestroy() { + cov_1evfiru9hh.f[2]++; + cov_1evfiru9hh.s[4]++; + + if ((cov_1evfiru9hh.b[3][0]++, window.$) && (cov_1evfiru9hh.b[3][1]++, window.$.fn.mask)) { + cov_1evfiru9hh.b[2][0]++; + cov_1evfiru9hh.s[5]++; + $(this.$el).unmask(); + } else { + cov_1evfiru9hh.b[2][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue + + + + + +/* normalize component */ + +var fieldMasked_component = normalizeComponent( + optional_fieldMaskedvue_type_script_lang_js_, + fieldMaskedvue_type_template_id_11c3a35a_render, + fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, + false, + null, + null, + null + +) + +fieldMasked_component.options.__file = "fieldMasked.vue" +/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& +var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} +var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js +var es6_number_constructor = __webpack_require__("c5f6"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& +var cov_28l4jm2j51 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue", + hash = "82de372a9c97ce71e6b568006e67497410069899", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue", + statementMap: { + "0": { + start: { + line: 16, + column: 2 + }, + end: { + line: 18, + column: 4 + } + }, + "1": { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, + "2": { + start: { + line: 24, + column: 4 + }, + end: { + line: 24, + column: 43 + } + }, + "3": { + start: { + line: 31, + column: 3 + }, + end: { + line: 31, + column: 56 + } + }, + "4": { + start: { + line: 34, + column: 3 + }, + end: { + line: 34, + column: 60 + } + }, + "5": { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + "6": { + start: { + line: 42, + column: 4 + }, + end: { + line: 42, + column: 62 + } + }, + "7": { + start: { + line: 45, + column: 4 + }, + end: { + line: 45, + column: 35 + } + }, + "8": { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, + "9": { + start: { + line: 50, + column: 4 + }, + end: { + line: 50, + column: 38 + } + }, + "10": { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "11": { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, + "12": { + start: { + line: 56, + column: 5 + }, + end: { + line: 56, + column: 45 + } + }, + "13": { + start: { + line: 58, + column: 5 + }, + end: { + line: 58, + column: 24 + } + }, + "14": { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, + "15": { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 22 + } + }, + "16": { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, + "17": { + start: { + line: 67, + column: 5 + }, + end: { + line: 67, + column: 59 + } + }, + "18": { + start: { + line: 69, + column: 5 + }, + end: { + line: 69, + column: 34 + } + }, + "19": { + start: { + line: 76, + column: 2 + }, + end: { + line: 95, + column: 5 + } + }, + "20": { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, + "21": { + start: { + line: 78, + column: 4 + }, + end: { + line: 78, + column: 27 + } + }, + "22": { + start: { + line: 79, + column: 4 + }, + end: { + line: 88, + column: 6 + } + }, + "23": { + start: { + line: 89, + column: 4 + }, + end: { + line: 89, + column: 66 + } + }, + "24": { + start: { + line: 91, + column: 4 + }, + end: { + line: 93, + column: 6 + } + }, + "25": { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, + "26": { + start: { + line: 99, + column: 19 + }, + end: { + line: 99, + column: 56 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 15, + column: 1 + }, + end: { + line: 15, + column: 2 + } + }, + loc: { + start: { + line: 15, + column: 8 + }, + end: { + line: 19, + column: 2 + } + }, + line: 15 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 22, + column: 9 + }, + end: { + line: 22, + column: 10 + } + }, + loc: { + start: { + line: 22, + column: 20 + }, + end: { + line: 26, + column: 3 + } + }, + line: 22 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 30, + column: 2 + }, + end: { + line: 30, + column: 3 + } + }, + loc: { + start: { + line: 30, + column: 16 + }, + end: { + line: 32, + column: 3 + } + }, + line: 30 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 33, + column: 2 + }, + end: { + line: 33, + column: 3 + } + }, + loc: { + start: { + line: 33, + column: 19 + }, + end: { + line: 35, + column: 3 + } + }, + line: 33 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 39, + column: 2 + }, + end: { + line: 39, + column: 3 + } + }, + loc: { + start: { + line: 39, + column: 18 + }, + end: { + line: 47, + column: 3 + } + }, + line: 39 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 48, + column: 2 + }, + end: { + line: 48, + column: 3 + } + }, + loc: { + start: { + line: 48, + column: 28 + }, + end: { + line: 52, + column: 3 + } + }, + line: 48 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 53, + column: 2 + }, + end: { + line: 53, + column: 3 + } + }, + loc: { + start: { + line: 53, + column: 26 + }, + end: { + line: 61, + column: 3 + } + }, + line: 53 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 18 + }, + end: { + line: 72, + column: 3 + } + }, + line: 62 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 75, + column: 1 + }, + end: { + line: 75, + column: 2 + } + }, + loc: { + start: { + line: 75, + column: 11 + }, + end: { + line: 96, + column: 2 + } + }, + line: 75 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 76, + column: 17 + }, + end: { + line: 76, + column: 18 + } + }, + loc: { + start: { + line: 76, + column: 23 + }, + end: { + line: 95, + column: 3 + } + }, + line: 76 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 98, + column: 1 + }, + end: { + line: 98, + column: 2 + } + }, + loc: { + start: { + line: 98, + column: 17 + }, + end: { + line: 100, + column: 2 + } + }, + line: 98 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }], + line: 23 + }, + "1": { + loc: { + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 65 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 24 + } + }, { + start: { + line: 23, + column: 28 + }, + end: { + line: 23, + column: 39 + } + }, { + start: { + line: 23, + column: 43 + }, + end: { + line: 23, + column: 65 + } + }], + line: 23 + }, + "2": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }], + line: 40 + }, + "3": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }], + line: 49 + }, + "4": { + loc: { + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 76 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 27 + } + }, { + start: { + line: 49, + column: 31 + }, + end: { + line: 49, + column: 76 + } + }], + line: 49 + }, + "5": { + loc: { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 54 + }, + "6": { + loc: { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }], + line: 55 + }, + "7": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }], + line: 63 + }, + "8": { + loc: { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }], + line: 66 + }, + "9": { + loc: { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }], + line: 77 + }, + "10": { + loc: { + start: { + line: 81, + column: 14 + }, + end: { + line: 81, + column: 37 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 81, + column: 14 + }, + end: { + line: 81, + column: 31 + } + }, { + start: { + line: 81, + column: 35 + }, + end: { + line: 81, + column: 37 + } + }], + line: 81 + }, + "11": { + loc: { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }], + line: 99 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js -var es6_number_constructor = __webpack_require__("c5f6"); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& @@ -9295,56 +34865,107 @@ var es6_number_constructor = __webpack_require__("c5f6"); name: "field-noUiSlider", mixins: [abstractField], data: function data() { + cov_28l4jm2j51.f[0]++; + cov_28l4jm2j51.s[0]++; return { slider: null }; }, watch: { model: function model() { - if (window.noUiSlider && this.slider && this.slider.noUiSlider) { + cov_28l4jm2j51.f[1]++; + cov_28l4jm2j51.s[1]++; + + if ((cov_28l4jm2j51.b[1][0]++, window.noUiSlider) && (cov_28l4jm2j51.b[1][1]++, this.slider) && (cov_28l4jm2j51.b[1][2]++, this.slider.noUiSlider)) { + cov_28l4jm2j51.b[0][0]++; + cov_28l4jm2j51.s[2]++; this.slider.noUiSlider.set(this.value); + } else { + cov_28l4jm2j51.b[0][1]++; } } }, computed: { containPips: function containPips() { + cov_28l4jm2j51.f[2]++; + cov_28l4jm2j51.s[3]++; return typeof this.fieldOptions.pips !== "undefined"; }, containTooltip: function containTooltip() { + cov_28l4jm2j51.f[3]++; + cov_28l4jm2j51.s[4]++; return typeof this.fieldOptions.tooltips !== "undefined"; } }, methods: { onChange: function onChange(value) { + cov_28l4jm2j51.f[4]++; + cov_28l4jm2j51.s[5]++; + if (isArray_default()(value)) { + cov_28l4jm2j51.b[2][0]++; + cov_28l4jm2j51.s[6]++; // Array (range) this.value = [parseFloat(value[0]), parseFloat(value[1])]; } else { + cov_28l4jm2j51.b[2][1]++; + cov_28l4jm2j51.s[7]++; // Single value this.value = parseFloat(value); } }, formatValueToField: function formatValueToField(value) { - if (this.slider !== null && typeof this.slider.noUiSlider !== "undefined") { + cov_28l4jm2j51.f[5]++; + cov_28l4jm2j51.s[8]++; + + if ((cov_28l4jm2j51.b[4][0]++, this.slider !== null) && (cov_28l4jm2j51.b[4][1]++, typeof this.slider.noUiSlider !== "undefined")) { + cov_28l4jm2j51.b[3][0]++; + cov_28l4jm2j51.s[9]++; this.slider.noUiSlider.set(value); + } else { + cov_28l4jm2j51.b[3][1]++; } }, formatValueToModel: function formatValueToModel(val) { + cov_28l4jm2j51.f[6]++; + cov_28l4jm2j51.s[10]++; + if (typeof this.slider.noUiSlider !== "undefined") { + cov_28l4jm2j51.b[5][0]++; + cov_28l4jm2j51.s[11]++; + if (val instanceof Array) { + cov_28l4jm2j51.b[6][0]++; + cov_28l4jm2j51.s[12]++; return [Number(val[0]), Number(val[1])]; } else { + cov_28l4jm2j51.b[6][1]++; + cov_28l4jm2j51.s[13]++; return Number(val); } + } else { + cov_28l4jm2j51.b[5][1]++; } }, getStartValue: function getStartValue() { + cov_28l4jm2j51.f[7]++; + cov_28l4jm2j51.s[14]++; + if (this.value != null) { + cov_28l4jm2j51.b[7][0]++; + cov_28l4jm2j51.s[15]++; return this.value; } else { + cov_28l4jm2j51.b[7][1]++; + cov_28l4jm2j51.s[16]++; + if (typeof this.fieldOptions.double !== "undefined") { + cov_28l4jm2j51.b[8][0]++; + cov_28l4jm2j51.s[17]++; return [this.fieldOptions.min, this.fieldOptions.min]; } else { + cov_28l4jm2j51.b[8][1]++; + cov_28l4jm2j51.s[18]++; return this.fieldOptions.min; } } @@ -9353,25 +34974,45 @@ var es6_number_constructor = __webpack_require__("c5f6"); mounted: function mounted() { var _this = this; + cov_28l4jm2j51.f[8]++; + cov_28l4jm2j51.s[19]++; this.$nextTick(function () { + cov_28l4jm2j51.f[9]++; + cov_28l4jm2j51.s[20]++; + if (window.noUiSlider) { + cov_28l4jm2j51.b[9][0]++; + cov_28l4jm2j51.s[21]++; _this.slider = _this.$el; - window.noUiSlider.create(_this.slider, defaults_default()(_this.fieldOptions || {}, { + cov_28l4jm2j51.s[22]++; + window.noUiSlider.create(_this.slider, defaults_default()((cov_28l4jm2j51.b[10][0]++, _this.fieldOptions) || (cov_28l4jm2j51.b[10][1]++, {}), { start: _this.getStartValue(), range: { min: _this.fieldOptions.min, max: _this.fieldOptions.max } })); + cov_28l4jm2j51.s[23]++; _this.slider.noUiSlider.on("change", _this.onChange.bind(_this)); } else { + cov_28l4jm2j51.b[9][1]++; + cov_28l4jm2j51.s[24]++; console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.noUiSlider.off("change"); + cov_28l4jm2j51.f[10]++; + cov_28l4jm2j51.s[25]++; + + if (this.slider) { + cov_28l4jm2j51.b[11][0]++; + cov_28l4jm2j51.s[26]++; + this.slider.noUiSlider.off("change"); + } else { + cov_28l4jm2j51.b[11][1]++; + } } }); // CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& @@ -9401,7 +35042,7 @@ var fieldNoUiSlider_component = normalizeComponent( fieldNoUiSlider_component.options.__file = "fieldNoUiSlider.vue" /* harmony default export */ var fieldNoUiSlider = (fieldNoUiSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& var fieldPikadayvue_type_template_id_69cdd058_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] @@ -9409,6 +35050,319 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldPikaday.vue?vue&type=script&lang=js& +var cov_bq84cy1yq = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue", + hash = "a9c8b42d1187233cdc70fac7edea66779c107a80", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue", + statementMap: { + "0": { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 26 + } + }, + "1": { + start: { + line: 29, + column: 2 + }, + end: { + line: 45, + column: 5 + } + }, + "2": { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, + "3": { + start: { + line: 31, + column: 4 + }, + end: { + line: 39, + column: 6 + } + }, + "4": { + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 43 + } + }, + "5": { + start: { + line: 41, + column: 4 + }, + end: { + line: 43, + column: 6 + } + }, + "6": { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, + "7": { + start: { + line: 49, + column: 19 + }, + end: { + line: 49, + column: 41 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 20, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + loc: { + start: { + line: 20, + column: 8 + }, + end: { + line: 22, + column: 2 + } + }, + line: 20 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 28, + column: 1 + }, + end: { + line: 28, + column: 2 + } + }, + loc: { + start: { + line: 28, + column: 11 + }, + end: { + line: 46, + column: 2 + } + }, + line: 28 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 29, + column: 17 + }, + end: { + line: 29, + column: 18 + } + }, + loc: { + start: { + line: 29, + column: 23 + }, + end: { + line: 45, + column: 3 + } + }, + line: 29 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 34, + column: 16 + }, + end: { + line: 34, + column: 17 + } + }, + loc: { + start: { + line: 34, + column: 22 + }, + end: { + line: 36, + column: 7 + } + }, + line: 34 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 48, + column: 1 + }, + end: { + line: 48, + column: 2 + } + }, + loc: { + start: { + line: 48, + column: 17 + }, + end: { + line: 50, + column: 2 + } + }, + line: 48 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }], + line: 30 + }, + "1": { + loc: { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }], + line: 49 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + @@ -9429,6 +35383,8 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] name: "field-pikaday", mixins: [abstractField], data: function data() { + cov_bq84cy1yq.f[0]++; + cov_bq84cy1yq.s[0]++; return { picker: null }; @@ -9437,97 +35393,836 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] mounted: function mounted() { var _this = this; + cov_bq84cy1yq.f[1]++; + cov_bq84cy1yq.s[1]++; this.$nextTick(function () { + cov_bq84cy1yq.f[2]++; + cov_bq84cy1yq.s[2]++; + if (window.Pikaday) { + cov_bq84cy1yq.b[0][0]++; + cov_bq84cy1yq.s[3]++; _this.picker = new window.Pikaday(defaults_default()(_this.fieldOptions, { field: _this.$el, // bind the datepicker to a form field onSelect: function onSelect() { + cov_bq84cy1yq.f[3]++; + cov_bq84cy1yq.s[4]++; _this.value = _this.picker.toString(); } // trigger: , // use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`) })); } else { + cov_bq84cy1yq.b[0][1]++; + cov_bq84cy1yq.s[5]++; console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!"); } - }); + }); + }, + beforeDestroy: function beforeDestroy() { + cov_bq84cy1yq.f[4]++; + cov_bq84cy1yq.s[6]++; + + if (this.picker) { + cov_bq84cy1yq.b[1][0]++; + cov_bq84cy1yq.s[7]++; + this.picker.destroy(); + } else { + cov_bq84cy1yq.b[1][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue + + + + + +/* normalize component */ + +var fieldPikaday_component = normalizeComponent( + optional_fieldPikadayvue_type_script_lang_js_, + fieldPikadayvue_type_template_id_69cdd058_render, + fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, + false, + null, + null, + null + +) + +fieldPikaday_component.options.__file = "fieldPikaday.vue" +/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& +var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} +var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js + + + +function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); +} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& +var cov_b91itll0m = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue", + hash = "4ac599bbccd8c0d0f6aec89dc3a6237a43680c29", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue", + statementMap: { + "0": { + start: { + line: 24, + column: 2 + }, + end: { + line: 26, + column: 4 + } + }, + "1": { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, + "2": { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, + "3": { + start: { + line: 34, + column: 5 + }, + end: { + line: 34, + column: 39 + } + }, + "4": { + start: { + line: 35, + column: 11 + }, + end: { + line: 35, + column: 34 + } + }, + "5": { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, + "6": { + start: { + line: 38, + column: 5 + }, + end: { + line: 41, + column: 8 + } + }, + "7": { + start: { + line: 48, + column: 2 + }, + end: { + line: 78, + column: 5 + } + }, + "8": { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, + "9": { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, + "10": { + start: { + line: 52, + column: 5 + }, + end: { + line: 52, + column: 39 + } + }, + "11": { + start: { + line: 53, + column: 11 + }, + end: { + line: 53, + column: 34 + } + }, + "12": { + start: { + line: 55, + column: 15 + }, + end: { + line: 55, + column: 19 + } + }, + "13": { + start: { + line: 56, + column: 4 + }, + end: { + line: 71, + column: 6 + } + }, + "14": { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, + "15": { + start: { + line: 65, + column: 8 + }, + end: { + line: 65, + column: 46 + } + }, + "16": { + start: { + line: 67, + column: 8 + }, + end: { + line: 67, + column: 33 + } + }, + "17": { + start: { + line: 72, + column: 4 + }, + end: { + line: 72, + column: 53 + } + }, + "18": { + start: { + line: 74, + column: 4 + }, + end: { + line: 76, + column: 6 + } + }, + "19": { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, + "20": { + start: { + line: 82, + column: 19 + }, + end: { + line: 82, + column: 41 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 23, + column: 1 + }, + end: { + line: 23, + column: 2 + } + }, + loc: { + start: { + line: 23, + column: 8 + }, + end: { + line: 27, + column: 2 + } + }, + line: 23 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 30, + column: 9 + }, + end: { + line: 30, + column: 10 + } + }, + loc: { + start: { + line: 30, + column: 20 + }, + end: { + line: 44, + column: 3 + } + }, + line: 30 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 47, + column: 1 + }, + end: { + line: 47, + column: 2 + } + }, + loc: { + start: { + line: 47, + column: 11 + }, + end: { + line: 79, + column: 2 + } + }, + line: 47 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 48, + column: 17 + }, + end: { + line: 48, + column: 18 + } + }, + loc: { + start: { + line: 48, + column: 28 + }, + end: { + line: 78, + column: 3 + } + }, + line: 48 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 63, + column: 6 + }, + end: { + line: 63, + column: 7 + } + }, + loc: { + start: { + line: 63, + column: 23 + }, + end: { + line: 69, + column: 7 + } + }, + line: 63 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 81, + column: 1 + }, + end: { + line: 81, + column: 2 + } + }, + loc: { + start: { + line: 81, + column: 17 + }, + end: { + line: 83, + column: 2 + } + }, + line: 81 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }], + line: 31 + }, + "1": { + loc: { + start: { + line: 31, + column: 7 + }, + end: { + line: 31, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 31, + column: 7 + }, + end: { + line: 31, + column: 15 + } + }, { + start: { + line: 31, + column: 19 + }, + end: { + line: 31, + column: 45 + } + }], + line: 31 + }, + "2": { + loc: { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }], + line: 33 + }, + "3": { + loc: { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }], + line: 37 + }, + "4": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }], + line: 49 + }, + "5": { + loc: { + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 15 + } + }, { + start: { + line: 49, + column: 19 + }, + end: { + line: 49, + column: 45 + } + }], + line: 49 + }, + "6": { + loc: { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, + type: "if", + locations: [{ + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }], + line: 51 + }, + "7": { + loc: { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }], + line: 64 + }, + "8": { + loc: { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }], + line: 82 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue - - - - - -/* normalize component */ - -var fieldPikaday_component = normalizeComponent( - optional_fieldPikadayvue_type_script_lang_js_, - fieldPikadayvue_type_template_id_69cdd058_render, - fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, - false, - null, - null, - null - -) - -fieldPikaday_component.options.__file = "fieldPikaday.vue" -/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& -var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} -var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); + coverage = global[gcv] || (global[gcv] = {}); - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } - return _arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js - - + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& @@ -9551,44 +36246,81 @@ function _slicedToArray(arr, i) { name: "field-rangeSlider", mixins: [abstractField], data: function data() { + cov_b91itll0m.f[0]++; + cov_b91itll0m.s[0]++; return { slider: null }; }, watch: { model: function model() { - if (window.$ && window.$.fn.ionRangeSlider) { + cov_b91itll0m.f[1]++; + cov_b91itll0m.s[1]++; + + if ((cov_b91itll0m.b[1][0]++, window.$) && (cov_b91itll0m.b[1][1]++, window.$.fn.ionRangeSlider)) { + cov_b91itll0m.b[0][0]++; var valueFrom, valueTo; + cov_b91itll0m.s[2]++; if (isArray_default()(this.value)) { + cov_b91itll0m.b[2][0]++; + cov_b91itll0m.s[3]++; + var _this$value = _slicedToArray(this.value, 2); valueFrom = _this$value[0]; valueTo = _this$value[1]; - } else valueFrom = this.value; + } else { + cov_b91itll0m.b[2][1]++; + cov_b91itll0m.s[4]++; + valueFrom = this.value; + } + + cov_b91itll0m.s[5]++; if (this.slider) { + cov_b91itll0m.b[3][0]++; + cov_b91itll0m.s[6]++; this.slider.update({ from: valueFrom, to: valueTo }); + } else { + cov_b91itll0m.b[3][1]++; } + } else { + cov_b91itll0m.b[0][1]++; } } }, mounted: function mounted() { + cov_b91itll0m.f[2]++; + cov_b91itll0m.s[7]++; this.$nextTick(function () { - if (window.$ && window.$.fn.ionRangeSlider) { + cov_b91itll0m.f[3]++; + cov_b91itll0m.s[8]++; + + if ((cov_b91itll0m.b[5][0]++, window.$) && (cov_b91itll0m.b[5][1]++, window.$.fn.ionRangeSlider)) { + cov_b91itll0m.b[4][0]++; var valueFrom, valueTo; + cov_b91itll0m.s[9]++; if (isArray_default()(this.value)) { + cov_b91itll0m.b[6][0]++; + cov_b91itll0m.s[10]++; + var _this$value2 = _slicedToArray(this.value, 2); valueFrom = _this$value2[0]; valueTo = _this$value2[1]; - } else valueFrom = this.value; + } else { + cov_b91itll0m.b[6][1]++; + cov_b91itll0m.s[11]++; + valueFrom = this.value; + } - var self = this; + var self = (cov_b91itll0m.s[12]++, this); + cov_b91itll0m.s[13]++; $(this.$el).ionRangeSlider(defaults_default()(this.fieldOptions, { type: "single", grid: true, @@ -9596,58 +36328,978 @@ function _slicedToArray(arr, i) { from: valueFrom, to: valueTo, onChange: function onChange(slider) { + cov_b91itll0m.f[4]++; + cov_b91itll0m.s[14]++; + if (self.slider.options.type === "double") { + cov_b91itll0m.b[7][0]++; + cov_b91itll0m.s[15]++; self.value = [slider.from, slider.to]; } else { + cov_b91itll0m.b[7][1]++; + cov_b91itll0m.s[16]++; self.value = slider.from; } } - })); - this.slider = $(this.$el).data("ionRangeSlider"); - } else { - console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); + })); + cov_b91itll0m.s[17]++; + this.slider = $(this.$el).data("ionRangeSlider"); + } else { + cov_b91itll0m.b[4][1]++; + cov_b91itll0m.s[18]++; + console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); + } + }); + }, + beforeDestroy: function beforeDestroy() { + cov_b91itll0m.f[5]++; + cov_b91itll0m.s[19]++; + + if (this.slider) { + cov_b91itll0m.b[8][0]++; + cov_b91itll0m.s[20]++; + this.slider.destroy(); + } else { + cov_b91itll0m.b[8][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& +var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); + +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue + + + + + + +/* normalize component */ + +var fieldRangeSlider_component = normalizeComponent( + optional_fieldRangeSlidervue_type_script_lang_js_, + fieldRangeSlidervue_type_template_id_6be663d2_render, + fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, + false, + null, + null, + null + +) + +fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" +/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& +var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} +var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& +var cov_1zg2mjpl6k = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue", + hash = "e28ff38ed9467807d2f87ed07c60185a05aaf64e", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue", + statementMap: { + "0": { + start: { + line: 30, + column: 16 + }, + end: { + line: 30, + column: 34 + } + }, + "1": { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, + "2": { + start: { + line: 32, + column: 4 + }, + end: { + line: 32, + column: 57 + } + }, + "3": { + start: { + line: 33, + column: 10 + }, + end: { + line: 33, + column: 24 + } + }, + "4": { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + "5": { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + "6": { + start: { + line: 41, + column: 5 + }, + end: { + line: 41, + column: 42 + } + }, + "7": { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + "8": { + start: { + line: 45, + column: 6 + }, + end: { + line: 45, + column: 21 + } + }, + "9": { + start: { + line: 47, + column: 6 + }, + end: { + line: 47, + column: 233 + } + }, + "10": { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 16 + } + }, + "11": { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, + "12": { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, + "13": { + start: { + line: 58, + column: 5 + }, + end: { + line: 58, + column: 41 + } + }, + "14": { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, + "15": { + start: { + line: 61, + column: 6 + }, + end: { + line: 61, + column: 23 + } + }, + "16": { + start: { + line: 63, + column: 6 + }, + end: { + line: 63, + column: 234 + } + }, + "17": { + start: { + line: 67, + column: 4 + }, + end: { + line: 67, + column: 16 + } + }, + "18": { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, + "19": { + start: { + line: 74, + column: 57 + }, + end: { + line: 74, + column: 93 + } + }, + "20": { + start: { + line: 79, + column: 2 + }, + end: { + line: 89, + column: 5 + } + }, + "21": { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, + "22": { + start: { + line: 81, + column: 4 + }, + end: { + line: 83, + column: 38 + } + }, + "23": { + start: { + line: 85, + column: 4 + }, + end: { + line: 87, + column: 6 + } + }, + "24": { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, + "25": { + start: { + line: 93, + column: 25 + }, + end: { + line: 93, + column: 61 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 29, + column: 2 + }, + end: { + line: 29, + column: 3 + } + }, + loc: { + start: { + line: 29, + column: 10 + }, + end: { + line: 34, + column: 3 + } + }, + line: 29 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 38, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + loc: { + start: { + line: 38, + column: 21 + }, + end: { + line: 53, + column: 3 + } + }, + line: 38 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 55, + column: 2 + }, + end: { + line: 55, + column: 3 + } + }, + loc: { + start: { + line: 55, + column: 20 + }, + end: { + line: 69, + column: 3 + } + }, + line: 55 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 73, + column: 9 + }, + end: { + line: 73, + column: 10 + } + }, + loc: { + start: { + line: 73, + column: 20 + }, + end: { + line: 75, + column: 3 + } + }, + line: 73 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 78, + column: 1 + }, + end: { + line: 78, + column: 2 + } + }, + loc: { + start: { + line: 78, + column: 11 + }, + end: { + line: 90, + column: 2 + } + }, + line: 78 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 79, + column: 17 + }, + end: { + line: 79, + column: 18 + } + }, + loc: { + start: { + line: 79, + column: 23 + }, + end: { + line: 89, + column: 3 + } + }, + line: 79 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 92, + column: 1 + }, + end: { + line: 92, + column: 2 + } + }, + loc: { + start: { + line: 92, + column: 17 + }, + end: { + line: 94, + column: 2 + } + }, + line: 92 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }], + line: 31 + }, + "1": { + loc: { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }], + line: 39 + }, + "2": { + loc: { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }], + line: 40 + }, + "3": { + loc: { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }], + line: 44 + }, + "4": { + loc: { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }], + line: 56 + }, + "5": { + loc: { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }], + line: 57 + }, + "6": { + loc: { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }], + line: 60 + }, + "7": { + loc: { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, + type: "if", + locations: [{ + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }], + line: 74 + }, + "8": { + loc: { + start: { + line: 74, + column: 7 + }, + end: { + line: 74, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 74, + column: 7 + }, + end: { + line: 74, + column: 34 + } + }, { + start: { + line: 74, + column: 38 + }, + end: { + line: 74, + column: 55 + } + }], + line: 74 + }, + "9": { + loc: { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }], + line: 80 + }, + "10": { + loc: { + start: { + line: 80, + column: 7 + }, + end: { + line: 80, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 80, + column: 7 + }, + end: { + line: 80, + column: 34 + } + }, { + start: { + line: 80, + column: 38 + }, + end: { + line: 80, + column: 55 + } + }], + line: 80 + }, + "11": { + loc: { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, + type: "if", + locations: [{ + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }], + line: 93 } - }); + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& -var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue - - - - - - -/* normalize component */ - -var fieldRangeSlider_component = normalizeComponent( - optional_fieldRangeSlidervue_type_script_lang_js_, - fieldRangeSlidervue_type_template_id_6be663d2_render, - fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, - false, - null, - null, - null - -) - -fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" -/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& -var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} -var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& @@ -9658,64 +37310,133 @@ var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_1zg2mjpl6k.f[0]++; + var values = (cov_1zg2mjpl6k.s[0]++, this.schema.values); + cov_1zg2mjpl6k.s[1]++; if (typeof values == "function") { + cov_1zg2mjpl6k.b[0][0]++; + cov_1zg2mjpl6k.s[2]++; return values.apply(this, [this.model, this.schema]); - } else return values; + } else { + cov_1zg2mjpl6k.b[0][1]++; + cov_1zg2mjpl6k.s[3]++; + return values; + } } }, methods: { getItemValue: function getItemValue(item) { + cov_1zg2mjpl6k.f[1]++; + cov_1zg2mjpl6k.s[4]++; + if (isObject_default()(item)) { + cov_1zg2mjpl6k.b[1][0]++; + cov_1zg2mjpl6k.s[5]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_1zg2mjpl6k.b[2][0]++; + cov_1zg2mjpl6k.s[6]++; return item[this.fieldOptions.value]; } else { + cov_1zg2mjpl6k.b[2][1]++; + cov_1zg2mjpl6k.s[7]++; + // Use 'id' instead of 'value' cause of backward compatibility if (typeof item["id"] !== "undefined") { + cov_1zg2mjpl6k.b[3][0]++; + cov_1zg2mjpl6k.s[8]++; return item.id; } else { + cov_1zg2mjpl6k.b[3][1]++; + cov_1zg2mjpl6k.s[9]++; 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 { + cov_1zg2mjpl6k.b[1][1]++; + cov_1zg2mjpl6k.s[10]++; return item; } }, getItemName: function getItemName(item) { + cov_1zg2mjpl6k.f[2]++; + cov_1zg2mjpl6k.s[11]++; + if (isObject_default()(item)) { + cov_1zg2mjpl6k.b[4][0]++; + cov_1zg2mjpl6k.s[12]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_1zg2mjpl6k.b[5][0]++; + cov_1zg2mjpl6k.s[13]++; return item[this.fieldOptions.name]; } else { + cov_1zg2mjpl6k.b[5][1]++; + cov_1zg2mjpl6k.s[14]++; + if (typeof item["name"] !== "undefined") { + cov_1zg2mjpl6k.b[6][0]++; + cov_1zg2mjpl6k.s[15]++; return item.name; } else { + cov_1zg2mjpl6k.b[6][1]++; + cov_1zg2mjpl6k.s[16]++; 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 { + cov_1zg2mjpl6k.b[4][1]++; + cov_1zg2mjpl6k.s[17]++; return item; } } }, watch: { model: function model() { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) $(this.$el).selectpicker("refresh"); + cov_1zg2mjpl6k.f[3]++; + cov_1zg2mjpl6k.s[18]++; + + if ((cov_1zg2mjpl6k.b[8][0]++, typeof $.fn !== "undefined") && (cov_1zg2mjpl6k.b[8][1]++, $.fn.selectpicker)) { + cov_1zg2mjpl6k.b[7][0]++; + cov_1zg2mjpl6k.s[19]++; + $(this.$el).selectpicker("refresh"); + } else { + cov_1zg2mjpl6k.b[7][1]++; + } } }, mounted: function mounted() { var _this = this; + cov_1zg2mjpl6k.f[4]++; + cov_1zg2mjpl6k.s[20]++; this.$nextTick(function () { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) { + cov_1zg2mjpl6k.f[5]++; + cov_1zg2mjpl6k.s[21]++; + + if ((cov_1zg2mjpl6k.b[10][0]++, typeof $.fn !== "undefined") && (cov_1zg2mjpl6k.b[10][1]++, $.fn.selectpicker)) { + cov_1zg2mjpl6k.b[9][0]++; + cov_1zg2mjpl6k.s[22]++; $(_this.$el).selectpicker("destroy").selectpicker(_this.fieldOptions); } else { + cov_1zg2mjpl6k.b[9][1]++; + cov_1zg2mjpl6k.s[23]++; console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if ($.fn.selectpicker) $(this.$el).selectpicker("destroy"); + cov_1zg2mjpl6k.f[6]++; + cov_1zg2mjpl6k.s[24]++; + + if ($.fn.selectpicker) { + cov_1zg2mjpl6k.b[11][0]++; + cov_1zg2mjpl6k.s[25]++; + $(this.$el).selectpicker("destroy"); + } else { + cov_1zg2mjpl6k.b[11][1]++; + } } }); // CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=script&lang=js& @@ -9745,7 +37466,7 @@ var fieldSelectEx_component = normalizeComponent( fieldSelectEx_component.options.__file = "fieldSelectEx.vue" /* harmony default export */ var fieldSelectEx = (fieldSelectEx_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& var fieldSpectrumvue_type_template_id_13b45188_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID}})} var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] @@ -9753,6 +37474,605 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSpectrum.vue?vue&type=script&lang=js& +var cov_1avib7a09y = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue", + hash = "c5b9b396579a73a562daffcf587c1f7b3647d91f", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue", + statementMap: { + "0": { + start: { + line: 20, + column: 2 + }, + end: { + line: 22, + column: 4 + } + }, + "1": { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, + "2": { + start: { + line: 28, + column: 4 + }, + end: { + line: 28, + column: 44 + } + }, + "3": { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, + "4": { + start: { + line: 33, + column: 12 + }, + end: { + line: 33, + column: 44 + } + }, + "5": { + start: { + line: 34, + column: 8 + }, + end: { + line: 34, + column: 39 + } + }, + "6": { + start: { + line: 39, + column: 2 + }, + end: { + line: 61, + column: 5 + } + }, + "7": { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "8": { + start: { + line: 41, + column: 4 + }, + end: { + line: 54, + column: 7 + } + }, + "9": { + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 53 + } + }, + "10": { + start: { + line: 55, + column: 4 + }, + end: { + line: 55, + column: 44 + } + }, + "11": { + start: { + line: 57, + column: 4 + }, + end: { + line: 59, + column: 6 + } + }, + "12": { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, + "13": { + start: { + line: 65, + column: 19 + }, + end: { + line: 65, + column: 51 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 19, + column: 1 + }, + end: { + line: 19, + column: 2 + } + }, + loc: { + start: { + line: 19, + column: 8 + }, + end: { + line: 23, + column: 2 + } + }, + line: 19 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 26, + column: 2 + }, + end: { + line: 26, + column: 3 + } + }, + loc: { + start: { + line: 26, + column: 10 + }, + end: { + line: 30, + column: 3 + } + }, + line: 26 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 32, + column: 2 + }, + end: { + line: 32, + column: 3 + } + }, + loc: { + start: { + line: 32, + column: 16 + }, + end: { + line: 35, + column: 3 + } + }, + line: 32 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 38, + column: 1 + }, + end: { + line: 38, + column: 2 + } + }, + loc: { + start: { + line: 38, + column: 11 + }, + end: { + line: 62, + column: 2 + } + }, + line: 38 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 39, + column: 17 + }, + end: { + line: 39, + column: 18 + } + }, + loc: { + start: { + line: 39, + column: 28 + }, + end: { + line: 61, + column: 3 + } + }, + line: 39 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 50, + column: 15 + }, + end: { + line: 50, + column: 16 + } + }, + loc: { + start: { + line: 50, + column: 26 + }, + end: { + line: 52, + column: 8 + } + }, + line: 50 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 64, + column: 1 + }, + end: { + line: 64, + column: 2 + } + }, + loc: { + start: { + line: 64, + column: 17 + }, + end: { + line: 66, + column: 2 + } + }, + line: 64 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }], + line: 27 + }, + "1": { + loc: { + start: { + line: 27, + column: 7 + }, + end: { + line: 27, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 27, + column: 7 + }, + end: { + line: 27, + column: 15 + } + }, { + start: { + line: 27, + column: 19 + }, + end: { + line: 27, + column: 39 + } + }], + line: 27 + }, + "2": { + loc: { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }], + line: 33 + }, + "3": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 40 + }, + "4": { + loc: { + start: { + line: 40, + column: 7 + }, + end: { + line: 40, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 40, + column: 7 + }, + end: { + line: 40, + column: 15 + } + }, { + start: { + line: 40, + column: 19 + }, + end: { + line: 40, + column: 39 + } + }], + line: 40 + }, + "5": { + loc: { + start: { + line: 51, + column: 21 + }, + end: { + line: 51, + column: 52 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 51, + column: 29 + }, + end: { + line: 51, + column: 45 + } + }, { + start: { + line: 51, + column: 48 + }, + end: { + line: 51, + column: 52 + } + }], + line: 51 + }, + "6": { + loc: { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, + type: "if", + locations: [{ + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }], + line: 65 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -9772,25 +38092,52 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] name: "field-spectrum", mixins: [abstractField], data: function data() { + cov_1avib7a09y.f[0]++; + cov_1avib7a09y.s[0]++; return { picker: null }; }, watch: { model: function model() { - if (window.$ && window.$.fn.spectrum) { + cov_1avib7a09y.f[1]++; + cov_1avib7a09y.s[1]++; + + if ((cov_1avib7a09y.b[1][0]++, window.$) && (cov_1avib7a09y.b[1][1]++, window.$.fn.spectrum)) { + cov_1avib7a09y.b[0][0]++; + cov_1avib7a09y.s[2]++; this.picker.spectrum("set", this.value); + } else { + cov_1avib7a09y.b[0][1]++; } }, disabled: function disabled(val) { - if (val) this.picker.spectrum("disable");else this.picker.spectrum("enable"); + cov_1avib7a09y.f[2]++; + cov_1avib7a09y.s[3]++; + + if (val) { + cov_1avib7a09y.b[2][0]++; + cov_1avib7a09y.s[4]++; + this.picker.spectrum("disable"); + } else { + cov_1avib7a09y.b[2][1]++; + cov_1avib7a09y.s[5]++; + this.picker.spectrum("enable"); + } } }, mounted: function mounted() { + cov_1avib7a09y.f[3]++; + cov_1avib7a09y.s[6]++; this.$nextTick(function () { var _this = this; - if (window.$ && window.$.fn.spectrum) { + cov_1avib7a09y.f[4]++; + cov_1avib7a09y.s[7]++; + + if ((cov_1avib7a09y.b[4][0]++, window.$) && (cov_1avib7a09y.b[4][1]++, window.$.fn.spectrum)) { + cov_1avib7a09y.b[3][0]++; + cov_1avib7a09y.s[8]++; this.picker = $(this.$el).spectrum("destroy").spectrum(defaults_default()(this.fieldOptions, { showInput: true, showAlpha: true, @@ -9798,50 +38145,378 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] allowEmpty: !this.schema.required, preferredFormat: "hex", change: function change(color) { - _this.value = color ? color.toString() : null; + cov_1avib7a09y.f[5]++; + cov_1avib7a09y.s[9]++; + _this.value = color ? (cov_1avib7a09y.b[5][0]++, color.toString()) : (cov_1avib7a09y.b[5][1]++, null); + } + })); + cov_1avib7a09y.s[10]++; + this.picker.spectrum("set", this.value); + } else { + cov_1avib7a09y.b[3][1]++; + cov_1avib7a09y.s[11]++; + console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); + } + }); + }, + beforeDestroy: function beforeDestroy() { + cov_1avib7a09y.f[6]++; + cov_1avib7a09y.s[12]++; + + if (this.picker) { + cov_1avib7a09y.b[6][0]++; + cov_1avib7a09y.s[13]++; + this.picker.spectrum("destroy"); + } else { + cov_1avib7a09y.b[6][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue + + + + + +/* normalize component */ + +var fieldSpectrum_component = normalizeComponent( + optional_fieldSpectrumvue_type_script_lang_js_, + fieldSpectrumvue_type_template_id_13b45188_render, + fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, + false, + null, + null, + null + +) + +fieldSpectrum_component.options.__file = "fieldSpectrum.vue" +/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& +var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} +var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& +var cov_1ostc70akj = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue", + hash = "ece9fa3e4721e75399d28424804697c257fa947a", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue", + statementMap: { + "0": { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, + "1": { + start: { + line: 17, + column: 18 + }, + end: { + line: 23, + column: 6 + } + }, + "2": { + start: { + line: 25, + column: 4 + }, + end: { + line: 25, + column: 34 + } + }, + "3": { + start: { + line: 26, + column: 4 + }, + end: { + line: 26, + column: 34 + } + }, + "4": { + start: { + line: 28, + column: 14 + }, + end: { + line: 30, + column: 45 + } + }, + "5": { + start: { + line: 32, + column: 16 + }, + end: { + line: 44, + column: 5 + } + }, + "6": { + start: { + line: 45, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + "7": { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + "8": { + start: { + line: 47, + column: 6 + }, + end: { + line: 47, + column: 41 + } + }, + "9": { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, + "10": { + start: { + line: 51, + column: 5 + }, + end: { + line: 51, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 3 + } + }, + loc: { + start: { + line: 14, + column: 12 + }, + end: { + line: 54, + column: 3 + } + }, + line: 14 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }], + line: 15 + }, + "1": { + loc: { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 } - })); - this.picker.spectrum("set", this.value); - } else { - console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); + }], + line: 46 + }, + "2": { + loc: { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }], + line: 50 + }, + "3": { + loc: { + start: { + line: 50, + column: 8 + }, + end: { + line: 50, + column: 18 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 50, + column: 8 + }, + end: { + line: 50, + column: 11 + } + }, { + start: { + line: 50, + column: 15 + }, + end: { + line: 50, + column: 18 + } + }], + line: 50 } - }); + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.spectrum("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue - - - - - -/* normalize component */ - -var fieldSpectrum_component = normalizeComponent( - optional_fieldSpectrumvue_type_script_lang_js_, - fieldSpectrumvue_type_template_id_13b45188_render, - fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, - false, - null, - null, - null - -) - -fieldSpectrum_component.options.__file = "fieldSpectrum.vue" -/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& -var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} -var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& // // @@ -9853,33 +38528,51 @@ var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] mixins: [abstractField], computed: { mapLink: function mapLink() { + cov_1ostc70akj.f[0]++; + cov_1ostc70akj.s[0]++; + if (this.value) { + cov_1ostc70akj.b[0][0]++; var lat, lng; - - var options = defaults_default()(this.fieldOptions, { + var options = (cov_1ostc70akj.s[1]++, defaults_default()(this.fieldOptions, { lat: "lat", lng: "lng", zoom: 8, sizeX: 640, sizeY: 640 - }); - + })); + cov_1ostc70akj.s[2]++; lat = this.value[options.lat]; + cov_1ostc70akj.s[3]++; lng = this.value[options.lng]; - var url = "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY); - var props = ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]; + var url = (cov_1ostc70akj.s[4]++, "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY)); + var props = (cov_1ostc70akj.s[5]++, ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]); + cov_1ostc70akj.s[6]++; for (var _i = 0; _i < props.length; _i++) { var prop = props[_i]; + cov_1ostc70akj.s[7]++; if (typeof options[prop] !== "undefined") { + cov_1ostc70akj.b[1][0]++; + cov_1ostc70akj.s[8]++; url += "&".concat(prop, "=").concat(options[prop]); + } else { + cov_1ostc70akj.b[1][1]++; } } - if (lat && lng) { + cov_1ostc70akj.s[9]++; + + if ((cov_1ostc70akj.b[3][0]++, lat) && (cov_1ostc70akj.b[3][1]++, lng)) { + cov_1ostc70akj.b[2][0]++; + cov_1ostc70akj.s[10]++; return url; + } else { + cov_1ostc70akj.b[2][1]++; } + } else { + cov_1ostc70akj.b[0][1]++; } } } @@ -9911,7 +38604,7 @@ var fieldStaticMap_component = normalizeComponent( fieldStaticMap_component.options.__file = "fieldStaticMap.vue" /* harmony default export */ var fieldStaticMap = (fieldStaticMap_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& var fieldSwitchvue_type_template_id_5a71b352_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],attrs:{"type":"checkbox","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"name":_vm.inputName,"id":_vm.fieldID},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}}}}),_c('span',{staticClass:"label",attrs:{"data-on":_vm.fieldOptions.textOn || 'On',"data-off":_vm.fieldOptions.textOff || 'Off',"for":_vm.fieldID}}),_c('span',{staticClass:"handle"})])} var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] @@ -9919,6 +38612,346 @@ var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSwitch.vue?vue&type=script&lang=js& +var cov_r8apqthxw = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue", + hash = "806abb636683e0e8f010e68e5f700e7f9f89d0d3", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue", + statementMap: { + "0": { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, + "1": { + start: { + line: 26, + column: 51 + }, + end: { + line: 26, + column: 94 + } + }, + "2": { + start: { + line: 28, + column: 3 + }, + end: { + line: 28, + column: 16 + } + }, + "3": { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, + "4": { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, + "5": { + start: { + line: 33, + column: 15 + }, + end: { + line: 33, + column: 48 + } + }, + "6": { + start: { + line: 34, + column: 9 + }, + end: { + line: 34, + column: 43 + } + }, + "7": { + start: { + line: 37, + column: 3 + }, + end: { + line: 37, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 25, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + loc: { + start: { + line: 25, + column: 28 + }, + end: { + line: 29, + column: 3 + } + }, + line: 25 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 31, + column: 2 + }, + end: { + line: 31, + column: 3 + } + }, + loc: { + start: { + line: 31, + column: 28 + }, + end: { + line: 38, + column: 3 + } + }, + line: 31 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, + type: "if", + locations: [{ + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }], + line: 26 + }, + "1": { + loc: { + start: { + line: 26, + column: 7 + }, + end: { + line: 26, + column: 49 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 26, + column: 7 + }, + end: { + line: 26, + column: 20 + } + }, { + start: { + line: 26, + column: 24 + }, + end: { + line: 26, + column: 49 + } + }], + line: 26 + }, + "2": { + loc: { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }], + line: 32 + }, + "3": { + loc: { + start: { + line: 32, + column: 7 + }, + end: { + line: 32, + column: 49 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 32, + column: 7 + }, + end: { + line: 32, + column: 20 + } + }, { + start: { + line: 32, + column: 24 + }, + end: { + line: 32, + column: 49 + } + }], + line: 32 + }, + "4": { + loc: { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }], + line: 33 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -9941,14 +38974,42 @@ var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] mixins: [abstractField], methods: { formatValueToField: function formatValueToField(value) { - if (value != null && this.fieldOptions.valueOn) return value === this.fieldOptions.valueOn; + cov_r8apqthxw.f[0]++; + cov_r8apqthxw.s[0]++; + + if ((cov_r8apqthxw.b[1][0]++, value != null) && (cov_r8apqthxw.b[1][1]++, this.fieldOptions.valueOn)) { + cov_r8apqthxw.b[0][0]++; + cov_r8apqthxw.s[1]++; + return value === this.fieldOptions.valueOn; + } else { + cov_r8apqthxw.b[0][1]++; + } + + cov_r8apqthxw.s[2]++; return value; }, formatValueToModel: function formatValueToModel(value) { - if (value != null && this.fieldOptions.valueOn) { - if (value) return this.fieldOptions.valueOn;else return this.fieldOptions.valueOff; + cov_r8apqthxw.f[1]++; + cov_r8apqthxw.s[3]++; + + if ((cov_r8apqthxw.b[3][0]++, value != null) && (cov_r8apqthxw.b[3][1]++, this.fieldOptions.valueOn)) { + cov_r8apqthxw.b[2][0]++; + cov_r8apqthxw.s[4]++; + + if (value) { + cov_r8apqthxw.b[4][0]++; + cov_r8apqthxw.s[5]++; + return this.fieldOptions.valueOn; + } else { + cov_r8apqthxw.b[4][1]++; + cov_r8apqthxw.s[6]++; + return this.fieldOptions.valueOff; + } + } else { + cov_r8apqthxw.b[2][1]++; } + cov_r8apqthxw.s[7]++; return value; } } @@ -9980,7 +39041,7 @@ var fieldSwitch_component = normalizeComponent( fieldSwitch_component.options.__file = "fieldSwitch.vue" /* harmony default export */ var fieldSwitch = (fieldSwitch_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& var fieldVueMultiSelectvue_type_template_id_032ae05c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('multiselect',{attrs:{"id":_vm.fieldOptions.id,"options":_vm.options,"value":_vm.value,"multiple":_vm.fieldOptions.multiple,"track-by":_vm.fieldOptions.trackBy || null,"label":_vm.fieldOptions.label || null,"searchable":_vm.fieldOptions.searchable,"clear-on-select":_vm.fieldOptions.clearOnSelect,"hide-selected":_vm.fieldOptions.hideSelected,"placeholder":_vm.placeholder,"allow-empty":_vm.fieldOptions.allowEmpty,"reset-after":_vm.fieldOptions.resetAfter,"close-on-select":_vm.fieldOptions.closeOnSelect,"custom-label":_vm.customLabel,"taggable":_vm.fieldOptions.taggable,"tag-placeholder":_vm.fieldOptions.tagPlaceholder,"max":_vm.fieldOptions.max || null,"options-limit":_vm.fieldOptions.optionsLimit,"group-values":_vm.fieldOptions.groupValues,"group-label":_vm.fieldOptions.groupLabel,"block-keys":_vm.fieldOptions.blockKeys,"internal-search":_vm.fieldOptions.internalSearch,"select-label":_vm.fieldOptions.selectLabel,"selected-label":_vm.fieldOptions.selectedLabel,"deselect-label":_vm.fieldOptions.deselectLabel,"show-labels":_vm.fieldOptions.showLabels,"limit":_vm.fieldOptions.limit,"limit-text":_vm.fieldOptions.limitText,"loading":_vm.fieldOptions.loading,"disabled":_vm.disabled,"max-height":_vm.fieldOptions.maxHeight,"show-pointer":_vm.fieldOptions.showPointer,"option-height":_vm.fieldOptions.optionHeight},on:{"input":_vm.updateSelected,"select":_vm.onSelect,"remove":_vm.onRemove,"search-change":_vm.onSearchChange,"tag":_vm.addTag,"open":_vm.onOpen,"close":_vm.onClose}},[_c('span',{attrs:{"slot":"noResult"},slot:"noResult"},[_vm._v("\n\t\t"+_vm._s(_vm.fieldOptions.noResult)+"\n\t")])])} var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] @@ -9988,6 +39049,668 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& +var cov_1r7rt9or0z = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue", + hash = "b3674c719740b66820d4636cf97edb32a7e4b300", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue", + statementMap: { + "0": { + start: { + line: 56, + column: 16 + }, + end: { + line: 56, + column: 34 + } + }, + "1": { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, + "2": { + start: { + line: 58, + column: 4 + }, + end: { + line: 58, + column: 57 + } + }, + "3": { + start: { + line: 60, + column: 4 + }, + end: { + line: 60, + column: 18 + } + }, + "4": { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, + "5": { + start: { + line: 68, + column: 4 + }, + end: { + line: 68, + column: 41 + } + }, + "6": { + start: { + line: 71, + column: 4 + }, + end: { + line: 71, + column: 21 + } + }, + "7": { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 22 + } + }, + "8": { + start: { + line: 80, + column: 18 + }, + end: { + line: 80, + column: 44 + } + }, + "9": { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, + "10": { + start: { + line: 82, + column: 4 + }, + end: { + line: 82, + column: 51 + } + }, + "11": { + start: { + line: 86, + column: 18 + }, + end: { + line: 86, + column: 44 + } + }, + "12": { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, + "13": { + start: { + line: 88, + column: 4 + }, + end: { + line: 88, + column: 44 + } + }, + "14": { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, + "15": { + start: { + line: 107, + column: 3 + }, + end: { + line: 109, + column: 5 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 55, + column: 2 + }, + end: { + line: 55, + column: 3 + } + }, + loc: { + start: { + line: 55, + column: 12 + }, + end: { + line: 62, + column: 3 + } + }, + line: 55 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 63, + column: 2 + }, + end: { + line: 63, + column: 3 + } + }, + loc: { + start: { + line: 63, + column: 16 + }, + end: { + line: 73, + column: 3 + } + }, + line: 63 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 34 + }, + end: { + line: 78, + column: 3 + } + }, + line: 76 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 79, + column: 2 + }, + end: { + line: 79, + column: 3 + } + }, + loc: { + start: { + line: 79, + column: 21 + }, + end: { + line: 84, + column: 3 + } + }, + line: 79 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 85, + column: 2 + }, + end: { + line: 85, + column: 3 + } + }, + loc: { + start: { + line: 85, + column: 34 + }, + end: { + line: 90, + column: 3 + } + }, + line: 85 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 91, + column: 2 + }, + end: { + line: 91, + column: 3 + } + }, + loc: { + start: { + line: 91, + column: 37 + }, + end: { + line: 93, + column: 3 + } + }, + line: 91 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 36 + }, + end: { + line: 96, + column: 3 + } + }, + line: 94 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 97, + column: 2 + }, + end: { + line: 97, + column: 3 + } + }, + loc: { + start: { + line: 97, + column: 19 + }, + end: { + line: 99, + column: 3 + } + }, + line: 97 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 27 + }, + end: { + line: 102, + column: 3 + } + }, + line: 100 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 104, + column: 1 + }, + end: { + line: 104, + column: 2 + } + }, + loc: { + start: { + line: 104, + column: 11 + }, + end: { + line: 111, + column: 2 + } + }, + line: 104 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }], + line: 57 + }, + "1": { + loc: { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }], + line: 64 + }, + "2": { + loc: { + start: { + line: 65, + column: 4 + }, + end: { + line: 66, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 65, + column: 4 + }, + end: { + line: 65, + column: 56 + } + }, { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 55 + } + }], + line: 65 + }, + "3": { + loc: { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }], + line: 81 + }, + "4": { + loc: { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }], + line: 87 + }, + "5": { + loc: { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }], + line: 106 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -10043,18 +39766,31 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] mixins: [abstractField], computed: { options: function options() { - var values = this.schema.values; + cov_1r7rt9or0z.f[0]++; + var values = (cov_1r7rt9or0z.s[0]++, this.schema.values); + cov_1r7rt9or0z.s[1]++; if (typeof values == "function") { + cov_1r7rt9or0z.b[0][0]++; + cov_1r7rt9or0z.s[2]++; return values.apply(this, [this.model, this.schema]); } else { + cov_1r7rt9or0z.b[0][1]++; + cov_1r7rt9or0z.s[3]++; return values; } }, customLabel: function customLabel() { - if (typeof this.fieldOptions.customLabel !== "undefined" && typeof this.fieldOptions.customLabel === "function") { + cov_1r7rt9or0z.f[1]++; + cov_1r7rt9or0z.s[4]++; + + if ((cov_1r7rt9or0z.b[2][0]++, typeof this.fieldOptions.customLabel !== "undefined") && (cov_1r7rt9or0z.b[2][1]++, typeof this.fieldOptions.customLabel === "function")) { + cov_1r7rt9or0z.b[1][0]++; + cov_1r7rt9or0z.s[5]++; return this.fieldOptions.customLabel; } else { + cov_1r7rt9or0z.b[1][1]++; + cov_1r7rt9or0z.s[6]++; // this will let the multiselect library use the default behavior if customLabel is not specified return undefined; } @@ -10064,43 +39800,72 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] updateSelected: function updateSelected(value /* , id*/ ) { + cov_1r7rt9or0z.f[2]++; + cov_1r7rt9or0z.s[7]++; this.value = value; }, addTag: function addTag(newTag, id) { - var onNewTag = this.fieldOptions.onNewTag; + cov_1r7rt9or0z.f[3]++; + var onNewTag = (cov_1r7rt9or0z.s[8]++, this.fieldOptions.onNewTag); + cov_1r7rt9or0z.s[9]++; if (typeof onNewTag == "function") { + cov_1r7rt9or0z.b[3][0]++; + cov_1r7rt9or0z.s[10]++; onNewTag(newTag, id, this.options, this.value); + } else { + cov_1r7rt9or0z.b[3][1]++; } }, onSearchChange: function onSearchChange(searchQuery, id) { - var onSearch = this.fieldOptions.onSearch; + cov_1r7rt9or0z.f[4]++; + var onSearch = (cov_1r7rt9or0z.s[11]++, this.fieldOptions.onSearch); + cov_1r7rt9or0z.s[12]++; if (typeof onSearch == "function") { + cov_1r7rt9or0z.b[4][0]++; + cov_1r7rt9or0z.s[13]++; onSearch(searchQuery, id, this.options); + } else { + cov_1r7rt9or0z.b[4][1]++; } }, onSelect: function onSelect() /* selectedOption, id */ {// console.log("onSelect", selectedOption, id); + + cov_1r7rt9or0z.f[5]++; }, onRemove: function onRemove() /* removedOption, id */ {// console.log("onRemove", removedOption, id); + + cov_1r7rt9or0z.f[6]++; }, onOpen: function onOpen() /* id */ {// console.log("onOpen", id); + + cov_1r7rt9or0z.f[7]++; }, onClose: function onClose() /* value, id */ {// console.log("onClose", value, id); + + cov_1r7rt9or0z.f[8]++; } }, created: function created() { + cov_1r7rt9or0z.f[9]++; + cov_1r7rt9or0z.s[14]++; + // Check if the component is loaded globally if (!this.$root.$options.components["multiselect"]) { + cov_1r7rt9or0z.b[5][0]++; + cov_1r7rt9or0z.s[15]++; console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!"); + } else { + cov_1r7rt9or0z.b[5][1]++; } } }); @@ -10128,6 +39893,32 @@ var fieldVueMultiSelect_component = normalizeComponent( fieldVueMultiSelect_component.options.__file = "fieldVueMultiSelect.vue" /* harmony default export */ var fieldVueMultiSelect = (fieldVueMultiSelect_component.exports); // CONCATENATED MODULE: ./src/utils/fieldsLoader.js +var cov_11g8keknmi = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js", + hash = "88560dabaa255429bfab61ec1d0061b53e2f9fac", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // core @@ -10226,26 +40017,37 @@ module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u20 /***/ }), /***/ "ffd6": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; /** - * This method returns `false`. + * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false */ -function stubFalse() { - return false; +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); } -module.exports = stubFalse; +module.exports = isSymbol; /***/ }) diff --git a/dist/vfg.umd.js b/dist/vfg.umd.js index 1d04b0b2..96b186de 100644 --- a/dist/vfg.umd.js +++ b/dist/vfg.umd.js @@ -1,6 +1,6 @@ /** - * vue-form-generator 3.0.0-beta.5 + * vue-form-generator 3.0.0-beta.7 * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ @@ -103,6 +103,59 @@ return /******/ (function(modules) { // webpackBootstrap /************************************************************************/ /******/ ({ +/***/ "00fd": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("9e69"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag), + tag = value[symToStringTag]; + + try { + value[symToStringTag] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag] = tag; + } else { + delete value[symToStringTag]; + } + } + return result; +} + +module.exports = getRawTag; + + +/***/ }), + /***/ "01f9": /***/ (function(module, exports, __webpack_require__) { @@ -183,12 +236,36 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ "03dd": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var isPrototype = __webpack_require__("eac5"), + nativeKeys = __webpack_require__("57a5"); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +/** Used for built-in method references. */ +var objectProto = Object.prototype; -module.exports = nativeKeys; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +module.exports = baseKeys; /***/ }), @@ -229,22 +306,100 @@ module.exports = cloneDeep; /***/ }), -/***/ "0b07": +/***/ "07c7": /***/ (function(module, exports) { /** - * Gets the value at `key` of `object`. + * 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; + + +/***/ }), + +/***/ "087d": +/***/ (function(module, exports) { + +/** + * Appends the elements of `values` to `array`. * * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. */ -function getValue(object, key) { - return object == null ? undefined : object[key]; +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; } -module.exports = getValue; +module.exports = arrayPush; + + +/***/ }), + +/***/ "08cc": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"); + +/** + * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` if suitable for strict + * equality comparisons, else `false`. + */ +function isStrictComparable(value) { + return value === value && !isObject(value); +} + +module.exports = isStrictComparable; + + +/***/ }), + +/***/ "0b07": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsNative = __webpack_require__("34ac"), + getValue = __webpack_require__("3698"); + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +module.exports = getNative; /***/ }), @@ -271,27 +426,48 @@ module.exports = function () { /***/ }), /***/ "0d24": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__("2b3e"), + stubFalse = __webpack_require__("07c7"); + +/** 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; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** - * This method returns `false`. + * Checks if `value` is a buffer. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false */ -function stubFalse() { - return false; -} +var isBuffer = nativeIsBuffer || stubFalse; -module.exports = stubFalse; +module.exports = isBuffer; +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) /***/ }), @@ -443,6 +619,49 @@ exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescript }; +/***/ }), + +/***/ "1290": +/***/ (function(module, exports) { + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +module.exports = isKeyable; + + +/***/ }), + +/***/ "1304": +/***/ (function(module, exports, __webpack_require__) { + +var identity = __webpack_require__("cd9d"); + +/** + * Casts `value` to `identity` if it's not a function. + * + * @private + * @param {*} value The value to inspect. + * @returns {Function} Returns cast function. + */ +function castFunction(value) { + return typeof value == 'function' ? value : identity; +} + +module.exports = castFunction; + + /***/ }), /***/ "1310": @@ -479,6 +698,33 @@ function isObjectLike(value) { module.exports = isObjectLike; +/***/ }), + +/***/ "1368": +/***/ (function(module, exports, __webpack_require__) { + +var coreJsData = __webpack_require__("da03"); + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +module.exports = isMasked; + + /***/ }), /***/ "13ea": @@ -644,6 +890,46 @@ function baseSet(object, path, value, customizer) { module.exports = baseSet; +/***/ }), + +/***/ "1838": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsEqual = __webpack_require__("c05f"), + get = __webpack_require__("9b02"), + hasIn = __webpack_require__("8604"), + isKey = __webpack_require__("f608"), + isStrictComparable = __webpack_require__("08cc"), + matchesStrictComparable = __webpack_require__("20ec"), + toKey = __webpack_require__("f4d6"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. + * + * @private + * @param {string} path The path of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatchesProperty(path, srcValue) { + if (isKey(path) && isStrictComparable(srcValue)) { + return matchesStrictComparable(toKey(path), srcValue); + } + return function(object) { + var objValue = get(object, path); + return (objValue === undefined && objValue === srcValue) + ? hasIn(object, path) + : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); + }; +} + +module.exports = baseMatchesProperty; + + /***/ }), /***/ "1958": @@ -746,6 +1032,31 @@ module.exports = { }; +/***/ }), + +/***/ "1a2d": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("42a2"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]'; + +/** + * The base implementation of `_.isMap` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. + */ +function baseIsMap(value) { + return isObjectLike(value) && getTag(value) == mapTag; +} + +module.exports = baseIsMap; + + /***/ }), /***/ "1a8c": @@ -787,37 +1098,191 @@ module.exports = isObject; /***/ }), /***/ "1bac": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseGetAllKeys = __webpack_require__("7d1f"), + getSymbolsIn = __webpack_require__("a029"), + keysIn = __webpack_require__("9934"); /** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. + * Creates an array of own and inherited enumerable property names and + * symbols of `object`. * * @private * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. + * @returns {Array} Returns the array of property names and symbols. */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; +function getAllKeysIn(object) { + return baseGetAllKeys(object, keysIn, getSymbolsIn); } -module.exports = nativeKeysIn; +module.exports = getAllKeysIn; /***/ }), -/***/ "1fa8": +/***/ "1c3c": /***/ (function(module, exports, __webpack_require__) { -// call something on iterator step with safe closing on error -var anObject = __webpack_require__("cb7c"); +var Symbol = __webpack_require__("9e69"), + Uint8Array = __webpack_require__("2474"), + eq = __webpack_require__("9638"), + equalArrays = __webpack_require__("a2be"), + mapToArray = __webpack_require__("edfa"), + setToArray = __webpack_require__("ac41"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +var arrayBufferTag = '[object ArrayBuffer]', + dataViewTag = '[object DataView]'; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * A specialized version of `baseIsEqualDeep` for comparing objects of + * the same `toStringTag`. + * + * **Note:** This function only supports comparing values with tags of + * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {string} tag The `toStringTag` of the objects to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { + switch (tag) { + case dataViewTag: + if ((object.byteLength != other.byteLength) || + (object.byteOffset != other.byteOffset)) { + return false; + } + object = object.buffer; + other = other.buffer; + + case arrayBufferTag: + if ((object.byteLength != other.byteLength) || + !equalFunc(new Uint8Array(object), new Uint8Array(other))) { + return false; + } + return true; + + case boolTag: + case dateTag: + case numberTag: + // Coerce booleans to `1` or `0` and dates to milliseconds. + // Invalid dates are coerced to `NaN`. + return eq(+object, +other); + + case errorTag: + return object.name == other.name && object.message == other.message; + + case regexpTag: + case stringTag: + // Coerce regexes to strings and treat strings, primitives and objects, + // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring + // for more details. + return object == (other + ''); + + case mapTag: + var convert = mapToArray; + + case setTag: + var isPartial = bitmask & COMPARE_PARTIAL_FLAG; + convert || (convert = setToArray); + + if (object.size != other.size && !isPartial) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked) { + return stacked == other; + } + bitmask |= COMPARE_UNORDERED_FLAG; + + // Recursively compare objects (susceptible to call stack limits). + stack.set(object, other); + var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); + stack['delete'](object); + return result; + + case symbolTag: + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } + } + return false; +} + +module.exports = equalByTag; + + +/***/ }), + +/***/ "1cec": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Promise = getNative(root, 'Promise'); + +module.exports = Promise; + + +/***/ }), + +/***/ "1efc": +/***/ (function(module, exports) { + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; +} + +module.exports = hashDelete; + + +/***/ }), + +/***/ "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); @@ -830,6 +1295,62 @@ module.exports = function (iterator, fn, value, entries) { }; +/***/ }), + +/***/ "1fc8": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; + + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; +} + +module.exports = mapCacheSet; + + +/***/ }), + +/***/ "20ec": +/***/ (function(module, exports) { + +/** + * A specialized version of `matchesProperty` for source values suitable + * for strict equality comparisons, i.e. `===`. + * + * @private + * @param {string} key The key of the property to get. + * @param {*} srcValue The value to match. + * @returns {Function} Returns the new spec function. + */ +function matchesStrictComparable(key, srcValue) { + return function(object) { + if (object == null) { + return false; + } + return object[key] === srcValue && + (srcValue !== undefined || (key in Object(object))); + }; +} + +module.exports = matchesStrictComparable; + + /***/ }), /***/ "2149": @@ -964,6 +1485,120 @@ module.exports = function (it) { }; +/***/ }), + +/***/ "242e": +/***/ (function(module, exports, __webpack_require__) { + +var baseFor = __webpack_require__("72af"), + keys = __webpack_require__("ec69"); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +module.exports = baseForOwn; + + +/***/ }), + +/***/ "2474": +/***/ (function(module, exports, __webpack_require__) { + +var root = __webpack_require__("2b3e"); + +/** Built-in value references. */ +var Uint8Array = root.Uint8Array; + +module.exports = Uint8Array; + + +/***/ }), + +/***/ "2478": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +module.exports = mapCacheGet; + + +/***/ }), + +/***/ "2524": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +module.exports = hashSet; + + +/***/ }), + +/***/ "253c": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +module.exports = baseIsArguments; + + /***/ }), /***/ "260c": @@ -1165,6 +1800,35 @@ function listCacheClear() { module.exports = listCacheClear; +/***/ }), + +/***/ "29f3": +/***/ (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; + + /***/ }), /***/ "2aba": @@ -1342,6 +2006,38 @@ module.exports = false; /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_fieldImage_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); +/***/ }), + +/***/ "2d7c": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.filter` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {Array} Returns the new filtered array. + */ +function arrayFilter(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length, + resIndex = 0, + result = []; + + while (++index < length) { + var value = array[index]; + if (predicate(value, index, array)) { + result[resIndex++] = value; + } + } + return result; +} + +module.exports = arrayFilter; + + /***/ }), /***/ "2d95": @@ -1376,24 +2072,49 @@ module.exports = getPrototype; /***/ }), -/***/ "30c9": -/***/ (function(module, exports, __webpack_require__) { - -var isFunction = __webpack_require__("9520"), - isLength = __webpack_require__("b218"); +/***/ "2fcc": +/***/ (function(module, exports) { /** - * 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 + * Removes `key` and its value from the stack. + * + * @private + * @name delete + * @memberOf Stack + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); + + this.size = data.size; + return result; +} + +module.exports = stackDelete; + + +/***/ }), + +/***/ "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 @@ -1490,31 +2211,38 @@ module.exports = __webpack_require__("9e1e") ? function (object, key, value) { /***/ }), /***/ "32f4": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayFilter = __webpack_require__("2d7c"), + stubArray = __webpack_require__("d327"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; /** - * 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); - * // => [[], []] + * Creates an array of the own enumerable symbols of `object`. * - * console.log(arrays[0] === arrays[1]); - * // => false + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. */ -function stubArray() { - return []; -} +var getSymbols = !nativeGetSymbols ? stubArray : function(object) { + if (object == null) { + return []; + } + object = Object(object); + return arrayFilter(nativeGetSymbols(object), function(symbol) { + return propertyIsEnumerable.call(object, symbol); + }); +}; -module.exports = stubArray; +module.exports = getSymbols; /***/ }), @@ -1534,31 +2262,111 @@ module.exports = function (it) { /***/ }), -/***/ "3729": -/***/ (function(module, exports) { +/***/ "34ac": +/***/ (function(module, exports, __webpack_require__) { + +var isFunction = __webpack_require__("9520"), + isMasked = __webpack_require__("1368"), + isObject = __webpack_require__("1a8c"), + toSource = __webpack_require__("dc57"); + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ -var objectProto = Object.prototype; +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. */ -var nativeObjectToString = objectProto.toString; +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +module.exports = baseIsNative; + + +/***/ }), + +/***/ "3698": +/***/ (function(module, exports) { /** - * Converts `value` to a string using `Object.prototype.toString`. + * Gets the value at `key` of `object`. * * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. */ -function objectToString(value) { - return nativeObjectToString.call(value); +function getValue(object, key) { + return object == null ? undefined : object[key]; } -module.exports = objectToString; +module.exports = getValue; + + +/***/ }), + +/***/ "3729": +/***/ (function(module, exports, __webpack_require__) { + +var Symbol = __webpack_require__("9e69"), + getRawTag = __webpack_require__("00fd"), + objectToString = __webpack_require__("29f3"); + +/** `Object#toString` result references. */ +var nullTag = '[object Null]', + undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol ? Symbol.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +module.exports = baseGetTag; /***/ }), @@ -1771,6 +2579,20 @@ module.exports = Object.getPrototypeOf || function (O) { }; +/***/ }), + +/***/ "39ff": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var WeakMap = getNative(root, 'WeakMap'); + +module.exports = WeakMap; + + /***/ }), /***/ "3b2b": @@ -1839,6 +2661,37 @@ var defineProperty = (function() { module.exports = defineProperty; +/***/ }), + +/***/ "3bb4": +/***/ (function(module, exports, __webpack_require__) { + +var isStrictComparable = __webpack_require__("08cc"), + keys = __webpack_require__("ec69"); + +/** + * Gets the property names, values, and compare flags of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the match data of `object`. + */ +function getMatchData(object) { + var result = keys(object), + length = result.length; + + while (length--) { + var key = result[length], + value = object[key]; + + result[length] = [key, value, isStrictComparable(value)]; + } + return result; +} + +module.exports = getMatchData; + + /***/ }), /***/ "3f6b": @@ -1903,31 +2756,162 @@ module.exports = function (Constructor, NAME, next) { /***/ }), -/***/ "42a2": -/***/ (function(module, exports) { +/***/ "41c3": +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__("1a8c"), + isPrototype = __webpack_require__("eac5"), + nativeKeysIn = __webpack_require__("ec8c"); /** Used for built-in method references. */ var objectProto = Object.prototype; +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + /** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. */ -var nativeObjectToString = objectProto.toString; +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +module.exports = baseKeysIn; + + +/***/ }), + +/***/ "4245": +/***/ (function(module, exports, __webpack_require__) { + +var isKeyable = __webpack_require__("1290"); /** - * Converts `value` to a string using `Object.prototype.toString`. + * Gets the data for `map`. * * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. */ -function objectToString(value) { - return nativeObjectToString.call(value); +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -module.exports = objectToString; +module.exports = getMapData; + + +/***/ }), + +/***/ "4284": +/***/ (function(module, exports) { + +/** + * A specialized version of `_.some` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} predicate The function invoked per iteration. + * @returns {boolean} Returns `true` if any element passes the predicate check, + * else `false`. + */ +function arraySome(array, predicate) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (predicate(array[index], index, array)) { + return true; + } + } + return false; +} + +module.exports = arraySome; + + +/***/ }), + +/***/ "42a2": +/***/ (function(module, exports, __webpack_require__) { + +var DataView = __webpack_require__("b5a7"), + Map = __webpack_require__("79bc"), + Promise = __webpack_require__("1cec"), + Set = __webpack_require__("c869"), + WeakMap = __webpack_require__("39ff"), + baseGetTag = __webpack_require__("3729"), + toSource = __webpack_require__("dc57"); + +/** `Object#toString` result references. */ +var mapTag = '[object Map]', + objectTag = '[object Object]', + promiseTag = '[object Promise]', + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; + +var dataViewTag = '[object DataView]'; + +/** Used to detect maps, sets, and weakmaps. */ +var dataViewCtorString = toSource(DataView), + mapCtorString = toSource(Map), + promiseCtorString = toSource(Promise), + setCtorString = toSource(Set), + weakMapCtorString = toSource(WeakMap); + +/** + * Gets the `toStringTag` of `value`. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +var getTag = baseGetTag; + +// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. +if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || + (Map && getTag(new Map) != mapTag) || + (Promise && getTag(Promise.resolve()) != promiseTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { + getTag = function(value) { + var result = baseGetTag(value), + Ctor = result == objectTag ? value.constructor : undefined, + ctorString = Ctor ? toSource(Ctor) : ''; + + if (ctorString) { + switch (ctorString) { + case dataViewCtorString: return dataViewTag; + case mapCtorString: return mapTag; + case promiseCtorString: return promiseTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; + } + } + return result; + }; +} + +module.exports = getTag; /***/ }), @@ -2003,14 +2987,57 @@ module.exports = function (bitmap, value) { /***/ }), -/***/ "4a59": +/***/ "48a0": /***/ (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 baseForOwn = __webpack_require__("242e"), + createBaseEach = __webpack_require__("950a"); + +/** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ +var baseEach = createBaseEach(baseForOwn); + +module.exports = baseEach; + + +/***/ }), + +/***/ "49f4": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; +} + +module.exports = hashClear; + + +/***/ }), + +/***/ "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 = {}; @@ -2133,6 +3160,33 @@ function isNumber(value) { module.exports = isNumber; +/***/ }), + +/***/ "50d8": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +module.exports = baseTimes; + + /***/ }), /***/ "51f5": @@ -2539,6 +3593,27 @@ var store = global[SHARED] || (global[SHARED] = {}); }); +/***/ }), + +/***/ "55a3": +/***/ (function(module, exports) { + +/** + * Checks if a stack value for `key` exists. + * + * @private + * @name has + * @memberOf Stack + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function stackHas(key) { + return this.__data__.has(key); +} + +module.exports = stackHas; + + /***/ }), /***/ "574e": @@ -2546,6 +3621,19 @@ var store = global[SHARED] || (global[SHARED] = {}); // extracted by mini-css-extract-plugin +/***/ }), + +/***/ "57a5": +/***/ (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; + + /***/ }), /***/ "585a": @@ -2693,6 +3781,29 @@ module.exports = function (exec, skipClosing) { }; +/***/ }), + +/***/ "5d89": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("f8af"); + +/** + * Creates a clone of `dataView`. + * + * @private + * @param {Object} dataView The data view to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned data view. + */ +function cloneDataView(dataView, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; + return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); +} + +module.exports = cloneDataView; + + /***/ }), /***/ "5dbc": @@ -2709,6 +3820,45 @@ module.exports = function (that, target, C) { }; +/***/ }), + +/***/ "5e2e": +/***/ (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; + + /***/ }), /***/ "5eda": @@ -2744,6 +3894,19 @@ module.exports = function (KEY, exec) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "6044": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"); + +/* Built-in method references that are verified to be native. */ +var nativeCreate = getNative(Object, 'create'); + +module.exports = nativeCreate; + + /***/ }), /***/ "613b": @@ -2854,6 +4017,35 @@ function toFinite(value) { module.exports = toFinite; +/***/ }), + +/***/ "642a": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMatch = __webpack_require__("966f"), + getMatchData = __webpack_require__("3bb4"), + matchesStrictComparable = __webpack_require__("20ec"); + +/** + * The base implementation of `_.matches` which doesn't clone `source`. + * + * @private + * @param {Object} source The object of property values to match. + * @returns {Function} Returns the new spec function. + */ +function baseMatches(source) { + var matchData = getMatchData(source); + if (matchData.length == 1 && matchData[0][2]) { + return matchesStrictComparable(matchData[0][0], matchData[0][1]); + } + return function(object) { + return object === source || baseIsMatch(object, source, matchData); + }; +} + +module.exports = baseMatches; + + /***/ }), /***/ "656b": @@ -3121,88 +4313,319 @@ if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a /***/ }), /***/ "6cd4": +/***/ (function(module, exports, __webpack_require__) { + +var arrayEach = __webpack_require__("8057"), + baseEach = __webpack_require__("48a0"), + castFunction = __webpack_require__("1304"), + isArray = __webpack_require__("6747"); + +/** + * Iterates over elements of `collection` and invokes `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * **Note:** As with other "Collections" methods, objects with a "length" + * property are iterated like arrays. To avoid this behavior use `_.forIn` + * or `_.forOwn` for object iteration. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @see _.forEachRight + * @example + * + * _.forEach([1, 2], function(value) { + * console.log(value); + * }); + * // => Logs `1` then `2`. + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => Logs 'a' then 'b' (iteration order is not guaranteed). + */ +function forEach(collection, iteratee) { + var func = isArray(collection) ? arrayEach : baseEach; + return func(collection, castFunction(iteratee)); +} + +module.exports = forEach; + + +/***/ }), + +/***/ "6f6c": /***/ (function(module, exports) { +/** Used to match `RegExp` flags from their coerced string values. */ +var reFlags = /\w*$/; + /** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. + * Creates a clone of `regexp`. * * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. + * @param {Object} regexp The regexp to clone. + * @returns {Object} Returns the cloned regexp. */ -function arrayEach(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length; +function cloneRegExp(regexp) { + var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); + result.lastIndex = regexp.lastIndex; + return result; +} - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; +module.exports = cloneRegExp; + + +/***/ }), + +/***/ "6fcd": +/***/ (function(module, exports, __webpack_require__) { + +var baseTimes = __webpack_require__("50d8"), + isArguments = __webpack_require__("d370"), + isArray = __webpack_require__("6747"), + isBuffer = __webpack_require__("0d24"), + isIndex = __webpack_require__("c098"), + isTypedArray = __webpack_require__("73ac"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); } } - return array; + return result; } -module.exports = arrayEach; +module.exports = arrayLikeKeys; /***/ }), -/***/ "7375": +/***/ "72af": /***/ (function(module, exports, __webpack_require__) { -// extracted by mini-css-extract-plugin +var createBaseFor = __webpack_require__("99cd"); + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +module.exports = baseFor; + /***/ }), -/***/ "73ac": +/***/ "72f0": /***/ (function(module, exports) { /** - * This method returns `false`. + * Creates a function that returns `value`. * * @static * @memberOf _ - * @since 4.13.0 + * @since 2.4.0 * @category Util - * @returns {boolean} Returns `false`. + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true */ -function stubFalse() { - return false; +function constant(value) { + return function() { + return value; + }; } -module.exports = stubFalse; +module.exports = constant; /***/ }), -/***/ "74d5": +/***/ "7375": /***/ (function(module, exports, __webpack_require__) { // extracted by mini-css-extract-plugin /***/ }), -/***/ "7530": +/***/ "73ac": /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__("1a8c"); +var baseIsTypedArray = __webpack_require__("743f"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); -/** Built-in value references. */ -var objectCreate = Object.create; +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** - * The base implementation of `_.create` without support for assigning - * properties to the created object. + * Checks if `value` is classified as a typed array. * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +module.exports = isTypedArray; + + +/***/ }), + +/***/ "743f": +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isLength = __webpack_require__("b218"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + boolTag = '[object Boolean]', + dateTag = '[object Date]', + errorTag = '[object Error]', + funcTag = '[object Function]', + mapTag = '[object Map]', + numberTag = '[object Number]', + objectTag = '[object Object]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + 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 of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +module.exports = baseIsTypedArray; + + +/***/ }), + +/***/ "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() {} @@ -3327,6 +4750,20 @@ function arrayMap(array, iteratee) { module.exports = arrayMap; +/***/ }), + +/***/ "79bc": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'); + +module.exports = Map; + + /***/ }), /***/ "79e5": @@ -3341,6 +4778,36 @@ module.exports = function (exec) { }; +/***/ }), + +/***/ "7a48": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); +} + +module.exports = hashHas; + + /***/ }), /***/ "7a56": @@ -3364,23 +4831,23 @@ module.exports = function (KEY) { /***/ }), -/***/ "7e64": +/***/ "7b83": /***/ (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"); +var mapCacheClear = __webpack_require__("7c64"), + mapCacheDelete = __webpack_require__("93ed"), + mapCacheGet = __webpack_require__("2478"), + mapCacheHas = __webpack_require__("a524"), + mapCacheSet = __webpack_require__("1fc8"); /** - * Creates an list cache object. + * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ -function ListCache(entries) { +function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; @@ -3391,14 +4858,219 @@ function ListCache(entries) { } } -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; -module.exports = ListCache; +module.exports = MapCache; + + +/***/ }), + +/***/ "7b97": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("7e64"), + equalArrays = __webpack_require__("a2be"), + equalByTag = __webpack_require__("1c3c"), + equalObjects = __webpack_require__("b1e5"), + getTag = __webpack_require__("42a2"), + isArray = __webpack_require__("6747"), + isBuffer = __webpack_require__("0d24"), + isTypedArray = __webpack_require__("73ac"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + arrayTag = '[object Array]', + objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqual` for arrays and objects which performs + * deep comparisons and tracks traversed objects enabling objects with circular + * references to be compared. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} [stack] Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { + var objIsArr = isArray(object), + othIsArr = isArray(other), + objTag = objIsArr ? arrayTag : getTag(object), + othTag = othIsArr ? arrayTag : getTag(other); + + objTag = objTag == argsTag ? objectTag : objTag; + othTag = othTag == argsTag ? objectTag : othTag; + + var objIsObj = objTag == objectTag, + othIsObj = othTag == objectTag, + isSameTag = objTag == othTag; + + if (isSameTag && isBuffer(object)) { + if (!isBuffer(other)) { + return false; + } + objIsArr = true; + objIsObj = false; + } + if (isSameTag && !objIsObj) { + stack || (stack = new Stack); + return (objIsArr || isTypedArray(object)) + ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) + : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); + } + if (!(bitmask & COMPARE_PARTIAL_FLAG)) { + var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), + othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); + + if (objIsWrapped || othIsWrapped) { + var objUnwrapped = objIsWrapped ? object.value() : object, + othUnwrapped = othIsWrapped ? other.value() : other; + + stack || (stack = new Stack); + return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); + } + } + if (!isSameTag) { + return false; + } + stack || (stack = new Stack); + return equalObjects(object, other, bitmask, customizer, equalFunc, stack); +} + +module.exports = baseIsEqualDeep; + + +/***/ }), + +/***/ "7c64": +/***/ (function(module, exports, __webpack_require__) { + +var Hash = __webpack_require__("e24b"), + ListCache = __webpack_require__("5e2e"), + Map = __webpack_require__("79bc"); + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +module.exports = mapCacheClear; + + +/***/ }), + +/***/ "7d1f": +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("087d"), + isArray = __webpack_require__("6747"); + +/** + * The base implementation of `getAllKeys` and `getAllKeysIn` which uses + * `keysFunc` and `symbolsFunc` to get the enumerable property names and + * symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {Function} keysFunc The function to get the keys of `object`. + * @param {Function} symbolsFunc The function to get the symbols of `object`. + * @returns {Array} Returns the array of property names and symbols. + */ +function baseGetAllKeys(object, keysFunc, symbolsFunc) { + var result = keysFunc(object); + return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); +} + +module.exports = baseGetAllKeys; + + +/***/ }), + +/***/ "7e64": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"), + stackClear = __webpack_require__("efb6"), + stackDelete = __webpack_require__("2fcc"), + stackGet = __webpack_require__("802a"), + stackHas = __webpack_require__("55a3"), + stackSet = __webpack_require__("d02c"); + +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} + +// Add methods to `Stack`. +Stack.prototype.clear = stackClear; +Stack.prototype['delete'] = stackDelete; +Stack.prototype.get = stackGet; +Stack.prototype.has = stackHas; +Stack.prototype.set = stackSet; + +module.exports = Stack; + + +/***/ }), + +/***/ "7ed2": +/***/ (function(module, exports) { + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +module.exports = setCacheAdd; /***/ }), @@ -3438,6 +5110,27 @@ NAME in FProto || __webpack_require__("9e1e") && dP(FProto, NAME, { }); +/***/ }), + +/***/ "802a": +/***/ (function(module, exports) { + +/** + * Gets the stack value for `key`. + * + * @private + * @name get + * @memberOf Stack + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function stackGet(key) { + return this.__data__.get(key); +} + +module.exports = stackGet; + + /***/ }), /***/ "8057": @@ -3590,17 +5283,37 @@ module.exports = apply; /***/ }), -/***/ "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; +/***/ "8604": +/***/ (function(module, exports) { -exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); +/** + * The base implementation of `_.hasIn` without support for deep paths. + * + * @private + * @param {Object} [object] The object to query. + * @param {Array|string} key The key to check. + * @returns {boolean} Returns `true` if `key` exists, else `false`. + */ +function baseHasIn(object, key) { + return object != null && key in Object(object); +} + +module.exports = baseHasIn; + + +/***/ }), + +/***/ "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); @@ -3776,6 +5489,70 @@ function overArg(func, transform) { module.exports = overArg; +/***/ }), + +/***/ "93ed": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; +} + +module.exports = mapCacheDelete; + + +/***/ }), + +/***/ "950a": +/***/ (function(module, exports, __webpack_require__) { + +var isArrayLike = __webpack_require__("30c9"); + +/** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; +} + +module.exports = createBaseEach; + + /***/ }), /***/ "9520": @@ -3935,6 +5712,75 @@ function eq(value, other) { module.exports = eq; +/***/ }), + +/***/ "966f": +/***/ (function(module, exports, __webpack_require__) { + +var Stack = __webpack_require__("7e64"), + baseIsEqual = __webpack_require__("c05f"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * The base implementation of `_.isMatch` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to inspect. + * @param {Object} source The object of property values to match. + * @param {Array} matchData The property names, values, and compare flags to match. + * @param {Function} [customizer] The function to customize comparisons. + * @returns {boolean} Returns `true` if `object` is a match, else `false`. + */ +function baseIsMatch(object, source, matchData, customizer) { + var index = matchData.length, + length = index, + noCustomizer = !customizer; + + if (object == null) { + return !length; + } + object = Object(object); + while (index--) { + var data = matchData[index]; + if ((noCustomizer && data[2]) + ? data[1] !== object[data[0]] + : !(data[0] in object) + ) { + return false; + } + } + while (++index < length) { + data = matchData[index]; + var key = data[0], + objValue = object[key], + srcValue = data[1]; + + if (noCustomizer && data[2]) { + if (objValue === undefined && !(key in object)) { + return false; + } + } else { + var stack = new Stack; + if (customizer) { + var result = customizer(objValue, srcValue, key, object, source, stack); + } + if (!(result === undefined + ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) + : result + )) { + return false; + } + } + } + return true; +} + +module.exports = baseIsMatch; + + /***/ }), /***/ "98dc": @@ -3973,53 +5819,147 @@ module.exports = uniqueId; /***/ }), /***/ "9934": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayLikeKeys = __webpack_require__("6fcd"), + baseKeysIn = __webpack_require__("41c3"), + isArrayLike = __webpack_require__("30c9"); /** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. + * Creates an array of the own and inherited enumerable property names of `object`. * - * @private + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); } -module.exports = nativeKeysIn; +module.exports = keysIn; /***/ }), -/***/ "9aff": +/***/ "99cd": /***/ (function(module, exports) { /** - * This method returns `false`. + * Creates a base function for methods like `_.forIn` and `_.forOwn`. * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +module.exports = createBaseFor; + + +/***/ }), + +/***/ "99d3": +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__("585a"); + +/** 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; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule && freeModule.require && freeModule.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +module.exports = nodeUtil; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("62e4")(module))) + +/***/ }), + +/***/ "9aff": +/***/ (function(module, exports, __webpack_require__) { + +var eq = __webpack_require__("9638"), + isArrayLike = __webpack_require__("30c9"), + isIndex = __webpack_require__("c098"), + isObject = __webpack_require__("1a8c"); + +/** + * Checks if the given arguments are from an iteratee call. * - * _.times(2, _.stubFalse); - * // => [false, false] + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. */ -function stubFalse() { +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } return false; } -module.exports = stubFalse; +module.exports = isIterateeCall; /***/ }), @@ -4504,31 +6444,33 @@ var __WEBPACK_AMD_DEFINE_RESULT__;(function (main) { /***/ }), /***/ "a029": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var arrayPush = __webpack_require__("087d"), + getPrototype = __webpack_require__("2dcb"), + getSymbols = __webpack_require__("32f4"), + stubArray = __webpack_require__("d327"); + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeGetSymbols = Object.getOwnPropertySymbols; /** - * 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); - * // => [[], []] + * Creates an array of the own and inherited enumerable symbols of `object`. * - * console.log(arrays[0] === arrays[1]); - * // => false + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of symbols. */ -function stubArray() { - return []; -} +var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { + var result = []; + while (object) { + arrayPush(result, getSymbols(object)); + object = getPrototype(object); + } + return result; +}; -module.exports = stubArray; +module.exports = getSymbolsIn; /***/ }), @@ -4544,32 +6486,199 @@ module.exports = navigator && navigator.userAgent || ''; /***/ }), -/***/ "a481": +/***/ "a2be": /***/ (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]; -}); +var SetCache = __webpack_require__("d612"), + arraySome = __webpack_require__("4284"), + cacheHas = __webpack_require__("c584"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1, + COMPARE_UNORDERED_FLAG = 2; + +/** + * A specialized version of `baseIsEqualDeep` for arrays with support for + * partial deep comparisons. + * + * @private + * @param {Array} array The array to compare. + * @param {Array} other The other array to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `array` and `other` objects. + * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. + */ +function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + arrLength = array.length, + othLength = other.length; + + if (arrLength != othLength && !(isPartial && othLength > arrLength)) { + return false; + } + // Assume cyclic values are equal. + var stacked = stack.get(array); + if (stacked && stack.get(other)) { + return stacked == other; + } + var index = -1, + result = true, + seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; + + stack.set(array, other); + stack.set(other, array); + + // Ignore non-index properties. + while (++index < arrLength) { + var arrValue = array[index], + othValue = other[index]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, arrValue, index, other, array, stack) + : customizer(arrValue, othValue, index, array, other, stack); + } + if (compared !== undefined) { + if (compared) { + continue; + } + result = false; + break; + } + // Recursively compare arrays (susceptible to call stack limits). + if (seen) { + if (!arraySome(other, function(othValue, othIndex) { + if (!cacheHas(seen, othIndex) && + (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { + return seen.push(othIndex); + } + })) { + result = false; + break; + } + } else if (!( + arrValue === othValue || + equalFunc(arrValue, othValue, bitmask, customizer, stack) + )) { + result = false; + break; + } + } + stack['delete'](array); + stack['delete'](other); + return result; +} + +module.exports = equalArrays; /***/ }), -/***/ "a5b8": +/***/ "a2db": /***/ (function(module, exports, __webpack_require__) { -"use strict"; +var Symbol = __webpack_require__("9e69"); -// 25.4.1.5 NewPromiseCapability(C) -var aFunction = __webpack_require__("d8e8"); +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; + +/** + * Creates a clone of the `symbol` object. + * + * @private + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. + */ +function cloneSymbol(symbol) { + return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; +} + +module.exports = cloneSymbol; + + +/***/ }), + +/***/ "a454": +/***/ (function(module, exports, __webpack_require__) { + +var constant = __webpack_require__("72f0"), + defineProperty = __webpack_require__("3b4a"), + identity = __webpack_require__("cd9d"); + +/** + * The base implementation of `setToString` without support for hot loop shorting. + * + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. + */ +var baseSetToString = !defineProperty ? identity : function(func, string) { + return defineProperty(func, 'toString', { + 'configurable': true, + 'enumerable': false, + 'value': constant(string), + 'writable': true + }); +}; + +module.exports = baseSetToString; + + +/***/ }), + +/***/ "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]; +}); + + +/***/ }), + +/***/ "a524": +/***/ (function(module, exports, __webpack_require__) { + +var getMapData = __webpack_require__("4245"); + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +module.exports = mapCacheHas; + + +/***/ }), + +/***/ "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; @@ -4592,12 +6701,22 @@ module.exports.f = function (C) { /***/ "a994": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var baseGetAllKeys = __webpack_require__("7d1f"), + getSymbols = __webpack_require__("32f4"), + keys = __webpack_require__("ec69"); -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +/** + * Creates an array of own enumerable property names and symbols of `object`. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names and symbols. + */ +function getAllKeys(object) { + return baseGetAllKeys(object, keys, getSymbols); +} -module.exports = nativeKeys; +module.exports = getAllKeys; /***/ }), @@ -4652,6 +6771,31 @@ module.exports = function (it) { }; +/***/ }), + +/***/ "ac41": +/***/ (function(module, exports) { + +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +module.exports = setToArray; + + /***/ }), /***/ "ac6a": @@ -4925,6 +7069,123 @@ function debounce(func, wait, options) { module.exports = debounce; +/***/ }), + +/***/ "b047f": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +module.exports = baseUnary; + + +/***/ }), + +/***/ "b1e5": +/***/ (function(module, exports, __webpack_require__) { + +var getAllKeys = __webpack_require__("a994"); + +/** Used to compose bitmasks for value comparisons. */ +var COMPARE_PARTIAL_FLAG = 1; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * A specialized version of `baseIsEqualDeep` for objects with support for + * partial deep comparisons. + * + * @private + * @param {Object} object The object to compare. + * @param {Object} other The other object to compare. + * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. + * @param {Function} customizer The function to customize comparisons. + * @param {Function} equalFunc The function to determine equivalents of values. + * @param {Object} stack Tracks traversed `object` and `other` objects. + * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. + */ +function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { + var isPartial = bitmask & COMPARE_PARTIAL_FLAG, + objProps = getAllKeys(object), + objLength = objProps.length, + othProps = getAllKeys(other), + othLength = othProps.length; + + if (objLength != othLength && !isPartial) { + return false; + } + var index = objLength; + while (index--) { + var key = objProps[index]; + if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { + return false; + } + } + // Assume cyclic values are equal. + var stacked = stack.get(object); + if (stacked && stack.get(other)) { + return stacked == other; + } + var result = true; + stack.set(object, other); + stack.set(other, object); + + var skipCtor = isPartial; + while (++index < objLength) { + key = objProps[index]; + var objValue = object[key], + othValue = other[key]; + + if (customizer) { + var compared = isPartial + ? customizer(othValue, objValue, key, other, object, stack) + : customizer(objValue, othValue, key, object, other, stack); + } + // Recursively compare objects (susceptible to call stack limits). + if (!(compared === undefined + ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) + : compared + )) { + result = false; + break; + } + skipCtor || (skipCtor = key == 'constructor'); + } + if (result && !skipCtor) { + var objCtor = object.constructor, + othCtor = other.constructor; + + // Non `Object` object instances with different constructors are not equal. + if (objCtor != othCtor && + ('constructor' in object && 'constructor' in other) && + !(typeof objCtor == 'function' && objCtor instanceof objCtor && + typeof othCtor == 'function' && othCtor instanceof othCtor)) { + result = false; + } + } + stack['delete'](object); + stack['delete'](other); + return result; +} + +module.exports = equalObjects; + + /***/ }), /***/ "b218": @@ -5066,6 +7327,20 @@ function listCacheGet(key) { module.exports = listCacheGet; +/***/ }), + +/***/ "b5a7": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var DataView = getNative(root, 'DataView'); + +module.exports = DataView; + + /***/ }), /***/ "b72b": @@ -5141,29 +7416,76 @@ module.exports = clone; /***/ }), /***/ "badf": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseMatches = __webpack_require__("642a"), + baseMatchesProperty = __webpack_require__("1838"), + identity = __webpack_require__("cd9d"), + isArray = __webpack_require__("6747"), + property = __webpack_require__("f9ce"); /** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example + * The base implementation of `_.iteratee`. * - * var object = { 'a': 1 }; + * @private + * @param {*} [value=_.identity] The value to convert to an iteratee. + * @returns {Function} Returns the iteratee. + */ +function baseIteratee(value) { + // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. + // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. + if (typeof value == 'function') { + return value; + } + if (value == null) { + return identity; + } + if (typeof value == 'object') { + return isArray(value) + ? baseMatchesProperty(value[0], value[1]) + : baseMatches(value); + } + return property(value); +} + +module.exports = baseIteratee; + + +/***/ }), + +/***/ "bbc0": +/***/ (function(module, exports, __webpack_require__) { + +var nativeCreate = __webpack_require__("6044"); + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Gets the hash value for `key`. * - * console.log(_.identity(object) === object); - * // => true + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. */ -function identity(value) { - return value; +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; } -module.exports = identity; +module.exports = hashGet; /***/ }), @@ -5219,6 +7541,41 @@ module.exports = function (it) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "c05f": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsEqualDeep = __webpack_require__("7b97"), + isObjectLike = __webpack_require__("1310"); + +/** + * The base implementation of `_.isEqual` which supports partial comparisons + * and tracks traversed objects. + * + * @private + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @param {boolean} bitmask The bitmask flags. + * 1 - Unordered comparison + * 2 - Partial comparison + * @param {Function} [customizer] The function to customize comparisons. + * @param {Object} [stack] Tracks traversed `value` and `other` objects. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + */ +function baseIsEqual(value, other, bitmask, customizer, stack) { + if (value === other) { + return true; + } + if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { + return value !== value && other !== other; + } + return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); +} + +module.exports = baseIsEqual; + + /***/ }), /***/ "c098": @@ -5254,57 +7611,106 @@ module.exports = isIndex; /***/ }), /***/ "c1c9": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseSetToString = __webpack_require__("a454"), + shortOut = __webpack_require__("f3c1"); /** - * 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 }; + * Sets the `toString` method of `func` to return `string`. * - * console.log(_.identity(object) === object); - * // => true + * @private + * @param {Function} func The function to modify. + * @param {Function} string The `toString` result. + * @returns {Function} Returns `func`. */ -function identity(value) { - return value; -} +var setToString = shortOut(baseSetToString); -module.exports = identity; +module.exports = setToString; /***/ }), /***/ "c2b6": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -/** - * 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 +var cloneArrayBuffer = __webpack_require__("f8af"), + cloneDataView = __webpack_require__("5d89"), + cloneRegExp = __webpack_require__("6f6c"), + cloneSymbol = __webpack_require__("a2db"), + cloneTypedArray = __webpack_require__("c8fe"); + +/** `Object#toString` result references. */ +var boolTag = '[object Boolean]', + dateTag = '[object Date]', + mapTag = '[object Map]', + numberTag = '[object Number]', + regexpTag = '[object RegExp]', + setTag = '[object Set]', + stringTag = '[object String]', + symbolTag = '[object Symbol]'; + +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]'; + +/** + * Initializes an object clone based on its `toStringTag`. + * + * **Note:** This function only supports cloning values with tags of + * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. + * + * @private + * @param {Object} object The object to clone. + * @param {string} tag The `toStringTag` of the object to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the initialized clone. */ -function identity(value) { - return value; +function initCloneByTag(object, tag, isDeep) { + var Ctor = object.constructor; + switch (tag) { + case arrayBufferTag: + return cloneArrayBuffer(object); + + case boolTag: + case dateTag: + return new Ctor(+object); + + case dataViewTag: + return cloneDataView(object, isDeep); + + case float32Tag: case float64Tag: + case int8Tag: case int16Tag: case int32Tag: + case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: + return cloneTypedArray(object, isDeep); + + case mapTag: + return new Ctor; + + case numberTag: + case stringTag: + return new Ctor(object); + + case regexpTag: + return cloneRegExp(object); + + case setTag: + return new Ctor; + + case symbolTag: + return cloneSymbol(object); + } } -module.exports = identity; +module.exports = initCloneByTag; /***/ }), @@ -5337,6 +7743,31 @@ module.exports = function (IS_INCLUDES) { }; +/***/ }), + +/***/ "c3fc": +/***/ (function(module, exports, __webpack_require__) { + +var getTag = __webpack_require__("42a2"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var setTag = '[object Set]'; + +/** + * The base implementation of `_.isSet` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. + */ +function baseIsSet(value) { + return isObjectLike(value) && getTag(value) == setTag; +} + +module.exports = baseIsSet; + + /***/ }), /***/ "c495": @@ -5348,6 +7779,26 @@ module.exports = function (IS_INCLUDES) { /* unused harmony reexport * */ /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_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); +/***/ }), + +/***/ "c584": +/***/ (function(module, exports) { + +/** + * Checks if a `cache` value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +module.exports = cacheHas; + + /***/ }), /***/ "c5f6": @@ -5428,30 +7879,9 @@ if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) { /***/ }), /***/ "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; -} +/***/ (function(module, exports, __webpack_require__) { -module.exports = arrayEach; +module.exports = __webpack_require__("6cd4"); /***/ }), @@ -5464,6 +7894,20 @@ module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(fu }); +/***/ }), + +/***/ "c869": +/***/ (function(module, exports, __webpack_require__) { + +var getNative = __webpack_require__("0b07"), + root = __webpack_require__("2b3e"); + +/* Built-in method references that are verified to be native. */ +var Set = getNative(root, 'Set'); + +module.exports = Set; + + /***/ }), /***/ "c87c": @@ -5524,6 +7968,29 @@ try { module.exports = g; +/***/ }), + +/***/ "c8fe": +/***/ (function(module, exports, __webpack_require__) { + +var cloneArrayBuffer = __webpack_require__("f8af"); + +/** + * Creates a clone of `typedArray`. + * + * @private + * @param {Object} typedArray The typed array to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Object} Returns the cloned typed array. + */ +function cloneTypedArray(typedArray, isDeep) { + var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; + return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); +} + +module.exports = cloneTypedArray; + + /***/ }), /***/ "ca5a": @@ -5621,26 +8088,35 @@ module.exports = function (it) { /***/ }), /***/ "cc45": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseIsMap = __webpack_require__("1a2d"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); + +/* Node.js helper references. */ +var nodeIsMap = nodeUtil && nodeUtil.isMap; /** - * This method returns `false`. + * Checks if `value` is classified as a `Map` object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a map, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isMap(new Map); + * // => true + * + * _.isMap(new WeakMap); + * // => false */ -function stubFalse() { - return false; -} +var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; -module.exports = stubFalse; +module.exports = isMap; /***/ }), @@ -5739,6 +8215,47 @@ function baseToString(value) { module.exports = baseToString; +/***/ }), + +/***/ "d02c": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"), + Map = __webpack_require__("79bc"), + MapCache = __webpack_require__("7b83"); + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; +} + +module.exports = stackSet; + + /***/ }), /***/ "d302": @@ -5748,27 +8265,75 @@ module.exports = baseToString; /***/ }), -/***/ "d370": +/***/ "d327": /***/ (function(module, exports) { /** - * This method returns `false`. + * This method returns a new empty array. * * @static * @memberOf _ * @since 4.13.0 * @category Util - * @returns {boolean} Returns `false`. + * @returns {Array} Returns the new empty array. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * var arrays = _.times(2, _.stubArray); + * + * console.log(arrays); + * // => [[], []] + * + * console.log(arrays[0] === arrays[1]); + * // => false */ -function stubFalse() { - return false; +function stubArray() { + return []; } -module.exports = stubFalse; +module.exports = stubArray; + + +/***/ }), + +/***/ "d370": +/***/ (function(module, exports, __webpack_require__) { + +var baseIsArguments = __webpack_require__("253c"), + isObjectLike = __webpack_require__("1310"); + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +module.exports = isArguments; /***/ }), @@ -5802,29 +8367,72 @@ module.exports = function (done, value) { }; +/***/ }), + +/***/ "d612": +/***/ (function(module, exports, __webpack_require__) { + +var MapCache = __webpack_require__("7b83"), + setCacheAdd = __webpack_require__("7ed2"), + setCacheHas = __webpack_require__("dc0f"); + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values == null ? 0 : values.length; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +module.exports = SetCache; + + /***/ }), /***/ "d7ee": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseIsSet = __webpack_require__("c3fc"), + baseUnary = __webpack_require__("b047f"), + nodeUtil = __webpack_require__("99d3"); + +/* Node.js helper references. */ +var nodeIsSet = nodeUtil && nodeUtil.isSet; /** - * This method returns `false`. + * Checks if `value` is classified as a `Set` object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a set, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isSet(new Set); + * // => true + * + * _.isSet(new WeakSet); + * // => false */ -function stubFalse() { - return false; -} +var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; -module.exports = stubFalse; +module.exports = isSet; /***/ }), @@ -5840,17 +8448,84 @@ module.exports = function (it) { /***/ }), -/***/ "dcbc": +/***/ "da03": /***/ (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; -}; +var root = __webpack_require__("2b3e"); +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; -/***/ }), +module.exports = coreJsData; + + +/***/ }), + +/***/ "dc0f": +/***/ (function(module, exports) { + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +module.exports = setCacheHas; + + +/***/ }), + +/***/ "dc57": +/***/ (function(module, exports) { + +/** Used for built-in method references. */ +var funcProto = Function.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to convert. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +module.exports = toSource; + + +/***/ }), + +/***/ "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; +}; + + +/***/ }), /***/ "e0bf": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5872,6 +8547,45 @@ module.exports = ( ).split(','); +/***/ }), + +/***/ "e24b": +/***/ (function(module, exports, __webpack_require__) { + +var hashClear = __webpack_require__("49f4"), + hashDelete = __webpack_require__("1efc"), + hashGet = __webpack_require__("bbc0"), + hashHas = __webpack_require__("7a48"), + hashSet = __webpack_require__("2524"); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(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 `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +module.exports = Hash; + + /***/ }), /***/ "e279": @@ -6015,24 +8729,24 @@ module.exports = cloneBuffer; /***/ "eac5": /***/ (function(module, exports) { +/** Used for built-in method references. */ +var objectProto = Object.prototype; + /** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example + * Checks if `value` is likely a prototype object. * - * _.times(2, _.stubFalse); - * // => [false, false] + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. */ -function stubFalse() { - return false; +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; } -module.exports = stubFalse; +module.exports = isPrototype; /***/ }), @@ -6067,12 +8781,161 @@ module.exports = function (O, D) { /***/ "ec69": /***/ (function(module, exports, __webpack_require__) { -var overArg = __webpack_require__("91e9"); +var arrayLikeKeys = __webpack_require__("6fcd"), + baseKeys = __webpack_require__("03dd"), + isArrayLike = __webpack_require__("30c9"); + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +module.exports = keys; + + +/***/ }), + +/***/ "ec8c": +/***/ (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; + + +/***/ }), + +/***/ "edfa": +/***/ (function(module, exports) { + +/** + * Converts `map` to its key-value pairs. + * + * @private + * @param {Object} map The map to convert. + * @returns {Array} Returns the key-value pairs. + */ +function mapToArray(map) { + var index = -1, + result = Array(map.size); + + map.forEach(function(value, key) { + result[++index] = [key, value]; + }); + return result; +} + +module.exports = mapToArray; + + +/***/ }), + +/***/ "efb6": +/***/ (function(module, exports, __webpack_require__) { + +var ListCache = __webpack_require__("5e2e"); + +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear() { + this.__data__ = new ListCache; + this.size = 0; +} + +module.exports = stackClear; + + +/***/ }), + +/***/ "f3c1": +/***/ (function(module, exports) { + +/** Used to detect hot functions by number of calls within a span of milliseconds. */ +var HOT_COUNT = 800, + HOT_SPAN = 16; /* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); +var nativeNow = Date.now; -module.exports = nativeKeys; +/** + * Creates a function that'll short out and invoke `identity` instead + * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` + * milliseconds. + * + * @private + * @param {Function} func The function to restrict. + * @returns {Function} Returns the new shortable function. + */ +function shortOut(func) { + var count = 0, + lastCalled = 0; + + return function() { + var stamp = nativeNow(), + remaining = HOT_SPAN - (stamp - lastCalled); + + lastCalled = stamp; + if (remaining > 0) { + if (++count >= HOT_COUNT) { + return arguments[0]; + } + } else { + count = 0; + } + return func.apply(undefined, arguments); + }; +} + +module.exports = shortOut; /***/ }), @@ -6115,6 +8978,78 @@ module.exports = function (it, Constructor, name, forbiddenField) { }; +/***/ }), + +/***/ "f608": +/***/ (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; + + +/***/ }), + +/***/ "f8af": +/***/ (function(module, exports, __webpack_require__) { + +var Uint8Array = __webpack_require__("2474"); + +/** + * Creates a clone of `arrayBuffer`. + * + * @private + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. + * @returns {ArrayBuffer} Returns the cloned array buffer. + */ +function cloneArrayBuffer(arrayBuffer) { + var result = new arrayBuffer.constructor(arrayBuffer.byteLength); + new Uint8Array(result).set(new Uint8Array(arrayBuffer)); + return result; +} + +module.exports = cloneArrayBuffer; + + +/***/ }), + +/***/ "f9ce": +/***/ (function(module, exports) { + +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +module.exports = baseProperty; + + /***/ }), /***/ "fa21": @@ -6207,8 +9142,13 @@ 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"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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=bed362a6& -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,"event-bus":_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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"label",fn:function(ref){ +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=339caff2& +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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"group-legend",fn:function(ref){ +var group = ref.group; +var groupLegend = ref.groupLegend; +return [_vm._t("group-legend",[(groupLegend)?_c('legend',[_c('span',{domProps:{"innerHTML":_vm._s(groupLegend)}})]):_vm._e()],{group:group,groupLegend:groupLegend})]}},{key:"group-help",fn:function(ref){ +var group = ref.group; +return [_vm._t("group-help",[(group.help)?_c('span',{staticClass:"help"},[_c('i',{staticClass:"icon"}),_c('div',{staticClass:"helpText",domProps:{"innerHTML":_vm._s(group.help)}})]):_vm._e()],{group:group})]}},{key:"element",fn:function(slotProps){return [_c('form-element',{attrs:{"field":slotProps.field,"model":slotProps.model,"options":slotProps.options,"errors":slotProps.errors,"event-bus":_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){ @@ -6225,7 +9165,7 @@ return [_vm._t("errors",[_c('div',{staticClass:"errors help-block"},_vm._l((chil var staticRenderFns = [] -// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=template&id=bed362a6& +// CONCATENATED MODULE: ./src/formGenerator.vue?vue&type=template&id=339caff2& // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.promise.js var es6_promise = __webpack_require__("551c"); @@ -6242,12 +9182,12 @@ var get_default = /*#__PURE__*/__webpack_require__.n(lodash_get); 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":"4faaeac7-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=12ad8b0b& -var formGroupvue_type_template_id_12ad8b0b_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,"event-bus":_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_12ad8b0b_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=f1ae3a1c& +var formGroupvue_type_template_id_f1ae3a1c_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._t("group-legend",null,{group:_vm.group,groupLegend:_vm.groupLegend}),_vm._t("group-help",null,{group:_vm.group}),_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,"event-bus":_vm.eventBus},scopedSlots:_vm._u([{key:"group-legend",fn:function(slotProps){return [_vm._t("group-legend",null,{group:slotProps.group,groupLegend:slotProps.groupLegend})]}},{key:"group-help",fn:function(slotProps){return [_vm._t("group-help",null,{group:slotProps.group})]}},{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_f1ae3a1c_staticRenderFns = [] -// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=12ad8b0b& +// CONCATENATED MODULE: ./src/formGroup.vue?vue&type=template&id=f1ae3a1c& // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/defineProperty.js function _defineProperty(obj, key, value) { @@ -6298,21 +9238,939 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); } }); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& - - - - -// -// -// -// -// -// -// -// -// -// -// +var cov_d4vsnj82q = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formGroup.vue", + hash = "6f7c2f1892f2b3aac935f542b34676571ee2c801", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formGroup.vue", + statementMap: { + "0": { + start: { + line: 74, + column: 4 + }, + end: { + line: 74, + column: 14 + } + }, + "1": { + start: { + line: 80, + column: 4 + }, + end: { + line: 80, + column: 14 + } + }, + "2": { + start: { + line: 87, + column: 4 + }, + end: { + line: 87, + column: 28 + } + }, + "3": { + start: { + line: 94, + column: 4 + }, + end: { + line: 94, + column: 14 + } + }, + "4": { + start: { + line: 100, + column: 4 + }, + end: { + line: 100, + column: 14 + } + }, + "5": { + start: { + line: 106, + column: 4 + }, + end: { + line: 106, + column: 14 + } + }, + "6": { + start: { + line: 112, + column: 4 + }, + end: { + line: 112, + column: 14 + } + }, + "7": { + start: { + line: 117, + column: 2 + }, + end: { + line: 119, + column: 4 + } + }, + "8": { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, + "9": { + start: { + line: 124, + column: 4 + }, + end: { + line: 124, + column: 29 + } + }, + "10": { + start: { + line: 129, + column: 21 + }, + end: { + line: 131, + column: 4 + } + }, + "11": { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, + "12": { + start: { + line: 133, + column: 4 + }, + end: { + line: 133, + column: 64 + } + }, + "13": { + start: { + line: 135, + column: 3 + }, + end: { + line: 135, + column: 22 + } + }, + "14": { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, + "15": { + start: { + line: 142, + column: 4 + }, + end: { + line: 142, + column: 61 + } + }, + "16": { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, + "17": { + start: { + line: 146, + column: 4 + }, + end: { + line: 146, + column: 16 + } + }, + "18": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 24 + } + }, + "19": { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, + "20": { + start: { + line: 154, + column: 4 + }, + end: { + line: 154, + column: 21 + } + }, + "21": { + start: { + line: 156, + column: 4 + }, + end: { + line: 156, + column: 20 + } + }, + "22": { + start: { + line: 161, + column: 2 + }, + end: { + line: 172, + column: 5 + } + }, + "23": { + start: { + line: 162, + column: 3 + }, + end: { + line: 171, + column: 6 + } + }, + "24": { + start: { + line: 164, + column: 5 + }, + end: { + line: 166, + column: 15 + } + }, + "25": { + start: { + line: 167, + column: 4 + }, + end: { + line: 170, + column: 6 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 73, + column: 3 + }, + end: { + line: 73, + column: 4 + } + }, + loc: { + start: { + line: 73, + column: 13 + }, + end: { + line: 75, + column: 4 + } + }, + line: 73 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 79, + column: 3 + }, + end: { + line: 79, + column: 4 + } + }, + loc: { + start: { + line: 79, + column: 13 + }, + end: { + line: 81, + column: 4 + } + }, + line: 79 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 86, + column: 3 + }, + end: { + line: 86, + column: 4 + } + }, + loc: { + start: { + line: 86, + column: 20 + }, + end: { + line: 88, + column: 4 + } + }, + line: 86 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 93, + column: 3 + }, + end: { + line: 93, + column: 4 + } + }, + loc: { + start: { + line: 93, + column: 13 + }, + end: { + line: 95, + column: 4 + } + }, + line: 93 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 99, + column: 3 + }, + end: { + line: 99, + column: 4 + } + }, + loc: { + start: { + line: 99, + column: 13 + }, + end: { + line: 101, + column: 4 + } + }, + line: 99 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 105, + column: 3 + }, + end: { + line: 105, + column: 4 + } + }, + loc: { + start: { + line: 105, + column: 13 + }, + end: { + line: 107, + column: 4 + } + }, + line: 105 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 111, + column: 3 + }, + end: { + line: 111, + column: 4 + } + }, + loc: { + start: { + line: 111, + column: 13 + }, + end: { + line: 113, + column: 4 + } + }, + line: 111 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 116, + column: 1 + }, + end: { + line: 116, + column: 2 + } + }, + loc: { + start: { + line: 116, + column: 8 + }, + end: { + line: 120, + column: 2 + } + }, + line: 116 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 122, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + loc: { + start: { + line: 122, + column: 16 + }, + end: { + line: 126, + column: 3 + } + }, + line: 122 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 127, + column: 2 + }, + end: { + line: 127, + column: 3 + } + }, + loc: { + start: { + line: 127, + column: 20 + }, + end: { + line: 136, + column: 3 + } + }, + line: 127 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 140, + column: 2 + }, + end: { + line: 140, + column: 3 + } + }, + loc: { + start: { + line: 140, + column: 22 + }, + end: { + line: 150, + column: 3 + } + }, + line: 140 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 152, + column: 2 + }, + end: { + line: 152, + column: 3 + } + }, + loc: { + start: { + line: 152, + column: 21 + }, + end: { + line: 158, + column: 3 + } + }, + line: 152 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 160, + column: 1 + }, + end: { + line: 160, + column: 2 + } + }, + loc: { + start: { + line: 160, + column: 11 + }, + end: { + line: 173, + column: 2 + } + }, + line: 160 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 161, + column: 39 + }, + end: { + line: 161, + column: 40 + } + }, + loc: { + start: { + line: 161, + column: 45 + }, + end: { + line: 172, + column: 3 + } + }, + line: 161 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 162, + column: 18 + }, + end: { + line: 162, + column: 19 + } + }, + loc: { + start: { + line: 162, + column: 24 + }, + end: { + line: 171, + column: 4 + } + }, + line: 162 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }, { + start: { + line: 123, + column: 3 + }, + end: { + line: 125, + column: 4 + } + }], + line: 123 + }, + "1": { + loc: { + start: { + line: 123, + column: 7 + }, + end: { + line: 123, + column: 38 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 123, + column: 7 + }, + end: { + line: 123, + column: 17 + } + }, { + start: { + line: 123, + column: 21 + }, + end: { + line: 123, + column: 38 + } + }], + line: 123 + }, + "2": { + loc: { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }, { + start: { + line: 132, + column: 3 + }, + end: { + line: 134, + column: 4 + } + }], + line: 132 + }, + "3": { + loc: { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }, { + start: { + line: 141, + column: 3 + }, + end: { + line: 143, + column: 4 + } + }], + line: 141 + }, + "4": { + loc: { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }, { + start: { + line: 145, + column: 3 + }, + end: { + line: 147, + column: 4 + } + }], + line: 145 + }, + "5": { + loc: { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }, { + start: { + line: 153, + column: 3 + }, + end: { + line: 157, + column: 4 + } + }], + line: 153 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// // // // @@ -6351,12 +10209,16 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); fields: { type: Array, default: function _default() { + cov_d4vsnj82q.f[0]++; + cov_d4vsnj82q.s[0]++; return []; } }, group: { type: Object, default: function _default() { + cov_d4vsnj82q.f[1]++; + cov_d4vsnj82q.s[1]++; return {}; } }, @@ -6364,75 +10226,122 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); type: String, default: "fieldset", validator: function validator(value) { + cov_d4vsnj82q.f[2]++; + cov_d4vsnj82q.s[2]++; return value.length > 0; } }, model: { type: Object, default: function _default() { + cov_d4vsnj82q.f[3]++; + cov_d4vsnj82q.s[3]++; return {}; } }, options: { type: Object, default: function _default() { + cov_d4vsnj82q.f[4]++; + cov_d4vsnj82q.s[4]++; return {}; } }, errors: { type: Array, default: function _default() { + cov_d4vsnj82q.f[5]++; + cov_d4vsnj82q.s[5]++; return []; } }, eventBus: { type: Object, default: function _default() { + cov_d4vsnj82q.f[6]++; + cov_d4vsnj82q.s[6]++; return {}; } } }, data: function data() { + cov_d4vsnj82q.f[7]++; + cov_d4vsnj82q.s[7]++; return { validationClass: {} }; }, computed: { groupLegend: function groupLegend() { - if (this.group && this.group.legend) { + cov_d4vsnj82q.f[8]++; + cov_d4vsnj82q.s[8]++; + + if ((cov_d4vsnj82q.b[1][0]++, this.group) && (cov_d4vsnj82q.b[1][1]++, this.group.legend)) { + cov_d4vsnj82q.b[0][0]++; + cov_d4vsnj82q.s[9]++; return this.group.legend; + } else { + cov_d4vsnj82q.b[0][1]++; } }, groupRowClasses: function groupRowClasses() { + cov_d4vsnj82q.f[9]++; // TODO find a way to detect errors in child to add some classes (error/valid/etc) - var baseClasses = { + var baseClasses = (cov_d4vsnj82q.s[10]++, { "field-group": true - }; + }); + cov_d4vsnj82q.s[11]++; if (!isNil_default()(this.group)) { + cov_d4vsnj82q.b[2][0]++; + cov_d4vsnj82q.s[12]++; baseClasses = this.getStyleClasses(this.group, baseClasses); + } else { + cov_d4vsnj82q.b[2][1]++; } + cov_d4vsnj82q.s[13]++; return baseClasses; } }, methods: { // Get visible prop of field fieldVisible: function fieldVisible(field) { + cov_d4vsnj82q.f[10]++; + cov_d4vsnj82q.s[14]++; + if (isFunction_default()(field.visible)) { + cov_d4vsnj82q.b[3][0]++; + cov_d4vsnj82q.s[15]++; return field.visible.call(this, this.model, field, this); + } else { + cov_d4vsnj82q.b[3][1]++; } + cov_d4vsnj82q.s[16]++; + if (isNil_default()(field.visible)) { + cov_d4vsnj82q.b[4][0]++; + cov_d4vsnj82q.s[17]++; return true; + } else { + cov_d4vsnj82q.b[4][1]++; } + cov_d4vsnj82q.s[18]++; return field.visible; }, getGroupTag: function getGroupTag(field) { + cov_d4vsnj82q.f[11]++; + cov_d4vsnj82q.s[19]++; + if (!isNil_default()(field.tag)) { + cov_d4vsnj82q.b[5][0]++; + cov_d4vsnj82q.s[20]++; return field.tag; } else { + cov_d4vsnj82q.b[5][1]++; + cov_d4vsnj82q.s[21]++; return this.tag; } } @@ -6440,11 +10349,18 @@ var isString_default = /*#__PURE__*/__webpack_require__.n(isString); created: function created() { var _this = this; + cov_d4vsnj82q.f[12]++; + cov_d4vsnj82q.s[22]++; this.eventBus.$on("field-validated", function () { + cov_d4vsnj82q.f[13]++; + cov_d4vsnj82q.s[23]++; + _this.$nextTick(function () { var _this$validationClass; - var containFieldWithError = _this.$refs.group.querySelector(".form-element.error") !== null; + cov_d4vsnj82q.f[14]++; + var containFieldWithError = (cov_d4vsnj82q.s[24]++, _this.$refs.group.querySelector(".form-element." + get_default()(_this.options, "validationErrorClass", "error")) !== null); + cov_d4vsnj82q.s[25]++; _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); }); }); @@ -6557,8 +10473,8 @@ function normalizeComponent ( var component = normalizeComponent( src_formGroupvue_type_script_lang_js_, - formGroupvue_type_template_id_12ad8b0b_render, - formGroupvue_type_template_id_12ad8b0b_staticRenderFns, + formGroupvue_type_template_id_f1ae3a1c_render, + formGroupvue_type_template_id_f1ae3a1c_staticRenderFns, false, null, null, @@ -6568,7 +10484,7 @@ var component = normalizeComponent( 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":"4faaeac7-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=fc1a7bb6& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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=fc1a7bb6& var formElementvue_type_template_id_fc1a7bb6_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,"form-options":_vm.options,"event-bus":_vm.eventBus,"field-id":_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_fc1a7bb6_staticRenderFns = [] @@ -6601,909 +10517,13137 @@ var lodash_set = __webpack_require__("0f5c"); var set_default = /*#__PURE__*/__webpack_require__.n(lodash_set); // CONCATENATED MODULE: ./src/utils/schema.js - - - - - - - - - - - -// Create a new model by schema default values -var schema_createDefaultObject = function createDefaultObject(schema) { - var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - each_default()(schema.fields, function (field) { - if (get_default()(obj, field.model) === undefined && field.default !== undefined) { - if (isFunction_default()(field.default)) { - set_default()(obj, field.model, field.default(field, schema, obj)); - } else if (isObject_default()(field.default) || isArray_default()(field.default)) { - set_default()(obj, field.model, cloneDeep_default()(field.default)); - } else set_default()(obj, field.model, field.default); - } - }); - - return obj; -}; // Get a new model which contains only properties of multi-edit fields - - -var schema_getMultipleFields = function getMultipleFields(schema) { - var res = []; - - each_default()(schema.fields, function (field) { - if (field.multi === true) res.push(field); - }); - - return res; -}; // Merge many models to one 'work model' by schema - - -var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { - var model = {}; - var fields = schema_getMultipleFields(schema); - - each_default()(fields, function (field) { - var mergedValue; - var notSet = true; - var path = field.model; - - each_default()(objs, function (obj) { - var v = get_default()(obj, path); - - if (notSet) { - mergedValue = v; - notSet = false; - } else if (mergedValue !== v) { - mergedValue = undefined; - } - }); - - set_default()(model, path, mergedValue); - }); - - return model; -}; - -var schema_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 (!isNil_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, ""); -}; - - -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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", - mixins: [formMixin], - props: { - model: { - type: Object, - default: function _default() { - return {}; - } - }, - options: { - type: Object, - default: function _default() { - return {}; +var cov_gintv1cay = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\schema.js", + hash = "a53cef1e41564f1bee324738d46948dfa72edad7", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\schema.js", + statementMap: { + "0": { + start: { + line: 4, + column: 28 + }, + end: { + line: 15, + column: 1 + } + }, + "1": { + start: { + line: 5, + column: 1 + }, + end: { + line: 13, + column: 4 + } + }, + "2": { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, + "3": { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, + "4": { + start: { + line: 8, + column: 4 + }, + end: { + line: 8, + column: 61 + } + }, + "5": { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + "6": { + start: { + line: 10, + column: 4 + }, + end: { + line: 10, + column: 52 + } + }, + "7": { + start: { + line: 11, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + "8": { + start: { + line: 14, + column: 1 + }, + end: { + line: 14, + column: 12 + } + }, + "9": { + start: { + line: 18, + column: 26 + }, + end: { + line: 25, + column: 1 + } + }, + "10": { + start: { + line: 19, + column: 11 + }, + end: { + line: 19, + column: 13 + } + }, + "11": { + start: { + line: 20, + column: 1 + }, + end: { + line: 22, + column: 4 + } + }, + "12": { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, + "13": { + start: { + line: 21, + column: 28 + }, + end: { + line: 21, + column: 44 + } + }, + "14": { + start: { + line: 24, + column: 1 + }, + end: { + line: 24, + column: 12 + } + }, + "15": { + start: { + line: 28, + column: 31 + }, + end: { + line: 52, + column: 1 + } + }, + "16": { + start: { + line: 29, + column: 13 + }, + end: { + line: 29, + column: 15 + } + }, + "17": { + start: { + line: 31, + column: 14 + }, + end: { + line: 31, + column: 39 + } + }, + "18": { + start: { + line: 33, + column: 1 + }, + end: { + line: 49, + column: 4 + } + }, + "19": { + start: { + line: 35, + column: 15 + }, + end: { + line: 35, + column: 19 + } + }, + "20": { + start: { + line: 36, + column: 13 + }, + end: { + line: 36, + column: 24 + } + }, + "21": { + start: { + line: 38, + column: 2 + }, + end: { + line: 46, + column: 5 + } + }, + "22": { + start: { + line: 39, + column: 11 + }, + end: { + line: 39, + column: 25 + } + }, + "23": { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, + "24": { + start: { + line: 41, + column: 4 + }, + end: { + line: 41, + column: 20 + } + }, + "25": { + start: { + line: 42, + column: 4 + }, + end: { + line: 42, + column: 19 + } + }, + "26": { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, + "27": { + start: { + line: 44, + column: 4 + }, + end: { + line: 44, + column: 28 + } + }, + "28": { + start: { + line: 48, + column: 2 + }, + end: { + line: 48, + column: 32 + } + }, + "29": { + start: { + line: 51, + column: 1 + }, + end: { + line: 51, + column: 14 + } + }, + "30": { + start: { + line: 54, + column: 22 + }, + end: { + line: 80, + column: 1 + } + }, + "31": { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + "32": { + start: { + line: 59, + column: 2 + }, + end: { + line: 59, + column: 28 + } + }, + "33": { + start: { + line: 62, + column: 2 + }, + end: { + line: 78, + column: 4 + } + }, + "34": { + start: { + line: 82, + column: 16 + }, + end: { + line: 100, + column: 1 + } + }, + "35": { + start: { + line: 84, + column: 1 + }, + end: { + line: 99, + column: 3 + } } }, - field: { - type: Object, - required: true - }, - errors: { - type: Array, - default: function _default() { - return []; + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 4, + column: 28 + }, + end: { + line: 4, + column: 29 + } + }, + loc: { + start: { + line: 4, + column: 50 + }, + end: { + line: 15, + column: 1 + } + }, + line: 4 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 5, + column: 21 + }, + end: { + line: 5, + column: 22 + } + }, + loc: { + start: { + line: 5, + column: 32 + }, + end: { + line: 13, + column: 2 + } + }, + line: 5 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 18, + column: 26 + }, + end: { + line: 18, + column: 27 + } + }, + loc: { + start: { + line: 18, + column: 38 + }, + end: { + line: 25, + column: 1 + } + }, + line: 18 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 20, + column: 21 + }, + end: { + line: 20, + column: 22 + } + }, + loc: { + start: { + line: 20, + column: 32 + }, + end: { + line: 22, + column: 2 + } + }, + line: 20 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 28, + column: 31 + }, + end: { + line: 28, + column: 32 + } + }, + loc: { + start: { + line: 28, + column: 49 + }, + end: { + line: 52, + column: 1 + } + }, + line: 28 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 33, + column: 14 + }, + end: { + line: 33, + column: 15 + } + }, + loc: { + start: { + line: 33, + column: 25 + }, + end: { + line: 49, + column: 2 + } + }, + line: 33 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 38, + column: 13 + }, + end: { + line: 38, + column: 14 + } + }, + loc: { + start: { + line: 38, + column: 22 + }, + end: { + line: 46, + column: 3 + } + }, + line: 38 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 54, + column: 22 + }, + end: { + line: 54, + column: 23 + } + }, + loc: { + start: { + line: 54, + column: 47 + }, + end: { + line: 80, + column: 1 + } + }, + line: 54 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 82, + column: 16 + }, + end: { + line: 82, + column: 17 + } + }, + loc: { + start: { + line: 82, + column: 31 + }, + end: { + line: 100, + column: 1 + } + }, + line: 82 } }, - eventBus: { - type: Object, - default: function _default() { - return {}; + branchMap: { + "0": { + loc: { + start: { + line: 4, + column: 37 + }, + end: { + line: 4, + column: 45 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 4, + column: 43 + }, + end: { + line: 4, + column: 45 + } + }], + line: 4 + }, + "1": { + loc: { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }, { + start: { + line: 6, + column: 2 + }, + end: { + line: 12, + column: 3 + } + }], + line: 6 + }, + "2": { + loc: { + start: { + line: 6, + column: 6 + }, + end: { + line: 6, + column: 72 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 6, + column: 6 + }, + end: { + line: 6, + column: 41 + } + }, { + start: { + line: 6, + column: 45 + }, + end: { + line: 6, + column: 72 + } + }], + line: 6 + }, + "3": { + loc: { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, + type: "if", + locations: [{ + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }, { + start: { + line: 7, + column: 3 + }, + end: { + line: 11, + column: 47 + } + }], + line: 7 + }, + "4": { + loc: { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, + type: "if", + locations: [{ + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }, { + start: { + line: 9, + column: 10 + }, + end: { + line: 11, + column: 47 + } + }], + line: 9 + }, + "5": { + loc: { + start: { + line: 9, + column: 14 + }, + end: { + line: 9, + column: 63 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 9, + column: 14 + }, + end: { + line: 9, + column: 37 + } + }, { + start: { + line: 9, + column: 41 + }, + end: { + line: 9, + column: 63 + } + }], + line: 9 + }, + "6": { + loc: { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, + type: "if", + locations: [{ + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }, { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 44 + } + }], + line: 21 + }, + "7": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 45, + column: 4 + } + }], + line: 40 + }, + "8": { + loc: { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }, { + start: { + line: 43, + column: 10 + }, + end: { + line: 45, + column: 4 + } + }], + line: 43 + }, + "9": { + loc: { + start: { + line: 54, + column: 31 + }, + end: { + line: 54, + column: 42 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 54, + column: 40 + }, + end: { + line: 54, + column: 42 + } + }], + line: 54 + }, + "10": { + loc: { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, { + start: { + line: 57, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }], + line: 57 + }, + "11": { + loc: { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 58 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 20 + } + }, { + start: { + line: 64, + column: 24 + }, + end: { + line: 64, + column: 36 + } + }, { + start: { + line: 64, + column: 40 + }, + end: { + line: 64, + column: 52 + } + }, { + start: { + line: 64, + column: 56 + }, + end: { + line: 64, + column: 58 + } + }], + line: 64 + }, + "12": { + loc: { + start: { + line: 82, + column: 17 + }, + end: { + line: 82, + column: 26 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 82, + column: 24 + }, + end: { + line: 82, + column: 26 + } + }], + line: 82 } - } - }, - data: function data() { - return { - childErrors: [], - childTouched: false - }; - }, - computed: { - fieldID: function fieldID() { - var idPrefix = get_default()(this.options, "fieldIdPrefix", ""); - - return 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); + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0 }, - fieldHasHint: function fieldHasHint() { - return !isNil_default()(this.field.hint); + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0 }, - fieldHasErrors: function fieldHasErrors() { - return this.childErrors.length > 0; + b: { + "0": [0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0], + "10": [0, 0], + "11": [0, 0, 0, 0], + "12": [0] }, - fieldRowClasses: function fieldRowClasses() { - var _baseClasses; + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); - 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 (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } - if (!isNil_default()(this.field.type)) { - baseClasses["field-" + this.field.type] = true; - } + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); - 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 */ +cov_gintv1cay.s[0]++; -var formElement_component = normalizeComponent( - src_formElementvue_type_script_lang_js_, - formElementvue_type_template_id_fc1a7bb6_render, - formElementvue_type_template_id_fc1a7bb6_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--12-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& +// Create a new model by schema default values +var schema_createDefaultObject = function createDefaultObject(schema) { + var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_gintv1cay.b[0][0]++, {}); + cov_gintv1cay.f[0]++; + cov_gintv1cay.s[1]++; + each_default()(schema.fields, function (field) { + cov_gintv1cay.f[1]++; + cov_gintv1cay.s[2]++; + if ((cov_gintv1cay.b[2][0]++, get_default()(obj, field.model) === undefined) && (cov_gintv1cay.b[2][1]++, field.default !== undefined)) { + cov_gintv1cay.b[1][0]++; + cov_gintv1cay.s[3]++; + if (isFunction_default()(field.default)) { + cov_gintv1cay.b[3][0]++; + cov_gintv1cay.s[4]++; -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// -// + set_default()(obj, field.model, field.default(field, schema, obj)); + } else { + cov_gintv1cay.b[3][1]++; + cov_gintv1cay.s[5]++; + if ((cov_gintv1cay.b[5][0]++, isObject_default()(field.default)) || (cov_gintv1cay.b[5][1]++, isArray_default()(field.default))) { + cov_gintv1cay.b[4][0]++; + cov_gintv1cay.s[6]++; + set_default()(obj, field.model, cloneDeep_default()(field.default)); + } else { + cov_gintv1cay.b[4][1]++; + cov_gintv1cay.s[7]++; -/* harmony default export */ var formGeneratorvue_type_script_lang_js_ = ({ - name: "form-generator", - components: { - formGroup: formGroup, - formElement: formElement - }, - props: { - schema: { - type: Object, - default: function _default() { - return {}; - } - }, - model: { - type: Object, - default: function _default() { - return {}; - } - }, - 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; + set_default()(obj, field.model, field.default); + } } + } else { + cov_gintv1cay.b[1][1]++; } - }, - 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; + cov_gintv1cay.s[8]++; + return obj; +}; // Get a new model which contains only properties of multi-edit fields - 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; - } +cov_gintv1cay.s[9]++; + +var schema_getMultipleFields = function getMultipleFields(schema) { + cov_gintv1cay.f[2]++; + var res = (cov_gintv1cay.s[10]++, []); + cov_gintv1cay.s[11]++; + + each_default()(schema.fields, function (field) { + cov_gintv1cay.f[3]++; + cov_gintv1cay.s[12]++; + + if (field.multi === true) { + cov_gintv1cay.b[6][0]++; + cov_gintv1cay.s[13]++; + res.push(field); + } else { + cov_gintv1cay.b[6][1]++; } - }, - 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(); + cov_gintv1cay.s[14]++; + return res; +}; // Merge many models to one 'work model' by schema - 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); +cov_gintv1cay.s[15]++; - reject(formErrors); - }); +var schema_mergeMultiObjectFields = function mergeMultiObjectFields(schema, objs) { + cov_gintv1cay.f[4]++; + var model = (cov_gintv1cay.s[16]++, {}); + var fields = (cov_gintv1cay.s[17]++, schema_getMultipleFields(schema)); + cov_gintv1cay.s[18]++; - var counter = function counter(isValid, fieldErrors, uid) { - fieldsValidated++; + each_default()(fields, function (field) { + cov_gintv1cay.f[5]++; + var mergedValue; + var notSet = (cov_gintv1cay.s[19]++, true); + var path = (cov_gintv1cay.s[20]++, field.model); + cov_gintv1cay.s[21]++; - _this2.fillErrors(fieldErrors, formErrors, uid); + each_default()(objs, function (obj) { + cov_gintv1cay.f[6]++; + var v = (cov_gintv1cay.s[22]++, get_default()(obj, path)); + cov_gintv1cay.s[23]++; - if (fieldsValidated === _this2.totalNumberOfFields) { - _this2.eventBus.$off("field-validated", counter); + if (notSet) { + cov_gintv1cay.b[7][0]++; + cov_gintv1cay.s[24]++; + mergedValue = v; + cov_gintv1cay.s[25]++; + notSet = false; + } else { + cov_gintv1cay.b[7][1]++; + cov_gintv1cay.s[26]++; - if (get_default()(_this2.options, "validateAfterChanged", false)) { - _this2.eventBus.$on("field-validated", _this2.onFieldValidated); - } + if (mergedValue !== v) { + cov_gintv1cay.b[8][0]++; + cov_gintv1cay.s[27]++; + mergedValue = undefined; + } else { + cov_gintv1cay.b[8][1]++; + } + } + }); - _this2.errors = formErrors; + cov_gintv1cay.s[28]++; - var _isValid = formErrors.length === 0; + set_default()(model, path, mergedValue); + }); - _this2.$emit("validated", _isValid, formErrors, _this2); + cov_gintv1cay.s[29]++; + return model; +}; - _this2.eventBus.$emit("fields-validation-terminated", formErrors); +cov_gintv1cay.s[30]++; - if (_isValid) { - resolve(); - } else { - reject(formErrors); - } - } - }; +var schema_slugifyFormID = function slugifyFormID(schema) { + var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_gintv1cay.b[9][0]++, ""); + cov_gintv1cay.f[7]++; + cov_gintv1cay.s[31]++; - if (get_default()(_this2.options, "validateAfterChanged", false)) { - _this2.eventBus.$off("field-validated", _this2.onFieldValidated); - } + // Try to get a reasonable default id from the schema, + // then slugify it. + if (!isNil_default()(schema.id)) { + cov_gintv1cay.b[10][0]++; + cov_gintv1cay.s[32]++; + // If an ID's been explicitly set, use it unchanged + return prefix + schema.id; + } else { + cov_gintv1cay.b[10][1]++; + cov_gintv1cay.s[33]++; + // Return the slugified version of either: + return prefix + ((cov_gintv1cay.b[11][0]++, schema.inputName) || (cov_gintv1cay.b[11][1]++, schema.label) || (cov_gintv1cay.b[11][2]++, schema.model) || (cov_gintv1cay.b[11][3]++, "")). // 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, ""); + } +}; - _this2.eventBus.$on("field-validated", counter); +cov_gintv1cay.s[34]++; - _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; +var slugify = function slugify() { + var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (cov_gintv1cay.b[12][0]++, ""); + cov_gintv1cay.f[8]++; + cov_gintv1cay.s[35]++; + // 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, ""); +}; - 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; - }); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1auykt9f6c = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formElement.vue", + hash = "ce162c16619138421bf005fefa40794742d45759", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formElement.vue", + statementMap: { + "0": { + start: { + line: 70, + column: 4 + }, + end: { + line: 70, + column: 14 + } + }, + "1": { + start: { + line: 76, + column: 4 + }, + end: { + line: 76, + column: 14 + } + }, + "2": { + start: { + line: 86, + column: 4 + }, + end: { + line: 86, + column: 14 + } + }, + "3": { + start: { + line: 92, + column: 4 + }, + end: { + line: 92, + column: 14 + } + }, + "4": { + start: { + line: 97, + column: 2 + }, + end: { + line: 100, + column: 4 + } + }, + "5": { + start: { + line: 104, + column: 20 + }, + end: { + line: 104, + column: 61 + } + }, + "6": { + start: { + line: 105, + column: 3 + }, + end: { + line: 105, + column: 46 + } + }, + "7": { + start: { + line: 109, + column: 3 + }, + end: { + line: 109, + column: 37 + } + }, + "8": { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "9": { + start: { + line: 114, + column: 4 + }, + end: { + line: 114, + column: 17 + } + }, + "10": { + start: { + line: 116, + column: 22 + }, + end: { + line: 116, + column: 73 + } + }, + "11": { + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 70 + } + }, + "12": { + start: { + line: 118, + column: 22 + }, + end: { + line: 118, + column: 74 + } + }, + "13": { + start: { + line: 119, + column: 28 + }, + end: { + line: 119, + column: 57 + } + }, + "14": { + start: { + line: 121, + column: 3 + }, + end: { + line: 121, + column: 51 + } + }, + "15": { + start: { + line: 124, + column: 3 + }, + end: { + line: 124, + column: 34 + } + }, + "16": { + start: { + line: 127, + column: 3 + }, + end: { + line: 127, + column: 38 + } + }, + "17": { + start: { + line: 130, + column: 21 + }, + end: { + line: 138, + column: 4 + } + }, + "18": { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 63 + } + }, + "19": { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, + "20": { + start: { + line: 143, + column: 4 + }, + end: { + line: 143, + column: 51 + } + }, + "21": { + start: { + line: 146, + column: 3 + }, + end: { + line: 146, + column: 22 + } + }, + "22": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 71 + } + }, + "23": { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, + "24": { + start: { + line: 155, + column: 4 + }, + end: { + line: 155, + column: 61 + } + }, + "25": { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, + "26": { + start: { + line: 159, + column: 4 + }, + end: { + line: 159, + column: 24 + } + }, + "27": { + start: { + line: 162, + column: 3 + }, + end: { + line: 162, + column: 24 + } + }, + "28": { + start: { + line: 166, + column: 3 + }, + end: { + line: 166, + column: 65 + } + }, + "29": { + start: { + line: 169, + column: 3 + }, + end: { + line: 169, + column: 28 + } + }, + "30": { + start: { + line: 172, + column: 3 + }, + end: { + line: 172, + column: 29 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 69, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + loc: { + start: { + line: 69, + column: 13 + }, + end: { + line: 71, + column: 4 + } + }, + line: 69 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 75, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + loc: { + start: { + line: 75, + column: 13 + }, + end: { + line: 77, + column: 4 + } + }, + line: 75 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 85, + column: 3 + }, + end: { + line: 85, + column: 4 + } + }, + loc: { + start: { + line: 85, + column: 13 + }, + end: { + line: 87, + column: 4 + } + }, + line: 85 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 91, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + loc: { + start: { + line: 91, + column: 13 + }, + end: { + line: 93, + column: 4 + } + }, + line: 91 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 96, + column: 1 + }, + end: { + line: 96, + column: 2 + } + }, + loc: { + start: { + line: 96, + column: 8 + }, + end: { + line: 101, + column: 2 + } + }, + line: 96 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 103, + column: 2 + }, + end: { + line: 103, + column: 3 + } + }, + loc: { + start: { + line: 103, + column: 12 + }, + end: { + line: 106, + column: 3 + } + }, + line: 103 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 108, + column: 2 + }, + end: { + line: 108, + column: 3 + } + }, + loc: { + start: { + line: 108, + column: 14 + }, + end: { + line: 110, + column: 3 + } + }, + line: 108 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 112, + column: 2 + }, + end: { + line: 112, + column: 3 + } + }, + loc: { + start: { + line: 112, + column: 22 + }, + end: { + line: 122, + column: 3 + } + }, + line: 112 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 123, + column: 2 + }, + end: { + line: 123, + column: 3 + } + }, + loc: { + start: { + line: 123, + column: 17 + }, + end: { + line: 125, + column: 3 + } + }, + line: 123 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 126, + column: 2 + }, + end: { + line: 126, + column: 3 + } + }, + loc: { + start: { + line: 126, + column: 19 + }, + end: { + line: 128, + column: 3 + } + }, + line: 126 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 129, + column: 2 + }, + end: { + line: 129, + column: 3 + } + }, + loc: { + start: { + line: 129, + column: 20 + }, + end: { + line: 147, + column: 3 + } + }, + line: 129 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 148, + column: 2 + }, + end: { + line: 148, + column: 3 + } + }, + loc: { + start: { + line: 148, + column: 22 + }, + end: { + line: 150, + column: 3 + } + }, + line: 148 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 153, + column: 2 + }, + end: { + line: 153, + column: 3 + } + }, + loc: { + start: { + line: 153, + column: 58 + }, + end: { + line: 163, + column: 3 + } + }, + line: 153 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 165, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + loc: { + start: { + line: 165, + column: 40 + }, + end: { + line: 167, + column: 3 + } + }, + line: 165 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 168, + column: 2 + }, + end: { + line: 168, + column: 3 + } + }, + loc: { + start: { + line: 168, + column: 19 + }, + end: { + line: 170, + column: 3 + } + }, + line: 168 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 171, + column: 2 + }, + end: { + line: 171, + column: 3 + } + }, + loc: { + start: { + line: 171, + column: 27 + }, + end: { + line: 173, + column: 3 + } + }, + line: 171 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }], + line: 113 + }, + "1": { + loc: { + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 70 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 117, + column: 19 + }, + end: { + line: 117, + column: 46 + } + }, { + start: { + line: 117, + column: 50 + }, + end: { + line: 117, + column: 70 + } + }], + line: 117 + }, + "2": { + loc: { + start: { + line: 118, + column: 22 + }, + end: { + line: 118, + column: 74 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 118, + column: 34 + }, + end: { + line: 118, + column: 56 + } + }, { + start: { + line: 118, + column: 59 + }, + end: { + line: 118, + column: 74 + } + }], + line: 118 + }, + "3": { + loc: { + start: { + line: 132, + column: 63 + }, + end: { + line: 132, + column: 104 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 132, + column: 63 + }, + end: { + line: 132, + column: 83 + } + }, { + start: { + line: 132, + column: 87 + }, + end: { + line: 132, + column: 104 + } + }], + line: 132 + }, + "4": { + loc: { + start: { + line: 133, + column: 61 + }, + end: { + line: 133, + column: 103 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 133, + column: 61 + }, + end: { + line: 133, + column: 81 + } + }, { + start: { + line: 133, + column: 85 + }, + end: { + line: 133, + column: 103 + } + }], + line: 133 + }, + "5": { + loc: { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }, { + start: { + line: 142, + column: 3 + }, + end: { + line: 144, + column: 4 + } + }], + line: 142 + }, + "6": { + loc: { + start: { + line: 149, + column: 10 + }, + end: { + line: 149, + column: 70 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 149, + column: 10 + }, + end: { + line: 149, + column: 37 + } + }, { + start: { + line: 149, + column: 41 + }, + end: { + line: 149, + column: 70 + } + }], + line: 149 + }, + "7": { + loc: { + start: { + line: 153, + column: 36 + }, + end: { + line: 153, + column: 56 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 153, + column: 51 + }, + end: { + line: 153, + column: 56 + } + }], + line: 153 + }, + "8": { + loc: { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }, { + start: { + line: 154, + column: 3 + }, + end: { + line: 156, + column: 4 + } + }], + line: 154 + }, + "9": { + loc: { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }, { + start: { + line: 158, + column: 3 + }, + end: { + line: 160, + column: 4 + } + }], + line: 158 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0], + "8": [0, 0], + "9": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - 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 - + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -/* normalize component */ -var formGenerator_component = normalizeComponent( - src_formGeneratorvue_type_script_lang_js_, - render, - staticRenderFns, - false, - null, - null, - null - -) -formGenerator_component.options.__file = "formGenerator.vue" -/* harmony default export */ var formGenerator = (formGenerator_component.exports); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js -var es6_array_iterator = __webpack_require__("cadf"); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js -var es6_object_keys = __webpack_require__("456d"); -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js -var es6_regexp_constructor = __webpack_require__("3b2b"); -// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js -var isInteger = __webpack_require__("697e"); -var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); -// 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/defaults.js -var defaults = __webpack_require__("95ae"); -var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); - -// EXTERNAL MODULE: ./node_modules/fecha/fecha.js -var fecha = __webpack_require__("9e99"); -var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); - -// CONCATENATED MODULE: ./src/utils/validators.js - - - - - - - - - - - - - - -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 (isNil_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 (isNumber_default()(value)) { - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.min) && value < field.fieldOptions.min) { - err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); +/* harmony default export */ var formElementvue_type_script_lang_js_ = ({ + name: "form-element", + mixins: [formMixin], + props: { + model: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[0]++; + cov_1auykt9f6c.s[0]++; + return {}; } - - if (!isNil_default()(field.fieldOptions) && !isNil_default()(field.fieldOptions.max) && value > field.fieldOptions.max) { - err.push(msg(messages.numberTooBig, field.fieldOptions.max)); + }, + options: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[1]++; + cov_1auykt9f6c.s[1]++; + return {}; + } + }, + field: { + type: Object, + required: true + }, + errors: { + type: Array, + default: function _default() { + cov_1auykt9f6c.f[2]++; + cov_1auykt9f6c.s[2]++; + return []; + } + }, + eventBus: { + type: Object, + default: function _default() { + cov_1auykt9f6c.f[3]++; + cov_1auykt9f6c.s[3]++; + return {}; } - } 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); + data: function data() { + cov_1auykt9f6c.f[4]++; + cov_1auykt9f6c.s[4]++; + return { + childErrors: [], + childTouched: false + }; + }, + computed: { + fieldID: function fieldID() { + cov_1auykt9f6c.f[5]++; + var idPrefix = (cov_1auykt9f6c.s[5]++, get_default()(this.options, "fieldIdPrefix", "")); + cov_1auykt9f6c.s[6]++; + return schema_slugifyFormID(this.field, idPrefix); + }, + // Get type of field 'field-xxx'. It'll be the name of HTML element + fieldType: function fieldType() { + cov_1auykt9f6c.f[6]++; + cov_1auykt9f6c.s[7]++; + return "field-" + this.field.type; + }, + // Should field type have a label? + fieldTypeHasLabel: function fieldTypeHasLabel() { + cov_1auykt9f6c.f[7]++; + cov_1auykt9f6c.s[8]++; - if (!isInteger_default()(value)) { - errs.push(msg(messages.invalidInteger)); - } + if (isNil_default()(this.field.label)) { + cov_1auykt9f6c.b[0][0]++; + cov_1auykt9f6c.s[9]++; + return false; + } else { + cov_1auykt9f6c.b[0][1]++; + } - 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; + var fieldOptions = (cov_1auykt9f6c.s[10]++, this.getValueFromOption(this.field, "fieldOptions")); + var condition = (cov_1auykt9f6c.s[11]++, (cov_1auykt9f6c.b[1][0]++, this.field.type === "input") && (cov_1auykt9f6c.b[1][1]++, !isNil_default()(fieldOptions))); + var relevantType = (cov_1auykt9f6c.s[12]++, condition ? (cov_1auykt9f6c.b[2][0]++, fieldOptions.inputType) : (cov_1auykt9f6c.b[2][1]++, this.field.type)); + var typeWithoutLabel = (cov_1auykt9f6c.s[13]++, ["button", "submit", "reset"]); + cov_1auykt9f6c.s[14]++; + return !typeWithoutLabel.includes(relevantType); + }, + fieldHasHint: function fieldHasHint() { + cov_1auykt9f6c.f[8]++; + cov_1auykt9f6c.s[15]++; + return !isNil_default()(this.field.hint); + }, + fieldHasErrors: function fieldHasErrors() { + cov_1auykt9f6c.f[9]++; + cov_1auykt9f6c.s[16]++; + return this.childErrors.length > 0; + }, + fieldRowClasses: function fieldRowClasses() { + var _ref; - if (!isNumber_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 = []; + cov_1auykt9f6c.f[10]++; + var baseClasses = (cov_1auykt9f6c.s[17]++, (_ref = {}, _defineProperty(_ref, get_default()(this.options, "validationErrorClass", "error"), this.fieldHasErrors), _defineProperty(_ref, get_default()(this.options, "validationSuccessClass", "valid"), (cov_1auykt9f6c.b[3][0]++, !this.fieldHasErrors) && (cov_1auykt9f6c.b[3][1]++, this.childTouched)), _defineProperty(_ref, get_default()(this.options, "validationCleanClass", "clean"), (cov_1auykt9f6c.b[4][0]++, !this.fieldHasErrors) && (cov_1auykt9f6c.b[4][1]++, !this.childTouched)), _defineProperty(_ref, "disabled", this.getValueFromOption(this.field, "disabled")), _defineProperty(_ref, "readonly", this.getValueFromOption(this.field, "readonly")), _defineProperty(_ref, "featured", this.getValueFromOption(this.field, "featured")), _defineProperty(_ref, "required", this.getValueFromOption(this.field, "required")), _ref)); + cov_1auykt9f6c.s[18]++; + baseClasses = this.getStyleClasses(this.field, baseClasses); + cov_1auykt9f6c.s[19]++; - if (isString_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); + if (!isNil_default()(this.field.type)) { + cov_1auykt9f6c.b[5][0]++; + cov_1auykt9f6c.s[20]++; + baseClasses["field-" + this.field.type] = true; + } else { + cov_1auykt9f6c.b[5][1]++; } - if (!isNil_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)); + cov_1auykt9f6c.s[21]++; + return baseClasses; + }, + buttonsAreVisible: function buttonsAreVisible() { + cov_1auykt9f6c.f[11]++; + cov_1auykt9f6c.s[22]++; + return (cov_1auykt9f6c.b[6][0]++, isArray_default()(this.field.buttons)) && (cov_1auykt9f6c.b[6][1]++, this.field.buttons.length > 0); } - - return err; }, - array: function array(value, field, model) { - var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : resources; + methods: { + getValueFromOption: function getValueFromOption(field, option) { + var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : (cov_1auykt9f6c.b[7][0]++, false); + cov_1auykt9f6c.f[12]++; + cov_1auykt9f6c.s[23]++; - if (field.required) { - if (!isArray_default()(value)) { - return [msg(messages.thisNotArray)]; + if (isFunction_default()(field[option])) { + cov_1auykt9f6c.b[8][0]++; + cov_1auykt9f6c.s[24]++; + return field[option].call(this, this.model, field, this); + } else { + cov_1auykt9f6c.b[8][1]++; } - if (value.length === 0) { - return [msg(messages.fieldIsRequired)]; - } - } + cov_1auykt9f6c.s[25]++; - if (!isNil_default()(value)) { - if (!isNil_default()(field.fieldOptions.min) && value.length < field.fieldOptions.min) { - return [msg(messages.selectMinItems, field.fieldOptions.min)]; + if (isNil_default()(field[option])) { + cov_1auykt9f6c.b[9][0]++; + cov_1auykt9f6c.s[26]++; + return defaultValue; + } else { + cov_1auykt9f6c.b[9][1]++; } - if (!isNil_default()(field.fieldOptions.max) && value.length > field.fieldOptions.max) { - return [msg(messages.selectMaxItems, field.fieldOptions.max)]; - } + cov_1auykt9f6c.s[27]++; + return field[option]; + }, + buttonClickHandler: function buttonClickHandler(btn, field, event) { + cov_1auykt9f6c.f[13]++; + cov_1auykt9f6c.s[28]++; + return btn.onclick.call(this, this.model, field, event, this); + }, + onFieldTouched: function onFieldTouched() { + cov_1auykt9f6c.f[14]++; + cov_1auykt9f6c.s[29]++; + this.childTouched = true; + }, + onChildValidated: function onChildValidated(errors) { + cov_1auykt9f6c.f[15]++; + cov_1auykt9f6c.s[30]++; + this.childErrors = errors; } - }, - 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); + } +}); +// 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"); - if (!m) { - return [msg(messages.invalidDate)]; - } +// CONCATENATED MODULE: ./src/formElement.vue - var err = []; - if (!isNil_default()(field.fieldOptions.min)) { - var min = new Date(field.fieldOptions.min); - if (m.valueOf() < min.valueOf()) { - err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); - } - } - if (!isNil_default()(field.fieldOptions.max)) { - var max = new Date(field.fieldOptions.max); - if (m.valueOf() > max.valueOf()) { - err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_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; +/* normalize component */ - if (!isNil_default()(field.pattern)) { - var re = new RegExp(field.pattern); +var formElement_component = normalizeComponent( + src_formElementvue_type_script_lang_js_, + formElementvue_type_template_id_fc1a7bb6_render, + formElementvue_type_template_id_fc1a7bb6_staticRenderFns, + false, + null, + null, + null + +) - if (!re.test(value)) { - return [msg(messages.invalidFormat)]; +formElement_component.options.__file = "formElement.vue" +/* harmony default export */ var formElement = (formElement_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_ordn025cj = function () { + var path = "D:\\dev\\vue-form-generator\\src\\formGenerator.vue", + hash = "db4e640ecbe1b1eb8d262df4419d404d2ae8a540", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\formGenerator.vue", + statementMap: { + "0": { + start: { + line: 127, + column: 4 + }, + end: { + line: 127, + column: 14 + } + }, + "1": { + start: { + line: 134, + column: 4 + }, + end: { + line: 134, + column: 14 + } + }, + "2": { + start: { + line: 141, + column: 4 + }, + end: { + line: 147, + column: 6 + } + }, + "3": { + start: { + line: 160, + column: 4 + }, + end: { + line: 160, + column: 28 + } + }, + "4": { + start: { + line: 166, + column: 19 + }, + end: { + line: 166, + column: 28 + } + }, + "5": { + start: { + line: 167, + column: 2 + }, + end: { + line: 171, + column: 4 + } + }, + "6": { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, + "7": { + start: { + line: 177, + column: 4 + }, + end: { + line: 177, + column: 30 + } + }, + "8": { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, + "9": { + start: { + line: 188, + column: 5 + }, + end: { + line: 188, + column: 12 + } + }, + "10": { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, + "11": { + start: { + line: 192, + column: 5 + }, + end: { + line: 199, + column: 8 + } + }, + "12": { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, + "13": { + start: { + line: 195, + column: 7 + }, + end: { + line: 195, + column: 48 + } + }, + "14": { + start: { + line: 197, + column: 7 + }, + end: { + line: 197, + column: 36 + } + }, + "15": { + start: { + line: 203, + column: 4 + }, + end: { + line: 203, + column: 16 + } + }, + "16": { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + "17": { + start: { + line: 211, + column: 4 + }, + end: { + line: 216, + column: 7 + } + }, + "18": { + start: { + line: 212, + column: 5 + }, + end: { + line: 215, + column: 8 + } + }, + "19": { + start: { + line: 223, + column: 3 + }, + end: { + line: 223, + column: 58 + } + }, + "20": { + start: { + line: 223, + column: 43 + }, + end: { + line: 223, + column: 56 + } + }, + "21": { + start: { + line: 225, + column: 3 + }, + end: { + line: 225, + column: 50 + } + }, + "22": { + start: { + line: 227, + column: 17 + }, + end: { + line: 227, + column: 41 + } + }, + "23": { + start: { + line: 228, + column: 3 + }, + end: { + line: 228, + column: 55 + } + }, + "24": { + start: { + line: 232, + column: 3 + }, + end: { + line: 232, + column: 47 + } + }, + "25": { + start: { + line: 237, + column: 3 + }, + end: { + line: 277, + column: 6 + } + }, + "26": { + start: { + line: 238, + column: 4 + }, + end: { + line: 238, + column: 33 + } + }, + "27": { + start: { + line: 240, + column: 26 + }, + end: { + line: 240, + column: 27 + } + }, + "28": { + start: { + line: 242, + column: 21 + }, + end: { + line: 242, + column: 23 + } + }, + "29": { + start: { + line: 244, + column: 4 + }, + end: { + line: 248, + column: 7 + } + }, + "30": { + start: { + line: 246, + column: 5 + }, + end: { + line: 246, + column: 69 + } + }, + "31": { + start: { + line: 247, + column: 5 + }, + end: { + line: 247, + column: 24 + } + }, + "32": { + start: { + line: 250, + column: 20 + }, + end: { + line: 271, + column: 5 + } + }, + "33": { + start: { + line: 251, + column: 5 + }, + end: { + line: 251, + column: 23 + } + }, + "34": { + start: { + line: 253, + column: 5 + }, + end: { + line: 253, + column: 51 + } + }, + "35": { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, + "36": { + start: { + line: 256, + column: 6 + }, + end: { + line: 256, + column: 53 + } + }, + "37": { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, + "38": { + start: { + line: 258, + column: 7 + }, + end: { + line: 258, + column: 67 + } + }, + "39": { + start: { + line: 260, + column: 6 + }, + end: { + line: 260, + column: 31 + } + }, + "40": { + start: { + line: 261, + column: 20 + }, + end: { + line: 261, + column: 43 + } + }, + "41": { + start: { + line: 262, + column: 6 + }, + end: { + line: 262, + column: 57 + } + }, + "42": { + start: { + line: 263, + column: 6 + }, + end: { + line: 263, + column: 70 + } + }, + "43": { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, + "44": { + start: { + line: 266, + column: 7 + }, + end: { + line: 266, + column: 17 + } + }, + "45": { + start: { + line: 268, + column: 7 + }, + end: { + line: 268, + column: 26 + } + }, + "46": { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, + "47": { + start: { + line: 273, + column: 5 + }, + end: { + line: 273, + column: 66 + } + }, + "48": { + start: { + line: 275, + column: 4 + }, + end: { + line: 275, + column: 50 + } + }, + "49": { + start: { + line: 276, + column: 4 + }, + end: { + line: 276, + column: 49 + } + }, + "50": { + start: { + line: 282, + column: 3 + }, + end: { + line: 282, + column: 25 + } + }, + "51": { + start: { + line: 283, + column: 3 + }, + end: { + line: 283, + column: 78 + } + }, + "52": { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, + "53": { + start: { + line: 289, + column: 3 + }, + end: { + line: 289, + column: 63 + } + }, + "54": { + start: { + line: 291, + column: 2 + }, + end: { + line: 291, + column: 58 + } + }, + "55": { + start: { + line: 292, + column: 2 + }, + end: { + line: 292, + column: 64 + } + }, + "56": { + start: { + line: 293, + column: 2 + }, + end: { + line: 295, + column: 5 + } + }, + "57": { + start: { + line: 294, + column: 3 + }, + end: { + line: 294, + column: 59 + } + }, + "58": { + start: { + line: 296, + column: 2 + }, + end: { + line: 298, + column: 5 + } + }, + "59": { + start: { + line: 297, + column: 3 + }, + end: { + line: 297, + column: 59 + } + }, + "60": { + start: { + line: 301, + column: 2 + }, + end: { + line: 301, + column: 40 + } + }, + "61": { + start: { + line: 302, + column: 2 + }, + end: { + line: 302, + column: 38 + } + }, + "62": { + start: { + line: 303, + column: 2 + }, + end: { + line: 303, + column: 50 + } + }, + "63": { + start: { + line: 304, + column: 2 + }, + end: { + line: 304, + column: 42 + } + }, + "64": { + start: { + line: 305, + column: 2 + }, + end: { + line: 305, + column: 44 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 126, + column: 3 + }, + end: { + line: 126, + column: 4 + } + }, + loc: { + start: { + line: 126, + column: 13 + }, + end: { + line: 128, + column: 4 + } + }, + line: 126 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 133, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + loc: { + start: { + line: 133, + column: 13 + }, + end: { + line: 135, + column: 4 + } + }, + line: 133 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 4 + } + }, + loc: { + start: { + line: 140, + column: 13 + }, + end: { + line: 148, + column: 4 + } + }, + line: 140 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 159, + column: 3 + }, + end: { + line: 159, + column: 4 + } + }, + loc: { + start: { + line: 159, + column: 20 + }, + end: { + line: 161, + column: 4 + } + }, + line: 159 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 165, + column: 1 + }, + end: { + line: 165, + column: 2 + } + }, + loc: { + start: { + line: 165, + column: 8 + }, + end: { + line: 172, + column: 2 + } + }, + line: 165 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 175, + column: 2 + }, + end: { + line: 175, + column: 3 + } + }, + loc: { + start: { + line: 175, + column: 11 + }, + end: { + line: 179, + column: 3 + } + }, + line: 175 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 185, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + loc: { + start: { + line: 185, + column: 31 + }, + end: { + line: 201, + column: 4 + } + }, + line: 185 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 192, + column: 20 + }, + end: { + line: 192, + column: 21 + } + }, + loc: { + start: { + line: 192, + column: 26 + }, + end: { + line: 199, + column: 6 + } + }, + line: 192 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 195, + column: 28 + }, + end: { + line: 195, + column: 29 + } + }, + loc: { + start: { + line: 195, + column: 34 + }, + end: { + line: 195, + column: 36 + } + }, + line: 195 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 195, + column: 38 + }, + end: { + line: 195, + column: 39 + } + }, + loc: { + start: { + line: 195, + column: 44 + }, + end: { + line: 195, + column: 46 + } + }, + line: 195 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 202, + column: 14 + }, + end: { + line: 202, + column: 15 + } + }, + loc: { + start: { + line: 202, + column: 20 + }, + end: { + line: 204, + column: 4 + } + }, + line: 202 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 209, + column: 2 + }, + end: { + line: 209, + column: 3 + } + }, + loc: { + start: { + line: 209, + column: 39 + }, + end: { + line: 218, + column: 3 + } + }, + line: 209 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 211, + column: 24 + }, + end: { + line: 211, + column: 25 + } + }, + loc: { + start: { + line: 211, + column: 35 + }, + end: { + line: 216, + column: 5 + } + }, + line: 211 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 221, + column: 2 + }, + end: { + line: 221, + column: 3 + } + }, + loc: { + start: { + line: 221, + column: 51 + }, + end: { + line: 229, + column: 3 + } + }, + line: 221 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 223, + column: 36 + }, + end: { + line: 223, + column: 37 + } + }, + loc: { + start: { + line: 223, + column: 43 + }, + end: { + line: 223, + column: 56 + } + }, + line: 223 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 231, + column: 2 + }, + end: { + line: 231, + column: 3 + } + }, + loc: { + start: { + line: 231, + column: 33 + }, + end: { + line: 233, + column: 3 + } + }, + line: 231 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 236, + column: 2 + }, + end: { + line: 236, + column: 3 + } + }, + loc: { + start: { + line: 236, + column: 13 + }, + end: { + line: 278, + column: 3 + } + }, + line: 236 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 237, + column: 22 + }, + end: { + line: 237, + column: 23 + } + }, + loc: { + start: { + line: 237, + column: 43 + }, + end: { + line: 277, + column: 4 + } + }, + line: 237 + }, + "18": { + name: "(anonymous_18)", + decl: { + start: { + line: 244, + column: 45 + }, + end: { + line: 244, + column: 46 + } + }, + loc: { + start: { + line: 244, + column: 51 + }, + end: { + line: 248, + column: 5 + } + }, + line: 244 + }, + "19": { + name: "(anonymous_19)", + decl: { + start: { + line: 250, + column: 20 + }, + end: { + line: 250, + column: 21 + } + }, + loc: { + start: { + line: 250, + column: 51 + }, + end: { + line: 271, + column: 5 + } + }, + line: 250 + }, + "20": { + name: "(anonymous_20)", + decl: { + start: { + line: 281, + column: 2 + }, + end: { + line: 281, + column: 3 + } + }, + loc: { + start: { + line: 281, + column: 26 + }, + end: { + line: 284, + column: 3 + } + }, + line: 281 + }, + "21": { + name: "(anonymous_21)", + decl: { + start: { + line: 287, + column: 1 + }, + end: { + line: 287, + column: 2 + } + }, + loc: { + start: { + line: 287, + column: 11 + }, + end: { + line: 299, + column: 2 + } + }, + line: 287 + }, + "22": { + name: "(anonymous_22)", + decl: { + start: { + line: 293, + column: 41 + }, + end: { + line: 293, + column: 42 + } + }, + loc: { + start: { + line: 293, + column: 47 + }, + end: { + line: 295, + column: 3 + } + }, + line: 293 + }, + "23": { + name: "(anonymous_23)", + decl: { + start: { + line: 296, + column: 43 + }, + end: { + line: 296, + column: 44 + } + }, + loc: { + start: { + line: 296, + column: 49 + }, + end: { + line: 298, + column: 3 + } + }, + line: 296 + }, + "24": { + name: "(anonymous_24)", + decl: { + start: { + line: 300, + column: 1 + }, + end: { + line: 300, + column: 2 + } + }, + loc: { + start: { + line: 300, + column: 17 + }, + end: { + line: 306, + column: 2 + } + }, + line: 300 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }, { + start: { + line: 176, + column: 3 + }, + end: { + line: 178, + column: 4 + } + }], + line: 176 + }, + "1": { + loc: { + start: { + line: 176, + column: 7 + }, + end: { + line: 176, + column: 40 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 176, + column: 7 + }, + end: { + line: 176, + column: 18 + } + }, { + start: { + line: 176, + column: 22 + }, + end: { + line: 176, + column: 40 + } + }], + line: 176 + }, + "2": { + loc: { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }, { + start: { + line: 186, + column: 4 + }, + end: { + line: 189, + column: 5 + } + }], + line: 186 + }, + "3": { + loc: { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }, { + start: { + line: 191, + column: 4 + }, + end: { + line: 200, + column: 5 + } + }], + line: 191 + }, + "4": { + loc: { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }, { + start: { + line: 194, + column: 6 + }, + end: { + line: 198, + column: 7 + } + }], + line: 194 + }, + "5": { + loc: { + start: { + line: 194, + column: 10 + }, + end: { + line: 194, + column: 77 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 194, + column: 10 + }, + end: { + line: 194, + column: 49 + } + }, { + start: { + line: 194, + column: 53 + }, + end: { + line: 194, + column: 77 + } + }], + line: 194 + }, + "6": { + loc: { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, { + start: { + line: 210, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }], + line: 210 + }, + "7": { + loc: { + start: { + line: 210, + column: 7 + }, + end: { + line: 210, + column: 53 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 210, + column: 7 + }, + end: { + line: 210, + column: 27 + } + }, { + start: { + line: 210, + column: 31 + }, + end: { + line: 210, + column: 53 + } + }], + line: 210 + }, + "8": { + loc: { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }, { + start: { + line: 255, + column: 5 + }, + end: { + line: 270, + column: 6 + } + }], + line: 255 + }, + "9": { + loc: { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }, { + start: { + line: 257, + column: 6 + }, + end: { + line: 259, + column: 7 + } + }], + line: 257 + }, + "10": { + loc: { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }, { + start: { + line: 265, + column: 6 + }, + end: { + line: 269, + column: 7 + } + }], + line: 265 + }, + "11": { + loc: { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }, { + start: { + line: 272, + column: 4 + }, + end: { + line: 274, + column: 5 + } + }], + line: 272 + }, + "12": { + loc: { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }, { + start: { + line: 288, + column: 2 + }, + end: { + line: 290, + column: 3 + } + }], + line: 288 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ var formGeneratorvue_type_script_lang_js_ = ({ + name: "form-generator", + components: { + formGroup: formGroup, + formElement: formElement + }, + props: { + schema: { + type: Object, + default: function _default() { + cov_ordn025cj.f[0]++; + cov_ordn025cj.s[0]++; + return {}; + } + }, + model: { + type: Object, + default: function _default() { + cov_ordn025cj.f[1]++; + cov_ordn025cj.s[1]++; + return {}; + } + }, + options: { + type: Object, + default: function _default() { + cov_ordn025cj.f[2]++; + cov_ordn025cj.s[2]++; + return { + validateAfterLoad: false, + validateAsync: false, + validateAfterChanged: false, + validationErrorClass: "error", + validationSuccessClass: "" + }; + } + }, + isNewModel: { + type: Boolean, + default: false + }, + tag: { + type: String, + default: "fieldset", + validator: function validator(value) { + cov_ordn025cj.f[3]++; + cov_ordn025cj.s[3]++; + return value.length > 0; + } + } + }, + data: function data() { + cov_ordn025cj.f[4]++; + var eventBus = (cov_ordn025cj.s[4]++, new external_commonjs_vue_commonjs2_vue_root_Vue_default.a()); + cov_ordn025cj.s[5]++; + return { + eventBus: eventBus, + totalNumberOfFields: 0, + errors: [] // Validation errors + + }; + }, + computed: { + fields: function fields() { + cov_ordn025cj.f[5]++; + cov_ordn025cj.s[6]++; + + if ((cov_ordn025cj.b[1][0]++, this.schema) && (cov_ordn025cj.b[1][1]++, this.schema.fields)) { + cov_ordn025cj.b[0][0]++; + cov_ordn025cj.s[7]++; + return this.schema.fields; + } else { + cov_ordn025cj.b[0][1]++; + } + } + }, + watch: { + // new model loaded + model: { + handler: function handler(newModel, oldModel) { + var _this = this; + + cov_ordn025cj.f[6]++; + cov_ordn025cj.s[8]++; + + if (oldModel === newModel) { + cov_ordn025cj.b[2][0]++; + cov_ordn025cj.s[9]++; + // model property changed, skip + return; + } else { + cov_ordn025cj.b[2][1]++; + } + + cov_ordn025cj.s[10]++; + + if (newModel != null) { + cov_ordn025cj.b[3][0]++; + cov_ordn025cj.s[11]++; + this.$nextTick(function () { + cov_ordn025cj.f[7]++; + cov_ordn025cj.s[12]++; + + // Model changed! + if ((cov_ordn025cj.b[5][0]++, _this.options.validateAfterLoad === true) && (cov_ordn025cj.b[5][1]++, _this.isNewModel !== true)) { + cov_ordn025cj.b[4][0]++; + cov_ordn025cj.s[13]++; + + _this.validate().then(function () { + cov_ordn025cj.f[8]++; + }, function () { + cov_ordn025cj.f[9]++; + }); + } else { + cov_ordn025cj.b[4][1]++; + cov_ordn025cj.s[14]++; + + _this.clearValidationErrors(); + } + }); + } else { + cov_ordn025cj.b[3][1]++; + } + }, + immediate: function immediate() { + cov_ordn025cj.f[10]++; + cov_ordn025cj.s[15]++; + return true; + } + } + }, + methods: { + fillErrors: function fillErrors(fieldErrors, errors, uid) { + cov_ordn025cj.f[11]++; + cov_ordn025cj.s[16]++; + + if ((cov_ordn025cj.b[7][0]++, isArray_default()(fieldErrors)) && (cov_ordn025cj.b[7][1]++, fieldErrors.length > 0)) { + cov_ordn025cj.b[6][0]++; + cov_ordn025cj.s[17]++; + fieldErrors.forEach(function (error) { + cov_ordn025cj.f[12]++; + cov_ordn025cj.s[18]++; + errors.push({ + uid: uid, + error: error + }); + }); + } else { + cov_ordn025cj.b[6][1]++; + } + }, + // Child field executed validation + onFieldValidated: function onFieldValidated(fieldIsValid, fieldErrors, uid) { + cov_ordn025cj.f[13]++; + cov_ordn025cj.s[19]++; + // Remove old errors for this field + this.errors = this.errors.filter(function (e) { + cov_ordn025cj.f[14]++; + cov_ordn025cj.s[20]++; + return e.uid !== uid; + }); + cov_ordn025cj.s[21]++; + this.fillErrors(fieldErrors, this.errors, uid); + var isValid = (cov_ordn025cj.s[22]++, this.errors.length === 0); + cov_ordn025cj.s[23]++; + this.$emit("validated", isValid, this.errors, this); + }, + onModelUpdated: function onModelUpdated(newVal, schema) { + cov_ordn025cj.f[15]++; + cov_ordn025cj.s[24]++; + this.$emit("model-updated", newVal, schema); + }, + // Validating the model properties + validate: function validate() { + var _this2 = this; + + cov_ordn025cj.f[16]++; + cov_ordn025cj.s[25]++; + return new Promise(function (resolve, reject) { + cov_ordn025cj.f[17]++; + cov_ordn025cj.s[26]++; + + _this2.clearValidationErrors(); + + var fieldsValidated = (cov_ordn025cj.s[27]++, 0); + var formErrors = (cov_ordn025cj.s[28]++, []); + cov_ordn025cj.s[29]++; + + _this2.eventBus.$on("field-deregistering", function () { + cov_ordn025cj.f[18]++; + cov_ordn025cj.s[30]++; + + // console.warn("Fields were deleted during validation process"); + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + cov_ordn025cj.s[31]++; + reject(formErrors); + }); + + cov_ordn025cj.s[32]++; + + var counter = function counter(isValid, fieldErrors, uid) { + cov_ordn025cj.f[19]++; + cov_ordn025cj.s[33]++; + fieldsValidated++; + cov_ordn025cj.s[34]++; + + _this2.fillErrors(fieldErrors, formErrors, uid); + + cov_ordn025cj.s[35]++; + + if (fieldsValidated === _this2.totalNumberOfFields) { + cov_ordn025cj.b[8][0]++; + cov_ordn025cj.s[36]++; + + _this2.eventBus.$off("field-validated", counter); + + cov_ordn025cj.s[37]++; + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[9][0]++; + cov_ordn025cj.s[38]++; + + _this2.eventBus.$on("field-validated", _this2.onFieldValidated); + } else { + cov_ordn025cj.b[9][1]++; + } + + cov_ordn025cj.s[39]++; + _this2.errors = formErrors; + + var _isValid = (cov_ordn025cj.s[40]++, formErrors.length === 0); + + cov_ordn025cj.s[41]++; + + _this2.$emit("validated", _isValid, formErrors, _this2); + + cov_ordn025cj.s[42]++; + + _this2.eventBus.$emit("fields-validation-terminated", formErrors); + + cov_ordn025cj.s[43]++; + + if (_isValid) { + cov_ordn025cj.b[10][0]++; + cov_ordn025cj.s[44]++; + resolve(); + } else { + cov_ordn025cj.b[10][1]++; + cov_ordn025cj.s[45]++; + reject(formErrors); + } + } else { + cov_ordn025cj.b[8][1]++; + } + }; + + cov_ordn025cj.s[46]++; + + if (get_default()(_this2.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[11][0]++; + cov_ordn025cj.s[47]++; + + _this2.eventBus.$off("field-validated", _this2.onFieldValidated); + } else { + cov_ordn025cj.b[11][1]++; + } + + cov_ordn025cj.s[48]++; + + _this2.eventBus.$on("field-validated", counter); + + cov_ordn025cj.s[49]++; + + _this2.eventBus.$emit("validate-fields", _this2); + }); + }, + // Clear validation errors + clearValidationErrors: function clearValidationErrors() { + cov_ordn025cj.f[20]++; + cov_ordn025cj.s[50]++; + this.errors.splice(0); + cov_ordn025cj.s[51]++; + this.eventBus.$emit("clear-validation-errors", this.clearValidationErrors); + } + }, + created: function created() { + var _this3 = this; + + cov_ordn025cj.f[21]++; + cov_ordn025cj.s[52]++; + + if (get_default()(this.options, "validateAfterChanged", false)) { + cov_ordn025cj.b[12][0]++; + cov_ordn025cj.s[53]++; + this.eventBus.$on("field-validated", this.onFieldValidated); + } else { + cov_ordn025cj.b[12][1]++; + } + + cov_ordn025cj.s[54]++; + this.eventBus.$on("model-updated", this.onModelUpdated); + cov_ordn025cj.s[55]++; + this.eventBus.$on("fields-validation-trigger", this.validate); + cov_ordn025cj.s[56]++; + this.eventBus.$on("field-registering", function () { + cov_ordn025cj.f[22]++; + cov_ordn025cj.s[57]++; + _this3.totalNumberOfFields = _this3.totalNumberOfFields + 1; + }); + cov_ordn025cj.s[58]++; + this.eventBus.$on("field-deregistering", function () { + cov_ordn025cj.f[23]++; + cov_ordn025cj.s[59]++; + _this3.totalNumberOfFields = _this3.totalNumberOfFields - 1; + }); + }, + beforeDestroy: function beforeDestroy() { + cov_ordn025cj.f[24]++; + cov_ordn025cj.s[60]++; + this.eventBus.$off("field-validated"); + cov_ordn025cj.s[61]++; + this.eventBus.$off("model-updated"); + cov_ordn025cj.s[62]++; + this.eventBus.$off("fields-validation-trigger"); + cov_ordn025cj.s[63]++; + this.eventBus.$off("field-registering"); + cov_ordn025cj.s[64]++; + 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 = normalizeComponent( + src_formGeneratorvue_type_script_lang_js_, + render, + staticRenderFns, + false, + null, + null, + null + +) + +formGenerator_component.options.__file = "formGenerator.vue" +/* harmony default export */ var formGenerator = (formGenerator_component.exports); +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js +var es6_array_iterator = __webpack_require__("cadf"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js +var es6_object_keys = __webpack_require__("456d"); + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js +var es6_regexp_constructor = __webpack_require__("3b2b"); + +// EXTERNAL MODULE: ./node_modules/lodash/isInteger.js +var isInteger = __webpack_require__("697e"); +var isInteger_default = /*#__PURE__*/__webpack_require__.n(isInteger); + +// 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/defaults.js +var defaults = __webpack_require__("95ae"); +var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults); + +// EXTERNAL MODULE: ./node_modules/fecha/fecha.js +var fecha = __webpack_require__("9e99"); +var fecha_default = /*#__PURE__*/__webpack_require__.n(fecha); + +// CONCATENATED MODULE: ./src/utils/validators.js +var cov_1fcwr61zql = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\validators.js", + hash = "52f5775a27146fed9d406240542b06f3a114a90f", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\validators.js", + statementMap: { + "0": { + start: { + line: 4, + column: 16 + }, + end: { + line: 34, + column: 1 + } + }, + "1": { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, + "2": { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, + "3": { + start: { + line: 39, + column: 3 + }, + end: { + line: 39, + column: 42 + } + }, + "4": { + start: { + line: 41, + column: 3 + }, + end: { + line: 41, + column: 13 + } + }, + "5": { + start: { + line: 44, + column: 1 + }, + end: { + line: 44, + column: 13 + } + }, + "6": { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, + "7": { + start: { + line: 49, + column: 2 + }, + end: { + line: 51, + column: 3 + } + }, + "8": { + start: { + line: 50, + column: 3 + }, + end: { + line: 50, + column: 58 + } + }, + "9": { + start: { + line: 54, + column: 1 + }, + end: { + line: 54, + column: 13 + } + }, + "10": { + start: { + line: 57, + column: 19 + }, + end: { + line: 265, + column: 1 + } + }, + "11": { + start: { + line: 61, + column: 2 + }, + end: { + line: 61, + column: 53 + } + }, + "12": { + start: { + line: 65, + column: 12 + }, + end: { + line: 65, + column: 55 + } + }, + "13": { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, + "14": { + start: { + line: 67, + column: 3 + }, + end: { + line: 67, + column: 14 + } + }, + "15": { + start: { + line: 70, + column: 12 + }, + end: { + line: 70, + column: 14 + } + }, + "16": { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + "17": { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, + "18": { + start: { + line: 73, + column: 4 + }, + end: { + line: 73, + column: 67 + } + }, + "19": { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + "20": { + start: { + line: 77, + column: 4 + }, + end: { + line: 77, + column: 65 + } + }, + "21": { + start: { + line: 80, + column: 3 + }, + end: { + line: 80, + column: 41 + } + }, + "22": { + start: { + line: 83, + column: 2 + }, + end: { + line: 83, + column: 13 + } + }, + "23": { + start: { + line: 87, + column: 12 + }, + end: { + line: 87, + column: 55 + } + }, + "24": { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, + "25": { + start: { + line: 88, + column: 19 + }, + end: { + line: 88, + column: 30 + } + }, + "26": { + start: { + line: 89, + column: 13 + }, + end: { + line: 89, + column: 61 + } + }, + "27": { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, + "28": { + start: { + line: 92, + column: 3 + }, + end: { + line: 92, + column: 43 + } + }, + "29": { + start: { + line: 95, + column: 2 + }, + end: { + line: 95, + column: 14 + } + }, + "30": { + start: { + line: 99, + column: 12 + }, + end: { + line: 99, + column: 55 + } + }, + "31": { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, + "32": { + start: { + line: 100, + column: 19 + }, + end: { + line: 100, + column: 30 + } + }, + "33": { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, + "34": { + start: { + line: 103, + column: 3 + }, + end: { + line: 103, + column: 40 + } + }, + "35": { + start: { + line: 108, + column: 12 + }, + end: { + line: 108, + column: 55 + } + }, + "36": { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, + "37": { + start: { + line: 109, + column: 19 + }, + end: { + line: 109, + column: 30 + } + }, + "38": { + start: { + line: 111, + column: 12 + }, + end: { + line: 111, + column: 14 + } + }, + "39": { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + "40": { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "41": { + start: { + line: 114, + column: 4 + }, + end: { + line: 114, + column: 79 + } + }, + "42": { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + "43": { + start: { + line: 118, + column: 4 + }, + end: { + line: 118, + column: 77 + } + }, + "44": { + start: { + line: 121, + column: 3 + }, + end: { + line: 121, + column: 39 + } + }, + "45": { + start: { + line: 124, + column: 2 + }, + end: { + line: 124, + column: 13 + } + }, + "46": { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, + "47": { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, + "48": { + start: { + line: 130, + column: 4 + }, + end: { + line: 130, + column: 40 + } + }, + "49": { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, + "50": { + start: { + line: 134, + column: 4 + }, + end: { + line: 134, + column: 43 + } + }, + "51": { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, + "52": { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, + "53": { + start: { + line: 140, + column: 4 + }, + end: { + line: 140, + column: 66 + } + }, + "54": { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "55": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 66 + } + }, + "56": { + start: { + line: 150, + column: 12 + }, + end: { + line: 150, + column: 55 + } + }, + "57": { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, + "58": { + start: { + line: 151, + column: 19 + }, + end: { + line: 151, + column: 30 + } + }, + "59": { + start: { + line: 153, + column: 10 + }, + end: { + line: 153, + column: 25 + } + }, + "60": { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, + "61": { + start: { + line: 155, + column: 3 + }, + end: { + line: 155, + column: 38 + } + }, + "62": { + start: { + line: 158, + column: 12 + }, + end: { + line: 158, + column: 14 + } + }, + "63": { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + "64": { + start: { + line: 161, + column: 13 + }, + end: { + line: 161, + column: 45 + } + }, + "65": { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, + "66": { + start: { + line: 163, + column: 4 + }, + end: { + line: 163, + column: 76 + } + }, + "67": { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, + "68": { + start: { + line: 168, + column: 13 + }, + end: { + line: 168, + column: 45 + } + }, + "69": { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, + "70": { + start: { + line: 170, + column: 4 + }, + end: { + line: 170, + column: 75 + } + }, + "71": { + start: { + line: 174, + column: 2 + }, + end: { + line: 174, + column: 13 + } + }, + "72": { + start: { + line: 178, + column: 12 + }, + end: { + line: 178, + column: 55 + } + }, + "73": { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, + "74": { + start: { + line: 179, + column: 19 + }, + end: { + line: 179, + column: 30 + } + }, + "75": { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, + "76": { + start: { + line: 182, + column: 12 + }, + end: { + line: 182, + column: 37 + } + }, + "77": { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + "78": { + start: { + line: 184, + column: 4 + }, + end: { + line: 184, + column: 41 + } + }, + "79": { + start: { + line: 190, + column: 12 + }, + end: { + line: 190, + column: 55 + } + }, + "80": { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, + "81": { + start: { + line: 191, + column: 19 + }, + end: { + line: 191, + column: 30 + } + }, + "82": { + start: { + line: 193, + column: 11 + }, + end: { + line: 193, + column: 163 + } + }, + "83": { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, + "84": { + start: { + line: 195, + column: 3 + }, + end: { + line: 195, + column: 39 + } + }, + "85": { + start: { + line: 200, + column: 12 + }, + end: { + line: 200, + column: 55 + } + }, + "86": { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, + "87": { + start: { + line: 201, + column: 19 + }, + end: { + line: 201, + column: 30 + } + }, + "88": { + start: { + line: 203, + column: 11 + }, + end: { + line: 203, + column: 105 + } + }, + "89": { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, + "90": { + start: { + line: 205, + column: 3 + }, + end: { + line: 205, + column: 37 + } + }, + "91": { + start: { + line: 210, + column: 12 + }, + end: { + line: 210, + column: 55 + } + }, + "92": { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, + "93": { + start: { + line: 211, + column: 19 + }, + end: { + line: 211, + column: 30 + } + }, + "94": { + start: { + line: 216, + column: 21 + }, + end: { + line: 216, + column: 172 + } + }, + "95": { + start: { + line: 217, + column: 20 + }, + end: { + line: 217, + column: 49 + } + }, + "96": { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, + "97": { + start: { + line: 219, + column: 3 + }, + end: { + line: 219, + column: 38 + } + }, + "98": { + start: { + line: 221, + column: 12 + }, + end: { + line: 221, + column: 13 + } + }, + "99": { + start: { + line: 225, + column: 2 + }, + end: { + line: 239, + column: 3 + } + }, + "100": { + start: { + line: 226, + column: 3 + }, + end: { + line: 226, + column: 41 + } + }, + "101": { + start: { + line: 227, + column: 3 + }, + end: { + line: 227, + column: 32 + } + }, + "102": { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, + "103": { + start: { + line: 229, + column: 4 + }, + end: { + line: 229, + column: 16 + } + }, + "104": { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, + "105": { + start: { + line: 231, + column: 5 + }, + end: { + line: 231, + column: 30 + } + }, + "106": { + start: { + line: 233, + column: 5 + }, + end: { + line: 233, + column: 19 + } + }, + "107": { + start: { + line: 236, + column: 4 + }, + end: { + line: 236, + column: 18 + } + }, + "108": { + start: { + line: 238, + column: 3 + }, + end: { + line: 238, + column: 32 + } + }, + "109": { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, + "110": { + start: { + line: 242, + column: 3 + }, + end: { + line: 242, + column: 44 + } + }, + "111": { + start: { + line: 247, + column: 12 + }, + end: { + line: 247, + column: 55 + } + }, + "112": { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, + "113": { + start: { + line: 248, + column: 19 + }, + end: { + line: 248, + column: 30 + } + }, + "114": { + start: { + line: 250, + column: 11 + }, + end: { + line: 250, + column: 24 + } + }, + "115": { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, + "116": { + start: { + line: 252, + column: 3 + }, + end: { + line: 252, + column: 51 + } + }, + "117": { + start: { + line: 257, + column: 12 + }, + end: { + line: 257, + column: 55 + } + }, + "118": { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, + "119": { + start: { + line: 258, + column: 19 + }, + end: { + line: 258, + column: 30 + } + }, + "120": { + start: { + line: 260, + column: 11 + }, + end: { + line: 260, + column: 27 + } + }, + "121": { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, + "122": { + start: { + line: 262, + column: 3 + }, + end: { + line: 262, + column: 49 + } + }, + "123": { + start: { + line: 267, + column: 0 + }, + end: { + line: 273, + column: 3 + } + }, + "124": { + start: { + line: 268, + column: 12 + }, + end: { + line: 268, + column: 28 + } + }, + "125": { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, + "126": { + start: { + line: 270, + column: 2 + }, + end: { + line: 271, + column: 64 + } + }, + "127": { + start: { + line: 270, + column: 34 + }, + end: { + line: 271, + column: 63 + } + }, + "128": { + start: { + line: 271, + column: 3 + }, + end: { + line: 271, + column: 63 + } + } + }, + fnMap: { + "0": { + name: "checkEmpty", + decl: { + start: { + line: 36, + column: 9 + }, + end: { + line: 36, + column: 19 + } + }, + loc: { + start: { + line: 36, + column: 59 + }, + end: { + line: 45, + column: 1 + } + }, + line: 36 + }, + "1": { + name: "msg", + decl: { + start: { + line: 47, + column: 9 + }, + end: { + line: 47, + column: 12 + } + }, + loc: { + start: { + line: 47, + column: 19 + }, + end: { + line: 55, + column: 1 + } + }, + line: 47 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 60, + column: 1 + }, + end: { + line: 60, + column: 2 + } + }, + loc: { + start: { + line: 60, + column: 53 + }, + end: { + line: 62, + column: 2 + } + }, + line: 60 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 64, + column: 1 + }, + end: { + line: 64, + column: 2 + } + }, + loc: { + start: { + line: 64, + column: 51 + }, + end: { + line: 84, + column: 2 + } + }, + line: 64 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 86, + column: 1 + }, + end: { + line: 86, + column: 2 + } + }, + loc: { + start: { + line: 86, + column: 52 + }, + end: { + line: 96, + column: 2 + } + }, + line: 86 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 98, + column: 1 + }, + end: { + line: 98, + column: 2 + } + }, + loc: { + start: { + line: 98, + column: 51 + }, + end: { + line: 105, + column: 2 + } + }, + line: 98 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 107, + column: 1 + }, + end: { + line: 107, + column: 2 + } + }, + loc: { + start: { + line: 107, + column: 51 + }, + end: { + line: 125, + column: 2 + } + }, + line: 107 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 127, + column: 1 + }, + end: { + line: 127, + column: 2 + } + }, + loc: { + start: { + line: 127, + column: 50 + }, + end: { + line: 147, + column: 2 + } + }, + line: 127 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 149, + column: 1 + }, + end: { + line: 149, + column: 2 + } + }, + loc: { + start: { + line: 149, + column: 49 + }, + end: { + line: 175, + column: 2 + } + }, + line: 149 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 177, + column: 1 + }, + end: { + line: 177, + column: 2 + } + }, + loc: { + start: { + line: 177, + column: 51 + }, + end: { + line: 187, + column: 2 + } + }, + line: 177 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 189, + column: 1 + }, + end: { + line: 189, + column: 2 + } + }, + loc: { + start: { + line: 189, + column: 50 + }, + end: { + line: 197, + column: 2 + } + }, + line: 189 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 199, + column: 1 + }, + end: { + line: 199, + column: 2 + } + }, + loc: { + start: { + line: 199, + column: 48 + }, + end: { + line: 207, + column: 2 + } + }, + line: 199 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 209, + column: 1 + }, + end: { + line: 209, + column: 2 + } + }, + loc: { + start: { + line: 209, + column: 55 + }, + end: { + line: 244, + column: 2 + } + }, + line: 209 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 246, + column: 1 + }, + end: { + line: 246, + column: 2 + } + }, + loc: { + start: { + line: 246, + column: 50 + }, + end: { + line: 254, + column: 2 + } + }, + line: 246 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 256, + column: 1 + }, + end: { + line: 256, + column: 2 + } + }, + loc: { + start: { + line: 256, + column: 57 + }, + end: { + line: 264, + column: 2 + } + }, + line: 256 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 267, + column: 32 + }, + end: { + line: 267, + column: 33 + } + }, + loc: { + start: { + line: 267, + column: 42 + }, + end: { + line: 273, + column: 1 + } + }, + line: 267 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 270, + column: 14 + }, + end: { + line: 270, + column: 15 + } + }, + loc: { + start: { + line: 270, + column: 34 + }, + end: { + line: 271, + column: 63 + } + }, + line: 270 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 270, + column: 34 + }, + end: { + line: 270, + column: 35 + } + }, + loc: { + start: { + line: 271, + column: 3 + }, + end: { + line: 271, + column: 63 + } + }, + line: 271 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 36, + column: 37 + }, + end: { + line: 36, + column: 57 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 36, + column: 48 + }, + end: { + line: 36, + column: 57 + } + }], + line: 36 + }, + "1": { + loc: { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }, { + start: { + line: 37, + column: 1 + }, + end: { + line: 43, + column: 2 + } + }], + line: 37 + }, + "2": { + loc: { + start: { + line: 37, + column: 5 + }, + end: { + line: 37, + column: 33 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 37, + column: 5 + }, + end: { + line: 37, + column: 17 + } + }, { + start: { + line: 37, + column: 21 + }, + end: { + line: 37, + column: 33 + } + }], + line: 37 + }, + "3": { + loc: { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }, { + start: { + line: 38, + column: 2 + }, + end: { + line: 42, + column: 3 + } + }], + line: 38 + }, + "4": { + loc: { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }, { + start: { + line: 48, + column: 1 + }, + end: { + line: 52, + column: 2 + } + }], + line: 48 + }, + "5": { + loc: { + start: { + line: 48, + column: 5 + }, + end: { + line: 48, + column: 41 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 48, + column: 5 + }, + end: { + line: 48, + column: 17 + } + }, { + start: { + line: 48, + column: 21 + }, + end: { + line: 48, + column: 41 + } + }], + line: 48 + }, + "6": { + loc: { + start: { + line: 60, + column: 31 + }, + end: { + line: 60, + column: 51 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 60, + column: 42 + }, + end: { + line: 60, + column: 51 + } + }], + line: 60 + }, + "7": { + loc: { + start: { + line: 64, + column: 29 + }, + end: { + line: 64, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 64, + column: 40 + }, + end: { + line: 64, + column: 49 + } + }], + line: 64 + }, + "8": { + loc: { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }, { + start: { + line: 66, + column: 2 + }, + end: { + line: 68, + column: 3 + } + }], + line: 66 + }, + "9": { + loc: { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, { + start: { + line: 71, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }], + line: 71 + }, + "10": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 4 + } + }], + line: 72 + }, + "11": { + loc: { + start: { + line: 72, + column: 7 + }, + end: { + line: 72, + column: 101 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 72, + column: 7 + }, + end: { + line: 72, + column: 33 + } + }, { + start: { + line: 72, + column: 37 + }, + end: { + line: 72, + column: 67 + } + }, { + start: { + line: 72, + column: 71 + }, + end: { + line: 72, + column: 101 + } + }], + line: 72 + }, + "12": { + loc: { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, { + start: { + line: 76, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }], + line: 76 + }, + "13": { + loc: { + start: { + line: 76, + column: 7 + }, + end: { + line: 76, + column: 101 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 76, + column: 7 + }, + end: { + line: 76, + column: 33 + } + }, { + start: { + line: 76, + column: 37 + }, + end: { + line: 76, + column: 67 + } + }, { + start: { + line: 76, + column: 71 + }, + end: { + line: 76, + column: 101 + } + }], + line: 76 + }, + "14": { + loc: { + start: { + line: 86, + column: 30 + }, + end: { + line: 86, + column: 50 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 86, + column: 41 + }, + end: { + line: 86, + column: 50 + } + }], + line: 86 + }, + "15": { + loc: { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }, { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 30 + } + }], + line: 88 + }, + "16": { + loc: { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }, { + start: { + line: 91, + column: 2 + }, + end: { + line: 93, + column: 3 + } + }], + line: 91 + }, + "17": { + loc: { + start: { + line: 98, + column: 29 + }, + end: { + line: 98, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 98, + column: 40 + }, + end: { + line: 98, + column: 49 + } + }], + line: 98 + }, + "18": { + loc: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }, { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 30 + } + }], + line: 100 + }, + "19": { + loc: { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }, { + start: { + line: 102, + column: 2 + }, + end: { + line: 104, + column: 3 + } + }], + line: 102 + }, + "20": { + loc: { + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 38 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 22 + } + }, { + start: { + line: 102, + column: 26 + }, + end: { + line: 102, + column: 38 + } + }], + line: 102 + }, + "21": { + loc: { + start: { + line: 107, + column: 29 + }, + end: { + line: 107, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 107, + column: 40 + }, + end: { + line: 107, + column: 49 + } + }], + line: 107 + }, + "22": { + loc: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }, { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 30 + } + }], + line: 109 + }, + "23": { + loc: { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }, { + start: { + line: 112, + column: 2 + }, + end: { + line: 122, + column: 3 + } + }], + line: 112 + }, + "24": { + loc: { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, { + start: { + line: 113, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }], + line: 113 + }, + "25": { + loc: { + start: { + line: 113, + column: 7 + }, + end: { + line: 113, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 113, + column: 7 + }, + end: { + line: 113, + column: 37 + } + }, { + start: { + line: 113, + column: 41 + }, + end: { + line: 113, + column: 78 + } + }], + line: 113 + }, + "26": { + loc: { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, { + start: { + line: 117, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }], + line: 117 + }, + "27": { + loc: { + start: { + line: 117, + column: 7 + }, + end: { + line: 117, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 117, + column: 7 + }, + end: { + line: 117, + column: 37 + } + }, { + start: { + line: 117, + column: 41 + }, + end: { + line: 117, + column: 78 + } + }], + line: 117 + }, + "28": { + loc: { + start: { + line: 127, + column: 28 + }, + end: { + line: 127, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 127, + column: 39 + }, + end: { + line: 127, + column: 48 + } + }], + line: 127 + }, + "29": { + loc: { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }, { + start: { + line: 128, + column: 2 + }, + end: { + line: 136, + column: 3 + } + }], + line: 128 + }, + "30": { + loc: { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }, { + start: { + line: 129, + column: 3 + }, + end: { + line: 131, + column: 4 + } + }], + line: 129 + }, + "31": { + loc: { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }, { + start: { + line: 133, + column: 3 + }, + end: { + line: 135, + column: 4 + } + }], + line: 133 + }, + "32": { + loc: { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }, { + start: { + line: 138, + column: 2 + }, + end: { + line: 146, + column: 3 + } + }], + line: 138 + }, + "33": { + loc: { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }, { + start: { + line: 139, + column: 3 + }, + end: { + line: 141, + column: 4 + } + }], + line: 139 + }, + "34": { + loc: { + start: { + line: 139, + column: 7 + }, + end: { + line: 139, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 139, + column: 7 + }, + end: { + line: 139, + column: 37 + } + }, { + start: { + line: 139, + column: 41 + }, + end: { + line: 139, + column: 78 + } + }], + line: 139 + }, + "35": { + loc: { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 143, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 143 + }, + "36": { + loc: { + start: { + line: 143, + column: 7 + }, + end: { + line: 143, + column: 78 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 143, + column: 7 + }, + end: { + line: 143, + column: 37 + } + }, { + start: { + line: 143, + column: 41 + }, + end: { + line: 143, + column: 78 + } + }], + line: 143 + }, + "37": { + loc: { + start: { + line: 149, + column: 27 + }, + end: { + line: 149, + column: 47 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 149, + column: 38 + }, + end: { + line: 149, + column: 47 + } + }], + line: 149 + }, + "38": { + loc: { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }, { + start: { + line: 151, + column: 2 + }, + end: { + line: 151, + column: 30 + } + }], + line: 151 + }, + "39": { + loc: { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }, { + start: { + line: 154, + column: 2 + }, + end: { + line: 156, + column: 3 + } + }], + line: 154 + }, + "40": { + loc: { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }, { + start: { + line: 160, + column: 2 + }, + end: { + line: 165, + column: 3 + } + }], + line: 160 + }, + "41": { + loc: { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }, { + start: { + line: 162, + column: 3 + }, + end: { + line: 164, + column: 4 + } + }], + line: 162 + }, + "42": { + loc: { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }, { + start: { + line: 167, + column: 2 + }, + end: { + line: 172, + column: 3 + } + }], + line: 167 + }, + "43": { + loc: { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }, { + start: { + line: 169, + column: 3 + }, + end: { + line: 171, + column: 4 + } + }], + line: 169 + }, + "44": { + loc: { + start: { + line: 177, + column: 29 + }, + end: { + line: 177, + column: 49 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 177, + column: 40 + }, + end: { + line: 177, + column: 49 + } + }], + line: 177 + }, + "45": { + loc: { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }, { + start: { + line: 179, + column: 2 + }, + end: { + line: 179, + column: 30 + } + }], + line: 179 + }, + "46": { + loc: { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }, { + start: { + line: 181, + column: 2 + }, + end: { + line: 186, + column: 3 + } + }], + line: 181 + }, + "47": { + loc: { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }, { + start: { + line: 183, + column: 3 + }, + end: { + line: 185, + column: 4 + } + }], + line: 183 + }, + "48": { + loc: { + start: { + line: 189, + column: 28 + }, + end: { + line: 189, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 189, + column: 39 + }, + end: { + line: 189, + column: 48 + } + }], + line: 189 + }, + "49": { + loc: { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }, { + start: { + line: 191, + column: 2 + }, + end: { + line: 191, + column: 30 + } + }], + line: 191 + }, + "50": { + loc: { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }, { + start: { + line: 194, + column: 2 + }, + end: { + line: 196, + column: 3 + } + }], + line: 194 + }, + "51": { + loc: { + start: { + line: 199, + column: 26 + }, + end: { + line: 199, + column: 46 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 199, + column: 37 + }, + end: { + line: 199, + column: 46 + } + }], + line: 199 + }, + "52": { + loc: { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }, { + start: { + line: 201, + column: 2 + }, + end: { + line: 201, + column: 30 + } + }], + line: 201 + }, + "53": { + loc: { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }, { + start: { + line: 204, + column: 2 + }, + end: { + line: 206, + column: 3 + } + }], + line: 204 + }, + "54": { + loc: { + start: { + line: 209, + column: 33 + }, + end: { + line: 209, + column: 53 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 209, + column: 44 + }, + end: { + line: 209, + column: 53 + } + }], + line: 209 + }, + "55": { + loc: { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }, { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 30 + } + }], + line: 211 + }, + "56": { + loc: { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }, { + start: { + line: 218, + column: 2 + }, + end: { + line: 220, + column: 3 + } + }], + line: 218 + }, + "57": { + loc: { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }, { + start: { + line: 228, + column: 3 + }, + end: { + line: 237, + column: 4 + } + }], + line: 228 + }, + "58": { + loc: { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }, { + start: { + line: 230, + column: 4 + }, + end: { + line: 234, + column: 5 + } + }], + line: 230 + }, + "59": { + loc: { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }, { + start: { + line: 241, + column: 2 + }, + end: { + line: 243, + column: 3 + } + }], + line: 241 + }, + "60": { + loc: { + start: { + line: 241, + column: 8 + }, + end: { + line: 241, + column: 42 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 241, + column: 25 + }, + end: { + line: 241, + column: 34 + } + }, { + start: { + line: 241, + column: 37 + }, + end: { + line: 241, + column: 42 + } + }], + line: 241 + }, + "61": { + loc: { + start: { + line: 246, + column: 28 + }, + end: { + line: 246, + column: 48 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 246, + column: 39 + }, + end: { + line: 246, + column: 48 + } + }], + line: 246 + }, + "62": { + loc: { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }, { + start: { + line: 248, + column: 2 + }, + end: { + line: 248, + column: 30 + } + }], + line: 248 + }, + "63": { + loc: { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }, { + start: { + line: 251, + column: 2 + }, + end: { + line: 253, + column: 3 + } + }], + line: 251 + }, + "64": { + loc: { + start: { + line: 256, + column: 35 + }, + end: { + line: 256, + column: 55 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 256, + column: 46 + }, + end: { + line: 256, + column: 55 + } + }], + line: 256 + }, + "65": { + loc: { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, + type: "if", + locations: [{ + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }, { + start: { + line: 258, + column: 2 + }, + end: { + line: 258, + column: 30 + } + }], + line: 258 + }, + "66": { + loc: { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }, { + start: { + line: 261, + column: 2 + }, + end: { + line: 263, + column: 3 + } + }], + line: 261 + }, + "67": { + loc: { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }, { + start: { + line: 269, + column: 1 + }, + end: { + line: 272, + column: 2 + } + }], + line: 269 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0, + "65": 0, + "66": 0, + "67": 0, + "68": 0, + "69": 0, + "70": 0, + "71": 0, + "72": 0, + "73": 0, + "74": 0, + "75": 0, + "76": 0, + "77": 0, + "78": 0, + "79": 0, + "80": 0, + "81": 0, + "82": 0, + "83": 0, + "84": 0, + "85": 0, + "86": 0, + "87": 0, + "88": 0, + "89": 0, + "90": 0, + "91": 0, + "92": 0, + "93": 0, + "94": 0, + "95": 0, + "96": 0, + "97": 0, + "98": 0, + "99": 0, + "100": 0, + "101": 0, + "102": 0, + "103": 0, + "104": 0, + "105": 0, + "106": 0, + "107": 0, + "108": 0, + "109": 0, + "110": 0, + "111": 0, + "112": 0, + "113": 0, + "114": 0, + "115": 0, + "116": 0, + "117": 0, + "118": 0, + "119": 0, + "120": 0, + "121": 0, + "122": 0, + "123": 0, + "124": 0, + "125": 0, + "126": 0, + "127": 0, + "128": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0 + }, + b: { + "0": [0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0], + "7": [0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0, 0], + "12": [0, 0], + "13": [0, 0, 0], + "14": [0], + "15": [0, 0], + "16": [0, 0], + "17": [0], + "18": [0, 0], + "19": [0, 0], + "20": [0, 0], + "21": [0], + "22": [0, 0], + "23": [0, 0], + "24": [0, 0], + "25": [0, 0], + "26": [0, 0], + "27": [0, 0], + "28": [0], + "29": [0, 0], + "30": [0, 0], + "31": [0, 0], + "32": [0, 0], + "33": [0, 0], + "34": [0, 0], + "35": [0, 0], + "36": [0, 0], + "37": [0], + "38": [0, 0], + "39": [0, 0], + "40": [0, 0], + "41": [0, 0], + "42": [0, 0], + "43": [0, 0], + "44": [0], + "45": [0, 0], + "46": [0, 0], + "47": [0, 0], + "48": [0], + "49": [0, 0], + "50": [0, 0], + "51": [0], + "52": [0, 0], + "53": [0, 0], + "54": [0], + "55": [0, 0], + "56": [0, 0], + "57": [0, 0], + "58": [0, 0], + "59": [0, 0], + "60": [0, 0], + "61": [0], + "62": [0, 0], + "63": [0, 0], + "64": [0], + "65": [0, 0], + "66": [0, 0], + "67": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + + + + + + + + + + + + + + +var resources = (cov_1fcwr61zql.s[0]++, { + 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] : (cov_1fcwr61zql.b[0][0]++, resources); + cov_1fcwr61zql.f[0]++; + cov_1fcwr61zql.s[1]++; + + if ((cov_1fcwr61zql.b[2][0]++, isNil_default()(value)) || (cov_1fcwr61zql.b[2][1]++, value === "")) { + cov_1fcwr61zql.b[1][0]++; + cov_1fcwr61zql.s[2]++; + + if (required) { + cov_1fcwr61zql.b[3][0]++; + cov_1fcwr61zql.s[3]++; + return [msg(messages.fieldIsRequired)]; + } else { + cov_1fcwr61zql.b[3][1]++; + cov_1fcwr61zql.s[4]++; + return []; + } + } else { + cov_1fcwr61zql.b[1][1]++; + } + + cov_1fcwr61zql.s[5]++; + return null; +} + +function msg(text) { + cov_1fcwr61zql.f[1]++; + cov_1fcwr61zql.s[6]++; + + if ((cov_1fcwr61zql.b[5][0]++, text != null) && (cov_1fcwr61zql.b[5][1]++, arguments.length > 1)) { + cov_1fcwr61zql.b[4][0]++; + cov_1fcwr61zql.s[7]++; + + for (var i = 1; i < arguments.length; i++) { + cov_1fcwr61zql.s[8]++; + text = text.replace("{" + (i - 1) + "}", arguments[i]); + } + } else { + cov_1fcwr61zql.b[4][1]++; + } + + cov_1fcwr61zql.s[9]++; + return text; +} + +var validators = (cov_1fcwr61zql.s[10]++, { + resources: resources, + required: function required(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[6][0]++, resources); + cov_1fcwr61zql.f[2]++; + cov_1fcwr61zql.s[11]++; + return checkEmpty(value, field.required, messages); + }, + number: function number(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[7][0]++, resources); + cov_1fcwr61zql.f[3]++; + var res = (cov_1fcwr61zql.s[12]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[13]++; + + if (res != null) { + cov_1fcwr61zql.b[8][0]++; + cov_1fcwr61zql.s[14]++; + return res; + } else { + cov_1fcwr61zql.b[8][1]++; + } + + var err = (cov_1fcwr61zql.s[15]++, []); + cov_1fcwr61zql.s[16]++; + + if (isNumber_default()(value)) { + cov_1fcwr61zql.b[9][0]++; + cov_1fcwr61zql.s[17]++; + + if ((cov_1fcwr61zql.b[11][0]++, !isNil_default()(field.fieldOptions)) && (cov_1fcwr61zql.b[11][1]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[11][2]++, value < field.fieldOptions.min)) { + cov_1fcwr61zql.b[10][0]++; + cov_1fcwr61zql.s[18]++; + err.push(msg(messages.numberTooSmall, field.fieldOptions.min)); + } else { + cov_1fcwr61zql.b[10][1]++; + } + + cov_1fcwr61zql.s[19]++; + + if ((cov_1fcwr61zql.b[13][0]++, !isNil_default()(field.fieldOptions)) && (cov_1fcwr61zql.b[13][1]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[13][2]++, value > field.fieldOptions.max)) { + cov_1fcwr61zql.b[12][0]++; + cov_1fcwr61zql.s[20]++; + err.push(msg(messages.numberTooBig, field.fieldOptions.max)); + } else { + cov_1fcwr61zql.b[12][1]++; + } + } else { + cov_1fcwr61zql.b[9][1]++; + cov_1fcwr61zql.s[21]++; + err.push(msg(messages.invalidNumber)); + } + + cov_1fcwr61zql.s[22]++; + return err; + }, + integer: function integer(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[14][0]++, resources); + cov_1fcwr61zql.f[4]++; + var res = (cov_1fcwr61zql.s[23]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[24]++; + + if (res != null) { + cov_1fcwr61zql.b[15][0]++; + cov_1fcwr61zql.s[25]++; + return res; + } else { + cov_1fcwr61zql.b[15][1]++; + } + + var errs = (cov_1fcwr61zql.s[26]++, validators.number(value, field, model, messages)); + cov_1fcwr61zql.s[27]++; + + if (!isInteger_default()(value)) { + cov_1fcwr61zql.b[16][0]++; + cov_1fcwr61zql.s[28]++; + errs.push(msg(messages.invalidInteger)); + } else { + cov_1fcwr61zql.b[16][1]++; + } + + cov_1fcwr61zql.s[29]++; + return errs; + }, + double: function double(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[17][0]++, resources); + cov_1fcwr61zql.f[5]++; + var res = (cov_1fcwr61zql.s[30]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[31]++; + + if (res != null) { + cov_1fcwr61zql.b[18][0]++; + cov_1fcwr61zql.s[32]++; + return res; + } else { + cov_1fcwr61zql.b[18][1]++; + } + + cov_1fcwr61zql.s[33]++; + + if ((cov_1fcwr61zql.b[20][0]++, !isNumber_default()(value)) || (cov_1fcwr61zql.b[20][1]++, isNaN(value))) { + cov_1fcwr61zql.b[19][0]++; + cov_1fcwr61zql.s[34]++; + return [msg(messages.invalidNumber)]; + } else { + cov_1fcwr61zql.b[19][1]++; + } + }, + string: function string(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[21][0]++, resources); + cov_1fcwr61zql.f[6]++; + var res = (cov_1fcwr61zql.s[35]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[36]++; + + if (res != null) { + cov_1fcwr61zql.b[22][0]++; + cov_1fcwr61zql.s[37]++; + return res; + } else { + cov_1fcwr61zql.b[22][1]++; + } + + var err = (cov_1fcwr61zql.s[38]++, []); + cov_1fcwr61zql.s[39]++; + + if (isString_default()(value)) { + cov_1fcwr61zql.b[23][0]++; + cov_1fcwr61zql.s[40]++; + + if ((cov_1fcwr61zql.b[25][0]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[25][1]++, value.length < field.fieldOptions.min)) { + cov_1fcwr61zql.b[24][0]++; + cov_1fcwr61zql.s[41]++; + err.push(msg(messages.textTooSmall, value.length, field.fieldOptions.min)); + } else { + cov_1fcwr61zql.b[24][1]++; + } + + cov_1fcwr61zql.s[42]++; + + if ((cov_1fcwr61zql.b[27][0]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[27][1]++, value.length > field.fieldOptions.max)) { + cov_1fcwr61zql.b[26][0]++; + cov_1fcwr61zql.s[43]++; + err.push(msg(messages.textTooBig, value.length, field.fieldOptions.max)); + } else { + cov_1fcwr61zql.b[26][1]++; + } + } else { + cov_1fcwr61zql.b[23][1]++; + cov_1fcwr61zql.s[44]++; + err.push(msg(messages.thisNotText)); + } + + cov_1fcwr61zql.s[45]++; + return err; + }, + array: function array(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[28][0]++, resources); + cov_1fcwr61zql.f[7]++; + cov_1fcwr61zql.s[46]++; + + if (field.required) { + cov_1fcwr61zql.b[29][0]++; + cov_1fcwr61zql.s[47]++; + + if (!isArray_default()(value)) { + cov_1fcwr61zql.b[30][0]++; + cov_1fcwr61zql.s[48]++; + return [msg(messages.thisNotArray)]; + } else { + cov_1fcwr61zql.b[30][1]++; + } + + cov_1fcwr61zql.s[49]++; + + if (value.length === 0) { + cov_1fcwr61zql.b[31][0]++; + cov_1fcwr61zql.s[50]++; + return [msg(messages.fieldIsRequired)]; + } else { + cov_1fcwr61zql.b[31][1]++; + } + } else { + cov_1fcwr61zql.b[29][1]++; + } + + cov_1fcwr61zql.s[51]++; + + if (!isNil_default()(value)) { + cov_1fcwr61zql.b[32][0]++; + cov_1fcwr61zql.s[52]++; + + if ((cov_1fcwr61zql.b[34][0]++, !isNil_default()(field.fieldOptions.min)) && (cov_1fcwr61zql.b[34][1]++, value.length < field.fieldOptions.min)) { + cov_1fcwr61zql.b[33][0]++; + cov_1fcwr61zql.s[53]++; + return [msg(messages.selectMinItems, field.fieldOptions.min)]; + } else { + cov_1fcwr61zql.b[33][1]++; + } + + cov_1fcwr61zql.s[54]++; + + if ((cov_1fcwr61zql.b[36][0]++, !isNil_default()(field.fieldOptions.max)) && (cov_1fcwr61zql.b[36][1]++, value.length > field.fieldOptions.max)) { + cov_1fcwr61zql.b[35][0]++; + cov_1fcwr61zql.s[55]++; + return [msg(messages.selectMaxItems, field.fieldOptions.max)]; + } else { + cov_1fcwr61zql.b[35][1]++; + } + } else { + cov_1fcwr61zql.b[32][1]++; + } + }, + date: function date(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[37][0]++, resources); + cov_1fcwr61zql.f[8]++; + var res = (cov_1fcwr61zql.s[56]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[57]++; + + if (res != null) { + cov_1fcwr61zql.b[38][0]++; + cov_1fcwr61zql.s[58]++; + return res; + } else { + cov_1fcwr61zql.b[38][1]++; + } + + var m = (cov_1fcwr61zql.s[59]++, new Date(value)); + cov_1fcwr61zql.s[60]++; + + if (!m) { + cov_1fcwr61zql.b[39][0]++; + cov_1fcwr61zql.s[61]++; + return [msg(messages.invalidDate)]; + } else { + cov_1fcwr61zql.b[39][1]++; + } + + var err = (cov_1fcwr61zql.s[62]++, []); + cov_1fcwr61zql.s[63]++; + + if (!isNil_default()(field.fieldOptions.min)) { + cov_1fcwr61zql.b[40][0]++; + var min = (cov_1fcwr61zql.s[64]++, new Date(field.fieldOptions.min)); + cov_1fcwr61zql.s[65]++; + + if (m.valueOf() < min.valueOf()) { + cov_1fcwr61zql.b[41][0]++; + cov_1fcwr61zql.s[66]++; + err.push(msg(messages.dateIsEarly, fecha_default.a.format(m), fecha_default.a.format(min))); + } else { + cov_1fcwr61zql.b[41][1]++; + } + } else { + cov_1fcwr61zql.b[40][1]++; + } + + cov_1fcwr61zql.s[67]++; + + if (!isNil_default()(field.fieldOptions.max)) { + cov_1fcwr61zql.b[42][0]++; + var max = (cov_1fcwr61zql.s[68]++, new Date(field.fieldOptions.max)); + cov_1fcwr61zql.s[69]++; + + if (m.valueOf() > max.valueOf()) { + cov_1fcwr61zql.b[43][0]++; + cov_1fcwr61zql.s[70]++; + err.push(msg(messages.dateIsLate, fecha_default.a.format(m), fecha_default.a.format(max))); + } else { + cov_1fcwr61zql.b[43][1]++; + } + } else { + cov_1fcwr61zql.b[42][1]++; + } + + cov_1fcwr61zql.s[71]++; + return err; + }, + regexp: function regexp(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[44][0]++, resources); + cov_1fcwr61zql.f[9]++; + var res = (cov_1fcwr61zql.s[72]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[73]++; + + if (res != null) { + cov_1fcwr61zql.b[45][0]++; + cov_1fcwr61zql.s[74]++; + return res; + } else { + cov_1fcwr61zql.b[45][1]++; + } + + cov_1fcwr61zql.s[75]++; + + if (!isNil_default()(field.pattern)) { + cov_1fcwr61zql.b[46][0]++; + var re = (cov_1fcwr61zql.s[76]++, new RegExp(field.pattern)); + cov_1fcwr61zql.s[77]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[47][0]++; + cov_1fcwr61zql.s[78]++; + return [msg(messages.invalidFormat)]; + } else { + cov_1fcwr61zql.b[47][1]++; + } + } else { + cov_1fcwr61zql.b[46][1]++; + } + }, + email: function email(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[48][0]++, resources); + cov_1fcwr61zql.f[10]++; + var res = (cov_1fcwr61zql.s[79]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[80]++; + + if (res != null) { + cov_1fcwr61zql.b[49][0]++; + cov_1fcwr61zql.s[81]++; + return res; + } else { + cov_1fcwr61zql.b[49][1]++; + } + + var re = (cov_1fcwr61zql.s[82]++, /^(([^<>()\[\]\\.,;:\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 + + cov_1fcwr61zql.s[83]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[50][0]++; + cov_1fcwr61zql.s[84]++; + return [msg(messages.invalidEmail)]; + } else { + cov_1fcwr61zql.b[50][1]++; + } + }, + url: function url(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[51][0]++, resources); + cov_1fcwr61zql.f[11]++; + var res = (cov_1fcwr61zql.s[85]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[86]++; + + if (res != null) { + cov_1fcwr61zql.b[52][0]++; + cov_1fcwr61zql.s[87]++; + return res; + } else { + cov_1fcwr61zql.b[52][1]++; + } + + var re = (cov_1fcwr61zql.s[88]++, /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g); // eslint-disable-line no-useless-escape + + cov_1fcwr61zql.s[89]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[53][0]++; + cov_1fcwr61zql.s[90]++; + return [msg(messages.invalidURL)]; + } else { + cov_1fcwr61zql.b[53][1]++; + } + }, + creditCard: function creditCard(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[54][0]++, resources); + cov_1fcwr61zql.f[12]++; + var res = (cov_1fcwr61zql.s[91]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[92]++; + + if (res != null) { + cov_1fcwr61zql.b[55][0]++; + cov_1fcwr61zql.s[93]++; + return res; + } else { + cov_1fcwr61zql.b[55][1]++; + } + /* From validator.js code + https://github.com/chriso/validator.js/blob/master/src/lib/isCreditCard.js + */ + + + var creditCard = (cov_1fcwr61zql.s[94]++, /^(?: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 = (cov_1fcwr61zql.s[95]++, value.replace(/[^0-9]+/g, "")); + cov_1fcwr61zql.s[96]++; + + if (!creditCard.test(sanitized)) { + cov_1fcwr61zql.b[56][0]++; + cov_1fcwr61zql.s[97]++; + return [msg(messages.invalidCard)]; + } else { + cov_1fcwr61zql.b[56][1]++; + } + + var sum = (cov_1fcwr61zql.s[98]++, 0); + var digit; + var tmpNum; + var shouldDouble; + cov_1fcwr61zql.s[99]++; + + for (var i = sanitized.length - 1; i >= 0; i--) { + cov_1fcwr61zql.s[100]++; + digit = sanitized.substring(i, i + 1); + cov_1fcwr61zql.s[101]++; + tmpNum = parseInt(digit, 10); + cov_1fcwr61zql.s[102]++; + + if (shouldDouble) { + cov_1fcwr61zql.b[57][0]++; + cov_1fcwr61zql.s[103]++; + tmpNum *= 2; + cov_1fcwr61zql.s[104]++; + + if (tmpNum >= 10) { + cov_1fcwr61zql.b[58][0]++; + cov_1fcwr61zql.s[105]++; + sum += tmpNum % 10 + 1; + } else { + cov_1fcwr61zql.b[58][1]++; + cov_1fcwr61zql.s[106]++; + sum += tmpNum; + } + } else { + cov_1fcwr61zql.b[57][1]++; + cov_1fcwr61zql.s[107]++; + sum += tmpNum; + } + + cov_1fcwr61zql.s[108]++; + shouldDouble = !shouldDouble; + } + + cov_1fcwr61zql.s[109]++; + + if (!(sum % 10 === 0 ? (cov_1fcwr61zql.b[60][0]++, sanitized) : (cov_1fcwr61zql.b[60][1]++, false))) { + cov_1fcwr61zql.b[59][0]++; + cov_1fcwr61zql.s[110]++; + return [msg(messages.invalidCardNumber)]; + } else { + cov_1fcwr61zql.b[59][1]++; + } + }, + alpha: function alpha(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[61][0]++, resources); + cov_1fcwr61zql.f[13]++; + var res = (cov_1fcwr61zql.s[111]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[112]++; + + if (res != null) { + cov_1fcwr61zql.b[62][0]++; + cov_1fcwr61zql.s[113]++; + return res; + } else { + cov_1fcwr61zql.b[62][1]++; + } + + var re = (cov_1fcwr61zql.s[114]++, /^[a-zA-Z]*$/); + cov_1fcwr61zql.s[115]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[63][0]++; + cov_1fcwr61zql.s[116]++; + return [msg(messages.invalidTextContainNumber)]; + } else { + cov_1fcwr61zql.b[63][1]++; + } + }, + alphaNumeric: function alphaNumeric(value, field, model) { + var messages = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : (cov_1fcwr61zql.b[64][0]++, resources); + cov_1fcwr61zql.f[14]++; + var res = (cov_1fcwr61zql.s[117]++, checkEmpty(value, field.required, messages)); + cov_1fcwr61zql.s[118]++; + + if (res != null) { + cov_1fcwr61zql.b[65][0]++; + cov_1fcwr61zql.s[119]++; + return res; + } else { + cov_1fcwr61zql.b[65][1]++; + } + + var re = (cov_1fcwr61zql.s[120]++, /^[a-zA-Z0-9]*$/); + cov_1fcwr61zql.s[121]++; + + if (!re.test(value)) { + cov_1fcwr61zql.b[66][0]++; + cov_1fcwr61zql.s[122]++; + return [msg(messages.invalidTextContainSpec)]; + } else { + cov_1fcwr61zql.b[66][1]++; + } + } +}); +cov_1fcwr61zql.s[123]++; +Object.keys(validators).forEach(function (name) { + cov_1fcwr61zql.f[15]++; + var fn = (cov_1fcwr61zql.s[124]++, validators[name]); + cov_1fcwr61zql.s[125]++; + + if (isFunction_default()(fn)) { + cov_1fcwr61zql.b[67][0]++; + cov_1fcwr61zql.s[126]++; + + fn.locale = function (customMessages) { + cov_1fcwr61zql.f[16]++; + cov_1fcwr61zql.s[127]++; + return function (value, field, model) { + cov_1fcwr61zql.f[17]++; + cov_1fcwr61zql.s[128]++; + return fn(value, field, model, defaults_default()(customMessages, resources)); + }; + }; + } else { + cov_1fcwr61zql.b[67][1]++; + } +}); +/* harmony default export */ var utils_validators = (validators); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldCheckbox.vue?vue&type=template&id=8e952a54& +var fieldCheckboxvue_type_template_id_8e952a54_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,"required":_vm.required},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 fieldCheckboxvue_type_template_id_8e952a54_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=8e952a54& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js +var es6_regexp_split = __webpack_require__("28a5"); + +// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js +var uniqueId = __webpack_require__("98dc"); +var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); + +// EXTERNAL MODULE: ./node_modules/lodash/debounce.js +var debounce = __webpack_require__("b047"); +var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); + +// EXTERNAL MODULE: ./node_modules/lodash/forEach.js +var forEach = __webpack_require__("6cd4"); +var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); + +// CONCATENATED MODULE: ./src/fields/abstractField.js +var cov_1x7yuo2leq = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js", + hash = "4d4265b060ef40dc8fcf211d60e214c1c4dbbe72", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js", + statementMap: { + "0": { + start: { + line: 4, + column: 25 + }, + end: { + line: 13, + column: 1 + } + }, + "1": { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, + "2": { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, + "3": { + start: { + line: 6, + column: 37 + }, + end: { + line: 6, + column: 66 + } + }, + "4": { + start: { + line: 8, + column: 3 + }, + end: { + line: 8, + column: 63 + } + }, + "5": { + start: { + line: 9, + column: 3 + }, + end: { + line: 9, + column: 15 + } + }, + "6": { + start: { + line: 12, + column: 1 + }, + end: { + line: 12, + column: 18 + } + }, + "7": { + start: { + line: 16, + column: 13 + }, + end: { + line: 16, + column: 59 + } + }, + "8": { + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 41 + } + }, + "9": { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + "10": { + start: { + line: 19, + column: 2 + }, + end: { + line: 19, + column: 44 + } + }, + "11": { + start: { + line: 21, + column: 1 + }, + end: { + line: 23, + column: 4 + } + }, + "12": { + start: { + line: 22, + column: 2 + }, + end: { + line: 22, + column: 28 + } + }, + "13": { + start: { + line: 46, + column: 19 + }, + end: { + line: 46, + column: 47 + } + }, + "14": { + start: { + line: 47, + column: 2 + }, + end: { + line: 53, + column: 4 + } + }, + "15": { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, + "16": { + start: { + line: 70, + column: 5 + }, + end: { + line: 70, + column: 39 + } + }, + "17": { + start: { + line: 72, + column: 5 + }, + end: { + line: 72, + column: 49 + } + }, + "18": { + start: { + line: 75, + column: 4 + }, + end: { + line: 75, + column: 40 + } + }, + "19": { + start: { + line: 79, + column: 4 + }, + end: { + line: 79, + column: 17 + } + }, + "20": { + start: { + line: 81, + column: 19 + }, + end: { + line: 81, + column: 29 + } + }, + "21": { + start: { + line: 82, + column: 4 + }, + end: { + line: 82, + column: 49 + } + }, + "22": { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, + "23": { + start: { + line: 85, + column: 5 + }, + end: { + line: 85, + column: 34 + } + }, + "24": { + start: { + line: 87, + column: 5 + }, + end: { + line: 87, + column: 47 + } + }, + "25": { + start: { + line: 92, + column: 3 + }, + end: { + line: 92, + column: 59 + } + }, + "26": { + start: { + line: 95, + column: 3 + }, + end: { + line: 95, + column: 67 + } + }, + "27": { + start: { + line: 98, + column: 3 + }, + end: { + line: 98, + column: 67 + } + }, + "28": { + start: { + line: 101, + column: 3 + }, + end: { + line: 101, + column: 64 + } + }, + "29": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 66 + } + }, + "30": { + start: { + line: 107, + column: 3 + }, + end: { + line: 107, + column: 59 + } + }, + "31": { + start: { + line: 110, + column: 3 + }, + end: { + line: 110, + column: 59 + } + }, + "32": { + start: { + line: 113, + column: 3 + }, + end: { + line: 113, + column: 61 + } + }, + "33": { + start: { + line: 120, + column: 4 + }, + end: { + line: 120, + column: 41 + } + }, + "34": { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, + "35": { + start: { + line: 128, + column: 4 + }, + end: { + line: 128, + column: 72 + } + }, + "36": { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, + "37": { + start: { + line: 132, + column: 5 + }, + end: { + line: 132, + column: 25 + } + }, + "38": { + start: { + line: 135, + column: 4 + }, + end: { + line: 135, + column: 25 + } + }, + "39": { + start: { + line: 139, + column: 3 + }, + end: { + line: 139, + column: 16 + } + }, + "40": { + start: { + line: 141, + column: 3 + }, + end: { + line: 141, + column: 32 + } + }, + "41": { + start: { + line: 142, + column: 23 + }, + end: { + line: 142, + column: 71 + } + }, + "42": { + start: { + line: 144, + column: 17 + }, + end: { + line: 144, + column: 19 + } + }, + "43": { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, + "44": { + start: { + line: 152, + column: 21 + }, + end: { + line: 152, + column: 23 + } + }, + "45": { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, + "46": { + start: { + line: 154, + column: 5 + }, + end: { + line: 154, + column: 73 + } + }, + "47": { + start: { + line: 156, + column: 5 + }, + end: { + line: 158, + column: 8 + } + }, + "48": { + start: { + line: 157, + column: 6 + }, + end: { + line: 157, + column: 62 + } + }, + "49": { + start: { + line: 161, + column: 4 + }, + end: { + line: 176, + column: 7 + } + }, + "50": { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, + "51": { + start: { + line: 163, + column: 6 + }, + end: { + line: 163, + column: 67 + } + }, + "52": { + start: { + line: 165, + column: 19 + }, + end: { + line: 165, + column: 65 + } + }, + "53": { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, + "54": { + start: { + line: 167, + column: 7 + }, + end: { + line: 171, + column: 10 + } + }, + "55": { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, + "56": { + start: { + line: 169, + column: 9 + }, + end: { + line: 169, + column: 47 + } + }, + "57": { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, + "58": { + start: { + line: 173, + column: 7 + }, + end: { + line: 173, + column: 40 + } + }, + "59": { + start: { + line: 179, + column: 22 + }, + end: { + line: 198, + column: 4 + } + }, + "60": { + start: { + line: 180, + column: 22 + }, + end: { + line: 180, + column: 24 + } + }, + "61": { + start: { + line: 181, + column: 4 + }, + end: { + line: 187, + column: 7 + } + }, + "62": { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, + "63": { + start: { + line: 183, + column: 6 + }, + end: { + line: 183, + column: 44 + } + }, + "64": { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, + "65": { + start: { + line: 185, + column: 6 + }, + end: { + line: 185, + column: 28 + } + }, + "66": { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, + "67": { + start: { + line: 189, + column: 5 + }, + end: { + line: 189, + column: 78 + } + }, + "68": { + start: { + line: 192, + column: 18 + }, + end: { + line: 192, + column: 42 + } + }, + "69": { + start: { + line: 194, + column: 4 + }, + end: { + line: 194, + column: 30 + } + }, + "70": { + start: { + line: 196, + column: 4 + }, + end: { + line: 196, + column: 80 + } + }, + "71": { + start: { + line: 197, + column: 4 + }, + end: { + line: 197, + column: 23 + } + }, + "72": { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, + "73": { + start: { + line: 201, + column: 4 + }, + end: { + line: 201, + column: 33 + } + }, + "74": { + start: { + line: 204, + column: 3 + }, + end: { + line: 208, + column: 7 + } + }, + "75": { + start: { + line: 207, + column: 5 + }, + end: { + line: 207, + column: 60 + } + }, + "76": { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + "77": { + start: { + line: 213, + column: 4 + }, + end: { + line: 216, + column: 6 + } + }, + "78": { + start: { + line: 218, + column: 3 + }, + end: { + line: 218, + column: 32 + } + }, + "79": { + start: { + line: 222, + column: 17 + }, + end: { + line: 222, + column: 22 + } + }, + "80": { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, + "81": { + start: { + line: 224, + column: 4 + }, + end: { + line: 224, + column: 42 + } + }, + "82": { + start: { + line: 225, + column: 4 + }, + end: { + line: 225, + column: 19 + } + }, + "83": { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, + "84": { + start: { + line: 227, + column: 4 + }, + end: { + line: 227, + column: 58 + } + }, + "85": { + start: { + line: 228, + column: 4 + }, + end: { + line: 228, + column: 19 + } + }, + "86": { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, + "87": { + start: { + line: 232, + column: 4 + }, + end: { + line: 232, + column: 70 + } + }, + "88": { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, + "89": { + start: { + line: 235, + column: 5 + }, + end: { + line: 235, + column: 83 + } + }, + "90": { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, + "91": { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, + "92": { + start: { + line: 239, + column: 6 + }, + end: { + line: 239, + column: 31 + } + }, + "93": { + start: { + line: 241, + column: 6 + }, + end: { + line: 241, + column: 22 + } + }, + "94": { + start: { + line: 248, + column: 3 + }, + end: { + line: 248, + column: 25 + } + }, + "95": { + start: { + line: 253, + column: 11 + }, + end: { + line: 253, + column: 44 + } + }, + "96": { + start: { + line: 256, + column: 3 + }, + end: { + line: 256, + column: 28 + } + }, + "97": { + start: { + line: 258, + column: 11 + }, + end: { + line: 258, + column: 21 + } + }, + "98": { + start: { + line: 259, + column: 13 + }, + end: { + line: 259, + column: 25 + } + }, + "99": { + start: { + line: 260, + column: 11 + }, + end: { + line: 260, + column: 12 + } + }, + "100": { + start: { + line: 261, + column: 13 + }, + end: { + line: 261, + column: 21 + } + }, + "101": { + start: { + line: 262, + column: 3 + }, + end: { + line: 280, + column: 4 + } + }, + "102": { + start: { + line: 263, + column: 12 + }, + end: { + line: 263, + column: 16 + } + }, + "103": { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, + "104": { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, + "105": { + start: { + line: 267, + column: 6 + }, + end: { + line: 267, + column: 15 + } + }, + "106": { + start: { + line: 270, + column: 6 + }, + end: { + line: 270, + column: 32 + } + }, + "107": { + start: { + line: 271, + column: 6 + }, + end: { + line: 271, + column: 15 + } + }, + "108": { + start: { + line: 275, + column: 5 + }, + end: { + line: 275, + column: 34 + } + }, + "109": { + start: { + line: 276, + column: 5 + }, + end: { + line: 276, + column: 12 + } + }, + "110": { + start: { + line: 279, + column: 4 + }, + end: { + line: 279, + column: 8 + } + }, + "111": { + start: { + line: 284, + column: 3 + }, + end: { + line: 284, + column: 16 + } + }, + "112": { + start: { + line: 288, + column: 3 + }, + end: { + line: 288, + column: 16 + } + }, + "113": { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, + "114": { + start: { + line: 293, + column: 4 + }, + end: { + line: 293, + column: 24 + } + }, + "115": { + start: { + line: 294, + column: 4 + }, + end: { + line: 294, + column: 32 + } + }, + "116": { + start: { + line: 299, + column: 2 + }, + end: { + line: 299, + column: 75 + } + }, + "117": { + start: { + line: 300, + column: 2 + }, + end: { + line: 300, + column: 54 + } + }, + "118": { + start: { + line: 301, + column: 2 + }, + end: { + line: 301, + column: 43 + } + }, + "119": { + start: { + line: 304, + column: 15 + }, + end: { + line: 308, + column: 3 + } + }, + "120": { + start: { + line: 305, + column: 3 + }, + end: { + line: 307, + column: 6 + } + }, + "121": { + start: { + line: 306, + column: 4 + }, + end: { + line: 306, + column: 28 + } + }, + "122": { + start: { + line: 309, + column: 22 + }, + end: { + line: 342, + column: 3 + } + }, + "123": { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, + "124": { + start: { + line: 344, + column: 21 + }, + end: { + line: 344, + column: 45 + } + }, + "125": { + start: { + line: 345, + column: 16 + }, + end: { + line: 345, + column: 46 + } + }, + "126": { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, + "127": { + start: { + line: 347, + column: 4 + }, + end: { + line: 347, + column: 69 + } + }, + "128": { + start: { + line: 352, + column: 2 + }, + end: { + line: 352, + column: 48 + } + }, + "129": { + start: { + line: 353, + column: 2 + }, + end: { + line: 353, + column: 40 + } + }, + "130": { + start: { + line: 354, + column: 2 + }, + end: { + line: 354, + column: 51 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 4, + column: 25 + }, + end: { + line: 4, + column: 26 + } + }, + loc: { + start: { + line: 4, + column: 40 + }, + end: { + line: 13, + column: 1 + } + }, + line: 4 + }, + "1": { + name: "attributesDirective", + decl: { + start: { + line: 15, + column: 9 + }, + end: { + line: 15, + column: 28 + } + }, + loc: { + start: { + line: 15, + column: 49 + }, + end: { + line: 24, + column: 1 + } + }, + line: 15 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 21, + column: 16 + }, + end: { + line: 21, + column: 17 + } + }, + loc: { + start: { + line: 21, + column: 30 + }, + end: { + line: 23, + column: 2 + } + }, + line: 21 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 45, + column: 1 + }, + end: { + line: 45, + column: 2 + } + }, + loc: { + start: { + line: 45, + column: 8 + }, + end: { + line: 54, + column: 2 + } + }, + line: 45 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 67, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + loc: { + start: { + line: 67, + column: 9 + }, + end: { + line: 76, + column: 4 + } + }, + line: 67 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 78, + column: 3 + }, + end: { + line: 78, + column: 4 + } + }, + loc: { + start: { + line: 78, + column: 17 + }, + end: { + line: 89, + column: 4 + } + }, + line: 78 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 91, + column: 2 + }, + end: { + line: 91, + column: 3 + } + }, + loc: { + start: { + line: 91, + column: 13 + }, + end: { + line: 93, + column: 3 + } + }, + line: 91 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 17 + }, + end: { + line: 96, + column: 3 + } + }, + line: 94 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 97, + column: 2 + }, + end: { + line: 97, + column: 3 + } + }, + loc: { + start: { + line: 97, + column: 17 + }, + end: { + line: 99, + column: 3 + } + }, + line: 97 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 14 + }, + end: { + line: 102, + column: 3 + } + }, + line: 100 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 103, + column: 2 + }, + end: { + line: 103, + column: 3 + } + }, + loc: { + start: { + line: 103, + column: 16 + }, + end: { + line: 105, + column: 3 + } + }, + line: 103 + }, + "11": { + name: "(anonymous_11)", + decl: { + start: { + line: 106, + column: 2 + }, + end: { + line: 106, + column: 3 + } + }, + loc: { + start: { + line: 106, + column: 13 + }, + end: { + line: 108, + column: 3 + } + }, + line: 106 + }, + "12": { + name: "(anonymous_12)", + decl: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 3 + } + }, + loc: { + start: { + line: 109, + column: 13 + }, + end: { + line: 111, + column: 3 + } + }, + line: 109 + }, + "13": { + name: "(anonymous_13)", + decl: { + start: { + line: 112, + column: 2 + }, + end: { + line: 112, + column: 3 + } + }, + loc: { + start: { + line: 112, + column: 11 + }, + end: { + line: 114, + column: 3 + } + }, + line: 112 + }, + "14": { + name: "(anonymous_14)", + decl: { + start: { + line: 119, + column: 3 + }, + end: { + line: 119, + column: 4 + } + }, + loc: { + start: { + line: 119, + column: 19 + }, + end: { + line: 121, + column: 4 + } + }, + line: 119 + }, + "15": { + name: "(anonymous_15)", + decl: { + start: { + line: 126, + column: 2 + }, + end: { + line: 126, + column: 3 + } + }, + loc: { + start: { + line: 126, + column: 50 + }, + end: { + line: 137, + column: 3 + } + }, + line: 126 + }, + "16": { + name: "(anonymous_16)", + decl: { + start: { + line: 138, + column: 2 + }, + end: { + line: 138, + column: 3 + } + }, + loc: { + start: { + line: 138, + column: 13 + }, + end: { + line: 209, + column: 3 + } + }, + line: 138 + }, + "17": { + name: "(anonymous_17)", + decl: { + start: { + line: 156, + column: 35 + }, + end: { + line: 156, + column: 36 + } + }, + loc: { + start: { + line: 156, + column: 50 + }, + end: { + line: 158, + column: 6 + } + }, + line: 156 + }, + "18": { + name: "(anonymous_18)", + decl: { + start: { + line: 161, + column: 23 + }, + end: { + line: 161, + column: 24 + } + }, + loc: { + start: { + line: 161, + column: 38 + }, + end: { + line: 176, + column: 5 + } + }, + line: 161 + }, + "19": { + name: "(anonymous_19)", + decl: { + start: { + line: 167, + column: 19 + }, + end: { + line: 167, + column: 20 + } + }, + loc: { + start: { + line: 167, + column: 28 + }, + end: { + line: 171, + column: 8 + } + }, + line: 167 + }, + "20": { + name: "(anonymous_20)", + decl: { + start: { + line: 179, + column: 22 + }, + end: { + line: 179, + column: 23 + } + }, + loc: { + start: { + line: 179, + column: 34 + }, + end: { + line: 198, + column: 4 + } + }, + line: 179 + }, + "21": { + name: "(anonymous_21)", + decl: { + start: { + line: 181, + column: 19 + }, + end: { + line: 181, + column: 20 + } + }, + loc: { + start: { + line: 181, + column: 28 + }, + end: { + line: 187, + column: 5 + } + }, + line: 181 + }, + "22": { + name: "(anonymous_22)", + decl: { + start: { + line: 206, + column: 11 + }, + end: { + line: 206, + column: 12 + } + }, + loc: { + start: { + line: 206, + column: 22 + }, + end: { + line: 208, + column: 5 + } + }, + line: 206 + }, + "23": { + name: "(anonymous_23)", + decl: { + start: { + line: 211, + column: 2 + }, + end: { + line: 211, + column: 3 + } + }, + loc: { + start: { + line: 211, + column: 22 + }, + end: { + line: 219, + column: 3 + } + }, + line: 211 + }, + "24": { + name: "(anonymous_24)", + decl: { + start: { + line: 221, + column: 2 + }, + end: { + line: 221, + column: 3 + } + }, + loc: { + start: { + line: 221, + column: 39 + }, + end: { + line: 245, + column: 3 + } + }, + line: 221 + }, + "25": { + name: "(anonymous_25)", + decl: { + start: { + line: 247, + column: 2 + }, + end: { + line: 247, + column: 3 + } + }, + loc: { + start: { + line: 247, + column: 26 + }, + end: { + line: 249, + column: 3 + } + }, + line: 247 + }, + "26": { + name: "(anonymous_26)", + decl: { + start: { + line: 251, + column: 2 + }, + end: { + line: 251, + column: 3 + } + }, + loc: { + start: { + line: 251, + column: 35 + }, + end: { + line: 281, + column: 3 + } + }, + line: 251 + }, + "27": { + name: "(anonymous_27)", + decl: { + start: { + line: 283, + column: 2 + }, + end: { + line: 283, + column: 3 + } + }, + loc: { + start: { + line: 283, + column: 28 + }, + end: { + line: 285, + column: 3 + } + }, + line: 283 + }, + "28": { + name: "(anonymous_28)", + decl: { + start: { + line: 287, + column: 2 + }, + end: { + line: 287, + column: 3 + } + }, + loc: { + start: { + line: 287, + column: 28 + }, + end: { + line: 289, + column: 3 + } + }, + line: 287 + }, + "29": { + name: "(anonymous_29)", + decl: { + start: { + line: 291, + column: 2 + }, + end: { + line: 291, + column: 3 + } + }, + loc: { + start: { + line: 291, + column: 10 + }, + end: { + line: 296, + column: 3 + } + }, + line: 291 + }, + "30": { + name: "(anonymous_30)", + decl: { + start: { + line: 298, + column: 1 + }, + end: { + line: 298, + column: 2 + } + }, + loc: { + start: { + line: 298, + column: 11 + }, + end: { + line: 302, + column: 2 + } + }, + line: 298 + }, + "31": { + name: "(anonymous_31)", + decl: { + start: { + line: 303, + column: 1 + }, + end: { + line: 303, + column: 2 + } + }, + loc: { + start: { + line: 303, + column: 11 + }, + end: { + line: 350, + column: 2 + } + }, + line: 303 + }, + "32": { + name: "(anonymous_32)", + decl: { + start: { + line: 304, + column: 15 + }, + end: { + line: 304, + column: 16 + } + }, + loc: { + start: { + line: 304, + column: 30 + }, + end: { + line: 308, + column: 3 + } + }, + line: 304 + }, + "33": { + name: "(anonymous_33)", + decl: { + start: { + line: 305, + column: 19 + }, + end: { + line: 305, + column: 20 + } + }, + loc: { + start: { + line: 305, + column: 31 + }, + end: { + line: 307, + column: 4 + } + }, + line: 305 + }, + "34": { + name: "(anonymous_34)", + decl: { + start: { + line: 351, + column: 1 + }, + end: { + line: 351, + column: 2 + } + }, + loc: { + start: { + line: 351, + column: 17 + }, + end: { + line: 355, + column: 2 + } + }, + line: 351 } - } - }, - 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; + }, + branchMap: { + "0": { + loc: { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }, { + start: { + line: 5, + column: 1 + }, + end: { + line: 11, + column: 2 + } + }], + line: 5 + }, + "1": { + loc: { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }, { + start: { + line: 6, + column: 2 + }, + end: { + line: 10, + column: 3 + } + }], + line: 6 + }, + "2": { + loc: { + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 41 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 17, + column: 17 + }, + end: { + line: 17, + column: 30 + } + }, { + start: { + line: 17, + column: 34 + }, + end: { + line: 17, + column: 41 + } + }], + line: 17 + }, + "3": { + loc: { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + type: "if", + locations: [{ + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, { + start: { + line: 18, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }], + line: 18 + }, + "4": { + loc: { + start: { + line: 19, + column: 10 + }, + end: { + line: 19, + column: 43 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 19, + column: 10 + }, + end: { + line: 19, + column: 34 + } + }, { + start: { + line: 19, + column: 38 + }, + end: { + line: 19, + column: 43 + } + }], + line: 19 + }, + "5": { + loc: { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }, { + start: { + line: 69, + column: 4 + }, + end: { + line: 73, + column: 5 + } + }], + line: 69 + }, + "6": { + loc: { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }, { + start: { + line: 84, + column: 4 + }, + end: { + line: 88, + column: 5 + } + }], + line: 84 + }, + "7": { + loc: { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }, { + start: { + line: 127, + column: 3 + }, + end: { + line: 136, + column: 4 + } + }], + line: 127 + }, + "8": { + loc: { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }, { + start: { + line: 131, + column: 4 + }, + end: { + line: 133, + column: 5 + } + }], + line: 131 + }, + "9": { + loc: { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }, { + start: { + line: 146, + column: 3 + }, + end: { + line: 177, + column: 4 + } + }], + line: 146 + }, + "10": { + loc: { + start: { + line: 147, + column: 4 + }, + end: { + line: 150, + column: 26 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 147, + column: 4 + }, + end: { + line: 147, + column: 25 + } + }, { + start: { + line: 148, + column: 4 + }, + end: { + line: 148, + column: 26 + } + }, { + start: { + line: 149, + column: 4 + }, + end: { + line: 149, + column: 33 + } + }, { + start: { + line: 150, + column: 4 + }, + end: { + line: 150, + column: 26 + } + }], + line: 147 + }, + "11": { + loc: { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }, { + start: { + line: 153, + column: 4 + }, + end: { + line: 159, + column: 5 + } + }], + line: 153 + }, + "12": { + loc: { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }, { + start: { + line: 162, + column: 5 + }, + end: { + line: 175, + column: 6 + } + }], + line: 162 + }, + "13": { + loc: { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }, { + start: { + line: 166, + column: 6 + }, + end: { + line: 174, + column: 7 + } + }], + line: 166 + }, + "14": { + loc: { + start: { + line: 166, + column: 10 + }, + end: { + line: 166, + column: 43 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 166, + column: 10 + }, + end: { + line: 166, + column: 16 + } + }, { + start: { + line: 166, + column: 20 + }, + end: { + line: 166, + column: 43 + } + }], + line: 166 + }, + "15": { + loc: { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, + type: "if", + locations: [{ + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }, { + start: { + line: 168, + column: 8 + }, + end: { + line: 170, + column: 9 + } + }], + line: 168 + }, + "16": { + loc: { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }, { + start: { + line: 172, + column: 13 + }, + end: { + line: 174, + column: 7 + } + }], + line: 172 + }, + "17": { + loc: { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }, { + start: { + line: 182, + column: 5 + }, + end: { + line: 186, + column: 6 + } + }], + line: 182 + }, + "18": { + loc: { + start: { + line: 182, + column: 9 + }, + end: { + line: 182, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 182, + column: 9 + }, + end: { + line: 182, + column: 21 + } + }, { + start: { + line: 182, + column: 25 + }, + end: { + line: 182, + column: 39 + } + }], + line: 182 + }, + "19": { + loc: { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }, { + start: { + line: 184, + column: 12 + }, + end: { + line: 186, + column: 6 + } + }], + line: 184 + }, + "20": { + loc: { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }, { + start: { + line: 188, + column: 4 + }, + end: { + line: 190, + column: 5 + } + }], + line: 188 + }, + "21": { + loc: { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }, { + start: { + line: 200, + column: 3 + }, + end: { + line: 202, + column: 4 + } + }], + line: 200 + }, + "22": { + loc: { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }, { + start: { + line: 212, + column: 3 + }, + end: { + line: 217, + column: 4 + } + }], + line: 212 + }, + "23": { + loc: { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }, { + start: { + line: 223, + column: 3 + }, + end: { + line: 229, + column: 4 + } + }], + line: 223 + }, + "24": { + loc: { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }, { + start: { + line: 226, + column: 10 + }, + end: { + line: 229, + column: 4 + } + }], + line: 226 + }, + "25": { + loc: { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }, { + start: { + line: 231, + column: 3 + }, + end: { + line: 244, + column: 4 + } + }], + line: 231 + }, + "26": { + loc: { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }, { + start: { + line: 234, + column: 4 + }, + end: { + line: 236, + column: 5 + } + }], + line: 234 + }, + "27": { + loc: { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }, { + start: { + line: 237, + column: 4 + }, + end: { + line: 243, + column: 5 + } + }], + line: 237 + }, + "28": { + loc: { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }, { + start: { + line: 238, + column: 5 + }, + end: { + line: 242, + column: 6 + } + }], + line: 238 + }, + "29": { + loc: { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }, { + start: { + line: 264, + column: 4 + }, + end: { + line: 277, + column: 5 + } + }], + line: 264 + }, + "30": { + loc: { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }, { + start: { + line: 265, + column: 5 + }, + end: { + line: 272, + column: 6 + } + }], + line: 265 + }, + "31": { + loc: { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }, { + start: { + line: 292, + column: 3 + }, + end: { + line: 295, + column: 4 + } + }], + line: 292 + }, + "32": { + loc: { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }, { + start: { + line: 343, + column: 2 + }, + end: { + line: 349, + column: 3 + } + }], + line: 343 + }, + "33": { + loc: { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }, { + start: { + line: 346, + column: 3 + }, + end: { + line: 348, + column: 4 + } + }], + line: 346 } - - 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)]; - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0, + "39": 0, + "40": 0, + "41": 0, + "42": 0, + "43": 0, + "44": 0, + "45": 0, + "46": 0, + "47": 0, + "48": 0, + "49": 0, + "50": 0, + "51": 0, + "52": 0, + "53": 0, + "54": 0, + "55": 0, + "56": 0, + "57": 0, + "58": 0, + "59": 0, + "60": 0, + "61": 0, + "62": 0, + "63": 0, + "64": 0, + "65": 0, + "66": 0, + "67": 0, + "68": 0, + "69": 0, + "70": 0, + "71": 0, + "72": 0, + "73": 0, + "74": 0, + "75": 0, + "76": 0, + "77": 0, + "78": 0, + "79": 0, + "80": 0, + "81": 0, + "82": 0, + "83": 0, + "84": 0, + "85": 0, + "86": 0, + "87": 0, + "88": 0, + "89": 0, + "90": 0, + "91": 0, + "92": 0, + "93": 0, + "94": 0, + "95": 0, + "96": 0, + "97": 0, + "98": 0, + "99": 0, + "100": 0, + "101": 0, + "102": 0, + "103": 0, + "104": 0, + "105": 0, + "106": 0, + "107": 0, + "108": 0, + "109": 0, + "110": 0, + "111": 0, + "112": 0, + "113": 0, + "114": 0, + "115": 0, + "116": 0, + "117": 0, + "118": 0, + "119": 0, + "120": 0, + "121": 0, + "122": 0, + "123": 0, + "124": 0, + "125": 0, + "126": 0, + "127": 0, + "128": 0, + "129": 0, + "130": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0, 0, 0], + "11": [0, 0], + "12": [0, 0], + "13": [0, 0], + "14": [0, 0], + "15": [0, 0], + "16": [0, 0], + "17": [0, 0], + "18": [0, 0], + "19": [0, 0], + "20": [0, 0], + "21": [0, 0], + "22": [0, 0], + "23": [0, 0], + "24": [0, 0], + "25": [0, 0], + "26": [0, 0], + "27": [0, 0], + "28": [0, 0], + "29": [0, 0], + "30": [0, 0], + "31": [0, 0], + "32": [0, 0], + "33": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - 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]; + coverage = global[gcv] || (global[gcv] = {}); - if (isFunction_default()(fn)) { - fn.locale = function (customMessages) { - return function (value, field, model) { - return fn(value, field, model, defaults_default()(customMessages, resources)); - }; - }; + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } -}); -/* harmony default export */ var utils_validators = (validators); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& -var fieldCheckboxvue_type_template_id_a12bd5d0_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 fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue?vue&type=template&id=a12bd5d0& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js -var es6_regexp_split = __webpack_require__("28a5"); - -// EXTERNAL MODULE: ./node_modules/lodash/uniqueId.js -var uniqueId = __webpack_require__("98dc"); -var uniqueId_default = /*#__PURE__*/__webpack_require__.n(uniqueId); - -// EXTERNAL MODULE: ./node_modules/lodash/debounce.js -var debounce = __webpack_require__("b047"); -var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce); -// EXTERNAL MODULE: ./node_modules/lodash/forEach.js -var forEach = __webpack_require__("6cd4"); -var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./src/fields/abstractField.js @@ -7519,28 +23663,54 @@ var forEach_default = /*#__PURE__*/__webpack_require__.n(forEach); +cov_1x7yuo2leq.s[0]++; var abstractField_convertValidator = function convertValidator(validator) { + cov_1x7yuo2leq.f[0]++; + cov_1x7yuo2leq.s[1]++; + if (isString_default()(validator)) { - if (utils_validators[validator] != null) return utils_validators[validator];else { + cov_1x7yuo2leq.b[0][0]++; + cov_1x7yuo2leq.s[2]++; + + if (utils_validators[validator] != null) { + cov_1x7yuo2leq.b[1][0]++; + cov_1x7yuo2leq.s[3]++; + return utils_validators[validator]; + } else { + cov_1x7yuo2leq.b[1][1]++; + cov_1x7yuo2leq.s[4]++; console.warn("'".concat(validator, "' is not a validator function!")); + cov_1x7yuo2leq.s[5]++; return null; // caller need to handle null } + } else { + cov_1x7yuo2leq.b[0][1]++; } + cov_1x7yuo2leq.s[6]++; return validator; }; function attributesDirective(el, binding, vnode) { - var attrs = get_default()(vnode.context, "schema.attributes", {}); - - var container = binding.value || "input"; + cov_1x7yuo2leq.f[1]++; + var attrs = (cov_1x7yuo2leq.s[7]++, get_default()(vnode.context, "schema.attributes", {})); + var container = (cov_1x7yuo2leq.s[8]++, (cov_1x7yuo2leq.b[2][0]++, binding.value) || (cov_1x7yuo2leq.b[2][1]++, "input")); + cov_1x7yuo2leq.s[9]++; if (isString_default()(container)) { - attrs = get_default()(attrs, container) || attrs; + cov_1x7yuo2leq.b[3][0]++; + cov_1x7yuo2leq.s[10]++; + attrs = (cov_1x7yuo2leq.b[4][0]++, get_default()(attrs, container)) || (cov_1x7yuo2leq.b[4][1]++, attrs); + } else { + cov_1x7yuo2leq.b[3][1]++; } + cov_1x7yuo2leq.s[11]++; + forEach_default()(attrs, function (val, key) { + cov_1x7yuo2leq.f[2]++; + cov_1x7yuo2leq.s[12]++; el.setAttribute(key, val); }); } @@ -7564,8 +23734,9 @@ function attributesDirective(el, binding, vnode) { } }, data: function data() { - var fieldUID = uniqueId_default()(this.fieldID + "_"); - + cov_1x7yuo2leq.f[3]++; + var fieldUID = (cov_1x7yuo2leq.s[13]++, uniqueId_default()(this.fieldID + "_")); + cov_1x7yuo2leq.s[14]++; return { fieldUID: fieldUID, touched: false, @@ -7585,315 +23756,1744 @@ function attributesDirective(el, binding, vnode) { value: { cache: false, get: function get() { + cov_1x7yuo2leq.f[4]++; var val; + cov_1x7yuo2leq.s[15]++; if (isFunction_default()(get_default()(this.schema, "get"))) { + cov_1x7yuo2leq.b[5][0]++; + cov_1x7yuo2leq.s[16]++; val = this.schema.get(this.model); } else { + cov_1x7yuo2leq.b[5][1]++; + cov_1x7yuo2leq.s[17]++; val = get_default()(this.model, this.schema.model); } + cov_1x7yuo2leq.s[18]++; return this.formatValueToField(val); }, set: function set(newValue) { + cov_1x7yuo2leq.f[5]++; + cov_1x7yuo2leq.s[19]++; this.touch(); - var oldValue = this.value; + var oldValue = (cov_1x7yuo2leq.s[20]++, this.value); + cov_1x7yuo2leq.s[21]++; newValue = this.formatValueToModel(newValue); + cov_1x7yuo2leq.s[22]++; if (isFunction_default()(newValue)) { + cov_1x7yuo2leq.b[6][0]++; + cov_1x7yuo2leq.s[23]++; newValue(newValue, oldValue); } else { + cov_1x7yuo2leq.b[6][1]++; + cov_1x7yuo2leq.s[24]++; this.updateModelValue(newValue, oldValue); } } }, disabled: function disabled() { + cov_1x7yuo2leq.f[6]++; + cov_1x7yuo2leq.s[25]++; return this.getValueFromOption(this.schema, "disabled"); }, fieldClasses: function fieldClasses() { + cov_1x7yuo2leq.f[7]++; + cov_1x7yuo2leq.s[26]++; return this.getValueFromOption(this.schema, "fieldClasses", []); }, fieldOptions: function fieldOptions() { + cov_1x7yuo2leq.f[8]++; + cov_1x7yuo2leq.s[27]++; return this.getValueFromOption(this.schema, "fieldOptions", {}); }, inputName: function inputName() { + cov_1x7yuo2leq.f[9]++; + cov_1x7yuo2leq.s[28]++; return this.getValueFromOption(this.schema, "inputName", ""); }, placeholder: function placeholder() { + cov_1x7yuo2leq.f[10]++; + cov_1x7yuo2leq.s[29]++; return this.getValueFromOption(this.schema, "placeholder", ""); }, readonly: function readonly() { + cov_1x7yuo2leq.f[11]++; + cov_1x7yuo2leq.s[30]++; return this.getValueFromOption(this.schema, "readonly"); }, required: function required() { + cov_1x7yuo2leq.f[12]++; + cov_1x7yuo2leq.s[31]++; return this.getValueFromOption(this.schema, "required"); }, values: function values() { + cov_1x7yuo2leq.f[13]++; + cov_1x7yuo2leq.s[32]++; return this.getValueFromOption(this.schema, "values", []); } }, watch: { errors: { handler: function handler(errors) { + cov_1x7yuo2leq.f[14]++; + cov_1x7yuo2leq.s[33]++; this.$emit("errors-updated", errors); } } }, methods: { getValueFromOption: function getValueFromOption(field, option, defaultValue) { + cov_1x7yuo2leq.f[15]++; + cov_1x7yuo2leq.s[34]++; + if (isFunction_default()(this.$parent.getValueFromOption)) { + cov_1x7yuo2leq.b[7][0]++; + cov_1x7yuo2leq.s[35]++; return this.$parent.getValueFromOption(field, option, defaultValue); } else { + cov_1x7yuo2leq.b[7][1]++; + cov_1x7yuo2leq.s[36]++; + // Environnement de test ? if (isNil_default()(field[option])) { + cov_1x7yuo2leq.b[8][0]++; + cov_1x7yuo2leq.s[37]++; return defaultValue; + } else { + cov_1x7yuo2leq.b[8][1]++; } + cov_1x7yuo2leq.s[38]++; return field[option]; } }, validate: function validate() { var _this = this; + cov_1x7yuo2leq.f[16]++; + cov_1x7yuo2leq.s[39]++; this.touch(); + cov_1x7yuo2leq.s[40]++; this.clearValidationErrors(); + var validateAsync = (cov_1x7yuo2leq.s[41]++, get_default()(this.formOptions, "validateAsync", false)); + var results = (cov_1x7yuo2leq.s[42]++, []); + cov_1x7yuo2leq.s[43]++; - var validateAsync = get_default()(this.formOptions, "validateAsync", false); + if ((cov_1x7yuo2leq.b[10][0]++, this.schema.validator) && (cov_1x7yuo2leq.b[10][1]++, this.readonly !== true) && (cov_1x7yuo2leq.b[10][2]++, this.schema.readonly !== true) && (cov_1x7yuo2leq.b[10][3]++, // only for the test + this.disabled !== true)) { + cov_1x7yuo2leq.b[9][0]++; - var results = []; + var _validators = (cov_1x7yuo2leq.s[44]++, []); - if (this.schema.validator && this.readonly !== true && this.schema.readonly !== true && // only for the test - this.disabled !== true) { - var _validators = []; + cov_1x7yuo2leq.s[45]++; if (!isArray_default()(this.schema.validator)) { + cov_1x7yuo2leq.b[11][0]++; + cov_1x7yuo2leq.s[46]++; + _validators.push(abstractField_convertValidator(this.schema.validator).bind(this)); } else { + cov_1x7yuo2leq.b[11][1]++; + cov_1x7yuo2leq.s[47]++; this.schema.validator.forEach(function (validator) { + cov_1x7yuo2leq.f[17]++; + cov_1x7yuo2leq.s[48]++; + _validators.push(abstractField_convertValidator(validator).bind(_this)); }); } + cov_1x7yuo2leq.s[49]++; + _validators.forEach(function (validator) { + cov_1x7yuo2leq.f[18]++; + cov_1x7yuo2leq.s[50]++; + if (validateAsync) { + cov_1x7yuo2leq.b[12][0]++; + cov_1x7yuo2leq.s[51]++; results.push(validator(_this.value, _this.schema, _this.model)); } else { - var result = validator(_this.value, _this.schema, _this.model); + cov_1x7yuo2leq.b[12][1]++; + var result = (cov_1x7yuo2leq.s[52]++, validator(_this.value, _this.schema, _this.model)); + cov_1x7yuo2leq.s[53]++; - if (result && isFunction_default()(result.then)) { + if ((cov_1x7yuo2leq.b[14][0]++, result) && (cov_1x7yuo2leq.b[14][1]++, isFunction_default()(result.then))) { + cov_1x7yuo2leq.b[13][0]++; + cov_1x7yuo2leq.s[54]++; result.then(function (err) { + cov_1x7yuo2leq.f[19]++; + cov_1x7yuo2leq.s[55]++; + if (err) { + cov_1x7yuo2leq.b[15][0]++; + cov_1x7yuo2leq.s[56]++; _this.errors = _this.errors.concat(err); + } else { + cov_1x7yuo2leq.b[15][1]++; } }); - } else if (result) { - results = results.concat(result); + } else { + cov_1x7yuo2leq.b[13][1]++; + cov_1x7yuo2leq.s[57]++; + + if (result) { + cov_1x7yuo2leq.b[16][0]++; + cov_1x7yuo2leq.s[58]++; + results = results.concat(result); + } else { + cov_1x7yuo2leq.b[16][1]++; + } } } }); + } else { + cov_1x7yuo2leq.b[9][1]++; } + cov_1x7yuo2leq.s[59]++; + var handleErrors = function handleErrors(errors) { - var fieldErrors = []; + cov_1x7yuo2leq.f[20]++; + var fieldErrors = (cov_1x7yuo2leq.s[60]++, []); + cov_1x7yuo2leq.s[61]++; errors.forEach(function (err) { - if (isArray_default()(err) && err.length > 0) { + cov_1x7yuo2leq.f[21]++; + cov_1x7yuo2leq.s[62]++; + + if ((cov_1x7yuo2leq.b[18][0]++, isArray_default()(err)) && (cov_1x7yuo2leq.b[18][1]++, err.length > 0)) { + cov_1x7yuo2leq.b[17][0]++; + cov_1x7yuo2leq.s[63]++; fieldErrors = fieldErrors.concat(err); - } else if (isString_default()(err)) { - fieldErrors.push(err); + } else { + cov_1x7yuo2leq.b[17][1]++; + cov_1x7yuo2leq.s[64]++; + + if (isString_default()(err)) { + cov_1x7yuo2leq.b[19][0]++; + cov_1x7yuo2leq.s[65]++; + fieldErrors.push(err); + } else { + cov_1x7yuo2leq.b[19][1]++; + } } }); + cov_1x7yuo2leq.s[66]++; if (isFunction_default()(_this.schema.onValidated)) { + cov_1x7yuo2leq.b[20][0]++; + cov_1x7yuo2leq.s[67]++; + _this.schema.onValidated.call(_this, _this.model, fieldErrors, _this.schema); + } else { + cov_1x7yuo2leq.b[20][1]++; } - var isValid = fieldErrors.length === 0; + var isValid = (cov_1x7yuo2leq.s[68]++, fieldErrors.length === 0); + cov_1x7yuo2leq.s[69]++; _this.errors = fieldErrors; + cov_1x7yuo2leq.s[70]++; _this.eventBus.$emit("field-validated", isValid, fieldErrors, _this.fieldUID); + cov_1x7yuo2leq.s[71]++; return fieldErrors; }; + cov_1x7yuo2leq.s[72]++; + if (!validateAsync) { + cov_1x7yuo2leq.b[21][0]++; + cov_1x7yuo2leq.s[73]++; return handleErrors(results); + } else { + cov_1x7yuo2leq.b[21][1]++; } + cov_1x7yuo2leq.s[74]++; return Promise.all(results).then(handleErrors).catch(function (error) { + cov_1x7yuo2leq.f[22]++; + cov_1x7yuo2leq.s[75]++; console.warn("Problem during field validation", error); }); }, debouncedValidate: function debouncedValidate() { + cov_1x7yuo2leq.f[23]++; + cov_1x7yuo2leq.s[76]++; + if (!isFunction_default()(this.debouncedValidateFunc)) { + cov_1x7yuo2leq.b[22][0]++; + cov_1x7yuo2leq.s[77]++; this.debouncedValidateFunc = debounce_default()(this.validate.bind(this), get_default()(this.formOptions, "validateDebounceTime", 500)); + } else { + cov_1x7yuo2leq.b[22][1]++; } + cov_1x7yuo2leq.s[78]++; this.debouncedValidateFunc(); }, updateModelValue: function updateModelValue(newValue, oldValue) { - var changed = false; + cov_1x7yuo2leq.f[24]++; + var changed = (cov_1x7yuo2leq.s[79]++, false); + cov_1x7yuo2leq.s[80]++; if (isFunction_default()(this.schema.set)) { + cov_1x7yuo2leq.b[23][0]++; + cov_1x7yuo2leq.s[81]++; this.schema.set(this.model, newValue); + cov_1x7yuo2leq.s[82]++; changed = true; - } else if (this.schema.model) { - this.setModelValueByPath(this.schema.model, newValue); - changed = true; + } else { + cov_1x7yuo2leq.b[23][1]++; + cov_1x7yuo2leq.s[83]++; + + if (this.schema.model) { + cov_1x7yuo2leq.b[24][0]++; + cov_1x7yuo2leq.s[84]++; + this.setModelValueByPath(this.schema.model, newValue); + cov_1x7yuo2leq.s[85]++; + changed = true; + } else { + cov_1x7yuo2leq.b[24][1]++; + } } + cov_1x7yuo2leq.s[86]++; + if (changed) { + cov_1x7yuo2leq.b[25][0]++; + cov_1x7yuo2leq.s[87]++; this.eventBus.$emit("model-updated", newValue, this.schema.model); + cov_1x7yuo2leq.s[88]++; if (isFunction_default()(this.schema.onChanged)) { + cov_1x7yuo2leq.b[26][0]++; + cov_1x7yuo2leq.s[89]++; this.schema.onChanged.call(this, this.model, newValue, oldValue, this.schema); + } else { + cov_1x7yuo2leq.b[26][1]++; } + cov_1x7yuo2leq.s[90]++; + if (get_default()(this.formOptions, "validateAfterChanged", false)) { + cov_1x7yuo2leq.b[27][0]++; + cov_1x7yuo2leq.s[91]++; + if (get_default()(this.formOptions, "validateDebounceTime", 500) > 0) { + cov_1x7yuo2leq.b[28][0]++; + cov_1x7yuo2leq.s[92]++; this.debouncedValidate(); } else { + cov_1x7yuo2leq.b[28][1]++; + cov_1x7yuo2leq.s[93]++; this.validate(); } + } else { + cov_1x7yuo2leq.b[27][1]++; } + } else { + cov_1x7yuo2leq.b[25][1]++; } }, clearValidationErrors: function clearValidationErrors() { + cov_1x7yuo2leq.f[25]++; + cov_1x7yuo2leq.s[94]++; this.errors.splice(0); }, setModelValueByPath: function setModelValueByPath(path, value) { + cov_1x7yuo2leq.f[26]++; // convert array indexes to properties - var s = path.replace(/\[(\w+)\]/g, ".$1"); // strip a leading dot + var s = (cov_1x7yuo2leq.s[95]++, path.replace(/\[(\w+)\]/g, ".$1")); // strip a leading dot + cov_1x7yuo2leq.s[96]++; s = s.replace(/^\./, ""); - var o = this.model; - var a = s.split("."); - var i = 0; - var n = a.length; + var o = (cov_1x7yuo2leq.s[97]++, this.model); + var a = (cov_1x7yuo2leq.s[98]++, s.split(".")); + var i = (cov_1x7yuo2leq.s[99]++, 0); + var n = (cov_1x7yuo2leq.s[100]++, a.length); + cov_1x7yuo2leq.s[101]++; while (i < n) { - var k = a[i]; + var k = (cov_1x7yuo2leq.s[102]++, a[i]); + cov_1x7yuo2leq.s[103]++; + if (i < n - 1) { + cov_1x7yuo2leq.b[29][0]++; + cov_1x7yuo2leq.s[104]++; + if (o[k] !== undefined) { + cov_1x7yuo2leq.b[30][0]++; + cov_1x7yuo2leq.s[105]++; // Found parent property. Step in o = o[k]; } else { + cov_1x7yuo2leq.b[30][1]++; + cov_1x7yuo2leq.s[106]++; // Create missing property (new level) this.$root.$set(o, k, {}); + cov_1x7yuo2leq.s[107]++; o = o[k]; } } else { + cov_1x7yuo2leq.b[29][1]++; + cov_1x7yuo2leq.s[108]++; // Set final property value this.$root.$set(o, k, value); + cov_1x7yuo2leq.s[109]++; return; } + + cov_1x7yuo2leq.s[110]++; ++i; } }, formatValueToField: function formatValueToField(value) { + cov_1x7yuo2leq.f[27]++; + cov_1x7yuo2leq.s[111]++; return value; }, formatValueToModel: function formatValueToModel(value) { + cov_1x7yuo2leq.f[28]++; + cov_1x7yuo2leq.s[112]++; return value; }, touch: function touch() { + cov_1x7yuo2leq.f[29]++; + cov_1x7yuo2leq.s[113]++; + if (!this.touched) { + cov_1x7yuo2leq.b[31][0]++; + cov_1x7yuo2leq.s[114]++; this.touched = true; + cov_1x7yuo2leq.s[115]++; this.$emit("field-touched"); + } else { + cov_1x7yuo2leq.b[31][1]++; } } }, created: function created() { + cov_1x7yuo2leq.f[30]++; + cov_1x7yuo2leq.s[116]++; this.eventBus.$on("clear-validation-errors", this.clearValidationErrors); + cov_1x7yuo2leq.s[117]++; this.eventBus.$on("validate-fields", this.validate); + cov_1x7yuo2leq.s[118]++; this.eventBus.$emit("field-registering"); }, mounted: function mounted() { + cov_1x7yuo2leq.f[31]++; + cov_1x7yuo2leq.s[119]++; + var diff = function diff(a, b) { + cov_1x7yuo2leq.f[32]++; + cov_1x7yuo2leq.s[120]++; return b.filter(function (i) { + cov_1x7yuo2leq.f[33]++; + cov_1x7yuo2leq.s[121]++; return a.indexOf(i) < 0; }); }; - var allowedKeys = [// Minimal + var allowedKeys = (cov_1x7yuo2leq.s[122]++, [// 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"]; + "onChanged", "onValidated"]); + cov_1x7yuo2leq.s[123]++; if (this.schema) { - var currentKeys = Object.keys(this.schema); - var result = diff(allowedKeys, currentKeys); + cov_1x7yuo2leq.b[32][0]++; + var currentKeys = (cov_1x7yuo2leq.s[124]++, Object.keys(this.schema)); + var result = (cov_1x7yuo2leq.s[125]++, diff(allowedKeys, currentKeys)); + cov_1x7yuo2leq.s[126]++; if (result.length > 0) { + cov_1x7yuo2leq.b[33][0]++; + cov_1x7yuo2leq.s[127]++; console.log("diff", result, this.schema.type, this.schema.model); + } else { + cov_1x7yuo2leq.b[33][1]++; + } + } else { + cov_1x7yuo2leq.b[32][1]++; + } + }, + beforeDestroy: function beforeDestroy() { + cov_1x7yuo2leq.f[34]++; + cov_1x7yuo2leq.s[128]++; + this.eventBus.$off("clear-validation-errors"); + cov_1x7yuo2leq.s[129]++; + this.eventBus.$off("validate-fields"); + cov_1x7yuo2leq.s[130]++; + this.eventBus.$emit("field-deregistering", this); + } +}); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_2b0f9xcfqr = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue", + hash = "a1e2c7137f1a4487dc9d52e4f243eacebb30bf5c", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ var fieldCheckboxvue_type_script_lang_js_ = ({ + name: "field-checkbox", + mixins: [abstractField] +}); +// 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"); + +// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue + + + + + + +/* normalize component */ + +var fieldCheckbox_component = normalizeComponent( + core_fieldCheckboxvue_type_script_lang_js_, + fieldCheckboxvue_type_template_id_8e952a54_render, + fieldCheckboxvue_type_template_id_8e952a54_staticRenderFns, + false, + null, + null, + null + +) + +fieldCheckbox_component.options.__file = "fieldCheckbox.vue" +/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& +var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} +var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& + +// EXTERNAL MODULE: ./node_modules/lodash/clone.js +var clone = __webpack_require__("b8ce"); +var clone_default = /*#__PURE__*/__webpack_require__.n(clone); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_239wk76om5 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue", + hash = "314329f4a36eb9bbe20e291b8953e924977bc9cf", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue", + statementMap: { + "0": { + start: { + line: 64, + column: 2 + }, + end: { + line: 66, + column: 4 + } + }, + "1": { + start: { + line: 71, + column: 16 + }, + end: { + line: 71, + column: 34 + } + }, + "2": { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, + "3": { + start: { + line: 73, + column: 4 + }, + end: { + line: 73, + column: 57 + } + }, + "4": { + start: { + line: 74, + column: 10 + }, + end: { + line: 74, + column: 24 + } + }, + "5": { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, + "6": { + start: { + line: 77, + column: 19 + }, + end: { + line: 77, + column: 44 + } + }, + "7": { + start: { + line: 79, + column: 3 + }, + end: { + line: 79, + column: 12 + } + }, + "8": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 36 + } + }, + "9": { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, + "10": { + start: { + line: 89, + column: 4 + }, + end: { + line: 89, + column: 67 + } + }, + "11": { + start: { + line: 91, + column: 3 + }, + end: { + line: 91, + column: 43 + } + }, + "12": { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, + "13": { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, + "14": { + start: { + line: 97, + column: 5 + }, + end: { + line: 97, + column: 42 + } + }, + "15": { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, + "16": { + start: { + line: 100, + column: 6 + }, + end: { + line: 100, + column: 24 + } + }, + "17": { + start: { + line: 102, + column: 6 + }, + end: { + line: 102, + column: 243 + } + }, + "18": { + start: { + line: 106, + column: 4 + }, + end: { + line: 106, + column: 16 + } + }, + "19": { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, + "20": { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, + "21": { + start: { + line: 112, + column: 5 + }, + end: { + line: 112, + column: 41 + } + }, + "22": { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, + "23": { + start: { + line: 115, + column: 6 + }, + end: { + line: 115, + column: 23 + } + }, + "24": { + start: { + line: 117, + column: 6 + }, + end: { + line: 117, + column: 241 + } + }, + "25": { + start: { + line: 121, + column: 4 + }, + end: { + line: 121, + column: 16 + } + }, + "26": { + start: { + line: 126, + column: 3 + }, + end: { + line: 126, + column: 75 + } + }, + "27": { + start: { + line: 130, + column: 19 + }, + end: { + line: 130, + column: 39 + } + }, + "28": { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + "29": { + start: { + line: 132, + column: 4 + }, + end: { + line: 132, + column: 20 + } + }, + "30": { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "31": { + start: { + line: 137, + column: 16 + }, + end: { + line: 137, + column: 33 + } + }, + "32": { + start: { + line: 138, + column: 4 + }, + end: { + line: 138, + column: 38 + } + }, + "33": { + start: { + line: 139, + column: 4 + }, + end: { + line: 139, + column: 21 + } + }, + "34": { + start: { + line: 142, + column: 16 + }, + end: { + line: 142, + column: 33 + } + }, + "35": { + start: { + line: 143, + column: 4 + }, + end: { + line: 143, + column: 63 + } + }, + "36": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 21 + } + }, + "37": { + start: { + line: 149, + column: 3 + }, + end: { + line: 149, + column: 44 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 63, + column: 1 + }, + end: { + line: 63, + column: 2 + } + }, + loc: { + start: { + line: 63, + column: 8 + }, + end: { + line: 67, + column: 2 + } + }, + line: 63 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 70, + column: 2 + }, + end: { + line: 70, + column: 3 + } + }, + loc: { + start: { + line: 70, + column: 10 + }, + end: { + line: 75, + column: 3 + } + }, + line: 70 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 18 + }, + end: { + line: 80, + column: 3 + } + }, + line: 76 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 81, + column: 2 + }, + end: { + line: 81, + column: 3 + } + }, + loc: { + start: { + line: 81, + column: 15 + }, + end: { + line: 83, + column: 3 + } + }, + line: 81 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 87, + column: 2 + }, + end: { + line: 87, + column: 3 + } + }, + loc: { + start: { + line: 87, + column: 21 + }, + end: { + line: 92, + column: 3 + } + }, + line: 87 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 21 + }, + end: { + line: 108, + column: 3 + } + }, + line: 94 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 109, + column: 2 + }, + end: { + line: 109, + column: 3 + } + }, + loc: { + start: { + line: 109, + column: 20 + }, + end: { + line: 123, + column: 3 + } + }, + line: 109 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 125, + column: 2 + }, + end: { + line: 125, + column: 3 + } + }, + loc: { + start: { + line: 125, + column: 22 + }, + end: { + line: 127, + column: 3 + } + }, + line: 125 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 129, + column: 2 + }, + end: { + line: 129, + column: 3 + } + }, + loc: { + start: { + line: 129, + column: 25 + }, + end: { + line: 146, + column: 3 + } + }, + line: 129 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 148, + column: 2 + }, + end: { + line: 148, + column: 3 + } + }, + loc: { + start: { + line: 148, + column: 18 + }, + end: { + line: 150, + column: 3 + } + }, + line: 148 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 74, + column: 24 + } + }], + line: 72 + }, + "1": { + loc: { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, + type: "if", + locations: [{ + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }, { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 44 + } + }], + line: 77 + }, + "2": { + loc: { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }, { + start: { + line: 88, + column: 3 + }, + end: { + line: 90, + column: 4 + } + }], + line: 88 + }, + "3": { + loc: { + start: { + line: 88, + column: 7 + }, + end: { + line: 88, + column: 50 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 88, + column: 7 + }, + end: { + line: 88, + column: 21 + } + }, { + start: { + line: 88, + column: 25 + }, + end: { + line: 88, + column: 50 + } + }], + line: 88 + }, + "4": { + loc: { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }, { + start: { + line: 95, + column: 3 + }, + end: { + line: 107, + column: 4 + } + }], + line: 95 + }, + "5": { + loc: { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }, { + start: { + line: 96, + column: 4 + }, + end: { + line: 104, + column: 5 + } + }], + line: 96 + }, + "6": { + loc: { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }, { + start: { + line: 99, + column: 5 + }, + end: { + line: 103, + column: 6 + } + }], + line: 99 + }, + "7": { + loc: { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }, { + start: { + line: 110, + column: 3 + }, + end: { + line: 122, + column: 4 + } + }], + line: 110 + }, + "8": { + loc: { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }, { + start: { + line: 111, + column: 4 + }, + end: { + line: 119, + column: 5 + } + }], + line: 111 + }, + "9": { + loc: { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }, { + start: { + line: 114, + column: 5 + }, + end: { + line: 118, + column: 6 + } + }], + line: 114 + }, + "10": { + loc: { + start: { + line: 126, + column: 10 + }, + end: { + line: 126, + column: 74 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 126, + column: 10 + }, + end: { + line: 126, + column: 20 + } + }, { + start: { + line: 126, + column: 24 + }, + end: { + line: 126, + column: 74 + } + }], + line: 126 + }, + "11": { + loc: { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }, { + start: { + line: 131, + column: 3 + }, + end: { + line: 133, + column: 4 + } + }], + line: 131 + }, + "12": { + loc: { + start: { + line: 131, + column: 7 + }, + end: { + line: 131, + column: 54 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 131, + column: 7 + }, + end: { + line: 131, + column: 24 + } + }, { + start: { + line: 131, + column: 28 + }, + end: { + line: 131, + column: 54 + } + }], + line: 131 + }, + "13": { + loc: { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 135, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 135 } - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0], + "13": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - this.eventBus.$off("clear-validation-errors"); - this.eventBus.$off("validate-fields"); - this.eventBus.$emit("field-deregistering", this); - } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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_ = ({ - name: "field-checkbox", - mixins: [abstractField] -}); -// 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldCheckbox.vue - - - - - - -/* normalize component */ - -var fieldCheckbox_component = normalizeComponent( - core_fieldCheckboxvue_type_script_lang_js_, - fieldCheckboxvue_type_template_id_a12bd5d0_render, - fieldCheckboxvue_type_template_id_a12bd5d0_staticRenderFns, - false, - null, - null, - null - -) - -fieldCheckbox_component.options.__file = "fieldCheckbox.vue" -/* harmony default export */ var fieldCheckbox = (fieldCheckbox_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& -var fieldChecklistvue_type_template_id_29d9d05a_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',{key:_vm.getItemValue(item),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))+"\n\t\t\t")])])})):_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',{key:_vm.getItemValue(item),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("\n\t\t\t\t\t"+_vm._s(_vm.getItemName(item))+"\n\t\t\t\t")])]):_vm._e()}))]):_vm._e()])} -var fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns = [] - + coverage = global[gcv] || (global[gcv] = {}); -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue?vue&type=template&id=29d9d05a& + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// EXTERNAL MODULE: ./node_modules/lodash/clone.js -var clone = __webpack_require__("b8ce"); -var clone_default = /*#__PURE__*/__webpack_require__.n(clone); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -7906,129 +25506,1344 @@ var clone_default = /*#__PURE__*/__webpack_require__.n(clone); name: "field-checklist", mixins: [abstractField], data: function data() { + cov_239wk76om5.f[0]++; + cov_239wk76om5.s[0]++; return { comboExpanded: false }; }, computed: { items: function items() { - var values = this.schema.values; + cov_239wk76om5.f[1]++; + var values = (cov_239wk76om5.s[1]++, this.schema.values); + cov_239wk76om5.s[2]++; if (typeof values == "function") { + cov_239wk76om5.b[0][0]++; + cov_239wk76om5.s[3]++; return values.apply(this, [this.model, this.schema]); - } else return values; + } else { + cov_239wk76om5.b[0][1]++; + cov_239wk76om5.s[4]++; + return values; + } }, selectedCount: function selectedCount() { - if (this.value) return this.value.length; + cov_239wk76om5.f[2]++; + cov_239wk76om5.s[5]++; + + if (this.value) { + cov_239wk76om5.b[1][0]++; + cov_239wk76om5.s[6]++; + return this.value.length; + } else { + cov_239wk76om5.b[1][1]++; + } + + cov_239wk76om5.s[7]++; return 0; }, useListBox: function useListBox() { + cov_239wk76om5.f[3]++; + cov_239wk76om5.s[8]++; return this.fieldOptions.listBox; } }, methods: { getInputName: function getInputName(item) { - if (this.inputName && this.inputName.length > 0) { + cov_239wk76om5.f[4]++; + cov_239wk76om5.s[9]++; + + if ((cov_239wk76om5.b[3][0]++, this.inputName) && (cov_239wk76om5.b[3][1]++, this.inputName.length > 0)) { + cov_239wk76om5.b[2][0]++; + cov_239wk76om5.s[10]++; return slugify(this.inputName + "_" + this.getItemValue(item)); + } else { + cov_239wk76om5.b[2][1]++; } + cov_239wk76om5.s[11]++; return slugify(this.getItemValue(item)); }, getItemValue: function getItemValue(item) { + cov_239wk76om5.f[5]++; + cov_239wk76om5.s[12]++; + if (isObject_default()(item)) { + cov_239wk76om5.b[4][0]++; + cov_239wk76om5.s[13]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_239wk76om5.b[5][0]++; + cov_239wk76om5.s[14]++; return item[this.fieldOptions.value]; } else { + cov_239wk76om5.b[5][1]++; + cov_239wk76om5.s[15]++; + if (typeof item["value"] !== "undefined") { + cov_239wk76om5.b[6][0]++; + cov_239wk76om5.s[16]++; return item.value; } else { + cov_239wk76om5.b[6][1]++; + cov_239wk76om5.s[17]++; 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; + } + } else { + cov_239wk76om5.b[4][1]++; + cov_239wk76om5.s[18]++; + return item; + } + }, + getItemName: function getItemName(item) { + cov_239wk76om5.f[6]++; + cov_239wk76om5.s[19]++; + + if (isObject_default()(item)) { + cov_239wk76om5.b[7][0]++; + cov_239wk76om5.s[20]++; + + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_239wk76om5.b[8][0]++; + cov_239wk76om5.s[21]++; + return item[this.fieldOptions.name]; + } else { + cov_239wk76om5.b[8][1]++; + cov_239wk76om5.s[22]++; + + if (typeof item["name"] !== "undefined") { + cov_239wk76om5.b[9][0]++; + cov_239wk76om5.s[23]++; + return item.name; + } else { + cov_239wk76om5.b[9][1]++; + cov_239wk76om5.s[24]++; + 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 { + cov_239wk76om5.b[7][1]++; + cov_239wk76om5.s[25]++; + return item; + } + }, + isItemChecked: function isItemChecked(item) { + cov_239wk76om5.f[7]++; + cov_239wk76om5.s[26]++; + return (cov_239wk76om5.b[10][0]++, this.value) && (cov_239wk76om5.b[10][1]++, this.value.indexOf(this.getItemValue(item)) !== -1); + }, + onChanged: function onChanged(event, item) { + cov_239wk76om5.f[8]++; + var isChecked = (cov_239wk76om5.s[27]++, event.target.checked); + cov_239wk76om5.s[28]++; + + if ((cov_239wk76om5.b[12][0]++, isNil_default()(this.value)) || (cov_239wk76om5.b[12][1]++, !Array.isArray(this.value))) { + cov_239wk76om5.b[11][0]++; + cov_239wk76om5.s[29]++; + this.value = []; + } else { + cov_239wk76om5.b[11][1]++; + } + + cov_239wk76om5.s[30]++; + + if (isChecked) { + cov_239wk76om5.b[13][0]++; + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var arr = (cov_239wk76om5.s[31]++, clone_default()(this.value)); + cov_239wk76om5.s[32]++; + arr.push(this.getItemValue(item)); + cov_239wk76om5.s[33]++; + this.value = arr; + } else { + cov_239wk76om5.b[13][1]++; + + // Note: If you modify this.value array, it won't trigger the `set` in computed field + var _arr = (cov_239wk76om5.s[34]++, clone_default()(this.value)); + + cov_239wk76om5.s[35]++; + + _arr.splice(this.value.indexOf(this.getItemValue(item)), 1); + + cov_239wk76om5.s[36]++; + this.value = _arr; + } + }, + onExpandCombo: function onExpandCombo() { + cov_239wk76om5.f[9]++; + cov_239wk76om5.s[37]++; + 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"); + +// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue + + + + + + +/* normalize component */ + +var fieldChecklist_component = normalizeComponent( + core_fieldChecklistvue_type_script_lang_js_, + fieldChecklistvue_type_template_id_29d9d05a_render, + fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, + false, + null, + null, + null + +) + +fieldChecklist_component.options.__file = "fieldChecklist.vue" +/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& +var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} +var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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 cov_19faszspp7 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue", + hash = "21b1cece73d1932c4ddcb91d9ff3c2a8b33dd5e4", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue", + statementMap: { + "0": { + start: { + line: 52, + column: 25 + }, + end: { + line: 56, + column: 1 + } + }, + "1": { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + "2": { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 53 + } + }, + "3": { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 86 + } + }, + "4": { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + "5": { + start: { + line: 73, + column: 4 + }, + end: { + line: 83, + column: 5 + } + }, + "6": { + start: { + line: 80, + column: 6 + }, + end: { + line: 82, + column: 8 + } + }, + "7": { + start: { + line: 81, + column: 7 + }, + end: { + line: 81, + column: 49 + } + }, + "8": { + start: { + line: 86, + column: 3 + }, + end: { + line: 86, + column: 16 + } + }, + "9": { + start: { + line: 89, + column: 23 + }, + end: { + line: 89, + column: 55 + } + }, + "10": { + start: { + line: 90, + column: 11 + }, + end: { + line: 90, + column: 47 + } + }, + "11": { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, + "12": { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, + "13": { + start: { + line: 93, + column: 5 + }, + end: { + line: 93, + column: 52 + } + }, + "14": { + start: { + line: 95, + column: 5 + }, + end: { + line: 95, + column: 28 + } + }, + "15": { + start: { + line: 98, + column: 3 + }, + end: { + line: 98, + column: 45 + } + }, + "16": { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, + "17": { + start: { + line: 102, + column: 4 + }, + end: { + line: 102, + column: 19 + } + }, + "18": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 45 + } + }, + "19": { + start: { + line: 107, + column: 15 + }, + end: { + line: 107, + column: 34 + } + }, + "20": { + start: { + line: 108, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + "21": { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, + "22": { + start: { + line: 112, + column: 6 + }, + end: { + line: 112, + column: 46 + } + }, + "23": { + start: { + line: 114, + column: 5 + }, + end: { + line: 114, + column: 11 + } + }, + "24": { + start: { + line: 116, + column: 3 + }, + end: { + line: 116, + column: 22 + } + }, + "25": { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, + "26": { + start: { + line: 120, + column: 4 + }, + end: { + line: 120, + column: 37 + } + }, + "27": { + start: { + line: 126, + column: 2 + }, + end: { + line: 155, + column: 3 + } + }, + "28": { + start: { + line: 129, + column: 4 + }, + end: { + line: 138, + column: 6 + } + }, + "29": { + start: { + line: 131, + column: 6 + }, + end: { + line: 131, + column: 51 + } + }, + "30": { + start: { + line: 139, + column: 4 + }, + end: { + line: 139, + column: 10 + } + }, + "31": { + start: { + line: 144, + column: 4 + }, + end: { + line: 153, + column: 6 + } + }, + "32": { + start: { + line: 146, + column: 6 + }, + end: { + line: 146, + column: 53 + } + }, + "33": { + start: { + line: 154, + column: 4 + }, + end: { + line: 154, + column: 10 + } + }, + "34": { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, + "35": { + start: { + line: 160, + column: 3 + }, + end: { + line: 160, + column: 91 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 14 + }, + end: { + line: 68, + column: 3 + } + }, + line: 62 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 71, + column: 2 + }, + end: { + line: 71, + column: 3 + } + }, + loc: { + start: { + line: 71, + column: 28 + }, + end: { + line: 87, + column: 3 + } + }, + line: 71 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 80, + column: 13 + }, + end: { + line: 80, + column: 14 + } + }, + loc: { + start: { + line: 80, + column: 37 + }, + end: { + line: 82, + column: 7 + } + }, + line: 80 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 88, + column: 2 + }, + end: { + line: 88, + column: 3 + } + }, + loc: { + start: { + line: 88, + column: 44 + }, + end: { + line: 99, + column: 3 + } + }, + line: 88 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 42 + }, + end: { + line: 105, + column: 3 + } + }, + line: 100 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 106, + column: 2 + }, + end: { + line: 106, + column: 3 + } + }, + loc: { + start: { + line: 106, + column: 18 + }, + end: { + line: 117, + column: 3 + } + }, + line: 106 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 118, + column: 2 + }, + end: { + line: 118, + column: 3 + } + }, + loc: { + start: { + line: 118, + column: 11 + }, + end: { + line: 122, + column: 3 + } + }, + line: 118 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 125, + column: 1 + }, + end: { + line: 125, + column: 2 + } + }, + loc: { + start: { + line: 125, + column: 11 + }, + end: { + line: 156, + column: 2 + } + }, + line: 125 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 130, + column: 5 + }, + end: { + line: 130, + column: 6 + } + }, + loc: { + start: { + line: 130, + column: 29 + }, + end: { + line: 132, + column: 6 + } + }, + line: 130 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 145, + column: 5 + }, + end: { + line: 145, + column: 6 + } + }, + loc: { + start: { + line: 145, + column: 29 + }, + end: { + line: 147, + column: 6 + } + }, + line: 145 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 158, + column: 1 + }, + end: { + line: 158, + column: 2 + } + }, + loc: { + start: { + line: 158, + column: 11 + }, + end: { + line: 162, + column: 2 + } + }, + line: 158 } }, - 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"; + branchMap: { + "0": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 } - } - } else { - return item; + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }], + line: 63 + }, + "1": { + loc: { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, { + start: { + line: 72, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }], + line: 72 + }, + "2": { + loc: { + start: { + line: 73, + column: 4 + }, + end: { + line: 83, + column: 5 + } + }, + type: "switch", + locations: [{ + start: { + line: 74, + column: 5 + }, + end: { + line: 74, + column: 17 + } + }, { + start: { + line: 75, + column: 5 + }, + end: { + line: 75, + column: 21 + } + }, { + start: { + line: 76, + column: 5 + }, + end: { + line: 76, + column: 27 + } + }, { + start: { + line: 77, + column: 5 + }, + end: { + line: 77, + column: 19 + } + }, { + start: { + line: 78, + column: 5 + }, + end: { + line: 82, + column: 8 + } + }], + line: 73 + }, + "3": { + loc: { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }, { + start: { + line: 91, + column: 3 + }, + end: { + line: 97, + column: 4 + } + }], + line: 91 + }, + "4": { + loc: { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }, { + start: { + line: 92, + column: 4 + }, + end: { + line: 96, + column: 5 + } + }], + line: 92 + }, + "5": { + loc: { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }, { + start: { + line: 101, + column: 3 + }, + end: { + line: 103, + column: 4 + } + }], + line: 101 + }, + "6": { + loc: { + start: { + line: 108, + column: 3 + }, + end: { + line: 115, + column: 4 + } + }, + type: "switch", + locations: [{ + start: { + line: 109, + column: 4 + }, + end: { + line: 109, + column: 18 + } + }, { + start: { + line: 110, + column: 4 + }, + end: { + line: 114, + column: 11 + } + }], + line: 108 + }, + "7": { + loc: { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }, { + start: { + line: 111, + column: 5 + }, + end: { + line: 113, + column: 6 + } + }], + line: 111 + }, + "8": { + loc: { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }, { + start: { + line: 119, + column: 3 + }, + end: { + line: 121, + column: 4 + } + }], + line: 119 + }, + "9": { + loc: { + start: { + line: 126, + column: 2 + }, + end: { + line: 155, + column: 3 + } + }, + type: "switch", + locations: [{ + start: { + line: 127, + column: 3 + }, + end: { + line: 127, + column: 17 + } + }, { + start: { + line: 128, + column: 3 + }, + end: { + line: 139, + column: 10 + } + }, { + start: { + line: 140, + column: 3 + }, + end: { + line: 140, + column: 15 + } + }, { + start: { + line: 141, + column: 3 + }, + end: { + line: 141, + column: 19 + } + }, { + start: { + line: 142, + column: 3 + }, + end: { + line: 154, + column: 10 + } + }], + line: 126 + }, + "10": { + loc: { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }, { + start: { + line: 159, + column: 2 + }, + end: { + line: 161, + column: 3 + } + }], + line: 159 } }, - isItemChecked: function isItemChecked(item) { - return this.value && this.value.indexOf(this.getItemValue(item)) !== -1; + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0 }, - 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; - } + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 }, - 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"); - -// CONCATENATED MODULE: ./src/fields/core/fieldChecklist.vue - - - - - - -/* normalize component */ - -var fieldChecklist_component = normalizeComponent( - core_fieldChecklistvue_type_script_lang_js_, - fieldChecklistvue_type_template_id_29d9d05a_render, - fieldChecklistvue_type_template_id_29d9d05a_staticRenderFns, - false, - null, - null, - null - -) - -fieldChecklist_component.options.__file = "fieldChecklist.vue" -/* harmony default export */ var fieldChecklist = (fieldChecklist_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& -var fieldInputvue_type_template_id_413f6cd1_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",domProps:{"textContent":_vm._s(_vm.value)}}):_vm._e()])} -var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0, 0, 0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0, 0, 0, 0], + "10": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/core/fieldInput.vue?vue&type=template&id=413f6cd1& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -8081,19 +26896,26 @@ var fieldInputvue_type_template_id_413f6cd1_staticRenderFns = [] // -var DATETIME_FORMATS = { +var DATETIME_FORMATS = (cov_19faszspp7.s[0]++, { 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_ = ({ name: "field-input", mixins: [abstractField], computed: { inputType: function inputType() { + cov_19faszspp7.f[0]++; + cov_19faszspp7.s[1]++; + if (typeof this.fieldOptions.inputType !== "undefined") { + cov_19faszspp7.b[0][0]++; + cov_19faszspp7.s[2]++; return this.fieldOptions.inputType.toLowerCase(); } else { + cov_19faszspp7.b[0][1]++; + cov_19faszspp7.s[3]++; console.warn("Missing inputType", this.fieldOptions, this.fieldOptions.inputType); } } @@ -8102,94 +26924,184 @@ var DATETIME_FORMATS = { formatValueToModel: function formatValueToModel(value) { var _this = this; + cov_19faszspp7.f[1]++; + cov_19faszspp7.s[4]++; + if (value != null) { + cov_19faszspp7.b[1][0]++; + cov_19faszspp7.s[5]++; + switch (this.inputType) { case "date": + cov_19faszspp7.b[2][0]++; + case "datetime": + cov_19faszspp7.b[2][1]++; + case "datetime-local": + cov_19faszspp7.b[2][2]++; + case "number": + cov_19faszspp7.b[2][3]++; + case "range": + cov_19faszspp7.b[2][4]++; + cov_19faszspp7.s[6]++; // debounce return function (newValue, oldValue) { + cov_19faszspp7.f[2]++; + cov_19faszspp7.s[7]++; + _this.debouncedFormatFunc(value, oldValue); }; } + } else { + cov_19faszspp7.b[1][1]++; } + cov_19faszspp7.s[8]++; return value; }, formatDatetimeToModel: function formatDatetimeToModel(newValue, oldValue) { - var defaultFormat = DATETIME_FORMATS[this.inputType]; - var m = fecha_default.a.parse(newValue, defaultFormat); + cov_19faszspp7.f[3]++; + var defaultFormat = (cov_19faszspp7.s[9]++, DATETIME_FORMATS[this.inputType]); + var m = (cov_19faszspp7.s[10]++, fecha_default.a.parse(newValue, defaultFormat)); + cov_19faszspp7.s[11]++; if (m !== false) { + cov_19faszspp7.b[3][0]++; + cov_19faszspp7.s[12]++; + if (this.schema.format) { + cov_19faszspp7.b[4][0]++; + cov_19faszspp7.s[13]++; newValue = fecha_default.a.format(m, this.schema.format); } else { + cov_19faszspp7.b[4][1]++; + cov_19faszspp7.s[14]++; newValue = m.valueOf(); } + } else { + cov_19faszspp7.b[3][1]++; } + cov_19faszspp7.s[15]++; this.updateModelValue(newValue, oldValue); }, formatNumberToModel: function formatNumberToModel(newValue, oldValue) { + cov_19faszspp7.f[4]++; + cov_19faszspp7.s[16]++; + if (!isNumber_default()(newValue)) { + cov_19faszspp7.b[5][0]++; + cov_19faszspp7.s[17]++; newValue = NaN; + } else { + cov_19faszspp7.b[5][1]++; } + cov_19faszspp7.s[18]++; this.updateModelValue(newValue, oldValue); }, onInput: function onInput($event) { - var value = $event.target.value; + cov_19faszspp7.f[5]++; + var value = (cov_19faszspp7.s[19]++, $event.target.value); + cov_19faszspp7.s[20]++; switch (this.inputType) { case "number": + cov_19faszspp7.b[6][0]++; + case "range": + cov_19faszspp7.b[6][1]++; + cov_19faszspp7.s[21]++; + if (isNumber_default()(parseFloat($event.target.value))) { + cov_19faszspp7.b[7][0]++; + cov_19faszspp7.s[22]++; value = parseFloat($event.target.value); + } else { + cov_19faszspp7.b[7][1]++; } + cov_19faszspp7.s[23]++; break; } + cov_19faszspp7.s[24]++; this.value = value; }, onBlur: function onBlur() { + cov_19faszspp7.f[6]++; + cov_19faszspp7.s[25]++; + if (isFunction_default()(this.debouncedFormatFunc)) { + cov_19faszspp7.b[8][0]++; + cov_19faszspp7.s[26]++; this.debouncedFormatFunc.flush(); + } else { + cov_19faszspp7.b[8][1]++; } } }, mounted: function mounted() { var _this2 = this; + cov_19faszspp7.f[7]++; + cov_19faszspp7.s[27]++; + switch (this.inputType) { case "number": + cov_19faszspp7.b[9][0]++; + case "range": + cov_19faszspp7.b[9][1]++; + cov_19faszspp7.s[28]++; this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + cov_19faszspp7.f[8]++; + cov_19faszspp7.s[29]++; + _this2.formatNumberToModel(newValue, oldValue); }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { trailing: true, leading: false }); + cov_19faszspp7.s[30]++; break; case "date": + cov_19faszspp7.b[9][2]++; + case "datetime": + cov_19faszspp7.b[9][3]++; + case "datetime-local": + cov_19faszspp7.b[9][4]++; + cov_19faszspp7.s[31]++; // wait 1s before calling 'formatDatetimeToModel' to allow user to input data this.debouncedFormatFunc = debounce_default()(function (newValue, oldValue) { + cov_19faszspp7.f[9]++; + cov_19faszspp7.s[32]++; + _this2.formatDatetimeToModel(newValue, oldValue); }, parseInt(get_default()(this.schema, "debounceFormatTimeout", 1000)), { trailing: true, leading: false }); + cov_19faszspp7.s[33]++; break; } }, created: function created() { + cov_19faszspp7.f[10]++; + cov_19faszspp7.s[34]++; + if (this.inputType === "file") { + cov_19faszspp7.b[10][0]++; + cov_19faszspp7.s[35]++; console.warn("The 'file' type in input field is deprecated. Use 'file' field instead."); + } else { + cov_19faszspp7.b[10][1]++; } } }); @@ -8220,7 +27132,7 @@ var fieldInput_component = normalizeComponent( fieldInput_component.options.__file = "fieldInput.vue" /* harmony default export */ var fieldInput = (fieldInput_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& var fieldLabelvue_type_template_id_b7bdf280_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},domProps:{"textContent":_vm._s(_vm.value)}})} var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] @@ -8228,6 +27140,32 @@ var fieldLabelvue_type_template_id_b7bdf280_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/core/fieldLabel.vue?vue&type=template&id=b7bdf280& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1z02pwffjf = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue", + hash = "e0e8d398553634fa5cd6162f995cc222d002256b", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -8267,14 +27205,676 @@ var fieldLabel_component = normalizeComponent( fieldLabel_component.options.__file = "fieldLabel.vue" /* harmony default export */ var fieldLabel = (fieldLabel_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& -var fieldRadiosvue_type_template_id_3944ded4_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'"}],key:_vm.getItemValue(item),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))+"\n\t")])}))} -var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldRadios.vue?vue&type=template&id=02c30276& +var fieldRadiosvue_type_template_id_02c30276_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'"}],key:_vm.getItemValue(item),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,"required":_vm.required},domProps:{"value":_vm.getItemValue(item),"checked":_vm.isItemChecked(item)},on:{"click":function($event){_vm.onSelection(item)}}}),_vm._v(_vm._s(_vm.getItemName(item))+"\n\t")])}))} +var fieldRadiosvue_type_template_id_02c30276_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=02c30276& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_26ma8ejo1y = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue", + hash = "41a18432705c71af0b221e887e1a797ecd647f22", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue", + statementMap: { + "0": { + start: { + line: 34, + column: 16 + }, + end: { + line: 34, + column: 34 + } + }, + "1": { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + "2": { + start: { + line: 36, + column: 4 + }, + end: { + line: 36, + column: 57 + } + }, + "3": { + start: { + line: 38, + column: 4 + }, + end: { + line: 38, + column: 18 + } + }, + "4": { + start: { + line: 42, + column: 3 + }, + end: { + line: 42, + column: 28 + } + }, + "5": { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "6": { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + "7": { + start: { + line: 50, + column: 5 + }, + end: { + line: 50, + column: 42 + } + }, + "8": { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, + "9": { + start: { + line: 53, + column: 6 + }, + end: { + line: 53, + column: 24 + } + }, + "10": { + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 237 + } + }, + "11": { + start: { + line: 59, + column: 4 + }, + end: { + line: 59, + column: 16 + } + }, + "12": { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + "13": { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, + "14": { + start: { + line: 65, + column: 5 + }, + end: { + line: 65, + column: 41 + } + }, + "15": { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, + "16": { + start: { + line: 68, + column: 6 + }, + end: { + line: 68, + column: 23 + } + }, + "17": { + start: { + line: 70, + column: 6 + }, + end: { + line: 70, + column: 235 + } + }, + "18": { + start: { + line: 74, + column: 4 + }, + end: { + line: 74, + column: 16 + } + }, + "19": { + start: { + line: 78, + column: 3 + }, + end: { + line: 78, + column: 40 + } + }, + "20": { + start: { + line: 81, + column: 22 + }, + end: { + line: 81, + column: 45 + } + }, + "21": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 38 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 33, + column: 2 + }, + end: { + line: 33, + column: 3 + } + }, + loc: { + start: { + line: 33, + column: 10 + }, + end: { + line: 40, + column: 3 + } + }, + line: 33 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 41, + column: 2 + }, + end: { + line: 41, + column: 3 + } + }, + loc: { + start: { + line: 41, + column: 7 + }, + end: { + line: 43, + column: 3 + } + }, + line: 41 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 47, + column: 2 + }, + end: { + line: 47, + column: 3 + } + }, + loc: { + start: { + line: 47, + column: 21 + }, + end: { + line: 61, + column: 3 + } + }, + line: 47 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 20 + }, + end: { + line: 76, + column: 3 + } + }, + line: 62 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 77, + column: 2 + }, + end: { + line: 77, + column: 3 + } + }, + loc: { + start: { + line: 77, + column: 20 + }, + end: { + line: 79, + column: 3 + } + }, + line: 77 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 80, + column: 2 + }, + end: { + line: 80, + column: 3 + } + }, + loc: { + start: { + line: 80, + column: 22 + }, + end: { + line: 83, + column: 3 + } + }, + line: 80 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 35, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }], + line: 35 + }, + "1": { + loc: { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 48, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 48 + }, + "2": { + loc: { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, { + start: { + line: 49, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }], + line: 49 + }, + "3": { + loc: { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }, { + start: { + line: 52, + column: 5 + }, + end: { + line: 56, + column: 6 + } + }], + line: 52 + }, + "4": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 75, + column: 4 + } + }], + line: 63 + }, + "5": { + loc: { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }, { + start: { + line: 64, + column: 4 + }, + end: { + line: 72, + column: 5 + } + }], + line: 64 + }, + "6": { + loc: { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }, { + start: { + line: 67, + column: 5 + }, + end: { + line: 71, + column: 6 + } + }], + line: 67 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/core/fieldRadios.vue?vue&type=template&id=3944ded4& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& @@ -8285,54 +27885,100 @@ var fieldRadiosvue_type_template_id_3944ded4_staticRenderFns = [] mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_26ma8ejo1y.f[0]++; + var values = (cov_26ma8ejo1y.s[0]++, this.schema.values); + cov_26ma8ejo1y.s[1]++; if (typeof values == "function") { + cov_26ma8ejo1y.b[0][0]++; + cov_26ma8ejo1y.s[2]++; return values.apply(this, [this.model, this.schema]); } else { + cov_26ma8ejo1y.b[0][1]++; + cov_26ma8ejo1y.s[3]++; return values; } }, id: function id() { + cov_26ma8ejo1y.f[1]++; + cov_26ma8ejo1y.s[4]++; return this.schema.model; } }, methods: { getItemValue: function getItemValue(item) { + cov_26ma8ejo1y.f[2]++; + cov_26ma8ejo1y.s[5]++; + if (isObject_default()(item)) { + cov_26ma8ejo1y.b[1][0]++; + cov_26ma8ejo1y.s[6]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_26ma8ejo1y.b[2][0]++; + cov_26ma8ejo1y.s[7]++; return item[this.fieldOptions.value]; } else { + cov_26ma8ejo1y.b[2][1]++; + cov_26ma8ejo1y.s[8]++; + if (typeof item["value"] !== "undefined") { + cov_26ma8ejo1y.b[3][0]++; + cov_26ma8ejo1y.s[9]++; return item.value; } else { + cov_26ma8ejo1y.b[3][1]++; + cov_26ma8ejo1y.s[10]++; 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 { + cov_26ma8ejo1y.b[1][1]++; + cov_26ma8ejo1y.s[11]++; return item; } }, getItemName: function getItemName(item) { + cov_26ma8ejo1y.f[3]++; + cov_26ma8ejo1y.s[12]++; + if (isObject_default()(item)) { + cov_26ma8ejo1y.b[4][0]++; + cov_26ma8ejo1y.s[13]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_26ma8ejo1y.b[5][0]++; + cov_26ma8ejo1y.s[14]++; return item[this.fieldOptions.name]; } else { + cov_26ma8ejo1y.b[5][1]++; + cov_26ma8ejo1y.s[15]++; + if (typeof item["name"] !== "undefined") { + cov_26ma8ejo1y.b[6][0]++; + cov_26ma8ejo1y.s[16]++; return item.name; } else { + cov_26ma8ejo1y.b[6][1]++; + cov_26ma8ejo1y.s[17]++; 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 { + cov_26ma8ejo1y.b[4][1]++; + cov_26ma8ejo1y.s[18]++; return item; } }, onSelection: function onSelection(item) { + cov_26ma8ejo1y.f[4]++; + cov_26ma8ejo1y.s[19]++; this.value = this.getItemValue(item); }, isItemChecked: function isItemChecked(item) { - var currentValue = this.getItemValue(item); + cov_26ma8ejo1y.f[5]++; + var currentValue = (cov_26ma8ejo1y.s[20]++, this.getItemValue(item)); + cov_26ma8ejo1y.s[21]++; return currentValue === this.value; } } @@ -8353,8 +27999,8 @@ var fieldRadiosvue_type_style_index_0_lang_scss_ = __webpack_require__("602f"); var fieldRadios_component = normalizeComponent( core_fieldRadiosvue_type_script_lang_js_, - fieldRadiosvue_type_template_id_3944ded4_render, - fieldRadiosvue_type_template_id_3944ded4_staticRenderFns, + fieldRadiosvue_type_template_id_02c30276_render, + fieldRadiosvue_type_template_id_02c30276_staticRenderFns, false, null, null, @@ -8364,7 +28010,7 @@ var fieldRadios_component = normalizeComponent( fieldRadios_component.options.__file = "fieldRadios.vue" /* harmony default export */ var fieldRadios = (fieldRadios_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldSelect.vue?vue&type=template&id=d7c686e6& var fieldSelectvue_type_template_id_d7c686e6_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 || "")+"\n\t")]):_vm._e(),_vm._l((_vm.items),function(item){return [(item.group)?_c('optgroup',{key:_vm.getItemValue(item),attrs:{"label":_vm.getGroupName(item)}},_vm._l((item.ops),function(i){return (item.ops)?_c('option',{key:_vm.getItemValue(i),domProps:{"value":_vm.getItemValue(i)}},[_vm._v(" "+_vm._s(_vm.getItemName(i)))]):_vm._e()})):_vm._e(),(!item.group)?_c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))]):_vm._e()]})],2)} var fieldSelectvue_type_template_id_d7c686e6_staticRenderFns = [] @@ -8376,6 +28022,1109 @@ var find = __webpack_require__("2769"); var find_default = /*#__PURE__*/__webpack_require__.n(find); // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_lmw4dbcxz = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue", + hash = "8eabcdaef34305c76a5accd8a0e0c7e6b0d9ee14", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue", + statementMap: { + "0": { + start: { + line: 41, + column: 16 + }, + end: { + line: 41, + column: 34 + } + }, + "1": { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, + "2": { + start: { + line: 43, + column: 4 + }, + end: { + line: 43, + column: 75 + } + }, + "3": { + start: { + line: 44, + column: 10 + }, + end: { + line: 44, + column: 42 + } + }, + "4": { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + "5": { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 16 + } + }, + "6": { + start: { + line: 53, + column: 3 + }, + end: { + line: 53, + column: 16 + } + }, + "7": { + start: { + line: 57, + column: 15 + }, + end: { + line: 57, + column: 17 + } + }, + "8": { + start: { + line: 58, + column: 22 + }, + end: { + line: 58, + column: 24 + } + }, + "9": { + start: { + line: 60, + column: 3 + }, + end: { + line: 101, + column: 6 + } + }, + "10": { + start: { + line: 61, + column: 4 + }, + end: { + line: 61, + column: 24 + } + }, + "11": { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, + "12": { + start: { + line: 67, + column: 5 + }, + end: { + line: 67, + column: 63 + } + }, + "13": { + start: { + line: 67, + column: 39 + }, + end: { + line: 67, + column: 61 + } + }, + "14": { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, + "15": { + start: { + line: 72, + column: 6 + }, + end: { + line: 75, + column: 9 + } + }, + "16": { + start: { + line: 80, + column: 6 + }, + end: { + line: 83, + column: 8 + } + }, + "17": { + start: { + line: 86, + column: 6 + }, + end: { + line: 86, + column: 38 + } + }, + "18": { + start: { + line: 89, + column: 6 + }, + end: { + line: 92, + column: 9 + } + }, + "19": { + start: { + line: 95, + column: 6 + }, + end: { + line: 95, + column: 31 + } + }, + "20": { + start: { + line: 99, + column: 5 + }, + end: { + line: 99, + column: 22 + } + }, + "21": { + start: { + line: 104, + column: 3 + }, + end: { + line: 104, + column: 16 + } + }, + "22": { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, + "23": { + start: { + line: 109, + column: 4 + }, + end: { + line: 109, + column: 22 + } + }, + "24": { + start: { + line: 112, + column: 3 + }, + end: { + line: 112, + column: 136 + } + }, + "25": { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, + "26": { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, + "27": { + start: { + line: 118, + column: 5 + }, + end: { + line: 118, + column: 42 + } + }, + "28": { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, + "29": { + start: { + line: 122, + column: 6 + }, + end: { + line: 122, + column: 21 + } + }, + "30": { + start: { + line: 124, + column: 6 + }, + end: { + line: 124, + column: 233 + } + }, + "31": { + start: { + line: 128, + column: 4 + }, + end: { + line: 128, + column: 16 + } + }, + "32": { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + "33": { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, + "34": { + start: { + line: 135, + column: 5 + }, + end: { + line: 135, + column: 41 + } + }, + "35": { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, + "36": { + start: { + line: 138, + column: 6 + }, + end: { + line: 138, + column: 23 + } + }, + "37": { + start: { + line: 140, + column: 6 + }, + end: { + line: 140, + column: 234 + } + }, + "38": { + start: { + line: 144, + column: 4 + }, + end: { + line: 144, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 40, + column: 2 + }, + end: { + line: 40, + column: 3 + } + }, + loc: { + start: { + line: 40, + column: 10 + }, + end: { + line: 45, + column: 3 + } + }, + line: 40 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 3 + } + }, + loc: { + start: { + line: 49, + column: 28 + }, + end: { + line: 54, + column: 3 + } + }, + line: 49 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 56, + column: 2 + }, + end: { + line: 56, + column: 3 + } + }, + loc: { + start: { + line: 56, + column: 22 + }, + end: { + line: 105, + column: 3 + } + }, + line: 56 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 60, + column: 18 + }, + end: { + line: 60, + column: 19 + } + }, + loc: { + start: { + line: 60, + column: 28 + }, + end: { + line: 101, + column: 4 + } + }, + line: 60 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 67, + column: 32 + }, + end: { + line: 67, + column: 33 + } + }, + loc: { + start: { + line: 67, + column: 39 + }, + end: { + line: 67, + column: 61 + } + }, + line: 67 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 107, + column: 2 + }, + end: { + line: 107, + column: 3 + } + }, + loc: { + start: { + line: 107, + column: 21 + }, + end: { + line: 113, + column: 3 + } + }, + line: 107 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 115, + column: 2 + }, + end: { + line: 115, + column: 3 + } + }, + loc: { + start: { + line: 115, + column: 21 + }, + end: { + line: 130, + column: 3 + } + }, + line: 115 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 132, + column: 2 + }, + end: { + line: 132, + column: 3 + } + }, + loc: { + start: { + line: 132, + column: 20 + }, + end: { + line: 146, + column: 3 + } + }, + line: 132 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, + type: "if", + locations: [{ + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }, { + start: { + line: 42, + column: 3 + }, + end: { + line: 44, + column: 42 + } + }], + line: 42 + }, + "1": { + loc: { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, { + start: { + line: 50, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }], + line: 50 + }, + "2": { + loc: { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }, { + start: { + line: 63, + column: 4 + }, + end: { + line: 100, + column: 5 + } + }], + line: 63 + }, + "3": { + loc: { + start: { + line: 63, + column: 8 + }, + end: { + line: 63, + column: 36 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 63, + column: 8 + }, + end: { + line: 63, + column: 18 + } + }, { + start: { + line: 63, + column: 22 + }, + end: { + line: 63, + column: 36 + } + }], + line: 63 + }, + "4": { + loc: { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }, { + start: { + line: 69, + column: 5 + }, + end: { + line: 96, + column: 6 + } + }], + line: 69 + }, + "5": { + loc: { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }, { + start: { + line: 108, + column: 3 + }, + end: { + line: 110, + column: 4 + } + }], + line: 108 + }, + "6": { + loc: { + start: { + line: 108, + column: 7 + }, + end: { + line: 108, + column: 25 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 108, + column: 7 + }, + end: { + line: 108, + column: 11 + } + }, { + start: { + line: 108, + column: 15 + }, + end: { + line: 108, + column: 25 + } + }], + line: 108 + }, + "7": { + loc: { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }, { + start: { + line: 116, + column: 3 + }, + end: { + line: 129, + column: 4 + } + }], + line: 116 + }, + "8": { + loc: { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }, { + start: { + line: 117, + column: 4 + }, + end: { + line: 126, + column: 5 + } + }], + line: 117 + }, + "9": { + loc: { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }, { + start: { + line: 121, + column: 5 + }, + end: { + line: 125, + column: 6 + } + }], + line: 121 + }, + "10": { + loc: { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }, { + start: { + line: 133, + column: 3 + }, + end: { + line: 145, + column: 4 + } + }], + line: 133 + }, + "11": { + loc: { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }, { + start: { + line: 134, + column: 4 + }, + end: { + line: 142, + column: 5 + } + }], + line: 134 + }, + "12": { + loc: { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }, { + start: { + line: 137, + column: 5 + }, + end: { + line: 141, + column: 6 + } + }], + line: 137 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0, + "27": 0, + "28": 0, + "29": 0, + "30": 0, + "31": 0, + "32": 0, + "33": 0, + "34": 0, + "35": 0, + "36": 0, + "37": 0, + "38": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0], + "12": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + @@ -8388,41 +29137,71 @@ var find_default = /*#__PURE__*/__webpack_require__.n(find); mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_lmw4dbcxz.f[0]++; + var values = (cov_lmw4dbcxz.s[0]++, this.schema.values); + cov_lmw4dbcxz.s[1]++; if (typeof values == "function") { + cov_lmw4dbcxz.b[0][0]++; + cov_lmw4dbcxz.s[2]++; return this.groupValues(values.apply(this, [this.model, this.schema])); - } else return this.groupValues(values); + } else { + cov_lmw4dbcxz.b[0][1]++; + cov_lmw4dbcxz.s[3]++; + return this.groupValues(values); + } } }, methods: { formatValueToField: function formatValueToField(value) { + cov_lmw4dbcxz.f[1]++; + cov_lmw4dbcxz.s[4]++; + if (isNil_default()(value)) { + cov_lmw4dbcxz.b[1][0]++; + cov_lmw4dbcxz.s[5]++; return null; + } else { + cov_lmw4dbcxz.b[1][1]++; } + cov_lmw4dbcxz.s[6]++; return value; }, groupValues: function groupValues(values) { - var array = []; - var arrayElement = {}; + cov_lmw4dbcxz.f[2]++; + var array = (cov_lmw4dbcxz.s[7]++, []); + var arrayElement = (cov_lmw4dbcxz.s[8]++, {}); + cov_lmw4dbcxz.s[9]++; values.forEach(function (item) { + cov_lmw4dbcxz.f[3]++; + cov_lmw4dbcxz.s[10]++; arrayElement = null; + cov_lmw4dbcxz.s[11]++; - if (item.group && isObject_default()(item)) { + if ((cov_lmw4dbcxz.b[3][0]++, item.group) && (cov_lmw4dbcxz.b[3][1]++, isObject_default()(item))) { + cov_lmw4dbcxz.b[2][0]++; + cov_lmw4dbcxz.s[12]++; // There is in a group. // Find element with this group. arrayElement = find_default()(array, function (i) { + cov_lmw4dbcxz.f[4]++; + cov_lmw4dbcxz.s[13]++; return i.group === item.group; }); + cov_lmw4dbcxz.s[14]++; if (arrayElement) { + cov_lmw4dbcxz.b[4][0]++; + cov_lmw4dbcxz.s[15]++; // There is such a group. arrayElement.ops.push({ id: item.id, name: item.name }); } else { + cov_lmw4dbcxz.b[4][1]++; + cov_lmw4dbcxz.s[16]++; // There is not such a group. // Initialising. arrayElement = { @@ -8430,58 +29209,106 @@ var find_default = /*#__PURE__*/__webpack_require__.n(find); ops: [] }; // Set group. + cov_lmw4dbcxz.s[17]++; arrayElement.group = item.group; // Set Group element. + cov_lmw4dbcxz.s[18]++; arrayElement.ops.push({ id: item.id, name: item.name }); // Add array. + cov_lmw4dbcxz.s[19]++; array.push(arrayElement); } } else { + cov_lmw4dbcxz.b[2][1]++; + cov_lmw4dbcxz.s[20]++; // There is not in a group. array.push(item); } }); // With Groups. + cov_lmw4dbcxz.s[21]++; return array; }, getGroupName: function getGroupName(item) { - if (item && item.group) { + cov_lmw4dbcxz.f[5]++; + cov_lmw4dbcxz.s[22]++; + + if ((cov_lmw4dbcxz.b[6][0]++, item) && (cov_lmw4dbcxz.b[6][1]++, item.group)) { + cov_lmw4dbcxz.b[5][0]++; + cov_lmw4dbcxz.s[23]++; return item.group; + } else { + cov_lmw4dbcxz.b[5][1]++; } + cov_lmw4dbcxz.s[24]++; throw "Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"; }, getItemValue: function getItemValue(item) { + cov_lmw4dbcxz.f[6]++; + cov_lmw4dbcxz.s[25]++; + if (isObject_default()(item)) { + cov_lmw4dbcxz.b[7][0]++; + cov_lmw4dbcxz.s[26]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_lmw4dbcxz.b[8][0]++; + cov_lmw4dbcxz.s[27]++; return item[this.fieldOptions.value]; } else { + cov_lmw4dbcxz.b[8][1]++; + cov_lmw4dbcxz.s[28]++; + // Use 'id' instead of 'value' cause of backward compatibility if (typeof item["id"] !== "undefined") { + cov_lmw4dbcxz.b[9][0]++; + cov_lmw4dbcxz.s[29]++; return item.id; } else { + cov_lmw4dbcxz.b[9][1]++; + cov_lmw4dbcxz.s[30]++; 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 { + cov_lmw4dbcxz.b[7][1]++; + cov_lmw4dbcxz.s[31]++; return item; } }, getItemName: function getItemName(item) { + cov_lmw4dbcxz.f[7]++; + cov_lmw4dbcxz.s[32]++; + if (isObject_default()(item)) { + cov_lmw4dbcxz.b[10][0]++; + cov_lmw4dbcxz.s[33]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_lmw4dbcxz.b[11][0]++; + cov_lmw4dbcxz.s[34]++; return item[this.fieldOptions.name]; } else { + cov_lmw4dbcxz.b[11][1]++; + cov_lmw4dbcxz.s[35]++; + if (typeof item["name"] !== "undefined") { + cov_lmw4dbcxz.b[12][0]++; + cov_lmw4dbcxz.s[36]++; return item.name; } else { + cov_lmw4dbcxz.b[12][1]++; + cov_lmw4dbcxz.s[37]++; 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 { + cov_lmw4dbcxz.b[10][1]++; + cov_lmw4dbcxz.s[38]++; return item; } } @@ -8510,18 +29337,380 @@ var fieldSelect_component = normalizeComponent( fieldSelect_component.options.__file = "fieldSelect.vue" /* harmony default export */ var fieldSelect = (fieldSelect_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& var fieldSubmitvue_type_template_id_11503acf_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 fieldSubmitvue_type_template_id_11503acf_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& +// CONCATENATED MODULE: ./src/fields/core/fieldSubmit.vue?vue&type=template&id=11503acf& + +// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js +var isEmpty = __webpack_require__("13ea"); +var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1eyhbnl2w4 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue", + hash = "705dcd2f9bd065a866442cf99ecf19cdc719dc61", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + "1": { + start: { + line: 25, + column: 4 + }, + end: { + line: 25, + column: 28 + } + }, + "2": { + start: { + line: 27, + column: 4 + }, + end: { + line: 27, + column: 53 + } + }, + "3": { + start: { + line: 28, + column: 4 + }, + end: { + line: 34, + column: 7 + } + }, + "4": { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, + "5": { + start: { + line: 30, + column: 6 + }, + end: { + line: 30, + column: 87 + } + }, + "6": { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, + "7": { + start: { + line: 32, + column: 6 + }, + end: { + line: 32, + column: 66 + } + }, + "8": { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, + "9": { + start: { + line: 38, + column: 4 + }, + end: { + line: 38, + column: 64 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 3 + } + }, + loc: { + start: { + line: 21, + column: 18 + }, + end: { + line: 40, + column: 3 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 28, + column: 54 + }, + end: { + line: 28, + column: 55 + } + }, + loc: { + start: { + line: 28, + column: 70 + }, + end: { + line: 34, + column: 5 + } + }, + line: 28 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 22, + column: 3 + }, + end: { + line: 39, + column: 4 + } + }], + line: 22 + }, + "1": { + loc: { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }, { + start: { + line: 29, + column: 5 + }, + end: { + line: 33, + column: 6 + } + }], + line: 29 + }, + "2": { + loc: { + start: { + line: 29, + column: 9 + }, + end: { + line: 29, + column: 80 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 29, + column: 9 + }, + end: { + line: 29, + column: 29 + } + }, { + start: { + line: 29, + column: 33 + }, + end: { + line: 29, + column: 80 + } + }], + line: 29 + }, + "3": { + loc: { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }, { + start: { + line: 31, + column: 12 + }, + end: { + line: 33, + column: 6 + } + }], + line: 31 + }, + "4": { + loc: { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }, { + start: { + line: 35, + column: 10 + }, + end: { + line: 39, + column: 4 + } + }], + line: 35 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// EXTERNAL MODULE: ./node_modules/lodash/isEmpty.js -var isEmpty = __webpack_require__("13ea"); -var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& // @@ -8543,22 +29732,54 @@ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty); onClick: function onClick($event) { var _this = this; + cov_1eyhbnl2w4.f[0]++; + cov_1eyhbnl2w4.s[0]++; + if (this.fieldOptions.validateBeforeSubmit === true) { + cov_1eyhbnl2w4.b[0][0]++; + cov_1eyhbnl2w4.s[1]++; // prevent a from having it's submit event triggered // when we have to validate data first $event.preventDefault(); + cov_1eyhbnl2w4.s[2]++; this.eventBus.$emit("fields-validation-trigger"); + cov_1eyhbnl2w4.s[3]++; this.eventBus.$on("fields-validation-terminated", function (formErrors) { - if (!isEmpty_default()(formErrors) && isFunction_default()(_this.fieldOptions.onValidationError)) { + cov_1eyhbnl2w4.f[1]++; + cov_1eyhbnl2w4.s[4]++; + + if ((cov_1eyhbnl2w4.b[2][0]++, !isEmpty_default()(formErrors)) && (cov_1eyhbnl2w4.b[2][1]++, isFunction_default()(_this.fieldOptions.onValidationError))) { + cov_1eyhbnl2w4.b[1][0]++; + cov_1eyhbnl2w4.s[5]++; + _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 { + cov_1eyhbnl2w4.b[1][1]++; + cov_1eyhbnl2w4.s[6]++; + + if (isFunction_default()(_this.fieldOptions.onSubmit)) { + cov_1eyhbnl2w4.b[3][0]++; + cov_1eyhbnl2w4.s[7]++; + + _this.fieldOptions.onSubmit(_this.model, _this.schema, $event); + } else { + cov_1eyhbnl2w4.b[3][1]++; + } } }); - } 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); + } else { + cov_1eyhbnl2w4.b[0][1]++; + cov_1eyhbnl2w4.s[8]++; + + if (isFunction_default()(this.fieldOptions.onSubmit)) { + cov_1eyhbnl2w4.b[4][0]++; + cov_1eyhbnl2w4.s[9]++; + // 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); + } else { + cov_1eyhbnl2w4.b[4][1]++; + } } } } @@ -8590,14 +29811,41 @@ var fieldSubmit_component = normalizeComponent( fieldSubmit_component.options.__file = "fieldSubmit.vue" /* harmony default export */ var fieldSubmit = (fieldSubmit_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& -var fieldTextAreavue_type_template_id_4f6b57f4_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 fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldTextArea.vue?vue&type=template&id=f39f9114& +var fieldTextAreavue_type_template_id_f39f9114_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,"required":_vm.required,"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 fieldTextAreavue_type_template_id_f39f9114_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=4f6b57f4& +// CONCATENATED MODULE: ./src/fields/core/fieldTextArea.vue?vue&type=template&id=f39f9114& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_1hqhuum74p = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue", + hash = "cad11a306f38168b3da4ad2f7aaa633fbbd53d56", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + +// // // // @@ -8630,8 +29878,8 @@ var fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns = [] var fieldTextArea_component = normalizeComponent( core_fieldTextAreavue_type_script_lang_js_, - fieldTextAreavue_type_template_id_4f6b57f4_render, - fieldTextAreavue_type_template_id_4f6b57f4_staticRenderFns, + fieldTextAreavue_type_template_id_f39f9114_render, + fieldTextAreavue_type_template_id_f39f9114_staticRenderFns, false, null, null, @@ -8641,14 +29889,127 @@ var fieldTextArea_component = normalizeComponent( fieldTextArea_component.options.__file = "fieldTextArea.vue" /* harmony default export */ var fieldTextArea = (fieldTextArea_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& -var fieldUploadvue_type_template_id_2593d5d7_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 fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/core/fieldUpload.vue?vue&type=template&id=94384992& +var fieldUploadvue_type_template_id_94384992_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 fieldUploadvue_type_template_id_94384992_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=2593d5d7& +// CONCATENATED MODULE: ./src/fields/core/fieldUpload.vue?vue&type=template&id=94384992& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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& +var cov_ne4lthbiz = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue", + hash = "2d53023d636a56005ec40d048d8b3dd58211ad58", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue", + statementMap: { + "0": { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + "1": { + start: { + line: 30, + column: 4 + }, + end: { + line: 30, + column: 82 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 27, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }, + loc: { + start: { + line: 27, + column: 19 + }, + end: { + line: 32, + column: 3 + } + }, + line: 27 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, { + start: { + line: 28, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }], + line: 28 + } + }, + s: { + "0": 0, + "1": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8674,9 +30035,16 @@ var fieldUploadvue_type_template_id_2593d5d7_staticRenderFns = [] mixins: [abstractField], methods: { onChange: function onChange($event) { - if (isFunction_default()(this.schema.onChanged)) { + cov_ne4lthbiz.f[0]++; + cov_ne4lthbiz.s[0]++; + + if (isFunction_default()(this.fieldOptions.onChanged)) { + cov_ne4lthbiz.b[0][0]++; + cov_ne4lthbiz.s[1]++; // Schema has defined onChange method. - this.schema.onChanged.call(this, this.model, this.schema, $event, this); + this.fieldOptions.onChanged.call(this, this.model, this.schema, $event, this); + } else { + cov_ne4lthbiz.b[0][1]++; } } } @@ -8697,8 +30065,8 @@ var fieldUploadvue_type_style_index_0_lang_scss_ = __webpack_require__("b018"); var fieldUpload_component = normalizeComponent( core_fieldUploadvue_type_script_lang_js_, - fieldUploadvue_type_template_id_2593d5d7_render, - fieldUploadvue_type_template_id_2593d5d7_staticRenderFns, + fieldUploadvue_type_template_id_94384992_render, + fieldUploadvue_type_template_id_94384992_staticRenderFns, false, null, null, @@ -8708,7 +30076,7 @@ var fieldUpload_component = normalizeComponent( fieldUpload_component.options.__file = "fieldUpload.vue" /* harmony default export */ var fieldUpload = (fieldUpload_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& var fieldCleavevue_type_template_id_51b82522_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":_vm.value}})} var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] @@ -8716,6 +30084,467 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldCleave.vue?vue&type=template&id=51b82522& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldCleave.vue?vue&type=script&lang=js& +var cov_6hfcii981 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue", + hash = "42d278f718bae81662eb9c983c26bea42713db98", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 2 + }, + end: { + line: 24, + column: 4 + } + }, + "1": { + start: { + line: 28, + column: 2 + }, + end: { + line: 70, + column: 5 + } + }, + "2": { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + "3": { + start: { + line: 30, + column: 4 + }, + end: { + line: 56, + column: 6 + } + }, + "4": { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, + "5": { + start: { + line: 59, + column: 5 + }, + end: { + line: 61, + column: 8 + } + }, + "6": { + start: { + line: 60, + column: 6 + }, + end: { + line: 60, + column: 49 + } + }, + "7": { + start: { + line: 63, + column: 5 + }, + end: { + line: 63, + column: 58 + } + }, + "8": { + start: { + line: 66, + column: 4 + }, + end: { + line: 68, + column: 6 + } + }, + "9": { + start: { + line: 75, + column: 3 + }, + end: { + line: 75, + column: 31 + } + }, + "10": { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, + "11": { + start: { + line: 81, + column: 3 + }, + end: { + line: 81, + column: 25 + } + }, + "12": { + start: { + line: 82, + column: 3 + }, + end: { + line: 82, + column: 59 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 1 + }, + end: { + line: 21, + column: 2 + } + }, + loc: { + start: { + line: 21, + column: 8 + }, + end: { + line: 25, + column: 2 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 27, + column: 1 + }, + end: { + line: 27, + column: 2 + } + }, + loc: { + start: { + line: 27, + column: 11 + }, + end: { + line: 71, + column: 2 + } + }, + line: 27 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 28, + column: 17 + }, + end: { + line: 28, + column: 18 + } + }, + loc: { + start: { + line: 28, + column: 28 + }, + end: { + line: 70, + column: 3 + } + }, + line: 28 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 59, + column: 45 + }, + end: { + line: 59, + column: 46 + } + }, + loc: { + start: { + line: 59, + column: 51 + }, + end: { + line: 61, + column: 6 + } + }, + line: 59 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 74, + column: 2 + }, + end: { + line: 74, + column: 3 + } + }, + loc: { + start: { + line: 74, + column: 16 + }, + end: { + line: 76, + column: 3 + } + }, + line: 74 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 79, + column: 1 + }, + end: { + line: 79, + column: 2 + } + }, + loc: { + start: { + line: 79, + column: 17 + }, + end: { + line: 84, + column: 2 + } + }, + line: 79 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }, { + start: { + line: 29, + column: 3 + }, + end: { + line: 69, + column: 4 + } + }], + line: 29 + }, + "1": { + loc: { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }, { + start: { + line: 58, + column: 4 + }, + end: { + line: 64, + column: 5 + } + }], + line: 58 + }, + "2": { + loc: { + start: { + line: 58, + column: 8 + }, + end: { + line: 58, + column: 81 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 58, + column: 8 + }, + end: { + line: 58, + column: 30 + } + }, { + start: { + line: 58, + column: 34 + }, + end: { + line: 58, + column: 81 + } + }], + line: 58 + }, + "3": { + loc: { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }, { + start: { + line: 80, + column: 2 + }, + end: { + line: 83, + column: 3 + } + }], + line: 80 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8734,15 +30563,24 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] name: "field-cleave", mixins: [abstractField], data: function data() { + cov_6hfcii981.f[0]++; + cov_6hfcii981.s[0]++; return { cleave: null }; }, mounted: function mounted() { + cov_6hfcii981.f[1]++; + cov_6hfcii981.s[1]++; this.$nextTick(function () { var _this = this; + cov_6hfcii981.f[2]++; + cov_6hfcii981.s[2]++; + if (window.Cleave) { + cov_6hfcii981.b[0][0]++; + cov_6hfcii981.s[3]++; this.cleave = new window.Cleave(this.$el, defaults_default()(this.fieldOptions, { // Credit Card creditCard: false, @@ -8767,28 +30605,47 @@ var fieldCleavevue_type_template_id_51b82522_staticRenderFns = [] lowercase: false, maxLength: 0 })); + cov_6hfcii981.s[4]++; - if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) { + if ((cov_6hfcii981.b[2][0]++, this.cleave.properties) && (cov_6hfcii981.b[2][1]++, this.cleave.properties.hasOwnProperty("result"))) { + cov_6hfcii981.b[1][0]++; + cov_6hfcii981.s[5]++; this.$watch("cleave.properties.result", function () { + cov_6hfcii981.f[3]++; + cov_6hfcii981.s[6]++; _this.value = _this.cleave.properties.result; }); } else { + cov_6hfcii981.b[1][1]++; + cov_6hfcii981.s[7]++; this.$el.addEventListener("input", this.inputChange); } } else { + cov_6hfcii981.b[0][1]++; + cov_6hfcii981.s[8]++; console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!"); } }); }, methods: { inputChange: function inputChange() { + cov_6hfcii981.f[4]++; + cov_6hfcii981.s[9]++; this.value = this.$el.value; } }, beforeDestroy: function beforeDestroy() { + cov_6hfcii981.f[5]++; + cov_6hfcii981.s[10]++; + if (this.cleave) { + cov_6hfcii981.b[3][0]++; + cov_6hfcii981.s[11]++; this.cleave.destroy(); + cov_6hfcii981.s[12]++; this.$el.removeEventListener("input", this.inputChange); + } else { + cov_6hfcii981.b[3][1]++; } } }); @@ -8815,7 +30672,7 @@ var fieldCleave_component = normalizeComponent( fieldCleave_component.options.__file = "fieldCleave.vue" /* harmony default export */ var fieldCleave = (fieldCleave_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldDateTimePicker.vue?vue&type=template&id=0b5a21ff& var fieldDateTimePickervue_type_template_id_0b5a21ff_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"input-group date"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}}),_vm._m(0)])} var fieldDateTimePickervue_type_template_id_0b5a21ff_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"input-group-addon"},[_c('span',{staticClass:"glyphicon glyphicon-calendar"})])}] @@ -8843,49 +30700,928 @@ function _objectSpread(target) { return target; } // CONCATENATED MODULE: ./src/utils/dateFieldHelper.js +var cov_4891oh4b8 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\dateFieldHelper.js", + hash = "8a5e584ed31b0565879c911f0bd7f5bce9fc41d8", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\dateFieldHelper.js", + statementMap: { + "0": { + start: { + line: 2, + column: 18 + }, + end: { + line: 2, + column: 39 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 21 + } + }, + "2": { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, + "3": { + start: { + line: 10, + column: 3 + }, + end: { + line: 10, + column: 35 + } + }, + "4": { + start: { + line: 12, + column: 3 + }, + end: { + line: 12, + column: 39 + } + }, + "5": { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + "6": { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, + "7": { + start: { + line: 19, + column: 4 + }, + end: { + line: 19, + column: 54 + } + }, + "8": { + start: { + line: 21, + column: 4 + }, + end: { + line: 21, + column: 25 + } + }, + "9": { + start: { + line: 24, + column: 3 + }, + end: { + line: 24, + column: 49 + } + }, + "10": { + start: { + line: 27, + column: 2 + }, + end: { + line: 27, + column: 15 + } + }, + "11": { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + "12": { + start: { + line: 32, + column: 11 + }, + end: { + line: 32, + column: 51 + } + }, + "13": { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, + "14": { + start: { + line: 34, + column: 4 + }, + end: { + line: 34, + column: 54 + } + }, + "15": { + start: { + line: 36, + column: 4 + }, + end: { + line: 36, + column: 24 + } + }, + "16": { + start: { + line: 40, + column: 2 + }, + end: { + line: 40, + column: 15 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 5, + column: 1 + }, + end: { + line: 5, + column: 2 + } + }, + loc: { + start: { + line: 5, + column: 25 + }, + end: { + line: 7, + column: 2 + } + }, + line: 5 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 8, + column: 1 + }, + end: { + line: 8, + column: 2 + } + }, + loc: { + start: { + line: 8, + column: 17 + }, + end: { + line: 14, + column: 2 + } + }, + line: 8 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 15, + column: 1 + }, + end: { + line: 15, + column: 2 + } + }, + loc: { + start: { + line: 15, + column: 27 + }, + end: { + line: 28, + column: 2 + } + }, + line: 15 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 30, + column: 1 + }, + end: { + line: 30, + column: 2 + } + }, + loc: { + start: { + line: 30, + column: 27 + }, + end: { + line: 41, + column: 2 + } + }, + line: 30 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }, { + start: { + line: 9, + column: 2 + }, + end: { + line: 13, + column: 3 + } + }], + line: 9 + }, + "1": { + loc: { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, { + start: { + line: 16, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }], + line: 16 + }, + "2": { + loc: { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }, { + start: { + line: 18, + column: 3 + }, + end: { + line: 22, + column: 4 + } + }], + line: 18 + }, + "3": { + loc: { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, { + start: { + line: 31, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }], + line: 31 + }, + "4": { + loc: { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }, { + start: { + line: 33, + column: 3 + }, + end: { + line: 37, + column: 4 + } + }], + line: 33 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -var inputFormat = "YYYY-MM-DD HH:mm:ss"; + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + + +var inputFormat = (cov_4891oh4b8.s[0]++, "YYYY-MM-DD HH:mm:ss"); /* harmony default export */ var dateFieldHelper = ({ getDefaultInputFormat: function getDefaultInputFormat() { + cov_4891oh4b8.f[0]++; + cov_4891oh4b8.s[1]++; return inputFormat; }, getDateFormat: function getDateFormat() { + cov_4891oh4b8.f[1]++; + cov_4891oh4b8.s[2]++; + if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[0][0]++; + cov_4891oh4b8.s[3]++; return this.fieldOptions.format; } else { + cov_4891oh4b8.b[0][1]++; + cov_4891oh4b8.s[4]++; return this.getDefaultInputFormat(); } }, formatValueToField: function formatValueToField(value) { + cov_4891oh4b8.f[2]++; + cov_4891oh4b8.s[5]++; + if (value != null) { + cov_4891oh4b8.b[1][0]++; var dt; + cov_4891oh4b8.s[6]++; if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[2][0]++; + cov_4891oh4b8.s[7]++; dt = fecha_default.a.parse(value, this.fieldOptions.format); } else { + cov_4891oh4b8.b[2][1]++; + cov_4891oh4b8.s[8]++; dt = new Date(value); } - - return fecha_default.a.format(dt, this.getDateFormat()); - } - - return value; - }, - formatValueToModel: function formatValueToModel(value) { - if (value != null) { - var m = fecha_default.a.parse(value, this.getDateFormat()); - - if (typeof this.fieldOptions.format !== "undefined") { - value = fecha_default.a.format(m, this.fieldOptions.format); - } else { - value = m.valueOf(); + + cov_4891oh4b8.s[9]++; + return fecha_default.a.format(dt, this.getDateFormat()); + } else { + cov_4891oh4b8.b[1][1]++; + } + + cov_4891oh4b8.s[10]++; + return value; + }, + formatValueToModel: function formatValueToModel(value) { + cov_4891oh4b8.f[3]++; + cov_4891oh4b8.s[11]++; + + if (value != null) { + cov_4891oh4b8.b[3][0]++; + var m = (cov_4891oh4b8.s[12]++, fecha_default.a.parse(value, this.getDateFormat())); + cov_4891oh4b8.s[13]++; + + if (typeof this.fieldOptions.format !== "undefined") { + cov_4891oh4b8.b[4][0]++; + cov_4891oh4b8.s[14]++; + value = fecha_default.a.format(m, this.fieldOptions.format); + } else { + cov_4891oh4b8.b[4][1]++; + cov_4891oh4b8.s[15]++; + value = m.valueOf(); + } + } else { + cov_4891oh4b8.b[3][1]++; + } + + cov_4891oh4b8.s[16]++; + return value; + } +}); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& +var cov_ss81vc3vc = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldDateTimePicker.vue", + hash = "a0c9914272485c207dd0659497f9cf854f571041", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldDateTimePicker.vue", + statementMap: { + "0": { + start: { + line: 34, + column: 2 + }, + end: { + line: 51, + column: 5 + } + }, + "1": { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + "2": { + start: { + line: 36, + column: 16 + }, + end: { + line: 36, + column: 55 + } + }, + "3": { + start: { + line: 37, + column: 4 + }, + end: { + line: 45, + column: 8 + } + }, + "4": { + start: { + line: 44, + column: 6 + }, + end: { + line: 44, + column: 31 + } + }, + "5": { + start: { + line: 47, + column: 4 + }, + end: { + line: 49, + column: 6 + } + }, + "6": { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, + "7": { + start: { + line: 56, + column: 3 + }, + end: { + line: 58, + column: 15 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 33, + column: 1 + }, + end: { + line: 33, + column: 2 + } + }, + loc: { + start: { + line: 33, + column: 11 + }, + end: { + line: 52, + column: 2 + } + }, + line: 33 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 34, + column: 17 + }, + end: { + line: 34, + column: 18 + } + }, + loc: { + start: { + line: 34, + column: 23 + }, + end: { + line: 51, + column: 3 + } + }, + line: 34 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 43, + column: 22 + }, + end: { + line: 43, + column: 23 + } + }, + loc: { + start: { + line: 43, + column: 28 + }, + end: { + line: 45, + column: 6 + } + }, + line: 43 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 54, + column: 1 + }, + end: { + line: 54, + column: 2 + } + }, + loc: { + start: { + line: 54, + column: 17 + }, + end: { + line: 60, + column: 2 + } + }, + line: 54 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, { + start: { + line: 35, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }], + line: 35 + }, + "1": { + loc: { + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 15 + } + }, { + start: { + line: 35, + column: 19 + }, + end: { + line: 35, + column: 45 + } + }], + line: 35 + }, + "2": { + loc: { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }, { + start: { + line: 55, + column: 2 + }, + end: { + line: 59, + column: 3 + } + }], + line: 55 + }, + "3": { + loc: { + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 44 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 55, + column: 6 + }, + end: { + line: 55, + column: 14 + } + }, { + start: { + line: 55, + column: 18 + }, + end: { + line: 55, + column: 44 + } + }], + line: 55 } - } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); - return value; + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } -}); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldDateTimePicker.vue?vue&type=script&lang=js& + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -8917,23 +31653,40 @@ var inputFormat = "YYYY-MM-DD HH:mm:ss"; mounted: function mounted() { var _this = this; + cov_ss81vc3vc.f[0]++; + cov_ss81vc3vc.s[0]++; this.$nextTick(function () { - if (window.$ && window.$.fn.datetimepicker) { - var input = _this.$el.querySelector(".form-control"); + cov_ss81vc3vc.f[1]++; + cov_ss81vc3vc.s[1]++; + if ((cov_ss81vc3vc.b[1][0]++, window.$) && (cov_ss81vc3vc.b[1][1]++, window.$.fn.datetimepicker)) { + cov_ss81vc3vc.b[0][0]++; + var input = (cov_ss81vc3vc.s[2]++, _this.$el.querySelector(".form-control")); + cov_ss81vc3vc.s[3]++; $(_this.$el).datetimepicker(defaults_default()(_this.fieldOptions, { format: _this.getDefaultInputFormat() })).on("dp.change", function () { + cov_ss81vc3vc.f[2]++; + cov_ss81vc3vc.s[4]++; _this.value = input.value; }); } else { + cov_ss81vc3vc.b[0][1]++; + cov_ss81vc3vc.s[5]++; console.warn("Bootstrap datetimepicker library is missing. Please download from https://eonasdan.github.io/bootstrap-datetimepicker/ and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.datetimepicker) { + cov_ss81vc3vc.f[3]++; + cov_ss81vc3vc.s[6]++; + + if ((cov_ss81vc3vc.b[3][0]++, window.$) && (cov_ss81vc3vc.b[3][1]++, window.$.fn.datetimepicker)) { + cov_ss81vc3vc.b[2][0]++; + cov_ss81vc3vc.s[7]++; $(this.$el).data("DateTimePicker").destroy(); + } else { + cov_ss81vc3vc.b[2][1]++; } } }); @@ -8960,7 +31713,7 @@ var fieldDateTimePicker_component = normalizeComponent( fieldDateTimePicker_component.options.__file = "fieldDateTimePicker.vue" /* harmony default export */ var fieldDateTimePicker = (fieldDateTimePicker_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& var fieldGoogleAddressvue_type_template_id_40223704_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"debounce":"500","id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"focus":function($event){_vm.geolocate()},"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] @@ -8968,6 +31721,686 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldGoogleAddress.vue?vue&type=template&id=40223704& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldGoogleAddress.vue?vue&type=script&lang=js& +var cov_15atxd0s5z = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldGoogleAddress.vue", + hash = "85e096e1ddc0e465e7b584ed1fd114afcb2f579c", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldGoogleAddress.vue", + statementMap: { + "0": { + start: { + line: 30, + column: 2 + }, + end: { + line: 44, + column: 4 + } + }, + "1": { + start: { + line: 48, + column: 2 + }, + end: { + line: 65, + column: 5 + } + }, + "2": { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, + "3": { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 7 + } + }, + "4": { + start: { + line: 59, + column: 4 + }, + end: { + line: 59, + column: 69 + } + }, + "5": { + start: { + line: 61, + column: 4 + }, + end: { + line: 63, + column: 6 + } + }, + "6": { + start: { + line: 74, + column: 15 + }, + end: { + line: 74, + column: 43 + } + }, + "7": { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + "8": { + start: { + line: 76, + column: 4 + }, + end: { + line: 76, + column: 41 + } + }, + "9": { + start: { + line: 78, + column: 15 + }, + end: { + line: 78, + column: 17 + } + }, + "10": { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, + "11": { + start: { + line: 80, + column: 5 + }, + end: { + line: 85, + column: 6 + } + }, + "12": { + start: { + line: 81, + column: 18 + }, + end: { + line: 81, + column: 54 + } + }, + "13": { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, + "14": { + start: { + line: 83, + column: 7 + }, + end: { + line: 83, + column: 69 + } + }, + "15": { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, + "16": { + start: { + line: 90, + column: 5 + }, + end: { + line: 90, + column: 88 + } + }, + "17": { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, + "18": { + start: { + line: 100, + column: 4 + }, + end: { + line: 112, + column: 7 + } + }, + "19": { + start: { + line: 101, + column: 23 + }, + end: { + line: 104, + column: 6 + } + }, + "20": { + start: { + line: 106, + column: 18 + }, + end: { + line: 109, + column: 7 + } + }, + "21": { + start: { + line: 111, + column: 5 + }, + end: { + line: 111, + column: 53 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 29, + column: 1 + }, + end: { + line: 29, + column: 2 + } + }, + loc: { + start: { + line: 29, + column: 8 + }, + end: { + line: 45, + column: 2 + } + }, + line: 29 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 47, + column: 1 + }, + end: { + line: 47, + column: 2 + } + }, + loc: { + start: { + line: 47, + column: 11 + }, + end: { + line: 66, + column: 2 + } + }, + line: 47 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 48, + column: 17 + }, + end: { + line: 48, + column: 18 + } + }, + loc: { + start: { + line: 48, + column: 23 + }, + end: { + line: 65, + column: 3 + } + }, + line: 48 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 73, + column: 2 + }, + end: { + line: 73, + column: 3 + } + }, + loc: { + start: { + line: 73, + column: 16 + }, + end: { + line: 92, + column: 3 + } + }, + line: 73 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 98, + column: 2 + }, + end: { + line: 98, + column: 3 + } + }, + loc: { + start: { + line: 98, + column: 14 + }, + end: { + line: 114, + column: 3 + } + }, + line: 98 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 100, + column: 45 + }, + end: { + line: 100, + column: 46 + } + }, + loc: { + start: { + line: 100, + column: 59 + }, + end: { + line: 112, + column: 5 + } + }, + line: 100 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 64, + column: 4 + } + }], + line: 49 + }, + "1": { + loc: { + start: { + line: 50, + column: 4 + }, + end: { + line: 53, + column: 42 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 50, + column: 4 + }, + end: { + line: 50, + column: 17 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 22 + } + }, { + start: { + line: 52, + column: 4 + }, + end: { + line: 52, + column: 29 + } + }, { + start: { + line: 53, + column: 4 + }, + end: { + line: 53, + column: 42 + } + }], + line: 50 + }, + "2": { + loc: { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }, { + start: { + line: 75, + column: 3 + }, + end: { + line: 91, + column: 4 + } + }], + line: 75 + }, + "3": { + loc: { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }, { + start: { + line: 79, + column: 4 + }, + end: { + line: 86, + column: 5 + } + }], + line: 79 + }, + "4": { + loc: { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }, { + start: { + line: 82, + column: 6 + }, + end: { + line: 84, + column: 7 + } + }], + line: 82 + }, + "5": { + loc: { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, + type: "if", + locations: [{ + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }, { + start: { + line: 89, + column: 4 + }, + end: { + line: 90, + column: 88 + } + }], + line: 89 + }, + "6": { + loc: { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }, { + start: { + line: 99, + column: 3 + }, + end: { + line: 113, + column: 4 + } + }], + line: 99 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0, 0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // @@ -8995,6 +32428,8 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] name: "field-googleAddress", mixins: [abstractField], data: function data() { + cov_15atxd0s5z.f[0]++; + cov_15atxd0s5z.s[0]++; return { // google autocomplete object autocomplete: "", @@ -9013,14 +32448,24 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] mounted: function mounted() { var _this = this; + cov_15atxd0s5z.f[1]++; + cov_15atxd0s5z.s[1]++; this.$nextTick(function () { - if (window.google && window.google.maps && window.google.maps.places && window.google.maps.places.Autocomplete) { + cov_15atxd0s5z.f[2]++; + cov_15atxd0s5z.s[2]++; + + if ((cov_15atxd0s5z.b[1][0]++, window.google) && (cov_15atxd0s5z.b[1][1]++, window.google.maps) && (cov_15atxd0s5z.b[1][2]++, window.google.maps.places) && (cov_15atxd0s5z.b[1][3]++, window.google.maps.places.Autocomplete)) { + cov_15atxd0s5z.b[0][0]++; + cov_15atxd0s5z.s[3]++; _this.autocomplete = new google.maps.places.Autocomplete(_this.$el, { types: ["geocode"] }); + cov_15atxd0s5z.s[4]++; _this.autocomplete.addListener("place_changed", _this.pipeAddress); } else { + cov_15atxd0s5z.b[0][1]++; + cov_15atxd0s5z.s[5]++; console.warn("Google Maps API is missing. Please add https://maps.googleapis.com/maps/api/js?key=YOUR_KEY&libraries=places script in the HTML head section!"); } }); @@ -9031,24 +32476,49 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] * @return void */ pipeAddress: function pipeAddress() { - var place = this.autocomplete.getPlace(); + cov_15atxd0s5z.f[3]++; + var place = (cov_15atxd0s5z.s[6]++, this.autocomplete.getPlace()); + cov_15atxd0s5z.s[7]++; if (place) { + cov_15atxd0s5z.b[2][0]++; + cov_15atxd0s5z.s[8]++; this.value = place.formatted_address; - var data = {}; + var data = (cov_15atxd0s5z.s[9]++, {}); + cov_15atxd0s5z.s[10]++; if (place.address_components !== undefined) { + cov_15atxd0s5z.b[3][0]++; + cov_15atxd0s5z.s[11]++; + for (var i = 0; i < place.address_components.length; i++) { - var input = place.address_components[i].types[0]; + var input = (cov_15atxd0s5z.s[12]++, place.address_components[i].types[0]); + cov_15atxd0s5z.s[13]++; if (this.inputs[input]) { + cov_15atxd0s5z.b[4][0]++; + cov_15atxd0s5z.s[14]++; data[input] = place.address_components[i][this.inputs[input]]; + } else { + cov_15atxd0s5z.b[4][1]++; } } + } else { + cov_15atxd0s5z.b[3][1]++; } // Call event in schema - if (isFunction_default()(this.fieldOptions.onPlaceChanged)) this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); + cov_15atxd0s5z.s[15]++; + + if (isFunction_default()(this.fieldOptions.onPlaceChanged)) { + cov_15atxd0s5z.b[5][0]++; + cov_15atxd0s5z.s[16]++; + this.fieldOptions.onPlaceChanged(this.value, data, place, this.model, this.schema); + } else { + cov_15atxd0s5z.b[5][1]++; + } + } else { + cov_15atxd0s5z.b[2][1]++; } }, @@ -9059,19 +32529,28 @@ var fieldGoogleAddressvue_type_template_id_40223704_staticRenderFns = [] geolocate: function geolocate() { var _this2 = this; + cov_15atxd0s5z.f[4]++; + cov_15atxd0s5z.s[17]++; + if (navigator.geolocation) { + cov_15atxd0s5z.b[6][0]++; + cov_15atxd0s5z.s[18]++; navigator.geolocation.getCurrentPosition(function (position) { - var geolocation = { + cov_15atxd0s5z.f[5]++; + var geolocation = (cov_15atxd0s5z.s[19]++, { lat: position.coords.latitude, lng: position.coords.longitude - }; - var circle = new window.google.maps.Circle({ + }); + var circle = (cov_15atxd0s5z.s[20]++, new window.google.maps.Circle({ center: geolocation, radius: position.coords.accuracy - }); + })); + cov_15atxd0s5z.s[21]++; _this2.autocomplete.setBounds(circle.getBounds()); }); + } else { + cov_15atxd0s5z.b[6][1]++; } } } @@ -9099,14 +32578,714 @@ var fieldGoogleAddress_component = normalizeComponent( fieldGoogleAddress_component.options.__file = "fieldGoogleAddress.vue" /* harmony default export */ var fieldGoogleAddress = (fieldGoogleAddress_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& var fieldImagevue_type_template_id_31dfdf94_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"wrapper"},[_c('input',{directives:[{name:"show",rawName:"v-show",value:(_vm.fieldOptions.hideInput !== true),expression:"fieldOptions.hideInput !== true"},{name:"model",rawName:"v-model",value:(_vm.wrappedValue),expression:"wrappedValue"}],staticClass:"form-control link",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly},domProps:{"value":(_vm.wrappedValue)},on:{"input":function($event){if($event.target.composing){ return; }_vm.wrappedValue=$event.target.value}}}),(_vm.fieldOptions.browse !== false)?_c('input',{staticClass:"form-control file",attrs:{"type":"file","disabled":_vm.disabled,"name":_vm.inputName},on:{"change":_vm.fileChanged}}):_vm._e(),_c('div',{staticClass:"preview",style:(_vm.previewStyle)},[_c('div',{staticClass:"remove",attrs:{"title":"Remove image"},on:{"click":_vm.remove}})])])} var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] -// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& +// CONCATENATED MODULE: ./src/fields/optional/fieldImage.vue?vue&type=template&id=31dfdf94& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& +var cov_15avo8ilqu = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldImage.vue", + hash = "5b1f5eddc9b6301c4f67c93ef59a5212aea2e918", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldImage.vue", + statementMap: { + "0": { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + "1": { + start: { + line: 38, + column: 4 + }, + end: { + line: 41, + column: 6 + } + }, + "2": { + start: { + line: 43, + column: 4 + }, + end: { + line: 45, + column: 6 + } + }, + "3": { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, + "4": { + start: { + line: 51, + column: 56 + }, + end: { + line: 51, + column: 87 + } + }, + "5": { + start: { + line: 52, + column: 9 + }, + end: { + line: 52, + column: 27 + } + }, + "6": { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + "7": { + start: { + line: 56, + column: 5 + }, + end: { + line: 56, + column: 27 + } + }, + "8": { + start: { + line: 64, + column: 12 + }, + end: { + line: 64, + column: 48 + } + }, + "9": { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + "10": { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 18 + } + }, + "11": { + start: { + line: 73, + column: 3 + }, + end: { + line: 73, + column: 19 + } + }, + "12": { + start: { + line: 77, + column: 16 + }, + end: { + line: 77, + column: 32 + } + }, + "13": { + start: { + line: 78, + column: 3 + }, + end: { + line: 80, + column: 5 + } + }, + "14": { + start: { + line: 79, + column: 4 + }, + end: { + line: 79, + column: 33 + } + }, + "15": { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + "16": { + start: { + line: 83, + column: 4 + }, + end: { + line: 83, + column: 48 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 3 + } + }, + loc: { + start: { + line: 36, + column: 17 + }, + end: { + line: 47, + column: 3 + } + }, + line: 36 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 50, + column: 3 + }, + end: { + line: 50, + column: 4 + } + }, + loc: { + start: { + line: 50, + column: 9 + }, + end: { + line: 53, + column: 4 + } + }, + line: 50 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 54, + column: 3 + }, + end: { + line: 54, + column: 4 + } + }, + loc: { + start: { + line: 54, + column: 17 + }, + end: { + line: 58, + column: 4 + } + }, + line: 54 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 63, + column: 2 + }, + end: { + line: 63, + column: 3 + } + }, + loc: { + start: { + line: 63, + column: 10 + }, + end: { + line: 68, + column: 3 + } + }, + line: 63 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 72, + column: 2 + }, + end: { + line: 72, + column: 3 + } + }, + loc: { + start: { + line: 72, + column: 11 + }, + end: { + line: 74, + column: 3 + } + }, + line: 72 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 21 + }, + end: { + line: 85, + column: 3 + } + }, + line: 76 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 78, + column: 19 + }, + end: { + line: 78, + column: 20 + } + }, + loc: { + start: { + line: 78, + column: 26 + }, + end: { + line: 80, + column: 4 + } + }, + line: 78 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, { + start: { + line: 37, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }], + line: 37 + }, + "1": { + loc: { + start: { + line: 40, + column: 25 + }, + end: { + line: 40, + column: 80 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 40, + column: 46 + }, + end: { + line: 40, + column: 71 + } + }, { + start: { + line: 40, + column: 74 + }, + end: { + line: 40, + column: 80 + } + }], + line: 40 + }, + "2": { + loc: { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, + type: "if", + locations: [{ + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 52, + column: 27 + } + }], + line: 51 + }, + "3": { + loc: { + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 54 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 18 + } + }, { + start: { + line: 51, + column: 22 + }, + end: { + line: 51, + column: 54 + } + }], + line: 51 + }, + "4": { + loc: { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }, { + start: { + line: 55, + column: 4 + }, + end: { + line: 57, + column: 5 + } + }], + line: 55 + }, + "5": { + loc: { + start: { + line: 55, + column: 8 + }, + end: { + line: 55, + column: 50 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 55, + column: 8 + }, + end: { + line: 55, + column: 16 + } + }, { + start: { + line: 55, + column: 20 + }, + end: { + line: 55, + column: 50 + } + }], + line: 55 + }, + "6": { + loc: { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }, { + start: { + line: 65, + column: 3 + }, + end: { + line: 67, + column: 4 + } + }], + line: 65 + }, + "7": { + loc: { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }, { + start: { + line: 82, + column: 3 + }, + end: { + line: 84, + column: 4 + } + }], + line: 82 + }, + "8": { + loc: { + start: { + line: 82, + column: 7 + }, + end: { + line: 82, + column: 58 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 82, + column: 7 + }, + end: { + line: 82, + column: 25 + } + }, { + start: { + line: 82, + column: 29 + }, + end: { + line: 82, + column: 58 + } + }], + line: 82 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldImage.vue?vue&type=script&lang=js& // // // @@ -9140,12 +33319,19 @@ var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] mixins: [abstractField], computed: { previewStyle: function previewStyle() { + cov_15avo8ilqu.f[0]++; + cov_15avo8ilqu.s[0]++; + if (this.fieldOptions.preview !== false) { + cov_15avo8ilqu.b[0][0]++; + cov_15avo8ilqu.s[1]++; return { display: "block", - "background-image": this.value != null ? "url(" + this.value + ")" : "none" + "background-image": this.value != null ? (cov_15avo8ilqu.b[1][0]++, "url(" + this.value + ")") : (cov_15avo8ilqu.b[1][1]++, "none") }; } else { + cov_15avo8ilqu.b[0][1]++; + cov_15avo8ilqu.s[2]++; return { display: "none" }; @@ -9153,39 +33339,75 @@ var fieldImagevue_type_template_id_31dfdf94_staticRenderFns = [] }, wrappedValue: { get: function get() { - if (this.value && this.value.indexOf("data") === 0) return "";else return this.value; + cov_15avo8ilqu.f[1]++; + cov_15avo8ilqu.s[3]++; + + if ((cov_15avo8ilqu.b[3][0]++, this.value) && (cov_15avo8ilqu.b[3][1]++, this.value.indexOf("data") === 0)) { + cov_15avo8ilqu.b[2][0]++; + cov_15avo8ilqu.s[4]++; + return ""; + } else { + cov_15avo8ilqu.b[2][1]++; + cov_15avo8ilqu.s[5]++; + return this.value; + } }, set: function set(newValue) { - if (newValue && newValue.indexOf("http") === 0) { + cov_15avo8ilqu.f[2]++; + cov_15avo8ilqu.s[6]++; + + if ((cov_15avo8ilqu.b[5][0]++, newValue) && (cov_15avo8ilqu.b[5][1]++, newValue.indexOf("http") === 0)) { + cov_15avo8ilqu.b[4][0]++; + cov_15avo8ilqu.s[7]++; this.value = newValue; + } else { + cov_15avo8ilqu.b[4][1]++; } } } }, watch: { model: function model() { - var el = this.$el.querySelector("input.file"); + cov_15avo8ilqu.f[3]++; + var el = (cov_15avo8ilqu.s[8]++, this.$el.querySelector("input.file")); + cov_15avo8ilqu.s[9]++; if (el) { + cov_15avo8ilqu.b[6][0]++; + cov_15avo8ilqu.s[10]++; el.value = ""; + } else { + cov_15avo8ilqu.b[6][1]++; } } }, methods: { remove: function remove() { + cov_15avo8ilqu.f[4]++; + cov_15avo8ilqu.s[11]++; this.value = ""; }, fileChanged: function fileChanged(event) { var _this = this; - var reader = new FileReader(); + cov_15avo8ilqu.f[5]++; + var reader = (cov_15avo8ilqu.s[12]++, new FileReader()); + cov_15avo8ilqu.s[13]++; reader.onload = function (e) { + cov_15avo8ilqu.f[6]++; + cov_15avo8ilqu.s[14]++; _this.value = e.target.result; }; - if (event.target.files && event.target.files.length > 0) { + cov_15avo8ilqu.s[15]++; + + if ((cov_15avo8ilqu.b[8][0]++, event.target.files) && (cov_15avo8ilqu.b[8][1]++, event.target.files.length > 0)) { + cov_15avo8ilqu.b[7][0]++; + cov_15avo8ilqu.s[16]++; reader.readAsDataURL(event.target.files[0]); + } else { + cov_15avo8ilqu.b[7][1]++; } } } @@ -9217,7 +33439,7 @@ var fieldImage_component = normalizeComponent( fieldImage_component.options.__file = "fieldImage.vue" /* harmony default export */ var fieldImage = (fieldImage_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& var fieldMaskedvue_type_template_id_11c3a35a_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] @@ -9225,6 +33447,315 @@ var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=template&id=11c3a35a& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldMasked.vue?vue&type=script&lang=js& +var cov_1evfiru9hh = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue", + hash = "7fb5aa8ab47674e512530fcd6cbeff0c35705026", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue", + statementMap: { + "0": { + start: { + line: 22, + column: 2 + }, + end: { + line: 32, + column: 5 + } + }, + "1": { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + "2": { + start: { + line: 24, + column: 4 + }, + end: { + line: 26, + column: 66 + } + }, + "3": { + start: { + line: 28, + column: 4 + }, + end: { + line: 30, + column: 6 + } + }, + "4": { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, + "5": { + start: { + line: 36, + column: 36 + }, + end: { + line: 36, + column: 57 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 21, + column: 1 + }, + end: { + line: 21, + column: 2 + } + }, + loc: { + start: { + line: 21, + column: 11 + }, + end: { + line: 33, + column: 2 + } + }, + line: 21 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 22, + column: 17 + }, + end: { + line: 22, + column: 18 + } + }, + loc: { + start: { + line: 22, + column: 28 + }, + end: { + line: 32, + column: 3 + } + }, + line: 22 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 35, + column: 1 + }, + end: { + line: 35, + column: 2 + } + }, + loc: { + start: { + line: 35, + column: 17 + }, + end: { + line: 37, + column: 2 + } + }, + line: 35 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }, { + start: { + line: 23, + column: 3 + }, + end: { + line: 31, + column: 4 + } + }], + line: 23 + }, + "1": { + loc: { + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 35 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 15 + } + }, { + start: { + line: 23, + column: 19 + }, + end: { + line: 23, + column: 35 + } + }], + line: 23 + }, + "2": { + loc: { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, + type: "if", + locations: [{ + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }, { + start: { + line: 36, + column: 2 + }, + end: { + line: 36, + column: 57 + } + }], + line: 36 + }, + "3": { + loc: { + start: { + line: 36, + column: 6 + }, + end: { + line: 36, + column: 34 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 36, + column: 6 + }, + end: { + line: 36, + column: 14 + } + }, { + start: { + line: 36, + column: 18 + }, + end: { + line: 36, + column: 34 + } + }], + line: 36 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -9244,52 +33775,1091 @@ var fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns = [] name: "field-masked", mixins: [abstractField], mounted: function mounted() { + cov_1evfiru9hh.f[0]++; + cov_1evfiru9hh.s[0]++; this.$nextTick(function () { - if (window.$ && window.$.fn.mask) { + cov_1evfiru9hh.f[1]++; + cov_1evfiru9hh.s[1]++; + + if ((cov_1evfiru9hh.b[1][0]++, window.$) && (cov_1evfiru9hh.b[1][1]++, window.$.fn.mask)) { + cov_1evfiru9hh.b[0][0]++; + cov_1evfiru9hh.s[2]++; $(this.$el).unmask().mask(this.fieldOptions.mask, this.fieldOptions.maskOptions); } else { + cov_1evfiru9hh.b[0][1]++; + cov_1evfiru9hh.s[3]++; console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!"); } }); }, - beforeDestroy: function beforeDestroy() { - if (window.$ && window.$.fn.mask) $(this.$el).unmask(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue - - - - - -/* normalize component */ - -var fieldMasked_component = normalizeComponent( - optional_fieldMaskedvue_type_script_lang_js_, - fieldMaskedvue_type_template_id_11c3a35a_render, - fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, - false, - null, - null, - null - -) - -fieldMasked_component.options.__file = "fieldMasked.vue" -/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& -var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} -var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] + beforeDestroy: function beforeDestroy() { + cov_1evfiru9hh.f[2]++; + cov_1evfiru9hh.s[4]++; + + if ((cov_1evfiru9hh.b[3][0]++, window.$) && (cov_1evfiru9hh.b[3][1]++, window.$.fn.mask)) { + cov_1evfiru9hh.b[2][0]++; + cov_1evfiru9hh.s[5]++; + $(this.$el).unmask(); + } else { + cov_1evfiru9hh.b[2][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldMaskedvue_type_script_lang_js_ = (fieldMaskedvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldMasked.vue + + + + + +/* normalize component */ + +var fieldMasked_component = normalizeComponent( + optional_fieldMaskedvue_type_script_lang_js_, + fieldMaskedvue_type_template_id_11c3a35a_render, + fieldMaskedvue_type_template_id_11c3a35a_staticRenderFns, + false, + null, + null, + null + +) + +fieldMasked_component.options.__file = "fieldMasked.vue" +/* harmony default export */ var fieldMasked = (fieldMasked_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& +var fieldNoUiSlidervue_type_template_id_2698b894_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"slider",class:{ 'contain-pips': _vm.containPips, 'contain-tooltip': _vm.containTooltip },attrs:{"disabled":_vm.disabled}})} +var fieldNoUiSlidervue_type_template_id_2698b894_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& + +// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js +var es6_number_constructor = __webpack_require__("c5f6"); + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& +var cov_28l4jm2j51 = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue", + hash = "82de372a9c97ce71e6b568006e67497410069899", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue", + statementMap: { + "0": { + start: { + line: 16, + column: 2 + }, + end: { + line: 18, + column: 4 + } + }, + "1": { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, + "2": { + start: { + line: 24, + column: 4 + }, + end: { + line: 24, + column: 43 + } + }, + "3": { + start: { + line: 31, + column: 3 + }, + end: { + line: 31, + column: 56 + } + }, + "4": { + start: { + line: 34, + column: 3 + }, + end: { + line: 34, + column: 60 + } + }, + "5": { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + "6": { + start: { + line: 42, + column: 4 + }, + end: { + line: 42, + column: 62 + } + }, + "7": { + start: { + line: 45, + column: 4 + }, + end: { + line: 45, + column: 35 + } + }, + "8": { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, + "9": { + start: { + line: 50, + column: 4 + }, + end: { + line: 50, + column: 38 + } + }, + "10": { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "11": { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, + "12": { + start: { + line: 56, + column: 5 + }, + end: { + line: 56, + column: 45 + } + }, + "13": { + start: { + line: 58, + column: 5 + }, + end: { + line: 58, + column: 24 + } + }, + "14": { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, + "15": { + start: { + line: 64, + column: 4 + }, + end: { + line: 64, + column: 22 + } + }, + "16": { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, + "17": { + start: { + line: 67, + column: 5 + }, + end: { + line: 67, + column: 59 + } + }, + "18": { + start: { + line: 69, + column: 5 + }, + end: { + line: 69, + column: 34 + } + }, + "19": { + start: { + line: 76, + column: 2 + }, + end: { + line: 95, + column: 5 + } + }, + "20": { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, + "21": { + start: { + line: 78, + column: 4 + }, + end: { + line: 78, + column: 27 + } + }, + "22": { + start: { + line: 79, + column: 4 + }, + end: { + line: 88, + column: 6 + } + }, + "23": { + start: { + line: 89, + column: 4 + }, + end: { + line: 89, + column: 66 + } + }, + "24": { + start: { + line: 91, + column: 4 + }, + end: { + line: 93, + column: 6 + } + }, + "25": { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, + "26": { + start: { + line: 99, + column: 19 + }, + end: { + line: 99, + column: 56 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 15, + column: 1 + }, + end: { + line: 15, + column: 2 + } + }, + loc: { + start: { + line: 15, + column: 8 + }, + end: { + line: 19, + column: 2 + } + }, + line: 15 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 22, + column: 9 + }, + end: { + line: 22, + column: 10 + } + }, + loc: { + start: { + line: 22, + column: 20 + }, + end: { + line: 26, + column: 3 + } + }, + line: 22 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 30, + column: 2 + }, + end: { + line: 30, + column: 3 + } + }, + loc: { + start: { + line: 30, + column: 16 + }, + end: { + line: 32, + column: 3 + } + }, + line: 30 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 33, + column: 2 + }, + end: { + line: 33, + column: 3 + } + }, + loc: { + start: { + line: 33, + column: 19 + }, + end: { + line: 35, + column: 3 + } + }, + line: 33 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 39, + column: 2 + }, + end: { + line: 39, + column: 3 + } + }, + loc: { + start: { + line: 39, + column: 18 + }, + end: { + line: 47, + column: 3 + } + }, + line: 39 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 48, + column: 2 + }, + end: { + line: 48, + column: 3 + } + }, + loc: { + start: { + line: 48, + column: 28 + }, + end: { + line: 52, + column: 3 + } + }, + line: 48 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 53, + column: 2 + }, + end: { + line: 53, + column: 3 + } + }, + loc: { + start: { + line: 53, + column: 26 + }, + end: { + line: 61, + column: 3 + } + }, + line: 53 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 62, + column: 2 + }, + end: { + line: 62, + column: 3 + } + }, + loc: { + start: { + line: 62, + column: 18 + }, + end: { + line: 72, + column: 3 + } + }, + line: 62 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 75, + column: 1 + }, + end: { + line: 75, + column: 2 + } + }, + loc: { + start: { + line: 75, + column: 11 + }, + end: { + line: 96, + column: 2 + } + }, + line: 75 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 76, + column: 17 + }, + end: { + line: 76, + column: 18 + } + }, + loc: { + start: { + line: 76, + column: 23 + }, + end: { + line: 95, + column: 3 + } + }, + line: 76 + }, + "10": { + name: "(anonymous_10)", + decl: { + start: { + line: 98, + column: 1 + }, + end: { + line: 98, + column: 2 + } + }, + loc: { + start: { + line: 98, + column: 17 + }, + end: { + line: 100, + column: 2 + } + }, + line: 98 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }, { + start: { + line: 23, + column: 3 + }, + end: { + line: 25, + column: 4 + } + }], + line: 23 + }, + "1": { + loc: { + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 65 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 23, + column: 7 + }, + end: { + line: 23, + column: 24 + } + }, { + start: { + line: 23, + column: 28 + }, + end: { + line: 23, + column: 39 + } + }, { + start: { + line: 23, + column: 43 + }, + end: { + line: 23, + column: 65 + } + }], + line: 23 + }, + "2": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 46, + column: 4 + } + }], + line: 40 + }, + "3": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 51, + column: 4 + } + }], + line: 49 + }, + "4": { + loc: { + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 76 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 27 + } + }, { + start: { + line: 49, + column: 31 + }, + end: { + line: 49, + column: 76 + } + }], + line: 49 + }, + "5": { + loc: { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 54, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 54 + }, + "6": { + loc: { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }, { + start: { + line: 55, + column: 4 + }, + end: { + line: 59, + column: 5 + } + }], + line: 55 + }, + "7": { + loc: { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }, { + start: { + line: 63, + column: 3 + }, + end: { + line: 71, + column: 4 + } + }], + line: 63 + }, + "8": { + loc: { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }, { + start: { + line: 66, + column: 4 + }, + end: { + line: 70, + column: 5 + } + }], + line: 66 + }, + "9": { + loc: { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }, { + start: { + line: 77, + column: 3 + }, + end: { + line: 94, + column: 4 + } + }], + line: 77 + }, + "10": { + loc: { + start: { + line: 81, + column: 14 + }, + end: { + line: 81, + column: 37 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 81, + column: 14 + }, + end: { + line: 81, + column: 31 + } + }, { + start: { + line: 81, + column: 35 + }, + end: { + line: 81, + column: 37 + } + }], + line: 81 + }, + "11": { + loc: { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, + type: "if", + locations: [{ + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }, { + start: { + line: 99, + column: 2 + }, + end: { + line: 99, + column: 56 + } + }], + line: 99 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0, + "26": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=template&id=2698b894& - -// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js -var es6_number_constructor = __webpack_require__("c5f6"); + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& @@ -9304,56 +34874,107 @@ var es6_number_constructor = __webpack_require__("c5f6"); name: "field-noUiSlider", mixins: [abstractField], data: function data() { + cov_28l4jm2j51.f[0]++; + cov_28l4jm2j51.s[0]++; return { slider: null }; }, watch: { model: function model() { - if (window.noUiSlider && this.slider && this.slider.noUiSlider) { + cov_28l4jm2j51.f[1]++; + cov_28l4jm2j51.s[1]++; + + if ((cov_28l4jm2j51.b[1][0]++, window.noUiSlider) && (cov_28l4jm2j51.b[1][1]++, this.slider) && (cov_28l4jm2j51.b[1][2]++, this.slider.noUiSlider)) { + cov_28l4jm2j51.b[0][0]++; + cov_28l4jm2j51.s[2]++; this.slider.noUiSlider.set(this.value); + } else { + cov_28l4jm2j51.b[0][1]++; } } }, computed: { containPips: function containPips() { + cov_28l4jm2j51.f[2]++; + cov_28l4jm2j51.s[3]++; return typeof this.fieldOptions.pips !== "undefined"; }, containTooltip: function containTooltip() { + cov_28l4jm2j51.f[3]++; + cov_28l4jm2j51.s[4]++; return typeof this.fieldOptions.tooltips !== "undefined"; } }, methods: { onChange: function onChange(value) { + cov_28l4jm2j51.f[4]++; + cov_28l4jm2j51.s[5]++; + if (isArray_default()(value)) { + cov_28l4jm2j51.b[2][0]++; + cov_28l4jm2j51.s[6]++; // Array (range) this.value = [parseFloat(value[0]), parseFloat(value[1])]; } else { + cov_28l4jm2j51.b[2][1]++; + cov_28l4jm2j51.s[7]++; // Single value this.value = parseFloat(value); } }, formatValueToField: function formatValueToField(value) { - if (this.slider !== null && typeof this.slider.noUiSlider !== "undefined") { + cov_28l4jm2j51.f[5]++; + cov_28l4jm2j51.s[8]++; + + if ((cov_28l4jm2j51.b[4][0]++, this.slider !== null) && (cov_28l4jm2j51.b[4][1]++, typeof this.slider.noUiSlider !== "undefined")) { + cov_28l4jm2j51.b[3][0]++; + cov_28l4jm2j51.s[9]++; this.slider.noUiSlider.set(value); + } else { + cov_28l4jm2j51.b[3][1]++; } }, formatValueToModel: function formatValueToModel(val) { + cov_28l4jm2j51.f[6]++; + cov_28l4jm2j51.s[10]++; + if (typeof this.slider.noUiSlider !== "undefined") { + cov_28l4jm2j51.b[5][0]++; + cov_28l4jm2j51.s[11]++; + if (val instanceof Array) { + cov_28l4jm2j51.b[6][0]++; + cov_28l4jm2j51.s[12]++; return [Number(val[0]), Number(val[1])]; } else { + cov_28l4jm2j51.b[6][1]++; + cov_28l4jm2j51.s[13]++; return Number(val); } + } else { + cov_28l4jm2j51.b[5][1]++; } }, getStartValue: function getStartValue() { + cov_28l4jm2j51.f[7]++; + cov_28l4jm2j51.s[14]++; + if (this.value != null) { + cov_28l4jm2j51.b[7][0]++; + cov_28l4jm2j51.s[15]++; return this.value; } else { + cov_28l4jm2j51.b[7][1]++; + cov_28l4jm2j51.s[16]++; + if (typeof this.fieldOptions.double !== "undefined") { + cov_28l4jm2j51.b[8][0]++; + cov_28l4jm2j51.s[17]++; return [this.fieldOptions.min, this.fieldOptions.min]; } else { + cov_28l4jm2j51.b[8][1]++; + cov_28l4jm2j51.s[18]++; return this.fieldOptions.min; } } @@ -9362,25 +34983,45 @@ var es6_number_constructor = __webpack_require__("c5f6"); mounted: function mounted() { var _this = this; + cov_28l4jm2j51.f[8]++; + cov_28l4jm2j51.s[19]++; this.$nextTick(function () { + cov_28l4jm2j51.f[9]++; + cov_28l4jm2j51.s[20]++; + if (window.noUiSlider) { + cov_28l4jm2j51.b[9][0]++; + cov_28l4jm2j51.s[21]++; _this.slider = _this.$el; - window.noUiSlider.create(_this.slider, defaults_default()(_this.fieldOptions || {}, { + cov_28l4jm2j51.s[22]++; + window.noUiSlider.create(_this.slider, defaults_default()((cov_28l4jm2j51.b[10][0]++, _this.fieldOptions) || (cov_28l4jm2j51.b[10][1]++, {}), { start: _this.getStartValue(), range: { min: _this.fieldOptions.min, max: _this.fieldOptions.max } })); + cov_28l4jm2j51.s[23]++; _this.slider.noUiSlider.on("change", _this.onChange.bind(_this)); } else { + cov_28l4jm2j51.b[9][1]++; + cov_28l4jm2j51.s[24]++; console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.noUiSlider.off("change"); + cov_28l4jm2j51.f[10]++; + cov_28l4jm2j51.s[25]++; + + if (this.slider) { + cov_28l4jm2j51.b[11][0]++; + cov_28l4jm2j51.s[26]++; + this.slider.noUiSlider.off("change"); + } else { + cov_28l4jm2j51.b[11][1]++; + } } }); // CONCATENATED MODULE: ./src/fields/optional/fieldNoUiSlider.vue?vue&type=script&lang=js& @@ -9410,7 +35051,7 @@ var fieldNoUiSlider_component = normalizeComponent( fieldNoUiSlider_component.options.__file = "fieldNoUiSlider.vue" /* harmony default export */ var fieldNoUiSlider = (fieldNoUiSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& var fieldPikadayvue_type_template_id_69cdd058_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"}],staticClass:"form-control",attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName},domProps:{"value":(_vm.value)},on:{"input":function($event){if($event.target.composing){ return; }_vm.value=$event.target.value}}})} var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] @@ -9418,6 +35059,319 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=template&id=69cdd058& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldPikaday.vue?vue&type=script&lang=js& +var cov_bq84cy1yq = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue", + hash = "a9c8b42d1187233cdc70fac7edea66779c107a80", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue", + statementMap: { + "0": { + start: { + line: 21, + column: 2 + }, + end: { + line: 21, + column: 26 + } + }, + "1": { + start: { + line: 29, + column: 2 + }, + end: { + line: 45, + column: 5 + } + }, + "2": { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, + "3": { + start: { + line: 31, + column: 4 + }, + end: { + line: 39, + column: 6 + } + }, + "4": { + start: { + line: 35, + column: 7 + }, + end: { + line: 35, + column: 43 + } + }, + "5": { + start: { + line: 41, + column: 4 + }, + end: { + line: 43, + column: 6 + } + }, + "6": { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, + "7": { + start: { + line: 49, + column: 19 + }, + end: { + line: 49, + column: 41 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 20, + column: 1 + }, + end: { + line: 20, + column: 2 + } + }, + loc: { + start: { + line: 20, + column: 8 + }, + end: { + line: 22, + column: 2 + } + }, + line: 20 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 28, + column: 1 + }, + end: { + line: 28, + column: 2 + } + }, + loc: { + start: { + line: 28, + column: 11 + }, + end: { + line: 46, + column: 2 + } + }, + line: 28 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 29, + column: 17 + }, + end: { + line: 29, + column: 18 + } + }, + loc: { + start: { + line: 29, + column: 23 + }, + end: { + line: 45, + column: 3 + } + }, + line: 29 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 34, + column: 16 + }, + end: { + line: 34, + column: 17 + } + }, + loc: { + start: { + line: 34, + column: 22 + }, + end: { + line: 36, + column: 7 + } + }, + line: 34 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 48, + column: 1 + }, + end: { + line: 48, + column: 2 + } + }, + loc: { + start: { + line: 48, + column: 17 + }, + end: { + line: 50, + column: 2 + } + }, + line: 48 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }, { + start: { + line: 30, + column: 3 + }, + end: { + line: 44, + column: 4 + } + }], + line: 30 + }, + "1": { + loc: { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }, { + start: { + line: 49, + column: 2 + }, + end: { + line: 49, + column: 41 + } + }], + line: 49 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + @@ -9438,6 +35392,8 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] name: "field-pikaday", mixins: [abstractField], data: function data() { + cov_bq84cy1yq.f[0]++; + cov_bq84cy1yq.s[0]++; return { picker: null }; @@ -9446,97 +35402,836 @@ var fieldPikadayvue_type_template_id_69cdd058_staticRenderFns = [] mounted: function mounted() { var _this = this; + cov_bq84cy1yq.f[1]++; + cov_bq84cy1yq.s[1]++; this.$nextTick(function () { + cov_bq84cy1yq.f[2]++; + cov_bq84cy1yq.s[2]++; + if (window.Pikaday) { + cov_bq84cy1yq.b[0][0]++; + cov_bq84cy1yq.s[3]++; _this.picker = new window.Pikaday(defaults_default()(_this.fieldOptions, { field: _this.$el, // bind the datepicker to a form field onSelect: function onSelect() { + cov_bq84cy1yq.f[3]++; + cov_bq84cy1yq.s[4]++; _this.value = _this.picker.toString(); } // trigger: , // use a different element to trigger opening the datepicker, see [trigger example][] (default to `field`) })); } else { + cov_bq84cy1yq.b[0][1]++; + cov_bq84cy1yq.s[5]++; console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!"); } - }); + }); + }, + beforeDestroy: function beforeDestroy() { + cov_bq84cy1yq.f[4]++; + cov_bq84cy1yq.s[6]++; + + if (this.picker) { + cov_bq84cy1yq.b[1][0]++; + cov_bq84cy1yq.s[7]++; + this.picker.destroy(); + } else { + cov_bq84cy1yq.b[1][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue + + + + + +/* normalize component */ + +var fieldPikaday_component = normalizeComponent( + optional_fieldPikadayvue_type_script_lang_js_, + fieldPikadayvue_type_template_id_69cdd058_render, + fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, + false, + null, + null, + null + +) + +fieldPikaday_component.options.__file = "fieldPikaday.vue" +/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& +var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} +var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js +function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js +function _iterableToArrayLimit(arr, i) { + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js + + + +function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); +} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& +var cov_b91itll0m = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue", + hash = "4ac599bbccd8c0d0f6aec89dc3a6237a43680c29", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue", + statementMap: { + "0": { + start: { + line: 24, + column: 2 + }, + end: { + line: 26, + column: 4 + } + }, + "1": { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, + "2": { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, + "3": { + start: { + line: 34, + column: 5 + }, + end: { + line: 34, + column: 39 + } + }, + "4": { + start: { + line: 35, + column: 11 + }, + end: { + line: 35, + column: 34 + } + }, + "5": { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, + "6": { + start: { + line: 38, + column: 5 + }, + end: { + line: 41, + column: 8 + } + }, + "7": { + start: { + line: 48, + column: 2 + }, + end: { + line: 78, + column: 5 + } + }, + "8": { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, + "9": { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, + "10": { + start: { + line: 52, + column: 5 + }, + end: { + line: 52, + column: 39 + } + }, + "11": { + start: { + line: 53, + column: 11 + }, + end: { + line: 53, + column: 34 + } + }, + "12": { + start: { + line: 55, + column: 15 + }, + end: { + line: 55, + column: 19 + } + }, + "13": { + start: { + line: 56, + column: 4 + }, + end: { + line: 71, + column: 6 + } + }, + "14": { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, + "15": { + start: { + line: 65, + column: 8 + }, + end: { + line: 65, + column: 46 + } + }, + "16": { + start: { + line: 67, + column: 8 + }, + end: { + line: 67, + column: 33 + } + }, + "17": { + start: { + line: 72, + column: 4 + }, + end: { + line: 72, + column: 53 + } + }, + "18": { + start: { + line: 74, + column: 4 + }, + end: { + line: 76, + column: 6 + } + }, + "19": { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, + "20": { + start: { + line: 82, + column: 19 + }, + end: { + line: 82, + column: 41 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 23, + column: 1 + }, + end: { + line: 23, + column: 2 + } + }, + loc: { + start: { + line: 23, + column: 8 + }, + end: { + line: 27, + column: 2 + } + }, + line: 23 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 30, + column: 9 + }, + end: { + line: 30, + column: 10 + } + }, + loc: { + start: { + line: 30, + column: 20 + }, + end: { + line: 44, + column: 3 + } + }, + line: 30 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 47, + column: 1 + }, + end: { + line: 47, + column: 2 + } + }, + loc: { + start: { + line: 47, + column: 11 + }, + end: { + line: 79, + column: 2 + } + }, + line: 47 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 48, + column: 17 + }, + end: { + line: 48, + column: 18 + } + }, + loc: { + start: { + line: 48, + column: 28 + }, + end: { + line: 78, + column: 3 + } + }, + line: 48 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 63, + column: 6 + }, + end: { + line: 63, + column: 7 + } + }, + loc: { + start: { + line: 63, + column: 23 + }, + end: { + line: 69, + column: 7 + } + }, + line: 63 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 81, + column: 1 + }, + end: { + line: 81, + column: 2 + } + }, + loc: { + start: { + line: 81, + column: 17 + }, + end: { + line: 83, + column: 2 + } + }, + line: 81 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }, { + start: { + line: 31, + column: 3 + }, + end: { + line: 43, + column: 4 + } + }], + line: 31 + }, + "1": { + loc: { + start: { + line: 31, + column: 7 + }, + end: { + line: 31, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 31, + column: 7 + }, + end: { + line: 31, + column: 15 + } + }, { + start: { + line: 31, + column: 19 + }, + end: { + line: 31, + column: 45 + } + }], + line: 31 + }, + "2": { + loc: { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }, { + start: { + line: 33, + column: 4 + }, + end: { + line: 35, + column: 34 + } + }], + line: 33 + }, + "3": { + loc: { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }, { + start: { + line: 37, + column: 4 + }, + end: { + line: 42, + column: 5 + } + }], + line: 37 + }, + "4": { + loc: { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }, { + start: { + line: 49, + column: 3 + }, + end: { + line: 77, + column: 4 + } + }], + line: 49 + }, + "5": { + loc: { + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 45 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 49, + column: 7 + }, + end: { + line: 49, + column: 15 + } + }, { + start: { + line: 49, + column: 19 + }, + end: { + line: 49, + column: 45 + } + }], + line: 49 + }, + "6": { + loc: { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, + type: "if", + locations: [{ + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }, { + start: { + line: 51, + column: 4 + }, + end: { + line: 53, + column: 34 + } + }], + line: 51 + }, + "7": { + loc: { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }, { + start: { + line: 64, + column: 7 + }, + end: { + line: 68, + column: 8 + } + }], + line: 64 + }, + "8": { + loc: { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, + type: "if", + locations: [{ + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }, { + start: { + line: 82, + column: 2 + }, + end: { + line: 82, + column: 41 + } + }], + line: 82 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldPikadayvue_type_script_lang_js_ = (fieldPikadayvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldPikaday.vue - - - - - -/* normalize component */ - -var fieldPikaday_component = normalizeComponent( - optional_fieldPikadayvue_type_script_lang_js_, - fieldPikadayvue_type_template_id_69cdd058_render, - fieldPikadayvue_type_template_id_69cdd058_staticRenderFns, - false, - null, - null, - null - -) - -fieldPikaday_component.options.__file = "fieldPikaday.vue" -/* harmony default export */ var fieldPikaday = (fieldPikaday_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& -var fieldRangeSlidervue_type_template_id_6be663d2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"data-disable":_vm.disabled,"data-max":_vm.fieldOptions.max,"data-min":_vm.fieldOptions.min,"data-step":_vm.fieldOptions.step,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName}})} -var fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns = [] - - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=template&id=6be663d2& - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/arrayWithHoles.js -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/iterableToArrayLimit.js -function _iterableToArrayLimit(arr, i) { - var _arr = []; - var _n = true; - var _d = false; - var _e = undefined; - - try { - for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); + coverage = global[gcv] || (global[gcv] = {}); - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; } - return _arr; -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/nonIterableRest.js -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance"); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/builtin/es6/slicedToArray.js - - + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); -} -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldRangeSlider.vue?vue&type=script&lang=js& @@ -9560,44 +36255,81 @@ function _slicedToArray(arr, i) { name: "field-rangeSlider", mixins: [abstractField], data: function data() { + cov_b91itll0m.f[0]++; + cov_b91itll0m.s[0]++; return { slider: null }; }, watch: { model: function model() { - if (window.$ && window.$.fn.ionRangeSlider) { + cov_b91itll0m.f[1]++; + cov_b91itll0m.s[1]++; + + if ((cov_b91itll0m.b[1][0]++, window.$) && (cov_b91itll0m.b[1][1]++, window.$.fn.ionRangeSlider)) { + cov_b91itll0m.b[0][0]++; var valueFrom, valueTo; + cov_b91itll0m.s[2]++; if (isArray_default()(this.value)) { + cov_b91itll0m.b[2][0]++; + cov_b91itll0m.s[3]++; + var _this$value = _slicedToArray(this.value, 2); valueFrom = _this$value[0]; valueTo = _this$value[1]; - } else valueFrom = this.value; + } else { + cov_b91itll0m.b[2][1]++; + cov_b91itll0m.s[4]++; + valueFrom = this.value; + } + + cov_b91itll0m.s[5]++; if (this.slider) { + cov_b91itll0m.b[3][0]++; + cov_b91itll0m.s[6]++; this.slider.update({ from: valueFrom, to: valueTo }); + } else { + cov_b91itll0m.b[3][1]++; } + } else { + cov_b91itll0m.b[0][1]++; } } }, mounted: function mounted() { + cov_b91itll0m.f[2]++; + cov_b91itll0m.s[7]++; this.$nextTick(function () { - if (window.$ && window.$.fn.ionRangeSlider) { + cov_b91itll0m.f[3]++; + cov_b91itll0m.s[8]++; + + if ((cov_b91itll0m.b[5][0]++, window.$) && (cov_b91itll0m.b[5][1]++, window.$.fn.ionRangeSlider)) { + cov_b91itll0m.b[4][0]++; var valueFrom, valueTo; + cov_b91itll0m.s[9]++; if (isArray_default()(this.value)) { + cov_b91itll0m.b[6][0]++; + cov_b91itll0m.s[10]++; + var _this$value2 = _slicedToArray(this.value, 2); valueFrom = _this$value2[0]; valueTo = _this$value2[1]; - } else valueFrom = this.value; + } else { + cov_b91itll0m.b[6][1]++; + cov_b91itll0m.s[11]++; + valueFrom = this.value; + } - var self = this; + var self = (cov_b91itll0m.s[12]++, this); + cov_b91itll0m.s[13]++; $(this.$el).ionRangeSlider(defaults_default()(this.fieldOptions, { type: "single", grid: true, @@ -9605,58 +36337,978 @@ function _slicedToArray(arr, i) { from: valueFrom, to: valueTo, onChange: function onChange(slider) { + cov_b91itll0m.f[4]++; + cov_b91itll0m.s[14]++; + if (self.slider.options.type === "double") { + cov_b91itll0m.b[7][0]++; + cov_b91itll0m.s[15]++; self.value = [slider.from, slider.to]; } else { + cov_b91itll0m.b[7][1]++; + cov_b91itll0m.s[16]++; self.value = slider.from; } } - })); - this.slider = $(this.$el).data("ionRangeSlider"); - } else { - console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); + })); + cov_b91itll0m.s[17]++; + this.slider = $(this.$el).data("ionRangeSlider"); + } else { + cov_b91itll0m.b[4][1]++; + cov_b91itll0m.s[18]++; + console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!"); + } + }); + }, + beforeDestroy: function beforeDestroy() { + cov_b91itll0m.f[5]++; + cov_b91itll0m.s[19]++; + + if (this.slider) { + cov_b91itll0m.b[8][0]++; + cov_b91itll0m.s[20]++; + this.slider.destroy(); + } else { + cov_b91itll0m.b[8][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); +// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& +var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); + +// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue + + + + + + +/* normalize component */ + +var fieldRangeSlider_component = normalizeComponent( + optional_fieldRangeSlidervue_type_script_lang_js_, + fieldRangeSlidervue_type_template_id_6be663d2_render, + fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, + false, + null, + null, + null + +) + +fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" +/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& +var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} +var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& +var cov_1zg2mjpl6k = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue", + hash = "e28ff38ed9467807d2f87ed07c60185a05aaf64e", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue", + statementMap: { + "0": { + start: { + line: 30, + column: 16 + }, + end: { + line: 30, + column: 34 + } + }, + "1": { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, + "2": { + start: { + line: 32, + column: 4 + }, + end: { + line: 32, + column: 57 + } + }, + "3": { + start: { + line: 33, + column: 10 + }, + end: { + line: 33, + column: 24 + } + }, + "4": { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + "5": { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + "6": { + start: { + line: 41, + column: 5 + }, + end: { + line: 41, + column: 42 + } + }, + "7": { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + "8": { + start: { + line: 45, + column: 6 + }, + end: { + line: 45, + column: 21 + } + }, + "9": { + start: { + line: 47, + column: 6 + }, + end: { + line: 47, + column: 233 + } + }, + "10": { + start: { + line: 51, + column: 4 + }, + end: { + line: 51, + column: 16 + } + }, + "11": { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, + "12": { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, + "13": { + start: { + line: 58, + column: 5 + }, + end: { + line: 58, + column: 41 + } + }, + "14": { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, + "15": { + start: { + line: 61, + column: 6 + }, + end: { + line: 61, + column: 23 + } + }, + "16": { + start: { + line: 63, + column: 6 + }, + end: { + line: 63, + column: 234 + } + }, + "17": { + start: { + line: 67, + column: 4 + }, + end: { + line: 67, + column: 16 + } + }, + "18": { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, + "19": { + start: { + line: 74, + column: 57 + }, + end: { + line: 74, + column: 93 + } + }, + "20": { + start: { + line: 79, + column: 2 + }, + end: { + line: 89, + column: 5 + } + }, + "21": { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, + "22": { + start: { + line: 81, + column: 4 + }, + end: { + line: 83, + column: 38 + } + }, + "23": { + start: { + line: 85, + column: 4 + }, + end: { + line: 87, + column: 6 + } + }, + "24": { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, + "25": { + start: { + line: 93, + column: 25 + }, + end: { + line: 93, + column: 61 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 29, + column: 2 + }, + end: { + line: 29, + column: 3 + } + }, + loc: { + start: { + line: 29, + column: 10 + }, + end: { + line: 34, + column: 3 + } + }, + line: 29 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 38, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + loc: { + start: { + line: 38, + column: 21 + }, + end: { + line: 53, + column: 3 + } + }, + line: 38 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 55, + column: 2 + }, + end: { + line: 55, + column: 3 + } + }, + loc: { + start: { + line: 55, + column: 20 + }, + end: { + line: 69, + column: 3 + } + }, + line: 55 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 73, + column: 9 + }, + end: { + line: 73, + column: 10 + } + }, + loc: { + start: { + line: 73, + column: 20 + }, + end: { + line: 75, + column: 3 + } + }, + line: 73 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 78, + column: 1 + }, + end: { + line: 78, + column: 2 + } + }, + loc: { + start: { + line: 78, + column: 11 + }, + end: { + line: 90, + column: 2 + } + }, + line: 78 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 79, + column: 17 + }, + end: { + line: 79, + column: 18 + } + }, + loc: { + start: { + line: 79, + column: 23 + }, + end: { + line: 89, + column: 3 + } + }, + line: 79 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 92, + column: 1 + }, + end: { + line: 92, + column: 2 + } + }, + loc: { + start: { + line: 92, + column: 17 + }, + end: { + line: 94, + column: 2 + } + }, + line: 92 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, + type: "if", + locations: [{ + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }, { + start: { + line: 31, + column: 3 + }, + end: { + line: 33, + column: 24 + } + }], + line: 31 + }, + "1": { + loc: { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }, { + start: { + line: 39, + column: 3 + }, + end: { + line: 52, + column: 4 + } + }], + line: 39 + }, + "2": { + loc: { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, { + start: { + line: 40, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }], + line: 40 + }, + "3": { + loc: { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, { + start: { + line: 44, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }], + line: 44 + }, + "4": { + loc: { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }, { + start: { + line: 56, + column: 3 + }, + end: { + line: 68, + column: 4 + } + }], + line: 56 + }, + "5": { + loc: { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }, { + start: { + line: 57, + column: 4 + }, + end: { + line: 65, + column: 5 + } + }], + line: 57 + }, + "6": { + loc: { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }, { + start: { + line: 60, + column: 5 + }, + end: { + line: 64, + column: 6 + } + }], + line: 60 + }, + "7": { + loc: { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, + type: "if", + locations: [{ + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }, { + start: { + line: 74, + column: 3 + }, + end: { + line: 74, + column: 93 + } + }], + line: 74 + }, + "8": { + loc: { + start: { + line: 74, + column: 7 + }, + end: { + line: 74, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 74, + column: 7 + }, + end: { + line: 74, + column: 34 + } + }, { + start: { + line: 74, + column: 38 + }, + end: { + line: 74, + column: 55 + } + }], + line: 74 + }, + "9": { + loc: { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }, { + start: { + line: 80, + column: 3 + }, + end: { + line: 88, + column: 4 + } + }], + line: 80 + }, + "10": { + loc: { + start: { + line: 80, + column: 7 + }, + end: { + line: 80, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 80, + column: 7 + }, + end: { + line: 80, + column: 34 + } + }, { + start: { + line: 80, + column: 38 + }, + end: { + line: 80, + column: 55 + } + }], + line: 80 + }, + "11": { + loc: { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, + type: "if", + locations: [{ + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }, { + start: { + line: 93, + column: 2 + }, + end: { + line: 93, + column: 61 + } + }], + line: 93 } - }); + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0, + "19": 0, + "20": 0, + "21": 0, + "22": 0, + "23": 0, + "24": 0, + "25": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0], + "8": [0, 0], + "9": [0, 0], + "10": [0, 0], + "11": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.slider) this.slider.destroy(); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldRangeSlidervue_type_script_lang_js_ = (fieldRangeSlidervue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/fields/optional/fieldRangeSlider.vue?vue&type=style&index=0&lang=scss& -var fieldRangeSlidervue_type_style_index_0_lang_scss_ = __webpack_require__("d474"); - -// CONCATENATED MODULE: ./src/fields/optional/fieldRangeSlider.vue - - - - - - -/* normalize component */ - -var fieldRangeSlider_component = normalizeComponent( - optional_fieldRangeSlidervue_type_script_lang_js_, - fieldRangeSlidervue_type_template_id_6be663d2_render, - fieldRangeSlidervue_type_template_id_6be663d2_staticRenderFns, - false, - null, - null, - null - -) - -fieldRangeSlider_component.options.__file = "fieldRangeSlider.vue" -/* harmony default export */ var fieldRangeSlider = (fieldRangeSlider_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& -var fieldSelectExvue_type_template_id_2aa7bc96_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"}],staticClass:"selectpicker",attrs:{"disabled":_vm.disabled,"multiple":_vm.fieldOptions.multiSelect,"title":_vm.placeholder,"data-width":"100%","name":_vm.inputName},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.multiSelect !== true)?_c('option',{attrs:{"disabled":_vm.schema.required},domProps:{"value":null,"selected":_vm.value == undefined}}):_vm._e(),_vm._l((_vm.items),function(item){return _c('option',{key:_vm.getItemValue(item),domProps:{"value":_vm.getItemValue(item)}},[_vm._v(" "+_vm._s(_vm.getItemName(item)))])})],2)} -var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=template&id=2aa7bc96& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSelectEx.vue?vue&type=script&lang=js& @@ -9667,64 +37319,133 @@ var fieldSelectExvue_type_template_id_2aa7bc96_staticRenderFns = [] mixins: [abstractField], computed: { items: function items() { - var values = this.schema.values; + cov_1zg2mjpl6k.f[0]++; + var values = (cov_1zg2mjpl6k.s[0]++, this.schema.values); + cov_1zg2mjpl6k.s[1]++; if (typeof values == "function") { + cov_1zg2mjpl6k.b[0][0]++; + cov_1zg2mjpl6k.s[2]++; return values.apply(this, [this.model, this.schema]); - } else return values; + } else { + cov_1zg2mjpl6k.b[0][1]++; + cov_1zg2mjpl6k.s[3]++; + return values; + } } }, methods: { getItemValue: function getItemValue(item) { + cov_1zg2mjpl6k.f[1]++; + cov_1zg2mjpl6k.s[4]++; + if (isObject_default()(item)) { + cov_1zg2mjpl6k.b[1][0]++; + cov_1zg2mjpl6k.s[5]++; + if (typeof this.fieldOptions["value"] !== "undefined") { + cov_1zg2mjpl6k.b[2][0]++; + cov_1zg2mjpl6k.s[6]++; return item[this.fieldOptions.value]; } else { + cov_1zg2mjpl6k.b[2][1]++; + cov_1zg2mjpl6k.s[7]++; + // Use 'id' instead of 'value' cause of backward compatibility if (typeof item["id"] !== "undefined") { + cov_1zg2mjpl6k.b[3][0]++; + cov_1zg2mjpl6k.s[8]++; return item.id; } else { + cov_1zg2mjpl6k.b[3][1]++; + cov_1zg2mjpl6k.s[9]++; 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 { + cov_1zg2mjpl6k.b[1][1]++; + cov_1zg2mjpl6k.s[10]++; return item; } }, getItemName: function getItemName(item) { + cov_1zg2mjpl6k.f[2]++; + cov_1zg2mjpl6k.s[11]++; + if (isObject_default()(item)) { + cov_1zg2mjpl6k.b[4][0]++; + cov_1zg2mjpl6k.s[12]++; + if (typeof this.fieldOptions["name"] !== "undefined") { + cov_1zg2mjpl6k.b[5][0]++; + cov_1zg2mjpl6k.s[13]++; return item[this.fieldOptions.name]; } else { + cov_1zg2mjpl6k.b[5][1]++; + cov_1zg2mjpl6k.s[14]++; + if (typeof item["name"] !== "undefined") { + cov_1zg2mjpl6k.b[6][0]++; + cov_1zg2mjpl6k.s[15]++; return item.name; } else { + cov_1zg2mjpl6k.b[6][1]++; + cov_1zg2mjpl6k.s[16]++; 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 { + cov_1zg2mjpl6k.b[4][1]++; + cov_1zg2mjpl6k.s[17]++; return item; } } }, watch: { model: function model() { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) $(this.$el).selectpicker("refresh"); + cov_1zg2mjpl6k.f[3]++; + cov_1zg2mjpl6k.s[18]++; + + if ((cov_1zg2mjpl6k.b[8][0]++, typeof $.fn !== "undefined") && (cov_1zg2mjpl6k.b[8][1]++, $.fn.selectpicker)) { + cov_1zg2mjpl6k.b[7][0]++; + cov_1zg2mjpl6k.s[19]++; + $(this.$el).selectpicker("refresh"); + } else { + cov_1zg2mjpl6k.b[7][1]++; + } } }, mounted: function mounted() { var _this = this; + cov_1zg2mjpl6k.f[4]++; + cov_1zg2mjpl6k.s[20]++; this.$nextTick(function () { - if (typeof $.fn !== "undefined" && $.fn.selectpicker) { + cov_1zg2mjpl6k.f[5]++; + cov_1zg2mjpl6k.s[21]++; + + if ((cov_1zg2mjpl6k.b[10][0]++, typeof $.fn !== "undefined") && (cov_1zg2mjpl6k.b[10][1]++, $.fn.selectpicker)) { + cov_1zg2mjpl6k.b[9][0]++; + cov_1zg2mjpl6k.s[22]++; $(_this.$el).selectpicker("destroy").selectpicker(_this.fieldOptions); } else { + cov_1zg2mjpl6k.b[9][1]++; + cov_1zg2mjpl6k.s[23]++; console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!"); } }); }, beforeDestroy: function beforeDestroy() { - if ($.fn.selectpicker) $(this.$el).selectpicker("destroy"); + cov_1zg2mjpl6k.f[6]++; + cov_1zg2mjpl6k.s[24]++; + + if ($.fn.selectpicker) { + cov_1zg2mjpl6k.b[11][0]++; + cov_1zg2mjpl6k.s[25]++; + $(this.$el).selectpicker("destroy"); + } else { + cov_1zg2mjpl6k.b[11][1]++; + } } }); // CONCATENATED MODULE: ./src/fields/optional/fieldSelectEx.vue?vue&type=script&lang=js& @@ -9754,7 +37475,7 @@ var fieldSelectEx_component = normalizeComponent( fieldSelectEx_component.options.__file = "fieldSelectEx.vue" /* harmony default export */ var fieldSelectEx = (fieldSelectEx_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& var fieldSpectrumvue_type_template_id_13b45188_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('input',{attrs:{"type":"text","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"placeholder":_vm.placeholder,"readonly":_vm.readonly,"name":_vm.inputName,"id":_vm.fieldID}})} var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] @@ -9762,6 +37483,605 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=template&id=13b45188& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSpectrum.vue?vue&type=script&lang=js& +var cov_1avib7a09y = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue", + hash = "c5b9b396579a73a562daffcf587c1f7b3647d91f", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue", + statementMap: { + "0": { + start: { + line: 20, + column: 2 + }, + end: { + line: 22, + column: 4 + } + }, + "1": { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, + "2": { + start: { + line: 28, + column: 4 + }, + end: { + line: 28, + column: 44 + } + }, + "3": { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, + "4": { + start: { + line: 33, + column: 12 + }, + end: { + line: 33, + column: 44 + } + }, + "5": { + start: { + line: 34, + column: 8 + }, + end: { + line: 34, + column: 39 + } + }, + "6": { + start: { + line: 39, + column: 2 + }, + end: { + line: 61, + column: 5 + } + }, + "7": { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + "8": { + start: { + line: 41, + column: 4 + }, + end: { + line: 54, + column: 7 + } + }, + "9": { + start: { + line: 51, + column: 8 + }, + end: { + line: 51, + column: 53 + } + }, + "10": { + start: { + line: 55, + column: 4 + }, + end: { + line: 55, + column: 44 + } + }, + "11": { + start: { + line: 57, + column: 4 + }, + end: { + line: 59, + column: 6 + } + }, + "12": { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, + "13": { + start: { + line: 65, + column: 19 + }, + end: { + line: 65, + column: 51 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 19, + column: 1 + }, + end: { + line: 19, + column: 2 + } + }, + loc: { + start: { + line: 19, + column: 8 + }, + end: { + line: 23, + column: 2 + } + }, + line: 19 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 26, + column: 2 + }, + end: { + line: 26, + column: 3 + } + }, + loc: { + start: { + line: 26, + column: 10 + }, + end: { + line: 30, + column: 3 + } + }, + line: 26 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 32, + column: 2 + }, + end: { + line: 32, + column: 3 + } + }, + loc: { + start: { + line: 32, + column: 16 + }, + end: { + line: 35, + column: 3 + } + }, + line: 32 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 38, + column: 1 + }, + end: { + line: 38, + column: 2 + } + }, + loc: { + start: { + line: 38, + column: 11 + }, + end: { + line: 62, + column: 2 + } + }, + line: 38 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 39, + column: 17 + }, + end: { + line: 39, + column: 18 + } + }, + loc: { + start: { + line: 39, + column: 28 + }, + end: { + line: 61, + column: 3 + } + }, + line: 39 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 50, + column: 15 + }, + end: { + line: 50, + column: 16 + } + }, + loc: { + start: { + line: 50, + column: 26 + }, + end: { + line: 52, + column: 8 + } + }, + line: 50 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 64, + column: 1 + }, + end: { + line: 64, + column: 2 + } + }, + loc: { + start: { + line: 64, + column: 17 + }, + end: { + line: 66, + column: 2 + } + }, + line: 64 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }, { + start: { + line: 27, + column: 3 + }, + end: { + line: 29, + column: 4 + } + }], + line: 27 + }, + "1": { + loc: { + start: { + line: 27, + column: 7 + }, + end: { + line: 27, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 27, + column: 7 + }, + end: { + line: 27, + column: 15 + } + }, { + start: { + line: 27, + column: 19 + }, + end: { + line: 27, + column: 39 + } + }], + line: 27 + }, + "2": { + loc: { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }, { + start: { + line: 33, + column: 3 + }, + end: { + line: 34, + column: 39 + } + }], + line: 33 + }, + "3": { + loc: { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }, { + start: { + line: 40, + column: 3 + }, + end: { + line: 60, + column: 4 + } + }], + line: 40 + }, + "4": { + loc: { + start: { + line: 40, + column: 7 + }, + end: { + line: 40, + column: 39 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 40, + column: 7 + }, + end: { + line: 40, + column: 15 + } + }, { + start: { + line: 40, + column: 19 + }, + end: { + line: 40, + column: 39 + } + }], + line: 40 + }, + "5": { + loc: { + start: { + line: 51, + column: 21 + }, + end: { + line: 51, + column: 52 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 51, + column: 29 + }, + end: { + line: 51, + column: 45 + } + }, { + start: { + line: 51, + column: 48 + }, + end: { + line: 51, + column: 52 + } + }], + line: 51 + }, + "6": { + loc: { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, + type: "if", + locations: [{ + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }, { + start: { + line: 65, + column: 2 + }, + end: { + line: 65, + column: 51 + } + }], + line: 65 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -9781,25 +38101,52 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] name: "field-spectrum", mixins: [abstractField], data: function data() { + cov_1avib7a09y.f[0]++; + cov_1avib7a09y.s[0]++; return { picker: null }; }, watch: { model: function model() { - if (window.$ && window.$.fn.spectrum) { + cov_1avib7a09y.f[1]++; + cov_1avib7a09y.s[1]++; + + if ((cov_1avib7a09y.b[1][0]++, window.$) && (cov_1avib7a09y.b[1][1]++, window.$.fn.spectrum)) { + cov_1avib7a09y.b[0][0]++; + cov_1avib7a09y.s[2]++; this.picker.spectrum("set", this.value); + } else { + cov_1avib7a09y.b[0][1]++; } }, disabled: function disabled(val) { - if (val) this.picker.spectrum("disable");else this.picker.spectrum("enable"); + cov_1avib7a09y.f[2]++; + cov_1avib7a09y.s[3]++; + + if (val) { + cov_1avib7a09y.b[2][0]++; + cov_1avib7a09y.s[4]++; + this.picker.spectrum("disable"); + } else { + cov_1avib7a09y.b[2][1]++; + cov_1avib7a09y.s[5]++; + this.picker.spectrum("enable"); + } } }, mounted: function mounted() { + cov_1avib7a09y.f[3]++; + cov_1avib7a09y.s[6]++; this.$nextTick(function () { var _this = this; - if (window.$ && window.$.fn.spectrum) { + cov_1avib7a09y.f[4]++; + cov_1avib7a09y.s[7]++; + + if ((cov_1avib7a09y.b[4][0]++, window.$) && (cov_1avib7a09y.b[4][1]++, window.$.fn.spectrum)) { + cov_1avib7a09y.b[3][0]++; + cov_1avib7a09y.s[8]++; this.picker = $(this.$el).spectrum("destroy").spectrum(defaults_default()(this.fieldOptions, { showInput: true, showAlpha: true, @@ -9807,50 +38154,378 @@ var fieldSpectrumvue_type_template_id_13b45188_staticRenderFns = [] allowEmpty: !this.schema.required, preferredFormat: "hex", change: function change(color) { - _this.value = color ? color.toString() : null; + cov_1avib7a09y.f[5]++; + cov_1avib7a09y.s[9]++; + _this.value = color ? (cov_1avib7a09y.b[5][0]++, color.toString()) : (cov_1avib7a09y.b[5][1]++, null); + } + })); + cov_1avib7a09y.s[10]++; + this.picker.spectrum("set", this.value); + } else { + cov_1avib7a09y.b[3][1]++; + cov_1avib7a09y.s[11]++; + console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); + } + }); + }, + beforeDestroy: function beforeDestroy() { + cov_1avib7a09y.f[6]++; + cov_1avib7a09y.s[12]++; + + if (this.picker) { + cov_1avib7a09y.b[6][0]++; + cov_1avib7a09y.s[13]++; + this.picker.spectrum("destroy"); + } else { + cov_1avib7a09y.b[6][1]++; + } + } +}); +// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& + /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); +// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue + + + + + +/* normalize component */ + +var fieldSpectrum_component = normalizeComponent( + optional_fieldSpectrumvue_type_script_lang_js_, + fieldSpectrumvue_type_template_id_13b45188_render, + fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, + false, + null, + null, + null + +) + +fieldSpectrum_component.options.__file = "fieldSpectrum.vue" +/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& +var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} +var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] + + +// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& + +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& +var cov_1ostc70akj = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue", + hash = "ece9fa3e4721e75399d28424804697c257fa947a", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue", + statementMap: { + "0": { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, + "1": { + start: { + line: 17, + column: 18 + }, + end: { + line: 23, + column: 6 + } + }, + "2": { + start: { + line: 25, + column: 4 + }, + end: { + line: 25, + column: 34 + } + }, + "3": { + start: { + line: 26, + column: 4 + }, + end: { + line: 26, + column: 34 + } + }, + "4": { + start: { + line: 28, + column: 14 + }, + end: { + line: 30, + column: 45 + } + }, + "5": { + start: { + line: 32, + column: 16 + }, + end: { + line: 44, + column: 5 + } + }, + "6": { + start: { + line: 45, + column: 4 + }, + end: { + line: 49, + column: 5 + } + }, + "7": { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + "8": { + start: { + line: 47, + column: 6 + }, + end: { + line: 47, + column: 41 + } + }, + "9": { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, + "10": { + start: { + line: 51, + column: 5 + }, + end: { + line: 51, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 3 + } + }, + loc: { + start: { + line: 14, + column: 12 + }, + end: { + line: 54, + column: 3 + } + }, + line: 14 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }, { + start: { + line: 15, + column: 3 + }, + end: { + line: 53, + column: 4 + } + }], + line: 15 + }, + "1": { + loc: { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, + type: "if", + locations: [{ + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 + } + }, { + start: { + line: 46, + column: 5 + }, + end: { + line: 48, + column: 6 } - })); - this.picker.spectrum("set", this.value); - } else { - console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"); + }], + line: 46 + }, + "2": { + loc: { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }, { + start: { + line: 50, + column: 4 + }, + end: { + line: 52, + column: 5 + } + }], + line: 50 + }, + "3": { + loc: { + start: { + line: 50, + column: 8 + }, + end: { + line: 50, + column: 18 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 50, + column: 8 + }, + end: { + line: 50, + column: 11 + } + }, { + start: { + line: 50, + column: 15 + }, + end: { + line: 50, + column: 18 + } + }], + line: 50 } - }); + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" }, - beforeDestroy: function beforeDestroy() { - if (this.picker) this.picker.spectrum("destroy"); - } -}); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue?vue&type=script&lang=js& - /* harmony default export */ var optional_fieldSpectrumvue_type_script_lang_js_ = (fieldSpectrumvue_type_script_lang_js_); -// CONCATENATED MODULE: ./src/fields/optional/fieldSpectrum.vue - - - - - -/* normalize component */ - -var fieldSpectrum_component = normalizeComponent( - optional_fieldSpectrumvue_type_script_lang_js_, - fieldSpectrumvue_type_template_id_13b45188_render, - fieldSpectrumvue_type_template_id_13b45188_staticRenderFns, - false, - null, - null, - null - -) - -fieldSpectrum_component.options.__file = "fieldSpectrum.vue" -/* harmony default export */ var fieldSpectrum = (fieldSpectrum_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& -var fieldStaticMapvue_type_template_id_0cb20abb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('img',{attrs:{"src":_vm.mapLink}})} -var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] + coverage = global[gcv] || (global[gcv] = {}); + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } -// CONCATENATED MODULE: ./src/fields/optional/fieldStaticMap.vue?vue&type=template&id=0cb20abb& + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldStaticMap.vue?vue&type=script&lang=js& // // @@ -9862,33 +38537,51 @@ var fieldStaticMapvue_type_template_id_0cb20abb_staticRenderFns = [] mixins: [abstractField], computed: { mapLink: function mapLink() { + cov_1ostc70akj.f[0]++; + cov_1ostc70akj.s[0]++; + if (this.value) { + cov_1ostc70akj.b[0][0]++; var lat, lng; - - var options = defaults_default()(this.fieldOptions, { + var options = (cov_1ostc70akj.s[1]++, defaults_default()(this.fieldOptions, { lat: "lat", lng: "lng", zoom: 8, sizeX: 640, sizeY: 640 - }); - + })); + cov_1ostc70akj.s[2]++; lat = this.value[options.lat]; + cov_1ostc70akj.s[3]++; lng = this.value[options.lng]; - var url = "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY); - var props = ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]; + var url = (cov_1ostc70akj.s[4]++, "http://maps.googleapis.com/maps/api/staticmap?center=".concat(lat, ",").concat(lng, "&zoom=").concat(options.zoom, "&size=").concat(options.sizeX, "x").concat(options.sizeY)); + var props = (cov_1ostc70akj.s[5]++, ["scale", "format", "maptype", "language", "region", "markers", "path", "visible", "style", "key", "signature"]); + cov_1ostc70akj.s[6]++; for (var _i = 0; _i < props.length; _i++) { var prop = props[_i]; + cov_1ostc70akj.s[7]++; if (typeof options[prop] !== "undefined") { + cov_1ostc70akj.b[1][0]++; + cov_1ostc70akj.s[8]++; url += "&".concat(prop, "=").concat(options[prop]); + } else { + cov_1ostc70akj.b[1][1]++; } } - if (lat && lng) { + cov_1ostc70akj.s[9]++; + + if ((cov_1ostc70akj.b[3][0]++, lat) && (cov_1ostc70akj.b[3][1]++, lng)) { + cov_1ostc70akj.b[2][0]++; + cov_1ostc70akj.s[10]++; return url; + } else { + cov_1ostc70akj.b[2][1]++; } + } else { + cov_1ostc70akj.b[0][1]++; } } } @@ -9920,7 +38613,7 @@ var fieldStaticMap_component = normalizeComponent( fieldStaticMap_component.options.__file = "fieldStaticMap.vue" /* harmony default export */ var fieldStaticMap = (fieldStaticMap_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& var fieldSwitchvue_type_template_id_5a71b352_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.value),expression:"value"}],attrs:{"type":"checkbox","autocomplete":_vm.fieldOptions.autocomplete,"disabled":_vm.disabled,"name":_vm.inputName,"id":_vm.fieldID},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}}}}),_c('span',{staticClass:"label",attrs:{"data-on":_vm.fieldOptions.textOn || 'On',"data-off":_vm.fieldOptions.textOff || 'Off',"for":_vm.fieldID}}),_c('span',{staticClass:"handle"})])} var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] @@ -9928,6 +38621,346 @@ var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldSwitch.vue?vue&type=template&id=5a71b352& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldSwitch.vue?vue&type=script&lang=js& +var cov_r8apqthxw = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue", + hash = "806abb636683e0e8f010e68e5f700e7f9f89d0d3", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue", + statementMap: { + "0": { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, + "1": { + start: { + line: 26, + column: 51 + }, + end: { + line: 26, + column: 94 + } + }, + "2": { + start: { + line: 28, + column: 3 + }, + end: { + line: 28, + column: 16 + } + }, + "3": { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, + "4": { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, + "5": { + start: { + line: 33, + column: 15 + }, + end: { + line: 33, + column: 48 + } + }, + "6": { + start: { + line: 34, + column: 9 + }, + end: { + line: 34, + column: 43 + } + }, + "7": { + start: { + line: 37, + column: 3 + }, + end: { + line: 37, + column: 16 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 25, + column: 2 + }, + end: { + line: 25, + column: 3 + } + }, + loc: { + start: { + line: 25, + column: 28 + }, + end: { + line: 29, + column: 3 + } + }, + line: 25 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 31, + column: 2 + }, + end: { + line: 31, + column: 3 + } + }, + loc: { + start: { + line: 31, + column: 28 + }, + end: { + line: 38, + column: 3 + } + }, + line: 31 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, + type: "if", + locations: [{ + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }, { + start: { + line: 26, + column: 3 + }, + end: { + line: 26, + column: 94 + } + }], + line: 26 + }, + "1": { + loc: { + start: { + line: 26, + column: 7 + }, + end: { + line: 26, + column: 49 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 26, + column: 7 + }, + end: { + line: 26, + column: 20 + } + }, { + start: { + line: 26, + column: 24 + }, + end: { + line: 26, + column: 49 + } + }], + line: 26 + }, + "2": { + loc: { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }, { + start: { + line: 32, + column: 3 + }, + end: { + line: 35, + column: 4 + } + }], + line: 32 + }, + "3": { + loc: { + start: { + line: 32, + column: 7 + }, + end: { + line: 32, + column: 49 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 32, + column: 7 + }, + end: { + line: 32, + column: 20 + } + }, { + start: { + line: 32, + column: 24 + }, + end: { + line: 32, + column: 49 + } + }], + line: 32 + }, + "4": { + loc: { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, + type: "if", + locations: [{ + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }, { + start: { + line: 33, + column: 4 + }, + end: { + line: 34, + column: 43 + } + }], + line: 33 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // // // @@ -9950,14 +38983,42 @@ var fieldSwitchvue_type_template_id_5a71b352_staticRenderFns = [] mixins: [abstractField], methods: { formatValueToField: function formatValueToField(value) { - if (value != null && this.fieldOptions.valueOn) return value === this.fieldOptions.valueOn; + cov_r8apqthxw.f[0]++; + cov_r8apqthxw.s[0]++; + + if ((cov_r8apqthxw.b[1][0]++, value != null) && (cov_r8apqthxw.b[1][1]++, this.fieldOptions.valueOn)) { + cov_r8apqthxw.b[0][0]++; + cov_r8apqthxw.s[1]++; + return value === this.fieldOptions.valueOn; + } else { + cov_r8apqthxw.b[0][1]++; + } + + cov_r8apqthxw.s[2]++; return value; }, formatValueToModel: function formatValueToModel(value) { - if (value != null && this.fieldOptions.valueOn) { - if (value) return this.fieldOptions.valueOn;else return this.fieldOptions.valueOff; + cov_r8apqthxw.f[1]++; + cov_r8apqthxw.s[3]++; + + if ((cov_r8apqthxw.b[3][0]++, value != null) && (cov_r8apqthxw.b[3][1]++, this.fieldOptions.valueOn)) { + cov_r8apqthxw.b[2][0]++; + cov_r8apqthxw.s[4]++; + + if (value) { + cov_r8apqthxw.b[4][0]++; + cov_r8apqthxw.s[5]++; + return this.fieldOptions.valueOn; + } else { + cov_r8apqthxw.b[4][1]++; + cov_r8apqthxw.s[6]++; + return this.fieldOptions.valueOff; + } + } else { + cov_r8apqthxw.b[2][1]++; } + cov_r8apqthxw.s[7]++; return value; } } @@ -9989,7 +39050,7 @@ var fieldSwitch_component = normalizeComponent( fieldSwitch_component.options.__file = "fieldSwitch.vue" /* harmony default export */ var fieldSwitch = (fieldSwitch_component.exports); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"4faaeac7-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"7be045fd-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/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& var fieldVueMultiSelectvue_type_template_id_032ae05c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('multiselect',{attrs:{"id":_vm.fieldOptions.id,"options":_vm.options,"value":_vm.value,"multiple":_vm.fieldOptions.multiple,"track-by":_vm.fieldOptions.trackBy || null,"label":_vm.fieldOptions.label || null,"searchable":_vm.fieldOptions.searchable,"clear-on-select":_vm.fieldOptions.clearOnSelect,"hide-selected":_vm.fieldOptions.hideSelected,"placeholder":_vm.placeholder,"allow-empty":_vm.fieldOptions.allowEmpty,"reset-after":_vm.fieldOptions.resetAfter,"close-on-select":_vm.fieldOptions.closeOnSelect,"custom-label":_vm.customLabel,"taggable":_vm.fieldOptions.taggable,"tag-placeholder":_vm.fieldOptions.tagPlaceholder,"max":_vm.fieldOptions.max || null,"options-limit":_vm.fieldOptions.optionsLimit,"group-values":_vm.fieldOptions.groupValues,"group-label":_vm.fieldOptions.groupLabel,"block-keys":_vm.fieldOptions.blockKeys,"internal-search":_vm.fieldOptions.internalSearch,"select-label":_vm.fieldOptions.selectLabel,"selected-label":_vm.fieldOptions.selectedLabel,"deselect-label":_vm.fieldOptions.deselectLabel,"show-labels":_vm.fieldOptions.showLabels,"limit":_vm.fieldOptions.limit,"limit-text":_vm.fieldOptions.limitText,"loading":_vm.fieldOptions.loading,"disabled":_vm.disabled,"max-height":_vm.fieldOptions.maxHeight,"show-pointer":_vm.fieldOptions.showPointer,"option-height":_vm.fieldOptions.optionHeight},on:{"input":_vm.updateSelected,"select":_vm.onSelect,"remove":_vm.onRemove,"search-change":_vm.onSearchChange,"tag":_vm.addTag,"open":_vm.onOpen,"close":_vm.onClose}},[_c('span',{attrs:{"slot":"noResult"},slot:"noResult"},[_vm._v("\n\t\t"+_vm._s(_vm.fieldOptions.noResult)+"\n\t")])])} var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] @@ -9997,6 +39058,668 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] // CONCATENATED MODULE: ./src/fields/optional/fieldVueMultiSelect.vue?vue&type=template&id=032ae05c& // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-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/optional/fieldVueMultiSelect.vue?vue&type=script&lang=js& +var cov_1r7rt9or0z = function () { + var path = "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue", + hash = "b3674c719740b66820d4636cf97edb32a7e4b300", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue", + statementMap: { + "0": { + start: { + line: 56, + column: 16 + }, + end: { + line: 56, + column: 34 + } + }, + "1": { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, + "2": { + start: { + line: 58, + column: 4 + }, + end: { + line: 58, + column: 57 + } + }, + "3": { + start: { + line: 60, + column: 4 + }, + end: { + line: 60, + column: 18 + } + }, + "4": { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, + "5": { + start: { + line: 68, + column: 4 + }, + end: { + line: 68, + column: 41 + } + }, + "6": { + start: { + line: 71, + column: 4 + }, + end: { + line: 71, + column: 21 + } + }, + "7": { + start: { + line: 77, + column: 3 + }, + end: { + line: 77, + column: 22 + } + }, + "8": { + start: { + line: 80, + column: 18 + }, + end: { + line: 80, + column: 44 + } + }, + "9": { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, + "10": { + start: { + line: 82, + column: 4 + }, + end: { + line: 82, + column: 51 + } + }, + "11": { + start: { + line: 86, + column: 18 + }, + end: { + line: 86, + column: 44 + } + }, + "12": { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, + "13": { + start: { + line: 88, + column: 4 + }, + end: { + line: 88, + column: 44 + } + }, + "14": { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, + "15": { + start: { + line: 107, + column: 3 + }, + end: { + line: 109, + column: 5 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 55, + column: 2 + }, + end: { + line: 55, + column: 3 + } + }, + loc: { + start: { + line: 55, + column: 12 + }, + end: { + line: 62, + column: 3 + } + }, + line: 55 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 63, + column: 2 + }, + end: { + line: 63, + column: 3 + } + }, + loc: { + start: { + line: 63, + column: 16 + }, + end: { + line: 73, + column: 3 + } + }, + line: 63 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 76, + column: 2 + }, + end: { + line: 76, + column: 3 + } + }, + loc: { + start: { + line: 76, + column: 34 + }, + end: { + line: 78, + column: 3 + } + }, + line: 76 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 79, + column: 2 + }, + end: { + line: 79, + column: 3 + } + }, + loc: { + start: { + line: 79, + column: 21 + }, + end: { + line: 84, + column: 3 + } + }, + line: 79 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 85, + column: 2 + }, + end: { + line: 85, + column: 3 + } + }, + loc: { + start: { + line: 85, + column: 34 + }, + end: { + line: 90, + column: 3 + } + }, + line: 85 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 91, + column: 2 + }, + end: { + line: 91, + column: 3 + } + }, + loc: { + start: { + line: 91, + column: 37 + }, + end: { + line: 93, + column: 3 + } + }, + line: 91 + }, + "6": { + name: "(anonymous_6)", + decl: { + start: { + line: 94, + column: 2 + }, + end: { + line: 94, + column: 3 + } + }, + loc: { + start: { + line: 94, + column: 36 + }, + end: { + line: 96, + column: 3 + } + }, + line: 94 + }, + "7": { + name: "(anonymous_7)", + decl: { + start: { + line: 97, + column: 2 + }, + end: { + line: 97, + column: 3 + } + }, + loc: { + start: { + line: 97, + column: 19 + }, + end: { + line: 99, + column: 3 + } + }, + line: 97 + }, + "8": { + name: "(anonymous_8)", + decl: { + start: { + line: 100, + column: 2 + }, + end: { + line: 100, + column: 3 + } + }, + loc: { + start: { + line: 100, + column: 27 + }, + end: { + line: 102, + column: 3 + } + }, + line: 100 + }, + "9": { + name: "(anonymous_9)", + decl: { + start: { + line: 104, + column: 1 + }, + end: { + line: 104, + column: 2 + } + }, + loc: { + start: { + line: 104, + column: 11 + }, + end: { + line: 111, + column: 2 + } + }, + line: 104 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }, { + start: { + line: 57, + column: 3 + }, + end: { + line: 61, + column: 4 + } + }], + line: 57 + }, + "1": { + loc: { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }, { + start: { + line: 64, + column: 3 + }, + end: { + line: 72, + column: 4 + } + }], + line: 64 + }, + "2": { + loc: { + start: { + line: 65, + column: 4 + }, + end: { + line: 66, + column: 55 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 65, + column: 4 + }, + end: { + line: 65, + column: 56 + } + }, { + start: { + line: 66, + column: 4 + }, + end: { + line: 66, + column: 55 + } + }], + line: 65 + }, + "3": { + loc: { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }, { + start: { + line: 81, + column: 3 + }, + end: { + line: 83, + column: 4 + } + }], + line: 81 + }, + "4": { + loc: { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, + type: "if", + locations: [{ + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }, { + start: { + line: 87, + column: 3 + }, + end: { + line: 89, + column: 4 + } + }], + line: 87 + }, + "5": { + loc: { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }, { + start: { + line: 106, + column: 2 + }, + end: { + line: 110, + column: 3 + } + }], + line: 106 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0] + }, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // @@ -10052,18 +39775,31 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] mixins: [abstractField], computed: { options: function options() { - var values = this.schema.values; + cov_1r7rt9or0z.f[0]++; + var values = (cov_1r7rt9or0z.s[0]++, this.schema.values); + cov_1r7rt9or0z.s[1]++; if (typeof values == "function") { + cov_1r7rt9or0z.b[0][0]++; + cov_1r7rt9or0z.s[2]++; return values.apply(this, [this.model, this.schema]); } else { + cov_1r7rt9or0z.b[0][1]++; + cov_1r7rt9or0z.s[3]++; return values; } }, customLabel: function customLabel() { - if (typeof this.fieldOptions.customLabel !== "undefined" && typeof this.fieldOptions.customLabel === "function") { + cov_1r7rt9or0z.f[1]++; + cov_1r7rt9or0z.s[4]++; + + if ((cov_1r7rt9or0z.b[2][0]++, typeof this.fieldOptions.customLabel !== "undefined") && (cov_1r7rt9or0z.b[2][1]++, typeof this.fieldOptions.customLabel === "function")) { + cov_1r7rt9or0z.b[1][0]++; + cov_1r7rt9or0z.s[5]++; return this.fieldOptions.customLabel; } else { + cov_1r7rt9or0z.b[1][1]++; + cov_1r7rt9or0z.s[6]++; // this will let the multiselect library use the default behavior if customLabel is not specified return undefined; } @@ -10073,43 +39809,72 @@ var fieldVueMultiSelectvue_type_template_id_032ae05c_staticRenderFns = [] updateSelected: function updateSelected(value /* , id*/ ) { + cov_1r7rt9or0z.f[2]++; + cov_1r7rt9or0z.s[7]++; this.value = value; }, addTag: function addTag(newTag, id) { - var onNewTag = this.fieldOptions.onNewTag; + cov_1r7rt9or0z.f[3]++; + var onNewTag = (cov_1r7rt9or0z.s[8]++, this.fieldOptions.onNewTag); + cov_1r7rt9or0z.s[9]++; if (typeof onNewTag == "function") { + cov_1r7rt9or0z.b[3][0]++; + cov_1r7rt9or0z.s[10]++; onNewTag(newTag, id, this.options, this.value); + } else { + cov_1r7rt9or0z.b[3][1]++; } }, onSearchChange: function onSearchChange(searchQuery, id) { - var onSearch = this.fieldOptions.onSearch; + cov_1r7rt9or0z.f[4]++; + var onSearch = (cov_1r7rt9or0z.s[11]++, this.fieldOptions.onSearch); + cov_1r7rt9or0z.s[12]++; if (typeof onSearch == "function") { + cov_1r7rt9or0z.b[4][0]++; + cov_1r7rt9or0z.s[13]++; onSearch(searchQuery, id, this.options); + } else { + cov_1r7rt9or0z.b[4][1]++; } }, onSelect: function onSelect() /* selectedOption, id */ {// console.log("onSelect", selectedOption, id); + + cov_1r7rt9or0z.f[5]++; }, onRemove: function onRemove() /* removedOption, id */ {// console.log("onRemove", removedOption, id); + + cov_1r7rt9or0z.f[6]++; }, onOpen: function onOpen() /* id */ {// console.log("onOpen", id); + + cov_1r7rt9or0z.f[7]++; }, onClose: function onClose() /* value, id */ {// console.log("onClose", value, id); + + cov_1r7rt9or0z.f[8]++; } }, created: function created() { + cov_1r7rt9or0z.f[9]++; + cov_1r7rt9or0z.s[14]++; + // Check if the component is loaded globally if (!this.$root.$options.components["multiselect"]) { + cov_1r7rt9or0z.b[5][0]++; + cov_1r7rt9or0z.s[15]++; console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!"); + } else { + cov_1r7rt9or0z.b[5][1]++; } } }); @@ -10137,6 +39902,32 @@ var fieldVueMultiSelect_component = normalizeComponent( fieldVueMultiSelect_component.options.__file = "fieldVueMultiSelect.vue" /* harmony default export */ var fieldVueMultiSelect = (fieldVueMultiSelect_component.exports); // CONCATENATED MODULE: ./src/utils/fieldsLoader.js +var cov_11g8keknmi = function () { + var path = "D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js", + hash = "88560dabaa255429bfab61ec1d0061b53e2f9fac", + Function = function () {}.constructor, + global = new Function('return this')(), + gcv = "__coverage__", + coverageData = { + path: "D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184" + }, + coverage = global[gcv] || (global[gcv] = {}); + + if (coverage[path] && coverage[path].hash === hash) { + return coverage[path]; + } + + coverageData.hash = hash; + return coverage[path] = coverageData; +}(); + // core @@ -10235,26 +40026,37 @@ module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u20 /***/ }), /***/ "ffd6": -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { + +var baseGetTag = __webpack_require__("3729"), + isObjectLike = __webpack_require__("1310"); + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; /** - * This method returns `false`. + * Checks if `value` is classified as a `Symbol` primitive or object. * * @static * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. * @example * - * _.times(2, _.stubFalse); - * // => [false, false] + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false */ -function stubFalse() { - return false; +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); } -module.exports = stubFalse; +module.exports = isSymbol; /***/ }) diff --git a/dist/vfg.umd.min.js b/dist/vfg.umd.min.js index 7bec3b26..fe14c560 100644 --- a/dist/vfg.umd.min.js +++ b/dist/vfg.umd.min.js @@ -1 +1 @@ -(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vfg"]=t(require("vue")):e["vfg"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),l=n("7f20"),c=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",v=function(){return this};e.exports=function(e,t,n,b,g,y,x){u(n,t,b);var O,_,w,S=function(e){if(!d&&e in j)return j[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=g==m,T=!1,j=e.prototype,M=j[f]||j[p]||g&&j[g],I=M||S(g),$=g?C?S("entries"):I:void 0,F="Array"==t&&j.entries||M;if(F&&(w=c(F.call(new e)),w!==Object.prototype&&w.next&&(l(w,k,!0),i||"function"==typeof w[f]||a(w,f,v))),C&&M&&M.name!==m&&(T=!0,I=function(){return M.call(this)}),i&&!x||!d&&!T&&j[f]||a(j,f,I),s[t]=I,s[k]=v,g)if(O={values:C?I:S(m),keys:y?I:S(h),entries:$},x)for(_ in O)_ in j||o(j,_,O[_]);else r(r.P+r.F*(d||T),t,O);return O}},"03dd":function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},"0644":function(e,t,n){var i=n("3818"),r=1,o=4;function a(e){return i(e,r|o)}e.exports=a},"0b07":function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d24":function(e,t){function n(){return!1}e.exports=n},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},"0f0f":function(e,t,n){var i=n("8eeb"),r=n("9934");function o(e,t){return e&&i(t,r(t),e)}e.exports=o},"0f5c":function(e,t,n){var i=n("159a");function r(e,t,n){return null==e?e:i(e,t,n)}e.exports=r},"100e":function(e,t,n){var i=n("cd9d"),r=n("2286"),o=n("c1c9");function a(e,t){return o(r(e,t,i),e+"")}e.exports=a},1041:function(e,t,n){var i=n("8eeb"),r=n("a029");function o(e,t){return i(e,r(e),t)}e.exports=o},"11e9":function(e,t,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),u=n("c69a"),l=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},"13ea":function(e,t,n){var i=n("03dd"),r=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),l=n("eac5"),c=n("73ac"),f="[object Map]",d="[object Set]",p=Object.prototype,h=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=r(e);if(t==f||t==d)return!e.size;if(l(e))return!i(e).length;for(var n in e)if(h.call(e,n))return!1;return!0}e.exports=m},1437:function(e,t,n){},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,u=0;while(s>u)i.f(e,n=a[u++],t[n]);return e}},"159a":function(e,t,n){var i=n("32b3"),r=n("e2e4"),o=n("c098"),a=n("1a8c"),s=n("f4d6");function u(e,t,n,u){if(!a(e))return e;t=r(t,e);var l=-1,c=t.length,f=c-1,d=e;while(null!=d&&++ln)t.push(arguments[n++]);return b[++v]=function(){s("function"==typeof e?e:Function(e),t)},i(v),v},p=function(e){delete b[e]},"process"==n("2d95")(f)?i=function(e){f.nextTick(a(y,e,1))}:m&&m.now?i=function(e){m.now(a(y,e,1))}:h?(r=new h,o=r.port2,r.port1.onmessage=x,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",x,!1)):i=g in l("script")?function(e){u.appendChild(l("script"))[g]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1bac":function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e["return"];throw void 0!==o&&i(o.call(e)),t}}},2149:function(e,t,n){"use strict";var i=n("1437"),r=n.n(i);r.a},"214f":function(e,t,n){"use strict";var i=n("32e9"),r=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var u=s(e),l=n(a,u,""[e]),c=l[0],f=l[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),i(RegExp.prototype,u,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},2286:function(e,t,n){var i=n("85e3"),r=Math.max;function o(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=r(o.length-t,0),u=Array(s);while(++a1||""[s](/.?/)[u]){var c=void 0===/()??/.exec("")[1];i=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!r(e))return o.call(n,e,t);var i,s,f,d,p,h=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,b=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,m+"g");c||(i=new RegExp("^"+g.source+"$(?!\\s)",m));while(s=g.exec(n)){if(f=s.index+s[0][u],f>v&&(h.push(n.slice(v,s.index)),!c&&s[u]>1&&s[0].replace(i,function(){for(p=1;p1&&s.index=b))break;g[l]===s.index&&g[l]++}return v===n[u]?!d&&g.test("")||h.push(""):h.push(n.slice(v)),h[u]>b?h.slice(0,b):h}}else"0"[s](void 0,0)[u]&&(i=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,r){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,r):i.call(String(o),n,r)},i]})},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",u=Function[s],l=(""+u).split(s);n("8378").inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||r(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("230e")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;while(i--)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},"2b03":function(e,t){function n(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++ob;)m(v[b++]);f.constructor=l,l.prototype=f,n("2aba")(i,"RegExp",l)}n("7a56")("RegExp")},"3b4a":function(e,t,n){var i=n("0b07"),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},"3f6b":function(e,t,n){"use strict";var i=n("9ee4"),r=n.n(i);r.a},"408c":function(e,t,n){var i=n("2b3e"),r=function(){return i.Date.now()};e.exports=r},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"42a2":function(e,t){var n=Object.prototype,i=n.toString;function r(e){return i.call(e)}e.exports=r},4359:function(e,t){function n(e,t){var n=-1,i=e.length;t||(t=Array(i));while(++n0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4a59":function(e,t,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),u=n("27ee"),l={},c={};t=e.exports=function(e,t,n,f,d){var p,h,m,v,b=d?function(){return e}:u(e),g=i(n,f,t?2:1),y=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(o(b)){for(p=s(e.length);p>y;y++)if(v=t?g(a(h=e[y])[0],h[1]):g(e[y]),v===l||v===c)return v}else for(m=b.call(e);!(h=m.next()).done;)if(v=r(m,g,h.value,t),v===l||v===c)return v};t.BREAK=l,t.RETURN=c},"4b17":function(e,t,n){var i=n("6428");function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}e.exports=r},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},"501e":function(e,t,n){var i=n("3729"),r=n("1310"),o="[object Number]";function a(e){return"number"==typeof e||r(e)&&i(e)==o}e.exports=a},"51f5":function(e,t,n){var i=n("2b03"),r=n("badf"),o=n("4b17"),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),i(e,r(t,3),u)}e.exports=s},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"54eb":function(e,t,n){var i=n("8eeb"),r=n("32f4");function o(e,t){return i(e,r(e),t)}e.exports=o},"551c":function(e,t,n){"use strict";var i,r,o,a,s=n("2d00"),u=n("7726"),l=n("9b43"),c=n("23c6"),f=n("5ca1"),d=n("d3f4"),p=n("d8e8"),h=n("f605"),m=n("4a59"),v=n("ebd6"),b=n("1991").set,g=n("8079")(),y=n("a5b8"),x=n("9c80"),O=n("a25f"),_=n("bcaa"),w="Promise",S=u.TypeError,k=u.process,C=k&&k.versions,T=C&&C.v8||"",j=u[w],M="process"==c(k),I=function(){},$=r=y.f,F=!!function(){try{var e=j.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(I,I)};return(M||"function"==typeof PromiseRejectionEvent)&&e.then(I)instanceof t&&0!==T.indexOf("6.6")&&-1===O.indexOf("Chrome/66")}catch(e){}}(),E=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0;var n=e._c;g(function(){var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(r||(2==e._h&&D(e),e._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===t.promise?l(S("Promise-chain cycle")):(o=E(n))?o.call(n,u,l):u(n)):l(i)}catch(e){c&&!a&&c.exit(),l(e)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)})}},P=function(e){b.call(u,function(){var t,n,i,r=e._v,o=V(e);if(o&&(t=x(function(){M?k.emit("unhandledRejection",r,e):(n=u.onunhandledrejection)?n({promise:e,reason:r}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=M||V(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},V=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){b.call(u,function(){var t;M?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},A=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},L=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=E(e))?g(function(){var i={_w:n,_d:!1};try{t.call(e,l(L,i,1),l(A,i,1))}catch(e){A.call(i,e)}}):(n._v=e,n._s=1,N(n,!1))}catch(e){A.call({_w:n,_d:!1},e)}}};F||(j=function(e){h(this,j,w,"_h"),p(e),i.call(this);try{e(l(L,this,1),l(A,this,1))}catch(e){A.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("dcbc")(j.prototype,{then:function(e,t){var n=$(v(this,j));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=M?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=l(L,e,1),this.reject=l(A,e,1)},y.f=$=function(e){return e===j||e===a?new o(e):r(e)}),f(f.G+f.W+f.F*!F,{Promise:j}),n("7f20")(j,w),n("7a56")(w),a=n("8378")[w],f(f.S+f.F*!F,w,{reject:function(e){var t=$(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!F),w,{resolve:function(e){return _(s&&this===a?j:this,e)}}),f(f.S+f.F*!(F&&n("5cc5")(function(e){j.all(e)["catch"](I)})),w,{all:function(e){var t=this,n=$(t),i=n.resolve,r=n.reject,o=x(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=$(t),i=n.reject,r=x(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},5537:function(e,t,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"574e":function(e,t,n){},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"5b01":function(e,t,n){var i=n("8eeb"),r=n("ec69");function o(e,t){return e&&i(t,r(t),e)}e.exports=o},"5ca0":function(e,t,n){var i=n("badf"),r=n("30c9"),o=n("ec69");function a(e){return function(t,n,a){var s=Object(t);if(!r(t)){var u=i(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[u?t[l]:l]:void 0}}e.exports=a},"5ca1":function(e,t,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,f,d,p,h=e&l.F,m=e&l.G,v=e&l.S,b=e&l.P,g=e&l.B,y=m?i:v?i[t]||(i[t]={}):(i[t]||{})[u],x=m?r:r[t]||(r[t]={}),O=x[u]||(x[u]={});for(c in m&&(n=t),n)f=!h&&y&&void 0!==y[c],d=(f?y:n)[c],p=g&&f?s(d,i):b&&"function"==typeof d?s(Function.call,d):d,y&&a(y,c,d,e&l.U),x[c]!=d&&o(x,c,p),b&&O[c]!=d&&(O[c]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5cc5":function(e,t,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},"5dbc":function(e,t,n){var i=n("d3f4"),r=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(e,o),e}},"5eda":function(e,t,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},"5ff7":function(e,t,n){},"602f":function(e,t,n){"use strict";var i=n("260c"),r=n.n(i);r.a},"613b":function(e,t,n){var i=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return i[e]||(i[e]=r(e))}},6186:function(e,t,n){},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6428:function(e,t,n){var i=n("b4b0"),r=1/0,o=1.7976931348623157e308;function a(e){if(!e)return 0===e?e:0;if(e=i(e),e===r||e===-r){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},"656b":function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},6747:function(e,t){var n=Array.isArray;e.exports=n},6762:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ca":function(e,t,n){var i=n("cb5a");function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}e.exports=r},6821:function(e,t,n){var i=n("626a"),r=n("be13");e.exports=function(e){return i(r(e))}},"697e":function(e,t,n){var i=n("4b17");function r(e){return"number"==typeof e&&e==i(e)}e.exports=r},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d5":function(e,t,n){var i=n("cb5a"),r=Array.prototype,o=r.splice;function a(e){var t=this.__data__,n=i(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"6b54":function(e,t,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],u=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?r.call(e):void 0)}):s.name!=a&&u(function(){return s.call(this)})},"6cd4":function(e,t){function n(e,t){var n=-1,i=null==e?0:e.length;while(++n2?t[2]:void 0;l&&o(t[0],t[1],l)&&(i=1);while(++n0?r(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e69":function(e,t,n){var i=n("2b3e"),r=i.Symbol;e.exports=r},"9e99":function(e,t,n){var i;(function(r){"use strict";var o={},a=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s=/\d\d?/,u=/\d{3}/,l=/\d{4}/,c=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,d=function(){};function p(e,t){for(var n=[],i=0,r=e.length;i3?0:(e-e%10!==10)*e%10]}};var x={D:function(e){return e.getDate()},DD:function(e){return m(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return m(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return String(e.getFullYear()).substr(2)},YYYY:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={D:[s,function(e,t){e.day=t}],Do:[new RegExp(s.source+c.source),function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],YY:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],YYYY:[l,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[u,function(e,t){e.millisecond=t}],d:[s,d],ddd:[c,d],MMM:[c,h("monthNamesShort")],MMMM:[c,h("monthNames")],a:[c,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(e,t){"Z"===t&&(t="+00:00");var n,i=(t+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};O.dd=O.d,O.dddd=O.ddd,O.DD=O.D,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,o.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"},o.format=function(e,t,n){var i=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var r=[];return t=t.replace(f,function(e,t){return r.push(t),"??"}),t=t.replace(a,function(t){return t in x?x[t](e,i):t.slice(1,t.length-1)}),t.replace(/\?\?/g,function(){return r.shift()})},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return!1;var r=!0,s={};if(t.replace(a,function(t){if(O[t]){var n=O[t],o=e.search(n[0]);~o?e.replace(n[0],function(t){return n[1](s,t,i),e=e.substr(o+t.length),t}):r=!1}return O[t]?"":t.slice(1,t.length-1)}),!r)return!1;var u,l=new Date;return!0===s.isPm&&null!=s.hour&&12!==+s.hour?s.hour=+s.hour+12:!1===s.isPm&&12===+s.hour&&(s.hour=0),null!=s.timezoneOffset?(s.minute=+(s.minute||0)-+s.timezoneOffset,u=new Date(Date.UTC(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0))):u=new Date(s.year||l.getFullYear(),s.month||0,s.day||1,s.hour||0,s.minute||0,s.second||0,s.millisecond||0),u},"undefined"!==typeof e&&e.exports?e.exports=o:(i=function(){return o}.call(t,n,t,e),void 0===i||(e.exports=i))})()},"9ee4":function(e,t,n){},a029:function(e,t){function n(){return[]}e.exports=n},a25f:function(e,t,n){var i=n("7726"),r=i.navigator;e.exports=r&&r.userAgent||""},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(i,r){"use strict";var o=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},n]})},a5b8:function(e,t,n){"use strict";var i=n("d8e8");function r(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},a994:function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},aa77:function(e,t,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var r={},s=o(function(){return!!a[e]()||u[e]()!=u}),l=r[e]=s?t(d):a[e];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},d=f.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},aae3:function(e,t,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),l=n("2b4c"),c=l("iterator"),f=l("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=r(p),m=0;m=t||n<0||b&&i>=f}function w(){var e=r();if(_(e))return S(e);p=setTimeout(w,O(e))}function S(e){return p=void 0,g&&l?y(e):(l=c=void 0,d)}function k(){void 0!==p&&clearTimeout(p),m=0,l=h=c=p=void 0}function C(){return void 0===p?d:S(r())}function T(){var e=r(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return x(h);if(b)return p=setTimeout(w,t),y(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=o(t)||0,i(n)&&(v=!!n.leading,b="maxWait"in n,f=b?s(o(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),T.cancel=k,T.flush=C,T}e.exports=l},b218:function(e,t){var n=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=i},b4b0:function(e,t,n){var i=n("1a8c"),r=n("ffd6"),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(r(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?o:+e}e.exports=f},b4c0:function(e,t,n){var i=n("cb5a");function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}e.exports=r},b72b:function(e,t,n){"use strict";var i=n("b828"),r=n.n(i);r.a},b7fb:function(e,t,n){"use strict";var i=n("74d5"),r=n.n(i);r.a},b828:function(e,t,n){},b8ce:function(e,t,n){var i=n("3818"),r=4;function o(e){return i(e,r)}e.exports=o},badf:function(e,t){function n(e){return e}e.exports=n},bcaa:function(e,t,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bf23:function(e,t,n){"use strict";var i=n("77cf"),r=n.n(i);r.a},bfd2:function(e,t,n){"use strict";var i=n("e279"),r=n.n(i);r.a},c098:function(e,t){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t=null==t?n:t,!!t&&("number"==r||"symbol"!=r&&i.test(e))&&e>-1&&e%1==0&&ec)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c495:function(e,t,n){"use strict";var i=n("574e"),r=n.n(i);r.a},c5f6:function(e,t,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),u=n("79e5"),l=n("9093").f,c=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=i[p],m=h,v=h.prototype,b=o(n("2aeb")(v))==p,g="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=g?t.trim():d(t,3);var n,i,r,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var a,u=t.slice(2),l=0,c=u.length;lr)return NaN;return parseInt(u,i)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(b?u(function(){v.valueOf.call(n)}):o(n)!=p)?a(new m(y(t)),n,h):y(t)};for(var x,O=n("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;O.length>_;_++)r(m,x=O[_])&&!r(h,x)&&f(h,x,c(m,x));h.prototype=v,v.constructor=h,n("2aba")(i,p,h)}},c641:function(e,t){function n(e,t){var n=-1,i=null==e?0:e.length;while(++n=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb5a:function(e,t,n){var i=n("9638");function r(e,t){var n=e.length;while(n--)if(i(e[n][0],t))return n;return-1}e.exports=r},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},cc45:function(e,t){function n(){return!1}e.exports=n},cd9d:function(e,t){function n(e){return e}e.exports=n},ce10:function(e,t,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);while(t.length>u)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},ce86:function(e,t,n){var i=n("9e69"),r=n("7948"),o=n("6747"),a=n("ffd6"),s=1/0,u=i?i.prototype:void 0,l=u?u.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return r(e,c)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=c},d302:function(e,t,n){},d370:function(e,t){function n(){return!1}e.exports=n},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d474:function(e,t,n){"use strict";var i=n("7375"),r=n.n(i);r.a},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d7ee:function(e,t){function n(){return!1}e.exports=n},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dcbc:function(e,t,n){var i=n("2aba");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e0bf:function(e,t,n){"use strict";var i=n("76c3"),r=n.n(i);r.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(e,t,n){},e2a0:function(e,t,n){var i=n("3729"),r=n("6747"),o=n("1310"),a="[object String]";function s(e){return"string"==typeof e||!r(e)&&o(e)&&i(e)==a}e.exports=s},e2e4:function(e,t,n){var i=n("6747");function r(){if(!arguments.length)return[];var e=arguments[0];return i(e)?e:[e]}e.exports=r},e538:function(e,t,n){(function(e){var i=n("2b3e"),r="object"==typeof t&&t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===r,s=a?i.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(e,t){if(t)return e.slice();var n=e.length,i=u?u(n):new e.constructor(n);return e.copy(i),i}e.exports=l}).call(this,n("62e4")(e))},eac5:function(e,t){function n(){return!1}e.exports=n},eb5d:function(e,t,n){"use strict";var i=n("5ff7"),r=n.n(i);r.a},ebd6:function(e,t,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},ec69:function(e,t,n){var i=n("91e9"),r=i(Object.keys,Object);e.exports=r},f4d6:function(e,t,n){var i=n("ffd6"),r=1/0;function o(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}e.exports=o},f605:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},fa21:function(e,t,n){var i=n("7530"),r=n("2dcb"),o=n("eac5");function a(e){return"function"!=typeof e.constructor||o(e)?{}:i(r(e))}e.exports=a},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"createDefaultObject",function(){return B}),n.d(i,"getMultipleFields",function(){return R}),n.d(i,"mergeMultiObjectFields",function(){return Y}),n.d(i,"slugifyFormID",function(){return H}),n.d(i,"slugify",function(){return U});var r,o={};(n.r(o),n.d(o,"fieldCheckbox",function(){return Ce}),n.d(o,"fieldChecklist",function(){return Ne}),n.d(o,"fieldInput",function(){return Re}),n.d(o,"fieldLabel",function(){return Ge}),n.d(o,"fieldRadios",function(){return Qe}),n.d(o,"fieldSelect",function(){return st}),n.d(o,"fieldSubmit",function(){return mt}),n.d(o,"fieldTextArea",function(){return Ot}),n.d(o,"fieldUpload",function(){return Tt}),n.d(o,"fieldCleave",function(){return Et}),n.d(o,"fieldDateTimePicker",function(){return Yt}),n.d(o,"fieldGoogleAddress",function(){return Zt}),n.d(o,"fieldImage",function(){return en}),n.d(o,"fieldMasked",function(){return sn}),n.d(o,"fieldNoUiSlider",function(){return pn}),n.d(o,"fieldPikaday",function(){return yn}),n.d(o,"fieldRangeSlider",function(){return Mn}),n.d(o,"fieldSelectEx",function(){return Pn}),n.d(o,"fieldSpectrum",function(){return Rn}),n.d(o,"fieldStaticMap",function(){return Gn}),n.d(o,"fieldSwitch",function(){return Qn}),n.d(o,"fieldVueMultiSelect",function(){return oi}),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));n("7f7f"),n("ac6a");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return null!=e.schema?n("div",{staticClass:"vue-form-generator"},[n("form-group",{attrs:{tag:e.tag,fields:e.fields,model:e.model,options:e.options,errors:e.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"element",fn:function(t){return[n("form-element",{attrs:{field:t.field,model:t.model,options:t.options,errors:t.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"label",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("label",[n("span",{domProps:{innerHTML:e._s(i.label)}})],{field:i,getValueFromOption:r})]}},{key:"help",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("help",[i.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:e._s(i.help)}})]):e._e()],{field:i,getValueFromOption:r})]}},{key:"hint",fn:function(t){var i=t.field,r=t.getValueFromOption;return[e._t("hint",[n("div",{staticClass:"hint",domProps:{innerHTML:e._s(r(i,"hint",void 0))}})],{field:i,getValueFromOption:r})]}},{key:"errors",fn:function(t){var i=t.childErrors,r=t.field,o=t.getValueFromOption;return[e._t("errors",[n("div",{staticClass:"errors help-block"},e._l(i,function(t,i){return n("span",{key:i,domProps:{innerHTML:e._s(t)}})}))],{errors:i,field:r,getValueFromOption:o})]}}])})]}}])})],1):e._e()},s=[],u=(n("551c"),n("6747")),l=n.n(u),c=n("9b02"),f=n.n(c),d=n("8bbf"),p=n.n(d),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.fields?n(e.tag,{ref:"group",tag:"fieldset",class:[e.groupRowClasses,e.validationClass]},[e.groupLegend?n("legend",[e._v(e._s(e.groupLegend))]):e._e(),e._l(e.fields,function(t,i){return[e.fieldVisible(t)?["group"===t.type?[n("form-group",{key:i,attrs:{fields:t.fields,group:t,tag:e.getGroupTag(t),model:e.model,options:e.options,errors:e.errors,"event-bus":e.eventBus},scopedSlots:e._u([{key:"element",fn:function(t){return[e._t("element",null,{field:t.field,model:t.model,options:t.options,errors:t.errors,eventBus:t.eventBus})]}}])})]:[e._t("element",null,{field:t,model:e.model,options:e.options,errors:e.errors,eventBus:e.eventBus})]]:e._e()]})],2):e._e()},m=[];function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=n("2768"),g=n.n(b),y=n("9520"),x=n.n(y),O=n("e2a0"),_=n.n(O),w={methods:{getStyleClasses:function(e,t){var n=e.styleClasses;return l()(n)?n.forEach(function(e){t[e]=!0}):_()(n)&&(t[n]=!0),t}}},S={name:"form-group",mixins:[w],props:{fields:{type:Array,default:function(){return[]}},group:{type:Object,default:function(){return{}}},tag:{type:String,default:"fieldset",validator:function(e){return e.length>0}},model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},errors:{type:Array,default:function(){return[]}},eventBus:{type:Object,default:function(){return{}}}},data:function(){return{validationClass:{}}},computed:{groupLegend:function(){if(this.group&&this.group.legend)return this.group.legend},groupRowClasses:function(){var e={"field-group":!0};return g()(this.group)||(e=this.getStyleClasses(this.group,e)),e}},methods:{fieldVisible:function(e){return x()(e.visible)?e.visible.call(this,this.model,e,this):!!g()(e.visible)||e.visible},getGroupTag:function(e){return g()(e.tag)?this.tag:e.tag}},created:function(){var e=this;this.eventBus.$on("field-validated",function(){e.$nextTick(function(){var t,n=null!==e.$refs.group.querySelector(".form-element.error");e.validationClass=(t={},v(t,f()(e.options,"validationErrorClass","error"),n),v(t,f()(e.options,"validationSuccessClass","valid"),!n),t)})})}},k=S;function C(e,t,n,i,r,o,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):r&&(u=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}var T=C(k,h,m,!1,null,null,null);T.options.__file="formGroup.vue";var j=T.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-element",class:[e.fieldRowClasses]},[e.fieldTypeHasLabel?n("label",{class:e.field.labelClasses,attrs:{for:e.fieldID}},[e._t("label",null,{field:e.field,getValueFromOption:e.getValueFromOption}),e._t("help",null,{field:e.field,getValueFromOption:e.getValueFromOption})],2):e._e(),n("div",{staticClass:"field-wrap"},[n(e.fieldType,{ref:"child",tag:"component",attrs:{model:e.model,schema:e.field,"form-options":e.options,"event-bus":e.eventBus,"field-id":e.fieldID},on:{"field-touched":e.onFieldTouched,"errors-updated":e.onChildValidated}}),e.buttonsAreVisible?n("div",{staticClass:"buttons"},e._l(e.field.buttons,function(t,i){return n("button",{key:i,class:t.classes,domProps:{textContent:e._s(t.label)},on:{click:function(n){e.buttonClickHandler(t,e.field,n)}}})})):e._e()],1),e.fieldHasHint?[e._t("hint",null,{field:e.field,getValueFromOption:e.getValueFromOption})]:e._e(),e.fieldHasErrors?[e._t("errors",null,{childErrors:e.childErrors,field:e.field,getValueFromOption:e.getValueFromOption})]:e._e()],2)},I=[],F=(n("6762"),n("6b54"),n("a481"),n("0644")),E=n.n(F),N=n("1a8c"),P=n.n(N),V=n("c641"),D=n.n(V),A=n("0f5c"),L=n.n(A),B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return D()(e.fields,function(n){void 0===f()(t,n.model)&&void 0!==n.default&&(x()(n.default)?L()(t,n.model,n.default(n,e,t)):P()(n.default)||l()(n.default)?L()(t,n.model,E()(n.default)):L()(t,n.model,n.default))}),t},R=function(e){var t=[];return D()(e.fields,function(e){!0===e.multi&&t.push(e)}),t},Y=function(e,t){var n={},i=R(e);return D()(i,function(e){var i,r=!0,o=e.model;D()(t,function(e){var t=f()(e,o);r?(i=t,r=!1):i!==t&&(i=void 0)}),L()(n,o,i)}),n},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return g()(e.id)?t+(e.inputName||e.label||e.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,""):t+e.id},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_/./:]+)/g,"")},q={name:"form-element",mixins:[w],props:{model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}},eventBus:{type:Object,default:function(){return{}}}},data:function(){return{childErrors:[],childTouched:!1}},computed:{fieldID:function(){var e=f()(this.options,"fieldIdPrefix","");return H(this.field,e)},fieldType:function(){return"field-"+this.field.type},fieldTypeHasLabel:function(){if(g()(this.field.label))return!1;var e=this.getValueFromOption(this.field,"fieldOptions"),t="input"===this.field.type&&!g()(e),n=t?e.inputType:this.field.type,i=["button","submit","reset"];return!i.includes(n)},fieldHasHint:function(){return!g()(this.field.hint)},fieldHasErrors:function(){return this.childErrors.length>0},fieldRowClasses:function(){var e,t=(e={},v(e,f()(this.options,"validationErrorClass","error"),this.fieldHasErrors),v(e,f()(this.options,"validationSuccessClass","valid"),!this.fieldHasErrors&&this.childTouched),v(e,f()(this.options,"validationCleanClass","clean"),!this.fieldHasErrors&&!this.childTouched),v(e,"disabled",this.getValueFromOption(this.field,"disabled")),v(e,"readonly",this.getValueFromOption(this.field,"readonly")),v(e,"featured",this.getValueFromOption(this.field,"featured")),v(e,"required",this.getValueFromOption(this.field,"required")),e);return t=this.getStyleClasses(this.field,t),g()(this.field.type)||(t["field-"+this.field.type]=!0),t},buttonsAreVisible:function(){return l()(this.field.buttons)&&this.field.buttons.length>0}},methods:{getValueFromOption:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x()(e[t])?e[t].call(this,this.model,e,this):g()(e[t])?n:e[t]},buttonClickHandler:function(e,t,n){return e.onclick.call(this,this.model,t,n,this)},onFieldTouched:function(){this.childTouched=!0},onChildValidated:function(e){this.childErrors=e}}},z=q,G=(n("b7fb"),C(z,M,I,!1,null,null,null));G.options.__file="formElement.vue";var Z=G.exports,W={name:"form-generator",components:{formGroup:j,formElement:Z},props:{schema:{type:Object,default:function(){return{}}},model:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAsync:!1,validateAfterChanged:!1,validationErrorClass:"error",validationSuccessClass:""}}},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(e){return e.length>0}}},data:function(){var e=new p.a;return{eventBus:e,totalNumberOfFields:0,errors:[]}},computed:{fields:function(){if(this.schema&&this.schema.fields)return this.schema.fields}},watch:{model:{handler:function(e,t){var n=this;t!==e&&null!=e&&this.$nextTick(function(){!0===n.options.validateAfterLoad&&!0!==n.isNewModel?n.validate().then(function(){},function(){}):n.clearValidationErrors()})},immediate:function(){return!0}}},methods:{fillErrors:function(e,t,n){l()(e)&&e.length>0&&e.forEach(function(e){t.push({uid:n,error:e})})},onFieldValidated:function(e,t,n){this.errors=this.errors.filter(function(e){return e.uid!==n}),this.fillErrors(t,this.errors,n);var i=0===this.errors.length;this.$emit("validated",i,this.errors,this)},onModelUpdated:function(e,t){this.$emit("model-updated",e,t)},validate:function(){var e=this;return new Promise(function(t,n){e.clearValidationErrors();var i=0,r=[];e.eventBus.$on("field-deregistering",function(){e.eventBus.$emit("fields-validation-terminated",r),n(r)});var o=function o(a,s,u){if(i++,e.fillErrors(s,r,u),i===e.totalNumberOfFields){e.eventBus.$off("field-validated",o),f()(e.options,"validateAfterChanged",!1)&&e.eventBus.$on("field-validated",e.onFieldValidated),e.errors=r;var l=0===r.length;e.$emit("validated",l,r,e),e.eventBus.$emit("fields-validation-terminated",r),l?t():n(r)}};f()(e.options,"validateAfterChanged",!1)&&e.eventBus.$off("field-validated",e.onFieldValidated),e.eventBus.$on("field-validated",o),e.eventBus.$emit("validate-fields",e)})},clearValidationErrors:function(){this.errors.splice(0),this.eventBus.$emit("clear-validation-errors",this.clearValidationErrors)}},created:function(){var e=this;f()(this.options,"validateAfterChanged",!1)&&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(){e.totalNumberOfFields=e.totalNumberOfFields+1}),this.eventBus.$on("field-deregistering",function(){e.totalNumberOfFields=e.totalNumberOfFields-1})},beforeDestroy:function(){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")}},X=W,J=(n("bfd2"),C(X,a,s,!1,null,null,null));J.options.__file="formGenerator.vue";var K=J.exports,Q=(n("cadf"),n("456d"),n("3b2b"),n("697e")),ee=n.n(Q),te=n("501e"),ne=n.n(te),ie=n("95ae"),re=n.n(ie),oe=n("9e99"),ae=n.n(oe),se={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 ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se;return g()(e)||""===e?t?[le(n.fieldIsRequired)]:[]:null}function le(e){if(null!=e&&arguments.length>1)for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:se;return ue(e,t.required,i)},number:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=[];return ne()(e)?(!g()(t.fieldOptions)&&!g()(t.fieldOptions.min)&&et.fieldOptions.max&&o.push(le(i.numberTooBig,t.fieldOptions.max))):o.push(le(i.invalidNumber)),o},integer:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=ce.number(e,t,n,i);return ee()(e)||o.push(le(i.invalidInteger)),o},double:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);return null!=r?r:!ne()(e)||isNaN(e)?[le(i.invalidNumber)]:void 0},string:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=[];return _()(e)?(!g()(t.fieldOptions.min)&&e.lengtht.fieldOptions.max&&o.push(le(i.textTooBig,e.length,t.fieldOptions.max))):o.push(le(i.thisNotText)),o},array:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se;if(t.required){if(!l()(e))return[le(i.thisNotArray)];if(0===e.length)return[le(i.fieldIsRequired)]}if(!g()(e)){if(!g()(t.fieldOptions.min)&&e.lengtht.fieldOptions.max)return[le(i.selectMaxItems,t.fieldOptions.max)]}},date:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=new Date(e);if(!o)return[le(i.invalidDate)];var a=[];if(!g()(t.fieldOptions.min)){var s=new Date(t.fieldOptions.min);o.valueOf()u.valueOf()&&a.push(le(i.dateIsLate,ae.a.format(o),ae.a.format(u)))}return a},regexp:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;if(!g()(t.pattern)){var o=new RegExp(t.pattern);if(!o.test(e))return[le(i.invalidFormat)]}},email:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^(([^<>()\[\]\\.,;:\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,}))$/;return o.test(e)?void 0:[le(i.invalidEmail)]},url:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;return o.test(e)?void 0:[le(i.invalidURL)]},creditCard:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^(?: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})$/,a=e.replace(/[^0-9]+/g,"");if(!o.test(a))return[le(i.invalidCard)];for(var s,u,l,c=0,f=a.length-1;f>=0;f--)s=a.substring(f,f+1),u=parseInt(s,10),l?(u*=2,c+=u>=10?u%10+1:u):c+=u,l=!l;return c%10===0&&a?void 0:[le(i.invalidCardNumber)]},alpha:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^[a-zA-Z]*$/;return o.test(e)?void 0:[le(i.invalidTextContainNumber)]},alphaNumeric:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:se,r=ue(e,t.required,i);if(null!=r)return r;var o=/^[a-zA-Z0-9]*$/;return o.test(e)?void 0:[le(i.invalidTextContainSpec)]}};Object.keys(ce).forEach(function(e){var t=ce[e];x()(t)&&(t.locale=function(e){return function(n,i,r){return t(n,i,r,re()(e,se))}})});var fe=ce,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"checkbox",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,name:e.inputName},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=r}}})},pe=[],he=(n("28a5"),n("98dc")),me=n.n(he),ve=n("b047"),be=n.n(ve),ge=n("6cd4"),ye=n.n(ge),xe=function(e){return _()(e)?null!=fe[e]?fe[e]:(console.warn("'".concat(e,"' is not a validator function!")),null):e};function Oe(e,t,n){var i=f()(n.context,"schema.attributes",{}),r=t.value||"input";_()(r)&&(i=f()(i,r)||i),ye()(i,function(t,n){e.setAttribute(n,t)})}var _e={props:{model:{type:Object},schema:{type:Object},formOptions:{type:Object},eventBus:{type:Object},fieldID:{type:String}},data:function(){var e=me()(this.fieldID+"_");return{fieldUID:e,touched:!1,errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:Oe,updated:Oe,componentUpdated:Oe}},computed:{value:{cache:!1,get:function(){var e;return e=x()(f()(this.schema,"get"))?this.schema.get(this.model):f()(this.model,this.schema.model),this.formatValueToField(e)},set:function(e){this.touch();var t=this.value;e=this.formatValueToModel(e),x()(e)?e(e,t):this.updateModelValue(e,t)}},disabled:function(){return this.getValueFromOption(this.schema,"disabled")},fieldClasses:function(){return this.getValueFromOption(this.schema,"fieldClasses",[])},fieldOptions:function(){return this.getValueFromOption(this.schema,"fieldOptions",{})},inputName:function(){return this.getValueFromOption(this.schema,"inputName","")},placeholder:function(){return this.getValueFromOption(this.schema,"placeholder","")},readonly:function(){return this.getValueFromOption(this.schema,"readonly")},required:function(){return this.getValueFromOption(this.schema,"required")},values:function(){return this.getValueFromOption(this.schema,"values",[])}},watch:{errors:{handler:function(e){this.$emit("errors-updated",e)}}},methods:{getValueFromOption:function(e,t,n){return x()(this.$parent.getValueFromOption)?this.$parent.getValueFromOption(e,t,n):g()(e[t])?n:e[t]},validate:function(){var e=this;this.touch(),this.clearValidationErrors();var t=f()(this.formOptions,"validateAsync",!1),n=[];if(this.schema.validator&&!0!==this.readonly&&!0!==this.schema.readonly&&!0!==this.disabled){var i=[];l()(this.schema.validator)?this.schema.validator.forEach(function(t){i.push(xe(t).bind(e))}):i.push(xe(this.schema.validator).bind(this)),i.forEach(function(i){if(t)n.push(i(e.value,e.schema,e.model));else{var r=i(e.value,e.schema,e.model);r&&x()(r.then)?r.then(function(t){t&&(e.errors=e.errors.concat(t))}):r&&(n=n.concat(r))}})}var r=function(t){var n=[];t.forEach(function(e){l()(e)&&e.length>0?n=n.concat(e):_()(e)&&n.push(e)}),x()(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,n,e.schema);var i=0===n.length;return e.errors=n,e.eventBus.$emit("field-validated",i,n,e.fieldUID),n};return t?Promise.all(n).then(r).catch(function(e){console.warn("Problem during field validation",e)}):r(n)},debouncedValidate:function(){x()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=be()(this.validate.bind(this),f()(this.formOptions,"validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(e,t){var n=!1;x()(this.schema.set)?(this.schema.set(this.model,e),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,e),n=!0),n&&(this.eventBus.$emit("model-updated",e,this.schema.model),x()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,e,t,this.schema),f()(this.formOptions,"validateAfterChanged",!1)&&(f()(this.formOptions,"validateDebounceTime",500)>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(e,t){var n=e.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");var i=this.model,r=n.split("."),o=0,a=r.length;while(o0&&console.log("diff",i,this.schema.type,this.schema.model)}},beforeDestroy:function(){this.eventBus.$off("clear-validation-errors"),this.eventBus.$off("validate-fields"),this.eventBus.$emit("field-deregistering",this)}},we={name:"field-checkbox",mixins:[_e]},Se=we,ke=(n("c495"),C(Se,de,pe,!1,null,null,null));ke.options.__file="fieldCheckbox.vue";var Ce=ke.exports,Te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[e.useListBox?n("div",{staticClass:"listbox form-control",attrs:{disabled:e.disabled}},e._l(e.items,function(t){return n("div",{key:e.getItemValue(t),staticClass:"list-row",class:{"is-checked":e.isItemChecked(t)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:e.fieldID,type:"checkbox",disabled:e.disabled,name:e.getInputName(t)},domProps:{checked:e.isItemChecked(t)},on:{change:function(n){e.onChanged(n,t)}}}),e._v(e._s(e.getItemName(t))+"\n\t\t\t")])])})):e._e(),e.useListBox?e._e():n("div",{staticClass:"combobox form-control",attrs:{disabled:e.disabled}},[n("div",{staticClass:"mainRow",class:{expanded:e.comboExpanded},on:{click:e.onExpandCombo}},[n("div",{staticClass:"info"},[e._v(" "+e._s(e.selectedCount)+" selected")]),n("div",{staticClass:"arrow"})]),n("div",{staticClass:"dropList"},e._l(e.items,function(t){return e.comboExpanded?n("div",{key:e.getItemValue(t),staticClass:"list-row",class:{"is-checked":e.isItemChecked(t)}},[n("label",[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:e.fieldID,type:"checkbox",disabled:e.disabled,name:e.getInputName(t)},domProps:{checked:e.isItemChecked(t)},on:{change:function(n){e.onChanged(n,t)}}}),e._v("\n\t\t\t\t\t"+e._s(e.getItemName(t))+"\n\t\t\t\t")])]):e._e()}))])])},je=[],Me=n("b8ce"),Ie=n.n(Me),$e={name:"field-checklist",mixins:[_e],data:function(){return{comboExpanded:!1}},computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},selectedCount:function(){return this.value?this.value.length:0},useListBox:function(){return this.fieldOptions.listBox}},methods:{getInputName:function(e){return this.inputName&&this.inputName.length>0?U(this.inputName+"_"+this.getItemValue(e)):U(this.getItemValue(e))},getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["value"])return e.value;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e},isItemChecked:function(e){return this.value&&-1!==this.value.indexOf(this.getItemValue(e))},onChanged:function(e,t){var n=e.target.checked;if(!g()(this.value)&&Array.isArray(this.value)||(this.value=[]),n){var i=Ie()(this.value);i.push(this.getItemValue(t)),this.value=i}else{var r=Ie()(this.value);r.splice(this.value.indexOf(this.getItemValue(t)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}},Fe=$e,Ee=(n("3f6b"),C(Fe,Te,je,!1,null,null,null));Ee.options.__file="fieldChecklist.vue";var Ne=Ee.exports,Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{id:e.fieldID,type:e.inputType,disabled:e.disabled,accept:e.fieldOptions.accept,alt:e.fieldOptions.alt,autocomplete:e.fieldOptions.autocomplete,dirname:e.fieldOptions.dirname,formaction:e.fieldOptions.formaction,formenctype:e.fieldOptions.formenctype,formmethod:e.fieldOptions.formmethod,formnovalidate:e.fieldOptions.formnovalidate,formtarget:e.fieldOptions.formtarget,height:e.fieldOptions.height,list:e.fieldOptions.list,max:e.fieldOptions.max,maxlength:e.fieldOptions.maxlength,min:e.fieldOptions.min,minlength:e.fieldOptions.minlength,multiple:e.fieldOptions.multiple,name:e.inputName,pattern:e.fieldOptions.pattern,placeholder:e.placeholder,readonly:e.readonly,required:e.schema.required,size:e.fieldOptions.size,src:e.fieldOptions.src,step:e.fieldOptions.step,width:e.fieldOptions.width,files:e.fieldOptions.files},domProps:{value:e.value,checked:e.fieldOptions.checked},on:{input:e.onInput,blur:e.onBlur,change:function(t){e.schema.onChange}}}),"color"===e.inputType||"range"===e.inputType?n("span",{staticClass:"helper",domProps:{textContent:e._s(e.value)}}):e._e()])},Ve=[],De={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"},Ae={name:"field-input",mixins:[_e],computed:{inputType:function(){if("undefined"!==typeof this.fieldOptions.inputType)return this.fieldOptions.inputType.toLowerCase();console.warn("Missing inputType",this.fieldOptions,this.fieldOptions.inputType)}},methods:{formatValueToModel:function(e){var t=this;if(null!=e)switch(this.inputType){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,i){t.debouncedFormatFunc(e,i)}}return e},formatDatetimeToModel:function(e,t){var n=De[this.inputType],i=ae.a.parse(e,n);!1!==i&&(e=this.schema.format?ae.a.format(i,this.schema.format):i.valueOf()),this.updateModelValue(e,t)},formatNumberToModel:function(e,t){ne()(e)||(e=NaN),this.updateModelValue(e,t)},onInput:function(e){var t=e.target.value;switch(this.inputType){case"number":case"range":ne()(parseFloat(e.target.value))&&(t=parseFloat(e.target.value));break}this.value=t},onBlur:function(){x()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var e=this;switch(this.inputType){case"number":case"range":this.debouncedFormatFunc=be()(function(t,n){e.formatNumberToModel(t,n)},parseInt(f()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=be()(function(t,n){e.formatDatetimeToModel(t,n)},parseInt(f()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break}},created:function(){"file"===this.inputType&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}},Le=Ae,Be=(n("8a23"),C(Le,Pe,Ve,!1,null,null,null));Be.options.__file="fieldInput.vue";var Re=Be.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],class:e.fieldClasses,attrs:{id:e.fieldID},domProps:{textContent:e._s(e.value)}})},He=[],Ue={name:"field-label",mixins:[_e]},qe=Ue,ze=(n("b72b"),C(qe,Ye,He,!1,null,null,null));ze.options.__file="fieldLabel.vue";var Ge=ze.exports,Ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"radio-list",attrs:{disabled:e.disabled}},e._l(e.items,function(t){return n("label",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],key:e.getItemValue(t),class:{"is-checked":e.isItemChecked(t)}},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"radio",disabled:e.disabled,name:e.id},domProps:{value:e.getItemValue(t),checked:e.isItemChecked(t)},on:{click:function(n){e.onSelection(t)}}}),e._v(e._s(e.getItemName(t))+"\n\t")])}))},We=[],Xe={name:"field-radios",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},id:function(){return this.schema.model}},methods:{getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["value"])return e.value;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e},onSelection:function(e){this.value=this.getItemValue(e)},isItemChecked:function(e){var t=this.getItemValue(e);return t===this.value}}},Je=Xe,Ke=(n("602f"),C(Je,Ze,We,!1,null,null,null));Ke.options.__file="fieldRadios.vue";var Qe=Ke.exports,et=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{disabled:e.disabled,name:e.inputName,id:e.fieldID},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},[e.fieldOptions.hideNoneSelectedText?e._e():n("option",{attrs:{disabled:e.schema.required},domProps:{value:null}},[e._v(" "+e._s(e.fieldOptions.noneSelectedText||"")+"\n\t")]),e._l(e.items,function(t){return[t.group?n("optgroup",{key:e.getItemValue(t),attrs:{label:e.getGroupName(t)}},e._l(t.ops,function(i){return t.ops?n("option",{key:e.getItemValue(i),domProps:{value:e.getItemValue(i)}},[e._v(" "+e._s(e.getItemName(i)))]):e._e()})):e._e(),t.group?e._e():n("option",{key:e.getItemValue(t),domProps:{value:e.getItemValue(t)}},[e._v(" "+e._s(e.getItemName(t)))])]})],2)},tt=[],nt=n("2769"),it=n.n(nt),rt={name:"field-select",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?this.groupValues(e.apply(this,[this.model,this.schema])):this.groupValues(e)}},methods:{formatValueToField:function(e){return g()(e)?null:e},groupValues:function(e){var t=[],n={};return e.forEach(function(e){n=null,e.group&&P()(e)?(n=it()(t,function(t){return t.group===e.group}),n?n.ops.push({id:e.id,name:e.name}):(n={group:"",ops:[]},n.group=e.group,n.ops.push({id:e.id,name:e.name}),t.push(n))):t.push(e)}),t},getGroupName:function(e){if(e&&e.group)return e.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["id"])return e.id;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e}}},ot=rt,at=C(ot,et,tt,!1,null,null,null);at.options.__file="fieldSelect.vue";var st=at.exports,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:e.fieldClasses,attrs:{id:e.fieldID,type:"submit",name:e.inputName,disabled:e.disabled},domProps:{value:e.fieldOptions.buttonText},on:{click:e.onClick}})},lt=[],ct=n("13ea"),ft=n.n(ct),dt={name:"field-submit",mixins:[_e],methods:{onClick:function(e){var t=this;!0===this.fieldOptions.validateBeforeSubmit?(e.preventDefault(),this.eventBus.$emit("fields-validation-trigger"),this.eventBus.$on("fields-validation-terminated",function(n){!ft()(n)&&x()(t.fieldOptions.onValidationError)?t.fieldOptions.onValidationError(t.model,t.schema,n,e):x()(t.fieldOptions.onSubmit)&&t.fieldOptions.onSubmit(t.model,t.schema,e)})):x()(this.fieldOptions.onSubmit)&&this.fieldOptions.onSubmit(this.model,this.schema,e)}}},pt=dt,ht=(n("eb5d"),C(pt,ut,lt,!1,null,null,null));ht.options.__file="fieldSubmit.vue";var mt=ht.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:e.fieldClasses,attrs:{id:e.fieldID,disabled:e.disabled,maxlength:e.fieldOptions.max,minlength:e.fieldOptions.min,placeholder:e.placeholder,readonly:e.readonly,rows:e.fieldOptions.rows||2,name:e.inputName},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},bt=[],gt={name:"field-textArea",mixins:[_e]},yt=gt,xt=C(yt,vt,bt,!1,null,null,null);xt.options.__file="fieldTextArea.vue";var Ot=xt.exports,_t=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",attrs:{id:e.fieldID,type:"file",name:e.inputName,accept:e.fieldOptions.accept,multiple:e.fieldOptions.multiple,placeholder:e.placeholder,readonly:e.readonly,required:e.schema.required,disabled:e.disabled},on:{change:e.onChange}})])},wt=[],St={name:"field-upload",mixins:[_e],methods:{onChange:function(e){x()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,e,this)}}},kt=St,Ct=(n("b018"),C(kt,_t,wt,!1,null,null,null));Ct.options.__file="fieldUpload.vue";var Tt=Ct.exports,jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value}})},Mt=[],It={name:"field-cleave",mixins:[_e],data:function(){return{cleave:null}},mounted:function(){this.$nextTick(function(){var e=this;window.Cleave?(this.cleave=new window.Cleave(this.$el,re()(this.fieldOptions,{creditCard:!1,phone:!1,phoneRegionCode:"AU",date:!1,datePattern:["d","m","Y"],numeral:!1,numeralThousandsGroupStyle:"thousand",numeralDecimalScale:2,numeralDecimalMark:".",blocks:[],delimiter:" ",prefix:null,numericOnly:!1,uppercase:!1,lowercase:!1,maxLength:0})),this.cleave.properties&&this.cleave.properties.hasOwnProperty("result")?this.$watch("cleave.properties.result",function(){e.value=e.cleave.properties.result}):this.$el.addEventListener("input",this.inputChange)):console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!")})},methods:{inputChange:function(){this.value=this.$el.value}},beforeDestroy:function(){this.cleave&&(this.cleave.destroy(),this.$el.removeEventListener("input",this.inputChange))}},$t=It,Ft=C($t,jt,Mt,!1,null,null,null);Ft.options.__file="fieldCleave.vue";var Et=Ft.exports,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"input-group date"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),e._m(0)])},Pt=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"input-group-addon"},[n("span",{staticClass:"glyphicon glyphicon-calendar"})])}];function Vt(e){for(var t=1;t":this.value},set:function(e){e&&0===e.indexOf("http")&&(this.value=e)}}},watch:{model:function(){var e=this.$el.querySelector("input.file");e&&(e.value="")}},methods:{remove:function(){this.value=""},fileChanged:function(e){var t=this,n=new FileReader;n.onload=function(e){t.value=e.target.result},e.target.files&&e.target.files.length>0&&n.readAsDataURL(e.target.files[0])}}},Kt=Jt,Qt=(n("2d36"),C(Kt,Wt,Xt,!1,null,null,null));Qt.options.__file="fieldImage.vue";var en=Qt.exports,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},nn=[],rn={name:"field-masked",mixins:[_e],mounted:function(){this.$nextTick(function(){window.$&&window.$.fn.mask?$(this.$el).unmask().mask(this.fieldOptions.mask,this.fieldOptions.maskOptions):console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!")})},beforeDestroy:function(){window.$&&window.$.fn.mask&&$(this.$el).unmask()}},on=rn,an=C(on,tn,nn,!1,null,null,null);an.options.__file="fieldMasked.vue";var sn=an.exports,un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"slider",class:{"contain-pips":e.containPips,"contain-tooltip":e.containTooltip},attrs:{disabled:e.disabled}})},ln=[],cn=(n("c5f6"),{name:"field-noUiSlider",mixins:[_e],data:function(){return{slider:null}},watch:{model:function(){window.noUiSlider&&this.slider&&this.slider.noUiSlider&&this.slider.noUiSlider.set(this.value)}},computed:{containPips:function(){return"undefined"!==typeof this.fieldOptions.pips},containTooltip:function(){return"undefined"!==typeof this.fieldOptions.tooltips}},methods:{onChange:function(e){l()(e)?this.value=[parseFloat(e[0]),parseFloat(e[1])]:this.value=parseFloat(e)},formatValueToField:function(e){null!==this.slider&&"undefined"!==typeof this.slider.noUiSlider&&this.slider.noUiSlider.set(e)},formatValueToModel:function(e){if("undefined"!==typeof this.slider.noUiSlider)return e instanceof Array?[Number(e[0]),Number(e[1])]:Number(e)},getStartValue:function(){return null!=this.value?this.value:"undefined"!==typeof this.fieldOptions.double?[this.fieldOptions.min,this.fieldOptions.min]:this.fieldOptions.min}},mounted:function(){var e=this;this.$nextTick(function(){window.noUiSlider?(e.slider=e.$el,window.noUiSlider.create(e.slider,re()(e.fieldOptions||{},{start:e.getStartValue(),range:{min:e.fieldOptions.min,max:e.fieldOptions.max}})),e.slider.noUiSlider.on("change",e.onChange.bind(e))):console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.noUiSlider.off("change")}}),fn=cn,dn=(n("bf23"),C(fn,un,ln,!1,null,null,null));dn.options.__file="fieldNoUiSlider.vue";var pn=dn.exports,hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},mn=[],vn={name:"field-pikaday",mixins:[_e],data:function(){return{picker:null}},methods:Vt({},At),mounted:function(){var e=this;this.$nextTick(function(){window.Pikaday?e.picker=new window.Pikaday(re()(e.fieldOptions,{field:e.$el,onSelect:function(){e.value=e.picker.toString()}})):console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.picker&&this.picker.destroy()}},bn=vn,gn=C(bn,hn,mn,!1,null,null,null);gn.options.__file="fieldPikaday.vue";var yn=gn.exports,xn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,"data-disable":e.disabled,"data-max":e.fieldOptions.max,"data-min":e.fieldOptions.min,"data-step":e.fieldOptions.step,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName}})},On=[];function _n(e){if(Array.isArray(e))return e}function wn(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(e){r=!0,o=e}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function Sn(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function kn(e,t){return _n(e)||wn(e,t)||Sn()}var Cn={name:"field-rangeSlider",mixins:[_e],data:function(){return{slider:null}},watch:{model:function(){if(window.$&&window.$.fn.ionRangeSlider){var e,t;if(l()(this.value)){var n=kn(this.value,2);e=n[0],t=n[1]}else e=this.value;this.slider&&this.slider.update({from:e,to:t})}}},mounted:function(){this.$nextTick(function(){if(window.$&&window.$.fn.ionRangeSlider){var e,t;if(l()(this.value)){var n=kn(this.value,2);e=n[0],t=n[1]}else e=this.value;var i=this;$(this.$el).ionRangeSlider(re()(this.fieldOptions,{type:"single",grid:!0,hide_min_max:!0,from:e,to:t,onChange:function(e){"double"===i.slider.options.type?i.value=[e.from,e.to]:i.value=e.from}})),this.slider=$(this.$el).data("ionRangeSlider")}else console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.slider&&this.slider.destroy()}},Tn=Cn,jn=(n("d474"),C(Tn,xn,On,!1,null,null,null));jn.options.__file="fieldRangeSlider.vue";var Mn=jn.exports,In=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"selectpicker",attrs:{disabled:e.disabled,multiple:e.fieldOptions.multiSelect,title:e.placeholder,"data-width":"100%",name:e.inputName},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},[!0!==e.fieldOptions.multiSelect?n("option",{attrs:{disabled:e.schema.required},domProps:{value:null,selected:void 0==e.value}}):e._e(),e._l(e.items,function(t){return n("option",{key:e.getItemValue(t),domProps:{value:e.getItemValue(t)}},[e._v(" "+e._s(e.getItemName(t)))])})],2)},$n=[],Fn={name:"field-selectex",mixins:[_e],computed:{items:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e}},methods:{getItemValue:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["value"])return e[this.fieldOptions.value];if("undefined"!==typeof e["id"])return e.id;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"}return e},getItemName:function(e){if(P()(e)){if("undefined"!==typeof this.fieldOptions["name"])return e[this.fieldOptions.name];if("undefined"!==typeof e["name"])return e.name;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"}return e}},watch:{model:function(){"undefined"!==typeof $.fn&&$.fn.selectpicker&&$(this.$el).selectpicker("refresh")}},mounted:function(){var e=this;this.$nextTick(function(){"undefined"!==typeof $.fn&&$.fn.selectpicker?$(e.$el).selectpicker("destroy").selectpicker(e.fieldOptions):console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){$.fn.selectpicker&&$(this.$el).selectpicker("destroy")}},En=Fn,Nn=(n("1958"),C(En,In,$n,!1,null,null,null));Nn.options.__file="fieldSelectEx.vue";var Pn=Nn.exports,Vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("input",{attrs:{type:"text",autocomplete:e.fieldOptions.autocomplete,disabled:e.disabled,placeholder:e.placeholder,readonly:e.readonly,name:e.inputName,id:e.fieldID}})},Dn=[],An={name:"field-spectrum",mixins:[_e],data:function(){return{picker:null}},watch:{model:function(){window.$&&window.$.fn.spectrum&&this.picker.spectrum("set",this.value)},disabled:function(e){e?this.picker.spectrum("disable"):this.picker.spectrum("enable")}},mounted:function(){this.$nextTick(function(){var e=this;window.$&&window.$.fn.spectrum?(this.picker=$(this.$el).spectrum("destroy").spectrum(re()(this.fieldOptions,{showInput:!0,showAlpha:!0,disabled:this.schema.disabled,allowEmpty:!this.schema.required,preferredFormat:"hex",change:function(t){e.value=t?t.toString():null}})),this.picker.spectrum("set",this.value)):console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){this.picker&&this.picker.spectrum("destroy")}},Ln=An,Bn=C(Ln,Vn,Dn,!1,null,null,null);Bn.options.__file="fieldSpectrum.vue";var Rn=Bn.exports,Yn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("img",{attrs:{src:e.mapLink}})},Hn=[],Un={name:"field-staticmap",mixins:[_e],computed:{mapLink:function(){if(this.value){var e,t,n=re()(this.fieldOptions,{lat:"lat",lng:"lng",zoom:8,sizeX:640,sizeY:640});e=this.value[n.lat],t=this.value[n.lng];for(var i="http://maps.googleapis.com/maps/api/staticmap?center=".concat(e,",").concat(t,"&zoom=").concat(n.zoom,"&size=").concat(n.sizeX,"x").concat(n.sizeY),r=["scale","format","maptype","language","region","markers","path","visible","style","key","signature"],o=0;o-1:e.value},on:{change:function(t){var n=e.value,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=r}}}),n("span",{staticClass:"label",attrs:{"data-on":e.fieldOptions.textOn||"On","data-off":e.fieldOptions.textOff||"Off",for:e.fieldID}}),n("span",{staticClass:"handle"})])},Wn=[],Xn={name:"field-switch",mixins:[_e],methods:{formatValueToField:function(e){return null!=e&&this.fieldOptions.valueOn?e===this.fieldOptions.valueOn:e},formatValueToModel:function(e){return null!=e&&this.fieldOptions.valueOn?e?this.fieldOptions.valueOn:this.fieldOptions.valueOff:e}}},Jn=Xn,Kn=(n("e0bf"),C(Jn,Zn,Wn,!1,null,null,null));Kn.options.__file="fieldSwitch.vue";var Qn=Kn.exports,ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("multiselect",{attrs:{id:e.fieldOptions.id,options:e.options,value:e.value,multiple:e.fieldOptions.multiple,"track-by":e.fieldOptions.trackBy||null,label:e.fieldOptions.label||null,searchable:e.fieldOptions.searchable,"clear-on-select":e.fieldOptions.clearOnSelect,"hide-selected":e.fieldOptions.hideSelected,placeholder:e.placeholder,"allow-empty":e.fieldOptions.allowEmpty,"reset-after":e.fieldOptions.resetAfter,"close-on-select":e.fieldOptions.closeOnSelect,"custom-label":e.customLabel,taggable:e.fieldOptions.taggable,"tag-placeholder":e.fieldOptions.tagPlaceholder,max:e.fieldOptions.max||null,"options-limit":e.fieldOptions.optionsLimit,"group-values":e.fieldOptions.groupValues,"group-label":e.fieldOptions.groupLabel,"block-keys":e.fieldOptions.blockKeys,"internal-search":e.fieldOptions.internalSearch,"select-label":e.fieldOptions.selectLabel,"selected-label":e.fieldOptions.selectedLabel,"deselect-label":e.fieldOptions.deselectLabel,"show-labels":e.fieldOptions.showLabels,limit:e.fieldOptions.limit,"limit-text":e.fieldOptions.limitText,loading:e.fieldOptions.loading,disabled:e.disabled,"max-height":e.fieldOptions.maxHeight,"show-pointer":e.fieldOptions.showPointer,"option-height":e.fieldOptions.optionHeight},on:{input:e.updateSelected,select:e.onSelect,remove:e.onRemove,"search-change":e.onSearchChange,tag:e.addTag,open:e.onOpen,close:e.onClose}},[n("span",{attrs:{slot:"noResult"},slot:"noResult"},[e._v("\n\t\t"+e._s(e.fieldOptions.noResult)+"\n\t")])])},ti=[],ni={name:"field-vueMultiSelect",mixins:[_e],computed:{options:function(){var e=this.schema.values;return"function"==typeof e?e.apply(this,[this.model,this.schema]):e},customLabel:function(){return"undefined"!==typeof this.fieldOptions.customLabel&&"function"===typeof this.fieldOptions.customLabel?this.fieldOptions.customLabel:void 0}},methods:{updateSelected:function(e){this.value=e},addTag:function(e,t){var n=this.fieldOptions.onNewTag;"function"==typeof n&&n(e,t,this.options,this.value)},onSearchChange:function(e,t){var n=this.fieldOptions.onSearch;"function"==typeof n&&n(e,t,this.options)},onSelect:function(){},onRemove:function(){},onOpen:function(){},onClose:function(){}},created:function(){this.$root.$options.components["multiselect"]||console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!")}},ii=ni,ri=C(ii,ei,ti,!1,null,null,null);ri.options.__file="fieldVueMultiSelect.vue";var oi=ri.exports,ai=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.fields&&t.fields.forEach(function(t){"undefined"!==typeof t.name&&e.component(t.name,t)}),e.component("VueFormGenerator",K)},si={component:K,schema:i,validators:fe,abstractField:_e,fieldsLoader:o,install:ai};t["default"]=si},fba5:function(e,t,n){var i=n("cb5a");function r(e){return i(this.__data__,e)>-1}e.exports=r},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ffd6:function(e,t){function n(){return!1}e.exports=n}})}); \ No newline at end of file +(function(n,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vfg"]=e(require("vue")):n["vfg"]=e(n["Vue"])})("undefined"!==typeof self?self:this,function(n){return function(n){var e={};function l(t){if(e[t])return e[t].exports;var o=e[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,l),o.l=!0,o.exports}return l.m=n,l.c=e,l.d=function(n,e,t){l.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:t})},l.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},l.t=function(n,e){if(1&e&&(n=l(n)),8&e)return n;if(4&e&&"object"===typeof n&&n&&n.__esModule)return n;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var o in n)l.d(t,o,function(e){return n[e]}.bind(null,o));return t},l.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return l.d(e,"a",e),e},l.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},l.p="",l(l.s="fb15")}({"00fd":function(n,e,l){var t=l("9e69"),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=t?t.toStringTag:void 0;function r(n){var e=i.call(n,u),l=n[u];try{n[u]=void 0;var t=!0}catch(n){}var o=c.call(n);return t&&(e?n[u]=l:delete n[u]),o}n.exports=r},"01f9":function(n,e,l){"use strict";var t=l("2d00"),o=l("5ca1"),i=l("2aba"),c=l("32e9"),u=l("84f2"),r=l("41a0"),a=l("7f20"),s=l("38fd"),m=l("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",b="values",h=function(){return this};n.exports=function(n,e,l,v,y,g,_){r(l,e,v);var x,w,O,S=function(n){if(!d&&n in C)return C[n];switch(n){case p:return function(){return new l(this,n)};case b:return function(){return new l(this,n)}}return function(){return new l(this,n)}},j=e+" Iterator",M=y==b,k=!1,C=n.prototype,D=C[m]||C[f]||y&&C[y],T=D||S(y),I=y?M?S("entries"):T:void 0,E="Array"==e&&C.entries||D;if(E&&(O=s(E.call(new n)),O!==Object.prototype&&O.next&&(a(O,j,!0),t||"function"==typeof O[m]||c(O,m,h))),M&&D&&D.name!==b&&(k=!0,T=function(){return D.call(this)}),t&&!_||!d&&!k&&C[m]||c(C,m,T),u[e]=T,u[j]=h,y)if(x={values:M?T:S(b),keys:g?T:S(p),entries:I},_)for(w in x)w in C||i(C,w,x[w]);else o(o.P+o.F*(d||k),e,x);return x}},"03dd":function(n,e,l){var t=l("eac5"),o=l("57a5"),i=Object.prototype,c=i.hasOwnProperty;function u(n){if(!t(n))return o(n);var e=[];for(var l in Object(n))c.call(n,l)&&"constructor"!=l&&e.push(l);return e}n.exports=u},"0644":function(n,e,l){var t=l("3818"),o=1,i=4;function c(n){return t(n,o|i)}n.exports=c},"07c7":function(n,e){function l(){return!1}n.exports=l},"087d":function(n,e){function l(n,e){var l=-1,t=e.length,o=n.length;while(++lr)t.f(n,l=c[r++],e[l]);return n}},"159a":function(n,e,l){var t=l("32b3"),o=l("e2e4"),i=l("c098"),c=l("1a8c"),u=l("f4d6");function r(n,e,l,r){if(!c(n))return n;e=o(e,n);var a=-1,s=e.length,m=s-1,d=n;while(null!=d&&++al)e.push(arguments[l++]);return v[++h]=function(){u("function"==typeof n?n:Function(n),e)},t(h),h},f=function(n){delete v[n]},"process"==l("2d95")(m)?t=function(n){m.nextTick(c(g,n,1))}:b&&b.now?t=function(n){b.now(c(g,n,1))}:p?(o=new p,i=o.port2,o.port1.onmessage=_,t=c(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(t=function(n){s.postMessage(n+"","*")},s.addEventListener("message",_,!1)):t=y in a("script")?function(n){r.appendChild(a("script"))[y]=function(){r.removeChild(this),g.call(n)}}:function(n){setTimeout(c(g,n,1),0)}),n.exports={set:d,clear:f}},"1a2d":function(n,e,l){var t=l("42a2"),o=l("1310"),i="[object Map]";function c(n){return o(n)&&t(n)==i}n.exports=c},"1a8c":function(n,e){function l(n){var e=typeof n;return null!=n&&("object"==e||"function"==e)}n.exports=l},"1bac":function(n,e,l){var t=l("7d1f"),o=l("a029"),i=l("9934");function c(n){return t(n,i,o)}n.exports=c},"1c3c":function(n,e,l){var t=l("9e69"),o=l("2474"),i=l("9638"),c=l("a2be"),u=l("edfa"),r=l("ac41"),a=1,s=2,m="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Map]",b="[object Number]",h="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",w=t?t.prototype:void 0,O=w?w.valueOf:void 0;function S(n,e,l,t,w,S,j){switch(l){case x:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case _:return!(n.byteLength!=e.byteLength||!S(new o(n),new o(e)));case m:case d:case b:return i(+n,+e);case f:return n.name==e.name&&n.message==e.message;case h:case y:return n==e+"";case p:var M=u;case v:var k=t&a;if(M||(M=r),n.size!=e.size&&!k)return!1;var C=j.get(n);if(C)return C==e;t|=s,j.set(n,e);var D=c(M(n),M(e),t,w,S,j);return j["delete"](n),D;case g:if(O)return O.call(n)==O.call(e)}return!1}n.exports=S},"1cec":function(n,e,l){var t=l("0b07"),o=l("2b3e"),i=t(o,"Promise");n.exports=i},"1efc":function(n,e){function l(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}n.exports=l},"1fa8":function(n,e,l){var t=l("cb7c");n.exports=function(n,e,l,o){try{return o?e(t(l)[0],l[1]):e(l)}catch(e){var i=n["return"];throw void 0!==i&&t(i.call(n)),e}}},"1fc8":function(n,e,l){var t=l("4245");function o(n,e){var l=t(this,n),o=l.size;return l.set(n,e),this.size+=l.size==o?0:1,this}n.exports=o},"20ec":function(n,e){function l(n,e){return function(l){return null!=l&&(l[n]===e&&(void 0!==e||n in Object(l)))}}n.exports=l},2149:function(n,e,l){"use strict";var t=l("1437"),o=l.n(t);o.a},"214f":function(n,e,l){"use strict";var t=l("32e9"),o=l("2aba"),i=l("79e5"),c=l("be13"),u=l("2b4c");n.exports=function(n,e,l){var r=u(n),a=l(c,r,""[n]),s=a[0],m=a[1];i(function(){var e={};return e[r]=function(){return 7},7!=""[n](e)})&&(o(String.prototype,n,s),t(RegExp.prototype,r,2==e?function(n,e){return m.call(n,this,e)}:function(n){return m.call(n,this)}))}},2286:function(n,e,l){var t=l("85e3"),o=Math.max;function i(n,e,l){return e=o(void 0===e?n.length-1:e,0),function(){var i=arguments,c=-1,u=o(i.length-e,0),r=Array(u);while(++c1||""[u](/.?/)[r]){var s=void 0===/()??/.exec("")[1];t=function(n,e){var l=String(this);if(void 0===n&&0===e)return[];if(!o(n))return i.call(l,n,e);var t,u,m,d,f,p=[],b=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),h=0,v=void 0===e?4294967295:e>>>0,y=new RegExp(n.source,b+"g");s||(t=new RegExp("^"+y.source+"$(?!\\s)",b));while(u=y.exec(l)){if(m=u.index+u[0][r],m>h&&(p.push(l.slice(h,u.index)),!s&&u[r]>1&&u[0].replace(t,function(){for(f=1;f1&&u.index=v))break;y[a]===u.index&&y[a]++}return h===l[r]?!d&&y.test("")||p.push(""):p.push(l.slice(h)),p[r]>v?p.slice(0,v):p}}else"0"[u](void 0,0)[r]&&(t=function(n,e){return void 0===n&&0===e?[]:i.call(this,n,e)});return[function(l,o){var i=n(this),c=void 0==l?void 0:l[e];return void 0!==c?c.call(l,i,o):t.call(String(i),l,o)},t]})},"28c9":function(n,e){function l(){this.__data__=[],this.size=0}n.exports=l},"29f3":function(n,e){var l=Object.prototype,t=l.toString;function o(n){return t.call(n)}n.exports=o},"2aba":function(n,e,l){var t=l("7726"),o=l("32e9"),i=l("69a8"),c=l("ca5a")("src"),u="toString",r=Function[u],a=(""+r).split(u);l("8378").inspectSource=function(n){return r.call(n)},(n.exports=function(n,e,l,u){var r="function"==typeof l;r&&(i(l,"name")||o(l,"name",e)),n[e]!==l&&(r&&(i(l,c)||o(l,c,n[e]?""+n[e]:a.join(String(e)))),n===t?n[e]=l:u?n[e]?n[e]=l:o(n,e,l):(delete n[e],o(n,e,l)))})(Function.prototype,u,function(){return"function"==typeof this&&this[c]||r.call(this)})},"2aeb":function(n,e,l){var t=l("cb7c"),o=l("1495"),i=l("e11e"),c=l("613b")("IE_PROTO"),u=function(){},r="prototype",a=function(){var n,e=l("230e")("iframe"),t=i.length,o="<",c=">";e.style.display="none",l("fab2").appendChild(e),e.src="javascript:",n=e.contentWindow.document,n.open(),n.write(o+"script"+c+"document.F=Object"+o+"/script"+c),n.close(),a=n.F;while(t--)delete a[r][i[t]];return a()};n.exports=Object.create||function(n,e){var l;return null!==n?(u[r]=t(n),l=new u,u[r]=null,l[c]=n):l=a(),void 0===e?l:o(l,e)}},"2b03":function(n,e){function l(n,e,l,t){var o=n.length,i=l+(t?1:-1);while(t?i--:++iv;)b(h[v++]);m.constructor=a,a.prototype=m,l("2aba")(t,"RegExp",a)}l("7a56")("RegExp")},"3b4a":function(n,e,l){var t=l("0b07"),o=function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch(n){}}();n.exports=o},"3bb4":function(n,e,l){var t=l("08cc"),o=l("ec69");function i(n){var e=o(n),l=e.length;while(l--){var i=e[l],c=n[i];e[l]=[i,c,t(c)]}return e}n.exports=i},"3f6b":function(n,e,l){"use strict";var t=l("9ee4"),o=l.n(t);o.a},"408c":function(n,e,l){var t=l("2b3e"),o=function(){return t.Date.now()};n.exports=o},"41a0":function(n,e,l){"use strict";var t=l("2aeb"),o=l("4630"),i=l("7f20"),c={};l("32e9")(c,l("2b4c")("iterator"),function(){return this}),n.exports=function(n,e,l){n.prototype=t(c,{next:o(1,l)}),i(n,e+" Iterator")}},"41c3":function(n,e,l){var t=l("1a8c"),o=l("eac5"),i=l("ec8c"),c=Object.prototype,u=c.hasOwnProperty;function r(n){if(!t(n))return i(n);var e=o(n),l=[];for(var c in n)("constructor"!=c||!e&&u.call(n,c))&&l.push(c);return l}n.exports=r},4245:function(n,e,l){var t=l("1290");function o(n,e){var l=n.__data__;return t(e)?l["string"==typeof e?"string":"hash"]:l.map}n.exports=o},4284:function(n,e){function l(n,e){var l=-1,t=null==n?0:n.length;while(++l0?t:l)(n)}},4630:function(n,e){n.exports=function(n,e){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:e}}},"48a0":function(n,e,l){var t=l("242e"),o=l("950a"),i=o(t);n.exports=i},"49f4":function(n,e,l){var t=l("6044");function o(){this.__data__=t?t(null):{},this.size=0}n.exports=o},"4a59":function(n,e,l){var t=l("9b43"),o=l("1fa8"),i=l("33a4"),c=l("cb7c"),u=l("9def"),r=l("27ee"),a={},s={};e=n.exports=function(n,e,l,m,d){var f,p,b,h,v=d?function(){return n}:r(n),y=t(l,m,e?2:1),g=0;if("function"!=typeof v)throw TypeError(n+" is not iterable!");if(i(v)){for(f=u(n.length);f>g;g++)if(h=e?y(c(p=n[g])[0],p[1]):y(n[g]),h===a||h===s)return h}else for(b=v.call(n);!(p=b.next()).done;)if(h=o(b,y,p.value,e),h===a||h===s)return h};e.BREAK=a,e.RETURN=s},"4b17":function(n,e,l){var t=l("6428");function o(n){var e=t(n),l=e%1;return e===e?l?e-l:e:0}n.exports=o},"4bf8":function(n,e,l){var t=l("be13");n.exports=function(n){return Object(t(n))}},"501e":function(n,e,l){var t=l("3729"),o=l("1310"),i="[object Number]";function c(n){return"number"==typeof n||o(n)&&t(n)==i}n.exports=c},"50d8":function(n,e){function l(n,e){var l=-1,t=Array(n);while(++li)c(l[i++]);n._c=[],n._n=!1,e&&!n._h&&N(n)})}},N=function(n){v.call(r,function(){var e,l,t,o=n._v,i=P(n);if(i&&(e=_(function(){D?j.emit("unhandledRejection",o,n):(l=r.onunhandledrejection)?l({promise:n,reason:o}):(t=r.console)&&t.error&&t.error("Unhandled promise rejection",o)}),n._h=D||P(n)?2:1),n._a=void 0,i&&e.e)throw e.v})},P=function(n){return 1!==n._h&&0===(n._a||n._c).length},A=function(n){v.call(r,function(){var e;D?j.emit("rejectionHandled",n):(e=r.onrejectionhandled)&&e({promise:n,reason:n._v})})},V=function(n){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=n,e._s=2,e._a||(e._a=e._c.slice()),$(e,!0))},L=function(n){var e,l=this;if(!l._d){l._d=!0,l=l._w||l;try{if(l===n)throw S("Promise can't be resolved itself");(e=F(n))?y(function(){var t={_w:l,_d:!1};try{e.call(n,a(L,t,1),a(V,t,1))}catch(n){V.call(t,n)}}):(l._v=n,l._s=1,$(l,!1))}catch(n){V.call({_w:l,_d:!1},n)}}};E||(C=function(n){p(this,C,O,"_h"),f(n),t.call(this);try{n(a(L,this,1),a(V,this,1))}catch(n){V.call(this,n)}},t=function(n){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},t.prototype=l("dcbc")(C.prototype,{then:function(n,e){var l=I(h(this,C));return l.ok="function"!=typeof n||n,l.fail="function"==typeof e&&e,l.domain=D?j.domain:void 0,this._c.push(l),this._a&&this._a.push(l),this._s&&$(this,!1),l.promise},catch:function(n){return this.then(void 0,n)}}),i=function(){var n=new t;this.promise=n,this.resolve=a(L,n,1),this.reject=a(V,n,1)},g.f=I=function(n){return n===C||n===c?new i(n):o(n)}),m(m.G+m.W+m.F*!E,{Promise:C}),l("7f20")(C,O),l("7a56")(O),c=l("8378")[O],m(m.S+m.F*!E,O,{reject:function(n){var e=I(this),l=e.reject;return l(n),e.promise}}),m(m.S+m.F*(u||!E),O,{resolve:function(n){return w(u&&this===c?C:this,n)}}),m(m.S+m.F*!(E&&l("5cc5")(function(n){C.all(n)["catch"](T)})),O,{all:function(n){var e=this,l=I(e),t=l.resolve,o=l.reject,i=_(function(){var l=[],i=0,c=1;b(n,!1,function(n){var u=i++,r=!1;l.push(void 0),c++,e.resolve(n).then(function(n){r||(r=!0,l[u]=n,--c||t(l))},o)}),--c||t(l)});return i.e&&o(i.v),l.promise},race:function(n){var e=this,l=I(e),t=l.reject,o=_(function(){b(n,!1,function(n){e.resolve(n).then(l.resolve,t)})});return o.e&&t(o.v),l.promise}})},5537:function(n,e,l){var t=l("8378"),o=l("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(n.exports=function(n,e){return c[n]||(c[n]=void 0!==e?e:{})})("versions",[]).push({version:t.version,mode:l("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"55a3":function(n,e){function l(n){return this.__data__.has(n)}n.exports=l},"574e":function(n,e,l){},"57a5":function(n,e,l){var t=l("91e9"),o=t(Object.keys,Object);n.exports=o},"585a":function(n,e,l){(function(e){var l="object"==typeof e&&e&&e.Object===Object&&e;n.exports=l}).call(this,l("c8ba"))},"5b01":function(n,e,l){var t=l("8eeb"),o=l("ec69");function i(n,e){return n&&t(e,o(e),n)}n.exports=i},"5ca0":function(n,e,l){var t=l("badf"),o=l("30c9"),i=l("ec69");function c(n){return function(e,l,c){var u=Object(e);if(!o(e)){var r=t(l,3);e=i(e),l=function(n){return r(u[n],n,u)}}var a=n(e,l,c);return a>-1?u[r?e[a]:a]:void 0}}n.exports=c},"5ca1":function(n,e,l){var t=l("7726"),o=l("8378"),i=l("32e9"),c=l("2aba"),u=l("9b43"),r="prototype",a=function(n,e,l){var s,m,d,f,p=n&a.F,b=n&a.G,h=n&a.S,v=n&a.P,y=n&a.B,g=b?t:h?t[e]||(t[e]={}):(t[e]||{})[r],_=b?o:o[e]||(o[e]={}),x=_[r]||(_[r]={});for(s in b&&(l=e),l)m=!p&&g&&void 0!==g[s],d=(m?g:l)[s],f=y&&m?u(d,t):v&&"function"==typeof d?u(Function.call,d):d,g&&c(g,s,d,n&a.U),_[s]!=d&&i(_,s,f),v&&x[s]!=d&&(x[s]=d)};t.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},"5cc5":function(n,e,l){var t=l("2b4c")("iterator"),o=!1;try{var i=[7][t]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(n){}n.exports=function(n,e){if(!e&&!o)return!1;var l=!1;try{var i=[7],c=i[t]();c.next=function(){return{done:l=!0}},i[t]=function(){return c},n(i)}catch(n){}return l}},"5d89":function(n,e,l){var t=l("f8af");function o(n,e){var l=e?t(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}n.exports=o},"5dbc":function(n,e,l){var t=l("d3f4"),o=l("8b97").set;n.exports=function(n,e,l){var i,c=e.constructor;return c!==l&&"function"==typeof c&&(i=c.prototype)!==l.prototype&&t(i)&&o&&o(n,i),n}},"5e2e":function(n,e,l){var t=l("28c9"),o=l("69d5"),i=l("b4c0"),c=l("fba5"),u=l("67ca");function r(n){var e=-1,l=null==n?0:n.length;this.clear();while(++e1?arguments[1]:void 0)}}),l("9c6c")("includes")},"67ca":function(n,e,l){var t=l("cb5a");function o(n,e){var l=this.__data__,o=t(l,n);return o<0?(++this.size,l.push([n,e])):l[o][1]=e,this}n.exports=o},6821:function(n,e,l){var t=l("626a"),o=l("be13");n.exports=function(n){return t(o(n))}},"697e":function(n,e,l){var t=l("4b17");function o(n){return"number"==typeof n&&n==t(n)}n.exports=o},"69a8":function(n,e){var l={}.hasOwnProperty;n.exports=function(n,e){return l.call(n,e)}},"69d5":function(n,e,l){var t=l("cb5a"),o=Array.prototype,i=o.splice;function c(n){var e=this.__data__,l=t(e,n);if(l<0)return!1;var o=e.length-1;return l==o?e.pop():i.call(e,l,1),--this.size,!0}n.exports=c},"6a99":function(n,e,l){var t=l("d3f4");n.exports=function(n,e){if(!t(n))return n;var l,o;if(e&&"function"==typeof(l=n.toString)&&!t(o=l.call(n)))return o;if("function"==typeof(l=n.valueOf)&&!t(o=l.call(n)))return o;if(!e&&"function"==typeof(l=n.toString)&&!t(o=l.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},"6b54":function(n,e,l){"use strict";l("3846");var t=l("cb7c"),o=l("0bfb"),i=l("9e1e"),c="toString",u=/./[c],r=function(n){l("2aba")(RegExp.prototype,c,n,!0)};l("79e5")(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?r(function(){var n=t(this);return"/".concat(n.source,"/","flags"in n?n.flags:!i&&n instanceof RegExp?o.call(n):void 0)}):u.name!=c&&r(function(){return u.call(this)})},"6cd4":function(n,e,l){var t=l("8057"),o=l("48a0"),i=l("1304"),c=l("6747");function u(n,e){var l=c(n)?t:o;return l(n,i(e))}n.exports=u},"6f6c":function(n,e){var l=/\w*$/;function t(n){var e=new n.constructor(n.source,l.exec(n));return e.lastIndex=n.lastIndex,e}n.exports=t},"6fcd":function(n,e,l){var t=l("50d8"),o=l("d370"),i=l("6747"),c=l("0d24"),u=l("c098"),r=l("73ac"),a=Object.prototype,s=a.hasOwnProperty;function m(n,e){var l=i(n),a=!l&&o(n),m=!l&&!a&&c(n),d=!l&&!a&&!m&&r(n),f=l||a||m||d,p=f?t(n.length,String):[],b=p.length;for(var h in n)!e&&!s.call(n,h)||f&&("length"==h||m&&("offset"==h||"parent"==h)||d&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||u(h,b))||p.push(h);return p}n.exports=m},"72af":function(n,e,l){var t=l("99cd"),o=t();n.exports=o},"72f0":function(n,e){function l(n){return function(){return n}}n.exports=l},7375:function(n,e,l){},"73ac":function(n,e,l){var t=l("743f"),o=l("b047f"),i=l("99d3"),c=i&&i.isTypedArray,u=c?o(c):t;n.exports=u},"743f":function(n,e,l){var t=l("3729"),o=l("b218"),i=l("1310"),c="[object Arguments]",u="[object Array]",r="[object Boolean]",a="[object Date]",s="[object Error]",m="[object Function]",d="[object Map]",f="[object Number]",p="[object Object]",b="[object RegExp]",h="[object Set]",v="[object String]",y="[object WeakMap]",g="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",S="[object Int16Array]",j="[object Int32Array]",M="[object Uint8Array]",k="[object Uint8ClampedArray]",C="[object Uint16Array]",D="[object Uint32Array]",T={};function I(n){return i(n)&&o(n.length)&&!!T[t(n)]}T[x]=T[w]=T[O]=T[S]=T[j]=T[M]=T[k]=T[C]=T[D]=!0,T[c]=T[u]=T[g]=T[r]=T[_]=T[a]=T[s]=T[m]=T[d]=T[f]=T[p]=T[b]=T[h]=T[v]=T[y]=!1,n.exports=I},"74d5":function(n,e,l){},7530:function(n,e,l){var t=l("1a8c"),o=Object.create,i=function(){function n(){}return function(e){if(!t(e))return{};if(o)return o(e);n.prototype=e;var l=new n;return n.prototype=void 0,l}}();n.exports=i},"76c3":function(n,e,l){},"76dd":function(n,e,l){var t=l("ce86");function o(n){return null==n?"":t(n)}n.exports=o},7726:function(n,e){var l=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=l)},"77cf":function(n,e,l){},"77f1":function(n,e,l){var t=l("4588"),o=Math.max,i=Math.min;n.exports=function(n,e){return n=t(n),n<0?o(n+e,0):i(n,e)}},7948:function(n,e){function l(n,e){var l=-1,t=null==n?0:n.length,o=Array(t);while(++l2?e[2]:void 0;a&&i(e[0],e[1],a)&&(t=1);while(++l0?o(t(n),9007199254740991):0}},"9e1e":function(n,e,l){n.exports=!l("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e69":function(n,e,l){var t=l("2b3e"),o=t.Symbol;n.exports=o},"9e99":function(n,e,l){var t;(function(o){"use strict";var i={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,u=/\d\d?/,r=/\d{3}/,a=/\d{4}/,s=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,m=/\[([^]*?)\]/gm,d=function(){};function f(n,e){for(var l=[],t=0,o=n.length;t3?0:(n-n%10!==10)*n%10]}};var _={D:function(n){return n.getDate()},DD:function(n){return b(n.getDate())},Do:function(n,e){return e.DoFn(n.getDate())},d:function(n){return n.getDay()},dd:function(n){return b(n.getDay())},ddd:function(n,e){return e.dayNamesShort[n.getDay()]},dddd:function(n,e){return e.dayNames[n.getDay()]},M:function(n){return n.getMonth()+1},MM:function(n){return b(n.getMonth()+1)},MMM:function(n,e){return e.monthNamesShort[n.getMonth()]},MMMM:function(n,e){return e.monthNames[n.getMonth()]},YY:function(n){return String(n.getFullYear()).substr(2)},YYYY:function(n){return b(n.getFullYear(),4)},h:function(n){return n.getHours()%12||12},hh:function(n){return b(n.getHours()%12||12)},H:function(n){return n.getHours()},HH:function(n){return b(n.getHours())},m:function(n){return n.getMinutes()},mm:function(n){return b(n.getMinutes())},s:function(n){return n.getSeconds()},ss:function(n){return b(n.getSeconds())},S:function(n){return Math.round(n.getMilliseconds()/100)},SS:function(n){return b(Math.round(n.getMilliseconds()/10),2)},SSS:function(n){return b(n.getMilliseconds(),3)},a:function(n,e){return n.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(n,e){return n.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(n){var e=n.getTimezoneOffset();return(e>0?"-":"+")+b(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[u,function(n,e){n.day=e}],Do:[new RegExp(u.source+s.source),function(n,e){n.day=parseInt(e,10)}],M:[u,function(n,e){n.month=e-1}],YY:[u,function(n,e){var l=new Date,t=+(""+l.getFullYear()).substr(0,2);n.year=""+(e>68?t-1:t)+e}],h:[u,function(n,e){n.hour=e}],m:[u,function(n,e){n.minute=e}],s:[u,function(n,e){n.second=e}],YYYY:[a,function(n,e){n.year=e}],S:[/\d/,function(n,e){n.millisecond=100*e}],SS:[/\d{2}/,function(n,e){n.millisecond=10*e}],SSS:[r,function(n,e){n.millisecond=e}],d:[u,d],ddd:[s,d],MMM:[s,p("monthNamesShort")],MMMM:[s,p("monthNames")],a:[s,function(n,e,l){var t=e.toLowerCase();t===l.amPm[0]?n.isPm=!1:t===l.amPm[1]&&(n.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(n,e){"Z"===e&&(e="+00:00");var l,t=(e+"").match(/([\+\-]|\d\d)/gi);t&&(l=60*t[1]+parseInt(t[2],10),n.timezoneOffset="+"===t[0]?l:-l)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,i.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"},i.format=function(n,e,l){var t=l||i.i18n;if("number"===typeof n&&(n=new Date(n)),"[object Date]"!==Object.prototype.toString.call(n)||isNaN(n.getTime()))throw new Error("Invalid Date in fecha.format");e=i.masks[e]||e||i.masks["default"];var o=[];return e=e.replace(m,function(n,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in _?_[e](n,t):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},i.parse=function(n,e,l){var t=l||i.i18n;if("string"!==typeof e)throw new Error("Invalid format in fecha.parse");if(e=i.masks[e]||e,n.length>1e3)return!1;var o=!0,u={};if(e.replace(c,function(e){if(x[e]){var l=x[e],i=n.search(l[0]);~i?n.replace(l[0],function(e){return l[1](u,e,t),n=n.substr(i+e.length),e}):o=!1}return x[e]?"":e.slice(1,e.length-1)}),!o)return!1;var r,a=new Date;return!0===u.isPm&&null!=u.hour&&12!==+u.hour?u.hour=+u.hour+12:!1===u.isPm&&12===+u.hour&&(u.hour=0),null!=u.timezoneOffset?(u.minute=+(u.minute||0)-+u.timezoneOffset,r=new Date(Date.UTC(u.year||a.getFullYear(),u.month||0,u.day||1,u.hour||0,u.minute||0,u.second||0,u.millisecond||0))):r=new Date(u.year||a.getFullYear(),u.month||0,u.day||1,u.hour||0,u.minute||0,u.second||0,u.millisecond||0),r},"undefined"!==typeof n&&n.exports?n.exports=i:(t=function(){return i}.call(e,l,e,n),void 0===t||(n.exports=t))})()},"9ee4":function(n,e,l){},a029:function(n,e,l){var t=l("087d"),o=l("2dcb"),i=l("32f4"),c=l("d327"),u=Object.getOwnPropertySymbols,r=u?function(n){var e=[];while(n)t(e,i(n)),n=o(n);return e}:c;n.exports=r},a25f:function(n,e,l){var t=l("7726"),o=t.navigator;n.exports=o&&o.userAgent||""},a2be:function(n,e,l){var t=l("d612"),o=l("4284"),i=l("c584"),c=1,u=2;function r(n,e,l,r,a,s){var m=l&c,d=n.length,f=e.length;if(d!=f&&!(m&&f>d))return!1;var p=s.get(n);if(p&&s.get(e))return p==e;var b=-1,h=!0,v=l&u?new t:void 0;s.set(n,e),s.set(e,n);while(++b=e||l<0||v&&t>=m}function O(){var n=o();if(w(n))return S(n);f=setTimeout(O,x(n))}function S(n){return f=void 0,y&&a?g(n):(a=s=void 0,d)}function j(){void 0!==f&&clearTimeout(f),b=0,a=p=s=f=void 0}function M(){return void 0===f?d:S(o())}function k(){var n=o(),l=w(n);if(a=arguments,s=this,p=n,l){if(void 0===f)return _(p);if(v)return f=setTimeout(O,e),g(p)}return void 0===f&&(f=setTimeout(O,e)),d}return e=i(e)||0,t(l)&&(h=!!l.leading,v="maxWait"in l,m=v?u(i(l.maxWait)||0,e):m,y="trailing"in l?!!l.trailing:y),k.cancel=j,k.flush=M,k}n.exports=a},b047f:function(n,e){function l(n){return function(e){return n(e)}}n.exports=l},b1e5:function(n,e,l){var t=l("a994"),o=1,i=Object.prototype,c=i.hasOwnProperty;function u(n,e,l,i,u,r){var a=l&o,s=t(n),m=s.length,d=t(e),f=d.length;if(m!=f&&!a)return!1;var p=m;while(p--){var b=s[p];if(!(a?b in e:c.call(e,b)))return!1}var h=r.get(n);if(h&&r.get(e))return h==e;var v=!0;r.set(n,e),r.set(e,n);var y=a;while(++p-1&&n%1==0&&n<=l}n.exports=t},b4b0:function(n,e,l){var t=l("1a8c"),o=l("ffd6"),i=NaN,c=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function m(n){if("number"==typeof n)return n;if(o(n))return i;if(t(n)){var e="function"==typeof n.valueOf?n.valueOf():n;n=t(e)?e+"":e}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(c,"");var l=r.test(n);return l||a.test(n)?s(n.slice(2),l?2:8):u.test(n)?i:+n}n.exports=m},b4c0:function(n,e,l){var t=l("cb5a");function o(n){var e=this.__data__,l=t(e,n);return l<0?void 0:e[l][1]}n.exports=o},b5a7:function(n,e,l){var t=l("0b07"),o=l("2b3e"),i=t(o,"DataView");n.exports=i},b72b:function(n,e,l){"use strict";var t=l("b828"),o=l.n(t);o.a},b7fb:function(n,e,l){"use strict";var t=l("74d5"),o=l.n(t);o.a},b828:function(n,e,l){},b8ce:function(n,e,l){var t=l("3818"),o=4;function i(n){return t(n,o)}n.exports=i},badf:function(n,e,l){var t=l("642a"),o=l("1838"),i=l("cd9d"),c=l("6747"),u=l("f9ce");function r(n){return"function"==typeof n?n:null==n?i:"object"==typeof n?c(n)?o(n[0],n[1]):t(n):u(n)}n.exports=r},bbc0:function(n,e,l){var t=l("6044"),o="__lodash_hash_undefined__",i=Object.prototype,c=i.hasOwnProperty;function u(n){var e=this.__data__;if(t){var l=e[n];return l===o?void 0:l}return c.call(e,n)?e[n]:void 0}n.exports=u},bcaa:function(n,e,l){var t=l("cb7c"),o=l("d3f4"),i=l("a5b8");n.exports=function(n,e){if(t(n),o(e)&&e.constructor===n)return e;var l=i.f(n),c=l.resolve;return c(e),l.promise}},be13:function(n,e){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},bf23:function(n,e,l){"use strict";var t=l("77cf"),o=l.n(t);o.a},bfd2:function(n,e,l){"use strict";var t=l("e279"),o=l.n(t);o.a},c05f:function(n,e,l){var t=l("7b97"),o=l("1310");function i(n,e,l,c,u){return n===e||(null==n||null==e||!o(n)&&!o(e)?n!==n&&e!==e:t(n,e,l,c,i,u))}n.exports=i},c098:function(n,e){var l=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function o(n,e){var o=typeof n;return e=null==e?l:e,!!e&&("number"==o||"symbol"!=o&&t.test(n))&&n>-1&&n%1==0&&ns)if(u=r[s++],u!=u)return!0}else for(;a>s;s++)if((n||s in r)&&r[s]===l)return n||s||0;return!n&&-1}}},c3fc:function(n,e,l){var t=l("42a2"),o=l("1310"),i="[object Set]";function c(n){return o(n)&&t(n)==i}n.exports=c},c495:function(n,e,l){"use strict";var t=l("574e"),o=l.n(t);o.a},c584:function(n,e){function l(n,e){return n.has(e)}n.exports=l},c5f6:function(n,e,l){"use strict";var t=l("7726"),o=l("69a8"),i=l("2d95"),c=l("5dbc"),u=l("6a99"),r=l("79e5"),a=l("9093").f,s=l("11e9").f,m=l("86cc").f,d=l("aa77").trim,f="Number",p=t[f],b=p,h=p.prototype,v=i(l("2aeb")(h))==f,y="trim"in String.prototype,g=function(n){var e=u(n,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():d(e,3);var l,t,o,i=e.charCodeAt(0);if(43===i||45===i){if(l=e.charCodeAt(2),88===l||120===l)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:t=2,o=49;break;case 79:case 111:t=8,o=55;break;default:return+e}for(var c,r=e.slice(2),a=0,s=r.length;ao)return NaN;return parseInt(r,t)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(n){var e=arguments.length<1?0:n,l=this;return l instanceof p&&(v?r(function(){h.valueOf.call(l)}):i(l)!=f)?c(new b(g(e)),l,p):g(e)};for(var _,x=l("9e1e")?a(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)o(b,_=x[w])&&!o(p,_)&&m(p,_,s(b,_));p.prototype=h,h.constructor=p,l("2aba")(t,f,p)}},c641:function(n,e,l){n.exports=l("6cd4")},c69a:function(n,e,l){n.exports=!l("9e1e")&&!l("79e5")(function(){return 7!=Object.defineProperty(l("230e")("div"),"a",{get:function(){return 7}}).a})},c869:function(n,e,l){var t=l("0b07"),o=l("2b3e"),i=t(o,"Set");n.exports=i},c87c:function(n,e){var l=Object.prototype,t=l.hasOwnProperty;function o(n){var e=n.length,l=new n.constructor(e);return e&&"string"==typeof n[0]&&t.call(n,"index")&&(l.index=n.index,l.input=n.input),l}n.exports=o},c8ba:function(n,e){var l;l=function(){return this}();try{l=l||Function("return this")()||(0,eval)("this")}catch(n){"object"===typeof window&&(l=window)}n.exports=l},c8fe:function(n,e,l){var t=l("f8af");function o(n,e){var l=e?t(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}n.exports=o},ca5a:function(n,e){var l=0,t=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++l+t).toString(36))}},cadf:function(n,e,l){"use strict";var t=l("9c6c"),o=l("d53b"),i=l("84f2"),c=l("6821");n.exports=l("01f9")(Array,"Array",function(n,e){this._t=c(n),this._i=0,this._k=e},function(){var n=this._t,e=this._k,l=this._i++;return!n||l>=n.length?(this._t=void 0,o(1)):o(0,"keys"==e?l:"values"==e?n[l]:[l,n[l]])},"values"),i.Arguments=i.Array,t("keys"),t("values"),t("entries")},cb5a:function(n,e,l){var t=l("9638");function o(n,e){var l=n.length;while(l--)if(t(n[l][0],e))return l;return-1}n.exports=o},cb7c:function(n,e,l){var t=l("d3f4");n.exports=function(n){if(!t(n))throw TypeError(n+" is not an object!");return n}},cc45:function(n,e,l){var t=l("1a2d"),o=l("b047f"),i=l("99d3"),c=i&&i.isMap,u=c?o(c):t;n.exports=u},cd9d:function(n,e){function l(n){return n}n.exports=l},ce10:function(n,e,l){var t=l("69a8"),o=l("6821"),i=l("c366")(!1),c=l("613b")("IE_PROTO");n.exports=function(n,e){var l,u=o(n),r=0,a=[];for(l in u)l!=c&&t(u,l)&&a.push(l);while(e.length>r)t(u,l=e[r++])&&(~i(a,l)||a.push(l));return a}},ce86:function(n,e,l){var t=l("9e69"),o=l("7948"),i=l("6747"),c=l("ffd6"),u=1/0,r=t?t.prototype:void 0,a=r?r.toString:void 0;function s(n){if("string"==typeof n)return n;if(i(n))return o(n,s)+"";if(c(n))return a?a.call(n):"";var e=n+"";return"0"==e&&1/n==-u?"-0":e}n.exports=s},d02c:function(n,e,l){var t=l("5e2e"),o=l("79bc"),i=l("7b83"),c=200;function u(n,e){var l=this.__data__;if(l instanceof t){var u=l.__data__;if(!o||u.length0){if(++e>=l)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}n.exports=i},f4d6:function(n,e,l){var t=l("ffd6"),o=1/0;function i(n){if("string"==typeof n||t(n))return n;var e=n+"";return"0"==e&&1/n==-o?"-0":e}n.exports=i},f605:function(n,e){n.exports=function(n,e,l,t){if(!(n instanceof e)||void 0!==t&&t in n)throw TypeError(l+": incorrect invocation!");return n}},f608:function(n,e){function l(n){return n}n.exports=l},f8af:function(n,e,l){var t=l("2474");function o(n){var e=new n.constructor(n.byteLength);return new t(e).set(new t(n)),e}n.exports=o},f9ce:function(n,e){function l(n){return function(e){return null==e?void 0:e[n]}}n.exports=l},fa21:function(n,e,l){var t=l("7530"),o=l("2dcb"),i=l("eac5");function c(n){return"function"!=typeof n.constructor||i(n)?{}:t(o(n))}n.exports=c},fab2:function(n,e,l){var t=l("7726").document;n.exports=t&&t.documentElement},fb15:function(n,e,l){"use strict";l.r(e);var t={};l.r(t),l.d(t,"createDefaultObject",function(){return H}),l.d(t,"getMultipleFields",function(){return Y}),l.d(t,"mergeMultiObjectFields",function(){return U}),l.d(t,"slugifyFormID",function(){return z}),l.d(t,"slugify",function(){return q});var o,i={};(l.r(i),l.d(i,"fieldCheckbox",function(){return Fn}),l.d(i,"fieldChecklist",function(){return Hn}),l.d(i,"fieldInput",function(){return Xn}),l.d(i,"fieldLabel",function(){return le}),l.d(i,"fieldRadios",function(){return ae}),l.d(i,"fieldSelect",function(){return ye}),l.d(i,"fieldSubmit",function(){return ke}),l.d(i,"fieldTextArea",function(){return Fe}),l.d(i,"fieldUpload",function(){return Be}),l.d(i,"fieldCleave",function(){return Ge}),l.d(i,"fieldDateTimePicker",function(){return ol}),l.d(i,"fieldGoogleAddress",function(){return ml}),l.d(i,"fieldImage",function(){return yl}),l.d(i,"fieldMasked",function(){return jl}),l.d(i,"fieldNoUiSlider",function(){return El}),l.d(i,"fieldPikaday",function(){return Ll}),l.d(i,"fieldRangeSlider",function(){return Xl}),l.d(i,"fieldSelectEx",function(){return tt}),l.d(i,"fieldSpectrum",function(){return st}),l.d(i,"fieldStaticMap",function(){return vt}),l.d(i,"fieldSwitch",function(){return St}),l.d(i,"fieldVueMultiSelect",function(){return It}),"undefined"!==typeof window)&&((o=window.document.currentScript)&&(o=o.src.match(/(.+\/)[^/]+\.js$/))&&(l.p=o[1]));l("7f7f"),l("ac6a");var c=function(){var n=this,e=n.$createElement,l=n._self._c||e;return null!=n.schema?l("div",{staticClass:"vue-form-generator"},[l("form-group",{attrs:{tag:n.tag,fields:n.fields,model:n.model,options:n.options,errors:n.errors,"event-bus":n.eventBus},scopedSlots:n._u([{key:"group-legend",fn:function(e){var t=e.group,o=e.groupLegend;return[n._t("group-legend",[o?l("legend",[l("span",{domProps:{innerHTML:n._s(o)}})]):n._e()],{group:t,groupLegend:o})]}},{key:"group-help",fn:function(e){var t=e.group;return[n._t("group-help",[t.help?l("span",{staticClass:"help"},[l("i",{staticClass:"icon"}),l("div",{staticClass:"helpText",domProps:{innerHTML:n._s(t.help)}})]):n._e()],{group:t})]}},{key:"element",fn:function(e){return[l("form-element",{attrs:{field:e.field,model:e.model,options:e.options,errors:e.errors,"event-bus":n.eventBus},scopedSlots:n._u([{key:"label",fn:function(e){var t=e.field,o=e.getValueFromOption;return[n._t("label",[l("span",{domProps:{innerHTML:n._s(t.label)}})],{field:t,getValueFromOption:o})]}},{key:"help",fn:function(e){var t=e.field,o=e.getValueFromOption;return[n._t("help",[t.help?l("span",{staticClass:"help"},[l("i",{staticClass:"icon"}),l("div",{staticClass:"helpText",domProps:{innerHTML:n._s(t.help)}})]):n._e()],{field:t,getValueFromOption:o})]}},{key:"hint",fn:function(e){var t=e.field,o=e.getValueFromOption;return[n._t("hint",[l("div",{staticClass:"hint",domProps:{innerHTML:n._s(o(t,"hint",void 0))}})],{field:t,getValueFromOption:o})]}},{key:"errors",fn:function(e){var t=e.childErrors,o=e.field,i=e.getValueFromOption;return[n._t("errors",[l("div",{staticClass:"errors help-block"},n._l(t,function(e,t){return l("span",{key:t,domProps:{innerHTML:n._s(e)}})}))],{errors:t,field:o,getValueFromOption:i})]}}])})]}}])})],1):n._e()},u=[],r=(l("551c"),l("6747")),a=l.n(r),s=l("9b02"),m=l.n(s),d=l("8bbf"),f=l.n(d),p=function(){var n=this,e=n.$createElement,l=n._self._c||e;return n.fields?l(n.tag,{ref:"group",tag:"fieldset",class:[n.groupRowClasses,n.validationClass]},[n._t("group-legend",null,{group:n.group,groupLegend:n.groupLegend}),n._t("group-help",null,{group:n.group}),n._l(n.fields,function(e,t){return[n.fieldVisible(e)?["group"===e.type?[l("form-group",{key:t,attrs:{fields:e.fields,group:e,tag:n.getGroupTag(e),model:n.model,options:n.options,errors:n.errors,"event-bus":n.eventBus},scopedSlots:n._u([{key:"group-legend",fn:function(e){return[n._t("group-legend",null,{group:e.group,groupLegend:e.groupLegend})]}},{key:"group-help",fn:function(e){return[n._t("group-help",null,{group:e.group})]}},{key:"element",fn:function(e){return[n._t("element",null,{field:e.field,model:e.model,options:e.options,errors:e.errors,eventBus:e.eventBus})]}}])})]:[n._t("element",null,{field:e,model:n.model,options:n.options,errors:n.errors,eventBus:n.eventBus})]]:n._e()]})],2):n._e()},b=[];function h(n,e,l){return e in n?Object.defineProperty(n,e,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[e]=l,n}var v=l("2768"),y=l.n(v),g=l("9520"),_=l.n(g),x=l("e2a0"),w=l.n(x),O={methods:{getStyleClasses:function(n,e){var l=n.styleClasses;return a()(l)?l.forEach(function(n){e[n]=!0}):w()(l)&&(e[l]=!0),e}}},S=function(){var n="D:\\dev\\vue-form-generator\\src\\formGroup.vue",e="6f7c2f1892f2b3aac935f542b34676571ee2c801",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\formGroup.vue",statementMap:{0:{start:{line:74,column:4},end:{line:74,column:14}},1:{start:{line:80,column:4},end:{line:80,column:14}},2:{start:{line:87,column:4},end:{line:87,column:28}},3:{start:{line:94,column:4},end:{line:94,column:14}},4:{start:{line:100,column:4},end:{line:100,column:14}},5:{start:{line:106,column:4},end:{line:106,column:14}},6:{start:{line:112,column:4},end:{line:112,column:14}},7:{start:{line:117,column:2},end:{line:119,column:4}},8:{start:{line:123,column:3},end:{line:125,column:4}},9:{start:{line:124,column:4},end:{line:124,column:29}},10:{start:{line:129,column:21},end:{line:131,column:4}},11:{start:{line:132,column:3},end:{line:134,column:4}},12:{start:{line:133,column:4},end:{line:133,column:64}},13:{start:{line:135,column:3},end:{line:135,column:22}},14:{start:{line:141,column:3},end:{line:143,column:4}},15:{start:{line:142,column:4},end:{line:142,column:61}},16:{start:{line:145,column:3},end:{line:147,column:4}},17:{start:{line:146,column:4},end:{line:146,column:16}},18:{start:{line:149,column:3},end:{line:149,column:24}},19:{start:{line:153,column:3},end:{line:157,column:4}},20:{start:{line:154,column:4},end:{line:154,column:21}},21:{start:{line:156,column:4},end:{line:156,column:20}},22:{start:{line:161,column:2},end:{line:172,column:5}},23:{start:{line:162,column:3},end:{line:171,column:6}},24:{start:{line:164,column:5},end:{line:166,column:15}},25:{start:{line:167,column:4},end:{line:170,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:73,column:3},end:{line:73,column:4}},loc:{start:{line:73,column:13},end:{line:75,column:4}},line:73},1:{name:"(anonymous_1)",decl:{start:{line:79,column:3},end:{line:79,column:4}},loc:{start:{line:79,column:13},end:{line:81,column:4}},line:79},2:{name:"(anonymous_2)",decl:{start:{line:86,column:3},end:{line:86,column:4}},loc:{start:{line:86,column:20},end:{line:88,column:4}},line:86},3:{name:"(anonymous_3)",decl:{start:{line:93,column:3},end:{line:93,column:4}},loc:{start:{line:93,column:13},end:{line:95,column:4}},line:93},4:{name:"(anonymous_4)",decl:{start:{line:99,column:3},end:{line:99,column:4}},loc:{start:{line:99,column:13},end:{line:101,column:4}},line:99},5:{name:"(anonymous_5)",decl:{start:{line:105,column:3},end:{line:105,column:4}},loc:{start:{line:105,column:13},end:{line:107,column:4}},line:105},6:{name:"(anonymous_6)",decl:{start:{line:111,column:3},end:{line:111,column:4}},loc:{start:{line:111,column:13},end:{line:113,column:4}},line:111},7:{name:"(anonymous_7)",decl:{start:{line:116,column:1},end:{line:116,column:2}},loc:{start:{line:116,column:8},end:{line:120,column:2}},line:116},8:{name:"(anonymous_8)",decl:{start:{line:122,column:2},end:{line:122,column:3}},loc:{start:{line:122,column:16},end:{line:126,column:3}},line:122},9:{name:"(anonymous_9)",decl:{start:{line:127,column:2},end:{line:127,column:3}},loc:{start:{line:127,column:20},end:{line:136,column:3}},line:127},10:{name:"(anonymous_10)",decl:{start:{line:140,column:2},end:{line:140,column:3}},loc:{start:{line:140,column:22},end:{line:150,column:3}},line:140},11:{name:"(anonymous_11)",decl:{start:{line:152,column:2},end:{line:152,column:3}},loc:{start:{line:152,column:21},end:{line:158,column:3}},line:152},12:{name:"(anonymous_12)",decl:{start:{line:160,column:1},end:{line:160,column:2}},loc:{start:{line:160,column:11},end:{line:173,column:2}},line:160},13:{name:"(anonymous_13)",decl:{start:{line:161,column:39},end:{line:161,column:40}},loc:{start:{line:161,column:45},end:{line:172,column:3}},line:161},14:{name:"(anonymous_14)",decl:{start:{line:162,column:18},end:{line:162,column:19}},loc:{start:{line:162,column:24},end:{line:171,column:4}},line:162}},branchMap:{0:{loc:{start:{line:123,column:3},end:{line:125,column:4}},type:"if",locations:[{start:{line:123,column:3},end:{line:125,column:4}},{start:{line:123,column:3},end:{line:125,column:4}}],line:123},1:{loc:{start:{line:123,column:7},end:{line:123,column:38}},type:"binary-expr",locations:[{start:{line:123,column:7},end:{line:123,column:17}},{start:{line:123,column:21},end:{line:123,column:38}}],line:123},2:{loc:{start:{line:132,column:3},end:{line:134,column:4}},type:"if",locations:[{start:{line:132,column:3},end:{line:134,column:4}},{start:{line:132,column:3},end:{line:134,column:4}}],line:132},3:{loc:{start:{line:141,column:3},end:{line:143,column:4}},type:"if",locations:[{start:{line:141,column:3},end:{line:143,column:4}},{start:{line:141,column:3},end:{line:143,column:4}}],line:141},4:{loc:{start:{line:145,column:3},end:{line:147,column:4}},type:"if",locations:[{start:{line:145,column:3},end:{line:147,column:4}},{start:{line:145,column:3},end:{line:147,column:4}}],line:145},5:{loc:{start:{line:153,column:3},end:{line:157,column:4}},type:"if",locations:[{start:{line:153,column:3},end:{line:157,column:4}},{start:{line:153,column:3},end:{line:157,column:4}}],line:153}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),j={name:"form-group",mixins:[O],props:{fields:{type:Array,default:function(){return S.f[0]++,S.s[0]++,[]}},group:{type:Object,default:function(){return S.f[1]++,S.s[1]++,{}}},tag:{type:String,default:"fieldset",validator:function(n){return S.f[2]++,S.s[2]++,n.length>0}},model:{type:Object,default:function(){return S.f[3]++,S.s[3]++,{}}},options:{type:Object,default:function(){return S.f[4]++,S.s[4]++,{}}},errors:{type:Array,default:function(){return S.f[5]++,S.s[5]++,[]}},eventBus:{type:Object,default:function(){return S.f[6]++,S.s[6]++,{}}}},data:function(){return S.f[7]++,S.s[7]++,{validationClass:{}}},computed:{groupLegend:function(){if(S.f[8]++,S.s[8]++,S.b[1][0]++,this.group&&(S.b[1][1]++,this.group.legend))return S.b[0][0]++,S.s[9]++,this.group.legend;S.b[0][1]++},groupRowClasses:function(){S.f[9]++;var n=(S.s[10]++,{"field-group":!0});return S.s[11]++,y()(this.group)?S.b[2][1]++:(S.b[2][0]++,S.s[12]++,n=this.getStyleClasses(this.group,n)),S.s[13]++,n}},methods:{fieldVisible:function(n){return S.f[10]++,S.s[14]++,_()(n.visible)?(S.b[3][0]++,S.s[15]++,n.visible.call(this,this.model,n,this)):(S.b[3][1]++,S.s[16]++,y()(n.visible)?(S.b[4][0]++,S.s[17]++,!0):(S.b[4][1]++,S.s[18]++,n.visible))},getGroupTag:function(n){return S.f[11]++,S.s[19]++,y()(n.tag)?(S.b[5][1]++,S.s[21]++,this.tag):(S.b[5][0]++,S.s[20]++,n.tag)}},created:function(){var n=this;S.f[12]++,S.s[22]++,this.eventBus.$on("field-validated",function(){S.f[13]++,S.s[23]++,n.$nextTick(function(){var e;S.f[14]++;var l=(S.s[24]++,null!==n.$refs.group.querySelector(".form-element."+m()(n.options,"validationErrorClass","error")));S.s[25]++,n.validationClass=(e={},h(e,m()(n.options,"validationErrorClass","error"),l),h(e,m()(n.options,"validationSuccessClass","valid"),!l),e)})})}},M=j;function k(n,e,l,t,o,i,c,u){var r,a="function"===typeof n?n.options:n;if(e&&(a.render=e,a.staticRenderFns=l,a._compiled=!0),t&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),c?(r=function(n){n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,n||"undefined"===typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),o&&o.call(this,n),n&&n._registeredComponents&&n._registeredComponents.add(c)},a._ssrRegister=r):o&&(r=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),r)if(a.functional){a._injectStyles=r;var s=a.render;a.render=function(n,e){return r.call(e),s(n,e)}}else{var m=a.beforeCreate;a.beforeCreate=m?[].concat(m,r):[r]}return{exports:n,options:a}}var C=k(M,p,b,!1,null,null,null);C.options.__file="formGroup.vue";var D=C.exports,T=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{staticClass:"form-element",class:[n.fieldRowClasses]},[n.fieldTypeHasLabel?l("label",{class:n.field.labelClasses,attrs:{for:n.fieldID}},[n._t("label",null,{field:n.field,getValueFromOption:n.getValueFromOption}),n._t("help",null,{field:n.field,getValueFromOption:n.getValueFromOption})],2):n._e(),l("div",{staticClass:"field-wrap"},[l(n.fieldType,{ref:"child",tag:"component",attrs:{model:n.model,schema:n.field,"form-options":n.options,"event-bus":n.eventBus,"field-id":n.fieldID},on:{"field-touched":n.onFieldTouched,"errors-updated":n.onChildValidated}}),n.buttonsAreVisible?l("div",{staticClass:"buttons"},n._l(n.field.buttons,function(e,t){return l("button",{key:t,class:e.classes,domProps:{textContent:n._s(e.label)},on:{click:function(l){n.buttonClickHandler(e,n.field,l)}}})})):n._e()],1),n.fieldHasHint?[n._t("hint",null,{field:n.field,getValueFromOption:n.getValueFromOption})]:n._e(),n.fieldHasErrors?[n._t("errors",null,{childErrors:n.childErrors,field:n.field,getValueFromOption:n.getValueFromOption})]:n._e()],2)},I=[],E=(l("6762"),l("6b54"),l("a481"),l("0644")),F=l.n(E),N=l("1a8c"),P=l.n(N),A=l("c641"),V=l.n(A),L=l("0f5c"),B=l.n(L),R=function(){var n="D:\\dev\\vue-form-generator\\src\\utils\\schema.js",e="a53cef1e41564f1bee324738d46948dfa72edad7",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\utils\\schema.js",statementMap:{0:{start:{line:4,column:28},end:{line:15,column:1}},1:{start:{line:5,column:1},end:{line:13,column:4}},2:{start:{line:6,column:2},end:{line:12,column:3}},3:{start:{line:7,column:3},end:{line:11,column:47}},4:{start:{line:8,column:4},end:{line:8,column:61}},5:{start:{line:9,column:10},end:{line:11,column:47}},6:{start:{line:10,column:4},end:{line:10,column:52}},7:{start:{line:11,column:10},end:{line:11,column:47}},8:{start:{line:14,column:1},end:{line:14,column:12}},9:{start:{line:18,column:26},end:{line:25,column:1}},10:{start:{line:19,column:11},end:{line:19,column:13}},11:{start:{line:20,column:1},end:{line:22,column:4}},12:{start:{line:21,column:2},end:{line:21,column:44}},13:{start:{line:21,column:28},end:{line:21,column:44}},14:{start:{line:24,column:1},end:{line:24,column:12}},15:{start:{line:28,column:31},end:{line:52,column:1}},16:{start:{line:29,column:13},end:{line:29,column:15}},17:{start:{line:31,column:14},end:{line:31,column:39}},18:{start:{line:33,column:1},end:{line:49,column:4}},19:{start:{line:35,column:15},end:{line:35,column:19}},20:{start:{line:36,column:13},end:{line:36,column:24}},21:{start:{line:38,column:2},end:{line:46,column:5}},22:{start:{line:39,column:11},end:{line:39,column:25}},23:{start:{line:40,column:3},end:{line:45,column:4}},24:{start:{line:41,column:4},end:{line:41,column:20}},25:{start:{line:42,column:4},end:{line:42,column:19}},26:{start:{line:43,column:10},end:{line:45,column:4}},27:{start:{line:44,column:4},end:{line:44,column:28}},28:{start:{line:48,column:2},end:{line:48,column:32}},29:{start:{line:51,column:1},end:{line:51,column:14}},30:{start:{line:54,column:22},end:{line:80,column:1}},31:{start:{line:57,column:1},end:{line:79,column:2}},32:{start:{line:59,column:2},end:{line:59,column:28}},33:{start:{line:62,column:2},end:{line:78,column:4}},34:{start:{line:82,column:16},end:{line:100,column:1}},35:{start:{line:84,column:1},end:{line:99,column:3}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:28},end:{line:4,column:29}},loc:{start:{line:4,column:50},end:{line:15,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:5,column:21},end:{line:5,column:22}},loc:{start:{line:5,column:32},end:{line:13,column:2}},line:5},2:{name:"(anonymous_2)",decl:{start:{line:18,column:26},end:{line:18,column:27}},loc:{start:{line:18,column:38},end:{line:25,column:1}},line:18},3:{name:"(anonymous_3)",decl:{start:{line:20,column:21},end:{line:20,column:22}},loc:{start:{line:20,column:32},end:{line:22,column:2}},line:20},4:{name:"(anonymous_4)",decl:{start:{line:28,column:31},end:{line:28,column:32}},loc:{start:{line:28,column:49},end:{line:52,column:1}},line:28},5:{name:"(anonymous_5)",decl:{start:{line:33,column:14},end:{line:33,column:15}},loc:{start:{line:33,column:25},end:{line:49,column:2}},line:33},6:{name:"(anonymous_6)",decl:{start:{line:38,column:13},end:{line:38,column:14}},loc:{start:{line:38,column:22},end:{line:46,column:3}},line:38},7:{name:"(anonymous_7)",decl:{start:{line:54,column:22},end:{line:54,column:23}},loc:{start:{line:54,column:47},end:{line:80,column:1}},line:54},8:{name:"(anonymous_8)",decl:{start:{line:82,column:16},end:{line:82,column:17}},loc:{start:{line:82,column:31},end:{line:100,column:1}},line:82}},branchMap:{0:{loc:{start:{line:4,column:37},end:{line:4,column:45}},type:"default-arg",locations:[{start:{line:4,column:43},end:{line:4,column:45}}],line:4},1:{loc:{start:{line:6,column:2},end:{line:12,column:3}},type:"if",locations:[{start:{line:6,column:2},end:{line:12,column:3}},{start:{line:6,column:2},end:{line:12,column:3}}],line:6},2:{loc:{start:{line:6,column:6},end:{line:6,column:72}},type:"binary-expr",locations:[{start:{line:6,column:6},end:{line:6,column:41}},{start:{line:6,column:45},end:{line:6,column:72}}],line:6},3:{loc:{start:{line:7,column:3},end:{line:11,column:47}},type:"if",locations:[{start:{line:7,column:3},end:{line:11,column:47}},{start:{line:7,column:3},end:{line:11,column:47}}],line:7},4:{loc:{start:{line:9,column:10},end:{line:11,column:47}},type:"if",locations:[{start:{line:9,column:10},end:{line:11,column:47}},{start:{line:9,column:10},end:{line:11,column:47}}],line:9},5:{loc:{start:{line:9,column:14},end:{line:9,column:63}},type:"binary-expr",locations:[{start:{line:9,column:14},end:{line:9,column:37}},{start:{line:9,column:41},end:{line:9,column:63}}],line:9},6:{loc:{start:{line:21,column:2},end:{line:21,column:44}},type:"if",locations:[{start:{line:21,column:2},end:{line:21,column:44}},{start:{line:21,column:2},end:{line:21,column:44}}],line:21},7:{loc:{start:{line:40,column:3},end:{line:45,column:4}},type:"if",locations:[{start:{line:40,column:3},end:{line:45,column:4}},{start:{line:40,column:3},end:{line:45,column:4}}],line:40},8:{loc:{start:{line:43,column:10},end:{line:45,column:4}},type:"if",locations:[{start:{line:43,column:10},end:{line:45,column:4}},{start:{line:43,column:10},end:{line:45,column:4}}],line:43},9:{loc:{start:{line:54,column:31},end:{line:54,column:42}},type:"default-arg",locations:[{start:{line:54,column:40},end:{line:54,column:42}}],line:54},10:{loc:{start:{line:57,column:1},end:{line:79,column:2}},type:"if",locations:[{start:{line:57,column:1},end:{line:79,column:2}},{start:{line:57,column:1},end:{line:79,column:2}}],line:57},11:{loc:{start:{line:64,column:4},end:{line:64,column:58}},type:"binary-expr",locations:[{start:{line:64,column:4},end:{line:64,column:20}},{start:{line:64,column:24},end:{line:64,column:36}},{start:{line:64,column:40},end:{line:64,column:52}},{start:{line:64,column:56},end:{line:64,column:58}}],line:64},12:{loc:{start:{line:82,column:17},end:{line:82,column:26}},type:"default-arg",locations:[{start:{line:82,column:24},end:{line:82,column:26}}],line:82}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0],10:[0,0],11:[0,0,0,0],12:[0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}();R.s[0]++;var H=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(R.b[0][0]++,{});return R.f[0]++,R.s[1]++,V()(n.fields,function(l){R.f[1]++,R.s[2]++,R.b[2][0]++,void 0===m()(e,l.model)&&(R.b[2][1]++,void 0!==l.default)?(R.b[1][0]++,R.s[3]++,_()(l.default)?(R.b[3][0]++,R.s[4]++,B()(e,l.model,l.default(l,n,e))):(R.b[3][1]++,R.s[5]++,R.b[5][0]++,P()(l.default)||(R.b[5][1]++,a()(l.default))?(R.b[4][0]++,R.s[6]++,B()(e,l.model,F()(l.default))):(R.b[4][1]++,R.s[7]++,B()(e,l.model,l.default)))):R.b[1][1]++}),R.s[8]++,e};R.s[9]++;var Y=function(n){R.f[2]++;var e=(R.s[10]++,[]);return R.s[11]++,V()(n.fields,function(n){R.f[3]++,R.s[12]++,!0===n.multi?(R.b[6][0]++,R.s[13]++,e.push(n)):R.b[6][1]++}),R.s[14]++,e};R.s[15]++;var U=function(n,e){R.f[4]++;var l=(R.s[16]++,{}),t=(R.s[17]++,Y(n));return R.s[18]++,V()(t,function(n){var t;R.f[5]++;var o=(R.s[19]++,!0),i=(R.s[20]++,n.model);R.s[21]++,V()(e,function(n){R.f[6]++;var e=(R.s[22]++,m()(n,i));R.s[23]++,o?(R.b[7][0]++,R.s[24]++,t=e,R.s[25]++,o=!1):(R.b[7][1]++,R.s[26]++,t!==e?(R.b[8][0]++,R.s[27]++,t=void 0):R.b[8][1]++)}),R.s[28]++,B()(l,i,t)}),R.s[29]++,l};R.s[30]++;var z=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(R.b[9][0]++,"");return R.f[7]++,R.s[31]++,y()(n.id)?(R.b[10][1]++,R.s[33]++,e+(R.b[11][0]++,n.inputName||(R.b[11][1]++,n.label)||(R.b[11][2]++,n.model)||(R.b[11][3]++,"")).toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")):(R.b[10][0]++,R.s[32]++,e+n.id)};R.s[34]++;var q=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(R.b[12][0]++,"");return R.f[8]++,R.s[35]++,n.toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_/./:]+)/g,"")},G=function(){var n="D:\\dev\\vue-form-generator\\src\\formElement.vue",e="ce162c16619138421bf005fefa40794742d45759",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\formElement.vue",statementMap:{0:{start:{line:70,column:4},end:{line:70,column:14}},1:{start:{line:76,column:4},end:{line:76,column:14}},2:{start:{line:86,column:4},end:{line:86,column:14}},3:{start:{line:92,column:4},end:{line:92,column:14}},4:{start:{line:97,column:2},end:{line:100,column:4}},5:{start:{line:104,column:20},end:{line:104,column:61}},6:{start:{line:105,column:3},end:{line:105,column:46}},7:{start:{line:109,column:3},end:{line:109,column:37}},8:{start:{line:113,column:3},end:{line:115,column:4}},9:{start:{line:114,column:4},end:{line:114,column:17}},10:{start:{line:116,column:22},end:{line:116,column:73}},11:{start:{line:117,column:19},end:{line:117,column:70}},12:{start:{line:118,column:22},end:{line:118,column:74}},13:{start:{line:119,column:28},end:{line:119,column:57}},14:{start:{line:121,column:3},end:{line:121,column:51}},15:{start:{line:124,column:3},end:{line:124,column:34}},16:{start:{line:127,column:3},end:{line:127,column:38}},17:{start:{line:130,column:21},end:{line:138,column:4}},18:{start:{line:140,column:3},end:{line:140,column:63}},19:{start:{line:142,column:3},end:{line:144,column:4}},20:{start:{line:143,column:4},end:{line:143,column:51}},21:{start:{line:146,column:3},end:{line:146,column:22}},22:{start:{line:149,column:3},end:{line:149,column:71}},23:{start:{line:154,column:3},end:{line:156,column:4}},24:{start:{line:155,column:4},end:{line:155,column:61}},25:{start:{line:158,column:3},end:{line:160,column:4}},26:{start:{line:159,column:4},end:{line:159,column:24}},27:{start:{line:162,column:3},end:{line:162,column:24}},28:{start:{line:166,column:3},end:{line:166,column:65}},29:{start:{line:169,column:3},end:{line:169,column:28}},30:{start:{line:172,column:3},end:{line:172,column:29}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:69,column:3},end:{line:69,column:4}},loc:{start:{line:69,column:13},end:{line:71,column:4}},line:69},1:{name:"(anonymous_1)",decl:{start:{line:75,column:3},end:{line:75,column:4}},loc:{start:{line:75,column:13},end:{line:77,column:4}},line:75},2:{name:"(anonymous_2)",decl:{start:{line:85,column:3},end:{line:85,column:4}},loc:{start:{line:85,column:13},end:{line:87,column:4}},line:85},3:{name:"(anonymous_3)",decl:{start:{line:91,column:3},end:{line:91,column:4}},loc:{start:{line:91,column:13},end:{line:93,column:4}},line:91},4:{name:"(anonymous_4)",decl:{start:{line:96,column:1},end:{line:96,column:2}},loc:{start:{line:96,column:8},end:{line:101,column:2}},line:96},5:{name:"(anonymous_5)",decl:{start:{line:103,column:2},end:{line:103,column:3}},loc:{start:{line:103,column:12},end:{line:106,column:3}},line:103},6:{name:"(anonymous_6)",decl:{start:{line:108,column:2},end:{line:108,column:3}},loc:{start:{line:108,column:14},end:{line:110,column:3}},line:108},7:{name:"(anonymous_7)",decl:{start:{line:112,column:2},end:{line:112,column:3}},loc:{start:{line:112,column:22},end:{line:122,column:3}},line:112},8:{name:"(anonymous_8)",decl:{start:{line:123,column:2},end:{line:123,column:3}},loc:{start:{line:123,column:17},end:{line:125,column:3}},line:123},9:{name:"(anonymous_9)",decl:{start:{line:126,column:2},end:{line:126,column:3}},loc:{start:{line:126,column:19},end:{line:128,column:3}},line:126},10:{name:"(anonymous_10)",decl:{start:{line:129,column:2},end:{line:129,column:3}},loc:{start:{line:129,column:20},end:{line:147,column:3}},line:129},11:{name:"(anonymous_11)",decl:{start:{line:148,column:2},end:{line:148,column:3}},loc:{start:{line:148,column:22},end:{line:150,column:3}},line:148},12:{name:"(anonymous_12)",decl:{start:{line:153,column:2},end:{line:153,column:3}},loc:{start:{line:153,column:58},end:{line:163,column:3}},line:153},13:{name:"(anonymous_13)",decl:{start:{line:165,column:2},end:{line:165,column:3}},loc:{start:{line:165,column:40},end:{line:167,column:3}},line:165},14:{name:"(anonymous_14)",decl:{start:{line:168,column:2},end:{line:168,column:3}},loc:{start:{line:168,column:19},end:{line:170,column:3}},line:168},15:{name:"(anonymous_15)",decl:{start:{line:171,column:2},end:{line:171,column:3}},loc:{start:{line:171,column:27},end:{line:173,column:3}},line:171}},branchMap:{0:{loc:{start:{line:113,column:3},end:{line:115,column:4}},type:"if",locations:[{start:{line:113,column:3},end:{line:115,column:4}},{start:{line:113,column:3},end:{line:115,column:4}}],line:113},1:{loc:{start:{line:117,column:19},end:{line:117,column:70}},type:"binary-expr",locations:[{start:{line:117,column:19},end:{line:117,column:46}},{start:{line:117,column:50},end:{line:117,column:70}}],line:117},2:{loc:{start:{line:118,column:22},end:{line:118,column:74}},type:"cond-expr",locations:[{start:{line:118,column:34},end:{line:118,column:56}},{start:{line:118,column:59},end:{line:118,column:74}}],line:118},3:{loc:{start:{line:132,column:63},end:{line:132,column:104}},type:"binary-expr",locations:[{start:{line:132,column:63},end:{line:132,column:83}},{start:{line:132,column:87},end:{line:132,column:104}}],line:132},4:{loc:{start:{line:133,column:61},end:{line:133,column:103}},type:"binary-expr",locations:[{start:{line:133,column:61},end:{line:133,column:81}},{start:{line:133,column:85},end:{line:133,column:103}}],line:133},5:{loc:{start:{line:142,column:3},end:{line:144,column:4}},type:"if",locations:[{start:{line:142,column:3},end:{line:144,column:4}},{start:{line:142,column:3},end:{line:144,column:4}}],line:142},6:{loc:{start:{line:149,column:10},end:{line:149,column:70}},type:"binary-expr",locations:[{start:{line:149,column:10},end:{line:149,column:37}},{start:{line:149,column:41},end:{line:149,column:70}}],line:149},7:{loc:{start:{line:153,column:36},end:{line:153,column:56}},type:"default-arg",locations:[{start:{line:153,column:51},end:{line:153,column:56}}],line:153},8:{loc:{start:{line:154,column:3},end:{line:156,column:4}},type:"if",locations:[{start:{line:154,column:3},end:{line:156,column:4}},{start:{line:154,column:3},end:{line:156,column:4}}],line:154},9:{loc:{start:{line:158,column:3},end:{line:160,column:4}},type:"if",locations:[{start:{line:158,column:3},end:{line:160,column:4}},{start:{line:158,column:3},end:{line:160,column:4}}],line:158}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0],8:[0,0],9:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Z={name:"form-element",mixins:[O],props:{model:{type:Object,default:function(){return G.f[0]++,G.s[0]++,{}}},options:{type:Object,default:function(){return G.f[1]++,G.s[1]++,{}}},field:{type:Object,required:!0},errors:{type:Array,default:function(){return G.f[2]++,G.s[2]++,[]}},eventBus:{type:Object,default:function(){return G.f[3]++,G.s[3]++,{}}}},data:function(){return G.f[4]++,G.s[4]++,{childErrors:[],childTouched:!1}},computed:{fieldID:function(){G.f[5]++;var n=(G.s[5]++,m()(this.options,"fieldIdPrefix",""));return G.s[6]++,z(this.field,n)},fieldType:function(){return G.f[6]++,G.s[7]++,"field-"+this.field.type},fieldTypeHasLabel:function(){if(G.f[7]++,G.s[8]++,y()(this.field.label))return G.b[0][0]++,G.s[9]++,!1;G.b[0][1]++;var n=(G.s[10]++,this.getValueFromOption(this.field,"fieldOptions")),e=(G.s[11]++,G.b[1][0]++,"input"===this.field.type&&(G.b[1][1]++,!y()(n))),l=(G.s[12]++,e?(G.b[2][0]++,n.inputType):(G.b[2][1]++,this.field.type)),t=(G.s[13]++,["button","submit","reset"]);return G.s[14]++,!t.includes(l)},fieldHasHint:function(){return G.f[8]++,G.s[15]++,!y()(this.field.hint)},fieldHasErrors:function(){return G.f[9]++,G.s[16]++,this.childErrors.length>0},fieldRowClasses:function(){var n;G.f[10]++;var e=(G.s[17]++,n={},h(n,m()(this.options,"validationErrorClass","error"),this.fieldHasErrors),h(n,m()(this.options,"validationSuccessClass","valid"),(G.b[3][0]++,!this.fieldHasErrors&&(G.b[3][1]++,this.childTouched))),h(n,m()(this.options,"validationCleanClass","clean"),(G.b[4][0]++,!this.fieldHasErrors&&(G.b[4][1]++,!this.childTouched))),h(n,"disabled",this.getValueFromOption(this.field,"disabled")),h(n,"readonly",this.getValueFromOption(this.field,"readonly")),h(n,"featured",this.getValueFromOption(this.field,"featured")),h(n,"required",this.getValueFromOption(this.field,"required")),n);return G.s[18]++,e=this.getStyleClasses(this.field,e),G.s[19]++,y()(this.field.type)?G.b[5][1]++:(G.b[5][0]++,G.s[20]++,e["field-"+this.field.type]=!0),G.s[21]++,e},buttonsAreVisible:function(){return G.f[11]++,G.s[22]++,G.b[6][0]++,a()(this.field.buttons)&&(G.b[6][1]++,this.field.buttons.length>0)}},methods:{getValueFromOption:function(n,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(G.b[7][0]++,!1);return G.f[12]++,G.s[23]++,_()(n[e])?(G.b[8][0]++,G.s[24]++,n[e].call(this,this.model,n,this)):(G.b[8][1]++,G.s[25]++,y()(n[e])?(G.b[9][0]++,G.s[26]++,l):(G.b[9][1]++,G.s[27]++,n[e]))},buttonClickHandler:function(n,e,l){return G.f[13]++,G.s[28]++,n.onclick.call(this,this.model,e,l,this)},onFieldTouched:function(){G.f[14]++,G.s[29]++,this.childTouched=!0},onChildValidated:function(n){G.f[15]++,G.s[30]++,this.childErrors=n}}},W=Z,X=(l("b7fb"),k(W,T,I,!1,null,null,null));X.options.__file="formElement.vue";var J=X.exports,K=function(){var n="D:\\dev\\vue-form-generator\\src\\formGenerator.vue",e="db4e640ecbe1b1eb8d262df4419d404d2ae8a540",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\formGenerator.vue",statementMap:{0:{start:{line:127,column:4},end:{line:127,column:14}},1:{start:{line:134,column:4},end:{line:134,column:14}},2:{start:{line:141,column:4},end:{line:147,column:6}},3:{start:{line:160,column:4},end:{line:160,column:28}},4:{start:{line:166,column:19},end:{line:166,column:28}},5:{start:{line:167,column:2},end:{line:171,column:4}},6:{start:{line:176,column:3},end:{line:178,column:4}},7:{start:{line:177,column:4},end:{line:177,column:30}},8:{start:{line:186,column:4},end:{line:189,column:5}},9:{start:{line:188,column:5},end:{line:188,column:12}},10:{start:{line:191,column:4},end:{line:200,column:5}},11:{start:{line:192,column:5},end:{line:199,column:8}},12:{start:{line:194,column:6},end:{line:198,column:7}},13:{start:{line:195,column:7},end:{line:195,column:48}},14:{start:{line:197,column:7},end:{line:197,column:36}},15:{start:{line:203,column:4},end:{line:203,column:16}},16:{start:{line:210,column:3},end:{line:217,column:4}},17:{start:{line:211,column:4},end:{line:216,column:7}},18:{start:{line:212,column:5},end:{line:215,column:8}},19:{start:{line:223,column:3},end:{line:223,column:58}},20:{start:{line:223,column:43},end:{line:223,column:56}},21:{start:{line:225,column:3},end:{line:225,column:50}},22:{start:{line:227,column:17},end:{line:227,column:41}},23:{start:{line:228,column:3},end:{line:228,column:55}},24:{start:{line:232,column:3},end:{line:232,column:47}},25:{start:{line:237,column:3},end:{line:277,column:6}},26:{start:{line:238,column:4},end:{line:238,column:33}},27:{start:{line:240,column:26},end:{line:240,column:27}},28:{start:{line:242,column:21},end:{line:242,column:23}},29:{start:{line:244,column:4},end:{line:248,column:7}},30:{start:{line:246,column:5},end:{line:246,column:69}},31:{start:{line:247,column:5},end:{line:247,column:24}},32:{start:{line:250,column:20},end:{line:271,column:5}},33:{start:{line:251,column:5},end:{line:251,column:23}},34:{start:{line:253,column:5},end:{line:253,column:51}},35:{start:{line:255,column:5},end:{line:270,column:6}},36:{start:{line:256,column:6},end:{line:256,column:53}},37:{start:{line:257,column:6},end:{line:259,column:7}},38:{start:{line:258,column:7},end:{line:258,column:67}},39:{start:{line:260,column:6},end:{line:260,column:31}},40:{start:{line:261,column:20},end:{line:261,column:43}},41:{start:{line:262,column:6},end:{line:262,column:57}},42:{start:{line:263,column:6},end:{line:263,column:70}},43:{start:{line:265,column:6},end:{line:269,column:7}},44:{start:{line:266,column:7},end:{line:266,column:17}},45:{start:{line:268,column:7},end:{line:268,column:26}},46:{start:{line:272,column:4},end:{line:274,column:5}},47:{start:{line:273,column:5},end:{line:273,column:66}},48:{start:{line:275,column:4},end:{line:275,column:50}},49:{start:{line:276,column:4},end:{line:276,column:49}},50:{start:{line:282,column:3},end:{line:282,column:25}},51:{start:{line:283,column:3},end:{line:283,column:78}},52:{start:{line:288,column:2},end:{line:290,column:3}},53:{start:{line:289,column:3},end:{line:289,column:63}},54:{start:{line:291,column:2},end:{line:291,column:58}},55:{start:{line:292,column:2},end:{line:292,column:64}},56:{start:{line:293,column:2},end:{line:295,column:5}},57:{start:{line:294,column:3},end:{line:294,column:59}},58:{start:{line:296,column:2},end:{line:298,column:5}},59:{start:{line:297,column:3},end:{line:297,column:59}},60:{start:{line:301,column:2},end:{line:301,column:40}},61:{start:{line:302,column:2},end:{line:302,column:38}},62:{start:{line:303,column:2},end:{line:303,column:50}},63:{start:{line:304,column:2},end:{line:304,column:42}},64:{start:{line:305,column:2},end:{line:305,column:44}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:126,column:3},end:{line:126,column:4}},loc:{start:{line:126,column:13},end:{line:128,column:4}},line:126},1:{name:"(anonymous_1)",decl:{start:{line:133,column:3},end:{line:133,column:4}},loc:{start:{line:133,column:13},end:{line:135,column:4}},line:133},2:{name:"(anonymous_2)",decl:{start:{line:140,column:3},end:{line:140,column:4}},loc:{start:{line:140,column:13},end:{line:148,column:4}},line:140},3:{name:"(anonymous_3)",decl:{start:{line:159,column:3},end:{line:159,column:4}},loc:{start:{line:159,column:20},end:{line:161,column:4}},line:159},4:{name:"(anonymous_4)",decl:{start:{line:165,column:1},end:{line:165,column:2}},loc:{start:{line:165,column:8},end:{line:172,column:2}},line:165},5:{name:"(anonymous_5)",decl:{start:{line:175,column:2},end:{line:175,column:3}},loc:{start:{line:175,column:11},end:{line:179,column:3}},line:175},6:{name:"(anonymous_6)",decl:{start:{line:185,column:3},end:{line:185,column:4}},loc:{start:{line:185,column:31},end:{line:201,column:4}},line:185},7:{name:"(anonymous_7)",decl:{start:{line:192,column:20},end:{line:192,column:21}},loc:{start:{line:192,column:26},end:{line:199,column:6}},line:192},8:{name:"(anonymous_8)",decl:{start:{line:195,column:28},end:{line:195,column:29}},loc:{start:{line:195,column:34},end:{line:195,column:36}},line:195},9:{name:"(anonymous_9)",decl:{start:{line:195,column:38},end:{line:195,column:39}},loc:{start:{line:195,column:44},end:{line:195,column:46}},line:195},10:{name:"(anonymous_10)",decl:{start:{line:202,column:14},end:{line:202,column:15}},loc:{start:{line:202,column:20},end:{line:204,column:4}},line:202},11:{name:"(anonymous_11)",decl:{start:{line:209,column:2},end:{line:209,column:3}},loc:{start:{line:209,column:39},end:{line:218,column:3}},line:209},12:{name:"(anonymous_12)",decl:{start:{line:211,column:24},end:{line:211,column:25}},loc:{start:{line:211,column:35},end:{line:216,column:5}},line:211},13:{name:"(anonymous_13)",decl:{start:{line:221,column:2},end:{line:221,column:3}},loc:{start:{line:221,column:51},end:{line:229,column:3}},line:221},14:{name:"(anonymous_14)",decl:{start:{line:223,column:36},end:{line:223,column:37}},loc:{start:{line:223,column:43},end:{line:223,column:56}},line:223},15:{name:"(anonymous_15)",decl:{start:{line:231,column:2},end:{line:231,column:3}},loc:{start:{line:231,column:33},end:{line:233,column:3}},line:231},16:{name:"(anonymous_16)",decl:{start:{line:236,column:2},end:{line:236,column:3}},loc:{start:{line:236,column:13},end:{line:278,column:3}},line:236},17:{name:"(anonymous_17)",decl:{start:{line:237,column:22},end:{line:237,column:23}},loc:{start:{line:237,column:43},end:{line:277,column:4}},line:237},18:{name:"(anonymous_18)",decl:{start:{line:244,column:45},end:{line:244,column:46}},loc:{start:{line:244,column:51},end:{line:248,column:5}},line:244},19:{name:"(anonymous_19)",decl:{start:{line:250,column:20},end:{line:250,column:21}},loc:{start:{line:250,column:51},end:{line:271,column:5}},line:250},20:{name:"(anonymous_20)",decl:{start:{line:281,column:2},end:{line:281,column:3}},loc:{start:{line:281,column:26},end:{line:284,column:3}},line:281},21:{name:"(anonymous_21)",decl:{start:{line:287,column:1},end:{line:287,column:2}},loc:{start:{line:287,column:11},end:{line:299,column:2}},line:287},22:{name:"(anonymous_22)",decl:{start:{line:293,column:41},end:{line:293,column:42}},loc:{start:{line:293,column:47},end:{line:295,column:3}},line:293},23:{name:"(anonymous_23)",decl:{start:{line:296,column:43},end:{line:296,column:44}},loc:{start:{line:296,column:49},end:{line:298,column:3}},line:296},24:{name:"(anonymous_24)",decl:{start:{line:300,column:1},end:{line:300,column:2}},loc:{start:{line:300,column:17},end:{line:306,column:2}},line:300}},branchMap:{0:{loc:{start:{line:176,column:3},end:{line:178,column:4}},type:"if",locations:[{start:{line:176,column:3},end:{line:178,column:4}},{start:{line:176,column:3},end:{line:178,column:4}}],line:176},1:{loc:{start:{line:176,column:7},end:{line:176,column:40}},type:"binary-expr",locations:[{start:{line:176,column:7},end:{line:176,column:18}},{start:{line:176,column:22},end:{line:176,column:40}}],line:176},2:{loc:{start:{line:186,column:4},end:{line:189,column:5}},type:"if",locations:[{start:{line:186,column:4},end:{line:189,column:5}},{start:{line:186,column:4},end:{line:189,column:5}}],line:186},3:{loc:{start:{line:191,column:4},end:{line:200,column:5}},type:"if",locations:[{start:{line:191,column:4},end:{line:200,column:5}},{start:{line:191,column:4},end:{line:200,column:5}}],line:191},4:{loc:{start:{line:194,column:6},end:{line:198,column:7}},type:"if",locations:[{start:{line:194,column:6},end:{line:198,column:7}},{start:{line:194,column:6},end:{line:198,column:7}}],line:194},5:{loc:{start:{line:194,column:10},end:{line:194,column:77}},type:"binary-expr",locations:[{start:{line:194,column:10},end:{line:194,column:49}},{start:{line:194,column:53},end:{line:194,column:77}}],line:194},6:{loc:{start:{line:210,column:3},end:{line:217,column:4}},type:"if",locations:[{start:{line:210,column:3},end:{line:217,column:4}},{start:{line:210,column:3},end:{line:217,column:4}}],line:210},7:{loc:{start:{line:210,column:7},end:{line:210,column:53}},type:"binary-expr",locations:[{start:{line:210,column:7},end:{line:210,column:27}},{start:{line:210,column:31},end:{line:210,column:53}}],line:210},8:{loc:{start:{line:255,column:5},end:{line:270,column:6}},type:"if",locations:[{start:{line:255,column:5},end:{line:270,column:6}},{start:{line:255,column:5},end:{line:270,column:6}}],line:255},9:{loc:{start:{line:257,column:6},end:{line:259,column:7}},type:"if",locations:[{start:{line:257,column:6},end:{line:259,column:7}},{start:{line:257,column:6},end:{line:259,column:7}}],line:257},10:{loc:{start:{line:265,column:6},end:{line:269,column:7}},type:"if",locations:[{start:{line:265,column:6},end:{line:269,column:7}},{start:{line:265,column:6},end:{line:269,column:7}}],line:265},11:{loc:{start:{line:272,column:4},end:{line:274,column:5}},type:"if",locations:[{start:{line:272,column:4},end:{line:274,column:5}},{start:{line:272,column:4},end:{line:274,column:5}}],line:272},12:{loc:{start:{line:288,column:2},end:{line:290,column:3}},type:"if",locations:[{start:{line:288,column:2},end:{line:290,column:3}},{start:{line:288,column:2},end:{line:290,column:3}}],line:288}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Q={name:"form-generator",components:{formGroup:D,formElement:J},props:{schema:{type:Object,default:function(){return K.f[0]++,K.s[0]++,{}}},model:{type:Object,default:function(){return K.f[1]++,K.s[1]++,{}}},options:{type:Object,default:function(){return K.f[2]++,K.s[2]++,{validateAfterLoad:!1,validateAsync:!1,validateAfterChanged:!1,validationErrorClass:"error",validationSuccessClass:""}}},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(n){return K.f[3]++,K.s[3]++,n.length>0}}},data:function(){K.f[4]++;var n=(K.s[4]++,new f.a);return K.s[5]++,{eventBus:n,totalNumberOfFields:0,errors:[]}},computed:{fields:function(){if(K.f[5]++,K.s[6]++,K.b[1][0]++,this.schema&&(K.b[1][1]++,this.schema.fields))return K.b[0][0]++,K.s[7]++,this.schema.fields;K.b[0][1]++}},watch:{model:{handler:function(n,e){var l=this;if(K.f[6]++,K.s[8]++,e===n)return K.b[2][0]++,void K.s[9]++;K.b[2][1]++,K.s[10]++,null!=n?(K.b[3][0]++,K.s[11]++,this.$nextTick(function(){K.f[7]++,K.s[12]++,K.b[5][0]++,!0===l.options.validateAfterLoad&&(K.b[5][1]++,!0!==l.isNewModel)?(K.b[4][0]++,K.s[13]++,l.validate().then(function(){K.f[8]++},function(){K.f[9]++})):(K.b[4][1]++,K.s[14]++,l.clearValidationErrors())})):K.b[3][1]++},immediate:function(){return K.f[10]++,K.s[15]++,!0}}},methods:{fillErrors:function(n,e,l){K.f[11]++,K.s[16]++,K.b[7][0]++,a()(n)&&(K.b[7][1]++,n.length>0)?(K.b[6][0]++,K.s[17]++,n.forEach(function(n){K.f[12]++,K.s[18]++,e.push({uid:l,error:n})})):K.b[6][1]++},onFieldValidated:function(n,e,l){K.f[13]++,K.s[19]++,this.errors=this.errors.filter(function(n){return K.f[14]++,K.s[20]++,n.uid!==l}),K.s[21]++,this.fillErrors(e,this.errors,l);var t=(K.s[22]++,0===this.errors.length);K.s[23]++,this.$emit("validated",t,this.errors,this)},onModelUpdated:function(n,e){K.f[15]++,K.s[24]++,this.$emit("model-updated",n,e)},validate:function(){var n=this;return K.f[16]++,K.s[25]++,new Promise(function(e,l){K.f[17]++,K.s[26]++,n.clearValidationErrors();var t=(K.s[27]++,0),o=(K.s[28]++,[]);K.s[29]++,n.eventBus.$on("field-deregistering",function(){K.f[18]++,K.s[30]++,n.eventBus.$emit("fields-validation-terminated",o),K.s[31]++,l(o)}),K.s[32]++;var i=function i(c,u,r){if(K.f[19]++,K.s[33]++,t++,K.s[34]++,n.fillErrors(u,o,r),K.s[35]++,t===n.totalNumberOfFields){K.b[8][0]++,K.s[36]++,n.eventBus.$off("field-validated",i),K.s[37]++,m()(n.options,"validateAfterChanged",!1)?(K.b[9][0]++,K.s[38]++,n.eventBus.$on("field-validated",n.onFieldValidated)):K.b[9][1]++,K.s[39]++,n.errors=o;var a=(K.s[40]++,0===o.length);K.s[41]++,n.$emit("validated",a,o,n),K.s[42]++,n.eventBus.$emit("fields-validation-terminated",o),K.s[43]++,a?(K.b[10][0]++,K.s[44]++,e()):(K.b[10][1]++,K.s[45]++,l(o))}else K.b[8][1]++};K.s[46]++,m()(n.options,"validateAfterChanged",!1)?(K.b[11][0]++,K.s[47]++,n.eventBus.$off("field-validated",n.onFieldValidated)):K.b[11][1]++,K.s[48]++,n.eventBus.$on("field-validated",i),K.s[49]++,n.eventBus.$emit("validate-fields",n)})},clearValidationErrors:function(){K.f[20]++,K.s[50]++,this.errors.splice(0),K.s[51]++,this.eventBus.$emit("clear-validation-errors",this.clearValidationErrors)}},created:function(){var n=this;K.f[21]++,K.s[52]++,m()(this.options,"validateAfterChanged",!1)?(K.b[12][0]++,K.s[53]++,this.eventBus.$on("field-validated",this.onFieldValidated)):K.b[12][1]++,K.s[54]++,this.eventBus.$on("model-updated",this.onModelUpdated),K.s[55]++,this.eventBus.$on("fields-validation-trigger",this.validate),K.s[56]++,this.eventBus.$on("field-registering",function(){K.f[22]++,K.s[57]++,n.totalNumberOfFields=n.totalNumberOfFields+1}),K.s[58]++,this.eventBus.$on("field-deregistering",function(){K.f[23]++,K.s[59]++,n.totalNumberOfFields=n.totalNumberOfFields-1})},beforeDestroy:function(){K.f[24]++,K.s[60]++,this.eventBus.$off("field-validated"),K.s[61]++,this.eventBus.$off("model-updated"),K.s[62]++,this.eventBus.$off("fields-validation-trigger"),K.s[63]++,this.eventBus.$off("field-registering"),K.s[64]++,this.eventBus.$off("field-deregistering")}},nn=Q,en=(l("bfd2"),k(nn,c,u,!1,null,null,null));en.options.__file="formGenerator.vue";var ln=en.exports,tn=(l("cadf"),l("456d"),l("3b2b"),l("697e")),on=l.n(tn),cn=l("501e"),un=l.n(cn),rn=l("95ae"),an=l.n(rn),sn=l("9e99"),mn=l.n(sn),dn=function(){var n="D:\\dev\\vue-form-generator\\src\\utils\\validators.js",e="52f5775a27146fed9d406240542b06f3a114a90f",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\utils\\validators.js",statementMap:{0:{start:{line:4,column:16},end:{line:34,column:1}},1:{start:{line:37,column:1},end:{line:43,column:2}},2:{start:{line:38,column:2},end:{line:42,column:3}},3:{start:{line:39,column:3},end:{line:39,column:42}},4:{start:{line:41,column:3},end:{line:41,column:13}},5:{start:{line:44,column:1},end:{line:44,column:13}},6:{start:{line:48,column:1},end:{line:52,column:2}},7:{start:{line:49,column:2},end:{line:51,column:3}},8:{start:{line:50,column:3},end:{line:50,column:58}},9:{start:{line:54,column:1},end:{line:54,column:13}},10:{start:{line:57,column:19},end:{line:265,column:1}},11:{start:{line:61,column:2},end:{line:61,column:53}},12:{start:{line:65,column:12},end:{line:65,column:55}},13:{start:{line:66,column:2},end:{line:68,column:3}},14:{start:{line:67,column:3},end:{line:67,column:14}},15:{start:{line:70,column:12},end:{line:70,column:14}},16:{start:{line:71,column:2},end:{line:81,column:3}},17:{start:{line:72,column:3},end:{line:74,column:4}},18:{start:{line:73,column:4},end:{line:73,column:67}},19:{start:{line:76,column:3},end:{line:78,column:4}},20:{start:{line:77,column:4},end:{line:77,column:65}},21:{start:{line:80,column:3},end:{line:80,column:41}},22:{start:{line:83,column:2},end:{line:83,column:13}},23:{start:{line:87,column:12},end:{line:87,column:55}},24:{start:{line:88,column:2},end:{line:88,column:30}},25:{start:{line:88,column:19},end:{line:88,column:30}},26:{start:{line:89,column:13},end:{line:89,column:61}},27:{start:{line:91,column:2},end:{line:93,column:3}},28:{start:{line:92,column:3},end:{line:92,column:43}},29:{start:{line:95,column:2},end:{line:95,column:14}},30:{start:{line:99,column:12},end:{line:99,column:55}},31:{start:{line:100,column:2},end:{line:100,column:30}},32:{start:{line:100,column:19},end:{line:100,column:30}},33:{start:{line:102,column:2},end:{line:104,column:3}},34:{start:{line:103,column:3},end:{line:103,column:40}},35:{start:{line:108,column:12},end:{line:108,column:55}},36:{start:{line:109,column:2},end:{line:109,column:30}},37:{start:{line:109,column:19},end:{line:109,column:30}},38:{start:{line:111,column:12},end:{line:111,column:14}},39:{start:{line:112,column:2},end:{line:122,column:3}},40:{start:{line:113,column:3},end:{line:115,column:4}},41:{start:{line:114,column:4},end:{line:114,column:79}},42:{start:{line:117,column:3},end:{line:119,column:4}},43:{start:{line:118,column:4},end:{line:118,column:77}},44:{start:{line:121,column:3},end:{line:121,column:39}},45:{start:{line:124,column:2},end:{line:124,column:13}},46:{start:{line:128,column:2},end:{line:136,column:3}},47:{start:{line:129,column:3},end:{line:131,column:4}},48:{start:{line:130,column:4},end:{line:130,column:40}},49:{start:{line:133,column:3},end:{line:135,column:4}},50:{start:{line:134,column:4},end:{line:134,column:43}},51:{start:{line:138,column:2},end:{line:146,column:3}},52:{start:{line:139,column:3},end:{line:141,column:4}},53:{start:{line:140,column:4},end:{line:140,column:66}},54:{start:{line:143,column:3},end:{line:145,column:4}},55:{start:{line:144,column:4},end:{line:144,column:66}},56:{start:{line:150,column:12},end:{line:150,column:55}},57:{start:{line:151,column:2},end:{line:151,column:30}},58:{start:{line:151,column:19},end:{line:151,column:30}},59:{start:{line:153,column:10},end:{line:153,column:25}},60:{start:{line:154,column:2},end:{line:156,column:3}},61:{start:{line:155,column:3},end:{line:155,column:38}},62:{start:{line:158,column:12},end:{line:158,column:14}},63:{start:{line:160,column:2},end:{line:165,column:3}},64:{start:{line:161,column:13},end:{line:161,column:45}},65:{start:{line:162,column:3},end:{line:164,column:4}},66:{start:{line:163,column:4},end:{line:163,column:76}},67:{start:{line:167,column:2},end:{line:172,column:3}},68:{start:{line:168,column:13},end:{line:168,column:45}},69:{start:{line:169,column:3},end:{line:171,column:4}},70:{start:{line:170,column:4},end:{line:170,column:75}},71:{start:{line:174,column:2},end:{line:174,column:13}},72:{start:{line:178,column:12},end:{line:178,column:55}},73:{start:{line:179,column:2},end:{line:179,column:30}},74:{start:{line:179,column:19},end:{line:179,column:30}},75:{start:{line:181,column:2},end:{line:186,column:3}},76:{start:{line:182,column:12},end:{line:182,column:37}},77:{start:{line:183,column:3},end:{line:185,column:4}},78:{start:{line:184,column:4},end:{line:184,column:41}},79:{start:{line:190,column:12},end:{line:190,column:55}},80:{start:{line:191,column:2},end:{line:191,column:30}},81:{start:{line:191,column:19},end:{line:191,column:30}},82:{start:{line:193,column:11},end:{line:193,column:163}},83:{start:{line:194,column:2},end:{line:196,column:3}},84:{start:{line:195,column:3},end:{line:195,column:39}},85:{start:{line:200,column:12},end:{line:200,column:55}},86:{start:{line:201,column:2},end:{line:201,column:30}},87:{start:{line:201,column:19},end:{line:201,column:30}},88:{start:{line:203,column:11},end:{line:203,column:105}},89:{start:{line:204,column:2},end:{line:206,column:3}},90:{start:{line:205,column:3},end:{line:205,column:37}},91:{start:{line:210,column:12},end:{line:210,column:55}},92:{start:{line:211,column:2},end:{line:211,column:30}},93:{start:{line:211,column:19},end:{line:211,column:30}},94:{start:{line:216,column:21},end:{line:216,column:172}},95:{start:{line:217,column:20},end:{line:217,column:49}},96:{start:{line:218,column:2},end:{line:220,column:3}},97:{start:{line:219,column:3},end:{line:219,column:38}},98:{start:{line:221,column:12},end:{line:221,column:13}},99:{start:{line:225,column:2},end:{line:239,column:3}},100:{start:{line:226,column:3},end:{line:226,column:41}},101:{start:{line:227,column:3},end:{line:227,column:32}},102:{start:{line:228,column:3},end:{line:237,column:4}},103:{start:{line:229,column:4},end:{line:229,column:16}},104:{start:{line:230,column:4},end:{line:234,column:5}},105:{start:{line:231,column:5},end:{line:231,column:30}},106:{start:{line:233,column:5},end:{line:233,column:19}},107:{start:{line:236,column:4},end:{line:236,column:18}},108:{start:{line:238,column:3},end:{line:238,column:32}},109:{start:{line:241,column:2},end:{line:243,column:3}},110:{start:{line:242,column:3},end:{line:242,column:44}},111:{start:{line:247,column:12},end:{line:247,column:55}},112:{start:{line:248,column:2},end:{line:248,column:30}},113:{start:{line:248,column:19},end:{line:248,column:30}},114:{start:{line:250,column:11},end:{line:250,column:24}},115:{start:{line:251,column:2},end:{line:253,column:3}},116:{start:{line:252,column:3},end:{line:252,column:51}},117:{start:{line:257,column:12},end:{line:257,column:55}},118:{start:{line:258,column:2},end:{line:258,column:30}},119:{start:{line:258,column:19},end:{line:258,column:30}},120:{start:{line:260,column:11},end:{line:260,column:27}},121:{start:{line:261,column:2},end:{line:263,column:3}},122:{start:{line:262,column:3},end:{line:262,column:49}},123:{start:{line:267,column:0},end:{line:273,column:3}},124:{start:{line:268,column:12},end:{line:268,column:28}},125:{start:{line:269,column:1},end:{line:272,column:2}},126:{start:{line:270,column:2},end:{line:271,column:64}},127:{start:{line:270,column:34},end:{line:271,column:63}},128:{start:{line:271,column:3},end:{line:271,column:63}}},fnMap:{0:{name:"checkEmpty",decl:{start:{line:36,column:9},end:{line:36,column:19}},loc:{start:{line:36,column:59},end:{line:45,column:1}},line:36},1:{name:"msg",decl:{start:{line:47,column:9},end:{line:47,column:12}},loc:{start:{line:47,column:19},end:{line:55,column:1}},line:47},2:{name:"(anonymous_2)",decl:{start:{line:60,column:1},end:{line:60,column:2}},loc:{start:{line:60,column:53},end:{line:62,column:2}},line:60},3:{name:"(anonymous_3)",decl:{start:{line:64,column:1},end:{line:64,column:2}},loc:{start:{line:64,column:51},end:{line:84,column:2}},line:64},4:{name:"(anonymous_4)",decl:{start:{line:86,column:1},end:{line:86,column:2}},loc:{start:{line:86,column:52},end:{line:96,column:2}},line:86},5:{name:"(anonymous_5)",decl:{start:{line:98,column:1},end:{line:98,column:2}},loc:{start:{line:98,column:51},end:{line:105,column:2}},line:98},6:{name:"(anonymous_6)",decl:{start:{line:107,column:1},end:{line:107,column:2}},loc:{start:{line:107,column:51},end:{line:125,column:2}},line:107},7:{name:"(anonymous_7)",decl:{start:{line:127,column:1},end:{line:127,column:2}},loc:{start:{line:127,column:50},end:{line:147,column:2}},line:127},8:{name:"(anonymous_8)",decl:{start:{line:149,column:1},end:{line:149,column:2}},loc:{start:{line:149,column:49},end:{line:175,column:2}},line:149},9:{name:"(anonymous_9)",decl:{start:{line:177,column:1},end:{line:177,column:2}},loc:{start:{line:177,column:51},end:{line:187,column:2}},line:177},10:{name:"(anonymous_10)",decl:{start:{line:189,column:1},end:{line:189,column:2}},loc:{start:{line:189,column:50},end:{line:197,column:2}},line:189},11:{name:"(anonymous_11)",decl:{start:{line:199,column:1},end:{line:199,column:2}},loc:{start:{line:199,column:48},end:{line:207,column:2}},line:199},12:{name:"(anonymous_12)",decl:{start:{line:209,column:1},end:{line:209,column:2}},loc:{start:{line:209,column:55},end:{line:244,column:2}},line:209},13:{name:"(anonymous_13)",decl:{start:{line:246,column:1},end:{line:246,column:2}},loc:{start:{line:246,column:50},end:{line:254,column:2}},line:246},14:{name:"(anonymous_14)",decl:{start:{line:256,column:1},end:{line:256,column:2}},loc:{start:{line:256,column:57},end:{line:264,column:2}},line:256},15:{name:"(anonymous_15)",decl:{start:{line:267,column:32},end:{line:267,column:33}},loc:{start:{line:267,column:42},end:{line:273,column:1}},line:267},16:{name:"(anonymous_16)",decl:{start:{line:270,column:14},end:{line:270,column:15}},loc:{start:{line:270,column:34},end:{line:271,column:63}},line:270},17:{name:"(anonymous_17)",decl:{start:{line:270,column:34},end:{line:270,column:35}},loc:{start:{line:271,column:3},end:{line:271,column:63}},line:271}},branchMap:{0:{loc:{start:{line:36,column:37},end:{line:36,column:57}},type:"default-arg",locations:[{start:{line:36,column:48},end:{line:36,column:57}}],line:36},1:{loc:{start:{line:37,column:1},end:{line:43,column:2}},type:"if",locations:[{start:{line:37,column:1},end:{line:43,column:2}},{start:{line:37,column:1},end:{line:43,column:2}}],line:37},2:{loc:{start:{line:37,column:5},end:{line:37,column:33}},type:"binary-expr",locations:[{start:{line:37,column:5},end:{line:37,column:17}},{start:{line:37,column:21},end:{line:37,column:33}}],line:37},3:{loc:{start:{line:38,column:2},end:{line:42,column:3}},type:"if",locations:[{start:{line:38,column:2},end:{line:42,column:3}},{start:{line:38,column:2},end:{line:42,column:3}}],line:38},4:{loc:{start:{line:48,column:1},end:{line:52,column:2}},type:"if",locations:[{start:{line:48,column:1},end:{line:52,column:2}},{start:{line:48,column:1},end:{line:52,column:2}}],line:48},5:{loc:{start:{line:48,column:5},end:{line:48,column:41}},type:"binary-expr",locations:[{start:{line:48,column:5},end:{line:48,column:17}},{start:{line:48,column:21},end:{line:48,column:41}}],line:48},6:{loc:{start:{line:60,column:31},end:{line:60,column:51}},type:"default-arg",locations:[{start:{line:60,column:42},end:{line:60,column:51}}],line:60},7:{loc:{start:{line:64,column:29},end:{line:64,column:49}},type:"default-arg",locations:[{start:{line:64,column:40},end:{line:64,column:49}}],line:64},8:{loc:{start:{line:66,column:2},end:{line:68,column:3}},type:"if",locations:[{start:{line:66,column:2},end:{line:68,column:3}},{start:{line:66,column:2},end:{line:68,column:3}}],line:66},9:{loc:{start:{line:71,column:2},end:{line:81,column:3}},type:"if",locations:[{start:{line:71,column:2},end:{line:81,column:3}},{start:{line:71,column:2},end:{line:81,column:3}}],line:71},10:{loc:{start:{line:72,column:3},end:{line:74,column:4}},type:"if",locations:[{start:{line:72,column:3},end:{line:74,column:4}},{start:{line:72,column:3},end:{line:74,column:4}}],line:72},11:{loc:{start:{line:72,column:7},end:{line:72,column:101}},type:"binary-expr",locations:[{start:{line:72,column:7},end:{line:72,column:33}},{start:{line:72,column:37},end:{line:72,column:67}},{start:{line:72,column:71},end:{line:72,column:101}}],line:72},12:{loc:{start:{line:76,column:3},end:{line:78,column:4}},type:"if",locations:[{start:{line:76,column:3},end:{line:78,column:4}},{start:{line:76,column:3},end:{line:78,column:4}}],line:76},13:{loc:{start:{line:76,column:7},end:{line:76,column:101}},type:"binary-expr",locations:[{start:{line:76,column:7},end:{line:76,column:33}},{start:{line:76,column:37},end:{line:76,column:67}},{start:{line:76,column:71},end:{line:76,column:101}}],line:76},14:{loc:{start:{line:86,column:30},end:{line:86,column:50}},type:"default-arg",locations:[{start:{line:86,column:41},end:{line:86,column:50}}],line:86},15:{loc:{start:{line:88,column:2},end:{line:88,column:30}},type:"if",locations:[{start:{line:88,column:2},end:{line:88,column:30}},{start:{line:88,column:2},end:{line:88,column:30}}],line:88},16:{loc:{start:{line:91,column:2},end:{line:93,column:3}},type:"if",locations:[{start:{line:91,column:2},end:{line:93,column:3}},{start:{line:91,column:2},end:{line:93,column:3}}],line:91},17:{loc:{start:{line:98,column:29},end:{line:98,column:49}},type:"default-arg",locations:[{start:{line:98,column:40},end:{line:98,column:49}}],line:98},18:{loc:{start:{line:100,column:2},end:{line:100,column:30}},type:"if",locations:[{start:{line:100,column:2},end:{line:100,column:30}},{start:{line:100,column:2},end:{line:100,column:30}}],line:100},19:{loc:{start:{line:102,column:2},end:{line:104,column:3}},type:"if",locations:[{start:{line:102,column:2},end:{line:104,column:3}},{start:{line:102,column:2},end:{line:104,column:3}}],line:102},20:{loc:{start:{line:102,column:6},end:{line:102,column:38}},type:"binary-expr",locations:[{start:{line:102,column:6},end:{line:102,column:22}},{start:{line:102,column:26},end:{line:102,column:38}}],line:102},21:{loc:{start:{line:107,column:29},end:{line:107,column:49}},type:"default-arg",locations:[{start:{line:107,column:40},end:{line:107,column:49}}],line:107},22:{loc:{start:{line:109,column:2},end:{line:109,column:30}},type:"if",locations:[{start:{line:109,column:2},end:{line:109,column:30}},{start:{line:109,column:2},end:{line:109,column:30}}],line:109},23:{loc:{start:{line:112,column:2},end:{line:122,column:3}},type:"if",locations:[{start:{line:112,column:2},end:{line:122,column:3}},{start:{line:112,column:2},end:{line:122,column:3}}],line:112},24:{loc:{start:{line:113,column:3},end:{line:115,column:4}},type:"if",locations:[{start:{line:113,column:3},end:{line:115,column:4}},{start:{line:113,column:3},end:{line:115,column:4}}],line:113},25:{loc:{start:{line:113,column:7},end:{line:113,column:78}},type:"binary-expr",locations:[{start:{line:113,column:7},end:{line:113,column:37}},{start:{line:113,column:41},end:{line:113,column:78}}],line:113},26:{loc:{start:{line:117,column:3},end:{line:119,column:4}},type:"if",locations:[{start:{line:117,column:3},end:{line:119,column:4}},{start:{line:117,column:3},end:{line:119,column:4}}],line:117},27:{loc:{start:{line:117,column:7},end:{line:117,column:78}},type:"binary-expr",locations:[{start:{line:117,column:7},end:{line:117,column:37}},{start:{line:117,column:41},end:{line:117,column:78}}],line:117},28:{loc:{start:{line:127,column:28},end:{line:127,column:48}},type:"default-arg",locations:[{start:{line:127,column:39},end:{line:127,column:48}}],line:127},29:{loc:{start:{line:128,column:2},end:{line:136,column:3}},type:"if",locations:[{start:{line:128,column:2},end:{line:136,column:3}},{start:{line:128,column:2},end:{line:136,column:3}}],line:128},30:{loc:{start:{line:129,column:3},end:{line:131,column:4}},type:"if",locations:[{start:{line:129,column:3},end:{line:131,column:4}},{start:{line:129,column:3},end:{line:131,column:4}}],line:129},31:{loc:{start:{line:133,column:3},end:{line:135,column:4}},type:"if",locations:[{start:{line:133,column:3},end:{line:135,column:4}},{start:{line:133,column:3},end:{line:135,column:4}}],line:133},32:{loc:{start:{line:138,column:2},end:{line:146,column:3}},type:"if",locations:[{start:{line:138,column:2},end:{line:146,column:3}},{start:{line:138,column:2},end:{line:146,column:3}}],line:138},33:{loc:{start:{line:139,column:3},end:{line:141,column:4}},type:"if",locations:[{start:{line:139,column:3},end:{line:141,column:4}},{start:{line:139,column:3},end:{line:141,column:4}}],line:139},34:{loc:{start:{line:139,column:7},end:{line:139,column:78}},type:"binary-expr",locations:[{start:{line:139,column:7},end:{line:139,column:37}},{start:{line:139,column:41},end:{line:139,column:78}}],line:139},35:{loc:{start:{line:143,column:3},end:{line:145,column:4}},type:"if",locations:[{start:{line:143,column:3},end:{line:145,column:4}},{start:{line:143,column:3},end:{line:145,column:4}}],line:143},36:{loc:{start:{line:143,column:7},end:{line:143,column:78}},type:"binary-expr",locations:[{start:{line:143,column:7},end:{line:143,column:37}},{start:{line:143,column:41},end:{line:143,column:78}}],line:143},37:{loc:{start:{line:149,column:27},end:{line:149,column:47}},type:"default-arg",locations:[{start:{line:149,column:38},end:{line:149,column:47}}],line:149},38:{loc:{start:{line:151,column:2},end:{line:151,column:30}},type:"if",locations:[{start:{line:151,column:2},end:{line:151,column:30}},{start:{line:151,column:2},end:{line:151,column:30}}],line:151},39:{loc:{start:{line:154,column:2},end:{line:156,column:3}},type:"if",locations:[{start:{line:154,column:2},end:{line:156,column:3}},{start:{line:154,column:2},end:{line:156,column:3}}],line:154},40:{loc:{start:{line:160,column:2},end:{line:165,column:3}},type:"if",locations:[{start:{line:160,column:2},end:{line:165,column:3}},{start:{line:160,column:2},end:{line:165,column:3}}],line:160},41:{loc:{start:{line:162,column:3},end:{line:164,column:4}},type:"if",locations:[{start:{line:162,column:3},end:{line:164,column:4}},{start:{line:162,column:3},end:{line:164,column:4}}],line:162},42:{loc:{start:{line:167,column:2},end:{line:172,column:3}},type:"if",locations:[{start:{line:167,column:2},end:{line:172,column:3}},{start:{line:167,column:2},end:{line:172,column:3}}],line:167},43:{loc:{start:{line:169,column:3},end:{line:171,column:4}},type:"if",locations:[{start:{line:169,column:3},end:{line:171,column:4}},{start:{line:169,column:3},end:{line:171,column:4}}],line:169},44:{loc:{start:{line:177,column:29},end:{line:177,column:49}},type:"default-arg",locations:[{start:{line:177,column:40},end:{line:177,column:49}}],line:177},45:{loc:{start:{line:179,column:2},end:{line:179,column:30}},type:"if",locations:[{start:{line:179,column:2},end:{line:179,column:30}},{start:{line:179,column:2},end:{line:179,column:30}}],line:179},46:{loc:{start:{line:181,column:2},end:{line:186,column:3}},type:"if",locations:[{start:{line:181,column:2},end:{line:186,column:3}},{start:{line:181,column:2},end:{line:186,column:3}}],line:181},47:{loc:{start:{line:183,column:3},end:{line:185,column:4}},type:"if",locations:[{start:{line:183,column:3},end:{line:185,column:4}},{start:{line:183,column:3},end:{line:185,column:4}}],line:183},48:{loc:{start:{line:189,column:28},end:{line:189,column:48}},type:"default-arg",locations:[{start:{line:189,column:39},end:{line:189,column:48}}],line:189},49:{loc:{start:{line:191,column:2},end:{line:191,column:30}},type:"if",locations:[{start:{line:191,column:2},end:{line:191,column:30}},{start:{line:191,column:2},end:{line:191,column:30}}],line:191},50:{loc:{start:{line:194,column:2},end:{line:196,column:3}},type:"if",locations:[{start:{line:194,column:2},end:{line:196,column:3}},{start:{line:194,column:2},end:{line:196,column:3}}],line:194},51:{loc:{start:{line:199,column:26},end:{line:199,column:46}},type:"default-arg",locations:[{start:{line:199,column:37},end:{line:199,column:46}}],line:199},52:{loc:{start:{line:201,column:2},end:{line:201,column:30}},type:"if",locations:[{start:{line:201,column:2},end:{line:201,column:30}},{start:{line:201,column:2},end:{line:201,column:30}}],line:201},53:{loc:{start:{line:204,column:2},end:{line:206,column:3}},type:"if",locations:[{start:{line:204,column:2},end:{line:206,column:3}},{start:{line:204,column:2},end:{line:206,column:3}}],line:204},54:{loc:{start:{line:209,column:33},end:{line:209,column:53}},type:"default-arg",locations:[{start:{line:209,column:44},end:{line:209,column:53}}],line:209},55:{loc:{start:{line:211,column:2},end:{line:211,column:30}},type:"if",locations:[{start:{line:211,column:2},end:{line:211,column:30}},{start:{line:211,column:2},end:{line:211,column:30}}],line:211},56:{loc:{start:{line:218,column:2},end:{line:220,column:3}},type:"if",locations:[{start:{line:218,column:2},end:{line:220,column:3}},{start:{line:218,column:2},end:{line:220,column:3}}],line:218},57:{loc:{start:{line:228,column:3},end:{line:237,column:4}},type:"if",locations:[{start:{line:228,column:3},end:{line:237,column:4}},{start:{line:228,column:3},end:{line:237,column:4}}],line:228},58:{loc:{start:{line:230,column:4},end:{line:234,column:5}},type:"if",locations:[{start:{line:230,column:4},end:{line:234,column:5}},{start:{line:230,column:4},end:{line:234,column:5}}],line:230},59:{loc:{start:{line:241,column:2},end:{line:243,column:3}},type:"if",locations:[{start:{line:241,column:2},end:{line:243,column:3}},{start:{line:241,column:2},end:{line:243,column:3}}],line:241},60:{loc:{start:{line:241,column:8},end:{line:241,column:42}},type:"cond-expr",locations:[{start:{line:241,column:25},end:{line:241,column:34}},{start:{line:241,column:37},end:{line:241,column:42}}],line:241},61:{loc:{start:{line:246,column:28},end:{line:246,column:48}},type:"default-arg",locations:[{start:{line:246,column:39},end:{line:246,column:48}}],line:246},62:{loc:{start:{line:248,column:2},end:{line:248,column:30}},type:"if",locations:[{start:{line:248,column:2},end:{line:248,column:30}},{start:{line:248,column:2},end:{line:248,column:30}}],line:248},63:{loc:{start:{line:251,column:2},end:{line:253,column:3}},type:"if",locations:[{start:{line:251,column:2},end:{line:253,column:3}},{start:{line:251,column:2},end:{line:253,column:3}}],line:251},64:{loc:{start:{line:256,column:35},end:{line:256,column:55}},type:"default-arg",locations:[{start:{line:256,column:46},end:{line:256,column:55}}],line:256},65:{loc:{start:{line:258,column:2},end:{line:258,column:30}},type:"if",locations:[{start:{line:258,column:2},end:{line:258,column:30}},{start:{line:258,column:2},end:{line:258,column:30}}],line:258},66:{loc:{start:{line:261,column:2},end:{line:263,column:3}},type:"if",locations:[{start:{line:261,column:2},end:{line:263,column:3}},{start:{line:261,column:2},end:{line:263,column:3}}],line:261},67:{loc:{start:{line:269,column:1},end:{line:272,column:2}},type:"if",locations:[{start:{line:269,column:1},end:{line:272,column:2}},{start:{line:269,column:1},end:{line:272,column:2}}],line:269}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0],7:[0],8:[0,0],9:[0,0],10:[0,0],11:[0,0,0],12:[0,0],13:[0,0,0],14:[0],15:[0,0],16:[0,0],17:[0],18:[0,0],19:[0,0],20:[0,0],21:[0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0],45:[0,0],46:[0,0],47:[0,0],48:[0],49:[0,0],50:[0,0],51:[0],52:[0,0],53:[0,0],54:[0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0],60:[0,0],61:[0],62:[0,0],63:[0,0],64:[0],65:[0,0],66:[0,0],67:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),fn=(dn.s[0]++,{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 pn(n,e){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(dn.b[0][0]++,fn);return dn.f[0]++,dn.s[1]++,dn.b[2][0]++,y()(n)||(dn.b[2][1]++,""===n)?(dn.b[1][0]++,dn.s[2]++,e?(dn.b[3][0]++,dn.s[3]++,[bn(l.fieldIsRequired)]):(dn.b[3][1]++,dn.s[4]++,[])):(dn.b[1][1]++,dn.s[5]++,null)}function bn(n){if(dn.f[1]++,dn.s[6]++,dn.b[5][0]++,null!=n&&(dn.b[5][1]++,arguments.length>1)){dn.b[4][0]++,dn.s[7]++;for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:(dn.b[6][0]++,fn);return dn.f[2]++,dn.s[11]++,pn(n,e.required,t)},number:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[7][0]++,fn);dn.f[3]++;var o=(dn.s[12]++,pn(n,e.required,t));if(dn.s[13]++,null!=o)return dn.b[8][0]++,dn.s[14]++,o;dn.b[8][1]++;var i=(dn.s[15]++,[]);return dn.s[16]++,un()(n)?(dn.b[9][0]++,dn.s[17]++,dn.b[11][0]++,!y()(e.fieldOptions)&&(dn.b[11][1]++,!y()(e.fieldOptions.min))&&(dn.b[11][2]++,ne.fieldOptions.max)?(dn.b[12][0]++,dn.s[20]++,i.push(bn(t.numberTooBig,e.fieldOptions.max))):dn.b[12][1]++):(dn.b[9][1]++,dn.s[21]++,i.push(bn(t.invalidNumber))),dn.s[22]++,i},integer:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[14][0]++,fn);dn.f[4]++;var o=(dn.s[23]++,pn(n,e.required,t));if(dn.s[24]++,null!=o)return dn.b[15][0]++,dn.s[25]++,o;dn.b[15][1]++;var i=(dn.s[26]++,hn.number(n,e,l,t));return dn.s[27]++,on()(n)?dn.b[16][1]++:(dn.b[16][0]++,dn.s[28]++,i.push(bn(t.invalidInteger))),dn.s[29]++,i},double:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[17][0]++,fn);dn.f[5]++;var o=(dn.s[30]++,pn(n,e.required,t));return dn.s[31]++,null!=o?(dn.b[18][0]++,dn.s[32]++,o):(dn.b[18][1]++,dn.s[33]++,dn.b[20][0]++,!un()(n)||(dn.b[20][1]++,isNaN(n))?(dn.b[19][0]++,dn.s[34]++,[bn(t.invalidNumber)]):void dn.b[19][1]++)},string:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[21][0]++,fn);dn.f[6]++;var o=(dn.s[35]++,pn(n,e.required,t));if(dn.s[36]++,null!=o)return dn.b[22][0]++,dn.s[37]++,o;dn.b[22][1]++;var i=(dn.s[38]++,[]);return dn.s[39]++,w()(n)?(dn.b[23][0]++,dn.s[40]++,dn.b[25][0]++,!y()(e.fieldOptions.min)&&(dn.b[25][1]++,n.lengthe.fieldOptions.max)?(dn.b[26][0]++,dn.s[43]++,i.push(bn(t.textTooBig,n.length,e.fieldOptions.max))):dn.b[26][1]++):(dn.b[23][1]++,dn.s[44]++,i.push(bn(t.thisNotText))),dn.s[45]++,i},array:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[28][0]++,fn);if(dn.f[7]++,dn.s[46]++,e.required){if(dn.b[29][0]++,dn.s[47]++,!a()(n))return dn.b[30][0]++,dn.s[48]++,[bn(t.thisNotArray)];if(dn.b[30][1]++,dn.s[49]++,0===n.length)return dn.b[31][0]++,dn.s[50]++,[bn(t.fieldIsRequired)];dn.b[31][1]++}else dn.b[29][1]++;if(dn.s[51]++,y()(n))dn.b[32][1]++;else{if(dn.b[32][0]++,dn.s[52]++,dn.b[34][0]++,!y()(e.fieldOptions.min)&&(dn.b[34][1]++,n.lengthe.fieldOptions.max))return dn.b[35][0]++,dn.s[55]++,[bn(t.selectMaxItems,e.fieldOptions.max)];dn.b[35][1]++}},date:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[37][0]++,fn);dn.f[8]++;var o=(dn.s[56]++,pn(n,e.required,t));if(dn.s[57]++,null!=o)return dn.b[38][0]++,dn.s[58]++,o;dn.b[38][1]++;var i=(dn.s[59]++,new Date(n));if(dn.s[60]++,!i)return dn.b[39][0]++,dn.s[61]++,[bn(t.invalidDate)];dn.b[39][1]++;var c=(dn.s[62]++,[]);if(dn.s[63]++,y()(e.fieldOptions.min))dn.b[40][1]++;else{dn.b[40][0]++;var u=(dn.s[64]++,new Date(e.fieldOptions.min));dn.s[65]++,i.valueOf()r.valueOf()?(dn.b[43][0]++,dn.s[70]++,c.push(bn(t.dateIsLate,mn.a.format(i),mn.a.format(r)))):dn.b[43][1]++}return dn.s[71]++,c},regexp:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[44][0]++,fn);dn.f[9]++;var o=(dn.s[72]++,pn(n,e.required,t));if(dn.s[73]++,null!=o)return dn.b[45][0]++,dn.s[74]++,o;if(dn.b[45][1]++,dn.s[75]++,y()(e.pattern))dn.b[46][1]++;else{dn.b[46][0]++;var i=(dn.s[76]++,new RegExp(e.pattern));if(dn.s[77]++,!i.test(n))return dn.b[47][0]++,dn.s[78]++,[bn(t.invalidFormat)];dn.b[47][1]++}},email:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[48][0]++,fn);dn.f[10]++;var o=(dn.s[79]++,pn(n,e.required,t));if(dn.s[80]++,null!=o)return dn.b[49][0]++,dn.s[81]++,o;dn.b[49][1]++;var i=(dn.s[82]++,/^(([^<>()\[\]\\.,;:\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,}))$/);if(dn.s[83]++,!i.test(n))return dn.b[50][0]++,dn.s[84]++,[bn(t.invalidEmail)];dn.b[50][1]++},url:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[51][0]++,fn);dn.f[11]++;var o=(dn.s[85]++,pn(n,e.required,t));if(dn.s[86]++,null!=o)return dn.b[52][0]++,dn.s[87]++,o;dn.b[52][1]++;var i=(dn.s[88]++,/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);if(dn.s[89]++,!i.test(n))return dn.b[53][0]++,dn.s[90]++,[bn(t.invalidURL)];dn.b[53][1]++},creditCard:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[54][0]++,fn);dn.f[12]++;var o=(dn.s[91]++,pn(n,e.required,t));if(dn.s[92]++,null!=o)return dn.b[55][0]++,dn.s[93]++,o;dn.b[55][1]++;var i=(dn.s[94]++,/^(?: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})$/),c=(dn.s[95]++,n.replace(/[^0-9]+/g,""));if(dn.s[96]++,!i.test(c))return dn.b[56][0]++,dn.s[97]++,[bn(t.invalidCard)];dn.b[56][1]++;var u,r,a,s=(dn.s[98]++,0);dn.s[99]++;for(var m=c.length-1;m>=0;m--)dn.s[100]++,u=c.substring(m,m+1),dn.s[101]++,r=parseInt(u,10),dn.s[102]++,a?(dn.b[57][0]++,dn.s[103]++,r*=2,dn.s[104]++,r>=10?(dn.b[58][0]++,dn.s[105]++,s+=r%10+1):(dn.b[58][1]++,dn.s[106]++,s+=r)):(dn.b[57][1]++,dn.s[107]++,s+=r),dn.s[108]++,a=!a;if(dn.s[109]++,s%10===0?(dn.b[60][0]++,!c):(dn.b[60][1]++,1))return dn.b[59][0]++,dn.s[110]++,[bn(t.invalidCardNumber)];dn.b[59][1]++},alpha:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[61][0]++,fn);dn.f[13]++;var o=(dn.s[111]++,pn(n,e.required,t));if(dn.s[112]++,null!=o)return dn.b[62][0]++,dn.s[113]++,o;dn.b[62][1]++;var i=(dn.s[114]++,/^[a-zA-Z]*$/);if(dn.s[115]++,!i.test(n))return dn.b[63][0]++,dn.s[116]++,[bn(t.invalidTextContainNumber)];dn.b[63][1]++},alphaNumeric:function(n,e,l){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:(dn.b[64][0]++,fn);dn.f[14]++;var o=(dn.s[117]++,pn(n,e.required,t));if(dn.s[118]++,null!=o)return dn.b[65][0]++,dn.s[119]++,o;dn.b[65][1]++;var i=(dn.s[120]++,/^[a-zA-Z0-9]*$/);if(dn.s[121]++,!i.test(n))return dn.b[66][0]++,dn.s[122]++,[bn(t.invalidTextContainSpec)];dn.b[66][1]++}});dn.s[123]++,Object.keys(hn).forEach(function(n){dn.f[15]++;var e=(dn.s[124]++,hn[n]);dn.s[125]++,_()(e)?(dn.b[67][0]++,dn.s[126]++,e.locale=function(n){return dn.f[16]++,dn.s[127]++,function(l,t,o){return dn.f[17]++,dn.s[128]++,e(l,t,o,an()(n,fn))}}):dn.b[67][1]++});var vn=hn,yn=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:n.fieldClasses,attrs:{id:n.fieldID,type:"checkbox",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,name:n.inputName,required:n.required},domProps:{checked:Array.isArray(n.value)?n._i(n.value,null)>-1:n.value},on:{change:function(e){var l=n.value,t=e.target,o=!!t.checked;if(Array.isArray(l)){var i=null,c=n._i(l,i);t.checked?c<0&&(n.value=l.concat([i])):c>-1&&(n.value=l.slice(0,c).concat(l.slice(c+1)))}else n.value=o}}})},gn=[],_n=(l("28a5"),l("98dc")),xn=l.n(_n),wn=l("b047"),On=l.n(wn),Sn=l("6cd4"),jn=l.n(Sn),Mn=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js",e="4d4265b060ef40dc8fcf211d60e214c1c4dbbe72",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\abstractField.js",statementMap:{0:{start:{line:4,column:25},end:{line:13,column:1}},1:{start:{line:5,column:1},end:{line:11,column:2}},2:{start:{line:6,column:2},end:{line:10,column:3}},3:{start:{line:6,column:37},end:{line:6,column:66}},4:{start:{line:8,column:3},end:{line:8,column:63}},5:{start:{line:9,column:3},end:{line:9,column:15}},6:{start:{line:12,column:1},end:{line:12,column:18}},7:{start:{line:16,column:13},end:{line:16,column:59}},8:{start:{line:17,column:17},end:{line:17,column:41}},9:{start:{line:18,column:1},end:{line:20,column:2}},10:{start:{line:19,column:2},end:{line:19,column:44}},11:{start:{line:21,column:1},end:{line:23,column:4}},12:{start:{line:22,column:2},end:{line:22,column:28}},13:{start:{line:46,column:19},end:{line:46,column:47}},14:{start:{line:47,column:2},end:{line:53,column:4}},15:{start:{line:69,column:4},end:{line:73,column:5}},16:{start:{line:70,column:5},end:{line:70,column:39}},17:{start:{line:72,column:5},end:{line:72,column:49}},18:{start:{line:75,column:4},end:{line:75,column:40}},19:{start:{line:79,column:4},end:{line:79,column:17}},20:{start:{line:81,column:19},end:{line:81,column:29}},21:{start:{line:82,column:4},end:{line:82,column:49}},22:{start:{line:84,column:4},end:{line:88,column:5}},23:{start:{line:85,column:5},end:{line:85,column:34}},24:{start:{line:87,column:5},end:{line:87,column:47}},25:{start:{line:92,column:3},end:{line:92,column:59}},26:{start:{line:95,column:3},end:{line:95,column:67}},27:{start:{line:98,column:3},end:{line:98,column:67}},28:{start:{line:101,column:3},end:{line:101,column:64}},29:{start:{line:104,column:3},end:{line:104,column:66}},30:{start:{line:107,column:3},end:{line:107,column:59}},31:{start:{line:110,column:3},end:{line:110,column:59}},32:{start:{line:113,column:3},end:{line:113,column:61}},33:{start:{line:120,column:4},end:{line:120,column:41}},34:{start:{line:127,column:3},end:{line:136,column:4}},35:{start:{line:128,column:4},end:{line:128,column:72}},36:{start:{line:131,column:4},end:{line:133,column:5}},37:{start:{line:132,column:5},end:{line:132,column:25}},38:{start:{line:135,column:4},end:{line:135,column:25}},39:{start:{line:139,column:3},end:{line:139,column:16}},40:{start:{line:141,column:3},end:{line:141,column:32}},41:{start:{line:142,column:23},end:{line:142,column:71}},42:{start:{line:144,column:17},end:{line:144,column:19}},43:{start:{line:146,column:3},end:{line:177,column:4}},44:{start:{line:152,column:21},end:{line:152,column:23}},45:{start:{line:153,column:4},end:{line:159,column:5}},46:{start:{line:154,column:5},end:{line:154,column:73}},47:{start:{line:156,column:5},end:{line:158,column:8}},48:{start:{line:157,column:6},end:{line:157,column:62}},49:{start:{line:161,column:4},end:{line:176,column:7}},50:{start:{line:162,column:5},end:{line:175,column:6}},51:{start:{line:163,column:6},end:{line:163,column:67}},52:{start:{line:165,column:19},end:{line:165,column:65}},53:{start:{line:166,column:6},end:{line:174,column:7}},54:{start:{line:167,column:7},end:{line:171,column:10}},55:{start:{line:168,column:8},end:{line:170,column:9}},56:{start:{line:169,column:9},end:{line:169,column:47}},57:{start:{line:172,column:13},end:{line:174,column:7}},58:{start:{line:173,column:7},end:{line:173,column:40}},59:{start:{line:179,column:22},end:{line:198,column:4}},60:{start:{line:180,column:22},end:{line:180,column:24}},61:{start:{line:181,column:4},end:{line:187,column:7}},62:{start:{line:182,column:5},end:{line:186,column:6}},63:{start:{line:183,column:6},end:{line:183,column:44}},64:{start:{line:184,column:12},end:{line:186,column:6}},65:{start:{line:185,column:6},end:{line:185,column:28}},66:{start:{line:188,column:4},end:{line:190,column:5}},67:{start:{line:189,column:5},end:{line:189,column:78}},68:{start:{line:192,column:18},end:{line:192,column:42}},69:{start:{line:194,column:4},end:{line:194,column:30}},70:{start:{line:196,column:4},end:{line:196,column:80}},71:{start:{line:197,column:4},end:{line:197,column:23}},72:{start:{line:200,column:3},end:{line:202,column:4}},73:{start:{line:201,column:4},end:{line:201,column:33}},74:{start:{line:204,column:3},end:{line:208,column:7}},75:{start:{line:207,column:5},end:{line:207,column:60}},76:{start:{line:212,column:3},end:{line:217,column:4}},77:{start:{line:213,column:4},end:{line:216,column:6}},78:{start:{line:218,column:3},end:{line:218,column:32}},79:{start:{line:222,column:17},end:{line:222,column:22}},80:{start:{line:223,column:3},end:{line:229,column:4}},81:{start:{line:224,column:4},end:{line:224,column:42}},82:{start:{line:225,column:4},end:{line:225,column:19}},83:{start:{line:226,column:10},end:{line:229,column:4}},84:{start:{line:227,column:4},end:{line:227,column:58}},85:{start:{line:228,column:4},end:{line:228,column:19}},86:{start:{line:231,column:3},end:{line:244,column:4}},87:{start:{line:232,column:4},end:{line:232,column:70}},88:{start:{line:234,column:4},end:{line:236,column:5}},89:{start:{line:235,column:5},end:{line:235,column:83}},90:{start:{line:237,column:4},end:{line:243,column:5}},91:{start:{line:238,column:5},end:{line:242,column:6}},92:{start:{line:239,column:6},end:{line:239,column:31}},93:{start:{line:241,column:6},end:{line:241,column:22}},94:{start:{line:248,column:3},end:{line:248,column:25}},95:{start:{line:253,column:11},end:{line:253,column:44}},96:{start:{line:256,column:3},end:{line:256,column:28}},97:{start:{line:258,column:11},end:{line:258,column:21}},98:{start:{line:259,column:13},end:{line:259,column:25}},99:{start:{line:260,column:11},end:{line:260,column:12}},100:{start:{line:261,column:13},end:{line:261,column:21}},101:{start:{line:262,column:3},end:{line:280,column:4}},102:{start:{line:263,column:12},end:{line:263,column:16}},103:{start:{line:264,column:4},end:{line:277,column:5}},104:{start:{line:265,column:5},end:{line:272,column:6}},105:{start:{line:267,column:6},end:{line:267,column:15}},106:{start:{line:270,column:6},end:{line:270,column:32}},107:{start:{line:271,column:6},end:{line:271,column:15}},108:{start:{line:275,column:5},end:{line:275,column:34}},109:{start:{line:276,column:5},end:{line:276,column:12}},110:{start:{line:279,column:4},end:{line:279,column:8}},111:{start:{line:284,column:3},end:{line:284,column:16}},112:{start:{line:288,column:3},end:{line:288,column:16}},113:{start:{line:292,column:3},end:{line:295,column:4}},114:{start:{line:293,column:4},end:{line:293,column:24}},115:{start:{line:294,column:4},end:{line:294,column:32}},116:{start:{line:299,column:2},end:{line:299,column:75}},117:{start:{line:300,column:2},end:{line:300,column:54}},118:{start:{line:301,column:2},end:{line:301,column:43}},119:{start:{line:304,column:15},end:{line:308,column:3}},120:{start:{line:305,column:3},end:{line:307,column:6}},121:{start:{line:306,column:4},end:{line:306,column:28}},122:{start:{line:309,column:22},end:{line:342,column:3}},123:{start:{line:343,column:2},end:{line:349,column:3}},124:{start:{line:344,column:21},end:{line:344,column:45}},125:{start:{line:345,column:16},end:{line:345,column:46}},126:{start:{line:346,column:3},end:{line:348,column:4}},127:{start:{line:347,column:4},end:{line:347,column:69}},128:{start:{line:352,column:2},end:{line:352,column:48}},129:{start:{line:353,column:2},end:{line:353,column:40}},130:{start:{line:354,column:2},end:{line:354,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:25},end:{line:4,column:26}},loc:{start:{line:4,column:40},end:{line:13,column:1}},line:4},1:{name:"attributesDirective",decl:{start:{line:15,column:9},end:{line:15,column:28}},loc:{start:{line:15,column:49},end:{line:24,column:1}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:21,column:16},end:{line:21,column:17}},loc:{start:{line:21,column:30},end:{line:23,column:2}},line:21},3:{name:"(anonymous_3)",decl:{start:{line:45,column:1},end:{line:45,column:2}},loc:{start:{line:45,column:8},end:{line:54,column:2}},line:45},4:{name:"(anonymous_4)",decl:{start:{line:67,column:3},end:{line:67,column:4}},loc:{start:{line:67,column:9},end:{line:76,column:4}},line:67},5:{name:"(anonymous_5)",decl:{start:{line:78,column:3},end:{line:78,column:4}},loc:{start:{line:78,column:17},end:{line:89,column:4}},line:78},6:{name:"(anonymous_6)",decl:{start:{line:91,column:2},end:{line:91,column:3}},loc:{start:{line:91,column:13},end:{line:93,column:3}},line:91},7:{name:"(anonymous_7)",decl:{start:{line:94,column:2},end:{line:94,column:3}},loc:{start:{line:94,column:17},end:{line:96,column:3}},line:94},8:{name:"(anonymous_8)",decl:{start:{line:97,column:2},end:{line:97,column:3}},loc:{start:{line:97,column:17},end:{line:99,column:3}},line:97},9:{name:"(anonymous_9)",decl:{start:{line:100,column:2},end:{line:100,column:3}},loc:{start:{line:100,column:14},end:{line:102,column:3}},line:100},10:{name:"(anonymous_10)",decl:{start:{line:103,column:2},end:{line:103,column:3}},loc:{start:{line:103,column:16},end:{line:105,column:3}},line:103},11:{name:"(anonymous_11)",decl:{start:{line:106,column:2},end:{line:106,column:3}},loc:{start:{line:106,column:13},end:{line:108,column:3}},line:106},12:{name:"(anonymous_12)",decl:{start:{line:109,column:2},end:{line:109,column:3}},loc:{start:{line:109,column:13},end:{line:111,column:3}},line:109},13:{name:"(anonymous_13)",decl:{start:{line:112,column:2},end:{line:112,column:3}},loc:{start:{line:112,column:11},end:{line:114,column:3}},line:112},14:{name:"(anonymous_14)",decl:{start:{line:119,column:3},end:{line:119,column:4}},loc:{start:{line:119,column:19},end:{line:121,column:4}},line:119},15:{name:"(anonymous_15)",decl:{start:{line:126,column:2},end:{line:126,column:3}},loc:{start:{line:126,column:50},end:{line:137,column:3}},line:126},16:{name:"(anonymous_16)",decl:{start:{line:138,column:2},end:{line:138,column:3}},loc:{start:{line:138,column:13},end:{line:209,column:3}},line:138},17:{name:"(anonymous_17)",decl:{start:{line:156,column:35},end:{line:156,column:36}},loc:{start:{line:156,column:50},end:{line:158,column:6}},line:156},18:{name:"(anonymous_18)",decl:{start:{line:161,column:23},end:{line:161,column:24}},loc:{start:{line:161,column:38},end:{line:176,column:5}},line:161},19:{name:"(anonymous_19)",decl:{start:{line:167,column:19},end:{line:167,column:20}},loc:{start:{line:167,column:28},end:{line:171,column:8}},line:167},20:{name:"(anonymous_20)",decl:{start:{line:179,column:22},end:{line:179,column:23}},loc:{start:{line:179,column:34},end:{line:198,column:4}},line:179},21:{name:"(anonymous_21)",decl:{start:{line:181,column:19},end:{line:181,column:20}},loc:{start:{line:181,column:28},end:{line:187,column:5}},line:181},22:{name:"(anonymous_22)",decl:{start:{line:206,column:11},end:{line:206,column:12}},loc:{start:{line:206,column:22},end:{line:208,column:5}},line:206},23:{name:"(anonymous_23)",decl:{start:{line:211,column:2},end:{line:211,column:3}},loc:{start:{line:211,column:22},end:{line:219,column:3}},line:211},24:{name:"(anonymous_24)",decl:{start:{line:221,column:2},end:{line:221,column:3}},loc:{start:{line:221,column:39},end:{line:245,column:3}},line:221},25:{name:"(anonymous_25)",decl:{start:{line:247,column:2},end:{line:247,column:3}},loc:{start:{line:247,column:26},end:{line:249,column:3}},line:247},26:{name:"(anonymous_26)",decl:{start:{line:251,column:2},end:{line:251,column:3}},loc:{start:{line:251,column:35},end:{line:281,column:3}},line:251},27:{name:"(anonymous_27)",decl:{start:{line:283,column:2},end:{line:283,column:3}},loc:{start:{line:283,column:28},end:{line:285,column:3}},line:283},28:{name:"(anonymous_28)",decl:{start:{line:287,column:2},end:{line:287,column:3}},loc:{start:{line:287,column:28},end:{line:289,column:3}},line:287},29:{name:"(anonymous_29)",decl:{start:{line:291,column:2},end:{line:291,column:3}},loc:{start:{line:291,column:10},end:{line:296,column:3}},line:291},30:{name:"(anonymous_30)",decl:{start:{line:298,column:1},end:{line:298,column:2}},loc:{start:{line:298,column:11},end:{line:302,column:2}},line:298},31:{name:"(anonymous_31)",decl:{start:{line:303,column:1},end:{line:303,column:2}},loc:{start:{line:303,column:11},end:{line:350,column:2}},line:303},32:{name:"(anonymous_32)",decl:{start:{line:304,column:15},end:{line:304,column:16}},loc:{start:{line:304,column:30},end:{line:308,column:3}},line:304},33:{name:"(anonymous_33)",decl:{start:{line:305,column:19},end:{line:305,column:20}},loc:{start:{line:305,column:31},end:{line:307,column:4}},line:305},34:{name:"(anonymous_34)",decl:{start:{line:351,column:1},end:{line:351,column:2}},loc:{start:{line:351,column:17},end:{line:355,column:2}},line:351}},branchMap:{0:{loc:{start:{line:5,column:1},end:{line:11,column:2}},type:"if",locations:[{start:{line:5,column:1},end:{line:11,column:2}},{start:{line:5,column:1},end:{line:11,column:2}}],line:5},1:{loc:{start:{line:6,column:2},end:{line:10,column:3}},type:"if",locations:[{start:{line:6,column:2},end:{line:10,column:3}},{start:{line:6,column:2},end:{line:10,column:3}}],line:6},2:{loc:{start:{line:17,column:17},end:{line:17,column:41}},type:"binary-expr",locations:[{start:{line:17,column:17},end:{line:17,column:30}},{start:{line:17,column:34},end:{line:17,column:41}}],line:17},3:{loc:{start:{line:18,column:1},end:{line:20,column:2}},type:"if",locations:[{start:{line:18,column:1},end:{line:20,column:2}},{start:{line:18,column:1},end:{line:20,column:2}}],line:18},4:{loc:{start:{line:19,column:10},end:{line:19,column:43}},type:"binary-expr",locations:[{start:{line:19,column:10},end:{line:19,column:34}},{start:{line:19,column:38},end:{line:19,column:43}}],line:19},5:{loc:{start:{line:69,column:4},end:{line:73,column:5}},type:"if",locations:[{start:{line:69,column:4},end:{line:73,column:5}},{start:{line:69,column:4},end:{line:73,column:5}}],line:69},6:{loc:{start:{line:84,column:4},end:{line:88,column:5}},type:"if",locations:[{start:{line:84,column:4},end:{line:88,column:5}},{start:{line:84,column:4},end:{line:88,column:5}}],line:84},7:{loc:{start:{line:127,column:3},end:{line:136,column:4}},type:"if",locations:[{start:{line:127,column:3},end:{line:136,column:4}},{start:{line:127,column:3},end:{line:136,column:4}}],line:127},8:{loc:{start:{line:131,column:4},end:{line:133,column:5}},type:"if",locations:[{start:{line:131,column:4},end:{line:133,column:5}},{start:{line:131,column:4},end:{line:133,column:5}}],line:131},9:{loc:{start:{line:146,column:3},end:{line:177,column:4}},type:"if",locations:[{start:{line:146,column:3},end:{line:177,column:4}},{start:{line:146,column:3},end:{line:177,column:4}}],line:146},10:{loc:{start:{line:147,column:4},end:{line:150,column:26}},type:"binary-expr",locations:[{start:{line:147,column:4},end:{line:147,column:25}},{start:{line:148,column:4},end:{line:148,column:26}},{start:{line:149,column:4},end:{line:149,column:33}},{start:{line:150,column:4},end:{line:150,column:26}}],line:147},11:{loc:{start:{line:153,column:4},end:{line:159,column:5}},type:"if",locations:[{start:{line:153,column:4},end:{line:159,column:5}},{start:{line:153,column:4},end:{line:159,column:5}}],line:153},12:{loc:{start:{line:162,column:5},end:{line:175,column:6}},type:"if",locations:[{start:{line:162,column:5},end:{line:175,column:6}},{start:{line:162,column:5},end:{line:175,column:6}}],line:162},13:{loc:{start:{line:166,column:6},end:{line:174,column:7}},type:"if",locations:[{start:{line:166,column:6},end:{line:174,column:7}},{start:{line:166,column:6},end:{line:174,column:7}}],line:166},14:{loc:{start:{line:166,column:10},end:{line:166,column:43}},type:"binary-expr",locations:[{start:{line:166,column:10},end:{line:166,column:16}},{start:{line:166,column:20},end:{line:166,column:43}}],line:166},15:{loc:{start:{line:168,column:8},end:{line:170,column:9}},type:"if",locations:[{start:{line:168,column:8},end:{line:170,column:9}},{start:{line:168,column:8},end:{line:170,column:9}}],line:168},16:{loc:{start:{line:172,column:13},end:{line:174,column:7}},type:"if",locations:[{start:{line:172,column:13},end:{line:174,column:7}},{start:{line:172,column:13},end:{line:174,column:7}}],line:172},17:{loc:{start:{line:182,column:5},end:{line:186,column:6}},type:"if",locations:[{start:{line:182,column:5},end:{line:186,column:6}},{start:{line:182,column:5},end:{line:186,column:6}}],line:182},18:{loc:{start:{line:182,column:9},end:{line:182,column:39}},type:"binary-expr",locations:[{start:{line:182,column:9},end:{line:182,column:21}},{start:{line:182,column:25},end:{line:182,column:39}}],line:182},19:{loc:{start:{line:184,column:12},end:{line:186,column:6}},type:"if",locations:[{start:{line:184,column:12},end:{line:186,column:6}},{start:{line:184,column:12},end:{line:186,column:6}}],line:184},20:{loc:{start:{line:188,column:4},end:{line:190,column:5}},type:"if",locations:[{start:{line:188,column:4},end:{line:190,column:5}},{start:{line:188,column:4},end:{line:190,column:5}}],line:188},21:{loc:{start:{line:200,column:3},end:{line:202,column:4}},type:"if",locations:[{start:{line:200,column:3},end:{line:202,column:4}},{start:{line:200,column:3},end:{line:202,column:4}}],line:200},22:{loc:{start:{line:212,column:3},end:{line:217,column:4}},type:"if",locations:[{start:{line:212,column:3},end:{line:217,column:4}},{start:{line:212,column:3},end:{line:217,column:4}}],line:212},23:{loc:{start:{line:223,column:3},end:{line:229,column:4}},type:"if",locations:[{start:{line:223,column:3},end:{line:229,column:4}},{start:{line:223,column:3},end:{line:229,column:4}}],line:223},24:{loc:{start:{line:226,column:10},end:{line:229,column:4}},type:"if",locations:[{start:{line:226,column:10},end:{line:229,column:4}},{start:{line:226,column:10},end:{line:229,column:4}}],line:226},25:{loc:{start:{line:231,column:3},end:{line:244,column:4}},type:"if",locations:[{start:{line:231,column:3},end:{line:244,column:4}},{start:{line:231,column:3},end:{line:244,column:4}}],line:231},26:{loc:{start:{line:234,column:4},end:{line:236,column:5}},type:"if",locations:[{start:{line:234,column:4},end:{line:236,column:5}},{start:{line:234,column:4},end:{line:236,column:5}}],line:234},27:{loc:{start:{line:237,column:4},end:{line:243,column:5}},type:"if",locations:[{start:{line:237,column:4},end:{line:243,column:5}},{start:{line:237,column:4},end:{line:243,column:5}}],line:237},28:{loc:{start:{line:238,column:5},end:{line:242,column:6}},type:"if",locations:[{start:{line:238,column:5},end:{line:242,column:6}},{start:{line:238,column:5},end:{line:242,column:6}}],line:238},29:{loc:{start:{line:264,column:4},end:{line:277,column:5}},type:"if",locations:[{start:{line:264,column:4},end:{line:277,column:5}},{start:{line:264,column:4},end:{line:277,column:5}}],line:264},30:{loc:{start:{line:265,column:5},end:{line:272,column:6}},type:"if",locations:[{start:{line:265,column:5},end:{line:272,column:6}},{start:{line:265,column:5},end:{line:272,column:6}}],line:265},31:{loc:{start:{line:292,column:3},end:{line:295,column:4}},type:"if",locations:[{start:{line:292,column:3},end:{line:295,column:4}},{start:{line:292,column:3},end:{line:295,column:4}}],line:292},32:{loc:{start:{line:343,column:2},end:{line:349,column:3}},type:"if",locations:[{start:{line:343,column:2},end:{line:349,column:3}},{start:{line:343,column:2},end:{line:349,column:3}}],line:343},33:{loc:{start:{line:346,column:3},end:{line:348,column:4}},type:"if",locations:[{start:{line:346,column:3},end:{line:348,column:4}},{start:{line:346,column:3},end:{line:348,column:4}}],line:346}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0,0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}();Mn.s[0]++;var kn=function(n){return Mn.f[0]++,Mn.s[1]++,w()(n)?(Mn.b[0][0]++,Mn.s[2]++,null!=vn[n]?(Mn.b[1][0]++,Mn.s[3]++,vn[n]):(Mn.b[1][1]++,Mn.s[4]++,console.warn("'".concat(n,"' is not a validator function!")),Mn.s[5]++,null)):(Mn.b[0][1]++,Mn.s[6]++,n)};function Cn(n,e,l){Mn.f[1]++;var t=(Mn.s[7]++,m()(l.context,"schema.attributes",{})),o=(Mn.s[8]++,Mn.b[2][0]++,e.value||(Mn.b[2][1]++,"input"));Mn.s[9]++,w()(o)?(Mn.b[3][0]++,Mn.s[10]++,Mn.b[4][0]++,t=m()(t,o)||(Mn.b[4][1]++,t)):Mn.b[3][1]++,Mn.s[11]++,jn()(t,function(e,l){Mn.f[2]++,Mn.s[12]++,n.setAttribute(l,e)})}var Dn={props:{model:{type:Object},schema:{type:Object},formOptions:{type:Object},eventBus:{type:Object},fieldID:{type:String}},data:function(){Mn.f[3]++;var n=(Mn.s[13]++,xn()(this.fieldID+"_"));return Mn.s[14]++,{fieldUID:n,touched:!1,errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:Cn,updated:Cn,componentUpdated:Cn}},computed:{value:{cache:!1,get:function(){var n;return Mn.f[4]++,Mn.s[15]++,_()(m()(this.schema,"get"))?(Mn.b[5][0]++,Mn.s[16]++,n=this.schema.get(this.model)):(Mn.b[5][1]++,Mn.s[17]++,n=m()(this.model,this.schema.model)),Mn.s[18]++,this.formatValueToField(n)},set:function(n){Mn.f[5]++,Mn.s[19]++,this.touch();var e=(Mn.s[20]++,this.value);Mn.s[21]++,n=this.formatValueToModel(n),Mn.s[22]++,_()(n)?(Mn.b[6][0]++,Mn.s[23]++,n(n,e)):(Mn.b[6][1]++,Mn.s[24]++,this.updateModelValue(n,e))}},disabled:function(){return Mn.f[6]++,Mn.s[25]++,this.getValueFromOption(this.schema,"disabled")},fieldClasses:function(){return Mn.f[7]++,Mn.s[26]++,this.getValueFromOption(this.schema,"fieldClasses",[])},fieldOptions:function(){return Mn.f[8]++,Mn.s[27]++,this.getValueFromOption(this.schema,"fieldOptions",{})},inputName:function(){return Mn.f[9]++,Mn.s[28]++,this.getValueFromOption(this.schema,"inputName","")},placeholder:function(){return Mn.f[10]++,Mn.s[29]++,this.getValueFromOption(this.schema,"placeholder","")},readonly:function(){return Mn.f[11]++,Mn.s[30]++,this.getValueFromOption(this.schema,"readonly")},required:function(){return Mn.f[12]++,Mn.s[31]++,this.getValueFromOption(this.schema,"required")},values:function(){return Mn.f[13]++,Mn.s[32]++,this.getValueFromOption(this.schema,"values",[])}},watch:{errors:{handler:function(n){Mn.f[14]++,Mn.s[33]++,this.$emit("errors-updated",n)}}},methods:{getValueFromOption:function(n,e,l){return Mn.f[15]++,Mn.s[34]++,_()(this.$parent.getValueFromOption)?(Mn.b[7][0]++,Mn.s[35]++,this.$parent.getValueFromOption(n,e,l)):(Mn.b[7][1]++,Mn.s[36]++,y()(n[e])?(Mn.b[8][0]++,Mn.s[37]++,l):(Mn.b[8][1]++,Mn.s[38]++,n[e]))},validate:function(){var n=this;Mn.f[16]++,Mn.s[39]++,this.touch(),Mn.s[40]++,this.clearValidationErrors();var e=(Mn.s[41]++,m()(this.formOptions,"validateAsync",!1)),l=(Mn.s[42]++,[]);if(Mn.s[43]++,Mn.b[10][0]++,this.schema.validator&&(Mn.b[10][1]++,!0!==this.readonly)&&(Mn.b[10][2]++,!0!==this.schema.readonly)&&(Mn.b[10][3]++,!0!==this.disabled)){Mn.b[9][0]++;var t=(Mn.s[44]++,[]);Mn.s[45]++,a()(this.schema.validator)?(Mn.b[11][1]++,Mn.s[47]++,this.schema.validator.forEach(function(e){Mn.f[17]++,Mn.s[48]++,t.push(kn(e).bind(n))})):(Mn.b[11][0]++,Mn.s[46]++,t.push(kn(this.schema.validator).bind(this))),Mn.s[49]++,t.forEach(function(t){if(Mn.f[18]++,Mn.s[50]++,e)Mn.b[12][0]++,Mn.s[51]++,l.push(t(n.value,n.schema,n.model));else{Mn.b[12][1]++;var o=(Mn.s[52]++,t(n.value,n.schema,n.model));Mn.s[53]++,Mn.b[14][0]++,o&&(Mn.b[14][1]++,_()(o.then))?(Mn.b[13][0]++,Mn.s[54]++,o.then(function(e){Mn.f[19]++,Mn.s[55]++,e?(Mn.b[15][0]++,Mn.s[56]++,n.errors=n.errors.concat(e)):Mn.b[15][1]++})):(Mn.b[13][1]++,Mn.s[57]++,o?(Mn.b[16][0]++,Mn.s[58]++,l=l.concat(o)):Mn.b[16][1]++)}})}else Mn.b[9][1]++;Mn.s[59]++;var o=function(e){Mn.f[20]++;var l=(Mn.s[60]++,[]);Mn.s[61]++,e.forEach(function(n){Mn.f[21]++,Mn.s[62]++,Mn.b[18][0]++,a()(n)&&(Mn.b[18][1]++,n.length>0)?(Mn.b[17][0]++,Mn.s[63]++,l=l.concat(n)):(Mn.b[17][1]++,Mn.s[64]++,w()(n)?(Mn.b[19][0]++,Mn.s[65]++,l.push(n)):Mn.b[19][1]++)}),Mn.s[66]++,_()(n.schema.onValidated)?(Mn.b[20][0]++,Mn.s[67]++,n.schema.onValidated.call(n,n.model,l,n.schema)):Mn.b[20][1]++;var t=(Mn.s[68]++,0===l.length);return Mn.s[69]++,n.errors=l,Mn.s[70]++,n.eventBus.$emit("field-validated",t,l,n.fieldUID),Mn.s[71]++,l};return Mn.s[72]++,e?(Mn.b[21][1]++,Mn.s[74]++,Promise.all(l).then(o).catch(function(n){Mn.f[22]++,Mn.s[75]++,console.warn("Problem during field validation",n)})):(Mn.b[21][0]++,Mn.s[73]++,o(l))},debouncedValidate:function(){Mn.f[23]++,Mn.s[76]++,_()(this.debouncedValidateFunc)?Mn.b[22][1]++:(Mn.b[22][0]++,Mn.s[77]++,this.debouncedValidateFunc=On()(this.validate.bind(this),m()(this.formOptions,"validateDebounceTime",500))),Mn.s[78]++,this.debouncedValidateFunc()},updateModelValue:function(n,e){Mn.f[24]++;var l=(Mn.s[79]++,!1);Mn.s[80]++,_()(this.schema.set)?(Mn.b[23][0]++,Mn.s[81]++,this.schema.set(this.model,n),Mn.s[82]++,l=!0):(Mn.b[23][1]++,Mn.s[83]++,this.schema.model?(Mn.b[24][0]++,Mn.s[84]++,this.setModelValueByPath(this.schema.model,n),Mn.s[85]++,l=!0):Mn.b[24][1]++),Mn.s[86]++,l?(Mn.b[25][0]++,Mn.s[87]++,this.eventBus.$emit("model-updated",n,this.schema.model),Mn.s[88]++,_()(this.schema.onChanged)?(Mn.b[26][0]++,Mn.s[89]++,this.schema.onChanged.call(this,this.model,n,e,this.schema)):Mn.b[26][1]++,Mn.s[90]++,m()(this.formOptions,"validateAfterChanged",!1)?(Mn.b[27][0]++,Mn.s[91]++,m()(this.formOptions,"validateDebounceTime",500)>0?(Mn.b[28][0]++,Mn.s[92]++,this.debouncedValidate()):(Mn.b[28][1]++,Mn.s[93]++,this.validate())):Mn.b[27][1]++):Mn.b[25][1]++},clearValidationErrors:function(){Mn.f[25]++,Mn.s[94]++,this.errors.splice(0)},setModelValueByPath:function(n,e){Mn.f[26]++;var l=(Mn.s[95]++,n.replace(/\[(\w+)\]/g,".$1"));Mn.s[96]++,l=l.replace(/^\./,"");var t=(Mn.s[97]++,this.model),o=(Mn.s[98]++,l.split(".")),i=(Mn.s[99]++,0),c=(Mn.s[100]++,o.length);Mn.s[101]++;while(i0?(Mn.b[33][0]++,Mn.s[127]++,console.log("diff",t,this.schema.type,this.schema.model)):Mn.b[33][1]++}else Mn.b[32][1]++},beforeDestroy:function(){Mn.f[34]++,Mn.s[128]++,this.eventBus.$off("clear-validation-errors"),Mn.s[129]++,this.eventBus.$off("validate-fields"),Mn.s[130]++,this.eventBus.$emit("field-deregistering",this)}},Tn=(function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue",e="a1e2c7137f1a4487dc9d52e4f243eacebb30bf5c",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldCheckbox.vue",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),{name:"field-checkbox",mixins:[Dn]}),In=Tn,En=(l("c495"),k(In,yn,gn,!1,null,null,null));En.options.__file="fieldCheckbox.vue";var Fn=En.exports,$n=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[n.useListBox?l("div",{staticClass:"listbox form-control",attrs:{disabled:n.disabled}},n._l(n.items,function(e){return l("div",{key:n.getItemValue(e),staticClass:"list-row",class:{"is-checked":n.isItemChecked(e)}},[l("label",[l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:n.fieldID,type:"checkbox",disabled:n.disabled,name:n.getInputName(e)},domProps:{checked:n.isItemChecked(e)},on:{change:function(l){n.onChanged(l,e)}}}),n._v(n._s(n.getItemName(e))+"\n\t\t\t")])])})):n._e(),n.useListBox?n._e():l("div",{staticClass:"combobox form-control",attrs:{disabled:n.disabled}},[l("div",{staticClass:"mainRow",class:{expanded:n.comboExpanded},on:{click:n.onExpandCombo}},[l("div",{staticClass:"info"},[n._v(" "+n._s(n.selectedCount)+" selected")]),l("div",{staticClass:"arrow"})]),l("div",{staticClass:"dropList"},n._l(n.items,function(e){return n.comboExpanded?l("div",{key:n.getItemValue(e),staticClass:"list-row",class:{"is-checked":n.isItemChecked(e)}},[l("label",[l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],attrs:{id:n.fieldID,type:"checkbox",disabled:n.disabled,name:n.getInputName(e)},domProps:{checked:n.isItemChecked(e)},on:{change:function(l){n.onChanged(l,e)}}}),n._v("\n\t\t\t\t\t"+n._s(n.getItemName(e))+"\n\t\t\t\t")])]):n._e()}))])])},Nn=[],Pn=l("b8ce"),An=l.n(Pn),Vn=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue",e="314329f4a36eb9bbe20e291b8953e924977bc9cf",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldChecklist.vue",statementMap:{0:{start:{line:64,column:2},end:{line:66,column:4}},1:{start:{line:71,column:16},end:{line:71,column:34}},2:{start:{line:72,column:3},end:{line:74,column:24}},3:{start:{line:73,column:4},end:{line:73,column:57}},4:{start:{line:74,column:10},end:{line:74,column:24}},5:{start:{line:77,column:3},end:{line:77,column:44}},6:{start:{line:77,column:19},end:{line:77,column:44}},7:{start:{line:79,column:3},end:{line:79,column:12}},8:{start:{line:82,column:3},end:{line:82,column:36}},9:{start:{line:88,column:3},end:{line:90,column:4}},10:{start:{line:89,column:4},end:{line:89,column:67}},11:{start:{line:91,column:3},end:{line:91,column:43}},12:{start:{line:95,column:3},end:{line:107,column:4}},13:{start:{line:96,column:4},end:{line:104,column:5}},14:{start:{line:97,column:5},end:{line:97,column:42}},15:{start:{line:99,column:5},end:{line:103,column:6}},16:{start:{line:100,column:6},end:{line:100,column:24}},17:{start:{line:102,column:6},end:{line:102,column:243}},18:{start:{line:106,column:4},end:{line:106,column:16}},19:{start:{line:110,column:3},end:{line:122,column:4}},20:{start:{line:111,column:4},end:{line:119,column:5}},21:{start:{line:112,column:5},end:{line:112,column:41}},22:{start:{line:114,column:5},end:{line:118,column:6}},23:{start:{line:115,column:6},end:{line:115,column:23}},24:{start:{line:117,column:6},end:{line:117,column:241}},25:{start:{line:121,column:4},end:{line:121,column:16}},26:{start:{line:126,column:3},end:{line:126,column:75}},27:{start:{line:130,column:19},end:{line:130,column:39}},28:{start:{line:131,column:3},end:{line:133,column:4}},29:{start:{line:132,column:4},end:{line:132,column:20}},30:{start:{line:135,column:3},end:{line:145,column:4}},31:{start:{line:137,column:16},end:{line:137,column:33}},32:{start:{line:138,column:4},end:{line:138,column:38}},33:{start:{line:139,column:4},end:{line:139,column:21}},34:{start:{line:142,column:16},end:{line:142,column:33}},35:{start:{line:143,column:4},end:{line:143,column:63}},36:{start:{line:144,column:4},end:{line:144,column:21}},37:{start:{line:149,column:3},end:{line:149,column:44}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:63,column:1},end:{line:63,column:2}},loc:{start:{line:63,column:8},end:{line:67,column:2}},line:63},1:{name:"(anonymous_1)",decl:{start:{line:70,column:2},end:{line:70,column:3}},loc:{start:{line:70,column:10},end:{line:75,column:3}},line:70},2:{name:"(anonymous_2)",decl:{start:{line:76,column:2},end:{line:76,column:3}},loc:{start:{line:76,column:18},end:{line:80,column:3}},line:76},3:{name:"(anonymous_3)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:15},end:{line:83,column:3}},line:81},4:{name:"(anonymous_4)",decl:{start:{line:87,column:2},end:{line:87,column:3}},loc:{start:{line:87,column:21},end:{line:92,column:3}},line:87},5:{name:"(anonymous_5)",decl:{start:{line:94,column:2},end:{line:94,column:3}},loc:{start:{line:94,column:21},end:{line:108,column:3}},line:94},6:{name:"(anonymous_6)",decl:{start:{line:109,column:2},end:{line:109,column:3}},loc:{start:{line:109,column:20},end:{line:123,column:3}},line:109},7:{name:"(anonymous_7)",decl:{start:{line:125,column:2},end:{line:125,column:3}},loc:{start:{line:125,column:22},end:{line:127,column:3}},line:125},8:{name:"(anonymous_8)",decl:{start:{line:129,column:2},end:{line:129,column:3}},loc:{start:{line:129,column:25},end:{line:146,column:3}},line:129},9:{name:"(anonymous_9)",decl:{start:{line:148,column:2},end:{line:148,column:3}},loc:{start:{line:148,column:18},end:{line:150,column:3}},line:148}},branchMap:{0:{loc:{start:{line:72,column:3},end:{line:74,column:24}},type:"if",locations:[{start:{line:72,column:3},end:{line:74,column:24}},{start:{line:72,column:3},end:{line:74,column:24}}],line:72},1:{loc:{start:{line:77,column:3},end:{line:77,column:44}},type:"if",locations:[{start:{line:77,column:3},end:{line:77,column:44}},{start:{line:77,column:3},end:{line:77,column:44}}],line:77},2:{loc:{start:{line:88,column:3},end:{line:90,column:4}},type:"if",locations:[{start:{line:88,column:3},end:{line:90,column:4}},{start:{line:88,column:3},end:{line:90,column:4}}],line:88},3:{loc:{start:{line:88,column:7},end:{line:88,column:50}},type:"binary-expr",locations:[{start:{line:88,column:7},end:{line:88,column:21}},{start:{line:88,column:25},end:{line:88,column:50}}],line:88},4:{loc:{start:{line:95,column:3},end:{line:107,column:4}},type:"if",locations:[{start:{line:95,column:3},end:{line:107,column:4}},{start:{line:95,column:3},end:{line:107,column:4}}],line:95},5:{loc:{start:{line:96,column:4},end:{line:104,column:5}},type:"if",locations:[{start:{line:96,column:4},end:{line:104,column:5}},{start:{line:96,column:4},end:{line:104,column:5}}],line:96},6:{loc:{start:{line:99,column:5},end:{line:103,column:6}},type:"if",locations:[{start:{line:99,column:5},end:{line:103,column:6}},{start:{line:99,column:5},end:{line:103,column:6}}],line:99},7:{loc:{start:{line:110,column:3},end:{line:122,column:4}},type:"if",locations:[{start:{line:110,column:3},end:{line:122,column:4}},{start:{line:110,column:3},end:{line:122,column:4}}],line:110},8:{loc:{start:{line:111,column:4},end:{line:119,column:5}},type:"if",locations:[{start:{line:111,column:4},end:{line:119,column:5}},{start:{line:111,column:4},end:{line:119,column:5}}],line:111},9:{loc:{start:{line:114,column:5},end:{line:118,column:6}},type:"if",locations:[{start:{line:114,column:5},end:{line:118,column:6}},{start:{line:114,column:5},end:{line:118,column:6}}],line:114},10:{loc:{start:{line:126,column:10},end:{line:126,column:74}},type:"binary-expr",locations:[{start:{line:126,column:10},end:{line:126,column:20}},{start:{line:126,column:24},end:{line:126,column:74}}],line:126},11:{loc:{start:{line:131,column:3},end:{line:133,column:4}},type:"if",locations:[{start:{line:131,column:3},end:{line:133,column:4}},{start:{line:131,column:3},end:{line:133,column:4}}],line:131},12:{loc:{start:{line:131,column:7},end:{line:131,column:54}},type:"binary-expr",locations:[{start:{line:131,column:7},end:{line:131,column:24}},{start:{line:131,column:28},end:{line:131,column:54}}],line:131},13:{loc:{start:{line:135,column:3},end:{line:145,column:4}},type:"if",locations:[{start:{line:135,column:3},end:{line:145,column:4}},{start:{line:135,column:3},end:{line:145,column:4}}],line:135}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Ln={name:"field-checklist",mixins:[Dn],data:function(){return Vn.f[0]++,Vn.s[0]++,{comboExpanded:!1}},computed:{items:function(){Vn.f[1]++;var n=(Vn.s[1]++,this.schema.values);return Vn.s[2]++,"function"==typeof n?(Vn.b[0][0]++,Vn.s[3]++,n.apply(this,[this.model,this.schema])):(Vn.b[0][1]++,Vn.s[4]++,n)},selectedCount:function(){return Vn.f[2]++,Vn.s[5]++,this.value?(Vn.b[1][0]++,Vn.s[6]++,this.value.length):(Vn.b[1][1]++,Vn.s[7]++,0)},useListBox:function(){return Vn.f[3]++,Vn.s[8]++,this.fieldOptions.listBox}},methods:{getInputName:function(n){return Vn.f[4]++,Vn.s[9]++,Vn.b[3][0]++,this.inputName&&(Vn.b[3][1]++,this.inputName.length>0)?(Vn.b[2][0]++,Vn.s[10]++,q(this.inputName+"_"+this.getItemValue(n))):(Vn.b[2][1]++,Vn.s[11]++,q(this.getItemValue(n)))},getItemValue:function(n){if(Vn.f[5]++,Vn.s[12]++,P()(n)){if(Vn.b[4][0]++,Vn.s[13]++,"undefined"!==typeof this.fieldOptions["value"])return Vn.b[5][0]++,Vn.s[14]++,n[this.fieldOptions.value];if(Vn.b[5][1]++,Vn.s[15]++,"undefined"!==typeof n["value"])return Vn.b[6][0]++,Vn.s[16]++,n.value;throw Vn.b[6][1]++,Vn.s[17]++,"`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"}return Vn.b[4][1]++,Vn.s[18]++,n},getItemName:function(n){if(Vn.f[6]++,Vn.s[19]++,P()(n)){if(Vn.b[7][0]++,Vn.s[20]++,"undefined"!==typeof this.fieldOptions["name"])return Vn.b[8][0]++,Vn.s[21]++,n[this.fieldOptions.name];if(Vn.b[8][1]++,Vn.s[22]++,"undefined"!==typeof n["name"])return Vn.b[9][0]++,Vn.s[23]++,n.name;throw Vn.b[9][1]++,Vn.s[24]++,"`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"}return Vn.b[7][1]++,Vn.s[25]++,n},isItemChecked:function(n){return Vn.f[7]++,Vn.s[26]++,Vn.b[10][0]++,this.value&&(Vn.b[10][1]++,-1!==this.value.indexOf(this.getItemValue(n)))},onChanged:function(n,e){Vn.f[8]++;var l=(Vn.s[27]++,n.target.checked);if(Vn.s[28]++,Vn.b[12][0]++,y()(this.value)||(Vn.b[12][1]++,!Array.isArray(this.value))?(Vn.b[11][0]++,Vn.s[29]++,this.value=[]):Vn.b[11][1]++,Vn.s[30]++,l){Vn.b[13][0]++;var t=(Vn.s[31]++,An()(this.value));Vn.s[32]++,t.push(this.getItemValue(e)),Vn.s[33]++,this.value=t}else{Vn.b[13][1]++;var o=(Vn.s[34]++,An()(this.value));Vn.s[35]++,o.splice(this.value.indexOf(this.getItemValue(e)),1),Vn.s[36]++,this.value=o}},onExpandCombo:function(){Vn.f[9]++,Vn.s[37]++,this.comboExpanded=!this.comboExpanded}}},Bn=Ln,Rn=(l("3f6b"),k(Bn,$n,Nn,!1,null,null,null));Rn.options.__file="fieldChecklist.vue";var Hn=Rn.exports,Yn=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:n.fieldClasses,attrs:{id:n.fieldID,type:n.inputType,disabled:n.disabled,accept:n.fieldOptions.accept,alt:n.fieldOptions.alt,autocomplete:n.fieldOptions.autocomplete,dirname:n.fieldOptions.dirname,formaction:n.fieldOptions.formaction,formenctype:n.fieldOptions.formenctype,formmethod:n.fieldOptions.formmethod,formnovalidate:n.fieldOptions.formnovalidate,formtarget:n.fieldOptions.formtarget,height:n.fieldOptions.height,list:n.fieldOptions.list,max:n.fieldOptions.max,maxlength:n.fieldOptions.maxlength,min:n.fieldOptions.min,minlength:n.fieldOptions.minlength,multiple:n.fieldOptions.multiple,name:n.inputName,pattern:n.fieldOptions.pattern,placeholder:n.placeholder,readonly:n.readonly,required:n.schema.required,size:n.fieldOptions.size,src:n.fieldOptions.src,step:n.fieldOptions.step,width:n.fieldOptions.width,files:n.fieldOptions.files},domProps:{value:n.value,checked:n.fieldOptions.checked},on:{input:n.onInput,blur:n.onBlur,change:function(e){n.schema.onChange}}}),"color"===n.inputType||"range"===n.inputType?l("span",{staticClass:"helper",domProps:{textContent:n._s(n.value)}}):n._e()])},Un=[],zn=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue",e="21b1cece73d1932c4ddcb91d9ff3c2a8b33dd5e4",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldInput.vue",statementMap:{0:{start:{line:52,column:25},end:{line:56,column:1}},1:{start:{line:63,column:3},end:{line:67,column:4}},2:{start:{line:64,column:4},end:{line:64,column:53}},3:{start:{line:66,column:4},end:{line:66,column:86}},4:{start:{line:72,column:3},end:{line:84,column:4}},5:{start:{line:73,column:4},end:{line:83,column:5}},6:{start:{line:80,column:6},end:{line:82,column:8}},7:{start:{line:81,column:7},end:{line:81,column:49}},8:{start:{line:86,column:3},end:{line:86,column:16}},9:{start:{line:89,column:23},end:{line:89,column:55}},10:{start:{line:90,column:11},end:{line:90,column:47}},11:{start:{line:91,column:3},end:{line:97,column:4}},12:{start:{line:92,column:4},end:{line:96,column:5}},13:{start:{line:93,column:5},end:{line:93,column:52}},14:{start:{line:95,column:5},end:{line:95,column:28}},15:{start:{line:98,column:3},end:{line:98,column:45}},16:{start:{line:101,column:3},end:{line:103,column:4}},17:{start:{line:102,column:4},end:{line:102,column:19}},18:{start:{line:104,column:3},end:{line:104,column:45}},19:{start:{line:107,column:15},end:{line:107,column:34}},20:{start:{line:108,column:3},end:{line:115,column:4}},21:{start:{line:111,column:5},end:{line:113,column:6}},22:{start:{line:112,column:6},end:{line:112,column:46}},23:{start:{line:114,column:5},end:{line:114,column:11}},24:{start:{line:116,column:3},end:{line:116,column:22}},25:{start:{line:119,column:3},end:{line:121,column:4}},26:{start:{line:120,column:4},end:{line:120,column:37}},27:{start:{line:126,column:2},end:{line:155,column:3}},28:{start:{line:129,column:4},end:{line:138,column:6}},29:{start:{line:131,column:6},end:{line:131,column:51}},30:{start:{line:139,column:4},end:{line:139,column:10}},31:{start:{line:144,column:4},end:{line:153,column:6}},32:{start:{line:146,column:6},end:{line:146,column:53}},33:{start:{line:154,column:4},end:{line:154,column:10}},34:{start:{line:159,column:2},end:{line:161,column:3}},35:{start:{line:160,column:3},end:{line:160,column:91}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:14},end:{line:68,column:3}},line:62},1:{name:"(anonymous_1)",decl:{start:{line:71,column:2},end:{line:71,column:3}},loc:{start:{line:71,column:28},end:{line:87,column:3}},line:71},2:{name:"(anonymous_2)",decl:{start:{line:80,column:13},end:{line:80,column:14}},loc:{start:{line:80,column:37},end:{line:82,column:7}},line:80},3:{name:"(anonymous_3)",decl:{start:{line:88,column:2},end:{line:88,column:3}},loc:{start:{line:88,column:44},end:{line:99,column:3}},line:88},4:{name:"(anonymous_4)",decl:{start:{line:100,column:2},end:{line:100,column:3}},loc:{start:{line:100,column:42},end:{line:105,column:3}},line:100},5:{name:"(anonymous_5)",decl:{start:{line:106,column:2},end:{line:106,column:3}},loc:{start:{line:106,column:18},end:{line:117,column:3}},line:106},6:{name:"(anonymous_6)",decl:{start:{line:118,column:2},end:{line:118,column:3}},loc:{start:{line:118,column:11},end:{line:122,column:3}},line:118},7:{name:"(anonymous_7)",decl:{start:{line:125,column:1},end:{line:125,column:2}},loc:{start:{line:125,column:11},end:{line:156,column:2}},line:125},8:{name:"(anonymous_8)",decl:{start:{line:130,column:5},end:{line:130,column:6}},loc:{start:{line:130,column:29},end:{line:132,column:6}},line:130},9:{name:"(anonymous_9)",decl:{start:{line:145,column:5},end:{line:145,column:6}},loc:{start:{line:145,column:29},end:{line:147,column:6}},line:145},10:{name:"(anonymous_10)",decl:{start:{line:158,column:1},end:{line:158,column:2}},loc:{start:{line:158,column:11},end:{line:162,column:2}},line:158}},branchMap:{0:{loc:{start:{line:63,column:3},end:{line:67,column:4}},type:"if",locations:[{start:{line:63,column:3},end:{line:67,column:4}},{start:{line:63,column:3},end:{line:67,column:4}}],line:63},1:{loc:{start:{line:72,column:3},end:{line:84,column:4}},type:"if",locations:[{start:{line:72,column:3},end:{line:84,column:4}},{start:{line:72,column:3},end:{line:84,column:4}}],line:72},2:{loc:{start:{line:73,column:4},end:{line:83,column:5}},type:"switch",locations:[{start:{line:74,column:5},end:{line:74,column:17}},{start:{line:75,column:5},end:{line:75,column:21}},{start:{line:76,column:5},end:{line:76,column:27}},{start:{line:77,column:5},end:{line:77,column:19}},{start:{line:78,column:5},end:{line:82,column:8}}],line:73},3:{loc:{start:{line:91,column:3},end:{line:97,column:4}},type:"if",locations:[{start:{line:91,column:3},end:{line:97,column:4}},{start:{line:91,column:3},end:{line:97,column:4}}],line:91},4:{loc:{start:{line:92,column:4},end:{line:96,column:5}},type:"if",locations:[{start:{line:92,column:4},end:{line:96,column:5}},{start:{line:92,column:4},end:{line:96,column:5}}],line:92},5:{loc:{start:{line:101,column:3},end:{line:103,column:4}},type:"if",locations:[{start:{line:101,column:3},end:{line:103,column:4}},{start:{line:101,column:3},end:{line:103,column:4}}],line:101},6:{loc:{start:{line:108,column:3},end:{line:115,column:4}},type:"switch",locations:[{start:{line:109,column:4},end:{line:109,column:18}},{start:{line:110,column:4},end:{line:114,column:11}}],line:108},7:{loc:{start:{line:111,column:5},end:{line:113,column:6}},type:"if",locations:[{start:{line:111,column:5},end:{line:113,column:6}},{start:{line:111,column:5},end:{line:113,column:6}}],line:111},8:{loc:{start:{line:119,column:3},end:{line:121,column:4}},type:"if",locations:[{start:{line:119,column:3},end:{line:121,column:4}},{start:{line:119,column:3},end:{line:121,column:4}}],line:119},9:{loc:{start:{line:126,column:2},end:{line:155,column:3}},type:"switch",locations:[{start:{line:127,column:3},end:{line:127,column:17}},{start:{line:128,column:3},end:{line:139,column:10}},{start:{line:140,column:3},end:{line:140,column:15}},{start:{line:141,column:3},end:{line:141,column:19}},{start:{line:142,column:3},end:{line:154,column:10}}],line:126},10:{loc:{start:{line:159,column:2},end:{line:161,column:3}},type:"if",locations:[{start:{line:159,column:2},end:{line:161,column:3}},{start:{line:159,column:2},end:{line:161,column:3}}],line:159}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0,0,0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0,0,0],10:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),qn=(zn.s[0]++,{date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"}),Gn={name:"field-input",mixins:[Dn],computed:{inputType:function(){if(zn.f[0]++,zn.s[1]++,"undefined"!==typeof this.fieldOptions.inputType)return zn.b[0][0]++,zn.s[2]++,this.fieldOptions.inputType.toLowerCase();zn.b[0][1]++,zn.s[3]++,console.warn("Missing inputType",this.fieldOptions,this.fieldOptions.inputType)}},methods:{formatValueToModel:function(n){var e=this;if(zn.f[1]++,zn.s[4]++,null!=n)switch(zn.b[1][0]++,zn.s[5]++,this.inputType){case"date":zn.b[2][0]++;case"datetime":zn.b[2][1]++;case"datetime-local":zn.b[2][2]++;case"number":zn.b[2][3]++;case"range":return zn.b[2][4]++,zn.s[6]++,function(l,t){zn.f[2]++,zn.s[7]++,e.debouncedFormatFunc(n,t)}}else zn.b[1][1]++;return zn.s[8]++,n},formatDatetimeToModel:function(n,e){zn.f[3]++;var l=(zn.s[9]++,qn[this.inputType]),t=(zn.s[10]++,mn.a.parse(n,l));zn.s[11]++,!1!==t?(zn.b[3][0]++,zn.s[12]++,this.schema.format?(zn.b[4][0]++,zn.s[13]++,n=mn.a.format(t,this.schema.format)):(zn.b[4][1]++,zn.s[14]++,n=t.valueOf())):zn.b[3][1]++,zn.s[15]++,this.updateModelValue(n,e)},formatNumberToModel:function(n,e){zn.f[4]++,zn.s[16]++,un()(n)?zn.b[5][1]++:(zn.b[5][0]++,zn.s[17]++,n=NaN),zn.s[18]++,this.updateModelValue(n,e)},onInput:function(n){zn.f[5]++;var e=(zn.s[19]++,n.target.value);switch(zn.s[20]++,this.inputType){case"number":zn.b[6][0]++;case"range":zn.b[6][1]++,zn.s[21]++,un()(parseFloat(n.target.value))?(zn.b[7][0]++,zn.s[22]++,e=parseFloat(n.target.value)):zn.b[7][1]++,zn.s[23]++;break}zn.s[24]++,this.value=e},onBlur:function(){zn.f[6]++,zn.s[25]++,_()(this.debouncedFormatFunc)?(zn.b[8][0]++,zn.s[26]++,this.debouncedFormatFunc.flush()):zn.b[8][1]++}},mounted:function(){var n=this;switch(zn.f[7]++,zn.s[27]++,this.inputType){case"number":zn.b[9][0]++;case"range":zn.b[9][1]++,zn.s[28]++,this.debouncedFormatFunc=On()(function(e,l){zn.f[8]++,zn.s[29]++,n.formatNumberToModel(e,l)},parseInt(m()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1}),zn.s[30]++;break;case"date":zn.b[9][2]++;case"datetime":zn.b[9][3]++;case"datetime-local":zn.b[9][4]++,zn.s[31]++,this.debouncedFormatFunc=On()(function(e,l){zn.f[9]++,zn.s[32]++,n.formatDatetimeToModel(e,l)},parseInt(m()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1}),zn.s[33]++;break}},created:function(){zn.f[10]++,zn.s[34]++,"file"===this.inputType?(zn.b[10][0]++,zn.s[35]++,console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")):zn.b[10][1]++}},Zn=Gn,Wn=(l("8a23"),k(Zn,Yn,Un,!1,null,null,null));Wn.options.__file="fieldInput.vue";var Xn=Wn.exports,Jn=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("span",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],class:n.fieldClasses,attrs:{id:n.fieldID},domProps:{textContent:n._s(n.value)}})},Kn=[],Qn=(function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue",e="e0e8d398553634fa5cd6162f995cc222d002256b",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldLabel.vue",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),{name:"field-label",mixins:[Dn]}),ne=Qn,ee=(l("b72b"),k(ne,Jn,Kn,!1,null,null,null));ee.options.__file="fieldLabel.vue";var le=ee.exports,te=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"radio-list",attrs:{disabled:n.disabled}},n._l(n.items,function(e){return l("label",{directives:[{name:"attributes",rawName:"v-attributes",value:"label",expression:"'label'"}],key:n.getItemValue(e),class:{"is-checked":n.isItemChecked(e)}},[l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:n.fieldClasses,attrs:{id:n.fieldID,type:"radio",disabled:n.disabled,name:n.id,required:n.required},domProps:{value:n.getItemValue(e),checked:n.isItemChecked(e)},on:{click:function(l){n.onSelection(e)}}}),n._v(n._s(n.getItemName(e))+"\n\t")])}))},oe=[],ie=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue",e="41a18432705c71af0b221e887e1a797ecd647f22",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldRadios.vue",statementMap:{0:{start:{line:34,column:16},end:{line:34,column:34}},1:{start:{line:35,column:3},end:{line:39,column:4}},2:{start:{line:36,column:4},end:{line:36,column:57}},3:{start:{line:38,column:4},end:{line:38,column:18}},4:{start:{line:42,column:3},end:{line:42,column:28}},5:{start:{line:48,column:3},end:{line:60,column:4}},6:{start:{line:49,column:4},end:{line:57,column:5}},7:{start:{line:50,column:5},end:{line:50,column:42}},8:{start:{line:52,column:5},end:{line:56,column:6}},9:{start:{line:53,column:6},end:{line:53,column:24}},10:{start:{line:55,column:6},end:{line:55,column:237}},11:{start:{line:59,column:4},end:{line:59,column:16}},12:{start:{line:63,column:3},end:{line:75,column:4}},13:{start:{line:64,column:4},end:{line:72,column:5}},14:{start:{line:65,column:5},end:{line:65,column:41}},15:{start:{line:67,column:5},end:{line:71,column:6}},16:{start:{line:68,column:6},end:{line:68,column:23}},17:{start:{line:70,column:6},end:{line:70,column:235}},18:{start:{line:74,column:4},end:{line:74,column:16}},19:{start:{line:78,column:3},end:{line:78,column:40}},20:{start:{line:81,column:22},end:{line:81,column:45}},21:{start:{line:82,column:3},end:{line:82,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:10},end:{line:40,column:3}},line:33},1:{name:"(anonymous_1)",decl:{start:{line:41,column:2},end:{line:41,column:3}},loc:{start:{line:41,column:7},end:{line:43,column:3}},line:41},2:{name:"(anonymous_2)",decl:{start:{line:47,column:2},end:{line:47,column:3}},loc:{start:{line:47,column:21},end:{line:61,column:3}},line:47},3:{name:"(anonymous_3)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:20},end:{line:76,column:3}},line:62},4:{name:"(anonymous_4)",decl:{start:{line:77,column:2},end:{line:77,column:3}},loc:{start:{line:77,column:20},end:{line:79,column:3}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:80,column:2},end:{line:80,column:3}},loc:{start:{line:80,column:22},end:{line:83,column:3}},line:80}},branchMap:{0:{loc:{start:{line:35,column:3},end:{line:39,column:4}},type:"if",locations:[{start:{line:35,column:3},end:{line:39,column:4}},{start:{line:35,column:3},end:{line:39,column:4}}],line:35},1:{loc:{start:{line:48,column:3},end:{line:60,column:4}},type:"if",locations:[{start:{line:48,column:3},end:{line:60,column:4}},{start:{line:48,column:3},end:{line:60,column:4}}],line:48},2:{loc:{start:{line:49,column:4},end:{line:57,column:5}},type:"if",locations:[{start:{line:49,column:4},end:{line:57,column:5}},{start:{line:49,column:4},end:{line:57,column:5}}],line:49},3:{loc:{start:{line:52,column:5},end:{line:56,column:6}},type:"if",locations:[{start:{line:52,column:5},end:{line:56,column:6}},{start:{line:52,column:5},end:{line:56,column:6}}],line:52},4:{loc:{start:{line:63,column:3},end:{line:75,column:4}},type:"if",locations:[{start:{line:63,column:3},end:{line:75,column:4}},{start:{line:63,column:3},end:{line:75,column:4}}],line:63},5:{loc:{start:{line:64,column:4},end:{line:72,column:5}},type:"if",locations:[{start:{line:64,column:4},end:{line:72,column:5}},{start:{line:64,column:4},end:{line:72,column:5}}],line:64},6:{loc:{start:{line:67,column:5},end:{line:71,column:6}},type:"if",locations:[{start:{line:67,column:5},end:{line:71,column:6}},{start:{line:67,column:5},end:{line:71,column:6}}],line:67}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),ce={name:"field-radios",mixins:[Dn],computed:{items:function(){ie.f[0]++;var n=(ie.s[0]++,this.schema.values);return ie.s[1]++,"function"==typeof n?(ie.b[0][0]++,ie.s[2]++,n.apply(this,[this.model,this.schema])):(ie.b[0][1]++,ie.s[3]++,n)},id:function(){return ie.f[1]++,ie.s[4]++,this.schema.model}},methods:{getItemValue:function(n){if(ie.f[2]++,ie.s[5]++,P()(n)){if(ie.b[1][0]++,ie.s[6]++,"undefined"!==typeof this.fieldOptions["value"])return ie.b[2][0]++,ie.s[7]++,n[this.fieldOptions.value];if(ie.b[2][1]++,ie.s[8]++,"undefined"!==typeof n["value"])return ie.b[3][0]++,ie.s[9]++,n.value;throw ie.b[3][1]++,ie.s[10]++,"`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"}return ie.b[1][1]++,ie.s[11]++,n},getItemName:function(n){if(ie.f[3]++,ie.s[12]++,P()(n)){if(ie.b[4][0]++,ie.s[13]++,"undefined"!==typeof this.fieldOptions["name"])return ie.b[5][0]++,ie.s[14]++,n[this.fieldOptions.name];if(ie.b[5][1]++,ie.s[15]++,"undefined"!==typeof n["name"])return ie.b[6][0]++,ie.s[16]++,n.name;throw ie.b[6][1]++,ie.s[17]++,"`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"}return ie.b[4][1]++,ie.s[18]++,n},onSelection:function(n){ie.f[4]++,ie.s[19]++,this.value=this.getItemValue(n)},isItemChecked:function(n){ie.f[5]++;var e=(ie.s[20]++,this.getItemValue(n));return ie.s[21]++,e===this.value}}},ue=ce,re=(l("602f"),k(ue,te,oe,!1,null,null,null));re.options.__file="fieldRadios.vue";var ae=re.exports,se=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("select",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:n.fieldClasses,attrs:{disabled:n.disabled,name:n.inputName,id:n.fieldID},on:{change:function(e){var l=Array.prototype.filter.call(e.target.options,function(n){return n.selected}).map(function(n){var e="_value"in n?n._value:n.value;return e});n.value=e.target.multiple?l:l[0]}}},[n.fieldOptions.hideNoneSelectedText?n._e():l("option",{attrs:{disabled:n.schema.required},domProps:{value:null}},[n._v(" "+n._s(n.fieldOptions.noneSelectedText||"")+"\n\t")]),n._l(n.items,function(e){return[e.group?l("optgroup",{key:n.getItemValue(e),attrs:{label:n.getGroupName(e)}},n._l(e.ops,function(t){return e.ops?l("option",{key:n.getItemValue(t),domProps:{value:n.getItemValue(t)}},[n._v(" "+n._s(n.getItemName(t)))]):n._e()})):n._e(),e.group?n._e():l("option",{key:n.getItemValue(e),domProps:{value:n.getItemValue(e)}},[n._v(" "+n._s(n.getItemName(e)))])]})],2)},me=[],de=l("2769"),fe=l.n(de),pe=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue",e="8eabcdaef34305c76a5accd8a0e0c7e6b0d9ee14",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSelect.vue",statementMap:{0:{start:{line:41,column:16},end:{line:41,column:34}},1:{start:{line:42,column:3},end:{line:44,column:42}},2:{start:{line:43,column:4},end:{line:43,column:75}},3:{start:{line:44,column:10},end:{line:44,column:42}},4:{start:{line:50,column:3},end:{line:52,column:4}},5:{start:{line:51,column:4},end:{line:51,column:16}},6:{start:{line:53,column:3},end:{line:53,column:16}},7:{start:{line:57,column:15},end:{line:57,column:17}},8:{start:{line:58,column:22},end:{line:58,column:24}},9:{start:{line:60,column:3},end:{line:101,column:6}},10:{start:{line:61,column:4},end:{line:61,column:24}},11:{start:{line:63,column:4},end:{line:100,column:5}},12:{start:{line:67,column:5},end:{line:67,column:63}},13:{start:{line:67,column:39},end:{line:67,column:61}},14:{start:{line:69,column:5},end:{line:96,column:6}},15:{start:{line:72,column:6},end:{line:75,column:9}},16:{start:{line:80,column:6},end:{line:83,column:8}},17:{start:{line:86,column:6},end:{line:86,column:38}},18:{start:{line:89,column:6},end:{line:92,column:9}},19:{start:{line:95,column:6},end:{line:95,column:31}},20:{start:{line:99,column:5},end:{line:99,column:22}},21:{start:{line:104,column:3},end:{line:104,column:16}},22:{start:{line:108,column:3},end:{line:110,column:4}},23:{start:{line:109,column:4},end:{line:109,column:22}},24:{start:{line:112,column:3},end:{line:112,column:136}},25:{start:{line:116,column:3},end:{line:129,column:4}},26:{start:{line:117,column:4},end:{line:126,column:5}},27:{start:{line:118,column:5},end:{line:118,column:42}},28:{start:{line:121,column:5},end:{line:125,column:6}},29:{start:{line:122,column:6},end:{line:122,column:21}},30:{start:{line:124,column:6},end:{line:124,column:233}},31:{start:{line:128,column:4},end:{line:128,column:16}},32:{start:{line:133,column:3},end:{line:145,column:4}},33:{start:{line:134,column:4},end:{line:142,column:5}},34:{start:{line:135,column:5},end:{line:135,column:41}},35:{start:{line:137,column:5},end:{line:141,column:6}},36:{start:{line:138,column:6},end:{line:138,column:23}},37:{start:{line:140,column:6},end:{line:140,column:234}},38:{start:{line:144,column:4},end:{line:144,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:10},end:{line:45,column:3}},line:40},1:{name:"(anonymous_1)",decl:{start:{line:49,column:2},end:{line:49,column:3}},loc:{start:{line:49,column:28},end:{line:54,column:3}},line:49},2:{name:"(anonymous_2)",decl:{start:{line:56,column:2},end:{line:56,column:3}},loc:{start:{line:56,column:22},end:{line:105,column:3}},line:56},3:{name:"(anonymous_3)",decl:{start:{line:60,column:18},end:{line:60,column:19}},loc:{start:{line:60,column:28},end:{line:101,column:4}},line:60},4:{name:"(anonymous_4)",decl:{start:{line:67,column:32},end:{line:67,column:33}},loc:{start:{line:67,column:39},end:{line:67,column:61}},line:67},5:{name:"(anonymous_5)",decl:{start:{line:107,column:2},end:{line:107,column:3}},loc:{start:{line:107,column:21},end:{line:113,column:3}},line:107},6:{name:"(anonymous_6)",decl:{start:{line:115,column:2},end:{line:115,column:3}},loc:{start:{line:115,column:21},end:{line:130,column:3}},line:115},7:{name:"(anonymous_7)",decl:{start:{line:132,column:2},end:{line:132,column:3}},loc:{start:{line:132,column:20},end:{line:146,column:3}},line:132}},branchMap:{0:{loc:{start:{line:42,column:3},end:{line:44,column:42}},type:"if",locations:[{start:{line:42,column:3},end:{line:44,column:42}},{start:{line:42,column:3},end:{line:44,column:42}}],line:42},1:{loc:{start:{line:50,column:3},end:{line:52,column:4}},type:"if",locations:[{start:{line:50,column:3},end:{line:52,column:4}},{start:{line:50,column:3},end:{line:52,column:4}}],line:50},2:{loc:{start:{line:63,column:4},end:{line:100,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:100,column:5}},{start:{line:63,column:4},end:{line:100,column:5}}],line:63},3:{loc:{start:{line:63,column:8},end:{line:63,column:36}},type:"binary-expr",locations:[{start:{line:63,column:8},end:{line:63,column:18}},{start:{line:63,column:22},end:{line:63,column:36}}],line:63},4:{loc:{start:{line:69,column:5},end:{line:96,column:6}},type:"if",locations:[{start:{line:69,column:5},end:{line:96,column:6}},{start:{line:69,column:5},end:{line:96,column:6}}],line:69},5:{loc:{start:{line:108,column:3},end:{line:110,column:4}},type:"if",locations:[{start:{line:108,column:3},end:{line:110,column:4}},{start:{line:108,column:3},end:{line:110,column:4}}],line:108},6:{loc:{start:{line:108,column:7},end:{line:108,column:25}},type:"binary-expr",locations:[{start:{line:108,column:7},end:{line:108,column:11}},{start:{line:108,column:15},end:{line:108,column:25}}],line:108},7:{loc:{start:{line:116,column:3},end:{line:129,column:4}},type:"if",locations:[{start:{line:116,column:3},end:{line:129,column:4}},{start:{line:116,column:3},end:{line:129,column:4}}],line:116},8:{loc:{start:{line:117,column:4},end:{line:126,column:5}},type:"if",locations:[{start:{line:117,column:4},end:{line:126,column:5}},{start:{line:117,column:4},end:{line:126,column:5}}],line:117},9:{loc:{start:{line:121,column:5},end:{line:125,column:6}},type:"if",locations:[{start:{line:121,column:5},end:{line:125,column:6}},{start:{line:121,column:5},end:{line:125,column:6}}],line:121},10:{loc:{start:{line:133,column:3},end:{line:145,column:4}},type:"if",locations:[{start:{line:133,column:3},end:{line:145,column:4}},{start:{line:133,column:3},end:{line:145,column:4}}],line:133},11:{loc:{start:{line:134,column:4},end:{line:142,column:5}},type:"if",locations:[{start:{line:134,column:4},end:{line:142,column:5}},{start:{line:134,column:4},end:{line:142,column:5}}],line:134},12:{loc:{start:{line:137,column:5},end:{line:141,column:6}},type:"if",locations:[{start:{line:137,column:5},end:{line:141,column:6}},{start:{line:137,column:5},end:{line:141,column:6}}],line:137}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),be={name:"field-select",mixins:[Dn],computed:{items:function(){pe.f[0]++;var n=(pe.s[0]++,this.schema.values);return pe.s[1]++,"function"==typeof n?(pe.b[0][0]++,pe.s[2]++,this.groupValues(n.apply(this,[this.model,this.schema]))):(pe.b[0][1]++,pe.s[3]++,this.groupValues(n))}},methods:{formatValueToField:function(n){return pe.f[1]++,pe.s[4]++,y()(n)?(pe.b[1][0]++,pe.s[5]++,null):(pe.b[1][1]++,pe.s[6]++,n)},groupValues:function(n){pe.f[2]++;var e=(pe.s[7]++,[]),l=(pe.s[8]++,{});return pe.s[9]++,n.forEach(function(n){pe.f[3]++,pe.s[10]++,l=null,pe.s[11]++,pe.b[3][0]++,n.group&&(pe.b[3][1]++,P()(n))?(pe.b[2][0]++,pe.s[12]++,l=fe()(e,function(e){return pe.f[4]++,pe.s[13]++,e.group===n.group}),pe.s[14]++,l?(pe.b[4][0]++,pe.s[15]++,l.ops.push({id:n.id,name:n.name})):(pe.b[4][1]++,pe.s[16]++,l={group:"",ops:[]},pe.s[17]++,l.group=n.group,pe.s[18]++,l.ops.push({id:n.id,name:n.name}),pe.s[19]++,e.push(l))):(pe.b[2][1]++,pe.s[20]++,e.push(n))}),pe.s[21]++,e},getGroupName:function(n){if(pe.f[5]++,pe.s[22]++,pe.b[6][0]++,n&&(pe.b[6][1]++,n.group))return pe.b[5][0]++,pe.s[23]++,n.group;throw pe.b[5][1]++,pe.s[24]++,"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(n){if(pe.f[6]++,pe.s[25]++,P()(n)){if(pe.b[7][0]++,pe.s[26]++,"undefined"!==typeof this.fieldOptions["value"])return pe.b[8][0]++,pe.s[27]++,n[this.fieldOptions.value];if(pe.b[8][1]++,pe.s[28]++,"undefined"!==typeof n["id"])return pe.b[9][0]++,pe.s[29]++,n.id;throw pe.b[9][1]++,pe.s[30]++,"`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"}return pe.b[7][1]++,pe.s[31]++,n},getItemName:function(n){if(pe.f[7]++,pe.s[32]++,P()(n)){if(pe.b[10][0]++,pe.s[33]++,"undefined"!==typeof this.fieldOptions["name"])return pe.b[11][0]++,pe.s[34]++,n[this.fieldOptions.name];if(pe.b[11][1]++,pe.s[35]++,"undefined"!==typeof n["name"])return pe.b[12][0]++,pe.s[36]++,n.name;throw pe.b[12][1]++,pe.s[37]++,"`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"}return pe.b[10][1]++,pe.s[38]++,n}}},he=be,ve=k(he,se,me,!1,null,null,null);ve.options.__file="fieldSelect.vue";var ye=ve.exports,ge=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],class:n.fieldClasses,attrs:{id:n.fieldID,type:"submit",name:n.inputName,disabled:n.disabled},domProps:{value:n.fieldOptions.buttonText},on:{click:n.onClick}})},_e=[],xe=l("13ea"),we=l.n(xe),Oe=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue",e="705dcd2f9bd065a866442cf99ecf19cdc719dc61",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldSubmit.vue",statementMap:{0:{start:{line:22,column:3},end:{line:39,column:4}},1:{start:{line:25,column:4},end:{line:25,column:28}},2:{start:{line:27,column:4},end:{line:27,column:53}},3:{start:{line:28,column:4},end:{line:34,column:7}},4:{start:{line:29,column:5},end:{line:33,column:6}},5:{start:{line:30,column:6},end:{line:30,column:87}},6:{start:{line:31,column:12},end:{line:33,column:6}},7:{start:{line:32,column:6},end:{line:32,column:66}},8:{start:{line:35,column:10},end:{line:39,column:4}},9:{start:{line:38,column:4},end:{line:38,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:21,column:2},end:{line:21,column:3}},loc:{start:{line:21,column:18},end:{line:40,column:3}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:28,column:54},end:{line:28,column:55}},loc:{start:{line:28,column:70},end:{line:34,column:5}},line:28}},branchMap:{0:{loc:{start:{line:22,column:3},end:{line:39,column:4}},type:"if",locations:[{start:{line:22,column:3},end:{line:39,column:4}},{start:{line:22,column:3},end:{line:39,column:4}}],line:22},1:{loc:{start:{line:29,column:5},end:{line:33,column:6}},type:"if",locations:[{start:{line:29,column:5},end:{line:33,column:6}},{start:{line:29,column:5},end:{line:33,column:6}}],line:29},2:{loc:{start:{line:29,column:9},end:{line:29,column:80}},type:"binary-expr",locations:[{start:{line:29,column:9},end:{line:29,column:29}},{start:{line:29,column:33},end:{line:29,column:80}}],line:29},3:{loc:{start:{line:31,column:12},end:{line:33,column:6}},type:"if",locations:[{start:{line:31,column:12},end:{line:33,column:6}},{start:{line:31,column:12},end:{line:33,column:6}}],line:31},4:{loc:{start:{line:35,column:10},end:{line:39,column:4}},type:"if",locations:[{start:{line:35,column:10},end:{line:39,column:4}},{start:{line:35,column:10},end:{line:39,column:4}}],line:35}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Se={name:"field-submit",mixins:[Dn],methods:{onClick:function(n){var e=this;Oe.f[0]++,Oe.s[0]++,!0===this.fieldOptions.validateBeforeSubmit?(Oe.b[0][0]++,Oe.s[1]++,n.preventDefault(),Oe.s[2]++,this.eventBus.$emit("fields-validation-trigger"),Oe.s[3]++,this.eventBus.$on("fields-validation-terminated",function(l){Oe.f[1]++,Oe.s[4]++,Oe.b[2][0]++,!we()(l)&&(Oe.b[2][1]++,_()(e.fieldOptions.onValidationError))?(Oe.b[1][0]++,Oe.s[5]++,e.fieldOptions.onValidationError(e.model,e.schema,l,n)):(Oe.b[1][1]++,Oe.s[6]++,_()(e.fieldOptions.onSubmit)?(Oe.b[3][0]++,Oe.s[7]++,e.fieldOptions.onSubmit(e.model,e.schema,n)):Oe.b[3][1]++)})):(Oe.b[0][1]++,Oe.s[8]++,_()(this.fieldOptions.onSubmit)?(Oe.b[4][0]++,Oe.s[9]++,this.fieldOptions.onSubmit(this.model,this.schema,n)):Oe.b[4][1]++)}}},je=Se,Me=(l("eb5d"),k(je,ge,_e,!1,null,null,null));Me.options.__file="fieldSubmit.vue";var ke=Me.exports,Ce=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("textarea",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"},{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",class:n.fieldClasses,attrs:{id:n.fieldID,disabled:n.disabled,maxlength:n.fieldOptions.max,minlength:n.fieldOptions.min,placeholder:n.placeholder,required:n.required,readonly:n.readonly,rows:n.fieldOptions.rows||2,name:n.inputName},domProps:{value:n.value},on:{input:function(e){e.target.composing||(n.value=e.target.value)}}})},De=[],Te=(function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue",e="cad11a306f38168b3da4ad2f7aaa633fbbd53d56",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldTextArea.vue",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),{name:"field-textArea",mixins:[Dn]}),Ie=Te,Ee=k(Ie,Ce,De,!1,null,null,null);Ee.options.__file="fieldTextArea.vue";var Fe=Ee.exports,$e=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{directives:[{name:"attributes",rawName:"v-attributes",value:"wrapper",expression:"'wrapper'"}],staticClass:"wrapper"},[l("input",{directives:[{name:"attributes",rawName:"v-attributes",value:"input",expression:"'input'"}],staticClass:"form-control",attrs:{id:n.fieldID,type:"file",name:n.inputName,accept:n.fieldOptions.accept,multiple:n.fieldOptions.multiple,placeholder:n.placeholder,readonly:n.readonly,required:n.schema.required,disabled:n.disabled},on:{change:n.onChange}})])},Ne=[],Pe=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue",e="2d53023d636a56005ec40d048d8b3dd58211ad58",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\core\\fieldUpload.vue",statementMap:{0:{start:{line:28,column:3},end:{line:31,column:4}},1:{start:{line:30,column:4},end:{line:30,column:82}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:19},end:{line:32,column:3}},line:27}},branchMap:{0:{loc:{start:{line:28,column:3},end:{line:31,column:4}},type:"if",locations:[{start:{line:28,column:3},end:{line:31,column:4}},{start:{line:28,column:3},end:{line:31,column:4}}],line:28}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Ae={name:"field-upload",mixins:[Dn],methods:{onChange:function(n){Pe.f[0]++,Pe.s[0]++,_()(this.fieldOptions.onChanged)?(Pe.b[0][0]++,Pe.s[1]++,this.fieldOptions.onChanged.call(this,this.model,this.schema,n,this)):Pe.b[0][1]++}}},Ve=Ae,Le=(l("b018"),k(Ve,$e,Ne,!1,null,null,null));Le.options.__file="fieldUpload.vue";var Be=Le.exports,Re=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{staticClass:"form-control",attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName,id:n.fieldID},domProps:{value:n.value}})},He=[],Ye=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue",e="42d278f718bae81662eb9c983c26bea42713db98",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldCleave.vue",statementMap:{0:{start:{line:22,column:2},end:{line:24,column:4}},1:{start:{line:28,column:2},end:{line:70,column:5}},2:{start:{line:29,column:3},end:{line:69,column:4}},3:{start:{line:30,column:4},end:{line:56,column:6}},4:{start:{line:58,column:4},end:{line:64,column:5}},5:{start:{line:59,column:5},end:{line:61,column:8}},6:{start:{line:60,column:6},end:{line:60,column:49}},7:{start:{line:63,column:5},end:{line:63,column:58}},8:{start:{line:66,column:4},end:{line:68,column:6}},9:{start:{line:75,column:3},end:{line:75,column:31}},10:{start:{line:80,column:2},end:{line:83,column:3}},11:{start:{line:81,column:3},end:{line:81,column:25}},12:{start:{line:82,column:3},end:{line:82,column:59}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:21,column:1},end:{line:21,column:2}},loc:{start:{line:21,column:8},end:{line:25,column:2}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:27,column:1},end:{line:27,column:2}},loc:{start:{line:27,column:11},end:{line:71,column:2}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:28,column:17},end:{line:28,column:18}},loc:{start:{line:28,column:28},end:{line:70,column:3}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:59,column:45},end:{line:59,column:46}},loc:{start:{line:59,column:51},end:{line:61,column:6}},line:59},4:{name:"(anonymous_4)",decl:{start:{line:74,column:2},end:{line:74,column:3}},loc:{start:{line:74,column:16},end:{line:76,column:3}},line:74},5:{name:"(anonymous_5)",decl:{start:{line:79,column:1},end:{line:79,column:2}},loc:{start:{line:79,column:17},end:{line:84,column:2}},line:79}},branchMap:{0:{loc:{start:{line:29,column:3},end:{line:69,column:4}},type:"if",locations:[{start:{line:29,column:3},end:{line:69,column:4}},{start:{line:29,column:3},end:{line:69,column:4}}],line:29},1:{loc:{start:{line:58,column:4},end:{line:64,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:64,column:5}},{start:{line:58,column:4},end:{line:64,column:5}}],line:58},2:{loc:{start:{line:58,column:8},end:{line:58,column:81}},type:"binary-expr",locations:[{start:{line:58,column:8},end:{line:58,column:30}},{start:{line:58,column:34},end:{line:58,column:81}}],line:58},3:{loc:{start:{line:80,column:2},end:{line:83,column:3}},type:"if",locations:[{start:{line:80,column:2},end:{line:83,column:3}},{start:{line:80,column:2},end:{line:83,column:3}}],line:80}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Ue={name:"field-cleave",mixins:[Dn],data:function(){return Ye.f[0]++,Ye.s[0]++,{cleave:null}},mounted:function(){Ye.f[1]++,Ye.s[1]++,this.$nextTick(function(){var n=this;Ye.f[2]++,Ye.s[2]++,window.Cleave?(Ye.b[0][0]++,Ye.s[3]++,this.cleave=new window.Cleave(this.$el,an()(this.fieldOptions,{creditCard:!1,phone:!1,phoneRegionCode:"AU",date:!1,datePattern:["d","m","Y"],numeral:!1,numeralThousandsGroupStyle:"thousand",numeralDecimalScale:2,numeralDecimalMark:".",blocks:[],delimiter:" ",prefix:null,numericOnly:!1,uppercase:!1,lowercase:!1,maxLength:0})),Ye.s[4]++,Ye.b[2][0]++,this.cleave.properties&&(Ye.b[2][1]++,this.cleave.properties.hasOwnProperty("result"))?(Ye.b[1][0]++,Ye.s[5]++,this.$watch("cleave.properties.result",function(){Ye.f[3]++,Ye.s[6]++,n.value=n.cleave.properties.result})):(Ye.b[1][1]++,Ye.s[7]++,this.$el.addEventListener("input",this.inputChange))):(Ye.b[0][1]++,Ye.s[8]++,console.warn("Cleave is missing. Please download from https://github.com/nosir/cleave.js/ and load the script in the HTML head section!"))})},methods:{inputChange:function(){Ye.f[4]++,Ye.s[9]++,this.value=this.$el.value}},beforeDestroy:function(){Ye.f[5]++,Ye.s[10]++,this.cleave?(Ye.b[3][0]++,Ye.s[11]++,this.cleave.destroy(),Ye.s[12]++,this.$el.removeEventListener("input",this.inputChange)):Ye.b[3][1]++}},ze=Ue,qe=k(ze,Re,He,!1,null,null,null);qe.options.__file="fieldCleave.vue";var Ge=qe.exports,Ze=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{staticClass:"input-group date"},[l("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName,id:n.fieldID},domProps:{value:n.value},on:{input:function(e){e.target.composing||(n.value=e.target.value)}}}),n._m(0)])},We=[function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("span",{staticClass:"input-group-addon"},[l("span",{staticClass:"glyphicon glyphicon-calendar"})])}];function Xe(n){for(var e=1;e"):(pl.b[2][1]++,pl.s[5]++,this.value)},set:function(n){pl.f[2]++,pl.s[6]++,pl.b[5][0]++,n&&(pl.b[5][1]++,0===n.indexOf("http"))?(pl.b[4][0]++,pl.s[7]++,this.value=n):pl.b[4][1]++}}},watch:{model:function(){pl.f[3]++;var n=(pl.s[8]++,this.$el.querySelector("input.file"));pl.s[9]++,n?(pl.b[6][0]++,pl.s[10]++,n.value=""):pl.b[6][1]++}},methods:{remove:function(){pl.f[4]++,pl.s[11]++,this.value=""},fileChanged:function(n){var e=this;pl.f[5]++;var l=(pl.s[12]++,new FileReader);pl.s[13]++,l.onload=function(n){pl.f[6]++,pl.s[14]++,e.value=n.target.result},pl.s[15]++,pl.b[8][0]++,n.target.files&&(pl.b[8][1]++,n.target.files.length>0)?(pl.b[7][0]++,pl.s[16]++,l.readAsDataURL(n.target.files[0])):pl.b[7][1]++}}},hl=bl,vl=(l("2d36"),k(hl,dl,fl,!1,null,null,null));vl.options.__file="fieldImage.vue";var yl=vl.exports,gl=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName,id:n.fieldID},domProps:{value:n.value},on:{input:function(e){e.target.composing||(n.value=e.target.value)}}})},_l=[],xl=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue",e="7fb5aa8ab47674e512530fcd6cbeff0c35705026",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldMasked.vue",statementMap:{0:{start:{line:22,column:2},end:{line:32,column:5}},1:{start:{line:23,column:3},end:{line:31,column:4}},2:{start:{line:24,column:4},end:{line:26,column:66}},3:{start:{line:28,column:4},end:{line:30,column:6}},4:{start:{line:36,column:2},end:{line:36,column:57}},5:{start:{line:36,column:36},end:{line:36,column:57}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:21,column:1},end:{line:21,column:2}},loc:{start:{line:21,column:11},end:{line:33,column:2}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:22,column:17},end:{line:22,column:18}},loc:{start:{line:22,column:28},end:{line:32,column:3}},line:22},2:{name:"(anonymous_2)",decl:{start:{line:35,column:1},end:{line:35,column:2}},loc:{start:{line:35,column:17},end:{line:37,column:2}},line:35}},branchMap:{0:{loc:{start:{line:23,column:3},end:{line:31,column:4}},type:"if",locations:[{start:{line:23,column:3},end:{line:31,column:4}},{start:{line:23,column:3},end:{line:31,column:4}}],line:23},1:{loc:{start:{line:23,column:7},end:{line:23,column:35}},type:"binary-expr",locations:[{start:{line:23,column:7},end:{line:23,column:15}},{start:{line:23,column:19},end:{line:23,column:35}}],line:23},2:{loc:{start:{line:36,column:2},end:{line:36,column:57}},type:"if",locations:[{start:{line:36,column:2},end:{line:36,column:57}},{start:{line:36,column:2},end:{line:36,column:57}}],line:36},3:{loc:{start:{line:36,column:6},end:{line:36,column:34}},type:"binary-expr",locations:[{start:{line:36,column:6},end:{line:36,column:14}},{start:{line:36,column:18},end:{line:36,column:34}}],line:36}},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),wl={name:"field-masked",mixins:[Dn],mounted:function(){xl.f[0]++,xl.s[0]++,this.$nextTick(function(){xl.f[1]++,xl.s[1]++,xl.b[1][0]++,window.$&&(xl.b[1][1]++,window.$.fn.mask)?(xl.b[0][0]++,xl.s[2]++,$(this.$el).unmask().mask(this.fieldOptions.mask,this.fieldOptions.maskOptions)):(xl.b[0][1]++,xl.s[3]++,console.warn("JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!"))})},beforeDestroy:function(){xl.f[2]++,xl.s[4]++,xl.b[3][0]++,window.$&&(xl.b[3][1]++,window.$.fn.mask)?(xl.b[2][0]++,xl.s[5]++,$(this.$el).unmask()):xl.b[2][1]++}},Ol=wl,Sl=k(Ol,gl,_l,!1,null,null,null);Sl.options.__file="fieldMasked.vue";var jl=Sl.exports,Ml=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("div",{staticClass:"slider",class:{"contain-pips":n.containPips,"contain-tooltip":n.containTooltip},attrs:{disabled:n.disabled}})},kl=[],Cl=(l("c5f6"),function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue",e="82de372a9c97ce71e6b568006e67497410069899",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldNoUiSlider.vue",statementMap:{0:{start:{line:16,column:2},end:{line:18,column:4}},1:{start:{line:23,column:3},end:{line:25,column:4}},2:{start:{line:24,column:4},end:{line:24,column:43}},3:{start:{line:31,column:3},end:{line:31,column:56}},4:{start:{line:34,column:3},end:{line:34,column:60}},5:{start:{line:40,column:3},end:{line:46,column:4}},6:{start:{line:42,column:4},end:{line:42,column:62}},7:{start:{line:45,column:4},end:{line:45,column:35}},8:{start:{line:49,column:3},end:{line:51,column:4}},9:{start:{line:50,column:4},end:{line:50,column:38}},10:{start:{line:54,column:3},end:{line:60,column:4}},11:{start:{line:55,column:4},end:{line:59,column:5}},12:{start:{line:56,column:5},end:{line:56,column:45}},13:{start:{line:58,column:5},end:{line:58,column:24}},14:{start:{line:63,column:3},end:{line:71,column:4}},15:{start:{line:64,column:4},end:{line:64,column:22}},16:{start:{line:66,column:4},end:{line:70,column:5}},17:{start:{line:67,column:5},end:{line:67,column:59}},18:{start:{line:69,column:5},end:{line:69,column:34}},19:{start:{line:76,column:2},end:{line:95,column:5}},20:{start:{line:77,column:3},end:{line:94,column:4}},21:{start:{line:78,column:4},end:{line:78,column:27}},22:{start:{line:79,column:4},end:{line:88,column:6}},23:{start:{line:89,column:4},end:{line:89,column:66}},24:{start:{line:91,column:4},end:{line:93,column:6}},25:{start:{line:99,column:2},end:{line:99,column:56}},26:{start:{line:99,column:19},end:{line:99,column:56}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:15,column:1},end:{line:15,column:2}},loc:{start:{line:15,column:8},end:{line:19,column:2}},line:15},1:{name:"(anonymous_1)",decl:{start:{line:22,column:9},end:{line:22,column:10}},loc:{start:{line:22,column:20},end:{line:26,column:3}},line:22},2:{name:"(anonymous_2)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:16},end:{line:32,column:3}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:19},end:{line:35,column:3}},line:33},4:{name:"(anonymous_4)",decl:{start:{line:39,column:2},end:{line:39,column:3}},loc:{start:{line:39,column:18},end:{line:47,column:3}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:48,column:2},end:{line:48,column:3}},loc:{start:{line:48,column:28},end:{line:52,column:3}},line:48},6:{name:"(anonymous_6)",decl:{start:{line:53,column:2},end:{line:53,column:3}},loc:{start:{line:53,column:26},end:{line:61,column:3}},line:53},7:{name:"(anonymous_7)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:18},end:{line:72,column:3}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:75,column:1},end:{line:75,column:2}},loc:{start:{line:75,column:11},end:{line:96,column:2}},line:75},9:{name:"(anonymous_9)",decl:{start:{line:76,column:17},end:{line:76,column:18}},loc:{start:{line:76,column:23},end:{line:95,column:3}},line:76},10:{name:"(anonymous_10)",decl:{start:{line:98,column:1},end:{line:98,column:2}},loc:{start:{line:98,column:17},end:{line:100,column:2}},line:98}},branchMap:{0:{loc:{start:{line:23,column:3},end:{line:25,column:4}},type:"if",locations:[{start:{line:23,column:3},end:{line:25,column:4}},{start:{line:23,column:3},end:{line:25,column:4}}],line:23},1:{loc:{start:{line:23,column:7},end:{line:23,column:65}},type:"binary-expr",locations:[{start:{line:23,column:7},end:{line:23,column:24}},{start:{line:23,column:28},end:{line:23,column:39}},{start:{line:23,column:43},end:{line:23,column:65}}],line:23},2:{loc:{start:{line:40,column:3},end:{line:46,column:4}},type:"if",locations:[{start:{line:40,column:3},end:{line:46,column:4}},{start:{line:40,column:3},end:{line:46,column:4}}],line:40},3:{loc:{start:{line:49,column:3},end:{line:51,column:4}},type:"if",locations:[{start:{line:49,column:3},end:{line:51,column:4}},{start:{line:49,column:3},end:{line:51,column:4}}],line:49},4:{loc:{start:{line:49,column:7},end:{line:49,column:76}},type:"binary-expr",locations:[{start:{line:49,column:7},end:{line:49,column:27}},{start:{line:49,column:31},end:{line:49,column:76}}],line:49},5:{loc:{start:{line:54,column:3},end:{line:60,column:4}},type:"if",locations:[{start:{line:54,column:3},end:{line:60,column:4}},{start:{line:54,column:3},end:{line:60,column:4}}],line:54},6:{loc:{start:{line:55,column:4},end:{line:59,column:5}},type:"if",locations:[{start:{line:55,column:4},end:{line:59,column:5}},{start:{line:55,column:4},end:{line:59,column:5}}],line:55},7:{loc:{start:{line:63,column:3},end:{line:71,column:4}},type:"if",locations:[{start:{line:63,column:3},end:{line:71,column:4}},{start:{line:63,column:3},end:{line:71,column:4}}],line:63},8:{loc:{start:{line:66,column:4},end:{line:70,column:5}},type:"if",locations:[{start:{line:66,column:4},end:{line:70,column:5}},{start:{line:66,column:4},end:{line:70,column:5}}],line:66},9:{loc:{start:{line:77,column:3},end:{line:94,column:4}},type:"if",locations:[{start:{line:77,column:3},end:{line:94,column:4}},{start:{line:77,column:3},end:{line:94,column:4}}],line:77},10:{loc:{start:{line:81,column:14},end:{line:81,column:37}},type:"binary-expr",locations:[{start:{line:81,column:14},end:{line:81,column:31}},{start:{line:81,column:35},end:{line:81,column:37}}],line:81},11:{loc:{start:{line:99,column:2},end:{line:99,column:56}},type:"if",locations:[{start:{line:99,column:2},end:{line:99,column:56}},{start:{line:99,column:2},end:{line:99,column:56}}],line:99}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}()),Dl={name:"field-noUiSlider",mixins:[Dn],data:function(){return Cl.f[0]++,Cl.s[0]++,{slider:null}},watch:{model:function(){Cl.f[1]++,Cl.s[1]++,Cl.b[1][0]++,window.noUiSlider&&(Cl.b[1][1]++,this.slider)&&(Cl.b[1][2]++,this.slider.noUiSlider)?(Cl.b[0][0]++,Cl.s[2]++,this.slider.noUiSlider.set(this.value)):Cl.b[0][1]++}},computed:{containPips:function(){return Cl.f[2]++,Cl.s[3]++,"undefined"!==typeof this.fieldOptions.pips},containTooltip:function(){return Cl.f[3]++,Cl.s[4]++,"undefined"!==typeof this.fieldOptions.tooltips}},methods:{onChange:function(n){Cl.f[4]++,Cl.s[5]++,a()(n)?(Cl.b[2][0]++,Cl.s[6]++,this.value=[parseFloat(n[0]),parseFloat(n[1])]):(Cl.b[2][1]++,Cl.s[7]++,this.value=parseFloat(n))},formatValueToField:function(n){Cl.f[5]++,Cl.s[8]++,Cl.b[4][0]++,null!==this.slider&&(Cl.b[4][1]++,"undefined"!==typeof this.slider.noUiSlider)?(Cl.b[3][0]++,Cl.s[9]++,this.slider.noUiSlider.set(n)):Cl.b[3][1]++},formatValueToModel:function(n){if(Cl.f[6]++,Cl.s[10]++,"undefined"!==typeof this.slider.noUiSlider)return Cl.b[5][0]++,Cl.s[11]++,n instanceof Array?(Cl.b[6][0]++,Cl.s[12]++,[Number(n[0]),Number(n[1])]):(Cl.b[6][1]++,Cl.s[13]++,Number(n));Cl.b[5][1]++},getStartValue:function(){return Cl.f[7]++,Cl.s[14]++,null!=this.value?(Cl.b[7][0]++,Cl.s[15]++,this.value):(Cl.b[7][1]++,Cl.s[16]++,"undefined"!==typeof this.fieldOptions.double?(Cl.b[8][0]++,Cl.s[17]++,[this.fieldOptions.min,this.fieldOptions.min]):(Cl.b[8][1]++,Cl.s[18]++,this.fieldOptions.min))}},mounted:function(){var n=this;Cl.f[8]++,Cl.s[19]++,this.$nextTick(function(){Cl.f[9]++,Cl.s[20]++,window.noUiSlider?(Cl.b[9][0]++,Cl.s[21]++,n.slider=n.$el,Cl.s[22]++,window.noUiSlider.create(n.slider,an()((Cl.b[10][0]++,n.fieldOptions||(Cl.b[10][1]++,{})),{start:n.getStartValue(),range:{min:n.fieldOptions.min,max:n.fieldOptions.max}})),Cl.s[23]++,n.slider.noUiSlider.on("change",n.onChange.bind(n))):(Cl.b[9][1]++,Cl.s[24]++,console.warn("noUiSlider is missing. Please download from https://github.com/leongersen/noUiSlider and load the script and CSS in the HTML head section!"))})},beforeDestroy:function(){Cl.f[10]++,Cl.s[25]++,this.slider?(Cl.b[11][0]++,Cl.s[26]++,this.slider.noUiSlider.off("change")):Cl.b[11][1]++}},Tl=Dl,Il=(l("bf23"),k(Tl,Ml,kl,!1,null,null,null));Il.options.__file="fieldNoUiSlider.vue";var El=Il.exports,Fl=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],staticClass:"form-control",attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName},domProps:{value:n.value},on:{input:function(e){e.target.composing||(n.value=e.target.value)}}})},$l=[],Nl=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue",e="a9c8b42d1187233cdc70fac7edea66779c107a80",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldPikaday.vue",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:26}},1:{start:{line:29,column:2},end:{line:45,column:5}},2:{start:{line:30,column:3},end:{line:44,column:4}},3:{start:{line:31,column:4},end:{line:39,column:6}},4:{start:{line:35,column:7},end:{line:35,column:43}},5:{start:{line:41,column:4},end:{line:43,column:6}},6:{start:{line:49,column:2},end:{line:49,column:41}},7:{start:{line:49,column:19},end:{line:49,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:20,column:1},end:{line:20,column:2}},loc:{start:{line:20,column:8},end:{line:22,column:2}},line:20},1:{name:"(anonymous_1)",decl:{start:{line:28,column:1},end:{line:28,column:2}},loc:{start:{line:28,column:11},end:{line:46,column:2}},line:28},2:{name:"(anonymous_2)",decl:{start:{line:29,column:17},end:{line:29,column:18}},loc:{start:{line:29,column:23},end:{line:45,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:22},end:{line:36,column:7}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:48,column:1},end:{line:48,column:2}},loc:{start:{line:48,column:17},end:{line:50,column:2}},line:48}},branchMap:{0:{loc:{start:{line:30,column:3},end:{line:44,column:4}},type:"if",locations:[{start:{line:30,column:3},end:{line:44,column:4}},{start:{line:30,column:3},end:{line:44,column:4}}],line:30},1:{loc:{start:{line:49,column:2},end:{line:49,column:41}},type:"if",locations:[{start:{line:49,column:2},end:{line:49,column:41}},{start:{line:49,column:2},end:{line:49,column:41}}],line:49}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Pl={name:"field-pikaday",mixins:[Dn],data:function(){return Nl.f[0]++,Nl.s[0]++,{picker:null}},methods:Xe({},Qe),mounted:function(){var n=this;Nl.f[1]++,Nl.s[1]++,this.$nextTick(function(){Nl.f[2]++,Nl.s[2]++,window.Pikaday?(Nl.b[0][0]++,Nl.s[3]++,n.picker=new window.Pikaday(an()(n.fieldOptions,{field:n.$el,onSelect:function(){Nl.f[3]++,Nl.s[4]++,n.value=n.picker.toString()}}))):(Nl.b[0][1]++,Nl.s[5]++,console.warn("Pikaday is missing. Please download from https://github.com/dbushell/Pikaday/ and load the script and CSS in the HTML head section!"))})},beforeDestroy:function(){Nl.f[4]++,Nl.s[6]++,this.picker?(Nl.b[1][0]++,Nl.s[7]++,this.picker.destroy()):Nl.b[1][1]++}},Al=Pl,Vl=k(Al,Fl,$l,!1,null,null,null);Vl.options.__file="fieldPikaday.vue";var Ll=Vl.exports,Bl=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,"data-disable":n.disabled,"data-max":n.fieldOptions.max,"data-min":n.fieldOptions.min,"data-step":n.fieldOptions.step,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName}})},Rl=[];function Hl(n){if(Array.isArray(n))return n}function Yl(n,e){var l=[],t=!0,o=!1,i=void 0;try{for(var c,u=n[Symbol.iterator]();!(t=(c=u.next()).done);t=!0)if(l.push(c.value),e&&l.length===e)break}catch(n){o=!0,i=n}finally{try{t||null==u["return"]||u["return"]()}finally{if(o)throw i}}return l}function Ul(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function zl(n,e){return Hl(n)||Yl(n,e)||Ul()}var ql=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue",e="4ac599bbccd8c0d0f6aec89dc3a6237a43680c29",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldRangeSlider.vue",statementMap:{0:{start:{line:24,column:2},end:{line:26,column:4}},1:{start:{line:31,column:3},end:{line:43,column:4}},2:{start:{line:33,column:4},end:{line:35,column:34}},3:{start:{line:34,column:5},end:{line:34,column:39}},4:{start:{line:35,column:11},end:{line:35,column:34}},5:{start:{line:37,column:4},end:{line:42,column:5}},6:{start:{line:38,column:5},end:{line:41,column:8}},7:{start:{line:48,column:2},end:{line:78,column:5}},8:{start:{line:49,column:3},end:{line:77,column:4}},9:{start:{line:51,column:4},end:{line:53,column:34}},10:{start:{line:52,column:5},end:{line:52,column:39}},11:{start:{line:53,column:11},end:{line:53,column:34}},12:{start:{line:55,column:15},end:{line:55,column:19}},13:{start:{line:56,column:4},end:{line:71,column:6}},14:{start:{line:64,column:7},end:{line:68,column:8}},15:{start:{line:65,column:8},end:{line:65,column:46}},16:{start:{line:67,column:8},end:{line:67,column:33}},17:{start:{line:72,column:4},end:{line:72,column:53}},18:{start:{line:74,column:4},end:{line:76,column:6}},19:{start:{line:82,column:2},end:{line:82,column:41}},20:{start:{line:82,column:19},end:{line:82,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:1},end:{line:23,column:2}},loc:{start:{line:23,column:8},end:{line:27,column:2}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:30,column:9},end:{line:30,column:10}},loc:{start:{line:30,column:20},end:{line:44,column:3}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:47,column:1},end:{line:47,column:2}},loc:{start:{line:47,column:11},end:{line:79,column:2}},line:47},3:{name:"(anonymous_3)",decl:{start:{line:48,column:17},end:{line:48,column:18}},loc:{start:{line:48,column:28},end:{line:78,column:3}},line:48},4:{name:"(anonymous_4)",decl:{start:{line:63,column:6},end:{line:63,column:7}},loc:{start:{line:63,column:23},end:{line:69,column:7}},line:63},5:{name:"(anonymous_5)",decl:{start:{line:81,column:1},end:{line:81,column:2}},loc:{start:{line:81,column:17},end:{line:83,column:2}},line:81}},branchMap:{0:{loc:{start:{line:31,column:3},end:{line:43,column:4}},type:"if",locations:[{start:{line:31,column:3},end:{line:43,column:4}},{start:{line:31,column:3},end:{line:43,column:4}}],line:31},1:{loc:{start:{line:31,column:7},end:{line:31,column:45}},type:"binary-expr",locations:[{start:{line:31,column:7},end:{line:31,column:15}},{start:{line:31,column:19},end:{line:31,column:45}}],line:31},2:{loc:{start:{line:33,column:4},end:{line:35,column:34}},type:"if",locations:[{start:{line:33,column:4},end:{line:35,column:34}},{start:{line:33,column:4},end:{line:35,column:34}}],line:33},3:{loc:{start:{line:37,column:4},end:{line:42,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:42,column:5}},{start:{line:37,column:4},end:{line:42,column:5}}],line:37},4:{loc:{start:{line:49,column:3},end:{line:77,column:4}},type:"if",locations:[{start:{line:49,column:3},end:{line:77,column:4}},{start:{line:49,column:3},end:{line:77,column:4}}],line:49},5:{loc:{start:{line:49,column:7},end:{line:49,column:45}},type:"binary-expr",locations:[{start:{line:49,column:7},end:{line:49,column:15}},{start:{line:49,column:19},end:{line:49,column:45}}],line:49},6:{loc:{start:{line:51,column:4},end:{line:53,column:34}},type:"if",locations:[{start:{line:51,column:4},end:{line:53,column:34}},{start:{line:51,column:4},end:{line:53,column:34}}],line:51},7:{loc:{start:{line:64,column:7},end:{line:68,column:8}},type:"if",locations:[{start:{line:64,column:7},end:{line:68,column:8}},{start:{line:64,column:7},end:{line:68,column:8}}],line:64},8:{loc:{start:{line:82,column:2},end:{line:82,column:41}},type:"if",locations:[{start:{line:82,column:2},end:{line:82,column:41}},{start:{line:82,column:2},end:{line:82,column:41}}],line:82}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Gl={name:"field-rangeSlider",mixins:[Dn],data:function(){return ql.f[0]++,ql.s[0]++,{slider:null}},watch:{model:function(){if(ql.f[1]++,ql.s[1]++,ql.b[1][0]++,window.$&&(ql.b[1][1]++,window.$.fn.ionRangeSlider)){var n,e;if(ql.b[0][0]++,ql.s[2]++,a()(this.value)){ql.b[2][0]++,ql.s[3]++;var l=zl(this.value,2);n=l[0],e=l[1]}else ql.b[2][1]++,ql.s[4]++,n=this.value;ql.s[5]++,this.slider?(ql.b[3][0]++,ql.s[6]++,this.slider.update({from:n,to:e})):ql.b[3][1]++}else ql.b[0][1]++}},mounted:function(){ql.f[2]++,ql.s[7]++,this.$nextTick(function(){if(ql.f[3]++,ql.s[8]++,ql.b[5][0]++,window.$&&(ql.b[5][1]++,window.$.fn.ionRangeSlider)){var n,e;if(ql.b[4][0]++,ql.s[9]++,a()(this.value)){ql.b[6][0]++,ql.s[10]++;var l=zl(this.value,2);n=l[0],e=l[1]}else ql.b[6][1]++,ql.s[11]++,n=this.value;var t=(ql.s[12]++,this);ql.s[13]++,$(this.$el).ionRangeSlider(an()(this.fieldOptions,{type:"single",grid:!0,hide_min_max:!0,from:n,to:e,onChange:function(n){ql.f[4]++,ql.s[14]++,"double"===t.slider.options.type?(ql.b[7][0]++,ql.s[15]++,t.value=[n.from,n.to]):(ql.b[7][1]++,ql.s[16]++,t.value=n.from)}})),ql.s[17]++,this.slider=$(this.$el).data("ionRangeSlider")}else ql.b[4][1]++,ql.s[18]++,console.warn("ion.rangeSlider library is missing. Please download from https://github.com/IonDen/ion.rangeSlider and load the script and CSS in the HTML head section!")})},beforeDestroy:function(){ql.f[5]++,ql.s[19]++,this.slider?(ql.b[8][0]++,ql.s[20]++,this.slider.destroy()):ql.b[8][1]++}},Zl=Gl,Wl=(l("d474"),k(Zl,Bl,Rl,!1,null,null,null));Wl.options.__file="fieldRangeSlider.vue";var Xl=Wl.exports,Jl=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("select",{directives:[{name:"model",rawName:"v-model",value:n.value,expression:"value"}],staticClass:"selectpicker",attrs:{disabled:n.disabled,multiple:n.fieldOptions.multiSelect,title:n.placeholder,"data-width":"100%",name:n.inputName},on:{change:function(e){var l=Array.prototype.filter.call(e.target.options,function(n){return n.selected}).map(function(n){var e="_value"in n?n._value:n.value;return e});n.value=e.target.multiple?l:l[0]}}},[!0!==n.fieldOptions.multiSelect?l("option",{attrs:{disabled:n.schema.required},domProps:{value:null,selected:void 0==n.value}}):n._e(),n._l(n.items,function(e){return l("option",{key:n.getItemValue(e),domProps:{value:n.getItemValue(e)}},[n._v(" "+n._s(n.getItemName(e)))])})],2)},Kl=[],Ql=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue",e="e28ff38ed9467807d2f87ed07c60185a05aaf64e",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSelectEx.vue",statementMap:{0:{start:{line:30,column:16},end:{line:30,column:34}},1:{start:{line:31,column:3},end:{line:33,column:24}},2:{start:{line:32,column:4},end:{line:32,column:57}},3:{start:{line:33,column:10},end:{line:33,column:24}},4:{start:{line:39,column:3},end:{line:52,column:4}},5:{start:{line:40,column:4},end:{line:49,column:5}},6:{start:{line:41,column:5},end:{line:41,column:42}},7:{start:{line:44,column:5},end:{line:48,column:6}},8:{start:{line:45,column:6},end:{line:45,column:21}},9:{start:{line:47,column:6},end:{line:47,column:233}},10:{start:{line:51,column:4},end:{line:51,column:16}},11:{start:{line:56,column:3},end:{line:68,column:4}},12:{start:{line:57,column:4},end:{line:65,column:5}},13:{start:{line:58,column:5},end:{line:58,column:41}},14:{start:{line:60,column:5},end:{line:64,column:6}},15:{start:{line:61,column:6},end:{line:61,column:23}},16:{start:{line:63,column:6},end:{line:63,column:234}},17:{start:{line:67,column:4},end:{line:67,column:16}},18:{start:{line:74,column:3},end:{line:74,column:93}},19:{start:{line:74,column:57},end:{line:74,column:93}},20:{start:{line:79,column:2},end:{line:89,column:5}},21:{start:{line:80,column:3},end:{line:88,column:4}},22:{start:{line:81,column:4},end:{line:83,column:38}},23:{start:{line:85,column:4},end:{line:87,column:6}},24:{start:{line:93,column:2},end:{line:93,column:61}},25:{start:{line:93,column:25},end:{line:93,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:10},end:{line:34,column:3}},line:29},1:{name:"(anonymous_1)",decl:{start:{line:38,column:2},end:{line:38,column:3}},loc:{start:{line:38,column:21},end:{line:53,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:55,column:2},end:{line:55,column:3}},loc:{start:{line:55,column:20},end:{line:69,column:3}},line:55},3:{name:"(anonymous_3)",decl:{start:{line:73,column:9},end:{line:73,column:10}},loc:{start:{line:73,column:20},end:{line:75,column:3}},line:73},4:{name:"(anonymous_4)",decl:{start:{line:78,column:1},end:{line:78,column:2}},loc:{start:{line:78,column:11},end:{line:90,column:2}},line:78},5:{name:"(anonymous_5)",decl:{start:{line:79,column:17},end:{line:79,column:18}},loc:{start:{line:79,column:23},end:{line:89,column:3}},line:79},6:{name:"(anonymous_6)",decl:{start:{line:92,column:1},end:{line:92,column:2}},loc:{start:{line:92,column:17},end:{line:94,column:2}},line:92}},branchMap:{0:{loc:{start:{line:31,column:3},end:{line:33,column:24}},type:"if",locations:[{start:{line:31,column:3},end:{line:33,column:24}},{start:{line:31,column:3},end:{line:33,column:24}}],line:31},1:{loc:{start:{line:39,column:3},end:{line:52,column:4}},type:"if",locations:[{start:{line:39,column:3},end:{line:52,column:4}},{start:{line:39,column:3},end:{line:52,column:4}}],line:39},2:{loc:{start:{line:40,column:4},end:{line:49,column:5}},type:"if",locations:[{start:{line:40,column:4},end:{line:49,column:5}},{start:{line:40,column:4},end:{line:49,column:5}}],line:40},3:{loc:{start:{line:44,column:5},end:{line:48,column:6}},type:"if",locations:[{start:{line:44,column:5},end:{line:48,column:6}},{start:{line:44,column:5},end:{line:48,column:6}}],line:44},4:{loc:{start:{line:56,column:3},end:{line:68,column:4}},type:"if",locations:[{start:{line:56,column:3},end:{line:68,column:4}},{start:{line:56,column:3},end:{line:68,column:4}}],line:56},5:{loc:{start:{line:57,column:4},end:{line:65,column:5}},type:"if",locations:[{start:{line:57,column:4},end:{line:65,column:5}},{start:{line:57,column:4},end:{line:65,column:5}}],line:57},6:{loc:{start:{line:60,column:5},end:{line:64,column:6}},type:"if",locations:[{start:{line:60,column:5},end:{line:64,column:6}},{start:{line:60,column:5},end:{line:64,column:6}}],line:60},7:{loc:{start:{line:74,column:3},end:{line:74,column:93}},type:"if",locations:[{start:{line:74,column:3},end:{line:74,column:93}},{start:{line:74,column:3},end:{line:74,column:93}}],line:74},8:{loc:{start:{line:74,column:7},end:{line:74,column:55}},type:"binary-expr",locations:[{start:{line:74,column:7},end:{line:74,column:34}},{start:{line:74,column:38},end:{line:74,column:55}}],line:74},9:{loc:{start:{line:80,column:3},end:{line:88,column:4}},type:"if",locations:[{start:{line:80,column:3},end:{line:88,column:4}},{start:{line:80,column:3},end:{line:88,column:4}}],line:80},10:{loc:{start:{line:80,column:7},end:{line:80,column:55}},type:"binary-expr",locations:[{start:{line:80,column:7},end:{line:80,column:34}},{start:{line:80,column:38},end:{line:80,column:55}}],line:80},11:{loc:{start:{line:93,column:2},end:{line:93,column:61}},type:"if",locations:[{start:{line:93,column:2},end:{line:93,column:61}},{start:{line:93,column:2},end:{line:93,column:61}}],line:93}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),nt={name:"field-selectex",mixins:[Dn],computed:{items:function(){Ql.f[0]++;var n=(Ql.s[0]++,this.schema.values);return Ql.s[1]++,"function"==typeof n?(Ql.b[0][0]++,Ql.s[2]++,n.apply(this,[this.model,this.schema])):(Ql.b[0][1]++,Ql.s[3]++,n)}},methods:{getItemValue:function(n){if(Ql.f[1]++,Ql.s[4]++,P()(n)){if(Ql.b[1][0]++,Ql.s[5]++,"undefined"!==typeof this.fieldOptions["value"])return Ql.b[2][0]++,Ql.s[6]++,n[this.fieldOptions.value];if(Ql.b[2][1]++,Ql.s[7]++,"undefined"!==typeof n["id"])return Ql.b[3][0]++,Ql.s[8]++,n.id;throw Ql.b[3][1]++,Ql.s[9]++,"`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"}return Ql.b[1][1]++,Ql.s[10]++,n},getItemName:function(n){if(Ql.f[2]++,Ql.s[11]++,P()(n)){if(Ql.b[4][0]++,Ql.s[12]++,"undefined"!==typeof this.fieldOptions["name"])return Ql.b[5][0]++,Ql.s[13]++,n[this.fieldOptions.name];if(Ql.b[5][1]++,Ql.s[14]++,"undefined"!==typeof n["name"])return Ql.b[6][0]++,Ql.s[15]++,n.name;throw Ql.b[6][1]++,Ql.s[16]++,"`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"}return Ql.b[4][1]++,Ql.s[17]++,n}},watch:{model:function(){Ql.f[3]++,Ql.s[18]++,Ql.b[8][0]++,"undefined"!==typeof $.fn&&(Ql.b[8][1]++,$.fn.selectpicker)?(Ql.b[7][0]++,Ql.s[19]++,$(this.$el).selectpicker("refresh")):Ql.b[7][1]++}},mounted:function(){var n=this;Ql.f[4]++,Ql.s[20]++,this.$nextTick(function(){Ql.f[5]++,Ql.s[21]++,Ql.b[10][0]++,"undefined"!==typeof $.fn&&(Ql.b[10][1]++,$.fn.selectpicker)?(Ql.b[9][0]++,Ql.s[22]++,$(n.$el).selectpicker("destroy").selectpicker(n.fieldOptions)):(Ql.b[9][1]++,Ql.s[23]++,console.warn("Bootstrap-select library is missing. Please download from https://silviomoreto.github.io/bootstrap-select/ and load the script and CSS in the HTML head section!"))})},beforeDestroy:function(){Ql.f[6]++,Ql.s[24]++,$.fn.selectpicker?(Ql.b[11][0]++,Ql.s[25]++,$(this.$el).selectpicker("destroy")):Ql.b[11][1]++}},et=nt,lt=(l("1958"),k(et,Jl,Kl,!1,null,null,null));lt.options.__file="fieldSelectEx.vue";var tt=lt.exports,ot=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("input",{attrs:{type:"text",autocomplete:n.fieldOptions.autocomplete,disabled:n.disabled,placeholder:n.placeholder,readonly:n.readonly,name:n.inputName,id:n.fieldID}})},it=[],ct=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue",e="c5b9b396579a73a562daffcf587c1f7b3647d91f",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSpectrum.vue",statementMap:{0:{start:{line:20,column:2},end:{line:22,column:4}},1:{start:{line:27,column:3},end:{line:29,column:4}},2:{start:{line:28,column:4},end:{line:28,column:44}},3:{start:{line:33,column:3},end:{line:34,column:39}},4:{start:{line:33,column:12},end:{line:33,column:44}},5:{start:{line:34,column:8},end:{line:34,column:39}},6:{start:{line:39,column:2},end:{line:61,column:5}},7:{start:{line:40,column:3},end:{line:60,column:4}},8:{start:{line:41,column:4},end:{line:54,column:7}},9:{start:{line:51,column:8},end:{line:51,column:53}},10:{start:{line:55,column:4},end:{line:55,column:44}},11:{start:{line:57,column:4},end:{line:59,column:6}},12:{start:{line:65,column:2},end:{line:65,column:51}},13:{start:{line:65,column:19},end:{line:65,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:1},end:{line:19,column:2}},loc:{start:{line:19,column:8},end:{line:23,column:2}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:10},end:{line:30,column:3}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:32,column:2},end:{line:32,column:3}},loc:{start:{line:32,column:16},end:{line:35,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:1},end:{line:38,column:2}},loc:{start:{line:38,column:11},end:{line:62,column:2}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:39,column:17},end:{line:39,column:18}},loc:{start:{line:39,column:28},end:{line:61,column:3}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:50,column:15},end:{line:50,column:16}},loc:{start:{line:50,column:26},end:{line:52,column:8}},line:50},6:{name:"(anonymous_6)",decl:{start:{line:64,column:1},end:{line:64,column:2}},loc:{start:{line:64,column:17},end:{line:66,column:2}},line:64}},branchMap:{0:{loc:{start:{line:27,column:3},end:{line:29,column:4}},type:"if",locations:[{start:{line:27,column:3},end:{line:29,column:4}},{start:{line:27,column:3},end:{line:29,column:4}}],line:27},1:{loc:{start:{line:27,column:7},end:{line:27,column:39}},type:"binary-expr",locations:[{start:{line:27,column:7},end:{line:27,column:15}},{start:{line:27,column:19},end:{line:27,column:39}}],line:27},2:{loc:{start:{line:33,column:3},end:{line:34,column:39}},type:"if",locations:[{start:{line:33,column:3},end:{line:34,column:39}},{start:{line:33,column:3},end:{line:34,column:39}}],line:33},3:{loc:{start:{line:40,column:3},end:{line:60,column:4}},type:"if",locations:[{start:{line:40,column:3},end:{line:60,column:4}},{start:{line:40,column:3},end:{line:60,column:4}}],line:40},4:{loc:{start:{line:40,column:7},end:{line:40,column:39}},type:"binary-expr",locations:[{start:{line:40,column:7},end:{line:40,column:15}},{start:{line:40,column:19},end:{line:40,column:39}}],line:40},5:{loc:{start:{line:51,column:21},end:{line:51,column:52}},type:"cond-expr",locations:[{start:{line:51,column:29},end:{line:51,column:45}},{start:{line:51,column:48},end:{line:51,column:52}}],line:51},6:{loc:{start:{line:65,column:2},end:{line:65,column:51}},type:"if",locations:[{start:{line:65,column:2},end:{line:65,column:51}},{start:{line:65,column:2},end:{line:65,column:51}}],line:65}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),ut={name:"field-spectrum",mixins:[Dn],data:function(){return ct.f[0]++,ct.s[0]++,{picker:null}},watch:{model:function(){ct.f[1]++,ct.s[1]++,ct.b[1][0]++,window.$&&(ct.b[1][1]++,window.$.fn.spectrum)?(ct.b[0][0]++,ct.s[2]++,this.picker.spectrum("set",this.value)):ct.b[0][1]++},disabled:function(n){ct.f[2]++,ct.s[3]++,n?(ct.b[2][0]++,ct.s[4]++,this.picker.spectrum("disable")):(ct.b[2][1]++,ct.s[5]++,this.picker.spectrum("enable"))}},mounted:function(){ct.f[3]++,ct.s[6]++,this.$nextTick(function(){var n=this;ct.f[4]++,ct.s[7]++,ct.b[4][0]++,window.$&&(ct.b[4][1]++,window.$.fn.spectrum)?(ct.b[3][0]++,ct.s[8]++,this.picker=$(this.$el).spectrum("destroy").spectrum(an()(this.fieldOptions,{showInput:!0,showAlpha:!0,disabled:this.schema.disabled,allowEmpty:!this.schema.required,preferredFormat:"hex",change:function(e){ct.f[5]++,ct.s[9]++,n.value=e?(ct.b[5][0]++,e.toString()):(ct.b[5][1]++,null)}})),ct.s[10]++,this.picker.spectrum("set",this.value)):(ct.b[3][1]++,ct.s[11]++,console.warn("Spectrum color library is missing. Please download from http://bgrins.github.io/spectrum/ and load the script and CSS in the HTML head section!"))})},beforeDestroy:function(){ct.f[6]++,ct.s[12]++,this.picker?(ct.b[6][0]++,ct.s[13]++,this.picker.spectrum("destroy")):ct.b[6][1]++}},rt=ut,at=k(rt,ot,it,!1,null,null,null);at.options.__file="fieldSpectrum.vue";var st=at.exports,mt=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("img",{attrs:{src:n.mapLink}})},dt=[],ft=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue",e="ece9fa3e4721e75399d28424804697c257fa947a",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldStaticMap.vue",statementMap:{0:{start:{line:15,column:3},end:{line:53,column:4}},1:{start:{line:17,column:18},end:{line:23,column:6}},2:{start:{line:25,column:4},end:{line:25,column:34}},3:{start:{line:26,column:4},end:{line:26,column:34}},4:{start:{line:28,column:14},end:{line:30,column:45}},5:{start:{line:32,column:16},end:{line:44,column:5}},6:{start:{line:45,column:4},end:{line:49,column:5}},7:{start:{line:46,column:5},end:{line:48,column:6}},8:{start:{line:47,column:6},end:{line:47,column:41}},9:{start:{line:50,column:4},end:{line:52,column:5}},10:{start:{line:51,column:5},end:{line:51,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:12},end:{line:54,column:3}},line:14}},branchMap:{0:{loc:{start:{line:15,column:3},end:{line:53,column:4}},type:"if",locations:[{start:{line:15,column:3},end:{line:53,column:4}},{start:{line:15,column:3},end:{line:53,column:4}}],line:15},1:{loc:{start:{line:46,column:5},end:{line:48,column:6}},type:"if",locations:[{start:{line:46,column:5},end:{line:48,column:6}},{start:{line:46,column:5},end:{line:48,column:6}}],line:46},2:{loc:{start:{line:50,column:4},end:{line:52,column:5}},type:"if",locations:[{start:{line:50,column:4},end:{line:52,column:5}},{start:{line:50,column:4},end:{line:52,column:5}}],line:50},3:{loc:{start:{line:50,column:8},end:{line:50,column:18}},type:"binary-expr",locations:[{start:{line:50,column:8},end:{line:50,column:11}},{start:{line:50,column:15},end:{line:50,column:18}}],line:50}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),pt={name:"field-staticmap",mixins:[Dn],computed:{mapLink:function(){if(ft.f[0]++,ft.s[0]++,this.value){var n,e;ft.b[0][0]++;var l=(ft.s[1]++,an()(this.fieldOptions,{lat:"lat",lng:"lng",zoom:8,sizeX:640,sizeY:640}));ft.s[2]++,n=this.value[l.lat],ft.s[3]++,e=this.value[l.lng];var t=(ft.s[4]++,"http://maps.googleapis.com/maps/api/staticmap?center=".concat(n,",").concat(e,"&zoom=").concat(l.zoom,"&size=").concat(l.sizeX,"x").concat(l.sizeY)),o=(ft.s[5]++,["scale","format","maptype","language","region","markers","path","visible","style","key","signature"]);ft.s[6]++;for(var i=0;i-1:n.value},on:{change:function(e){var l=n.value,t=e.target,o=!!t.checked;if(Array.isArray(l)){var i=null,c=n._i(l,i);t.checked?c<0&&(n.value=l.concat([i])):c>-1&&(n.value=l.slice(0,c).concat(l.slice(c+1)))}else n.value=o}}}),l("span",{staticClass:"label",attrs:{"data-on":n.fieldOptions.textOn||"On","data-off":n.fieldOptions.textOff||"Off",for:n.fieldID}}),l("span",{staticClass:"handle"})])},gt=[],_t=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue",e="806abb636683e0e8f010e68e5f700e7f9f89d0d3",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldSwitch.vue",statementMap:{0:{start:{line:26,column:3},end:{line:26,column:94}},1:{start:{line:26,column:51},end:{line:26,column:94}},2:{start:{line:28,column:3},end:{line:28,column:16}},3:{start:{line:32,column:3},end:{line:35,column:4}},4:{start:{line:33,column:4},end:{line:34,column:43}},5:{start:{line:33,column:15},end:{line:33,column:48}},6:{start:{line:34,column:9},end:{line:34,column:43}},7:{start:{line:37,column:3},end:{line:37,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:2},end:{line:25,column:3}},loc:{start:{line:25,column:28},end:{line:29,column:3}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:31,column:28},end:{line:38,column:3}},line:31}},branchMap:{0:{loc:{start:{line:26,column:3},end:{line:26,column:94}},type:"if",locations:[{start:{line:26,column:3},end:{line:26,column:94}},{start:{line:26,column:3},end:{line:26,column:94}}],line:26},1:{loc:{start:{line:26,column:7},end:{line:26,column:49}},type:"binary-expr",locations:[{start:{line:26,column:7},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:49}}],line:26},2:{loc:{start:{line:32,column:3},end:{line:35,column:4}},type:"if",locations:[{start:{line:32,column:3},end:{line:35,column:4}},{start:{line:32,column:3},end:{line:35,column:4}}],line:32},3:{loc:{start:{line:32,column:7},end:{line:32,column:49}},type:"binary-expr",locations:[{start:{line:32,column:7},end:{line:32,column:20}},{start:{line:32,column:24},end:{line:32,column:49}}],line:32},4:{loc:{start:{line:33,column:4},end:{line:34,column:43}},type:"if",locations:[{start:{line:33,column:4},end:{line:34,column:43}},{start:{line:33,column:4},end:{line:34,column:43}}],line:33}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),xt={name:"field-switch",mixins:[Dn],methods:{formatValueToField:function(n){return _t.f[0]++,_t.s[0]++,_t.b[1][0]++,null!=n&&(_t.b[1][1]++,this.fieldOptions.valueOn)?(_t.b[0][0]++,_t.s[1]++,n===this.fieldOptions.valueOn):(_t.b[0][1]++,_t.s[2]++,n)},formatValueToModel:function(n){return _t.f[1]++,_t.s[3]++,_t.b[3][0]++,null!=n&&(_t.b[3][1]++,this.fieldOptions.valueOn)?(_t.b[2][0]++,_t.s[4]++,n?(_t.b[4][0]++,_t.s[5]++,this.fieldOptions.valueOn):(_t.b[4][1]++,_t.s[6]++,this.fieldOptions.valueOff)):(_t.b[2][1]++,_t.s[7]++,n)}}},wt=xt,Ot=(l("e0bf"),k(wt,yt,gt,!1,null,null,null));Ot.options.__file="fieldSwitch.vue";var St=Ot.exports,jt=function(){var n=this,e=n.$createElement,l=n._self._c||e;return l("multiselect",{attrs:{id:n.fieldOptions.id,options:n.options,value:n.value,multiple:n.fieldOptions.multiple,"track-by":n.fieldOptions.trackBy||null,label:n.fieldOptions.label||null,searchable:n.fieldOptions.searchable,"clear-on-select":n.fieldOptions.clearOnSelect,"hide-selected":n.fieldOptions.hideSelected,placeholder:n.placeholder,"allow-empty":n.fieldOptions.allowEmpty,"reset-after":n.fieldOptions.resetAfter,"close-on-select":n.fieldOptions.closeOnSelect,"custom-label":n.customLabel,taggable:n.fieldOptions.taggable,"tag-placeholder":n.fieldOptions.tagPlaceholder,max:n.fieldOptions.max||null,"options-limit":n.fieldOptions.optionsLimit,"group-values":n.fieldOptions.groupValues,"group-label":n.fieldOptions.groupLabel,"block-keys":n.fieldOptions.blockKeys,"internal-search":n.fieldOptions.internalSearch,"select-label":n.fieldOptions.selectLabel,"selected-label":n.fieldOptions.selectedLabel,"deselect-label":n.fieldOptions.deselectLabel,"show-labels":n.fieldOptions.showLabels,limit:n.fieldOptions.limit,"limit-text":n.fieldOptions.limitText,loading:n.fieldOptions.loading,disabled:n.disabled,"max-height":n.fieldOptions.maxHeight,"show-pointer":n.fieldOptions.showPointer,"option-height":n.fieldOptions.optionHeight},on:{input:n.updateSelected,select:n.onSelect,remove:n.onRemove,"search-change":n.onSearchChange,tag:n.addTag,open:n.onOpen,close:n.onClose}},[l("span",{attrs:{slot:"noResult"},slot:"noResult"},[n._v("\n\t\t"+n._s(n.fieldOptions.noResult)+"\n\t")])])},Mt=[],kt=function(){var n="D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue",e="b3674c719740b66820d4636cf97edb32a7e4b300",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\fields\\optional\\fieldVueMultiSelect.vue",statementMap:{0:{start:{line:56,column:16},end:{line:56,column:34}},1:{start:{line:57,column:3},end:{line:61,column:4}},2:{start:{line:58,column:4},end:{line:58,column:57}},3:{start:{line:60,column:4},end:{line:60,column:18}},4:{start:{line:64,column:3},end:{line:72,column:4}},5:{start:{line:68,column:4},end:{line:68,column:41}},6:{start:{line:71,column:4},end:{line:71,column:21}},7:{start:{line:77,column:3},end:{line:77,column:22}},8:{start:{line:80,column:18},end:{line:80,column:44}},9:{start:{line:81,column:3},end:{line:83,column:4}},10:{start:{line:82,column:4},end:{line:82,column:51}},11:{start:{line:86,column:18},end:{line:86,column:44}},12:{start:{line:87,column:3},end:{line:89,column:4}},13:{start:{line:88,column:4},end:{line:88,column:44}},14:{start:{line:106,column:2},end:{line:110,column:3}},15:{start:{line:107,column:3},end:{line:109,column:5}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:55,column:2},end:{line:55,column:3}},loc:{start:{line:55,column:12},end:{line:62,column:3}},line:55},1:{name:"(anonymous_1)",decl:{start:{line:63,column:2},end:{line:63,column:3}},loc:{start:{line:63,column:16},end:{line:73,column:3}},line:63},2:{name:"(anonymous_2)",decl:{start:{line:76,column:2},end:{line:76,column:3}},loc:{start:{line:76,column:34},end:{line:78,column:3}},line:76},3:{name:"(anonymous_3)",decl:{start:{line:79,column:2},end:{line:79,column:3}},loc:{start:{line:79,column:21},end:{line:84,column:3}},line:79},4:{name:"(anonymous_4)",decl:{start:{line:85,column:2},end:{line:85,column:3}},loc:{start:{line:85,column:34},end:{line:90,column:3}},line:85},5:{name:"(anonymous_5)",decl:{start:{line:91,column:2},end:{line:91,column:3}},loc:{start:{line:91,column:37},end:{line:93,column:3}},line:91},6:{name:"(anonymous_6)",decl:{start:{line:94,column:2},end:{line:94,column:3}},loc:{start:{line:94,column:36},end:{line:96,column:3}},line:94},7:{name:"(anonymous_7)",decl:{start:{line:97,column:2},end:{line:97,column:3}},loc:{start:{line:97,column:19},end:{line:99,column:3}},line:97},8:{name:"(anonymous_8)",decl:{start:{line:100,column:2},end:{line:100,column:3}},loc:{start:{line:100,column:27},end:{line:102,column:3}},line:100},9:{name:"(anonymous_9)",decl:{start:{line:104,column:1},end:{line:104,column:2}},loc:{start:{line:104,column:11},end:{line:111,column:2}},line:104}},branchMap:{0:{loc:{start:{line:57,column:3},end:{line:61,column:4}},type:"if",locations:[{start:{line:57,column:3},end:{line:61,column:4}},{start:{line:57,column:3},end:{line:61,column:4}}],line:57},1:{loc:{start:{line:64,column:3},end:{line:72,column:4}},type:"if",locations:[{start:{line:64,column:3},end:{line:72,column:4}},{start:{line:64,column:3},end:{line:72,column:4}}],line:64},2:{loc:{start:{line:65,column:4},end:{line:66,column:55}},type:"binary-expr",locations:[{start:{line:65,column:4},end:{line:65,column:56}},{start:{line:66,column:4},end:{line:66,column:55}}],line:65},3:{loc:{start:{line:81,column:3},end:{line:83,column:4}},type:"if",locations:[{start:{line:81,column:3},end:{line:83,column:4}},{start:{line:81,column:3},end:{line:83,column:4}}],line:81},4:{loc:{start:{line:87,column:3},end:{line:89,column:4}},type:"if",locations:[{start:{line:87,column:3},end:{line:89,column:4}},{start:{line:87,column:3},end:{line:89,column:4}}],line:87},5:{loc:{start:{line:106,column:2},end:{line:110,column:3}},type:"if",locations:[{start:{line:106,column:2},end:{line:110,column:3}},{start:{line:106,column:2},end:{line:110,column:3}}],line:106}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});return c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),Ct={name:"field-vueMultiSelect",mixins:[Dn],computed:{options:function(){kt.f[0]++;var n=(kt.s[0]++,this.schema.values);return kt.s[1]++,"function"==typeof n?(kt.b[0][0]++,kt.s[2]++,n.apply(this,[this.model,this.schema])):(kt.b[0][1]++,kt.s[3]++,n)},customLabel:function(){return kt.f[1]++,kt.s[4]++,kt.b[2][0]++,"undefined"!==typeof this.fieldOptions.customLabel&&(kt.b[2][1]++,"function"===typeof this.fieldOptions.customLabel)?(kt.b[1][0]++,kt.s[5]++,this.fieldOptions.customLabel):(kt.b[1][1]++,void kt.s[6]++)}},methods:{updateSelected:function(n){kt.f[2]++,kt.s[7]++,this.value=n},addTag:function(n,e){kt.f[3]++;var l=(kt.s[8]++,this.fieldOptions.onNewTag);kt.s[9]++,"function"==typeof l?(kt.b[3][0]++,kt.s[10]++,l(n,e,this.options,this.value)):kt.b[3][1]++},onSearchChange:function(n,e){kt.f[4]++;var l=(kt.s[11]++,this.fieldOptions.onSearch);kt.s[12]++,"function"==typeof l?(kt.b[4][0]++,kt.s[13]++,l(n,e,this.options)):kt.b[4][1]++},onSelect:function(){kt.f[5]++},onRemove:function(){kt.f[6]++},onOpen:function(){kt.f[7]++},onClose:function(){kt.f[8]++}},created:function(){kt.f[9]++,kt.s[14]++,this.$root.$options.components["multiselect"]?kt.b[5][1]++:(kt.b[5][0]++,kt.s[15]++,console.error("'vue-multiselect' is missing. Please download from https://github.com/monterail/vue-multiselect and register the component globally!"))}},Dt=Ct,Tt=k(Dt,jt,Mt,!1,null,null,null);Tt.options.__file="fieldVueMultiSelect.vue";var It=Tt.exports,Et=(function(){var n="D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js",e="88560dabaa255429bfab61ec1d0061b53e2f9fac",l=function(){}.constructor,t=new l("return this")(),o="__coverage__",i={path:"D:\\dev\\vue-form-generator\\src\\utils\\fieldsLoader.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"43e27e138ebf9cfc5966b082cf9a028302ed4184"},c=t[o]||(t[o]={});c[n]&&c[n].hash===e?c[n]:(i.hash=e,c[n]=i)}(),function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.fields&&e.fields.forEach(function(e){"undefined"!==typeof e.name&&n.component(e.name,e)}),n.component("VueFormGenerator",ln)}),Ft={component:ln,schema:t,validators:vn,abstractField:Dn,fieldsLoader:i,install:Et};e["default"]=Ft},fba5:function(n,e,l){var t=l("cb5a");function o(n){return t(this.__data__,n)>-1}n.exports=o},fdef:function(n,e){n.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ffd6:function(n,e,l){var t=l("3729"),o=l("1310"),i="[object Symbol]";function c(n){return"symbol"==typeof n||o(n)&&t(n)==i}n.exports=c}})}); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 1cf4ef3c..fa80530b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-form-generator", - "version": "3.0.0-beta.5", + "version": "3.0.0-beta.7", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -266,10 +266,9 @@ } }, "@babel/parser": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.51.tgz", - "integrity": "sha1-J87C30Cd9gr1gnDtj2qlVAnqhvY=", - "dev": true + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.1.3.tgz", + "integrity": "sha512-gqmspPZOMW3MIRb9HlrnbZHXI1/KHTOroBwN1NcLL6pWxzqzEKGvRTq0W/PxS45OtQGbaFikSQpkS5zbnsQm2w==" }, "@babel/plugin-proposal-async-generator-functions": { "version": "7.0.0-beta.47", @@ -838,9 +837,9 @@ "dev": true }, "@vue/babel-preset-app": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/babel-preset-app/-/babel-preset-app-3.0.4.tgz", - "integrity": "sha512-DDPfIQEVSiECq6Py/WZ/Zt9+XE5tFCu4tuIh1bkN7oRlL7MPTJOeFjjC53L2a9B3Ec0WkFwv2bJUg4Zznky/KQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/babel-preset-app/-/babel-preset-app-3.0.5.tgz", + "integrity": "sha512-zMFfvjDDhR+XYESXffDqM2CBy4pmCN2sJP0OyjaGshAhXKXC3oPXynrQ5uYQ1DW+1LVFIP3k6t6gRzl8URt00w==", "dev": true, "requires": { "@babel/plugin-proposal-class-properties": "7.0.0-beta.47", @@ -856,29 +855,29 @@ } }, "@vue/cli-overlay": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-3.0.4.tgz", - "integrity": "sha512-v80CTa8r2GQswsw89AUVqmUVA1HPWk0W3wLKUAOkCJCy/xETtwOnOPQiQ1DMsToR1nkcnM+r6nDYfwTaOeeQrg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-overlay/-/cli-overlay-3.0.5.tgz", + "integrity": "sha512-OYwbI+HpEkEJ+eA9WkzlQOE7gjFxiOSAWHU1dIqiD041Sh+uo5OhEFfVARza7rFwHHB1emujFctYyScGx5rArA==", "dev": true }, "@vue/cli-plugin-babel": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-plugin-babel/-/cli-plugin-babel-3.0.4.tgz", - "integrity": "sha512-JpA0fu1eYSaMGxqRgE6NKb29up10PGXYQ2hbUtiVsdZRgHTdx2uuEwCiPoi9icIt7Mh6SdQZADLEiDYZtnK2Dg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-babel/-/cli-plugin-babel-3.0.5.tgz", + "integrity": "sha512-nZYF93CG6xfgxpljolEcejOmcHXdoqzdNmlfakFi+7Lyvwc65T7aKG4kOV3m/FD14Bh6B56xiv3rSG9GFPR6aw==", "dev": true, "requires": { "@babel/core": "7.0.0-beta.47", - "@vue/babel-preset-app": "3.0.4", + "@vue/babel-preset-app": "3.0.5", "babel-loader": "8.0.4" } }, "@vue/cli-plugin-eslint": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-plugin-eslint/-/cli-plugin-eslint-3.0.4.tgz", - "integrity": "sha512-6B1IbCPXTu2DvEugDiEFkg5WGjIJ/82MXdHS1J+lYlI2u5ooVNJ6DjHerdpHpCxmM4dBoDNNLI57ZcLFGyv/KA==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-eslint/-/cli-plugin-eslint-3.0.5.tgz", + "integrity": "sha512-FIOHXr+/blWenEhOieINKOrs6y+mfSKn6JoIBkX0TvNFVw0qprKyJFnYt/Eu/1wUis9B45uhHme+3eKfzqxSVQ==", "dev": true, "requires": { - "@vue/cli-shared-utils": "3.0.4", + "@vue/cli-shared-utils": "3.0.5", "babel-eslint": "8.2.6", "eslint": "4.19.1", "eslint-loader": "2.1.1", @@ -886,12 +885,12 @@ } }, "@vue/cli-plugin-unit-mocha": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-plugin-unit-mocha/-/cli-plugin-unit-mocha-3.0.4.tgz", - "integrity": "sha512-UvZ5nCR3jOoo6ztf2RRMmYMLPudPrTm8Q60Si9lLD6HgkbrFkj0ynJpLncgwzjWrPuWw/tipakpyrQwBN0l3Vg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-plugin-unit-mocha/-/cli-plugin-unit-mocha-3.0.5.tgz", + "integrity": "sha512-NVOZkpS7bbuh1KGJcmV/xKhdGAW7JoCGvgoIPhbHLmOSw7NqYejvhccySrqOt/HRs71jnSxlTmEcnn862PANEA==", "dev": true, "requires": { - "@vue/cli-shared-utils": "3.0.4", + "@vue/cli-shared-utils": "3.0.5", "jsdom": "11.12.0", "jsdom-global": "3.0.2", "mocha": "5.2.0", @@ -899,14 +898,14 @@ } }, "@vue/cli-service": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-3.0.4.tgz", - "integrity": "sha512-Z7kA6r0DQOvJUZmgK6yHixk8AxekTK04pU/YkRgzhIzz+giZ6913fQ1RrsDWsUzEjlh0FneKx1eMo0eDq79zvQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-service/-/cli-service-3.0.5.tgz", + "integrity": "sha512-rwM0qJ8wWIOSprlulADc2VWw4BINC13lz1m2tA9+i+2PN8/zIT2bxfRqNM3fxUK5bjwQAHQhqrhcpkfOtftSXg==", "dev": true, "requires": { "@intervolga/optimize-cssnano-plugin": "1.0.6", - "@vue/cli-overlay": "3.0.4", - "@vue/cli-shared-utils": "3.0.4", + "@vue/cli-overlay": "3.0.5", + "@vue/cli-shared-utils": "3.0.5", "@vue/preload-webpack-plugin": "1.1.0", "@vue/web-component-wrapper": "1.2.0", "acorn": "5.7.3", @@ -993,9 +992,9 @@ } }, "@vue/cli-shared-utils": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-3.0.4.tgz", - "integrity": "sha512-st6f/s1nCo45r3yZDYCuWaFME/ECB9Mz4bPxlC9cl/3McMSESJvhnJAlh75DVdsp5teNr8HSzHwfTRfmQtKKyw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/cli-shared-utils/-/cli-shared-utils-3.0.5.tgz", + "integrity": "sha512-z5vPzUQGZJnRkojqVbDYar8NvGSvB0kUcO0O+Y+xkxVbjZxrq78e9bJFB4PR4QsqQbuBS9v3zawLWY4MhKwKOA==", "dev": true, "requires": { "chalk": "2.4.1", @@ -1062,9 +1061,9 @@ } }, "@vue/eslint-config-prettier": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-3.0.4.tgz", - "integrity": "sha512-A3Elc9YsqOz+zVk9dYLpMk+YMPI6einY67xyZjYTi1eKbhDvD28G/jLCW6dtM2V0ckMEUByAxf7oZmiv1CcSDQ==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@vue/eslint-config-prettier/-/eslint-config-prettier-3.0.5.tgz", + "integrity": "sha512-TxUqk3WO2Q/B1g2K7TYOy7crCwiCIeMJajiUy7ESYI4tt9oKa7iN7x7G1qBSxWoJ2pUvLGWR1tNkKkWNX/zrfA==", "dev": true, "requires": { "eslint-config-prettier": "2.10.0", @@ -1319,17 +1318,6 @@ "fmt-obj": "2.0.0", "pretty-ms": "4.0.0", "sliced": "1.0.1" - }, - "dependencies": { - "pretty-ms": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-4.0.0.tgz", - "integrity": "sha512-qG66ahoLCwpLXD09ZPHSCbUWYTqdosB7SMP4OffgTgL2PBKXMuUsrk5Bwg8q4qPkjTXsKBMr+YK3Ltd/6F9s/Q==", - "dev": true, - "requires": { - "parse-ms": "2.0.0" - } - } } }, "acorn": { @@ -1473,7 +1461,6 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "1.9.3" } @@ -2327,16 +2314,108 @@ } }, "babel-plugin-istanbul": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.0.1.tgz", - "integrity": "sha512-MQXE+9sTKevc0S6pfYUdpF5aA9mktCg9Jh9hIl/RriGEuUbUqPOK94VBBAlHsz88yIoQSRfPeblA3cPuudMs6Q==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.1.0.tgz", + "integrity": "sha512-CLoXPRSUWiR8yao8bShqZUIC6qLfZVVY3X1wj+QPNXu0wfmrRRfarh1LYy+dYMVI+bDj0ghy3tuqFFRFZmL1Nw==", "dev": true, "requires": { "find-up": "3.0.0", - "istanbul-lib-instrument": "2.3.2", + "istanbul-lib-instrument": "3.0.0", "test-exclude": "5.0.0" }, "dependencies": { + "@babel/code-frame": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "requires": { + "@babel/highlight": "7.0.0" + } + }, + "@babel/generator": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.1.3.tgz", + "integrity": "sha512-ZoCZGcfIJFJuZBqxcY9OjC1KW2lWK64qrX1o4UYL3yshVhwKFYgzpWZ0vvtGMNJdTlvkw0W+HR1VnYN8q3QPFQ==", + "requires": { + "@babel/types": "7.1.3", + "jsesc": "2.5.1", + "lodash": "4.17.11", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "@babel/helper-function-name": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", + "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", + "requires": { + "@babel/helper-get-function-arity": "7.0.0", + "@babel/template": "7.1.2", + "@babel/types": "7.1.3" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", + "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", + "requires": { + "@babel/types": "7.1.3" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz", + "integrity": "sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==", + "requires": { + "@babel/types": "7.1.3" + } + }, + "@babel/highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "requires": { + "chalk": "2.4.1", + "esutils": "2.0.2", + "js-tokens": "4.0.0" + } + }, + "@babel/template": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz", + "integrity": "sha512-SY1MmplssORfFiLDcOETrW7fCLl+PavlwMh92rrGcikQaRq4iWPVH0MpwPpY3etVMx6RnDjXtr6VZYr/IbP/Ag==", + "requires": { + "@babel/code-frame": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3" + } + }, + "@babel/traverse": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.1.4.tgz", + "integrity": "sha512-my9mdrAIGdDiSVBuMjpn/oXYpva0/EZwWL3sm3Wcy/AVWO2eXnsoZruOT9jOGNRXU8KbCIu5zsKnXcAJ6PcV6Q==", + "requires": { + "@babel/code-frame": "7.0.0", + "@babel/generator": "7.1.3", + "@babel/helper-function-name": "7.1.0", + "@babel/helper-split-export-declaration": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3", + "debug": "3.2.5", + "globals": "11.8.0", + "lodash": "4.17.11" + } + }, + "@babel/types": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.1.3.tgz", + "integrity": "sha512-RpPOVfK+yatXyn8n4PB1NW6k9qjinrXrRR8ugBN8fD6hCy5RXI6PSbVqpOJBO9oSaY7Nom4ohj35feb0UR9hSA==", + "requires": { + "esutils": "2.0.2", + "lodash": "4.17.11", + "to-fast-properties": "2.0.0" + } + }, "find-up": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", @@ -2346,6 +2425,11 @@ "locate-path": "3.0.0" } }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, "locate-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", @@ -2931,9 +3015,9 @@ "dev": true }, "bumped": { - "version": "0.10.10", - "resolved": "https://registry.npmjs.org/bumped/-/bumped-0.10.10.tgz", - "integrity": "sha512-I9SKX17IMqbgN9Uuh5SPsswQdGnqZO8Aafq8zBF9MFXEdZTtuyL50aqUTMEj6vuYn2Vr/D42VPe3dwBhGaZZSA==", + "version": "0.10.11", + "resolved": "https://registry.npmjs.org/bumped/-/bumped-0.10.11.tgz", + "integrity": "sha512-Xk0wsbxdDijwxA5CuSEBP4P9ZSjmqQGj0U/5GVGICt6jJmFGo/jbjeaerCZEHFeuuzkpDENUFKhYNmAxluYh/w==", "dev": true, "requires": { "acho": "4.0.3", @@ -2943,7 +3027,7 @@ "coffee-script": "1.12.7", "dot-prop": "4.2.0", "exists-file": "3.0.2", - "fs-extra": "6.0.1", + "fs-extra": "7.0.0", "global-modules": "1.0.0", "json-future": "2.1.3", "lodash.clonedeep": "4.5.0", @@ -2951,10 +3035,10 @@ "lodash.partial": "4.2.1", "meow": "5.0.0", "parse-config-file": "1.0.1", - "pretty-ms": "3.1.0", + "pretty-ms": "4.0.0", "rc": "1.2.8", "resolve-up": "1.0.0", - "semver": "5.5.1", + "semver": "5.6.0", "time-span": "2.0.0", "update-notifier": "2.5.0", "yaml-parser": "3.5.3" @@ -2968,6 +3052,23 @@ "requires": { "lodash": "4.17.11" } + }, + "fs-extra": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.0.tgz", + "integrity": "sha512-EglNDLRpmaTWiD/qraZn6HREAEAHJcJOmxNEYwq6xeMKnVMAy3GUcFB+wXt2C6k4CNvB/mP1y/U3dzvKKj5OtQ==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "4.0.0", + "universalify": "0.1.2" + } + }, + "semver": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "dev": true } } }, @@ -3204,7 +3305,6 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", @@ -3598,7 +3698,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -3606,8 +3705,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "color-string": { "version": "1.5.3", @@ -4509,16 +4607,6 @@ "sha.js": "2.4.11" } }, - "cross-env": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-5.2.0.tgz", - "integrity": "sha512-jtdNFfFW1hB7sMhr/H6rW1Z45LFqyI431m3qU6bFXcQ3Eh7LtBuG3h74o7ohHZ3crrRkkqHlo4jYHFPcjroANg==", - "dev": true, - "requires": { - "cross-spawn": "6.0.5", - "is-windows": "1.0.2" - } - }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", @@ -4910,7 +4998,6 @@ "version": "3.2.5", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.5.tgz", "integrity": "sha512-D61LaDQPQkxJ5AUM2mbSJRbPkNs/TmdmOeLAi1hgDkpDfIfetSrjmWhccwtuResSwMbACjx/xXQofvM9CE/aeg==", - "dev": true, "requires": { "ms": "2.1.1" } @@ -5460,8 +5547,7 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "escodegen": { "version": "1.11.0", @@ -5650,8 +5736,7 @@ "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" }, "etag": { "version": "1.8.1", @@ -6496,7 +6581,7 @@ }, "foreground-child": { "version": "1.5.6", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-1.5.6.tgz", + "resolved": "http://registry.npmjs.org/foreground-child/-/foreground-child-1.5.6.tgz", "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", "dev": true, "requires": { @@ -7209,8 +7294,7 @@ "globals": { "version": "11.8.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.8.0.tgz", - "integrity": "sha512-io6LkyPVuzCHBSQV9fmOwxZkUk6nIaGmxheLDgmuFv89j0fm2aqDbIXKAGfzCMHqz3HLF2Zf8WSG6VqMh2qFmA==", - "dev": true + "integrity": "sha512-io6LkyPVuzCHBSQV9fmOwxZkUk6nIaGmxheLDgmuFv89j0fm2aqDbIXKAGfzCMHqz3HLF2Zf8WSG6VqMh2qFmA==" }, "globby": { "version": "5.0.0", @@ -8329,12 +8413,6 @@ "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=", "dev": true }, - "irregular-plurals": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", - "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", - "dev": true - }, "is-absolute-url": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", @@ -8790,36 +8868,36 @@ } }, "istanbul-lib-instrument": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.2.tgz", - "integrity": "sha512-l7TD/VnBsIB2OJvSyxaLW/ab1+92dxZNH9wLH7uHPPioy3JZ8tnx2UXUdKmdkgmP2EFPzg64CToUP6dAS3U32Q==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.0.0.tgz", + "integrity": "sha512-eQY9vN9elYjdgN9Iv6NS/00bptm02EBBk70lRMaVjeA6QYocQgenVrSgC28TJurdnZa80AGO3ASdFN+w/njGiQ==", "dev": true, "requires": { - "@babel/generator": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/template": "7.0.0-beta.51", - "@babel/traverse": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", + "@babel/generator": "7.1.3", + "@babel/parser": "7.1.3", + "@babel/template": "7.1.2", + "@babel/traverse": "7.1.4", + "@babel/types": "7.1.3", "istanbul-lib-coverage": "2.0.1", "semver": "5.5.1" }, "dependencies": { "@babel/code-frame": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.51.tgz", - "integrity": "sha1-vXHZsZKvl435FYKdOdQJRFZDmgw=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", "dev": true, "requires": { - "@babel/highlight": "7.0.0-beta.51" + "@babel/highlight": "7.0.0" } }, "@babel/generator": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.51.tgz", - "integrity": "sha1-bHV1/952HQdIXgS67cA5LG2eMPY=", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.1.3.tgz", + "integrity": "sha512-ZoCZGcfIJFJuZBqxcY9OjC1KW2lWK64qrX1o4UYL3yshVhwKFYgzpWZ0vvtGMNJdTlvkw0W+HR1VnYN8q3QPFQ==", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.51", + "@babel/types": "7.1.3", "jsesc": "2.5.1", "lodash": "4.17.11", "source-map": "0.5.7", @@ -8827,92 +8905,96 @@ } }, "@babel/helper-function-name": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.51.tgz", - "integrity": "sha1-IbSHSiJ8+Z7K/MMKkDAtpaJkBWE=", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", + "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "7.0.0-beta.51", - "@babel/template": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51" + "@babel/helper-get-function-arity": "7.0.0", + "@babel/template": "7.1.2", + "@babel/types": "7.1.3" } }, "@babel/helper-get-function-arity": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.51.tgz", - "integrity": "sha1-MoGy0EWvlcFyzpGyCCXYXqRnZBE=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", + "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.51" + "@babel/types": "7.1.3" } }, "@babel/helper-split-export-declaration": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.51.tgz", - "integrity": "sha1-imw/ZsTSZTUvwHdIT59ugKUauXg=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz", + "integrity": "sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.51" + "@babel/types": "7.1.3" } }, "@babel/highlight": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.51.tgz", - "integrity": "sha1-6IRK4loVlcz9QriWI7Q3bKBtIl0=", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", "dev": true, "requires": { "chalk": "2.4.1", "esutils": "2.0.2", - "js-tokens": "3.0.2" + "js-tokens": "4.0.0" } }, "@babel/template": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.51.tgz", - "integrity": "sha1-lgKkCuvPNXrpZ34lMu9fyBD1+/8=", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz", + "integrity": "sha512-SY1MmplssORfFiLDcOETrW7fCLl+PavlwMh92rrGcikQaRq4iWPVH0MpwPpY3etVMx6RnDjXtr6VZYr/IbP/Ag==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", - "lodash": "4.17.11" + "@babel/code-frame": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3" } }, "@babel/traverse": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.51.tgz", - "integrity": "sha1-mB2vLOw0emIx06odnhgDsDqqpKg=", + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.1.4.tgz", + "integrity": "sha512-my9mdrAIGdDiSVBuMjpn/oXYpva0/EZwWL3sm3Wcy/AVWO2eXnsoZruOT9jOGNRXU8KbCIu5zsKnXcAJ6PcV6Q==", "dev": true, "requires": { - "@babel/code-frame": "7.0.0-beta.51", - "@babel/generator": "7.0.0-beta.51", - "@babel/helper-function-name": "7.0.0-beta.51", - "@babel/helper-split-export-declaration": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", + "@babel/code-frame": "7.0.0", + "@babel/generator": "7.1.3", + "@babel/helper-function-name": "7.1.0", + "@babel/helper-split-export-declaration": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3", "debug": "3.2.5", "globals": "11.8.0", - "invariant": "2.2.4", "lodash": "4.17.11" } }, "@babel/types": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz", - "integrity": "sha1-2AK3tUO1g2x3iqaReXq/APPZfqk=", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.1.3.tgz", + "integrity": "sha512-RpPOVfK+yatXyn8n4PB1NW6k9qjinrXrRR8ugBN8fD6hCy5RXI6PSbVqpOJBO9oSaY7Nom4ohj35feb0UR9hSA==", "dev": true, "requires": { "esutils": "2.0.2", "lodash": "4.17.11", "to-fast-properties": "2.0.0" } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true } } }, "istanbul-lib-report": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.1.tgz", - "integrity": "sha512-pXYOWwpDNc5AHIY93WjFTuxzkDOOZ7B8eSa0cBHTmTnKRst5ccc/xBfWu/5wcNJqB6/Qy0lDMhpn+Uy0qyyUjA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.2.tgz", + "integrity": "sha512-rJ8uR3peeIrwAxoDEbK4dJ7cqqtxBisZKCuwkMtMv0xYzaAnsAi3AHrHPAAtNXzG/bcCgZZ3OJVqm1DTi9ap2Q==", "dev": true, "requires": { "istanbul-lib-coverage": "2.0.1", @@ -8942,9 +9024,9 @@ } }, "istanbul-reports": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.0.0.tgz", - "integrity": "sha512-d2YRSnAOHHb+6vMc5qjJEyPN4VapkgUMhKlMmr3BzKdMDWdJbyYGEi/7m5AjDjkvRRTjs68ttPRZ7W2jBZ31SQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.0.1.tgz", + "integrity": "sha512-CT0QgMBJqs6NJLF678ZHcquUAZIoBIUNzdJrRJfpkI9OnzG6MkUfHxbJC3ln981dMswC7/B1mfX3LNkhgJxsuw==", "dev": true, "requires": { "handlebars": "4.0.12" @@ -9066,8 +9148,7 @@ "jsesc": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.1.tgz", - "integrity": "sha1-5CGiqOINawgZ3yiQj3glJrlt0f4=", - "dev": true + "integrity": "sha1-5CGiqOINawgZ3yiQj3glJrlt0f4=" }, "json-future": { "version": "2.1.3", @@ -9382,8 +9463,7 @@ "lodash": { "version": "4.17.11", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", - "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", - "dev": true + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" }, "lodash-webpack-plugin": { "version": "0.11.5", @@ -10515,8 +10595,7 @@ "ms": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" }, "multicast-dns": { "version": "6.2.3", @@ -10742,9 +10821,9 @@ } }, "node-sass": { - "version": "4.9.3", - "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.9.3.tgz", - "integrity": "sha512-XzXyGjO+84wxyH7fV6IwBOTrEBe2f0a6SBze9QWWYR/cL74AcQUks2AsqcCZenl/Fp/JVbuEaLpgrLtocwBUww==", + "version": "4.9.4", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.9.4.tgz", + "integrity": "sha512-MXyurANsUoE4/6KmfMkwGcBzAnJQ5xJBGW7Ei6ea8KnUKuzHr/SguVBIi3uaUAHtZCPUYkvlJ3Ef5T5VAwVpaA==", "dev": true, "requires": { "async-foreach": "0.1.3", @@ -10762,7 +10841,7 @@ "nan": "2.11.1", "node-gyp": "3.8.0", "npmlog": "4.1.2", - "request": "2.87.0", + "request": "2.88.0", "sass-graph": "2.2.4", "stdout-stream": "1.4.1", "true-case-path": "1.0.3" @@ -10819,16 +10898,6 @@ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", "dev": true }, - "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", - "dev": true, - "requires": { - "ajv": "5.5.2", - "har-schema": "2.0.0" - } - }, "load-json-file": { "version": "1.1.0", "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", @@ -10844,7 +10913,7 @@ }, "meow": { "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { @@ -10866,12 +10935,6 @@ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true - }, "parse-json": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", @@ -10907,12 +10970,6 @@ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, "read-pkg": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", @@ -10934,34 +10991,6 @@ "read-pkg": "1.1.0" } }, - "request": { - "version": "2.87.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", - "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", - "dev": true, - "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.8.0", - "caseless": "0.12.0", - "combined-stream": "1.0.7", - "extend": "3.0.2", - "forever-agent": "0.6.1", - "form-data": "2.3.2", - "har-validator": "5.0.3", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.20", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.2", - "safe-buffer": "5.1.2", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.3.2" - } - }, "strip-ansi": { "version": "3.0.1", "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -10985,15 +11014,6 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true - }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "dev": true, - "requires": { - "punycode": "1.4.1" - } } } }, @@ -11126,9 +11146,9 @@ "dev": true }, "nyc": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-13.0.1.tgz", - "integrity": "sha512-Op/bjhEF74IMtzMmgYt+ModTeMHoPZzHe4qseUguPBwg5qC6r4rYMBt1L3yRXQIbjUpEqmn24/1xAC/umQGU7w==", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-13.1.0.tgz", + "integrity": "sha512-3GyY6TpQ58z9Frpv4GMExE1SV2tAgYqC7HSy2omEhNiCT3mhT9NyiOvIE8zkbuJVFzmvvNTnE4h/7/wQae7xLg==", "dev": true, "requires": { "archy": "1.0.0", @@ -11142,10 +11162,10 @@ "glob": "7.1.3", "istanbul-lib-coverage": "2.0.1", "istanbul-lib-hook": "2.0.1", - "istanbul-lib-instrument": "2.3.2", - "istanbul-lib-report": "2.0.1", + "istanbul-lib-instrument": "3.0.0", + "istanbul-lib-report": "2.0.2", "istanbul-lib-source-maps": "2.0.1", - "istanbul-reports": "2.0.0", + "istanbul-reports": "2.0.1", "make-dir": "1.3.0", "merge-source-map": "1.1.0", "resolve-from": "4.0.0", @@ -11158,6 +11178,98 @@ "yargs-parser": "9.0.2" }, "dependencies": { + "@babel/code-frame": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "requires": { + "@babel/highlight": "7.0.0" + } + }, + "@babel/generator": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.1.3.tgz", + "integrity": "sha512-ZoCZGcfIJFJuZBqxcY9OjC1KW2lWK64qrX1o4UYL3yshVhwKFYgzpWZ0vvtGMNJdTlvkw0W+HR1VnYN8q3QPFQ==", + "requires": { + "@babel/types": "7.1.3", + "jsesc": "2.5.1", + "lodash": "4.17.11", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "@babel/helper-function-name": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", + "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", + "requires": { + "@babel/helper-get-function-arity": "7.0.0", + "@babel/template": "7.1.2", + "@babel/types": "7.1.3" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", + "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", + "requires": { + "@babel/types": "7.1.3" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0.tgz", + "integrity": "sha512-MXkOJqva62dfC0w85mEf/LucPPS/1+04nmmRMPEBUB++hiiThQ2zPtX/mEWQ3mtzCEjIJvPY8nuwxXtQeQwUag==", + "requires": { + "@babel/types": "7.1.3" + } + }, + "@babel/highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "requires": { + "chalk": "2.4.1", + "esutils": "2.0.2", + "js-tokens": "4.0.0" + } + }, + "@babel/template": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.1.2.tgz", + "integrity": "sha512-SY1MmplssORfFiLDcOETrW7fCLl+PavlwMh92rrGcikQaRq4iWPVH0MpwPpY3etVMx6RnDjXtr6VZYr/IbP/Ag==", + "requires": { + "@babel/code-frame": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3" + } + }, + "@babel/traverse": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.1.4.tgz", + "integrity": "sha512-my9mdrAIGdDiSVBuMjpn/oXYpva0/EZwWL3sm3Wcy/AVWO2eXnsoZruOT9jOGNRXU8KbCIu5zsKnXcAJ6PcV6Q==", + "requires": { + "@babel/code-frame": "7.0.0", + "@babel/generator": "7.1.3", + "@babel/helper-function-name": "7.1.0", + "@babel/helper-split-export-declaration": "7.0.0", + "@babel/parser": "7.1.3", + "@babel/types": "7.1.3", + "debug": "3.2.5", + "globals": "11.8.0", + "lodash": "4.17.11" + } + }, + "@babel/types": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.1.3.tgz", + "integrity": "sha512-RpPOVfK+yatXyn8n4PB1NW6k9qjinrXrRR8ugBN8fD6hCy5RXI6PSbVqpOJBO9oSaY7Nom4ohj35feb0UR9hSA==", + "requires": { + "esutils": "2.0.2", + "lodash": "4.17.11", + "to-fast-properties": "2.0.0" + } + }, "camelcase": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", @@ -11233,6 +11345,11 @@ "locate-path": "3.0.0" } }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, "lazy-cache": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", @@ -11915,13 +12032,10 @@ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" }, "pikaday": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/pikaday/-/pikaday-1.7.0.tgz", - "integrity": "sha512-b1z65oFulNTKOdcg9+wTnZWBzfekf1AqPMCmmK9qH6aT7stqDyh76G6nLeuYr3WqchjW/7QLOBFmok14sCecsA==", - "dev": true, - "requires": { - "moment": "2.22.2" - } + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/pikaday/-/pikaday-1.8.0.tgz", + "integrity": "sha512-SgGxMYX0NHj9oQnMaSyAipr2gOrbB4Lfs/TJTb6H6hRHs39/5c5VZi73Q8hr53+vWjdn6HzkWcj8Vtl3c9ziaA==", + "dev": true }, "pinkie": { "version": "2.0.4", @@ -11947,15 +12061,6 @@ "find-up": "2.1.0" } }, - "plur": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", - "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", - "dev": true, - "requires": { - "irregular-plurals": "1.4.0" - } - }, "pluralize": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", @@ -12634,21 +12739,12 @@ } }, "pretty-ms": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.1.0.tgz", - "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-4.0.0.tgz", + "integrity": "sha512-qG66ahoLCwpLXD09ZPHSCbUWYTqdosB7SMP4OffgTgL2PBKXMuUsrk5Bwg8q4qPkjTXsKBMr+YK3Ltd/6F9s/Q==", "dev": true, "requires": { - "parse-ms": "1.0.1", - "plur": "2.1.2" - }, - "dependencies": { - "parse-ms": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", - "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", - "dev": true - } + "parse-ms": "2.0.0" } }, "private": { @@ -14380,9 +14476,9 @@ } }, "sinon": { - "version": "6.3.5", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-6.3.5.tgz", - "integrity": "sha512-xgoZ2gKjyVRcF08RrIQc+srnSyY1JDJtxu3Nsz07j1ffjgXoY6uPLf/qja6nDBZgzYYEovVkFryw2+KiZz11xQ==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.0.0.tgz", + "integrity": "sha512-8OrSYFPZ9xaECfi1ayVMd0ihYCW2OZYgX3rBczrB990gHZMM+aftvhNTJazGz/luS0Us9NWgD5P3KGQ7kYZvGg==", "dev": true, "requires": { "@sinonjs/commons": "1.0.2", @@ -14390,10 +14486,18 @@ "@sinonjs/samsam": "2.1.2", "diff": "3.5.0", "lodash.get": "4.4.2", - "lolex": "2.7.5", + "lolex": "3.0.0", "nise": "1.4.5", "supports-color": "5.5.0", "type-detect": "4.0.8" + }, + "dependencies": { + "lolex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-3.0.0.tgz", + "integrity": "sha512-hcnW80h3j2lbUfFdMArd5UPA/vxZJ+G8vobd+wg3nVEQA0EigStbYcrG030FJxL6xiDDPEkoMatV9xIh5OecQQ==", + "dev": true + } } }, "slash": { @@ -15015,7 +15119,6 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "3.0.0" } @@ -15256,8 +15359,7 @@ "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" }, "to-object-path": { "version": "0.3.0", @@ -15358,8 +15460,7 @@ "trim-right": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" }, "true-case-path": { "version": "1.0.3", diff --git a/package.json b/package.json index 4903460b..a667b177 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-form-generator", - "version": "3.0.0-beta.6", + "version": "3.0.0-beta.7", "description": "A schema-based form generator component for Vue.js", "homepage": "https://github.com/vue-generators/vue-form-generator/", "main": "dist/vfg.umd.min.js", @@ -73,7 +73,7 @@ "node-sass": "4.9.4", "nouislider": "11.1.0", "nyc": "13.1.0", - "pikaday": "1.7.0", + "pikaday": "1.8.0", "sass-loader": "7.1.0", "sinon": "7.0.0", "vue": "2.5.17", diff --git a/vue.config.js b/vue.config.js index b61640f3..51eefdda 100644 --- a/vue.config.js +++ b/vue.config.js @@ -78,7 +78,7 @@ module.exports = { .loader("istanbul-instrumenter-loader") .options({ esModules: true }); } else { - config.resolve.alias.set("vue-form-generator", path.resolve("src")); + config.resolve.alias.set("vue-form-generator", path.resolve(__dirname, "src")); } }, css: {