@feedmepos/mf-inventory-portal 1.5.12 → 1.6.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/{App-DBEmTaMX.js → App-BWiKiRD2.js} +4 -4
  2. package/dist/{ApprovalView-BvzIwH1r.js → ApprovalView-TFet-Rht.js} +7 -7
  3. package/dist/{BindingsDialog-DnqHoU0Y.js → BindingsDialog-ByO16R7B.js} +2 -2
  4. package/dist/{BindingsPicker-Bjpj0zdJ.js → BindingsPicker-BzeipJDM.js} +2 -2
  5. package/dist/{BindingsTable-S5Nqq4Qv.js → BindingsTable-CATRwDGx.js} +3 -3
  6. package/dist/ClosingDraftView-Bilo3C7N.js +4318 -0
  7. package/dist/{ClosingHistoryView-B2ccrB2K.js → ClosingHistoryView-DJEhuzBh.js} +5 -5
  8. package/dist/ClosingTemplateView-DTS__1eO.js +2221 -0
  9. package/dist/{DefaultView-DQhLe6LE.js → DefaultView-Dpwvllot.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-Cup9mzpO.js → DeliveryOrderPrintPreview-BZ-BDWlS.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DuZFuSbw.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMJVOiL_.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoPyc0aE.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-QvgQwP6t.js} +2 -2
  13. package/dist/{FmMultiselectDialog-Cwazmlw3.js → FmMultiselectDialog-B1rAOXTC.js} +2 -2
  14. package/dist/{FmMultiselectDialog-DnuUrW7h.js → FmMultiselectDialog-W0_FfMmH.js} +1 -1
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BMzzUsa4.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNpKzzVC.js} +5 -5
  16. package/dist/{ImportView-CXtrdABV.js → ImportView-B_3OeL5b.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cfp95IvX.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CdNdnCp-.js} +1 -1
  18. package/dist/{IngredientGroupView-Bm-2yK8J.js → IngredientGroupView-B_v-UNeR.js} +5 -5
  19. package/dist/{IngredientsView-Bo8w9LSr.js → IngredientsView-DTXevc-8.js} +15 -15
  20. package/dist/{IntegrationExplorerView-DUqQ64CE.js → IntegrationExplorerView-C6JUipFs.js} +352 -352
  21. package/dist/IntegrationView-DX4hhKYv.js +5100 -0
  22. package/dist/{InventoryBindingForm-DWJRCTf8.js → InventoryBindingForm-BpNKhiGF.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DH-xUQ5m.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BWy-YpCv.js} +5 -5
  24. package/dist/{InventoryBindingSummary-DSwCvTnu.js → InventoryBindingSummary-BL4AkZY3.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-KDWRZCxm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DURnZteR.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Wuv2teWn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BR0Hc9cL.js} +1 -1
  27. package/dist/{PublishView-BSahQbqy.js → PublishView-CELngZXP.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-C8umjCEU.js → PurchaseOrderPrintPreview-HCGMQWdo.js} +2 -2
  29. package/dist/{ReceiveRequestView-Bf5dAcun.js → ReceiveRequestView-DfrpsGeI.js} +26 -26
  30. package/dist/{RecipeView-wU9u23Zp.js → RecipeView-DCrrdrhp.js} +1104 -1117
  31. package/dist/{SettingsView-C5Uc6h0A.js → SettingsView-CHoDkUIF.js} +4 -4
  32. package/dist/{StockView-QF68mXtU.js → StockView-DlP1-pbq.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cgw8EDXb.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-NZcNoQ6u.js} +1 -1
  34. package/dist/{SupplierView-xBONJSsg.js → SupplierView-DqQbgLqh.js} +12 -12
  35. package/dist/{SurchargeView-BK8aNKZl.js → SurchargeView-CtlXOPJ3.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tsuedeNl.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BRrHPAJj.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BXVa7pt5.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bw3UN_Zn.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CVRD5iri.js → TransferDetails.vue_vue_type_script_setup_true_lang-atZZPJBf.js} +20 -20
  39. package/dist/TransferTemplateView-Dl0k38tD.js +2327 -0
  40. package/dist/{UnitCostHistoryView-BS0nrbkD.js → UnitCostHistoryView-Dh-yAgvG.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CeD0qWRC.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-FqnqY9bU.js} +5 -5
  42. package/dist/{UnitView-DsKX7DM0.js → UnitView-D5Zvz2xm.js} +7 -7
  43. package/dist/{WarehouseView-DRZaGu80.js → WarehouseView-s5g9AQq5.js} +5 -5
  44. package/dist/{WastageTemplateView-CtMSWKFj.js → WastageTemplateView-XzJSsB29.js} +14 -14
  45. package/dist/api/closing-draft.d.ts +6 -0
  46. package/dist/api/codemax.d.ts +11 -0
  47. package/dist/api/inventory.d.ts +1 -0
  48. package/dist/api/netsuite.d.ts +5 -4
  49. package/dist/api/surcharge.d.ts +1 -0
  50. package/dist/{app-DYMYQwvV.js → app-D-l9FM2n.js} +15762 -13683
  51. package/dist/app.d.ts +288 -0
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-Cxsa4j_W.js → closing-template-C56_2aLc.js} +1 -1
  54. package/dist/{date2-BdXL0GG5.js → date2-CRMgo5NH.js} +1 -1
  55. package/dist/{dayjs.min-LoBFKjU2.js → dayjs.min-9bo3vPqj.js} +1 -1
  56. package/dist/{decimal-BFFta-yv.js → decimal-CsE7mms2.js} +2 -2
  57. package/dist/{defineDeepModel-CCZ3fqXQ.js → defineDeepModel-DDX70CM6.js} +1 -1
  58. package/dist/{duplicate-template-C2Qho2Ig.js → duplicate-template-BrEOP-1V.js} +1 -1
  59. package/dist/{feature-Dt5ZFkZR.js → feature-Bl6yUhw_.js} +2 -2
  60. package/dist/{format-time-from-id-LqoWbcB4.js → format-time-from-id-BuMdYlM9.js} +1 -1
  61. package/dist/format-unit-display-CMfuvGP6.js +1432 -0
  62. package/dist/{import-export.helper-DogBd6aS.js → import-export.helper-C9F9d-rh.js} +6 -6
  63. package/dist/{index-IMHyRNdu.js → index-BcOtIfdU.js} +1 -1
  64. package/dist/index-BdSVteJV.js +257 -0
  65. package/dist/{index-D0xsiYLO.js → index-cbmIhZ6F.js} +1 -1
  66. package/dist/{inventory-core-dart.default-BkcD7c_a.js → inventory-core-dart.default-DewosGoK.js} +1 -1
  67. package/dist/{lz-string-CgecKowu.js → lz-string-Ye-dLAix.js} +1 -1
  68. package/dist/modules/print-template/api/print-template.d.ts +1 -0
  69. package/dist/{netsuite-9qEVrdMv.js → netsuite-Dyw1JtQL.js} +2 -2
  70. package/dist/{number-DSMFbPf0.js → number-YiCgPFTE.js} +3 -3
  71. package/dist/{predefined-templates-OZoiOUoA.js → predefined-templates-B0Eto9Jx.js} +1 -1
  72. package/dist/{purchase-order-template-CUee1L_x.js → purchase-order-template-zHPLRQDQ.js} +1 -1
  73. package/dist/{recalculationUtils-CPcCUHIm.js → recalculationUtils-DZLZlctO.js} +1 -1
  74. package/dist/{rules-CMNaUkUU.js → rules-BsVkaxL5.js} +2 -2
  75. package/dist/{stock-BOaUT0Y3.js → stock-DlQopDTl.js} +1 -1
  76. package/dist/stores/api.d.ts +1 -0
  77. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  78. package/dist/stores/integration/codemax.d.ts +432 -0
  79. package/dist/stores/integration/index.d.ts +4 -1
  80. package/dist/{supplier-BAbQZL7x.js → supplier-UPX_1aFs.js} +2 -2
  81. package/dist/{surcharge-C5tQ0vs0.js → surcharge-DO3-kAit.js} +1 -1
  82. package/dist/tsconfig.app.tsbuildinfo +1 -1
  83. package/dist/{uom-rules-CSmRb5Ds.js → uom-rules-DbhFLCUC.js} +1 -1
  84. package/dist/{use-ingredient-select-dialog-B9XYlxjA.js → use-ingredient-select-dialog-BASkk3-u.js} +16 -16
  85. package/dist/{use-inventory-binding-dialog-BzIb4yxm.js → use-inventory-binding-dialog-DTc48xUU.js} +2 -2
  86. package/dist/use-template-enabled-locations-gwYjb6_p.js +132 -0
  87. package/dist/{use-transfer-locations-Di5ozOgU.js → use-transfer-locations-BJ0xIECi.js} +2 -2
  88. package/dist/{useHrmPermission-N8GPw9P_.js → useHrmPermission-G4mfvYF8.js} +1 -1
  89. package/dist/{useNavigationMenu-BLnGMLsm.js → useNavigationMenu-Be-99JmQ.js} +2 -2
  90. package/dist/{useSseClient-BQtJfryY.js → useSseClient-D1h38l_K.js} +3 -3
  91. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +800 -0
  92. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -0
  93. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +21 -0
  94. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupCard.vue.d.ts +20 -0
  95. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +823 -0
  96. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupGrid.vue.d.ts +20 -0
  97. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -0
  98. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1400 -133
  99. package/dist/views/closing-draft/helpers/closing-draft-summary.helper.d.ts +11 -0
  100. package/dist/views/closing-draft/helpers/closing-group-detail.helper.d.ts +68 -0
  101. package/dist/views/closing-draft/helpers/closing-group-status.helper.d.ts +6 -0
  102. package/dist/views/closing-draft/helpers/closing-groups.helper.d.ts +28 -0
  103. package/dist/views/closing-draft/helpers/merge-closing-draft-items.helper.d.ts +9 -0
  104. package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateGroupsEditor.vue.d.ts +31 -0
  105. package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateItem.vue.d.ts +164 -7
  106. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +24 -88
  107. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +108 -0
  108. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +108 -0
  109. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +3 -3
  110. package/dist/views/integration/Codemax.vue.d.ts +2 -0
  111. package/dist/views/integration/components/ApplyProductCodemax.vue.d.ts +341 -0
  112. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +298 -0
  113. package/dist/views/integration/components/ApplyProductDialogPropsCodemax.d.ts +17 -0
  114. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +519 -0
  115. package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +3 -3
  116. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorDialog.vue.d.ts +2 -0
  117. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep1.vue.d.ts +2 -0
  118. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep2.vue.d.ts +8 -0
  119. package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep3.vue.d.ts +2 -0
  120. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +3225 -0
  121. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +4 -1
  122. package/dist/views/transfer-template/helpers/template-item-bulk-editor-export.d.ts +9 -0
  123. package/dist/{vue-i18n-DR8I1LQH.js → vue-i18n-fX3C6wjd.js} +306 -306
  124. package/dist/{xlsx-D5-Cqx-l.js → xlsx-BsL1DoEA.js} +1 -1
  125. package/dist/{xlsx.util-DEdsfN6W.js → xlsx.util-D_XTOHMv.js} +3 -3
  126. package/package.json +4 -4
  127. package/dist/ClosingDraftView-Y074sSoz.js +0 -3343
  128. package/dist/ClosingTemplateView-BcvKBWVJ.js +0 -2077
  129. package/dist/IntegrationView-CtkbKPzC.js +0 -4586
  130. package/dist/TransferTemplateView-Cm4evaK3.js +0 -1564
  131. package/dist/format-unit-display-CWqmpVa_.js +0 -1268
  132. package/dist/index-2DNXazDV.js +0 -164
  133. package/dist/use-template-enabled-locations-V5iE0ywc.js +0 -146
