@feedmepos/mf-inventory-portal 0.0.23-dev.37 → 0.0.23-dev.38

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 (74) hide show
  1. package/dist/{App-CocJ-ge2.js → App-DQgtWkQj.js} +20 -20
  2. package/dist/{ApprovalView-BwoVumaD.js → ApprovalView-CvSK9fGA.js} +10 -10
  3. package/dist/{BindingsDialog-ChGPGBfA.js → BindingsDialog-BAC0_xCP.js} +8 -8
  4. package/dist/{BindingsPicker-DlQ4Y-_S.js → BindingsPicker-ecWMwsNp.js} +3 -3
  5. package/dist/{BindingsTable-BViS1Vbk.js → BindingsTable-D5kQydOU.js} +10 -10
  6. package/dist/{ClosingDraftView-0s7elpJE.js → ClosingDraftView-CnHQ59rX.js} +46 -46
  7. package/dist/{ClosingTemplateView-ijUARoMf.js → ClosingTemplateView-vRTsVZ0c.js} +21 -21
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-f3zAXx0v.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CpIzIvkU.js} +17 -17
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B_VkK2l-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CNzEHF-R.js} +37 -37
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DaOZl7x7.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBhBaRrd.js} +1 -1
  11. package/dist/{IngredientGroupView-sBJJcpUH.js → IngredientGroupView-BLsABZ3h.js} +1 -1
  12. package/dist/IngredientsView-Cs4TIf6V.js +1794 -0
  13. package/dist/{IntegrationView-BCnyd5ZT.js → IntegrationView-BqAqngtM.js} +137 -137
  14. package/dist/{InventoryBindingForm-vNrC4UVe.js → InventoryBindingForm-D54V_qZQ.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CAKAtpAv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-KIW9J7Xn.js} +106 -96
  16. package/dist/{InventoryBindingSummary-BV-mteuK.js → InventoryBindingSummary-htT7GNto.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CLJq06wA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BlEgALMj.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DGMYtoSD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DHbxXDGy.js} +9 -9
  19. package/dist/{PurchaseOrderPrintPreview-Dw9MTN87.js → PurchaseOrderPrintPreview-hmzxKuIa.js} +5 -5
  20. package/dist/{ReceiveRequestView-DA1y32Ri.js → ReceiveRequestView-_YioyWqU.js} +182 -182
  21. package/dist/{RecipeView-CUJ8JTg4.js → RecipeView-88KJ0nvU.js} +3 -3
  22. package/dist/StockView-R4cnEbHQ.js +1818 -0
  23. package/dist/{SupplierView-B25JfCjl.js → SupplierView-CevGG507.js} +4 -4
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CaHSzoOL.js → TransferDetails.vue_vue_type_script_setup_true_lang-CeWP9msS.js} +52 -52
  25. package/dist/{TransferTemplateView-B-NHZD3a.js → TransferTemplateView-QDniAq8o.js} +114 -114
  26. package/dist/{UnitView-BwyqEvF5.js → UnitView-SjwJ3lZ0.js} +14 -14
  27. package/dist/{WarehouseView-DKN9oNF0.js → WarehouseView-55LiPQXG.js} +70 -70
  28. package/dist/api/bill.d.ts +240 -84
  29. package/dist/api/inventory.d.ts +15 -6
  30. package/dist/{app-pBbFb2kn.js → app-UTiudUUR.js} +351 -336
  31. package/dist/app.d.ts +6 -0
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
  34. package/dist/components/FmLockableField.vue.d.ts +37 -0
  35. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
  36. package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
  37. package/dist/{decimal-DlS5ULFC.js → decimal-tyBgHJ47.js} +1 -1
  38. package/dist/feature-z7inw9y6.js +946 -0
  39. package/dist/{format-unit-display-pWImoMk4.js → format-unit-display-DN0KtCh2.js} +61 -61
  40. package/dist/index-Dj2Ccgp1.js +29202 -0
  41. package/dist/{StockView-C8uDlvit.js → index-DlhdTaa8.js} +2218 -3854
  42. package/dist/{stock-Pgzh63s3.js → stock-CxRxidDu.js} +1 -1
  43. package/dist/stores/feature.d.ts +5 -0
  44. package/dist/stores/inventory.d.ts +20 -8
  45. package/dist/stores/supplier.d.ts +1 -1
  46. package/dist/{supplier-B_UGrq8S.js → supplier-BhyiTwSJ.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-inventory-binding-dialog-DcCaNUdQ.js → use-inventory-binding-dialog-DwSvUvRl.js} +1 -1
  49. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  50. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  51. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
  52. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -12
  53. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -12
  54. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
  55. package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
  56. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
  57. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
  58. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
  59. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  60. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -17
  61. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
  62. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
  63. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -24
  64. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +48 -24
  65. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
  66. package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
  67. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -1
  69. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
  70. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
  71. package/package.json +7 -6
  72. package/dist/IngredientsView-F25fK95q.js +0 -1657
  73. package/dist/feature-j9EM4xzR.js +0 -92
  74. package/dist/index-BILt4nGV.js +0 -12087
@@ -1,6 +1,6 @@
1
- import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as H, createElementVNode as c, toDisplayString as L, unref as y, createVNode as M, createBlock as Z, withCtx as N, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as ye, createCommentVNode as K, withModifiers as be, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
1
+ import { ref as Q, computed as R, defineComponent as F, mergeModels as ge, useModel as pe, onMounted as ve, resolveComponent as O, openBlock as C, createElementBlock as V, createElementVNode as c, toDisplayString as L, unref as b, createVNode as M, createBlock as Z, withCtx as J, Fragment as G, renderList as U, normalizeClass as q, normalizeStyle as Ie, createSlots as be, createCommentVNode as K, withModifiers as ye, reactive as te, watch as ne, isRef as ie, Teleport as oe } from "vue";
2
2
  import { E as Ee } from "./empty-placeholder-wf6-BWE8.js";
