@feedmepos/mf-inventory-portal 1.8.3 → 1.9.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/{App-dPmHx6yu.js → App-0333Hh25.js} +10 -10
  2. package/dist/{ApprovalView-DgtYa5fe.js → ApprovalView-CZLYqnnT.js} +9 -9
  3. package/dist/{BindingsDialog-BDxnEduy.js → BindingsDialog-CA02lqel.js} +2 -2
  4. package/dist/{BindingsPicker-CU4L71lq.js → BindingsPicker-CwDLZ-ki.js} +3 -3
  5. package/dist/{BindingsTable-CIgv0rsF.js → BindingsTable-BX87v_kq.js} +10 -10
  6. package/dist/{BulkReceiveRequestPage-6dF9r-mz.js → BulkReceiveRequestPage-Vh0Rfa8e.js} +217 -217
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DdhFwF_6.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-0fI4-Pao.js} +1 -1
  8. package/dist/{ClosingDraftView-B7SnGjGQ.js → ClosingDraftView-CxNgkVY_.js} +19 -19
  9. package/dist/{ClosingHistoryView-CvnkFqgN.js → ClosingHistoryView-CUCepuA7.js} +7 -7
  10. package/dist/{ClosingTemplateView-Ci4q3Eok.js → ClosingTemplateView-BHe5gCFH.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-D4cDxN4Q.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-B6Ge_6VY.js} +1 -1
  12. package/dist/{DefaultView-M_bM_S8P.js → DefaultView-V-9a_YfK.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-C8Wwriji.js → DeliveryOrderPrintPreview-BiwT9953.js} +9 -9
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-icB0dmIu.js → EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js} +11723 -11601
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BlBO823W.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-DLf5LdXz.js → FeatureCapabilityGate-B4VGdv_F.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-BmkxjjKw.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BbKcW3S_.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BCAV7Im3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8QTtw9i.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-_vGS-Cr4.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cz5saN2u.js} +2 -2
  21. package/dist/{FmMultiselectDialog-DeDs-TIr.js → FmMultiselectDialog-BK0r-tyZ.js} +2 -2
  22. package/dist/{FmMultiselectDialog-CsN4Ii6h.js → FmMultiselectDialog-CFx8Qcyc.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-f1NlYq6J.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cuyu_K9x.js} +5 -5
  24. package/dist/{ImportView-CX4_wi57.js → ImportView-Ci9vufCx.js} +7 -7
  25. package/dist/{IngredientsView-DoNd32Ib.js → IngredientsView-4s7vcW9U.js} +68 -68
  26. package/dist/{IntegrationExplorerView-BTdmAin2.js → IntegrationExplorerView-CtGuW0uI.js} +6 -6
  27. package/dist/{IntegrationPlatformView-DKXQMng3.js → IntegrationPlatformView-SpCAu3Fu.js} +2 -2
  28. package/dist/{IntegrationView-ORNTg24P.js → IntegrationView-DjQ4wbXh.js} +15 -15
  29. package/dist/{InventoryBindingForm-x2LSXl9d.js → InventoryBindingForm-Bb5k9tav.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-ChS4qHky.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CISHYfRi.js} +4 -4
  31. package/dist/{InventoryBindingSummary-fmTmxL2I.js → InventoryBindingSummary-CkN9QdNL.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DWtQm-Wt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C9hasqsO.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-CZUf9YLY.js → ProductionRunDetailPage-BTNY3v9C.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-B8gRymyO.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTOibYjJ.js} +8 -8
  35. package/dist/{ProductionRunPage-Bp0Wnkg0.js → ProductionRunPage-GrWt4iw2.js} +4 -4
  36. package/dist/{PublishView-CuXkWOeY.js → PublishView-1sBMVk4p.js} +5 -5
  37. package/dist/{PurchaseOrderPrintPreview-UasE6Fqr.js → PurchaseOrderPrintPreview-DYwbSUVy.js} +13 -13
  38. package/dist/ReceiveRequestView-DuU5hqQU.js +729 -0
  39. package/dist/{RecipeView-BNpt7mbz.js → RecipeView-CGkE2cX2.js} +16 -16
  40. package/dist/{SettingsView-CWCHOfEp.js → SettingsView-j5UKU2Z5.js} +7 -7
  41. package/dist/{StockView-BYhMoXqP.js → StockView-CMYUShkK.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DK360rT4.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcomAJoj.js} +1 -1
  43. package/dist/{SupplierView-pKEJiboE.js → SupplierView-whYEtaTf.js} +13 -13
  44. package/dist/{SurchargeView-muI0OHV3.js → SurchargeView-BqT_PfTk.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bp6i0ciG.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DM5BKMB_.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5GOz40T.js} +1 -1
  47. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js +4961 -0
  48. package/dist/{TransferTemplateView-DZuCe50F.js → TransferTemplateView-ZJYWzTCZ.js} +19 -19
  49. package/dist/{UnitCostHistoryView-BuZUjek3.js → UnitCostHistoryView-DWcB9nbL.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BFznmzuq.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js} +4 -4
  51. package/dist/{UnitView-C1tgtn8C.js → UnitView-BWX8BecE.js} +7 -7
  52. package/dist/{WarehouseView-B2K-eE4X.js → WarehouseView-CfWLJlP2.js} +8 -8
  53. package/dist/{WastageTemplateView-BwrSszU4.js → WastageTemplateView-Gb64MBgD.js} +15 -15
  54. package/dist/{app-B9scy5at.js → app-Coquqqkh.js} +1191 -1208
  55. package/dist/app.js +1 -1
  56. package/dist/{bulk-edit-simulation.helper-WjS-_pe-.js → bulk-edit-simulation.helper-DUAiYzrr.js} +2 -2
  57. package/dist/{closing-template-BTzPwPC9.js → closing-template-BK-yS2H4.js} +1 -1
  58. package/dist/{date2-D7Le3_bn.js → date2-79rkBzVf.js} +1 -1
  59. package/dist/{dayjs.min-D6kI4XKV.js → dayjs.min-CciBGvaL.js} +1 -1
  60. package/dist/{decimal-BgcHXtEW.js → decimal--BREmfoS.js} +2 -2
  61. package/dist/defineDeepModel-BRSFHwsW.js +19 -0
  62. package/dist/{duplicate-template-BwbInaPK.js → duplicate-template-CcEqsP8Q.js} +1 -1
  63. package/dist/{feature-Bq8EXhKG.js → feature-DdZZAV6X.js} +51 -46
  64. package/dist/{format-time-from-id-Cvflm51N.js → format-time-from-id-C7YvcXDM.js} +1 -1
  65. package/dist/{format-unit-display-Bg7Ff76p.js → format-unit-display-Dfiq_rw7.js} +13 -12
  66. package/dist/{id-to-date-DAY1m6PQ.js → id-to-date-6hzUYycs.js} +1 -1
  67. package/dist/{import-export.helper-0PY9JJKl.js → import-export.helper-D5QuDEDV.js} +5 -5
  68. package/dist/{index-BYyRelZz.js → index-CD9IHjp3.js} +1 -1
  69. package/dist/{index-7umhUG8Q.js → index-CPFsBIFO.js} +3 -3
  70. package/dist/{index-BK3t_4us.js → index-Crdk73ES.js} +1 -1
  71. package/dist/{lz-string-CK3kC4Eb.js → lz-string-CCRQaGZF.js} +1 -1
  72. package/dist/{netsuite-Cqoa7t4H.js → netsuite-C_VLrQoH.js} +2 -2
  73. package/dist/{netsuite-explorer-D96IbnhU.js → netsuite-explorer-BCuM8JZ1.js} +1 -1
  74. package/dist/{predefined-templates-B9c2s33F.js → predefined-templates-BV4NkB9O.js} +1 -1
  75. package/dist/{publish-versions-JlA3KSXU.js → publish-versions-BinCKAtn.js} +1 -1
  76. package/dist/{purchase-order-template-BFrjEkhb.js → purchase-order-template-BZUOWGmV.js} +1 -1
  77. package/dist/{recalculationUtils-anW9vYxT.js → recalculationUtils-ISOYv_rW.js} +1 -1
  78. package/dist/{row-action.enum-BDYmiPNT.js → row-action.enum-BQCb8S3i.js} +1 -1
  79. package/dist/{rules-BRjC9u5h.js → rules-CW08Pe1t.js} +3 -3
  80. package/dist/{stock-DusWqnp5.js → stock-Bh5IJNfM.js} +1 -1
  81. package/dist/{stock-RwhIoJMM.js → stock-Cv_zWpOe.js} +2 -2
  82. package/dist/stores/feature.d.ts +4 -2
  83. package/dist/{supplier-0dQn8fQ8.js → supplier-D3h2DfJz.js} +2 -2
  84. package/dist/{surcharge-i2ndhTQn.js → surcharge-9e8wa-vK.js} +1 -1
  85. package/dist/tsconfig.app.tsbuildinfo +1 -1
  86. package/dist/{uom-rules-CJfwzrbF.js → uom-rules-BRmDOW0t.js} +1 -1
  87. package/dist/{use-ingredient-select-dialog-CnUVZRMN.js → use-ingredient-select-dialog-D8ibotty.js} +2 -2
  88. package/dist/{use-inventory-binding-dialog-3c697f9B.js → use-inventory-binding-dialog-D2xL-vbo.js} +2 -2
  89. package/dist/{use-template-enabled-locations-DsR1qSPK.js → use-template-enabled-locations-Bb7vUiAf.js} +2 -2
  90. package/dist/{use-transfer-locations-Cqd4RYpk.js → use-transfer-locations-B2yday-I.js} +3 -2
  91. package/dist/{useHrmPermission-COaQXmjc.js → useHrmPermission-CPEJKpoy.js} +4 -4
  92. package/dist/{useNavigationMenu-CfNedojJ.js → useNavigationMenu-SHKOcKP-.js} +60 -60
  93. package/dist/{useSseClient-7I7QwRxw.js → useSseClient-ED9mFSXt.js} +1 -1
  94. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
  95. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
  96. package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
  97. package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
  98. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
  99. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
  100. package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
  101. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
  102. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
  103. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
  104. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
  106. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
  107. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
  108. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
  109. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
  110. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
  111. package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
  112. package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
  113. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
  114. package/dist/{vue-BUGlBKP5.js → vue-Tmyz7_6a.js} +49 -53
  115. package/dist/{vue-i18n-DMio3L-b.js → vue-i18n-BY0GeUdz.js} +492 -492
  116. package/dist/{xlsx.util-BUw39hzN.js → xlsx.util-DQnB9ape.js} +2 -2
  117. package/package.json +5 -5
  118. package/dist/ReceiveRequestView-QoBax953.js +0 -346
  119. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CNSfZLiT.js +0 -4953
  120. package/dist/defineDeepModel-1Dyqqhij.js +0 -19
