@feedmepos/mf-inventory-portal 1.3.7-dev.2 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/{App-Bt9_9LW3.js → App-D1-fT3jF.js} +3 -3
  2. package/dist/ApprovalView-0FbsslVD.js +226 -0
  3. package/dist/{BindingsDialog-lLNdP2RG.js → BindingsDialog-DeavyPY-.js} +5 -5
  4. package/dist/{BindingsPicker-BwxdoHu-.js → BindingsPicker-BGzhKq8G.js} +3 -3
  5. package/dist/{BindingsTable-C8cf9nV_.js → BindingsTable-Dr9hWkE1.js} +5 -5
  6. package/dist/{ClosingDraftView-CHB815at.js → ClosingDraftView-6gwWEWWB.js} +57 -57
  7. package/dist/{ClosingHistoryView-BQS52wLi.js → ClosingHistoryView-D4rNnlsq.js} +4 -4
  8. package/dist/{ClosingTemplateView-7o5xDvYi.js → ClosingTemplateView-DxCLH1GH.js} +16 -16
  9. package/dist/{DeliveryOrderPrintPreview-DBWYDmhP.js → DeliveryOrderPrintPreview-D-XeZX-z.js} +17 -17
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hX9rZGHP.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DeoaPLQm.js} +14 -14
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js} +2 -2
  12. package/dist/{FmMultiselectDialog-CX6Q05kY.js → FmMultiselectDialog-BQZmTWDb.js} +2 -2
  13. package/dist/{FmMultiselectDialog-eZLmEoMJ.js → FmMultiselectDialog-DJFi54mG.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js} +4 -4
  15. package/dist/{ImportView-5F1k_NOx.js → ImportView-DPQY0ELT.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-COyKYsPf.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js} +1 -1
  17. package/dist/{IngredientGroupView-1kwOZDub.js → IngredientGroupView-5AuPbMDz.js} +7 -7
  18. package/dist/{IngredientsView-L50oDR5B.js → IngredientsView-qMotWYnL.js} +17 -17
  19. package/dist/{IntegrationView-CwBluyeW.js → IntegrationView-CVdwhNTA.js} +13 -13
  20. package/dist/{InventoryBindingForm-28KU0Y69.js → InventoryBindingForm-B5KUYKIu.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAxmcGtJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js} +5 -5
  22. package/dist/{InventoryBindingSummary-hjZLd6je.js → InventoryBindingSummary-Bm3A2kmC.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-6jv1aHW-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js} +1 -1
  25. package/dist/PublishView-DOIiAeDK.js +208 -0
  26. package/dist/{PurchaseOrderPrintPreview-C_AaZuFs.js → PurchaseOrderPrintPreview-BE-8EJFv.js} +12 -12
  27. package/dist/ReceiveRequestView-ur3OeHuv.js +2802 -0
  28. package/dist/{RecipeView-B39YtOhH.js → RecipeView-CM-BrVSe.js} +21 -22
  29. package/dist/{StockView-DGO3Xf6j.js → StockView-DDqlms0m.js} +20 -21
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-b6jr57r-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js} +1 -1
  31. package/dist/{SupplierView-Bfo4AYFs.js → SupplierView-CM2PrtHi.js} +14 -14
  32. package/dist/{SurchargeView-CPuDx3I8.js → SurchargeView-q2NfASMH.js} +8 -8
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BbZQZQTQ.js} +2 -2
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CMWRgrTV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp3joqMK.js} +67 -60
  35. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-GhRFdMoW.js +3521 -0
  36. package/dist/{TransferTemplateView-DH1BkbUP.js → TransferTemplateView-B26H_T9Q.js} +19 -20
  37. package/dist/{UnitCostHistoryView-DonGH8na.js → UnitCostHistoryView-BzumRVdx.js} +4 -4
  38. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CW3kofME.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js} +4 -4
  39. package/dist/{UnitView-CFBdZjSP.js → UnitView-Cxfg--TU.js} +9 -9
  40. package/dist/{WarehouseView-gdd1ou_Y.js → WarehouseView-CvoafTrd.js} +7 -7
  41. package/dist/{WastageTemplateView-BoMqb-zR.js → WastageTemplateView-Bqd4Wp3d.js} +16 -16
  42. package/dist/{app-QEDlYnlN.js → app-CrrDFeMj.js} +4557 -4711
  43. package/dist/app.d.ts +0 -32
  44. package/dist/app.js +2 -2
  45. package/dist/{closing-template-CbHN15AQ.js → closing-template-Ew74NLQj.js} +1 -1
  46. package/dist/{component-kqxARxvM.js → component-DpCUABT3.js} +21 -30
  47. package/dist/components/row-action.enum.d.ts +0 -3
  48. package/dist/{date2-Z-I7Kd_W.js → date2-Bklbk2g-.js} +4 -4
  49. package/dist/{dayjs.min-D4CmdyEZ.js → dayjs.min-B463GIlc.js} +1 -1
  50. package/dist/{decimal-C-T875Hm.js → decimal-Dm2vbfDq.js} +2 -2
  51. package/dist/defineDeepModel-SD5OUepJ.js +19 -0
  52. package/dist/{duplicate-template-CmTg7BGs.js → duplicate-template-CR79OmLy.js} +1 -1
  53. package/dist/{export-B1VAPZRx.js → export-CQJcxfPC.js} +1 -1
  54. package/dist/{inventory-core-dart.default-ugZJdof5.js → feature-CZHvliez.js} +1395 -322
  55. package/dist/{format-time-from-id-DZ_PAFci.js → format-time-from-id-61ydd8RS.js} +1 -1
  56. package/dist/{format-unit-display-DlODRa7k.js → format-unit-display-BLtW28yU.js} +13 -13
  57. package/dist/{import-export.helper-DVCiPtHv.js → import-export.helper-uhFwjH6X.js} +6 -6
  58. package/dist/{index-rghVMuZK.js → index-CouegIcG.js} +1 -1
  59. package/dist/{index-BHqcJDf6.js → index-Dx5HvWR_.js} +1 -1
  60. package/dist/{index-BZxwdVW1.js → index-uA6bkf1x.js} +3 -3
  61. package/dist/{lodash-CgDY9U7s.js → lodash-CjyamSgJ.js} +1 -1
  62. package/dist/{lz-string-DNoTxtCy.js → lz-string-BbZdMrTL.js} +1 -1
  63. package/dist/{netsuite-B64xGIt5.js → netsuite-2v3F8ILe.js} +9 -60
  64. package/dist/{number-Bqy4-9rV.js → number-BYbxsJHr.js} +3 -3
  65. package/dist/{purchase-order-template-BxowjjVQ.js → purchase-order-template-s1AiueV_.js} +1 -1
  66. package/dist/router/name.d.ts +0 -2
  67. package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-BcW_L_nE.js} +3 -11
  68. package/dist/{rules-BkK6oJzC.js → rules-C7L-LFOd.js} +2 -2
  69. package/dist/{stock-lXNLY2TO.js → stock-CvYOcgWb.js} +3 -3
  70. package/dist/{stock-CedueOcQ.js → stock-D2s88pz1.js} +1 -1
  71. package/dist/stores/feature.d.ts +0 -2
  72. package/dist/stores/integration/netsuite.d.ts +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/{supplier-BxEW6DYL.js → supplier-DmobM7mD.js} +2 -2
  75. package/dist/{surcharge-_zxlHhpJ.js → surcharge-BdZOVfi0.js} +1 -1
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/{use-ingredient-select-dialog-BQFTqO6q.js → use-ingredient-select-dialog-BUCJBHjV.js} +2 -2
  78. package/dist/{use-inventory-binding-dialog-BnJKIhqC.js → use-inventory-binding-dialog-DiN1hBIm.js} +2 -2
  79. package/dist/{use-template-enabled-locations-2-Ch5vC3Ux.js → use-template-enabled-locations-CmH6I2cy.js} +33 -21
  80. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +21 -21
  81. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +21 -21
  82. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +129 -129
  83. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +150 -154
  84. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +7 -93
  85. package/dist/vue-i18n-D0Q6LFcu.js +2365 -0
  86. package/dist/{xlsx-BlvEsbYy.js → xlsx-D4PML26z.js} +398 -398
  87. package/dist/{xlsx.util-B4ae3AUU.js → xlsx.util-BWLcCmO_.js} +1 -1
  88. package/package.json +3 -8
  89. package/dist/ApprovalView-BAFatrEE.js +0 -241
  90. package/dist/IntegrationExplorerView-BVJ3qSYS.js +0 -22254
  91. package/dist/PublishView-kBqlO98G.js +0 -234
  92. package/dist/ReceiveRequestView-sebwwuaH.js +0 -2817
  93. package/dist/SettingsView-CFoKuaMo.js +0 -695
  94. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-_5fogvJl.js +0 -3790
  95. package/dist/api/integration-sync-log.d.ts +0 -47
  96. package/dist/api/netsuite-explorer.d.ts +0 -51
  97. package/dist/defineDeepModel-Ds_lq_kg.js +0 -19
  98. package/dist/feature-_WJViVjR.js +0 -1081
  99. package/dist/modules/print-template/api/print-template.d.ts +0 -29
  100. package/dist/modules/print-template/components/BlockConfigPanel.vue.d.ts +0 -19
  101. package/dist/modules/print-template/components/CustomPrintTemplatePreview.vue.d.ts +0 -25
  102. package/dist/modules/print-template/components/PrintTemplateEditorDialog.vue.d.ts +0 -45
  103. package/dist/modules/print-template/components/TemplatePreview.vue.d.ts +0 -22
  104. package/dist/modules/print-template/composables/print-po-with-template.d.ts +0 -25
  105. package/dist/modules/print-template/definitions/block-definitions.d.ts +0 -88
  106. package/dist/modules/print-template/definitions/predefined-templates.d.ts +0 -22
  107. package/dist/modules/print-template/definitions/template-renderer.d.ts +0 -17
  108. package/dist/modules/print-template/index.d.ts +0 -11
  109. package/dist/modules/print-template/store/print-template.d.ts +0 -170
  110. package/dist/modules/print-template/types/print-data.d.ts +0 -52
  111. package/dist/modules/print-template/utils/sanitize-html.d.ts +0 -32
  112. package/dist/predefined-templates-B5qmOdnZ.js +0 -4542
  113. package/dist/views/integration/components/IntegrationSyncLogTab.vue.d.ts +0 -15
  114. package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
  115. package/dist/views/integration-explorer/IntegrationExplorerView.vue.d.ts +0 -2
  116. package/dist/views/integration-explorer/composables/use-explorer-tab.d.ts +0 -126
  117. package/dist/views/integration-explorer/netsuite/ExplorerRecordSyncLog.vue.d.ts +0 -17
  118. package/dist/views/integration-explorer/netsuite/ExplorerRecordToolbar.vue.d.ts +0 -201
  119. package/dist/views/integration-explorer/netsuite/ExplorerSystemNote.vue.d.ts +0 -15
  120. package/dist/views/integration-explorer/netsuite/JsonViewer.vue.d.ts +0 -15
  121. package/dist/views/integration-explorer/netsuite/NetSuiteExplorerView.vue.d.ts +0 -2
  122. package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferSideSheet.vue.d.ts +0 -7
  123. package/dist/views/integration-explorer/netsuite/inventoryTransfer/InventoryTransferView.vue.d.ts +0 -39
  124. package/dist/views/integration-explorer/netsuite/items/AssemblyItemSideSheet.vue.d.ts +0 -7
  125. package/dist/views/integration-explorer/netsuite/items/InventoryItemSideSheet.vue.d.ts +0 -7
  126. package/dist/views/integration-explorer/netsuite/items/ItemsView.vue.d.ts +0 -2
  127. package/dist/views/integration-explorer/netsuite/items/ServiceItemSideSheet.vue.d.ts +0 -7
  128. package/dist/views/integration-explorer/netsuite/orders/ExplorerOrderDetailSideSheet.vue.d.ts +0 -7
  129. package/dist/views/integration-explorer/netsuite/orders/OrdersView.vue.d.ts +0 -39
  130. package/dist/views/integration-explorer/netsuite/orders/PurchaseOrderSideSheet.vue.d.ts +0 -7
  131. package/dist/views/integration-explorer/netsuite/orders/SyncNetsuiteButton.vue.d.ts +0 -29
  132. package/dist/views/integration-explorer/netsuite/orders/TransferOrderSideSheet.vue.d.ts +0 -7
  133. package/dist/views/settings/SettingsView.vue.d.ts +0 -2
  134. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -13
  135. package/dist/vue-i18n-taYcBeKI.js +0 -2365
