{"version":3,"sources":["webpack:///./src/assets/img/icon/deleteFilledAntDesignRed.svg","webpack:///./src/views/master/customers/customer/customer-company/detail/DetailPelangganCompany.vue?e9ab","webpack:///./src/views/master/customers/customer/customer-company/detail/HeaderCardDetail.vue?3777","webpack:///./src/composables/master/customers/customer/customer-company/headerCardDetailComposable.ts","webpack:///./src/views/master/customers/customer/customer-company/detail/HeaderCardDetail.vue","webpack:///./src/views/master/customers/customer/customer-company/detail/AlamatPerusahaan.vue?a58f","webpack:///./src/composables/master/customers/customer/customer-company/alamatPerusahaanComposable.ts","webpack:///./src/views/master/customers/customer/customer-company/detail/AlamatPerusahaan.vue","webpack:///./src/views/master/customers/customer/customer-company/detail/DetailPelangganCompany.vue","webpack:///./src/views/master/customers/customer/customer-company/detail/DetailPelangganCompany.vue?2e24","webpack:///./src/views/master/customers/customer/customer-company/detail/AlamatPerusahaanForm.vue?fa0a","webpack:///./src/composables/master/customers/customer/customer-company/alamatPerusahaanFormComposable.ts","webpack:///./src/views/master/customers/customer/customer-company/detail/AlamatPerusahaanForm.vue"],"names":["module","exports","_hoisted_1","id","render","_ctx","_cache","$props","$setup","$data","$options","_component_HeaderCardDetail","_component_AlamatPerusahaan","Id","getDecriptId","_hoisted_2","class","_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","_component_InputSwitch","_component_ListCopyEditDel","_component_OverlayPanel","_component_Card","content","dataCustomerCompany","Nama","disabled","route","meta","permission","update","onChange","$event","changeIsActive","modelValue","IsActive","delete","key","onClick","showDropDown","ref","default","del","edit","onDel","deleteData","onEdit","redirectEdit","_","NamaKota","Alamat","NamaPic","TeleponPic","Diskon","name","props","setup","router","op","app","appContext","config","globalProperties","$confirm","$toast","$strInd","store","params","idCompany","getDataCustomerCompany","getDataForm","response","console","log","value","data","result","Kota","currentId","push","idUser","redirectMaster","isActived","val","dispatch","dataForm","error","add","severity","detail","toast","errorChangeStatus","group","life","Detail","require","header","message","confirm","msgChange","icon","accept","reject","msgDelete","evt","toggle","__exports__","style","_component_Button","_component_InputIconRightGrey","_component_Paginator","_component_AlamatPerusahaanForm","_component_Sidebar","title","write","label","redirectAdd","inputSearch","placeholder","onKeyup","searchData","type","$enumBase","input","text","$icon","svg","searchEva","dataAddress","item","index","Alias","Penerima","Telepon","footer","rows","filter","top","totalRecords","onPage","visible","sliderActive","showCloseIcon","position","onReloadData","getDataAddress","onCloseSidebar","closeSidebar","editData","components","AlamatPerusahaanForm","skip","propertiesProps","sendInputSearch","getAll","search","count","event","page","toUpperCase","errorDelete","successDeleteData","dataList","HeaderCardDetail","AlamatPerusahaan","src","alt","for","_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","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_component_InputText","_component_Multiselect","_component_Textarea","_component_GoogleAutocomplete","_component_Maps","_component_Dialog","onSubmit","submitData","v$","$invalid","$model","$error","submitted","$errors","$message","$pending","$response","required","maxlength","options","kotaOption","searchable","openMap","Latitude","Longitude","KodePos","autocomplete","Note","cols","form","onSendDetail","setAddressResult","addressRef","width","dismissableMask","closeOnEscape","onSendData","receiveMapData","Object","username","emits","emit","CompanyId","mapData","selectedLocation","lat","lng","companyUsername","validTelp","valid","length","charAt","slice","rules","withMessage","maxLength","minLength","KotaId","checkResponse","successSubmit","Number","submitProccess","NamaPenerima","HpPenerima","Alamat1","Alamat2","IsPrimary","isFormValid","getKota","filters","pageNumber","pageSize","filterField","custom","Data","map","x","Code","Name","JSON","parse"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,6C,yDCErCC,EAAa,CAAEC,GAAI,4BAEnB,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA8B,8BAAkB,oBAChDC,EAA8B,8BAAkB,oBAEtD,OAAQ,yBAAc,yBAAa,UAAWV,EAAY,CACxD,yBAAaS,EAA6B,CACxCE,GAAIL,EAAOM,gBACV,KAAM,EAAG,CAAC,OACb,yBAAaF,EAA6B,CACxCC,GAAIL,EAAOM,gBACV,KAAM,EAAG,CAAC,S,gBCZX,EAAa,CAAEX,GAAI,sBACnBY,EAAa,CAAEC,MAAO,+BACtBC,EAAa,CAAED,MAAO,IACtBE,EAAa,CAAEF,MAAO,QACtBG,EAAa,CAAEH,MAAO,4CACtBI,EAAa,CAAEJ,MAAO,IACtBK,EAAa,CAAEL,MAAO,+BACtBM,EAAa,CAAEN,MAAO,IACtBO,EAAa,CAAEP,MAAO,eACtBQ,EAAc,CAAER,MAAO,UACvBS,EAA2B,yBAAa,KAAM,CAAET,MAAO,eAAiB,CAC/D,yBAAa,IAAK,CAAEA,MAAO,mDAAqD,YAC3F,GACEU,EAAc,CAAEV,MAAO,WACvBW,EAAc,CAAEX,MAAO,oCACvBY,EAA2B,yBAAa,KAAM,CAAEZ,MAAO,eAAiB,CAC/D,yBAAa,IAAK,CAAEA,MAAO,mDAAqD,YAC3F,GACEa,EAAc,CAAEb,MAAO,WACvBc,EAAc,CAAEd,MAAO,oCACvBe,EAAc,CAAEf,MAAO,QACvBgB,EAAc,CAAEhB,MAAO,yCACvBiB,EAA2B,yBAAa,IAAK,CAAEjB,MAAO,wDAA0D,UAAW,GAC3HkB,EAAc,CAAElB,MAAO,kDAEvB,SAAU,EAAOX,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMyB,EAAyB,8BAAkB,eAC3CC,EA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,EAAQtJ,OAAQ,EAChB2K,EAAQ3K,MAAQ+M,KAAKC,MAAM9M,GAC3BJ,QAAQC,IAAI4K,EAAQ3K,OACpBW,EAASnC,OAAT,UAAkBmM,EAAQ3K,aAA1B,aAAkB,EAAe4K,iBACjCjK,EAAS4I,SAAT,UAAoBoB,EAAQ3K,aAA5B,aAAoB,EAAe6K,IACnClK,EAAS6I,UAAT,UAAqBmB,EAAQ3K,aAA7B,aAAqB,EAAe8K,KAGtC,MAAO,CACLnK,WACA4B,QACAuC,kBACAL,eACAtG,aACA0N,iBACAH,gBACAtC,aACAgD,UACAf,QACA7C,KACAD,aACAwB,mBACAnB,YACAzN,KACA6O,aACAV,UACAe,oB,wBCzPN,MAAMrI,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAAStH,MAErD","file":"js/chunk-9983548e.12df82df.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/deleteFilledAntDesignRed.ed81f734.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = { id: \"detail-pelanggan-company\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_HeaderCardDetail = _resolveComponent(\"HeaderCardDetail\")\n const _component_AlamatPerusahaan = _resolveComponent(\"AlamatPerusahaan\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_HeaderCardDetail, {\n Id: $setup.getDecriptId()\n }, null, 8, [\"Id\"]),\n _createVNode(_component_AlamatPerusahaan, {\n Id: $setup.getDecriptId()\n }, null, 8, [\"Id\"])\n ]))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { id: \"header-card-detail\" }\nconst _hoisted_2 = { class: \"flex w-full justify-between\" }\nconst _hoisted_3 = { class: \"\" }\nconst _hoisted_4 = { class: \"px-5\" }\nconst _hoisted_5 = { class: \"flex w-full justify-between items-center\" }\nconst _hoisted_6 = { class: \"\" }\nconst _hoisted_7 = { class: \"flex w-full justify-between\" }\nconst _hoisted_8 = { class: \"\" }\nconst _hoisted_9 = { class: \"flex w-full\" }\nconst _hoisted_10 = { class: \"w-full\" }\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"td\", { class: \"w-1/12 pr-5\" }, [\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey-lighten-1 text-sm font-semibold\" }, \"Alamat\")\n], -1)\nconst _hoisted_12 = { class: \"w-11/12\" }\nconst _hoisted_13 = { class: \"text-black text-sm font-semibold\" }\nconst _hoisted_14 = /*#__PURE__*/_createVNode(\"td\", { class: \"w-1/12 pr-5\" }, [\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey-lighten-1 text-sm font-semibold\" }, \"Kontak\")\n], -1)\nconst _hoisted_15 = { class: \"w-11/12\" }\nconst _hoisted_16 = { class: \"text-black text-sm font-semibold\" }\nconst _hoisted_17 = { class: \"px-5\" }\nconst _hoisted_18 = { class: \"flex items-end h-full justify-between\" }\nconst _hoisted_19 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey-lighten-1 text-sm font-semibold mr-3\" }, \"Diskon\", -1)\nconst _hoisted_20 = { class: \"label-orange-lighten-5 px-3 text-xs rounded-md\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputSwitch = _resolveComponent(\"InputSwitch\")\n const _component_ListCopyEditDel = _resolveComponent(\"ListCopyEditDel\")\n const _component_OverlayPanel = _resolveComponent(\"OverlayPanel\")\n const _component_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, { class: \"mb-4\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _createVNode(\"h5\", null, _toDisplayString(_ctx.dataCustomerCompany.Nama), 1)\n ]),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(_component_InputSwitch, {\n disabled: !_ctx.route.meta.permission.update,\n class: \"switch-og mr-8\",\n onChange: _cache[1] || (_cache[1] = ($event: any) => (_ctx.changeIsActive(_ctx.dataCustomerCompany))),\n modelValue: _ctx.dataCustomerCompany.IsActive,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.dataCustomerCompany.IsActive = $event))\n }, null, 8, [\"disabled\", \"modelValue\"])\n ]),\n (_ctx.route.meta.permission.update || _ctx.route.meta.permission.delete)\n ? (_openBlock(), _createBlock(\"i\", {\n key: 0,\n class: \"pi pi-ellipsis-h text-base cursor-pointer text-black\",\n \"aria:haspopup\": \"true\",\n \"aria-controls\": \"overlay_panel\",\n onClick: _cache[3] || (_cache[3] = \n//@ts-ignore\n(...args) => (_ctx.showDropDown && _ctx.showDropDown(...args)))\n }))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_OverlayPanel, {\n ref: \"op\",\n id: \"overlay_panel\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_ListCopyEditDel, {\n del: _ctx.route.meta.permission.delete,\n edit: _ctx.route.meta.permission.update,\n onDel: _cache[4] || (_cache[4] = ($event: any) => (_ctx.deleteData(_ctx.dataCustomerCompany.Id))),\n onEdit: _cache[5] || (_cache[5] = ($event: any) => (_ctx.redirectEdit(_ctx.dataCustomerCompany.Id)))\n }, null, 8, [\"del\", \"edit\"])\n ]),\n _: 1\n }, 512)\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"table\", _hoisted_10, [\n _createVNode(\"tr\", null, [\n _hoisted_11,\n _createVNode(\"td\", _hoisted_12, [\n _createVNode(\"p\", _hoisted_13, _toDisplayString(_ctx.dataCustomerCompany.NamaKota) + \" - \" + _toDisplayString(_ctx.dataCustomerCompany.Alamat), 1)\n ])\n ]),\n _createVNode(\"tr\", null, [\n _hoisted_14,\n _createVNode(\"td\", _hoisted_15, [\n _createVNode(\"p\", _hoisted_16, _toDisplayString(_ctx.dataCustomerCompany.NamaPic) + \" (\" + _toDisplayString(_ctx.dataCustomerCompany.TeleponPic) + \")\", 1)\n ])\n ])\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"div\", _hoisted_18, [\n _hoisted_19,\n _createVNode(\"div\", _hoisted_20, _toDisplayString(_ctx.dataCustomerCompany.Diskon) + \"% \", 1)\n ])\n ])\n ])\n ]),\n _: 1\n })\n ]))\n}","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance\r\n} from 'vue'\r\nimport {\r\n useRouter,\r\n useRoute\r\n} from 'vue-router'\r\nimport {\r\n customerCompanyUseCase\r\n} from '@/domain/usecase'\r\nimport {\r\n useStore\r\n} from 'vuex'\r\n\r\nexport default {\r\n name: 'HeaderCardDetail',\r\n props: {\r\n Id: null\r\n },\r\n setup(props: any) {\r\n const router = useRouter()\r\n const route = useRoute()\r\n const op = ref()\r\n const app = getCurrentInstance()\r\n const {\r\n $confirm,\r\n $toast,\r\n $strInd\r\n } = app!.appContext.config.globalProperties\r\n const store = useStore()\r\n\r\n const dataCustomerCompany: any = ref({})\r\n const getDecriptId = () => route.params.idCompany\r\n const getDataCustomerCompany = async () => {\r\n const response = await customerCompanyUseCase.getDataForm(props.Id)\r\n console.log(response)\r\n dataCustomerCompany.value = response.data.result\r\n dataCustomerCompany.value.NamaKota = response.data.result.Kota.Nama\r\n }\r\n const redirectEdit = (currentId: any) => {\r\n router.push({\r\n name: 'master-pelanggan-perusahaan-edit',\r\n params: {\r\n idUser: currentId\r\n }\r\n })\r\n }\r\n\r\n const redirectMaster = () => {\r\n router.push({\r\n name: 'master-pelanggan',\r\n })\r\n }\r\n\r\n const isActived = async (val: any) => {\r\n store.dispatch('showLoading')\r\n const dataForm = {\r\n Id: val.Id,\r\n IsActive: val.IsActive\r\n }\r\n const response = await customerCompanyUseCase.changeIsActive(dataForm)\r\n if (response.error) {\r\n val.IsActive = !val.IsActive\r\n $toast.add({\r\n severity: 'error',\r\n detail: $strInd.toast.errorChangeStatus,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success',\r\n detail: response.result.detail ?? response.result.Detail,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const changeIsActive = (val: any) => {\r\n $confirm.require({\r\n header: 'Status Aktif',\r\n message: $strInd.confirm.msgChange,\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: () => {\r\n isActived(val)\r\n },\r\n reject: () => {\r\n val.IsActive = !val.IsActive\r\n }\r\n })\r\n }\r\n\r\n const deleteData = (Id: any) => {\r\n $confirm.require({\r\n header: 'Pelanggan Perusahaan',\r\n message: $strInd.confirm.msgDelete,\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: async () => {\r\n store.dispatch('showLoading')\r\n const response = await customerCompanyUseCase.deleteData(Id)\r\n // console.log('reposne delete', response)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: 'Gagal menghapus pelanggan perusahaan, silahkan coba kembali',\r\n group: 'bc',\r\n life: 3000\r\n })\r\n store.dispatch('hideLoading')\r\n } else {\r\n $toast.add({\r\n severity: 'success',\r\n detail: response.result.detail ?? response.result.Detail,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n // getDataCustomerCompany()\r\n redirectMaster()\r\n }\r\n }\r\n })\r\n }\r\n\r\n const showDropDown = (evt: any) => {\r\n // console.log(evt)\r\n op.value.toggle(evt)\r\n }\r\n\r\n onMounted(() => {\r\n getDataCustomerCompany()\r\n })\r\n return {\r\n router,\r\n route,\r\n getDecriptId,\r\n dataCustomerCompany,\r\n getDataCustomerCompany,\r\n op,\r\n showDropDown,\r\n app,\r\n store,\r\n redirectEdit,\r\n changeIsActive,\r\n isActived,\r\n deleteData\r\n }\r\n }\r\n}\r\n","import { render } from \"./HeaderCardDetail.vue?vue&type=template&id=2b360b68&ts=true\"\nimport script from \"@/composables/master/customers/customer/customer-company/headerCardDetailComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/customers/customer/customer-company/headerCardDetailComposable.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\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 { createVNode as _createVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withKeys as _withKeys, renderList as _renderList, Fragment as _Fragment, toDisplayString as _toDisplayString, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { id: \"route\" }\nconst _hoisted_2 = { class: \"flex flex-col items-left justify-between sm:flex-row sm:items-center\" }\nconst _hoisted_3 = { class: \"flex items-center justify-between sm:justify-start\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"h6\", { class: \"mr-3 font-normal\" }, \"Alamat Pengiriman\", -1)\nconst _hoisted_5 = { class: \"flex\" }\nconst _hoisted_6 = {\n class: \"border-right-grey-lighten-3 px-3\",\n style: {\"width\":\"80%\"}\n}\nconst _hoisted_7 = { class: \"font-bold break-words\" }\nconst _hoisted_8 = { class: \"break-words color-blue-grey-darken-1 font-semibold\" }\nconst _hoisted_9 = { class: \"break-words color-blue-grey-darken-1 font-semibold\" }\nconst _hoisted_10 = {\n class: \"px-6 flex items-center justify-center\",\n style: {\"width\":\"20%\"}\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Button = _resolveComponent(\"Button\")\n const _component_InputIconRightGrey = _resolveComponent(\"InputIconRightGrey\")\n const _component_InputSwitch = _resolveComponent(\"InputSwitch\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_Paginator = _resolveComponent(\"Paginator\")\n const _component_AlamatPerusahaanForm = _resolveComponent(\"AlamatPerusahaanForm\")\n const _component_Sidebar = _resolveComponent(\"Sidebar\")\n const _component_ListCopyEditDel = _resolveComponent(\"ListCopyEditDel\")\n const _component_OverlayPanel = _resolveComponent(\"OverlayPanel\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, null, {\n title: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n (_ctx.route.meta.permission.write)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n label: \"Tambah Alamat\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.redirectAdd())),\n icon: \"pi pi-plus\",\n class: \"font-semibold p-button-sm btn-primary\"\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", null, [\n _createVNode(_component_InputIconRightGrey, {\n modelValue: _ctx.inputSearch,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.inputSearch = $event)),\n placeholder: \"Cari Disini ...\",\n onKeyup: _cache[3] || (_cache[3] = _withKeys(($event: any) => (_ctx.searchData(_ctx.inputSearch)), [\"enter\"])),\n type: _ctx.$enumBase.input.text,\n icon: _ctx.$icon.svg.searchEva,\n class: \"mt-3 sm:mt-0\"\n }, null, 8, [\"modelValue\", \"type\", \"icon\"])\n ])\n ])\n ]),\n content: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.dataAddress, (item, index) => {\n return (_openBlock(), _createBlock(_component_Card, {\n class: \"card-no-shadow card-item-category mb-4 hover:bg-gray-50\",\n key: index\n }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"h5\", _hoisted_7, _toDisplayString(item.Alias) + \" (\" + _toDisplayString(item.Penerima) + \")\", 1),\n _createVNode(\"span\", _hoisted_8, _toDisplayString(item.Kota.Nama) + \" - \" + _toDisplayString(item.Alamat), 1),\n _createVNode(\"p\", _hoisted_9, _toDisplayString(item.Telepon), 1)\n ]),\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(_component_InputSwitch, {\n disabled: !_ctx.route.meta.permission.update,\n class: \"switch-og\",\n modelValue: item.IsActive,\n \"onUpdate:modelValue\": ($event: any) => (item.IsActive = $event),\n onChange: ($event: any) => (_ctx.changeIsActive(item))\n }, null, 8, [\"disabled\", \"modelValue\", \"onUpdate:modelValue\", \"onChange\"]),\n (_ctx.route.meta.permission.update || _ctx.route.meta.permission.delete)\n ? (_openBlock(), _createBlock(\"i\", {\n key: 0,\n class: \"pi pi-ellipsis-h text-base cursor-pointer text-black ml-6\",\n onClick: ($event: any) => (_ctx.showDropDown($event, item))\n }, null, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_Paginator, {\n rows: _ctx.filter.top,\n totalRecords: _ctx.filter.totalRecords,\n onPage: _ctx.onPage\n }, null, 8, [\"rows\", \"totalRecords\", \"onPage\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Sidebar, {\n class: \"type-bus-sidebar\",\n visible: _ctx.sliderActive,\n \"onUpdate:visible\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.sliderActive = $event)),\n showCloseIcon: false,\n position: \"right\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_AlamatPerusahaanForm, {\n idCompany: _ctx.Id,\n data: _ctx.dataForm,\n onReloadData: _cache[4] || (_cache[4] = ($event: any) => (_ctx.getDataAddress())),\n onCloseSidebar: _ctx.closeSidebar\n }, null, 8, [\"idCompany\", \"data\", \"onCloseSidebar\"])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_OverlayPanel, { ref: \"op\" }, {\n default: _withCtx(() => [\n _createVNode(_component_ListCopyEditDel, {\n del: _ctx.route.meta.permission.delete,\n edit: _ctx.route.meta.permission.update,\n onDel: _cache[6] || (_cache[6] = ($event: any) => (_ctx.deleteData(_ctx.dataForm.Id))),\n onEdit: _cache[7] || (_cache[7] = ($event: any) => (_ctx.editData(_ctx.dataForm)))\n }, null, 8, [\"del\", \"edit\"])\n ]),\n _: 1\n }, 512)\n ]))\n}","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n reactive\r\n} from 'vue'\r\nimport {\r\n customerCompanyAddressUseCase\r\n} from '@/domain/usecase'\r\nimport AlamatPerusahaanForm from '@/views/master/customers/customer/customer-company/detail/AlamatPerusahaanForm.vue'\r\nimport { useRoute } from 'vue-router'\r\nimport { useStore } from 'vuex'\r\n\r\nexport default {\r\n name: 'AlamatPerusahaan',\r\n components: {\r\n AlamatPerusahaanForm\r\n },\r\n props: {\r\n Id: null\r\n },\r\n setup(props: any) {\r\n const store = useStore()\r\n const filter = {\r\n totalRecords: 0,\r\n top: 10,\r\n skip: 0\r\n }\r\n const propertiesProps = reactive(props)\r\n const sliderActive = ref(false)\r\n const inputSearch = ref(null)\r\n const sendInputSearch = ref('')\r\n const dataForm = ref(null)\r\n const dataAddress = ref([])\r\n const app = getCurrentInstance()\r\n const op = ref()\r\n const {\r\n $confirm,\r\n $toast,\r\n $strInd\r\n } = app!.appContext.config.globalProperties\r\n const route = useRoute()\r\n\r\n const getDataAddress = async () => {\r\n const response = await customerCompanyAddressUseCase.getAll({\r\n skip: filter.skip,\r\n top: filter.top,\r\n search: sendInputSearch.value,\r\n idCompany: propertiesProps.Id\r\n })\r\n dataAddress.value = response.result\r\n filter.totalRecords = response.count\r\n // console.log(response)\r\n }\r\n const onPage = (event: any) => {\r\n filter.skip = event.page * filter.top\r\n getDataAddress()\r\n }\r\n const searchData = (val: any) => {\r\n sendInputSearch.value = val.toUpperCase()\r\n getDataAddress()\r\n }\r\n const showDropDown = (evt: any, val: any) => {\r\n dataForm.value = val\r\n op.value.toggle(evt)\r\n }\r\n const deleteData = (val: number) => {\r\n $confirm.require({\r\n header: 'Alamat Pengiriman',\r\n message: $strInd.confirm.msgDelete,\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: async () => {\r\n const response = await customerCompanyAddressUseCase.deleteData(val)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: $strInd.toast.errorDelete,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success',\r\n detail: $strInd.toast.successDeleteData,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n getDataAddress()\r\n }\r\n }\r\n })\r\n }\r\n const closeSidebar = () => {\r\n sliderActive.value = false\r\n }\r\n const redirectAdd = () => {\r\n dataForm.value = null\r\n sliderActive.value = true\r\n }\r\n const isActived = async (val: any) => {\r\n store.dispatch('showLoading')\r\n const dataList = {\r\n Id: val.Id,\r\n IsActive: val.IsActive\r\n }\r\n const response = await customerCompanyAddressUseCase.changeIsActive(dataList)\r\n if (response.error) {\r\n val.IsActive = !val.IsActive\r\n $toast.add({\r\n severity: 'error', detail: $strInd.toast.errorChangeStatus, group: 'bc', life: 1500\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success', detail: response.result.detail ?? response.result.Detail, group: 'bc', life: 1500\r\n })\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const changeIsActive = (val: any) => {\r\n $confirm.require({\r\n header: 'Status Aktif',\r\n message: $strInd.confirm.msgChange,\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: () => {\r\n isActived(val)\r\n },\r\n reject: () => {\r\n val.IsActive = !val.IsActive\r\n }\r\n })\r\n }\r\n const editData = (val: any) => {\r\n // console.log('data edit', val)\r\n dataForm.value = val\r\n sliderActive.value = true\r\n }\r\n onMounted(() => {\r\n getDataAddress()\r\n })\r\n return {\r\n filter,\r\n sliderActive,\r\n inputSearch,\r\n sendInputSearch,\r\n onPage,\r\n searchData,\r\n dataAddress,\r\n app,\r\n op,\r\n showDropDown,\r\n deleteData,\r\n closeSidebar,\r\n redirectAdd,\r\n editData,\r\n dataForm,\r\n propertiesProps,\r\n route,\r\n getDataAddress,\r\n changeIsActive\r\n }\r\n }\r\n}\r\n","import { render } from \"./AlamatPerusahaan.vue?vue&type=template&id=91b570ec&ts=true\"\nimport script from \"@/composables/master/customers/customer/customer-company/alamatPerusahaanComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/customers/customer/customer-company/alamatPerusahaanComposable.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\nimport {\r\n useRoute\r\n} from 'vue-router'\r\nimport HeaderCardDetail from '@/views/master/customers/customer/customer-company/detail/HeaderCardDetail.vue'\r\nimport AlamatPerusahaan from '@/views/master/customers/customer/customer-company/detail/AlamatPerusahaan.vue'\r\n\r\nexport default {\r\n name: 'DetailPelangganCompany',\r\n components: {\r\n HeaderCardDetail,\r\n AlamatPerusahaan\r\n },\r\n setup() {\r\n const route = useRoute()\r\n const getDecriptId = () => route.params.idCompany\r\n return {\r\n getDecriptId,\r\n route\r\n }\r\n }\r\n\r\n}\r\n","import { render } from \"./DetailPelangganCompany.vue?vue&type=template&id=0deba8b7&ts=true\"\nimport script from \"./DetailPelangganCompany.vue?vue&type=script&lang=ts\"\nexport * from \"./DetailPelangganCompany.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\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 { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, withModifiers as _withModifiers, withCtx as _withCtx } from \"vue\"\nimport _imports_0 from '@/assets/img/icon/deleteFilledAntDesignRed.svg'\n\n\nconst _hoisted_1 = { id: \"city-form\" }\nconst _hoisted_2 = { class: \"title-form py-5 flex items-center justify-between\" }\nconst _hoisted_3 = { class: \"font-bold\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_0,\n class: \"w-3 h-3\",\n alt: \"delete\"\n}, null, -1)\nconst _hoisted_5 = {\n class: \"p-fluid px-3 \",\n style: {\"height\":\"75vh\",\"overflow-y\":\"scroll\"}\n}\nconst _hoisted_6 = { class: \"p-field mb-4\" }\nconst _hoisted_7 = /*#__PURE__*/_createVNode(\"label\", { for: \"namaAlamat\" }, \"Nama Alamat\", -1)\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { class: \"p-error\" }\nconst _hoisted_10 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_11 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_12 = { class: \"p-field mb-4\" }\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"label\", { for: \"namaPenerima\" }, \"Nama Penerima\", -1)\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = { class: \"p-error\" }\nconst _hoisted_16 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_17 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_18 = { class: \"p-field mb-4\" }\nconst _hoisted_19 = /*#__PURE__*/_createVNode(\"label\", { for: \"telpPenerima\" }, \"Telepon Penerima\", -1)\nconst _hoisted_20 = { key: 0 }\nconst _hoisted_21 = { class: \"p-error\" }\nconst _hoisted_22 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_23 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_24 = { class: \"p-field mb-4\" }\nconst _hoisted_25 = /*#__PURE__*/_createVNode(\"label\", { for: \"telpPenerima\" }, \"Kota\", -1)\nconst _hoisted_26 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_27 = { class: \"w-full\" }\nconst _hoisted_28 = { class: \"mb-4\" }\nconst _hoisted_29 = /*#__PURE__*/_createVNode(\"label\", { for: \"address\" }, \"Alamat Lengkap\", -1)\nconst _hoisted_30 = { class: \"absolute top-0 \" }\nconst _hoisted_31 = /*#__PURE__*/_createVNode(\"span\", null, [\n /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-map-marker \" }),\n /*#__PURE__*/_createTextVNode(\" Pilih alamat dengan maps\")\n], -1)\nconst _hoisted_32 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_33 = { class: \"grid gap-4 grid-cols-2 mb-4\" }\nconst _hoisted_34 = { class: \"p-col-12\" }\nconst _hoisted_35 = { class: \"flex p-input-icon-right mt-1 color-blue-grey\" }\nconst _hoisted_36 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi text-sm\" }, \"LAT\", -1)\nconst _hoisted_37 = { class: \"p-col-12\" }\nconst _hoisted_38 = { class: \"flex p-input-icon-right mt-1 color-blue-grey\" }\nconst _hoisted_39 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi text-sm\" }, \"LNG\", -1)\nconst _hoisted_40 = { class: \"p-field mb-4\" }\nconst _hoisted_41 = /*#__PURE__*/_createVNode(\"label\", { for: \"kodePos\" }, \"Kode Pos\", -1)\nconst _hoisted_42 = { key: 0 }\nconst _hoisted_43 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_44 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_45 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_46 = { class: \"p-field mb-4\" }\nconst _hoisted_47 = /*#__PURE__*/_createVNode(\"label\", { for: \"address\" }, \"Detail Alamat Lainnya\", -1)\nconst _hoisted_48 = { key: 0 }\nconst _hoisted_49 = { class: \"p-error\" }\nconst _hoisted_50 = /*#__PURE__*/_createVNode(\"br\", null, null, -1)\nconst _hoisted_51 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_52 = {\n class: \"btn-action w-full\",\n style: {\"position\":\"absolute\",\"bottom\":\"10px\"}\n}\nconst _hoisted_53 = /*#__PURE__*/_createTextVNode(\"Kembali\")\nconst _hoisted_54 = {\n id: \"mapDiv\",\n ref: \"mapDiv\",\n style: {\"width\":\"100%\",\"height\":\"70vh\"}\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_Multiselect = _resolveComponent(\"Multiselect\")\n const _component_Textarea = _resolveComponent(\"Textarea\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_GoogleAutocomplete = _resolveComponent(\"GoogleAutocomplete\")\n const _component_Maps = _resolveComponent(\"Maps\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"h6\", _hoisted_3, _toDisplayString(_ctx.title), 1),\n (_ctx.data)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: \"background-red-lighten-5 p-3 rounded-md cursor-pointer\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.deleteData()))\n }, [\n _hoisted_4\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"form\", {\n id: \"form-address-company\",\n onSubmit: _cache[11] || (_cache[11] = _withModifiers(($event: any) => (_ctx.submitData(!_ctx.v$.$invalid)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _hoisted_7,\n _createVNode(_component_InputText, {\n id: \"namaAlamat\",\n class: \"input-primary mt-1\",\n name: \"namaAlamat\",\n modelValue: _ctx.v$.Alias.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.v$.Alias.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.Alias.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_8, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.Alias.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_9, [\n _createTextVNode(_toDisplayString(error.$message), 1),\n _hoisted_10\n ])\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.Alias.$invalid && _ctx.submitted) || _ctx.v$.Alias.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_11, _toDisplayString(_ctx.v$.Alias.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_InputText, {\n id: \"namaPenerima\",\n class: \"input-primary mt-1\",\n name: \"namaPenerima\",\n modelValue: _ctx.v$.Penerima.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.v$.Penerima.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.Penerima.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_14, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.Penerima.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_15, [\n _createTextVNode(_toDisplayString(error.$message), 1),\n _hoisted_16\n ])\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.Penerima.$invalid && _ctx.submitted) || _ctx.v$.Penerima.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_17, _toDisplayString(_ctx.v$.Penerima.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_18, [\n _hoisted_19,\n _createVNode(_component_InputText, {\n id: \"telpPenerima\",\n class: \"input-primary mt-1\",\n name: \"telpPenerima\",\n modelValue: _ctx.v$.Telepon.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.v$.Telepon.$model = $event)),\n type: \"number\",\n maxlength: \"14\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.Telepon.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_20, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.Telepon.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_21, [\n _createTextVNode(_toDisplayString(error.$message), 1),\n _hoisted_22\n ])\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.Telepon.$invalid && _ctx.submitted) || _ctx.v$.Telepon.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_23, _toDisplayString(_ctx.v$.Telepon.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_24, [\n _hoisted_25,\n _createVNode(_component_Multiselect, {\n id: \"kota\",\n class: \"mt-1\",\n modelValue: _ctx.v$.Kota.$model,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.v$.Kota.$model = $event)),\n placeholder: \"Pilih Kota\",\n options: _ctx.kotaOption,\n searchable: true\n }, null, 8, [\"modelValue\", \"options\"]),\n ((_ctx.v$.Kota.$invalid && _ctx.submitted) || _ctx.v$.Kota.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_26, _toDisplayString(_ctx.v$.Kota.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_27, [\n _createVNode(\"div\", _hoisted_28, [\n _hoisted_29,\n _createVNode(\"div\", {\n class: \"h-48 flex justify-center mt-2 relative items-center border-dotted border-4 bg-yellow-100 border-yellow-500\",\n onClick: _cache[6] || (_cache[6] = () => (_ctx.openMap = true))\n }, [\n _createVNode(\"span\", _hoisted_30, _toDisplayString(_ctx.dataForm.Alamat), 1),\n _hoisted_31\n ]),\n ((_ctx.v$.Alamat.$invalid && _ctx.submitted) || _ctx.v$.Alamat.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_32, _toDisplayString(_ctx.v$.Alamat.required.$message), 1))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", null, [\n _createVNode(\"div\", _hoisted_33, [\n _createVNode(\"div\", _hoisted_34, [\n _createVNode(\"span\", _hoisted_35, [\n _hoisted_36,\n _createVNode(_component_InputText, {\n type: \"text\",\n disabled: \"\",\n class: \"input-primary w-full\",\n modelValue: _ctx.dataForm.Latitude,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_ctx.dataForm.Latitude = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ]),\n _createVNode(\"div\", _hoisted_37, [\n _createVNode(\"span\", _hoisted_38, [\n _hoisted_39,\n _createVNode(_component_InputText, {\n type: \"text\",\n disabled: \"\",\n class: \"input-primary w-full\",\n modelValue: _ctx.dataForm.Longitude,\n \"onUpdate:modelValue\": _cache[8] || (_cache[8] = ($event: any) => (_ctx.dataForm.Longitude = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ])\n ])\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_40, [\n _hoisted_41,\n _createVNode(_component_InputText, {\n id: \"kodePos\",\n class: \"input-primary mt-1\",\n name: \"kodePos\",\n modelValue: _ctx.v$.KodePos.$model,\n \"onUpdate:modelValue\": _cache[9] || (_cache[9] = ($event: any) => (_ctx.v$.KodePos.$model = $event)),\n type: \"number\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.KodePos.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_42, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.KodePos.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"\",\n key: index\n }, [\n (index < 2)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_43, [\n _createTextVNode(_toDisplayString(error.$message), 1),\n _hoisted_44\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.KodePos.$invalid && _ctx.submitted) || _ctx.v$.KodePos.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_45, _toDisplayString(_ctx.v$.KodePos.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_46, [\n _hoisted_47,\n _createVNode(_component_Textarea, {\n id: \"address\",\n autocomplete: \"nope\",\n ref: \"addressRef\",\n modelValue: _ctx.v$.Note.$model,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => (_ctx.v$.Note.$model = $event)),\n class: \"mt-1 input-primary w-full\",\n rows: \"5\",\n cols: \"30\",\n placeholder: \"Detail alamat lainnya (Contoh: Blok / Unit No., Patokan)\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.Note.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_48, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.Note.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_49, [\n _createTextVNode(_toDisplayString(error.$message), 1),\n _hoisted_50\n ])\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.Note.$invalid && _ctx.submitted) || _ctx.v$.Note.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_51, _toDisplayString(_ctx.v$.Note.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_52, [\n _createVNode(_component_Button, {\n label: \"Simpan\",\n class: \"font-semibold p-button-sm btn-primary px-10 mr-2\",\n type: \"submit\",\n form: \"form-address-company\"\n }),\n _createVNode(_component_Button, {\n class: \"btn-secondary text-black p-button-sm px-10 py-1\",\n onClick: _cache[12] || (_cache[12] = ($event: any) => (_ctx.closeSidebar()))\n }, {\n default: _withCtx(() => [\n _hoisted_53\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_GoogleAutocomplete, {\n onSendDetail: _ctx.setAddressResult,\n event: _ctx.addressRef,\n search: _ctx.dataForm.Alamat\n }, null, 8, [\"onSendDetail\", \"event\", \"search\"]),\n _createVNode(_component_Dialog, {\n visible: _ctx.openMap,\n \"onUpdate:visible\": _cache[14] || (_cache[14] = ($event: any) => (_ctx.openMap = $event)),\n style: { width: '50vw' },\n dismissableMask: true,\n closeOnEscape: true\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_Button, {\n label: \"Batal\",\n icon: \"pi pi-times\",\n onClick: _cache[13] || (_cache[13] = ($event: any) => (_ctx.openMap = false)),\n class: \"p-button-text\"\n })\n ]),\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_54, null, 512),\n _createVNode(_component_Maps, { onSendData: _ctx.receiveMapData }, null, 8, [\"onSendData\"])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n reactive\r\n} from 'vue'\r\nimport {\r\n customerCompanyAddressUseCase,\r\n customerRetailUseCase,\r\n getAllKota\r\n} from '@/domain/usecase'\r\nimport useVuelidate from '@vuelidate/core'\r\nimport {\r\n required,\r\n helpers,\r\n maxLength,\r\n minLength\r\n} from '@vuelidate/validators'\r\n\r\nexport default {\r\n name: 'AlamatPerusahaanForm',\r\n props: {\r\n data: Object,\r\n idCompany: null,\r\n username: null,\r\n },\r\n emits: ['closeSidebarForm', 'reloadData'],\r\n setup(props: any, {\r\n emit\r\n }: any) {\r\n const propertiesProps = reactive(props)\r\n const dataForm = reactive({\r\n CompanyId: null,\r\n Alias: null,\r\n Alamat: null,\r\n Telepon: null,\r\n Penerima: null,\r\n IsActive: true,\r\n Kota: null,\r\n KodePos: null,\r\n Latitude: null,\r\n Longitude: null,\r\n Note: null\r\n })\r\n const openMap = ref(false)\r\n const mapData = ref({\r\n selectedLocation: '',\r\n lat: '',\r\n lng: ''\r\n }) as any\r\n const companyUsername = propertiesProps.username\r\n const kotaOption = ref([])\r\n const Id = ref(null)\r\n const app = getCurrentInstance()\r\n const {\r\n $confirm,\r\n $toast,\r\n $strInd\r\n } = app!.appContext.config.globalProperties\r\n const title = ref('Tambah Alamat Pengiriman')\r\n const submitted = ref(false)\r\n const addressRef = ref()\r\n const validTelp = (val: any) => {\r\n let valid = true\r\n // console.log(val.length)\r\n if (val.length > 1) {\r\n // console.log('1', val.slice(0, 2))\r\n if (val.charAt(0) !== '0') {\r\n if (val.slice(0, 2) !== '62') {\r\n valid = false\r\n }\r\n }\r\n } else if (val.length === 1) {\r\n if (val.charAt(0) !== '0' || val.charAt(0) !== '6') {\r\n // console.log('2', val.charAt(1))\r\n valid = false\r\n }\r\n }\r\n // console.log(valid)\r\n return valid\r\n }\r\n const rules = {\r\n Alias: {\r\n required: helpers.withMessage('Nama Alamat harus diisi', required),\r\n maxLength: helpers.withMessage('Nama Alamat maksimal 30 karakter', maxLength(30))\r\n },\r\n Alamat: {\r\n required: helpers.withMessage('Alamat Lengkap harus diisi', required),\r\n },\r\n Telepon: {\r\n required: helpers.withMessage('Telepon harus diisi', required),\r\n maxLength: helpers.withMessage('Telepon penerima maksimal 14 digit angka', maxLength(14)),\r\n minLength: helpers.withMessage('Telepon penerima minimal 10 digit angka', minLength(10)),\r\n validTelp: helpers.withMessage('Telepon harus diawali dengan 0 atau 62', validTelp),\r\n },\r\n Penerima: {\r\n required: helpers.withMessage('Penerima harus diisi', required),\r\n maxLength: helpers.withMessage('Nama Penerima maksimal 30 karakter', maxLength(30))\r\n },\r\n Kota: {\r\n required: helpers.withMessage('Kota harus diisi', required)\r\n },\r\n KodePos: {\r\n required: helpers.withMessage('Kode Pos harus diisi', required),\r\n maxLength: helpers.withMessage('Kode Pos harus 5 digit', minLength(5)),\r\n minLength: helpers.withMessage('Kode Pos harus 5 digit', maxLength(5)),\r\n },\r\n Latitude: {\r\n // required: helpers.withMessage('Latitude harus diisi', required)\r\n },\r\n Longitude: {\r\n // required: helpers.withMessage('Longitude harus diisi', required)\r\n },\r\n Note: {\r\n required: helpers.withMessage('Detail Alamat Lainnya harus diisi', required),\r\n maxLength: helpers.withMessage('Detail Alamat Lainnya maksimal 50 karakter', maxLength(50))\r\n }\r\n }\r\n const v$ = useVuelidate(rules, dataForm)\r\n if (propertiesProps.data) {\r\n title.value = 'Edit Alamat Pengiriman'\r\n Id.value = propertiesProps.data.Id\r\n dataForm.Alias = propertiesProps.data.Alias\r\n dataForm.Penerima = propertiesProps.data.Penerima\r\n dataForm.Telepon = propertiesProps.data.Telepon\r\n dataForm.IsActive = propertiesProps.data.IsActive\r\n dataForm.Alamat = propertiesProps.data.Alamat\r\n dataForm.Kota = propertiesProps.data.KotaId\r\n dataForm.KodePos = propertiesProps.data.KodePos\r\n dataForm.Latitude = propertiesProps.data.Latitude\r\n dataForm.Longitude = propertiesProps.data.Longitude\r\n }\r\n const closeSidebar = () => {\r\n emit('closeSidebarForm')\r\n }\r\n const checkResponse = async (response: any) => {\r\n // console.log('response after', response)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error',\r\n detail: response.message,\r\n group: 'bc',\r\n life: 3000\r\n })\r\n } else {\r\n if (propertiesProps.data) {\r\n $toast.add({\r\n severity: 'success',\r\n // summary: response.result.title,\r\n detail: response.result.detail ?? response.result.Detail,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success',\r\n detail: $strInd.toast.successSubmit,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n }\r\n console.log('aaaa')\r\n closeSidebar()\r\n emit('reloadData')\r\n }\r\n }\r\n const deleteData = () => {\r\n $confirm.require({\r\n header: 'Alamat Pengiriman',\r\n message: $strInd.confirm.msgDelete,\r\n icon: 'pi pi-exclamation-triangle',\r\n accept: async () => {\r\n const response = await customerCompanyAddressUseCase.deleteData(Number(Id.value))\r\n checkResponse(response)\r\n }\r\n })\r\n }\r\n const submitProccess = async () => {\r\n const data = {\r\n // CompanyId: Number(propertiesProps.idCompany),\r\n // KotaId: dataForm.Kota,\r\n Alias: dataForm.Alias,\r\n NamaPenerima: dataForm.Penerima,\r\n HpPenerima: dataForm.Telepon,\r\n Alamat1: dataForm.Alamat,\r\n Alamat2: dataForm.Kota,\r\n // KodePos: 0,\r\n Note: dataForm.Note,\r\n KodePos: dataForm.KodePos,\r\n Latitude: dataForm.Latitude,\r\n Longitude: dataForm.Longitude,\r\n IsPrimary: false\r\n }\r\n const response = await customerCompanyAddressUseCase.submitData(companyUsername, data)\r\n checkResponse(response)\r\n }\r\n const submitData = (isFormValid: boolean) => {\r\n // console.log(isFormValid)\r\n submitted.value = true\r\n if (!isFormValid) {\r\n return\r\n }\r\n submitProccess()\r\n }\r\n const getKota = async () => {\r\n const filters = {\r\n pageNumber: 1,\r\n pageSize: 100,\r\n search: '',\r\n filterField: ['name'],\r\n custom: []\r\n }\r\n // const response = await customerRetailUseCase.getSelectKota()\r\n const response = await getAllKota(filters)\r\n kotaOption.value = response.result.Data.map((x: any) => ({\r\n value: x.Code,\r\n label: x.Name\r\n }))\r\n }\r\n const setAddressResult = (result: any) => {\r\n dataForm.Alamat = result\r\n }\r\n onMounted(() => {\r\n getKota()\r\n console.log('username', companyUsername)\r\n })\r\n\r\n const receiveMapData = (result: any) => {\r\n openMap.value = false\r\n mapData.value = JSON.parse(result)\r\n console.log(mapData.value)\r\n dataForm.Alamat = mapData.value?.selectedLocation\r\n dataForm.Latitude = mapData.value?.lat\r\n dataForm.Longitude = mapData.value?.lng\r\n }\r\n\r\n return {\r\n dataForm,\r\n title,\r\n propertiesProps,\r\n closeSidebar,\r\n deleteData,\r\n submitProccess,\r\n checkResponse,\r\n kotaOption,\r\n getKota,\r\n rules,\r\n v$,\r\n submitData,\r\n setAddressResult,\r\n submitted,\r\n Id,\r\n addressRef,\r\n openMap,\r\n receiveMapData\r\n }\r\n }\r\n}\r\n","import { render } from \"./AlamatPerusahaanForm.vue?vue&type=template&id=6f46a807&ts=true\"\nimport script from \"@/composables/master/customers/customer/customer-company/alamatPerusahaanFormComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/customers/customer/customer-company/alamatPerusahaanFormComposable.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Harapan Jaya\\\\hjex-web-agen\\\\node_modules\\\\@vue\\\\cli-service\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}