@@ -1,35 +1,35 @@
1
- import { defineComponent as at, ref as P, onBeforeUnmount as Qt, computed as B, watch as Ke, createElementBlock as y, openBlock as i, Fragment as Re, createBlock as ve, createVNode as N, Teleport as dt, Transition as Ht, withCtx as Ie, createCommentVNode as E, createElementVNode as e, toDisplayString as p, unref as n, normalizeClass as H, createTextVNode as rt, renderList as tt, withModifiers as Kt, mergeModels as Gt, useModel as Xt, resolveComponent as Te, getCurrentScope as Zt, onScopeDispose as en, h as Ne, onMounted as tn, onUnmounted as nn, normalizeStyle as gt, watchEffect as an, isRef as Rt, normalizeProps as Pt, mergeProps as yt, guardReactiveProps as sn } from "vue";
2
- import { a as rn } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-BmkxjjKw.js";
3
- import { u as on, l as ln } from "./netsuite-Cqoa7t4H.js";
4
- import { u as mt, a as un, G as cn, $ as Dt, t as dn, a0 as Ge, q as mn, c as fn, D as ut, x as pn } from "./app-B9scy5at.js";
5
- import { i as _t, _ as vn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BbKcW3S_.js";
6
- import { a as Et, d as yn } from "./rules-BRjC9u5h.js";
7
- import { b as bn, d as hn, c as gn, e as _n, f as xn, P as Bt, h as wn, a as kn, _ as Cn, g as Fn } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CNSfZLiT.js";
8
- import { i as Sn } from "./id-to-date-DAY1m6PQ.js";
9
- import { d as Xe } from "./dayjs.min-D6kI4XKV.js";
10
- import { e as Rn } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-BFznmzuq.js";
1
+ import { defineComponent as at, ref as P, onBeforeUnmount as Qt, computed as B, watch as Ke, createElementBlock as y, openBlock as i, Fragment as Re, createBlock as ve, createVNode as E, Teleport as dt, Transition as Ht, withCtx as Ie, createCommentVNode as q, createElementVNode as e, toDisplayString as p, unref as n, normalizeClass as H, createTextVNode as rt, renderList as tt, withModifiers as Kt, mergeModels as Gt, useModel as Xt, resolveComponent as Te, getCurrentScope as Zt, onScopeDispose as en, h as Ee, onMounted as tn, onUnmounted as nn, normalizeStyle as gt, watchEffect as an, isRef as Rt, normalizeProps as Pt, mergeProps as yt, guardReactiveProps as sn } from "vue";
2
+ import { a as rn } from "./FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js";
3
+ import { u as on, l as ln } from "./netsuite-C_VLrQoH.js";
4
+ import { u as mt, a as un, G as cn, a1 as Dt, t as dn, a2 as Ge, q as mn, c as fn, D as ut, x as pn } from "./app-Coquqqkh.js";
5
+ import { i as _t, _ as vn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js";
6
+ import { a as qt, d as yn } from "./rules-CW08Pe1t.js";
7
+ import { b as bn, d as hn, c as gn, e as _n, f as xn, P as Bt, h as wn, a as kn, _ as Cn, g as Fn } from "./TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js";
8
+ import { i as Sn } from "./id-to-date-6hzUYycs.js";
9
+ import { d as Xe } from "./dayjs.min-CciBGvaL.js";
10
+ import { e as Rn } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js";
11
11
  import { u as Pn } from "./useTabStorage-BkIVScW_.js";
12
- import { u as Nt, _ as Dn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
13
- import { components as En, useSnackbar as ft, useDialog as Nn, useBreakpoints as qn } from "@feedmepos/ui-library";
14
- import { c as On, u as $n, _ as An, a as Bn, b as Tn } from "./EmailDialog.vue_vue_type_script_setup_true_lang-icB0dmIu.js";
12
+ import { u as Et, _ as Dn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
13
+ import { components as qn, useSnackbar as ft, useDialog as En, useBreakpoints as Nn } from "@feedmepos/ui-library";
14
+ import { d as On, u as $n, _ as An, a as Bn, c as Tn } from "./EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js";
15
15
  import { useI18n as it, useCoreStore as Tt } from "@feedmepos/mf-common";
16
- import { u as It, a as In } from "./supplier-0dQn8fQ8.js";
17
- import { u as xt, P as Ln } from "./feature-Bq8EXhKG.js";
18
- import { b as zn } from "./vue-BUGlBKP5.js";
19
- import { u as Mn } from "./stock-DusWqnp5.js";
20
- import { u as nt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bp6i0ciG.js";
21
- import { b as Lt, a as Un } from "./format-unit-display-Bg7Ff76p.js";
16
+ import { u as It, a as In } from "./supplier-D3h2DfJz.js";
17
+ import { u as xt, P as Ln } from "./feature-DdZZAV6X.js";
18
+ import { b as zn } from "./vue-Tmyz7_6a.js";
19
+ import { u as Mn } from "./stock-Bh5IJNfM.js";
20
+ import { u as nt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js";
21
+ import { b as Lt, a as Un } from "./format-unit-display-Dfiq_rw7.js";
22
22
  import { _ as Vn } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
23
23
  import { F as ot } from "./index-eGvSlWMU.js";
24
24
  import { P as Jn, J as jn, D as Wn } from "./app-C39bYJmq.js";
25
- import { a as Yn, t as Qn } from "./date2-D7Le3_bn.js";
26
- import { F as qt } from "./form-mode.enum-BKiNVH6A.js";
27
- import { p as Hn } from "./format-time-from-id-Cvflm51N.js";
25
+ import { a as Yn, t as Qn } from "./date2-79rkBzVf.js";
26
+ import { F as Nt } from "./form-mode.enum-BKiNVH6A.js";
27
+ import { p as Hn } from "./format-time-from-id-C7YvcXDM.js";
28
28
  import { defineStore as Kn } from "pinia";
29
- import { u as Gn } from "./useSseClient-7I7QwRxw.js";
29
+ import { u as Gn } from "./useSseClient-ED9mFSXt.js";
30
30
  import { u as Xn } from "./use-row-action-Cvq6VO38.js";
31
- import { R as ct, D as Zn } from "./row-action.enum-BDYmiPNT.js";
32
- import { u as ea } from "./vue-i18n-DMio3L-b.js";
31
+ import { R as ct, D as Zn } from "./row-action.enum-BQCb8S3i.js";
32
+ import { u as ea } from "./vue-i18n-BY0GeUdz.js";
33
33
  const ta = {
34
34
  key: 0,
35
35
  class: "fixed inset-0 z-[200] bg-white flex flex-col overflow-hidden",
@@ -61,10 +61,10 @@ const ta = {
61
61
  "data-testid": "wizard-destination-unavailable",
62
62
  role: "alert",
63
63
  class: "rounded-md border border-[#E0E0E0] bg-[#FAFAFA] px-16 py-8 mb-12 fm-typo-en-body-md-400 text-[#4B4B4B]"
64
- }, wa = { class: "mb-12" }, ka = { class: "border border-[#E0E0E0] rounded-sm overflow-hidden bg-white" }, Ca = ["onClick"], Fa = { class: "w-32 h-32 rounded-full bg-[#F0F0F0] flex items-center justify-center shrink-0" }, Sa = { class: "fm-typo-en-body-xs text-[#6B6C70]" }, Ra = { class: "flex-1 min-w-0" }, Pa = { class: "fm-typo-en-body-md-600 text-[#1C1C1E]" }, Da = { class: "fm-typo-en-body-sm-400 text-[#6B6C70] truncate" }, Ea = { class: "text-[10px] leading-[12px] font-semibold text-[#6B6C70] bg-[#F6F7F8] px-4 py-1 rounded-[4px] uppercase tracking-[0.08em] shrink-0" }, Na = {
64
+ }, wa = { class: "mb-12" }, ka = { class: "border border-[#E0E0E0] rounded-sm overflow-hidden bg-white" }, Ca = ["onClick"], Fa = { class: "w-32 h-32 rounded-full bg-[#F0F0F0] flex items-center justify-center shrink-0" }, Sa = { class: "fm-typo-en-body-xs text-[#6B6C70]" }, Ra = { class: "flex-1 min-w-0" }, Pa = { class: "fm-typo-en-body-md-600 text-[#1C1C1E]" }, Da = { class: "fm-typo-en-body-sm-400 text-[#6B6C70] truncate" }, qa = { class: "text-[10px] leading-[12px] font-semibold text-[#6B6C70] bg-[#F6F7F8] px-4 py-1 rounded-[4px] uppercase tracking-[0.08em] shrink-0" }, Ea = {
65
65
  key: 0,
66
66
  class: "w-[8px] h-[8px] rounded-full bg-[#FF7823]"
67
- }, qa = {
67
+ }, Na = {
68
68
  key: 0,
69
69
  class: "py-40 text-center text-[#B2B3B6] fm-typo-en-body-md-400"
70
70
  }, Oa = {
@@ -101,7 +101,7 @@ const ta = {
101
101
  }, Cs = { class: "flex flex-col gap-0.5 px-10 py-4 border-b border-[#F0F0F0]" }, Fs = { class: "text-[11px] leading-[14px] font-medium text-[#6B6C70]" }, Ss = { class: "flex flex-col gap-0.5 px-10 py-4 border-b border-[#F0F0F0]" }, Rs = { class: "text-[11px] leading-[14px] font-medium text-[#6B6C70]" }, Ps = {
102
102
  key: 0,
103
103
  class: "text-[11px] leading-[14px] text-[#6B6C70]"
104
- }, Ds = { class: "flex items-center justify-between gap-8 px-10 py-4" }, Es = { class: "text-[15px] leading-[20px] font-semibold text-[#1C1C1E]" }, Ns = { class: "fm-typo-en-title-md-600" }, qs = { class: "flex flex-col gap-16" }, Os = { class: "fm-typo-en-body-md-400" }, $s = { class: "max-h-[300px] overflow-y-auto" }, As = { class: "list-disc pl-16" }, Bs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ts = { class: "flex w-full gap-8 justify-end" }, Is = /* @__PURE__ */ at({
104
+ }, Ds = { class: "flex items-center justify-between gap-8 px-10 py-4" }, qs = { class: "text-[15px] leading-[20px] font-semibold text-[#1C1C1E]" }, Es = { class: "fm-typo-en-title-md-600" }, Ns = { class: "flex flex-col gap-16" }, Os = { class: "fm-typo-en-body-md-400" }, $s = { class: "max-h-[300px] overflow-y-auto" }, As = { class: "list-disc pl-16" }, Bs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ts = { class: "flex w-full gap-8 justify-end" }, Is = /* @__PURE__ */ at({
105
105
  __name: "CreateTransferWizard",
106
106
  props: {
107
107
  show: { type: Boolean },
@@ -110,28 +110,28 @@ const ta = {
110
110
  },
111
111
  emits: ["update:show", "submitted"],
112
112
  setup(C, { emit: _ }) {
113
- const { FmButton: x, FmDialog: $, FmIcon: O, FmTextField: L } = En, K = C, V = _, { t: o } = it(), s = ft(), g = mt(), J = It(), Fe = un(), m = Mn(), d = nt(), h = Lt(), c = xt(), w = zn("bulk-receive-transfer"), l = P(0), f = P(!1), T = P(null), W = P(""), R = P(null), j = P(null), I = P(null), se = P(""), ce = P(""), de = P(!1), me = P(!1), Je = P(!1), Se = P(!1), je = P(!1), We = P(/* @__PURE__ */ new Map()), Me = P(), le = P([]), re = P("idle");
113
+ const { FmButton: x, FmDialog: $, FmIcon: O, FmTextField: L } = qn, K = C, V = _, { t: o } = it(), s = ft(), g = mt(), J = It(), Fe = un(), m = Mn(), d = nt(), h = Lt(), c = xt(), w = zn("bulk-receive-transfer"), l = P(0), f = P(!1), T = P(null), W = P(""), R = P(null), j = P(null), I = P(null), se = P(""), ce = P(""), de = P(!1), me = P(!1), Je = P(!1), Se = P(!1), je = P(!1), We = P(/* @__PURE__ */ new Map()), Me = P(), le = P([]), re = P("idle");
114
114
  let Ce = null, we = null;
115
- function qe() {
115
+ function Ne() {
116
116
  we == null || we.abort(), we = null;
117
117
  }
118
- Qt(qe);
118
+ Qt(Ne);
119
119
  const Ze = B(
120
- () => re.value === "ready" && c.mustUsePoTemplate
120
+ () => re.value === "ready" && c.warehouseRequestRequiresTemplate
121
121
  );
122
122
  function Oe(t) {
123
- return !c.mustUsePoTemplate || !!t.template || t.supplier.internal === "restaurant";
123
+ return !c.warehouseRequestRequiresTemplate || !!t.template || t.supplier.internal === "restaurant";
124
124
  }
125
125
  function Ye() {
126
126
  var a;
127
127
  const t = T.value;
128
128
  return !!t && re.value === "ready" && Ce === t.dbName && ((a = g._currentLocation) == null ? void 0 : a.dbName) === t.dbName && w.state.value === "enabled";
129
129
  }
130
- const q = B(
130
+ const N = B(
131
131
  () => !!T.value && re.value !== "checking"
132
132
  ), k = B(() => R.value === "transfer" ? !!j.value : R.value === "template" ? !!I.value : !1), z = B(() => (le.value.length ? le.value : Y.value.items ?? []).some((a) => a.quantity.amount > 0)), ne = B(() => de.value), ae = B(
133
133
  () => z.value && me.value && Je.value && !de.value
134
- ), fe = B(() => l.value === 0 ? q.value : l.value === 1 ? k.value : l.value === 2 ? ae.value : !1), Le = B(
134
+ ), fe = B(() => l.value === 0 ? N.value : l.value === 1 ? k.value : l.value === 2 ? ae.value : !1), Le = B(
135
135
  () => l.value === 2 ? o("inventory.transfer.receiveRequest.bulk.wizard.createTransferBtn") : o("inventory.transfer.receiveRequest.bulk.wizard.continueBtn")
136
136
  ), $e = B(
137
137
  () => u.value === "Purchase" ? "Purchase method" : "Transfer method"
@@ -296,7 +296,7 @@ const ta = {
296
296
  Ke(
297
297
  () => K.show,
298
298
  (t) => {
299
- if (qe(), t && (l.value = 0, f.value = !1, T.value = null, re.value = "idle", Ce = null, R.value = null, j.value = null, I.value = null, W.value = "", se.value = "", ce.value = "", me.value = !1, Je.value = !1, le.value = [], Y.value = ge(), G.value = `${Math.random()}`, K.selectedOutletIds && K.selectedOutletIds.length === 1)) {
299
+ if (Ne(), t && (l.value = 0, f.value = !1, T.value = null, re.value = "idle", Ce = null, R.value = null, j.value = null, I.value = null, W.value = "", se.value = "", ce.value = "", me.value = !1, Je.value = !1, le.value = [], Y.value = ge(), G.value = `${Math.random()}`, K.selectedOutletIds && K.selectedOutletIds.length === 1)) {
300
300
  const a = g.locations.find(
301
301
  (S) => S.doc._id === K.selectedOutletIds[0]
302
302
  );
@@ -306,7 +306,7 @@ const ta = {
306
306
  );
307
307
  async function De(t) {
308
308
  var X;
309
- qe();
309
+ Ne();
310
310
  const a = new AbortController();
311
311
  we = a, Ce !== t.dbName && (Ce = null, R.value = null, j.value = null, I.value = null, le.value = []), me.value = !1, re.value = "checking", g._currentLocation = t;
312
312
  const S = await c.awaitLocationFeatures(t.dbName, {
@@ -329,7 +329,7 @@ const ta = {
329
329
  re.value = "ready", Ce = t.dbName, pt(a.signal), Mt(a.signal), h.fetchTemplates(), l.value = 1;
330
330
  }
331
331
  }
332
- function Ee(t) {
332
+ function qe(t) {
333
333
  T.value = t, re.value !== "checking" && (re.value = "idle");
334
334
  }
335
335
  function D() {
@@ -495,7 +495,7 @@ const ta = {
495
495
  }
496
496
  return (t, a) => (i(), y(Re, null, [
497
497
  (i(), ve(dt, { to: "body" }, [
498
- N(Ht, {
498
+ E(Ht, {
499
499
  "enter-active-class": "transition-opacity duration-150 ease-out",
500
500
  "enter-from-class": "opacity-0",
501
501
  "enter-to-class": "opacity-100",
@@ -507,10 +507,10 @@ const ta = {
507
507
  var S, X;
508
508
  return [
509
509
  t.show ? (i(), y("div", ta, [
510
- f.value ? E("", !0) : (i(), y("div", na, [
510
+ f.value ? q("", !0) : (i(), y("div", na, [
511
511
  e("span", aa, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.title")), 1),
512
512
  e("div", sa, [
513
- N(n(x), {
513
+ E(n(x), {
514
514
  variant: "tertiary",
515
515
  size: "md",
516
516
  label: n(o)("inventory.transfer.receiveRequest.bulk.wizard.cancelBtn"),
@@ -523,8 +523,8 @@ const ta = {
523
523
  "prepend-icon": "arrow_back",
524
524
  label: n(o)("inventory.transfer.receiveRequest.bulk.wizard.backBtn"),
525
525
  onClick: he
526
- }, null, 8, ["label"])) : E("", !0),
527
- N(n(x), {
526
+ }, null, 8, ["label"])) : q("", !0),
527
+ E(n(x), {
528
528
  size: "md",
529
529
  disabled: !fe.value,
530
530
  loading: de.value || re.value === "checking",
@@ -533,7 +533,7 @@ const ta = {
533
533
  }, null, 8, ["disabled", "loading", "label"])
534
534
  ])
535
535
  ])),
536
- f.value ? E("", !0) : (i(), y("div", ra, [
536
+ f.value ? q("", !0) : (i(), y("div", ra, [
537
537
  e("div", oa, [
538
538
  e("button", {
539
539
  class: "flex flex-col items-center gap-4 min-w-0 group",
@@ -606,21 +606,21 @@ const ta = {
606
606
  e("p", ba, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step1Desc")), 1)
607
607
  ]),
608
608
  re.value === "checking" ? (i(), y("div", ha, [
609
- N(n(O), {
609
+ E(n(O), {
610
610
  name: "progress_activity",
611
611
  class: "text-[#FF7823] animate-spin"
612
612
  }),
613
613
  a[12] || (a[12] = rt(" Checking outlet settings… "))
614
614
  ])) : re.value === "error" ? (i(), y("div", ga, [
615
615
  e("span", _a, " Settings for " + p((S = T.value) == null ? void 0 : S.name) + " couldn’t load, so its transfer requirements are unconfirmed. ", 1),
616
- N(n(x), {
616
+ E(n(x), {
617
617
  variant: "secondary",
618
618
  label: "Retry",
619
619
  onClick: D
620
620
  })
621
- ])) : re.value === "unavailable" ? (i(), y("div", xa, " Bulk Receive / Transfer isn’t available for " + p((X = T.value) == null ? void 0 : X.name) + ". Choose another outlet. ", 1)) : E("", !0),
621
+ ])) : re.value === "unavailable" ? (i(), y("div", xa, " Bulk Receive / Transfer isn’t available for " + p((X = T.value) == null ? void 0 : X.name) + ". Choose another outlet. ", 1)) : q("", !0),
622
622
  e("div", wa, [
623
- N(n(L), {
623
+ E(n(L), {
624
624
  "model-value": W.value,
625
625
  "onUpdate:modelValue": a[2] || (a[2] = (v) => W.value = v),
626
626
  "prepend-icon": "search",
@@ -636,7 +636,7 @@ const ta = {
636
636
  ((ue = T.value) == null ? void 0 : ue.dbName) === v.dbName ? "bg-[#FFF5EE]" : "hover:bg-[#FAFAFA]",
637
637
  xe > 0 ? "border-t border-[#F0F0F0]" : ""
638
638
  ]]),
639
- onClick: (Xr) => Ee(v)
639
+ onClick: (Xr) => qe(v)
640
640
  }, [
641
641
  e("div", Fa, [
642
642
  e("span", Sa, p(v.name.slice(0, 2).toUpperCase()), 1)
@@ -647,23 +647,23 @@ const ta = {
647
647
  rt(p(v.doc.profile.code ? `#${v.doc.profile.code}` : n(o)("inventory.transfer.receiveRequest.bulk.wizard.noCode")) + " ", 1),
648
648
  (ze = v.doc.profile.address) != null && ze.line1 || (He = v.doc.profile.address) != null && He.city ? (i(), y(Re, { key: 0 }, [
649
649
  rt(" · " + p([(vt = v.doc.profile.address) == null ? void 0 : vt.line1, (Ct = v.doc.profile.address) == null ? void 0 : Ct.city].filter(Boolean).join(" · ")), 1)
650
- ], 64)) : E("", !0)
650
+ ], 64)) : q("", !0)
651
651
  ])
652
652
  ]),
653
- e("span", Ea, p(v.type === "warehouse" ? "Warehouse" : "Restaurant"), 1),
653
+ e("span", qa, p(v.type === "warehouse" ? "Warehouse" : "Restaurant"), 1),
654
654
  e("div", {
655
655
  class: H([
656
656
  "w-[18px] h-[18px] rounded-full border flex items-center justify-center shrink-0 transition-colors duration-150",
657
657
  ((Ft = T.value) == null ? void 0 : Ft.dbName) === v.dbName ? "border-[#FF7823]" : "border-[#CCCCCC]"
658
658
  ])
659
659
  }, [
660
- ((St = T.value) == null ? void 0 : St.dbName) === v.dbName ? (i(), y("div", Na)) : E("", !0)
660
+ ((St = T.value) == null ? void 0 : St.dbName) === v.dbName ? (i(), y("div", Ea)) : q("", !0)
661
661
  ], 2)
662
662
  ], 10, Ca);
663
663
  }), 128)),
664
- ye.value.length === 0 ? (i(), y("div", qa, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : E("", !0)
664
+ ye.value.length === 0 ? (i(), y("div", Na, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : q("", !0)
665
665
  ])
666
- ])) : E("", !0),
666
+ ])) : q("", !0),
667
667
  l.value === 1 ? (i(), y("div", Oa, [
668
668
  e("div", $a, [
669
669
  e("h3", Aa, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2Heading")), 1),
@@ -681,7 +681,7 @@ const ta = {
681
681
  e("div", {
682
682
  class: H(["w-36 h-36 rounded-xl flex items-center justify-center shrink-0", R.value === "transfer" ? "bg-[#FF7823]" : "bg-[#F0F0F0]"])
683
683
  }, [
684
- N(n(O), {
684
+ E(n(O), {
685
685
  name: "swap_horiz",
686
686
  size: "md",
687
687
  class: H(R.value === "transfer" ? "text-white" : "text-[#6B6C70]")
@@ -695,7 +695,7 @@ const ta = {
695
695
  name: "check",
696
696
  size: "sm",
697
697
  class: "text-white"
698
- })) : E("", !0)
698
+ })) : q("", !0)
699
699
  ], 2)
700
700
  ]),
701
701
  e("div", La, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.outletToOutlet")), 1),
@@ -712,7 +712,7 @@ const ta = {
712
712
  e("div", {
713
713
  class: H(["w-36 h-36 rounded-xl flex items-center justify-center shrink-0", R.value === "template" ? "bg-[#FF7823]" : "bg-[#F0F0F0]"])
714
714
  }, [
715
- N(n(O), {
715
+ E(n(O), {
716
716
  name: "description",
717
717
  size: "md",
718
718
  class: H(R.value === "template" ? "text-white" : "text-[#6B6C70]")
@@ -726,7 +726,7 @@ const ta = {
726
726
  name: "check",
727
727
  size: "sm",
728
728
  class: "text-white"
729
- })) : E("", !0)
729
+ })) : q("", !0)
730
730
  ], 2)
731
731
  ]),
732
732
  e("div", Ua, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.fromTemplate")), 1),
@@ -735,9 +735,9 @@ const ta = {
735
735
  ]),
736
736
  R.value === "transfer" ? (i(), y(Re, { key: 0 }, [
737
737
  e("div", Ja, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2SourceHeading")), 1),
738
- Ze.value ? (i(), y("p", ja, " This outlet requires a template for purchases and warehouse transfers. Transfers from another outlet are still available. ")) : E("", !0),
738
+ Ze.value ? (i(), y("p", ja, " This outlet requires a template for purchases and warehouse transfers. Transfers from another outlet are still available. ")) : q("", !0),
739
739
  e("div", Wa, [
740
- N(n(L), {
740
+ E(n(L), {
741
741
  "model-value": se.value,
742
742
  "onUpdate:modelValue": a[5] || (a[5] = (v) => se.value = v),
743
743
  "prepend-icon": "search",
@@ -766,7 +766,7 @@ const ta = {
766
766
  rt(p(Z(v) ? `#${Z(v)}` : n(o)("inventory.transfer.receiveRequest.bulk.wizard.noCode")) + " ", 1),
767
767
  ee(v) ? (i(), y(Re, { key: 0 }, [
768
768
  rt(" · " + p(ee(v)), 1)
769
- ], 64)) : E("", !0)
769
+ ], 64)) : q("", !0)
770
770
  ])
771
771
  ]),
772
772
  e("span", es, p(v.type === "warehouse" ? "Warehouse" : v.type === "supplier" ? "Supplier" : "Restaurant"), 1),
@@ -776,17 +776,17 @@ const ta = {
776
776
  ((ze = j.value) == null ? void 0 : ze.doc._id) === v.doc._id ? "border-[#FF7823]" : "border-[#CCCCCC]"
777
777
  ])
778
778
  }, [
779
- ((He = j.value) == null ? void 0 : He.doc._id) === v.doc._id ? (i(), y("div", ts)) : E("", !0)
779
+ ((He = j.value) == null ? void 0 : He.doc._id) === v.doc._id ? (i(), y("div", ts)) : q("", !0)
780
780
  ], 2)
781
781
  ], 10, Qa);
782
782
  }), 128)),
783
- Ue.value.length === 0 ? (i(), y("div", ns, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : E("", !0)
783
+ Ue.value.length === 0 ? (i(), y("div", ns, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.noOutletsAvailable")), 1)) : q("", !0)
784
784
  ])
785
- ], 64)) : E("", !0),
785
+ ], 64)) : q("", !0),
786
786
  R.value === "template" ? (i(), y(Re, { key: 1 }, [
787
787
  e("div", as, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.step2TemplateHeading")), 1),
788
788
  e("div", ss, [
789
- N(n(L), {
789
+ E(n(L), {
790
790
  "model-value": ce.value,
791
791
  "onUpdate:modelValue": a[6] || (a[6] = (v) => ce.value = v),
792
792
  "prepend-icon": "search",
@@ -796,7 +796,7 @@ const ta = {
796
796
  }, null, 8, ["model-value", "placeholder"])
797
797
  ]),
798
798
  n(h).loading ? (i(), y("div", rs, [
799
- N(n(O), {
799
+ E(n(O), {
800
800
  name: "progress_activity",
801
801
  class: "text-[#FF7823] animate-spin"
802
802
  })
@@ -819,12 +819,12 @@ const ta = {
819
819
  I.value === v._id ? "border-[#FF7823]" : "border-[#CCCCCC]"
820
820
  ])
821
821
  }, [
822
- I.value === v._id ? (i(), y("div", ms)) : E("", !0)
822
+ I.value === v._id ? (i(), y("div", ms)) : q("", !0)
823
823
  ], 2)
824
824
  ], 10, is))), 128))
825
825
  ]))
826
- ], 64)) : E("", !0)
827
- ])) : E("", !0),
826
+ ], 64)) : q("", !0)
827
+ ])) : q("", !0),
828
828
  l.value === 2 ? (i(), y("div", fs, [
829
829
  e("div", ps, [
830
830
  e("h3", vs, p(U.value), 1)
@@ -847,7 +847,7 @@ const ta = {
847
847
  "sku-balance-map": We.value,
848
848
  "is-balance-loading": je.value
849
849
  }, null, 8, ["modelValue", "disabled", "locked-supplier", "suppliers", "skus", "last-closing-date", "sku-balance-map", "is-balance-loading"]))
850
- ])) : E("", !0)
850
+ ])) : q("", !0)
851
851
  ]),
852
852
  e("div", ys, [
853
853
  e("div", bs, [
@@ -860,7 +860,7 @@ const ta = {
860
860
  e("span", {
861
861
  class: H(["text-[15px] leading-[20px] font-semibold transition-colors duration-200", T.value ? "text-[#1C1C1E]" : "text-[#B2B3B6]"])
862
862
  }, p(b.value), 3),
863
- oe.value ? (i(), y("span", ks, p(oe.value), 1)) : E("", !0)
863
+ oe.value ? (i(), y("span", ks, p(oe.value), 1)) : q("", !0)
864
864
  ]),
865
865
  e("div", Cs, [
866
866
  e("span", Fs, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.summaryMethod")), 1),
@@ -876,10 +876,10 @@ const ta = {
876
876
  j.value || I.value ? "text-[#1C1C1E]" : "text-[#B2B3B6]"
877
877
  ])
878
878
  }, p(M.value), 3),
879
- te.value ? (i(), y("span", Ps, p(te.value), 1)) : E("", !0)
879
+ te.value ? (i(), y("span", Ps, p(te.value), 1)) : q("", !0)
880
880
  ]),
881
881
  e("div", Ds, [
882
- e("span", Es, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.summaryItems")), 1),
882
+ e("span", qs, p(n(o)("inventory.transfer.receiveRequest.bulk.wizard.summaryItems")), 1),
883
883
  e("span", {
884
884
  class: H(["text-[15px] leading-[20px] font-medium transition-colors duration-200", z.value ? "text-[#1C1C1E]" : "text-[#6B6C70]"])
885
885
  }, p(pe.value), 3)
@@ -888,29 +888,29 @@ const ta = {
888
888
  ])
889
889
  ])
890
890
  ])
891
- ])) : E("", !0)
891
+ ])) : q("", !0)
892
892
  ];
893
893
  }),
894
894
  _: 1
895
895
  })
896
896
  ])),
897
- N(n($), {
897
+ E(n($), {
898
898
  modelValue: Se.value,
899
899
  "onUpdate:modelValue": a[10] || (a[10] = (S) => Se.value = S),
900
900
  overlay: !0
901
901
  }, {
902
902
  "dialog-header": Ie(() => [
903
- e("div", Ns, p(n(o)("inventory.transfer.template.zeroQuantity.title")), 1)
903
+ e("div", Es, p(n(o)("inventory.transfer.template.zeroQuantity.title")), 1)
904
904
  ]),
905
905
  "dialog-footer": Ie(() => [
906
906
  e("div", Ts, [
907
- N(n(x), {
907
+ E(n(x), {
908
908
  label: n(o)("common.cancel"),
909
909
  variant: "tertiary",
910
910
  size: "md",
911
911
  onClick: a[9] || (a[9] = (S) => Se.value = !1)
912
912
  }, null, 8, ["label"]),
913
- N(n(x), {
913
+ E(n(x), {
914
914
  label: n(o)("inventory.transfer.template.zeroQuantity.removeAll"),
915
915
  variant: "primary",
916
916
  size: "md",
@@ -920,7 +920,7 @@ const ta = {
920
920
  ])
921
921
  ]),
922
922
  default: Ie(() => [
923
- e("div", qs, [
923
+ e("div", Ns, [
924
924
  e("div", Os, p(n(o)("inventory.transfer.template.zeroQuantity.message", {
925
925
  count: ke.value.length
926
926
  })), 1),
@@ -1015,10 +1015,10 @@ const ta = {
1015
1015
  ref: O,
1016
1016
  src: V.blobUrl,
1017
1017
  class: "w-full h-full border-none"
1018
- }, null, 8, js)) : E("", !0)
1018
+ }, null, 8, js)) : q("", !0)
1019
1019
  ])
1020
1020
  ])
1021
- ])) : E("", !0)
1021
+ ])) : q("", !0)
1022
1022
  ]));
1023
1023
  }
1024
1024
  }), Ys = /* @__PURE__ */ at({
@@ -1069,12 +1069,12 @@ const ta = {
1069
1069
  })
1070
1070
  }, {
1071
1071
  "menu-button": Ie(() => [
1072
- N(w, {
1072
+ E(w, {
1073
1073
  label: g.value,
1074
1074
  class: "text-fm-color-neutral-gray-400 cursor-pointer"
1075
1075
  }, {
1076
1076
  default: Ie(() => [
1077
- N(c, {
1077
+ E(c, {
1078
1078
  name: "storefront",
1079
1079
  outline: "",
1080
1080
  size: "sm"
@@ -1082,7 +1082,7 @@ const ta = {
1082
1082
  e("div", {
1083
1083
  class: H(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap max-w-[200px]", { "text-fm-color-typo-primary": V.value > 0 }])
1084
1084
  }, p(g.value), 3),
1085
- N(c, {
1085
+ E(c, {
1086
1086
  name: O.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
1087
1087
  outline: "",
1088
1088
  size: "sm"
@@ -1092,13 +1092,13 @@ const ta = {
1092
1092
  }, 8, ["label"])
1093
1093
  ]),
1094
1094
  default: Ie(() => [
1095
- N(l, {
1095
+ E(l, {
1096
1096
  "model-value": L.value,
1097
1097
  "onUpdate:modelValue": h[0] || (h[0] = (W) => L.value = W),
1098
1098
  placeholder: n(_)("inventory.common.table.toolbar.filterItems"),
1099
1099
  class: "my-8"
1100
1100
  }, null, 8, ["model-value", "placeholder"]),
1101
- N(f, {
1101
+ E(f, {
1102
1102
  "model-value": o.value,
1103
1103
  label: n(_)("inventory.common.selectAll"),
1104
1104
  "has-checkbox": !0,
@@ -1117,7 +1117,7 @@ const ta = {
1117
1117
  key: 0,
1118
1118
  disabled: "",
1119
1119
  label: n(_)("inventory.common.noResultFound")
1120
- }, null, 8, ["label"])) : E("", !0)
1120
+ }, null, 8, ["label"])) : q("", !0)
1121
1121
  ]),
1122
1122
  _: 1
1123
1123
  }, 8, ["model-value"]);
@@ -1283,7 +1283,7 @@ const wt = Kn("bulkJob", () => {
1283
1283
  let bt = 0;
1284
1284
  const ht = P();
1285
1285
  function Xs(C) {
1286
- const _ = Nn(), x = mt(), $ = xt(), O = It(), L = Tt(), K = Un(), V = Lt(), o = P(!1), s = ft(), { t: g } = it(), J = nt(), Fe = bn(), m = wt(), d = P([]), h = P([]), c = P(new Array()), w = P(
1286
+ const _ = En(), x = mt(), $ = xt(), O = It(), L = Tt(), K = Un(), V = Lt(), o = P(!1), s = ft(), { t: g } = it(), J = nt(), Fe = bn(), m = wt(), d = P([]), h = P([]), c = P(new Array()), w = P(
1287
1287
  new Array()
1288
1288
  ), l = P(
1289
1289
  C != null && C.startDate && (C != null && C.endDate) ? C : _t()
@@ -1386,7 +1386,7 @@ function Xs(C) {
1386
1386
  title: "Outlet settings couldn’t load",
1387
1387
  message: "Transfer template requirements are unconfirmed. Refresh to try again.",
1388
1388
  type: "warning"
1389
- }), F === "ready" && $.mustUsePoTemplate && await V.fetchTemplates();
1389
+ }), F === "ready" && $.warehouseRequestRequiresTemplate && await V.fetchTemplates();
1390
1390
  } catch (b) {
1391
1391
  if (r.signal.aborted) return;
1392
1392
  s.open({
@@ -1422,7 +1422,7 @@ function Xs(C) {
1422
1422
  function we(r, u) {
1423
1423
  l.value = { startDate: r, endDate: u }, re();
1424
1424
  }
1425
- const qe = P();
1425
+ const Ne = P();
1426
1426
  async function Ze(r) {
1427
1427
  var Z, ee, oe;
1428
1428
  const u = d.value[0];
@@ -1450,7 +1450,7 @@ function Xs(C) {
1450
1450
  var be;
1451
1451
  if (b.signal.aborted || ((be = x._currentLocation) == null ? void 0 : be.dbName) !== A) return;
1452
1452
  const pe = {
1453
- mode: qt.CREATE,
1453
+ mode: Nt.CREATE,
1454
1454
  modelValue: r || void 0,
1455
1455
  show: !0,
1456
1456
  "onUpdate:show"(Pe) {
@@ -1462,7 +1462,7 @@ function Xs(C) {
1462
1462
  lt.value = pe;
1463
1463
  }
1464
1464
  let Q;
1465
- if ($.mustUsePoTemplate && !(r != null && r.template)) {
1465
+ if ($.warehouseRequestRequiresTemplate && !(r != null && r.template)) {
1466
1466
  if (await V.fetchTemplates(), b.signal.aborted || ((oe = x._currentLocation) == null ? void 0 : oe.dbName) !== A) return;
1467
1467
  _.open({
1468
1468
  title: "Create transfer",
@@ -1481,11 +1481,11 @@ function Xs(C) {
1481
1481
  async function Ye(r, u) {
1482
1482
  return r.items != null ? r : await J.getPurchaseOrderById(r._id, void 0, u);
1483
1483
  }
1484
- async function q(r) {
1484
+ async function N(r) {
1485
1485
  await Oe.run(async (u) => {
1486
1486
  Se(r);
1487
1487
  const b = await Ye(r, u), A = {
1488
- mode: qt.UPDATE,
1488
+ mode: Nt.UPDATE,
1489
1489
  modelValue: fn(b),
1490
1490
  show: !0,
1491
1491
  "onUpdate:show"(M) {
@@ -1522,7 +1522,7 @@ function Xs(C) {
1522
1522
  async onDispatch({ sender: G, message: ke }) {
1523
1523
  var De;
1524
1524
  try {
1525
- const { jobId: Ee } = await J.enqueueBulkEmail(F, {
1525
+ const { jobId: qe } = await J.enqueueBulkEmail(F, {
1526
1526
  senderEmail: G.emailAddress,
1527
1527
  senderName: G.name || ((De = L.currentBusiness.value) == null ? void 0 : De.name) || "FeedMe Inventory",
1528
1528
  items: [
@@ -1536,7 +1536,7 @@ function Xs(C) {
1536
1536
  ]
1537
1537
  });
1538
1538
  m.addJob({
1539
- jobId: Ee,
1539
+ jobId: qe,
1540
1540
  type: "email",
1541
1541
  dbName: F,
1542
1542
  title: `Email PO #${r.seqNumber ?? r._id}`,
@@ -1552,12 +1552,12 @@ function Xs(C) {
1552
1552
  message: g("inventory.transfer.receiveRequest.bulk.emailQueued"),
1553
1553
  type: "success"
1554
1554
  });
1555
- } catch (Ee) {
1556
- throw console.error("Single email enqueue failed", Ee), s.open({
1555
+ } catch (qe) {
1556
+ throw console.error("Single email enqueue failed", qe), s.open({
1557
1557
  title: g("inventory.transfer.receiveRequest.bulk.emailSendError"),
1558
1558
  message: g("inventory.transfer.receiveRequest.bulk.emailErrorMsg"),
1559
1559
  type: "error"
1560
- }), Ee;
1560
+ }), qe;
1561
1561
  }
1562
1562
  }
1563
1563
  };
@@ -1603,13 +1603,13 @@ function Xs(C) {
1603
1603
  canResubmit: !1,
1604
1604
  canApprove: !1,
1605
1605
  "onUpdate:show"(Z) {
1606
- qe.value && (qe.value = { ...qe.value, show: Z });
1606
+ Ne.value && (Ne.value = { ...Ne.value, show: Z });
1607
1607
  },
1608
1608
  scope: Bt.RECEIVE_REQUEST,
1609
1609
  receivedMap: xn(b) ?? {},
1610
1610
  shipments: c.value
1611
1611
  };
1612
- qe.value = F;
1612
+ Ne.value = F;
1613
1613
  }
1614
1614
  async function ae(r, u, b, A, M) {
1615
1615
  const F = wn();
@@ -1773,7 +1773,7 @@ function Xs(C) {
1773
1773
  }
1774
1774
  }
1775
1775
  async function Ue(r) {
1776
- var ke, De, Ee;
1776
+ var ke, De, qe;
1777
1777
  if (!await U("email")) return;
1778
1778
  const u = [
1779
1779
  Dt.enum.RECEIVING,
@@ -1811,7 +1811,7 @@ function Xs(C) {
1811
1811
  const te = [], pe = [];
1812
1812
  for (const D of b)
1813
1813
  oe(D) ? te.push(D) : pe.push(D);
1814
- const be = Ne(
1814
+ const be = Ee(
1815
1815
  "p",
1816
1816
  { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
1817
1817
  g("inventory.transfer.receiveRequest.bulk.emailAllowedStatusInfo")
@@ -1822,24 +1822,24 @@ function Xs(C) {
1822
1822
  const Ve = _e.supplier._id;
1823
1823
  D.has(Ve) || D.set(Ve, { supplierName: _e.supplier.name, pos: [] }), D.get(Ve).pos.push(_e);
1824
1824
  }
1825
- const ie = Ne("div", { class: "flex flex-col gap-12" }, [
1825
+ const ie = Ee("div", { class: "flex flex-col gap-12" }, [
1826
1826
  be,
1827
- Ne(
1827
+ Ee(
1828
1828
  "p",
1829
1829
  { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
1830
1830
  g("inventory.transfer.receiveRequest.bulk.missingEmailMsg", [pe.length])
1831
1831
  ),
1832
- Ne(
1832
+ Ee(
1833
1833
  "div",
1834
1834
  { class: "flex flex-col gap-4 max-h-[320px] overflow-y-auto rounded-md border border-fm-color-neutral-gray-100 p-8" },
1835
1835
  [...D.values()].map(
1836
- ({ supplierName: _e, pos: Ve }) => Ne("div", { class: "flex flex-col gap-2 py-6 border-b border-fm-color-neutral-gray-100 last:border-0" }, [
1837
- Ne("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, _e),
1838
- Ne(
1836
+ ({ supplierName: _e, pos: Ve }) => Ee("div", { class: "flex flex-col gap-2 py-6 border-b border-fm-color-neutral-gray-100 last:border-0" }, [
1837
+ Ee("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, _e),
1838
+ Ee(
1839
1839
  "div",
1840
1840
  { class: "flex flex-wrap gap-4" },
1841
1841
  Ve.map(
1842
- (Qe) => Ne("span", {
1842
+ (Qe) => Ee("span", {
1843
1843
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 rounded px-6 py-2"
1844
1844
  }, `PO #${Qe.seqNumber ?? Qe._id}`)
1845
1845
  )
@@ -1847,12 +1847,12 @@ function Xs(C) {
1847
1847
  ])
1848
1848
  )
1849
1849
  ),
1850
- Ne(
1850
+ Ee(
1851
1851
  "p",
1852
1852
  { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
1853
1853
  g("inventory.transfer.receiveRequest.bulk.emailWillSendCount", [te.length, b.length])
1854
1854
  ),
1855
- Ne(
1855
+ Ee(
1856
1856
  "p",
1857
1857
  { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
1858
1858
  g("inventory.transfer.receiveRequest.bulk.missingEmailConfirm")
@@ -1871,9 +1871,9 @@ function Xs(C) {
1871
1871
  }).onPrimary(() => _e(!0)).onSecondary(() => _e(!1));
1872
1872
  })) return;
1873
1873
  } else {
1874
- const D = Ne("div", { class: "flex flex-col gap-12" }, [
1874
+ const D = Ee("div", { class: "flex flex-col gap-12" }, [
1875
1875
  be,
1876
- Ne(
1876
+ Ee(
1877
1877
  "p",
1878
1878
  { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
1879
1879
  g("inventory.transfer.receiveRequest.bulk.emailAllConfirmMsg", [te.length])
@@ -1941,7 +1941,7 @@ function Xs(C) {
1941
1941
  try {
1942
1942
  const { jobId: D } = await J.enqueueBulkEmail(G, {
1943
1943
  senderEmail: Ae.emailAddress,
1944
- senderName: Ae.name || ((Ee = L.currentBusiness.value) == null ? void 0 : Ee.name) || "FeedMe Inventory",
1944
+ senderName: Ae.name || ((qe = L.currentBusiness.value) == null ? void 0 : qe.name) || "FeedMe Inventory",
1945
1945
  items: Y
1946
1946
  });
1947
1947
  m.addJob({
@@ -1985,8 +1985,8 @@ function Xs(C) {
1985
1985
  loading: o,
1986
1986
  transferDialogProps: lt,
1987
1987
  promptCreateTransferDialog: Ze,
1988
- promptUpdateTransferDialog: q,
1989
- transferDetailsProps: qe,
1988
+ promptUpdateTransferDialog: N,
1989
+ transferDetailsProps: Ne,
1990
1990
  promptShowTransferDetails: ne,
1991
1991
  resolvePO: z,
1992
1992
  submitAction: fe,
@@ -2167,17 +2167,17 @@ const nr = {
2167
2167
  ref: K,
2168
2168
  class: "fixed bottom-24 right-24 z-[9998] flex flex-col items-end gap-8"
2169
2169
  }, [
2170
- L.value ? E("", !0) : (i(), y("button", {
2170
+ L.value ? q("", !0) : (i(), y("button", {
2171
2171
  key: 0,
2172
2172
  class: "flex items-center gap-8 bg-fm-color-primary text-white rounded-full px-16 py-[6px] shadow-lg fm-typo-en-body-sm-600 cursor-pointer",
2173
2173
  onClick: w[0] || (w[0] = (f) => L.value = !0)
2174
2174
  }, [
2175
- N(l, {
2175
+ E(l, {
2176
2176
  name: "cloud_upload",
2177
2177
  size: "sm"
2178
2178
  }),
2179
2179
  e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.backgroundJobsTitle")), 1),
2180
- n(x).activeJobs.length > 0 ? (i(), y("span", nr, p(n(x).activeJobs.length), 1)) : E("", !0)
2180
+ n(x).activeJobs.length > 0 ? (i(), y("span", nr, p(n(x).activeJobs.length), 1)) : q("", !0)
2181
2181
  ])),
2182
2182
  L.value ? (i(), y("div", ar, [
2183
2183
  e("div", sr, [
@@ -2187,7 +2187,7 @@ const nr = {
2187
2187
  onClick: w[1] || (w[1] = (f) => L.value = !1),
2188
2188
  class: "text-fm-color-typo-secondary hover:text-fm-color-typo-primary"
2189
2189
  }, [
2190
- N(l, {
2190
+ E(l, {
2191
2191
  name: "close",
2192
2192
  size: "sm"
2193
2193
  })
@@ -2214,11 +2214,11 @@ const nr = {
2214
2214
  "aria-label": "Download",
2215
2215
  onClick: (W) => g(f)
2216
2216
  }, [
2217
- N(l, {
2217
+ E(l, {
2218
2218
  name: o.value.has(f.jobId) ? "progress_activity" : "download",
2219
2219
  size: "sm"
2220
2220
  }, null, 8, ["name"])
2221
- ], 8, mr)) : E("", !0),
2221
+ ], 8, mr)) : q("", !0),
2222
2222
  f.status === "waiting" || f.status === "active" ? (i(), y("button", {
2223
2223
  key: 1,
2224
2224
  class: "text-fm-color-semantic-error-500 hover:opacity-80 disabled:opacity-40",
@@ -2227,11 +2227,11 @@ const nr = {
2227
2227
  "aria-label": "Cancel",
2228
2228
  onClick: (W) => J(f)
2229
2229
  }, [
2230
- N(l, {
2230
+ E(l, {
2231
2231
  name: s.value.has(f.jobId) ? "progress_activity" : "cancel",
2232
2232
  size: "sm"
2233
2233
  }, null, 8, ["name"])
2234
- ], 8, fr)) : E("", !0),
2234
+ ], 8, fr)) : q("", !0),
2235
2235
  m(f.status) ? (i(), y("button", {
2236
2236
  key: 2,
2237
2237
  class: "text-fm-color-typo-secondary hover:text-fm-color-typo-primary",
@@ -2239,11 +2239,11 @@ const nr = {
2239
2239
  "aria-label": "Dismiss",
2240
2240
  onClick: (W) => Fe(f.jobId)
2241
2241
  }, [
2242
- N(l, {
2242
+ E(l, {
2243
2243
  name: "close",
2244
2244
  size: "sm"
2245
2245
  })
2246
- ], 8, pr)) : E("", !0)
2246
+ ], 8, pr)) : q("", !0)
2247
2247
  ])
2248
2248
  ]),
2249
2249
  f.status === "active" || f.status === "waiting" ? (i(), y("div", vr, [
@@ -2254,60 +2254,60 @@ const nr = {
2254
2254
  }, null, 4)
2255
2255
  ]),
2256
2256
  e("div", br, [
2257
- f.currentItem ? (i(), y("span", hr, p(f.currentItem), 1)) : E("", !0),
2257
+ f.currentItem ? (i(), y("span", hr, p(f.currentItem), 1)) : q("", !0),
2258
2258
  e("span", gr, p(f.current) + " / " + p(f.total), 1)
2259
2259
  ])
2260
- ])) : E("", !0),
2260
+ ])) : q("", !0),
2261
2261
  f.status === "completed" && f.errorCount === 0 ? (i(), y("div", _r, [
2262
- N(l, {
2262
+ E(l, {
2263
2263
  name: "check_circle",
2264
2264
  size: "sm"
2265
2265
  }),
2266
2266
  e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobDone")), 1)
2267
- ])) : E("", !0),
2267
+ ])) : q("", !0),
2268
2268
  f.status === "completed" && (((T = f.stalePoIds) == null ? void 0 : T.length) ?? 0) > 0 ? (i(), y("div", xr, [
2269
- N(l, {
2269
+ E(l, {
2270
2270
  name: "warning",
2271
2271
  size: "sm"
2272
2272
  }),
2273
2273
  e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobStalePos", [f.stalePoIds.length])), 1)
2274
- ])) : E("", !0),
2274
+ ])) : q("", !0),
2275
2275
  f.status === "cancelled" ? (i(), y("div", wr, [
2276
- N(l, {
2276
+ E(l, {
2277
2277
  name: "do_not_disturb_on",
2278
2278
  size: "sm"
2279
2279
  }),
2280
2280
  e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobCancelled")), 1)
2281
- ])) : E("", !0),
2281
+ ])) : q("", !0),
2282
2282
  f.status === "failed" ? (i(), y("div", kr, [
2283
- N(l, {
2283
+ E(l, {
2284
2284
  name: "cancel",
2285
2285
  size: "sm"
2286
2286
  }),
2287
2287
  f.errorCount > 0 ? (i(), y("span", Cr, p(n(_)("inventory.transfer.receiveRequest.bulk.jobDoneWithErrors", [f.errorCount])), 1)) : (i(), y("span", Fr, p(n(_)("inventory.transfer.receiveRequest.bulk.jobFailed")), 1))
2288
- ])) : E("", !0),
2288
+ ])) : q("", !0),
2289
2289
  m(f.status) && f.completedAt ? (i(), y("div", Sr, [
2290
2290
  e("span", null, p(n(_)("inventory.transfer.receiveRequest.bulk.jobCompletedIn", [d(f.completedAt - f.startedAt)])), 1),
2291
2291
  f.zipSizeBytes ? (i(), y(Re, { key: 0 }, [
2292
2292
  w[2] || (w[2] = e("span", null, "·", -1)),
2293
2293
  e("span", null, p(h(f.zipSizeBytes)), 1)
2294
- ], 64)) : E("", !0)
2295
- ])) : E("", !0)
2294
+ ], 64)) : q("", !0)
2295
+ ])) : q("", !0)
2296
2296
  ]);
2297
2297
  }), 128))
2298
2298
  ])
2299
- ])) : E("", !0)
2300
- ], 512)) : E("", !0)
2299
+ ])) : q("", !0)
2300
+ ], 512)) : q("", !0)
2301
2301
  ]);
2302
2302
  };
2303
2303
  }
2304
2304
  }), Pr = {
2305
2305
  key: 0,
2306
2306
  class: "flex flex-col items-center justify-center py-48 gap-8 text-fm-color-typo-secondary"
2307
- }, Dr = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, Er = { class: "flex-1 xs:w-full sm:w-full" }, Nr = {
2307
+ }, Dr = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, qr = { class: "flex-1 xs:w-full sm:w-full" }, Er = {
2308
2308
  key: 0,
2309
2309
  class: "flex-1"
2310
- }, qr = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Or = {
2310
+ }, Nr = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, Or = {
2311
2311
  key: 0,
2312
2312
  class: "flex flex-col items-center justify-center py-48 gap-8 text-fm-color-typo-secondary"
2313
2313
  }, $r = { class: "fm-typo-en-body-md-400" }, Ar = {
@@ -2336,29 +2336,29 @@ const nr = {
2336
2336
  });
2337
2337
  const $ = Pn(), O = xt(), L = on();
2338
2338
  function K() {
2339
- const q = {
2339
+ const N = {
2340
2340
  name: "",
2341
2341
  ..._t()
2342
2342
  }, k = $.getItem(At);
2343
- if (!k) return q;
2343
+ if (!k) return N;
2344
2344
  try {
2345
2345
  return JSON.parse(k);
2346
2346
  } catch {
2347
- return q;
2347
+ return N;
2348
2348
  }
2349
2349
  }
2350
2350
  function V() {
2351
2351
  $.setItem(At, JSON.stringify(o.value));
2352
2352
  }
2353
- const o = P(K()), s = Xs(o.value), g = P(!1), { selectedLocationDbNames: J } = s, Fe = B(() => T.value.filter((q) => J.value.includes(q.dbName)).map((q) => q.doc._id)), {
2353
+ const o = P(K()), s = Xs(o.value), g = P(!1), { selectedLocationDbNames: J } = s, Fe = B(() => T.value.filter((N) => J.value.includes(N.dbName)).map((N) => N.doc._id)), {
2354
2354
  columnDefs: m,
2355
2355
  showPdfDialog: d,
2356
2356
  pdfPreviewLoading: h,
2357
2357
  pdfPreviewBlobUrl: c
2358
2358
  } = tr(s, s.shipments), w = mt(), l = pn(), f = Tt(), T = P([]);
2359
2359
  an(() => {
2360
- const q = w.locations;
2361
- q.length > 0 && (T.value = q);
2360
+ const N = w.locations;
2361
+ N.length > 0 && (T.value = N);
2362
2362
  });
2363
2363
  async function W() {
2364
2364
  var k;
@@ -2371,25 +2371,25 @@ const nr = {
2371
2371
  }
2372
2372
  Ke(
2373
2373
  [() => f.sessionUser.value, () => f.currentBusiness.value],
2374
- ([q, k]) => {
2375
- q && k && W();
2374
+ ([N, k]) => {
2375
+ N && k && W();
2376
2376
  },
2377
2377
  { immediate: !0 }
2378
2378
  );
2379
2379
  const R = B(() => s.loading.value), j = B(
2380
- () => s.failedLocations.value.map((q) => {
2380
+ () => s.failedLocations.value.map((N) => {
2381
2381
  var k;
2382
- return ((k = w.locations.find((z) => z.dbName === q.dbName)) == null ? void 0 : k.name) ?? q.dbName;
2382
+ return ((k = w.locations.find((z) => z.dbName === N.dbName)) == null ? void 0 : k.name) ?? N.dbName;
2383
2383
  }).join(", ")
2384
2384
  ), I = B(
2385
- () => s.failedLocations.value.some((q) => q.retryable)
2385
+ () => s.failedLocations.value.some((N) => N.retryable)
2386
2386
  );
2387
- function se(q) {
2387
+ function se(N) {
2388
2388
  var k;
2389
- return q.itemCount ?? ((k = q.items) == null ? void 0 : k.length) ?? 0;
2389
+ return N.itemCount ?? ((k = N.items) == null ? void 0 : k.length) ?? 0;
2390
2390
  }
2391
2391
  async function ce() {
2392
- const q = `inventory-record_${Xe(o.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Xe(o.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`;
2392
+ const N = `inventory-record_${Xe(o.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Xe(o.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`;
2393
2393
  let k = [];
2394
2394
  try {
2395
2395
  k = await s.fetchFullPurchaseOrders();
@@ -2404,9 +2404,9 @@ const nr = {
2404
2404
  const z = k.flatMap(
2405
2405
  (ae) => ae.items.map((fe) => {
2406
2406
  var u, b;
2407
- const Le = new Date(Sn(ae._id) ?? ""), $e = ae.effectiveAt ? new Date(ae.effectiveAt) : void 0, U = Et(
2407
+ const Le = new Date(Sn(ae._id) ?? ""), $e = ae.effectiveAt ? new Date(ae.effectiveAt) : void 0, U = qt(
2408
2408
  Fn(fe.sku, ae.deliveryOrder || [])
2409
- ), ye = Et(fe.quantity), Ue = ((u = fe == null ? void 0 : fe.measurement) == null ? void 0 : u.abbrev) || fe.sku.unit.abbrev;
2409
+ ), ye = qt(fe.quantity), Ue = ((u = fe == null ? void 0 : fe.measurement) == null ? void 0 : u.abbrev) || fe.sku.unit.abbrev;
2410
2410
  return {
2411
2411
  Location: ((b = w.locations.find((A) => A.dbName === ae._locationDbName)) == null ? void 0 : b.name) ?? "",
2412
2412
  "SKU code": fe.code,
@@ -2434,27 +2434,27 @@ const nr = {
2434
2434
  "Ordered quantity",
2435
2435
  "Unit"
2436
2436
  ];
2437
- O.enableBackdatePo && ne.insert("Effective at", 5), O.enableTotalCost && ne.push("Total cost"), await Rn([{ name: "purchases", data: z, columns: ne }], q), x.open({
2437
+ O.enableBackdatePo && ne.insert("Effective at", 5), O.enableTotalCost && ne.push("Total cost"), await Rn([{ name: "purchases", data: z, columns: ne }], N), x.open({
2438
2438
  title: _("inventory.transfer.receiveRequest.export.success"),
2439
- message: _("inventory.transfer.receiveRequest.export.message", [q]),
2439
+ message: _("inventory.transfer.receiveRequest.export.message", [N]),
2440
2440
  type: "success"
2441
2441
  });
2442
2442
  }
2443
2443
  const de = P(_t()), me = P("");
2444
- Ke([() => de.value], ([q]) => {
2445
- if (!q.startDate || !q.endDate) return;
2446
- if (Xe(q.endDate).diff(Xe(q.startDate), "day") > 60) {
2444
+ Ke([() => de.value], ([N]) => {
2445
+ if (!N.startDate || !N.endDate) return;
2446
+ if (Xe(N.endDate).diff(Xe(N.startDate), "day") > 60) {
2447
2447
  x.open({
2448
2448
  title: _("inventory.transfer.receiveRequest.bulk.dateRangeLimitTitle"),
2449
2449
  message: _("inventory.transfer.receiveRequest.bulk.dateRangeLimitMsg"),
2450
2450
  type: "warning"
2451
2451
  }), de.value = {
2452
- startDate: q.startDate,
2453
- endDate: Xe(q.startDate).add(60, "day").format("YYYY-MM-DD")
2452
+ startDate: N.startDate,
2453
+ endDate: Xe(N.startDate).add(60, "day").format("YYYY-MM-DD")
2454
2454
  };
2455
2455
  return;
2456
2456
  }
2457
- o.value.startDate = q.startDate, o.value.endDate = q.endDate, s.updateDateRange(o.value.startDate, o.value.endDate), V();
2457
+ o.value.startDate = N.startDate, o.value.endDate = N.endDate, s.updateDateRange(o.value.startDate, o.value.endDate), V();
2458
2458
  }), Ke([() => me.value], () => {
2459
2459
  V();
2460
2460
  });
@@ -2465,8 +2465,8 @@ const nr = {
2465
2465
  s.abortOngoingBrowse(), Je();
2466
2466
  }
2467
2467
  );
2468
- function Se(q) {
2469
- if (q === "create") {
2468
+ function Se(N) {
2469
+ if (N === "create") {
2470
2470
  if (R.value) {
2471
2471
  x.open({ title: "Loading data...", message: "Please wait.", type: "info" });
2472
2472
  return;
@@ -2482,12 +2482,12 @@ const nr = {
2482
2482
  g.value = !0;
2483
2483
  return;
2484
2484
  }
2485
- if (q === "upload" && O.enableXilnexTransferNote)
2485
+ if (N === "upload" && O.enableXilnexTransferNote)
2486
2486
  return s.promptUploadTransferDialog();
2487
- if (q === "refresh") return s.fetchData();
2488
- if (q === "export") return ce();
2489
- if (q === "downloadAll") return je();
2490
- if (q === "emailAll") return We();
2487
+ if (N === "refresh") return s.fetchData();
2488
+ if (N === "export") return ce();
2489
+ if (N === "downloadAll") return je();
2490
+ if (N === "emailAll") return We();
2491
2491
  }
2492
2492
  async function je() {
2493
2493
  if (J.value.length === 0) {
@@ -2513,7 +2513,7 @@ const nr = {
2513
2513
  await s.emailAll(Ye.value);
2514
2514
  }
2515
2515
  }
2516
- const { breakpoints: Me } = qn(), le = B(() => Me.value.xs || Me.value.sm), re = B(() => le.value ? 10 : 20), Ce = Nt(), we = Nt(), qe = B(() => O.enableReceiveRequestBeta ? [
2516
+ const { breakpoints: Me } = Nn(), le = B(() => Me.value.xs || Me.value.sm), re = B(() => le.value ? 10 : 20), Ce = Et(), we = Et(), Ne = B(() => O.enableReceiveRequestBeta ? [
2517
2517
  {
2518
2518
  label: _("inventory.transfer.receiveRequest.actions.create"),
2519
2519
  value: "create",
@@ -2538,7 +2538,7 @@ const nr = {
2538
2538
  }
2539
2539
  ] : []
2540
2540
  ] : []), Ze = B(() => {
2541
- const q = [
2541
+ const N = [
2542
2542
  {
2543
2543
  type: "string",
2544
2544
  key: "status",
@@ -2593,10 +2593,10 @@ const nr = {
2593
2593
  }).filter((z) => z != null)
2594
2594
  }
2595
2595
  ];
2596
- return [...q, ...L.isEnabled ? k : []];
2596
+ return [...N, ...L.isEnabled ? k : []];
2597
2597
  }), Oe = P(null), Ye = B(() => {
2598
2598
  if (!Oe.value) return s.purchaseOrders.value;
2599
- const q = Jn.build(Oe.value);
2599
+ const N = Jn.build(Oe.value);
2600
2600
  return s.purchaseOrders.value.filter((k) => {
2601
2601
  var ne, ae, fe, Le, $e;
2602
2602
  const z = ((ne = w.locations.find((U) => U.dbName === k._locationDbName)) == null ? void 0 : ne.name) ?? k._locationDbName;
@@ -2609,22 +2609,22 @@ const nr = {
2609
2609
  transferFrom: k.supplier.name,
2610
2610
  location: z
2611
2611
  },
2612
- q
2612
+ N
2613
2613
  );
2614
2614
  });
2615
2615
  });
2616
- return (q, k) => {
2616
+ return (N, k) => {
2617
2617
  const z = Te("FmIcon"), ne = Te("FmTextField"), ae = Te("FmButton"), fe = Te("FmTable"), Le = Te("FmCircularProgress");
2618
2618
  return i(), ve(Dn, {
2619
2619
  title: n(_)("inventory.transfer.receiveRequest.bulk.title"),
2620
- actions: qe.value,
2620
+ actions: Ne.value,
2621
2621
  "onClick:action": Se
2622
2622
  }, {
2623
2623
  default: Ie(() => {
2624
2624
  var $e;
2625
2625
  return [
2626
2626
  n(O).isLoaded && !n(O).enableReceiveRequestBeta ? (i(), y("div", Pr, [
2627
- N(z, {
2627
+ E(z, {
2628
2628
  name: "block",
2629
2629
  size: "xl"
2630
2630
  }),
@@ -2649,27 +2649,27 @@ const nr = {
2649
2649
  e("div", {
2650
2650
  class: H(["flex gap-8 items-center", { "w-full overflow-x-auto": le.value }])
2651
2651
  }, [
2652
- N(Ys, {
2652
+ E(Ys, {
2653
2653
  modelValue: n(J),
2654
2654
  "onUpdate:modelValue": k[0] || (k[0] = (U) => Rt(J) ? J.value = U : null),
2655
2655
  locations: T.value
2656
2656
  }, null, 8, ["modelValue", "locations"]),
2657
- N(vn, {
2657
+ E(vn, {
2658
2658
  "model-value": de.value,
2659
2659
  "onUpdate:modelValue": k[1] || (k[1] = (U) => de.value = U)
2660
2660
  }, null, 8, ["model-value"])
2661
2661
  ], 2),
2662
2662
  e("div", Dr, [
2663
- e("div", Er, [
2664
- N(n(Wn), {
2663
+ e("div", qr, [
2664
+ E(n(Wn), {
2665
2665
  modelValue: Oe.value,
2666
2666
  "onUpdate:modelValue": k[2] || (k[2] = (U) => Oe.value = U),
2667
2667
  attributes: Ze.value
2668
2668
  }, null, 8, ["modelValue", "attributes"])
2669
2669
  ]),
2670
- le.value ? E("", !0) : (i(), y("div", Nr)),
2671
- e("div", qr, [
2672
- N(ne, {
2670
+ le.value ? q("", !0) : (i(), y("div", Er)),
2671
+ e("div", Nr, [
2672
+ E(ne, {
2673
2673
  "model-value": me.value,
2674
2674
  "onUpdate:modelValue": k[3] || (k[3] = (U) => me.value = U),
2675
2675
  "prepend-icon": "search",
@@ -2681,7 +2681,7 @@ const nr = {
2681
2681
  ], 2)
2682
2682
  ], 512),
2683
2683
  n(J).length === 0 && !R.value ? (i(), y("div", Or, [
2684
- N(z, {
2684
+ E(z, {
2685
2685
  name: "storefront",
2686
2686
  size: "xl"
2687
2687
  }),
@@ -2703,7 +2703,7 @@ const nr = {
2703
2703
  }, null, 4)
2704
2704
  ]),
2705
2705
  e("span", Ir, p(n(s).fetchProgress.value.done) + "/" + p(n(s).fetchProgress.value.total) + " locations ", 1)
2706
- ])) : E("", !0),
2706
+ ])) : q("", !0),
2707
2707
  n(s).failedLocations.value.length > 0 ? (i(), y("div", Lr, [
2708
2708
  e("span", zr, " Failed to load: " + p(j.value), 1),
2709
2709
  I.value ? (i(), ve(ae, {
@@ -2712,10 +2712,10 @@ const nr = {
2712
2712
  disabled: n(s).retryingFailed.value || R.value,
2713
2713
  label: n(s).retryingFailed.value ? "Retrying…" : "Retry failed locations",
2714
2714
  onClick: n(s).retryFailedLocations
2715
- }, null, 8, ["disabled", "label", "onClick"])) : E("", !0)
2716
- ])) : E("", !0)
2715
+ }, null, 8, ["disabled", "label", "onClick"])) : q("", !0)
2716
+ ])) : q("", !0)
2717
2717
  ], 512),
2718
- N(fe, {
2718
+ E(fe, {
2719
2719
  style: gt(n(Ce).tableHeight),
2720
2720
  "column-defs": n(m),
2721
2721
  "row-data": Ye.value,
@@ -2725,42 +2725,42 @@ const nr = {
2725
2725
  "page-size": re.value
2726
2726
  }, {
2727
2727
  "list-row": Ie((U) => [
2728
- N(Vn, {
2728
+ E(Vn, {
2729
2729
  row: U,
2730
2730
  onRowClick: n(s).promptShowTransferDetails
2731
2731
  }, {
2732
2732
  default: Ie((ye) => {
2733
- var Ue, r, u, b, A, M, F, Q, Z, ee, oe, te, pe, be, Pe, Ae, ge, Y, G, ke, De, Ee, D, ie, he;
2733
+ var Ue, r, u, b, A, M, F, Q, Z, ee, oe, te, pe, be, Pe, Ae, ge, Y, G, ke, De, qe, D, ie, he;
2734
2734
  return [
2735
2735
  e("div", Mr, [
2736
2736
  e("div", Ur, [
2737
- N(n(ot), {
2737
+ E(n(ot), {
2738
2738
  render: (u = (r = (Ue = ye._id) == null ? void 0 : Ue.column) == null ? void 0 : r.columnDef) == null ? void 0 : u.cell,
2739
2739
  props: (A = (b = ye._id) == null ? void 0 : b.getContext) == null ? void 0 : A.call(b)
2740
2740
  }, null, 8, ["render", "props"])
2741
2741
  ]),
2742
2742
  e("div", Vr, [
2743
- N(n(ot), {
2743
+ E(n(ot), {
2744
2744
  render: (Q = (F = (M = ye.location) == null ? void 0 : M.column) == null ? void 0 : F.columnDef) == null ? void 0 : Q.cell,
2745
2745
  props: (ee = (Z = ye.location) == null ? void 0 : Z.getContext) == null ? void 0 : ee.call(Z)
2746
2746
  }, null, 8, ["render", "props"])
2747
2747
  ]),
2748
2748
  e("div", Jr, [
2749
- N(n(ot), {
2749
+ E(n(ot), {
2750
2750
  render: (pe = (te = (oe = ye.supplier_name) == null ? void 0 : oe.column) == null ? void 0 : te.columnDef) == null ? void 0 : pe.cell,
2751
2751
  props: (Pe = (be = ye.supplier_name) == null ? void 0 : be.getContext) == null ? void 0 : Pe.call(be)
2752
2752
  }, null, 8, ["render", "props"])
2753
2753
  ]),
2754
2754
  e("div", jr, p(n(_)("inventory.transfer.table.noOfItems")) + ": " + p(se(U.original)), 1),
2755
2755
  U.original.ref ? (i(), y("div", Wr, [
2756
- N(n(ot), {
2756
+ E(n(ot), {
2757
2757
  render: (Y = (ge = (Ae = ye.ref) == null ? void 0 : Ae.column) == null ? void 0 : ge.columnDef) == null ? void 0 : Y.cell,
2758
2758
  props: (ke = (G = ye.ref) == null ? void 0 : G.getContext) == null ? void 0 : ke.call(G)
2759
2759
  }, null, 8, ["render", "props"])
2760
- ])) : E("", !0),
2760
+ ])) : q("", !0),
2761
2761
  e("div", Yr, [
2762
- N(n(ot), {
2763
- render: (D = (Ee = (De = ye.status) == null ? void 0 : De.column) == null ? void 0 : Ee.columnDef) == null ? void 0 : D.cell,
2762
+ E(n(ot), {
2763
+ render: (D = (qe = (De = ye.status) == null ? void 0 : De.column) == null ? void 0 : qe.columnDef) == null ? void 0 : D.cell,
2764
2764
  props: (he = (ie = ye.status) == null ? void 0 : ie.getContext) == null ? void 0 : he.call(ie)
2765
2765
  }, null, 8, ["render", "props"])
2766
2766
  ])
@@ -2774,28 +2774,28 @@ const nr = {
2774
2774
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]),
2775
2775
  n(s).rowAction.pending.value ? (i(), y("div", Qr, [
2776
2776
  e("div", Hr, [
2777
- N(Le, { size: "md" }),
2777
+ E(Le, { size: "md" }),
2778
2778
  e("span", Kr, p(n(_)("inventory.common.loading")), 1),
2779
- N(ae, {
2779
+ E(ae, {
2780
2780
  variant: "secondary",
2781
2781
  label: n(_)("inventory.common.cancel"),
2782
2782
  onClick: n(s).rowAction.cancel
2783
2783
  }, null, 8, ["label", "onClick"])
2784
2784
  ])
2785
- ])) : E("", !0)
2785
+ ])) : q("", !0)
2786
2786
  ]))
2787
2787
  ], 2),
2788
2788
  (i(), ve(dt, { to: "body" }, [
2789
- N(Rr),
2790
- n(O).enablePurchaseOrderEmail ? (i(), ve(An, Pt(yt({ key: 0 }, n(s).emailDialogProps.value)), null, 16)) : E("", !0),
2791
- N(Is, {
2789
+ E(Rr),
2790
+ n(O).enablePurchaseOrderEmail ? (i(), ve(An, Pt(yt({ key: 0 }, n(s).emailDialogProps.value)), null, 16)) : q("", !0),
2791
+ E(Is, {
2792
2792
  show: g.value,
2793
2793
  "onUpdate:show": k[9] || (k[9] = (U) => g.value = U),
2794
2794
  "last-closing-date": n(s).lastClosingDate.value,
2795
2795
  "selected-outlet-ids": Fe.value,
2796
2796
  onSubmitted: n(s).fetchData
2797
2797
  }, null, 8, ["show", "last-closing-date", "selected-outlet-ids", "onSubmitted"]),
2798
- N(Bn, yt(n(s).transferDialogProps.value, {
2798
+ E(Bn, yt(n(s).transferDialogProps.value, {
2799
2799
  onSubmitted: n(s).fetchData
2800
2800
  }), null, 16, ["onSubmitted"]),
2801
2801
  n(s).transferDetailsProps.value != null ? (i(), ve(Cn, yt({ key: 1 }, {
@@ -2804,23 +2804,23 @@ const nr = {
2804
2804
  shipments: n(s).shipments.value ?? []
2805
2805
  }, {
2806
2806
  onSubmitted: n(s).fetchData
2807
- }), null, 16, ["onSubmitted"])) : E("", !0),
2808
- N(Tn, Pt(sn(n(s).xilnexImportDialogProps.value)), null, 16),
2809
- N(Ws, {
2807
+ }), null, 16, ["onSubmitted"])) : q("", !0),
2808
+ E(Tn, Pt(sn(n(s).xilnexImportDialogProps.value)), null, 16),
2809
+ E(Ws, {
2810
2810
  modelValue: n(d),
2811
2811
  "onUpdate:modelValue": k[10] || (k[10] = (U) => Rt(d) ? d.value = U : null),
2812
2812
  loading: n(h),
2813
2813
  "blob-url": n(c)
2814
2814
  }, null, 8, ["modelValue", "loading", "blob-url"])
2815
2815
  ]))
2816
- ], 64)) : E("", !0)
2816
+ ], 64)) : q("", !0)
2817
2817
  ];
2818
2818
  }),
2819
2819
  _: 1
2820
2820
  }, 8, ["title", "actions"]);
2821
2821
  };
2822
2822
  }
2823
- }), qo = /* @__PURE__ */ at({
2823
+ }), No = /* @__PURE__ */ at({
2824
2824
  __name: "BulkReceiveRequestPage",
2825
2825
  setup(C) {
2826
2826
  return (_, x) => (i(), ve(rn, {
@@ -2828,12 +2828,12 @@ const nr = {
2828
2828
  "keep-across-locations": ""
2829
2829
  }, {
2830
2830
  default: Ie(() => [
2831
- N(Gr)
2831
+ E(Gr)
2832
2832
  ]),
2833
2833
  _: 1
2834
2834
  }));
2835
2835
  }
2836
2836
  });
2837
2837
  export {
2838
- qo as default
2838
+ No as default
2839
2839
  };