@feedmepos/mf-inventory-portal 1.6.3 → 1.7.0-dev.1

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 (122) hide show
  1. package/dist/{App-C9leB4t0.js → App-BT6KYW8H.js} +6 -6
  2. package/dist/{ApprovalView-CqOXr5Hw.js → ApprovalView-Blu45mX4.js} +15 -15
  3. package/dist/{BindingsDialog-DRalvlwp.js → BindingsDialog-Ffb3DqzR.js} +3 -3
  4. package/dist/{BindingsPicker-zXli3Z1x.js → BindingsPicker-DJSieUGU.js} +6 -6
  5. package/dist/{BindingsTable--VoNPh7F.js → BindingsTable-BM_fnYD0.js} +5 -5
  6. package/dist/{BulkReceiveRequestView-Bon7uDCJ.js → BulkReceiveRequestView-LLE0EWF2.js} +36 -36
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DlW8baJa.js +126 -0
  8. package/dist/{ClosingDraftView-CdxQiwuz.js → ClosingDraftView-SLu2RsF2.js} +41 -40
  9. package/dist/{ClosingHistoryView-CTkdBXBa.js → ClosingHistoryView-DavlvyI8.js} +8 -8
  10. package/dist/{ClosingTemplateView-h9ohxtwI.js → ClosingTemplateView-CfOmfFEo.js} +18 -18
  11. package/dist/{DefaultView-CLRzOH5K.js → DefaultView-BG6SM2dx.js} +4 -4
  12. package/dist/{DeliveryOrderPrintPreview-vgPmHbtx.js → DeliveryOrderPrintPreview-CTZqCk5h.js} +19 -19
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CE9wwNB_.js → EmailDialog.vue_vue_type_script_setup_true_lang-CeuncSiy.js} +9313 -9301
  14. package/dist/{FmAdminBadge-DjnBAgyv.js → FmAdminBadge-DlplQOHb.js} +6 -6
  15. package/dist/{FmConfirmationButton.vue_vue_type_script_setup_true_lang-DLrMEGFR.js → FmConfirmationButton.vue_vue_type_script_setup_true_lang-Vg8U7WMZ.js} +5 -5
  16. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js} +6 -6
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BoP7islj.js} +3 -3
  18. package/dist/{FmDroppableField-J0xUsOTV.js → FmDroppableField-J0tG_U3w.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DaXycWeg.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cp-IGhN8.js} +3 -3
  20. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CbD3tpTg.js +118 -0
  21. package/dist/{FmMultiselectDialog-Bnouf9vX.js → FmMultiselectDialog-Btgi9bcG.js} +4 -4
  22. package/dist/{FmMultiselectDialog-BAMaksR7.js → FmMultiselectDialog-CYMF7L6M.js} +1 -1
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DnfFPNWn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-p5zOSCsD.js} +9 -9
  24. package/dist/{ImportView-DYhLRkQA.js → ImportView-Druqo-SE.js} +11 -11
  25. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B4n5-iRK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BrCQtful.js} +5 -5
  26. package/dist/{IngredientGroupView-Dn15H-1E.js → IngredientGroupView-X9-rsWxq.js} +9 -9
  27. package/dist/{IngredientsView-9sp4RWOF.js → IngredientsView-3VjrRo6Q.js} +26 -26
  28. package/dist/{IntegrationExplorerView-DSj9e9rb.js → IntegrationExplorerView-BsI1wdMs.js} +3897 -3898
  29. package/dist/{IntegrationView-DbcMnd4z.js → IntegrationView-DnClTLe8.js} +18 -18
  30. package/dist/{InventoryBindingForm-6OXalr29.js → InventoryBindingForm-GzG-Hd2M.js} +1 -1
  31. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-6-CNpE55.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BRUPz8Nd.js} +6 -6
  32. package/dist/{InventoryBindingSummary-h7b4l6Wb.js → InventoryBindingSummary-CziMAdeu.js} +3 -3
  33. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cq_SuRtd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-E8xHqN0A.js} +3 -3
  34. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-7CXXGTvk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dn_l93Az.js} +3 -3
  35. package/dist/{PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js → PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js} +2 -2
  36. package/dist/ProductionView-C5y_oeQ1.js +1330 -0
  37. package/dist/{PublishView-BNml0c7h.js → PublishView-DLaq3CIv.js} +7 -7
  38. package/dist/{PurchaseOrderPrintPreview-DMQ4-abx.js → PurchaseOrderPrintPreview-CfOxPPTs.js} +17 -17
  39. package/dist/{ReceiveRequestView-BTHWRSHt.js → ReceiveRequestView-CW0zq5Mi.js} +19 -19
  40. package/dist/{RecipeView-D7pdeDlr.js → RecipeView-MGQvVVkQ.js} +23 -23
  41. package/dist/{SettingsView-Ce3Fbejt.js → SettingsView-BAPGIrw5.js} +9 -9
  42. package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js} +2 -2
  43. package/dist/{StockView-BGH5uWNi.js → StockView-D1RGEL2U.js} +59 -58
  44. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BegeXje7.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CzBZq9Vn.js} +8 -8
  45. package/dist/{SupplierView-BuyycuNM.js → SupplierView-CMH0w0sM.js} +201 -205
  46. package/dist/{SurchargeView-B3O9a7WC.js → SurchargeView-DTGGjNJz.js} +11 -11
  47. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-TJ4VhnI3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CmYuaLTY.js} +4 -4
  48. package/dist/{TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js → TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js} +7 -7
  49. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BgkgLkWo.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CZ-CIM6O.js} +4 -4
  50. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-9_7cUWrk.js +4607 -0
  51. package/dist/{TransferTemplateView-CehWEgcU.js → TransferTemplateView-BHRlpNZL.js} +24 -24
  52. package/dist/{UnitCostHistoryView-N9UZOJVt.js → UnitCostHistoryView-DTcMOBYp.js} +8 -8
  53. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpVe38HB.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-tnwNEshB.js} +9 -9
  54. package/dist/{UnitView-YB56lxTp.js → UnitView-CmaNofZF.js} +11 -11
  55. package/dist/{WarehouseView-DtBYtULO.js → WarehouseView-CrZOVqtW.js} +9 -9
  56. package/dist/{WastageTemplateView-BJQ94zo8.js → WastageTemplateView-oS1mOuVs.js} +18 -18
  57. package/dist/api/production.d.ts +29 -0
  58. package/dist/{app-DiX-EfV6.js → app-C39bYJmq.js} +283 -283
  59. package/dist/{app-CnwVdB-r.js → app-DurCmkYx.js} +6901 -6691
  60. package/dist/app.js +1 -1
  61. package/dist/{closing-template-B0GQRFlS.js → closing-template--ylzHY8o.js} +1 -1
  62. package/dist/{date2-CaCMUbxN.js → date2-Ci_bWmXL.js} +1 -1
  63. package/dist/{dayjs.min-C413l7qz.js → dayjs.min-C1KEGVyY.js} +3 -3
  64. package/dist/{decimal-dpWXqHCT.js → decimal-CqES0LqS.js} +2 -2
  65. package/dist/{defineDeepModel-wTAgCIGa.js → defineDeepModel-CPc4-vVR.js} +1 -1
  66. package/dist/{duplicate-template-DTkeAcof.js → duplicate-template-7WtxyOgk.js} +1 -1
  67. package/dist/{feature-CSsMjXm4.js → feature-BhtPIg0j.js} +209 -206
  68. package/dist/{format-time-from-id-A1BqDOzj.js → format-time-from-id-da6PCU8D.js} +1 -1
  69. package/dist/{format-unit-display-CHS1Vvqm.js → format-unit-display-DfnibgdI.js} +24 -25
  70. package/dist/{import-export.helper-C8qIeMrV.js → import-export.helper-OeITQ-ew.js} +6 -6
  71. package/dist/{index-CEbJe2zv.js → index-63f31zwB.js} +11 -15
  72. package/dist/{index-CCdOkfwD.js → index-C4oo6Jir.js} +3 -3
  73. package/dist/{index-dgiwVVtQ.js → index-CKo4S3fc.js} +1 -1
  74. package/dist/inventory-core-dart.default-CjR1Ux6B.js +25015 -0
  75. package/dist/{jszip.min-k8R8v9tK.js → jszip.min-wa9dg6V2.js} +133 -133
  76. package/dist/{lz-string-OLkSz-NK.js → lz-string-CEq3F4OR.js} +33 -34
  77. package/dist/{menu-usage-module-D7cxkbEk.js → menu-usage-module-BdjYEk3s.js} +5 -5
  78. package/dist/{netsuite-Cm4tUcLt.js → netsuite-BYihdmW3.js} +145 -145
  79. package/dist/{number-CF9W8sDX.js → number-DIjdjQTT.js} +3 -3
  80. package/dist/{predefined-templates-DmBAGnMN.js → predefined-templates-BZ5B0n2R.js} +4 -13
  81. package/dist/{purchase-order-template-C0ynPqX6.js → purchase-order-template-ri08SOOi.js} +1 -1
  82. package/dist/{recalculationUtils-pDs8JNho.js → recalculationUtils-7tP21R_L.js} +1 -1
  83. package/dist/router/name.d.ts +1 -0
  84. package/dist/{rules-CYCN4sgu.js → rules-De93ckqk.js} +2 -2
  85. package/dist/{stock-D8S1alJa.js → stock-DvslvTup.js} +1 -1
  86. package/dist/stock-oKttHRVV.js +75 -0
  87. package/dist/stores/feature.d.ts +2 -0
  88. package/dist/{supplier-CiPnrjsq.js → supplier-otlIc6_E.js} +2 -2
  89. package/dist/{surcharge-CanooUK6.js → surcharge-DMLazg9b.js} +1 -1
  90. package/dist/tsconfig.app.tsbuildinfo +1 -1
  91. package/dist/{uom-rules-eVbKU0_1.js → uom-rules-BVc5JsZO.js} +1 -1
  92. package/dist/{use-ingredient-select-dialog-Lpcjl8Ws.js → use-ingredient-select-dialog-C3H4EuIT.js} +2 -2
  93. package/dist/{use-inventory-binding-dialog-CA_03e_q.js → use-inventory-binding-dialog-BlLaBr8C.js} +2 -2
  94. package/dist/{use-template-enabled-locations-CWMCe4nl.js → use-template-enabled-locations-CwXGrrU2.js} +2 -2
  95. package/dist/{use-transfer-locations-rvGiFI0e.js → use-transfer-locations-DAMl3X7w.js} +2 -2
  96. package/dist/{useHrmPermission-wOFwl59u.js → useHrmPermission-hRmteNSl.js} +1 -1
  97. package/dist/{useNavigationMenu-BoDv65KI.js → useNavigationMenu-CNhXOgEu.js} +12 -7
  98. package/dist/useSseClient-Cn8CX__U.js +453 -0
  99. package/dist/views/production/ProductionBindingsCell.vue.d.ts +29 -0
  100. package/dist/views/production/ProductionCompletionDialog.vue.d.ts +32 -0
  101. package/dist/views/production/ProductionDetailSheet.vue.d.ts +38 -0
  102. package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +280 -0
  103. package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +6 -0
  104. package/dist/views/production/ProductionView.vue.d.ts +2 -0
  105. package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentEditForm.vue.d.ts +19 -0
  106. package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentEditor.vue.d.ts +18 -0
  107. package/dist/views/receive-request/components/price-adjustment/PriceAdjustmentList.vue.d.ts +33 -0
  108. package/dist/views/receive-request/components/price-adjustment/use-price-adjustment-form-controller.d.ts +9 -0
  109. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +10 -0
  110. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +20 -0
  111. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +120 -0
  112. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +140 -0
  113. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +100 -0
  114. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +20 -0
  115. package/dist/vue-i18n-DeNNnVic.js +2351 -0
  116. package/dist/{xlsx.util-0_Y_Q66v.js → xlsx.util-B8IJR8tZ.js} +3710 -3720
  117. package/package.json +3 -3
  118. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js +0 -237
  119. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CwY2xCQV.js +0 -4360
  120. package/dist/inventory-core-dart.default-CBuBQE02.js +0 -18716
  121. package/dist/useSseClient-DbWYwuT8.js +0 -524
  122. package/dist/vue-i18n-Bov_Y0eC.js +0 -2365
