{"version":3,"sources":["webpack:///../../../src/components/VForm/VForm.ts","webpack:///./src/components/dialogs/i4pro-dialog-password.vue?bc4f","webpack:///src/components/dialogs/i4pro-dialog-password.vue","webpack:///./src/components/dialogs/i4pro-dialog-password.vue?b545","webpack:///./src/components/dialogs/i4pro-dialog-password.vue","webpack:///./src/components/dialogs/i4pro-dialog-password.vue?4b05"],"names":["name","provide","form","this","inheritAttrs","props","disabled","lazyValidation","readonly","value","Boolean","data","inputs","watchers","errorBag","watch","handler","errors","Object","deep","immediate","methods","watchInput","watcher","input","val","_uid","valid","shouldValidate","validate","filter","reset","resetErrorBag","setTimeout","resetValidation","register","unregister","found","find","i","unwatch","render","h","staticClass","attrs","novalidate","attrs$","on","submit","e","$slots","_vm","_h","$createElement","_c","_self","model","callback","$$v","dialog","expression","ref","$event","preventDefault","handleChangeNewPassword","_v","showPasswoard","newPasswordRules","changePasswordValue","newPassword","showNewPasswoard","newPasswordConfirmationRules","validatePasswordConfirmation","newPasswordConfirmation","validatePassword","_e","handleClearForm","isValidPassword","staticRenderFns","components","i4proValidatePassword","param","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VDialog","VForm","VIcon","VImg","VSpacer","VTextField"],"mappings":"4OAoBe,sBAAO,EAAD,KAEnB,eAAmB,SAFN,OAIN,CACPA,KADO,SAGPC,QAHO,WAIL,MAAO,CAAEC,KAAMC,OAGjBC,cAPO,EASPC,MAAO,CACLC,SADK,QAELC,eAFK,QAGLC,SAHK,QAILC,MAAOC,SAGTC,KAAM,iBAAO,CACXC,OADW,GAEXC,SAFW,GAGXC,SAAU,KAGZC,MAAO,CACLD,SAAU,CACRE,QADQ,SACD,GACL,IAAMC,EAASC,OAAA,oBAAf,GAEAf,KAAA,mBAEFgB,MANQ,EAORC,WAAW,IAIfC,QAAS,CACPC,WADO,SACG,GAAY,WACdC,EAAW,SAAAC,GACf,OAAOA,EAAA,mBAA0B,SAAAC,GAC/B,OAAU,EAAV,SAAyBD,EAAzB,UACC,CAAEJ,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,uKACA,4CADA,SAGA,2FAHA,OAKA,oBALA,8CAQI,gBAvBJ,WAuBA,qKACA,qBACA,yBAEA,6CACA,uBALA,SAMA,oBANA,OAOA,wBAPA,gDC9F8W,I,0JCQ1WK,EAAY,eACd,EACAzC,EACAqC,GACA,EACA,KACA,WACA,MAIa,aAAAI,EAAiB,QAehC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAaC,UAAA,OAAUC,WAAA,OAAWC,UAAA,KAAQC,QAAA,KAAMC,QAAA,KAAMC,OAAA,KAAKC,UAAA,KAAQC,aAAA,Q,kCClC5G,yBAAukB,EAAG","file":"js/chunk-53f4dc76.55cd8794.js","sourcesContent":["// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, this.$slots.default)\n },\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"400\"},model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',{staticClass:\"card card-new-password\",attrs:{\"max-width\":\"400\"}},[_c('v-form',{ref:\"form\",attrs:{\"lazy-validation\":\"\"},on:{\"submit\":function($event){$event.preventDefault();return _vm.handleChangeNewPassword($event)}},model:{value:(_vm.valid),callback:function ($$v) {_vm.valid=$$v},expression:\"valid\"}},[_c('v-img',{staticClass:\"white--text\",attrs:{\"height\":\"100px\",\"src\":\"static/bg-slidebar.png\",\"gradient\":\"to top right, rgba(100,115,201,.5), rgba(25,32,72,.7)\"}},[_c('v-card-title',{staticClass:\"card-new-password--text\"},[_vm._v(\"Alteração de Senha\")])],1),_c('v-card-text',[_c('v-text-field',{attrs:{\"prepend-icon\":\"lock\",\"append-icon\":_vm.showPasswoard ? 'visibility_off' : 'visibility',\"type\":_vm.showPasswoard ? 'text' : 'password',\"name\":\"newPassword\",\"label\":\"Senha\",\"required\":\"\",\"rules\":_vm.newPasswordRules},on:{\"click:append\":function($event){_vm.showPasswoard = !_vm.showPasswoard},\"input\":_vm.changePasswordValue},model:{value:(_vm.newPassword),callback:function ($$v) {_vm.newPassword=$$v},expression:\"newPassword\"}}),_c('v-text-field',{attrs:{\"prepend-icon\":\"lock\",\"append-icon\":_vm.showNewPasswoard ? 'visibility_off' : 'visibility',\"type\":_vm.showNewPasswoard ? 'text' : 'password',\"name\":\"newPasswordConfirmation\",\"label\":\"Confirmar Senha\",\"required\":\"\",\"rules\":_vm.newPasswordConfirmationRules},on:{\"click:append\":function($event){_vm.showNewPasswoard = !_vm.showNewPasswoard},\"input\":_vm.validatePasswordConfirmation},model:{value:(_vm.newPasswordConfirmation),callback:function ($$v) {_vm.newPasswordConfirmation=$$v},expression:\"newPasswordConfirmation\"}})],1),(_vm.dialog)?_c('i4proValidatePassword',{attrs:{\"id\":\"forceValidation\",\"stringValue\":_vm.newPassword},on:{\"validatePassword\":_vm.validatePassword}}):_vm._e(),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{on:{\"click\":_vm.handleClearForm}},[_c('v-icon',[_vm._v(\"far fa-times-circle\")]),_vm._v(\"Cancelar \")],1),_c('v-btn',{attrs:{\"type\":\"submit\",\"color\":\"primary\",\"disabled\":!_vm.valid || !_vm.isValidPassword}},[_c('v-icon',[_vm._v(\"far fa-save\")]),_vm._v(\"Salvar \")],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./i4pro-dialog-password.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./i4pro-dialog-password.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./i4pro-dialog-password.vue?vue&type=template&id=6ac0d27e&scoped=true&\"\nimport script from \"./i4pro-dialog-password.vue?vue&type=script&lang=js&\"\nexport * from \"./i4pro-dialog-password.vue?vue&type=script&lang=js&\"\nimport style0 from \"./i4pro-dialog-password.vue?vue&type=style&index=0&id=6ac0d27e&lang=scss&scoped=true&\"\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 \"6ac0d27e\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VDialog,VForm,VIcon,VImg,VSpacer,VTextField})\n","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./i4pro-dialog-password.vue?vue&type=style&index=0&id=6ac0d27e&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.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!./i4pro-dialog-password.vue?vue&type=style&index=0&id=6ac0d27e&lang=scss&scoped=true&\""],"sourceRoot":""}