{"version":3,"sources":["webpack:///./src/views/customer/CustomerProfileView.vue?7020","webpack:///./src/views/customer/CustomerProfileView.vue","webpack:///./src/views/customer/CustomerProfileView.vue?d742","webpack:///./src/views/customer/CustomerProfileView.vue?c27c","webpack:///./src/components/ui/Modal.vue?9889","webpack:///./src/components/ui/Modal.vue?3eee","webpack:///./src/components/ui/Modal.vue","webpack:///./src/components/ui/Modal.vue?5652"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","class","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","key","_hoisted_35","_hoisted_36","_hoisted_37","render","_ctx","_cache","$props","$setup","$data","$options","_$setup$user$detailsI","_$setup$user$detailsI2","_$setup$user$detailsI3","_openBlock","_createElementBlock","_Fragment","_toDisplayString","user","firstName","middleName","lastName","email","phone","detailsId","postcode","state","address","onClick","onEdit","onChangePassword","src","require","onDelete","_createVNode","isOpen","isDeleteAccountModal","onClose","onCancel","content","_withCtx","isErrorOnDelete","onProceed","deleteAccount","_","_defineComponent","__name","setup","__props","expose","__expose","computed","store","data","ref","value","router","push","name","dispatch","_id","then","catch","error","response","statusCode","__returned__","Modal","Object","defineProperty","enumerable","__exports__","_createBlock","_Teleport","to","_Transition","transitionName","appear","default","_normalizeClass","classes","close","showContainer","props","maxWidth","showClose","_createCommentVNode","_renderSlot","$slots","undefined","type","Boolean","String","Array","emits","emit","watch","document","body","classList","add","remove","immediate","keyPress","event","code","addEventListener","onBeforeUnmount","removeEventListener"],"mappings":"mKAEA,MAAMA,EAAe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AMiC,EAAQnC,EAiBZ,SAASiC,IACPc,EAAK,SAbPC,mBACE,IAAMb,EAAMhD,OACZ,KACMgD,EAAMhD,OACR8D,SAASC,KAAKC,UAAUC,IAAI,aAE5BH,SAASC,KAAKC,UAAUE,OAAO,cAGnC,CAAEC,WAAW,IAOf,MAAMC,EAAYC,IACZA,GAAwB,WAAfA,EAAMC,MACjBxB,KAGJgB,SAASS,iBAAiB,UAAWH,GAErCI,6BAAgB,KACdV,SAASW,oBAAoB,UAAWL,GACxCN,SAASC,KAAKC,UAAUE,OAAO,eAGnC,MAAMnC,EAAe,CAAE6B,OAAMZ,QAAOF,QAAOsB,WAAUI,qCAAiBX,kBAEtE,OADA5B,OAAOC,eAAeH,EAAc,kBAAmB,CAAEI,YAAY,EAAOf,OAAO,IAC5EW,K,iCC9CP,MAAMK,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASnE,GAAQ,CAAC,YAAY,qBAE1E","file":"js/CustomerProfile.e48f8d9b.js","sourcesContent":["import { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-106e9fb1\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"customer__container\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", { class: \"customer__title\" }, \"My Profile\", -1))\nconst _hoisted_3 = { class: \"card\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h3\", { class: \"customer__sub-title\" }, \"Profile Details\", -1))\nconst _hoisted_5 = { class: \"details-block\" }\nconst _hoisted_6 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Name\", -1))\nconst _hoisted_8 = { class: \"details-value\" }\nconst _hoisted_9 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Middle Name(s)\", -1))\nconst _hoisted_11 = { class: \"details-value\" }\nconst _hoisted_12 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Last Name\", -1))\nconst _hoisted_14 = { class: \"details-value\" }\nconst _hoisted_15 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Email\", -1))\nconst _hoisted_17 = { class: \"details-value\" }\nconst _hoisted_18 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_19 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Phone Number\", -1))\nconst _hoisted_20 = { class: \"details-value\" }\nconst _hoisted_21 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_22 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Postcode\", -1))\nconst _hoisted_23 = { class: \"details-value\" }\nconst _hoisted_24 = { class: \"details-row details-row--adaptive\" }\nconst _hoisted_25 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"details-label\" }, \"Address\", -1))\nconst _hoisted_26 = { class: \"details-value\" }\nconst _hoisted_27 = { class: \"controls\" }\nconst _hoisted_28 = [\"src\"]\nconst _hoisted_29 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Change Password\", -1))\nconst _hoisted_30 = [\"src\"]\nconst _hoisted_31 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Delete Account\", -1))\nconst _hoisted_32 = { class: \"modal-wrapper\" }\nconst _hoisted_33 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal__title\" }, \"Confirm action\", -1))\nconst _hoisted_34 = { key: 0 }\nconst _hoisted_35 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"modal__description\" }, \"Are you sure you want to delete account?\", -1))\nconst _hoisted_36 = { key: 1 }\nconst _hoisted_37 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"warning-block\" }, [\n /*#__PURE__*/_createElementVNode(\"div\", null, \"You have one or more active lots. Please close them first.You can decline or withdraw your request at the Contract information form tab on the lot details page.\"),\n /*#__PURE__*/_createElementVNode(\"div\", null, \"Please pay attention that you need to wait for the approval from land sales agent if you have withdrawn your request.\")\n], -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, _toDisplayString($setup.user.firstName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"div\", _hoisted_11, _toDisplayString($setup.user.middleName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createElementVNode(\"div\", _hoisted_14, _toDisplayString($setup.user.lastName), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _hoisted_16,\n _createElementVNode(\"div\", _hoisted_17, _toDisplayString($setup.user.email), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_18, [\n _hoisted_19,\n _createElementVNode(\"div\", _hoisted_20, _toDisplayString($setup.user.phone), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createElementVNode(\"div\", _hoisted_23, _toDisplayString($setup.user.detailsId?.postcode? $setup.user.detailsId.postcode\n: $setup.user.detailsId?.state), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_24, [\n _hoisted_25,\n _createElementVNode(\"div\", _hoisted_26, _toDisplayString($setup.user.detailsId?.address), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_27, [\n _createElementVNode(\"button\", {\n class: \"button primary\",\n onClick: $setup.onEdit\n }, \"Edit Info\"),\n _createElementVNode(\"button\", {\n class: \"button button-with-icon\",\n onClick: $setup.onChangePassword\n }, [\n _createElementVNode(\"img\", {\n src: require(`@/assets/icons/lock.svg`)\n }, null, 8, _hoisted_28),\n _hoisted_29\n ]),\n _createElementVNode(\"button\", {\n class: \"button button-with-icon delete\",\n onClick: $setup.onDelete\n }, [\n _createElementVNode(\"img\", {\n class: \"warning-icon\",\n src: require(`@/assets/icons/icon-bucket.svg`)\n }, null, 8, _hoisted_30),\n _hoisted_31\n ])\n ])\n ])\n ]),\n _createVNode($setup[\"Modal\"], {\n isOpen: $setup.isDeleteAccountModal,\n onClose: $setup.onCancel\n }, {\n content: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_32, [\n _hoisted_33,\n (!$setup.isErrorOnDelete)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_34, [\n _hoisted_35,\n _createElementVNode(\"div\", { class: \"modal-controls\" }, [\n _createElementVNode(\"button\", {\n class: \"button modal cancel\",\n onClick: $setup.onCancel\n }, \"Cancel\"),\n _createElementVNode(\"button\", {\n class: \"button modal primary\",\n onClick: $setup.deleteAccount\n }, \"Delete\")\n ])\n ]))\n : (_openBlock(), _createElementBlock(\"div\", _hoisted_36, [\n _hoisted_37,\n _createElementVNode(\"div\", { class: \"modal-controls\" }, [\n _createElementVNode(\"button\", {\n class: \"button modal cancel\",\n onClick: $setup.onCancel\n }, \"Cancel\"),\n _createElementVNode(\"button\", {\n class: \"button modal primary\",\n onClick: $setup.onProceed\n }, \"Proceed\")\n ])\n ]))\n ])\n ]),\n _: 1\n }, 8, [\"isOpen\"])\n ], 64))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport router from \"@/router\";\nimport { computed, ref } from \"vue\";\nimport Modal from \"@/components/ui/Modal.vue\";\nimport store from \"@/store\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'CustomerProfileView',\n setup(__props, { expose: __expose }) {\n __expose();\n\nconst user = computed(() => store.state.user.data);\nconst isDeleteAccountModal = ref(false);\nconst isErrorOnDelete = ref(false);\n\nfunction onCancel() {\n isDeleteAccountModal.value = false;\n isErrorOnDelete.value = false;\n}\nfunction onEdit() {\n router.push({ name: \"CustomerProfileEditView\" });\n}\nfunction onChangePassword() {\n router.push({ name: \"CustomerProfileChangePasswordView\" });\n}\nfunction onDelete() {\n isDeleteAccountModal.value = true;\n}\nfunction onProceed() {\n onCancel();\n router.push({ name: \"CustomerLots\" });\n}\nfunction deleteAccount() {\n store\n .dispatch(\"user/deleteUser\", user.value._id)\n .then(() => {\n onCancel();\n router.push(\"/\");\n })\n .catch((error) => {\n if (error.response.data.statusCode === 409) {\n isErrorOnDelete.value = true;\n }\n });\n}\n\nconst __returned__ = { user, isDeleteAccountModal, isErrorOnDelete, onCancel, onEdit, onChangePassword, onDelete, onProceed, deleteAccount, get router() { return router }, computed, ref, Modal, get store() { return store } }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./CustomerProfileView.vue?vue&type=template&id=106e9fb1&scoped=true&ts=true&lang=pug\"\nimport script from \"./CustomerProfileView.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./CustomerProfileView.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./CustomerProfileView.vue?vue&type=style&index=0&id=106e9fb1&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-106e9fb1\"]])\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!./CustomerProfileView.vue?vue&type=style&index=0&id=106e9fb1&lang=scss&scoped=true\"","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!./Modal.vue?vue&type=style&index=0&id=1e795cc8&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, Teleport as _Teleport, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1e795cc8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"modal--wrapper\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createBlock(_Teleport, { to: \"body\" }, [\n _createVNode(_Transition, {\n name: $props.transitionName,\n appear: \"\"\n }, {\n default: _withCtx(() => [\n ($props.isOpen)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"modal\", $props.classes])\n }, [\n _createElementVNode(\"div\", {\n class: \"modal--backdrop\",\n onClick: $setup.close\n }),\n ($props.showContainer)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: _normalizeClass([\"modal--container scroll-wrapper\", { 'max-width': $setup.props.maxWidth }])\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n ($props.showClose)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 0,\n class: \"modal--close\",\n onClick: $setup.close\n }))\n : _createCommentVNode(\"\", true),\n _renderSlot(_ctx.$slots, \"content\", {}, undefined, true)\n ])\n ], 2))\n : _renderSlot(_ctx.$slots, \"content\", { key: 1 }, undefined, true)\n ], 2))\n : _createCommentVNode(\"\", true)\n ]),\n _: 3\n }, 8, [\"name\"])\n ]))\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { onBeforeUnmount, watch } from \"vue\";\n\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Modal',\n props: {\n isOpen: { type: Boolean, default: false },\n showClose: { type: Boolean, default: true },\n showContainer: { type: Boolean, default: true },\n classes: { type: [String, Array], default: \"\" },\n transitionName: { type: String, default: \"fade\" },\n maxWidth: { type: Boolean, default: false },\n },\n emits: [\"close\", \"submit\"],\n setup(__props, { expose: __expose, emit }) {\n __expose();\n\nconst props = __props;\n\n \n \n\n watch(\n () => props.isOpen,\n () => {\n if (props.isOpen) {\n document.body.classList.add(\"no-scroll\");\n } else {\n document.body.classList.remove(\"no-scroll\");\n }\n },\n { immediate: true }\n );\n\n function close() {\n emit(\"close\");\n }\n\n const keyPress = (event: KeyboardEvent) => {\n if (event && event.code === \"Escape\") {\n close();\n }\n };\n document.addEventListener(\"keydown\", keyPress);\n\n onBeforeUnmount(() => {\n document.removeEventListener(\"keydown\", keyPress);\n document.body.classList.remove(\"no-scroll\");\n });\n\nconst __returned__ = { emit, props, close, keyPress, onBeforeUnmount, watch }\nObject.defineProperty(__returned__, '__isScriptSetup', { enumerable: false, value: true })\nreturn __returned__\n}\n\n})","import { render } from \"./Modal.vue?vue&type=template&id=1e795cc8&scoped=true&ts=true&lang=pug\"\nimport script from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=1e795cc8&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-1e795cc8\"]])\n\nexport default __exports__"],"sourceRoot":""}