@@ -1,30 +1,29 @@
1
1
  import { defineComponent as J, ref as G, onMounted as Ce, resolveComponent as A, openBlock as B, createElementBlock as R, Fragment as oe, createElementVNode as v, toDisplayString as N, createVNode as k, createCommentVNode as E, mergeModels as Ie, computed as S, useModel as Ae, unref as a, watch as _e, normalizeClass as he, withCtx as K, h as O, createBlock as D, renderList as se, isRef as fe, normalizeStyle as Re, Teleport as Se, normalizeProps as $e, guardReactiveProps as Ee } from "vue";
2
- import { a as Y, c as ue, S as Te, F as ie, w as Ue, x as Pe, j as ve, u as De } from "./app-QEDlYnlN.js";
2
+ import { a as Y, c as ue, S as Te, F as ie, w as Ue, x as Pe, j as ve, u as De } from "./app-CrrDFeMj.js";
3
3
  import { useDialog as me, useSnackbar as ce, components as ee, useProxiedModel as ye, useBreakpoints as Ge } from "@feedmepos/ui-library";
4
4
  import { i as Me, _ as ze } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as z } from "./form-mode.enum-BKiNVH6A.js";
6
- import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-COyKYsPf.js";
6
+ import { _ as Ve } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeVYXEzb.js";
7
7
  import { defineStore as Ne, storeToRefs as Ke } from "pinia";
