@feedmepos/mf-inventory-portal 1.8.0-dev.4 → 1.8.0-dev.6

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 (129) hide show
  1. package/dist/{App-FeJnwZme.js → App-B8DzC8Td.js} +609 -558
  2. package/dist/{ApprovalView-Eo-cGWyA.js → ApprovalView-DwHtlnLK.js} +9 -9
  3. package/dist/{BindingsDialog-DkjuXydb.js → BindingsDialog-COSQ6XVU.js} +2 -2
  4. package/dist/{BindingsPicker-DUOQcOlj.js → BindingsPicker-vn2GwOb7.js} +2 -2
  5. package/dist/{BindingsTable-CoDdU5xh.js → BindingsTable-B3-YXiPU.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-BGh8fbEX.js → BulkReceiveRequestView-LUAuL39I.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bq2bBCHH.js} +1 -1
  8. package/dist/{ClosingDraftView-Cwnhrv5P.js → ClosingDraftView-BKgjXfss.js} +20 -20
  9. package/dist/{ClosingHistoryView-oHf77Lal.js → ClosingHistoryView-BI_zufKI.js} +5 -5
  10. package/dist/{ClosingTemplateView-1P8J1vAn.js → ClosingTemplateView-CNNgkrX0.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DGxUjcQc.js} +1 -1
  12. package/dist/{DefaultView-3Z8aVFSU.js → DefaultView-D9ldG5wf.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-uT_e3Suw.js → DeliveryOrderPrintPreview-CnvuZat5.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js → EmailDialog.vue_vue_type_script_setup_true_lang-s0eDfL8g.js} +23 -23
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-2t_ajTtF.js +297 -0
  16. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Bo4aCSFL.js} +1 -1
  17. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BhhKFtnX.js} +2 -2
  18. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dx8b6nGn.js} +2 -2
  19. package/dist/FmMultiselectDialog-Coxul96n.js +123 -0
  20. package/dist/{FmMultiselectDialog-DRxZAkcu.js → FmMultiselectDialog-zaOH0oB9.js} +2 -2
  21. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B0xT-sP9.js} +6 -6
  22. package/dist/ImportView-CuRogJ1u.js +1291 -0
  23. package/dist/{IngredientsView-N9U7tdI_.js → IngredientsView-BnEJ1QAk.js} +34 -35
  24. package/dist/{IntegrationExplorerView-CjmeGQ14.js → IntegrationExplorerView-DB-7hXUE.js} +4 -4
  25. package/dist/{IntegrationView-DAdpmuxx.js → IntegrationView-CBGPi1xL.js} +973 -974
  26. package/dist/{InventoryBindingForm-CAj3MurI.js → InventoryBindingForm-eggGypKW.js} +1 -1
  27. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CvQ82oaY.js +472 -0
  28. package/dist/{InventoryBindingSummary-B-1OBUdw.js → InventoryBindingSummary-DegINJdx.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DYq61C5M.js} +1 -1
  30. package/dist/{ProductionRunDetailView-eFvl8-By.js → ProductionRunDetailView-6uJmjwAg.js} +4 -4
  31. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-Dcd3sV5C.js} +9 -9
  32. package/dist/{ProductionRunView-C_NJJKLr.js → ProductionRunView-CiypqoQT.js} +3 -3
  33. package/dist/{PublishView-BglAEkzU.js → PublishView-DEyODScT.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-BTF9ikpQ.js → PurchaseOrderPrintPreview-DjsD8HaB.js} +2 -2
  35. package/dist/{ReceiveRequestView-BUvehG10.js → ReceiveRequestView-DGWA-SOC.js} +13 -13
  36. package/dist/RecipeView-CO5kxazA.js +3428 -0
  37. package/dist/{SettingsView-DRR86cHo.js → SettingsView-9uq0QYht.js} +164 -168
  38. package/dist/{StockView-D1oEnbZp.js → StockView-YKfyjTE1.js} +267 -267
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C8q3IBMg.js} +1 -1
  40. package/dist/{SupplierView-D68wz0-g.js → SupplierView-D62RB87K.js} +14 -14
  41. package/dist/{SurchargeView-Cw9rTw2h.js → SurchargeView-DY4xuPN0.js} +7 -7
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C27rA7Z_.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BhhvJtAf.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js → TransferDetails.vue_vue_type_script_setup_true_lang-cvgA7DlK.js} +690 -666
  45. package/dist/{TransferTemplateView-CHPJMjYC.js → TransferTemplateView-DZk-6Z-1.js} +20 -20
  46. package/dist/{UnitCostHistoryView-DM8OzWhe.js → UnitCostHistoryView-C-aNhP72.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D655ehgk.js} +4 -4
  48. package/dist/{UnitView-90uR-ZzQ.js → UnitView-h2n8XNZr.js} +8 -8
  49. package/dist/{WarehouseView-Bulg6Vac.js → WarehouseView-gPPmrhxB.js} +8 -8
  50. package/dist/{WastageTemplateView-BmAHnnwm.js → WastageTemplateView-7bp-1vTP.js} +15 -15
  51. package/dist/api/feature-flags.d.ts +2 -0
  52. package/dist/api/license.d.ts +0 -2
  53. package/dist/{app-Ccdgbe4f.js → app-_FoXoYBy.js} +1640 -1829
  54. package/dist/app.d.ts +0 -150
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-DuBZxoXx.js → closing-template-D8bk-LUW.js} +1 -1
  57. package/dist/{date2-IBrLdtni.js → date2-DE0h0f1Z.js} +1 -1
  58. package/dist/{dayjs.min-DEkq-Hpp.js → dayjs.min-DxnjPhAT.js} +1 -1
  59. package/dist/{decimal-g6jRdlSk.js → decimal-D9ZB4atK.js} +2 -2
  60. package/dist/{defineDeepModel-P5a5Ffpn.js → defineDeepModel-pn4B1f06.js} +1 -1
  61. package/dist/{duplicate-template-Do8s80ei.js → duplicate-template-DS-mr3MQ.js} +1 -1
  62. package/dist/{feature-ChVm5JED.js → feature-D0aaeyga.js} +1999 -3092
  63. package/dist/feature-flags/portal-feature-catalog.d.ts +0 -2
  64. package/dist/{format-time-from-id-BgbBOII7.js → format-time-from-id-CbFUj3BY.js} +1 -1
  65. package/dist/{format-unit-display-hSXy2iu6.js → format-unit-display-DulZiawi.js} +13 -13
  66. package/dist/helper/menu-usage-module.d.ts +1 -1
  67. package/dist/{id-to-date-DlGYysU8.js → id-to-date-CLCvDHvP.js} +1 -1
  68. package/dist/{import-export.helper-LrZhiz2W.js → import-export.helper-Ce1hr39u.js} +6 -6
  69. package/dist/{index-DCiNwlw2.js → index-DDw8ryXI.js} +1 -1
  70. package/dist/{index-DsOmtywr.js → index-DpxJ3TzB.js} +1 -1
  71. package/dist/{index-BTNJ1fk2.js → index-DrkUq9y6.js} +3 -3
  72. package/dist/{lz-string-DRuyjE9G.js → lz-string-BakfyAq0.js} +1 -1
  73. package/dist/{netsuite-B6y8GZCP.js → netsuite-Cn2W-lOV.js} +2 -2
  74. package/dist/{number-Besn-1-5.js → number-B2-Gbof3.js} +3 -3
  75. package/dist/{predefined-templates-D92mN_2S.js → predefined-templates-DmITBHzs.js} +1 -1
  76. package/dist/{purchase-order-template-hvq2pfWx.js → purchase-order-template-BfP6Sy0k.js} +1 -1
  77. package/dist/{recalculationUtils-BlZR5O2G.js → recalculationUtils-BRe2QPvC.js} +1 -1
  78. package/dist/router/name.d.ts +0 -1
  79. package/dist/{row-action.enum-R2bi3eAv.js → row-action.enum-CxzHcy4A.js} +1 -1
  80. package/dist/{rules-DzwoRKUS.js → rules-CjqBvFGt.js} +2 -2
  81. package/dist/{stock-Cq37EARQ.js → stock-BT50AgTx.js} +8 -8
  82. package/dist/{stock-oJqnUrtt.js → stock-CjFjkezq.js} +1 -1
  83. package/dist/stores/feature.d.ts +9 -9
  84. package/dist/stores/inventory.d.ts +0 -47
  85. package/dist/stores/supplier.d.ts +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/{supplier-DtdwvcPr.js → supplier-wmjWWKaf.js} +2 -2
  88. package/dist/{surcharge-CjdJGIsM.js → surcharge-CQC6Fa7Q.js} +1 -1
  89. package/dist/tsconfig.app.tsbuildinfo +1 -1
  90. package/dist/{uom-rules-BqPn_GoZ.js → uom-rules-CUQleOt4.js} +1 -1
  91. package/dist/{use-ingredient-select-dialog-0hRCj6Fu.js → use-ingredient-select-dialog-7VVHmM7s.js} +2 -2
  92. package/dist/use-inventory-binding-dialog-C8m7iwRG.js +113 -0
  93. package/dist/{use-template-enabled-locations-8ZfTj4YB.js → use-template-enabled-locations-CRgTVDMh.js} +2 -2
  94. package/dist/{use-transfer-locations-BGS1EBEt.js → use-transfer-locations-Bs0PotVA.js} +2 -2
  95. package/dist/{useHrmPermission-BcQ2KPD-.js → useHrmPermission-DcAzZ0CT.js} +1 -1
  96. package/dist/{useNavigationMenu-DImtns81.js → useNavigationMenu-CtihCeyC.js} +65 -74
  97. package/dist/{useSseClient-DPSFFVci.js → useSseClient-CizgYCQI.js} +1 -1
  98. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
  99. package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
  100. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
  101. package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
  102. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
  103. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  104. package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
  105. package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
  106. package/dist/{vue-i18n-DTyGIjTI.js → vue-i18n-DpTQ6ev1.js} +258 -258
  107. package/dist/{xlsx.util-CK9Lnq3Q.js → xlsx.util-CPC0Dkyo.js} +2 -2
  108. package/package.json +2 -2
  109. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js +0 -58
  110. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +0 -81
  111. package/dist/FmMultiselectDialog-C8uYx8rr.js +0 -77
  112. package/dist/ImportView-Qigtf3ik.js +0 -1302
  113. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js +0 -51
  114. package/dist/IngredientGroupView-RNYZLkQu.js +0 -1000
  115. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js +0 -563
  116. package/dist/RecipeView-DO5-jgwh.js +0 -3624
  117. package/dist/feature-flags/premium-flags.spec.d.ts +0 -1
  118. package/dist/random-CSbEbElR.js +0 -10
  119. package/dist/use-inventory-binding-dialog-BLRcIC1u.js +0 -152
  120. package/dist/usePromise-CbVUCxhj.js +0 -29
  121. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
  122. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
  123. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
  124. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
  125. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
  126. package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
  127. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
  128. package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
  129. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
