@feedmepos/mf-inventory-portal 1.0.7-dev.1 → 1.0.7

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 (95) hide show
  1. package/dist/{App-zspCOQeF.js → App-DF14rGlK.js} +49 -50
  2. package/dist/{ApprovalView-CKJV87es.js → ApprovalView-C_xhq-_c.js} +24 -24
  3. package/dist/{BindingsDialog-CTmuzAWi.js → BindingsDialog-CCY1fDj8.js} +4 -4
  4. package/dist/{BindingsPicker-Dabonsov.js → BindingsPicker-CnXbK5O3.js} +6 -6
  5. package/dist/{BindingsTable-L0yzAoQq.js → BindingsTable-cQIUUuVv.js} +8 -8
  6. package/dist/{ClosingDraftView-CddxqfNi.js → ClosingDraftView-DUZ31x3s.js} +463 -464
  7. package/dist/{ClosingTemplateView-BsW-nPec.js → ClosingTemplateView-6ysEDEcV.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-DQ4msDpJ.js → DeliveryOrderPrintPreview-BGjFS8h7.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-TnVI2vdF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CanJ2fzb.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRvXmLV6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BcKtJQMt.js} +86 -86
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHLx7Lbo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb9xMoX-.js} +1 -1
  12. package/dist/{IngredientGroupView-CF2GLMSD.js → IngredientGroupView-i08KHlW7.js} +11 -11
  13. package/dist/{IngredientsView-DopQVz7u.js → IngredientsView-D0tBukwK.js} +14 -15
  14. package/dist/{IntegrationView-EnD2l7af.js → IntegrationView-BqCrKL13.js} +85 -86
  15. package/dist/{InventoryBindingForm-VP2_coNH.js → InventoryBindingForm-BJwIFQVS.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-dQF7h_Jp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU9j1Q8M.js} +27 -27
  17. package/dist/{InventoryBindingSummary-BCEXzmFu.js → InventoryBindingSummary-B2M3Th8T.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BH4A_Lc5.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CGgxjz4P.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CdxCyEBi.js} +10 -10
  20. package/dist/{PublishView-ExvxeKR_.js → PublishView-B9x92vDM.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-59AaXtZ_.js → PurchaseOrderPrintPreview-MbGDNmgh.js} +4 -4
  22. package/dist/{ReceiveRequestView-BxGss8gu.js → ReceiveRequestView-CTNycYUr.js} +52 -53
  23. package/dist/{RecipeView-BqTsG4xX.js → RecipeView-sHTcJgzP.js} +32 -32
  24. package/dist/{StockView-D-WvydHv.js → StockView-CUv4dcGJ.js} +72 -73
  25. package/dist/{SupplierView-C6ruAEih.js → SupplierView-hu6OhDss.js} +11 -12
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CCKlQGMf.js +1746 -0
  27. package/dist/{TransferTemplateView-qSA3Txpn.js → TransferTemplateView-DMSkUc0D.js} +290 -291
  28. package/dist/{UnitView-oHDOLM8k.js → UnitView-B5q7IVbT.js} +23 -23
  29. package/dist/{WarehouseView-C3EqYfCf.js → WarehouseView-Ds6z4Vz6.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 +1 -5
  35. package/dist/{app-DqrcGlGd.js → app-BmsY87Mv.js} +17641 -17171
  36. package/dist/app.d.ts +7 -7
  37. package/dist/app.js +1 -1
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
  39. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  40. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  41. package/dist/{decimal-rgCB5DGy.js → decimal-Baw9w4_A.js} +1 -1
  42. package/dist/{format-unit-display-DUWzu8vU.js → format-unit-display-D0_KiU3j.js} +60 -60
  43. package/dist/{index-YgIaxVhw.js → index-CDydl7WA.js} +1 -1
  44. package/dist/{index-CH3OzDYK.js → index-C_GU5Tc8.js} +6 -7
  45. package/dist/{stock-BPNYXwz1.js → stock-C-hm8Kdq.js} +1 -1
  46. package/dist/stores/feature.d.ts +20 -3
  47. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  48. package/dist/stores/integration/netsuite.d.ts +7 -7
  49. package/dist/stores/inventory.d.ts +44 -44
  50. package/dist/stores/location.d.ts +137 -137
  51. package/dist/{supplier-CnrH580K.js → supplier-RX_yr24c.js} +4 -4
  52. package/dist/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/{use-ingredient-select-dialog-CpnJoeWb.js → use-ingredient-select-dialog-BZhczMUl.js} +1 -1
  54. package/dist/{use-inventory-binding-dialog-DHvNwt_F.js → use-inventory-binding-dialog-dV-92pLe.js} +1 -1
  55. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  56. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  57. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  58. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  59. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -68
  60. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +408 -408
  61. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  62. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  63. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  64. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  65. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  66. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  67. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  68. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  69. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  70. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  71. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  72. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  73. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  74. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +647 -675
  75. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  76. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  77. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  78. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1146 -1194
  79. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1170 -1218
  80. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  81. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  82. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  83. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  84. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  85. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  86. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +813 -813
  87. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +813 -813
  88. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  89. package/dist/{vue-i18n-4m7yAqU2.js → vue-i18n-sbHu6D5a.js} +426 -426
  90. package/package.json +3 -5
  91. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CQ-Om_rI.js +0 -1894
  92. package/dist/composable/usePromise.d.ts +0 -41
  93. package/dist/feature-CifIpcNk.js +0 -17345
  94. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -614
  95. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +0 -6
@@ -1,11 +1,10 @@
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 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 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";
2
2
  import { E as Se } from "./empty-placeholder-wf6-BWE8.js";
3
- import { aO as we, aF as ke, e as q, u as $, aP as Ve, b as ce, $ as _, T as Fe, aQ as Le, aw as Me, a as Ne, 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-DqrcGlGd.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";
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-BmsY87Mv.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";
5
5
  import { useI18n as U, useCoreStore as Ae } from "@feedmepos/mf-common";
6
- import { a as Qe, b as Je, u as Ye } from "./index-CH3OzDYK.js";
7
- import { u as Ke } from "./feature-CifIpcNk.js";
8
- import { u as Ze } from "./vue-i18n-4m7yAqU2.js";
6
+ import { a as Je, b as Ye, u as Ke } from "./index-C_GU5Tc8.js";
7
+ import { u as Ze } from "./vue-i18n-sbHu6D5a.js";
9
8
  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";
10
9
  var ye = { exports: {} };
11
10
  (function(C, g) {
@@ -19,31 +18,31 @@ var ye = { exports: {} };
19
18
  return s.match(u, a) !== null;
20
19
  }, s.match = function(u, a, t) {
21
20
  t = t || {};
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;
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;
23
22
  u = t.caseSensitive && u || u.toLowerCase();
24
- for (var b = 0; b < w; b++)
23
+ for (var b = 0; b < k; b++)
25
24
  v = a[b], c[b] === u[m] ? (v = p + v + A, m += 1, y += 1 + y) : y = 0, h += y, I[I.length] = v;
26
25
  return m === u.length ? (h = c === u ? 1 / 0 : h, { rendered: I.join(""), score: h }) : null;
27
26
  }, s.filter = function(u, a, t) {
28
- return !a || a.length === 0 ? [] : typeof u != "string" ? a : (t = t || {}, a.reduce(function(m, I, w, h) {
27
+ return !a || a.length === 0 ? [] : typeof u != "string" ? a : (t = t || {}, a.reduce(function(m, I, k, h) {
29
28
  var y = I;
30
29
  t.extract && (y = t.extract(I));
31
30
  var p = s.match(u, y, t);
32
31
  return p != null && (m[m.length] = {
33
32
  string: p.rendered,
34
33
  score: p.score,
35
- index: w,
34
+ index: k,
36
35
  original: I
37
36
  }), m;
38
37
  }, []).sort(function(m, I) {
39
- var w = I.score - m.score;
40
- return w || m.index - I.index;
38
+ var k = I.score - m.score;
39
+ return k || m.index - I.index;
41
40
  }));
42
41
  };
43
42
  })();
44
43
  })(ye);
45
44
  var Ge = ye.exports;
46
- const be = /* @__PURE__ */ we(Ge);
45
+ const be = /* @__PURE__ */ ke(Ge);
47
46
  function ge(C, g) {
48
47
  return be.filter(C, g).length > 0;
49
48
  }
@@ -102,7 +101,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
102
101
  }),
