@feedmepos/mf-inventory-portal 1.7.11-dev.0 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/App-C_6oyWjy.js +311 -0
  2. package/dist/{ApprovalView-3pDiNOMO.js → ApprovalView-Dn0-OeH0.js} +9 -9
  3. package/dist/{BindingsDialog-CEXDujwo.js → BindingsDialog-BVVu8xWS.js} +2 -2
  4. package/dist/{BindingsPicker-UfogQ71P.js → BindingsPicker-krMKURKj.js} +2 -2
  5. package/dist/{BindingsTable-qxNINfoB.js → BindingsTable-CLiGmTHB.js} +4 -4
  6. package/dist/BulkReceiveRequestView-FKdv9h5_.js +2595 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Dyy-mkOF.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BYtJnIsF.js} +1 -1
  8. package/dist/{ClosingDraftView-DgLOKZZv.js → ClosingDraftView-fUMDbnI6.js} +1201 -1235
  9. package/dist/{ClosingHistoryView-BMcoewSW.js → ClosingHistoryView-Cfvkxwlh.js} +5 -5
  10. package/dist/{ClosingTemplateView-C85_eRfx.js → ClosingTemplateView-DtIeSknz.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CIXV7TwL.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Bz7CjD7v.js} +1 -1
  12. package/dist/{DefaultView-BCPdBP97.js → DefaultView-BbN62d8p.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-DvKOE8bs.js → DeliveryOrderPrintPreview-91UH3oJ8.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D0XF1ILm.js → EmailDialog.vue_vue_type_script_setup_true_lang-DDunnzgw.js} +4106 -4111
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-kTHffgJ0.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CKlpaNGP.js} +6 -6
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D6T3zCf3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOqGzn08.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NuIzfwdk.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxdQsFqQ.js} +2 -2
  18. package/dist/{FmMultiselectDialog-CE-n4_oS.js → FmMultiselectDialog-BEVkUX96.js} +1 -1
  19. package/dist/{FmMultiselectDialog-DAJZwLbn.js → FmMultiselectDialog-Dg70WmLs.js} +2 -2
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BKfT_BMX.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RQ44PYLb.js} +6 -6
  21. package/dist/{ImportView-CGgk98bu.js → ImportView-C0hAMz8m.js} +496 -499
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D19a-cBS.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C6SNYEJl.js} +1 -1
  23. package/dist/{IngredientGroupView-CQ-spqfv.js → IngredientGroupView-CRGyWM_X.js} +5 -5
  24. package/dist/{IngredientsView-BDuPrYSY.js → IngredientsView-C7CVkoou.js} +17 -18
  25. package/dist/{IntegrationExplorerView-DXMTYLFQ.js → IntegrationExplorerView-2nvAOHbA.js} +4 -4
  26. package/dist/{IntegrationView-B6qaoyfJ.js → IntegrationView-CYSaTE2T.js} +14 -14
  27. package/dist/{InventoryBindingForm-Cj5DSxr7.js → InventoryBindingForm-CezLMw2l.js} +1 -1
  28. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJ1HyFqS.js +441 -0
  29. package/dist/{InventoryBindingSummary-DTdjcASy.js → InventoryBindingSummary-QOztXyC8.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-L_Mk0z6y.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BT0zK5o_.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BnjSVqIF.js → PremiumBadge.vue_vue_type_script_setup_true_lang-_w5kZ9SM.js} +1 -1
  32. package/dist/{ProductionView-W2-oSNQn.js → ProductionView-BveNOlcK.js} +7 -7
  33. package/dist/{PublishView-DEX148S9.js → PublishView-bmecemJd.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-DN8TnmIP.js → PurchaseOrderPrintPreview-CDvO6BLm.js} +2 -2
  35. package/dist/{ReceiveRequestView-C3ExFs2T.js → ReceiveRequestView-CwVQ-KzO.js} +14 -14
  36. package/dist/RecipeView-B32tleCa.js +3584 -0
  37. package/dist/{SettingsView-Bv0BdRhB.js → SettingsView-DJcAum3t.js} +4 -4
  38. package/dist/{StockView-Cx2I8wc7.js → StockView-GDvWxpOJ.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D3AxBfTX.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DcCO7HHD.js} +1 -1
  40. package/dist/{SupplierView-n8tQo7GX.js → SupplierView-C3S8tTyF.js} +12 -12
  41. package/dist/{SurchargeView-BSq_i2LS.js → SurchargeView-skaVlUu3.js} +6 -6
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrVYEbqs.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BrBgjPjN.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DHbTvUSw.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BcvXD9Kt.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-AZjFZAHD.js → TransferDetails.vue_vue_type_script_setup_true_lang-BO6vRibE.js} +1575 -1639
  45. package/dist/{TransferTemplateView-D29atWbe.js → TransferTemplateView-j6GNvA2S.js} +20 -20
  46. package/dist/{UnitCostHistoryView-Bc75dnSv.js → UnitCostHistoryView-0H_0-DbA.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BL-N9tyu.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DJa1AaL2.js} +4 -4
  48. package/dist/{UnitView-CP452QJB.js → UnitView-CSD1Gnsb.js} +8 -8
  49. package/dist/{WarehouseView-hAFZ3OgC.js → WarehouseView-Cua66P5F.js} +5 -5
  50. package/dist/{WastageTemplateView-BHoD95B4.js → WastageTemplateView-kvuJXBiI.js} +14 -14
  51. package/dist/api/inventory.d.ts +2 -0
  52. package/dist/api/purchase-order.d.ts +0 -2
  53. package/dist/{app-DMuIqNOV.js → app-Bon7qTu5.js} +9140 -10029
  54. package/dist/app.d.ts +9 -900
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-vfraoomZ.js → closing-template-BjekEF5s.js} +1 -1
  57. package/dist/components/MultiLocationSelector.vue.d.ts +2 -0
  58. package/dist/{date2-nHWr0vbq.js → date2-BXEHP1It.js} +5 -5
  59. package/dist/{dayjs.min-CWDZGPnC.js → dayjs.min-iFbgqyzU.js} +1 -1
  60. package/dist/{decimal-BRpZx0Ku.js → decimal-BIi1j8fj.js} +2 -2
  61. package/dist/{defineDeepModel-Cpd1mYyq.js → defineDeepModel-IMW3a6OW.js} +1 -1
  62. package/dist/{duplicate-template-D0SC2p3z.js → duplicate-template-DFciXweZ.js} +1 -1
  63. package/dist/{feature-_LWb4rW0.js → feature-CNI4MMSc.js} +2 -2
  64. package/dist/{format-time-from-id-Dl3MwzI7.js → format-time-from-id-DDH3ceGb.js} +1 -1
  65. package/dist/{format-unit-display-DWI0rLun.js → format-unit-display-Dp383g0F.js} +27 -27
  66. package/dist/{import-export.helper-B0Y6WK3R.js → import-export.helper-BPK_S1mX.js} +6 -6
  67. package/dist/{index-7XQuT32d.js → index-BbhrAzLH.js} +1 -1
  68. package/dist/{index-BSnZJjFV.js → index-BeP05_CC.js} +3 -3
  69. package/dist/{index-BpvlLCUv.js → index-D20KUiXn.js} +3232 -3306
  70. package/dist/{inventory-core-dart.default-DGcUQGOR.js → inventory-core-dart.default-B7F_lZ7E.js} +1 -1
  71. package/dist/{lz-string-Lbge8hci.js → lz-string-C_xIP_0T.js} +1 -1
  72. package/dist/{netsuite-CFXLrvd1.js → netsuite-a6M2ml9V.js} +2 -3
  73. package/dist/{number-B7y_oaIm.js → number-4OG2ZSmc.js} +3 -3
  74. package/dist/{predefined-templates-SX1B-fCF.js → predefined-templates-CjXICvUU.js} +1 -1
  75. package/dist/{purchase-order-template-qKmMGW-y.js → purchase-order-template-CXdomQWy.js} +1 -1
  76. package/dist/{recalculationUtils-DdG6rZr1.js → recalculationUtils-CEAhd7BW.js} +1 -1
  77. package/dist/{rules-DRizXY3Q.js → rules-Dvr47IAA.js} +2 -2
  78. package/dist/{stock-CAlt5MDT.js → stock-Caf05ukJ.js} +3 -3
  79. package/dist/{stock-BAMK_7xp.js → stock-DEOhLNew.js} +1 -1
  80. package/dist/stores/bulk-job.d.ts +0 -13
  81. package/dist/stores/location.d.ts +14 -0
  82. package/dist/style.css +1 -1
  83. package/dist/{supplier-B34rnmVy.js → supplier-BvHSfhV9.js} +2 -2
  84. package/dist/{surcharge-CMBDRIiD.js → surcharge-Cu0KfPTD.js} +8 -8
  85. package/dist/tsconfig.app.tsbuildinfo +1 -1
  86. package/dist/{uom-rules-DE4OV7iK.js → uom-rules-D71zOsgd.js} +1 -1
  87. package/dist/{use-ingredient-select-dialog-4yUGH4g0.js → use-ingredient-select-dialog-DZzvq4UK.js} +2 -2
  88. package/dist/{use-inventory-binding-dialog-CY42PPSW.js → use-inventory-binding-dialog-C1focrkJ.js} +2 -2
  89. package/dist/{use-template-enabled-locations-BhYnNMZ_.js → use-template-enabled-locations-DMcKtqkt.js} +2 -2
  90. package/dist/{use-transfer-locations-agCdJKE0.js → use-transfer-locations-DJttEyyP.js} +2 -2
  91. package/dist/{useHrmPermission-BQxDr0db.js → useHrmPermission-DaLaaQR9.js} +1 -1
  92. package/dist/{useNavigationMenu-Cm5dPWI-.js → useNavigationMenu-CoX50gGK.js} +2 -2
  93. package/dist/{useSseClient-DkX7GX1_.js → useSseClient-DTpRYQC7.js} +1 -1
  94. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -2
  95. package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -2
  96. package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -4
  97. package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +9 -23
  98. package/dist/views/recipe/composables/use-recipe-table.d.ts +0 -11
  99. package/dist/{vue-i18n-CsKZo5u4.js → vue-i18n-BC7M3p_r.js} +460 -460
  100. package/dist/{xlsx.util-Cy5DyLlu.js → xlsx.util-D7HlgjJM.js} +2 -2
  101. package/package.json +3 -3
  102. package/dist/App-8RkTRU8A.js +0 -1434
  103. package/dist/BulkReceiveRequestView-BOz0aMxF.js +0 -2657
  104. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bj4R7KQF.js +0 -563
  105. package/dist/RecipeView-BYeKfM6_.js +0 -3625
  106. package/dist/api/changelog.d.ts +0 -132
  107. package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +0 -19
  108. package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +0 -2
  109. package/dist/views/changelog/components/ChangelogPanel.spec.d.ts +0 -1
  110. package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +0 -20
  111. package/dist/views/changelog/composables/change-path.d.ts +0 -10
  112. package/dist/views/changelog/composables/commit-message.d.ts +0 -9
  113. package/dist/views/changelog/composables/commit-message.spec.d.ts +0 -1
  114. package/dist/views/changelog/composables/json-line-diff.d.ts +0 -10
  115. package/dist/views/changelog/composables/json-line-diff.spec.d.ts +0 -1
  116. package/dist/views/changelog/composables/use-changelog.d.ts +0 -90
  117. package/dist/views/changelog/composables/use-changelog.spec.d.ts +0 -1
  118. package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +0 -97
  119. package/dist/views/changelog/composables/use-inventory-record-commits.spec.d.ts +0 -1
  120. package/dist/views/changelog/composables/use-snapshot-diff.d.ts +0 -29
  121. package/dist/views/changelog/composables/use-snapshot-diff.spec.d.ts +0 -1
  122. package/dist/views/changelog/composables/value-tree.d.ts +0 -14
  123. package/dist/views/changelog/composables/value-tree.spec.d.ts +0 -1
  124. package/dist/views/import/helper/submit-rows.d.ts +0 -13
  125. package/dist/views/import/helper/submit-rows.spec.d.ts +0 -1
  126. package/dist/views/ingredients/components/inventory-binding/RecipeBindingBreakdown.vue.d.ts +0 -25
  127. package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.d.ts +0 -34
  128. package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.spec.d.ts +0 -1
  129. package/dist/views/receive-request/components/email-dialog/EmailDialog.spec.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, createElementBlock as s, openBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { a, e as y } from "./number-B7y_oaIm.js";
