@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.3

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 (156) hide show
  1. package/dist/App-DRXADP0k.js +1498 -0
  2. package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-hV1msz5Y.js} +9 -9
  3. package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-BX1Lopf0.js} +2 -2
  4. package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-BNKW8-XY.js} +2 -2
  5. package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-DiLDsL83.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-oQh6kFLc.js} +20 -20
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js +151 -0
  8. package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-sgLoaSf4.js} +20 -20
  9. package/dist/{ClosingHistoryView-Blyq9-BS.js → ClosingHistoryView-BnE9HrzA.js} +5 -5
  10. package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-BD3Pa11r.js} +302 -291
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js} +1 -1
  12. package/dist/{DefaultView-CsIMmQAY.js → DefaultView-CuzvVkfE.js} +5 -5
  13. package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-w-1aAOY1.js} +2 -2
  14. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js +58 -0
  15. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js} +1668 -1671
  16. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js +308 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js} +2 -2
  19. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js +120 -0
  20. package/dist/{FmMultiselectDialog-BAw-gp5K.js → FmMultiselectDialog-BqZgHP8s.js} +1 -1
  21. package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-CULwA_hi.js} +2 -2
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js} +6 -6
  23. package/dist/{ImportView-BmotFC-3.js → ImportView-DqQG673_.js} +6 -6
  24. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js} +1 -1
  25. package/dist/IngredientGroupView-CyngKxPo.js +1000 -0
  26. package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-pzpP6oXT.js} +309 -296
  27. package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-C5aAhB6e.js} +4 -4
  28. package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bqun7nX0.js} +2403 -2408
  29. package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-r_Ua1C4a.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js} +5 -5
  31. package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-BQuZLohR.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js} +1 -1
  33. package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-95fu_CfH.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js} +7 -7
  35. package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-DIjor_Ix.js} +3 -3
  36. package/dist/{PublishView-DS2FZ66p.js → PublishView-DYObyHQq.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-C0jCmI9L.js} +2 -2
  38. package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-i7ibPfIE.js} +14 -14
  39. package/dist/{RecipeView-DvI6X-uN.js → RecipeView-C5VO7yr3.js} +18 -18
  40. package/dist/SettingsView-CdBloj9k.js +983 -0
  41. package/dist/{StockView-Z9wGihT7.js → StockView-g_6eJ62R.js} +327 -322
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js} +1 -1
  43. package/dist/{SupplierView-D8q6siZW.js → SupplierView-DkYp_Frj.js} +451 -447
  44. package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-CfkV4Y3y.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js} +21 -21
  48. package/dist/{TransferTemplateView-DtsJzmUr.js → TransferTemplateView-Ne2gYUSn.js} +21 -21
  49. package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-Db0_otOb.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js} +4 -4
  51. package/dist/{UnitView-CM695-VI.js → UnitView-CiCeQ63i.js} +8 -8
  52. package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-BcuJSOMF.js} +193 -189
  53. package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-CPQmtOKQ.js} +15 -15
  54. package/dist/api/feature-flags.d.ts +10 -0
  55. package/dist/api/inventory.d.ts +9 -9
  56. package/dist/api/license.d.ts +9 -0
  57. package/dist/{app-Cb5s4jMu.js → app-DqJp3dcI.js} +146 -108
  58. package/dist/app.d.ts +36 -0
  59. package/dist/app.js +1 -1
  60. package/dist/{closing-template-DnqnpXxn.js → closing-template-BNlgZviN.js} +1 -1
  61. package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
  62. package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
  63. package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
  64. package/dist/components/{PreviewBadge.vue.d.ts → FeatureCapabilityGate.vue.d.ts} +10 -7
  65. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  66. package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
  67. package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
  68. package/dist/composable/useNavigationMenu.d.ts +2 -1
  69. package/dist/{inventory-core-dart.default-DDRxXXnt.js → core-Js7d-3Pv.js} +121 -118
  70. package/dist/{date2-BPhD_1Of.js → date2-Ci7521dn.js} +1 -1
  71. package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-Cyp32v4J.js} +1 -1
  72. package/dist/{decimal-Df6a50Ld.js → decimal-BGdm5R3A.js} +2 -2
  73. package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-B2cJ-rtd.js} +1 -1
  74. package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-By5WeKZ0.js} +1 -1
  75. package/dist/feature-fG7d73oi.js +371 -0
  76. package/dist/feature-flags/core.d.ts +27 -0
  77. package/dist/feature-flags/core.spec.d.ts +1 -0
  78. package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
  79. package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
  80. package/dist/feature-flags/plan-tier.d.ts +6 -0
  81. package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
  82. package/dist/feature-flags/portal-feature-catalog.d.ts +24 -0
  83. package/dist/feature-flags/vue.d.ts +14 -0
  84. package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-Q8C2P96H.js} +1 -1
  85. package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-CICrmm8r.js} +13 -13
  86. package/dist/id-to-date-DeN5x0LR.js +67 -0
  87. package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BOTQWxr6.js} +28 -28
  88. package/dist/{index-C-mazZwS.js → index-BbbqCCfp.js} +3 -3
  89. package/dist/{index-BXaIMGnI.js → index-Cxm3Sgfv.js} +1 -1
  90. package/dist/index-Dqf27vLH.js +841 -0
  91. package/dist/{index-UmM6gHJ1.js → index-tCYhLCKP.js} +1 -1
  92. package/dist/{lz-string-Bibw5D_6.js → lz-string-Dy4Pg8mh.js} +1 -1
  93. package/dist/{netsuite-Bev0OtQT.js → netsuite-BaJjkDM8.js} +2 -2
  94. package/dist/{number-y_W4pn_d.js → number-CB36d2PQ.js} +3 -3
  95. package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-DLm93Bpx.js} +1 -1
  96. package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-CDhn9ZIF.js} +1 -1
  97. package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-Cqvefakh.js} +1 -1
  98. package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-NTfVmGY8.js} +2 -2
  99. package/dist/{rules-CZTBvenw.js → rules-C8dfM84-.js} +2 -2
  100. package/dist/{stock-XINW8JOM.js → stock-BGB0Siue.js} +3 -3
  101. package/dist/{stock-CxCRZo_D.js → stock-Qu5IiN2_.js} +1 -1
  102. package/dist/stores/feature.d.ts +12 -0
  103. package/dist/stores/integration/netsuite.d.ts +2 -2
  104. package/dist/stores/location.d.ts +42 -42
  105. package/dist/stores/supplier.d.ts +48 -48
  106. package/dist/stores/warehouse.d.ts +1 -1
  107. package/dist/{supplier-CkZdeMcl.js → supplier-CZdNOSMN.js} +17 -17
  108. package/dist/{surcharge-FRSFqjGl.js → surcharge-Cm40oJvU.js} +1 -1
  109. package/dist/tsconfig.app.tsbuildinfo +1 -1
  110. package/dist/{uom-rules-Cm1styDr.js → uom-rules-L-IW4Nwk.js} +1 -1
  111. package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-B2TDVJM6.js} +2 -2
  112. package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-BJ00hl5f.js} +2 -2
  113. package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-DYAPMvo9.js} +2 -2
  114. package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-w-9tymYS.js} +2 -2
  115. package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BFCIo5sA.js} +1 -1
  116. package/dist/useNavigationMenu-BPHAH5sJ.js +352 -0
  117. package/dist/{useSseClient-CCV4mPzD.js → useSseClient-CWjRacRs.js} +1 -1
  118. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  119. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  120. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  121. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  122. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  123. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  124. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
  125. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  126. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  127. package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
  128. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  129. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  130. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  131. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
  132. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
  133. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
  134. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
  135. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
  136. package/dist/views/settings/FeatureFlagView.vue.d.ts +2 -0
  137. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  138. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  139. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  140. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  141. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  142. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  143. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  144. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
  145. package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-S4YQ9w6a.js} +295 -295
  146. package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-CP8_VajN.js} +2 -2
  147. package/package.json +5 -5
  148. package/dist/App-BXgpGzGR.js +0 -1476
  149. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
  150. package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
  151. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
  152. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
  153. package/dist/SettingsView-sThYErMz.js +0 -698
  154. package/dist/feature-Ckn5ra3z.js +0 -1136
  155. package/dist/useNavigationMenu-CSinmNCY.js +0 -172
  156. /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
