@feedmepos/mf-inventory-portal 1.0.8 → 1.0.9-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/{App-DeBNx7kq.js → App-DfxhucPn.js} +50 -49
  2. package/dist/{ApprovalView-CYgDG4X-.js → ApprovalView-BUYgTb8S.js} +24 -24
  3. package/dist/{BindingsDialog-Bojdsd9h.js → BindingsDialog-Cbs9aVch.js} +2 -2
  4. package/dist/{BindingsPicker-TkiARkrC.js → BindingsPicker-BH9bil6g.js} +3 -3
  5. package/dist/{BindingsTable-BWYaPoFt.js → BindingsTable-DBsS_9yb.js} +1 -1
  6. package/dist/ClosingDraftView-CcQssDLY.js +1415 -0
  7. package/dist/{ClosingTemplateView-CUjkAFjw.js → ClosingTemplateView-BHPqi-bL.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-BOEKl7zP.js → DeliveryOrderPrintPreview-DlTLtZ1f.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bve5cng3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-1-G4gmCj.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js} +51 -51
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bl526zYj.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js} +1 -1
  12. package/dist/{IngredientGroupView-stli1Xiv.js → IngredientGroupView-DE15kdqH.js} +11 -11
  13. package/dist/{IngredientsView-jmDSRSkr.js → IngredientsView-BCEznLxB.js} +15 -14
  14. package/dist/{IntegrationView-BQZtDqlR.js → IntegrationView-COSJuqnB.js} +146 -145
  15. package/dist/{InventoryBindingForm-hHgB20dI.js → InventoryBindingForm-B3C8gktf.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BK36mlQE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js} +20 -20
  17. package/dist/{InventoryBindingSummary-JsAhd0Jm.js → InventoryBindingSummary-BF1OtGum.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4A6bDPB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6bND0mn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js} +10 -10
  20. package/dist/{PublishView-BK7WwXeV.js → PublishView-Cp5tpVb0.js} +12 -12
  21. package/dist/{PurchaseOrderPrintPreview-CMnaZkzc.js → PurchaseOrderPrintPreview-DWOcxCH8.js} +4 -4
  22. package/dist/{ReceiveRequestView-Bb6RQyJ8.js → ReceiveRequestView-CRuhm8r1.js} +53 -52
  23. package/dist/{RecipeView-CZnElbJ8.js → RecipeView-BTS1LBKZ.js} +29 -29
  24. package/dist/{StockView-CDAHrTyi.js → StockView-CuK8s5rt.js} +73 -72
  25. package/dist/{SupplierView-WTgrwbJ_.js → SupplierView-Bwpe9RoM.js} +12 -11
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js +1897 -0
  27. package/dist/{TransferTemplateView-26w6orAY.js → TransferTemplateView-BlluEiV-.js} +291 -290
  28. package/dist/{UnitView-DAl0OS01.js → UnitView-BWGQHOWP.js} +23 -23
  29. package/dist/{WarehouseView-Db2wXza_.js → WarehouseView-dOCu22dg.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +44 -44
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/api/stock.d.ts +1 -0
  36. package/dist/{app-Ch3IXeOL.js → app-BkIAyhP-.js} +16504 -16961
  37. package/dist/app.d.ts +7 -7
  38. package/dist/app.js +1 -1
  39. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
  40. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  41. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  42. package/dist/composable/usePromise.d.ts +41 -0
  43. package/dist/{decimal-BFWsfQmw.js → decimal-BiC7uGww.js} +1 -1
  44. package/dist/feature-CCDDWpq8.js +17319 -0
  45. package/dist/{format-unit-display-CyBzA_Ye.js → format-unit-display-CLa0op_h.js} +60 -60
  46. package/dist/{index-CKB7R0y2.js → index-BbFvsU1Z.js} +7 -6
  47. package/dist/{index-CSjhH3PC.js → index-UgbyiGok.js} +1 -1
  48. package/dist/{stock-BjY9UvKO.js → stock-SxO4bxTm.js} +29 -25
  49. package/dist/stores/feature.d.ts +5 -20
  50. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  51. package/dist/stores/integration/netsuite.d.ts +7 -7
  52. package/dist/stores/inventory.d.ts +44 -44
  53. package/dist/stores/location.d.ts +137 -137
  54. package/dist/{supplier-8x-ZFcOk.js → supplier-BVdCk7nI.js} +4 -4
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-CxZAaSGc.js → use-ingredient-select-dialog-CDeGXhur.js} +1 -1
  57. package/dist/{use-inventory-binding-dialog-Kmg24YiM.js → use-inventory-binding-dialog-CeRKqMy7.js} +1 -1
  58. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  59. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  60. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  61. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  62. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +780 -74
  63. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +424 -409
  64. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  65. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  66. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  67. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  68. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  69. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  70. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  71. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  72. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  74. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  75. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  76. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  77. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  78. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  79. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  80. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  81. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  82. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  83. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  84. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  85. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  86. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  87. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  88. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  89. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  90. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  91. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  92. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  93. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  94. package/dist/{vue-i18n-CXd9SF_G.js → vue-i18n-3Mh8tKq8.js} +341 -341
  95. package/package.json +3 -1
  96. package/dist/ClosingDraftView-C0ECZ9zi.js +0 -1394
  97. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mHNmxBuV.js +0 -1746
@@ -1,10 +1,11 @@
1
- import { defineComponent as J, mergeModels as xe, useModel as Ee, onMounted as ae, ref as j, computed as R, resolveComponent as w, openBlock as S, createElementBlock as M, createElementVNode as r, toDisplayString as H, unref as E, createVNode as B, createBlock as Q, withCtx as O, Fragment as Z, renderList as W, normalizeClass as G, normalizeStyle as Be, createSlots as le, createCommentVNode as T, withModifiers as Ce, reactive as re, watch as ue, isRef as te, Teleport as de, h as z, createTextVNode as pe } from "vue";
1
+ import { defineComponent as J, mergeModels as xe, useModel as Ee, onMounted as ae, ref as j, computed as R, resolveComponent as k, openBlock as S, createElementBlock as N, createElementVNode as r, toDisplayString as H, unref as E, createVNode as B, createBlock as Q, withCtx as O, Fragment as Z, renderList as W, normalizeClass as G, normalizeStyle as Be, createSlots as le, createCommentVNode as T, withModifiers as Ce, reactive as re, watch as ue, isRef as te, Teleport as de, h as z, createTextVNode as pe } from "vue";
2
2
  import { E as Se } from "./empty-placeholder-wf6-BWE8.js";
3
- import { aO as ke, aG as we, f as q, u as $, aP as Ve, b as ce, a0 as _, V as Fe, aQ as Le, ax as Me, a as Ne, aJ as Re, af as Oe, s as He, as as ze, y as je, W as ee, c as De, _ as Xe, C as Te } from "./app-Ch3IXeOL.js";
4
- import { useDialogChild as Qe, useDialog as me, useProxiedModel as ne, useSnackbar as fe, useBreakpoints as oe, components as se } from "@feedmepos/ui-library";
3
+ import { aN as we, aF as ke, e as q, u as $, aO as Ve, b as ce, $ as _, T as Fe, aP as Le, aw as Ne, a as Me, aI as Re, ae as Oe, r as He, ar as ze, x as je, V as ee, _ as De, B as Xe } from "./app-BkIAyhP-.js";
4
+ import { useDialogChild as Te, useDialog as me, useProxiedModel as ne, useSnackbar as fe, useBreakpoints as oe, components as se } from "@feedmepos/ui-library";
5
5
  import { useI18n as U, useCoreStore as Ae } from "@feedmepos/mf-common";
