{"version":3,"sources":["webpack:///./node_modules/@vuelidate/core/node_modules/vue-demi/lib/index.cjs","webpack:///./src/views/geoDataBase/geoDataBaseForm.vue?7e2b","webpack:///./src/views/geoDataBase/geoDataBaseForm.vue?79e1","webpack:///./src/views/geoDataBase/geoDataBaseForm.vue","webpack:///src/views/geoDataBase/geoDataBaseForm.vue","webpack:///./src/views/geoDataBase/geoDataBaseForm.vue?bc21","webpack:///./src/views/geoDataBase/geoDataBaseForm.vue?6efb","webpack:///./node_modules/@vuelidate/core/dist/index.mjs"],"names":["VueModule","Vue","default","exports","Vue2","isVue2","isVue3","install","warn","util","createApp","rootComponent","rootProps","vm","provide","app","config","use","bind","mixin","component","key","value","this","directive","name","dir","mount","el","hydrating","Object","assign","propsData","$mount","unmount","$destroy","undefined","keys","forEach","render","_vm$imageFile$name","_vm$imageFile","_vm","_c","_self","staticClass","scopedSlots","_u","fn","attrs","proxy","farmsNameListLoadingState","farmsSource","selectFarmLoading","on","selectFarm","selectedFarm","formState","_v","_e","$event","switchGeoForm","model","geoDataBaseDetail","title","callback","$$v","$set","expression","directives","rawName","typeId","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","multiple","_l","geoDataBaseTypeSource","item","index","domProps","_s","label","staticStyle","description","ref","onGeoDataBaseImageChange","$refs","image","click","imageFile","saveGeoDataBasePoint","farmGeoDataBaseList","length","class","id","getDetail","showImage","type","createDateTime","deleteGeoDataBase","selectedFarmArea","geoDataBaseImageModal","staticRenderFns","i","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread2","arguments","source","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","configurable","writable","unwrapObj","ignoreKeys","reduce","k","includes","isFunction","isProxy","get","stringPath","def","current","path","split","gatherBooleanGroupProperties","group","nestedResults","property","some","gatherArrayGroupProperties","all","fetchedProperty","concat","callRule","rule","siblingState","instance","normalizeValidatorResponse","result","$valid","createAsyncResult","$pending","$dirty","_ref","$response","$lazy","$rewardEarly","watchTargets","$lastInvalidState","$lastCommittedOn","$invalid","$pendingCounter","$unwatch","ruleResult","err","Promise","reject","resolve","then","data","catch","error","immediate","deep","createSyncResult","_ref2","returnValue","createValidatorResult","validatorName","propertyKey","propertyPath","$params","$async","$validator","$watchTargets","message","$message","$model","$propertyPath","$property","sortValidations","validationsRaw","validations","validationKeys","rules","nestedValidators","validationGroups","v","startsWith","ROOT_PATH","createValidationResults","resultsCache","externalResults","ruleKeys","cachedResult","$partial","$path","$touch","$reset","$commit","ruleKey","$externalResults","stringError","$uid","r","$error","$silentErrors","res","$errors","Date","now","set","collectNestedValidationResults","nestedState","nestedExternalResults","nestedValidationKeys","results","nestedKey","setValidations","state","parentKey","globalConfig","createMetaFields","childResults","allResults","allRes","values","every","modelErrors","nestedErrors","errors","$anyDirty","nr","mergedConfig","s","cachedExternalResults","$validationGroups","entries","external","async","$validate","unwatch","$getResultsForChild","$clearExternalResults","$autoDirty","flush","ResultsStorage","storage","Map","storedRules","storedRulesKeys","newRulesKeys","hasAllValidators","paramKey","storedRuleResultPair","isValidCache","checkRulesValidity","CollectFlag","COLLECT_ALL","COLLECT_NONE","VuelidateInjectChildResults","Symbol","VuelidateRemoveChildResults","nestedValidations","$scope","childResultsRaw","childResultsKeys","injectChildResultsIntoParent","$registerAs","childScope","$stopPropagation","removeChildResultsFromParent","childKey","__vuelidateInjectInstances","__vuelidateRemoveInstances","sendValidationResultsToParent","removeValidationResultsFromParent","ComputedProxyFactory","Proxy","prop","uid","useVuelidate","_getCurrentInstance","currentVueInstance","componentOptions","$options","validationResults","vuelidateExternalResults","validationsConfig","validationsWatchTarget","newValidationRules","f"],"mappings":"qGAAA,IAAIA,EAAY,EAAQ,QAGpBC,EAAMD,EAAUE,SAAWF,EAE/BG,EAAQF,IAAMA,EACdE,EAAQC,KAAOH,EACfE,EAAQE,QAAS,EACjBF,EAAQG,QAAS,EACjBH,EAAQI,QAAU,aAClBJ,EAAQK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IACA,+CACA,iBACA,gBACA,gBACA,OAHA,qBAIA,yEANA,IAQA,2BACA,uCACA,QACA,aACA,qCACA,YACA,uCAIA,qBACA,EACA,iDACA,4BAGA,kKACA,2DACA,GACA,yBACA,uBACA,uBACA,kEACA,yBACA,aACA,4BACA,QACA,UACA,UACA,yDACA,YACA,gBACA,cACA,0BACA,gCACA,cAGA,gCACA,uCAEA,WACA,wBACA,+CACA,cAEA,0CA9BA,IAgCA,yIACA,iBACA,kGAFA,IAIA,qCACA,2CACA,WACA,sBAEA,2IACA,qBACA,iBACA,qBACA,KACA,SACA,QACA,SACA,eACA,SACA,SACA,UAEA,qDAEA,6BACA,kCACA,yBACA,kCACA,8CACA,kCACA,mCACA,wDAtBA,IAyBA,sBACA,qCACA,qCACA,+BACA,+BAEA,sBACA,qCACA,qCACA,8BACA,+BAEA,wJACA,2CACA,+BACA,sBACA,OACA,cACA,YAEA,mCAEA,MACA,yDACA,YACA,qBAEA,IACA,0CAhBA,IAkBA,2IACA,YACA,iCACA,QACA,SACA,WAEA,gIACA,mBACA,mCACA,wBACA,GADA,SACA,oBACA,uBACA,6BAKA,OAJA,WACA,mBACA,wCACA,iBACA,UACA,wDAEA,WACA,YACA,0CACA,eACA,gCAGA,WACA,YACA,oCACA,eACA,4CAGA,sDA5BA,KA6BA,0CApCA,IAsCA,8JAEA,2CAeA,OAdA,eACA,mCACA,4CACA,4CACA,wDACA,wBACA,aACA,cAEA,2BACA,2BACA,8BAEA,aACA,iDACA,+CACA,uBACA,8CACA,iDACA,kCACA,WACA,mBACA,2CACA,iBACA,wBAEA,WACA,YACA,0CACA,eACA,gCAGA,WACA,YACA,oCACA,eACA,gCAUA,OAPA,eACA,sCACA,4CACA,4CACA,wDACA,8BACA,aACA,oDACA,6CAEA,uBACA,8CACA,iDACA,kCACA,WACA,mBACA,4CACA,iBACA,wBAEA,WACA,YACA,0CACA,eACA,gCAGA,WACA,YACA,oCACA,eACA,QAGA,aACA,0DA9EA,MAiFA,8BACA,gB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mBAAM3G,IAAgBjE,EAAQiE,GAAeA,EAAc,sBAASA,GAAe,IAClH,mBAAM2G,EAAwBC,IAC5BJ,EAAkB/R,MAAQ2N,EAAe,CACvCpC,YAAa4G,EACbvE,QACAI,eACAhC,eACA8B,eACArF,SAAuB,OAAbA,QAAkC,IAAbA,EAAsBA,EAAW,GAChEwD,gBAAiBS,KAElB,CACDvC,WAAW,IAaf,OATI1B,IACF2I,EAA8BpQ,QAAQoR,GAAKA,EAAEL,EAAmB,CAC9DlB,cACAJ,SACAM,sBAEF,6BAAgB,IAAMM,EAAkCrQ,QAAQoR,GAAKA,EAAEvB,MAGlE,sBAAS,IACPvK,EAAeA,EAAe,GAAI,mBAAMyL,EAAkB/R,QAASgO,EAAahO","file":"js/chunk-00bd56b2.91ae52c3.js","sourcesContent":["var VueModule = require('vue')\n\n// get the real Vue https://github.com/vueuse/vue-demi/issues/192\nvar Vue = VueModule.default || VueModule\n\nexports.Vue = Vue\nexports.Vue2 = Vue\nexports.isVue2 = true\nexports.isVue3 = false\nexports.install = function () {}\nexports.warn = Vue.util.warn\n\n// createApp polyfill\nexports.createApp = function (rootComponent, rootProps) {\n var vm\n var provide = {}\n var app = {\n config: Vue.config,\n use: Vue.use.bind(Vue),\n mixin: Vue.mixin.bind(Vue),\n component: Vue.component.bind(Vue),\n provide: function (key, value) {\n provide[key] = value\n return this\n },\n directive: function (name, dir) {\n if (dir) {\n Vue.directive(name, dir)\n return app\n } else {\n return Vue.directive(name)\n }\n },\n mount: function (el, hydrating) {\n if (!vm) {\n vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))\n vm.$mount(el, hydrating)\n return vm\n } else {\n return vm\n }\n },\n unmount: function () {\n if (vm) {\n vm.$destroy()\n vm = undefined\n }\n },\n }\n return app\n}\n\nObject.keys(VueModule).forEach(function (key) {\n exports[key] = VueModule[key]\n})\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./geoDataBaseForm.vue?vue&type=style&index=1&id=272d3cbe&prod&scoped=true&lang=css\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./geoDataBaseForm.vue?vue&type=style&index=0&id=272d3cbe&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('main-body-section',{staticClass:\"geodatabase-page\",scopedSlots:_vm._u([{key:\"map\",fn:function(){return [_c('div',{staticClass:\"h-100 z-1\",attrs:{\"id\":\"map\"}})]},proxy:true}])},[_c('base-panel',{staticClass:\"text-center\",attrs:{\"title\":\"انتخاب زمین\",\"rightPanel\":false},scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('vue-element-loading',{attrs:{\"active\":_vm.farmsNameListLoadingState,\"text\":\"دریافت اطلاعات ...\",\"spinner\":\"bar-fade-scale\",\"color\":\"var(--secondary)\"}}),_c('farms-name-list',{attrs:{\"farmsNameList\":_vm.farmsSource,\"farmersNameList\":_vm.farmsSource,\"selectFarmLoading\":_vm.selectFarmLoading},on:{\"selectFarm\":_vm.selectFarm}})]},proxy:true}])}),(_vm.selectedFarm)?_c('div',{staticClass:\"geo-detail\"},[(_vm.formState === 'list')?_c('h4',{staticClass:\"empty-title\"},[_vm._v(\" برای ثبت یک نقطه را انتخاب کنید \")]):_vm._e(),(_vm.formState === 'new')?_c('button',{staticClass:\"geo-detail-list-btn\",on:{\"click\":function($event){return _vm.switchGeoForm('list', 0)}}},[_vm._v(\" لیست تأسیسات \")]):_vm._e(),(_vm.formState === 'new')?_c('div',{staticClass:\"farm-new-geo\"},[_c('CRow',[_c('CCol',{attrs:{\"md\":\"6\"}},[_c('CInput',{attrs:{\"type\":\"text\",\"placeholder\":\"عنوان تأسیسات\"},model:{value:(_vm.geoDataBaseDetail.title),callback:function ($$v) {_vm.$set(_vm.geoDataBaseDetail, \"title\", $$v)},expression:\"geoDataBaseDetail.title\"}})],1),_c('CCol',{attrs:{\"md\":\"6\"}},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.geoDataBaseDetail.typeId),expression:\"geoDataBaseDetail.typeId\"}],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.$set(_vm.geoDataBaseDetail, \"typeId\", $event.target.multiple ? $$selectedVal : $$selectedVal[0])}}},[_c('option',{attrs:{\"value\":\"0\",\"selected\":\"\",\"disabled\":\"\"}},[_vm._v(\"نوع تأسیسات\")]),_vm._l((_vm.geoDataBaseTypeSource),function(item,index){return _c('option',{key:index,domProps:{\"value\":item.value}},[_vm._v(\" \"+_vm._s(item.label)+\" \")])})],2)]),_c('CCol',{attrs:{\"md\":\"12\"}},[_c('CTextarea',{staticStyle:{\"height\":\"unset\"},attrs:{\"type\":\"text\",\"placeholder\":\"توضیحات تأسیسات\",\"rows\":\"5\"},model:{value:(_vm.geoDataBaseDetail.description),callback:function ($$v) {_vm.$set(_vm.geoDataBaseDetail, \"description\", $$v)},expression:\"geoDataBaseDetail.description\"}})],1),_c('CCol',{attrs:{\"md\":\"12\"}},[_c('input',{ref:\"image\",staticStyle:{\"display\":\"none\"},attrs:{\"type\":\"file\",\"accept\":\"image/*\"},on:{\"change\":_vm.onGeoDataBaseImageChange}}),_c('CButton',{staticClass:\"y-center-g-5 w-100\",attrs:{\"color\":\"primary\",\"size\":\"lg\"},on:{\"click\":function($event){return _vm.$refs.image.click()}}},[_c('CIcon',{staticStyle:{\"color\":\"white\"},attrs:{\"name\":\"cil-camera\",\"size\":\"lg\"}}),_c('span',[_vm._v(_vm._s(_vm.imageFile?.name ?? \"تصویر تأسیسات را انتخاب کنید\"))])],1)],1),_c('CCol',{staticClass:\"mt-4 mb-3\",attrs:{\"md\":\"12\"}},[_c('CButton',{staticClass:\"y-center-g-5 justify-content-center\",attrs:{\"color\":\"success\",\"block\":\"\"},on:{\"click\":function($event){return _vm.saveGeoDataBasePoint()}}},[_c('CIcon',{attrs:{\"name\":\"cil-check\"}}),_c('span',[_vm._v(\"ثبت\")])],1)],1)],1)],1):_vm._e(),(_vm.formState === 'list')?_c('div',{staticClass:\"farm-geo-box\"},[_c('no-data',{staticClass:\"emptyTitle\",attrs:{\"show\":_vm.farmGeoDataBaseList.length === 0,\"message\":\"برای زمین تأسیسات ثبت نشده\"}}),(_vm.farmGeoDataBaseList.length > 0)?_c('div',_vm._l((_vm.farmGeoDataBaseList),function(item,index){return _c('div',{key:index,class:item.id == _vm.geoDataBaseDetail.id\n ? 'geo-list-info active'\n : 'geo-list-info',on:{\"click\":function($event){return _vm.getDetail(item)}}},[_c('img',{attrs:{\"src\":item.image,\"alt\":\"\"},on:{\"click\":function($event){return _vm.showImage(item)}}}),_c('div',{staticClass:\"geo-detail-text\"},[_c('ul',[_c('li',[_vm._v(_vm._s(item.title)+\" (\"+_vm._s(item.type)+\")\")]),_c('li',[_vm._v(_vm._s(item.createDateTime))])]),_c('p',[_vm._v(_vm._s(item.description))])]),_c('div',{staticClass:\"geo-detail-btn\"},[_c('button',{staticClass:\"bg-info\",on:{\"click\":function($event){return _vm.switchGeoForm('new', item.id)}}},[_vm._v(\" ویرایش \")]),_c('button',{staticClass:\"bg-danger\",on:{\"click\":function($event){return _vm.deleteGeoDataBase(item.id)}}},[_vm._v(\" حذف \")])])])}),0):_vm._e()],1):_vm._e()]):_vm._e(),_c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.selectedFarm)?_c('base-panel',{attrs:{\"rightPanel\":true,\"title\":\"مشخصات زمین\"},scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('farm-info',{attrs:{\"farmInfo\":_vm.selectedFarm,\"area\":_vm.selectedFarmArea}})]},proxy:true}],null,false,1842995380)}):_vm._e()],1),_c('VueModal',{attrs:{\"title\":_vm.geoDataBaseDetail.title,\"wrapper-class\":\"animate__animated animate__faster\",\"in-class\":\"animate__fadeIn\",\"out-class\":\"animate__fadeOut\",\"bg-class\":\"animate__animated\",\"bg-in-class\":`animate__fadeInDown`,\"bg-out-class\":`animate__fadeOutDown`},model:{value:(_vm.geoDataBaseImageModal),callback:function ($$v) {_vm.geoDataBaseImageModal=$$v},expression:\"geoDataBaseImageModal\"}},[_c('img',{staticClass:\"geo-image\",attrs:{\"src\":_vm.geoDataBaseDetail.image}})])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./geoDataBaseForm.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./geoDataBaseForm.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./geoDataBaseForm.vue?vue&type=template&id=272d3cbe&scoped=true\"\nimport script from \"./geoDataBaseForm.vue?vue&type=script&lang=js\"\nexport * from \"./geoDataBaseForm.vue?vue&type=script&lang=js\"\nimport style0 from \"./geoDataBaseForm.vue?vue&type=style&index=0&id=272d3cbe&prod&lang=css\"\nimport style1 from \"./geoDataBaseForm.vue?vue&type=style&index=1&id=272d3cbe&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"272d3cbe\",\n null\n \n)\n\nexport default component.exports","import { isReactive, isReadonly, computed, unref, ref, watch, isRef, reactive, nextTick, inject, provide, getCurrentInstance, onBeforeMount, onBeforeUnmount } from 'vue-demi';\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction unwrapObj(obj) {\n let ignoreKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n return Object.keys(obj).reduce((o, k) => {\n if (ignoreKeys.includes(k)) return o;\n o[k] = unref(obj[k]);\n return o;\n }, {});\n}\nfunction isFunction(val) {\n return typeof val === 'function';\n}\nfunction isProxy(value) {\n return isReactive(value) || isReadonly(value);\n}\nfunction get(obj, stringPath, def) {\n let current = obj;\n const path = stringPath.split('.');\n\n for (let i = 0; i < path.length; i++) {\n if (!current[path[i]]) return def;\n current = current[path[i]];\n }\n\n return current;\n}\nfunction gatherBooleanGroupProperties(group, nestedResults, property) {\n return computed(() => {\n return group.some(path => {\n return get(nestedResults, path, {\n [property]: false\n })[property];\n });\n });\n}\nfunction gatherArrayGroupProperties(group, nestedResults, property) {\n return computed(() => {\n return group.reduce((all, path) => {\n const fetchedProperty = get(nestedResults, path, {\n [property]: false\n })[property] || [];\n return all.concat(fetchedProperty);\n }, []);\n });\n}\n\nfunction callRule(rule, value, siblingState, instance) {\n return rule.call(instance, unref(value), unref(siblingState), instance);\n}\n\nfunction normalizeValidatorResponse(result) {\n return result.$valid !== undefined ? !result.$valid : !result;\n}\n\nfunction createAsyncResult(rule, model, $pending, $dirty, _ref, $response, instance) {\n let {\n $lazy,\n $rewardEarly\n } = _ref;\n let watchTargets = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : [];\n let siblingState = arguments.length > 8 ? arguments[8] : undefined;\n let $lastInvalidState = arguments.length > 9 ? arguments[9] : undefined;\n let $lastCommittedOn = arguments.length > 10 ? arguments[10] : undefined;\n const $invalid = ref(!!$dirty.value);\n const $pendingCounter = ref(0);\n $pending.value = false;\n const $unwatch = watch([model, $dirty].concat(watchTargets, $lastCommittedOn), () => {\n if ($lazy && !$dirty.value || $rewardEarly && !$lastInvalidState.value && !$pending.value) {\n return;\n }\n\n let ruleResult;\n\n try {\n ruleResult = callRule(rule, model, siblingState, instance);\n } catch (err) {\n ruleResult = Promise.reject(err);\n }\n\n $pendingCounter.value++;\n $pending.value = !!$pendingCounter.value;\n $invalid.value = false;\n Promise.resolve(ruleResult).then(data => {\n $pendingCounter.value--;\n $pending.value = !!$pendingCounter.value;\n $response.value = data;\n $invalid.value = normalizeValidatorResponse(data);\n }).catch(error => {\n $pendingCounter.value--;\n $pending.value = !!$pendingCounter.value;\n $response.value = error;\n $invalid.value = true;\n });\n }, {\n immediate: true,\n deep: typeof model === 'object'\n });\n return {\n $invalid,\n $unwatch\n };\n}\n\nfunction createSyncResult(rule, model, $dirty, _ref2, $response, instance, siblingState, $lastInvalidState) {\n let {\n $lazy,\n $rewardEarly\n } = _ref2;\n\n const $unwatch = () => ({});\n\n const $invalid = computed(() => {\n if ($lazy && !$dirty.value || $rewardEarly && !$lastInvalidState.value) {\n return false;\n }\n\n let returnValue = true;\n\n try {\n const result = callRule(rule, model, siblingState, instance);\n $response.value = result;\n returnValue = normalizeValidatorResponse(result);\n } catch (err) {\n $response.value = err;\n }\n\n return returnValue;\n });\n return {\n $unwatch,\n $invalid\n };\n}\n\nfunction createValidatorResult(rule, model, $dirty, config, instance, validatorName, propertyKey, propertyPath, siblingState, $lastInvalidState, $lastCommittedOn) {\n const $pending = ref(false);\n const $params = rule.$params || {};\n const $response = ref(null);\n let $invalid;\n let $unwatch;\n\n if (rule.$async) {\n ({\n $invalid,\n $unwatch\n } = createAsyncResult(rule.$validator, model, $pending, $dirty, config, $response, instance, rule.$watchTargets, siblingState, $lastInvalidState, $lastCommittedOn));\n } else {\n ({\n $invalid,\n $unwatch\n } = createSyncResult(rule.$validator, model, $dirty, config, $response, instance, siblingState, $lastInvalidState));\n }\n\n const message = rule.$message;\n const $message = isFunction(message) ? computed(() => message(unwrapObj({\n $pending,\n $invalid,\n $params: unwrapObj($params),\n $model: model,\n $response,\n $validator: validatorName,\n $propertyPath: propertyPath,\n $property: propertyKey\n }))) : message || '';\n return {\n $message,\n $params,\n $pending,\n $invalid,\n $response,\n $unwatch\n };\n}\n\nfunction sortValidations() {\n let validationsRaw = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const validations = unref(validationsRaw);\n const validationKeys = Object.keys(validations);\n const rules = {};\n const nestedValidators = {};\n const config = {};\n let validationGroups = null;\n validationKeys.forEach(key => {\n const v = validations[key];\n\n switch (true) {\n case isFunction(v.$validator):\n rules[key] = v;\n break;\n\n case isFunction(v):\n rules[key] = {\n $validator: v\n };\n break;\n\n case key === '$validationGroups':\n validationGroups = v;\n break;\n\n case key.startsWith('$'):\n config[key] = v;\n break;\n\n default:\n nestedValidators[key] = v;\n }\n });\n return {\n rules,\n nestedValidators,\n config,\n validationGroups\n };\n}\n\nconst ROOT_PATH = '__root';\n\nfunction createValidationResults(rules, model, key, resultsCache, path, config, instance, externalResults, siblingState) {\n const ruleKeys = Object.keys(rules);\n const cachedResult = resultsCache.get(path, rules);\n const $dirty = ref(false);\n const $lastInvalidState = ref(false);\n const $lastCommittedOn = ref(0);\n\n if (cachedResult) {\n if (!cachedResult.$partial) return cachedResult;\n cachedResult.$unwatch();\n $dirty.value = cachedResult.$dirty.value;\n }\n\n const result = {\n $dirty,\n $path: path,\n $touch: () => {\n if (!$dirty.value) $dirty.value = true;\n },\n $reset: () => {\n if ($dirty.value) $dirty.value = false;\n },\n $commit: () => {}\n };\n\n if (!ruleKeys.length) {\n cachedResult && resultsCache.set(path, rules, result);\n return result;\n }\n\n ruleKeys.forEach(ruleKey => {\n result[ruleKey] = createValidatorResult(rules[ruleKey], model, result.$dirty, config, instance, ruleKey, key, path, siblingState, $lastInvalidState, $lastCommittedOn);\n });\n result.$externalResults = computed(() => {\n if (!externalResults.value) return [];\n return [].concat(externalResults.value).map((stringError, index) => ({\n $propertyPath: path,\n $property: key,\n $validator: '$externalResults',\n $uid: `${path}-externalResult-${index}`,\n $message: stringError,\n $params: {},\n $response: null,\n $pending: false\n }));\n });\n result.$invalid = computed(() => {\n const r = ruleKeys.some(ruleKey => unref(result[ruleKey].$invalid));\n $lastInvalidState.value = r;\n return !!result.$externalResults.value.length || r;\n });\n result.$pending = computed(() => ruleKeys.some(ruleKey => unref(result[ruleKey].$pending)));\n result.$error = computed(() => result.$dirty.value ? result.$pending.value || result.$invalid.value : false);\n result.$silentErrors = computed(() => ruleKeys.filter(ruleKey => unref(result[ruleKey].$invalid)).map(ruleKey => {\n const res = result[ruleKey];\n return reactive({\n $propertyPath: path,\n $property: key,\n $validator: ruleKey,\n $uid: `${path}-${ruleKey}`,\n $message: res.$message,\n $params: res.$params,\n $response: res.$response,\n $pending: res.$pending\n });\n }).concat(result.$externalResults.value));\n result.$errors = computed(() => result.$dirty.value ? result.$silentErrors.value : []);\n\n result.$unwatch = () => ruleKeys.forEach(ruleKey => {\n result[ruleKey].$unwatch();\n });\n\n result.$commit = () => {\n $lastInvalidState.value = true;\n $lastCommittedOn.value = Date.now();\n };\n\n resultsCache.set(path, rules, result);\n return result;\n}\n\nfunction collectNestedValidationResults(validations, nestedState, path, resultsCache, config, instance, nestedExternalResults) {\n const nestedValidationKeys = Object.keys(validations);\n if (!nestedValidationKeys.length) return {};\n return nestedValidationKeys.reduce((results, nestedKey) => {\n results[nestedKey] = setValidations({\n validations: validations[nestedKey],\n state: nestedState,\n key: nestedKey,\n parentKey: path,\n resultsCache,\n globalConfig: config,\n instance,\n externalResults: nestedExternalResults\n });\n return results;\n }, {});\n}\n\nfunction createMetaFields(results, nestedResults, childResults) {\n const allResults = computed(() => [nestedResults, childResults].filter(res => res).reduce((allRes, res) => {\n return allRes.concat(Object.values(unref(res)));\n }, []));\n const $dirty = computed({\n get() {\n return results.$dirty.value || (allResults.value.length ? allResults.value.every(r => r.$dirty) : false);\n },\n\n set(v) {\n results.$dirty.value = v;\n }\n\n });\n const $silentErrors = computed(() => {\n const modelErrors = unref(results.$silentErrors) || [];\n const nestedErrors = allResults.value.filter(result => (unref(result).$silentErrors || []).length).reduce((errors, result) => {\n return errors.concat(...result.$silentErrors);\n }, []);\n return modelErrors.concat(nestedErrors);\n });\n const $errors = computed(() => {\n const modelErrors = unref(results.$errors) || [];\n const nestedErrors = allResults.value.filter(result => (unref(result).$errors || []).length).reduce((errors, result) => {\n return errors.concat(...result.$errors);\n }, []);\n return modelErrors.concat(nestedErrors);\n });\n const $invalid = computed(() => allResults.value.some(r => r.$invalid) || unref(results.$invalid) || false);\n const $pending = computed(() => allResults.value.some(r => unref(r.$pending)) || unref(results.$pending) || false);\n const $anyDirty = computed(() => allResults.value.some(r => r.$dirty) || allResults.value.some(r => r.$anyDirty) || $dirty.value);\n const $error = computed(() => $dirty.value ? $pending.value || $invalid.value : false);\n\n const $touch = () => {\n results.$touch();\n allResults.value.forEach(result => {\n result.$touch();\n });\n };\n\n const $commit = () => {\n results.$commit();\n allResults.value.forEach(result => {\n result.$commit();\n });\n };\n\n const $reset = () => {\n results.$reset();\n allResults.value.forEach(result => {\n result.$reset();\n });\n };\n\n if (allResults.value.length && allResults.value.every(nr => nr.$dirty)) $touch();\n return {\n $dirty,\n $errors,\n $invalid,\n $anyDirty,\n $error,\n $pending,\n $touch,\n $reset,\n $silentErrors,\n $commit\n };\n}\n\nfunction setValidations(_ref) {\n let {\n validations,\n state,\n key,\n parentKey,\n childResults,\n resultsCache,\n globalConfig = {},\n instance,\n externalResults\n } = _ref;\n const path = parentKey ? `${parentKey}.${key}` : key;\n const {\n rules,\n nestedValidators,\n config,\n validationGroups\n } = sortValidations(validations);\n\n const mergedConfig = _objectSpread2(_objectSpread2({}, globalConfig), config);\n\n const nestedState = key ? computed(() => {\n const s = unref(state);\n return s ? unref(s[key]) : undefined;\n }) : state;\n\n const cachedExternalResults = _objectSpread2({}, unref(externalResults) || {});\n\n const nestedExternalResults = computed(() => {\n const results = unref(externalResults);\n if (!key) return results;\n return results ? unref(results[key]) : undefined;\n });\n const results = createValidationResults(rules, nestedState, key, resultsCache, path, mergedConfig, instance, nestedExternalResults, state);\n const nestedResults = collectNestedValidationResults(nestedValidators, nestedState, path, resultsCache, mergedConfig, instance, nestedExternalResults);\n const $validationGroups = {};\n\n if (validationGroups) {\n Object.entries(validationGroups).forEach(_ref2 => {\n let [key, group] = _ref2;\n $validationGroups[key] = {\n $invalid: gatherBooleanGroupProperties(group, nestedResults, '$invalid'),\n $error: gatherBooleanGroupProperties(group, nestedResults, '$error'),\n $pending: gatherBooleanGroupProperties(group, nestedResults, '$pending'),\n $errors: gatherArrayGroupProperties(group, nestedResults, '$errors'),\n $silentErrors: gatherArrayGroupProperties(group, nestedResults, '$silentErrors')\n };\n });\n }\n\n const {\n $dirty,\n $errors,\n $invalid,\n $anyDirty,\n $error,\n $pending,\n $touch,\n $reset,\n $silentErrors,\n $commit\n } = createMetaFields(results, nestedResults, childResults);\n const $model = key ? computed({\n get: () => unref(nestedState),\n set: val => {\n $dirty.value = true;\n const s = unref(state);\n const external = unref(externalResults);\n\n if (external) {\n external[key] = cachedExternalResults[key];\n }\n\n if (isRef(s[key])) {\n s[key].value = val;\n } else {\n s[key] = val;\n }\n }\n }) : null;\n\n if (key && mergedConfig.$autoDirty) {\n watch(nestedState, () => {\n if (!$dirty.value) $touch();\n const external = unref(externalResults);\n\n if (external) {\n external[key] = cachedExternalResults[key];\n }\n }, {\n flush: 'sync'\n });\n }\n\n async function $validate() {\n $touch();\n\n if (mergedConfig.$rewardEarly) {\n $commit();\n await nextTick();\n }\n\n await nextTick();\n return new Promise(resolve => {\n if (!$pending.value) return resolve(!$invalid.value);\n const unwatch = watch($pending, () => {\n resolve(!$invalid.value);\n unwatch();\n });\n });\n }\n\n function $getResultsForChild(key) {\n return (childResults.value || {})[key];\n }\n\n function $clearExternalResults() {\n if (isRef(externalResults)) {\n externalResults.value = cachedExternalResults;\n } else {\n if (Object.keys(cachedExternalResults).length === 0) {\n Object.keys(externalResults).forEach(k => {\n delete externalResults[k];\n });\n } else {\n Object.assign(externalResults, cachedExternalResults);\n }\n }\n }\n\n return reactive(_objectSpread2(_objectSpread2(_objectSpread2({}, results), {}, {\n $model,\n $dirty,\n $error,\n $errors,\n $invalid,\n $anyDirty,\n $pending,\n $touch,\n $reset,\n $path: path || ROOT_PATH,\n $silentErrors,\n $validate,\n $commit\n }, childResults && {\n $getResultsForChild,\n $clearExternalResults,\n $validationGroups\n }), nestedResults));\n}\n\nclass ResultsStorage {\n constructor() {\n this.storage = new Map();\n }\n\n set(path, rules, result) {\n this.storage.set(path, {\n rules,\n result\n });\n }\n\n checkRulesValidity(path, rules, storedRules) {\n const storedRulesKeys = Object.keys(storedRules);\n const newRulesKeys = Object.keys(rules);\n if (newRulesKeys.length !== storedRulesKeys.length) return false;\n const hasAllValidators = newRulesKeys.every(ruleKey => storedRulesKeys.includes(ruleKey));\n if (!hasAllValidators) return false;\n return newRulesKeys.every(ruleKey => {\n if (!rules[ruleKey].$params) return true;\n return Object.keys(rules[ruleKey].$params).every(paramKey => {\n return unref(storedRules[ruleKey].$params[paramKey]) === unref(rules[ruleKey].$params[paramKey]);\n });\n });\n }\n\n get(path, rules) {\n const storedRuleResultPair = this.storage.get(path);\n if (!storedRuleResultPair) return undefined;\n const {\n rules: storedRules,\n result\n } = storedRuleResultPair;\n const isValidCache = this.checkRulesValidity(path, rules, storedRules);\n const $unwatch = result.$unwatch ? result.$unwatch : () => ({});\n if (!isValidCache) return {\n $dirty: result.$dirty,\n $partial: true,\n $unwatch\n };\n return result;\n }\n\n}\n\nconst CollectFlag = {\n COLLECT_ALL: true,\n COLLECT_NONE: false\n};\nconst VuelidateInjectChildResults = Symbol('vuelidate#injectChildResults');\nconst VuelidateRemoveChildResults = Symbol('vuelidate#removeChildResults');\nfunction nestedValidations(_ref) {\n let {\n $scope,\n instance\n } = _ref;\n const childResultsRaw = {};\n const childResultsKeys = ref([]);\n const childResults = computed(() => childResultsKeys.value.reduce((results, key) => {\n results[key] = unref(childResultsRaw[key]);\n return results;\n }, {}));\n\n function injectChildResultsIntoParent(results, _ref2) {\n let {\n $registerAs: key,\n $scope: childScope,\n $stopPropagation\n } = _ref2;\n if ($stopPropagation || $scope === CollectFlag.COLLECT_NONE || childScope === CollectFlag.COLLECT_NONE || $scope !== CollectFlag.COLLECT_ALL && $scope !== childScope) return;\n childResultsRaw[key] = results;\n childResultsKeys.value.push(key);\n }\n\n instance.__vuelidateInjectInstances = [].concat(instance.__vuelidateInjectInstances || [], injectChildResultsIntoParent);\n\n function removeChildResultsFromParent(key) {\n childResultsKeys.value = childResultsKeys.value.filter(childKey => childKey !== key);\n delete childResultsRaw[key];\n }\n\n instance.__vuelidateRemoveInstances = [].concat(instance.__vuelidateRemoveInstances || [], removeChildResultsFromParent);\n const sendValidationResultsToParent = inject(VuelidateInjectChildResults, []);\n provide(VuelidateInjectChildResults, instance.__vuelidateInjectInstances);\n const removeValidationResultsFromParent = inject(VuelidateRemoveChildResults, []);\n provide(VuelidateRemoveChildResults, instance.__vuelidateRemoveInstances);\n return {\n childResults,\n sendValidationResultsToParent,\n removeValidationResultsFromParent\n };\n}\n\nfunction ComputedProxyFactory(target) {\n return new Proxy(target, {\n get(target, prop) {\n return typeof target[prop] === 'object' ? ComputedProxyFactory(target[prop]) : computed(() => target[prop]);\n }\n\n });\n}\n\nlet uid = 0;\nfunction useVuelidate(validations, state) {\n var _getCurrentInstance;\n\n let globalConfig = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (arguments.length === 1) {\n globalConfig = validations;\n validations = undefined;\n state = undefined;\n }\n\n let {\n $registerAs,\n $scope = CollectFlag.COLLECT_ALL,\n $stopPropagation,\n $externalResults,\n currentVueInstance\n } = globalConfig;\n const instance = currentVueInstance || ((_getCurrentInstance = getCurrentInstance()) === null || _getCurrentInstance === void 0 ? void 0 : _getCurrentInstance.proxy);\n const componentOptions = instance ? instance.$options : {};\n\n if (!$registerAs) {\n uid += 1;\n $registerAs = `_vuelidate_${uid}`;\n }\n\n const validationResults = ref({});\n const resultsCache = new ResultsStorage();\n const {\n childResults,\n sendValidationResultsToParent,\n removeValidationResultsFromParent\n } = instance ? nestedValidations({\n $scope,\n instance\n }) : {\n childResults: ref({})\n };\n\n if (!validations && componentOptions.validations) {\n const rules = componentOptions.validations;\n state = ref({});\n onBeforeMount(() => {\n state.value = instance;\n watch(() => isFunction(rules) ? rules.call(state.value, new ComputedProxyFactory(state.value)) : rules, validations => {\n validationResults.value = setValidations({\n validations,\n state,\n childResults,\n resultsCache,\n globalConfig,\n instance,\n externalResults: $externalResults || instance.vuelidateExternalResults\n });\n }, {\n immediate: true\n });\n });\n globalConfig = componentOptions.validationsConfig || globalConfig;\n } else {\n const validationsWatchTarget = isRef(validations) || isProxy(validations) ? validations : reactive(validations || {});\n watch(validationsWatchTarget, newValidationRules => {\n validationResults.value = setValidations({\n validations: newValidationRules,\n state,\n childResults,\n resultsCache,\n globalConfig,\n instance: instance !== null && instance !== void 0 ? instance : {},\n externalResults: $externalResults\n });\n }, {\n immediate: true\n });\n }\n\n if (instance) {\n sendValidationResultsToParent.forEach(f => f(validationResults, {\n $registerAs,\n $scope,\n $stopPropagation\n }));\n onBeforeUnmount(() => removeValidationResultsFromParent.forEach(f => f($registerAs)));\n }\n\n return computed(() => {\n return _objectSpread2(_objectSpread2({}, unref(validationResults.value)), childResults.value);\n });\n}\n\nexport { CollectFlag, useVuelidate as default, useVuelidate };\n"],"sourceRoot":""}