@@ -1,164 +0,0 @@
1
- import { ref as v, computed as c } from "vue";
2
- import { u as p } from "./netsuite-9qEVrdMv.js";
3
- import { u as g, A as h, a as E, E as b } from "./app-DYMYQwvV.js";
4
- import { useSnackbar as I } from "@feedmepos/ui-library";
5
- import { u as m } from "./feature-Dt5ZFkZR.js";
6
- function C() {
7
- return {
8
- setting: {
9
- _id: "",
10
- enable: !1,
11
- bindings: [],
12
- uniqueCode: "",
13
- branchCode: "",
14
- server: {
15
- password: "",
16
- host: "",
17
- username: "",
18
- port: "",
19
- directory: ""
20
- },
21
- histories: [],
22
- modifiers: [],
23
- exportAsJson: !1
24
- },
25
- menu: [],
26
- group: [],
27
- variants: [],
28
- categories: []
29
- };
30
- }
31
- const i = v(C());
32
- function w() {
33
- return {
34
- // state
35
- get isEnabled() {
36
- return i.value.setting.enable;
37
- },
38
- get isBusinessLocation() {
39
- return g().businessLevel;
40
- },
41
- get state() {
42
- return i.value;
43
- },
44
- async init() {
45
- var e, t, n, d;
46
- const o = h(), a = E();
47
- try {
48
- const r = await a.readCachedMenu();
49
- i.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], i.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], i.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [];
50
- const f = (((d = r.modules) == null ? void 0 : d.category) ?? []).map((s) => ({
51
- ...s,
52
- _id: s._id === void 0 ? null : s._id
53
- }));
54
- i.value.categories = f, i.value.setting = await o.readSetting();
55
- } catch (r) {
56
- I().open({
57
- title: "Something went wrong",
58
- message: "Cannot fetch integration info. Please try again.",
59
- type: "error"
60
- }), console.error("Error at fetching integration info", r);
61
- }
62
- }
63
- };
64
- }
65
- function S() {
66
- return {
67
- locationId: ""
68
- };
69
- }
70
- const l = v(S());
71
- function x() {
72
- const o = g(), a = b();
73
- return o.watchLocation(async (e) => {
74
- if (m().enabledXilnexOpeningMigration) {
75
- if (!e) {
76
- l.value = S();
77
- return;
78
- }
79
- l.value.locationId = e.dbName;
80
- const n = await a.readLastClosing(e.dbName);
81
- n ? l.value.closingDocumentId = n._id : l.value.closingDocumentId = "";
82
- }
83
- }), {
84
- get isEnabled() {
85
- const e = m();
86
- return c(() => e.enabledXilnexOpeningMigration).value;
87
- },
88
- get state() {
89
- return l.value;
90
- },
91
- async fetchClosingDocumentId() {
92
- const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
93
- t ? l.value.closingDocumentId = t._id : l.value.closingDocumentId = "";
94
- }
95
- };
96
- }
97
- function y() {
98
- return {
99
- locationId: ""
100
- };
101
- }
102
- const u = v(y());
103
- function D() {
104
- const o = g(), a = b();
105
- return o.watchLocation(async (e) => {
106
- if (m()) {
107
- if (!e) {
108
- u.value = y();
109
- return;
110
- }
111
- u.value.locationId = e.dbName;
112
- const n = await a.readLastClosing(e.dbName);
113
- n ? u.value.closingDocumentId = n._id : u.value.closingDocumentId = "";
114
- }
115
- }), {
116
- get isEnabled() {
117
- const e = m();
118
- return c(() => e.enabledSynergyOpeningMigration).value;
119
- },
120
- get state() {
121
- return u.value;
122
- },
123
- async fetchClosingDocumentId() {
124
- const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
125
- t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
126
- }
127
- };
128
- }
129
- function A() {
130
- const o = p(), a = w(), e = x(), t = D(), n = c(() => o.isEnabled), d = c(() => a.isEnabled), r = c(() => e.isEnabled), f = c(() => t.isEnabled);
131
- return {
132
- get enabledIntegrations() {
133
- return [
134
- n.value,
135
- d.value,
136
- r.value,
137
- f.value
138
- ].filter((s) => s).length;
139
- },
140
- get isNetSuiteEnabled() {
141
- return n.value;
142
- },
143
- async fetchFoodMarketHubSetting() {
144
- try {
145
- await a.init();
146
- } catch (s) {
147
- console.error("Error fetching FoodMarketHub setting:", s);
148
- }
149
- },
150
- async fetchNetSuiteSetting() {
151
- try {
152
- await o.readSetting();
153
- } catch (s) {
154
- console.error("Error fetching NetSuite setting:", s);
155
- }
156
- }
157
- };
158
- }
159
- export {
160
- x as a,
161
- D as b,
162
- A as c,
163
- w as u
164
- };
@@ -1,146 +0,0 @@
1
- import { a as A } from "./FmMultiselectDialog-Cwazmlw3.js";
2
- import { u as S } from "./app-DYMYQwvV.js";
3
- import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
4
- import { useDialog as C, components as p } from "@feedmepos/ui-library";
5
- import { computed as r, h as c } from "vue";
6
- function K(a) {
7
- const f = C(), n = S(), { t: l } = w(), b = r(() => i().restaurants.value.reduce((t, s) => (t[s._id] = s.customAttributes || {}, t), {})), u = r(
8
- () => i().restaurants.value.filter((o) => {
9
- var t;
10
- return (t = o.profile) == null ? void 0 : t.code;
11
- }).map((o) => ({ value: o.profile.code, label: `${o.profile.name} (${o.profile.code})` }))
12
- ), { attributes: y } = _({
13
- valueSource: i().restaurants,
14
- entity: "restaurant"
15
- });
16
- function L() {
17
- var d;
18
- const o = a.getLocations() ?? [], t = n.locationById, s = o.filter((e) => !t[e.doc._id]);
19
- f.open({
20
- title: "Select at least one location",
21
- contentComponent: c(
22
- A,
23
- {
24
- modelValue: ((d = h.value) == null ? void 0 : d.map((e) => e.doc._id)) ?? [],
25
- items: n.locations.map((e) => ({
26
- label: `${e.name}(${e.doc.profile.code ?? "--"})`,
27
- sublabel: e.type,
28
- value: e.doc._id,
29
- customAttributes: {
30
- ...b.value[e.doc._id],
31
- state: e.doc.profile.address.state,
32
- ...e.doc.profile.code ? { outlet: e.doc.profile.code } : {}
33
- }
34
- })),
35
- filterAttributes: [
36
- ...y.value,
37
- {
38
- type: "string",
39
- key: "state",
40
- entity: "location",
41
- values: [
42
- ...new Set(
43
- n.locations.map((e) => e.doc.profile.address.state).filter(Boolean)
44
- )
45
- ]
46
- },
47
- ...u.value.length > 0 ? [
48
- {
49
- type: "string",
50
- key: "outlet",
51
- entity: "restaurant",
52
- options: u.value
53
- }
54
- ] : []
55
- ],
56
- attributeKey: "customAttributes"
57
- },
58
- {
59
- appendList() {
60
- return s.map(
61
- (e) => c(
62
- p.FmListItem,
63
- {
64
- label: `${e.name}(${e.doc.profile.code ?? "--"})`,
65
- sublabel: "This location is not manageable by your account.",
66
- disabled: !0
67
- },
68
- {
69
- prepend: c(p.FmCheckbox, {
70
- modelValue: !0,
71
- value: "",
72
- disabled: !0
73
- })
74
- }
75
- )
76
- );
77
- }
78
- }
79
- ),
80
- contentComponentProps: {},
81
- primaryActions: {
82
- text: l("common.confirm"),
83
- close: !0
84
- },
85
- secondaryActions: {
86
- text: l("common.close"),
87
- close: !0
88
- }
89
- }).onPrimary((e) => {
90
- const m = [...n.locations.filter((v) => e.includes(v.doc._id)), ...s];
91
- m.length ? a.setLocations(m) : a.setLocations(null);
92
- });
93
- }
94
- const h = r(() => {
95
- var t;
96
- const o = /* @__PURE__ */ new Set([...n.locations.map((s) => s.doc._id)]);
97
- return (t = a.getLocations()) == null ? void 0 : t.filter((s) => o.has(s.doc._id));
98
- }), g = r(() => {
99
- const o = a.getLocations();
100
- return o ? o.reduce(
101
- (t, s) => {
102
- switch (s.type) {
103
- case "restaurant": {
104
- t[0].restaurants += 1;
105
- break;
106
- }
107
- case "warehouse": {
108
- t[0].warehouses += 1;
109
- break;
110
- }
111
- }
112
- return t[0][s.type] += 1, t;
113
- },
114
- [
115
- {
116
- restaurants: 0,
117
- warehouses: 0
118
- }
119
- ]
120
- ) : [
121
- {
122
- restaurants: "All",
123
- warehouses: "All"
124
- }
125
- ];
126
- });
127
- return {
128
- promptSelectLocations: L,
129
- columnDefs: [
130
- {
131
- accessorKey: "restaurants",
132
- header: () => "Restaurants",
133
- enableSorting: !1
134
- },
135
- {
136
- accessorKey: "warehouses",
137
- header: () => "Warehouses",
138
- enableSorting: !1
139
- }
140
- ],
141
- rowData: g
142
- };
143
- }
144
- export {
145
- K as u
146
- };