@feedmepos/mf-inventory-portal 1.8.0-dev.7 → 1.8.0

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 (244) hide show
  1. package/dist/App-BPdZMhM8.js +1445 -0
  2. package/dist/{ApprovalView-1Y_jh_UJ.js → ApprovalView-UzjSuZ2L.js} +26 -25
  3. package/dist/{BindingsDialog-VMvTLguN.js → BindingsDialog-Cb6WRlKq.js} +2 -2
  4. package/dist/{BindingsPicker-KNRM5rMU.js → BindingsPicker-CtD4U4lv.js} +2 -2
  5. package/dist/{BindingsTable-CSyNlNCL.js → BindingsTable-CX-3403K.js} +10 -10
  6. package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DQuI04Yj.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
  8. package/dist/{ClosingDraftView-A2pJuhIb.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
  9. package/dist/ClosingHistoryView-DzkeJYoe.js +769 -0
  10. package/dist/{ClosingTemplateView-DpkNCyoB.js → ClosingTemplateView-DSrelbso.js} +22 -21
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DOpIDvsy.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
  12. package/dist/{DefaultView-B4UuAqYu.js → DefaultView-Dw-7Y8vD.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-w0YcNH3F.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BimIEHsW.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +10075 -9949
  15. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js +48 -0
  16. package/dist/FeatureCapabilityGate-C-IM5_7n.js +82 -0
  17. package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DEDU1XUC.js +189 -0
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang--54VR4oB.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B7j4ZSOe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ckli_nZx.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_y8VcCI.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
  21. package/dist/{FmMultiselectDialog-DMA5eR0C.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
  22. package/dist/{FmMultiselectDialog-BnZInvgp.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
  24. package/dist/ImportView-7ij7RUHI.js +1540 -0
  25. package/dist/{IngredientsView-C4-8qNGD.js → IngredientsView-fIPtTyFD.js} +685 -688
  26. package/dist/{IntegrationExplorerView-D3leld2Z.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
  27. package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
  28. package/dist/{IntegrationView-BhRzry3g.js → IntegrationView-DnyVHXge.js} +2380 -2340
  29. package/dist/{InventoryBindingForm-ewAgZ6e-.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
  31. package/dist/{InventoryBindingSummary-e67GzHYr.js → InventoryBindingSummary-CwIrQ8lG.js} +1 -1
  32. package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
  33. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJSbskyn.js +79 -0
  34. package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
  35. package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js +79 -0
  36. package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
  37. package/dist/ProductionRunDetailPage-C_WC4qfP.js +2317 -0
  38. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-7u0HQH67.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
  39. package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
  40. package/dist/{PublishView-BXA3k8Cp.js → PublishView-BVg44yke.js} +3 -3
  41. package/dist/{PurchaseOrderPrintPreview-DRugr4BU.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
  42. package/dist/{ReceiveRequestView-CeJs9NTD.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
  43. package/dist/RecipeView-De3pLsPR.js +3272 -0
  44. package/dist/SettingsView-B5ud0KtI.js +1005 -0
  45. package/dist/StockView-4N3NRjY8.js +3003 -0
  46. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ckw1_xIc.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
  47. package/dist/{SupplierView-DH9u6e2M.js → SupplierView-fC9oe5nu.js} +304 -301
  48. package/dist/{SurchargeView-BPVEpc0f.js → SurchargeView-H6rv7u8A.js} +7 -7
  49. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRwxKmwb.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DFdrmR2Z.js} +2 -2
  50. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
  51. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BivHE94R.js +332 -0
  52. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Df01LqHp.js +4953 -0
  53. package/dist/TransferTemplateView-CVUnofkI.js +2347 -0
  54. package/dist/{UnitCostHistoryView-06rIaX_M.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
  55. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C2zidBrl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
  56. package/dist/{UnitView-Xk_F9SYG.js → UnitView-DCfsbE8e.js} +111 -106
  57. package/dist/{WarehouseView-bmpLmpcX.js → WarehouseView-BCebmbcj.js} +12 -11
  58. package/dist/{WastageTemplateView-CWV1pFxM.js → WastageTemplateView-BXYNMBun.js} +19 -18
  59. package/dist/api/bill.d.ts +4 -2
  60. package/dist/api/bill.spec.d.ts +1 -0
  61. package/dist/api/closing.d.ts +1 -0
  62. package/dist/api/feature-flags.d.ts +2 -0
  63. package/dist/api/integration-sync-log.d.ts +0 -13
  64. package/dist/api/inventory.d.ts +9 -9
  65. package/dist/api/netsuite-explorer.d.ts +1 -0
  66. package/dist/api/stock.d.ts +1 -1
  67. package/dist/{app-CURawLhs.js → app-VtVYHCDF.js} +9785 -9546
  68. package/dist/app.d.ts +151 -14
  69. package/dist/app.js +1 -1
  70. package/dist/bulk-edit-simulation.helper-Nd6CtWGf.js +178 -0
  71. package/dist/{closing-template-q_KGB4jO.js → closing-template-LCe0U9w9.js} +4 -4
  72. package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
  73. package/dist/components/FeatureCapabilityGate.vue.d.ts +5 -0
  74. package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
  75. package/dist/components/FeaturePageGate.spec.d.ts +1 -0
  76. package/dist/components/FeaturePageGate.vue.d.ts +34 -0
  77. package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
  78. package/dist/components/FmDroppableField.vue.d.ts +1 -1
  79. package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
  80. package/dist/components/FmUnitInputProps.d.ts +1 -0
  81. package/dist/components/FmUnitInputRules.d.ts +1 -1
  82. package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
  83. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  84. package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
  85. package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
  86. package/dist/components/TemplatePublishDialog.d.ts +2 -0
  87. package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
  88. package/dist/composable/defineApi.d.ts +1 -1
  89. package/dist/{date2-3kdweNLp.js → date2-Cfb6DXM4.js} +1 -1
  90. package/dist/{dayjs.min-DHE73-wM.js → dayjs.min-BOndKK7B.js} +1 -1
  91. package/dist/{decimal-CAnQe2Ib.js → decimal-nbuisP61.js} +2 -2
  92. package/dist/{defineDeepModel-CctS67Do.js → defineDeepModel-DKySrdwp.js} +5 -5
  93. package/dist/{duplicate-template-Jk2V2Ezg.js → duplicate-template-BxcKb3Jp.js} +1 -1
  94. package/dist/{feature-D9n0IC0c.js → feature-VDUlSvM1.js} +452 -354
  95. package/dist/feature-flags/core.d.ts +1 -0
  96. package/dist/feature-flags/vue.d.ts +22 -1
  97. package/dist/feature-flags/vue.spec.d.ts +1 -0
  98. package/dist/{format-time-from-id-Bmzpbg-8.js → format-time-from-id-CfVH4LZ_.js} +1 -1
  99. package/dist/{format-unit-display-CVg4Bl5L.js → format-unit-display-BjTeAtgS.js} +209 -208
  100. package/dist/helper/country.spec.d.ts +1 -0
  101. package/dist/helper/menu-usage-module.d.ts +2 -1
  102. package/dist/helper/number.d.ts +5 -1
  103. package/dist/helper/rules.d.ts +1 -1
  104. package/dist/{id-to-date-DPCcxufP.js → id-to-date-Jr9SlHLO.js} +1 -1
  105. package/dist/{import-export.helper-bmGZwUBB.js → import-export.helper-FT9Wbigh.js} +17 -17
  106. package/dist/{index-zCBA-X6R.js → index-BV9b3Ulp.js} +2234 -2163
  107. package/dist/{index-yt6MlAFG.js → index-By5-VjVg.js} +1 -1
  108. package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
  109. package/dist/{index-CFNNQo-7.js → index-DXHVgUHU.js} +3 -3
  110. package/dist/index-eGvSlWMU.js +1892 -0
  111. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
  112. package/dist/{lz-string-CqlY9MC2.js → lz-string-BAzqO9xf.js} +1 -1
  113. package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
  114. package/dist/{netsuite-DudeltN_.js → netsuite-BhGuduqd.js} +254 -263
  115. package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
  116. package/dist/{predefined-templates-DT32p04n.js → predefined-templates-BlRafgnc.js} +1 -1
  117. package/dist/production-run-list-DR1WsaBR.js +61 -0
  118. package/dist/{purchase-order-template-LaRpWA04.js → purchase-order-template-By_Zxu1b.js} +1 -1
  119. package/dist/{recalculationUtils-BYN393eE.js → recalculationUtils-VsBar7jB.js} +1 -1
  120. package/dist/router/name.d.ts +2 -1
  121. package/dist/{row-action.enum-BiP5wkT6.js → row-action.enum-76yLYmPA.js} +1 -1
  122. package/dist/rules-fOcvgt4t.js +243 -0
  123. package/dist/{stock-B9XerL9c.js → stock-C-dQaxY2.js} +1 -1
  124. package/dist/stock-Dh0KXA1P.js +78 -0
  125. package/dist/stores/feature.d.ts +31 -2
  126. package/dist/stores/feature.load-state.spec.d.ts +1 -0
  127. package/dist/stores/integration/netsuite.d.ts +2 -2
  128. package/dist/stores/inventory.no-location.spec.d.ts +1 -0
  129. package/dist/stores/location.d.ts +42 -42
  130. package/dist/stores/supplier.d.ts +48 -48
  131. package/dist/stores/warehouse.d.ts +2 -2
  132. package/dist/style.css +1 -1
  133. package/dist/{supplier-dpHijd2E.js → supplier-XHHHN8vZ.js} +2 -2
  134. package/dist/{surcharge-BZ4STY5J.js → surcharge-0-oBiYoF.js} +1 -1
  135. package/dist/tsconfig.app.tsbuildinfo +1 -1
  136. package/dist/{uom-rules-Da5Lngvp.js → uom-rules-DrRuSFgM.js} +1 -1
  137. package/dist/{use-ingredient-select-dialog-C3YsT5l-.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
  138. package/dist/{use-inventory-binding-dialog-BSsyrcGe.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
  139. package/dist/{use-template-enabled-locations-BmJUzSUm.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
  140. package/dist/{use-transfer-locations-frEk_aBH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
  141. package/dist/{useHrmPermission-Cyjm0y9a.js → useHrmPermission-BaGxz4EV.js} +1 -1
  142. package/dist/{useNavigationMenu-CnTsOF9T.js → useNavigationMenu-CyP39v3U.js} +50 -49
  143. package/dist/{useSseClient-D_7o9nuf.js → useSseClient-CaD4MVg0.js} +1 -1
  144. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  145. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  146. package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
  147. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  148. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  149. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  150. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  151. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +19 -19
  152. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  153. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  154. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  155. package/dist/views/import/helper/submit-rows.d.ts +1 -1
  156. package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
  157. package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
  158. package/dist/views/integration/IntegrationPlatformView.vue.d.ts +24 -0
  159. package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
  160. package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
  161. package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
  162. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  163. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  164. package/dist/views/integration/helper/opening-balance.d.ts +22 -0
  165. package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
  166. package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
  167. package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
  168. package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
  169. package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
  170. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
  171. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
  172. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
  173. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
  174. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
  175. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
  176. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
  177. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
  178. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
  179. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
  180. package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
  181. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
  182. package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
  183. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
  184. package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
  185. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  186. package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
  187. package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
  188. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
  189. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
  190. package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
  191. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
  192. package/dist/views/receive-request/import/export.spec.d.ts +1 -0
  193. package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
  194. package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
  195. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +54 -54
  196. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
  197. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
  198. package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
  199. package/dist/views/recipe/helper/import-recipe.d.ts +30 -0
  200. package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
  201. package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
  202. package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +2 -0
  203. package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
  204. package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
  205. package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
  206. package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
  207. package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
  208. package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
  209. package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
  210. package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
  211. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  212. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  213. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  214. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  215. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
  216. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  217. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  218. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  219. package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
  220. package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
  221. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -4
  222. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BBkF9lOE.js → vue-KHCpiw_e.js} +106 -108
  223. package/dist/{vue-i18n-DwAcG7yc.js → vue-i18n-D6btLtve.js} +422 -422
  224. package/dist/{xlsx.util-C7S-uyqm.js → xlsx.util-Dr5i_LBa.js} +2 -2
  225. package/package.json +71 -66
  226. package/dist/App-Bo29Nwt0.js +0 -1537
  227. package/dist/BulkReceiveRequestView-vOeHbWM_.js +0 -2656
  228. package/dist/ClosingHistoryView-woRmvmYT.js +0 -761
  229. package/dist/ImportView-C7Hah7MM.js +0 -1291
  230. package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKEzy2Uo.js +0 -72
  231. package/dist/ProductionRunDetailView-Ct7kr5Ht.js +0 -2312
  232. package/dist/ProductionRunView-odWyBZGx.js +0 -930
  233. package/dist/RecipeView-BH0REMB3.js +0 -3428
  234. package/dist/SettingsView-Dc27wyk-.js +0 -977
  235. package/dist/StockView-DrHLzosW.js +0 -2616
  236. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
  237. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BpiePSmo.js +0 -299
  238. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DOQGPKiv.js +0 -4820
  239. package/dist/TransferTemplateView-CEVRsKL7.js +0 -2326
  240. package/dist/menu-usage-module-BdjYEk3s.js +0 -57
  241. package/dist/number-BoePMDs8.js +0 -138
  242. package/dist/rules-CQT0uAAo.js +0 -98
  243. package/dist/stock-CVybjhUm.js +0 -75
  244. package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bpo7Yv9A.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,61 +1,60 @@
1
- import { defineComponent as W, ref as de, computed as F, resolveComponent as E, createElementBlock as m, createCommentVNode as I, openBlock as a, createElementVNode as n, createVNode as y, toDisplayString as f, unref as r, Fragment as A, renderList as M, normalizeStyle as ue, createTextVNode as me, reactive as G, withCtx as U, createBlock as K, nextTick as ce } from "vue";
2
- import { a as Y, t as pe, v as ye, F as fe } from "./app-CURawLhs.js";
3
- import { t as ve, n as _e, f as xe, a as S, c as ge } from "./number-BoePMDs8.js";
4
- import { u as be } from "./use-inventory-binding-dialog-BSsyrcGe.js";
5
- import { useI18n as q } from "@feedmepos/mf-common";
6
- import { b as he, c as j } from "./rules-CQT0uAAo.js";
7
- import { _ as Be, c as ke, d as Ie } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BXTUsnwN.js";
8
- const $ = { amount: 1, precision: 0 };
9
- function H(v, u) {
1
+ import { defineComponent as Y, ref as ue, computed as F, resolveComponent as E, createElementBlock as m, createCommentVNode as I, openBlock as a, createElementVNode as n, createVNode as y, toDisplayString as f, unref as s, Fragment as $, renderList as M, normalizeStyle as me, createTextVNode as ce, reactive as G, withCtx as A, createBlock as K, nextTick as pe } from "vue";
2
+ import { a as q, v as ye, w as fe, s as ve, F as _e } from "./app-VtVYHCDF.js";
3
+ import { t as xe, n as ge, i as be, e as he, f as W, I as j, a as S } from "./rules-fOcvgt4t.js";
4
+ import { u as Be } from "./use-inventory-binding-dialog-5Wu0ItnH.js";
5
+ import { useI18n as H } from "@feedmepos/mf-common";
6
+ import { _ as ke, c as Ie, d as Ve } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js";
7
+ const N = { amount: 1, precision: 0 };
8
+ function J(v, u) {
10
9
  return { amount: v.amount * u.amount, precision: v.precision + u.precision };
11
10
  }
12
- function Ve(v, u) {
13
- const s = J(u), p = H(v, s);
14
- return _e(p.amount / 10 ** p.precision, p.precision);
11
+ function we(v, u) {
12
+ const r = Q(u), p = J(v, r);
13
+ return ge(p.amount / 10 ** p.precision, p.precision);
15
14
  }
16
- function J(v) {
17
- if (v.trim().length === 0) return $;
15
+ function Q(v) {
16
+ if (v.trim().length === 0) return N;
18
17
  const u = Number(v);
19
- return Number.isFinite(u) ? ve(u, xe(u)) : $;
18
+ return Number.isFinite(u) ? xe(u, be(u)) : N;
20
19
  }
21
- function Q(v, u, s = 0, p = /* @__PURE__ */ new Set(), R = $) {
20
+ function X(v, u, r = 0, p = /* @__PURE__ */ new Set(), R = N) {
22
21
  if (p.has(v)) return [];
23
22
  const x = new Set(p).add(v);
24
23
  return u.contentsOf(v).flatMap((t, g) => {
25
- const d = t.type === "RECIPE", c = H(t.amount ?? $, R), b = {
26
- key: `${s}-${g}-${t.id}`,
24
+ const d = t.type === "RECIPE", c = J(t.amount ?? N, R), b = {
25
+ key: `${r}-${g}-${t.id}`,
27
26
  name: u.bindingName(t),
28
27
  amount: c,
29
28
  unit: u.bindingUnit(t),
30
- depth: s,
29
+ depth: r,
31
30
  isRecipe: d
32
31
  };
33
- return d ? [b, ...Q(t.id, u, s + 1, x, c)] : [b];
32
+ return d ? [b, ...X(t.id, u, r + 1, x, c)] : [b];
34
33
  });
35
34
  }
36
- const we = {
35
+ const Fe = {
37
36
  key: 0,
38
37
  class: "flex flex-col pb-8 fm-typo-en-body-sm-400"
39
- }, Fe = {
38
+ }, Ee = {
40
39
  key: 0,
41
40
  class: "flex items-center gap-4 px-12 text-fm-color-typo-secondary"
42
- }, Ee = {
41
+ }, Re = {
43
42
  key: 1,
44
43
  class: "flex flex-col text-fm-color-typo-secondary"
45
- }, Re = { class: "flex-1 line-clamp-1" }, Ce = {
44
+ }, Ce = { class: "flex-1 line-clamp-1" }, Ue = {
46
45
  key: 0,
47
46
  class: "text-fm-color-typo-disabled"
48
- }, Ue = {
47
+ }, Ae = {
49
48
  key: 2,
50
49
  class: "flex gap-4 px-12 text-fm-color-system-warning-400"
51
- }, Ae = /* @__PURE__ */ W({
50
+ }, $e = /* @__PURE__ */ Y({
52
51
  __name: "RecipeBindingBreakdown",
53
52
  props: {
54
53
  recipeId: {},
55
54
  multiplier: {}
56
55
  },
57
56
  setup(v) {
58
- const u = v, { t: s } = q(), p = Y(), R = {
57
+ const u = v, { t: r } = H(), p = q(), R = {
59
58
  contentsOf: (d) => {
60
59
  var c;
61
60
  return ((c = p.recipeById[d]) == null ? void 0 : c.contains) ?? [];
@@ -74,12 +73,12 @@ const we = {
74
73
  var c, b;
75
74
  return d.type === "RECIPE" ? "" : ((c = d.measurement) == null ? void 0 : c.abbrev) ?? ((b = p.skuById[d.id]) == null ? void 0 : b.unit.abbrev) ?? "";
76
75
  }
77
- }, x = de(!1), t = F(() => Q(u.recipeId, R)), g = F(() => J(u.multiplier).precision > 0);
76
+ }, x = ue(!1), t = F(() => X(u.recipeId, R)), g = F(() => Q(u.multiplier).precision > 0);
78
77
  return (d, c) => {
79
78
  const b = E("FmButton"), P = E("FmIcon");
80
- return t.value.length || g.value ? (a(), m("div", we, [
81
- t.value.length ? (a(), m("div", Fe, [
82
- n("span", null, f(r(s)("inventory.inventoryBindings.itemsLinked", { count: t.value.length }, t.value.length)), 1),
79
+ return t.value.length || g.value ? (a(), m("div", Fe, [
80
+ t.value.length ? (a(), m("div", Ee, [
81
+ n("span", null, f(s(r)("inventory.inventoryBindings.itemsLinked", { count: t.value.length }, t.value.length)), 1),
83
82
  y(b, {
84
83
  type: "button",
85
84
  variant: "plain",
@@ -87,58 +86,58 @@ const we = {
87
86
  onClick: c[0] || (c[0] = (h) => x.value = !x.value)
88
87
  }, null, 8, ["icon"])
89
88
  ])) : I("", !0),
90
- x.value ? (a(), m("div", Ee, [
91
- (a(!0), m(A, null, M(t.value, (h) => (a(), m("div", {
89
+ x.value ? (a(), m("div", Re, [
90
+ (a(!0), m($, null, M(t.value, (h) => (a(), m("div", {
92
91
  key: h.key,
93
92
  class: "flex gap-8 py-4 px-12",
94
- style: ue({ paddingLeft: `${12 + h.depth * 16}px` })
93
+ style: me({ paddingLeft: `${12 + h.depth * 16}px` })
95
94
  }, [
96
- n("span", Re, [
97
- me(f(h.name) + " ", 1),
98
- h.isRecipe ? (a(), m("span", Ce, " (" + f(r(s)("inventory.inventoryBindings.recipe")) + ") ", 1)) : I("", !0)
95
+ n("span", Ce, [
96
+ ce(f(h.name) + " ", 1),
97
+ h.isRecipe ? (a(), m("span", Ue, " (" + f(s(r)("inventory.inventoryBindings.recipe")) + ") ", 1)) : I("", !0)
99
98
  ]),
100
- n("span", null, f(r(Ve)(h.amount, d.multiplier)) + " " + f(h.unit), 1)
99
+ n("span", null, f(s(we)(h.amount, d.multiplier)) + " " + f(h.unit), 1)
101
100
  ], 4))), 128))
102
101
  ])) : I("", !0),
103
- g.value ? (a(), m("div", Ue, [
102
+ g.value ? (a(), m("div", Ae, [
104
103
  y(P, {
105
104
  name: "warning",
106
105
  color: "system-warning-300",
107
106
  size: "sm"
108
107
  }),
109
- n("div", null, f(r(s)("inventory.inventoryBindings.precisionWarning")), 1)
108
+ n("div", null, f(s(r)("inventory.inventoryBindings.precisionWarning")), 1)
110
109
  ])) : I("", !0)
111
110
  ])) : I("", !0);
112
111
  };
113
112
  }
114
- }), $e = { class: "flex flex-col gap-24" }, Pe = { class: "flex flex-col gap-16" }, Te = { class: "flex items-center" }, Ne = { class: "flex-1 fm-typo-en-title-sm-600" }, Se = { class: "flex flex-col" }, Me = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, De = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, ze = {
113
+ }), Ne = { class: "flex flex-col gap-24" }, Pe = { class: "flex flex-col gap-16" }, Te = { class: "flex items-center" }, Se = { class: "flex-1 fm-typo-en-title-sm-600" }, Me = { class: "flex flex-col" }, De = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ze = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Le = {
115
114
  class: "flex items-center",
116
115
  style: { "min-height": "48px" }
117
- }, Le = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Oe = { class: "line-clamp-1" }, Ge = { class: "w-[200px]" }, Ke = {
116
+ }, Oe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ge = { class: "line-clamp-1" }, Ke = { class: "w-[200px]" }, We = {
118
117
  key: 0,
119
118
  class: "w-[52px]"
120
119
  }, je = {
121
120
  key: 0,
122
121
  class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
123
- }, We = { class: "flex flex-col gap-16" }, Ye = { class: "flex items-center" }, qe = { class: "flex-1 fm-typo-en-title-sm-600" }, He = { class: "flex flex-col" }, Je = { 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" }, Xe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ze = {
122
+ }, Ye = { class: "flex flex-col gap-16" }, qe = { class: "flex items-center" }, He = { class: "flex-1 fm-typo-en-title-sm-600" }, Je = { class: "flex flex-col" }, Qe = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Xe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ze = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, en = {
124
123
  key: 0,
125
124
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
126
- }, en = {
125
+ }, nn = {
127
126
  class: "flex items-center w-full",
128
127
  style: { "min-height": "48px" }
129
- }, nn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, tn = {
128
+ }, tn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, on = {
130
129
  key: 0,
131
130
  class: "w-[52px]"
132
- }, on = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, ln = {
131
+ }, ln = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, sn = {
133
132
  key: 1,
134
133
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
135
- }, sn = {
134
+ }, rn = {
136
135
  class: "flex items-center w-full",
137
136
  style: { "min-height": "48px" }
138
- }, rn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, an = { class: "line-clamp-1 w-full" }, dn = { class: "w-[150px]" }, un = {
137
+ }, an = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, dn = { class: "line-clamp-1 w-full" }, un = { class: "w-[150px]" }, mn = {
139
138
  key: 0,
140
139
  class: "w-[52px]"
141
- }, mn = { class: "flex flex-col px-12 pb-4" }, gn = /* @__PURE__ */ W({
140
+ }, cn = { class: "flex flex-col px-12 pb-4" }, gn = /* @__PURE__ */ Y({
142
141
  __name: "InventoryBindingForm",
143
142
  props: {
144
143
  id: {},
@@ -152,7 +151,7 @@ const we = {
152
151
  },
153
152
  emits: ["update:modelValue", "click:pick-inventory-bindings"],
154
153
  setup(v, { emit: u }) {
155
- const { t: s } = q(), p = Y(), R = F(() => p.recipeById), x = F(() => p.skuById), t = v, g = u, d = F(() => pe({
154
+ const { t: r } = H(), p = q(), R = F(() => p.recipeById), x = F(() => p.skuById), t = v, g = u, d = F(() => ye({
156
155
  parentId: t.id,
157
156
  bindings: t.modelValue,
158
157
  recipes: p.recipes.map((o) => o._id === t.id ? {
@@ -166,68 +165,69 @@ const we = {
166
165
  }
167
166
  } : o),
168
167
  skuGroups: []
169
- }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ye.enum.circularDependency)), c = F(
168
+ }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === fe.enum.circularDependency)), c = F(
170
169
  () => new Set(d.value.map((e) => {
171
170
  var i;
172
171
  return (i = e.bindingPaths[0]) == null ? void 0 : i.id;
173
172
  }))
174
173
  ), b = F(() => t.modelValue.filter((e) => e.type === "RECIPE")), P = { amount: 1, precision: 0 }, h = G({});
175
- function T(e) {
174
+ function C(e) {
176
175
  return h[e.id] ?? S(e.amount ?? P);
177
176
  }
178
- function X(e, i) {
179
- h[e.id] = i, oe(e.id, i, t.modelValue);
177
+ function Z(e, i) {
178
+ h[e.id] = i, ie(e.id, i, t.modelValue);
180
179
  }
181
- const { promptIngredientsBinding: Z, promptRecipesBinding: ee } = be();
182
- async function ne() {
180
+ const { promptIngredientsBinding: ee, promptRecipesBinding: ne } = Be();
181
+ async function te() {
183
182
  if (t.iframeMode) {
184
183
  g("click:pick-inventory-bindings", "RECIPE");
185
184
  return;
186
185
  }
187
- ee(
186
+ ne(
188
187
  t.modelValue,
189
188
  (e) => g("update:modelValue", e),
190
189
  t.id ? [t.id] : []
191
190
  );
192
191
  }
193
192
  const D = F(() => t.modelValue.filter((e) => e.type === "SKU") ?? []);
194
- async function te() {
193
+ async function oe() {
195
194
  if (t.iframeMode) {
196
195
  g("click:pick-inventory-bindings", "SKU");
197
196
  return;
198
197
  }
199
- Z(
198
+ ee(
200
199
  t.modelValue,
201
200
  (e) => g("update:modelValue", e),
202
201
  t.excludeBindingId,
203
202
  t.id ? [t.id] : []
204
203
  );
205
204
  }
206
- function oe(e, i, o) {
205
+ function ie(e, i, o) {
206
+ if (j()(i) !== !0) return;
207
207
  const _ = +i;
208
208
  let V = o;
209
- i.length > 0 && isFinite(_) ? V = o.map((B) => (B.id !== e || (B.amount = ge(_)), B)) : V = o.map((B) => (B.id !== e || (B.amount = { amount: 0, precision: 0 }), B)), g("update:modelValue", V);
209
+ i.length > 0 && isFinite(_) ? V = o.map((B) => (B.id !== e || (B.amount = ve.fromNumber(_)), B)) : V = o.map((B) => (B.id !== e || (B.amount = { amount: 0, precision: 0 }), B)), g("update:modelValue", V);
210
210
  }
211
- function N(e, i) {
211
+ function T(e, i) {
212
212
  delete h[e];
213
213
  const o = i.filter((_) => _.id !== e);
214
214
  g("update:modelValue", o);
215
215
  }
216
216
  function z(e) {
217
217
  var o, _;
218
- if (e.type !== fe.enum.SKU)
218
+ if (e.type !== _e.enum.SKU)
219
219
  throw new Error("Non-SKU binding does not have unit");
220
220
  if (!((o = x.value[e.id]) == null ? void 0 : o.unit))
221
221
  throw new Error(`Cannot find ingredient: ${e.id}`);
222
222
  return (_ = x.value[e.id]) == null ? void 0 : _.unit;
223
223
  }
224
- function ie(e) {
224
+ function le(e) {
225
225
  return !x.value[e.id];
226
226
  }
227
- function le(e) {
227
+ function se(e) {
228
228
  return { amount: e.amount, measurement: e.measurement };
229
229
  }
230
- function se(e, i, o) {
230
+ function re(e, i, o) {
231
231
  const _ = o.map((V) => V.id !== e ? V : {
232
232
  ...V,
233
233
  amount: i.amount,
@@ -236,7 +236,7 @@ const we = {
236
236
  g("update:modelValue", _);
237
237
  }
238
238
  const L = G({});
239
- function re(e) {
239
+ function ae(e) {
240
240
  return L[e.id] ?? {
241
241
  modelValue: {
242
242
  amount: e.amount,
@@ -245,8 +245,8 @@ const we = {
245
245
  amountAsString: S(e.amount)
246
246
  };
247
247
  }
248
- function ae(e, i) {
249
- ce(() => {
248
+ function de(e, i) {
249
+ pe(() => {
250
250
  L[e.id] = {
251
251
  modelValue: {
252
252
  amount: e.amount,
@@ -258,7 +258,7 @@ const we = {
258
258
  }
259
259
  return (e, i) => {
260
260
  const o = E("FmFormGroup"), _ = E("FmButton"), V = E("FmTooltip"), B = E("FmTextField"), O = E("FmIcon");
261
- return a(), m("div", $e, [
261
+ return a(), m("div", Ne, [
262
262
  y(o, {
263
263
  disabled: e.disabled,
264
264
  "model-value": e.modelValue,
@@ -267,85 +267,85 @@ const we = {
267
267
  () => d.value.length ? "There is a binding error in your configuration" : !0
268
268
  ]
269
269
  }, {
270
- label: U(() => i[0] || (i[0] = [
270
+ label: A(() => i[0] || (i[0] = [
271
271
  n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Define the inventory bindings for this recipe or ingredient. ", -1)
272
272
  ])),
273
273
  _: 1
274
274
  }, 8, ["disabled", "model-value", "rules"]),
275
275
  n("div", Pe, [
276
276
  n("div", Te, [
277
- n("div", Ne, f(r(s)("inventory.inventoryBindings.recipe")), 1),
277
+ n("div", Se, f(s(r)("inventory.inventoryBindings.recipe")), 1),
278
278
  e.readonly ? I("", !0) : (a(), K(_, {
279
279
  key: 0,
280
280
  variant: "secondary",
281
281
  "text-color": "primary",
282
282
  "border-color": "primary",
283
- label: r(s)("inventory.inventoryBindings.linkRecipe"),
283
+ label: s(r)("inventory.inventoryBindings.linkRecipe"),
284
284
  "prepend-icon": "link",
285
- onClick: ne
285
+ onClick: te
286
286
  }, null, 8, ["label"]))
287
287
  ]),
288
- n("div", Se, [
289
- n("div", Me, [
290
- n("div", De, f(r(s)("inventory.inventoryBindings.recipe")), 1),
288
+ n("div", Me, [
289
+ n("div", De, [
290
+ n("div", ze, f(s(r)("inventory.inventoryBindings.recipe")), 1),
291
291
  i[1] || (i[1] = n("div", { class: "w-[200px]" }, null, -1)),
292
292
  i[2] || (i[2] = n("div", { class: "w-[52px]" }, null, -1))
293
293
  ]),
294
- (a(!0), m(A, null, M(b.value, (l) => {
295
- var C;
294
+ (a(!0), m($, null, M(b.value, (l) => {
295
+ var U;
296
296
  return a(), m("div", {
297
297
  key: l.id,
298
298
  class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100"
299
299
  }, [
300
- n("div", ze, [
301
- n("div", Le, [
300
+ n("div", Le, [
301
+ n("div", Oe, [
302
302
  y(V, {
303
303
  zIndex: 51,
304
304
  variant: "plain",
305
305
  placement: "top",
306
- content: (C = R.value[l.id]) == null ? void 0 : C.name
306
+ content: (U = R.value[l.id]) == null ? void 0 : U.name
307
307
  }, {
308
- default: U(() => {
308
+ default: A(() => {
309
309
  var w;
310
310
  return [
311
- n("span", Oe, f((w = R.value[l.id]) == null ? void 0 : w.name), 1)
311
+ n("span", Ge, f((w = R.value[l.id]) == null ? void 0 : w.name), 1)
312
312
  ];
313
313
  }),
314
314
  _: 2
315
315
  }, 1032, ["content"])
316
316
  ]),
317
- n("div", Ge, [
317
+ n("div", Ke, [
318
318
  y(o, {
319
319
  disabled: e.disabled,
320
- modelValue: +T(l),
321
- rules: [r(he)(e.allowRecipeDecimal ? 5 : 0), r(j)(-1)]
320
+ modelValue: s(j)()(C(l)) === !0 ? +C(l) : C(l),
321
+ rules: [s(he)(e.allowRecipeDecimal ? 5 : 0), s(W)(-1)]
322
322
  }, {
323
- default: U(({ invalid: w }) => [
323
+ default: A(({ invalid: w }) => [
324
324
  y(B, {
325
325
  class: "w-full",
326
326
  disabled: e.disabled,
327
- modelValue: T(l),
328
- "onUpdate:modelValue": (k) => X(l, k),
327
+ modelValue: C(l),
328
+ "onUpdate:modelValue": (k) => Z(l, k),
329
329
  invalid: w
330
330
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
331
331
  ]),
332
332
  _: 2
333
333
  }, 1032, ["disabled", "modelValue", "rules"])
334
334
  ]),
335
- e.readonly ? I("", !0) : (a(), m("div", Ke, [
335
+ e.readonly ? I("", !0) : (a(), m("div", We, [
336
336
  y(_, {
337
337
  disabled: e.disabled,
338
338
  type: "button",
339
339
  variant: "plain",
340
340
  icon: "delete",
341
341
  "icon-color": "#000000",
342
- onClick: (w) => N(l.id, e.modelValue)
342
+ onClick: (w) => T(l.id, e.modelValue)
343
343
  }, null, 8, ["disabled", "onClick"])
344
344
  ]))
345
345
  ]),
346
- y(Ae, {
346
+ y($e, {
347
347
  "recipe-id": l.id,
348
- multiplier: T(l)
348
+ multiplier: C(l)
349
349
  }, null, 8, ["recipe-id", "multiplier"]),
350
350
  c.value.has(l.id) ? (a(), m("div", je, [
351
351
  y(O, {
@@ -353,107 +353,107 @@ const we = {
353
353
  color: "system-error-300",
354
354
  size: "sm"
355
355
  }),
356
- n("div", null, f(r(s)("inventory.inventoryBindings.circularError")), 1)
356
+ n("div", null, f(s(r)("inventory.inventoryBindings.circularError")), 1)
357
357
  ])) : I("", !0)
358
358
  ]);
359
359
  }), 128))
360
360
  ])
361
361
  ]),
362
- n("div", We, [
363
- n("div", Ye, [
364
- n("div", qe, f(r(s)("inventory.inventoryBindings.ingredient")), 1),
362
+ n("div", Ye, [
363
+ n("div", qe, [
364
+ n("div", He, f(s(r)("inventory.inventoryBindings.ingredient")), 1),
365
365
  e.readonly ? I("", !0) : (a(), K(_, {
366
366
  key: 0,
367
367
  variant: "secondary",
368
368
  "text-color": "primary",
369
369
  "border-color": "primary",
370
- label: r(s)("inventory.inventoryBindings.linkIngredient"),
370
+ label: s(r)("inventory.inventoryBindings.linkIngredient"),
371
371
  "prepend-icon": "link",
372
- onClick: te
372
+ onClick: oe
373
373
  }, null, 8, ["label"]))
374
374
  ]),
375
- n("div", He, [
376
- n("div", Je, [
377
- n("div", Qe, f(r(s)("inventory.inventoryBindings.ingredient")), 1),
378
- n("div", Xe, f(r(s)("inventory.inventoryBindings.amount")), 1),
375
+ n("div", Je, [
376
+ n("div", Qe, [
377
+ n("div", Xe, f(s(r)("inventory.inventoryBindings.ingredient")), 1),
378
+ n("div", Ze, f(s(r)("inventory.inventoryBindings.amount")), 1),
379
379
  i[3] || (i[3] = n("div", { class: "w-[52px]" }, null, -1))
380
380
  ]),
381
- (a(!0), m(A, null, M(D.value, (l, C) => {
381
+ (a(!0), m($, null, M(D.value, (l, U) => {
382
382
  var w;
383
- return a(), m(A, {
383
+ return a(), m($, {
384
384
  key: l.id
385
385
  }, [
386
- ie(l) ? (a(), m("div", Ze, [
387
- n("div", en, [
388
- n("div", nn, f(l.id), 1),
389
- e.readonly ? I("", !0) : (a(), m("div", tn, [
386
+ le(l) ? (a(), m("div", en, [
387
+ n("div", nn, [
388
+ n("div", tn, f(l.id), 1),
389
+ e.readonly ? I("", !0) : (a(), m("div", on, [
390
390
  y(_, {
391
391
  disabled: e.disabled,
392
392
  type: "button",
393
393
  variant: "tertiary",
394
394
  icon: "delete",
395
- onClick: (k) => N(l.id, e.modelValue)
395
+ onClick: (k) => T(l.id, e.modelValue)
396
396
  }, null, 8, ["disabled", "onClick"])
397
397
  ]))
398
398
  ]),
399
- n("div", on, [
399
+ n("div", ln, [
400
400
  y(O, {
401
401
  name: "error",
402
402
  color: "system-error-300",
403
403
  size: "sm"
404
404
  }),
405
- n("div", null, f(r(s)("inventory.inventoryBindings.missingIngredient")), 1)
405
+ n("div", null, f(s(r)("inventory.inventoryBindings.missingIngredient")), 1)
406
406
  ])
407
- ])) : (a(), m("div", ln, [
408
- n("div", sn, [
409
- n("div", rn, [
407
+ ])) : (a(), m("div", sn, [
408
+ n("div", rn, [
409
+ n("div", an, [
410
410
  y(V, {
411
411
  zIndex: 51,
412
412
  variant: "plain",
413
413
  placement: "top",
414
414
  content: (w = x.value[l.id]) == null ? void 0 : w.name
415
415
  }, {
416
- default: U(() => {
416
+ default: A(() => {
417
417
  var k;
418
418
  return [
419
- n("span", an, f((k = x.value[l.id]) == null ? void 0 : k.name), 1)
419
+ n("span", dn, f((k = x.value[l.id]) == null ? void 0 : k.name), 1)
420
420
  ];
421
421
  }),
422
422
  _: 2
423
423
  }, 1032, ["content"])
424
424
  ]),
425
- n("div", dn, [
426
- y(Be, {
427
- "model-value": le(l),
428
- "onUpdate:modelValue": (k) => k && se(l.id, k, e.modelValue),
429
- "onUpdate:amount": (k) => ae(l, k),
425
+ n("div", un, [
426
+ y(ke, {
427
+ "model-value": se(l),
428
+ "onUpdate:modelValue": (k) => k && re(l.id, k, e.modelValue),
429
+ "onUpdate:amount": (k) => de(l, k),
430
430
  unit: z(l),
431
- placement: C === D.value.length - 1 ? "top" : "bottom",
431
+ placement: U === D.value.length - 1 ? "top" : "bottom",
432
432
  "convert-amount-on-change-unit": "",
433
433
  disabled: e.readonly
434
434
  }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
435
435
  ]),
436
- e.readonly ? I("", !0) : (a(), m("div", un, [
436
+ e.readonly ? I("", !0) : (a(), m("div", mn, [
437
437
  y(_, {
438
438
  disabled: e.disabled,
439
439
  type: "button",
440
440
  variant: "tertiary",
441
441
  icon: "delete",
442
- onClick: (k) => N(l.id, e.modelValue)
442
+ onClick: (k) => T(l.id, e.modelValue)
443
443
  }, null, 8, ["disabled", "onClick"])
444
444
  ]))
445
445
  ]),
446
- n("div", mn, [
446
+ n("div", cn, [
447
447
  y(o, {
448
- modelValue: +r(S)(l.amount ?? { amount: 1, precision: 0 }),
449
- rules: [r(j)(0)]
448
+ modelValue: +s(S)(l.amount ?? { amount: 1, precision: 0 }),
449
+ rules: [s(W)(0)]
450
450
  }, null, 8, ["modelValue", "rules"]),
451
451
  y(o, {
452
- modelValue: re(l),
452
+ modelValue: ae(l),
453
453
  rules: [
454
- r(ke)(),
455
- r(Ie)(z(l)),
456
- () => c.value.has(l.id) ? r(s)("inventory.inventoryBindings.invalidWarning") : !0
454
+ s(Ie)(),
455
+ s(Ve)(z(l)),
456
+ () => c.value.has(l.id) ? s(r)("inventory.inventoryBindings.invalidWarning") : !0
457
457
  ]
458
458
  }, null, 8, ["modelValue", "rules"])
459
459
  ])
@@ -468,5 +468,5 @@ const we = {
468
468
  });
469
469
  export {
470
470
  gn as _,
471
- Ae as a
471
+ $e as a
472
472
  };
@@ -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-CURawLhs.js";
4
+ import { F as r } from "./app-VtVYHCDF.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -0,0 +1,25 @@
1
+ import { defineComponent as s, ref as a, onMounted as i, onBeforeUnmount as l, createElementBlock as c, openBlock as p } from "vue";
2
+ import { E as e, b as u, j as f } from "./index-C25C1Dg7.js";
3
+ const w = /* @__PURE__ */ s({
4
+ __name: "JsonViewer",
5
+ props: {
6
+ value: {}
7
+ },
8
+ setup(t) {
9
+ const r = t, n = a(null);
10
+ let o;
11
+ return i(() => {
12
+ o = new e({
13
+ parent: n.value,
14
+ doc: JSON.stringify(r.value, null, 2),
15
+ extensions: [u, f(), e.editable.of(!1), e.lineWrapping]
16
+ });
17
+ }), l(() => o.destroy()), (m, _) => (p(), c("div", {
18
+ ref_key: "container",
19
+ ref: n
20
+ }, null, 512));
21
+ }
22
+ });
23
+ export {
24
+ w as _
25
+ };