103
102
  emits: ["update:modelValue"],
104
103
  setup(C) {
105
- const g = Ee(C, "modelValue"), s = Te();
104
+ const g = Ee(C, "modelValue"), s = Qe();
106
105
  ae(() => {
107
106
  s.emitData(g.value);
108
107
  });
@@ -128,10 +127,10 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
128
127
  F.sublabel ? [F.label, F.sublabel] : [F.label]
129
128
  ) ? !0 : L.length === 0 ? m(F) : K(F) ? I(L, F.children) : !1;
130
129
  }
131
- function w(e, n, x = 0, L = !1) {
130
+ function k(e, n, x = 0, L = !1) {
132
131
  if (K(e) && e.children.length) {
133
132
  const { children: F, ...D } = e, Y = F.flatMap(
134
- (N, P) => w(N, [...n, P], x + 1, L || e.disabled)
133
+ (N, P) => k(N, [...n, P], x + 1, L || e.disabled)
135
134
  );
136
135
  return [
137
136
  {
@@ -155,7 +154,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
155
154
  ];
156
155
  }
157
156
  const h = R(() => g.value.flatMap(
158
- (e, n) => w(e, [n]).filter((x) => I(x.keys, g.value))
157
+ (e, n) => k(e, [n]).filter((x) => I(x.keys, g.value))
159
158
  ));
160
159
  function y(e) {
161
160
  if (K(e)) {
@@ -199,7 +198,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
199
198
  const x = t(e) ? e.children : e.children.filter(m);
200
199
  return {
201
200
  ...e,
202
- children: e.children.map((L) => x.find((D) => ke(D.value, L.value)) ? v(L, n) : L)
201
+ children: e.children.map((L) => x.find((D) => we(D.value, L.value)) ? v(L, n) : L)
203
202
  };
204
203
  }
205
204
  return {
@@ -241,7 +240,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
241
240
  g.value = b(e, n, x), s.emitData(g.value);
242
241
  }
243
242
  return (e, n) => {
244
- const x = k("FmSearch"), L = k("FmCheckbox"), F = k("FmButton"), D = k("FmListItem"), Y = k("FmList");
243
+ const x = w("FmSearch"), L = w("FmCheckbox"), F = w("FmButton"), D = w("FmListItem"), Y = w("FmList");
245
244
  return S(), M("div", Pe, [
246
245
  r("div", We, [
247
246
  r("div", _e, H(E(a)("inventory.formField.itemsSelected", { count: f.value })), 1),
@@ -380,7 +379,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
380
379
  s.modifiers.filter((A) => A.selection !== p)
381
380
  );
382
381
  }
383
- function w({ selection: p }, A) {
382
+ function k({ selection: p }, A) {
384
383
  const c = s.modifiers.find((v) => v.selection === p);
385
384
  c && (c.code = A);
386
385
  }
@@ -445,7 +444,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
445
444
  }
446
445
  const { t: y } = U();
447
446
  return (p, A) => {
448
- const c = k("FmButton"), v = k("FmTextField");
447
+ const c = w("FmButton"), v = w("FmTextField");
449
448
  return S(), M("div", st, [
450
449
  r("div", it, [
451
450
  r("div", at, H(E(y)("inventory.integration.apply.addons")), 1),
@@ -478,7 +477,7 @@ const Pe = { class: "flex flex-col gap-12 h-[350px]" }, We = { class: "flex item
478
477
  B(v, {
479
478
  disabled: C.loading,
480
479
  "model-value": b.code,
481
- "onUpdate:modelValue": [(l) => b.code = l, (l) => w(b, l)],
480
+ "onUpdate:modelValue": [(l) => b.code = l, (l) => k(b, l)],
482
481
  rules: [
483
482
  function(i) {
484
483
  return !!i || "Required";
@@ -512,13 +511,13 @@ function pt(C, g = []) {
512
511
  function gt(C, g, s) {
513
512
  const u = s.reduce((t, m) => {
514
513
  var y, p, A;
515
- const I = m.category || "", w = pt(g, (y = m.variant) == null ? void 0 : y.variantGroupIds), h = {
514
+ const I = m.category || "", k = pt(g, (y = m.variant) == null ? void 0 : y.variantGroupIds), h = {
516
515
  ...m,
517
516
  codeName: [m.code, m.name].filter((c) => !!c).join(" "),
518
517
  variant: {
519
518
  variantGroupIds: ((p = m.variant) == null ? void 0 : p.variantGroupIds) || [],
520
519
  variantCombinations: (((A = m.variant) == null ? void 0 : A.variantCombinations) || []).map((c) => {
521
- const v = c.code, b = c.name || w[c.combinationKey || ""];
520
+ const v = c.code, b = c.name || k[c.combinationKey || ""];
522
521
  return {
523
522
  ...c,
524
523
  codeName: [v, b].filter((d) => !!d).join(" ").trim() || "-"
@@ -542,7 +541,7 @@ function he(C, g) {
542
541
  if (C.length == 1)
543
542
  return C[0];
544
543
  const s = C[0], u = C.slice(1, C.length), a = he(u, g);
545
- return s.reduce((m, I) => [...m, ...a.map((w) => g(I, w))], new Array());
544
+ return s.reduce((m, I) => [...m, ...a.map((k) => g(I, k))], new Array());
546
545
  }
547
546
  function vt(C) {
548
547
  if (C.length === 0) return [];
@@ -572,7 +571,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
572
571
  }, xt = { class: "text-left" }, Et = { class: "min-w-64" }, Bt = { class: "flex flex-col" }, Ct = { class: "fm-typo-en-body-md-400" }, St = {
573
572
  key: 0,
574
573
  class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400"
575
- }, wt = { class: "w-1" }, ie = /* @__PURE__ */ J({
574
+ }, kt = { class: "w-1" }, ie = /* @__PURE__ */ J({
576
575
  __name: "ApplyProduct",
577
576
  props: {
578
577
  isAddon: {
@@ -600,7 +599,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
600
599
  setup(C, { emit: g }) {
601
600
  const s = C, u = g, a = me(), t = R(() => s.isAddon ? "Addons" : "Products"), m = R(() => s.isAddon ? [] : s.categories), I = R(
602
601
  () => gt(m.value, s.variants, s.menus)
603
- ), w = R(() => {
602
+ ), k = R(() => {
604
603
  if (s.isAddon)
605
604
  return s.bindings.map((i) => {
606
605
  const o = s.menus.find((V) => V._id === i.productId), f = (o == null ? void 0 : o.name) ?? "-";
@@ -762,7 +761,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
762
761
  }
763
762
  const { t: d } = U();
764
763
  return (l, i) => {
765
- const o = k("FmButton"), f = k("FmTextField");
764
+ const o = w("FmButton"), f = w("FmTextField");
766
765
  return S(), M("div", yt, [
767
766
  r("div", bt, [
768
767
  r("div", It, H(C.isAddon ? E(d)("inventory.integration.apply.addons") : E(d)("inventory.integration.apply.products")), 1),
@@ -776,13 +775,13 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
776
775
  }, null, 8, ["label"])
777
776
  ]),
778
777
  r("div", null, [
779
- w.value.length > 0 ? (S(), M("table", ht, [
778
+ k.value.length > 0 ? (S(), M("table", ht, [
780
779
  r("tr", xt, [
781
780
  r("th", Et, H(E(d)("inventory.integration.apply.name")), 1),
782
781
  r("th", null, H(E(d)("inventory.integration.apply.code")), 1),
783
782
  i[1] || (i[1] = r("th", { class: "w-1" }, " ", -1))
784
783
  ]),
785
- (S(!0), M(Z, null, W(w.value, (V, e) => (S(), M(Z, { key: e }, [
784
+ (S(!0), M(Z, null, W(k.value, (V, e) => (S(), M(Z, { key: e }, [
786
785
  i[2] || (i[2] = r("tr", { class: "block h-8" }, null, -1)),
787
786
  r("tr", null, [
788
787
  r("td", null, [
@@ -802,7 +801,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
802
801
  ]
803
802
  }, null, 8, ["model-value", "onUpdate:modelValue", "rules"])
804
803
  ]),
805
- r("td", wt, [
804
+ r("td", kt, [
806
805
  B(o, {
807
806
  type: "button",
808
807
  variant: "tertiary",
@@ -819,7 +818,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
819
818
  ]);
820
819
  };
821
820
  }
822
- }), kt = { class: "flex flex-col gap-8 w-full" }, Vt = /* @__PURE__ */ J({
821
+ }), wt = { class: "flex flex-col gap-8 w-full" }, Vt = /* @__PURE__ */ J({
823
822
  __name: "ApplyProductDialog",
824
823
  props: {
825
824
  categories: { default: () => [] },
@@ -843,12 +842,12 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
843
842
  var y, p;
844
843
  (p = (y = t.value) == null ? void 0 : y.validateInputs) == null || p.call(y);
845
844
  }
846
- function w() {
845
+ function k() {
847
846
  u("update:setting", q(a)), u("submit");
848
847
  }
849
848
  const { t: h } = U();
850
849
  return (y, p) => {
851
- const A = k("FmChip"), c = k("FmForm"), v = k("FmButton"), b = k("FmSideSheet");
850
+ const A = w("FmChip"), c = w("FmForm"), v = w("FmButton"), b = w("FmSideSheet");
852
851
  return S(), Q(b, {
853
852
  modelValue: E(m),
854
853
  "onUpdate:modelValue": p[4] || (p[4] = (d) => te(m) ? m.value = d : null),
@@ -858,14 +857,14 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
858
857
  "max-width": 500
859
858
  }, {
860
859
  default: O(() => [
861
- r("div", kt, [
860
+ r("div", wt, [
862
861
  r("div", null, [
863
862
  B(A, { label: "Menu v3" })
864
863
  ]),
865
864
  B(c, {
866
865
  ref_key: "formRef",
867
866
  ref: t,
868
- onValidationSuccess: p[2] || (p[2] = (d) => w())
867
+ onValidationSuccess: p[2] || (p[2] = (d) => k())
869
868
  }, {
870
869
  default: O(() => [
871
870
  B(ie, {
@@ -921,7 +920,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
921
920
  const t = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) === null)), m = R(() => a.bindings.filter((d) => {
922
921
  const l = s.menus.find((i) => i._id === d.productId);
923
922
  return l ? (l == null ? void 0 : l.category) === null : !1;
924
- })), I = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) !== null)), w = R(() => a.bindings.filter((d) => {
923
+ })), I = R(() => s.menus.filter((d) => (d == null ? void 0 : d.category) !== null)), k = R(() => a.bindings.filter((d) => {
925
924
  const l = s.menus.find((i) => i._id === d.productId);
926
925
  return l ? (l == null ? void 0 : l.category) !== null : !1;
927
926
  }));
@@ -929,7 +928,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
929
928
  a.bindings = [...m.value, ...d];
930
929
  }
931
930
  function y(d) {
932
- a.bindings = [...w.value, ...d];
931
+ a.bindings = [...k.value, ...d];
933
932
  }
934
933
  const p = j(), A = ne(s, "show");
935
934
  function c() {
@@ -941,7 +940,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
941
940
  }
942
941
  const { t: b } = U();
943
942
  return (d, l) => {
944
- const i = k("FmChip"), o = k("FmForm"), f = k("FmButton"), V = k("FmSideSheet");
943
+ const i = w("FmChip"), o = w("FmForm"), f = w("FmButton"), V = w("FmSideSheet");
945
944
  return S(), Q(V, {
946
945
  modelValue: E(A),
947
946
  "onUpdate:modelValue": l[4] || (l[4] = (e) => te(A) ? A.value = e : null),
@@ -964,7 +963,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
964
963
  B(ie, {
965
964
  categories: d.categories,
966
965
  variants: d.variants,
967
- bindings: w.value,
966
+ bindings: k.value,
968
967
  menus: I.value,
969
968
  "onUpdate:bindings": l[0] || (l[0] = (e) => h(e))
970
969
  }, null, 8, ["categories", "variants", "bindings", "menus"]),
@@ -996,7 +995,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
996
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({
997
996
  __name: "FoodMarketHub",
998
997
  setup(C) {
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(() => {
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(() => {
1000
999
  var o;
1001
1000
  return (o = g.currentBusiness.value) == null ? void 0 : o.menuVersion;
1002
1001
  });
@@ -1030,7 +1029,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1030
1029
  }
1031
1030
  const { t: i } = U();
1032
1031
  return (o, f) => {
1033
- const V = k("FmCardSection"), e = k("FmCard");
1032
+ const V = w("FmCardSection"), e = w("FmCard");
1034
1033
  return E(t).isEnabled && !E(t).isBusinessLocation ? (S(), M("div", Mt, [
1035
1034
  B(e, {
1036
1035
  class: G({
@@ -1067,7 +1066,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1067
1066
  p.value === "v3" ? (S(), Q(Vt, {
1068
1067
  key: 0,
1069
1068
  menus: m.value,
1070
- variants: w.value,
1069
+ variants: k.value,
1071
1070
  categories: h.value,
1072
1071
  setting: E(t).state.setting,
1073
1072
  "onUpdate:setting": f[1] || (f[1] = (n) => E(t).state.setting = n),
@@ -1079,7 +1078,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1079
1078
  }, null, 8, ["menus", "variants", "categories", "setting", "show", "groups", "loading"])) : (S(), Q(Lt, {
1080
1079
  key: 1,
1081
1080
  menus: m.value,
1082
- variants: w.value,
1081
+ variants: k.value,
1083
1082
  categories: h.value,
1084
1083
  setting: E(t).state.setting,
1085
1084
  "onUpdate:setting": f[4] || (f[4] = (n) => E(t).state.setting = n),
@@ -1116,7 +1115,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1116
1115
  setup(C, { emit: g }) {
1117
1116
  const s = C, u = R(() => s.modelValue), a = g;
1118
1117
  return (t, m) => {
1119
- const I = k("FmSelect"), w = k("FmButton"), h = k("FmIcon");
1118
+ const I = w("FmSelect"), k = w("FmButton"), h = w("FmIcon");
1120
1119
  return S(), M("div", Tt, [
1121
1120
  r("div", Qt, [
1122
1121
  B(I, {
@@ -1127,7 +1126,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1127
1126
  "model-value": u.value,
1128
1127
  "onUpdate:modelValue": m[0] || (m[0] = (y) => a("update:modelValue", y))
1129
1128
  }, null, 8, ["items", "model-value"]),
1130
- u.value.netsuiteId ? (S(), Q(w, {
1129
+ u.value.netsuiteId ? (S(), Q(k, {
1131
1130
  key: 0,
1132
1131
  variant: "secondary",
1133
1132
  label: "Clear",
@@ -1220,7 +1219,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1220
1219
  });
1221
1220
  }
1222
1221
  }
1223
- ], t = C, m = g, I = j({}), w = j(), h = j(""), y = R(() => t.nsLocationsNotBeingUsed.map((c) => ({
1222
+ ], t = C, m = g, I = j({}), k = j(), h = j(""), y = R(() => t.nsLocationsNotBeingUsed.map((c) => ({
1224
1223
  label: c.name,
1225
1224
  value: c
1226
1225
  }))), p = R(() => Object.values(I.value).length === 0 || Object.values(I.value).some(
@@ -1242,7 +1241,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1242
1241
  }
1243
1242
  }
1244
1243
  return (c, v) => {
1245
- const b = k("FmTable"), d = k("FmForm"), l = k("FmSpacer"), i = k("FmButton"), o = k("FmDialog");
1244
+ const b = w("FmTable"), d = w("FmForm"), l = w("FmSpacer"), i = w("FmButton"), o = w("FmDialog");
1246
1245
  return S(), Q(o, {
1247
1246
  modelValue: C.showDialog,
1248
1247
  "onUpdate:modelValue": v[2] || (v[2] = (f) => c.$emit("update:showDialog", f)),
@@ -1266,13 +1265,13 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1266
1265
  B(d, {
1267
1266
  ref: "formRef",
1268
1267
  class: "mb-4",
1269
- "model-value": w.value,
1270
- "onUpdate:modelValue": v[1] || (v[1] = (f) => w.value = f)
1268
+ "model-value": k.value,
1269
+ "onUpdate:modelValue": v[1] || (v[1] = (f) => k.value = f)
1271
1270
  }, {
1272
1271
  default: O(() => [
1273
1272
  B(b, {
1274
- modelValue: w.value,
1275
- "onUpdate:modelValue": v[0] || (v[0] = (f) => w.value = f),
1273
+ modelValue: k.value,
1274
+ "onUpdate:modelValue": v[0] || (v[0] = (f) => k.value = f),
1276
1275
  "row-data": t.fmLocationNotYetConfigured,
1277
1276
  "column-defs": a,
1278
1277
  "search-value": h.value,
@@ -1307,7 +1306,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1307
1306
  for (const o of Object.keys(t.setting))
1308
1307
  I[o] = t.setting[o];
1309
1308
  });
1310
- const w = j(), h = ne(t, "show"), y = j(), p = j(""), A = R(() => t.setting.locations.filter(
1309
+ const k = j(), h = ne(t, "show"), y = j(), p = j(""), A = R(() => t.setting.locations.filter(
1311
1310
  (i) => i.name.toLowerCase().includes(p.value.toLowerCase()) || i.netSuiteId.toLowerCase().includes(p.value.toLowerCase())
1312
1311
  )), c = [
1313
1312
  {
@@ -1376,7 +1375,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1376
1375
  (i) => !t.setting.locations.some((o) => o.netSuiteId === i.netsuiteId)
1377
1376
  ));
1378
1377
  return (i, o) => {
1379
- const f = k("FmChip"), V = k("FmSearch"), e = k("FmTable"), n = k("FmButton"), x = k("FmSideSheet");
1378
+ const f = w("FmChip"), V = w("FmSearch"), e = w("FmTable"), n = w("FmButton"), x = w("FmSideSheet");
1380
1379
  return S(), Q(x, {
1381
1380
  modelValue: E(h),
1382
1381
  "onUpdate:modelValue": o[6] || (o[6] = (L) => te(h) ? h.value = L : null),
@@ -1422,7 +1421,7 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1422
1421
  o[2] || (o[2] = (F) => a.value = F),
1423
1422
  o[3] || (o[3] = (F) => a.value = F)
1424
1423
  ],
1425
- formRef: w.value,
1424
+ formRef: k.value,
1426
1425
  fmLocationNotYetConfigured: d.value,
1427
1426
  nsLocationsNotBeingUsed: l.value
1428
1427
  }, null, 8, ["show-dialog", "formRef", "fmLocationNotYetConfigured", "nsLocationsNotBeingUsed"])
@@ -1468,18 +1467,18 @@ const yt = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
1468
1467
  }
1469
1468
  }
1470
1469
  });
1471
- const { breakpoints: m } = oe(), I = R(() => m.value.xs || m.value.sm), w = R(() => I.value);
1470
+ const { breakpoints: m } = oe(), I = R(() => m.value.xs || m.value.sm), k = R(() => I.value);
1472
1471
  async function h() {
1473
1472
  console.log("updateNetSuiteIntegration called");
1474
1473
  }
1475
1474
  const { t: y } = U();
1476
1475
  return (p, A) => {
1477
- const c = k("FmCardSection"), v = k("FmCard");
1476
+ const c = w("FmCardSection"), v = w("FmCard");
1478
1477
  return E(g).isEnabled && E(g).isBusinessLocation ? (S(), M("div", on, [
1479
1478
  B(v, {
1480
1479
  class: G({
1481
- "w-full": w.value,
1482
- "w-1/2": !w.value,
1480
+ "w-full": k.value,
1481
+ "w-1/2": !k.value,
1483
1482
  border: !0,
1484
1483
  "border-fm-color-neutral-gray-100": !0,
1485
1484
  "cursor-pointer": !0,
@@ -1548,12 +1547,12 @@ async function mn(C, g, s) {
1548
1547
  var m;
1549
1548
  const u = await fn(s), a = [], t = {};
1550
1549
  for (const I in u) {
1551
- const w = u[I];
1552
- for (const h of w) {
1550
+ const k = u[I];
1551
+ for (const h of k) {
1553
1552
  const y = h.itemCode, p = h.itemName, A = h.physicalQty, c = h.customCost;
1554
1553
  if (y === "" || y === "undefined") {
1555
1554
  a.push({
1556
- row: w.indexOf(h) + 17,
1555
+ row: k.indexOf(h) + 17,
1557
1556
  itemCode: y,
1558
1557
  itemName: p,
1559
1558
  message: "Item code is empty or undefined"
@@ -1563,13 +1562,13 @@ async function mn(C, g, s) {
1563
1562
  const v = g.find((o) => o.code === y);
1564
1563
  if (!v) {
1565
1564
  a.push({
1566
- row: w.indexOf(h) + 17,
1565
+ row: k.indexOf(h) + 17,
1567
1566
  itemCode: y,
1568
1567
  itemName: p,
1569
1568
  qty: A,
1570
1569
  message: "Item not found in inventory"
1571
1570
  }), console.error(
1572
- `${w.indexOf(h) + 17} Item not found: ${y} ${p} ${A}`
1571
+ `${k.indexOf(h) + 17} Item not found: ${y} ${p} ${A}`
1573
1572
  );
1574
1573
  continue;
1575
1574
  }
@@ -1617,7 +1616,7 @@ async function mn(C, g, s) {
1617
1616
  async function fn(C) {
1618
1617
  const g = await new Promise((t, m) => {
1619
1618
  const I = new FileReader();
1620
- I.onload = (w) => t(w.target.result), I.onerror = m, I.readAsArrayBuffer(C);
1619
+ I.onload = (k) => t(k.target.result), I.onerror = m, I.readAsArrayBuffer(C);
1621
1620
  }), s = Le(g, { type: "array" }), u = s.SheetNames, a = {};
1622
1621
  for (const t of u) {
1623
1622
  const m = await An(s.Sheets[t]);
@@ -1645,10 +1644,10 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1645
1644
  class: /* @__PURE__ */ G(["fm-corner-radius-md p-16 flex items-center gap-16"])
1646
1645
  }, hn = {
1647
1646
  class: /* @__PURE__ */ G(["fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center gap-3"])
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({
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({
1649
1648
  __name: "XilnexOpeningImport",
1650
1649
  setup(C) {
1651
- const g = Je(), s = ce(), u = Ne(), a = Re(), t = fe(), m = R(() => [
1650
+ const g = Ye(), s = ce(), u = Ne(), a = Re(), t = fe(), m = R(() => [
1652
1651
  {
1653
1652
  value: "xilnex",
1654
1653
  label: "Xilnex",
@@ -1663,7 +1662,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1663
1662
  disabledReason: "Current location is not binded to NetSuite"
1664
1663
  }
1665
1664
  ] : []
1666
- ]), I = j(m.value[0].value), { t: w } = Ze(), h = j(null), y = j(), p = j(""), A = j([]), c = j([]), v = [
1665
+ ]), I = j(m.value[0].value), { t: k } = Ze(), h = j(null), y = j(), p = j(""), A = j([]), c = j([]), v = [
1667
1666
  {
1668
1667
  id: "ingredient",
1669
1668
  header: () => "Ingredient",
@@ -1819,7 +1818,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1819
1818
  return isNaN(e.getTime()) ? null : Oe(e);
1820
1819
  });
1821
1820
  return (e, n) => {
1822
- const x = k("FmLabel"), L = k("FmField"), F = k("FmSimpleDatePicker"), D = k("FmButton"), Y = k("FmRadio"), N = k("FmRadioGroup"), P = k("FmTable");
1821
+ const x = w("FmLabel"), L = w("FmField"), F = w("FmSimpleDatePicker"), D = w("FmButton"), Y = w("FmRadio"), N = w("FmRadioGroup"), P = w("FmTable");
1823
1822
  return S(), M("div", pn, [
1824
1823
  r("div", gn, [
1825
1824
  B(x, { label: "Latest closing" })
@@ -1833,7 +1832,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1833
1832
  ]),
1834
1833
  _: 1
1835
1834
  }),
1836
- E(g).state.closingDocumentId ? (S(), M("div", kn, n[6] || (n[6] = [
1835
+ E(g).state.closingDocumentId ? (S(), M("div", wn, n[6] || (n[6] = [
1837
1836
  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)
1838
1837
  ]))) : (S(), M("div", vn, [
1839
1838
  B(F, {
@@ -1872,7 +1871,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1872
1871
  r("div", hn, [
1873
1872
  r("div", xn, H(h.value.name), 1),
1874
1873
  B(D, {
1875
- label: E(w)("inventory.ingredient.import.replaceFile"),
1874
+ label: E(k)("inventory.ingredient.import.replaceFile"),
1876
1875
  variant: "secondary",
1877
1876
  "prepend-icon": "autorenew",
1878
1877
  onClick: X
@@ -1938,7 +1937,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1938
1937
  "column-defs": b
1939
1938
  }, null, 8, ["row-data"])
1940
1939
  ], 64)) : T("", !0),
1941
- r("div", wn, [
1940
+ r("div", kn, [
1942
1941
  c.value.length > 0 && !E(g).state.closingDocumentId ? (S(), Q(D, {
1943
1942
  key: 0,
1944
1943
  class: "ml-auto mt-4",
@@ -1965,7 +1964,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1965
1964
  emits: ["update:show"],
1966
1965
  setup(C, { emit: g }) {
1967
1966
  var p;
1968
- const s = Ae(), a = ne(C, "show"), { t } = U(), m = g, I = $(), w = ((p = I._currentLocation) == null ? void 0 : p.type) || "", h = [
1967
+ const s = Ae(), a = ne(C, "show"), { t } = U(), m = g, I = $(), k = ((p = I._currentLocation) == null ? void 0 : p.type) || "", h = [
1969
1968
  { label: ee(
1970
1969
  "openingBalance"
1971
1970
  /* OPENING_BALANCE */
@@ -1977,7 +1976,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
1977
1976
  ], y = j(h[0]);
1978
1977
  return (A, c) => {
1979
1978
  var i;
1980
- const v = k("FmIcon"), b = k("FmButtonGroup"), d = k("FmButton"), l = k("FmSideSheet");
1979
+ const v = w("FmIcon"), b = w("FmButtonGroup"), d = w("FmButton"), l = w("FmSideSheet");
1981
1980
  return S(), Q(l, {
1982
1981
  modelValue: E(a),
1983
1982
  "onUpdate:modelValue": c[2] || (c[2] = (o) => te(a) ? a.value = o : null),
@@ -2022,7 +2021,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2022
2021
  c[3] || (c[3] = r("div", { class: "fm-typo-en-title-md-600" }, "Data migration (Xilnex)", -1)),
2023
2022
  r("div", Mn, [
2024
2023
  B(v, {
2025
- name: E(w),
2024
+ name: E(k),
2026
2025
  size: "sm"
2027
2026
  }, null, 8, ["name"]),
2028
2027
  r("div", Nn, H((o = E(I)._currentLocation) == null ? void 0 : o.name), 1)
@@ -2044,13 +2043,13 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2044
2043
  }), Dn = { key: 0 }, Xn = /* @__PURE__ */ J({
2045
2044
  __name: "XilnexView",
2046
2045
  setup(C) {
2047
- const g = Ke(), s = $(), u = j(!1);
2046
+ const g = De(), s = $(), u = j(!1);
2048
2047
  async function a() {
2049
2048
  u.value = !0, console.log("Opening Xilnex migration dialog");
2050
2049
  }
2051
2050
  const { breakpoints: t } = oe(), m = R(() => t.value.xs || t.value.sm), I = R(() => m.value);
2052
- return (w, h) => {
2053
- const y = k("FmCardSection"), p = k("FmCard");
2051
+ return (k, h) => {
2052
+ const y = w("FmCardSection"), p = w("FmCard");
2054
2053
  return E(g).enabledXilnexOpeningMigration && !E(s).businessLevel ? (S(), M("div", Dn, [
2055
2054
  B(p, {
2056
2055
  class: G({
@@ -2096,15 +2095,15 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2096
2095
  }, Jn = ["src"], Yn = {
2097
2096
  class: "text-xs text-neutral-400 text-center",
2098
2097
  style: { "max-width": "25rem" }
2099
- }, Kn = { key: 2 }, eo = /* @__PURE__ */ J({
2098
+ }, Kn = { key: 2 }, $n = /* @__PURE__ */ J({
2100
2099
  __name: "IntegrationView",
2101
2100
  setup(C) {
2102
- const g = $(), s = j(!1), u = Ye(), { breakpoints: a } = oe(), t = R(() => a.value.xs || a.value.sm), { t: m } = U();
2101
+ const g = $(), s = j(!1), u = Ke(), { breakpoints: a } = oe(), t = R(() => a.value.xs || a.value.sm), { t: m } = U();
2103
2102
  return ae(async () => {
2104
2103
  s.value = !0, await u.fetchFoodMarketHubSetting(), await u.fetchNetSuiteSetting(), s.value = !1;
2105
- }), (I, w) => {
2106
- const h = k("FmCircularProgress");
2107
- return S(), Q(De, {
2104
+ }), (I, k) => {
2105
+ const h = w("FmCircularProgress");
2106
+ return S(), Q(Xe, {
2108
2107
  title: E(m)("inventory.integration.title")
2109
2108
  }, {
2110
2109
  default: O(() => [
@@ -2117,7 +2116,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2117
2116
  }
2118
2117
  ])
2119
2118
  }, [
2120
- B(Xe, {
2119
+ B(Te, {
2121
2120
  "change-location": "",
2122
2121
  showBusiness: ""
2123
2122
  }),
@@ -2130,7 +2129,7 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2130
2129
  alt: "List is empty"
2131
2130
  }, null, 8, Jn)
2132
2131
  ]),
2133
- w[0] || (w[0] = r("div", { class: "font-bold text-lg" }, "Integration", -1)),
2132
+ k[0] || (k[0] = r("div", { class: "font-bold text-lg" }, "Integration", -1)),
2134
2133
  r("div", Yn, H(E(m)("inventory.integration.description")), 1)
2135
2134
  ])) : (S(), M("div", Kn, [
2136
2135
  B(cn),
@@ -2145,5 +2144,5 @@ const pn = { class: "flex flex-col gap-4" }, gn = { class: "flex flex-col" }, vn
2145
2144
  }
2146
2145
  });
2147
2146
  export {
2148
- eo as default
2147
+ $n as default
2149
2148
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-dQF7h_Jp.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU9j1Q8M.js";
2
2
  export {
3
3
  f as default
4
4
  };