@@ -1,14 +1,14 @@
1
- import { defineComponent as oe, ref as k, computed as N, watch as W, resolveComponent as E, createElementBlock as c, openBlock as o, createElementVNode as l, toDisplayString as D, Fragment as U, renderList as Y, createBlock as O, createCommentVNode as X, createVNode as m, nextTick as _e, createSlots as xe, withCtx as z, normalizeClass as ie, unref as S, withModifiers as he, h as $, Teleport as ke } from "vue";
1
+ import { defineComponent as oe, ref as h, computed as H, watch as W, resolveComponent as E, createElementBlock as c, openBlock as o, createElementVNode as l, toDisplayString as D, Fragment as U, renderList as Y, createBlock as O, createCommentVNode as X, createVNode as m, nextTick as _e, createSlots as xe, withCtx as z, normalizeClass as ie, unref as T, withModifiers as he, h as $, Teleport as ke } from "vue";
2
2
  import { _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
3
- import { B as G, g as Fe, r as Te, s as Se, u as Ce, a as te, b as De, c as $e, d as ye, e as Be, f as Ve } from "./predefined-templates-D92mN_2S.js";
3
+ import { B as G, g as Fe, r as Te, s as Se, u as Ce, a as te, b as De, c as $e, d as ye, e as Be, f as Ve } from "./predefined-templates-DmITBHzs.js";
4
4
  import { useSnackbar as Ie, components as Q } from "@feedmepos/ui-library";
5
5
  import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { H as le, I as Oe, d as Pe } from "./app-Ccdgbe4f.js";
7
- import { useCoreStore as fe, useI18n as Ee } from "@feedmepos/mf-common";
8
- import "./dayjs.min-DEkq-Hpp.js";
9
- import { a as Ue, I as Ae, b as Le } from "./feature-ChVm5JED.js";
10
- import { a as He, D as Ne } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js";
11
- import { _ as Me } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js";
6
+ import { H as le, I as Oe } from "./app-_FoXoYBy.js";
7
+ import { useCoreStore as fe, useI18n as Pe } from "@feedmepos/mf-common";
8
+ import "./dayjs.min-DxnjPhAT.js";
9
+ import { a as Ee, I as Ue, u as Ae } from "./feature-D0aaeyga.js";
10
+ import { b as Le, a as He, D as Ne } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-2t_ajTtF.js";
11
+ import { _ as Me } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bq2bBCHH.js";
12
12
  const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700 mb-4 pb-2 border-b border-gray-200" }, Ke = { class: "flex flex-col gap-3" }, qe = {
13
13
  key: 0,
14
14
  class: "flex items-center justify-between py-1"
@@ -21,40 +21,40 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
21
21
  block: {}
22
22
  },