2
+ import { a, e as y } from "./number-4OG2ZSmc.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,5 +1,5 @@
1
1
  import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, createElementBlock as B, openBlock as F, createVNode as b, createElementVNode as c, unref as i, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, c as P, j as oe, u as Re } from "./app-DMuIqNOV.js";
2
+ import { a as L, c as P, i as oe, u as Re } from "./app-Bon7qTu5.js";
3
3
  import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { F as S } from "./form-mode.enum-BKiNVH6A.js";
5
5
  import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
@@ -8,11 +8,11 @@ import { D as ie, R as K } from "./row-action.enum-ncgDYAjP.js";
8
8
  import { c as Ve } from "./component-BmLAdDiY.js";
9
9
  import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
10
10
  import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
11
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NuIzfwdk.js";
12
- import { d as de } from "./defineDeepModel-Cpd1mYyq.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-DRizXY3Q.js";
11
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxdQsFqQ.js";
12
+ import { d as de } from "./defineDeepModel-IMW3a6OW.js";
13
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-Dvr47IAA.js";
14
14
  import { L as Ue, P as Be, D as Pe } from "./app-C39bYJmq.js";
15
- import { u as Le } from "./FmMultiselectDialog-CE-n4_oS.js";
15
+ import { u as Le } from "./FmMultiselectDialog-BEVkUX96.js";
16
16
  import { r as me } from "./random-CSbEbElR.js";
