{"version":3,"sources":["webpack:///./src/views/master/trips/city/CityForm.vue?1306","webpack:///./src/views/master/trips/city/City.vue?54ec","webpack:///./src/views/master/trips/city/CityForm.vue?109e","webpack:///./src/composables/master/trips/city/cityFormComposable.ts","webpack:///./src/views/master/trips/city/CityForm.vue","webpack:///./src/composables/master/trips/city/cityComposable.ts","webpack:///./src/views/master/trips/city/City.vue"],"names":["_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","key","style","_hoisted_11","render","_ctx","_cache","$props","$setup","$data","$options","_component_Button","_component_InputIconRightGrey","_component_Paginator","_component_Card","_component_CityForm","_component_Sidebar","title","route","meta","permission","write","label","onClick","$event","redirectAdd","icon","modelValue","inputSearch","placeholder","canClick","onSubmitInput","searchData","onKeyup","type","$enumBase","input","text","$icon","svg","searchEva","content","dataSource","data","Id","update","editData","IsActive","Kode","Nama","MsGroupKotaNama","footer","rows","filters","pageSize","totalRecords","onPage","_","visible","sliderActive","showCloseIcon","position","default","dataForm","onCloseSidebarCity","closeSidebar","onReloadData","getAllKotaSource","for","_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","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_component_Dropdown","_component_InputText","_component_InputSwitch","_component_OverlayPanel","_component_Dialog","onSubmit","submitData","v$","$invalid","islandId","options","islandOption","optionLabel","optionValue","filter","filterPlaceholder","maxlength","name","province","$model","$error","submitted","$errors","error","index","$message","$pending","$response","required","codeCity","cityName","autocomplete","nameCityGroup","groupInput","groupCity","isActive","form","ref","checkPermission","PermissionEnum","CreateCityGroup","openModalGroupCity","cityGroupOption","setObjMsGroupUser","modalCityGroup","width","modal","closeOnEscape","header","closeDialogGroupCity","submitGroupCity","cityGroup","props","Object","emits","setup","emit","app","propertiesProps","op","rules","withMessage","alpha","appContext","config","globalProperties","$strInd","$toast","store","checkErorResponse","response","add","severity","detail","message","group","life","dispatch","result","Detail","submitProccess","dataSend","toUpperCase","Provinsi","PulauId","MsGroupKotaId","isFormValid","value","hide","fetchIsland","console","log","fetchGroupKota","then","processSubmitGroupCity","toast","errorSubmit","successSubmit","newVal","oldVal","evt","toggle","__exports__","components","CityForm","sendInputSearch","idBus","search","pageNumber","Count","Data","event","page","val"],"mappings":"kHAAA,W,oFCEMA,EAAa,CAAEC,GAAI,QACnBC,EAAa,CAAEC,MAAO,qCACtBC,EAAa,CAAED,MAAO,qBACtBE,EAA0B,yBAAa,KAAM,CAAEF,MAAO,oBAAsB,QAAS,GACrFG,EAAa,CAAEH,MAAO,uEACtBI,EAAa,CAAEJ,MAAO,gBACtBK,EAAa,CAAEL,MAAO,eACtBM,EAAa,CAAEN,MAAO,mBACtBO,EAAa,CAAEP,MAAO,eACtBQ,EAAc,CAClBC,IAAK,EACLT,MAAO,cACPU,MAAO,CAAC,YAAY,SAEhBC,EAAc,CAClBF,IAAK,EACLT,MAAO,cACPU,MAAO,CAAC,YAAY,SAGhB,SAAUE,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAoB,8BAAkB,UACtCC,EAAgC,8BAAkB,sBAClDC,EAAuB,8BAAkB,aACzCC,EAAkB,8BAAkB,QACpCC,EAAsB,8BAAkB,YACxCC,EAAqB,8BAAkB,WAE7C,OAAQ,yBAAc,yBAAa,UAAW3B,EAAY,CACxD,yBAAayB,EAAiB,CAAEtB,MAAO,UAAY,CACjDyB,MAAO,sBAAS,iBAAM,CACpB,yBAAa,MAAO1B,EAAY,CAC9B,yBAAa,MAAOE,EAAY,CAC9BC,EACCW,EAAKa,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yB,mBACAX,SACAO,WACAjB,WACAmB,eACAV,eACA3B,cACAI,aACA6K,kBACArC,QACAtJ,QACAmC,aC7FN,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASjD,KAErD,iB","file":"js/chunk-0f93c9fe.d76a238d.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/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/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./CityForm.vue?vue&type=style&index=0&id=7e1a008b&lang=scss\"","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: \"city\" }\nconst _hoisted_2 = { class: \"flex items-center justify-between\" }\nconst _hoisted_3 = { class: \"flex items-center\" }\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"h6\", { class: \"mr-3 font-normal\" }, \"Kota\", -1)\nconst _hoisted_5 = { class: \"grid lg:grid-cols-5 md:grid-cols-4 sm:grid-cols-3 grid-cols-2 gap-4\" }\nconst _hoisted_6 = { class: \"goin-top p-2\" }\nconst _hoisted_7 = { class: \"text-center\" }\nconst _hoisted_8 = { class: \"goin-bottom p-2\" }\nconst _hoisted_9 = { class: \"text-center\" }\nconst _hoisted_10 = {\n key: 0,\n class: \"text-center\",\n style: {\"font-size\":\"11px\"}\n}\nconst _hoisted_11 = {\n key: 1,\n class: \"text-center\",\n style: {\"font-size\":\"11px\"}\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_Paginator = _resolveComponent(\"Paginator\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_CityForm = _resolveComponent(\"CityForm\")\n const _component_Sidebar = _resolveComponent(\"Sidebar\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, { class: \"h-full\" }, {\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 Kota\",\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 canClick: true,\n onSubmitInput: _cache[3] || (_cache[3] = ($event: any) => (_ctx.searchData(_ctx.inputSearch))),\n onKeyup: _cache[4] || (_cache[4] = _withKeys(($event: any) => (_ctx.searchData(_ctx.inputSearch)), [\"enter\"])),\n type: _ctx.$enumBase.input.text,\n icon: _ctx.$icon.svg.searchEva\n }, null, 8, [\"modelValue\", \"type\", \"icon\"])\n ])\n ])\n ]),\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_5, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.dataSource, (data) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"\",\n key: data.Id,\n onClick: ($event: any) => (_ctx.route.meta.permission.update ? _ctx.editData(data) : function(){})\n }, [\n _createVNode(\"div\", {\n class: _ctx.route.meta.permission.update ? 'relative container-card cursor-pointer' : 'relative container-card'\n }, [\n _createVNode(\"span\", {\n class: \"p-2 rounded-md\",\n style: [{'background-color':data.IsActive ? '#66BB6A' : '#C4C4C4'}, {\"position\":\"absolute\",\"top\":\"5px\",\"right\":\"5px\"}]\n }, null, 4),\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"h3\", _hoisted_7, _toDisplayString(data.Kode), 1)\n ]),\n _createVNode(\"div\", _hoisted_8, [\n _createVNode(\"h6\", _hoisted_9, _toDisplayString(data.Nama), 1),\n (data.MsGroupKotaNama !== null)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_10, _toDisplayString(`(Grup Kota : ${data.MsGroupKotaNama})`), 1))\n : (_openBlock(), _createBlock(\"p\", _hoisted_11, _toDisplayString('(Grup Kota : -)'), 1))\n ])\n ], 2)\n ], 8, [\"onClick\"]))\n }), 128))\n ])\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_Paginator, {\n rows: _ctx.filters.pageSize,\n totalRecords: _ctx.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[7] || (_cache[7] = ($event: any) => (_ctx.sliderActive = $event)),\n showCloseIcon: false,\n position: \"right\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_CityForm, {\n data: _ctx.dataForm,\n onCloseSidebarCity: _cache[5] || (_cache[5] = ($event: any) => (_ctx.closeSidebar())),\n onReloadData: _cache[6] || (_cache[6] = ($event: any) => (_ctx.getAllKotaSource()))\n }, null, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, resolveComponent as _resolveComponent, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, createTextVNode as _createTextVNode, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { id: \"city-form\" }\nconst _hoisted_2 = { class: \"title-form py-5 mb-6 flex items-center justify-between\" }\nconst _hoisted_3 = { class: \"font-bold\" }\nconst _hoisted_4 = { class: \"p-fluid\" }\nconst _hoisted_5 = { class: \"p-field mb-4\" }\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"label\", { for: \"islandId\" }, \"Pulau\", -1)\nconst _hoisted_7 = { class: \"p-field mb-4\" }\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"label\", { for: \"province\" }, \"Provinsi\", -1)\nconst _hoisted_9 = { key: 0 }\nconst _hoisted_10 = { class: \"p-error\" }\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: \"codeCity\" }, \"Kode Kota\", -1)\nconst _hoisted_14 = { key: 0 }\nconst _hoisted_15 = { class: \"p-error\" }\nconst _hoisted_16 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_17 = { class: \"p-field mb-4\" }\nconst _hoisted_18 = /*#__PURE__*/_createVNode(\"label\", { for: \"nameCity\" }, \"Nama Kota\", -1)\nconst _hoisted_19 = { key: 0 }\nconst _hoisted_20 = { class: \"p-error\" }\nconst _hoisted_21 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_22 = { class: \"p-field mb-4\" }\nconst _hoisted_23 = /*#__PURE__*/_createVNode(\"label\", { for: \"groupCity\" }, \"Group Kota\", -1)\nconst _hoisted_24 = { key: 0 }\nconst _hoisted_25 = { class: \"p-error\" }\nconst _hoisted_26 = {\n key: 1,\n class: \"p-error\"\n}\nconst _hoisted_27 = {\n key: 0,\n class: \"p-field\"\n}\nconst _hoisted_28 = /*#__PURE__*/_createVNode(\"label\", { for: \"idActive\" }, \"Aktif\", -1)\nconst _hoisted_29 = {\n class: \"btn-action w-full\",\n style: {\"position\":\"absolute\",\"bottom\":\"10px\"}\n}\nconst _hoisted_30 = /*#__PURE__*/_createTextVNode(\"Kembali\")\nconst _hoisted_31 = {\n class: \"p-3 overflow-y-scroll\",\n style: {\"max-height\":\"200px\",\"min-width\":\"28vw\"}\n}\nconst _hoisted_32 = {\n key: 0,\n class: \"flex w-full justify-center py-2 con-list-group\"\n}\nconst _hoisted_33 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-plus color-primary\" }, null, -1)\nconst _hoisted_34 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-primary font-semibold\" }, \"Tambah Grup Baru\", -1)\nconst _hoisted_35 = { class: \"text-list-group\" }\nconst _hoisted_36 = { class: \"flex items-center justify-between w-full\" }\nconst _hoisted_37 = /*#__PURE__*/_createVNode(\"h6\", null, \"Tambah Grup Kota\", -1)\nconst _hoisted_38 = { class: \"w-full\" }\nconst _hoisted_39 = { class: \"p-field mb-4 w-full\" }\nconst _hoisted_40 = /*#__PURE__*/_createVNode(\"p\", { class: \"text-body2\" }, \"Nama Grup Kota\", -1)\nconst _hoisted_41 = { class: \"flex\" }\nconst _hoisted_42 = /*#__PURE__*/_createTextVNode(\"Kembali\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Dropdown = _resolveComponent(\"Dropdown\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_InputSwitch = _resolveComponent(\"InputSwitch\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_OverlayPanel = _resolveComponent(\"OverlayPanel\")\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 ]),\n _createVNode(\"form\", {\n id: \"form-city\",\n onSubmit: _cache[8] || (_cache[8] = _withModifiers(($event: any) => (_ctx.submitData(!_ctx.v$.$invalid)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_Dropdown, {\n id: \"islandId\",\n modelValue: _ctx.dataForm.islandId,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.dataForm.islandId = $event)),\n options: _ctx.islandOption,\n class: \"mt-1\",\n optionLabel: \"Nama\",\n optionValue: \"Id\",\n placeholder: \"Pilih Pulau\",\n filter: true,\n filterPlaceholder: \"Search Pulau\"\n }, null, 8, [\"modelValue\", \"options\"])\n ]),\n _createVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(_component_InputText, {\n maxlength: \"100\",\n id: \"province\",\n class: \"input-primary mt-1\",\n name: \"province\",\n modelValue: _ctx.v$.province.$model,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = ($event: any) => (_ctx.v$.province.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.province.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_9, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.province.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"new-province-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_10, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.province.$invalid && _ctx.submitted) || _ctx.v$.province.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_11, _toDisplayString(_ctx.v$.province.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_InputText, {\n maxlength: \"3\",\n id: \"codeCity\",\n class: \"input-primary mt-1 uppercase\",\n name: \"codeCity\",\n modelValue: _ctx.v$.codeCity.$model,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.v$.codeCity.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.codeCity.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_14, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.codeCity.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"new-codeCity-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_15, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.codeCity.$invalid && _ctx.submitted) || _ctx.v$.codeCity.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_16, _toDisplayString(_ctx.v$.codeCity.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_17, [\n _hoisted_18,\n _createVNode(_component_InputText, {\n maxlength: \"100\",\n id: \"nameCity\",\n class: \"input-primary mt-1\",\n type: \"text\",\n name: \"cityName\",\n modelValue: _ctx.v$.cityName.$model,\n \"onUpdate:modelValue\": _cache[4] || (_cache[4] = ($event: any) => (_ctx.v$.cityName.$model = $event))\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.cityName.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_19, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.cityName.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"new-cityName-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_20, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.cityName.$invalid && _ctx.submitted) || _ctx.v$.cityName.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_21, _toDisplayString(_ctx.v$.cityName.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_22, [\n _hoisted_23,\n _createVNode(_component_InputText, {\n maxlength: \"100\",\n id: \"groupCity\",\n class: \"input-primary mt-1\",\n type: \"text\",\n name: \"cityGroup\",\n autocomplete: \"off\",\n modelValue: _ctx.nameCityGroup,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.nameCityGroup = $event)),\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.groupInput($event)))\n }, null, 8, [\"modelValue\"]),\n (_ctx.v$.groupCity.$error && _ctx.submitted)\n ? (_openBlock(), _createBlock(\"span\", _hoisted_24, [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.v$.groupCity.$errors, (error, index) => {\n return (_openBlock(), _createBlock(\"span\", {\n id: \"new-groupCity-error\",\n key: index\n }, [\n _createVNode(\"small\", _hoisted_25, _toDisplayString(error.$message), 1)\n ]))\n }), 128))\n ]))\n : ((_ctx.v$.groupCity.$invalid && _ctx.submitted) || _ctx.v$.groupCity.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_26, _toDisplayString(_ctx.v$.groupCity.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.data)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_27, [\n _hoisted_28,\n _createVNode(\"div\", null, [\n _createVNode(_component_InputSwitch, {\n id: \"idActive\",\n class: \"switch-og mt-1\",\n modelValue: _ctx.dataForm.isActive,\n \"onUpdate:modelValue\": _cache[7] || (_cache[7] = ($event: any) => (_ctx.dataForm.isActive = $event))\n }, null, 8, [\"modelValue\"])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ], 32),\n _createVNode(\"div\", _hoisted_29, [\n _createVNode(_component_Button, {\n label: \"Simpan\",\n type: \"submit\",\n form: \"form-city\",\n class: \"font-semibold p-button-sm btn-primary px-10 mr-2\"\n }),\n _createVNode(_component_Button, {\n class: \"btn-secondary text-black p-button-sm px-10 py-1\",\n onClick: _cache[9] || (_cache[9] = ($event: any) => (_ctx.closeSidebar()))\n }, {\n default: _withCtx(() => [\n _hoisted_30\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_OverlayPanel, {\n ref: \"op\",\n class: \"group-city\"\n }, {\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_31, [\n (_ctx.checkPermission(_ctx.PermissionEnum.CreateCityGroup))\n ? (_openBlock(), _createBlock(\"div\", _hoisted_32, [\n _createVNode(\"div\", {\n class: \"flex items-center cursor-pointer gap-2\",\n onClick: _cache[10] || (_cache[10] = ($event: any) => (_ctx.openModalGroupCity()))\n }, [\n _hoisted_33,\n _hoisted_34\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.cityGroupOption, (data, index) => {\n return (_openBlock(), _createBlock(\"div\", {\n class: \"flex py-2 cursor-pointer con-list-group\",\n key: index,\n onClick: ($event: any) => (_ctx.setObjMsGroupUser(data.Nama, data.Id))\n }, [\n _createVNode(\"p\", _hoisted_35, _toDisplayString(data.Nama), 1)\n ], 8, [\"onClick\"]))\n }), 128))\n ])\n ]),\n _: 1\n }, 512),\n _createVNode(_component_Dialog, {\n visible: _ctx.modalCityGroup,\n \"onUpdate:visible\": _cache[15] || (_cache[15] = ($event: any) => (_ctx.modalCityGroup = $event)),\n style: {width: '30vw'},\n modal: true,\n closeOnEscape: true\n }, {\n header: _withCtx(() => [\n _createVNode(\"div\", _hoisted_36, [\n _hoisted_37,\n _createVNode(\"i\", {\n class: \"pi pi-times font-bold cursor-pointer\",\n onClick: _cache[11] || (_cache[11] = ($event: any) => (_ctx.closeDialogGroupCity()))\n })\n ])\n ]),\n footer: _withCtx(() => [\n _createVNode(\"div\", _hoisted_41, [\n _createVNode(_component_Button, {\n label: \"Simpan\",\n class: \"font-semibold p-button-sm btn-primary px-10 mr-2\",\n onClick: _cache[13] || (_cache[13] = ($event: any) => (_ctx.submitGroupCity()))\n }),\n _createVNode(_component_Button, {\n class: \"btn-secondary text-black p-button-sm px-10 py-1\",\n onClick: _cache[14] || (_cache[14] = ($event: any) => (_ctx.closeDialogGroupCity()))\n }, {\n default: _withCtx(() => [\n _hoisted_42\n ]),\n _: 1\n })\n ])\n ]),\n default: _withCtx(() => [\n _createVNode(\"div\", _hoisted_38, [\n _createVNode(\"div\", _hoisted_39, [\n _hoisted_40,\n _createVNode(_component_InputText, {\n maxlength: \"100\",\n id: \"nameGroupCity\",\n class: \"input-primary mt-1 w-full\",\n name: \"nameGroupCity\",\n modelValue: _ctx.cityGroup,\n \"onUpdate:modelValue\": _cache[12] || (_cache[12] = ($event: any) => (_ctx.cityGroup = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\"])\n ]))\n}","import {\r\n reactive,\r\n ref,\r\n getCurrentInstance,\r\n onMounted,\r\n watch\r\n} from 'vue'\r\nimport {\r\n submitNewKota,\r\n getPulau,\r\n getGroupKota,\r\n submitNewGroupKota\r\n} from '@/domain/usecase'\r\nimport useVuelidate from '@vuelidate/core'\r\nimport {\r\n required,\r\n helpers,\r\n alpha\r\n} from '@vuelidate/validators'\r\nimport { useStore } from 'vuex'\r\nimport PermissionEnum from '@/utils/enum/permissions'\r\nimport { checkPermission } from '@/utils/helpers/checkPermission'\r\n\r\nexport default {\r\n name: 'CityForm',\r\n props: {\r\n data: Object\r\n },\r\n emits: ['closeSidebarCity', 'reloadData'],\r\n setup(props: any, {\r\n emit\r\n }: any) {\r\n const app = getCurrentInstance()\r\n const propertiesProps = reactive(props)\r\n const title = ref('Tambah Kota')\r\n const islandOption = ref([])\r\n const cityGroupOption = ref([])\r\n const op = ref()\r\n const modalCityGroup = ref(false)\r\n const cityGroup = ref(null)\r\n const nameCityGroup = ref(null)\r\n const dataForm = reactive({\r\n isActive: true,\r\n province: null,\r\n codeCity: '',\r\n cityName: null,\r\n groupCity: null as any,\r\n islandId: null\r\n })\r\n const submitted = ref(false)\r\n const rules = {\r\n codeCity: {\r\n required: helpers.withMessage('Kode Kota harus diisi', required),\r\n alpha: helpers.withMessage('Hanya menerima karakter alfabet', alpha),\r\n },\r\n cityName: {\r\n required: helpers.withMessage('Nama Kota harus diisi', required),\r\n // alpha: helpers.withMessage('Hanya menerima karakter alfabet', alpha),\r\n },\r\n province: {\r\n required: helpers.withMessage('Provinsi harus diisi', required),\r\n // alpha: helpers.withMessage('Hanya menerima karakter alfabet', alpha),\r\n },\r\n groupCity: {\r\n required: helpers.withMessage('Grup Kota harus diisi', required)\r\n }\r\n }\r\n const v$ = useVuelidate(rules, dataForm)\r\n const {\r\n // $confirm,\r\n $strInd,\r\n $toast\r\n } = app!.appContext.config.globalProperties\r\n const store = useStore()\r\n\r\n const closeSidebar = () => {\r\n emit('closeSidebarCity')\r\n }\r\n const checkErorResponse = async (response: any) => {\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error', detail: response.message, group: 'bc', life: 3000\r\n })\r\n store.dispatch('hideLoading')\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', detail: 'Berhasil disimpan', group: 'bc', life: 3000\r\n })\r\n }\r\n emit('reloadData')\r\n closeSidebar()\r\n }\r\n }\r\n\r\n const submitProccess = async () => {\r\n store.dispatch('showLoading')\r\n let dataSend = {}\r\n if (propertiesProps.data) {\r\n dataSend = {\r\n Id: propertiesProps.data.Id,\r\n Kode: dataForm.codeCity.toUpperCase(),\r\n Nama: dataForm.cityName,\r\n Provinsi: dataForm.province,\r\n PulauId: dataForm.islandId,\r\n IsActive: dataForm.isActive,\r\n MsGroupKotaId: dataForm.groupCity\r\n // MsGroupKota: {\r\n // Id: dataForm.groupCity,\r\n // Nama: nameCityGroup.value\r\n // }\r\n }\r\n } else {\r\n dataSend = {\r\n Kode: dataForm.codeCity.toUpperCase(),\r\n Nama: dataForm.cityName,\r\n Provinsi: dataForm.province,\r\n PulauId: dataForm.islandId,\r\n IsActive: dataForm.isActive,\r\n MsGroupKotaId: dataForm.groupCity\r\n // MsGroupKota: {\r\n // Id: dataForm.groupCity,\r\n // Nama: nameCityGroup.value\r\n // }\r\n }\r\n }\r\n const response = await submitNewKota(dataSend)\r\n\r\n checkErorResponse(response)\r\n }\r\n const submitData = (isFormValid: boolean) => {\r\n submitted.value = true\r\n if (!isFormValid) {\r\n return\r\n }\r\n submitProccess()\r\n }\r\n\r\n const setObjMsGroupUser = (name: any, id: any) => {\r\n nameCityGroup.value = name\r\n dataForm.groupCity = id\r\n if (op.value) {\r\n op.value.hide()\r\n }\r\n }\r\n\r\n const fetchIsland = async () => {\r\n const response = await getPulau()\r\n if (!response.error) {\r\n islandOption.value = response.result\r\n }\r\n }\r\n // console.log('masukkk', propertiesProps)\r\n if (propertiesProps.data) {\r\n console.log('masuk edit', propertiesProps.data)\r\n title.value = 'Edit Kota'\r\n dataForm.isActive = propertiesProps.data.IsActive\r\n dataForm.province = propertiesProps.data.Provinsi\r\n dataForm.codeCity = propertiesProps.data.Kode\r\n dataForm.cityName = propertiesProps.data.Nama\r\n dataForm.islandId = propertiesProps.data.PulauId\r\n setObjMsGroupUser(propertiesProps.data?.MsGroupKotaNama, propertiesProps.data?.MsGroupKotaId)\r\n }\r\n\r\n const fetchGroupKota = () => {\r\n getGroupKota().then((response: any) => {\r\n cityGroupOption.value = response.result\r\n })\r\n }\r\n\r\n const openModalGroupCity = () => {\r\n modalCityGroup.value = true\r\n }\r\n\r\n const closeDialogGroupCity = () => {\r\n modalCityGroup.value = false\r\n cityGroup.value = null\r\n }\r\n\r\n const processSubmitGroupCity = () => {\r\n const data = {\r\n Nama: cityGroup.value\r\n }\r\n submitNewGroupKota(null, data).then((result) => {\r\n if (!result.error) {\r\n setObjMsGroupUser(result.result.Nama, result.result.Id)\r\n fetchGroupKota()\r\n // nameCityGroup.value = result.result.Nama\r\n // dataForm.groupCity = result.result.Id\r\n modalCityGroup.value = false\r\n $toast.add({\r\n severity: 'success',\r\n // summary: response.result.title,\r\n detail: $strInd.toast.successSubmit,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'error',\r\n // summary: response.result.title,\r\n detail: $strInd.toast.errorSubmit,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n }\r\n })\r\n }\r\n\r\n const submitGroupCity = () => {\r\n processSubmitGroupCity()\r\n }\r\n\r\n watch(() => dataForm.groupCity, (newVal: any, oldVal: any) => {\r\n console.log('ini udah new value', newVal)\r\n console.log('ini udah old value', oldVal)\r\n })\r\n\r\n const groupInput = (evt: any) => {\r\n op.value.toggle(evt)\r\n }\r\n onMounted(() => {\r\n fetchIsland()\r\n fetchGroupKota()\r\n })\r\n return {\r\n fetchIsland,\r\n islandOption,\r\n closeSidebar,\r\n title,\r\n submitData,\r\n checkErorResponse,\r\n submitProccess,\r\n submitted,\r\n v$,\r\n dataForm,\r\n groupInput,\r\n op,\r\n cityGroupOption,\r\n modalCityGroup,\r\n cityGroup,\r\n openModalGroupCity,\r\n closeDialogGroupCity,\r\n submitGroupCity,\r\n setObjMsGroupUser,\r\n nameCityGroup,\r\n checkPermission,\r\n PermissionEnum\r\n }\r\n }\r\n}\r\n","import { render } from \"./CityForm.vue?vue&type=template&id=7e1a008b&ts=true\"\nimport script from \"@/composables/master/trips/city/cityFormComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/trips/city/cityFormComposable.ts?vue&type=script&lang=ts\"\n\nimport \"./CityForm.vue?vue&type=style&index=0&id=7e1a008b&lang=scss\"\n\nimport exportComponent from \"C:\\\\Users\\\\Putu Mahardika\\\\Pictures\\\\vue\\\\hjex-frontend\\\\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 CityForm from '@/views/master/trips/city/CityForm.vue'\r\nimport {\r\n getAllKota\r\n} from '@/domain/usecase'\r\nimport '@/assets/styles/scss/master/trips/city/city.scss'\r\nimport {\r\n onMounted,\r\n ref,\r\n getCurrentInstance\r\n // watch,\r\n // reactive\r\n} from 'vue'\r\nimport { useStore } from 'vuex'\r\nimport { useRoute } from 'vue-router'\r\n\r\nexport default {\r\n name: 'City',\r\n components: {\r\n CityForm\r\n },\r\n setup() {\r\n const app = getCurrentInstance()\r\n const store = useStore()\r\n const inputSearch = ref('')\r\n const sendInputSearch = ref('')\r\n const idBus = ref('')\r\n const totalRecords = ref(0)\r\n const sliderActive = ref(false)\r\n const dataSource = ref([])\r\n const dataForm = ref(null)\r\n const route = useRoute()\r\n const filters = {\r\n search: '',\r\n pageNumber: 1,\r\n pageSize: 10,\r\n }\r\n const {\r\n // $confirm,\r\n $strInd,\r\n $toast\r\n } = app!.appContext.config.globalProperties\r\n const redirectAdd = () => {\r\n dataForm.value = null\r\n sliderActive.value = true\r\n }\r\n const getAllKotaSource = async (pageNumber: any = filters.pageNumber) => {\r\n store.dispatch('showLoading')\r\n filters.search = sendInputSearch.value\r\n filters.pageNumber = pageNumber\r\n const response = await getAllKota(filters)\r\n if (!response.error) {\r\n totalRecords.value = response.result.Count\r\n dataSource.value = response.result.Data\r\n } else {\r\n console.log(response)\r\n $toast.add({\r\n severity: 'error',\r\n detail: response.message,\r\n group: 'bc',\r\n life: 1500\r\n })\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n const onPage = (event: any) => {\r\n getAllKotaSource(event.page + 1)\r\n }\r\n\r\n const editData = (data: any) => {\r\n dataForm.value = data\r\n sliderActive.value = true\r\n }\r\n const searchData = async (val: any) => {\r\n sendInputSearch.value = val\r\n await getAllKotaSource(1)\r\n }\r\n onMounted(() => {\r\n getAllKotaSource()\r\n })\r\n const closeSidebar = () => {\r\n sliderActive.value = false\r\n }\r\n return {\r\n idBus,\r\n sliderActive,\r\n redirectAdd,\r\n dataSource,\r\n getAllKotaSource,\r\n onPage,\r\n dataForm,\r\n editData,\r\n closeSidebar,\r\n totalRecords,\r\n inputSearch,\r\n searchData,\r\n sendInputSearch,\r\n store,\r\n route,\r\n filters\r\n }\r\n },\r\n}\r\n","import { render } from \"./City.vue?vue&type=template&id=ea8e2d12&ts=true\"\nimport script from \"@/composables/master/trips/city/cityComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/master/trips/city/cityComposable.ts?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\Putu Mahardika\\\\Pictures\\\\vue\\\\hjex-frontend\\\\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":""}