3
- import { u as _, aM as se, b as re, aN as le, aH as he, e as T, y as Be, z as Ce } from "./app-pBbFb2kn.js";
3
+ import { u as _, aJ as se, b as re, aK as le, aD as he, e as T, z as Be, B as Ce } from "./app-UTiudUUR.js";
4
4
  import { useSnackbar as ae, useDialogChild as Se, useDialog as de, useProxiedModel as ue, useBreakpoints as $ } from "@feedmepos/ui-library";
5
5
  import { useI18n as Y, useCoreStore as ke } from "@feedmepos/mf-common";
6
6
  function xe() {
@@ -107,16 +107,16 @@ function Re(g, A) {
107
107
  matched: !0
108
108
  };
109
109
  }
110
- function J(g) {
110
+ function N(g) {
111
111
  return Object.prototype.hasOwnProperty.call(g, "children");
112
112
  }
113
- const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex items-center" }, ze = {
113
+ const Ve = { class: "flex flex-col gap-12 h-[350px]" }, He = { class: "flex items-center" }, ze = {
114
114
  class: "flex-1",
115
115
  "data-cy": "items-selected"
116
116
  }, Oe = {
117
117
  class: "flex-1",
118
118
  "data-cy": "filter-field"
119
- }, Le = ["data-cy"], Xe = { class: "flex flex-col" }, Ne = { class: "fm-typo-en-body-md-400" }, Je = {
119
+ }, Le = ["data-cy"], Xe = { class: "flex flex-col" }, Je = { class: "fm-typo-en-body-md-400" }, Ne = {
120
120
  key: 1,
121
121
  class: "w-full py-16 text-fm-color-typo-disabled fm-typo-en-body-md-400 text-center"
122
122
  }, Ae = /* @__PURE__ */ F({
@@ -141,7 +141,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
141
141
  );
142
142
  }
143
143
  function p(e) {
144
- return r(e) ? !0 : J(e) ? e.children.some(p) : !1;
144
+ return r(e) ? !0 : N(e) ? e.children.some(p) : !1;
145
145
  }
146
146
  function k(e, n) {
147
147
  if (!f.value)
@@ -153,12 +153,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
153
153
  return ee(
154
154
  f.value,
155
155
  w.sublabel ? [w.label, w.sublabel] : [w.label]
156
- ) ? !0 : x.length === 0 ? p(w) : J(w) ? k(x, w.children) : !1;
156
+ ) ? !0 : x.length === 0 ? p(w) : N(w) ? k(x, w.children) : !1;
157
157
  }