6
- import { a as Je, b as Ye, u as Ke } from "./index-CKB7R0y2.js";
7
- import { u as Ze } from "./vue-i18n-CXd9SF_G.js";
6
+ import { a as Qe, b as Je, u as Ye } from "./index-BbFvsU1Z.js";
7
+ import { u as Ke } from "./feature-CCDDWpq8.js";
8
+ import { u as Ze } from "./vue-i18n-3Mh8tKq8.js";
8
9
  const Ue = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
9
10
  var ye = { exports: {} };
10
11
  (function(C, g) {
@@ -18,31 +19,31 @@ var ye = { exports: {} };
18
19
  return s.match(u, a) !== null;
19
20
  }, s.match = function(u, a, t) {
20
21
  t = t || {};
21
- var m = 0, I = [], k = a.length, h = 0, y = 0, p = t.pre || "", A = t.post || "", c = t.caseSensitive && a || a.toLowerCase(), v;
22
+ var m = 0, I = [], w = a.length, h = 0, y = 0, p = t.pre || "", A = t.post || "", c = t.caseSensitive && a || a.toLowerCase(), v;
22
23
  u = t.caseSensitive && u || u.toLowerCase();
23
- for (var b = 0; b < k; b++)
24
+ for (var b = 0; b < w; b++)
24
25
  v = a[b], c[b] === u[m] ? (v = p + v + A, m += 1, y += 1 + y) : y = 0, h += y, I[I.length] = v;
25
26
  return m === u.length ? (h = c === u ? 1 / 0 : h, { rendered: I.join(""), score: h }) : null;
26
27
  }, s.filter = function(u, a, t) {
27
- return !a || a.length === 0 ? [] : typeof u != "string" ? a : (t = t || {}, a.reduce(function(m, I, k, h) {
28
+ return !a || a.length === 0 ? [] : typeof u != "string" ? a : (t = t || {}, a.reduce(function(m, I, w, h) {
28
29
  var y = I;
29
30
  t.extract && (y = t.extract(I));
30
31
  var p = s.match(u, y, t);
31
32
  return p != null && (m[m.length] = {
32
33
  string: p.rendered,
33
34
  score: p.score,
34
- index: k,
35
+ index: w,
35
36
  original: I
36
37
  }), m;
37
38
  }, []).sort(function(m, I) {
38
- var k = I.score - m.score;
39
- return k || m.index - I.index;
39
+ var w = I.score - m.score;
40
+ return w || m.index - I.index;
40
41
  }));
41
42
  };
42
43
  })();
43
44
  })(ye);
44
45
  var Ge = ye.exports;
45
- const be = /* @__PURE__ */ ke(Ge);
46
+ const be = /* @__PURE__ */ we(Ge);
46
47
  function ge(C, g) {
47
48
  return be.filter(C, g).length > 0;
48
49
  }
@@ -101,7 +102,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
101
102
  }),
102
103
  emits: ["update:modelValue"],
103
104
  setup(C) {
104
- const g = Ee(C, "modelValue"), s = Qe();
105
+ const g = Ee(C, "modelValue"), s = Te();
105
106
  ae(() => {
106
107
  s.emitData(g.value);
107
108
  });
@@ -127,10 +128,10 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
127
128
  F.sublabel ? [F.label, F.sublabel] : [F.label]
128
129
  ) ? !0 : L.length === 0 ? m(F) : K(F) ? I(L, F.children) : !1;
129
130
  }