23
23
  emits: ["update"],
24
- setup(A, { emit: _ }) {
25
- const w = A, T = _;
24
+ setup(j, { emit: k }) {
25
+ const S = j, F = k;
26
26
  function C(u) {
27
- var x;
28
- if ((x = u.config) != null && x.configFields && Array.isArray(u.config.configFields)) {
29
- const d = u.config.configFields.map((v) => ({ ...v })), h = new Set(d.map((v) => v.key)), a = G[u.tag], b = a ? a.initialConfigFields().filter((v) => !h.has(v.key)) : [];
27
+ var _;
28
+ if ((_ = u.config) != null && _.configFields && Array.isArray(u.config.configFields)) {
29
+ const d = u.config.configFields.map((v) => ({ ...v })), x = new Set(d.map((v) => v.key)), a = G[u.tag], b = a ? a.initialConfigFields().filter((v) => !x.has(v.key)) : [];
30
30
  return [...d, ...b];
31
31
  }
32
32
  const i = G[u.tag];
33
33
  return i ? i.initialConfigFields() : [];
34
34
  }
35
- const p = k(C(w.block)), P = N(() => {
36
- const u = G[w.block.tag];
37
- return (u == null ? void 0 : u.label) ?? w.block.tag;
35
+ const p = h(C(S.block)), P = H(() => {
36
+ const u = G[S.block.tag];
37
+ return (u == null ? void 0 : u.label) ?? S.block.tag;
38
38
  });
39
39
  W(
40
- () => w.block,
40
+ () => S.block,
41
41
  (u) => {
42
42
  p.value = C(u);
43
43
  },
44
44
  { deep: !0 }
45
45
  );
46
46
  function f(u, i) {
47
- const x = p.value[u];
48
- x && (x.value = i, y());
47
+ const _ = p.value[u];
48
+ _ && (_.value = i, y());
49
49
  }
50
50
  function y() {
51
- T("update", {
52
- ...w.block.config || {},
51
+ F("update", {
52
+ ...S.block.config || {},
53
53
  configFields: p.value.map((u) => ({ ...u }))
54
54
  });
55
55
  }
56
56
  return (u, i) => {
57
- const x = E("FmSwitch"), d = E("FmTextField"), h = E("FmSelect");
57
+ const _ = E("FmSwitch"), d = E("FmTextField"), x = E("FmSelect");
58
58
  return o(), c("div", Re, [
59
59
  l("div", je, D(P.value) + " Settings ", 1),
60
60
  l("div", Ke, [
@@ -63,7 +63,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
63
63
  }, [
64
64
  a.type === "toggle" ? (o(), c("div", qe, [
65
65
  l("label", Ge, D(a.label), 1),
66
- m(x, {
66
+ m(_, {
67
67
  "model-value": a.value,
68
68
  "onUpdate:modelValue": (v) => f(b, v)
69
69
  }, null, 8, ["model-value", "onUpdate:modelValue"])
@@ -82,7 +82,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
82
82
  placeholder: a.placeholder,
83
83
  onInput: (v) => f(b, v.target.value)
84
84
  }, null, 40, We)
85
- ], 64)) : a.type === "select" ? (o(), O(h, {
85
+ ], 64)) : a.type === "select" ? (o(), O(x, {
86
86
  key: 3,
87
87
  label: a.label,
88
88
  "model-value": a.value,
@@ -118,20 +118,20 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
118
118
  selectedBlockId: {},
119
119
  templateType: {}
120
120
  },
121
- setup(A) {
122
- const _ = A, w = k(null);
123
- let T = null;
121
+ setup(j) {
122
+ const k = j, S = h(null);
123
+ let F = null;
124
124
  function C() {
125
- return !T && w.value && (T = w.value.attachShadow({ mode: "open" })), T;
125
+ return !F && S.value && (F = S.value.attachShadow({ mode: "open" })), F;
126
126
  }
127
- const p = N(() => _.previewData ?? Fe(_.templateType));
127
+ const p = H(() => k.previewData ?? Fe(k.templateType));
128
128
  W(
129
- () => [_.blocks, p.value, w.value],
129
+ () => [k.blocks, p.value, S.value],
130
130
  () => {
131
131
  const f = C();
132
132
  if (f) {
133
133
  try {
134
- const y = Te(_.blocks, p.value), u = Se(y);
134
+ const y = Te(k.blocks, p.value), u = Se(y);
135
135
  f.innerHTML = `
136
136
  <style>
137
137
  :host { display: block; }
@@ -160,19 +160,19 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
160
160
  } catch (y) {
161
161
  f.innerHTML = `<div style="color:red;padding:20px;">Error rendering template: ${y}</div>`;
162
162
  }
163
- _e(() => P(_.selectedBlockId));
163
+ _e(() => P(k.selectedBlockId));
164
164
  }
165
165
  },
166
166
  { deep: !0, immediate: !0 }
167
167
  ), W(
168
- () => _.selectedBlockId,
168
+ () => k.selectedBlockId,
169
169
  (f) => P(f)
170
170
  );
171
171
  function P(f) {
172
- if (!T || (T.querySelectorAll("[data-block-id].highlight").forEach((u) => {
172
+ if (!F || (F.querySelectorAll("[data-block-id].highlight").forEach((u) => {
173
173
  u.classList.remove("highlight");
174
174
  }), !f)) return;
175
- const y = T.querySelector(`[data-block-id="${f}"]`);
175
+ const y = F.querySelector(`[data-block-id="${f}"]`);
176
176
  y && (y.classList.add("highlight"), y.scrollIntoView({ behavior: "smooth", block: "nearest" }));
177
177
  }
178
178
  return (f, y) => (o(), c("div", tt, [
@@ -180,7 +180,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
180
180
  l("div", lt, [
181
181
  l("div", {
182
182
  ref_key: "shadowHost",
183
- ref: w
183
+ ref: S
184
184
  }, null, 512)
185
185
  ])
186
186
  ]));
@@ -221,11 +221,11 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
221
221
  modelValue: { type: Boolean }
222
222
  },
223
223
  emits: ["update:modelValue", "saved"],
224
- setup(A, { emit: _ }) {
225
- const w = A, T = _, C = Ce(), p = Ie(), P = fe(), f = N({
226
- get: () => w.modelValue,
227
- set: (n) => T("update:modelValue", n)
228
- }), y = k(!1), u = k(!1), i = k(te()), x = k(null), d = k(le.Enum.purchaseOrder), h = k("Purchase Order Template"), a = k(null), b = k(!1), v = k(!1), V = k("select-type"), ae = [
224
+ setup(j, { emit: k }) {
225
+ const S = j, F = k, C = Ce(), p = Ie(), P = fe(), f = H({
226
+ get: () => S.modelValue,
227
+ set: (n) => F("update:modelValue", n)
228
+ }), y = h(!1), u = h(!1), i = h(te()), _ = h(null), d = h(le.Enum.purchaseOrder), x = h("Purchase Order Template"), a = h(null), b = h(!1), v = h(!1), V = h("select-type"), ae = [
229
229
  {
230
230
  label: "Purchase Order",
231
231
  value: le.Enum.purchaseOrder,
@@ -250,22 +250,22 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
250
250
  icon: "local_shipping",
251
251
  description: "Customize the layout for delivery order printouts"
252
252
  }
253
- ], M = k(/* @__PURE__ */ new Set()), Z = N(
254
- () => i.value.find((n) => n.id === x.value) ?? null
255
- ), L = k(null), H = k(null);
253
+ ], N = h(/* @__PURE__ */ new Set()), Z = H(
254
+ () => i.value.find((n) => n.id === _.value) ?? null
255
+ ), A = h(null), L = h(null);
256
256
  W(f, async (n) => {
257
257
  if (n) {
258
258
  V.value = "select-type", y.value = !0;
259
259
  try {
260
260
  const e = await C.browse();
261
- M.value = new Set(e.map((g) => g.type));
261
+ N.value = new Set(e.map((g) => g.type));
262
262
  } catch {
263
263
  } finally {
264
264
  y.value = !1;
265
265
  }
266
266
  }
267
267
  }), W(d, async () => {
268
- x.value = null, await ne();
268
+ _.value = null, await ne();
269
269
  });
270
270
  async function ue(n) {
271
271
  d.value = n, await ne(), V.value = "editor";
@@ -282,11 +282,11 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
282
282
  y.value = !0;
283
283
  try {
284
284
  const n = await C.browse();
285
- M.value = new Set(n.map((g) => g.type));
285
+ N.value = new Set(n.map((g) => g.type));
286
286
  const e = n.find((g) => g.type === d.value);
287
- e ? (a.value = e._id, h.value = e.name, i.value = e.blocks.map((g) => ({ ...g }))) : (a.value = null, i.value = te(), h.value = J());
287
+ e ? (a.value = e._id, x.value = e.name, i.value = e.blocks.map((g) => ({ ...g }))) : (a.value = null, i.value = te(), x.value = J());
288
288
  } catch {
289
- i.value = te(), h.value = J();
289
+ i.value = te(), x.value = J();
290
290
  } finally {
291
291
  y.value = !1;
292
292
  }
@@ -297,38 +297,38 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
297
297
  tag: n,
298
298
  config: De(n)
299
299
  };
300
- i.value.push(e), x.value = e.id;
300
+ i.value.push(e), _.value = e.id;
301
301
  }
302
302
  function se(n) {
303
303
  const e = i.value.findIndex((g) => g.id === n);
304
- e >= 0 && (i.value.splice(e, 1), x.value === n && (x.value = null));
304
+ e >= 0 && (i.value.splice(e, 1), _.value === n && (_.value = null));
305
305
  }
306
306
  function de(n) {
307
- const e = i.value.find((g) => g.id === x.value);
307
+ const e = i.value.find((g) => g.id === _.value);
308
308
  if (e) {
309
309
  const g = n.configFields || [], ee = ye(e.tag);
310
310
  e.config = { configFields: g, templateHtml: ee };
311
311
  }
312
312
  }
313
313
  function pe(n) {
314
- L.value = n;
314
+ A.value = n;
315
315
  }
316
316
  function me(n, e) {
317
- n.preventDefault(), H.value = e;
317
+ n.preventDefault(), L.value = e;
318
318
  }
319
319
  function ve() {
320
- H.value = null;
320
+ L.value = null;
321
321
  }
322
322
  function t(n) {
323
- if (L.value === null || L.value === n) {
324
- L.value = null, H.value = null;
323
+ if (A.value === null || A.value === n) {
324
+ A.value = null, L.value = null;
325
325
  return;
326
326
  }
327
- const e = i.value.splice(L.value, 1)[0];
328
- i.value.splice(n, 0, e), L.value = null, H.value = null;
327
+ const e = i.value.splice(A.value, 1)[0];
328
+ i.value.splice(n, 0, e), A.value = null, L.value = null;
329
329
  }
330
330
  function s() {
331
- L.value = null, H.value = null;
331
+ A.value = null, L.value = null;
332
332
  }
333
333
  async function B() {
334
334
  var n;
@@ -344,23 +344,23 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
344
344
  ...r,
345
345
  config: { configFields: I, templateHtml: q }
346
346
  };
347
- }), ee = Be(g), R = {
348
- name: h.value,
347
+ }), ee = Be(g), M = {
348
+ name: x.value,
349
349
  type: d.value,
350
350
  blocks: ee,
351
351
  businessId: e,
352
352
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
353
353
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
354
354
  };
355
- let j;
356
- a.value ? j = await C.update(a.value, {
355
+ let R;
356
+ a.value ? R = await C.update(a.value, {
357
357
  _id: a.value,
358
- ...R
359
- }) : (j = await C.create(R), a.value = j._id), M.value.add(d.value), v.value = !1, p == null || p.open({
358
+ ...M
359
+ }) : (R = await C.create(M), a.value = R._id), N.value.add(d.value), v.value = !1, p == null || p.open({
360
360
  title: "Success",
361
361
  message: "Print template saved",
362
362
  type: "success"
363
- }), T("saved", j), f.value = !1;
363
+ }), F("saved", R), f.value = !1;
364
364
  } catch (e) {
365
365
  p == null || p.open({
366
366
  title: "Error",
@@ -375,11 +375,11 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
375
375
  if (a.value) {
376
376
  u.value = !0;
377
377
  try {
378
- await C.delete(a.value), a.value = null, i.value = te(), h.value = J(), M.value.delete(d.value), b.value = !1, p == null || p.open({
378
+ await C.delete(a.value), a.value = null, i.value = te(), x.value = J(), N.value.delete(d.value), b.value = !1, p == null || p.open({
379
379
  title: "Deleted",
380
380
  message: "Print template deleted. Default layout will be used.",
381
381
  type: "success"
382
- }), T("saved", null), f.value = !1;
382
+ }), F("saved", null), f.value = !1;
383
383
  } catch (n) {
384
384
  p == null || p.open({
385
385
  title: "Error",
@@ -391,8 +391,8 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
391
391
  }
392
392
  }
393
393
  }
394
- function F() {
395
- i.value = te(), x.value = null;
394
+ function w() {
395
+ i.value = te(), _.value = null;
396
396
  }
397
397
  function re(n) {
398
398
  var e;
@@ -403,9 +403,9 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
403
403
  return ((e = G[n]) == null ? void 0 : e.icon) ?? "widgets";
404
404
  }
405
405
  return (n, e) => {
406
- const g = E("FmIcon"), ee = E("FmTextField"), R = E("FmButton"), j = E("FmDialog");
406
+ const g = E("FmIcon"), ee = E("FmTextField"), M = E("FmButton"), R = E("FmDialog");
407
407
  return o(), c(U, null, [
408
- m(j, {
408
+ m(R, {
409
409
  modelValue: f.value,
410
410
  "onUpdate:modelValue": e[4] || (e[4] = (r) => f.value = r),
411
411
  overlay: !0,
@@ -452,7 +452,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
452
452
  l("div", mt, D(r.label), 1),
453
453
  l("div", vt, D(r.description), 1)
454
454
  ]),
455
- M.value.has(r.value) ? (o(), c("span", ft, "Customized")) : (o(), c("span", gt, "Default"))
455
+ N.value.has(r.value) ? (o(), c("span", ft, "Customized")) : (o(), c("span", gt, "Default"))
456
456
  ], 10, ct)), 64))
457
457
  ]))
458
458
  ])) : y.value ? (o(), c("div", yt, e[8] || (e[8] = [
@@ -461,24 +461,24 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
461
461
  l("div", _t, [
462
462
  l("div", xt, [
463
463
  m(ee, {
464
- modelValue: h.value,
465
- "onUpdate:modelValue": e[1] || (e[1] = (r) => h.value = r),
464
+ modelValue: x.value,
465
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => x.value = r),
466
466
  placeholder: "Template name",
467
467
  label: "Template Name"
468
468
  }, null, 8, ["modelValue"])
469
469
  ]),
470
470
  e[9] || (e[9] = l("div", { class: "text-xs font-semibold text-gray-400 uppercase tracking-wider px-3 py-2" }, " Add Blocks ", -1)),
471
471
  l("div", ht, [
472
- (o(!0), c(U, null, Y(S(Oe).Values, (r) => (o(), c("div", {
472
+ (o(!0), c(U, null, Y(T(Oe).Values, (r) => (o(), c("div", {
473
473
  key: r,
474
474
  class: "group flex items-center gap-2 px-3 py-2 cursor-pointer text-[13px] text-gray-600 transition-colors hover:bg-gray-100",
475
475
  onClick: (I) => ce(r)
476
476
  }, [
477
477
  m(g, {
478
- name: S(G)[r].icon,
478
+ name: T(G)[r].icon,
479
479
  size: "sm"
480
480
  }, null, 8, ["name"]),
481
- l("span", null, D(S(G)[r].label), 1),
481
+ l("span", null, D(T(G)[r].label), 1),
482
482
  m(g, {
483
483
  name: "add",
484
484
  size: "sm",
@@ -491,8 +491,8 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
491
491
  (o(!0), c(U, null, Y(i.value, (r, I) => (o(), c("div", {
492
492
  key: r.id,
493
493
  class: ie(["flex items-center gap-2 px-3 py-2 cursor-pointer text-[13px] text-gray-600 border-b border-gray-100 transition-colors hover:bg-gray-100", {
494
- "bg-blue-50 border-l-[3px] border-l-blue-600": r.id === x.value,
495
- "border-t-2 border-t-blue-600": H.value === I
494
+ "bg-blue-50 border-l-[3px] border-l-blue-600": r.id === _.value,
495
+ "border-t-2 border-t-blue-600": L.value === I
496
496
  }]),
497
497
  draggable: "true",
498
498
  onDragstart: (q) => pe(I),
@@ -500,7 +500,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
500
500
  onDragleave: ve,
501
501
  onDrop: (q) => t(I),
502
502
  onDragend: s,
503
- onClick: (q) => x.value = r.id
503
+ onClick: (q) => _.value = r.id
504
504
  }, [
505
505
  m(g, {
506
506
  name: "drag_indicator",
@@ -531,18 +531,18 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
531
531
  }, null, 8, ["block"]))
532
532
  ])) : (o(), c("div", $t, " Select a block to configure it ")),
533
533
  l("div", Bt, [
534
- m(R, {
534
+ m(M, {
535
535
  label: "Reset to Default",
536
536
  variant: "plain",
537
537
  size: "md",
538
- onClick: F
538
+ onClick: w
539
539
  })
540
540
  ])
541
541
  ]),
542
542
  l("div", Vt, [
543
543
  m(ot, {
544
544
  blocks: i.value,
545
- "selected-block-id": x.value,
545
+ "selected-block-id": _.value,
546
546
  "template-type": d.value
547
547
  }, null, 8, ["blocks", "selected-block-id", "template-type"])
548
548
  ])
@@ -554,14 +554,14 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
554
554
  name: "dialog-footer",
555
555
  fn: z(() => [
556
556
  l("div", It, [
557
- a.value ? (o(), O(R, {
557
+ a.value ? (o(), O(M, {
558
558
  key: 0,
559
559
  label: "Delete Template",
560
560
  variant: "destructive",
561
561
  size: "md",
562
562
  onClick: e[2] || (e[2] = (r) => b.value = !0)
563
563
  })) : X("", !0),
564
- m(R, {
564
+ m(M, {
565
565
  label: "Save Template",
566
566
  variant: "primary",
567
567
  size: "md",
@@ -572,7 +572,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
572
572
  key: "0"
573
573
  } : void 0
574
574
  ]), 1032, ["modelValue"]),
575
- m(j, {
575
+ m(R, {
576
576
  modelValue: v.value,
577
577
  "onUpdate:modelValue": e[5] || (e[5] = (r) => v.value = r),
578
578
  overlay: !0,
@@ -584,7 +584,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
584
584
  l("span", null, "Save Print Template?", -1)
585
585
  ])),
586
586
  "dialog-footer": z(() => [
587
- m(R, {
587
+ m(M, {
588
588
  class: "ml-auto",
589
589
  label: "Save",
590
590
  variant: "primary",
@@ -608,7 +608,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
608
608
  ]),
609
609
  _: 1
610
610
  }, 8, ["modelValue"]),
611
- m(j, {
611
+ m(R, {
612
612
  modelValue: b.value,
613
613
  "onUpdate:modelValue": e[6] || (e[6] = (r) => b.value = r),
614
614
  overlay: !0,
@@ -620,7 +620,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
620
620
  l("span", null, "Delete Print Template?", -1)
621
621
  ])),
622
622
  "dialog-footer": z(() => [
623
- m(R, {
623
+ m(M, {
624
624
  class: "ml-auto",
625
625
  label: "Delete",
626
626
  variant: "destructive",
@@ -647,17 +647,13 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
647
647
  ], 64);
648
648
  };
649
649
  }
650
- }), At = Pe((A, _) => ({
651
- async listForScope(w) {
652
- return await _.get(`${A.inventoryBackendUrl}/${w}/feature-flags`);
653
- }
654
- })), Lt = { class: "flex min-h-0 w-full flex-col gap-12" }, Ht = { class: "flex w-full flex-wrap items-center gap-8" }, Nt = /* @__PURE__ */ oe({
650
+ }), At = { class: "flex min-h-0 w-full flex-col gap-12" }, Lt = { class: "flex w-full flex-wrap items-center gap-8" }, Ht = /* @__PURE__ */ oe({
655
651
  __name: "FeatureFlagView",
656
- setup(A) {
657
- const { flags: _ } = Ue(), w = fe(), T = At(), C = Q.FmSwitch, p = Q.FmTable, P = Q.FmMenu, f = Q.FmMenuDivider, y = Q.FmMenuHeader, u = Q.FmMenuItem, i = /* @__PURE__ */ new Set(["inventory_ingredient_group"]), x = {
652
+ setup(j) {
653
+ const k = Ae(), S = fe(), F = Ee(), C = Q.FmSwitch, p = Q.FmTable, P = Q.FmMenu, f = Q.FmMenuDivider, y = Q.FmMenuHeader, u = Q.FmMenuItem, i = /* @__PURE__ */ new Set(), _ = {
658
654
  inventory_pos_closing_v1: "Use v2: Closing Draft and Closing Template.",
659
655
  inventory_pos_convert_v1: "Use Production Item instead."
660
- }, d = k([]), h = k(null), a = ["In use", "Deprecate Soon", "Deprecated"], b = k(null), v = k({}), V = k(!1), ae = {
656
+ }, d = h([]), x = h(null), a = ["In use", "Deprecate Soon", "Deprecated"], b = h(null), v = h({}), V = h(!1), ae = {
661
657
  inventory_netsuite_inventory_transfer_out: ["netsuite"],
662
658
  inventory_portal_accept_require_fulfillment: ["mobile"],
663
659
  inventory_portal_must_use_transfer_template: ["mobile"],
@@ -674,9 +670,9 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
674
670
  inventory_pos_stock_return: ["mobile"],
675
671
  inventory_pos_transfer_require_fulfillment: ["mobile", "pos-v7", "pos-7.8"],
676
672
  inventory_purchase_order_approval: ["mobile"]
677
- }, M = N(
678
- () => Object.values(Ae).map((t) => {
679
- const s = _.value.find((B) => B.feature.name === t);
673
+ }, N = H(
674
+ () => Object.values(Ue).map((t) => {
675
+ const s = k.flags.find((B) => B.name === t);
680
676
  return {
681
677
  name: t,
682
678
  enabled: (s == null ? void 0 : s.enabled) ?? null,
@@ -684,18 +680,18 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
684
680
  feature: Le(t)
685
681
  };
686
682
  })
687
- ), Z = N(
688
- () => [...new Set(M.value.flatMap((t) => t.domains))].sort()
689
- ), L = N(
690
- () => M.value.filter(
691
- (t) => (d.value.length === 0 || d.value.some((s) => t.domains.includes(s))) && (!h.value || se(t) === h.value)
683
+ ), Z = H(
684
+ () => [...new Set(N.value.flatMap((t) => t.domains))].sort()
685
+ ), A = H(
686
+ () => N.value.filter(
687
+ (t) => (d.value.length === 0 || d.value.some((s) => t.domains.includes(s))) && (!x.value || se(t) === x.value)
692
688
  )
693
689
  );
694
- function H(t) {
690
+ function L(t) {
695
691
  d.value = d.value.includes(t) ? d.value.filter((s) => s !== t) : [...d.value, t];
696
692
  }
697
693
  function ue() {
698
- d.value = [], h.value = null;
694
+ d.value = [], x.value = null;
699
695
  }
700
696
  function J(t) {
701
697
  return t.domains.includes("mobile") || t.domains.some((s) => s.startsWith("pos-"));
@@ -711,7 +707,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
711
707
  const s = t;
712
708
  V.value = !0;
713
709
  try {
714
- const { flags: B } = await T.listForScope(s);
710
+ const { flags: B } = await F.listForScope(s);
715
711
  b.value === s && (v.value = Object.fromEntries(B.map((K) => [K.name, K.enabled])));
716
712
  } catch (B) {
717
713
  console.error("Unable to load feature flags for the selected scope", B), b.value === s && (v.value = {});
@@ -722,7 +718,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
722
718
  W(
723
719
  () => {
724
720
  var t;
725
- return (t = w.currentBusiness.value) != null && t._id ? `business_${w.currentBusiness.value._id}` : null;
721
+ return (t = S.currentBusiness.value) != null && t._id ? `business_${S.currentBusiness.value._id}` : null;
726
722
  },
727
723
  (t) => {
728
724
  b.value || (b.value = t);
@@ -730,7 +726,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
730
726
  { immediate: !0 }
731
727
  ), W(b, ce, { immediate: !0 });
732
728
  function se(t) {
733
- return i.has(t.name) ? "Deprecated" : x[t.name] ? "Deprecate Soon" : "In use";
729
+ return i.has(t.name) ? "Deprecated" : _[t.name] ? "Deprecate Soon" : "In use";
734
730
  }
735
731
  function de(t) {
736
732
  return t === "Deprecated" ? "bg-red-50 text-red-700" : t === "Deprecate Soon" ? "bg-fm-color-state-warning-subtle text-fm-color-state-warning-base" : "bg-green-50 text-green-700";
@@ -740,9 +736,9 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
740
736
  return ((s = t.feature) == null ? void 0 : s.controls) ?? "Controls the availability of this inventory feature.";
741
737
  }
742
738
  function me(t) {
743
- return i.has(t.name) ? "This flag is deprecated. Use its supported replacement for new work." : x[t.name];
739
+ return i.has(t.name) ? "This flag is deprecated. Use its supported replacement for new work." : _[t.name];
744
740
  }
745
- const ve = N(() => [
741
+ const ve = H(() => [
746
742
  {
747
743
  accessorKey: "name",
748
744
  header: "Feature flag",
@@ -821,27 +817,27 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
821
817
  ]);
822
818
  return (t, s) => {
823
819
  const B = E("FmChip"), K = E("FmButton");
824
- return o(), c("div", Lt, [
825
- l("div", Ht, [
820
+ return o(), c("div", At, [
821
+ l("div", Lt, [
826
822
  m(Me, {
827
823
  "model-value": b.value,
828
- "onUpdate:modelValue": s[0] || (s[0] = (F) => b.value = F),
824
+ "onUpdate:modelValue": s[0] || (s[0] = (w) => b.value = w),
829
825
  "selection-only": "",
830
826
  "show-business": ""
831
827
  }, null, 8, ["model-value"]),
832
- (o(!0), c(U, null, Y(d.value, (F) => (o(), O(B, {
833
- key: F,
834
- label: `domain in ${F}`,
828
+ (o(!0), c(U, null, Y(d.value, (w) => (o(), O(B, {
829
+ key: w,
830
+ label: `domain in ${w}`,
835
831
  removable: "",
836
- onChipClosed: (re) => H(F)
832
+ onChipClosed: (re) => L(w)
837
833
  }, null, 8, ["label", "onChipClosed"]))), 128)),
838
- h.value ? (o(), O(B, {
834
+ x.value ? (o(), O(B, {
839
835
  key: 0,
840
- label: `status in ${h.value}`,
836
+ label: `status in ${x.value}`,
841
837
  removable: "",
842
- onChipClosed: s[1] || (s[1] = (F) => h.value = null)
838
+ onChipClosed: s[1] || (s[1] = (w) => x.value = null)
843
839
  }, null, 8, ["label"])) : X("", !0),
844
- m(S(P), {
840
+ m(T(P), {
845
841
  "close-on-click": !1,
846
842
  width: 288,
847
843
  "max-height": 420,
@@ -855,38 +851,38 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
855
851
  })
856
852
  ]),
857
853
  default: z(() => [
858
- m(S(y), { label: "Domains" }),
859
- (o(!0), c(U, null, Y(Z.value, (F) => (o(), O(S(u), {
860
- key: F,
861
- label: F,
854
+ m(T(y), { label: "Domains" }),
855
+ (o(!0), c(U, null, Y(Z.value, (w) => (o(), O(T(u), {
856
+ key: w,
857
+ label: w,
862
858
  selectable: "",
863
859
  "has-checkbox": "",
864
- "model-value": d.value.includes(F),
865
- onClick: (re) => H(F)
860
+ "model-value": d.value.includes(w),
861
+ onClick: (re) => L(w)
866
862
  }, null, 8, ["label", "model-value", "onClick"]))), 128)),
867
- m(S(f)),
868
- m(S(y), { label: "Status" }),
869
- (o(), c(U, null, Y(a, (F) => m(S(u), {
870
- key: F,
871
- label: F,
863
+ m(T(f)),
864
+ m(T(y), { label: "Status" }),
865
+ (o(), c(U, null, Y(a, (w) => m(T(u), {
866
+ key: w,
867
+ label: w,
872
868
  selectable: "",
873
869
  "has-checkbox": "",
874
- "model-value": h.value === F,
875
- onClick: (re) => h.value = h.value === F ? null : F
870
+ "model-value": x.value === w,
871
+ onClick: (re) => x.value = x.value === w ? null : w
876
872
  }, null, 8, ["label", "model-value", "onClick"])), 64))
877
873
  ]),
878
874
  _: 1
879
875
  }),
880
- d.value.length || h.value ? (o(), O(K, {
876
+ d.value.length || x.value ? (o(), O(K, {
881
877
  key: 1,
882
878
  label: "Clear all",
883
879
  variant: "tertiary",
884
880
  onClick: ue
885
881
  })) : X("", !0)
886
882
  ]),
887
- m(S(p), {
883
+ m(T(p), {
888
884
  "column-defs": ve.value,
889
- "row-data": L.value,
885
+ "row-data": A.value,
890
886
  "page-size": 50,
891
887
  "hide-footer": "",
892
888
  "shrink-at": !1
@@ -894,37 +890,37 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
894
890
  ]);
895
891
  };
896
892
  }
897
- }), Mt = { class: "flex w-full flex-col gap-16 p-16" }, Rt = {
893
+ }), Nt = { class: "flex w-full flex-col gap-16 p-16" }, Mt = {
898
894
  key: 0,
899
895
  class: "py-32 text-center"
900
- }, jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = {
896
+ }, Rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jt = {
901
897
  class: "flex gap-2 border-b border-gray-200",
902
898
  role: "tablist"
903
- }, qt = ["aria-selected"], Gt = ["aria-selected"], Yt = { key: 0 }, Wt = { class: "flex items-center justify-between gap-12" }, Jt = { class: "fm-typo-en-heading-sm-600 text-fm-color-typo-primary" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xt = {
899
+ }, Kt = ["aria-selected"], qt = ["aria-selected"], Gt = { key: 0 }, Yt = { class: "flex items-center justify-between gap-12" }, Wt = { class: "fm-typo-en-heading-sm-600 text-fm-color-typo-primary" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qt = {
904
900
  key: 1,
905
901
  class: "w-full"
906
- }, Zt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dl = /* @__PURE__ */ oe({
902
+ }, Xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, cl = /* @__PURE__ */ oe({
907
903
  __name: "SettingsView",
908
- setup(A) {
909
- const { t: _ } = Ee(), w = fe(), T = Ve(), C = k(!1), p = k("order"), P = N(() => {
904
+ setup(j) {
905
+ const { t: k } = Pe(), S = fe(), F = Ve(), C = h(!1), p = h("order"), P = H(() => {
910
906
  var u, i;
911
- return ((i = (u = w.sessionUser.value) == null ? void 0 : u.role) == null ? void 0 : i.isAdmin) === !0;
907
+ return ((i = (u = S.sessionUser.value) == null ? void 0 : u.role) == null ? void 0 : i.isAdmin) === !0;
912
908
  });
913
909
  function f() {
914
- T.invalidate(), T.fetchTemplates();
910
+ F.invalidate(), F.fetchTemplates();
915
911
  }
916
912
  function y() {
917
- T.fetchTemplates(), C.value = !0;
913
+ F.fetchTemplates(), C.value = !0;
918
914
  }
919
915
  return (u, i) => {
920
- const x = E("FmButton");
916
+ const _ = E("FmButton");
921
917
  return o(), O(we, {
922
- title: S(_)("inventory.settings.title")
918
+ title: T(k)("inventory.settings.title")
923
919
  }, {
924
920
  default: z(() => [
925
- l("div", Mt, [
921
+ l("div", Nt, [
926
922
  P.value ? (o(), c(U, { key: 1 }, [
927
- l("div", Kt, [
923
+ l("div", jt, [
928
924
  l("button", {
929
925
  type: "button",
930
926
  role: "tab",
@@ -934,7 +930,7 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
934
930
  p.value === "order" ? "border-fm-color-primary text-fm-color-primary" : "border-transparent text-gray-500"
935
931
  ]),
936
932
  onClick: i[0] || (i[0] = (d) => p.value = "order")
937
- }, D(S(_)("inventory.settings.order.title")), 11, qt),
933
+ }, D(T(k)("inventory.settings.order.title")), 11, Kt),
938
934
  l("button", {
939
935
  type: "button",
940
936
  role: "tab",
@@ -944,24 +940,24 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
944
940
  p.value === "features" ? "border-fm-color-primary text-fm-color-primary" : "border-transparent text-gray-500"
945
941
  ]),
946
942
  onClick: i[1] || (i[1] = (d) => p.value = "features")
947
- }, D(S(_)("inventory.settings.features.title")), 11, Gt)
943
+ }, D(T(k)("inventory.settings.features.title")), 11, qt)
948
944
  ]),
949
- p.value === "order" ? (o(), c("div", Yt, [
950
- l("div", Wt, [
951
- l("h2", Jt, D(S(_)("inventory.settings.order.printTemplates")), 1),
952
- m(x, {
945
+ p.value === "order" ? (o(), c("div", Gt, [
946
+ l("div", Yt, [
947
+ l("h2", Wt, D(T(k)("inventory.settings.order.printTemplates")), 1),
948
+ m(_, {
953
949
  onClick: y,
954
950
  variant: "secondary",
955
- label: S(_)("inventory.settings.printTemplate.edit")
951
+ label: T(k)("inventory.settings.printTemplate.edit")
956
952
  }, null, 8, ["label"])
957
953
  ]),
958
- l("p", Qt, D(S(_)("inventory.settings.printTemplate.description")), 1)
959
- ])) : (o(), c("div", Xt, [
960
- l("p", Zt, D(S(_)("inventory.settings.features.description")), 1),
961
- m(Nt)
954
+ l("p", Jt, D(T(k)("inventory.settings.printTemplate.description")), 1)
955
+ ])) : (o(), c("div", Qt, [
956
+ l("p", Xt, D(T(k)("inventory.settings.features.description")), 1),
957
+ m(Ht)
962
958
  ]))
963
- ], 64)) : (o(), c("div", Rt, [
964
- l("p", jt, D(S(_)("inventory.settings.adminOnly")), 1)
959
+ ], 64)) : (o(), c("div", Mt, [
960
+ l("p", Rt, D(T(k)("inventory.settings.adminOnly")), 1)
965
961
  ]))
966
962
  ]),
967
963
  (o(), O(ke, { to: "body" }, [
@@ -978,5 +974,5 @@ const Re = { class: "p-3" }, je = { class: "text-sm font-semibold text-gray-700
978
974
  }
979
975
  });
980
976
  export {
981
- dl as default
977
+ cl as default
982
978
  };