17
17
  import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
18
18
  const H = ue(
@@ -1,5 +1,5 @@
1
1
  import { ref as P, defineComponent as pe, computed as h, resolveComponent as T, createElementBlock as w, openBlock as c, Fragment as ee, createCommentVNode as z, createVNode as s, unref as l, withModifiers as Bt, withCtx as g, createElementVNode as n, renderList as de, createBlock as O, toDisplayString as A, normalizeClass as ne, h as X, renderSlot as Te, createSlots as Ge, createTextVNode as Je, mergeModels as dt, onMounted as Ot, watch as Tt, useModel as Dt, isRef as ut, normalizeStyle as Nt, Teleport as mt, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
2
- import { a as Ae, c as wt, S as jt, g as ct, e as pt, f as Wt, h as vt, i as ft, j as yt, k as gt, u as qt, l as Ht } from "./app-DMuIqNOV.js";
2
+ import { a as Ae, c as wt, S as jt, g as ct, d as pt, e as Wt, f as vt, h as ft, i as yt, j as gt, u as qt, k as Ht } from "./app-Bon7qTu5.js";
3
3
  import { useDialog as Ze, useSnackbar as $e, components as Le, useProxiedModel as bt, useDialogChild as Yt, useBreakpoints as Kt } from "@feedmepos/ui-library";
4
4
  import { i as Gt, _ as Jt, m as Zt } from "./menu-usage-module-BdjYEk3s.js";
5
5
  import { F as q } from "./form-mode.enum-BKiNVH6A.js";
@@ -7,26 +7,26 @@ import { useI18n as ve, useCoreStore as Qe } from "@feedmepos/mf-common";
7
7
  import { defineStore as Qt, storeToRefs as Xt } from "pinia";
8
8
  import { D as ht, R as Re } from "./row-action.enum-ncgDYAjP.js";
9
9
  import { c as en } from "./component-BmLAdDiY.js";
10
- import { u as Ee, _ as tn } from "./netsuite-CFXLrvd1.js";
10
+ import { u as Ee, _ as tn } from "./netsuite-a6M2ml9V.js";
11
11
  import { F as De } from "./FmAdminBadge-DlplQOHb.js";
12
12
  import { u as nn, _ as ln } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
13
- import { A as Oe, R as je, U as on, M as an } from "./rules-DRizXY3Q.js";
14
- import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D3AxBfTX.js";
15
- import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bj4R7KQF.js";
16
- import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-D19a-cBS.js";
17
- import { u as Vt } from "./feature-_LWb4rW0.js";
18
- import { t as un, a as mn, g as cn } from "./number-B7y_oaIm.js";
13
+ import { A as Oe, R as je, U as on, M as an } from "./rules-Dvr47IAA.js";
14
+ import { g as sn, _ as We, S as qe, a as rn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DcCO7HHD.js";
15
+ import { _ as dn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJ1HyFqS.js";
16
+ import { _ as He } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-C6SNYEJl.js";
17
+ import { u as Vt } from "./feature-CNI4MMSc.js";
18
+ import { t as un, a as mn, g as cn } from "./number-4OG2ZSmc.js";
19
19
  import { _ as ke } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js";
20
- import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-B0Y6WK3R.js";
20
+ import { d as Be, g as pn, e as vn, a as fn } from "./import-export.helper-BPK_S1mX.js";
21
21
  import { _ as yn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
22
- import { F as gn, a as Ye } from "./FmMultiselectDialog-DAJZwLbn.js";
23
- import { u as It } from "./purchase-order-template-qKmMGW-y.js";
24
- import { u as Ft, a as St } from "./closing-template-vfraoomZ.js";
22
+ import { F as gn, a as Ye } from "./FmMultiselectDialog-Dg70WmLs.js";
23
+ import { u as It } from "./purchase-order-template-CXdomQWy.js";
24
+ import { u as Ft, a as St } from "./closing-template-BjekEF5s.js";
25
25
  import { _ as bn, F as _t } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
26
- import { r as hn } from "./xlsx.util-Cy5DyLlu.js";
26
+ import { r as hn } from "./xlsx.util-D7HlgjJM.js";
27
27
  import { F as _n } from "./FmDroppableField-J0tG_U3w.js";
28
- import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NuIzfwdk.js";
29
- import { u as kn } from "./FmMultiselectDialog-CE-n4_oS.js";
28
+ import { _ as xn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxdQsFqQ.js";
29
+ import { u as kn } from "./FmMultiselectDialog-BEVkUX96.js";
30
30
  import { P as Tn, J as wn } from "./app-C39bYJmq.js";
31
31
  const Ke = Qt("ingredientForm", function() {
32
32
  const i = Ze(), k = $e(), d = Ae(), _ = P(!1), { t: F } = ve(), C = P();
@@ -507,8 +507,7 @@ const Ln = /* @__PURE__ */ pe({
507
507
  "onUpdate:modelValue": p,
508
508
  "exclude-binding-id": _.value,
509
509
  rules: [l(Oe)(1)],
510
- readonly: m.readonly,
511
- "allow-recipe-decimal": ""
510
+ readonly: m.readonly
512
511
  }, null, 8, ["id", "model-value", "exclude-binding-id", "rules", "readonly"])
513
512
  ], 64)) : z("", !0)
514
513
  ];
@@ -2207,7 +2206,7 @@ const Ln = /* @__PURE__ */ pe({
2207
2206
  default: g(() => [
2208
2207
  n("div", {
2209
2208
  class: ne([
2210
- "relative flex flex-col gap-8 max-h-full",
2209
+ "flex flex-col gap-8 max-h-full",
2211
2210
  {
2212
2211
  "p-0": oe.value,
2213
2212
  "px-24 ": !oe.value
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as ne, ref as f, computed as B, watch as Oe, onMounted as _e, resolveComponent as se, createElementBlock as a, openBlock as t, createElementVNode as e, createBlock as H, createCommentVNode as r, normalizeClass as j, createTextVNode as re, toDisplayString as o, createVNode as T, Fragment as M, renderList as X, unref as g, withCtx as te, withModifiers as de, withDirectives as Ve, withKeys as we, vModelText as Ue, h as q, watchEffect as Be } from "vue";
2
- import { d as Se, N as be, C as xe, u as Ce } from "./app-DMuIqNOV.js";
2
+ import { m as Se, N as be, C as xe, u as Ce } from "./app-Bon7qTu5.js";
3
3
  import { components as oe, useBreakpoints as Pe } from "@feedmepos/ui-library";
4
4
  import { _ as Ae } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
5
- import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NuIzfwdk.js";
6
- import { u as Ie, a as Te, S as ge } from "./netsuite-CFXLrvd1.js";
5
+ import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxdQsFqQ.js";
6
+ import { u as Ie, a as Te, S as ge } from "./netsuite-a6M2ml9V.js";
7
7
  import { P as he, J as ke, D as De } from "./app-C39bYJmq.js";
8
8
  import { useCoreStore as Le } from "@feedmepos/mf-common";
9
9
  import { _ as ye } from "./JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js";
10
- import { c as ue } from "./date2-nHWr0vbq.js";
10
+ import { b as ue } from "./date2-BXEHP1It.js";
11
11
  const ce = Se((W, P) => {
12
12
  const n = Le();
13
13
  function N() {
@@ -1,27 +1,27 @@
1
1
  import { defineComponent as W, mergeModels as gn, useModel as Nt, onMounted as Le, ref as O, computed as z, resolveComponent as L, createElementBlock as V, openBlock as A, createElementVNode as n, createBlock as H, toDisplayString as B, unref as F, createVNode as I, withCtx as M, Fragment as J, renderList as se, normalizeClass as ae, normalizeStyle as Dt, createSlots as Se, createCommentVNode as j, withModifiers as yn, reactive as it, watch as _e, isRef as Fe, h as N, Teleport as Te, createTextVNode as le, watchEffect as bn, withDirectives as ot, vShow as st, onUnmounted as xn } from "vue";
2
2
  import { _ as Lt } from "./empty-placeholder-B0QU467o.js";
3
- import { y as An, z as hn, c as pe, u as ye, A as In, a as je, N as Ze, B as rt, C as ve, D, w as Ae, E as Tt, G as Rt, s as Ye } from "./app-DMuIqNOV.js";
3
+ import { y as An, z as hn, c as pe, u as ye, A as In, a as je, N as Ze, B as rt, C as ve, D, w as Ae, E as Tt, G as Rt, s as Ye } from "./app-Bon7qTu5.js";
4
4
  import { useDialogChild as Mt, useDialog as Re, useProxiedModel as Ee, useSnackbar as ue, useBreakpoints as ut, components as te } from "@feedmepos/ui-library";
5
5
  import { _ as Sn } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
6
6
  import { useI18n as ie, useCoreStore as be } from "@feedmepos/mf-common";
7
- import { _ as wn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NuIzfwdk.js";
8
- import { u as Cn, a as kn, b as _n, c as Fn, d as En, e as Bn } from "./index-BSnZJjFV.js";
9
- import { b as Vn, d as Nn, s as Dn, r as Ln, c as Ot, u as Ut } from "./xlsx.util-Cy5DyLlu.js";
7
+ import { _ as wn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CxdQsFqQ.js";
8
+ import { u as Cn, a as kn, b as _n, c as Fn, d as En, e as Bn } from "./index-BeP05_CC.js";
9
+ import { b as Vn, d as Nn, s as Dn, r as Ln, c as Ot, u as Ut } from "./xlsx.util-D7HlgjJM.js";
10
10
  import { F as dt } from "./FmDroppableField-J0tG_U3w.js";
11
- import { f as ct, b as mt } from "./date2-nHWr0vbq.js";
12
- import { u as xe, a as Pe } from "./netsuite-CFXLrvd1.js";
13
- import { b as Tn, a as Rn } from "./FmMultiselectDialog-DAJZwLbn.js";
14
- import { R as Mn } from "./rules-DRizXY3Q.js";
11
+ import { f as ct, a as mt } from "./date2-BXEHP1It.js";
12
+ import { u as xe, a as Pe } from "./netsuite-a6M2ml9V.js";
13
+ import { b as Tn, a as Rn } from "./FmMultiselectDialog-Dg70WmLs.js";
14
+ import { R as Mn } from "./rules-Dvr47IAA.js";
15
15
  import { P as zt, J as jt, D as Pt } from "./app-C39bYJmq.js";
16
- import { u as On } from "./supplier-B34rnmVy.js";
17
- import { u as Qe } from "./vue-i18n-CsKZo5u4.js";
18
- import { _ as Un, a as zn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BKfT_BMX.js";
19
- import { a as jn } from "./number-B7y_oaIm.js";
16
+ import { u as On } from "./supplier-BvHSfhV9.js";
17
+ import { u as Qe } from "./vue-i18n-BC7M3p_r.js";
18
+ import { _ as Un, a as zn } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-RQ44PYLb.js";
19
+ import { a as jn } from "./number-4OG2ZSmc.js";
20
20
  import { F as pt } from "./FmAdminBadge-DlplQOHb.js";
21
- import { i as kt, _ as Pn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-kTHffgJ0.js";
21
+ import { i as kt, _ as Pn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CKlpaNGP.js";
22
22
  import { _ as We } from "./JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js";
23
23
  import "./dinero-DMLEtkS9.js";
24
- import { u as $t } from "./feature-_LWb4rW0.js";
24
+ import { u as $t } from "./feature-CNI4MMSc.js";
25
25
  const $n = "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";
26
26
  var Kt = { exports: {} };
27
27
  (function(S, c) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bj4R7KQF.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJ1HyFqS.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,441 @@
1
+ import { defineComponent as oe, computed as x, reactive as te, resolveComponent as B, createElementBlock as c, openBlock as d, createVNode as u, createElementVNode as n, createCommentVNode as v, withCtx as I, createBlock as w, toDisplayString as p, unref as i, Fragment as U, renderList as G, nextTick as le } from "vue";
2
+ import { a as ie, t as se, v as de, F as re } from "./app-Bon7qTu5.js";
3
+ import { a as h, c as ae } from "./number-4OG2ZSmc.js";
4
+ import { u as ue } from "./use-inventory-binding-dialog-C1focrkJ.js";
5
+ import { b as $, c as A } from "./rules-Dvr47IAA.js";
6
+ import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-RQ44PYLb.js";
7
+ import { useI18n as ye } from "@feedmepos/mf-common";
8
+ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, be = { class: "flex items-center" }, _e = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, ke = {
9
+ class: "flex items-center",
10
+ style: { "min-height": "48px" }
11
+ }, Be = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ie = { class: "flex flex-col" }, we = { class: "line-clamp-1" }, Fe = { class: "w-[200px]" }, Ue = {
12
+ key: 0,
13
+ class: "w-[52px]"
14
+ }, Ce = {
15
+ key: 0,
16
+ class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
17
+ }, Ee = {
18
+ key: 0,
19
+ class: "flex flex-col gap-16"
20
+ }, Ge = { class: "flex items-center" }, Ae = { class: "flex-1 fm-typo-en-title-sm-600" }, Re = { class: "flex flex-col" }, Se = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Pe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Te = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Me = {
21
+ key: 0,
22
+ class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400"
23
+ }, Ne = {
24
+ class: "flex items-center",
25
+ style: { "min-height": "48px" }
26
+ }, $e = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ze = { class: "flex flex-col" }, De = { class: "w-[200px]" }, Ke = {
27
+ key: 0,
28
+ class: "w-[52px]"
29
+ }, je = { class: "flex flex-col gap-16" }, Le = { class: "flex items-center" }, Oe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, We = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, qe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, He = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Je = {
30
+ key: 0,
31
+ class: "flex flex-col border-b border-fm-color-neutral-gray-100"
32
+ }, Qe = {
33
+ class: "flex items-center w-full",
34
+ style: { "min-height": "48px" }
35
+ }, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = {
36
+ key: 0,
37
+ class: "w-[52px]"
38
+ }, en = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, nn = {
39
+ key: 1,
40
+ class: "flex flex-col border-b border-fm-color-neutral-gray-100"
41
+ }, on = {
42
+ class: "flex items-center w-full",
43
+ style: { "min-height": "48px" }
44
+ }, tn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ln = { class: "line-clamp-1 w-full" }, sn = { class: "w-[150px]" }, dn = {
45
+ key: 0,
46
+ class: "w-[52px]"
47
+ }, rn = { class: "flex flex-col px-12 pb-4" }, vn = /* @__PURE__ */ oe({
48
+ __name: "InventoryBindingForm",
49
+ props: {
50
+ id: {},
51
+ modelValue: { default: () => [] },
52
+ excludeBindingId: {},
53
+ rules: { default: () => [] },
54
+ iframeMode: { type: Boolean },
55
+ disabled: { type: Boolean },
56
+ readonly: { type: Boolean },
57
+ enableIngredientGroup: { type: Boolean }
58
+ },
59
+ emits: ["update:modelValue", "click:pick-inventory-bindings"],
60
+ setup(z, { emit: D }) {
61
+ const { t: m } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), K = x(() => g.skuGroupById), s = z, b = D, S = x(() => se({
62
+ parentId: s.id,
63
+ bindings: s.modelValue,
64
+ recipes: g.recipes.map((t) => t._id === s.id ? {
65
+ ...t,
66
+ contains: s.modelValue
67
+ } : t),
68
+ skus: g.skus.map((t) => t._id === s.id ? {
69
+ ...t,
70
+ convert: {
71
+ inventoryBindings: s.modelValue
72
+ }
73
+ } : t),
74
+ skuGroups: g.skuGroups
75
+ }).inventoryBindings.filter((t) => "error" in t && t.error).map((t) => t).filter((t) => t.reason === de.enum.circularDependency)), C = x(
76
+ () => new Set(S.value.map((e) => {
77
+ var l;
78
+ return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
79
+ }))
80
+ ), j = x(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ue();
81
+ async function W() {
82
+ if (s.iframeMode) {
83
+ b("click:pick-inventory-bindings", "RECIPE");
84
+ return;
85
+ }
86
+ O(
87
+ s.modelValue,
88
+ (e) => b("update:modelValue", e),
89
+ s.id ? [s.id] : []
90
+ );
91
+ }
92
+ const q = x(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
93
+ async function H() {
94
+ Y(
95
+ s.modelValue,
96
+ (e) => b("update:modelValue", e),
97
+ s.id ? [s.id] : []
98
+ );
99
+ }
100
+ const P = x(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
101
+ async function J() {
102
+ if (s.iframeMode) {
103
+ b("click:pick-inventory-bindings", "SKU");
104
+ return;
105
+ }
106
+ L(
107
+ s.modelValue,
108
+ (e) => b("update:modelValue", e),
109
+ s.excludeBindingId,
110
+ s.id ? [s.id] : []
111
+ );
112
+ }
113
+ function T(e, l, t) {
114
+ const a = +l;
115
+ let f = t;
116
+ l.length > 0 && isFinite(a) ? f = t.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = t.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), b("update:modelValue", f);
117
+ }
118
+ function F(e, l) {
119
+ const t = l.filter((a) => a.id !== e);
120
+ b("update:modelValue", t);
121
+ }
122
+ function M(e) {
123
+ var t, a;
124
+ if (e.type !== re.enum.SKU)
125
+ throw new Error("Non-SKU binding does not have unit");
126
+ if (!((t = V.value[e.id]) == null ? void 0 : t.unit))
127
+ throw new Error(`Cannot find ingredient: ${e.id}`);
128
+ return (a = V.value[e.id]) == null ? void 0 : a.unit;
129
+ }
130
+ function Q(e) {
131
+ return !V.value[e.id];
132
+ }
133
+ function X(e) {
134
+ return { amount: e.amount, measurement: e.measurement };
135
+ }
136
+ function Z(e, l, t) {
137
+ const a = t.map((f) => f.id !== e ? f : {
138
+ ...f,
139
+ amount: l.amount,
140
+ measurement: l.measurement
141
+ });
142
+ b("update:modelValue", a);
143
+ }
144
+ const N = te({});
145
+ function ee(e) {
146
+ return N[e.id] ?? {
147
+ modelValue: {
148
+ amount: e.amount,
149
+ measurement: e.measurement
150
+ },
151
+ amountAsString: h(e.amount)
152
+ };
153
+ }
154
+ function ne(e, l) {
155
+ le(() => {
156
+ N[e.id] = {
157
+ modelValue: {
158
+ amount: e.amount,
159
+ measurement: e.measurement
160
+ },
161
+ amountAsString: l
162
+ };
163
+ });
164
+ }
165
+ return (e, l) => {
166
+ const t = B("FmFormGroup"), a = B("FmButton"), f = B("FmTooltip"), y = B("FmTextField"), E = B("FmIcon");
167
+ return d(), c("div", fe, [
168
+ u(t, {
169
+ disabled: e.disabled,
170
+ "model-value": e.modelValue,
171
+ rules: [
172
+ ...e.rules,
173
+ () => S.value.length ? "There is a binding error in your configuration" : !0
174
+ ]
175
+ }, {
176
+ label: I(() => l[0] || (l[0] = [
177
+ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Define the inventory bindings for this recipe or ingredient. ", -1)
178
+ ])),
179
+ _: 1
180
+ }, 8, ["disabled", "model-value", "rules"]),
181
+ n("div", ve, [
182
+ n("div", be, [
183
+ n("div", _e, p(i(m)("inventory.inventoryBindings.recipe")), 1),
184
+ e.readonly ? v("", !0) : (d(), w(a, {
185
+ key: 0,
186
+ variant: "secondary",
187
+ "text-color": "primary",
188
+ "border-color": "primary",
189
+ label: i(m)("inventory.inventoryBindings.linkRecipe"),
190
+ "prepend-icon": "link",
191
+ onClick: W
192
+ }, null, 8, ["label"]))
193
+ ]),
194
+ n("div", xe, [
195
+ n("div", ge, [
196
+ n("div", he, p(i(m)("inventory.inventoryBindings.recipe")), 1),
197
+ l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
198
+ l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
199
+ ]),
200
+ (d(!0), c(U, null, G(j.value, (o) => (d(), w(t, {
201
+ key: o.id,
202
+ disabled: e.disabled,
203
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
204
+ rules: [i($)(0), i(A)(-1)]
205
+ }, {
206
+ default: I(({ invalid: k }) => {
207
+ var _;
208
+ return [
209
+ n("div", Ve, [
210
+ n("div", ke, [
211
+ n("div", Be, [
212
+ n("div", Ie, [
213
+ u(f, {
214
+ zIndex: 51,
215
+ variant: "plain",
216
+ placement: "top",
217
+ content: (_ = R.value[o.id]) == null ? void 0 : _.name
218
+ }, {
219
+ default: I(() => {
220
+ var r;
221
+ return [
222
+ n("span", we, p((r = R.value[o.id]) == null ? void 0 : r.name), 1)
223
+ ];
224
+ }),
225
+ _: 2
226
+ }, 1032, ["content"])
227
+ ])
228
+ ]),
229
+ n("div", Fe, [
230
+ u(y, {
231
+ class: "w-full",
232
+ disabled: e.disabled,
233
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
234
+ "onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
235
+ invalid: k
236
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
237
+ ]),
238
+ e.readonly ? v("", !0) : (d(), c("div", Ue, [
239
+ u(a, {
240
+ disabled: e.disabled,
241
+ type: "button",
242
+ variant: "plain",
243
+ icon: "delete",
244
+ "icon-color": "#000000",
245
+ onClick: (r) => F(o.id, e.modelValue)
246
+ }, null, 8, ["disabled", "onClick"])
247
+ ]))
248
+ ]),
249
+ C.value.has(o.id) ? (d(), c("div", Ce, [
250
+ u(E, {
251
+ name: "error",
252
+ color: "system-error-300",
253
+ size: "sm"
254
+ }),
255
+ n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
256
+ ])) : v("", !0)
257
+ ])
258
+ ];
259
+ }),
260
+ _: 2
261
+ }, 1032, ["disabled", "modelValue", "rules"]))), 128))
262
+ ])
263
+ ]),
264
+ e.enableIngredientGroup ? (d(), c("div", Ee, [
265
+ n("div", Ge, [
266
+ n("div", Ae, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
267
+ e.readonly ? v("", !0) : (d(), w(a, {
268
+ key: 0,
269
+ variant: "secondary",
270
+ "text-color": "primary",
271
+ "border-color": "primary",
272
+ label: i(m)("inventory.inventoryBindings.linkIngredientGroup"),
273
+ "prepend-icon": "link",
274
+ onClick: H
275
+ }, null, 8, ["label"]))
276
+ ]),
277
+ n("div", Re, [
278
+ n("div", Se, [
279
+ n("div", Pe, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
280
+ l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
281
+ l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
282
+ ]),
283
+ (d(!0), c(U, null, G(q.value, (o) => (d(), w(t, {
284
+ key: o.id,
285
+ disabled: e.disabled,
286
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
287
+ rules: [i($)(0), i(A)(0)]
288
+ }, {
289
+ default: I(({ invalid: k }) => {
290
+ var _;
291
+ return [
292
+ n("div", Te, [
293
+ C.value.has(o.id) ? (d(), c("div", Me, [
294
+ u(E, {
295
+ name: "error",
296
+ color: "system-error-300",
297
+ size: "sm"
298
+ }),
299
+ n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
300
+ ])) : v("", !0),
301
+ n("div", Ne, [
302
+ n("div", $e, [
303
+ n("div", ze, p((_ = K.value[o.id]) == null ? void 0 : _.name), 1)
304
+ ]),
305
+ n("div", De, [
306
+ u(y, {
307
+ class: "w-full",
308
+ disabled: e.disabled,
309
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
310
+ "onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
311
+ invalid: k
312
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
313
+ ]),
314
+ e.readonly ? v("", !0) : (d(), c("div", Ke, [
315
+ u(a, {
316
+ disabled: e.disabled,
317
+ type: "button",
318
+ variant: "plain",
319
+ icon: "delete",
320
+ "icon-color": "#000000",
321
+ onClick: (r) => F(o.id, e.modelValue)
322
+ }, null, 8, ["disabled", "onClick"])
323
+ ]))
324
+ ])
325
+ ])
326
+ ];
327
+ }),
328
+ _: 2
329
+ }, 1032, ["disabled", "modelValue", "rules"]))), 128))
330
+ ])
331
+ ])) : v("", !0),
332
+ n("div", je, [
333
+ n("div", Le, [
334
+ n("div", Oe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
335
+ e.readonly ? v("", !0) : (d(), w(a, {
336
+ key: 0,
337
+ variant: "secondary",
338
+ "text-color": "primary",
339
+ "border-color": "primary",
340
+ label: i(m)("inventory.inventoryBindings.linkIngredient"),
341
+ "prepend-icon": "link",
342
+ onClick: J
343
+ }, null, 8, ["label"]))
344
+ ]),
345
+ n("div", Ye, [
346
+ n("div", We, [
347
+ n("div", qe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
348
+ n("div", He, p(i(m)("inventory.inventoryBindings.amount")), 1),
349
+ l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
350
+ ]),
351
+ (d(!0), c(U, null, G(P.value, (o, k) => {
352
+ var _;
353
+ return d(), c(U, {
354
+ key: o.id
355
+ }, [
356
+ Q(o) ? (d(), c("div", Je, [
357
+ n("div", Qe, [
358
+ n("div", Xe, p(o.id), 1),
359
+ e.readonly ? v("", !0) : (d(), c("div", Ze, [
360
+ u(a, {
361
+ disabled: e.disabled,
362
+ type: "button",
363
+ variant: "tertiary",
364
+ icon: "delete",
365
+ onClick: (r) => F(o.id, e.modelValue)
366
+ }, null, 8, ["disabled", "onClick"])
367
+ ]))
368
+ ]),
369
+ n("div", en, [
370
+ u(E, {
371
+ name: "error",
372
+ color: "system-error-300",
373
+ size: "sm"
374
+ }),
375
+ n("div", null, p(i(m)("inventory.inventoryBindings.missingIngredient")), 1)
376
+ ])
377
+ ])) : (d(), c("div", nn, [
378
+ n("div", on, [
379
+ n("div", tn, [
380
+ u(f, {
381
+ zIndex: 51,
382
+ variant: "plain",
383
+ placement: "top",
384
+ content: (_ = V.value[o.id]) == null ? void 0 : _.name
385
+ }, {
386
+ default: I(() => {
387
+ var r;
388
+ return [
389
+ n("span", ln, p((r = V.value[o.id]) == null ? void 0 : r.name), 1)
390
+ ];
391
+ }),
392
+ _: 2
393
+ }, 1032, ["content"])
394
+ ]),
395
+ n("div", sn, [
396
+ u(me, {
397
+ "model-value": X(o),
398
+ "onUpdate:modelValue": (r) => r && Z(o.id, r, e.modelValue),
399
+ "onUpdate:amount": (r) => ne(o, r),
400
+ unit: M(o),
401
+ placement: k === P.value.length - 1 ? "top" : "bottom",
402
+ "convert-amount-on-change-unit": "",
403
+ disabled: e.readonly
404
+ }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
405
+ ]),
406
+ e.readonly ? v("", !0) : (d(), c("div", dn, [
407
+ u(a, {
408
+ disabled: e.disabled,
409
+ type: "button",
410
+ variant: "tertiary",
411
+ icon: "delete",
412
+ onClick: (r) => F(o.id, e.modelValue)
413
+ }, null, 8, ["disabled", "onClick"])
414
+ ]))
415
+ ]),
416
+ n("div", rn, [
417
+ u(t, {
418
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
419
+ rules: [i(A)(0)]
420
+ }, null, 8, ["modelValue", "rules"]),
421
+ u(t, {
422
+ modelValue: ee(o),
423
+ rules: [
424
+ i(ce)(),
425
+ i(pe)(M(o)),
426
+ () => C.value.has(o.id) ? i(m)("inventory.inventoryBindings.invalidWarning") : !0
427
+ ]
428
+ }, null, 8, ["modelValue", "rules"])
429
+ ])
430
+ ]))
431
+ ], 64);
432
+ }), 128))
433
+ ])
434
+ ])
435
+ ]);
436
+ };
437
+ }
438
+ });
439
+ export {
440
+ vn as _
441
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, createBlock as c, openBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-DMuIqNOV.js";
4
+ import { F as r } from "./app-Bon7qTu5.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, createBlock as F, openBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { c as s } from "./number-B7y_oaIm.js";
2
+ import { c as s } from "./number-4OG2ZSmc.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { d as F, u as f } from "./app-DMuIqNOV.js";
1
+ import { m as F, u as f } from "./app-Bon7qTu5.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { ref as _, defineComponent as h, resolveComponent as l, createElementBlock as y, openBlock as g, renderSlot as k, createVNode as p, withCtx as S } from "vue";
4
4
  const m = F((e, t) => {