130
- function k(e, n, x = 0, L = !1) {
131
+ function w(e, n, x = 0, L = !1) {
131
132
  if (K(e) && e.children.length) {
132
133
  const { children: F, ...D } = e, Y = F.flatMap(
133
- (N, P) => k(N, [...n, P], x + 1, L || e.disabled)
134
+ (M, P) => w(M, [...n, P], x + 1, L || e.disabled)
134
135
  );
135
136
  return [
136
137
  {
@@ -154,7 +155,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
154
155
  ];
155
156
  }
156
157
  const h = R(() => g.value.flatMap(
157
- (e, n) => k(e, [n]).filter((x) => I(x.keys, g.value))
158
+ (e, n) => w(e, [n]).filter((x) => I(x.keys, g.value))
158
159
  ));
159
160
  function y(e) {
160
161
  if (K(e)) {
@@ -198,7 +199,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
198
199
  const x = t(e) ? e.children : e.children.filter(m);
199
200
  return {
200
201
  ...e,
201
- children: e.children.map((L) => x.find((D) => we(D.value, L.value)) ? v(L, n) : L)
202
+ children: e.children.map((L) => x.find((D) => ke(D.value, L.value)) ? v(L, n) : L)
202
203
  };
203
204
  }
204
205
  return {
@@ -240,14 +241,14 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
240
241
  g.value = b(e, n, x), s.emitData(g.value);
241
242
  }
242
243
  return (e, n) => {
243
- const x = w("FmSearch"), L = w("FmCheckbox"), F = w("FmButton"), D = w("FmListItem"), Y = w("FmList");
244
- return S(), M("div", Pe, [
244
+ const x = k("FmSearch"), L = k("FmCheckbox"), F = k("FmButton"), D = k("FmListItem"), Y = k("FmList");
245
+ return S(), N("div", Pe, [
245
246
  r("div", We, [
246
247
  r("div", _e, H(E(a)("inventory.formField.itemsSelected", { count: f.value })), 1),
247
248
  r("div", $e, [
248
249
  B(x, {
249
250
  modelValue: u.value,
250
- "onUpdate:modelValue": n[0] || (n[0] = (N) => u.value = N),
251
+ "onUpdate:modelValue": n[0] || (n[0] = (M) => u.value = M),
251
252
  placeholder: E(a)("inventory.formField.filterItems")
252
253
  }, null, 8, ["modelValue", "placeholder"])
253
254
  ])
@@ -257,65 +258,65 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
257
258
  class: "flex-1 overflow-y-auto"
258
259
  }, {
259
260
  default: O(() => [
260
- (S(!0), M(Z, null, W(h.value, (N) => (S(), M("div", {
261
- key: N.keys.join(),
261
+ (S(!0), N(Z, null, W(h.value, (M) => (S(), N("div", {
262
+ key: M.keys.join(),
262
263
  class: G([
263
264
  "transition-all overflow-y-clip",
264
- o(N.keys) ? "max-h-0 opacity-0" : "max-h-[50px] opacity-100"
265
+ o(M.keys) ? "max-h-0 opacity-0" : "max-h-[50px] opacity-100"
265
266
  ]),
266
- "data-cy": `nested-${N.keys.join("-")}-${N.label}`
267
+ "data-cy": `nested-${M.keys.join("-")}-${M.label}`
267
268
  }, [
268
269
  B(D, {
269
- clickable: N.selectable !== !1,
270
- onClick: () => N.selectable === !1 || N.disabled || V(N.keys, g.value, !p(N.keys, g.value)),
270
+ clickable: M.selectable !== !1,
271
+ onClick: () => M.selectable === !1 || M.disabled || V(M.keys, g.value, !p(M.keys, g.value)),
271
272
  style: Be({
272
- paddingLeft: `${16 + N.indent * 16}px`,
273
+ paddingLeft: `${16 + M.indent * 16}px`,
273
274
  paddingTop: "4px",
274
275
  paddingBottom: "4px"
275
276
  }),
276
- disabled: N.selectable !== !1 && N.disabled
277
+ disabled: M.selectable !== !1 && M.disabled
277
278
  }, le({
278
279
  default: O(() => [
279
280
  r("div", tt, [
280
281
  r("div", nt, [
281
- (S(!0), M(Z, null, W(E(qe)(u.value, N.label).segments, (P, X) => (S(), M("span", {
282
+ (S(!0), N(Z, null, W(E(qe)(u.value, M.label).segments, (P, X) => (S(), N("span", {
282
283
  key: X,
283
284
  class: G({
284
285
  "font-bold": P.isMatch
285
286
  })
286
287
  }, H(P.segment), 3))), 128))
287
288
  ]),
288
- N.sublabel ? (S(), M("div", {
289
+ M.sublabel ? (S(), N("div", {
289
290
  key: 0,
290
291
  class: G([
291
292
  "fm-typo-en-body-sm-400",
292
- N.disabled ? "" : "text-fm-color-typo-secondary"
293
+ M.disabled ? "" : "text-fm-color-typo-secondary"
293
294
  ])
294
- }, H(N.sublabel), 3)) : T("", !0)
295
+ }, H(M.sublabel), 3)) : T("", !0)
295
296
  ])
296
297
  ]),
297
298
  _: 2
298
299
  }, [
299
- N.selectable !== !1 ? {
300
+ M.selectable !== !1 ? {
300
301
  name: "prepend",
301
302
  fn: O(() => [
302
303
  B(L, {
303
- disabled: N.disabled,
304
- "model-value": p(N.keys, g.value),
305
- value: N.keys,
306
- indeterminate: c(N.keys, g.value)
304
+ disabled: M.disabled,
305
+ "model-value": p(M.keys, g.value),
306
+ value: M.keys,
307
+ indeterminate: c(M.keys, g.value)
307
308
  }, null, 8, ["disabled", "model-value", "value", "indeterminate"])
308
309
  ]),
309
310
  key: "0"
310
311
  } : void 0,
311
- N.collapsible ? {
312
+ M.collapsible ? {
312
313
  name: "append",
313
314
  fn: O(() => [
314
315
  B(F, {
315
- "prepend-icon": l(N.keys) ? "expand_less" : "expand_more",
316
+ "prepend-icon": l(M.keys) ? "expand_less" : "expand_more",
316
317
  size: "md",
317
318
  variant: "tertiary",
318
- onClick: Ce(() => i(N.keys), ["stop"])
319
+ onClick: Ce(() => i(M.keys), ["stop"])
319
320
  }, null, 8, ["prepend-icon", "onClick"])
320
321
  ]),
321
322
  key: "1"
@@ -324,7 +325,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
324
325
  ], 10, et))), 128))
325
326
  ]),
326
327
  _: 1
327
- })) : (S(), M("div", ot, H(E(a)("inventory.formField.noItemsFound")), 1))
328
+ })) : (S(), N("div", ot, H(E(a)("inventory.formField.noItemsFound")), 1))
328
329
  ]);
329
330
  };
330
331
  }
@@ -379,7 +380,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
379
380
  s.modifiers.filter((A) => A.selection !== p)
380
381
  );
381
382
  }
382
- function k({ selection: p }, A) {
383
+ function w({ selection: p }, A) {
383
384
  const c = s.modifiers.find((v) => v.selection === p);
384
385
  c && (c.code = A);
385
386
  }
@@ -444,8 +445,8 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
444
445
  }
445
446
  const { t: y } = U();
446
447
  return (p, A) => {
447
- const c = w("FmButton"), v = w("FmTextField");
448
- return S(), M("div", st, [
448
+ const c = k("FmButton"), v = k("FmTextField");
449
+ return S(), N("div", st, [
449
450
  r("div", it, [
450
451
  r("div", at, H(E(y)("inventory.integration.apply.addons")), 1),
451
452
  B(c, {
@@ -458,26 +459,26 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
458
459
  }, null, 8, ["label"])
459
460
  ]),
460
461
  r("div", null, [
461
- t.value.length > 0 ? (S(), M("table", lt, [
462
+ t.value.length > 0 ? (S(), N("table", lt, [
462
463
  r("tr", rt, [
463
464
  r("th", ut, H(E(y)("inventory.integration.apply.name")), 1),
464
465
  r("th", null, H(E(y)("inventory.integration.apply.code")), 1),
465
466
  A[1] || (A[1] = r("th", { class: "w-1" }, " ", -1))
466
467
  ]),
467
- (S(!0), M(Z, null, W(t.value, (b, d) => (S(), M(Z, { key: d }, [
468
+ (S(!0), N(Z, null, W(t.value, (b, d) => (S(), N(Z, { key: d }, [
468
469
  A[2] || (A[2] = r("tr", { class: "block h-8" }, null, -1)),
469
470
  r("tr", null, [
470
471
  r("td", null, [
471
472
  r("div", dt, [
472
473
  r("div", ct, H(b.name), 1),
473
- b.groupName ? (S(), M("div", mt, H(b.groupName), 1)) : T("", !0)
474
+ b.groupName ? (S(), N("div", mt, H(b.groupName), 1)) : T("", !0)
474
475
  ])
475
476
  ]),
476
477
  r("td", null, [
477
478
  B(v, {
478
479
  disabled: C.loading,
479
480
  "model-value": b.code,
480
- "onUpdate:modelValue": [(l) => b.code = l, (l) => k(b, l)],
481
+ "onUpdate:modelValue": [(l) => b.code = l, (l) => w(b, l)],
481
482
  rules: [
482
483
  function(i) {
483
484
  return !!i || "Required";
@@ -511,13 +512,13 @@ function pt(C, g = []) {
511
512
  function gt(C, g, s) {
512
513
  const u = s.reduce((t, m) => {
513
514
  var y, p, A;
514
- const I = m.category || "", k = pt(g, (y = m.variant) == null ? void 0 : y.variantGroupIds), h = {
515
+ const I = m.category || "", w = pt(g, (y = m.variant) == null ? void 0 : y.variantGroupIds), h = {
515
516
  ...m,
516
517
  codeName: [m.code, m.name].filter((c) => !!c).join(" "),
517
518
  variant: {
518
519
  variantGroupIds: ((p = m.variant) == null ? void 0 : p.variantGroupIds) || [],
519
520
  variantCombinations: (((A = m.variant) == null ? void 0 : A.variantCombinations) || []).map((c) => {
520
- const v = c.code, b = c.name || k[c.combinationKey || ""];
521
+ const v = c.code, b = c.name || w[c.combinationKey || ""];
521
522
  return {
522
523
  ...c,
523
524
  codeName: [v, b].filter((d) => !!d).join(" ").trim() || "-"
@@ -541,7 +542,7 @@ function he(C, g) {
541
542
  if (C.length == 1)
542
543
  return C[0];
543
544
  const s = C[0], u = C.slice(1, C.length), a = he(u, g);
544
- return s.reduce((m, I) => [...m, ...a.map((k) => g(I, k))], new Array());
545
+ return s.reduce((m, I) => [...m, ...a.map((w) => g(I, w))], new Array());
545
546
  }
546
547
  function vt(C) {
547
548
  if (C.length === 0) return [];
@@ -571,7 +572,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
571
572
  }, xt = { class: "text-left" }, Et = { class: "min-w-64" }, Bt = { class: "flex flex-col" }, Ct = { class: "fm-typo-en-body-md-400" }, St = {
572
573
  key: 0,
573
574
  class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
574
- }, kt = { class: "w-1" }, ie = /* @__PURE__ */ J({
575
+ }, wt = { class: "w-1" }, ie = /* @__PURE__ */ J({
575
576
  __name: "ApplyProduct",
576
577
  props: {
577
578
  isAddon: {
@@ -599,7 +600,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
599
600
  setup(C, { emit: g }) {
600
601
  const s = C, u = g, a = me(), t = R(() => s.isAddon ? "Addons" : "Products"), m = R(() => s.isAddon ? [] : s.categories), I = R(
601
602
  () => gt(m.value, s.variants, s.menus)
602
- ), k = R(() => {
603
+ ), w = R(() => {
603
604
  if (s.isAddon)
604
605
  return s.bindings.map((i) => {
605
606
  const o = s.menus.find((V) => V._id === i.productId), f = (o == null ? void 0 : o.name) ?? "-";
@@ -710,11 +711,11 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
710
711
  productId: x,
711
712
  combinationKey: L,
712
713
  code: ((F = i.find(
713
- ({ productId: Y, combinationKey: N }) => x === Y && L === N
714
+ ({ productId: Y, combinationKey: M }) => x === Y && L === M
714
715
  )) == null ? void 0 : F.code) ?? ""
715
716
  } : {
716
717
  productId: x,
717
- code: ((D = i.find(({ productId: Y, combinationKey: N }) => x === Y && !N)) == null ? void 0 : D.code) ?? ""
718
+ code: ((D = i.find(({ productId: Y, combinationKey: M }) => x === Y && !M)) == null ? void 0 : D.code) ?? ""
718
719
  };
719
720
  });
720
721
  if (!f.active)
@@ -761,8 +762,8 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
761
762
  }
762
763
  const { t: d } = U();
763
764
  return (l, i) => {
764
- const o = w("FmButton"), f = w("FmTextField");
765
- return S(), M("div", yt, [
765
+ const o = k("FmButton"), f = k("FmTextField");
766
+ return S(), N("div", yt, [
766
767
  r("div", bt, [
767
768
  r("div", It, H(C.isAddon ? E(d)("inventory.integration.apply.addons") : E(d)("inventory.integration.apply.products")), 1),
768
769
  B(o, {
@@ -775,19 +776,19 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
775
776
  }, null, 8, ["label"])
776
777
  ]),
777
778
  r("div", null, [
778
- k.value.length > 0 ? (S(), M("table", ht, [
779
+ w.value.length > 0 ? (S(), N("table", ht, [
779
780
  r("tr", xt, [
780
781
  r("th", Et, H(E(d)("inventory.integration.apply.name")), 1),
781
782
  r("th", null, H(E(d)("inventory.integration.apply.code")), 1),
782
783
  i[1] || (i[1] = r("th", { class: "w-1" }, " ", -1))
783
784
  ]),
784
- (S(!0), M(Z, null, W(k.value, (V, e) => (S(), M(Z, { key: e }, [
785
+ (S(!0), N(Z, null, W(w.value, (V, e) => (S(), N(Z, { key: e }, [
785
786
  i[2] || (i[2] = r("tr", { class: "block h-8" }, null, -1)),
786
787
  r("tr", null, [
787
788
  r("td", null, [
788
789
  r("div", Bt, [
789
790
  r("div", Ct, H(V.itemCode) + " " + H(V.name), 1),
790
- V.variantName ? (S(), M("div", St, H(V.variantName), 1)) : T("", !0)
791
+ V.variantName ? (S(), N("div", St, H(V.variantName), 1)) : T("", !0)
791
792
  ])
792
793
  ]),
793
794
  r("td", null, [
@@ -801,7 +802,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
801
802
  ]
802
803
  }, null, 8, ["model-value", "onUpdate:modelValue", "rules"])
803
804
  ]),
804
- r("td", kt, [
805
+ r("td", wt, [
805
806
  B(o, {
806
807
  type: "button",
807
808
  variant: "tertiary",
@@ -818,7 +819,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
818
819
  ]);
819
820
  };
820
821
  }
821
- }), wt = { class: "flex flex-col gap-8 w-full" }, Vt = /* @__PURE__ */ J({
822
+ }), kt = { class: "flex flex-col gap-8 w-full" }, Vt = /* @__PURE__ */ J({
822
823
  __name: "ApplyProductDialog",
823
824
  props: {
824
825
  categories: { default: () => [] },
@@ -842,12 +843,12 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
842
843
  var y, p;
843
844
  (p = (y = t.value) == null ? void 0 : y.validateInputs) == null || p.call(y);
844
845
  }
845
- function k() {
846
+ function w() {
846
847
  u("update:setting", q(a)), u("submit");
847
848
  }
848
849
  const { t: h } = U();
849
850
  return (y, p) => {
850
- const A = w("FmChip"), c = w("FmForm"), v = w("FmButton"), b = w("FmSideSheet");
851
+ const A = k("FmChip"), c = k("FmForm"), v = k("FmButton"), b = k("FmSideSheet");
851
852
  return S(), Q(b, {
852
853
  modelValue: E(m),
853
854
  "onUpdate:modelValue": p[4] || (p[4] = (d) => te(m) ? m.value = d : null),
@@ -857,14 +858,14 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
857
858
  "max-width": 500
858
859
  }, {
859
860
  default: O(() => [
860
- r("div", wt, [
861
+ r("div", kt, [
861
862
  r("div", null, [
862
863
  B(A, { label: "Menu v3" })
863
864
  ]),
864
865
  B(c, {
865
866
  ref_key: "formRef",
866
867
  ref: t,
867
- onValidationSuccess: p[2] || (p[2] = (d) => k())
868
+ onValidationSuccess: p[2] || (p[2] = (d) => w())
868
869
  }, {
869
870
  default: O(() => [
870
871
  B(ie, {
@@ -920,7 +921,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
920
921
  const t = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) === null)), m = R(() => a.bindings.filter((d) => {
921
922
  const l = s.menus.find((i) => i._id === d.productId);
922
923
  return l ? (l == null ? void 0 : l.category) === null : !1;
923
- })), I = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) !== null)), k = R(() => a.bindings.filter((d) => {
924
+ })), I = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) !== null)), w = R(() => a.bindings.filter((d) => {
924
925
  const l = s.menus.find((i) => i._id === d.productId);
925
926
  return l ? (l == null ? void 0 : l.category) !== null : !1;
926
927
  }));
@@ -928,7 +929,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
928
929
  a.bindings = [...m.value, ...d];
929
930
  }
930
931
  function y(d) {
931
- a.bindings = [...k.value, ...d];
932
+ a.bindings = [...w.value, ...d];
932
933
  }
933
934
  const p = j(), A = ne(s, "show");
934
935
  function c() {
@@ -940,7 +941,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
940
941
  }
941
942
  const { t: b } = U();
942
943
  return (d, l) => {
943
- const i = w("FmChip"), o = w("FmForm"), f = w("FmButton"), V = w("FmSideSheet");
944
+ const i = k("FmChip"), o = k("FmForm"), f = k("FmButton"), V = k("FmSideSheet");
944
945
  return S(), Q(V, {
945
946
  modelValue: E(A),
946
947
  "onUpdate:modelValue": l[4] || (l[4] = (e) => te(A) ? A.value = e : null),
@@ -963,7 +964,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
963
964
  B(ie, {
964
965
  categories: d.categories,
965
966
  variants: d.variants,
966
- bindings: k.value,
967
+ bindings: w.value,
967
968
  menus: I.value,
968
969
  "onUpdate:bindings": l[0] || (l[0] = (e) => h(e))
969
970
  }, null, 8, ["categories", "variants", "bindings", "menus"]),
@@ -992,10 +993,10 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
992
993
  }, 8, ["modelValue", "header"]);
993
994
  };
994
995
  }
995
- }), Mt = { key: 0 }, Nt = { class: "flex justify-center" }, Rt = ["src"], Ot = { class: "flex flex-col items-center gap-2" }, Ht = { class: "text-lg font-bold" }, zt = { class: "text-fm-color-neutral-gray-300" }, jt = { key: 0 }, Dt = /* @__PURE__ */ J({
996
+ }), Nt = { key: 0 }, Mt = { class: "flex justify-center" }, Rt = ["src"], Ot = { class: "flex flex-col items-center gap-2" }, Ht = { class: "text-lg font-bold" }, zt = { class: "text-fm-color-neutral-gray-300" }, jt = { key: 0 }, Dt = /* @__PURE__ */ J({
996
997
  __name: "FoodMarketHub",
997
998
  setup(C) {
998
- const g = Ae(), s = fe(), u = $(), a = j(!1), t = Je(), m = R(() => t.state.menu ?? []), I = R(() => t.state.group ?? []), k = R(() => t.state.variants ?? []), h = R(() => t.state.categories ?? []), y = Ve(), p = R(() => {
999
+ const g = Ae(), s = fe(), u = $(), a = j(!1), t = Qe(), m = R(() => t.state.menu ?? []), I = R(() => t.state.group ?? []), w = R(() => t.state.variants ?? []), h = R(() => t.state.categories ?? []), y = Ve(), p = R(() => {
999
1000
  var o;
1000
1001
  return (o = g.currentBusiness.value) == null ? void 0 : o.menuVersion;
1001
1002
  });
@@ -1029,8 +1030,8 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1029
1030
  }
1030
1031
  const { t: i } = U();
1031
1032
  return (o, f) => {
1032
- const V = w("FmCardSection"), e = w("FmCard");
1033
- return E(t).isEnabled && !E(t).isBusinessLocation ? (S(), M("div", Mt, [
1033
+ const V = k("FmCardSection"), e = k("FmCard");
1034
+ return E(t).isEnabled && !E(t).isBusinessLocation ? (S(), N("div", Nt, [
1034
1035
  B(e, {
1035
1036
  class: G({
1036
1037
  "w-full": d.value,
@@ -1045,7 +1046,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1045
1046
  default: O(() => [
1046
1047
  B(V, null, {
1047
1048
  default: O(() => [
1048
- r("div", Nt, [
1049
+ r("div", Mt, [
1049
1050
  r("img", {
1050
1051
  src: E(Ue),
1051
1052
  alt: "Food Market Hub"
@@ -1061,12 +1062,12 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1061
1062
  ]),
1062
1063
  _: 1
1063
1064
  }, 8, ["class"]),
1064
- E(t).state.setting ? (S(), M("div", jt, [
1065
+ E(t).state.setting ? (S(), N("div", jt, [
1065
1066
  (S(), Q(de, { to: "body" }, [
1066
1067
  p.value === "v3" ? (S(), Q(Vt, {
1067
1068
  key: 0,
1068
1069
  menus: m.value,
1069
- variants: k.value,
1070
+ variants: w.value,
1070
1071
  categories: h.value,
1071
1072
  setting: E(t).state.setting,
1072
1073
  "onUpdate:setting": f[1] || (f[1] = (n) => E(t).state.setting = n),
@@ -1078,7 +1079,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1078
1079
  }, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (S(), Q(Lt, {
1079
1080
  key: 1,
1080
1081
  menus: m.value,
1081
- variants: k.value,
1082
+ variants: w.value,
1082
1083
  categories: h.value,
1083
1084
  setting: E(t).state.setting,
1084
1085
  "onUpdate:setting": f[4] || (f[4] = (n) => E(t).state.setting = n),
@@ -1115,8 +1116,8 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1115
1116
  setup(C, { emit: g }) {
1116
1117
  const s = C, u = R(() => s.modelValue), a = g;
1117
1118
  return (t, m) => {
1118
- const I = w("FmSelect"), k = w("FmButton"), h = w("FmIcon");
1119
- return S(), M("div", Tt, [
1119
+ const I = k("FmSelect"), w = k("FmButton"), h = k("FmIcon");
1120
+ return S(), N("div", Tt, [
1120
1121
  r("div", Qt, [
1121
1122
  B(I, {
1122
1123
  placeholder: "Select NetSuite Location",
@@ -1126,15 +1127,15 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1126
1127
  "model-value": u.value,
1127
1128
  "onUpdate:modelValue": m[0] || (m[0] = (y) => a("update:modelValue", y))
1128
1129
  }, null, 8, ["items", "model-value"]),
1129
- u.value.netsuiteId ? (S(), Q(k, {
1130
+ u.value.netsuiteId ? (S(), Q(w, {
1130
1131
  key: 0,
1131
1132
  variant: "secondary",
1132
1133
  label: "Clear",
1133
1134
  onClick: m[1] || (m[1] = (y) => a("update:modelValue", { netsuiteId: "", name: "", subsidiaryName: "" }))
1134
1135
  })) : T("", !0)
1135
1136
  ]),
1136
- t.isDuplicate ? (S(), M("div", Jt, " NetSuite location being used by another FeedMe location. ")) : T("", !0),
1137
- u.value.netsuiteId ? (S(), M("div", Yt, [
1137
+ t.isDuplicate ? (S(), N("div", Jt, " NetSuite location being used by another FeedMe location. ")) : T("", !0),
1138
+ u.value.netsuiteId ? (S(), N("div", Yt, [
1138
1139
  B(h, {
1139
1140
  name: "cloud",
1140
1141
  color: "neutral-gray-400",
@@ -1219,7 +1220,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1219
1220
  });
1220
1221
  }
1221
1222
  }
1222
- ], t = C, m = g, I = j({}), k = j(), h = j(""), y = R(() => t.nsLocationsNotBeingUsed.map((c) => ({
1223
+ ], t = C, m = g, I = j({}), w = j(), h = j(""), y = R(() => t.nsLocationsNotBeingUsed.map((c) => ({
1223
1224
  label: c.name,
1224
1225
  value: c
1225
1226
  }))), p = R(() => Object.values(I.value).length === 0 || Object.values(I.value).some(
@@ -1241,7 +1242,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1241
1242
  }
1242
1243
  }
1243
1244
  return (c, v) => {
1244
- const b = w("FmTable"), d = w("FmForm"), l = w("FmSpacer"), i = w("FmButton"), o = w("FmDialog");
1245
+ const b = k("FmTable"), d = k("FmForm"), l = k("FmSpacer"), i = k("FmButton"), o = k("FmDialog");
1245
1246
  return S(), Q(o, {
1246
1247
  modelValue: C.showDialog,
1247
1248
  "onUpdate:modelValue": v[2] || (v[2] = (f) => c.$emit("update:showDialog", f)),
@@ -1265,13 +1266,13 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1265
1266
  B(d, {
1266
1267
  ref: "formRef",
1267
1268
  class: "mb-4",
1268
- "model-value": k.value,
1269
- "onUpdate:modelValue": v[1] || (v[1] = (f) => k.value = f)
1269
+ "model-value": w.value,
1270
+ "onUpdate:modelValue": v[1] || (v[1] = (f) => w.value = f)
1270
1271
  }, {
1271
1272
  default: O(() => [
1272
1273
  B(b, {
1273
- modelValue: k.value,
1274
- "onUpdate:modelValue": v[0] || (v[0] = (f) => k.value = f),
1274
+ modelValue: w.value,
1275
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => w.value = f),
1275
1276
  "row-data": t.fmLocationNotYetConfigured,
1276
1277
  "column-defs": a,
1277
1278
  "search-value": h.value,
@@ -1306,7 +1307,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1306
1307
  for (const o of Object.keys(t.setting))
1307
1308
  I[o] = t.setting[o];
1308
1309
  });
1309
- const k = j(), h = ne(t, "show"), y = j(), p = j(""), A = R(() => t.setting.locations.filter(
1310
+ const w = j(), h = ne(t, "show"), y = j(), p = j(""), A = R(() => t.setting.locations.filter(
1310
1311
  (i) => i.name.toLowerCase().includes(p.value.toLowerCase()) || i.netSuiteId.toLowerCase().includes(p.value.toLowerCase())
1311
1312
  )), c = [
1312
1313
  {
@@ -1375,7 +1376,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1375
1376
  (i) => !t.setting.locations.some((o) => o.netSuiteId === i.netsuiteId)
1376
1377
  ));
1377
1378
  return (i, o) => {
1378
- const f = w("FmChip"), V = w("FmSearch"), e = w("FmTable"), n = w("FmButton"), x = w("FmSideSheet");
1379
+ const f = k("FmChip"), V = k("FmSearch"), e = k("FmTable"), n = k("FmButton"), x = k("FmSideSheet");
1379
1380
  return S(), Q(x, {
1380
1381
  modelValue: E(h),
1381
1382
  "onUpdate:modelValue": o[6] || (o[6] = (L) => te(h) ? h.value = L : null),
@@ -1387,10 +1388,10 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1387
1388
  default: O(() => {
1388
1389
  var L;
1389
1390
  return [
1390
- (L = E(s).sessionUser.value) != null && L.role.isAdmin ? (S(), M("div", _t, [
1391
+ (L = E(s).sessionUser.value) != null && L.role.isAdmin ? (S(), N("div", _t, [
1391
1392
  o[7] || (o[7] = r("div", { class: "text-sm" }, " This integration keeps your FeedMe system and NetSuite in sync for the following modules: ", -1)),
1392
1393
  r("div", $t, [
1393
- (S(), M(Z, null, W(b, (F) => B(f, {
1394
+ (S(), N(Z, null, W(b, (F) => B(f, {
1394
1395
  key: F,
1395
1396
  label: F,
1396
1397
  compact: ""
@@ -1414,14 +1415,14 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1414
1415
  "shrink-at": !1,
1415
1416
  "search-value": p.value
1416
1417
  }, null, 8, ["modelValue", "row-data", "search-value"])
1417
- ])) : (S(), M("div", Wt, " Please contact your administrator to apply the changes. ")),
1418
+ ])) : (S(), N("div", Wt, " Please contact your administrator to apply the changes. ")),
1418
1419
  B(Pt, {
1419
1420
  "show-dialog": a.value,
1420
1421
  "onUpdate:showDialog": [
1421
1422
  o[2] || (o[2] = (F) => a.value = F),
1422
1423
  o[3] || (o[3] = (F) => a.value = F)
1423
1424
  ],
1424
- formRef: k.value,
1425
+ formRef: w.value,
1425
1426
  fmLocationNotYetConfigured: d.value,
1426
1427
  nsLocationsNotBeingUsed: l.value
1427
1428
  }, null, 8, ["show-dialog", "formRef", "fmLocationNotYetConfigured", "nsLocationsNotBeingUsed"])
@@ -1467,18 +1468,18 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1467
1468
  }
1468
1469
  }
1469
1470
  });
1470
- const { breakpoints: m } = oe(), I = R(() => m.value.xs || m.value.sm), k = R(() => I.value);
1471
+ const { breakpoints: m } = oe(), I = R(() => m.value.xs || m.value.sm), w = R(() => I.value);
1471
1472
  async function h() {
1472
1473
  console.log("updateNetSuiteIntegration called");
1473
1474
  }
1474
1475
  const { t: y } = U();
1475
1476
  return (p, A) => {
1476
- const c = w("FmCardSection"), v = w("FmCard");
1477
- return E(g).isEnabled && E(g).isBusinessLocation ? (S(), M("div", on, [
1477
+ const c = k("FmCardSection"), v = k("FmCard");
1478
+ return E(g).isEnabled && E(g).isBusinessLocation ? (S(), N("div", on, [
1478
1479
  B(v, {
1479
1480
  class: G({
1480
- "w-full": k.value,
1481
- "w-1/2": !k.value,
1481
+ "w-full": w.value,
1482
+ "w-1/2": !w.value,
1482
1483
  border: !0,
1483
1484
  "border-fm-color-neutral-gray-100": !0,
1484
1485
  "cursor-pointer": !0,
@@ -1505,7 +1506,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1505
1506
  ]),
1506
1507
  _: 1
1507
1508
  }, 8, ["class"]),
1508
- E(g).state.setting ? (S(), M("div", dn, [
1509
+ E(g).state.setting ? (S(), N("div", dn, [
1509
1510
  (S(), Q(de, { to: "body" }, [
1510
1511
  B(nn, {
1511
1512
  setting: E(g).state.setting,
@@ -1547,12 +1548,12 @@ async function mn(C, g, s) {
1547
1548
  var m;
1548
1549
  const u = await fn(s), a = [], t = {};
1549
1550
  for (const I in u) {
1550
- const k = u[I];
1551
- for (const h of k) {
1551
+ const w = u[I];
1552
+ for (const h of w) {
1552
1553
  const y = h.itemCode, p = h.itemName, A = h.physicalQty, c = h.customCost;
1553
1554
  if (y === "" || y === "undefined") {
1554
1555
  a.push({
1555
- row: k.indexOf(h) + 17,
1556
+ row: w.indexOf(h) + 17,
1556
1557
  itemCode: y,
1557
1558
  itemName: p,
1558
1559
  message: "Item code is empty or undefined"
@@ -1562,13 +1563,13 @@ async function mn(C, g, s) {
1562
1563
  const v = g.find((o) => o.code === y);
1563
1564
  if (!v) {
1564
1565
  a.push({
1565
- row: k.indexOf(h) + 17,
1566
+ row: w.indexOf(h) + 17,
1566
1567
  itemCode: y,
1567
1568
  itemName: p,
1568
1569
  qty: A,
1569
1570
  message: "Item not found in inventory"
1570
1571
  }), console.error(
1571
- `${k.indexOf(h) + 17} Item not found: ${y} ${p} ${A}`
1572
+ `${w.indexOf(h) + 17} Item not found: ${y} ${p} ${A}`
1572
1573
  );
1573
1574
  continue;
1574
1575
  }
@@ -1616,7 +1617,7 @@ async function mn(C, g, s) {
1616
1617
  async function fn(C) {
1617
1618
  const g = await new Promise((t, m) => {
1618
1619
  const I = new FileReader();
1619
- I.onload = (k) => t(k.target.result), I.onerror = m, I.readAsArrayBuffer(C);
1620
+ I.onload = (w) => t(w.target.result), I.onerror = m, I.readAsArrayBuffer(C);
1620
1621
  }), s = Le(g, { type: "array" }), u = s.SheetNames, a = {};
1621
1622
  for (const t of u) {
1622
1623
  const m = await An(s.Sheets[t]);
@@ -1625,7 +1626,7 @@ async function fn(C) {
1625
1626
  return a;
1626
1627
  }
1627
1628
  async function An(C) {
1628
- const g = Me.sheet_to_json(C, {
1629
+ const g = Ne.sheet_to_json(C, {
1629
1630
  header: ve,
1630
1631
  range: 12
1631
1632
  }), s = [];
@@ -1644,10 +1645,10 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1644
1645
  class: /* @__PURE__ */ G(["fm-corner-radius-md p-16 flex items-center gap-16"])
1645
1646
  }, hn = {
1646
1647
  class: /* @__PURE__ */ G(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
1647
- }, xn = { class: "line-clamp-2 text-ellipsis break-all" }, En = { class: "flex flex-col" }, Bn = { class: "font-medium" }, Cn = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Sn = { class: "flex" }, kn = { class: "flex" }, wn = { key: 1 }, Vn = /* @__PURE__ */ J({
1648
+ }, xn = { class: "line-clamp-2 text-ellipsis break-all" }, En = { class: "flex flex-col" }, Bn = { class: "font-medium" }, Cn = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, Sn = { class: "flex" }, wn = { class: "flex" }, kn = { key: 1 }, Vn = /* @__PURE__ */ J({
1648
1649
  __name: "XilnexOpeningImport",
1649
1650
  setup(C) {
1650
- const g = Ye(), s = ce(), u = Ne(), a = Re(), t = fe(), m = R(() => [
1651
+ const g = Je(), s = ce(), u = Me(), a = Re(), t = fe(), m = R(() => [
1651
1652
  {
1652
1653
  value: "xilnex",
1653
1654
  label: "Xilnex",
@@ -1662,7 +1663,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1662
1663
  disabledReason: "Current location is not binded to NetSuite"
1663
1664
  }
1664
1665
  ] : []
1665
- ]), I = j(m.value[0].value), { t: k } = Ze(), h = j(null), y = j(), p = j(""), A = j([]), c = j([]), v = [
1666
+ ]), I = j(m.value[0].value), { t: w } = Ze(), h = j(null), y = j(), p = j(""), A = j([]), c = j([]), v = [
1666
1667
  {
1667
1668
  id: "ingredient",
1668
1669
  header: () => "Ingredient",
@@ -1818,8 +1819,8 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1818
1819
  return isNaN(e.getTime()) ? null : Oe(e);
1819
1820
  });
1820
1821
  return (e, n) => {
1821
- const x = w("FmLabel"), L = w("FmField"), F = w("FmSimpleDatePicker"), D = w("FmButton"), Y = w("FmRadio"), N = w("FmRadioGroup"), P = w("FmTable");
1822
- return S(), M("div", pn, [
1822
+ const x = k("FmLabel"), L = k("FmField"), F = k("FmSimpleDatePicker"), D = k("FmButton"), Y = k("FmRadio"), M = k("FmRadioGroup"), P = k("FmTable");
1823
+ return S(), N("div", pn, [
1823
1824
  r("div", gn, [
1824
1825
  B(x, { label: "Latest closing" })
1825
1826
  ]),
@@ -1832,9 +1833,9 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1832
1833
  ]),
1833
1834
  _: 1
1834
1835
  }),
1835
- E(g).state.closingDocumentId ? (S(), M("div", wn, n[6] || (n[6] = [
1836
+ E(g).state.closingDocumentId ? (S(), N("div", kn, n[6] || (n[6] = [
1836
1837
  r("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Not able to import opening balance as closing document already exists. ", -1)
1837
- ]))) : (S(), M("div", vn, [
1838
+ ]))) : (S(), N("div", vn, [
1838
1839
  B(F, {
1839
1840
  modelValue: f.value,
1840
1841
  "onUpdate:modelValue": n[0] || (n[0] = (X) => f.value = X),
@@ -1871,7 +1872,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1871
1872
  r("div", hn, [
1872
1873
  r("div", xn, H(h.value.name), 1),
1873
1874
  B(D, {
1874
- label: E(k)("inventory.ingredient.import.replaceFile"),
1875
+ label: E(w)("inventory.ingredient.import.replaceFile"),
1875
1876
  variant: "secondary",
1876
1877
  "prepend-icon": "autorenew",
1877
1878
  onClick: X
@@ -1883,14 +1884,14 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1883
1884
  key: "0"
1884
1885
  } : void 0
1885
1886
  ]), 1024),
1886
- B(N, {
1887
+ B(M, {
1887
1888
  modelValue: I.value,
1888
1889
  "onUpdate:modelValue": n[2] || (n[2] = (X) => I.value = X),
1889
1890
  label: "Retrieve cost from",
1890
1891
  class: "my-5"
1891
1892
  }, {
1892
1893
  default: O(() => [
1893
- (S(!0), M(Z, null, W(m.value, (X) => (S(), Q(Y, {
1894
+ (S(!0), N(Z, null, W(m.value, (X) => (S(), Q(Y, {
1894
1895
  key: X.value,
1895
1896
  value: X.value,
1896
1897
  label: X.label,
@@ -1919,7 +1920,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1919
1920
  onClick: l
1920
1921
  }, null, 8, ["disabled", "loading"])
1921
1922
  ]),
1922
- h.value && c.value.length > 0 ? (S(), M(Z, { key: 0 }, [
1923
+ h.value && c.value.length > 0 ? (S(), N(Z, { key: 0 }, [
1923
1924
  n[4] || (n[4] = r("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4" }, "Results", -1)),
1924
1925
  B(P, {
1925
1926
  modelValue: y.value,
@@ -1930,14 +1931,14 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1930
1931
  "search-value": p.value
1931
1932
  }, null, 8, ["modelValue", "row-data", "search-value"])
1932
1933
  ], 64)) : T("", !0),
1933
- A.value.length > 0 ? (S(), M(Z, { key: 1 }, [
1934
+ A.value.length > 0 ? (S(), N(Z, { key: 1 }, [
1934
1935
  n[5] || (n[5] = r("h2", { class: "fm-typo-en-title-md-800 mt-8 mb-4 text-red-600" }, "Errors", -1)),
1935
1936
  B(P, {
1936
1937
  "row-data": A.value,
1937
1938
  "column-defs": b
1938
1939
  }, null, 8, ["row-data"])
1939
1940
  ], 64)) : T("", !0),
1940
- r("div", kn, [
1941
+ r("div", wn, [
1941
1942
  c.value.length > 0 && !E(g).state.closingDocumentId ? (S(), Q(D, {
1942
1943
  key: 0,
1943
1944
  class: "ml-auto mt-4",
@@ -1952,7 +1953,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1952
1953
  ]);
1953
1954
  };
1954
1955
  }
1955
- }), Fn = { class: "flex flex-col gap-8 w-full" }, Ln = { class: "flex gap-4 justify-between" }, Mn = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400" }, Nn = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, Rn = { key: 0 }, On = {
1956
+ }), Fn = { class: "flex flex-col gap-8 w-full" }, Ln = { class: "flex gap-4 justify-between" }, Nn = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400" }, Mn = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, Rn = { key: 0 }, On = {
1956
1957
  key: 1,
1957
1958
  class: "flex flex-col gap-8 w-full"
1958
1959
  }, Hn = { key: 1 }, zn = { class: "flex gap-8 items-center justify-start" }, jn = /* @__PURE__ */ J({
@@ -1964,7 +1965,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1964
1965
  emits: ["update:show"],
1965
1966
  setup(C, { emit: g }) {
1966
1967
  var p;
1967
- const s = Ae(), a = ne(C, "show"), { t } = U(), m = g, I = $(), k = ((p = I._currentLocation) == null ? void 0 : p.type) || "", h = [
1968
+ const s = Ae(), a = ne(C, "show"), { t } = U(), m = g, I = $(), w = ((p = I._currentLocation) == null ? void 0 : p.type) || "", h = [
1968
1969
  { label: ee(
1969
1970
  "openingBalance"
1970
1971
  /* OPENING_BALANCE */
@@ -1976,7 +1977,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1976
1977
  ], y = j(h[0]);
1977
1978
  return (A, c) => {
1978
1979
  var i;
1979
- const v = w("FmIcon"), b = w("FmButtonGroup"), d = w("FmButton"), l = w("FmSideSheet");
1980
+ const v = k("FmIcon"), b = k("FmButtonGroup"), d = k("FmButton"), l = k("FmSideSheet");
1980
1981
  return S(), Q(l, {
1981
1982
  modelValue: E(a),
1982
1983
  "onUpdate:modelValue": c[2] || (c[2] = (o) => te(a) ? a.value = o : null),
@@ -1988,7 +1989,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1988
1989
  default: O(() => {
1989
1990
  var o;
1990
1991
  return [
1991
- (o = E(s).sessionUser.value) != null && o.role.isAdmin ? (S(), M("div", On, [
1992
+ (o = E(s).sessionUser.value) != null && o.role.isAdmin ? (S(), N("div", On, [
1992
1993
  y.value.label === E(ee)(
1993
1994
  "openingBalance"
1994
1995
  /* OPENING_BALANCE */
@@ -1996,8 +1997,8 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1996
1997
  y.value.label === E(ee)(
1997
1998
  "transferNote"
1998
1999
  /* TRANSFER_NOTE */
1999
- ) ? (S(), M("div", Hn, " Not available yet. ")) : T("", !0)
2000
- ])) : (S(), M("div", Rn, " Please contact your administrator to apply the changes. "))
2000
+ ) ? (S(), N("div", Hn, " Not available yet. ")) : T("", !0)
2001
+ ])) : (S(), N("div", Rn, " Please contact your administrator to apply the changes. "))
2001
2002
  ];
2002
2003
  }),
2003
2004
  "side-sheet-footer": O(() => [
@@ -2019,12 +2020,12 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2019
2020
  r("div", Fn, [
2020
2021
  r("div", Ln, [
2021
2022
  c[3] || (c[3] = r("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Xilnex)", -1)),
2022
- r("div", Mn, [
2023
+ r("div", Nn, [
2023
2024
  B(v, {
2024
- name: E(k),
2025
+ name: E(w),
2025
2026
  size: "sm"
2026
2027
  }, null, 8, ["name"]),
2027
- r("div", Nn, H((o = E(I)._currentLocation) == null ? void 0 : o.name), 1)
2028
+ r("div", Mn, H((o = E(I)._currentLocation) == null ? void 0 : o.name), 1)
2028
2029
  ])
2029
2030
  ]),
2030
2031
  B(b, {
@@ -2043,14 +2044,14 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2043
2044
  }), Dn = { key: 0 }, Xn = /* @__PURE__ */ J({
2044
2045
  __name: "XilnexView",
2045
2046
  setup(C) {
2046
- const g = De(), s = $(), u = j(!1);
2047
+ const g = Ke(), s = $(), u = j(!1);
2047
2048
  async function a() {
2048
2049
  u.value = !0, console.log("Opening Xilnex migration dialog");
2049
2050
  }
2050
2051
  const { breakpoints: t } = oe(), m = R(() => t.value.xs || t.value.sm), I = R(() => m.value);
2051
- return (k, h) => {
2052
- const y = w("FmCardSection"), p = w("FmCard");
2053
- return E(g).enabledXilnexOpeningMigration && !E(s).businessLevel ? (S(), M("div", Dn, [
2052
+ return (w, h) => {
2053
+ const y = k("FmCardSection"), p = k("FmCard");
2054
+ return E(g).enabledXilnexOpeningMigration && !E(s).businessLevel ? (S(), N("div", Dn, [
2054
2055
  B(p, {
2055
2056
  class: G({
2056
2057
  "w-full": I.value,
@@ -2095,15 +2096,15 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2095
2096
  }, Jn = ["src"], Yn = {
2096
2097
  class: "text-xs text-neutral-400 text-center",
2097
2098
  style: { "max-width": "25rem" }
2098
- }, Kn = { key: 2 }, $n = /* @__PURE__ */ J({
2099
+ }, Kn = { key: 2 }, eo = /* @__PURE__ */ J({
2099
2100
  __name: "IntegrationView",
2100
2101
  setup(C) {
2101
- const g = $(), s = j(!1), u = Ke(), { breakpoints: a } = oe(), t = R(() => a.value.xs || a.value.sm), { t: m } = U();
2102
+ const g = $(), s = j(!1), u = Ye(), { breakpoints: a } = oe(), t = R(() => a.value.xs || a.value.sm), { t: m } = U();
2102
2103
  return ae(async () => {
2103
2104
  s.value = !0, await u.fetchFoodMarketHubSetting(), await u.fetchNetSuiteSetting(), s.value = !1;
2104
- }), (I, k) => {
2105
- const h = w("FmCircularProgress");
2106
- return S(), Q(Xe, {
2105
+ }), (I, w) => {
2106
+ const h = k("FmCircularProgress");
2107
+ return S(), Q(De, {
2107
2108
  title: E(m)("inventory.integration.title")
2108
2109
  }, {
2109
2110
  default: O(() => [
@@ -2116,22 +2117,22 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2116
2117
  }
2117
2118
  ])
2118
2119
  }, [
2119
- B(Te, {
2120
+ B(Xe, {
2120
2121
  "change-location": "",
2121
2122
  showBusiness: ""
2122
2123
  }),
2123
- !E(g)._currentLocation || s.value ? (S(), M("div", Tn, [
2124
+ !E(g)._currentLocation || s.value ? (S(), N("div", Tn, [
2124
2125
  B(h, { size: "lg" })
2125
- ])) : E(u).enabledIntegrations == 0 ? (S(), M("div", Qn, [
2126
+ ])) : E(u).enabledIntegrations == 0 ? (S(), N("div", Qn, [
2126
2127
  r("div", null, [
2127
2128
  r("img", {
2128
2129
  src: E(Se),
2129
2130
  alt: "List is empty"
2130
2131
  }, null, 8, Jn)
2131
2132
  ]),
2132
- k[0] || (k[0] = r("div", { class: "font-bold text-lg" }, "Integration", -1)),
2133
+ w[0] || (w[0] = r("div", { class: "font-bold text-lg" }, "Integration", -1)),
2133
2134
  r("div", Yn, H(E(m)("inventory.integration.description")), 1)
2134
- ])) : (S(), M("div", Kn, [
2135
+ ])) : (S(), N("div", Kn, [
2135
2136
  B(cn),
2136
2137
  B(Dt),
2137
2138
  B(Xn)
@@ -2144,5 +2145,5 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2144
2145
  }
2145
2146
  });
2146
2147
  export {
2147
- $n as default
2148
+ eo as default
2148
2149
  };