@@ -1,13 +1,13 @@
1
- import { ref as k, onUnmounted as H, computed as y, defineComponent as P, watch as N, onMounted as $, resolveComponent as w, openBlock as m, createElementBlock as g, unref as x, createVNode as _, createElementVNode as o, toDisplayString as b, createBlock as L, createCommentVNode as U, withCtx as R, withDirectives as O, vModelText as j, Fragment as q, renderList as z, createTextVNode as B } from "vue";
1
+ import { ref as k, onUnmounted as H, computed as y, defineComponent as P, watch as N, onMounted as $, resolveComponent as w, createElementBlock as g, openBlock as m, createBlock as L, createCommentVNode as U, unref as x, createVNode as _, createElementVNode as o, toDisplayString as b, withCtx as R, withDirectives as O, vModelText as j, Fragment as q, renderList as z, createTextVNode as B } from "vue";
2
2
  import { _ as K } from "./empty-placeholder-B0QU467o.js";
3
- import { u as Q, a as J, R as S, b as W } from "./app-CnwVdB-r.js";
3
+ import { u as Q, a as J, R as S, b as W } from "./app-DurCmkYx.js";
4
4
  import { useCoreStore as C, useI18n as X } from "@feedmepos/mf-common";
5
5
  import { useRouter as T, useRoute as Y } from "vue-router";
