{"version":3,"sources":["webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/DeliveryManifestDetail.vue?dec0","webpack:///./node_modules/core-js/modules/es.array.splice.js","webpack:///./src/assets/img/icon/printer.svg","webpack:///./src/plugins/system/filesystem.ts","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/DeliveryManifestDetail.vue?70ff","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/tab-view/DepatureManifest.vue?b7e7","webpack:///./src/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/depatureManifestComposable.ts","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/tab-view/DepatureManifest.vue","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/tab-view/LoadingManifest.vue?d93d","webpack:///./src/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/loadingManifestComposable.ts","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/tab-view/LoadingManifest.vue","webpack:///./src/composables/transactions/delivery-item/delivery-manifest/detail/deliveryManifestDetailComposable.ts","webpack:///./src/views/transactions/delivery-item/delivery-manifest/detail/DeliveryManifestDetail.vue"],"names":["$","toAbsoluteIndex","toInteger","toLength","toObject","arraySpeciesCreate","createProperty","arrayMethodHasSpeciesSupport","HAS_SPECIES_SUPPORT","max","Math","min","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","target","proto","forced","splice","start","deleteCount","insertCount","actualDeleteCount","A","k","from","to","O","this","len","length","actualStart","argumentsLength","arguments","TypeError","module","exports","Filesystem","fileWrite","nameFile","dataFile","writeFile","path","data","directory","Documents","result","console","log","error","_hoisted_1","id","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","style","_hoisted_11","_hoisted_12","_hoisted_13","key","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_TabPanel","_component_TabView","_component_DepatureManifest","_component_LoadingManifest","_component_Card","title","KodeJadwal","TransJadwalDetails","$isDateOnTime","WaktuKeberangkatan","$strDate","Rit","TipeBus","Kode","checkPermission","PermissionEnum","ShowTotDetMan","Number","TotalPendapatan","toLocaleString","content","activeIndex","currentTab","$event","default","header","_","detail","xmlns","focusable","preserveAspectRatio","viewBox","fill","d","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","for","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","stroke","cx","cy","r","_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","_component_Button","_component_Column","_component_Checkbox","_component_DataTable","_component_Textarea","_component_Dialog","_component_InputText","_component_ListCopyEditDel","_component_OverlayPanel","_component_DialogDetailResi","route","meta","permission","write","disabled","onClick","showDialogPending","checkDateDepature","selectedReceipt","showDialogLoadingManifest","value","responsiveLayout","body","slotProps","activeStyle","Id","index","Resi","showDropDown","binary","modelValue","checkedAllValue","onChange","checkedAll","checked","changeChecked","visible","dialogPending","modal","dismissableMask","onHide","hideDialogPending","onSubmit","submitPendingManifest","vPend$","$invalid","description","$model","rows","placeholder","submittedPend","$pending","$response","required","$message","type","dialogLoadingManifest","hideDialogLoadingManifest","submitLoadingManifest","v$","noPol","submitted","name","driverName","stewardName","dataAdd","detailAdd","PendapatanManifest","DetailPembayaran","Tunai","NonTunai","Manifest","Jumlah","GrandTotal","JenisPembayaran","form","ref","refund","update","$checkIsRefund","idManifest","TransPengirimanDetails","onRefund","onDetail","showDialogDetail","isRefund","idTrans","isShowDialog","onReloadData","getAllData","onHideDialog","props","setup","app","appContext","config","globalProperties","$toast","$getDiffDate","$swal","propertiesProps","det","store","router","op","inputSearch","isDownloadFile","profileAgent","getters","dataPending","kruName","rules","withMessage","rulesPending","dispatch","getDepatureManifest","params","response","map","item","getDetailLoadingManifest","dataForm","PengirimanHdId","AgenId","add","severity","message","group","life","DataTerakhir","Nopol","NamaPramugara","NamaSupir","searchData","search","toBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","onerror","proccessLoadingManifest","dataSubmit","TransJadwalHdId","Keterangan","NamaKru","submitData","encryptData","encryptDecriptMethods","encrypt","localStorage","setItem","JSON","stringify","NoManifest","getPdfManifest","notif","Blob","fileURL","window","URL","createObjectURL","fileLink","document","createElement","href","setAttribute","appendChild","click","routeData","jenisReport","open","isFormValid","fire","text","imageUrl","imageWidth","imageHeight","imageAlt","showCancelButton","showDenyButton","confirmButtonColor","cancelButtonColor","denyButtonColor","allowOutsideClick","confirmButtonText","cancelButtonText","denyButtonText","then","isConfirmed","isDenied","proccessPendingManifest","includes","backgroundColor","pushDataSelected","isSelected","push","indexOf","i","val","evt","toggle","departureTolerance","diff","__exports__","_component_AccordionTab","_component_Accordion","onTabOpen","expandedAccordion","Agen","TotalResi","ShowDetLoadMan","TotalKoli","Pendapatan","loading","resi","canPrint","printResi","CanPrint","check","getLoadingManifest","getManifestDetail","getLoadingManifestDetail","dataItem","hideDialogDetail","ManifestId","components","DepatureManifest","LoadingManifest","$confirm","$strInd","getOneDetail","select","expand","toast","errorAllData","changeTab"],"mappings":"kHAAA,W,kCCCA,IAAIA,EAAI,EAAQ,QACZC,EAAkB,EAAQ,QAC1BC,EAAY,EAAQ,QACpBC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAqB,EAAQ,QAC7BC,EAAiB,EAAQ,QACzBC,EAA+B,EAAQ,QAEvCC,EAAsBD,EAA6B,UAEnDE,EAAMC,KAAKD,IACXE,EAAMD,KAAKC,IACXC,EAAmB,iBACnBC,EAAkC,kCAKtCb,EAAE,CAAEc,OAAQ,QAASC,OAAO,EAAMC,QAASR,GAAuB,CAChES,OAAQ,SAAgBC,EAAOC,GAC7B,IAIIC,EAAaC,EAAmBC,EAAGC,EAAGC,EAAMC,EAJ5CC,EAAItB,EAASuB,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O,KAAMC,KAAM,OAH5ElO,EAAKsH,MAAQiG,EAASpN,OAMxBqM,EAAMY,SAAS,eAbE,2CAAH,qDAgBV8H,EAAY,SAACrC,GACjBrP,EAAW8D,MAAQuL,GAUrB,OAPA,wBAAU,WACRrS,EAAG8G,MAAQV,EAAM0G,OAAO9M,GACpBA,EAAG8G,OACLqE,OAIG,CACL3L,OACAwD,aACAmI,aACAuJ,YACAjS,eAAA,QACAD,mBAAA,S,UC5DN,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASrB,KAErD","file":"js/chunk-b8afb9f6.d79e6ba8.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!./DeliveryManifestDetail.vue?vue&type=style&index=0&id=63defa56&lang=scss\"","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","module.exports = __webpack_public_path__ + \"img/printer.0ccc1666.svg\";","// import { Filesystem, Directory, Encoding } from '@capacitor/filesystem'\r\nimport { Plugins, FilesystemDirectory, FilesystemEncoding } from '@capacitor/core'\r\n\r\nconst { Filesystem } = Plugins\r\n\r\nconst fileWrite = async (nameFile: any, dataFile: any) => {\r\n try {\r\n const result = await Filesystem.writeFile({\r\n path: `${nameFile}`,\r\n data: dataFile,\r\n directory: FilesystemDirectory.Documents,\r\n // encoding: FilesystemEncoding.UTF8\r\n })\r\n console.log('Wrote file', result)\r\n } catch (e) {\r\n console.error('Unable to write file', e)\r\n }\r\n}\r\n\r\nconst fileRead = async () => {\r\n const contents = await Filesystem.readFile({\r\n path: 'secrets/text.txt',\r\n directory: FilesystemDirectory.Documents,\r\n encoding: FilesystemEncoding.UTF8\r\n })\r\n console.log(contents)\r\n}\r\n\r\nconst fileAppend = async () => {\r\n await Filesystem.appendFile({\r\n path: 'secrets/text.txt',\r\n data: 'MORE TESTS',\r\n directory: FilesystemDirectory.Documents,\r\n encoding: FilesystemEncoding.UTF8\r\n })\r\n}\r\n\r\n// async fileDelete() {\r\n// await Filesystem.deleteFile({\r\n// path: 'secrets/text.txt',\r\n// directory: FilesystemDirectory.Documents\r\n// })\r\n// }\r\n\r\n// async mkdir() {\r\n// try {\r\n// let ret = await Filesystem.mkdir({\r\n// path: 'secrets',\r\n// directory: FilesystemDirectory.Documents,\r\n// recursive: false // like mkdir -p\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to make directory', e);\r\n// }\r\n// }\r\n\r\n// async rmdir() {\r\n// try {\r\n// let ret = await Filesystem.rmdir({\r\n// path: 'secrets',\r\n// directory: FilesystemDirectory.Documents,\r\n// recursive: false,\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to remove directory', e);\r\n// }\r\n// }\r\n\r\n// async readdir() {\r\n// try {\r\n// let ret = await Filesystem.readdir({\r\n// path: 'secrets',\r\n// directory: FilesystemDirectory.Documents\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to read dir', e);\r\n// }\r\n// }\r\n\r\n// async stat() {\r\n// try {\r\n// let ret = await Filesystem.stat({\r\n// path: 'secrets/text.txt',\r\n// directory: FilesystemDirectory.Documents\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to stat file', e);\r\n// }\r\n// }\r\n\r\n// async readFilePath() {\r\n// // Here's an example of reading a file with a full file path. Use this to\r\n// // read binary data (base64 encoded) from plugins that return File URIs, such as\r\n// // the Camera.\r\n// try {\r\n// let data = await Filesystem.readFile({\r\n// path: 'file:///var/mobile/Containers/Data/Application/22A433FD-D82D-4989-8BE6-9FC49DEA20BB/Documents/text.txt'\r\n// })\r\n// }\r\n// }\r\n\r\n// async rename() {\r\n// try {\r\n// // This example moves the file within the same 'directory'\r\n// let ret = await Filesystem.rename({\r\n// from: 'text.txt',\r\n// to: 'text2.txt',\r\n// directory: FilesystemDirectory.Documents\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to rename file', e);\r\n// }\r\n// }\r\n\r\n// async copy() {\r\n// try {\r\n// // This example copies a file within the documents directory\r\n// let ret = await Filesystem.copy({\r\n// from: 'text.txt',\r\n// to: 'text2.txt',\r\n// directory: FilesystemDirectory.Documents\r\n// });\r\n// } catch(e) {\r\n// console.error('Unable to copy file', e);\r\n// }\r\n// }\r\n\r\nexport {\r\n fileAppend,\r\n fileWrite,\r\n fileRead\r\n}","import { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { id: \"delivery-manifest-detail\" }\nconst _hoisted_2 = { class: \"background-grey-lighten-5 px-6 py-6 mb-4 rounded-lg\" }\nconst _hoisted_3 = { class: \"font-bold py-2 rounded-md\" }\nconst _hoisted_4 = { class: \"sm:flex items-start justify-between\" }\nconst _hoisted_5 = { class: \"detail-info\" }\nconst _hoisted_6 = { class: \"sm:flex items-center\" }\nconst _hoisted_7 = { class: \"flex batas-chip mr-3 pr-3\" }\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-normal color-blue-grey-darken-1 text-base mr-1\" }, \"Berangkat : \", -1)\nconst _hoisted_9 = { class: \"flex items-center mt-3 sm:mt-0\" }\nconst _hoisted_10 = {\n class: \"rounded-md background-green-lighten-5 py-1 px-3 mr-2\",\n style: {\"border\":\"1px solid #66BB6A\"}\n}\nconst _hoisted_11 = { class: \"color-green-darken-1 text-sm\" }\nconst _hoisted_12 = {\n class: \"rounded-md background-grey-lighten-5 py-1 px-3\",\n style: {\"border\":\"1px solid #607D8B\"}\n}\nconst _hoisted_13 = {\n key: 0,\n class: \"color-blue-grey text-sm\"\n}\nconst _hoisted_14 = {\n key: 0,\n class: \"price-info sm:text-right mt-3 sm:mt-0\"\n}\nconst _hoisted_15 = /*#__PURE__*/_createVNode(\"p\", { class: \"text-base font-normal color-primary\" }, \"Pendapatan Anda\", -1)\nconst _hoisted_16 = { class: \"color-primary font-bold\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_TabPanel = _resolveComponent(\"TabPanel\")\n const _component_TabView = _resolveComponent(\"TabView\")\n const _component_DepatureManifest = _resolveComponent(\"DepatureManifest\")\n const _component_LoadingManifest = _resolveComponent(\"LoadingManifest\")\n const _component_Card = _resolveComponent(\"Card\")\n\n return (_openBlock(), _createBlock(\"section\", _hoisted_1, [\n _createVNode(_component_Card, null, {\n title: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"p\", _hoisted_3, _toDisplayString(_ctx.data.KodeJadwal), 1),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"div\", _hoisted_5, [\n _createVNode(\"div\", _hoisted_6, [\n _createVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n (_ctx.data.TransJadwalDetails.length > 0)\n ? (_openBlock(), _createBlock(\"p\", {\n key: 0,\n class: _ctx.$isDateOnTime(_ctx.data.TransJadwalDetails[0].WaktuKeberangkatan) ? 'color-green-darken-1 text-base' : 'color-red text-base'\n }, _toDisplayString(_ctx.$strDate(_ctx.data.TransJadwalDetails[0].WaktuKeberangkatan)), 3))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_9, [\n _createVNode(\"div\", _hoisted_10, [\n _createVNode(\"p\", _hoisted_11, \"RIT \" + _toDisplayString(_ctx.data.Rit), 1)\n ]),\n _createVNode(\"div\", _hoisted_12, [\n (_ctx.data.TipeBus)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_13, _toDisplayString(_ctx.data.TipeBus.Kode), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ])\n ]),\n (_ctx.checkPermission(_ctx.PermissionEnum.ShowTotDetMan))\n ? (_openBlock(), _createBlock(\"div\", _hoisted_14, [\n _hoisted_15,\n _createVNode(\"h5\", _hoisted_16, \"Rp \" + _toDisplayString(new Number(_ctx.data.TotalPendapatan).toLocaleString('id-ID')), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n content: _withCtx(() => [\n _createVNode(_component_TabView, {\n class: \"color-primary mb-4\",\n activeIndex: _ctx.currentTab,\n \"onUpdate:activeIndex\": _cache[1] || (_cache[1] = ($event: any) => (_ctx.currentTab = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_TabPanel, { header: \"Manifest Keberangkatan\" }),\n _createVNode(_component_TabPanel, { header: \"Loading Manifest\" })\n ]),\n _: 1\n }, 8, [\"activeIndex\"]),\n (_ctx.currentTab == 0)\n ? (_openBlock(), _createBlock(_component_DepatureManifest, {\n key: 0,\n detail: _ctx.data\n }, null, 8, [\"detail\"]))\n : (_ctx.currentTab == 1)\n ? (_openBlock(), _createBlock(_component_LoadingManifest, { key: 1 }))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]))\n}","import { createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withModifiers as _withModifiers } from \"vue\"\n\nconst _hoisted_1 = { class: \"p-4\" }\nconst _hoisted_2 = { class: \"flex items-center justify-between mb-2\" }\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"p\", { class: \"mr-0 text-subtitle1\" }, \"Manifest Anda\", -1)\nconst _hoisted_4 = { class: \"flex items-center\" }\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n class: \"w-5 h-5\",\n style: {\"-ms-transform\":\"rotate(180deg)\",\"-webkit-transform\":\"rotate(180deg)\",\"transform\":\"rotate(180deg)\"},\n preserveAspectRatio: \"xMidYMid meet\",\n viewBox: \"0 0 24 24\"\n}, [\n /*#__PURE__*/_createVNode(\"path\", {\n fill: \"#ffffff\",\n d: \"M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23a1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z\"\n })\n], -1)\nconst _hoisted_6 = {\n key: 0,\n class: \"color-blue-grey text-sm font-semibold\"\n}\nconst _hoisted_7 = { class: \"mx-auto\" }\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"small\", { class: \"color-blue-grey text-center\" }, \"Semua\", -1)\nconst _hoisted_9 = {\n key: 1,\n class: \"color-blue-grey p-5 text-center\"\n}\nconst _hoisted_10 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_11 = { class: \"w-full flex justify-end text-right mt-6\" }\nconst _hoisted_12 = /*#__PURE__*/_createTextVNode(\"Pending Barang\")\nconst _hoisted_13 = /*#__PURE__*/_createTextVNode(\"Kembali\")\nconst _hoisted_14 = { class: \"grid gap-4 grid-cols-2 mb-4\" }\nconst _hoisted_15 = { class: \"p-field w-full\" }\nconst _hoisted_16 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_17 = { class: \"p-field w-full\" }\nconst _hoisted_18 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_19 = { class: \"p-field w-full mb-2\" }\nconst _hoisted_20 = {\n key: 0,\n class: \"p-error\"\n}\nconst _hoisted_21 = { class: \"p-field w-full mb-4\" }\nconst _hoisted_22 = /*#__PURE__*/_createVNode(\"label\", {\n for: \"description\",\n class: \"text-body2\"\n}, \"Keterangan\", -1)\nconst _hoisted_23 = { class: \"flex items-center justify-between\" }\nconst _hoisted_24 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-bold\" }, \"Grand Total\", -1)\nconst _hoisted_25 = { class: \"color-primary\" }\nconst _hoisted_26 = /*#__PURE__*/_createVNode(\"p\", { class: \"font-semibold pb-4 border-bottom-blue-grey-lighten-5\" }, \"Yang Disetorkan\", -1)\nconst _hoisted_27 = { class: \"flex items-center justify-between py-3 border-bottom-blue-grey-lighten-5\" }\nconst _hoisted_28 = /*#__PURE__*/_createVNode(\"div\", { class: \"flex items-center\" }, [\n /*#__PURE__*/_createVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n class: \"h-6 w-6 mr-2\",\n style: {\"-ms-transform\":\"rotate(360deg)\",\"-webkit-transform\":\"rotate(360deg)\",\"transform\":\"rotate(360deg)\"},\n preserveAspectRatio: \"xMidYMid meet\",\n viewBox: \"0 0 24 24\"\n }, [\n /*#__PURE__*/_createVNode(\"g\", { fill: \"none\" }, [\n /*#__PURE__*/_createVNode(\"path\", {\n d: \"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7z\",\n stroke: \"#607D8B\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }),\n /*#__PURE__*/_createVNode(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"3\",\n stroke: \"#607D8B\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }),\n /*#__PURE__*/_createVNode(\"path\", {\n d: \"M2 9v0a4 4 0 0 0 4-4v0\",\n stroke: \"#607D8B\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n }),\n /*#__PURE__*/_createVNode(\"path\", {\n d: \"M18 19v0a4 4 0 0 1 4-4v0\",\n stroke: \"#607D8B\",\n \"stroke-width\": \"2\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\"\n })\n ])\n ]),\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey font-semibold\" }, \"Tunai\")\n], -1)\nconst _hoisted_29 = {\n key: 0,\n class: \"font-semibold\"\n}\nconst _hoisted_30 = { class: \"flex items-center justify-between py-3\" }\nconst _hoisted_31 = /*#__PURE__*/_createVNode(\"div\", { class: \"flex items-center\" }, [\n /*#__PURE__*/_createVNode(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n \"xmlns:xlink\": \"http://www.w3.org/1999/xlink\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n class: \"h-6 w-6 mr-2\",\n style: {\"-ms-transform\":\"rotate(360deg)\",\"-webkit-transform\":\"rotate(360deg)\",\"transform\":\"rotate(360deg)\"},\n preserveAspectRatio: \"xMidYMid meet\",\n viewBox: \"0 0 16 16\"\n }, [\n /*#__PURE__*/_createVNode(\"g\", { fill: \"#607D8B\" }, [\n /*#__PURE__*/_createVNode(\"path\", { d: \"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v1h14V4a1 1 0 0 0-1-1H2zm13 4H1v5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V7z\" }),\n /*#__PURE__*/_createVNode(\"path\", { d: \"M2 10a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-1z\" })\n ])\n ]),\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey font-semibold\" }, \"Non Tunai\")\n], -1)\nconst _hoisted_32 = {\n key: 0,\n class: \"font-semibold\"\n}\nconst _hoisted_33 = /*#__PURE__*/_createVNode(\"div\", { class: \"flex items-center justify-between p-4\" }, [\n /*#__PURE__*/_createVNode(\"p\", null, \"Manifest\")\n], -1)\nconst _hoisted_34 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_35 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_36 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_37 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_38 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_39 = { class: \"w-full mt-10 sm:mt-6 absolute bottom-0 left-0 right-0 px-6 py-6 bg-white\" }\nconst _hoisted_40 = /*#__PURE__*/_createTextVNode(\"Simpan & Print\")\nconst _hoisted_41 = /*#__PURE__*/_createTextVNode(\"Batalkan\")\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_Column = _resolveComponent(\"Column\")\n const _component_Checkbox = _resolveComponent(\"Checkbox\")\n const _component_DataTable = _resolveComponent(\"DataTable\")\n const _component_Card = _resolveComponent(\"Card\")\n const _component_Textarea = _resolveComponent(\"Textarea\")\n const _component_Dialog = _resolveComponent(\"Dialog\")\n const _component_InputText = _resolveComponent(\"InputText\")\n const _component_ListCopyEditDel = _resolveComponent(\"ListCopyEditDel\")\n const _component_OverlayPanel = _resolveComponent(\"OverlayPanel\")\n const _component_DialogDetailResi = _resolveComponent(\"DialogDetailResi\")\n\n return (_openBlock(), _createBlock(\"div\", null, [\n _createVNode(_component_Card, { class: \"card-no-shadow card-p-0 mb-8\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_1, [\n _createVNode(\"div\", _hoisted_2, [\n _hoisted_3,\n _createVNode(\"div\", _hoisted_4, [\n (_ctx.route.meta.permission.write)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n class: `p-button-outlined ${_ctx.data.length <= 0 ? 'p-button-secondary' : 'p-button-danger'} rounded-lg mr-2 flex items-center px-3 py-2 w-auto`,\n disabled: _ctx.data.length <= 0,\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showDialogPending()))\n }, {\n default: _withCtx(() => [\n _createVNode(\"p\", {\n class: `${_ctx.data.length <= 0 ? 'color-blue-grey' : 'color-red'} text-xs mr-2`\n }, \"Pending\", 2),\n _createVNode(\"i\", {\n class: `pi pi-info-circle text-xs pr-3 sm:pr-1 ${_ctx.data.length <= 0 ? 'color-blue-grey' : 'color-red'}`\n }, null, 2)\n ]),\n _: 1\n }, 8, [\"class\", \"disabled\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.route.meta.permission.write && _ctx.checkDateDepature())\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 1,\n class: `${_ctx.data.length <= 0 ? 'p-button-secondary' : 'btn-primary'} text-white text-sm rounded-lg mr-0 px-1 py-1.5 sm:px-3`,\n disabled: _ctx.data.length <= 0 || _ctx.selectedReceipt.length < _ctx.data.length,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showDialogLoadingManifest()))\n }, {\n default: _withCtx(() => [\n _createVNode(\"p\", {\n class: `mr-0 ${_ctx.data.length <= 0 ? 'color-blue-grey-lighten-4' : 'text-white'} text-xs`\n }, \"Ke Loading Manifest\", 2),\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"class\", \"disabled\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n (!_ctx.checkDateDepature())\n ? (_openBlock(), _createBlock(\"p\", _hoisted_6, \"Jadwal masih belum hari ini / telah melewati batas toleransi, tidak bisa ke loading manifest\"))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.data.length > 0)\n ? (_openBlock(), _createBlock(_component_DataTable, {\n key: 0,\n value: _ctx.data,\n class: \"table-og body-td-x-0\",\n responsiveLayout: \"scroll\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Column, { header: \"No\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", {\n class: \"font-semibold text-black px-4 h-14 flex items-center\",\n style: _ctx.activeStyle(slotProps.data.Id)\n }, _toDisplayString(slotProps.index+1), 5)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Nomor Resi\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", {\n class: \"text-black font-semibold px-4 h-14 flex items-center hover-primary cursor-pointer\",\n onClick: ($event: any) => (_ctx.detail(slotProps.data)),\n style: _ctx.activeStyle(slotProps.data.Id)\n }, _toDisplayString(slotProps.data.Resi), 13, [\"onClick\"])\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Total Barang\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", {\n class: \"text-black font-semibold px-4 h-14 flex items-center\",\n style: _ctx.activeStyle(slotProps.data.Id)\n }, _toDisplayString(slotProps.data['TransPengirimanDetails@odata.count']), 5)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, null, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", {\n class: \"px-4 h-14 flex items-center\",\n style: _ctx.activeStyle(slotProps.data.Id)\n }, [\n _createVNode(\"i\", {\n class: \"pi pi-ellipsis-h text-base cursor-pointer ml-auto text-black\",\n \"aria:haspopup\": \"true\",\n \"aria-controls\": \"overlay_panel\",\n onClick: ($event: any) => (_ctx.showDropDown($event, slotProps.data))\n }, null, 8, [\"onClick\"])\n ], 4)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { style: {\"text-align\":\"center\"} }, {\n header: _withCtx(() => [\n _createVNode(\"div\", _hoisted_7, [\n _createVNode(\"div\", null, [\n _createVNode(_component_Checkbox, {\n binary: true,\n disabled: !_ctx.route.meta.permission.write,\n modelValue: _ctx.checkedAllValue,\n \"onUpdate:modelValue\": _cache[3] || (_cache[3] = ($event: any) => (_ctx.checkedAllValue = $event)),\n onChange: _cache[4] || (_cache[4] = ($event: any) => (_ctx.checkedAll())),\n class: \"checkbox-primary\"\n }, null, 8, [\"disabled\", \"modelValue\"])\n ]),\n _hoisted_8\n ])\n ]),\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", {\n class: \"mx-auto px-4 h-14 flex items-center\",\n style: _ctx.activeStyle(slotProps.data.Id)\n }, [\n _createVNode(_component_Checkbox, {\n binary: true,\n disabled: !_ctx.route.meta.permission.write,\n modelValue: slotProps.data.checked,\n \"onUpdate:modelValue\": ($event: any) => (slotProps.data.checked = $event),\n onChange: ($event: any) => (_ctx.changeChecked(slotProps.data.Id, slotProps.data.checked)),\n class: \"checkbox-primary mx-auto\"\n }, null, 8, [\"disabled\", \"modelValue\", \"onUpdate:modelValue\", \"onChange\"])\n ], 4)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\"]))\n : (_openBlock(), _createBlock(\"p\", _hoisted_9, \"Tidak Ada Barang Pada Manifest\"))\n ]),\n _: 1\n }),\n _createVNode(_component_Dialog, {\n header: `Pending Pengiriman Barang`,\n visible: _ctx.dialogPending,\n \"onUpdate:visible\": _cache[8] || (_cache[8] = ($event: any) => (_ctx.dialogPending = $event)),\n class: \"dialog-voucher\",\n modal: true,\n dismissableMask: true,\n onHide: _cache[9] || (_cache[9] = ($event: any) => (_ctx.hideDialogPending()))\n }, {\n default: _withCtx(() => [\n _createVNode(\"form\", {\n onSubmit: _cache[7] || (_cache[7] = _withModifiers(($event: any) => (_ctx.submitPendingManifest(!_ctx.vPend$.$invalid)), [\"prevent\"]))\n }, [\n _createVNode(_component_Textarea, {\n modelValue: _ctx.vPend$.description.$model,\n \"onUpdate:modelValue\": _cache[5] || (_cache[5] = ($event: any) => (_ctx.vPend$.description.$model = $event)),\n rows: \"5\",\n placeholder: \"Tulis Alasan Anda\",\n class: \"w-full textarea-grey rounded-lg input-primary\"\n }, null, 8, [\"modelValue\"]),\n ((_ctx.vPend$.description.$invalid && _ctx.submittedPend) || _ctx.vPend$.description.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_10, _toDisplayString(_ctx.vPend$.description.required.$message), 1))\n : _createCommentVNode(\"\", true),\n _createVNode(\"div\", _hoisted_11, [\n _createVNode(_component_Button, {\n class: \"btn-primary text-black mr-3 px-5 sm:px-10 py-1 justify-center\",\n type: \"submit\"\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }),\n _createVNode(_component_Button, {\n class: \"btn-secondary text-black px-5 sm:px-10 py-1 justify-center\",\n onClick: _cache[6] || (_cache[6] = ($event: any) => (_ctx.hideDialogPending()))\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n })\n ])\n ], 32)\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_Dialog, {\n header: `Tambah Loading Manifest`,\n visible: _ctx.dialogLoadingManifest,\n \"onUpdate:visible\": _cache[16] || (_cache[16] = ($event: any) => (_ctx.dialogLoadingManifest = $event)),\n class: \"dialog-voucher relative\",\n modal: true,\n dismissableMask: true,\n onHide: _cache[17] || (_cache[17] = ($event: any) => (_ctx.hideDialogLoadingManifest()))\n }, {\n default: _withCtx(() => [\n _createVNode(\"form\", {\n id: \"form-add-manifest\",\n class: \"mb-14\",\n onSubmit: _cache[14] || (_cache[14] = _withModifiers(($event: any) => (_ctx.submitLoadingManifest(!_ctx.v$.$invalid)), [\"prevent\"]))\n }, [\n _createVNode(\"div\", _hoisted_14, [\n _createVNode(\"div\", _hoisted_15, [\n _createVNode(\"label\", {\n for: \"noPol\",\n class: {'p-error':_ctx.v$.noPol.$invalid && _ctx.submitted, 'text-body2': true}\n }, \"Nomor Polisi Bus\", 2),\n _createVNode(_component_InputText, {\n id: \"noPol\",\n class: \"input-primary w-full mt-1 uppercase rounded-lg\",\n name: \"noPol\",\n modelValue: _ctx.v$.noPol.$model,\n \"onUpdate:modelValue\": _cache[10] || (_cache[10] = ($event: any) => (_ctx.v$.noPol.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n _createVNode(\"div\", null, [\n ((_ctx.v$.noPol.$invalid && _ctx.submitted) || _ctx.v$.noPol.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_16, _toDisplayString(_ctx.v$.noPol.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(\"div\", _hoisted_17, [\n _createVNode(\"label\", {\n for: \"driverName\",\n class: {'p-error':_ctx.v$.driverName.$invalid && _ctx.submitted, 'text-body2': true}\n }, \"Nama Supir\", 2),\n _createVNode(_component_InputText, {\n id: \"driverName\",\n class: \"input-primary w-full mt-1 rounded-lg\",\n name: \"driverName\",\n modelValue: _ctx.v$.driverName.$model,\n \"onUpdate:modelValue\": _cache[11] || (_cache[11] = ($event: any) => (_ctx.v$.driverName.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n _createVNode(\"div\", null, [\n ((_ctx.v$.driverName.$invalid && _ctx.submitted) || _ctx.v$.driverName.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_18, _toDisplayString(_ctx.v$.driverName.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ]),\n _createVNode(\"div\", _hoisted_19, [\n _createVNode(\"label\", {\n for: \"stewardName\",\n class: {'p-error':_ctx.v$.stewardName.$invalid && _ctx.submitted, 'text-body2': true}\n }, \"Nama Pramugara\", 2),\n _createVNode(_component_InputText, {\n id: \"stewardName\",\n class: \"input-primary w-full mt-1 rounded-lg\",\n name: \"stewardName\",\n modelValue: _ctx.v$.stewardName.$model,\n \"onUpdate:modelValue\": _cache[12] || (_cache[12] = ($event: any) => (_ctx.v$.stewardName.$model = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"]),\n _createVNode(\"div\", null, [\n ((_ctx.v$.stewardName.$invalid && _ctx.submitted) || _ctx.v$.stewardName.$pending.$response)\n ? (_openBlock(), _createBlock(\"small\", _hoisted_20, _toDisplayString(_ctx.v$.stewardName.required.$message), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(\"div\", _hoisted_21, [\n _hoisted_22,\n _createVNode(_component_Textarea, {\n class: \"input-primary w-full mt-1 rounded-lg\",\n rows: \"2\",\n name: \"description\",\n modelValue: _ctx.dataAdd.description,\n \"onUpdate:modelValue\": _cache[13] || (_cache[13] = ($event: any) => (_ctx.dataAdd.description = $event)),\n type: \"text\"\n }, null, 8, [\"modelValue\"])\n ]),\n _createVNode(_component_Card, { class: \"card-no-shadow card-item-category mb-4\" }, {\n content: _withCtx(() => [\n _createVNode(\"div\", _hoisted_23, [\n _hoisted_24,\n _createVNode(\"p\", null, [\n _createVNode(\"b\", _hoisted_25, \"Rp \" + _toDisplayString(new Number(_ctx.detailAdd.PendapatanManifest).toLocaleString('id-ID')), 1)\n ])\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Card, { class: \"card-no-shadow card-item-category mb-4\" }, {\n content: _withCtx(() => [\n _hoisted_26,\n _createVNode(\"div\", _hoisted_27, [\n _hoisted_28,\n (_ctx.detailAdd.DetailPembayaran)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_29, \"Rp \" + _toDisplayString(new Number(_ctx.detailAdd.DetailPembayaran.Tunai).toLocaleString('id-ID')), 1))\n : _createCommentVNode(\"\", true)\n ]),\n _createVNode(\"div\", _hoisted_30, [\n _hoisted_31,\n (_ctx.detailAdd.DetailPembayaran)\n ? (_openBlock(), _createBlock(\"p\", _hoisted_32, \"Rp \" + _toDisplayString(new Number(_ctx.detailAdd.DetailPembayaran.NonTunai).toLocaleString('id-ID')), 1))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_Card, { class: \"card-no-shadow card-p-0 card-item-category mb-4\" }, {\n header: _withCtx(() => [\n _hoisted_33\n ]),\n content: _withCtx(() => [\n (_ctx.detailAdd.Manifest)\n ? (_openBlock(), _createBlock(_component_DataTable, {\n key: 0,\n value: _ctx.detailAdd.Manifest,\n class: \"table-og body-td-x-0\",\n responsiveLayout: \"scroll\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Column, { header: \"No\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_34, _toDisplayString(slotProps.index+1), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Nomor Resi\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_35, _toDisplayString(slotProps.data.Resi), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Jml Koli\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_36, _toDisplayString(slotProps.data.Jumlah), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Pendapatan\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_37, \"Rp \" + _toDisplayString(new Number(slotProps.data.GrandTotal).toLocaleString('id-ID')), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Pembayaran\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_38, _toDisplayString(slotProps.data.JenisPembayaran), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ], 32),\n _createVNode(\"div\", _hoisted_39, [\n _createVNode(_component_Button, {\n class: \"btn-primary text-black mr-3 sm:px-10 px-4 py-1 text-sm sm:text-base\",\n type: \"submit\",\n form: \"form-add-manifest\"\n }, {\n default: _withCtx(() => [\n _hoisted_40\n ]),\n _: 1\n }),\n _createVNode(_component_Button, {\n class: \"btn-secondary text-black sm:px-10 px-4 py-1 text-sm sm:text-base\",\n onClick: _cache[15] || (_cache[15] = ($event: any) => (_ctx.hideDialogLoadingManifest()))\n }, {\n default: _withCtx(() => [\n _hoisted_41\n ]),\n _: 1\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_OverlayPanel, {\n ref: \"op\",\n id: \"overlay_panel\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_ListCopyEditDel, {\n refund: _ctx.route.meta.permission.update && _ctx.$checkIsRefund(_ctx.idManifest.TransPengirimanDetails),\n detail: true,\n onRefund: _cache[18] || (_cache[18] = ($event: any) => (_ctx.refund(_ctx.idManifest))),\n onDetail: _cache[19] || (_cache[19] = ($event: any) => (_ctx.detail(_ctx.idManifest)))\n }, null, 8, [\"refund\"])\n ]),\n _: 1\n }, 512),\n (_ctx.showDialogDetail)\n ? (_openBlock(), _createBlock(_component_DialogDetailResi, {\n key: 0,\n isRefund: _ctx.isRefund,\n idTrans: _ctx.idManifest.Id,\n isShowDialog: _ctx.showDialogDetail,\n onReloadData: _cache[20] || (_cache[20] = ($event: any) => (_ctx.getAllData())),\n onHideDialog: _cache[21] || (_cache[21] = ($event: any) => (_ctx.showDialogDetail = false))\n }, null, 8, [\"isRefund\", \"idTrans\", \"isShowDialog\"]))\n : _createCommentVNode(\"\", true)\n ]))\n}","import {\r\n ref, onMounted, getCurrentInstance, reactive, computed,\r\n defineComponent\r\n} from 'vue'\r\nimport { useStore } from 'vuex'\r\nimport { useRoute, useRouter } from 'vue-router'\r\nimport { deliveryManifestUseCase, reportUseCase } from '@/domain/usecase'\r\nimport useVuelidate from '@vuelidate/core'\r\nimport { required, helpers } from '@vuelidate/validators'\r\nimport { fileWrite } from '@/plugins/system/filesystem'\r\nimport { isMobile } from '@/plugins/system/device'\r\nimport { encryptDecriptMethods } from '@/plugins/encryptDecriptMethods'\r\n\r\n/* eslint-disable */\r\nexport default defineComponent({\r\n props: {\r\n detail: {\r\n default: {}\r\n }\r\n },\r\n setup(props) {\r\n const modules = 'manifestDetail'\r\n const app = getCurrentInstance()\r\n const { $toast, $getDiffDate, $swal } = app!.appContext.config.globalProperties\r\n const propertiesProps = reactive(props)\r\n const det = computed(() => propertiesProps.detail) as any\r\n const data = ref([]) as any\r\n const checkedAllValue = ref(false)\r\n const store = useStore()\r\n const route = useRoute()\r\n const router = useRouter()\r\n const op = ref()\r\n const isRefund = ref(false)\r\n const showDialogDetail = ref(false)\r\n const dialogPending = ref(false)\r\n const dialogLoadingManifest = ref(false)\r\n const inputSearch = ref('')\r\n const selectedReceipt = ref([]) as any\r\n const submitted = ref(false)\r\n const submittedPend = ref(false)\r\n const isDownloadFile = ref(false)\r\n const profileAgent = store.getters['appActiveUser/getAgent']\r\n const dataPending = reactive({\r\n description: ''\r\n })\r\n const dataAdd = reactive({\r\n noPol: '',\r\n driverName: '',\r\n stewardName: '',\r\n kruName: null,\r\n description: ''\r\n })\r\n const detailAdd = ref({}) as any\r\n const rules = {\r\n noPol: {\r\n required: helpers.withMessage('Nomor polisi Bus harus diisi', required)\r\n },\r\n stewardName: {\r\n required: helpers.withMessage('Nama pramugara harus diisi', required)\r\n },\r\n driverName: {\r\n required: helpers.withMessage('Nama supir harus diisi', required)\r\n }\r\n }\r\n const rulesPending = {\r\n description: {\r\n required: helpers.withMessage('Keterangan harus diisi', required)\r\n }\r\n }\r\n\r\n const v$ = useVuelidate(rules, dataAdd)\r\n const vPend$ = useVuelidate(rulesPending, dataPending)\r\n const idManifest = ref({})\r\n\r\n const getAllData = async (search: any = '') => {\r\n store.dispatch('showLoading')\r\n checkedAllValue.value = false\r\n selectedReceipt.value = []\r\n const response = await deliveryManifestUseCase.getDepatureManifest(route.params.id, profileAgent?.id)\r\n if (!response.error) {\r\n data.value = response.result.map((item: any) => {\r\n item.checked = false\r\n return item\r\n })\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const getDetailLoadingManifest = async () => {\r\n store.dispatch('showLoading')\r\n const dataForm = {\r\n PengirimanHdId: selectedReceipt.value,\r\n AgenId: profileAgent?.id\r\n }\r\n const response = await deliveryManifestUseCase.submitLoadingManifest(dataForm)\r\n if (response.error) {\r\n $toast.add({\r\n severity: 'error', detail: response.message, group: 'bc', life: 1500\r\n })\r\n } else {\r\n detailAdd.value = response.result\r\n dataAdd.noPol = response.result.DataTerakhir.Nopol\r\n dataAdd.stewardName = response.result.DataTerakhir.NamaPramugara\r\n dataAdd.driverName = response.result.DataTerakhir.NamaSupir\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const searchData = (search: any) => {\r\n getAllData(search)\r\n }\r\n\r\n const showDialogPending = () => {\r\n if (selectedReceipt.value.length <= 0) {\r\n $toast.add({\r\n severity: 'error', detail: 'Silahkan untuk pilih manifest terlebih dahulu', group: 'bc', life: 1500\r\n })\r\n } else {\r\n dialogPending.value = true\r\n }\r\n }\r\n\r\n const hideDialogPending = () => {\r\n dataPending.description = ''\r\n dialogPending.value = false\r\n }\r\n\r\n const showDialogLoadingManifest = () => {\r\n if (selectedReceipt.value.length <= 0) {\r\n $toast.add({\r\n severity: 'error', detail: 'Silahkan untuk pilih manifest terlebih dahulu', group: 'bc', life: 1500\r\n })\r\n } else {\r\n dialogLoadingManifest.value = true\r\n getDetailLoadingManifest()\r\n }\r\n }\r\n\r\n const hideDialogLoadingManifest = () => {\r\n dialogLoadingManifest.value = false\r\n }\r\n // converter base64\r\n const toBase64 = (file: any) => new Promise((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.readAsDataURL(file)\r\n reader.onload = () => resolve(reader.result)\r\n reader.onerror = (error) => reject(error)\r\n })\r\n\r\n const proccessLoadingManifest = async () => {\r\n store.dispatch('showLoading')\r\n const dataSubmit = {\r\n TransJadwalHdId: route.params.id,\r\n Nopol: dataAdd.noPol,\r\n NamaPramugara: dataAdd.stewardName,\r\n NamaSupir: dataAdd.driverName,\r\n Keterangan: dataAdd.description,\r\n NamaKru: dataAdd.kruName,\r\n PengirimanHdId: selectedReceipt.value\r\n }\r\n const response = await deliveryManifestUseCase.submitData(null, dataSubmit)\r\n console.log('ini resposne delivery Manifest', response)\r\n if (response.error) {\r\n store.dispatch('hideLoading')\r\n $toast.add({\r\n severity: 'error', detail: response.message, group: 'bc', life: 1500\r\n })\r\n } else {\r\n // store.dispatch(`${modules}/setDataLastManifest`, response.result)\r\n // console.log('log', response.result)\r\n const encryptData = encryptDecriptMethods.encrypt(response.result.Id)\r\n localStorage.setItem('lastManifest', JSON.stringify([encryptData, response.result.NoManifest]))\r\n $toast.add({\r\n severity: 'success', detail: 'Berhasil disimpan', group: 'bc', life: 1500\r\n })\r\n dialogLoadingManifest.value = false\r\n getAllData()\r\n if (isDownloadFile.value) {\r\n const result = await reportUseCase.getPdfManifest(Number(response.result.Id))\r\n const name = `${response.result.NoManifest}.pdf`\r\n let notif = null\r\n\r\n if (await isMobile()) {\r\n const file = await toBase64(new Blob([result.result]))\r\n await fileWrite(name, file)\r\n // console.log('depatureManifestComposable download via android')\r\n notif = 'Resi berhasil diunduh ke folder : DOCUMENTS '\r\n $toast.add({\r\n severity: 'success', detail: notif, group: 'bc', life: 5000\r\n })\r\n } else {\r\n const fileURL = window.URL.createObjectURL(new Blob([result.result]))\r\n const fileLink = document.createElement('a')\r\n fileLink.href = fileURL\r\n const name = `${response.result.NoManifest}.pdf`\r\n fileLink.setAttribute('download', name)\r\n document.body.appendChild(fileLink)\r\n fileLink.click()\r\n // console.log('depatureManifestComposable download via web')\r\n }\r\n } else {\r\n console.log('test')\r\n const encryptData = encryptDecriptMethods.encrypt(response.result.Id)\r\n const routeData = router.resolve({ name: 'report', params: { Id: encryptData, jenisReport: 'manifest' } })\r\n window.open(routeData.href, '_blank')\r\n }\r\n }\r\n }\r\n\r\n const submitLoadingManifest = (isFormValid: boolean) => {\r\n submitted.value = true\r\n if (!isFormValid) {\r\n return\r\n }\r\n // $confirm.require({\r\n // header: 'Berangkatkan Loading Manifest',\r\n // message: 'Pastikan resi yang disimpan sudah sesuai dengan barang yang sudah dimuat oleh kru dan supir bis. Resi yang sudah diinput tidak dapat diubah lagi.',\r\n // icon: 'pi pi-exclamation-triangle',\r\n // acceptLabel: 'Simpan & Print',\r\n // rejectLabel: 'Kembali',\r\n // accept: () => {\r\n // proccessLoadingManifest()\r\n // }\r\n // })\r\n $swal.fire({\r\n text: 'Pastikan resi yang disimpan sudah sesuai dengan barang yang sudah dimuat oleh kru dan supir bis. Resi yang sudah diinput tidak dapat diubah lagi.',\r\n title: 'Berangkatkan Loading Manifest',\r\n imageUrl: require('@/assets/img/icon/printer.svg'),\r\n imageWidth: 400,\r\n imageHeight: 150,\r\n imageAlt: 'Custom image',\r\n showCancelButton: true,\r\n showDenyButton: true,\r\n confirmButtonColor: '#ff9800',\r\n cancelButtonColor: '#F44336',\r\n denyButtonColor: '#90A4AE',\r\n allowOutsideClick: false,\r\n confirmButtonText: 'Simpan & Download',\r\n cancelButtonText: 'Kembali',\r\n denyButtonText: 'Simpan & Tampilkan'\r\n }).then(async (result: any) => {\r\n // console.log('resultcompo', result)\r\n if (result.isConfirmed) {\r\n // eslint-disable-next-line no-shadow\r\n isDownloadFile.value = true\r\n proccessLoadingManifest()\r\n }\r\n if (result.isDenied) {\r\n isDownloadFile.value = false\r\n proccessLoadingManifest()\r\n }\r\n })\r\n }\r\n\r\n const proccessPendingManifest = async () => {\r\n store.dispatch('showLoading')\r\n const dataForm = {\r\n PengirimanHdId: selectedReceipt.value,\r\n Keterangan: dataPending.description\r\n }\r\n\r\n const response = await deliveryManifestUseCase.submitPendingManifest(dataForm)\r\n if (response.error) {\r\n store.dispatch('hideLoading')\r\n $toast.add({\r\n severity: 'error', detail: response.message, group: 'bc', life: 1500\r\n })\r\n } else {\r\n $toast.add({\r\n severity: 'success', detail: 'Berhasil disimpan', group: 'bc', life: 1500\r\n })\r\n hideDialogPending()\r\n getAllData()\r\n }\r\n }\r\n\r\n const submitPendingManifest = (isFormValid: boolean) => {\r\n submittedPend.value = true\r\n if (!isFormValid) {\r\n return\r\n }\r\n proccessPendingManifest()\r\n }\r\n\r\n const activeStyle = (id: any) => {\r\n if (selectedReceipt.value.includes(id)) {\r\n return {\r\n backgroundColor: '#FFF3E0'\r\n }\r\n }\r\n return {}\r\n }\r\n\r\n const pushDataSelected = (isSelected: any, id: any) => {\r\n if (isSelected) {\r\n selectedReceipt.value.push(id)\r\n\r\n } else {\r\n const index = selectedReceipt.value.indexOf(id)\r\n if (index > -1) {\r\n selectedReceipt.value.splice(index, 1)\r\n }\r\n }\r\n }\r\n\r\n const checkedAll = () => {\r\n for (let i = 0; i < data.value.length; i++) {\r\n data.value[i].checked = checkedAllValue.value\r\n pushDataSelected(checkedAllValue.value, data.value[i].Id)\r\n }\r\n }\r\n\r\n const changeChecked = (id: any, val: any) => {\r\n for (let i = 0; i < data.value.length; i++) {\r\n if (data.value[i].Id === id) {\r\n data.value[i].checked = val\r\n pushDataSelected(val, id)\r\n break\r\n }\r\n }\r\n }\r\n\r\n const showDropDown = (evt: any, item: any) => {\r\n idManifest.value = item\r\n op.value.toggle(evt)\r\n }\r\n\r\n const refund = (val: any) => {\r\n showDialogDetail.value = true\r\n isRefund.value = true\r\n }\r\n\r\n const detail = (val: any) => {\r\n idManifest.value = val\r\n showDialogDetail.value = true\r\n isRefund.value = false\r\n }\r\n\r\n const departureTolerance = store.getters['globalSetting/departureTolerence']\r\n\r\n const checkDateDepature = () => {\r\n if (det.value) {\r\n if (det.value.TransJadwalDetails.length > 0) {\r\n const diff = $getDiffDate(det.value.TransJadwalDetails[0].WaktuKeberangkatan, Number(departureTolerance.value))\r\n // console.log(Number(store.state.toleranceSchedule.value))\r\n return diff <= 0\r\n // return $getDiffDate(det.value.TransJadwalDetails[0].WaktuKeberangkatan, Number(store.state.toleranceSchedule.value))\r\n }\r\n }\r\n return false\r\n }\r\n\r\n onMounted(() => {\r\n getAllData()\r\n })\r\n\r\n return {\r\n op,\r\n data,\r\n det,\r\n inputSearch,\r\n route,\r\n dialogPending,\r\n dialogLoadingManifest,\r\n checkedAllValue,\r\n selectedReceipt,\r\n dataAdd,\r\n detailAdd,\r\n vPend$,\r\n v$,\r\n submitted,\r\n submittedPend,\r\n idManifest,\r\n isRefund,\r\n showDialogDetail,\r\n checkDateDepature,\r\n getAllData,\r\n refund,\r\n detail,\r\n showDropDown,\r\n submitLoadingManifest,\r\n searchData,\r\n getDetailLoadingManifest,\r\n submitPendingManifest,\r\n checkedAll,\r\n activeStyle,\r\n changeChecked,\r\n showDialogPending,\r\n hideDialogPending,\r\n showDialogLoadingManifest,\r\n hideDialogLoadingManifest\r\n }\r\n }\r\n})\r\n","import { render } from \"./DepatureManifest.vue?vue&type=template&id=20e99efa&ts=true\"\nimport script from \"@/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/depatureManifestComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/depatureManifestComposable.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__","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createVNode as _createVNode, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"flex items-center justify-between w-full px-4\" }\nconst _hoisted_3 = { class: \"font-medium font-semibold\" }\nconst _hoisted_4 = { class: \"flex items-center\" }\nconst _hoisted_5 = { class: \"color-blue-grey mr-2\" }\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\"Total Resi: \")\nconst _hoisted_7 = {\n key: 0,\n class: \"color-blue-grey\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\"Total Koli: \")\nconst _hoisted_9 = { class: \"text-right\" }\nconst _hoisted_10 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey mb-1 text-sm\" }, \"Estimasi Pendapatan\", -1)\nconst _hoisted_11 = { class: \"font-bold color-primary\" }\nconst _hoisted_12 = {\n key: 0,\n class: \"px-4 py-3 w-full text-center\"\n}\nconst _hoisted_13 = /*#__PURE__*/_createVNode(\"div\", { class: \"lds-dual-ring\" }, null, -1)\nconst _hoisted_14 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey text-center\" }, \"Harap Tunggu\", -1)\nconst _hoisted_15 = { key: 1 }\nconst _hoisted_16 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_17 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_18 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_19 = { class: \"font-semibold text-black px-4 h-14 flex items-center\" }\nconst _hoisted_20 = { class: \"flex gap-2\" }\nconst _hoisted_21 = /*#__PURE__*/_createVNode(\"div\", {\n class: \"rounded-md background-green-lighten-5 py-1 px-3 w-24\",\n style: {\"border\":\"1px solid #66BB6A\"}\n}, [\n /*#__PURE__*/_createVNode(\"p\", { class: \"color-green-darken-1 text-sm text-center mx-auto\" }, \"Berangkat\")\n], -1)\nconst _hoisted_22 = /*#__PURE__*/_createVNode(\"i\", { class: \"pi pi-print\" }, null, -1)\nconst _hoisted_23 = {\n key: 2,\n class: \"px-4 py-3\"\n}\nconst _hoisted_24 = /*#__PURE__*/_createVNode(\"p\", { class: \"color-blue-grey text-center\" }, \"Belum Ada Keberangkatan\", -1)\nconst _hoisted_25 = {\n key: 1,\n class: \"text-center p-4 color-blue-grey\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Column = _resolveComponent(\"Column\")\n const _component_Button = _resolveComponent(\"Button\")\n const _component_DataTable = _resolveComponent(\"DataTable\")\n const _component_AccordionTab = _resolveComponent(\"AccordionTab\")\n const _component_Accordion = _resolveComponent(\"Accordion\")\n const _component_DialogDetailResi = _resolveComponent(\"DialogDetailResi\")\n\n return (_openBlock(), _createBlock(\"section\", null, [\n (_ctx.data.length > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(_component_Accordion, {\n class: \"card-accordion og-accordion\",\n onTabOpen: _ctx.expandedAccordion\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.data, (item, index) => {\n return (_openBlock(), _createBlock(_component_AccordionTab, {\n key: 'tab-' + index\n }, {\n header: _withCtx(() => [\n _createVNode(\"div\", _hoisted_2, [\n _createVNode(\"div\", null, [\n _createVNode(\"h6\", _hoisted_3, _toDisplayString(item.Agen), 1),\n _createVNode(\"div\", _hoisted_4, [\n _createVNode(\"p\", _hoisted_5, [\n _hoisted_6,\n _createVNode(\"b\", null, _toDisplayString(item.TotalResi), 1)\n ]),\n (_ctx.checkPermission(_ctx.PermissionEnum.ShowDetLoadMan))\n ? (_openBlock(), _createBlock(\"p\", _hoisted_7, [\n _hoisted_8,\n _createVNode(\"b\", null, _toDisplayString(item.TotalKoli), 1)\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createVNode(\"h5\", _hoisted_11, \"Rp \" + _toDisplayString(new Number(item.Pendapatan).toLocaleString('id-ID')), 1)\n ])\n ])\n ]),\n default: _withCtx(() => [\n (item.loading)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_12, [\n _hoisted_13,\n _hoisted_14\n ]))\n : (item.resi.length > 0)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_15, [\n _createVNode(_component_DataTable, {\n value: item.resi,\n class: \"table-og body-td-x-0\",\n responsiveLayout: \"scroll\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Column, { header: \"Nomor Resi\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_16, _toDisplayString(slotProps.data.Resi), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Jml Koli\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_17, _toDisplayString(slotProps.data.TransPengirimanDetails.length), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Nopol Bis\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_18, _toDisplayString(slotProps.data.Manifest.Nopol), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Nama Pamugara\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"p\", _hoisted_19, _toDisplayString(slotProps.data.Manifest.NamaPramugara), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_Column, { header: \"Status\" }, {\n body: _withCtx((slotProps) => [\n _createVNode(\"div\", _hoisted_20, [\n _hoisted_21,\n (_ctx.canPrint)\n ? (_openBlock(), _createBlock(_component_Button, {\n key: 0,\n class: \"font-semibold btn-primary\",\n onClick: ($event: any) => (_ctx.printResi(slotProps.data))\n }, {\n default: _withCtx(() => [\n _hoisted_22\n ]),\n _: 2\n }, 1032, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _: 1\n })\n ]),\n _: 2\n }, 1032, [\"value\"])\n ]))\n : (_openBlock(), _createBlock(\"div\", _hoisted_23, [\n _hoisted_24\n ]))\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 1\n }, 8, [\"onTabOpen\"])\n ]))\n : (_openBlock(), _createBlock(\"p\", _hoisted_25, \"Tidak Ada Manifest\")),\n (_ctx.showDialogDetail)\n ? (_openBlock(), _createBlock(_component_DialogDetailResi, {\n key: 2,\n isRefund: false,\n idTrans: _ctx.idManifest,\n isShowDialog: _ctx.showDialogDetail,\n onReloadData: _cache[1] || (_cache[1] = ($event: any) => (_ctx.getAllData())),\n onHideDialog: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showDialogDetail = false))\n }, null, 8, [\"idTrans\", \"isShowDialog\"]))\n : _createCommentVNode(\"\", true)\n ]))\n}","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n defineComponent\r\n} from 'vue'\r\nimport { useStore } from 'vuex'\r\nimport { useRoute, useRouter } from 'vue-router'\r\nimport { deliveryManifestUseCase, reportUseCase } from '@/domain/usecase'\r\nimport { fileWrite } from '@/plugins/system/filesystem'\r\nimport { isMobile } from '@/plugins/system/device'\r\nimport { encryptDecriptMethods } from '@/plugins/encryptDecriptMethods'\r\nimport { checkPermission } from '@/utils/helpers/checkPermission'\r\nimport PermissionEnum from '@/utils/enum/permissions'\r\n\r\n/* eslint-disable */\r\nexport default defineComponent({\r\n setup() {\r\n const data = ref([])\r\n const app = getCurrentInstance()\r\n const { $swal, $toast } = app!.appContext.config.globalProperties\r\n const idManifest = ref(null)\r\n const showDialogDetail = ref(false)\r\n const isRefund = ref(false)\r\n const store = useStore()\r\n const route = useRoute()\r\n const router = useRouter()\r\n const canPrint = ref(checkPermission(PermissionEnum.CanPrint))\r\n\r\n const getAllData = async () => {\r\n store.dispatch('showLoading')\r\n const check = checkPermission(PermissionEnum.ShowDetLoadMan)\r\n const response = await deliveryManifestUseCase.getLoadingManifest(route.params.id, store.getters['appActiveUser/getAgent']?.id, check)\r\n if (!response.error) {\r\n data.value = response.result.map((item: any) => {\r\n item.resi = []\r\n item.loading = false\r\n return item\r\n })\r\n // console.log('response', data.value)\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const getManifestDetail = async (item: any) => {\r\n const response = await deliveryManifestUseCase.getLoadingManifestDetail(route.params.id, item.AgenId)\r\n if (response.error) {\r\n item.resi = []\r\n } else {\r\n item.resi = response.result\r\n }\r\n item.loading = false\r\n // console.log('getManifestDetail', response)\r\n }\r\n\r\n const expandedAccordion = (item: any) => {\r\n const dataItem = data.value[item.index] as any\r\n if (dataItem.resi.length === 0 && dataItem.TotalResi > 0) {\r\n dataItem.loading = true\r\n getManifestDetail(dataItem)\r\n }\r\n // console.log('item', data.value[item.index], item)\r\n }\r\n\r\n const hideDialogDetail = () => {\r\n showDialogDetail.value = false\r\n }\r\n\r\n const detail = (val: any) => {\r\n idManifest.value = val\r\n showDialogDetail.value = true\r\n }\r\n\r\n // converter base64\r\n const toBase64 = (file: any) => new Promise((resolve, reject) => {\r\n const reader = new FileReader()\r\n reader.readAsDataURL(file)\r\n reader.onload = () => resolve(reader.result)\r\n reader.onerror = (error) => reject(error)\r\n })\r\n\r\n const printResi = (val: any) => {\r\n // console.log('val click', val)\r\n $swal.fire({\r\n title: 'Pilih opsi ?',\r\n // text: 'You won be able to revert this!',\r\n // icon: 'question',\r\n imageUrl: require('@/assets/img/icon/printer.svg'),\r\n imageWidth: 400,\r\n imageHeight: 150,\r\n imageAlt: 'Custom image',\r\n showCancelButton: true,\r\n showDenyButton: true,\r\n confirmButtonColor: '#ff9800',\r\n cancelButtonColor: '#F44336',\r\n denyButtonColor: '#90A4AE',\r\n allowOutsideClick: false,\r\n confirmButtonText: 'Download Manifest',\r\n cancelButtonText: 'Kembali',\r\n denyButtonText: 'Tampilkan Manifest'\r\n }).then(async (result: any) => {\r\n // console.log('resultcompo', result)\r\n if (result.isConfirmed) {\r\n // eslint-disable-next-line no-shadow\r\n const result = await reportUseCase.getPdfManifest(Number(val.ManifestId))\r\n const name = `${val.Manifest.NoManifest}.pdf`\r\n let notif = null\r\n\r\n if (await isMobile()) {\r\n const file = await toBase64(new Blob([result.result]))\r\n await fileWrite(name, file)\r\n // console.log('loadingManifestComposable download via android')\r\n notif = 'Manifest berhasil diunduh ke folder : DOCUMENTS'\r\n $toast.add({\r\n severity: 'success', detail: notif, group: 'bc', life: 5000\r\n })\r\n } else {\r\n const fileURL = window.URL.createObjectURL(new Blob([result.result]))\r\n const fileLink = document.createElement('a')\r\n fileLink.href = fileURL\r\n fileLink.setAttribute('download', name)\r\n document.body.appendChild(fileLink)\r\n fileLink.click()\r\n // console.log('loadingManifestComposable download via web')\r\n }\r\n }\r\n if (result.isDenied) {\r\n const encryptData = encryptDecriptMethods.encrypt(val.ManifestId)\r\n const routeData = router.resolve({ name: 'report', params: { Id: encryptData, jenisReport: 'manifest' } })\r\n window.open(routeData.href, '_blank')\r\n }\r\n })\r\n }\r\n\r\n onMounted(() => {\r\n getAllData()\r\n })\r\n\r\n return {\r\n data,\r\n route,\r\n showDialogDetail,\r\n isRefund,\r\n idManifest,\r\n detail,\r\n getAllData,\r\n hideDialogDetail,\r\n expandedAccordion,\r\n getManifestDetail,\r\n printResi,\r\n canPrint,\r\n checkPermission,\r\n PermissionEnum\r\n }\r\n }\r\n})\r\n","import { render } from \"./LoadingManifest.vue?vue&type=template&id=d8bf2fac&ts=true\"\nimport script from \"@/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/loadingManifestComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/transactions/delivery-item/delivery-manifest/detail/tab-view/loadingManifestComposable.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__","import {\r\n ref,\r\n onMounted,\r\n getCurrentInstance,\r\n defineComponent\r\n} from 'vue'\r\nimport { useStore } from 'vuex'\r\nimport { useRoute } from 'vue-router'\r\nimport {\r\n deliveryManifestUseCase\r\n} from '@/domain/usecase'\r\nimport DepatureManifest from '@/views/transactions/delivery-item/delivery-manifest/detail/tab-view/DepatureManifest.vue'\r\nimport LoadingManifest from '@/views/transactions/delivery-item/delivery-manifest/detail/tab-view/LoadingManifest.vue'\r\nimport { checkPermission } from '@/utils/helpers/checkPermission'\r\nimport PermissionEnum from '@/utils/enum/permissions'\r\n\r\nexport default defineComponent({\r\n components: {\r\n DepatureManifest,\r\n LoadingManifest\r\n },\r\n setup() {\r\n const app = getCurrentInstance()\r\n const {\r\n $confirm, $toast, $strInd\r\n } = app!.appContext.config.globalProperties\r\n const data = ref({\r\n TransJadwalDetails: []\r\n })\r\n const currentTab = ref(0)\r\n const store = useStore()\r\n const route = useRoute()\r\n const id = ref(null) as any\r\n\r\n const getAllData = async () => {\r\n store.dispatch('showLoading')\r\n const response = await deliveryManifestUseCase.getOneDetail(id.value, {\r\n select: '&$select=KodeJadwal,Rit,TotalPendapatan',\r\n expand: `&$expand=TipeBus($select=Kode),TransJadwalDetails($filter=AgenId eq ${store.getters['appActiveUser/getAgent']?.id};$select=WaktuKeberangkatan)`\r\n })\r\n if (!response.error) {\r\n data.value = response.result\r\n } else {\r\n $toast.add({\r\n severity: 'error', detail: $strInd.toast.errorAllData, group: 'bc', life: 1500\r\n })\r\n }\r\n store.dispatch('hideLoading')\r\n }\r\n\r\n const changeTab = (val: any) => {\r\n currentTab.value = val\r\n }\r\n\r\n onMounted(() => {\r\n id.value = route.params.id\r\n if (id.value) {\r\n getAllData()\r\n }\r\n })\r\n\r\n return {\r\n data,\r\n currentTab,\r\n getAllData,\r\n changeTab,\r\n PermissionEnum,\r\n checkPermission\r\n }\r\n }\r\n})\r\n","import { render } from \"./DeliveryManifestDetail.vue?vue&type=template&id=63defa56&ts=true\"\nimport script from \"@/composables/transactions/delivery-item/delivery-manifest/detail/deliveryManifestDetailComposable.ts?vue&type=script&lang=ts\"\nexport * from \"@/composables/transactions/delivery-item/delivery-manifest/detail/deliveryManifestDetailComposable.ts?vue&type=script&lang=ts\"\n\nimport \"./DeliveryManifestDetail.vue?vue&type=style&index=0&id=63defa56&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__"],"sourceRoot":""}