@@ -1,22 +1,23 @@
1
- import { ref as D, defineComponent as j, watch as te, onMounted as le, onUnmounted as De, createElementBlock as q, openBlock as R, toRaw as Ve, reactive as Re, createElementVNode as V, createVNode as k, toDisplayString as N, unref as r, resolveComponent as L, createBlock as O, createCommentVNode as oe, createSlots as We, withCtx as B, createTextVNode as Me, renderSlot as Ee, computed as C, isRef as _e, normalizeClass as Pe, normalizeStyle as Ue } from "vue";
2
- import { d as Ne, n as Le, o as Ie, c as z, p as Be, S as qe, u as ze } from "./app-Cb5s4jMu.js";
3
- import { useCoreStore as Fe, useI18n as G } from "@feedmepos/mf-common";
4
- import { D as ke, R as Q } from "./row-action.enum-ncgDYAjP.js";
1
+ import { ref as T, defineComponent as j, watch as te, onMounted as le, onUnmounted as De, createElementBlock as q, openBlock as D, toRaw as Ve, reactive as Re, createElementVNode as V, createVNode as k, toDisplayString as P, unref as r, resolveComponent as I, createBlock as O, createCommentVNode as oe, createSlots as We, withCtx as B, createTextVNode as Me, renderSlot as Ee, computed as C, isRef as _e, normalizeClass as Ue, normalizeStyle as Pe } from "vue";
2
+ import { d as Ne, n as Le, o as Ie, c as z, p as Be, S as qe, u as ze } from "./app-DqJp3dcI.js";
3
+ import { useCoreStore as Se, useI18n as G } from "@feedmepos/mf-common";
4
+ import { D as ke, R as Q } from "./row-action.enum-NTfVmGY8.js";
5
5
  import { c as Oe } from "./component-BmLAdDiY.js";
6
- import { u as Se } from "./netsuite-Bev0OtQT.js";
6
+ import { u as Fe } from "./netsuite-BaJjkDM8.js";
7
7
  import { u as je, _ as Ge } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
8
- import { F as T } from "./form-mode.enum-BKiNVH6A.js";
8
+ import { F as $ } from "./form-mode.enum-BKiNVH6A.js";
9
9
  import { useDialogChild as Ke, useDialog as xe, useSnackbar as se, useProxiedModel as ae, useBreakpoints as He } from "@feedmepos/ui-library";
10
- import { R as I } from "./rules-CZTBvenw.js";
10
+ import { R as L } from "./rules-C8dfM84-.js";
11
11
  import { c as $e, u as re, g as Ye } from "./googlemap-D9vA7GsS.js";