6
- import { u as Z, a as ee, I as te } from "./feature-CSsMjXm4.js";
7
- import { u as oe } from "./netsuite-Cm4tUcLt.js";
8
- import { u as D } from "./useNavigationMenu-BoDv65KI.js";
6
+ import { u as Z, a as ee, I as te } from "./feature-BhtPIg0j.js";
7
+ import { u as oe } from "./netsuite-BYihdmW3.js";
8
+ import { u as D } from "./useNavigationMenu-CNhXOgEu.js";
9
9
  import { u as ne } from "./useTabStorage-BkIVScW_.js";
10
- import { F as se } from "./FmAdminBadge-DjnBAgyv.js";
10
+ import { F as se } from "./FmAdminBadge-DlplQOHb.js";
11
11
  import { u as re } from "./googlemap-D9vA7GsS.js";
12
12
  function ae() {
13
13
  return {
@@ -1,17 +1,17 @@
1
- import { defineComponent as ce, ref as y, watch as de, computed as c, resolveComponent as fe, openBlock as x, createBlock as Z, unref as a, withCtx as T, createElementVNode as p, normalizeClass as ve, createVNode as u, normalizeStyle as he, toDisplayString as _e, createElementBlock as De, createCommentVNode as ge, Teleport as ye, mergeProps as be, isRef as Re } from "vue";
2
- import { u as Oe, Q as b } from "./app-CnwVdB-r.js";
3
- import { a as Se } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js";
4
- import { u as Pe, P as w, a as xe, _ as Te, b as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CwY2xCQV.js";
5
- import { b as I } from "./date2-CaCMUbxN.js";
6
- import { u as ke, _ as qe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
7
- import { _ as Ce, F as R } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
1
+ import { defineComponent as ce, ref as y, watch as de, computed as c, resolveComponent as fe, createBlock as Z, openBlock as x, unref as a, withCtx as T, createElementVNode as p, normalizeClass as ve, createVNode as u, normalizeStyle as he, createElementBlock as _e, createCommentVNode as De, toDisplayString as ge, Teleport as ye, mergeProps as be, isRef as Re } from "vue";
2
+ import { u as Oe, Q as b } from "./app-DurCmkYx.js";
3
+ import { a as Se } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BoP7islj.js";
4
+ import { u as Pe, P as w, a as xe, _ as Te, b as we } from "./TransferDetails.vue_vue_type_script_setup_true_lang-9_7cUWrk.js";
5
+ import { b as I } from "./date2-Ci_bWmXL.js";
6
+ import { u as ke, _ as qe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
7
+ import { _ as Ce, F as R } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
8
8
  import { useBreakpoints as Ne } from "@feedmepos/ui-library";
9
- import { _ as Ve } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js";
9
+ import { _ as Ve } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CbD3tpTg.js";
10
10
  import { useI18n as Ae } from "@feedmepos/mf-common";
11
- import { P as Me, J as Fe } from "./app-DiX-EfV6.js";
12
- import { u as Le } from "./netsuite-Cm4tUcLt.js";
13
- import { f as $e } from "./predefined-templates-DmBAGnMN.js";
14
- import "./inventory-core-dart.default-CBuBQE02.js";
11
+ import { P as Me, J as Fe } from "./app-C39bYJmq.js";
12
+ import { u as Le } from "./netsuite-BYihdmW3.js";
13
+ import { f as $e } from "./predefined-templates-BZ5B0n2R.js";
14
+ import "./inventory-core-dart.default-CjR1Ux6B.js";
15
15
  const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, He = {
16
16
  key: 0,
17
17
  class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
@@ -190,13 +190,13 @@ const ze = { class: "flex flex-col py-8" }, Ee = { class: "fm-typo-en-body-md-40
190
190
  props: ($ = (v = o.to_name) == null ? void 0 : v.getContext) == null ? void 0 : $.call(v)
191
191
  }, null, 8, ["render", "props"])
192
192
  ]),
193
- p("div", Ye, _e((U = (_ = (E = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (me) => `${me.name}`)) == null ? void 0 : _.join) == null ? void 0 : U.call(_, ", ")), 1),
194
- (Y = t.original.purchaseOrder) != null && Y.ref ? (x(), De("div", He, [
193
+ p("div", Ye, ge((U = (_ = (E = (h = (z = t.original.purchaseOrder) == null ? void 0 : z.items) == null ? void 0 : h.map) == null ? void 0 : E.call(h, (me) => `${me.name}`)) == null ? void 0 : _.join) == null ? void 0 : U.call(_, ", ")), 1),
194
+ (Y = t.original.purchaseOrder) != null && Y.ref ? (x(), _e("div", He, [
195
195
  u(a(R), {
196
196
  render: (J = (j = (H = o.purchaseOrder_ref) == null ? void 0 : H.column) == null ? void 0 : j.columnDef) == null ? void 0 : J.cell,
197
197
  props: (Q = (D = o.purchaseOrder_ref) == null ? void 0 : D.getContext) == null ? void 0 : Q.call(D)
198
198
  }, null, 8, ["render", "props"])
199
- ])) : ge("", !0),
199
+ ])) : De("", !0),
200
200
  p("div", je, [
201
201
  u(a(R), {
202
202
  render: (W = (K = (G = o.purchaseOrder_status) == null ? void 0 : G.column) == null ? void 0 : K.columnDef) == null ? void 0 : W.cell,
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-6-CNpE55.js";
3
- import { a as L, a7 as S } from "./app-CnwVdB-r.js";
1
+ import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, createElementBlock as c, openBlock as i, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-BRUPz8Nd.js";
3
+ import { a as L, a7 as S } from "./app-DurCmkYx.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,6 +1,6 @@
1
- import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { a as M } from "./FmMultiselectDialog-Bnouf9vX.js";
3
- import { a as x, a7 as z } from "./app-CnwVdB-r.js";
1
+ import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, createElementBlock as p, openBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
+ import { a as M } from "./FmMultiselectDialog-Btgi9bcG.js";
3
+ import { a as x, a7 as z } from "./app-DurCmkYx.js";
4
4
  const F = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -89,15 +89,15 @@ const F = {
89
89
  (s = (e = _.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
90
90
  }), (e, s) => {
91
91
  const n = E("FmButton"), t = E("FmCircularProgress");
92
- return p(), f("div", {
92
+ return f(), p("div", {
93
93
  class: "bg-white",
94
94
  ref_key: "resizeableRef",
95
95
  ref: y
96
96
  }, [
97
- g.value ? (p(), f("div", w, [
97
+ g.value ? (f(), p("div", w, [
98
98
  u(t, { size: "md" }),
99
99
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
100
- ])) : (p(), f("div", F, [
100
+ ])) : (f(), p("div", F, [
101
101
  u(M, {
102
102
  "model-value": b.value,
103
103
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
@@ -1,11 +1,11 @@
1
- import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, openBlock as l, createElementBlock as u, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { F as b, a as P, a7 as R } from "./app-CnwVdB-r.js";
3
- import "./dayjs.min-C413l7qz.js";
1
+ import { defineComponent as x, ref as r, provide as C, computed as g, resolveComponent as h, createElementBlock as u, openBlock as l, createStaticVNode as F, Fragment as L, renderList as I, createElementVNode as p, toDisplayString as v, createVNode as w, withModifiers as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
+ import { F as b, a as P, a7 as R } from "./app-DurCmkYx.js";
3
+ import "./dayjs.min-C1KEGVyY.js";
4
4
  import "@feedmepos/ui-library";
5
5
  /* empty css */
6
6
  import "@feedmepos/mf-common";
7
- import "./app-DiX-EfV6.js";
8
- import "./netsuite-Cm4tUcLt.js";
7
+ import "./app-C39bYJmq.js";
8
+ import "./netsuite-BYihdmW3.js";
9
9
  const U = { class: "" }, D = ["onClick"], O = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, V = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, T = /* @__PURE__ */ x({
10
10
  __name: "binding-ui",
11
11
  props: {
@@ -1,29 +1,29 @@
1
- import { defineComponent as lt, ref as w, computed as R, watch as ze, openBlock as m, createElementBlock as g, Fragment as _e, createBlock as ie, Teleport as wt, createVNode as F, Transition as Pt, withCtx as Fe, createElementVNode as e, toDisplayString as d, unref as t, createCommentVNode as $, normalizeClass as O, renderList as Qe, createTextVNode as Xe, mergeModels as qt, useModel as Tt, resolveComponent as De, reactive as Bt, nextTick as tt, h as ve, watchEffect as Ot, isRef as mt, normalizeStyle as pt, normalizeProps as ft, mergeProps as st, guardReactiveProps as At } from "vue";
2
- import { u as et, a as Nt, E as It, T as vt, c as $t, s as zt, U as Ae, q as Lt, V as yt, Q as Ge, x as Mt } from "./app-CnwVdB-r.js";
3
- import { i as rt, _ as Vt } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DTeWGr5O.js";
4
- import { a as bt, d as Ut } from "./number-CF9W8sDX.js";
5
- import { c as jt, d as nt, P as it, e as Ht, f as Yt, h as Qt, i as Wt, j as Zt, a as Kt, _ as Jt, b as Xt, g as Gt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-CwY2xCQV.js";
6
- import { i as es } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-7CXXGTvk.js";
7
- import { d as Te } from "./dayjs.min-C413l7qz.js";
8
- import { e as ts } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpVe38HB.js";
1
+ import { defineComponent as lt, ref as w, computed as R, watch as ze, createElementBlock as g, openBlock as m, Fragment as _e, createBlock as ie, createVNode as F, Teleport as wt, Transition as Pt, withCtx as Fe, createCommentVNode as $, createElementVNode as e, toDisplayString as d, unref as t, normalizeClass as O, renderList as Qe, createTextVNode as Xe, mergeModels as qt, useModel as Tt, resolveComponent as De, reactive as Bt, h as ve, nextTick as tt, watchEffect as Ot, isRef as mt, normalizeStyle as pt, normalizeProps as ft, mergeProps as st, guardReactiveProps as At } from "vue";
2
+ import { u as et, a as Nt, E as It, T as vt, U as yt, s as $t, V as Ae, q as zt, c as Lt, Q as Ge, x as Mt } from "./app-DurCmkYx.js";
3
+ import { i as rt, _ as Vt } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BoP7islj.js";
4
+ import { a as bt, d as Ut } from "./number-DIjdjQTT.js";
5
+ import { c as jt, d as nt, e as Ht, f as Yt, h as Qt, i as Wt, P as it, j as Zt, a as Kt, _ as Jt, b as Xt, g as Gt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-9_7cUWrk.js";
6
+ import { i as es } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Dn_l93Az.js";
7
+ import { d as Te } from "./dayjs.min-C1KEGVyY.js";
8
+ import { e as ts } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-tnwNEshB.js";
9
9
  import { u as ss } from "./useTabStorage-BkIVScW_.js";
10
- import { u as ns, _ as os } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
11
- import { useSnackbar as ut, components as as, useDialog as rs, useBreakpoints as ls } from "@feedmepos/ui-library";
12
- import { c as is, h as ht, u as us, _ as cs, a as ds, b as ms } from "./EmailDialog.vue_vue_type_script_setup_true_lang-CE9wwNB_.js";
10
+ import { u as ns, _ as os } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
11
+ import { components as as, useSnackbar as ut, useDialog as rs, useBreakpoints as ls } from "@feedmepos/ui-library";
12
+ import { c as is, u as us, h as ht, _ as cs, a as ds, b as ms } from "./EmailDialog.vue_vue_type_script_setup_true_lang-CeuncSiy.js";
13
13
  import { useI18n as We, useCoreStore as kt } from "@feedmepos/mf-common";
14
- import { u as Ct, a as ps } from "./supplier-CiPnrjsq.js";
15
- import { u as fs } from "./stock-D8S1alJa.js";
16
- import { u as Ft } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-TJ4VhnI3.js";
17
- import { b as St, a as vs } from "./format-unit-display-CHS1Vvqm.js";
18
- import { P as ys } from "./inventory-core-dart.default-CBuBQE02.js";
19
- import { _ as bs, F as He } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
20
- import { u as Rt } from "./feature-CSsMjXm4.js";
21
- import { P as hs, J as gs, D as xs } from "./app-DiX-EfV6.js";
22
- import { u as _s } from "./netsuite-Cm4tUcLt.js";
23
- import { s as gt, f as ws } from "./predefined-templates-DmBAGnMN.js";
24
- import { t as ks, d as Cs } from "./date2-CaCMUbxN.js";
14
+ import { u as Ct, a as ps } from "./supplier-otlIc6_E.js";
15
+ import { u as fs } from "./stock-DvslvTup.js";
16
+ import { u as Ft } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CmYuaLTY.js";
17
+ import { b as St, a as vs } from "./format-unit-display-DfnibgdI.js";
18
+ import { P as ys } from "./inventory-core-dart.default-CjR1Ux6B.js";
19
+ import { _ as bs, F as He } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
20
+ import { u as Rt } from "./feature-BhtPIg0j.js";
21
+ import { P as hs, J as gs, D as xs } from "./app-C39bYJmq.js";
22
+ import { u as _s } from "./netsuite-BYihdmW3.js";
23
+ import { s as gt, f as ws } from "./predefined-templates-BZ5B0n2R.js";
24
+ import { d as ks, t as Cs } from "./date2-Ci_bWmXL.js";
25
25
  import { F as xt } from "./form-mode.enum-BKiNVH6A.js";
26
- import { p as Fs } from "./format-time-from-id-A1BqDOzj.js";
26
+ import { p as Fs } from "./format-time-from-id-da6PCU8D.js";
27
27
  const Ss = {
28
28
  key: 0,
29
29
  class: "fixed inset-0 z-[200] bg-white flex flex-col overflow-hidden",
@@ -910,8 +910,8 @@ function lo(ne) {
910
910
  ), H = R(() => {
911
911
  const p = new Date(ue.value.startDate), f = new Date(ue.value.endDate);
912
912
  return {
913
- start: ks(p).toISOString(),
914
- end: Cs(f).toISOString()
913
+ start: Cs(p).toISOString(),
914
+ end: ks(f).toISOString()
915
915
  };
916
916
  }), te = It(), x = w(null), u = Bt({
917
917
  visible: !1,
@@ -939,7 +939,7 @@ function lo(ne) {
939
939
  if (q.value = [], T.value = [], we.value.length !== 0) {
940
940
  i.value = !0;
941
941
  try {
942
- const f = vt(we.value, 5), C = [];
942
+ const f = yt(we.value, 5), C = [];
943
943
  for (const y of f) {
944
944
  const M = await Promise.allSettled(
945
945
  y.map(async (A) => (await ee.getPurchaseOrders({
@@ -1010,7 +1010,7 @@ function lo(ne) {
1010
1010
  me(p);
1011
1011
  const f = {
1012
1012
  mode: xt.UPDATE,
1013
- modelValue: $t(p),
1013
+ modelValue: Lt(p),
1014
1014
  show: !0,
1015
1015
  "onUpdate:show"(C) {
1016
1016
  Ye.value.show = C;
@@ -1057,13 +1057,13 @@ function lo(ne) {
1057
1057
  ye.value.show = r;
1058
1058
  },
1059
1059
  scope: it.RECEIVE_REQUEST,
1060
- receivedMap: Ht(p) ?? {},
1060
+ receivedMap: Wt(p) ?? {},
1061
1061
  shipments: T.value
1062
1062
  };
1063
1063
  ye.value = l;
1064
1064
  }
1065
1065
  async function Se(p, f, C, E, l) {
1066
- const r = Wt();
1066
+ const r = Zt();
1067
1067
  i.value = !0;
1068
1068
  try {
1069
1069
  await r({
@@ -1092,11 +1092,11 @@ function lo(ne) {
1092
1092
  }
1093
1093
  async function ae(p, f, C) {
1094
1094
  me(p);
1095
- const E = Zt[f];
1095
+ const E = Ht[f];
1096
1096
  if (!E) {
1097
1097
  S.open({
1098
1098
  title: "Something went wrong",
1099
- message: `Cannot process order: ${zt(f)}`,
1099
+ message: `Cannot process order: ${$t(f)}`,
1100
1100
  type: "error"
1101
1101
  });
1102
1102
  return;
@@ -1123,7 +1123,7 @@ function lo(ne) {
1123
1123
  const c = [], h = Qt();
1124
1124
  h.init(p), (f === Ae.enum.confirmDraft || f === Ae.enum.submitRequest) && c.push({
1125
1125
  action: "confirmDraft",
1126
- payload: h.controller.value.toConfirmDraftData(Lt())
1126
+ payload: h.controller.value.toConfirmDraftData(zt())
1127
1127
  }), k.open({
1128
1128
  title: r.title,
1129
1129
  message: r.message,
@@ -1172,7 +1172,7 @@ function lo(ne) {
1172
1172
  });
1173
1173
  return;
1174
1174
  }
1175
- const E = (await import("./jszip.min-k8R8v9tK.js").then((y) => y.j)).default, l = new E();
1175
+ const E = (await import("./jszip.min-wa9dg6V2.js").then((y) => y.j)).default, l = new E();
1176
1176
  let r = 0;
1177
1177
  u.title = a("inventory.transfer.receiveRequest.bulk.downloadProgress"), u.current = 0, u.total = p.length, u.done = !1, u.cancelled = !1, u.visible = !0, await tt(), await new Promise((y) => setTimeout(y, 150));
1178
1178
  try {
@@ -1251,8 +1251,8 @@ function lo(ne) {
1251
1251
  async function ke(p) {
1252
1252
  var Ee;
1253
1253
  const f = [
1254
- yt.enum.RECEIVING,
1255
- yt.enum.PROCESSING
1254
+ vt.enum.RECEIVING,
1255
+ vt.enum.PROCESSING
1256
1256
  // PARTIAL_RECEIVED display status maps from PROCESSING
1257
1257
  ], C = p.filter((_) => f.includes(_.status));
1258
1258
  if (C.length === 0) {
@@ -1394,7 +1394,7 @@ function lo(ne) {
1394
1394
  });
1395
1395
  return;
1396
1396
  }
1397
- const Q = vt(A, 2);
1397
+ const Q = yt(A, 2);
1398
1398
  let re = 0;
1399
1399
  const xe = [];
1400
1400
  u.title = a("inventory.transfer.receiveRequest.bulk.emailProgress"), u.current = 0, u.total = A.length, u.done = !1, u.cancelled = !1, u.visible = !0, await tt(), await new Promise((_) => setTimeout(_, 100));
@@ -0,0 +1,126 @@
1
+ import { defineComponent as E, computed as v, ref as j, resolveComponent as f, createElementBlock as u, openBlock as l, createVNode as y, withCtx as x, createElementVNode as p, unref as t, createBlock as L, createCommentVNode as M, Fragment as b, renderList as S, createTextVNode as C, toDisplayString as k } from "vue";
2
+ import { u as D } from "./app-DurCmkYx.js";
3
+ import { useCoreStore as T, useI18n as U } from "@feedmepos/mf-common";
4
+ const W = { class: "inline-flex" }, q = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, G = { class: "relative" }, H = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, Q = /* @__PURE__ */ E({
5
+ __name: "ChangeLocationComponent",
6
+ props: {
7
+ showBusiness: { type: Boolean }
8
+ },
9
+ setup(J) {
10
+ const n = D(), $ = T(), V = v(() => {
11
+ var e;
12
+ return (e = $.currentBusiness.value) == null ? void 0 : e.name;
13
+ }), { t: w } = U(), h = j(""), a = v({
14
+ get() {
15
+ return n.businessLevel;
16
+ },
17
+ set(e) {
18
+ n.businessLevel = e;
19
+ }
20
+ }), g = v(
21
+ () => n.locations.map((e) => ({
22
+ label: e.name,
23
+ value: e.dbName,
24
+ type: e.type,
25
+ code: e.doc.profile.code ?? "--"
26
+ })).filter((e) => {
27
+ var c;
28
+ if (!h.value) return !0;
29
+ const s = h.value.toLocaleLowerCase();
30
+ return e.label.toLocaleLowerCase().includes(s) || ((c = e.code) == null ? void 0 : c.toLocaleLowerCase().includes(s));
31
+ })
32
+ ), B = v(
33
+ () => g.value.filter((e) => e.type === "restaurant")
34
+ ), N = v(
35
+ () => g.value.filter((e) => e.type === "warehouse")
36
+ );
37
+ function F({ value: e }) {
38
+ a.value = !1, n.selectLocation(n.locations.find((s) => s.dbName === e));
39
+ }
40
+ return (e, s) => {
41
+ const c = f("FmIcon"), R = f("FmSearch"), _ = f("FmMenuItem"), z = f("FmMenu");
42
+ return l(), u("div", W, [
43
+ y(z, { "close-on-click": !0 }, {
44
+ "menu-button": x(() => [
45
+ p("div", q, [
46
+ y(c, {
47
+ name: e.showBusiness && a.value ? "store" : "storefront",
48
+ size: "sm"
49
+ }, null, 8, ["name"]),
50
+ p("div", A, [
51
+ e.showBusiness && a.value ? (l(), u(b, { key: 0 }, [
52
+ C(k(V.value), 1)
53
+ ], 64)) : t(n)._currentLocation ? (l(), u(b, { key: 1 }, [
54
+ C(k(t(n)._currentLocation.name) + " (" + k(t(n)._currentLocation.doc.profile.code ?? "--") + ") ", 1)
55
+ ], 64)) : (l(), u(b, { key: 2 }, [
56
+ C(k(t(w)("inventory.common.noLocationSelected")), 1)
57
+ ], 64))
58
+ ]),
59
+ y(c, {
60
+ name: "expand_more",
61
+ size: "sm"
62
+ })
63
+ ])
64
+ ]),
65
+ default: x(() => [
66
+ p("div", G, [
67
+ p("div", H, [
68
+ y(R, {
69
+ "model-value": h.value,
70
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => h.value = o),
71
+ placeholder: t(w)("inventory.common.table.toolbar.filterItems")
72
+ }, null, 8, ["model-value", "placeholder"])
73
+ ]),
74
+ p("div", null, [
75
+ e.showBusiness ? (l(), L(_, {
76
+ key: 0,
77
+ "model-value": a.value,
78
+ label: V.value,
79
+ sublabel: "Business",
80
+ onClick: s[1] || (s[1] = (o) => a.value = !0)
81
+ }, null, 8, ["model-value", "label"])) : M("", !0),
82
+ (l(!0), u(b, null, S(B.value, (o) => {
83
+ var i;
84
+ return l(), L(_, {
85
+ key: o.value,
86
+ "model-value": !a.value && ((i = t(n)._currentLocation) == null ? void 0 : i.dbName) === o.value,
87
+ label: `${o.label} (${o.code})`,
88
+ sublabel: "Restaurant",
89
+ onClick: (r) => F(o),
90
+ onVnodeMounted: (r) => {
91
+ var d, m, I;
92
+ return !a.value && ((d = t(n)._currentLocation) == null ? void 0 : d.dbName) === o.value && ((m = r.el) == null || m.scrollIntoView({ behavior: "instant", block: "end" }), (I = r.el) == null || I.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
93
+ }
94
+ }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
95
+ }), 128)),
96
+ (l(!0), u(b, null, S(N.value, (o) => {
97
+ var i;
98
+ return l(), L(_, {
99
+ key: o.value,
100
+ "model-value": !a.value && ((i = t(n)._currentLocation) == null ? void 0 : i.dbName) === o.value,
101
+ label: o.label,
102
+ sublabel: "Warehouse",
103
+ onClick: (r) => F(o),
104
+ onVnodeMounted: (r) => {
105
+ var d, m;
106
+ return !a.value && ((d = t(n)._currentLocation) == null ? void 0 : d.dbName) === o.value && ((m = r.el) == null || m.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
107
+ }
108
+ }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
109
+ }), 128)),
110
+ !e.showBusiness && !B.value.length && !N.value.length ? (l(), L(_, {
111
+ key: 1,
112
+ disabled: "",
113
+ label: t(w)("inventory.common.noResultFound")
114
+ }, null, 8, ["label"])) : M("", !0)
115
+ ])
116
+ ])
117
+ ]),
118
+ _: 1
119
+ })
120
+ ]);
121
+ };
122
+ }
123
+ });
124
+ export {
125
+ Q as _
126
+ };
@@ -1,29 +1,30 @@
1
- import { defineComponent as De, ref as Q, computed as S, onMounted as tn, resolveComponent as J, openBlock as p, createElementBlock as C, Fragment as re, createTextVNode as fe, createBlock as ne, withCtx as te, createElementVNode as a, toDisplayString as N, unref as f, createVNode as D, createCommentVNode as H, h as _, watch as Be, renderList as ge, onUnmounted as Un, withModifiers as Nn, normalizeStyle as mt, normalizeClass as he, isRef as vt, reactive as Zt, createSlots as Vn, Teleport as En, mergeProps as Ln } from "vue";
2
- import { u as zn, _ as On } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
1
+ import { defineComponent as De, ref as Q, computed as S, onMounted as tn, resolveComponent as J, createElementBlock as C, createBlock as ne, openBlock as p, Fragment as re, createTextVNode as fe, withCtx as te, createElementVNode as a, createCommentVNode as H, createVNode as D, toDisplayString as N, unref as f, h as _, watch as Be, renderList as ge, onUnmounted as Un, withModifiers as Nn, normalizeStyle as mt, normalizeClass as he, isRef as vt, reactive as Zt, createSlots as Vn, Teleport as En, mergeProps as Ln } from "vue";
2
+ import { u as zn, _ as On } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
3
3
  import { useCoreStore as nn, useI18n as Je } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as ze, useDialog as on, components as ye, useProxiedModel as St, useBreakpoints as Gn } from "@feedmepos/ui-library";
5
- import { m as Hn, u as Oe, M as de, w as oe, q as an, s as Ae, O as _e, B as Re, c as Yn, a as Ft, j as Kn } from "./app-CnwVdB-r.js";
5
+ import { m as Hn, u as Oe, M as de, w as oe, q as an, s as Ae, O as _e, B as Re, c as Yn, a as Ft, j as Kn } from "./app-DurCmkYx.js";
6
6
  import { defineStore as sn, storeToRefs as Wn } from "pinia";
7
- import { b as ft, e as rn, f as qn, a as $e } from "./date2-CaCMUbxN.js";
8
- import { R as ln } from "./rules-CYCN4sgu.js";
9
- import { e as yt, j as qe, c as Qe, l as cn, m as un, a as Qn, k as dn, o as ie, t as Jn } from "./number-CF9W8sDX.js";
10
- import { b as Zn, d as Xn, c as eo, u as dt, w as to } from "./xlsx.util-0_Y_Q66v.js";
11
- import { i as It, u as Bt } from "./uom-rules-eVbKU0_1.js";
12
- import { u as no, a as oo } from "./useSseClient-DbWYwuT8.js";
13
- import { u as gt } from "./stock-D8S1alJa.js";
7
+ import { b as ft, e as rn, f as qn, a as $e } from "./date2-Ci_bWmXL.js";
8
+ import { R as ln } from "./rules-De93ckqk.js";
9
+ import { e as yt, c as qe, j as Qe, l as cn, m as un, a as Qn, k as dn, o as ie, t as Jn } from "./number-DIjdjQTT.js";
10
+ import { b as Zn, d as Xn, u as dt, w as eo, c as to } from "./xlsx.util-B8IJR8tZ.js";
11
+ import { i as It, u as Bt } from "./uom-rules-BVc5JsZO.js";
12
+ import { u as no } from "./stock-oKttHRVV.js";
13
+ import { u as gt } from "./stock-DvslvTup.js";
14
14
  import { D as Xt, R as Ve } from "./row-action.enum-DQ9bJ_uv.js";
15
- import { c as ao } from "./component-kqxARxvM.js";
16
- import { f as so } from "./format-time-from-id-A1BqDOzj.js";
17
- import { f as ro } from "./recalculationUtils-pDs8JNho.js";
18
- import { _ as lo } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CL9YNazx.js";
15
+ import { c as oo } from "./component-kqxARxvM.js";
16
+ import { f as ao } from "./format-time-from-id-da6PCU8D.js";
17
+ import { f as so } from "./recalculationUtils-7tP21R_L.js";
18
+ import { _ as ro } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CbD3tpTg.js";
19
19
  import { _ as mn } from "./empty-placeholder-B0QU467o.js";
20
- import { F as $t } from "./FmAdminBadge-DjnBAgyv.js";
21
- import { u as io } from "./vue-i18n-Bov_Y0eC.js";
22
- import { F as co } from "./decimal-dpWXqHCT.js";
23
- import { d as uo } from "./dayjs.min-C413l7qz.js";
24
- import { F as mo } from "./FmDroppableField-J0xUsOTV.js";
25
- import { _ as fo } from "./FmConfirmationButton.vue_vue_type_script_setup_true_lang-DLrMEGFR.js";
26
- import { F as Ye, _ as po } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
20
+ import { F as $t } from "./FmAdminBadge-DlplQOHb.js";
21
+ import { u as lo } from "./vue-i18n-DeNNnVic.js";
22
+ import { F as io } from "./decimal-CqES0LqS.js";
23
+ import { u as co } from "./useSseClient-Cn8CX__U.js";
24
+ import { d as uo } from "./dayjs.min-C1KEGVyY.js";
25
+ import { F as mo } from "./FmDroppableField-J0tG_U3w.js";
26
+ import { _ as fo } from "./FmConfirmationButton.vue_vue_type_script_setup_true_lang-Vg8U7WMZ.js";
27
+ import { _ as po, F as Ye } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
27
28
  const Me = Hn((t, n) => {
28
29
  function e() {
29
30
  return Oe().currentLocation.dbName;
@@ -249,16 +250,16 @@ const Me = Hn((t, n) => {
249
250
  ], 64));
250
251
  };
251
252
  }
252
- }), _o = Qe(0);
253
+ }), _o = qe(0);
253
254
  function bt(t) {
254
255
  const n = t.measurementsAmounts.groupBy((e) => e.measurement.id);
255
256
  return t.sku.unit.measurements.reduce((e, o) => {
256
257
  var r, u;
257
258
  const i = ((u = (r = n.get(o.id)) == null ? void 0 : r[0]) == null ? void 0 : u.amount) ?? _o, s = yt(o.conversion, i);
258
- return qe(e, s);
259
+ return Qe(e, s);
259
260
  }, t.baseAmount);
260
261
  }
261
- const ko = Qe(0), xo = Qe(100);
262
+ const ko = qe(0), xo = qe(100);
262
263
  function wo(t, n, e, o, i, s, r, u) {
263
264
  var O, g, k, x, ee;
264
265
  const c = bt(t), b = o ?? c, y = cn(b, n), I = n.amount === 0 ? null : un(y, {
@@ -273,7 +274,7 @@ function wo(t, n, e, o, i, s, r, u) {
273
274
  return r && s && r.forEach((X) => {
274
275
  const T = { amount: 0, precision: 0 }, G = s[X];
275
276
  if (G) {
276
- const $ = qe(T, G);
277
+ const $ = Qe(T, G);
277
278
  B[`adjustment_${X}`] = Qn($);
278
279
  } else
279
280
  B[`adjustment_${X}`] = "0";
@@ -883,7 +884,7 @@ const fn = sn(
883
884
  }
884
885
  }
885
886
  function U(g) {
886
- const k = ro(
887
+ const k = so(
887
888
  g.filter((x) => !!x.closingId).map((x) => ({ closingId: x.closingId, draftCreatedAt: new Date(Re(x._id)) }))
888
889
  );
889
890
  return g.map((x) => ({
@@ -992,7 +993,7 @@ const fn = sn(
992
993
  accessorKey: "_id",
993
994
  header: () => n("inventory.closing.table.createdAt"),
994
995
  cell(g) {
995
- return so(`${g.getValue()}`);
996
+ return ao(`${g.getValue()}`);
996
997
  },
997
998
  sortingFn: (g, k) => new Date(Re(g.original._id)).getTime() - new Date(Re(k.original._id)).getTime(),
998
999
  enableSorting: !0
@@ -1150,7 +1151,7 @@ const fn = sn(
1150
1151
  value: Ve.Duplicate
1151
1152
  }
1152
1153
  ] : [];
1153
- return ao(
1154
+ return oo(
1154
1155
  [
1155
1156
  ...ee,
1156
1157
  ...k.status === _e.enum.DRAFT ? X : []
@@ -1195,12 +1196,12 @@ function Uo(t) {
1195
1196
  });
1196
1197
  continue;
1197
1198
  }
1198
- i.baseAmount = qe(i.baseAmount, o.baseAmount);
1199
+ i.baseAmount = Qe(i.baseAmount, o.baseAmount);
1199
1200
  for (const s of o.measurementsAmounts) {
1200
1201
  const r = i.measurementsAmounts.findIndex(
1201
1202
  (u) => u.measurement.id === s.measurement.id
1202
1203
  );
1203
- r > -1 ? i.measurementsAmounts[r].amount = qe(
1204
+ r > -1 ? i.measurementsAmounts[r].amount = Qe(
1204
1205
  i.measurementsAmounts[r].amount,
1205
1206
  s.amount
1206
1207
  ) : i.measurementsAmounts.push({ ...s, amount: { ...s.amount } });
@@ -1237,7 +1238,7 @@ const No = { class: "fm-typo-en-heading-lg-600" }, Vo = { class: "py-4" }, Eo =
1237
1238
  },
1238
1239
  emits: ["update:show", "refresh", "approve"],
1239
1240
  setup(t, { emit: n }) {
1240
- const { FmStepper: e, FmStep: o, FmDialog: i, FmButton: s } = ye, { t: r } = io(), u = Ft(), c = t, b = n, y = S(
1241
+ const { FmStepper: e, FmStep: o, FmDialog: i, FmButton: s } = ye, { t: r } = lo(), u = Ft(), c = t, b = n, y = S(
1241
1242
  () => {
1242
1243
  var $, Y;
1243
1244
  return (($ = c.draft) == null ? void 0 : $.stockSnapshot) && ((Y = c.draft) == null ? void 0 : Y.stockSnapshot) !== void 0;
@@ -1515,7 +1516,7 @@ const No = { class: "fm-typo-en-heading-lg-600" }, Vo = { class: "py-4" }, Eo =
1515
1516
  }
1516
1517
  });
1517
1518
  function ia(t) {
1518
- const n = Me(), e = oo(), o = ze(), { t: i } = Je(), s = Q(!1), r = Q(null);
1519
+ const n = Me(), e = co(), o = ze(), { t: i } = Je(), s = Q(!1), r = Q(null);
1519
1520
  let u = !1, c = null, b = !1, y = !1;
1520
1521
  function I() {
1521
1522
  L();
@@ -2555,7 +2556,7 @@ const Ca = { class: "fm-typo-en-body-lg-400" }, Aa = { class: "fm-typo-en-body-l
2555
2556
  },
2556
2557
  { immediate: !0 }
2557
2558
  );
2558
- const Xe = S(() => tt.value.reduce((m, l) => m + Number(l.stockTakeValue), 0)), et = Qe(0), gn = Qe(100);
2559
+ const Xe = S(() => tt.value.reduce((m, l) => m + Number(l.stockTakeValue), 0)), et = qe(0), gn = qe(100);
2559
2560
  async function bn() {
2560
2561
  var m, l;
2561
2562
  if (k._currentLocation) {
@@ -2818,7 +2819,7 @@ const Ca = { class: "fm-typo-en-body-lg-400" }, Aa = { class: "fm-typo-en-body-l
2818
2819
  accessorFn: (l) => {
2819
2820
  var V;
2820
2821
  const v = (V = h.value.find((W) => W.id === l.id)) == null ? void 0 : V.balance;
2821
- return v ? co.toDouble(v) : l.physicalBalance;
2822
+ return v ? io.toDouble(v) : l.physicalBalance;
2822
2823
  },
2823
2824
  header: () => we("Stock Take balance", "The physical balance recorded during stock take."),
2824
2825
  cell(l) {
@@ -3057,7 +3058,7 @@ const Ca = { class: "fm-typo-en-body-lg-400" }, Aa = { class: "fm-typo-en-body-l
3057
3058
  ), st = wn.value.get(P._id), rt = st ? Number(oe.toFormatString({ value: st })) : 0, q = xn.value.get(P._id), ve = {};
3058
3059
  if (B.value.forEach((ke) => {
3059
3060
  const it = ve[ke] ?? { amount: 0, precision: 0 }, ct = q == null ? void 0 : q[ke];
3060
- ct && (ve[ke] = qe(it, ct));
3061
+ ct && (ve[ke] = Qe(it, ct));
3061
3062
  }), !Z) {
3062
3063
  const ke = Number(oe.toFormatString({ value: le })), it = 0 - ke, ct = it * se / Ce, Rn = 0, Mn = ke * se / Ce;
3063
3064
  return {
@@ -3616,7 +3617,7 @@ async function ar(t) {
3616
3617
  o.onload = (i) => {
3617
3618
  var s;
3618
3619
  try {
3619
- const r = (s = i.target) == null ? void 0 : s.result, u = eo(r, { type: "array" }), c = u.SheetNames[0], b = u.Sheets[c], y = dt.sheet_to_json(b, {
3620
+ const r = (s = i.target) == null ? void 0 : s.result, u = to(r, { type: "array" }), c = u.SheetNames[0], b = u.Sheets[c], y = dt.sheet_to_json(b, {
3620
3621
  header: 1,
3621
3622
  defval: ""
3622
3623
  }), I = (j) => String(j).trim().toLowerCase().replace(/^\uFEFF/, ""), E = y.findIndex(
@@ -3678,7 +3679,7 @@ function lr(t, n) {
3678
3679
  ["Code", "Name", "Balance"],
3679
3680
  ...e.map((c) => [c.code, c.name, ""])
3680
3681
  ], r = dt.aoa_to_sheet(s), u = dt.book_new();
3681
- dt.book_append_sheet(u, r, "Template"), to(u, i, { bookType: "csv" });
3682
+ dt.book_append_sheet(u, r, "Template"), eo(u, i, { bookType: "csv" });
3682
3683
  }
3683
3684
  function ir() {
3684
3685
  const t = Q([]), n = Q([]), e = Q(!1), o = Ft(), i = Oe(), s = gt(), r = S(
@@ -4119,7 +4120,7 @@ const cr = { class: "flex flex-col gap-16" }, ur = {
4119
4120
  }), jr = ["onClick"], Pr = { class: "flex items-start gap-8" }, Rr = { class: "fm-typo-body-md-400 line-clamp-3 w-full" }, Mr = { class: "flex flex-col gap-8" }, Ur = { class: "flex items-start gap-4" }, Nr = { class: "flex-1 flex flex-col gap-8" }, Vr = { class: "flex flex-col" }, Er = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zr = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Or = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Gr = {
4120
4121
  key: 0,
4121
4122
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
4122
- }, hl = /* @__PURE__ */ De({
4123
+ }, _l = /* @__PURE__ */ De({
4123
4124
  __name: "ClosingDraftView",
4124
4125
  setup(t) {
4125
4126
  const { t: n } = Je(), { viewDraft: e } = pt(), { viewClosingDraftProps: o, viewClosingDraftShow: i } = Wn(pt()), s = Oe(), r = fn(), u = zn(), { breakpoints: c } = Gn();
@@ -4193,7 +4194,7 @@ const cr = { class: "flex flex-col gap-16" }, ur = {
4193
4194
  }
4194
4195
  ])
4195
4196
  }, [
4196
- D(lo, {
4197
+ D(ro, {
4197
4198
  "change-location": "",
4198
4199
  searchable: "",
4199
4200
  search: y.value,
@@ -4315,5 +4316,5 @@ const cr = { class: "flex flex-col gap-16" }, ur = {
4315
4316
  }
4316
4317
  });
4317
4318
  export {
4318
- hl as default
4319
+ _l as default
4319
4320
  };