8
- import { D as be, R as te } from "./row-action.enum-Co_O4qD9.js";
9
- import { c as Le } from "./component-kqxARxvM.js";
10
- import { a as j, c as ke } from "./number-Bqy4-9rV.js";
8
+ import { D as be, R as te } from "./row-action.enum-BcW_L_nE.js";
9
+ import { c as Le } from "./component-DpCUABT3.js";
10
+ import { a as j, c as ke } from "./number-BYbxsJHr.js";
11
11
  import { useI18n as Q, useCoreStore as Oe } from "@feedmepos/mf-common";
12
12
  import { u as je, _ as Ye } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
13
- import { b as xe, c as pe, I as qe, A as re, U as Be, R as He } from "./rules-BkK6oJzC.js";
14
- import { _ as We } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAxmcGtJ.js";
15
- import { a as ae } from "./FmMultiselectDialog-CX6Q05kY.js";
16
- import { d as we } from "./defineDeepModel-Ds_lq_kg.js";
13
+ import { b as xe, c as pe, I as qe, A as re, U as Be, R as He } from "./rules-C7L-LFOd.js";
14
+ import { _ as We } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-pbyMU879.js";
15
+ import { a as ae } from "./FmMultiselectDialog-BQZmTWDb.js";
16
+ import { d as we } from "./defineDeepModel-SD5OUepJ.js";
17
17
  import { D as Je } from "./app-DiX-EfV6.js";
18
- import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js";
19
- import { u as en } from "./FmMultiselectDialog-eZLmEoMJ.js";
20
- import { u as nn } from "./vue-i18n-taYcBeKI.js";
21
- import { F as tn } from "./inventory-core-dart.default-ugZJdof5.js";
22
- import { _ as on } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
23
- import { u as ln } from "./feature-_WJViVjR.js";
18
+ import { _ as Qe, c as Xe, d as Ze } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js";
19
+ import { u as en } from "./FmMultiselectDialog-DJFi54mG.js";
20
+ import { u as nn } from "./vue-i18n-D0Q6LFcu.js";
21
+ import { F as tn, u as on } from "./feature-CZHvliez.js";
22
+ import { _ as ln } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
24
23
  import { _ as sn, F as ge } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