12
- import { d as Ze } from "./index-UmM6gHJ1.js";
12
+ import { d as Ze } from "./index-tCYhLCKP.js";
13
13
  import { _ as Je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  import { _ as Qe } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
15
- import { u as Xe } from "./feature-Ckn5ra3z.js";
16
- import { _ as eo, F as X } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
17
- import { _ as oo } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js";
15
+ import { a as Xe } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js";
16
+ import { useFeatureStore as eo } from "./feature-fG7d73oi.js";
17
+ import { _ as oo, F as X } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
18
+ import { _ as to } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js";
18
19
  const ee = Ne((f, b) => {
19
- const g = Fe();
20
+ const g = Se();
20
21
  return {
21
22
  async readWarehouses() {
22
23
  var d;
@@ -40,12 +41,12 @@ const ee = Ne((f, b) => {
40
41
  }
41
42
  };
42
43
  });
43
- function to() {
44
+ function ao() {
44
45
  return {
45
46
  warehouses: []
46
47
  };
47
48
  }
48
- const Ae = D(to());
49
+ const Ae = T(ao());
49
50
  function Te() {
50
51
  return {
51
52
  // state
@@ -82,8 +83,8 @@ function Te() {
82
83
  }
83
84
  };
84
85
  }
85
- function ao(f, b) {
86
- const g = Se();
86
+ function lo(f, b) {
87
+ const g = Fe();
87
88
  function a(u, y) {
88
89
  if (u === Q.Edit) {
89
90
  f(z(y));
@@ -153,7 +154,7 @@ function ao(f, b) {
153
154
  }
154
155
  return { columnDefs: d, formatRowData: n };
155
156
  }
156
- const lo = /* @__PURE__ */ j({
157
+ const so = /* @__PURE__ */ j({
157
158
  __name: "GoogleMap",
158
159
  props: {
159
160
  markers: {
@@ -186,7 +187,7 @@ const lo = /* @__PURE__ */ j({
186
187
  (c = u.value) == null || c.setCenter(t), (h = u.value) == null || h.setZoom(18);
187
188
  }
188
189
  });
189
- const { googleMap: d } = re(), n = D(), u = D(null), y = [];
190
+ const { googleMap: d } = re(), n = T(), u = T(null), y = [];
190
191
  function s(t) {
191
192
  return {
192
193
  lat: t.latLng.lat(),
@@ -194,38 +195,38 @@ const lo = /* @__PURE__ */ j({
194
195
  };
195
196
  }
196
197
  function A(t, c, h) {
197
- const S = d.maps.event.addListener(t, c, h);
198
- y.push(S);
198
+ const p = d.maps.event.addListener(t, c, h);
199
+ y.push(p);
199
200
  }
200
- const w = D([]);
201
- function $(t, c, h) {
201
+ const w = T([]);
202
+ function x(t, c, h) {
202
203
  A(t, c, h);
203
204
  }
204
205
  function M(t) {
205
- E(null), w.value = t.map((c, h) => {
206
- const S = new d.maps.Marker({
206
+ W(null), w.value = t.map((c, h) => {
207
+ const p = new d.maps.Marker({
207
208
  position: c,
208
209
  draggable: !0
209
210
  });
210
- return $(S, "dragend", (p) => {
211
- l("marker-change", { index: h, position: s(p) });
212
- }), S;
213
- }), E(u.value);
211
+ return x(p, "dragend", (N) => {
212
+ l("marker-change", { index: h, position: s(N) });
213
+ }), p;
214
+ }), W(u.value);
214
215
  }
215
- function E(t) {
216
+ function W(t) {
216
217
  w.value.map((c) => Ve(c).setMap(t));
217
218
  }
218
- const m = D([]);
219
- function F(t, c, h) {
219
+ const m = T([]);
220
+ function S(t, c, h) {
220
221
  A(t, c, h);
221
222
  }
222
- function x(t, c, h) {
223
+ function F(t, c, h) {
223
224
  A(t, c, h);
224
225
  }
225
226
  function i(t) {
226
- return m.value[t].getPath().getArray().map(({ lat: h, lng: S }) => ({
227
+ return m.value[t].getPath().getArray().map(({ lat: h, lng: p }) => ({
227
228
  lat: h(),
228
- lng: S()
229
+ lng: p()
229
230
  }));
230
231
  }
231
232
  function v(t) {
@@ -233,24 +234,24 @@ const lo = /* @__PURE__ */ j({
233
234
  l("polygon-change", { index: t, path: c });
234
235
  }
235
236
  function _(t, c) {
236
- const S = i(t).filter((p, K) => K !== c);
237
- l("polygon-change", { index: t, path: S });
237
+ const p = i(t).filter((N, K) => K !== c);
238
+ l("polygon-change", { index: t, path: p });
238
239
  }
239
- function P(t, c) {
240
+ function E(t, c) {
240
241
  c.vertex !== void 0 ? _(t, c.vertex) : l("polygon-right-click", t);
241
242
  }
242
- function W(t) {
243
+ function R(t) {
243
244
  U(null), m.value = t.map((c, h) => {
244
- const S = new d.maps.Polygon({
245
+ const p = new d.maps.Polygon({
245
246
  paths: c.paths,
246
247
  strokeColor: c.strokeColor,
247
248
  fillColor: c.fillColor,
248
249
  fillOpacity: 0.5,
249
250
  editable: a.editable
250
251
  });
251
- return F(S, "contextmenu", (p) => P(h, p)), S.getPaths().forEach((p) => {
252
- x(p, "insert_at", () => v(h)), x(p, "set_at", () => v(h));
253
- }), S;
252
+ return S(p, "contextmenu", (N) => E(h, N)), p.getPaths().forEach((N) => {
253
+ F(N, "insert_at", () => v(h)), F(N, "set_at", () => v(h));
254
+ }), p;
254
255
  }), U(u.value);
255
256
  }
256
257
  function U(t) {
@@ -269,17 +270,17 @@ const lo = /* @__PURE__ */ j({
269
270
  scrollwheel: !0
270
271
  }), o(u.value, "click", (t) => l("map-click", s(t)));
271
272
  }
272
- return te(() => a.markers, M, { deep: !0 }), te(() => a.polygons, W, { deep: !0 }), le(() => {
273
- !n.value || !d || (e(), M(a.markers), W(a.polygons));
273
+ return te(() => a.markers, M, { deep: !0 }), te(() => a.polygons, R, { deep: !0 }), le(() => {
274
+ !n.value || !d || (e(), M(a.markers), R(a.polygons));
274
275
  }), De(() => {
275
276
  y.forEach((t) => t.remove());
276
- }), (t, c) => (R(), q("div", {
277
+ }), (t, c) => (D(), q("div", {
277
278
  ref_key: "mapRef",
278
279
  ref: n,
279
280
  class: "map app-map"
280
281
  }, null, 512));
281
282
  }
282
- }), so = { class: "flex flex-col gap-24" }, ro = { class: "flex flex-col gap-8" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, co = { class: "fm-typo-en-body-lg-600" }, mo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, po = { class: "fm-typo-en-body-lg-600" }, fo = /* @__PURE__ */ j({
283
+ }), ro = { class: "flex flex-col gap-24" }, no = { class: "flex flex-col gap-8" }, uo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, io = { class: "fm-typo-en-body-lg-600" }, co = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, mo = { class: "fm-typo-en-body-lg-600" }, po = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, fo = { class: "fm-typo-en-body-lg-600" }, yo = /* @__PURE__ */ j({
283
284
  __name: "CoordinateDialog",
284
285
  props: {
285
286
  address: {
@@ -294,7 +295,7 @@ const lo = /* @__PURE__ */ j({
294
295
  setup(f) {
295
296
  const b = f, g = Ke(), a = re(), { t: l } = G(), d = Re(
296
297
  z(b.coordinate ? b.coordinate : $e.jb)
297
- ), n = D(""), u = Ze(async function() {
298
+ ), n = T(""), u = Ze(async function() {
298
299
  n.value = await a.getFirstMatchingAddress(
299
300
  d.lat,
300
301
  d.lng
@@ -306,23 +307,23 @@ const lo = /* @__PURE__ */ j({
306
307
  function y({ position: A }) {
307
308
  d.lat = A.lat, d.lng = A.lng, g.emitData(z(d)), u();
308
309
  }
309
- const s = D();
310
- return (A, w) => (R(), q("div", so, [
311
- V("div", ro, [
310
+ const s = T();
311
+ return (A, w) => (D(), q("div", ro, [
312
+ V("div", no, [
312
313
  V("div", null, [
313
- V("span", no, N(r(l)("inventory.formField.coordinate.address")) + ": ", 1),
314
- V("span", uo, N(n.value), 1)
314
+ V("span", uo, P(r(l)("inventory.formField.coordinate.address")) + ": ", 1),
315
+ V("span", io, P(n.value), 1)
315
316
  ]),
316
317
  V("div", null, [
317
- V("span", io, N(r(l)("inventory.formField.coordinate.longitude")) + ": ", 1),
318
- V("span", co, N(d.lng), 1)
318
+ V("span", co, P(r(l)("inventory.formField.coordinate.longitude")) + ": ", 1),
319
+ V("span", mo, P(d.lng), 1)
319
320
  ]),
320
321
  V("div", null, [
321
- V("span", mo, N(r(l)("inventory.formField.coordinate.latitude")) + ": ", 1),
322
- V("span", po, N(d.lat), 1)
322
+ V("span", po, P(r(l)("inventory.formField.coordinate.latitude")) + ": ", 1),
323
+ V("span", fo, P(d.lat), 1)
323
324
  ])
324
325
  ]),
325
- k(lo, {
326
+ k(so, {
326
327
  ref_key: "gmapRef",
327
328
  ref: s,
328
329
  class: "h-[272px] sm:h-[240px] xs:h-[240px]",
@@ -330,21 +331,21 @@ const lo = /* @__PURE__ */ j({
330
331
  center: d,
331
332
  markers: [d],
332
333
  onMarkerChange: y,
333
- onMapClick: w[0] || (w[0] = ($) => y({ position: $ }))
334
+ onMapClick: w[0] || (w[0] = (x) => y({ position: x }))
334
335
  }, null, 8, ["center", "markers"])
335
336
  ]));
336
337
  }
337
- }), yo = /* @__PURE__ */ Je(fo, [["__scopeId", "data-v-272f5e8b"]]);
338
+ }), vo = /* @__PURE__ */ Je(yo, [["__scopeId", "data-v-272f5e8b"]]);
338
339
  function Ce([f, b]) {
339
340
  return {
340
341
  lat: b,
341
342
  lng: f
342
343
  };
343
344
  }
344
- function vo({ lng: f, lat: b }) {
345
+ function ho({ lng: f, lat: b }) {
345
346
  return [f, b];
346
347
  }
347
- const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1 }, wo = /* @__PURE__ */ j({
348
+ const bo = { class: "flex gap-8 items-center" }, go = { key: 0 }, wo = { key: 1 }, Vo = /* @__PURE__ */ j({
348
349
  __name: "FmCoordinateInput",
349
350
  props: {
350
351
  address: {},
@@ -362,20 +363,20 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
362
363
  },
363
364
  emits: ["update:modelValue"],
364
365
  setup(f, { emit: b }) {
365
- const g = f, a = b, l = re(), d = xe(), n = se(), u = ae(g, "modelValue"), y = D(!1), { t: s } = G();
366
+ const g = f, a = b, l = re(), d = xe(), n = se(), u = ae(g, "modelValue"), y = T(!1), { t: s } = G();
366
367
  function A(m) {
367
368
  if (m != null && m[0] && (m != null && m[1]))
368
369
  return s("inventory.formField.coordinate.longLat", [m[0].toFixed(3), m[1].toFixed(3)]);
369
370
  }
370
371
  async function w(m) {
371
- var _, P;
372
- const F = g.modelValue, x = !F && ((_ = g.address) != null && _.formatted) ? await l.getFirstMatchingCoordinate(g.address.formatted) : null, i = Ye(g.country), v = F ? Ce(F) : x ? Ce(x) : i;
372
+ var _, E;
373
+ const S = g.modelValue, F = !S && ((_ = g.address) != null && _.formatted) ? await l.getFirstMatchingCoordinate(g.address.formatted) : null, i = Ye(g.country), v = S ? Ce(S) : F ? Ce(F) : i;
373
374
  d.open({
374
375
  title: g.dialogTitle ?? g.label ?? s("inventory.formField.coordinate.pinLocation"),
375
376
  closeButton: !0,
376
- contentComponent: yo,
377
+ contentComponent: vo,
377
378
  contentComponentProps: {
378
- address: (P = g.address) == null ? void 0 : P.formatted,
379
+ address: (E = g.address) == null ? void 0 : E.formatted,
379
380
  coordinate: v
380
381
  },
381
382
  primaryActions: {
@@ -388,7 +389,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
388
389
  }
389
390
  }).onPrimary(m);
390
391
  }
391
- const $ = (m) => a("update:modelValue", m ? vo(m) : null);
392
+ const x = (m) => a("update:modelValue", m ? ho(m) : null);
392
393
  async function M() {
393
394
  if (!g.disabled) {
394
395
  if (!l.isGoogleMapReady) {
@@ -399,15 +400,15 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
399
400
  });
400
401
  return;
401
402
  }
402
- w($);
403
+ w(x);
403
404
  }
404
405
  }
405
- function E() {
406
+ function W() {
406
407
  a("update:modelValue", null);
407
408
  }
408
- return (m, F) => {
409
- const x = L("FmField"), i = L("FmButton"), v = L("FmFormGroup");
410
- return R(), q("div", ho, [
409
+ return (m, S) => {
410
+ const F = I("FmField"), i = I("FmButton"), v = I("FmFormGroup");
411
+ return D(), q("div", bo, [
411
412
  k(v, {
412
413
  class: "flex-1",
413
414
  "model-value": r(u),
@@ -420,20 +421,20 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
420
421
  focused: y.value,
421
422
  "helper-text": m.helperText,
422
423
  "helper-state": m.helperState,
423
- onClick: F[0] || (F[0] = (_) => M())
424
+ onClick: S[0] || (S[0] = (_) => M())
424
425
  }, We({
425
426
  default: B(({ invalid: _ }) => [
426
- m.modelValue && m.modelValue[0] && m.modelValue[1] ? (R(), q("div", bo, [
427
- k(x, {
427
+ m.modelValue && m.modelValue[0] && m.modelValue[1] ? (D(), q("div", go, [
428
+ k(F, {
428
429
  invalid: _,
429
430
  class: "fm-typo-en-body-lg-400"
430
431
  }, {
431
432
  default: B(() => [
432
- Me(N(A(m.modelValue)), 1)
433
+ Me(P(A(m.modelValue)), 1)
433
434
  ]),
434
435
  _: 2
435
436
  }, 1032, ["invalid"])
436
- ])) : (R(), q("div", go, [
437
+ ])) : (D(), q("div", wo, [
437
438
  k(i, {
438
439
  label: r(s)("inventory.formField.coordinate.addCoordinate"),
439
440
  "prepend-icon": "add",
@@ -451,19 +452,19 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
451
452
  key: "0"
452
453
  } : void 0
453
454
  ]), 1032, ["model-value", "label", "disabled", "required", "optional", "info", "rules", "focused", "helper-text", "helper-state"]),
454
- m.modelValue && m.modelValue[0] && m.modelValue[1] ? (R(), O(i, {
455
+ m.modelValue && m.modelValue[0] && m.modelValue[1] ? (D(), O(i, {
455
456
  key: 0,
456
457
  "prepend-icon": "delete",
457
458
  variant: "tertiary",
458
- onClick: F[1] || (F[1] = (_) => E())
459
+ onClick: S[1] || (S[1] = (_) => W())
459
460
  })) : oe("", !0)
460
461
  ]);
461
462
  };
462
463
  }
463
- }), Vo = { class: "flex flex-col gap-40" }, _o = { class: "flex flex-col gap-16" }, ko = { class: "flex flex-col gap-8" }, Ao = { class: "fm-typo-en-title-sm-600" }, Co = { class: "grid grid-cols-2 gap-24" }, Mo = { class: "flex flex-col gap-8" }, Fo = { class: "fm-typo-en-title-sm-600" }, So = {
464
+ }), _o = { class: "flex flex-col gap-40" }, ko = { class: "flex flex-col gap-16" }, Ao = { class: "flex flex-col gap-8" }, Co = { class: "fm-typo-en-title-sm-600" }, Mo = { class: "grid grid-cols-2 gap-24" }, So = { class: "flex flex-col gap-8" }, Fo = { class: "fm-typo-en-title-sm-600" }, xo = {
464
465
  key: 0,
465
466
  class: "flex flex-col gap-8"
466
- }, xo = { class: "fm-typo-en-title-sm-600" }, $o = { class: "flex flex-col gap-8" }, To = { class: "fm-typo-en-title-sm-600" }, Do = { class: "flex flex-col gap-16" }, Ro = /* @__PURE__ */ j({
467
+ }, $o = { class: "fm-typo-en-title-sm-600" }, To = { class: "flex flex-col gap-8" }, Do = { class: "fm-typo-en-title-sm-600" }, Ro = { class: "flex flex-col gap-16" }, Wo = /* @__PURE__ */ j({
467
468
  __name: "WarehouseForm",
468
469
  props: {
469
470
  modelValue: {},
@@ -471,7 +472,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
471
472
  },
472
473
  emits: ["update:modelValue", "validation-success"],
473
474
  setup(f, { expose: b, emit: g }) {
474
- const a = f, l = g, d = Xe(), { t: n } = G(), u = C({
475
+ const a = f, l = g, d = eo(), { t: n } = G(), u = C({
475
476
  get() {
476
477
  var o, e;
477
478
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -519,7 +520,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
519
520
  const e = a.modelValue ?? {};
520
521
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, l("update:modelValue", e);
521
522
  }
522
- }), $ = C({
523
+ }), x = C({
523
524
  get() {
524
525
  var o, e, t;
525
526
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
@@ -539,7 +540,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
539
540
  const e = a.modelValue ?? {};
540
541
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, l("update:modelValue", e);
541
542
  }
542
- }), E = C({
543
+ }), W = C({
543
544
  get() {
544
545
  var o, e, t;
545
546
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
@@ -562,7 +563,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
562
563
  unit: Be.Enum.day
563
564
  }, l("update:modelValue", e);
564
565
  }
565
- }), F = C({
566
+ }), S = C({
566
567
  get() {
567
568
  var o, e, t;
568
569
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
@@ -572,7 +573,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
572
573
  const e = a.modelValue ?? {};
573
574
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, l("update:modelValue", e);
574
575
  }
575
- }), x = C({
576
+ }), F = C({
576
577
  get() {
577
578
  var o, e;
578
579
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
@@ -581,7 +582,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
581
582
  const e = a.modelValue ?? {};
582
583
  e.profile ?? (e.profile = {}), e.profile.phoneNo = o, l("update:modelValue", e);
583
584
  }
584
- }), { enabledCountries: i, currentCountry: v } = Fe(), _ = C(() => v.value || ""), P = C({
585
+ }), { enabledCountries: i, currentCountry: v } = Se(), _ = C(() => v.value || ""), E = C({
585
586
  get() {
586
587
  var o, e;
587
588
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
@@ -590,7 +591,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
590
591
  const e = a.modelValue ?? {};
591
592
  e.profile ?? (e.profile = {}), e.profile.email = o, l("update:modelValue", e);
592
593
  }
593
- }), W = C({
594
+ }), R = C({
594
595
  get() {
595
596
  var o;
596
597
  return ((o = a.modelValue) == null ? void 0 : o.customAttributes) ?? {};
@@ -601,7 +602,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
601
602
  } : {};
602
603
  e.customAttributes = o, l("update:modelValue", e);
603
604
  }
604
- }), U = D();
605
+ }), U = T();
605
606
  return b({
606
607
  validateInputs: () => {
607
608
  var o, e;
@@ -616,18 +617,18 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
616
617
  (e = (o = U.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
617
618
  }
618
619
  }), (o, e) => {
619
- const t = L("FmTextField"), c = L("FmPill"), h = L("FmPhoneNumber"), S = L("FmForm");
620
- return R(), O(S, {
620
+ const t = I("FmTextField"), c = I("FmPhoneNumber"), h = I("FmForm");
621
+ return D(), O(h, {
621
622
  ref_key: "formRef",
622
623
  ref: U,
623
624
  onValidationSuccess: e[13] || (e[13] = (p) => l("validation-success"))
624
625
  }, {
625
626
  default: B(() => [
626
- V("div", Vo, [
627
- V("div", _o, [
627
+ V("div", _o, [
628
+ V("div", ko, [
628
629
  k(t, {
629
630
  disabled: o.disabled,
630
- rules: [r(I)()],
631
+ rules: [r(L)()],
631
632
  "label-mark": "required",
632
633
  label: r(n)("inventory.warehouse.companyName"),
633
634
  modelValue: u.value,
@@ -635,19 +636,19 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
635
636
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
636
637
  k(t, {
637
638
  disabled: o.disabled,
638
- rules: [r(I)()],
639
+ rules: [r(L)()],
639
640
  "label-mark": "required",
640
641
  label: r(n)("inventory.warehouse.registrationNo"),
641
642
  modelValue: y.value,
642
643
  "onUpdate:modelValue": e[1] || (e[1] = (p) => y.value = p)
643
644
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
644
645
  ]),
645
- V("div", ko, [
646
- V("div", Ao, N(r(n)("inventory.warehouse.address.title")), 1),
647
- V("div", Co, [
646
+ V("div", Ao, [
647
+ V("div", Co, P(r(n)("inventory.warehouse.address.title")), 1),
648
+ V("div", Mo, [
648
649
  k(t, {
649
650
  disabled: o.disabled,
650
- rules: [r(I)()],
651
+ rules: [r(L)()],
651
652
  "label-mark": "required",
652
653
  label: r(n)("inventory.warehouse.address.line1"),
653
654
  modelValue: s.value,
@@ -662,7 +663,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
662
663
  }, null, 8, ["disabled", "label", "modelValue"]),
663
664
  k(t, {
664
665
  disabled: o.disabled,
665
- rules: [r(I)()],
666
+ rules: [r(L)()],
666
667
  "label-mark": "required",
667
668
  label: r(n)("inventory.warehouse.address.city"),
668
669
  modelValue: w.value,
@@ -670,15 +671,15 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
670
671
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
671
672
  k(t, {
672
673
  disabled: o.disabled,
673
- rules: [r(I)()],
674
+ rules: [r(L)()],
674
675
  "label-mark": "required",
675
676
  label: r(n)("inventory.warehouse.address.postcode"),
676
- modelValue: $.value,
677
- "onUpdate:modelValue": e[5] || (e[5] = (p) => $.value = p)
677
+ modelValue: x.value,
678
+ "onUpdate:modelValue": e[5] || (e[5] = (p) => x.value = p)
678
679
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
679
680
  k(t, {
680
681
  disabled: o.disabled,
681
- rules: [r(I)()],
682
+ rules: [r(L)()],
682
683
  "label-mark": "required",
683
684
  label: r(n)("inventory.warehouse.address.state"),
684
685
  modelValue: M.value,
@@ -686,29 +687,32 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
686
687
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
687
688
  k(t, {
688
689
  disabled: o.disabled,
689
- rules: [r(I)()],
690
+ rules: [r(L)()],
690
691
  "label-mark": "required",
691
692
  label: r(n)("inventory.warehouse.address.country"),
692
- modelValue: E.value,
693
- "onUpdate:modelValue": e[7] || (e[7] = (p) => E.value = p)
693
+ modelValue: W.value,
694
+ "onUpdate:modelValue": e[7] || (e[7] = (p) => W.value = p)
694
695
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
695
696
  ])
696
697
  ]),
697
- V("div", Mo, [
698
- V("div", Fo, N(r(n)("inventory.warehouse.coordinate.title")), 1),
699
- k(wo, {
698
+ V("div", So, [
699
+ V("div", Fo, P(r(n)("inventory.warehouse.coordinate.title")), 1),
700
+ k(Vo, {
700
701
  disabled: o.disabled,
701
- rules: [r(I)()],
702
+ rules: [r(L)()],
702
703
  "label-mark": "required",
703
- modelValue: F.value,
704
- "onUpdate:modelValue": e[8] || (e[8] = (p) => F.value = p),
704
+ modelValue: S.value,
705
+ "onUpdate:modelValue": e[8] || (e[8] = (p) => S.value = p),
705
706
  country: _.value
706
707
  }, null, 8, ["disabled", "rules", "modelValue", "country"])
707
708
  ]),
708
- r(d).enableSupplierPreparationTime ? (R(), q("div", So, [
709
- V("div", xo, [
710
- Me(N(r(n)("inventory.supplier.delivery.title")) + " ", 1),
711
- k(c, { variant: "beta" })
709
+ r(d).enableSupplierPreparationTime ? (D(), q("div", xo, [
710
+ V("div", $o, [
711
+ Me(P(r(n)("inventory.supplier.delivery.title")) + " ", 1),
712
+ k(Xe, {
713
+ tier: "standard",
714
+ category: "beta"
715
+ })
712
716
  ]),
713
717
  k(t, {
714
718
  disabled: o.disabled,
@@ -718,16 +722,16 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
718
722
  type: "number"
719
723
  }, null, 8, ["disabled", "label", "modelValue"])
720
724
  ])) : oe("", !0),
721
- V("div", $o, [
722
- V("div", To, N(r(n)("inventory.warehouse.contact.title")), 1),
723
- V("div", Do, [
724
- k(h, {
725
+ V("div", To, [
726
+ V("div", Do, P(r(n)("inventory.warehouse.contact.title")), 1),
727
+ V("div", Ro, [
728
+ k(c, {
725
729
  disabled: o.disabled,
726
- rules: [r(I)()],
730
+ rules: [r(L)()],
727
731
  "label-mark": "required",
728
732
  label: r(n)("inventory.warehouse.contact.phoneNumber"),
729
- modelValue: x.value,
730
- "onUpdate:modelValue": e[10] || (e[10] = (p) => x.value = p),
733
+ modelValue: F.value,
734
+ "onUpdate:modelValue": e[10] || (e[10] = (p) => F.value = p),
731
735
  "extra-country-codes": r(i),
732
736
  "default-country": r(v)
733
737
  }, null, 8, ["disabled", "rules", "label", "modelValue", "extra-country-codes", "default-country"]),
@@ -735,16 +739,16 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
735
739
  disabled: o.disabled,
736
740
  "label-mark": "optional",
737
741
  label: r(n)("inventory.warehouse.contact.email"),
738
- modelValue: P.value,
739
- "onUpdate:modelValue": e[11] || (e[11] = (p) => P.value = p)
742
+ modelValue: E.value,
743
+ "onUpdate:modelValue": e[11] || (e[11] = (p) => E.value = p)
740
744
  }, null, 8, ["disabled", "label", "modelValue"])
741
745
  ])
742
746
  ]),
743
747
  V("div", null, [
744
748
  k(Qe, {
745
749
  entity: "warehouse",
746
- modelValue: W.value,
747
- "onUpdate:modelValue": e[12] || (e[12] = (p) => W.value = p)
750
+ modelValue: R.value,
751
+ "onUpdate:modelValue": e[12] || (e[12] = (p) => R.value = p)
748
752
  }, null, 8, ["modelValue"])
749
753
  ])
750
754
  ])
@@ -753,10 +757,10 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
753
757
  }, 512);
754
758
  };
755
759
  }
756
- }), Wo = {
760
+ }), Eo = {
757
761
  key: 0,
758
762
  class: "flex gap-4"
759
- }, Eo = /* @__PURE__ */ j({
763
+ }, Uo = /* @__PURE__ */ j({
760
764
  __name: "WarehouseDialog",
761
765
  props: {
762
766
  mode: {},
@@ -765,27 +769,27 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
765
769
  },
766
770
  emits: ["update:show", "submitted"],
767
771
  setup(f, { expose: b, emit: g }) {
768
- const a = f, l = g, d = D(!1), n = se(), { t: u } = G(), y = Te(), s = C(() => {
772
+ const a = f, l = g, d = T(!1), n = se(), { t: u } = G(), y = Te(), s = C(() => {
769
773
  switch (a.mode) {
770
- case T.READ:
774
+ case $.READ:
771
775
  return "";
772
- case T.UPDATE:
776
+ case $.UPDATE:
773
777
  return u("inventory.warehouse.update.title");
774
- case T.CREATE:
778
+ case $.CREATE:
775
779
  return u("inventory.warehouse.create.title");
776
780
  }
777
781
  return "";
778
782
  }), A = C(() => {
779
783
  switch (a.mode) {
780
- case T.READ:
784
+ case $.READ:
781
785
  return "";
782
- case T.UPDATE:
786
+ case $.UPDATE:
783
787
  return u("common.save");
784
- case T.CREATE:
788
+ case $.CREATE:
785
789
  return u("common.add");
786
790
  }
787
791
  return "";
788
- }), w = D();
792
+ }), w = T();
789
793
  b({
790
794
  validateInputs: () => {
791
795
  var i, v;
@@ -800,22 +804,22 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
800
804
  (v = (i = w.value) == null ? void 0 : i.resetInputs) == null || v.call(i);
801
805
  }
802
806
  });
803
- const $ = ae(a, "show"), M = ae(a, "warehouse");
804
- function E() {
807
+ const x = ae(a, "show"), M = ae(a, "warehouse");
808
+ function W() {
805
809
  var i, v;
806
810
  (v = (i = w.value) == null ? void 0 : i.validateInputs) == null || v.call(i);
807
811
  }
808
812
  function m() {
809
813
  switch (a.mode) {
810
- case T.READ:
814
+ case $.READ:
811
815
  return;
812
- case T.UPDATE:
813
- return x();
814
- case T.CREATE:
816
+ case $.UPDATE:
815
817
  return F();
818
+ case $.CREATE:
819
+ return S();
816
820
  }
817
821
  }
818
- async function F() {
822
+ async function S() {
819
823
  var i, v;
820
824
  d.value = !0;
821
825
  try {
@@ -837,7 +841,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
837
841
  d.value = !1;
838
842
  }
839
843
  }
840
- async function x() {
844
+ async function F() {
841
845
  var i, v;
842
846
  if (M.value === null) {
843
847
  n.open({
@@ -868,36 +872,36 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
868
872
  }
869
873
  }
870
874
  return (i, v) => {
871
- const _ = L("FmButton"), P = L("FmSideSheet");
872
- return R(), O(P, {
875
+ const _ = I("FmButton"), E = I("FmSideSheet");
876
+ return D(), O(E, {
873
877
  header: s.value,
874
- modelValue: r($),
875
- "onUpdate:modelValue": v[1] || (v[1] = (W) => _e($) ? $.value = W : null),
878
+ modelValue: r(x),
879
+ "onUpdate:modelValue": v[1] || (v[1] = (R) => _e(x) ? x.value = R : null),
876
880
  "dismiss-away": !d.value,
877
881
  "close-button": "",
878
882
  "max-width": 500
879
883
  }, {
880
884
  default: B(() => {
881
- var W;
885
+ var R;
882
886
  return [
883
- (R(), O(Ro, {
887
+ (D(), O(Wo, {
884
888
  class: "w-full",
885
889
  ref_key: "formRef",
886
890
  ref: w,
887
891
  modelValue: r(M),
888
892
  "onUpdate:modelValue": v[0] || (v[0] = (U) => _e(M) ? M.value = U : null),
889
893
  onValidationSuccess: m,
890
- key: ((W = i.warehouse) == null ? void 0 : W._id) ?? "",
891
- disabled: d.value || i.mode === r(T).READ
894
+ key: ((R = i.warehouse) == null ? void 0 : R._id) ?? "",
895
+ disabled: d.value || i.mode === r($).READ
892
896
  }, null, 8, ["modelValue", "disabled"]))
893
897
  ];
894
898
  }),
895
899
  "side-sheet-footer": B(() => [
896
- i.mode !== r(T).READ ? (R(), q("div", Wo, [
900
+ i.mode !== r($).READ ? (D(), q("div", Eo, [
897
901
  k(_, {
898
902
  loading: d.value,
899
903
  label: A.value,
900
- onClick: E
904
+ onClick: W
901
905
  }, null, 8, ["loading", "label"])
902
906
  ])) : oe("", !0)
903
907
  ]),
@@ -905,27 +909,27 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
905
909
  }, 8, ["header", "modelValue", "dismiss-away"]);
906
910
  };
907
911
  }
908
- }), Po = { class: "flex flex-col py-8" }, Uo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, No = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lo = {
912
+ }), Po = { class: "flex flex-col py-8" }, No = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Io = {
909
913
  key: 0,
910
914
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
911
- }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, lt = /* @__PURE__ */ j({
915
+ }, Bo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, rt = /* @__PURE__ */ j({
912
916
  __name: "WarehouseView",
913
917
  setup(f) {
914
- const b = Te(), g = ze(), a = Se(), l = C(() => b.warehouses), d = xe(), n = se(), u = D(!1), { t: y } = G();
918
+ const b = Te(), g = ze(), a = Fe(), l = C(() => b.warehouses), d = xe(), n = se(), u = T(!1), { t: y } = G();
915
919
  le(() => {
916
920
  g._currentLocation && i();
917
921
  }), te([() => g._currentLocation], () => {
918
922
  g._currentLocation && i();
919
923
  });
920
- const s = D({});
924
+ const s = T({});
921
925
  function A() {
922
- s.value.mode = T.CREATE, s.value.warehouse = {}, s.value.show = !0;
926
+ s.value.mode = $.CREATE, s.value.warehouse = {}, s.value.show = !0;
923
927
  }
924
928
  function w(o) {
925
929
  const e = z(o);
926
- s.value.mode = a.isEnabled ? T.READ : T.UPDATE, s.value.warehouse = e, s.value.show = !0;
930
+ s.value.mode = a.isEnabled ? $.READ : $.UPDATE, s.value.warehouse = e, s.value.show = !0;
927
931
  }
928
- async function $(o) {
932
+ async function x(o) {
929
933
  d.open({
930
934
  title: y("inventory.warehouse.delete.confirm"),
931
935
  message: y("inventory.warehouse.delete.confirmMessage", { name: o.profile.name }),
@@ -961,14 +965,14 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
961
965
  d.close();
962
966
  }
963
967
  }
964
- const { columnDefs: E, formatRowData: m } = ao(
968
+ const { columnDefs: W, formatRowData: m } = lo(
965
969
  w,
966
- $
970
+ x
967
971
  );
968
- function F(o) {
972
+ function S(o) {
969
973
  o === "create" && A();
970
974
  }
971
- const x = D("");
975
+ const F = T("");
972
976
  async function i(o = !1) {
973
977
  u.value = !0;
974
978
  try {
@@ -982,7 +986,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
982
986
  u.value = !1;
983
987
  }
984
988
  }
985
- const { breakpoints: v } = He(), _ = C(() => v.value.xs || v.value.sm), P = C(() => _.value ? 10 : 20), W = je(), U = C(() => [
989
+ const { breakpoints: v } = He(), _ = C(() => v.value.xs || v.value.sm), E = C(() => _.value ? 10 : 20), R = je(), U = C(() => [
986
990
  {
987
991
  label: y("inventory.warehouse.create.title"),
988
992
  value: "create",
@@ -991,15 +995,15 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
991
995
  }
992
996
  ]);
993
997
  return (o, e) => {
994
- const t = L("FmTable");
995
- return R(), O(Ge, {
998
+ const t = I("FmTable");
999
+ return D(), O(Ge, {
996
1000
  title: r(y)("inventory.warehouse.title"),
997
1001
  actions: U.value,
998
- "onClick:action": F
1002
+ "onClick:action": S
999
1003
  }, {
1000
1004
  default: B(() => [
1001
1005
  V("div", {
1002
- class: Pe([
1006
+ class: Ue([
1003
1007
  "flex flex-col gap-8 max-h-full",
1004
1008
  {
1005
1009
  "p-0": _.value,
@@ -1007,49 +1011,49 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
1007
1011
  }
1008
1012
  ])
1009
1013
  }, [
1010
- k(oo, {
1014
+ k(to, {
1011
1015
  searchable: "",
1012
- search: x.value,
1013
- "onUpdate:search": e[0] || (e[0] = (c) => x.value = c)
1016
+ search: F.value,
1017
+ "onUpdate:search": e[0] || (e[0] = (c) => F.value = c)
1014
1018
  }, null, 8, ["search"]),
1015
- (R(), O(t, {
1016
- style: Ue(r(W).tableHeight),
1017
- "column-defs": r(E),
1019
+ (D(), O(t, {
1020
+ style: Pe(r(R).tableHeight),
1021
+ "column-defs": r(W),
1018
1022
  "row-data": r(m)(l.value),
1019
- "search-value": x.value,
1023
+ "search-value": F.value,
1020
1024
  loading: !r(g)._currentLocation || u.value,
1021
1025
  onRowClick: e[1] || (e[1] = (c) => w(c.original.original)),
1022
1026
  key: l.value.length,
1023
- "page-size": P.value
1027
+ "page-size": E.value
1024
1028
  }, {
1025
1029
  "list-row": B((c) => [
1026
- k(eo, {
1030
+ k(oo, {
1027
1031
  row: c,
1028
1032
  onRowClick: (h) => w(h.original)
1029
1033
  }, {
1030
1034
  default: B((h) => {
1031
- var S, p, K, H, ne, ue, ie, de, Y, ce, me, pe, fe, ye, Z, ve, he, be, ge, J, we;
1035
+ var p, N, K, H, ne, ue, ie, de, Y, ce, me, pe, fe, ye, Z, ve, he, be, ge, J, we;
1032
1036
  return [
1033
1037
  V("div", Po, [
1034
- V("div", Uo, [
1038
+ V("div", No, [
1035
1039
  k(r(X), {
1036
- render: (K = (p = (S = h.warehouse) == null ? void 0 : S.column) == null ? void 0 : p.columnDef) == null ? void 0 : K.cell,
1040
+ render: (K = (N = (p = h.warehouse) == null ? void 0 : p.column) == null ? void 0 : N.columnDef) == null ? void 0 : K.cell,
1037
1041
  props: (ne = (H = h.warehouse) == null ? void 0 : H.getContext) == null ? void 0 : ne.call(H)
1038
1042
  }, null, 8, ["render", "props"])
1039
1043
  ]),
1040
- V("div", No, [
1044
+ V("div", Lo, [
1041
1045
  k(r(X), {
1042
1046
  render: (de = (ie = (ue = h.contact) == null ? void 0 : ue.column) == null ? void 0 : ie.columnDef) == null ? void 0 : de.cell,
1043
1047
  props: (ce = (Y = h.contact) == null ? void 0 : Y.getContext) == null ? void 0 : ce.call(Y)
1044
1048
  }, null, 8, ["render", "props"])
1045
1049
  ]),
1046
- (me = c.original) != null && me.email ? (R(), q("div", Lo, [
1050
+ (me = c.original) != null && me.email ? (D(), q("div", Io, [
1047
1051
  k(r(X), {
1048
1052
  render: (ye = (fe = (pe = h.email) == null ? void 0 : pe.column) == null ? void 0 : fe.columnDef) == null ? void 0 : ye.cell,
1049
1053
  props: (ve = (Z = h.email) == null ? void 0 : Z.getContext) == null ? void 0 : ve.call(Z)
1050
1054
  }, null, 8, ["render", "props"])
1051
1055
  ])) : oe("", !0),
1052
- V("div", Io, [
1056
+ V("div", Bo, [
1053
1057
  k(r(X), {
1054
1058
  render: (ge = (be = (he = h.address) == null ? void 0 : he.column) == null ? void 0 : be.columnDef) == null ? void 0 : ge.cell,
1055
1059
  props: (we = (J = h.address) == null ? void 0 : J.getContext) == null ? void 0 : we.call(J)
@@ -1064,7 +1068,7 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
1064
1068
  _: 1
1065
1069
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
1066
1070
  ], 2),
1067
- k(Eo, {
1071
+ k(Uo, {
1068
1072
  show: s.value.show,
1069
1073
  "onUpdate:show": e[2] || (e[2] = (c) => s.value.show = c),
1070
1074
  warehouse: s.value.warehouse,
@@ -1078,5 +1082,5 @@ const ho = { class: "flex gap-8 items-center" }, bo = { key: 0 }, go = { key: 1
1078
1082
  }
1079
1083
  });
1080
1084
  export {
1081
- lt as default
1085
+ rt as default
1082
1086
  };