{"version":3,"sources":["webpack:///./src/components/ui/input/InputPassword.vue?edf6","webpack:///./src/components/ui/input/InputPassword.vue","webpack:///./src/components/ui/input/InputPassword.vue?4fd2","webpack:///./src/components/ui/PasswordProgress.vue?d489","webpack:///./src/components/ui/PasswordProgress.vue","webpack:///./src/components/ui/PasswordProgress.vue?6829","webpack:///./src/components/ui/PasswordProgress.vue?d782","webpack:///./src/helpers/validation.ts","webpack:///./src/helpers/regex.ts","webpack:///./src/assets/icons sync ^\\.\\/icon\\-eye.*\\.svg$","webpack:///./src/constants/index.ts","webpack:///./src/constants/validation.ts"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","render","_ctx","_cache","$props","$setup","$data","$options","_openBlock","_createElementBlock","_createElementVNode","src","pathEye","onClick","$event","showPassword","_mergeProps","$attrs","inputClasses","value","modelValue","onInput","$emit","target","type","_defineComponent","__name","props","setup","__props","expose","__expose","ref","computed","require","__returned__","Object","defineProperty","enumerable","__exports__","_Fragment","_renderList","item","index","_normalizeClass","active","isActiveProgressItem","password","key","ruleTitles","isCorrectRule","_toDisplayString","rulesState","upperLowerCase","hasLowerAndUpperCase","length","hasPasswordLength","numberAndSymbol","hasNumberAndSymbol","keys","values","filter","Boolean","cov_2csbspw5gy","actualCoverage","s","f","b","hasLowerCaseRegex","test","hasUpperCaseRegex","hasSpecialChars","hasSpecialCharsRegex","hasDigits","hasDigitsRegex","validatePassword","validateDocumentMimeType","mimeType","allowedDocumentMimeTypes","includes","validPhoneNumber","validOptionalPhoneNumber","getRegex","string","cov_1f6uyvd7xm","RegExp","latinCharactersRegex","map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","resolve","module","exports","cov_1doyi2xpv9","MaxFileSize","confirmPasswordError","cov_2hvp9etq80","newPasswordError"],"mappings":"gLAEA,MAAMA,EAAa,CAAEC,MAAO,0BACtBC,EAAa,CAAED,MAAO,wBACtBE,EAAa,CAAC,OACdC,EAAa,CAAC,QAAS,QAEvB,SAAUC,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B4C,IAAAG,EAAA,KAAAH,IAAAE,EAAA,MACpD9C,GAAO4C,IAAAI,EAAA,QAAAJ,IAAAE,EAAA,MACFe,EAAiB7D,KACzB4C,IAAAI,EAAA,QAAAJ,IAAAE,EAAA,OACM,K,qiFC7BT,MAAMiB,EAAYC,IAA4BC,IAAAlB,EAAA,KAAAkB,IAAAnB,EAAA,SAAIoB,OAAOF,EAAQ,MAEpDf,GAAiBgB,IAAAnB,EAAA,KAAGiB,EAAS,gBAC7BZ,GAAiBc,IAAAnB,EAAA,KAAGiB,EAAS,gBAC7BV,GAAoBY,IAAAnB,EAAA,KAAGiB,EAClC,yDAEWR,GAAcU,IAAAnB,EAAA,KAAGiB,EAAS,iBAC1BI,GAAoBF,IAAAnB,EAAA,KAAGiB,EAAS,8B,qBCR7C,IAAIK,EAAM,CACT,wBAAyB,OACzB,iBAAkB,QAInB,SAASC,EAAeC,GACvB,IAAIC,EAAKC,EAAsBF,GAC/B,OAAOG,EAAoBF,GAE5B,SAASC,EAAsBF,GAC9B,IAAIG,EAAoBC,EAAEN,EAAKE,GAAM,CACpC,IAAIK,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEE,KAAO,mBACHF,EAEP,OAAOP,EAAIE,GAEZD,EAAe7B,KAAO,WACrB,OAAOvB,OAAOuB,KAAK4B,IAEpBC,EAAeS,QAAUN,EACzBO,EAAOC,QAAUX,EACjBA,EAAeE,GAAK,Q,w9CCvBb,MAAMZ,GAAwBsB,IAAAnC,EAAA,KAAG,CACtC,aACA,YACA,aACA,aACA,QACA,oBAEWoC,GAAWD,IAAAnC,EAAA,KAAG,W,s3CCRpB,MAAMqC,GAAoBC,IAAAtC,EAAA,KAAG,mCACvBuC,GAAgBD,IAAAtC,EAAA,KAAG","file":"js/CustomerProfileChangePasswordView~RestorePasswordView.2316678a.js","sourcesContent":["import { createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"input-password-wrapper\" }\nconst _hoisted_2 = { class: \"input-password__icon\" }\nconst _hoisted_3 = [\"src\"]\nconst _hoisted_4 = [\"value\", \"type\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", _hoisted_2, [\n _createElementVNode(\"img\", {\n src: $setup.pathEye,\n onClick: _cache[0] || (_cache[0] = ($event: any) => ($setup.showPassword = !$setup.showPassword))\n }, null, 8, _hoisted_3)\n ]),\n _createElementVNode(\"input\", _mergeProps({ class: \"input-password\" }, _ctx.$attrs, {\n class: $props.inputClasses,\n value: $props.modelValue,\n onInput: _cache[1] || (_cache[1] = ($event: any) => (_ctx.$emit('update:modelValue', $event.target.value))),\n type: $setup.showPassword ? 'text': 'password'\n }), null, 16, _hoisted_4)\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport {computed, ref} from \"vue\";\n\ninterface Props {\n modelValue: string;\n inputClasses: string | string[];\n}\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'InputPassword',\n props: {\n modelValue: {},\n inputClasses: {}\n },\n setup(__props: any, { expose: __expose }) {\n __expose();\n\n\n\nconst showPassword = ref(false);\nconst pathEye = computed(() => require(`@/assets/icons/icon-eye${showPassword.value ? '-active': ''}.svg`));\n\nconst __returned__ = { showPassword, pathEye, computed, ref }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./InputPassword.vue?vue&type=template&id=0daa0622&ts=true&lang=pug\"\nimport script from \"./InputPassword.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./InputPassword.vue?vue&type=script&lang=ts&setup=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-e2474bbe\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"password-progress\" }\nconst _hoisted_2 = { class: \"progress\" }\nconst _hoisted_3 = { class: \"rules\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (item, index) => {\n return _createElementVNode(\"span\", {\n class: _normalizeClass([\"progress-item\", { active: $setup.isActiveProgressItem(index, $setup.props.password) }]),\n key: item\n }, null, 2)\n }), 64))\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList($setup.ruleTitles, (item, index) => {\n return _createElementVNode(\"div\", {\n class: _normalizeClass([\"rule\", { 'rule-correct': $setup.isCorrectRule(index, $setup.props.password) }]),\n key: item\n }, _toDisplayString(item), 3)\n }), 64))\n ])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport {\n hasLowerAndUpperCase,\n hasNumberAndSymbol,\n hasPasswordLength,\n} from \"@/helpers/validation\";\n\ninterface Props {\n password: string;\n}\ntype RulesState = ReturnType;\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'PasswordProgress',\n props: {\n password: {}\n },\n setup(__props: any, { expose: __expose }) {\n __expose();\n\nconst props = __props;\n\n\nconst ruleTitles = [\n \"Upper and lowercase letters\",\n \"Between 4 and 16 characters\",\n \"Contains a number and a symbol\",\n];\n\nfunction rulesState(value: string) {\n return {\n upperLowerCase: hasLowerAndUpperCase(value),\n length: hasPasswordLength(value),\n numberAndSymbol: hasNumberAndSymbol(value),\n };\n}\nfunction isCorrectRule(index: number, value: string): boolean {\n const key = Object.keys(rulesState(value))[index] as keyof RulesState;\n return rulesState(value)[key];\n}\nfunction isActiveProgressItem(index: number, value: string): boolean {\n const values = Object.values(rulesState(value)).filter((item) => item);\n return Boolean(values[index]);\n}\n\nconst __returned__ = { props, ruleTitles, rulesState, isCorrectRule, isActiveProgressItem, get hasLowerAndUpperCase() { return hasLowerAndUpperCase }, get hasNumberAndSymbol() { return hasNumberAndSymbol }, get hasPasswordLength() { return hasPasswordLength } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./PasswordProgress.vue?vue&type=template&id=e2474bbe&scoped=true&ts=true&lang=pug\"\nimport script from \"./PasswordProgress.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./PasswordProgress.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./PasswordProgress.vue?vue&type=style&index=0&id=e2474bbe&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src264950160/src/lottrackr-front/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e2474bbe\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./PasswordProgress.vue?vue&type=style&index=0&id=e2474bbe&lang=scss&scoped=true\"","import {\n hasLowerCaseRegex,\n hasUpperCaseRegex,\n hasSpecialCharsRegex,\n hasDigitsRegex,\n} from \"@/helpers/regex\";\nimport { allowedDocumentMimeTypes } from \"@/constants\";\n\nexport const hasLowerAndUpperCase = (value: string) =>\n hasLowerCaseRegex.test(value) && hasUpperCaseRegex.test(value);\nexport const hasPasswordLength = (value: string) =>\n value.length >= 4 && value.length <= 16;\nexport const hasSpecialChars = (value: string) =>\n hasSpecialCharsRegex.test(value);\nexport const hasDigits = (value: string) => hasDigitsRegex.test(value);\nexport const hasNumberAndSymbol = (value: string) =>\n hasDigits(value) && hasSpecialChars(value);\nexport const validatePassword = (value: string) =>\n hasLowerAndUpperCase(value) &&\n hasPasswordLength(value) &&\n hasNumberAndSymbol(value);\nexport const validateDocumentMimeType = (mimeType: string): boolean =>\n allowedDocumentMimeTypes.includes(mimeType);\nexport const validPhoneNumber = (value: string) =>\n /^(\\+61|0)4\\d{8}$/.test(value);\nexport const validOptionalPhoneNumber = (value: string) => {\n if (value) {\n return validPhoneNumber(value);\n }\n return true;\n};\n","const getRegex = (string: string | RegExp) => new RegExp(string, \"u\");\n\nexport const hasLowerCaseRegex = getRegex(\"^.*[a-z].*$\");\nexport const hasUpperCaseRegex = getRegex(\"^.*[A-Z].*$\");\nexport const hasSpecialCharsRegex = getRegex(\n \"^.*[`!@#$%^&*()_+\\\\-=\\\\[\\\\]{};':\\\"\\\\\\\\|,.<>\\\\/?~].*$\"\n);\nexport const hasDigitsRegex = getRegex(\"^.*[+0-9].*$\");\nexport const latinCharactersRegex = getRegex(/^[A-Za-z0-9(),.`\\-&\\s]*$/);\n","var map = {\n\t\"./icon-eye-active.svg\": \"acb9\",\n\t\"./icon-eye.svg\": \"7615\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"8556\";","export const allowedDocumentMimeTypes = [\n \"image/jpeg\",\n \"image/png\",\n \"image/heic\",\n \"image/heif\",\n \".heic\",\n \"application/pdf\",\n];\nexport const MaxFileSize = 26214400;\n","export const confirmPasswordError = \"Confirm password does not match\";\nexport const newPasswordError = \"Invalid password\";\n"],"sourceRoot":""}