158
- function V(e, n, u = 0, x = !1) {
159
- if (J(e) && e.children.length) {
158
+ function H(e, n, u = 0, x = !1) {
159
+ if (N(e) && e.children.length) {
160
160
  const { children: w, ...X } = e, j = w.flatMap(
161
- (B, P) => V(B, [...n, P], u + 1, x || e.disabled)
161
+ (B, P) => H(B, [...n, P], u + 1, x || e.disabled)
162
162
  );
163
163
  return [
164
164
  {
@@ -182,10 +182,10 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
182
182
  ];
183
183
  }
184
184
  const z = R(() => A.value.flatMap(
185
- (e, n) => V(e, [n]).filter((u) => k(u.keys, A.value))
185
+ (e, n) => H(e, [n]).filter((u) => k(u.keys, A.value))
186
186
  ));
187
187
  function E(e) {
188
- if (J(e)) {
188
+ if (N(e)) {
189
189
  if (p(e)) {
190
190
  const n = r(e) ? e.children : e.children.filter(p);
191
191
  return n.length === 0 ? !1 : n.every(E);
@@ -199,10 +199,10 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
199
199
  if (typeof u != "number")
200
200
  return !1;
201
201
  const w = n[u];
202
- return x.length === 0 ? E(w ?? []) : J(w) ? m(x, w.children ?? []) : !1;
202
+ return x.length === 0 ? E(w ?? []) : N(w) ? m(x, w.children ?? []) : !1;
203
203
  }
204
204
  function v(e) {
205
- if (J(e)) {
205
+ if (N(e)) {
206
206
  if (p(e)) {
207
207
  const n = r(e) ? e.children : e.children.filter(p);
208
208
  return n.length === 0 ? !1 : n.some(E) && !n.every(E);
@@ -216,12 +216,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
216
216
  if (typeof u != "number")
217
217
  return !1;
218
218
  const w = n[u];
219
- return x.length === 0 ? v(w ?? []) : J(w) ? I(x, (w == null ? void 0 : w.children) ?? []) : !1;
219
+ return x.length === 0 ? v(w ?? []) : N(w) ? I(x, (w == null ? void 0 : w.children) ?? []) : !1;
220
220
  }
221
221
  function S(e, n) {
222
222
  if (e.disabled)
223
223
  return e;
224
- if (J(e)) {
224
+ if (N(e)) {
225
225
  if (p(e)) {
226
226
  const u = r(e) ? e.children : e.children.filter(p);
227
227
  return {
@@ -242,7 +242,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
242
242
  function h(e, n, u) {
243
243
  const [x, ...w] = e;
244
244
  return typeof x != "number" ? n : w.length === 0 ? n.map((X, j) => x !== j ? X : S(X, u)) : n.map(
245
- (X, j) => x === j && J(X) ? {
245
+ (X, j) => x === j && N(X) ? {
246
246
  ...X,
247
247
  children: h(w, X.children, u)
248
248
  } : X
@@ -264,19 +264,19 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
264
264
  const d = R(
265
265
  () => z.value.filter((e) => k(e.keys, A.value) && e.active).length
266
266
  );
267
- function b(e, n, u) {
267
+ function y(e, n, u) {
268
268
  A.value = h(e, n, u), o.emitData(A.value);
269
269
  }
270
270
  return (e, n) => {
271
271
  const u = O("FmSearch"), x = O("FmCheckbox"), w = O("FmButton"), X = O("FmListItem"), j = O("FmList");
272
- return C(), H("div", He, [
273
- c("div", Ve, [
274
- c("div", ze, L(y(l)("inventory.formField.itemsSelected", { count: d.value })), 1),
272
+ return C(), V("div", Ve, [
273
+ c("div", He, [
274
+ c("div", ze, L(b(l)("inventory.formField.itemsSelected", { count: d.value })), 1),
275
275
  c("div", Oe, [
276
276
  M(u, {
277
277
  modelValue: f.value,
278
278
  "onUpdate:modelValue": n[0] || (n[0] = (B) => f.value = B),
279
- placeholder: y(l)("inventory.formField.filterItems")
279
+ placeholder: b(l)("inventory.formField.filterItems")
280
280
  }, null, 8, ["modelValue", "placeholder"])
281
281
  ])
282
282
  ]),
@@ -284,8 +284,8 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
284
284
  key: 0,
285
285
  class: "flex-1 overflow-y-auto"
286
286
  }, {
287
- default: N(() => [
288
- (C(!0), H(G, null, U(z.value, (B) => (C(), H("div", {
287
+ default: J(() => [
288
+ (C(!0), V(G, null, U(z.value, (B) => (C(), V("div", {
289
289
  key: B.keys.join(),
290
290
  class: q([
291
291
  "transition-all overflow-y-clip",
@@ -295,25 +295,25 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
295
295
  }, [
296
296
  M(X, {
297
297
  clickable: B.selectable !== !1,
298
- onClick: () => B.selectable === !1 || B.disabled || b(B.keys, A.value, !m(B.keys, A.value)),
298
+ onClick: () => B.selectable === !1 || B.disabled || y(B.keys, A.value, !m(B.keys, A.value)),
299
299
  style: Ie({
300
300
  paddingLeft: `${16 + B.indent * 16}px`,
301
301
  paddingTop: "4px",
302
302
  paddingBottom: "4px"
303
303
  }),
304
304
  disabled: B.selectable !== !1 && B.disabled
305
- }, ye({
306
- default: N(() => [
305
+ }, be({
306
+ default: J(() => [
307
307
  c("div", Xe, [
308
- c("div", Ne, [
309
- (C(!0), H(G, null, U(y(Re)(f.value, B.label).segments, (P, me) => (C(), H("span", {
308
+ c("div", Je, [
309
+ (C(!0), V(G, null, U(b(Re)(f.value, B.label).segments, (P, me) => (C(), V("span", {
310
310
  key: me,
311
311
  class: q({
312
312
  "font-bold": P.isMatch
313
313
  })
314
314
  }, L(P.segment), 3))), 128))
315
315
  ]),
316
- B.sublabel ? (C(), H("div", {
316
+ B.sublabel ? (C(), V("div", {
317
317
  key: 0,
318
318
  class: q([
319
319
  "fm-typo-en-body-sm-400",
@@ -326,7 +326,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
326
326
  }, [
327
327
  B.selectable !== !1 ? {
328
328
  name: "prepend",
329
- fn: N(() => [
329
+ fn: J(() => [
330
330
  M(x, {
331
331
  disabled: B.disabled,
332
332
  "model-value": m(B.keys, A.value),
@@ -338,12 +338,12 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
338
338
  } : void 0,
339
339
  B.collapsible ? {
340
340
  name: "append",
341
- fn: N(() => [
341
+ fn: J(() => [
342
342
  M(w, {
343
343
  "prepend-icon": t(B.keys) ? "expand_less" : "expand_more",
344
344
  size: "md",
345
345
  variant: "tertiary",
346
- onClick: be(() => i(B.keys), ["stop"])
346
+ onClick: ye(() => i(B.keys), ["stop"])
347
347
  }, null, 8, ["prepend-icon", "onClick"])
348
348
  ]),
349
349
  key: "1"
@@ -352,7 +352,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
352
352
  ], 10, Le))), 128))
353
353
  ]),
354
354
  _: 1
355
- })) : (C(), H("div", Je, L(y(l)("inventory.formField.noItemsFound")), 1))
355
+ })) : (C(), V("div", Ne, L(b(l)("inventory.formField.noItemsFound")), 1))
356
356
  ]);
357
357
  };
358
358
  }
@@ -407,7 +407,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
407
407
  o.modifiers.filter((v) => v.selection !== m)
408
408
  );
409
409
  }
410
- function V({ selection: m }, v) {
410
+ function H({ selection: m }, v) {
411
411
  const I = o.modifiers.find((S) => S.selection === m);
412
412
  I && (I.code = v);
413
413
  }
@@ -452,7 +452,7 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
452
452
  const S = T(o.modifiers);
453
453
  let h = [];
454
454
  function s(t, i) {
455
- if (i(t), J(t))
455
+ if (i(t), N(t))
456
456
  for (let a of t.children)
457
457
  s(a, i);
458
458
  }
@@ -460,8 +460,8 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
460
460
  s(t, (i) => {
461
461
  var e;
462
462
  if (o.groups.find(({ _id: n }) => n === i.value)) return;
463
- const d = p.value.find(({ selection: n }) => n === i.value), b = h.find(({ selection: n }) => i.value === n);
464
- !J(i) && i.active && b === void 0 && h.push({
463
+ const d = p.value.find(({ selection: n }) => n === i.value), y = h.find(({ selection: n }) => i.value === n);
464
+ !N(i) && i.active && y === void 0 && h.push({
465
465
  addonGroupId: (d == null ? void 0 : d.groupId) ?? "",
466
466
  selection: i.value,
467
467
  code: ((e = S.find(({ selection: n }) => i.value === n)) == null ? void 0 : e.code) ?? ""
@@ -473,39 +473,39 @@ const He = { class: "flex flex-col gap-12 h-[350px]" }, Ve = { class: "flex item
473
473
  const { t: E } = Y();
474
474
  return (m, v) => {
475
475
  const I = O("FmButton"), S = O("FmTextField");
476
- return C(), H("div", je, [
476
+ return C(), V("div", je, [
477
477
  c("div", Qe, [
478
- c("div", Ke, L(y(E)("inventory.integration.apply.addons")), 1),
478
+ c("div", Ke, L(b(E)("inventory.integration.apply.addons")), 1),
479
479
  M(I, {
480
480
  type: "button",
481
481
  variant: "plain",
482
482
  size: "md",
483
483
  icon: "link",
484
- label: y(E)("inventory.integration.apply.applyAddon"),
484
+ label: b(E)("inventory.integration.apply.applyAddon"),
485
485
  onClick: v[0] || (v[0] = (h) => z())
486
486
  }, null, 8, ["label"])
487
487
  ]),
488
488
  c("div", null, [
489
- r.value.length > 0 ? (C(), H("table", Ze, [
489
+ r.value.length > 0 ? (C(), V("table", Ze, [
490
490
  c("tr", Fe, [
491
- c("th", Ye, L(y(E)("inventory.integration.apply.name")), 1),
492
- c("th", null, L(y(E)("inventory.integration.apply.code")), 1),
491
+ c("th", Ye, L(b(E)("inventory.integration.apply.name")), 1),
492
+ c("th", null, L(b(E)("inventory.integration.apply.code")), 1),
493
493
  v[1] || (v[1] = c("th", { class: "w-1" }, " ", -1))
494
494
  ]),
495
- (C(!0), H(G, null, U(r.value, (h, s) => (C(), H(G, { key: s }, [
495
+ (C(!0), V(G, null, U(r.value, (h, s) => (C(), V(G, { key: s }, [
496
496
  v[2] || (v[2] = c("tr", { class: "block h-8" }, null, -1)),
497
497
  c("tr", null, [
498
498
  c("td", null, [
499
499
  c("div", De, [
500
500
  c("div", Te, L(h.name), 1),
501
- h.groupName ? (C(), H("div", qe, L(h.groupName), 1)) : K("", !0)
501
+ h.groupName ? (C(), V("div", qe, L(h.groupName), 1)) : K("", !0)
502
502
  ])
503
503
  ]),
504
504
  c("td", null, [
505
505
  M(S, {
506
506
  disabled: g.loading,
507
507
  "model-value": h.code,
508
- "onUpdate:modelValue": [(t) => h.code = t, (t) => V(h, t)],
508
+ "onUpdate:modelValue": [(t) => h.code = t, (t) => H(h, t)],
509
509
  rules: [
510
510
  function(i) {
511
511
  return !!i || "Required";
@@ -539,13 +539,13 @@ function Ue(g, A = []) {
539
539
  function We(g, A, o) {
540
540
  const f = o.reduce((r, p) => {
541
541
  var E, m, v;
542
- const k = p.category || "", V = Ue(A, (E = p.variant) == null ? void 0 : E.variantGroupIds), z = {
542
+ const k = p.category || "", H = Ue(A, (E = p.variant) == null ? void 0 : E.variantGroupIds), z = {
543
543
  ...p,
544
544
  codeName: [p.code, p.name].filter((I) => !!I).join(" "),
545
545
  variant: {
546
546
  variantGroupIds: ((m = p.variant) == null ? void 0 : m.variantGroupIds) || [],
547
547
  variantCombinations: (((v = p.variant) == null ? void 0 : v.variantCombinations) || []).map((I) => {
548
- const S = I.code, h = I.name || V[I.combinationKey || ""];
548
+ const S = I.code, h = I.name || H[I.combinationKey || ""];
549
549
  return {
550
550
  ...I,
551
551
  codeName: [S, h].filter((s) => !!s).join(" ").trim() || "-"
@@ -569,7 +569,7 @@ function fe(g, A) {
569
569
  if (g.length == 1)
570
570
  return g[0];
571
571
  const o = g[0], f = g.slice(1, g.length), l = fe(f, A);
572
- return o.reduce((p, k) => [...p, ...l.map((V) => A(k, V))], new Array());
572
+ return o.reduce((p, k) => [...p, ...l.map((H) => A(k, H))], new Array());
573
573
  }
574
574
  function _e(g) {
575
575
  if (g.length === 0) return [];
@@ -627,10 +627,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
627
627
  setup(g, { emit: A }) {
628
628
  const o = g, f = A, l = de(), r = R(() => o.isAddon ? "Addons" : "Products"), p = R(() => o.isAddon ? [] : o.categories), k = R(
629
629
  () => We(p.value, o.variants, o.menus)
630
- ), V = R(() => {
630
+ ), H = R(() => {
631
631
  if (o.isAddon)
632
632
  return o.bindings.map((i) => {
633
- const a = o.menus.find((b) => b._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
633
+ const a = o.menus.find((y) => y._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
634
634
  return {
635
635
  ...i,
636
636
  name: d,
@@ -641,17 +641,17 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
641
641
  return o.bindings.map((i) => {
642
642
  var n;
643
643
  const a = t.find((u) => u._id === i.productId), d = (a == null ? void 0 : a.name) ?? "-";
644
- let b = (a == null ? void 0 : a.code) ?? "-", e;
644
+ let y = (a == null ? void 0 : a.code) ?? "-", e;
645
645
  if (i.combinationKey) {
646
646
  const u = (((n = a == null ? void 0 : a.variant) == null ? void 0 : n.variantCombinations) || []).find(
647
647
  (x) => x.combinationKey === i.combinationKey
648
648
  );
649
- e = (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.codeName) ?? "", b = (u == null ? void 0 : u.code) ?? b;
649
+ e = (u == null ? void 0 : u.name) ?? (u == null ? void 0 : u.codeName) ?? "", y = (u == null ? void 0 : u.code) ?? y;
650
650
  }
651
651
  return {
652
652
  ...i,
653
653
  name: d,
654
- itemCode: b,
654
+ itemCode: y,
655
655
  variantName: e
656
656
  };
657
657
  });
@@ -666,7 +666,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
666
666
  }
667
667
  function E({ productId: t, combinationKey: i }, a) {
668
668
  const d = o.bindings.find(
669
- (b) => b.productId === t && b.combinationKey === i
669
+ (y) => y.productId === t && y.combinationKey === i
670
670
  );
671
671
  d && (d.code = a);
672
672
  }
@@ -690,18 +690,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
690
690
  productId: i._id
691
691
  },
692
692
  active: !!o.bindings.find(
693
- ({ productId: b, combinationKey: e }) => i._id === b && !e
693
+ ({ productId: y, combinationKey: e }) => i._id === y && !e
694
694
  )
695
695
  },
696
- ...a.map((b) => ({
697
- label: b.codeName ?? "",
696
+ ...a.map((y) => ({
697
+ label: y.codeName ?? "",
698
698
  value: {
699
699
  productId: i._id,
700
- combinationKey: b.combinationKey
700
+ combinationKey: y.combinationKey
701
701
  },
702
702
  sublabel: "Variant",
703
703
  active: !!o.bindings.find(
704
- ({ productId: e, combinationKey: n }) => i._id === e && b.combinationKey === n
704
+ ({ productId: e, combinationKey: n }) => i._id === e && y.combinationKey === n
705
705
  )
706
706
  }))
707
707
  ]
@@ -711,7 +711,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
711
711
  productId: i._id
712
712
  },
713
713
  active: !!o.bindings.find(
714
- ({ productId: b, combinationKey: e }) => i._id === b && !e
714
+ ({ productId: y, combinationKey: e }) => i._id === y && !e
715
715
  )
716
716
  };
717
717
  })
@@ -730,7 +730,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
730
730
  const i = T(o.bindings);
731
731
  return t.flatMap((a) => a.children.flatMap((d) => {
732
732
  var e;
733
- if (J(d))
733
+ if (N(d))
734
734
  return d.children.filter((n) => n.active).map((n) => {
735
735
  var w, X;
736
736
  const { productId: u, combinationKey: x } = n.value;
@@ -747,11 +747,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
747
747
  });
748
748
  if (!d.active)
749
749
  return [];
750
- const { productId: b } = d.value;
750
+ const { productId: y } = d.value;
751
751
  return [
752
752
  {
753
- productId: b,
754
- code: ((e = i.find(({ productId: n, combinationKey: u }) => b === n && !u)) == null ? void 0 : e.code) ?? ""
753
+ productId: y,
754
+ code: ((e = i.find(({ productId: n, combinationKey: u }) => y === n && !u)) == null ? void 0 : e.code) ?? ""
755
755
  }
756
756
  ];
757
757
  }));
@@ -763,7 +763,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
763
763
  var d;
764
764
  return {
765
765
  productId: a.value.productId,
766
- code: ((d = i.find(({ productId: b }) => b === a.value.productId)) == null ? void 0 : d.code) ?? ""
766
+ code: ((d = i.find(({ productId: y }) => y === a.value.productId)) == null ? void 0 : d.code) ?? ""
767
767
  };
768
768
  }
769
769
  );
@@ -790,38 +790,38 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
790
790
  const { t: s } = Y();
791
791
  return (t, i) => {
792
792
  const a = O("FmButton"), d = O("FmTextField");
793
- return C(), H("div", $e, [
793
+ return C(), V("div", $e, [
794
794
  c("div", et, [
795
- c("div", tt, L(g.isAddon ? y(s)("inventory.integration.apply.addons") : y(s)("inventory.integration.apply.products")), 1),
795
+ c("div", tt, L(g.isAddon ? b(s)("inventory.integration.apply.addons") : b(s)("inventory.integration.apply.products")), 1),
796
796
  M(a, {
797
797
  type: "button",
798
798
  variant: "plain",
799
799
  size: "md",
800
800
  icon: "link",
801
- label: g.isAddon ? y(s)("inventory.integration.apply.applyAddon") : y(s)("inventory.integration.apply.applyProduct"),
802
- onClick: i[0] || (i[0] = (b) => h())
801
+ label: g.isAddon ? b(s)("inventory.integration.apply.applyAddon") : b(s)("inventory.integration.apply.applyProduct"),
802
+ onClick: i[0] || (i[0] = (y) => h())
803
803
  }, null, 8, ["label"])
804
804
  ]),
805
805
  c("div", null, [
806
- V.value.length > 0 ? (C(), H("table", nt, [
806
+ H.value.length > 0 ? (C(), V("table", nt, [
807
807
  c("tr", it, [
808
- c("th", ot, L(y(s)("inventory.integration.apply.name")), 1),
809
- c("th", null, L(y(s)("inventory.integration.apply.code")), 1),
808
+ c("th", ot, L(b(s)("inventory.integration.apply.name")), 1),
809
+ c("th", null, L(b(s)("inventory.integration.apply.code")), 1),
810
810
  i[1] || (i[1] = c("th", { class: "w-1" }, " ", -1))
811
811
  ]),
812
- (C(!0), H(G, null, U(V.value, (b, e) => (C(), H(G, { key: e }, [
812
+ (C(!0), V(G, null, U(H.value, (y, e) => (C(), V(G, { key: e }, [
813
813
  i[2] || (i[2] = c("tr", { class: "block h-8" }, null, -1)),
814
814
  c("tr", null, [
815
815
  c("td", null, [
816
816
  c("div", st, [
817
- c("div", rt, L(b.itemCode) + " " + L(b.name), 1),
818
- b.variantName ? (C(), H("div", lt, L(b.variantName), 1)) : K("", !0)
817
+ c("div", rt, L(y.itemCode) + " " + L(y.name), 1),
818
+ y.variantName ? (C(), V("div", lt, L(y.variantName), 1)) : K("", !0)
819
819
  ])
820
820
  ]),
821
821
  c("td", null, [
822
822
  M(d, {
823
- "model-value": b.code,
824
- "onUpdate:modelValue": [(n) => b.code = n, (n) => E(b, n)],
823
+ "model-value": y.code,
824
+ "onUpdate:modelValue": [(n) => y.code = n, (n) => E(y, n)],
825
825
  rules: [
826
826
  function(u) {
827
827
  return !!u || "Required";
@@ -836,7 +836,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
836
836
  icon: "delete",
837
837
  "icon-color": "#000000",
838
838
  size: "md",
839
- onClick: (n) => z(b)
839
+ onClick: (n) => z(y)
840
840
  }, null, 8, ["onClick"])
841
841
  ])
842
842
  ])
@@ -870,21 +870,21 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
870
870
  var E, m;
871
871
  (m = (E = r.value) == null ? void 0 : E.validateInputs) == null || m.call(E);
872
872
  }
873
- function V() {
873
+ function H() {
874
874
  f("update:setting", T(l)), f("submit");
875
875
  }
876
876
  const { t: z } = Y();
877
877
  return (E, m) => {
878
878
  const v = O("FmChip"), I = O("FmForm"), S = O("FmButton"), h = O("FmSideSheet");
879
879
  return C(), Z(h, {
880
- modelValue: y(p),
880
+ modelValue: b(p),
881
881
  "onUpdate:modelValue": m[4] || (m[4] = (s) => ie(p) ? p.value = s : null),
882
- header: y(z)("inventory.integration.apply.title"),
882
+ header: b(z)("inventory.integration.apply.title"),
883
883
  "dismiss-away": "",
884
884
  "close-button": "",
885
885
  "max-width": 500
886
886
  }, {
887
- default: N(() => [
887
+ default: J(() => [
888
888
  c("div", dt, [
889
889
  c("div", null, [
890
890
  M(v, { label: "Menu v3" })
@@ -892,9 +892,9 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
892
892
  M(I, {
893
893
  ref_key: "formRef",
894
894
  ref: r,
895
- onValidationSuccess: m[2] || (m[2] = (s) => V())
895
+ onValidationSuccess: m[2] || (m[2] = (s) => H())
896
896
  }, {
897
- default: N(() => [
897
+ default: J(() => [
898
898
  M(W, {
899
899
  bindings: l.bindings,
900
900
  categories: E.categories,
@@ -914,11 +914,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
914
914
  }, 512)
915
915
  ])
916
916
  ]),
917
- "side-sheet-footer": N(() => [
917
+ "side-sheet-footer": J(() => [
918
918
  M(S, {
919
919
  loading: E.loading,
920
920
  type: "submit",
921
- label: y(z)("common.confirm"),
921
+ label: b(z)("common.confirm"),
922
922
  onClick: m[3] || (m[3] = (s) => k())
923
923
  }, null, 8, ["loading", "label"])
924
924
  ]),
@@ -948,7 +948,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
948
948
  const r = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) === null)), p = R(() => l.bindings.filter((s) => {
949
949
  const t = o.menus.find((i) => i._id === s.productId);
950
950
  return t ? (t == null ? void 0 : t.category) === null : !1;
951
- })), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), V = R(() => l.bindings.filter((s) => {
951
+ })), k = R(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), H = R(() => l.bindings.filter((s) => {
952
952
  const t = o.menus.find((i) => i._id === s.productId);
953
953
  return t ? (t == null ? void 0 : t.category) !== null : !1;
954
954
  }));
@@ -956,7 +956,7 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
956
956
  l.bindings = [...p.value, ...s];
957
957
  }
958
958
  function E(s) {
959
- l.bindings = [...V.value, ...s];
959
+ l.bindings = [...H.value, ...s];
960
960
  }
961
961
  const m = Q(), v = ue(o, "show");
962
962
  function I() {
@@ -968,16 +968,16 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
968
968
  }
969
969
  const { t: h } = Y();
970
970
  return (s, t) => {
971
- const i = O("FmChip"), a = O("FmForm"), d = O("FmButton"), b = O("FmSideSheet");
972
- return C(), Z(b, {
973
- modelValue: y(v),
971
+ const i = O("FmChip"), a = O("FmForm"), d = O("FmButton"), y = O("FmSideSheet");
972
+ return C(), Z(y, {
973
+ modelValue: b(v),
974
974
  "onUpdate:modelValue": t[4] || (t[4] = (e) => ie(v) ? v.value = e : null),
975
- header: y(h)("inventory.integration.apply.title"),
975
+ header: b(h)("inventory.integration.apply.title"),
976
976
  "dismiss-away": "",
977
977
  "close-button": "",
978
978
  "max-width": 500
979
979
  }, {
980
- default: N(() => [
980
+ default: J(() => [
981
981
  c("div", ct, [
982
982
  c("div", null, [
983
983
  M(i, { label: "Menu v4" })
@@ -987,11 +987,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
987
987
  ref: m,
988
988
  onValidationSuccess: t[2] || (t[2] = (e) => S())
989
989
  }, {
990
- default: N(() => [
990
+ default: J(() => [
991
991
  M(W, {
992
992
  categories: s.categories,
993
993
  variants: s.variants,
994
- bindings: V.value,
994
+ bindings: H.value,
995
995
  menus: k.value,
996
996
  "onUpdate:bindings": t[0] || (t[0] = (e) => z(e))
997
997
  }, null, 8, ["categories", "variants", "bindings", "menus"]),
@@ -1008,11 +1008,11 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1008
1008
  }, 512)
1009
1009
  ])
1010
1010
  ]),
1011
- "side-sheet-footer": N(() => [
1011
+ "side-sheet-footer": J(() => [
1012
1012
  M(d, {
1013
1013
  loading: s.loading,
1014
1014
  type: "submit",
1015
- label: y(h)("common.confirm"),
1015
+ label: b(h)("common.confirm"),
1016
1016
  onClick: t[3] || (t[3] = (e) => I())
1017
1017
  }, null, 8, ["loading", "label"])
1018
1018
  ]),
@@ -1020,10 +1020,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1020
1020
  }, 8, ["modelValue", "header"]);
1021
1021
  };
1022
1022
  }
1023
- }), ft = { key: 0 }, mt = { class: "flex justify-center" }, gt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, vt = { class: "text-lg font-bold" }, It = { class: "text-fm-color-neutral-gray-300" }, yt = { key: 0 }, bt = /* @__PURE__ */ F({
1023
+ }), ft = { key: 0 }, mt = { class: "flex justify-center" }, gt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, vt = { class: "text-lg font-bold" }, It = { class: "text-fm-color-neutral-gray-300" }, bt = { key: 0 }, yt = /* @__PURE__ */ F({
1024
1024
  __name: "FoodMarketHub",
1025
1025
  setup(g) {
1026
- const A = ke(), o = ae(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []), V = R(() => r.state.variants ?? []), z = R(() => r.state.categories ?? []), E = se(), m = R(() => {
1026
+ const A = ke(), o = ae(), f = _(), l = Q(!1), r = ce(), p = R(() => r.state.menu ?? []), k = R(() => r.state.group ?? []), H = R(() => r.state.variants ?? []), z = R(() => r.state.categories ?? []), E = se(), m = R(() => {
1027
1027
  var a;
1028
1028
  return (a = A.currentBusiness.value) == null ? void 0 : a.menuVersion;
1029
1029
  });
@@ -1057,8 +1057,8 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1057
1057
  }
1058
1058
  const { t: i } = Y();
1059
1059
  return (a, d) => {
1060
- const b = O("FmCardSection"), e = O("FmCard");
1061
- return y(r).isEnabled && !y(r).isBusinessLocation ? (C(), H("div", ft, [
1060
+ const y = O("FmCardSection"), e = O("FmCard");
1061
+ return b(r).isEnabled && !b(r).isBusinessLocation ? (C(), V("div", ft, [
1062
1062
  M(e, {
1063
1063
  class: q({
1064
1064
  "w-full": s.value,
@@ -1070,18 +1070,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1070
1070
  }),
1071
1071
  onClick: d[0] || (d[0] = (n) => I())
1072
1072
  }, {
1073
- default: N(() => [
1074
- M(b, null, {
1075
- default: N(() => [
1073
+ default: J(() => [
1074
+ M(y, null, {
1075
+ default: J(() => [
1076
1076
  c("div", mt, [
1077
1077
  c("img", {
1078
- src: y(Me),
1078
+ src: b(Me),
1079
1079
  alt: "Food Market Hub"
1080
1080
  }, null, 8, gt)
1081
1081
  ]),
1082
1082
  c("div", pt, [
1083
- c("div", vt, L(y(i)("inventory.integration.fmh.title")), 1),
1084
- c("div", It, L(y(i)("inventory.integration.fmh.description")), 1)
1083
+ c("div", vt, L(b(i)("inventory.integration.fmh.title")), 1),
1084
+ c("div", It, L(b(i)("inventory.integration.fmh.description")), 1)
1085
1085
  ])
1086
1086
  ]),
1087
1087
  _: 1
@@ -1089,15 +1089,15 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1089
1089
  ]),
1090
1090
  _: 1
1091
1091
  }, 8, ["class"]),
1092
- y(r).state.setting ? (C(), H("div", yt, [
1092
+ b(r).state.setting ? (C(), V("div", bt, [
1093
1093
  (C(), Z(oe, { to: "body" }, [
1094
1094
  m.value === "v3" ? (C(), Z(ut, {
1095
1095
  key: 0,
1096
1096
  menus: p.value,
1097
- variants: V.value,
1097
+ variants: H.value,
1098
1098
  categories: z.value,
1099
- setting: y(r).state.setting,
1100
- "onUpdate:setting": d[1] || (d[1] = (n) => y(r).state.setting = n),
1099
+ setting: b(r).state.setting,
1100
+ "onUpdate:setting": d[1] || (d[1] = (n) => b(r).state.setting = n),
1101
1101
  show: v.value,
1102
1102
  "onUpdate:show": d[2] || (d[2] = (n) => v.value = n),
1103
1103
  groups: k.value,
@@ -1106,10 +1106,10 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1106
1106
  }, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (C(), Z(At, {
1107
1107
  key: 1,
1108
1108
  menus: p.value,
1109
- variants: V.value,
1109
+ variants: H.value,
1110
1110
  categories: z.value,
1111
- setting: y(r).state.setting,
1112
- "onUpdate:setting": d[4] || (d[4] = (n) => y(r).state.setting = n),
1111
+ setting: b(r).state.setting,
1112
+ "onUpdate:setting": d[4] || (d[4] = (n) => b(r).state.setting = n),
1113
1113
  show: v.value,
1114
1114
  "onUpdate:show": d[5] || (d[5] = (n) => v.value = n),
1115
1115
  groups: k.value,
@@ -1129,9 +1129,9 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1129
1129
  o.value = !0;
1130
1130
  }
1131
1131
  const { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), p = R(() => r.value), { t: k } = Y();
1132
- return (V, z) => {
1132
+ return (H, z) => {
1133
1133
  const E = O("FmCardSection"), m = O("FmCard");
1134
- return y(A).isEnabled && y(A).isBusinessLocation ? (C(), H("div", ht, [
1134
+ return b(A).isEnabled && b(A).isBusinessLocation ? (C(), V("div", ht, [
1135
1135
  M(m, {
1136
1136
  class: q({
1137
1137
  "w-full": p.value,
@@ -1143,18 +1143,18 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1143
1143
  }),
1144
1144
  onClick: z[0] || (z[0] = (v) => f())
1145
1145
  }, {
1146
- default: N(() => [
1146
+ default: J(() => [
1147
1147
  M(E, null, {
1148
- default: N(() => [
1148
+ default: J(() => [
1149
1149
  c("div", Bt, [
1150
1150
  c("img", {
1151
- src: y(Et),
1151
+ src: b(Et),
1152
1152
  alt: "NetSuite"
1153
1153
  }, null, 8, Ct)
1154
1154
  ]),
1155
1155
  c("div", St, [
1156
- c("div", kt, L(y(k)("inventory.integration.netsuite.title")), 1),
1157
- c("div", xt, L(y(k)("inventory.integration.netsuite.description")), 1)
1156
+ c("div", kt, L(b(k)("inventory.integration.netsuite.title")), 1),
1157
+ c("div", xt, L(b(k)("inventory.integration.netsuite.description")), 1)
1158
1158
  ])
1159
1159
  ]),
1160
1160
  _: 1
@@ -1162,28 +1162,28 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1162
1162
  ]),
1163
1163
  _: 1
1164
1164
  }, 8, ["class"]),
1165
- y(A).state.setting ? (C(), H("div", wt, [
1165
+ b(A).state.setting ? (C(), V("div", wt, [
1166
1166
  (C(), Z(oe, { to: "body" }))
1167
1167
  ])) : K("", !0)
1168
1168
  ])) : K("", !0);
1169
1169
  };
1170
1170
  }
1171
- }), Rt = { key: 0 }, Ht = {
1171
+ }), Rt = { key: 0 }, Vt = {
1172
1172
  key: 1,
1173
1173
  class: "flex flex-col items-center my-10 gap-5"
1174
- }, Vt = ["src"], zt = {
1174
+ }, Ht = ["src"], zt = {
1175
1175
  class: "text-xs text-neutral-400 text-center",
1176
1176
  style: { "max-width": "25rem" }
1177
1177
  }, Ot = { key: 2 }, Qt = /* @__PURE__ */ F({
1178
1178
  __name: "IntegrationView",
1179
1179
  setup(g) {
1180
1180
  const A = _(), o = Q(!1), f = we(), { breakpoints: l } = $(), r = R(() => l.value.xs || l.value.sm), { t: p } = Y();
1181
- return (k, V) => {
1181
+ return (k, H) => {
1182
1182
  const z = O("FmCircularProgress");
1183
1183
  return C(), Z(Be, {
1184
- title: y(p)("inventory.integration.title")
1184
+ title: b(p)("inventory.integration.title")
1185
1185
  }, {
1186
- default: N(() => [
1186
+ default: J(() => [
1187
1187
  c("div", {
1188
1188
  class: q([
1189
1189
  "flex flex-col gap-8 max-h-full",
@@ -1197,20 +1197,20 @@ const $e = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1197
1197
  "change-location": "",
1198
1198
  showBusiness: ""
1199
1199
  }),
1200
- !y(A)._currentLocation || o.value ? (C(), H("div", Rt, [
1200
+ !b(A)._currentLocation || o.value ? (C(), V("div", Rt, [
1201
1201
  M(z, { size: "lg" })
1202
- ])) : y(f).enabledIntegrations == 0 ? (C(), H("div", Ht, [
1202
+ ])) : b(f).enabledIntegrations == 0 ? (C(), V("div", Vt, [
1203
1203
  c("div", null, [
1204
1204
  c("img", {
1205
- src: y(Ee),
1205
+ src: b(Ee),
1206
1206
  alt: "List is empty"
1207
- }, null, 8, Vt)
1207
+ }, null, 8, Ht)
1208
1208
  ]),
1209
- V[0] || (V[0] = c("div", { class: "font-bold text-lg" }, "Integration", -1)),
1210
- c("div", zt, L(y(p)("inventory.integration.description")), 1)
1211
- ])) : (C(), H("div", Ot, [
1209
+ H[0] || (H[0] = c("div", { class: "font-bold text-lg" }, "Integration", -1)),
1210
+ c("div", zt, L(b(p)("inventory.integration.description")), 1)
1211
+ ])) : (C(), V("div", Ot, [
1212
1212
  M(Mt),
1213
- M(bt)
1213
+ M(yt)
1214
1214
  ]))
1215
1215
  ], 2)
1216
1216
  ]),