25
- import { b as an, d as rn } from "./xlsx.util-B4ae3AUU.js";
26
- import { f as dn } from "./date2-Z-I7Kd_W.js";
27
- import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
24
+ import { b as an, d as rn } from "./xlsx.util-BWLcCmO_.js";
25
+ import { f as dn } from "./date2-Bklbk2g-.js";
26
+ import { _ as un } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
28
27
  const mn = {
29
28
  key: 0,
30
29
  class: "flex flex-col items-center w-full h-full gap-24"
@@ -1228,7 +1227,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
1228
1227
  emits: ["update:modelValue", "click:submit"],
1229
1228
  setup(p, { expose: V, emit: b }) {
1230
1229
  var H;
1231
- const m = p, d = b, u = ln(), { t: g } = Q(), n = S({
1230
+ const m = p, d = b, u = on(), { t: g } = Q(), n = S({
1232
1231
  get() {
1233
1232
  var c;
1234
1233
  return ((c = m.modelValue) == null ? void 0 : c.name) ?? "";
@@ -1390,7 +1389,7 @@ const On = { class: "flex flex-col gap-24" }, jn = {
1390
1389
  ])) : E("", !0)
1391
1390
  ])) : E("", !0),
1392
1391
  v("div", Ft, [
1393
- k(on, {
1392
+ k(ln, {
1394
1393
  entity: "inventoryRecipe",
1395
1394
  modelValue: o.value,
1396
1395
  "onUpdate:modelValue": h[5] || (h[5] = (U) => o.value = U)
@@ -1586,7 +1585,7 @@ function St() {
1586
1585
  }), n = an(u, ["Name", "Type", "Code", "Item", "Amount", "Unit", "Custom Attributes"]);
1587
1586
  rn(n, `RECIPE_${dn(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
1588
1587
  }
1589
- const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ J({
1588
+ const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Tt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ao = /* @__PURE__ */ J({
1590
1589
  __name: "RecipeView",
1591
1590
  setup(p) {
1592
1591
  const V = Y(), b = S(() => V.recipes), m = De(), { createRecipe: d, updateRecipe: u } = de(), { recipeDialogProps: g, recipeViewLoading: n } = Ke(de()), { columnDefs: t, formatRowData: o } = vn(), e = S(() => o(b.value));
@@ -1678,5 +1677,5 @@ const $t = { class: "flex flex-col py-8" }, Et = { class: "fm-typo-en-body-lg-60
1678
1677
  }
1679
1678
  });
1680
1679
  export {
1681
- ro as default
1680
+ ao as default
1682
1681
  };
@@ -1,31 +1,30 @@
1
1
  import { defineComponent as ve, openBlock as j, createBlock as Q, withCtx as U, createElementVNode as e, toDisplayString as d, unref as s, ref as G, h as ke, computed as L, watch as Ae, resolveComponent as T, isRef as He, createVNode as v, createElementBlock as W, Fragment as ie, renderList as de, createCommentVNode as se, normalizeClass as Fe, reactive as rt, mergeModels as Xe, useModel as ht, onMounted as We, createTextVNode as fe, normalizeStyle as it, Teleport as gt, normalizeProps as Ne, mergeProps as Ye } from "vue";
2
2
  import { u as bt, _ as xt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
3
- import { u as Ve, c as Ue, a as Ee, F as Je, w as St, G as ae, v as wt, o as Ft, D as At, y as J, h as Ce, i as Qe, e as Ze, L as he } from "./app-QEDlYnlN.js";
4
- import { u as Pe } from "./stock-lXNLY2TO.js";
5
- import { c as $t } from "./component-kqxARxvM.js";
6
- import { _ as ut, o as Vt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CW3kofME.js";
7
- import { _ as Ge, S as Le, g as ct, a as Ct } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-b6jr57r-.js";
3
+ import { u as Ve, c as Ue, a as Ee, F as Je, w as St, G as ae, v as wt, o as Ft, D as At, y as J, h as Ce, i as Qe, e as Ze, J as he } from "./app-CrrDFeMj.js";
4
+ import { u as Pe } from "./stock-CvYOcgWb.js";
5
+ import { c as $t } from "./component-DpCUABT3.js";
6
+ import { _ as ut, o as Vt } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CfWpv2Mv.js";
7
+ import { _ as Ge, S as Le, g as ct, a as Ct } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcQ6bBWG.js";
8
8
  import { _ as jt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
9
9
  import { useI18n as me, useCoreStore as dt } from "@feedmepos/mf-common";
10
- import { u as mt, i as Me, _ as et } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-6jv1aHW-.js";
10
+ import { u as mt, i as Me, _ as et } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Dp4gFbs5.js";
11
11
  import { useSnackbar as be, useDialog as Re, useProxiedModel as Oe, useBreakpoints as Dt } from "@feedmepos/ui-library";
12
12
  import { defineStore as Bt } from "pinia";
13
13
  import { F as Ke } from "./FmAdminBadge-BOEV93D3.js";
14
- import { g as $e, a as _e, e as Mt, t as Ie, c as ge, f as It, h as tt, i as ft, j as qe, d as De, k as Tt } from "./number-Bqy4-9rV.js";
15
- import { u as xe } from "./stock-CedueOcQ.js";
16
- import { c as Te, A as Ht, M as Ut, R as Et } from "./rules-BkK6oJzC.js";
17
- import { u as Pt } from "./use-inventory-binding-dialog-BnJKIhqC.js";
18
- import { a as vt } from "./FmMultiselectDialog-CX6Q05kY.js";
19
- import { d as ye } from "./dayjs.min-D4CmdyEZ.js";
20
- import { _ as Rt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js";
21
- import { g as Ot } from "./decimal-C-T875Hm.js";
22
- import { a as Nt, c as Yt, f as pt, t as ot, d as nt, p as Lt, n as zt, b as Gt } from "./date2-Z-I7Kd_W.js";
23
- import { i as Wt, _ as Kt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
14
+ import { g as $e, a as _e, e as Mt, t as Ie, c as ge, f as It, h as tt, i as ft, j as qe, d as De, k as Tt } from "./number-BYbxsJHr.js";
15
+ import { u as xe } from "./stock-D2s88pz1.js";
16
+ import { c as Te, A as Ht, M as Ut, R as Et } from "./rules-C7L-LFOd.js";
17
+ import { u as Pt } from "./use-inventory-binding-dialog-DiN1hBIm.js";
18
+ import { a as vt } from "./FmMultiselectDialog-BQZmTWDb.js";
19
+ import { d as ye } from "./dayjs.min-B463GIlc.js";
20
+ import { _ as Rt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NnoVkA8W.js";
21
+ import { g as Ot } from "./decimal-Dm2vbfDq.js";
22
+ import { a as Nt, b as Yt, f as pt, t as ot, c as nt, p as Lt, n as zt, d as Gt } from "./date2-Bklbk2g-.js";
23
+ import { i as Wt, _ as Kt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
24
24
  import { E as qt } from "./empty-placeholder-wf6-BWE8.js";
25
- import { F as pe } from "./inventory-core-dart.default-ugZJdof5.js";
26
- import { u as Xt } from "./feature-_WJViVjR.js";
25
+ import { F as pe, u as Xt } from "./feature-CZHvliez.js";
27
26
  import { _ as Jt, F as st } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
28
- import { u as Qt } from "./netsuite-B64xGIt5.js";
27
+ import { u as Qt } from "./netsuite-2v3F8ILe.js";
29
28
  import { P as Zt, J as eo } from "./app-DiX-EfV6.js";
30
29
  var Be = /* @__PURE__ */ ((V) => (V.History = "History", V.Convert = "Convert", V.Adjust = "Adjust", V))(Be || {});
31
30
  const to = [
@@ -2141,7 +2140,7 @@ const gn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, bn = {
2141
2140
  }), ks = {
2142
2141
  key: 0,
2143
2142
  class: "flex items-center gap-1"
2144
- }, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gs = { class: "flex flex-col gap-8" }, bs = { class: "flex flex-col" }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Zs = /* @__PURE__ */ ve({
2143
+ }, hs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gs = { class: "flex flex-col gap-8" }, bs = { class: "flex flex-col" }, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qs = /* @__PURE__ */ ve({
2145
2144
  __name: "StockView",
2146
2145
  setup(V) {
2147
2146
  const { t: y } = me(), _ = Ee(), p = Ve(), I = Pe(), C = yt(), c = xe(), r = mt(), g = Qt(), { columnDefs: N } = ao(), D = Re(), i = be();
@@ -2393,5 +2392,5 @@ const gn = { class: "flex items-center w-full fm-typo-en-title-md-800" }, bn = {
2393
2392
  }
2394
2393
  });
2395
2394
  export {
2396
- Zs as default
2395
+ Qs as default
2397
2396
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, computed as h, openBlock as l, createElementBlock as d, createElementVNode as r, normalizeClass as v, toDisplayString as m, unref as p, ref as V, resolveComponent as $, Fragment as k, createVNode as E, createCommentVNode as G, withCtx as S, renderList as P } from "vue";
2
2
  import { useI18n as D, useCoreStore as N } from "@feedmepos/mf-common";
3
- import { u as O } from "./netsuite-B64xGIt5.js";
3
+ import { u as O } from "./netsuite-2v3F8ILe.js";
4
4
  function re(e, t = !1) {
5
5
  var c;
6
6
  return e ? [
@@ -1,25 +1,25 @@
1
1
  import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as ce } from "./supplier-BxEW6DYL.js";
3
- import { D as td, R as ye } from "./row-action.enum-Co_O4qD9.js";
4
- import { c as Yd } from "./component-kqxARxvM.js";
5
- import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-QEDlYnlN.js";
2
+ import { u as ce } from "./supplier-DmobM7mD.js";
3
+ import { D as td, R as ye } from "./row-action.enum-BcW_L_nE.js";
4
+ import { c as Yd } from "./component-DpCUABT3.js";
5
+ import { c as we, a as ke, h as rd, i as nd, d as Xd, n as Ad, u as Pe } from "./app-CrrDFeMj.js";
6
6
  import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
7
- import { u as Ve } from "./netsuite-B64xGIt5.js";
7
+ import { u as Ve } from "./netsuite-2v3F8ILe.js";
8
8
  import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as Zd, useBreakpoints as qd } from "@feedmepos/ui-library";
9
9
  import { u as zd, _ as Jd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
10
10
  import { F as B } from "./form-mode.enum-BKiNVH6A.js";
11
- import { R as Z } from "./rules-BkK6oJzC.js";
12
- import { a as Qd } from "./FmMultiselectDialog-CX6Q05kY.js";
11
+ import { R as Z } from "./rules-C7L-LFOd.js";
12
+ import { a as Qd } from "./FmMultiselectDialog-BQZmTWDb.js";
13
13
  import { _ as et } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
- import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js";
15
- import { u as xe } from "./feature-_WJViVjR.js";
16
- import { u as tt } from "./purchase-order-template-BxowjjVQ.js";
17
- import { g as rt } from "./number-Bqy4-9rV.js";
14
+ import { _ as dt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DAivpdPp.js";
15
+ import { u as xe } from "./feature-CZHvliez.js";
16
+ import { u as tt } from "./purchase-order-template-s1AiueV_.js";
17
+ import { g as rt } from "./number-BYbxsJHr.js";
18
18
  import { _ as nt, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
19
- import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
19
+ import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
20
20
  import { defineStore as at } from "pinia";
21
- import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-B4ae3AUU.js";
22
- import { f as lt } from "./date2-Z-I7Kd_W.js";
21
+ import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-BWLcCmO_.js";
22
+ import { f as lt } from "./date2-Bklbk2g-.js";
23
23
  import { F as st } from "./FmDroppableField-J0xUsOTV.js";
24
24
  function ut(e, d) {
25
25
  const { t } = ee(), r = Ve();
@@ -1,16 +1,16 @@
1
1
  import { defineComponent as pe, ref as v, computed as c, watch as R, onMounted as fe, resolveComponent as p, openBlock as j, createElementBlock as ye, Fragment as ge, createVNode as n, unref as s, withCtx as f, createElementVNode as u, normalizeClass as G, normalizeStyle as he, toDisplayString as E, withDirectives as be, vModelText as _e, createBlock as Se, withModifiers as xe, createCommentVNode as Fe } from "vue";
2
2
  import { u as ke, _ as we } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
3
- import { a as Ie, u as Ce, s as V, j as Le, y as Ve } from "./app-QEDlYnlN.js";
4
- import { u as Ae } from "./surcharge-_zxlHhpJ.js";
3
+ import { a as Ie, u as Ce, s as V, j as Le, y as Ve } from "./app-CrrDFeMj.js";
4
+ import { u as Ae } from "./surcharge-BdZOVfi0.js";
5
5
  import { useSnackbar as De, useDialog as Me, useBreakpoints as Oe } from "@feedmepos/ui-library";
6
- import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
7
- import { a as Te } from "./FmMultiselectDialog-CX6Q05kY.js";
6
+ import { _ as Pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BMhSHZ3Z.js";
7
+ import { a as Te } from "./FmMultiselectDialog-BQZmTWDb.js";
8
8
  import { useI18n as Be } from "@feedmepos/mf-common";
9
- import { u as ze } from "./supplier-BxEW6DYL.js";
10
- import { u as Ee } from "./feature-_WJViVjR.js";
9
+ import { u as ze } from "./supplier-DmobM7mD.js";
10
+ import { u as Ee } from "./feature-CZHvliez.js";
11
11
  import { D as Ne, P as $e, L as Ue } from "./app-DiX-EfV6.js";
12
- import { D as H, R as A } from "./row-action.enum-Co_O4qD9.js";
13
- import { c as qe } from "./component-kqxARxvM.js";
12
+ import { D as H, R as A } from "./row-action.enum-BcW_L_nE.js";
13
+ import { c as qe } from "./component-DpCUABT3.js";
14
14
  const Je = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, je = { class: "flex flex-col h-full justify-between" }, Ge = { class: "space-y-16" }, He = ["placeholder"], Ke = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col gap-8" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = { class: "flex flex-col gap-12" }, Ye = { class: "flex flex-col gap-4" }, Ze = { class: "flex items-center gap-8" }, pt = /* @__PURE__ */ pe({
15
15
  __name: "SurchargeView",
16
16
  setup(et) {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, ref as m, resolveComponent as p, openBlock as i, createBlock as O, withCtx as u, createVNode as y, createElementBlock as v, toDisplayString as g, createElementVNode as T, h as B } from "vue";
2
2
  import { F as L } from "./FmAdminBadge-BOEV93D3.js";
3
- import { o as U, u as _ } from "./app-QEDlYnlN.js";
3
+ import { o as U, u as _ } from "./app-CrrDFeMj.js";
4
4
  import { useCoreStore as A } from "@feedmepos/mf-common";
5
5
  import { useDialog as C, components as V } from "@feedmepos/ui-library";
6
- import { u as F, a as j } from "./closing-template-CbHN15AQ.js";
6
+ import { u as F, a as j } from "./closing-template-Ew74NLQj.js";
7
7
  const q = U((o, t) => {
8
8
  const c = _(), l = A();
9
9
  return {
@@ -1,13 +1,13 @@
1
- import { defineComponent as q, ref as y, computed as r, watch as G, h as i, resolveComponent as x, openBlock as F, createElementBlock as H, createElementVNode as b, toDisplayString as J, createVNode as g, createBlock as O, createCommentVNode as Q, unref as L } from "vue";
1
+ import { defineComponent as q, ref as f, computed as r, watch as G, h as i, resolveComponent as x, openBlock as B, createElementBlock as H, createElementVNode as b, toDisplayString as J, createVNode as y, createBlock as O, createCommentVNode as Q, unref as V } from "vue";
2
2
  import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as A } from "@feedmepos/ui-library";
4
4
  import { K as Z, D as ee } from "./app-DiX-EfV6.js";
5
- import { u as le } from "./app-QEDlYnlN.js";
5
+ import { u as le } from "./app-CrrDFeMj.js";
6
6
  import { F as te } from "./FmAdminBadge-BOEV93D3.js";
7
7
  const ae = {
8
8
  class: "flex flex-col gap-24 h-full",
9
9
  style: { "max-height": "50vh" }
10
- }, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, ue = { class: "flex items-center gap-8 flex-shrink-0" }, re = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, pe = /* @__PURE__ */ q({
10
+ }, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, re = { class: "flex items-center gap-8 flex-shrink-0" }, ue = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, he = /* @__PURE__ */ q({
11
11
  __name: "TemplatePublishDialog",
12
12
  props: {
13
13
  title: {},
@@ -18,28 +18,29 @@ const ae = {
18
18
  enabledLocations: {},
19
19
  hideUnpublish: { type: Boolean }
20
20
  },
21
- setup(B) {
22
- const s = B, m = y(s.initialPublishedRev ?? {}), t = y(), n = y(/* @__PURE__ */ new Set()), V = le(), U = W(), k = Y(), $ = r(() => {
21
+ setup(U) {
22
+ const s = U, p = f(s.initialPublishedRev ?? {}), t = f(), n = f(/* @__PURE__ */ new Set()), C = le(), $ = W(), k = Y(), E = r(() => {
23
23
  var e;
24
- return ((e = U.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
25
- }), E = r(() => {
24
+ return ((e = $.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
25
+ }), S = r(() => {
26
26
  var l;
27
27
  return ((l = s.enabledLocations) != null && l.length ? s.enabledLocations : s.locations).map((a) => {
28
28
  var o;
29
- if (!!!V.locationByDbName[a.dbName])
29
+ if (!!!C.locationByDbName[a.dbName])
30
30
  return {
31
31
  ...a,
32
32
  status: "invalid"
33
33
  };
34
- const v = !!(((o = m.value) == null ? void 0 : o[a.dbName]) ?? []).find(
34
+ const v = !!(((o = p.value) == null ? void 0 : o[a.dbName]) ?? []).find(
35
35
  (_) => _._id === s.doc._id && (_.updatedAt ? _.updatedAt === s.doc.updatedAt : _._rev === s.doc._rev)
36
36
  );
37
37
  return {
38
38
  ...a,
39
- status: v ? "published" : "outdated"
39
+ status: v ? "published" : "outdated",
40
+ state: a.doc.profile.address.state
40
41
  };
41
42
  });
42
- }), { t: h } = X(), w = y(""), N = y({
43
+ }), { t: m } = X(), g = f(""), w = f({
43
44
  logic: "AND",
44
45
  rules: []
45
46
  }), D = [
@@ -48,38 +49,46 @@ const ae = {
48
49
  key: "status",
49
50
  entity: "inventory",
50
51
  values: ["published", "outdated"]
52
+ },
53
+ {
54
+ type: "string",
55
+ key: "state",
56
+ entity: "inventory",
57
+ values: [
58
+ ...new Set(C.locations.map((e) => e.doc.profile.address.state).filter(Boolean))
59
+ ]
51
60
  }
52
- ], p = r(() => {
53
- const e = w.value.toLowerCase();
54
- return E.value.filter((l) => Z(l, N.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || $.value && a.toLowerCase().includes(e)));
55
- }), u = r(
56
- () => p.value.filter((e) => e.status !== "invalid")
61
+ ], u = r(() => {
62
+ const e = g.value.toLowerCase();
63
+ return S.value.filter((l) => Z(l, w.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || E.value && a.toLowerCase().includes(e)));
64
+ }), N = r(
65
+ () => u.value.filter((e) => e.status !== "invalid")
57
66
  );
58
67
  G(
59
- [w, N],
68
+ [g, w],
60
69
  () => {
61
70
  n.value = /* @__PURE__ */ new Set();
62
71
  },
63
72
  { deep: !0 }
64
73
  );
65
- const S = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
66
- if (u.value.length === 0) return !1;
67
- const e = u.value.filter(
74
+ const F = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
75
+ if (N.value.length === 0) return !1;
76
+ const e = N.value.filter(
68
77
  (l) => n.value.has(l.dbName)
69
78
  ).length;
70
- return e > 0 && e < u.value.length;
79
+ return e > 0 && e < N.value.length;
71
80
  });
72
- function P() {
73
- S.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
81
+ function z() {
82
+ F.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
74
83
  }
75
- function z(e) {
84
+ function P(e) {
76
85
  e.status !== "invalid" && (n.value.has(e.dbName) ? n.value.delete(e.dbName) : n.value.add(e.dbName), n.value = new Set(n.value));
77
86
  }
78
- function C() {
79
- const e = p.value.filter(
87
+ function L() {
88
+ const e = u.value.filter(
80
89
  (l) => l.status !== "invalid" && n.value.has(l.dbName)
81
90
  );
82
- return e.length === 0 ? u.value : e;
91
+ return e.length === 0 ? N.value : e;
83
92
  }
84
93
  const R = r(() => [
85
94
  {
@@ -91,7 +100,7 @@ const ae = {
91
100
  return l.status === "invalid" ? i("div", { class: "w-56" }) : i(A.FmCheckbox, {
92
101
  value: l.dbName,
93
102
  modelValue: n.value.has(l.dbName),
94
- "onUpdate:modelValue": () => z(l)
103
+ "onUpdate:modelValue": () => P(l)
95
104
  });
96
105
  }
97
106
  },
@@ -125,8 +134,8 @@ const ae = {
125
134
  message: l.name,
126
135
  type: "success"
127
136
  });
128
- } catch (f) {
129
- console.error("Failed to copy:", f);
137
+ } catch (h) {
138
+ console.error("Failed to copy:", h);
130
139
  }
131
140
  }
132
141
  })
@@ -160,7 +169,7 @@ const ae = {
160
169
  t.value = `unpublish-${l.dbName}`;
161
170
  try {
162
171
  const o = await s.controller.unpublishAtLocation(l).delayed(1e3);
163
- m.value = o;
172
+ p.value = o;
164
173
  } catch (o) {
165
174
  console.error("Error unpublishing at location:", o);
166
175
  } finally {
@@ -176,7 +185,7 @@ const ae = {
176
185
  t.value = `publish-${l.dbName}`;
177
186
  try {
178
187
  const o = await s.controller.publishAtLocation(l).delayed(1e3);
179
- m.value = o;
188
+ p.value = o;
180
189
  } catch (o) {
181
190
  console.error("Error publishing at location:", o);
182
191
  } finally {
@@ -193,7 +202,7 @@ const ae = {
193
202
  a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
194
203
  ]
195
204
  },
196
- h(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
205
+ m(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
197
206
  )
198
207
  ];
199
208
  return c && v.push(c), i("div", { class: "flex items-center gap-8" }, v);
@@ -203,8 +212,8 @@ const ae = {
203
212
  async function I() {
204
213
  t.value = "all";
205
214
  try {
206
- const e = C(), l = await s.controller.publishAll(e).delayed(1e3);
207
- m.value = l;
215
+ const e = L(), l = await s.controller.publishAll(e).delayed(1e3);
216
+ p.value = l;
208
217
  } catch (e) {
209
218
  console.error("Error publishing all:", e);
210
219
  } finally {
@@ -215,8 +224,8 @@ const ae = {
215
224
  if (s.controller.unpublishAll) {
216
225
  t.value = "unpublish-all";
217
226
  try {
218
- const e = C(), l = await s.controller.unpublishAll(e).delayed(1e3);
219
- m.value = l;
227
+ const e = L(), l = await s.controller.unpublishAll(e).delayed(1e3);
228
+ p.value = l;
220
229
  } catch (e) {
221
230
  console.error("Error unpublishing all:", e);
222
231
  } finally {
@@ -224,23 +233,21 @@ const ae = {
224
233
  }
225
234
  }
226
235
  }
227
- const d = r(() => p.value.filter(
228
- (e) => e.status !== "invalid" && n.value.has(e.dbName)
229
- ).length), M = r(() => d.value === 0 || d.value === u.value.length ? h("inventory.publish.actions.publishAll") : h("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === u.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
236
+ const d = r(() => n.value.size), M = r(() => d.value === 0 || d.value === S.value.length ? m("inventory.publish.actions.publishAll") : m("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === S.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
230
237
  return (e, l) => {
231
- const a = x("FmButton"), f = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
232
- return F(), H("div", ae, [
238
+ const a = x("FmButton"), h = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
239
+ return B(), H("div", ae, [
233
240
  b("div", oe, [
234
241
  b("div", ne, J(e.title), 1),
235
242
  b("div", se, [
236
- g(a, {
243
+ y(a, {
237
244
  label: M.value,
238
245
  variant: "secondary",
239
246
  onClick: l[0] || (l[0] = (o) => I()),
240
247
  loading: t.value === "all",
241
248
  disabled: t.value !== "all" && t.value !== void 0
242
249
  }, null, 8, ["label", "loading", "disabled"]),
243
- e.controller.unpublishAll && !e.hideUnpublish ? (F(), O(a, {
250
+ e.controller.unpublishAll && !e.hideUnpublish ? (B(), O(a, {
244
251
  key: 0,
245
252
  label: j.value,
246
253
  variant: "tertiary",
@@ -251,34 +258,34 @@ const ae = {
251
258
  ])
252
259
  ]),
253
260
  b("div", ie, [
254
- g(f, {
255
- modelValue: w.value,
256
- "onUpdate:modelValue": l[2] || (l[2] = (o) => w.value = o),
261
+ y(h, {
262
+ modelValue: g.value,
263
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => g.value = o),
257
264
  class: "w-full flex-shrink-0",
258
- placeholder: L(h)("inventory.publish.search.placeholder"),
265
+ placeholder: V(m)("inventory.publish.search.placeholder"),
259
266
  "prepend-icon": "search"
260
267
  }, null, 8, ["modelValue", "placeholder"]),
261
- b("div", ue, [
262
- g(L(ee), {
263
- modelValue: N.value,
264
- "onUpdate:modelValue": l[3] || (l[3] = (o) => N.value = o),
268
+ b("div", re, [
269
+ y(V(ee), {
270
+ modelValue: w.value,
271
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => w.value = o),
265
272
  attributes: D
266
273
  }, null, 8, ["modelValue"]),
267
- g(c, {
274
+ y(c, {
268
275
  value: "select-all",
269
- "model-value": S.value,
276
+ "model-value": F.value,
270
277
  indeterminate: T.value,
271
- "onUpdate:modelValue": P,
278
+ "onUpdate:modelValue": z,
272
279
  label: "Select all"
273
280
  }, null, 8, ["model-value", "indeterminate"])
274
281
  ]),
275
- b("div", re, [
276
- g(v, {
277
- "row-data": p.value,
282
+ b("div", ue, [
283
+ y(v, {
284
+ "row-data": u.value,
278
285
  "column-defs": R.value,
279
286
  "shrink-at": 9999,
280
287
  virtual: !0,
281
- "page-size": p.value.length,
288
+ "page-size": u.value.length,
282
289
  "hide-footer": ""
283
290
  }, null, 8, ["row-data", "column-defs", "page-size"])
284
291
  ])
@@ -288,5 +295,5 @@ const ae = {
288
295
  }
289
296
  });
290
297
  export {
291
- pe as _
298
+ he as _
292
299
  };