@feedmepos/mf-inventory-portal 0.0.23-dev.29 → 0.0.23-dev.3

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 (114) hide show
  1. package/dist/{App-Cb0DKDZS.js → App-BREfwtck.js} +73 -85
  2. package/dist/{ApprovalView-Cifc-Y_m.js → ApprovalView-DCzLx24G.js} +27 -24
  3. package/dist/{BindingsDialog-huZq9ea8.js → BindingsDialog-CUcC8lue.js} +4 -4
  4. package/dist/{BindingsPicker-fFhc3-J_.js → BindingsPicker-3VOdZBWI.js} +9 -8
  5. package/dist/{BindingsTable-i3JEZnKw.js → BindingsTable-D5Lt6GOO.js} +22 -18
  6. package/dist/{ClosingTemplateView-CUfFxnXb.js → ClosingTemplateView-CukthwOo.js} +286 -272
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +267 -0
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +436 -0
  10. package/dist/FmMultiselectDialog-CKBcMDGC.js +415 -0
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js} +114 -116
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtwkTwMB.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js} +5 -5
  13. package/dist/{IngredientGroupView-DS1OeV_l.js → IngredientGroupView-CkD8x2CP.js} +69 -63
  14. package/dist/IngredientsView-DuK4YSD6.js +1613 -0
  15. package/dist/{IntegrationView-BCwOX1nf.js → IntegrationView-BfeV07OO.js} +95 -92
  16. package/dist/{InventoryBindingForm-BObD8RZu.js → InventoryBindingForm-BsSmth0U.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-YGmtVDLf.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js} +27 -25
  18. package/dist/{InventoryBindingSummary-D1OHZ8H_.js → InventoryBindingSummary-BHloDawE.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJSNaaWU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js} +24 -23
  21. package/dist/{PurchaseOrderPrintPreview-s-lWuBrs.js → PurchaseOrderPrintPreview-CTdd-RuH.js} +14 -13
  22. package/dist/ReceiveRequestView-CgWNaYs1.js +4104 -0
  23. package/dist/{RecipeView-BdmH9QHY.js → RecipeView-CrmDQdc5.js} +85 -79
  24. package/dist/{StockView-CzIY1FD0.js → StockView-Xb3fQaiD.js} +1446 -1338
  25. package/dist/{SupplierView-CDdzeK4D.js → SupplierView-CrtIiaz0.js} +787 -2325
  26. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +1189 -0
  28. package/dist/TransferTemplateView-Cc7VRbZ7.js +1262 -0
  29. package/dist/{UnitView-CAKx1qNs.js → UnitView-C6BgrZ1G.js} +44 -40
  30. package/dist/{WarehouseView-DRveYDl1.js → WarehouseView-Hhd76ybU.js} +100 -94
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/bill.d.ts +2 -2
  33. package/dist/api/closing.d.ts +0 -1
  34. package/dist/api/netsuite.d.ts +1 -1
  35. package/dist/app-CwUHqg7h.js +33462 -0
  36. package/dist/app.d.ts +0 -56
  37. package/dist/app.js +2 -2
  38. package/dist/components/FmMinMaxInputRules.d.ts +1 -4
  39. package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
  40. package/dist/components/row-action.enum.d.ts +0 -1
  41. package/dist/composable/defineDeepModel.d.ts +1 -1
  42. package/dist/date2-CHNm4ELK.js +117 -0
  43. package/dist/dayjs.min-FE3dpxHU.js +282 -0
  44. package/dist/{decimal-Dv59Tc95.js → decimal-rPKr5T-H.js} +1 -1
  45. package/dist/defineDeepModel-Dc1zZzOi.js +13 -0
  46. package/dist/{feature-CcnwSkJs.js → feature-z95vJnA1.js} +9 -23
  47. package/dist/format-time-from-id-CaPj8EHN.js +15 -0
  48. package/dist/format-unit-display-Bkz5kW6p.js +1198 -0
  49. package/dist/fuzzy-DXqhGaFi.js +41 -0
  50. package/dist/index-BMJHz32O.js +22277 -0
  51. package/dist/index-Be5vGZdr.js +45 -0
  52. package/dist/index-D2juQPg6.js +10545 -0
  53. package/dist/netsuite-P0as0Moa.js +194 -0
  54. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  55. package/dist/router/name.d.ts +0 -2
  56. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  57. package/dist/rules-BQz4NGht.js +198 -0
  58. package/dist/stores/feature.d.ts +0 -2
  59. package/dist/stores/integration/netsuite.d.ts +1 -69
  60. package/dist/stores/inventory.d.ts +4 -1
  61. package/dist/style.css +1 -1
  62. package/dist/{supplier-DElqqxGT.js → supplier-BixmjZyl.js} +15 -15
  63. package/dist/tsconfig.app.tsbuildinfo +1 -1
  64. package/dist/{use-inventory-binding-dialog-CfHThiv9.js → use-inventory-binding-dialog-BRygbm1p.js} +11 -10
  65. package/dist/use-template-enabled-locations-2-Dd15d-ng.js +86 -0
  66. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  67. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
  68. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  69. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
  70. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  71. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  72. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  73. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  74. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  75. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  76. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  77. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  78. package/dist/xlsx-k2Rf0NcF.js +24004 -0
  79. package/dist/xlsx.util-CJxPf7XZ.js +78 -0
  80. package/package.json +2 -2
  81. package/dist/ClosingDraftView-C8yh1aar.js +0 -1190
  82. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js +0 -282
  83. package/dist/IngredientsView-1ICj0ozR.js +0 -1657
  84. package/dist/ReceiveRequestView-BR1NkASK.js +0 -4188
  85. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js +0 -1227
  86. package/dist/TransferTemplateView-BYuUr8m6.js +0 -1264
  87. package/dist/api/adjustment-template.d.ts +0 -23
  88. package/dist/api/closing-draft.d.ts +0 -6
  89. package/dist/app-CutWLf0m.js +0 -84180
  90. package/dist/format-unit-display-mDGo4-C8.js +0 -1207
  91. package/dist/index-BRw5keOc.js +0 -12087
  92. package/dist/stock-Bqhch78I.js +0 -125
  93. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
  94. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
  95. package/dist/views/adjustment-template/import/export.d.ts +0 -60
  96. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
  97. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
  98. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
  99. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
  100. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
  101. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
  102. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
  103. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
  104. package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
  105. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
  106. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  107. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  108. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
  109. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  110. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
  111. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  112. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  113. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
  114. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +0 -1
@@ -1,4188 +0,0 @@
1
- import { reactive as Gn, onMounted as It, h as ce, computed as Q, defineComponent as Ae, openBlock as G, createElementBlock as ne, Fragment as je, renderList as wt, createElementVNode as L, toDisplayString as re, unref as v, resolveComponent as X, createVNode as M, withCtx as q, createCommentVNode as Ie, ref as ue, createBlock as Oe, watch as Je, normalizeClass as Pe, normalizeStyle as Bn, getCurrentInstance as Yt, inject as ps, onUnmounted as _s, shallowRef as ms, Text as fs, createTextVNode as Ut, mergeProps as Ft, isRef as rt, Teleport as vs } from "vue";
2
- import { b as Kt, Z as gs, l as ln, i as qe, O as bs, a0 as Xt, K as ys, aq as Es, A as Tt, M as Ts, ar as $n, ab as qt, E as xe, as as hs, a as Jt, at as ks, au as Is, av as Os, G as Ss, u as zt, aw as Ns, $ as Rs, ax as Cs, B as jn, H as As, d as ct, ay as vt, a5 as cn, x as Ds, y as Ls, z as Ps, N as un } from "./app-CutWLf0m.js";
3
- import { u as Wn, a as ws, b as Us, _ as Fs, g as Ms } from "./TransferDetails.vue_vue_type_script_setup_true_lang-9gBm-Qpw.js";
4
- import { _ as Yn, u as xs, i as Hs, e as Vs } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-C-oLUbzX.js";
5
- import { u as Gs } from "./useTabStorage-BkIVScW_.js";
6
- import { useBreakpoints as Qt, components as Ke, FmButtonVariant as Bs, useSnackbar as Ot, useDialog as $s, useProxiedModel as js } from "@feedmepos/ui-library";
7
- import { P as be, u as Kn } from "./format-unit-display-mDGo4-C8.js";
8
- import { _ as Ws, F as Ys, a as dn, b as Ks } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-FrCm7O_S.js";
9
- import { u as St } from "./feature-CcnwSkJs.js";
10
- import { c as Me, u as Xs, _ as qs } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lcB61e9L.js";
11
- import { useI18n as tt } from "@feedmepos/mf-common";
12
- import { u as Zt } from "./supplier-DElqqxGT.js";
13
- import { _ as Js } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
14
- import "@vue/devtools-api";
15
- import "./array-hChJVZLE.js";
16
- var ye = /* @__PURE__ */ ((e) => (e.Code = "Code", e.Name = "Name", e.Amount = "Amount", e.Cost = "Cost", e.TotalCost = "TotalCost", e.Delete = "Delete", e))(ye || {});
17
- const pn = () => {
18
- const { t: e } = tt();
19
- return ce(
20
- Yn,
21
- {
22
- zIndex: 50,
23
- class: "whitespace-nowrap"
24
- },
25
- e("inventory.transfer.form.items.table.Cost", [$n()])
26
- );
27
- };
28
- function zs(e) {
29
- const { t } = tt(), n = Gn({}), { breakpoints: s } = Qt(), a = St(), r = Kt();
30
- It(() => {
31
- for (const _ of e.items) {
32
- if (!_.totalCost)
33
- continue;
34
- const p = Me(_.sku, _.quantity, _.measurement, {
35
- supplier: e.supplier
36
- }), m = _.totalCost ?? gs.reset();
37
- p ? n[_.sku._id] = p.amount !== m.amount || p.precision !== m.precision : n[_.sku._id] = !0;
38
- }
39
- });
40
- function i(_) {
41
- var m, g, O, A, N, k, c;
42
- return !!(((g = (m = _.defaultCost) == null ? void 0 : m.costPerUnit) == null ? void 0 : g.amount) ?? ((c = (k = (N = (A = (O = e.supplier) == null ? void 0 : O.supplyItems) == null ? void 0 : A.find((b) => b.skuId === _._id)) == null ? void 0 : N.defaultCost) == null ? void 0 : k.costPerUnit) == null ? void 0 : c.amount));
43
- }
44
- const d = [
45
- {
46
- id: "Code",
47
- header: () => t("inventory.transfer.form.items.table.Code"),
48
- accessorKey: "code",
49
- size: 96,
50
- cell(_) {
51
- const p = _.row.original;
52
- return r.isEnabled ? ce(
53
- Ke.FmTooltip,
54
- {
55
- content: p.code,
56
- placement: "top",
57
- variant: "plain",
58
- zIndex: 50
59
- },
60
- ce(
61
- "span",
62
- {
63
- class: "flex-auto line-clamp-2 text-ellipsis break-all"
64
- },
65
- p.code
66
- )
67
- ) : ce(Ke.FmTextField, {
68
- modelValue: p.code,
69
- "onUpdate:modelValue": (m) => {
70
- e.updateItem({
71
- ...p,
72
- code: m
73
- });
74
- },
75
- key: p.sku._id,
76
- rules: [ln()],
77
- labelMark: "required"
78
- });
79
- },
80
- enableSorting: !1
81
- },
82
- {
83
- id: "Name",
84
- header: () => t("inventory.transfer.form.items.table.Name"),
85
- minSize: 300,
86
- cell(_) {
87
- const p = _.row.original;
88
- return r.isEnabled ? ce(
89
- Ke.FmTooltip,
90
- {
91
- content: p.name,
92
- placement: "top",
93
- variant: "plain",
94
- zIndex: 50
95
- },
96
- ce(
97
- "span",
98
- {
99
- class: "flex-auto line-clamp-2 text-ellipsis break-all"
100
- },
101
- p.name
102
- )
103
- ) : ce(Ke.FmTextField, {
104
- modelValue: p.name,
105
- "onUpdate:modelValue": (m) => {
106
- e.updateItem({
107
- ...p,
108
- name: m
109
- });
110
- },
111
- key: p.sku._id,
112
- rules: [ln()],
113
- labelMark: "required"
114
- });
115
- },
116
- enableSorting: !1
117
- },
118
- {
119
- id: "Amount",
120
- header: () => t("inventory.transfer.form.items.table.Amount"),
121
- minSize: 200,
122
- cell(_) {
123
- var g, O, A;
124
- const p = _.row.original, m = (A = (O = (g = e.template) == null ? void 0 : g.purchaseOrder) == null ? void 0 : O.items) == null ? void 0 : A.find(
125
- (N) => N.sku._id === p.sku._id
126
- );
127
- return ce(Ws, {
128
- style: {
129
- flex: "1 1 0%"
130
- },
131
- modelValue: {
132
- amount: p.quantity ?? { amount: 1, precision: 0 },
133
- measurement: p.measurement ?? null
134
- },
135
- key: p.sku._id,
136
- unit: p.sku.unit,
137
- "onUpdate:modelValue": (N) => {
138
- const k = {
139
- ...p,
140
- quantity: N.amount,
141
- measurement: N.measurement
142
- };
143
- a.enableTotalCost && (k.totalCost = Me(p.sku, p.quantity, p.measurement, {
144
- supplier: e.supplier,
145
- // NOTE: set undefined here if `manualTotalCost[row.sku._id] = false`, so that the function
146
- // will return the auto calculated default cost instead of the manual total cost
147
- manualTotalCost: n[p.sku._id] ? k.totalCost : void 0
148
- })), e.updateItem(k);
149
- },
150
- stepper: m == null ? void 0 : m.quantityStep,
151
- disableUnit: !!m,
152
- disabled: e.disabled,
153
- rules: [
154
- Ys(
155
- +qe(
156
- (m == null ? void 0 : m.minimumQuantity) ?? {
157
- amount: 1,
158
- precision: bs(p.sku.unit, p.measurement)
159
- }
160
- )
161
- ),
162
- m != null && m.maximumQuantity ? dn(
163
- +qe(m == null ? void 0 : m.maximumQuantity)
164
- ) : dn(1 / 0),
165
- ...m != null && m.quantityStep ? [Ks(m.quantityStep)] : []
166
- ],
167
- applyDefaultRules: !0
168
- });
169
- },
170
- enableSorting: !1
171
- },
172
- a.mustUseDefaultCost ? {
173
- id: "TotalCost",
174
- header: pn,
175
- size: 180,
176
- accessorFn: (_) => {
177
- const p = Me(_.sku, _.quantity, _.measurement, {
178
- supplier: e.supplier
179
- });
180
- return qe(p);
181
- }
182
- } : {
183
- id: "Cost",
184
- header: pn,
185
- size: 180,
186
- cell(_) {
187
- const p = _.row.original, m = i(p.sku), g = s.value.xs || s.value.sm;
188
- return !n[p.sku._id] && m ? ce(
189
- "div",
190
- {
191
- class: [
192
- "flex gap-4 fm-typo-en-body-md-400 items-center",
193
- e.disabled ? "text-fm-color-typo-disabled" : ""
194
- ],
195
- key: p.sku._id
196
- },
197
- [
198
- ce(Ke.FmButton, {
199
- prependIcon: "edit",
200
- variant: Bs.Tertiary,
201
- disabled: e.disabled,
202
- onClick() {
203
- e.updateItem({
204
- ...p,
205
- totalCost: Me(p.sku, p.quantity, p.measurement, {
206
- supplier: e.supplier
207
- })
208
- }), n[p.sku._id] = !0;
209
- }
210
- }),
211
- ce(
212
- "div",
213
- {
214
- class: "flex flex-col"
215
- },
216
- [
217
- ce(
218
- "span",
219
- g ? Xt(
220
- Me(p.sku, p.quantity, p.measurement, {
221
- supplier: e.supplier
222
- })
223
- ) : qe(
224
- Me(p.sku, p.quantity, p.measurement, {
225
- supplier: e.supplier
226
- })
227
- )
228
- ),
229
- ce(
230
- "span",
231
- {
232
- class: [
233
- "fm-typo-en-body-sm-400",
234
- e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-neutral-gray-400"
235
- ]
236
- },
237
- t("inventory.transfer.form.items.autoCalculated")
238
- )
239
- ]
240
- )
241
- ]
242
- ) : ce(
243
- Ke.FmTextField,
244
- {
245
- modelValue: qe(p.totalCost ?? { amount: 0, precision: 0 }),
246
- key: p.sku._id,
247
- "onUpdate:modelValue": (O) => {
248
- e.updateItem({
249
- ...p,
250
- totalCost: {
251
- ...ys(+O),
252
- currency: Es()
253
- }
254
- });
255
- },
256
- rules: [Tt(0), Ts(2)]
257
- },
258
- {
259
- prepend() {
260
- return g ? ce(
261
- "div",
262
- {
263
- class: [
264
- "text-fm-typo-en-body-lg-400",
265
- e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
266
- ]
267
- },
268
- $n()
269
- ) : null;
270
- },
271
- append() {
272
- return m ? ce(Ke.FmButton, {
273
- prependIcon: "close",
274
- variant: "tertiary",
275
- disabled: e.disabled,
276
- onClick() {
277
- e.updateItem({
278
- ...p,
279
- // NOTE: different from PO template, if a default cost is reenabled,
280
- // the total cost will automatically assigned
281
- totalCost: Me(p.sku, p.quantity, p.measurement, {
282
- supplier: e.supplier
283
- })
284
- }), n[p.sku._id] = !1;
285
- }
286
- }) : null;
287
- }
288
- }
289
- );
290
- },
291
- enableSorting: !1
292
- },
293
- {
294
- id: "Delete",
295
- header: "",
296
- cell(_) {
297
- const p = _.row.original;
298
- return ce(Ke.FmButton, {
299
- key: p.sku._id,
300
- class: "delete-button",
301
- type: "button",
302
- icon: "delete",
303
- variant: "tertiary",
304
- size: "md",
305
- disabled: e.disabled,
306
- onClick: () => {
307
- e.deleteItem(p);
308
- }
309
- });
310
- },
311
- enableSorting: !1,
312
- size: 40,
313
- meta: {
314
- cellClass: "",
315
- headerClass: ""
316
- }
317
- }
318
- ];
319
- return {
320
- columnDefs: Q(() => a.enableTotalCost && (a.mustUseDefaultCost || e.transferType === be.PURCHASE) ? d : d.filter(
321
- (_) => _.id !== "Cost"
322
- /* Cost */
323
- ))
324
- };
325
- }
326
- const Qs = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center" }, Zs = { class: "fm-typo-en-body-lg-600 xs:fm-typo-en-body-md-600 mr-auto xs:w-full" }, er = { class: "w-[450px] xs:w-full flex" }, tr = { class: "fm-typo-en-body-md-400 whitespace-nowrap" }, nr = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xn = /* @__PURE__ */ Ae({
327
- __name: "SupplierPriceHistory",
328
- props: {
329
- prices: {}
330
- },
331
- setup(e) {
332
- const t = Zt();
333
- function n(s) {
334
- return t.suppliers.find((a) => a._id === s);
335
- }
336
- return (s, a) => (G(), ne("div", Qs, [
337
- (G(!0), ne(je, null, wt(Object.keys(s.prices), (r) => {
338
- var i;
339
- return G(), ne("div", {
340
- key: r,
341
- class: "flex items-center gap-12 xs:gap-4 xs:flex-wrap w-full"
342
- }, [
343
- L("div", Zs, re((i = n(r)) == null ? void 0 : i.name), 1),
344
- L("div", er, [
345
- (G(!0), ne(je, null, wt(s.prices[r].slice(0, 3), (d) => {
346
- var u;
347
- return G(), ne("div", {
348
- key: d.date,
349
- class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
350
- }, [
351
- L("div", tr, [
352
- L("span", null, re(d.totalCost ? v(Xt)(d.totalCost) : "No data"), 1),
353
- a[0] || (a[0] = L("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
354
- L("span", null, re(v(qe)(d.totalUnit, !1)), 1),
355
- L("span", null, re(((u = d.measurement) == null ? void 0 : u.abbrev) ?? d.unit.abbrev), 1)
356
- ]),
357
- L("div", nr, [
358
- L("span", null, "(#" + re(d.seqNumber) + ")", 1),
359
- a[1] || (a[1] = L("span", null, re(" "), -1)),
360
- L("span", null, re(v(qt)(new Date(d.date))), 1)
361
- ])
362
- ]);
363
- }), 128))
364
- ])
365
- ]);
366
- }), 128))
367
- ]));
368
- }
369
- }), sr = { class: "flex flex-col gap-8 py-16" }, rr = { class: "flex items-center" }, ar = { class: "flex-1 flex gap-1 items-center" }, or = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ir = { class: "flex gap-8 w-full" }, cr = { class: "flex-1 flex flex-col gap-4" }, ur = { class: "flex-1 flex flex-col gap-4" }, dr = { class: "flex gap-8 w-full" }, pr = { class: "flex-1 flex flex-col gap-4" }, _r = {
370
- key: 0,
371
- class: "flex-1 flex flex-col gap-4"
372
- }, mr = /* @__PURE__ */ Ae({
373
- __name: "TransferItem",
374
- props: {
375
- cellByColId: {},
376
- comparePriceBySku: {},
377
- showComparePrice: { type: Boolean },
378
- row: {}
379
- },
380
- setup(e) {
381
- const { t } = tt();
382
- return (n, s) => {
383
- var i, d, u, _, p, m, g, O, A, N, k, c, b, S, y, h, I, T, V, H, B, Z, $, U, P, le, Te;
384
- const a = X("FmLabel"), r = X("FmSpacer");
385
- return G(), ne("div", sr, [
386
- L("div", rr, [
387
- L("div", ar, [
388
- L("span", or, " (" + re(n.row.original.sku.code) + ") ", 1),
389
- L("span", lr, re(n.row.original.sku.name), 1)
390
- ]),
391
- L("div", null, [
392
- M(v(xe), {
393
- render: (u = (d = (i = n.cellByColId.Delete) == null ? void 0 : i.column) == null ? void 0 : d.columnDef) == null ? void 0 : u.cell,
394
- props: (p = (_ = n.cellByColId.Delete) == null ? void 0 : _.getContext) == null ? void 0 : p.call(_)
395
- }, null, 8, ["render", "props"])
396
- ])
397
- ]),
398
- L("div", ir, [
399
- L("div", cr, [
400
- M(a, {
401
- label: v(t)(`inventory.transfer.form.items.table.${v(ye).Code}`)
402
- }, null, 8, ["label"]),
403
- M(v(xe), {
404
- render: (O = (g = (m = n.cellByColId[v(ye).Code]) == null ? void 0 : m.column) == null ? void 0 : g.columnDef) == null ? void 0 : O.cell,
405
- props: (N = (A = n.cellByColId[v(ye).Code]) == null ? void 0 : A.getContext) == null ? void 0 : N.call(A)
406
- }, null, 8, ["render", "props"]),
407
- s[0] || (s[0] = L("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
408
- ]),
409
- L("div", ur, [
410
- M(a, {
411
- label: v(t)(`inventory.transfer.form.items.table.${v(ye).Name}`)
412
- }, null, 8, ["label"]),
413
- M(v(xe), {
414
- render: (b = (c = (k = n.cellByColId[v(ye).Name]) == null ? void 0 : k.column) == null ? void 0 : c.columnDef) == null ? void 0 : b.cell,
415
- props: (y = (S = n.cellByColId[v(ye).Name]) == null ? void 0 : S.getContext) == null ? void 0 : y.call(S)
416
- }, null, 8, ["render", "props"]),
417
- s[1] || (s[1] = L("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
418
- ])
419
- ]),
420
- L("div", dr, [
421
- L("div", pr, [
422
- M(a, {
423
- label: v(t)(`inventory.transfer.form.items.table.${v(ye).Amount}`)
424
- }, null, 8, ["label"]),
425
- M(v(xe), {
426
- render: (T = (I = (h = n.cellByColId[v(ye).Amount]) == null ? void 0 : h.column) == null ? void 0 : I.columnDef) == null ? void 0 : T.cell,
427
- props: (H = (V = n.cellByColId[v(ye).Amount]) == null ? void 0 : V.getContext) == null ? void 0 : H.call(V)
428
- }, null, 8, ["render", "props"]),
429
- s[2] || (s[2] = L("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
430
- ]),
431
- n.cellByColId[v(ye).Cost] ? (G(), ne("div", _r, [
432
- M(Yn, { "z-index": 50 }, {
433
- default: q(() => [
434
- M(a, {
435
- label: v(t)(`inventory.transfer.form.items.table.${v(ye).Cost}2`)
436
- }, null, 8, ["label"])
437
- ]),
438
- _: 1
439
- }),
440
- M(v(xe), {
441
- render: ($ = (Z = (B = n.cellByColId[v(ye).Cost]) == null ? void 0 : B.column) == null ? void 0 : Z.columnDef) == null ? void 0 : $.cell,
442
- props: (P = (U = n.cellByColId[v(ye).Cost]) == null ? void 0 : U.getContext) == null ? void 0 : P.call(U)
443
- }, null, 8, ["render", "props"]),
444
- s[3] || (s[3] = L("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
445
- ])) : Ie("", !0)
446
- ]),
447
- n.showComparePrice && Object.keys(n.comparePriceBySku[(le = n.row.original.sku) == null ? void 0 : le._id] ?? {}).length > 0 ? (G(), ne(je, { key: 0 }, [
448
- M(r, { class: "h-8" }),
449
- M(Xn, {
450
- prices: n.comparePriceBySku[(Te = n.row.original.sku) == null ? void 0 : Te._id]
451
- }, null, 8, ["prices"])
452
- ], 64)) : Ie("", !0)
453
- ]);
454
- };
455
- }
456
- });
457
- function fr(e) {
458
- const t = Q({
459
- get() {
460
- const r = e.getEffectiveAt();
461
- return r ? new Date(r) : null;
462
- },
463
- set(r) {
464
- e.setEffectiveAt((r == null ? void 0 : r.toISOString()) ?? null);
465
- }
466
- }), n = Q({
467
- get() {
468
- return !!t.value;
469
- },
470
- set(r) {
471
- r ? t.value = /* @__PURE__ */ new Date() : t.value = null;
472
- }
473
- }), s = Q({
474
- get() {
475
- return t.value === null ? "" : qt(t.value);
476
- },
477
- set(r) {
478
- r ? t.value = /* @__PURE__ */ new Date(`${r} ${a.value}`) : t.value = null;
479
- }
480
- }), a = Q({
481
- get() {
482
- return t.value === null ? "" : hs(t.value);
483
- },
484
- set(r) {
485
- r ? t.value = /* @__PURE__ */ new Date(`${s.value} ${r}`) : t.value = null;
486
- }
487
- });
488
- return {
489
- backdatePo: t,
490
- backdateSwitch: n,
491
- backdateModel: s,
492
- backdateTimeModel: a
493
- };
494
- }
495
- const vr = {
496
- width: "24",
497
- height: "24",
498
- viewBox: "0 0 24 24",
499
- fill: "none",
500
- xmlns: "http://www.w3.org/2000/svg"
501
- }, gr = ["fill"], br = ["fill"], yr = ["stroke"], Er = ["stroke"], Tr = /* @__PURE__ */ Ae({
502
- __name: "SparkIcon",
503
- props: {
504
- size: {
505
- type: Number,
506
- default: 24
507
- },
508
- color: {
509
- type: String,
510
- default: "#c7c7cc"
511
- }
512
- },
513
- setup(e) {
514
- return (t, n) => (G(), ne("svg", vr, [
515
- L("path", {
516
- d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
517
- fill: e.color
518
- }, null, 8, gr),
519
- L("path", {
520
- d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
521
- fill: e.color
522
- }, null, 8, br),
523
- L("path", {
524
- d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
525
- stroke: e.color,
526
- "stroke-width": "1.5",
527
- "stroke-linecap": "round",
528
- "stroke-linejoin": "round"
529
- }, null, 8, yr),
530
- L("path", {
531
- d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
532
- stroke: e.color,
533
- "stroke-width": "1.5",
534
- "stroke-linecap": "round",
535
- "stroke-linejoin": "round"
536
- }, null, 8, Er)
537
- ]));
538
- }
539
- }), hr = { class: "flex gap-8 items-center" }, kr = { class: "fm-typo-en-body-lg-600 line-clamp-1" }, Ir = { class: "w-[343px] px-24 py-16 rounded-lg shadow-light-300 flex flex-col gap-[20px]" }, Or = { class: "flex items-center w-full" }, Sr = { class: "flex-1" }, Nr = { class: "fm-typo-en-title-sm-800" }, Rr = { class: "flex items-start gap-8" }, Cr = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ar = { class: "flex gap-1" }, _n = /* @__PURE__ */ Ae({
540
- __name: "ForecastStock",
541
- props: {
542
- disabled: { type: Boolean }
543
- },
544
- emits: ["update:poItems"],
545
- setup(e, { emit: t }) {
546
- const n = t, s = ue(!1), a = ue(7), r = xs(), i = Ot(), d = Jt(), { t: u } = tt();
547
- async function _() {
548
- if (a.value < 1)
549
- return;
550
- s.value = !1, await r.readPurchaseOrder(a.value);
551
- const p = [];
552
- if (r.purchaseOrderForecast.skus.length <= 0) {
553
- i.open({
554
- message: u("inventory.transfer.form.items.forecastStock.notAvailable"),
555
- type: "info"
556
- });
557
- return;
558
- }
559
- const m = r.purchaseOrderForecast.skus.reduce((g, O) => {
560
- const A = d.skus.find((c) => c._id === O.id);
561
- if (g.find((c) => c.sku._id === O.id) || !A)
562
- return g;
563
- const k = {
564
- sku: A,
565
- code: A.code,
566
- name: A.name,
567
- quantity: {
568
- amount: O.amount,
569
- precision: 0
570
- }
571
- };
572
- return g.push(k), g;
573
- }, p);
574
- n("update:poItems", m);
575
- }
576
- return (p, m) => {
577
- const g = X("FmButton"), O = X("FmIcon"), A = X("FmStepperField"), N = X("FmPopover");
578
- return G(), Oe(N, {
579
- disabled: p.disabled,
580
- class: "flex",
581
- "show-popover": s.value,
582
- onPopoverChanged: m[3] || (m[3] = (k) => s.value = k)
583
- }, {
584
- "popover-button": q(() => [
585
- M(g, {
586
- label: "unused",
587
- variant: "secondary",
588
- "text-color": p.disabled ? "disabled" : "primary",
589
- "bg-color": "transparent",
590
- "border-color": p.disabled ? "disabled" : "primary",
591
- disabled: p.disabled
592
- }, {
593
- default: q(() => [
594
- L("div", hr, [
595
- M(Tr, {
596
- size: 24,
597
- color: p.disabled ? "#c7c7cc" : "#ff7823"
598
- }, null, 8, ["color"]),
599
- L("div", kr, re(v(u)("inventory.transfer.form.items.forecastStock.title")), 1)
600
- ])
601
- ]),
602
- _: 1
603
- }, 8, ["text-color", "border-color", "disabled"])
604
- ]),
605
- default: q(() => [
606
- L("div", Ir, [
607
- L("div", Or, [
608
- L("div", Sr, [
609
- M(Js, { "z-index": 99 }, {
610
- default: q(() => [
611
- L("p", Nr, re(v(u)("inventory.transfer.form.items.forecastStock.title")), 1)
612
- ]),
613
- _: 1
614
- })
615
- ]),
616
- M(g, {
617
- icon: "close",
618
- size: "md",
619
- variant: "tertiary",
620
- onClick: m[0] || (m[0] = (k) => s.value = !1)
621
- })
622
- ]),
623
- M(A, {
624
- modelValue: a.value,
625
- "onUpdate:modelValue": m[1] || (m[1] = (k) => a.value = k),
626
- label: v(u)("inventory.transfer.form.items.forecastStock.days"),
627
- rules: [v(Tt)(1)]
628
- }, {
629
- "helper-text": q(() => [
630
- L("div", Rr, [
631
- M(O, {
632
- name: "warning",
633
- size: "sm",
634
- class: "text-fm-color-system-warning-300"
635
- }),
636
- L("div", Cr, re(v(u)("inventory.transfer.form.items.forecastStock.replace")), 1)
637
- ])
638
- ]),
639
- _: 1
640
- }, 8, ["modelValue", "label", "rules"]),
641
- L("div", Ar, [
642
- m[4] || (m[4] = L("div", { class: "grow" }, null, -1)),
643
- M(g, {
644
- label: v(u)("common.cancel"),
645
- variant: "tertiary",
646
- onClick: m[2] || (m[2] = (k) => s.value = !1)
647
- }, null, 8, ["label"]),
648
- M(g, {
649
- label: v(u)("inventory.transfer.form.items.forecastStock.generate"),
650
- onClick: _
651
- }, null, 8, ["label"])
652
- ])
653
- ])
654
- ]),
655
- _: 1
656
- }, 8, ["disabled", "show-popover"]);
657
- };
658
- }
659
- });
660
- function Dr() {
661
- const e = Ot(), t = Wn(), n = ue(!1);
662
- Je(n, (i) => {
663
- i && (a.value = !0, s().finally(() => {
664
- a.value = !1;
665
- }));
666
- });
667
- async function s() {
668
- try {
669
- const { startDate: i, endDate: d } = ks(6), p = (await t.getPurchaseOrders({ start: i, end: d })).filter(
670
- (m) => {
671
- var g, O;
672
- return m.status === Is.enum.COMPLETE && ((g = m.supplier) == null ? void 0 : g.internal) !== "warehouse" && ((O = m.supplier) == null ? void 0 : O.internal) !== "restaurant";
673
- }
674
- ).reduce((m, g) => {
675
- const O = new Date(Os(g._id)), A = g.supplier._id;
676
- for (const N of g.items) {
677
- if (!N.totalCost) continue;
678
- const k = m[N.sku._id] ?? {}, c = k[A] ?? [];
679
- c.push({
680
- date: O.toISOString(),
681
- totalUnit: N.quantity,
682
- totalCost: N.totalCost,
683
- unit: N.sku.unit,
684
- measurement: N.measurement,
685
- seqNumber: g.seqNumber
686
- }), k[A] = c, m[N.sku._id] = k;
687
- }
688
- return m;
689
- }, {});
690
- r.value = p;
691
- } catch {
692
- e.open({
693
- title: "Something went wrong",
694
- message: "Cannot retrieve supplier purchase history. Please try again."
695
- }), n.value = !1;
696
- }
697
- }
698
- const a = ue(!1), r = ue({});
699
- return {
700
- comparePricesToggle: n,
701
- comparePriceFetching: a,
702
- comparePriceBySku: r
703
- };
704
- }
705
- const Lr = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Pr = { key: 0 }, wr = ["colspan"], Ur = /* @__PURE__ */ Ae({
706
- __name: "TransferItemTable",
707
- props: {
708
- row: {},
709
- comparePriceBySku: {},
710
- showComparePrice: { type: Boolean }
711
- },
712
- setup(e) {
713
- function t(n) {
714
- return n.column.columnDef.meta;
715
- }
716
- return (n, s) => {
717
- var a, r;
718
- return G(), ne(je, null, [
719
- L("tr", {
720
- class: Pe(["border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm", {
721
- "bg-fm-color-neutral-gray-100": n.row.getIsSelected()
722
- }])
723
- }, [
724
- (G(!0), ne(je, null, wt(n.row.getVisibleCells(), (i) => {
725
- var d, u, _, p;
726
- return G(), ne("td", {
727
- key: i.id,
728
- class: Pe([
729
- "h-[52px] px-16 text-fm-color-typo-primary",
730
- ((d = t(i)) == null ? void 0 : d.cellClass) ?? "px-16"
731
- ]),
732
- style: Bn({
733
- width: (u = t(i)) == null ? void 0 : u.width,
734
- maxWidth: (_ = t(i)) == null ? void 0 : _.maxWidth,
735
- textAlign: ((p = t(i)) == null ? void 0 : p.textAlign) ?? "left"
736
- })
737
- }, [
738
- L("span", Lr, [
739
- M(v(xe), {
740
- render: i.column.columnDef.cell,
741
- props: i.getContext()
742
- }, null, 8, ["render", "props"])
743
- ])
744
- ], 6);
745
- }), 128))
746
- ], 2),
747
- n.showComparePrice && Object.keys(n.comparePriceBySku[(a = n.row.original.sku) == null ? void 0 : a._id] ?? {}).length > 0 ? (G(), ne("tr", Pr, [
748
- L("td", {
749
- colspan: n.row.getVisibleCells().length
750
- }, [
751
- M(Xn, {
752
- prices: n.comparePriceBySku[(r = n.row.original.sku) == null ? void 0 : r._id]
753
- }, null, 8, ["prices"])
754
- ], 8, wr)
755
- ])) : Ie("", !0)
756
- ], 64);
757
- };
758
- }
759
- });
760
- /*!
761
- * shared v10.0.5
762
- * (c) 2024 kazuya kawaguchi
763
- * Released under the MIT License.
764
- */
765
- const mn = typeof window < "u", nt = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Fr = (e, t, n) => Mr({ l: e, k: t, s: n }), Mr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), _e = (e) => typeof e == "number" && isFinite(e), xr = (e) => en(e) === "[object Date]", ht = (e) => en(e) === "[object RegExp]", Nt = (e) => j(e) && Object.keys(e).length === 0, me = Object.assign, Hr = Object.create, J = (e = null) => Hr(e);
766
- let fn;
767
- const et = () => fn || (fn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : J());
768
- function vn(e) {
769
- return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
770
- }
771
- const Vr = Object.prototype.hasOwnProperty;
772
- function we(e, t) {
773
- return Vr.call(e, t);
774
- }
775
- const de = Array.isArray, te = (e) => typeof e == "function", x = (e) => typeof e == "string", ae = (e) => typeof e == "boolean", W = (e) => e !== null && typeof e == "object", Gr = (e) => W(e) && te(e.then) && te(e.catch), qn = Object.prototype.toString, en = (e) => qn.call(e), j = (e) => en(e) === "[object Object]", Br = (e) => e == null ? "" : de(e) || j(e) && e.toString === qn ? JSON.stringify(e, null, 2) : String(e);
776
- function tn(e, t = "") {
777
- return e.reduce((n, s, a) => a === 0 ? n + s : n + t + s, "");
778
- }
779
- function $r(e, t) {
780
- typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
781
- }
782
- const gt = (e) => !W(e) || de(e);
783
- function Et(e, t) {
784
- if (gt(e) || gt(t))
785
- throw new Error("Invalid value");
786
- const n = [{ src: e, des: t }];
787
- for (; n.length; ) {
788
- const { src: s, des: a } = n.pop();
789
- Object.keys(s).forEach((r) => {
790
- r !== "__proto__" && (W(s[r]) && !W(a[r]) && (a[r] = Array.isArray(s[r]) ? [] : J()), gt(a[r]) || gt(s[r]) ? a[r] = s[r] : n.push({ src: s[r], des: a[r] }));
791
- });
792
- }
793
- }
794
- function jr(e, t, n) {
795
- return { line: e, column: t, offset: n };
796
- }
797
- function Mt(e, t, n) {
798
- return { start: e, end: t };
799
- }
800
- const K = {
801
- // tokenizer error codes
802
- EXPECTED_TOKEN: 1,
803
- INVALID_TOKEN_IN_PLACEHOLDER: 2,
804
- UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
805
- UNKNOWN_ESCAPE_SEQUENCE: 4,
806
- INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
807
- UNBALANCED_CLOSING_BRACE: 6,
808
- UNTERMINATED_CLOSING_BRACE: 7,
809
- EMPTY_PLACEHOLDER: 8,
810
- NOT_ALLOW_NEST_PLACEHOLDER: 9,
811
- INVALID_LINKED_FORMAT: 10,
812
- // parser error codes
813
- MUST_HAVE_MESSAGES_IN_PLURAL: 11,
814
- UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
815
- UNEXPECTED_EMPTY_LINKED_KEY: 13,
816
- UNEXPECTED_LEXICAL_ANALYSIS: 14,
817
- // generator error codes
818
- UNHANDLED_CODEGEN_NODE_TYPE: 15,
819
- // minifier error codes
820
- UNHANDLED_MINIFIER_NODE_TYPE: 16
821
- }, Wr = 17;
822
- function Rt(e, t, n = {}) {
823
- const { domain: s, messages: a, args: r } = n, i = e, d = new SyntaxError(String(i));
824
- return d.code = e, t && (d.location = t), d.domain = s, d;
825
- }
826
- function Yr(e) {
827
- throw e;
828
- }
829
- const Ge = " ", Kr = "\r", Ee = `
830
- `, Xr = "\u2028", qr = "\u2029";
831
- function Jr(e) {
832
- const t = e;
833
- let n = 0, s = 1, a = 1, r = 0;
834
- const i = (T) => t[T] === Kr && t[T + 1] === Ee, d = (T) => t[T] === Ee, u = (T) => t[T] === qr, _ = (T) => t[T] === Xr, p = (T) => i(T) || d(T) || u(T) || _(T), m = () => n, g = () => s, O = () => a, A = () => r, N = (T) => i(T) || u(T) || _(T) ? Ee : t[T], k = () => N(n), c = () => N(n + r);
835
- function b() {
836
- return r = 0, p(n) && (s++, a = 0), i(n) && n++, n++, a++, t[n];
837
- }
838
- function S() {
839
- return i(n + r) && r++, r++, t[n + r];
840
- }
841
- function y() {
842
- n = 0, s = 1, a = 1, r = 0;
843
- }
844
- function h(T = 0) {
845
- r = T;
846
- }
847
- function I() {
848
- const T = n + r;
849
- for (; T !== n; )
850
- b();
851
- r = 0;
852
- }
853
- return {
854
- index: m,
855
- line: g,
856
- column: O,
857
- peekOffset: A,
858
- charAt: N,
859
- currentChar: k,
860
- currentPeek: c,
861
- next: b,
862
- peek: S,
863
- reset: y,
864
- resetPeek: h,
865
- skipToPeek: I
866
- };
867
- }
868
- const Xe = void 0, zr = ".", gn = "'", Qr = "tokenizer";
869
- function Zr(e, t = {}) {
870
- const n = t.location !== !1, s = Jr(e), a = () => s.index(), r = () => jr(s.line(), s.column(), s.index()), i = r(), d = a(), u = {
871
- currentType: 13,
872
- offset: d,
873
- startLoc: i,
874
- endLoc: i,
875
- lastType: 13,
876
- lastOffset: d,
877
- lastStartLoc: i,
878
- lastEndLoc: i,
879
- braceNest: 0,
880
- inLinked: !1,
881
- text: ""
882
- }, _ = () => u, { onError: p } = t;
883
- function m(o, l, E, ...F) {
884
- const ee = _();
885
- if (l.column += E, l.offset += E, p) {
886
- const D = n ? Mt(ee.startLoc, l) : null, f = Rt(o, D, {
887
- domain: Qr,
888
- args: F
889
- });
890
- p(f);
891
- }
892
- }
893
- function g(o, l, E) {
894
- o.endLoc = r(), o.currentType = l;
895
- const F = { type: l };
896
- return n && (F.loc = Mt(o.startLoc, o.endLoc)), E != null && (F.value = E), F;
897
- }
898
- const O = (o) => g(
899
- o,
900
- 13
901
- /* TokenTypes.EOF */
902
- );
903
- function A(o, l) {
904
- return o.currentChar() === l ? (o.next(), l) : (m(K.EXPECTED_TOKEN, r(), 0, l), "");
905
- }
906
- function N(o) {
907
- let l = "";
908
- for (; o.currentPeek() === Ge || o.currentPeek() === Ee; )
909
- l += o.currentPeek(), o.peek();
910
- return l;
911
- }
912
- function k(o) {
913
- const l = N(o);
914
- return o.skipToPeek(), l;
915
- }
916
- function c(o) {
917
- if (o === Xe)
918
- return !1;
919
- const l = o.charCodeAt(0);
920
- return l >= 97 && l <= 122 || // a-z
921
- l >= 65 && l <= 90 || // A-Z
922
- l === 95;
923
- }
924
- function b(o) {
925
- if (o === Xe)
926
- return !1;
927
- const l = o.charCodeAt(0);
928
- return l >= 48 && l <= 57;
929
- }
930
- function S(o, l) {
931
- const { currentType: E } = l;
932
- if (E !== 2)
933
- return !1;
934
- N(o);
935
- const F = c(o.currentPeek());
936
- return o.resetPeek(), F;
937
- }
938
- function y(o, l) {
939
- const { currentType: E } = l;
940
- if (E !== 2)
941
- return !1;
942
- N(o);
943
- const F = o.currentPeek() === "-" ? o.peek() : o.currentPeek(), ee = b(F);
944
- return o.resetPeek(), ee;
945
- }
946
- function h(o, l) {
947
- const { currentType: E } = l;
948
- if (E !== 2)
949
- return !1;
950
- N(o);
951
- const F = o.currentPeek() === gn;
952
- return o.resetPeek(), F;
953
- }
954
- function I(o, l) {
955
- const { currentType: E } = l;
956
- if (E !== 7)
957
- return !1;
958
- N(o);
959
- const F = o.currentPeek() === ".";
960
- return o.resetPeek(), F;
961
- }
962
- function T(o, l) {
963
- const { currentType: E } = l;
964
- if (E !== 8)
965
- return !1;
966
- N(o);
967
- const F = c(o.currentPeek());
968
- return o.resetPeek(), F;
969
- }
970
- function V(o, l) {
971
- const { currentType: E } = l;
972
- if (!(E === 7 || E === 11))
973
- return !1;
974
- N(o);
975
- const F = o.currentPeek() === ":";
976
- return o.resetPeek(), F;
977
- }
978
- function H(o, l) {
979
- const { currentType: E } = l;
980
- if (E !== 9)
981
- return !1;
982
- const F = () => {
983
- const D = o.currentPeek();
984
- return D === "{" ? c(o.peek()) : D === "@" || D === "|" || D === ":" || D === "." || D === Ge || !D ? !1 : D === Ee ? (o.peek(), F()) : Z(o, !1);
985
- }, ee = F();
986
- return o.resetPeek(), ee;
987
- }
988
- function B(o) {
989
- N(o);
990
- const l = o.currentPeek() === "|";
991
- return o.resetPeek(), l;
992
- }
993
- function Z(o, l = !0) {
994
- const E = (ee = !1, D = "") => {
995
- const f = o.currentPeek();
996
- return f === "{" || f === "@" || !f ? ee : f === "|" ? !(D === Ge || D === Ee) : f === Ge ? (o.peek(), E(!0, Ge)) : f === Ee ? (o.peek(), E(!0, Ee)) : !0;
997
- }, F = E();
998
- return l && o.resetPeek(), F;
999
- }
1000
- function $(o, l) {
1001
- const E = o.currentChar();
1002
- return E === Xe ? Xe : l(E) ? (o.next(), E) : null;
1003
- }
1004
- function U(o) {
1005
- const l = o.charCodeAt(0);
1006
- return l >= 97 && l <= 122 || // a-z
1007
- l >= 65 && l <= 90 || // A-Z
1008
- l >= 48 && l <= 57 || // 0-9
1009
- l === 95 || // _
1010
- l === 36;
1011
- }
1012
- function P(o) {
1013
- return $(o, U);
1014
- }
1015
- function le(o) {
1016
- const l = o.charCodeAt(0);
1017
- return l >= 97 && l <= 122 || // a-z
1018
- l >= 65 && l <= 90 || // A-Z
1019
- l >= 48 && l <= 57 || // 0-9
1020
- l === 95 || // _
1021
- l === 36 || // $
1022
- l === 45;
1023
- }
1024
- function Te(o) {
1025
- return $(o, le);
1026
- }
1027
- function ve(o) {
1028
- const l = o.charCodeAt(0);
1029
- return l >= 48 && l <= 57;
1030
- }
1031
- function We(o) {
1032
- return $(o, ve);
1033
- }
1034
- function ge(o) {
1035
- const l = o.charCodeAt(0);
1036
- return l >= 48 && l <= 57 || // 0-9
1037
- l >= 65 && l <= 70 || // A-F
1038
- l >= 97 && l <= 102;
1039
- }
1040
- function He(o) {
1041
- return $(o, ge);
1042
- }
1043
- function Ye(o) {
1044
- let l = "", E = "";
1045
- for (; l = We(o); )
1046
- E += l;
1047
- return E;
1048
- }
1049
- function C(o) {
1050
- let l = "";
1051
- for (; ; ) {
1052
- const E = o.currentChar();
1053
- if (E === "{" || E === "}" || E === "@" || E === "|" || !E)
1054
- break;
1055
- if (E === Ge || E === Ee)
1056
- if (Z(o))
1057
- l += E, o.next();
1058
- else {
1059
- if (B(o))
1060
- break;
1061
- l += E, o.next();
1062
- }
1063
- else
1064
- l += E, o.next();
1065
- }
1066
- return l;
1067
- }
1068
- function w(o) {
1069
- k(o);
1070
- let l = "", E = "";
1071
- for (; l = Te(o); )
1072
- E += l;
1073
- return o.currentChar() === Xe && m(K.UNTERMINATED_CLOSING_BRACE, r(), 0), E;
1074
- }
1075
- function oe(o) {
1076
- k(o);
1077
- let l = "";
1078
- return o.currentChar() === "-" ? (o.next(), l += `-${Ye(o)}`) : l += Ye(o), o.currentChar() === Xe && m(K.UNTERMINATED_CLOSING_BRACE, r(), 0), l;
1079
- }
1080
- function Re(o) {
1081
- return o !== gn && o !== Ee;
1082
- }
1083
- function Se(o) {
1084
- k(o), A(o, "'");
1085
- let l = "", E = "";
1086
- for (; l = $(o, Re); )
1087
- l === "\\" ? E += De(o) : E += l;
1088
- const F = o.currentChar();
1089
- return F === Ee || F === Xe ? (m(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), F === Ee && (o.next(), A(o, "'")), E) : (A(o, "'"), E);
1090
- }
1091
- function De(o) {
1092
- const l = o.currentChar();
1093
- switch (l) {
1094
- case "\\":
1095
- case "'":
1096
- return o.next(), `\\${l}`;
1097
- case "u":
1098
- return he(o, l, 4);
1099
- case "U":
1100
- return he(o, l, 6);
1101
- default:
1102
- return m(K.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, l), "";
1103
- }
1104
- }
1105
- function he(o, l, E) {
1106
- A(o, l);
1107
- let F = "";
1108
- for (let ee = 0; ee < E; ee++) {
1109
- const D = He(o);
1110
- if (!D) {
1111
- m(K.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${l}${F}${o.currentChar()}`);
1112
- break;
1113
- }
1114
- F += D;
1115
- }
1116
- return `\\${l}${F}`;
1117
- }
1118
- function ke(o) {
1119
- return o !== "{" && o !== "}" && o !== Ge && o !== Ee;
1120
- }
1121
- function Le(o) {
1122
- k(o);
1123
- let l = "", E = "";
1124
- for (; l = $(o, ke); )
1125
- E += l;
1126
- return E;
1127
- }
1128
- function Ue(o) {
1129
- let l = "", E = "";
1130
- for (; l = P(o); )
1131
- E += l;
1132
- return E;
1133
- }
1134
- function Ve(o) {
1135
- const l = (E) => {
1136
- const F = o.currentChar();
1137
- return F === "{" || F === "@" || F === "|" || F === "(" || F === ")" || !F || F === Ge ? E : (E += F, o.next(), l(E));
1138
- };
1139
- return l("");
1140
- }
1141
- function Y(o) {
1142
- k(o);
1143
- const l = A(
1144
- o,
1145
- "|"
1146
- /* TokenChars.Pipe */
1147
- );
1148
- return k(o), l;
1149
- }
1150
- function ie(o, l) {
1151
- let E = null;
1152
- switch (o.currentChar()) {
1153
- case "{":
1154
- return l.braceNest >= 1 && m(K.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), o.next(), E = g(
1155
- l,
1156
- 2,
1157
- "{"
1158
- /* TokenChars.BraceLeft */
1159
- ), k(o), l.braceNest++, E;
1160
- case "}":
1161
- return l.braceNest > 0 && l.currentType === 2 && m(K.EMPTY_PLACEHOLDER, r(), 0), o.next(), E = g(
1162
- l,
1163
- 3,
1164
- "}"
1165
- /* TokenChars.BraceRight */
1166
- ), l.braceNest--, l.braceNest > 0 && k(o), l.inLinked && l.braceNest === 0 && (l.inLinked = !1), E;
1167
- case "@":
1168
- return l.braceNest > 0 && m(K.UNTERMINATED_CLOSING_BRACE, r(), 0), E = fe(o, l) || O(l), l.braceNest = 0, E;
1169
- default: {
1170
- let ee = !0, D = !0, f = !0;
1171
- if (B(o))
1172
- return l.braceNest > 0 && m(K.UNTERMINATED_CLOSING_BRACE, r(), 0), E = g(l, 1, Y(o)), l.braceNest = 0, l.inLinked = !1, E;
1173
- if (l.braceNest > 0 && (l.currentType === 4 || l.currentType === 5 || l.currentType === 6))
1174
- return m(K.UNTERMINATED_CLOSING_BRACE, r(), 0), l.braceNest = 0, pe(o, l);
1175
- if (ee = S(o, l))
1176
- return E = g(l, 4, w(o)), k(o), E;
1177
- if (D = y(o, l))
1178
- return E = g(l, 5, oe(o)), k(o), E;
1179
- if (f = h(o, l))
1180
- return E = g(l, 6, Se(o)), k(o), E;
1181
- if (!ee && !D && !f)
1182
- return E = g(l, 12, Le(o)), m(K.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, E.value), k(o), E;
1183
- break;
1184
- }
1185
- }
1186
- return E;
1187
- }
1188
- function fe(o, l) {
1189
- const { currentType: E } = l;
1190
- let F = null;
1191
- const ee = o.currentChar();
1192
- switch ((E === 7 || E === 8 || E === 11 || E === 9) && (ee === Ee || ee === Ge) && m(K.INVALID_LINKED_FORMAT, r(), 0), ee) {
1193
- case "@":
1194
- return o.next(), F = g(
1195
- l,
1196
- 7,
1197
- "@"
1198
- /* TokenChars.LinkedAlias */
1199
- ), l.inLinked = !0, F;
1200
- case ".":
1201
- return k(o), o.next(), g(
1202
- l,
1203
- 8,
1204
- "."
1205
- /* TokenChars.LinkedDot */
1206
- );
1207
- case ":":
1208
- return k(o), o.next(), g(
1209
- l,
1210
- 9,
1211
- ":"
1212
- /* TokenChars.LinkedDelimiter */
1213
- );
1214
- default:
1215
- return B(o) ? (F = g(l, 1, Y(o)), l.braceNest = 0, l.inLinked = !1, F) : I(o, l) || V(o, l) ? (k(o), fe(o, l)) : T(o, l) ? (k(o), g(l, 11, Ue(o))) : H(o, l) ? (k(o), ee === "{" ? ie(o, l) || F : g(l, 10, Ve(o))) : (E === 7 && m(K.INVALID_LINKED_FORMAT, r(), 0), l.braceNest = 0, l.inLinked = !1, pe(o, l));
1216
- }
1217
- }
1218
- function pe(o, l) {
1219
- let E = {
1220
- type: 13
1221
- /* TokenTypes.EOF */
1222
- };
1223
- if (l.braceNest > 0)
1224
- return ie(o, l) || O(l);
1225
- if (l.inLinked)
1226
- return fe(o, l) || O(l);
1227
- switch (o.currentChar()) {
1228
- case "{":
1229
- return ie(o, l) || O(l);
1230
- case "}":
1231
- return m(K.UNBALANCED_CLOSING_BRACE, r(), 0), o.next(), g(
1232
- l,
1233
- 3,
1234
- "}"
1235
- /* TokenChars.BraceRight */
1236
- );
1237
- case "@":
1238
- return fe(o, l) || O(l);
1239
- default: {
1240
- if (B(o))
1241
- return E = g(l, 1, Y(o)), l.braceNest = 0, l.inLinked = !1, E;
1242
- if (Z(o))
1243
- return g(l, 0, C(o));
1244
- break;
1245
- }
1246
- }
1247
- return E;
1248
- }
1249
- function Ne() {
1250
- const { currentType: o, offset: l, startLoc: E, endLoc: F } = u;
1251
- return u.lastType = o, u.lastOffset = l, u.lastStartLoc = E, u.lastEndLoc = F, u.offset = a(), u.startLoc = r(), s.currentChar() === Xe ? g(
1252
- u,
1253
- 13
1254
- /* TokenTypes.EOF */
1255
- ) : pe(s, u);
1256
- }
1257
- return {
1258
- nextToken: Ne,
1259
- currentOffset: a,
1260
- currentPosition: r,
1261
- context: _
1262
- };
1263
- }
1264
- const ea = "parser", ta = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1265
- function na(e, t, n) {
1266
- switch (e) {
1267
- case "\\\\":
1268
- return "\\";
1269
- case "\\'":
1270
- return "'";
1271
- default: {
1272
- const s = parseInt(t || n, 16);
1273
- return s <= 55295 || s >= 57344 ? String.fromCodePoint(s) : "�";
1274
- }
1275
- }
1276
- }
1277
- function sa(e = {}) {
1278
- const t = e.location !== !1, { onError: n } = e;
1279
- function s(c, b, S, y, ...h) {
1280
- const I = c.currentPosition();
1281
- if (I.offset += y, I.column += y, n) {
1282
- const T = t ? Mt(S, I) : null, V = Rt(b, T, {
1283
- domain: ea,
1284
- args: h
1285
- });
1286
- n(V);
1287
- }
1288
- }
1289
- function a(c, b, S) {
1290
- const y = { type: c };
1291
- return t && (y.start = b, y.end = b, y.loc = { start: S, end: S }), y;
1292
- }
1293
- function r(c, b, S, y) {
1294
- t && (c.end = b, c.loc && (c.loc.end = S));
1295
- }
1296
- function i(c, b) {
1297
- const S = c.context(), y = a(3, S.offset, S.startLoc);
1298
- return y.value = b, r(y, c.currentOffset(), c.currentPosition()), y;
1299
- }
1300
- function d(c, b) {
1301
- const S = c.context(), { lastOffset: y, lastStartLoc: h } = S, I = a(5, y, h);
1302
- return I.index = parseInt(b, 10), c.nextToken(), r(I, c.currentOffset(), c.currentPosition()), I;
1303
- }
1304
- function u(c, b) {
1305
- const S = c.context(), { lastOffset: y, lastStartLoc: h } = S, I = a(4, y, h);
1306
- return I.key = b, c.nextToken(), r(I, c.currentOffset(), c.currentPosition()), I;
1307
- }
1308
- function _(c, b) {
1309
- const S = c.context(), { lastOffset: y, lastStartLoc: h } = S, I = a(9, y, h);
1310
- return I.value = b.replace(ta, na), c.nextToken(), r(I, c.currentOffset(), c.currentPosition()), I;
1311
- }
1312
- function p(c) {
1313
- const b = c.nextToken(), S = c.context(), { lastOffset: y, lastStartLoc: h } = S, I = a(8, y, h);
1314
- return b.type !== 11 ? (s(c, K.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), I.value = "", r(I, y, h), {
1315
- nextConsumeToken: b,
1316
- node: I
1317
- }) : (b.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, Fe(b)), I.value = b.value || "", r(I, c.currentOffset(), c.currentPosition()), {
1318
- node: I
1319
- });
1320
- }
1321
- function m(c, b) {
1322
- const S = c.context(), y = a(7, S.offset, S.startLoc);
1323
- return y.value = b, r(y, c.currentOffset(), c.currentPosition()), y;
1324
- }
1325
- function g(c) {
1326
- const b = c.context(), S = a(6, b.offset, b.startLoc);
1327
- let y = c.nextToken();
1328
- if (y.type === 8) {
1329
- const h = p(c);
1330
- S.modifier = h.node, y = h.nextConsumeToken || c.nextToken();
1331
- }
1332
- switch (y.type !== 9 && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(y)), y = c.nextToken(), y.type === 2 && (y = c.nextToken()), y.type) {
1333
- case 10:
1334
- y.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(y)), S.key = m(c, y.value || "");
1335
- break;
1336
- case 4:
1337
- y.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(y)), S.key = u(c, y.value || "");
1338
- break;
1339
- case 5:
1340
- y.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(y)), S.key = d(c, y.value || "");
1341
- break;
1342
- case 6:
1343
- y.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(y)), S.key = _(c, y.value || "");
1344
- break;
1345
- default: {
1346
- s(c, K.UNEXPECTED_EMPTY_LINKED_KEY, b.lastStartLoc, 0);
1347
- const h = c.context(), I = a(7, h.offset, h.startLoc);
1348
- return I.value = "", r(I, h.offset, h.startLoc), S.key = I, r(S, h.offset, h.startLoc), {
1349
- nextConsumeToken: y,
1350
- node: S
1351
- };
1352
- }
1353
- }
1354
- return r(S, c.currentOffset(), c.currentPosition()), {
1355
- node: S
1356
- };
1357
- }
1358
- function O(c) {
1359
- const b = c.context(), S = b.currentType === 1 ? c.currentOffset() : b.offset, y = b.currentType === 1 ? b.endLoc : b.startLoc, h = a(2, S, y);
1360
- h.items = [];
1361
- let I = null;
1362
- do {
1363
- const H = I || c.nextToken();
1364
- switch (I = null, H.type) {
1365
- case 0:
1366
- H.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(H)), h.items.push(i(c, H.value || ""));
1367
- break;
1368
- case 5:
1369
- H.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(H)), h.items.push(d(c, H.value || ""));
1370
- break;
1371
- case 4:
1372
- H.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(H)), h.items.push(u(c, H.value || ""));
1373
- break;
1374
- case 6:
1375
- H.value == null && s(c, K.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, Fe(H)), h.items.push(_(c, H.value || ""));
1376
- break;
1377
- case 7: {
1378
- const B = g(c);
1379
- h.items.push(B.node), I = B.nextConsumeToken || null;
1380
- break;
1381
- }
1382
- }
1383
- } while (b.currentType !== 13 && b.currentType !== 1);
1384
- const T = b.currentType === 1 ? b.lastOffset : c.currentOffset(), V = b.currentType === 1 ? b.lastEndLoc : c.currentPosition();
1385
- return r(h, T, V), h;
1386
- }
1387
- function A(c, b, S, y) {
1388
- const h = c.context();
1389
- let I = y.items.length === 0;
1390
- const T = a(1, b, S);
1391
- T.cases = [], T.cases.push(y);
1392
- do {
1393
- const V = O(c);
1394
- I || (I = V.items.length === 0), T.cases.push(V);
1395
- } while (h.currentType !== 13);
1396
- return I && s(c, K.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), r(T, c.currentOffset(), c.currentPosition()), T;
1397
- }
1398
- function N(c) {
1399
- const b = c.context(), { offset: S, startLoc: y } = b, h = O(c);
1400
- return b.currentType === 13 ? h : A(c, S, y, h);
1401
- }
1402
- function k(c) {
1403
- const b = Zr(c, me({}, e)), S = b.context(), y = a(0, S.offset, S.startLoc);
1404
- return t && y.loc && (y.loc.source = c), y.body = N(b), e.onCacheKey && (y.cacheKey = e.onCacheKey(c)), S.currentType !== 13 && s(b, K.UNEXPECTED_LEXICAL_ANALYSIS, S.lastStartLoc, 0, c[S.offset] || ""), r(y, b.currentOffset(), b.currentPosition()), y;
1405
- }
1406
- return { parse: k };
1407
- }
1408
- function Fe(e) {
1409
- if (e.type === 13)
1410
- return "EOF";
1411
- const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1412
- return t.length > 10 ? t.slice(0, 9) + "…" : t;
1413
- }
1414
- function ra(e, t = {}) {
1415
- const n = {
1416
- ast: e,
1417
- helpers: /* @__PURE__ */ new Set()
1418
- };
1419
- return { context: () => n, helper: (r) => (n.helpers.add(r), r) };
1420
- }
1421
- function bn(e, t) {
1422
- for (let n = 0; n < e.length; n++)
1423
- nn(e[n], t);
1424
- }
1425
- function nn(e, t) {
1426
- switch (e.type) {
1427
- case 1:
1428
- bn(e.cases, t), t.helper(
1429
- "plural"
1430
- /* HelperNameMap.PLURAL */
1431
- );
1432
- break;
1433
- case 2:
1434
- bn(e.items, t);
1435
- break;
1436
- case 6: {
1437
- nn(e.key, t), t.helper(
1438
- "linked"
1439
- /* HelperNameMap.LINKED */
1440
- ), t.helper(
1441
- "type"
1442
- /* HelperNameMap.TYPE */
1443
- );
1444
- break;
1445
- }
1446
- case 5:
1447
- t.helper(
1448
- "interpolate"
1449
- /* HelperNameMap.INTERPOLATE */
1450
- ), t.helper(
1451
- "list"
1452
- /* HelperNameMap.LIST */
1453
- );
1454
- break;
1455
- case 4:
1456
- t.helper(
1457
- "interpolate"
1458
- /* HelperNameMap.INTERPOLATE */
1459
- ), t.helper(
1460
- "named"
1461
- /* HelperNameMap.NAMED */
1462
- );
1463
- break;
1464
- }
1465
- }
1466
- function aa(e, t = {}) {
1467
- const n = ra(e);
1468
- n.helper(
1469
- "normalize"
1470
- /* HelperNameMap.NORMALIZE */
1471
- ), e.body && nn(e.body, n);
1472
- const s = n.context();
1473
- e.helpers = Array.from(s.helpers);
1474
- }
1475
- function oa(e) {
1476
- const t = e.body;
1477
- return t.type === 2 ? yn(t) : t.cases.forEach((n) => yn(n)), e;
1478
- }
1479
- function yn(e) {
1480
- if (e.items.length === 1) {
1481
- const t = e.items[0];
1482
- (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
1483
- } else {
1484
- const t = [];
1485
- for (let n = 0; n < e.items.length; n++) {
1486
- const s = e.items[n];
1487
- if (!(s.type === 3 || s.type === 9) || s.value == null)
1488
- break;
1489
- t.push(s.value);
1490
- }
1491
- if (t.length === e.items.length) {
1492
- e.static = tn(t);
1493
- for (let n = 0; n < e.items.length; n++) {
1494
- const s = e.items[n];
1495
- (s.type === 3 || s.type === 9) && delete s.value;
1496
- }
1497
- }
1498
- }
1499
- }
1500
- function at(e) {
1501
- switch (e.t = e.type, e.type) {
1502
- case 0: {
1503
- const t = e;
1504
- at(t.body), t.b = t.body, delete t.body;
1505
- break;
1506
- }
1507
- case 1: {
1508
- const t = e, n = t.cases;
1509
- for (let s = 0; s < n.length; s++)
1510
- at(n[s]);
1511
- t.c = n, delete t.cases;
1512
- break;
1513
- }
1514
- case 2: {
1515
- const t = e, n = t.items;
1516
- for (let s = 0; s < n.length; s++)
1517
- at(n[s]);
1518
- t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
1519
- break;
1520
- }
1521
- case 3:
1522
- case 9:
1523
- case 8:
1524
- case 7: {
1525
- const t = e;
1526
- t.value && (t.v = t.value, delete t.value);
1527
- break;
1528
- }
1529
- case 6: {
1530
- const t = e;
1531
- at(t.key), t.k = t.key, delete t.key, t.modifier && (at(t.modifier), t.m = t.modifier, delete t.modifier);
1532
- break;
1533
- }
1534
- case 5: {
1535
- const t = e;
1536
- t.i = t.index, delete t.index;
1537
- break;
1538
- }
1539
- case 4: {
1540
- const t = e;
1541
- t.k = t.key, delete t.key;
1542
- break;
1543
- }
1544
- }
1545
- delete e.type;
1546
- }
1547
- function la(e, t) {
1548
- const { sourceMap: n, filename: s, breakLineCode: a, needIndent: r } = t, i = t.location !== !1, d = {
1549
- filename: s,
1550
- code: "",
1551
- column: 1,
1552
- line: 1,
1553
- offset: 0,
1554
- map: void 0,
1555
- breakLineCode: a,
1556
- needIndent: r,
1557
- indentLevel: 0
1558
- };
1559
- i && e.loc && (d.source = e.loc.source);
1560
- const u = () => d;
1561
- function _(k, c) {
1562
- d.code += k;
1563
- }
1564
- function p(k, c = !0) {
1565
- const b = c ? a : "";
1566
- _(r ? b + " ".repeat(k) : b);
1567
- }
1568
- function m(k = !0) {
1569
- const c = ++d.indentLevel;
1570
- k && p(c);
1571
- }
1572
- function g(k = !0) {
1573
- const c = --d.indentLevel;
1574
- k && p(c);
1575
- }
1576
- function O() {
1577
- p(d.indentLevel);
1578
- }
1579
- return {
1580
- context: u,
1581
- push: _,
1582
- indent: m,
1583
- deindent: g,
1584
- newline: O,
1585
- helper: (k) => `_${k}`,
1586
- needIndent: () => d.needIndent
1587
- };
1588
- }
1589
- function ia(e, t) {
1590
- const { helper: n } = e;
1591
- e.push(`${n(
1592
- "linked"
1593
- /* HelperNameMap.LINKED */
1594
- )}(`), ot(e, t.key), t.modifier ? (e.push(", "), ot(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1595
- }
1596
- function ca(e, t) {
1597
- const { helper: n, needIndent: s } = e;
1598
- e.push(`${n(
1599
- "normalize"
1600
- /* HelperNameMap.NORMALIZE */
1601
- )}([`), e.indent(s());
1602
- const a = t.items.length;
1603
- for (let r = 0; r < a && (ot(e, t.items[r]), r !== a - 1); r++)
1604
- e.push(", ");
1605
- e.deindent(s()), e.push("])");
1606
- }
1607
- function ua(e, t) {
1608
- const { helper: n, needIndent: s } = e;
1609
- if (t.cases.length > 1) {
1610
- e.push(`${n(
1611
- "plural"
1612
- /* HelperNameMap.PLURAL */
1613
- )}([`), e.indent(s());
1614
- const a = t.cases.length;
1615
- for (let r = 0; r < a && (ot(e, t.cases[r]), r !== a - 1); r++)
1616
- e.push(", ");
1617
- e.deindent(s()), e.push("])");
1618
- }
1619
- }
1620
- function da(e, t) {
1621
- t.body ? ot(e, t.body) : e.push("null");
1622
- }
1623
- function ot(e, t) {
1624
- const { helper: n } = e;
1625
- switch (t.type) {
1626
- case 0:
1627
- da(e, t);
1628
- break;
1629
- case 1:
1630
- ua(e, t);
1631
- break;
1632
- case 2:
1633
- ca(e, t);
1634
- break;
1635
- case 6:
1636
- ia(e, t);
1637
- break;
1638
- case 8:
1639
- e.push(JSON.stringify(t.value), t);
1640
- break;
1641
- case 7:
1642
- e.push(JSON.stringify(t.value), t);
1643
- break;
1644
- case 5:
1645
- e.push(`${n(
1646
- "interpolate"
1647
- /* HelperNameMap.INTERPOLATE */
1648
- )}(${n(
1649
- "list"
1650
- /* HelperNameMap.LIST */
1651
- )}(${t.index}))`, t);
1652
- break;
1653
- case 4:
1654
- e.push(`${n(
1655
- "interpolate"
1656
- /* HelperNameMap.INTERPOLATE */
1657
- )}(${n(
1658
- "named"
1659
- /* HelperNameMap.NAMED */
1660
- )}(${JSON.stringify(t.key)}))`, t);
1661
- break;
1662
- case 9:
1663
- e.push(JSON.stringify(t.value), t);
1664
- break;
1665
- case 3:
1666
- e.push(JSON.stringify(t.value), t);
1667
- break;
1668
- }
1669
- }
1670
- const pa = (e, t = {}) => {
1671
- const n = x(t.mode) ? t.mode : "normal", s = x(t.filename) ? t.filename : "message.intl", a = !!t.sourceMap, r = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1672
- `, i = t.needIndent ? t.needIndent : n !== "arrow", d = e.helpers || [], u = la(e, {
1673
- mode: n,
1674
- filename: s,
1675
- sourceMap: a,
1676
- breakLineCode: r,
1677
- needIndent: i
1678
- });
1679
- u.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), u.indent(i), d.length > 0 && (u.push(`const { ${tn(d.map((m) => `${m}: _${m}`), ", ")} } = ctx`), u.newline()), u.push("return "), ot(u, e), u.deindent(i), u.push("}"), delete e.helpers;
1680
- const { code: _, map: p } = u.context();
1681
- return {
1682
- ast: e,
1683
- code: _,
1684
- map: p ? p.toJSON() : void 0
1685
- // eslint-disable-line @typescript-eslint/no-explicit-any
1686
- };
1687
- };
1688
- function _a(e, t = {}) {
1689
- const n = me({}, t), s = !!n.jit, a = !!n.minify, r = n.optimize == null ? !0 : n.optimize, d = sa(n).parse(e);
1690
- return s ? (r && oa(d), a && at(d), { ast: d, code: "" }) : (aa(d, n), pa(d, n));
1691
- }
1692
- var ma = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4e73d002-17bd-4906-b40e-2899fd118a55", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4e73d002-17bd-4906-b40e-2899fd118a55", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max_old_space_size=4096", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "1.13.0-beta.1", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "718", npm_package_dependencies__feedmepos_ui_library: "1.3.8", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250209.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:5722", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13299780111", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "801ee79eabb15a54972be304239bd9e69def15e5", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_04e90c5a-4249-404f-b0e7-32858ab55a99", INVOCATION_ID: "c7033188134c4bf1a7a2298452804e40", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "367", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 4", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.9.3", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.23-dev.29", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "801ee79eabb15a54972be304239bd9e69def15e5", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4e73d002-17bd-4906-b40e-2899fd118a55", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4e73d002-17bd-4906-b40e-2899fd118a55", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_4e73d002-17bd-4906-b40e-2899fd118a55", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } };
1693
- function fa() {
1694
- typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (et().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (et().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1695
- }
1696
- function Dt(e) {
1697
- return (n) => va(n, e);
1698
- }
1699
- function va(e, t) {
1700
- const n = ba(t);
1701
- if (n == null)
1702
- throw dt(
1703
- 0
1704
- /* NodeTypes.Resource */
1705
- );
1706
- if (sn(n) === 1) {
1707
- const r = Ea(n);
1708
- return e.plural(r.reduce((i, d) => [
1709
- ...i,
1710
- En(e, d)
1711
- ], []));
1712
- } else
1713
- return En(e, n);
1714
- }
1715
- const ga = ["b", "body"];
1716
- function ba(e) {
1717
- return ze(e, ga);
1718
- }
1719
- const ya = ["c", "cases"];
1720
- function Ea(e) {
1721
- return ze(e, ya, []);
1722
- }
1723
- function En(e, t) {
1724
- const n = ha(t);
1725
- if (n != null)
1726
- return e.type === "text" ? n : e.normalize([n]);
1727
- {
1728
- const s = Ia(t).reduce((a, r) => [...a, xt(e, r)], []);
1729
- return e.normalize(s);
1730
- }
1731
- }
1732
- const Ta = ["s", "static"];
1733
- function ha(e) {
1734
- return ze(e, Ta);
1735
- }
1736
- const ka = ["i", "items"];
1737
- function Ia(e) {
1738
- return ze(e, ka, []);
1739
- }
1740
- function xt(e, t) {
1741
- const n = sn(t);
1742
- switch (n) {
1743
- case 3:
1744
- return bt(t, n);
1745
- case 9:
1746
- return bt(t, n);
1747
- case 4: {
1748
- const s = t;
1749
- if (we(s, "k") && s.k)
1750
- return e.interpolate(e.named(s.k));
1751
- if (we(s, "key") && s.key)
1752
- return e.interpolate(e.named(s.key));
1753
- throw dt(n);
1754
- }
1755
- case 5: {
1756
- const s = t;
1757
- if (we(s, "i") && _e(s.i))
1758
- return e.interpolate(e.list(s.i));
1759
- if (we(s, "index") && _e(s.index))
1760
- return e.interpolate(e.list(s.index));
1761
- throw dt(n);
1762
- }
1763
- case 6: {
1764
- const s = t, a = Ra(s), r = Aa(s);
1765
- return e.linked(xt(e, r), a ? xt(e, a) : void 0, e.type);
1766
- }
1767
- case 7:
1768
- return bt(t, n);
1769
- case 8:
1770
- return bt(t, n);
1771
- default:
1772
- throw new Error(`unhandled node on format message part: ${n}`);
1773
- }
1774
- }
1775
- const Oa = ["t", "type"];
1776
- function sn(e) {
1777
- return ze(e, Oa);
1778
- }
1779
- const Sa = ["v", "value"];
1780
- function bt(e, t) {
1781
- const n = ze(e, Sa);
1782
- if (n)
1783
- return n;
1784
- throw dt(t);
1785
- }
1786
- const Na = ["m", "modifier"];
1787
- function Ra(e) {
1788
- return ze(e, Na);
1789
- }
1790
- const Ca = ["k", "key"];
1791
- function Aa(e) {
1792
- const t = ze(e, Ca);
1793
- if (t)
1794
- return t;
1795
- throw dt(
1796
- 6
1797
- /* NodeTypes.Linked */
1798
- );
1799
- }
1800
- function ze(e, t, n) {
1801
- for (let s = 0; s < t.length; s++) {
1802
- const a = t[s];
1803
- if (we(e, a) && e[a] != null)
1804
- return e[a];
1805
- }
1806
- return n;
1807
- }
1808
- function dt(e) {
1809
- return new Error(`unhandled node type: ${e}`);
1810
- }
1811
- const Da = (e) => e;
1812
- let yt = J();
1813
- function lt(e) {
1814
- return W(e) && sn(e) === 0 && (we(e, "b") || we(e, "body"));
1815
- }
1816
- function La(e, t = {}) {
1817
- let n = !1;
1818
- const s = t.onError || Yr;
1819
- return t.onError = (a) => {
1820
- n = !0, s(a);
1821
- }, { ..._a(e, t), detectError: n };
1822
- }
1823
- // @__NO_SIDE_EFFECTS__
1824
- function Pa(e, t) {
1825
- if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && x(e)) {
1826
- ae(t.warnHtmlMessage) && t.warnHtmlMessage;
1827
- const s = (t.onCacheKey || Da)(e), a = yt[s];
1828
- if (a)
1829
- return a;
1830
- const { ast: r, detectError: i } = La(e, {
1831
- ...t,
1832
- location: ma.env.NODE_ENV !== "production",
1833
- jit: !0
1834
- }), d = Dt(r);
1835
- return i ? d : yt[s] = d;
1836
- } else {
1837
- const n = e.cacheKey;
1838
- if (n) {
1839
- const s = yt[n];
1840
- return s || (yt[n] = Dt(e));
1841
- } else
1842
- return Dt(e);
1843
- }
1844
- }
1845
- let pt = null;
1846
- function wa(e) {
1847
- pt = e;
1848
- }
1849
- function Ua(e, t, n) {
1850
- pt && pt.emit("i18n:init", {
1851
- timestamp: Date.now(),
1852
- i18n: e,
1853
- version: t,
1854
- meta: n
1855
- });
1856
- }
1857
- const Fa = /* @__PURE__ */ Ma("function:translate");
1858
- function Ma(e) {
1859
- return (t) => pt && pt.emit(e, t);
1860
- }
1861
- const Be = {
1862
- INVALID_ARGUMENT: Wr,
1863
- // 17
1864
- INVALID_DATE_ARGUMENT: 18,
1865
- INVALID_ISO_DATE_ARGUMENT: 19,
1866
- NOT_SUPPORT_NON_STRING_MESSAGE: 20,
1867
- NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1868
- NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1869
- NOT_SUPPORT_LOCALE_TYPE: 23
1870
- }, xa = 24;
1871
- function $e(e) {
1872
- return Rt(e, null, void 0);
1873
- }
1874
- function rn(e, t) {
1875
- return t.locale != null ? Tn(t.locale) : Tn(e.locale);
1876
- }
1877
- let Lt;
1878
- function Tn(e) {
1879
- if (x(e))
1880
- return e;
1881
- if (te(e)) {
1882
- if (e.resolvedOnce && Lt != null)
1883
- return Lt;
1884
- if (e.constructor.name === "Function") {
1885
- const t = e();
1886
- if (Gr(t))
1887
- throw $e(Be.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1888
- return Lt = t;
1889
- } else
1890
- throw $e(Be.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
1891
- } else
1892
- throw $e(Be.NOT_SUPPORT_LOCALE_TYPE);
1893
- }
1894
- function Ha(e, t, n) {
1895
- return [.../* @__PURE__ */ new Set([
1896
- n,
1897
- ...de(t) ? t : W(t) ? Object.keys(t) : x(t) ? [t] : [n]
1898
- ])];
1899
- }
1900
- function Jn(e, t, n) {
1901
- const s = x(n) ? n : kt, a = e;
1902
- a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
1903
- let r = a.__localeChainCache.get(s);
1904
- if (!r) {
1905
- r = [];
1906
- let i = [n];
1907
- for (; de(i); )
1908
- i = hn(r, i, t);
1909
- const d = de(t) || !j(t) ? t : t.default ? t.default : null;
1910
- i = x(d) ? [d] : d, de(i) && hn(r, i, !1), a.__localeChainCache.set(s, r);
1911
- }
1912
- return r;
1913
- }
1914
- function hn(e, t, n) {
1915
- let s = !0;
1916
- for (let a = 0; a < t.length && ae(s); a++) {
1917
- const r = t[a];
1918
- x(r) && (s = Va(e, t[a], n));
1919
- }
1920
- return s;
1921
- }
1922
- function Va(e, t, n) {
1923
- let s;
1924
- const a = t.split("-");
1925
- do {
1926
- const r = a.join("-");
1927
- s = Ga(e, r, n), a.splice(-1, 1);
1928
- } while (a.length && s === !0);
1929
- return s;
1930
- }
1931
- function Ga(e, t, n) {
1932
- let s = !1;
1933
- if (!e.includes(t) && (s = !0, t)) {
1934
- s = t[t.length - 1] !== "!";
1935
- const a = t.replace(/!/g, "");
1936
- e.push(a), (de(n) || j(n)) && n[a] && (s = n[a]);
1937
- }
1938
- return s;
1939
- }
1940
- const Qe = [];
1941
- Qe[
1942
- 0
1943
- /* States.BEFORE_PATH */
1944
- ] = {
1945
- w: [
1946
- 0
1947
- /* States.BEFORE_PATH */
1948
- ],
1949
- i: [
1950
- 3,
1951
- 0
1952
- /* Actions.APPEND */
1953
- ],
1954
- "[": [
1955
- 4
1956
- /* States.IN_SUB_PATH */
1957
- ],
1958
- o: [
1959
- 7
1960
- /* States.AFTER_PATH */
1961
- ]
1962
- };
1963
- Qe[
1964
- 1
1965
- /* States.IN_PATH */
1966
- ] = {
1967
- w: [
1968
- 1
1969
- /* States.IN_PATH */
1970
- ],
1971
- ".": [
1972
- 2
1973
- /* States.BEFORE_IDENT */
1974
- ],
1975
- "[": [
1976
- 4
1977
- /* States.IN_SUB_PATH */
1978
- ],
1979
- o: [
1980
- 7
1981
- /* States.AFTER_PATH */
1982
- ]
1983
- };
1984
- Qe[
1985
- 2
1986
- /* States.BEFORE_IDENT */
1987
- ] = {
1988
- w: [
1989
- 2
1990
- /* States.BEFORE_IDENT */
1991
- ],
1992
- i: [
1993
- 3,
1994
- 0
1995
- /* Actions.APPEND */
1996
- ],
1997
- 0: [
1998
- 3,
1999
- 0
2000
- /* Actions.APPEND */
2001
- ]
2002
- };
2003
- Qe[
2004
- 3
2005
- /* States.IN_IDENT */
2006
- ] = {
2007
- i: [
2008
- 3,
2009
- 0
2010
- /* Actions.APPEND */
2011
- ],
2012
- 0: [
2013
- 3,
2014
- 0
2015
- /* Actions.APPEND */
2016
- ],
2017
- w: [
2018
- 1,
2019
- 1
2020
- /* Actions.PUSH */
2021
- ],
2022
- ".": [
2023
- 2,
2024
- 1
2025
- /* Actions.PUSH */
2026
- ],
2027
- "[": [
2028
- 4,
2029
- 1
2030
- /* Actions.PUSH */
2031
- ],
2032
- o: [
2033
- 7,
2034
- 1
2035
- /* Actions.PUSH */
2036
- ]
2037
- };
2038
- Qe[
2039
- 4
2040
- /* States.IN_SUB_PATH */
2041
- ] = {
2042
- "'": [
2043
- 5,
2044
- 0
2045
- /* Actions.APPEND */
2046
- ],
2047
- '"': [
2048
- 6,
2049
- 0
2050
- /* Actions.APPEND */
2051
- ],
2052
- "[": [
2053
- 4,
2054
- 2
2055
- /* Actions.INC_SUB_PATH_DEPTH */
2056
- ],
2057
- "]": [
2058
- 1,
2059
- 3
2060
- /* Actions.PUSH_SUB_PATH */
2061
- ],
2062
- o: 8,
2063
- l: [
2064
- 4,
2065
- 0
2066
- /* Actions.APPEND */
2067
- ]
2068
- };
2069
- Qe[
2070
- 5
2071
- /* States.IN_SINGLE_QUOTE */
2072
- ] = {
2073
- "'": [
2074
- 4,
2075
- 0
2076
- /* Actions.APPEND */
2077
- ],
2078
- o: 8,
2079
- l: [
2080
- 5,
2081
- 0
2082
- /* Actions.APPEND */
2083
- ]
2084
- };
2085
- Qe[
2086
- 6
2087
- /* States.IN_DOUBLE_QUOTE */
2088
- ] = {
2089
- '"': [
2090
- 4,
2091
- 0
2092
- /* Actions.APPEND */
2093
- ],
2094
- o: 8,
2095
- l: [
2096
- 6,
2097
- 0
2098
- /* Actions.APPEND */
2099
- ]
2100
- };
2101
- const Ba = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
2102
- function $a(e) {
2103
- return Ba.test(e);
2104
- }
2105
- function ja(e) {
2106
- const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
2107
- return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
2108
- }
2109
- function Wa(e) {
2110
- if (e == null)
2111
- return "o";
2112
- switch (e.charCodeAt(0)) {
2113
- case 91:
2114
- case 93:
2115
- case 46:
2116
- case 34:
2117
- case 39:
2118
- return e;
2119
- case 95:
2120
- case 36:
2121
- case 45:
2122
- return "i";
2123
- case 9:
2124
- case 10:
2125
- case 13:
2126
- case 160:
2127
- case 65279:
2128
- case 8232:
2129
- case 8233:
2130
- return "w";
2131
- }
2132
- return "i";
2133
- }
2134
- function Ya(e) {
2135
- const t = e.trim();
2136
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : $a(t) ? ja(t) : "*" + t;
2137
- }
2138
- function Ka(e) {
2139
- const t = [];
2140
- let n = -1, s = 0, a = 0, r, i, d, u, _, p, m;
2141
- const g = [];
2142
- g[
2143
- 0
2144
- /* Actions.APPEND */
2145
- ] = () => {
2146
- i === void 0 ? i = d : i += d;
2147
- }, g[
2148
- 1
2149
- /* Actions.PUSH */
2150
- ] = () => {
2151
- i !== void 0 && (t.push(i), i = void 0);
2152
- }, g[
2153
- 2
2154
- /* Actions.INC_SUB_PATH_DEPTH */
2155
- ] = () => {
2156
- g[
2157
- 0
2158
- /* Actions.APPEND */
2159
- ](), a++;
2160
- }, g[
2161
- 3
2162
- /* Actions.PUSH_SUB_PATH */
2163
- ] = () => {
2164
- if (a > 0)
2165
- a--, s = 4, g[
2166
- 0
2167
- /* Actions.APPEND */
2168
- ]();
2169
- else {
2170
- if (a = 0, i === void 0 || (i = Ya(i), i === !1))
2171
- return !1;
2172
- g[
2173
- 1
2174
- /* Actions.PUSH */
2175
- ]();
2176
- }
2177
- };
2178
- function O() {
2179
- const A = e[n + 1];
2180
- if (s === 5 && A === "'" || s === 6 && A === '"')
2181
- return n++, d = "\\" + A, g[
2182
- 0
2183
- /* Actions.APPEND */
2184
- ](), !0;
2185
- }
2186
- for (; s !== null; )
2187
- if (n++, r = e[n], !(r === "\\" && O())) {
2188
- if (u = Wa(r), m = Qe[s], _ = m[u] || m.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (p = g[_[1]], p && (d = r, p() === !1))))
2189
- return;
2190
- if (s === 7)
2191
- return t;
2192
- }
2193
- }
2194
- const kn = /* @__PURE__ */ new Map();
2195
- function Xa(e, t) {
2196
- return W(e) ? e[t] : null;
2197
- }
2198
- function qa(e, t) {
2199
- if (!W(e))
2200
- return null;
2201
- let n = kn.get(t);
2202
- if (n || (n = Ka(t), n && kn.set(t, n)), !n)
2203
- return null;
2204
- const s = n.length;
2205
- let a = e, r = 0;
2206
- for (; r < s; ) {
2207
- const i = a[n[r]];
2208
- if (i === void 0 || te(a))
2209
- return null;
2210
- a = i, r++;
2211
- }
2212
- return a;
2213
- }
2214
- const Ja = "10.0.5", Ct = -1, kt = "en-US", In = "", On = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2215
- function za() {
2216
- return {
2217
- upper: (e, t) => t === "text" && x(e) ? e.toUpperCase() : t === "vnode" && W(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2218
- lower: (e, t) => t === "text" && x(e) ? e.toLowerCase() : t === "vnode" && W(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
2219
- capitalize: (e, t) => t === "text" && x(e) ? On(e) : t === "vnode" && W(e) && "__v_isVNode" in e ? On(e.children) : e
2220
- };
2221
- }
2222
- let zn;
2223
- function Qa(e) {
2224
- zn = e;
2225
- }
2226
- let Qn;
2227
- function Za(e) {
2228
- Qn = e;
2229
- }
2230
- let Zn;
2231
- function eo(e) {
2232
- Zn = e;
2233
- }
2234
- let es = null;
2235
- const to = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2236
- es = e;
2237
- }, no = /* @__NO_SIDE_EFFECTS__ */ () => es;
2238
- let ts = null;
2239
- const Sn = (e) => {
2240
- ts = e;
2241
- }, so = () => ts;
2242
- let Nn = 0;
2243
- function ro(e = {}) {
2244
- const t = te(e.onWarn) ? e.onWarn : $r, n = x(e.version) ? e.version : Ja, s = x(e.locale) || te(e.locale) ? e.locale : kt, a = te(s) ? kt : s, r = de(e.fallbackLocale) || j(e.fallbackLocale) || x(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = j(e.messages) ? e.messages : Pt(a), d = j(e.datetimeFormats) ? e.datetimeFormats : Pt(a), u = j(e.numberFormats) ? e.numberFormats : Pt(a), _ = me(J(), e.modifiers, za()), p = e.pluralRules || J(), m = te(e.missing) ? e.missing : null, g = ae(e.missingWarn) || ht(e.missingWarn) ? e.missingWarn : !0, O = ae(e.fallbackWarn) || ht(e.fallbackWarn) ? e.fallbackWarn : !0, A = !!e.fallbackFormat, N = !!e.unresolving, k = te(e.postTranslation) ? e.postTranslation : null, c = j(e.processor) ? e.processor : null, b = ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, S = !!e.escapeParameter, y = te(e.messageCompiler) ? e.messageCompiler : zn, h = te(e.messageResolver) ? e.messageResolver : Qn || Xa, I = te(e.localeFallbacker) ? e.localeFallbacker : Zn || Ha, T = W(e.fallbackContext) ? e.fallbackContext : void 0, V = e, H = W(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), B = W(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), Z = W(V.__meta) ? V.__meta : {};
2245
- Nn++;
2246
- const $ = {
2247
- version: n,
2248
- cid: Nn,
2249
- locale: s,
2250
- fallbackLocale: r,
2251
- messages: i,
2252
- modifiers: _,
2253
- pluralRules: p,
2254
- missing: m,
2255
- missingWarn: g,
2256
- fallbackWarn: O,
2257
- fallbackFormat: A,
2258
- unresolving: N,
2259
- postTranslation: k,
2260
- processor: c,
2261
- warnHtmlMessage: b,
2262
- escapeParameter: S,
2263
- messageCompiler: y,
2264
- messageResolver: h,
2265
- localeFallbacker: I,
2266
- fallbackContext: T,
2267
- onWarn: t,
2268
- __meta: Z
2269
- };
2270
- return $.datetimeFormats = d, $.numberFormats = u, $.__datetimeFormatters = H, $.__numberFormatters = B, __INTLIFY_PROD_DEVTOOLS__ && Ua($, n, Z), $;
2271
- }
2272
- const Pt = (e) => ({ [e]: J() });
2273
- function an(e, t, n, s, a) {
2274
- const { missing: r, onWarn: i } = e;
2275
- if (r !== null) {
2276
- const d = r(e, n, t, a);
2277
- return x(d) ? d : t;
2278
- } else
2279
- return t;
2280
- }
2281
- function ut(e, t, n) {
2282
- const s = e;
2283
- s.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
2284
- }
2285
- function ao(e, t) {
2286
- return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2287
- }
2288
- function oo(e, t) {
2289
- const n = t.indexOf(e);
2290
- if (n === -1)
2291
- return !1;
2292
- for (let s = n + 1; s < t.length; s++)
2293
- if (ao(e, t[s]))
2294
- return !0;
2295
- return !1;
2296
- }
2297
- function Rn(e, ...t) {
2298
- const { datetimeFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: i } = e, { __datetimeFormatters: d } = e, [u, _, p, m] = Ht(...t), g = ae(p.missingWarn) ? p.missingWarn : e.missingWarn;
2299
- ae(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn;
2300
- const O = !!p.part, A = rn(e, p), N = i(
2301
- e,
2302
- // eslint-disable-line @typescript-eslint/no-explicit-any
2303
- a,
2304
- A
2305
- );
2306
- if (!x(u) || u === "")
2307
- return new Intl.DateTimeFormat(A, m).format(_);
2308
- let k = {}, c, b = null;
2309
- const S = "datetime format";
2310
- for (let I = 0; I < N.length && (c = N[I], k = n[c] || {}, b = k[u], !j(b)); I++)
2311
- an(e, u, c, g, S);
2312
- if (!j(b) || !x(c))
2313
- return s ? Ct : u;
2314
- let y = `${c}__${u}`;
2315
- Nt(m) || (y = `${y}__${JSON.stringify(m)}`);
2316
- let h = d.get(y);
2317
- return h || (h = new Intl.DateTimeFormat(c, me({}, b, m)), d.set(y, h)), O ? h.formatToParts(_) : h.format(_);
2318
- }
2319
- const ns = [
2320
- "localeMatcher",
2321
- "weekday",
2322
- "era",
2323
- "year",
2324
- "month",
2325
- "day",
2326
- "hour",
2327
- "minute",
2328
- "second",
2329
- "timeZoneName",
2330
- "formatMatcher",
2331
- "hour12",
2332
- "timeZone",
2333
- "dateStyle",
2334
- "timeStyle",
2335
- "calendar",
2336
- "dayPeriod",
2337
- "numberingSystem",
2338
- "hourCycle",
2339
- "fractionalSecondDigits"
2340
- ];
2341
- function Ht(...e) {
2342
- const [t, n, s, a] = e, r = J();
2343
- let i = J(), d;
2344
- if (x(t)) {
2345
- const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
2346
- if (!u)
2347
- throw $e(Be.INVALID_ISO_DATE_ARGUMENT);
2348
- const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
2349
- d = new Date(_);
2350
- try {
2351
- d.toISOString();
2352
- } catch {
2353
- throw $e(Be.INVALID_ISO_DATE_ARGUMENT);
2354
- }
2355
- } else if (xr(t)) {
2356
- if (isNaN(t.getTime()))
2357
- throw $e(Be.INVALID_DATE_ARGUMENT);
2358
- d = t;
2359
- } else if (_e(t))
2360
- d = t;
2361
- else
2362
- throw $e(Be.INVALID_ARGUMENT);
2363
- return x(n) ? r.key = n : j(n) && Object.keys(n).forEach((u) => {
2364
- ns.includes(u) ? i[u] = n[u] : r[u] = n[u];
2365
- }), x(s) ? r.locale = s : j(s) && (i = s), j(a) && (i = a), [r.key || "", d, r, i];
2366
- }
2367
- function Cn(e, t, n) {
2368
- const s = e;
2369
- for (const a in n) {
2370
- const r = `${t}__${a}`;
2371
- s.__datetimeFormatters.has(r) && s.__datetimeFormatters.delete(r);
2372
- }
2373
- }
2374
- function An(e, ...t) {
2375
- const { numberFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: i } = e, { __numberFormatters: d } = e, [u, _, p, m] = Vt(...t), g = ae(p.missingWarn) ? p.missingWarn : e.missingWarn;
2376
- ae(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn;
2377
- const O = !!p.part, A = rn(e, p), N = i(
2378
- e,
2379
- // eslint-disable-line @typescript-eslint/no-explicit-any
2380
- a,
2381
- A
2382
- );
2383
- if (!x(u) || u === "")
2384
- return new Intl.NumberFormat(A, m).format(_);
2385
- let k = {}, c, b = null;
2386
- const S = "number format";
2387
- for (let I = 0; I < N.length && (c = N[I], k = n[c] || {}, b = k[u], !j(b)); I++)
2388
- an(e, u, c, g, S);
2389
- if (!j(b) || !x(c))
2390
- return s ? Ct : u;
2391
- let y = `${c}__${u}`;
2392
- Nt(m) || (y = `${y}__${JSON.stringify(m)}`);
2393
- let h = d.get(y);
2394
- return h || (h = new Intl.NumberFormat(c, me({}, b, m)), d.set(y, h)), O ? h.formatToParts(_) : h.format(_);
2395
- }
2396
- const ss = [
2397
- "localeMatcher",
2398
- "style",
2399
- "currency",
2400
- "currencyDisplay",
2401
- "currencySign",
2402
- "useGrouping",
2403
- "minimumIntegerDigits",
2404
- "minimumFractionDigits",
2405
- "maximumFractionDigits",
2406
- "minimumSignificantDigits",
2407
- "maximumSignificantDigits",
2408
- "compactDisplay",
2409
- "notation",
2410
- "signDisplay",
2411
- "unit",
2412
- "unitDisplay",
2413
- "roundingMode",
2414
- "roundingPriority",
2415
- "roundingIncrement",
2416
- "trailingZeroDisplay"
2417
- ];
2418
- function Vt(...e) {
2419
- const [t, n, s, a] = e, r = J();
2420
- let i = J();
2421
- if (!_e(t))
2422
- throw $e(Be.INVALID_ARGUMENT);
2423
- const d = t;
2424
- return x(n) ? r.key = n : j(n) && Object.keys(n).forEach((u) => {
2425
- ss.includes(u) ? i[u] = n[u] : r[u] = n[u];
2426
- }), x(s) ? r.locale = s : j(s) && (i = s), j(a) && (i = a), [r.key || "", d, r, i];
2427
- }
2428
- function Dn(e, t, n) {
2429
- const s = e;
2430
- for (const a in n) {
2431
- const r = `${t}__${a}`;
2432
- s.__numberFormatters.has(r) && s.__numberFormatters.delete(r);
2433
- }
2434
- }
2435
- const lo = (e) => e, io = (e) => "", co = "text", uo = (e) => e.length === 0 ? "" : tn(e), po = Br;
2436
- function Ln(e, t) {
2437
- return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2438
- }
2439
- function _o(e) {
2440
- const t = _e(e.pluralIndex) ? e.pluralIndex : -1;
2441
- return e.named && (_e(e.named.count) || _e(e.named.n)) ? _e(e.named.count) ? e.named.count : _e(e.named.n) ? e.named.n : t : t;
2442
- }
2443
- function mo(e, t) {
2444
- t.count || (t.count = e), t.n || (t.n = e);
2445
- }
2446
- function fo(e = {}) {
2447
- const t = e.locale, n = _o(e), s = W(e.pluralRules) && x(t) && te(e.pluralRules[t]) ? e.pluralRules[t] : Ln, a = W(e.pluralRules) && x(t) && te(e.pluralRules[t]) ? Ln : void 0, r = (c) => c[s(n, c.length, a)], i = e.list || [], d = (c) => i[c], u = e.named || J();
2448
- _e(e.pluralIndex) && mo(n, u);
2449
- const _ = (c) => u[c];
2450
- function p(c, b) {
2451
- const S = te(e.messages) ? e.messages(c, !!b) : W(e.messages) ? e.messages[c] : !1;
2452
- return S || (e.parent ? e.parent.message(c) : io);
2453
- }
2454
- const m = (c) => e.modifiers ? e.modifiers[c] : lo, g = j(e.processor) && te(e.processor.normalize) ? e.processor.normalize : uo, O = j(e.processor) && te(e.processor.interpolate) ? e.processor.interpolate : po, A = j(e.processor) && x(e.processor.type) ? e.processor.type : co, k = {
2455
- list: d,
2456
- named: _,
2457
- plural: r,
2458
- linked: (c, ...b) => {
2459
- const [S, y] = b;
2460
- let h = "text", I = "";
2461
- b.length === 1 ? W(S) ? (I = S.modifier || I, h = S.type || h) : x(S) && (I = S || I) : b.length === 2 && (x(S) && (I = S || I), x(y) && (h = y || h));
2462
- const T = p(c, !0)(k), V = (
2463
- // The message in vnode resolved with linked are returned as an array by processor.nomalize
2464
- h === "vnode" && de(T) && I ? T[0] : T
2465
- );
2466
- return I ? m(I)(V, h) : V;
2467
- },
2468
- message: p,
2469
- type: A,
2470
- interpolate: O,
2471
- normalize: g,
2472
- values: me(J(), i, u)
2473
- };
2474
- return k;
2475
- }
2476
- const Pn = () => "", Ce = (e) => te(e);
2477
- function wn(e, ...t) {
2478
- const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: i, messages: d } = e, [u, _] = Gt(...t), p = ae(_.missingWarn) ? _.missingWarn : e.missingWarn, m = ae(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, g = ae(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, O = !!_.resolvedMessage, A = x(_.default) || ae(_.default) ? ae(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, N = n || A != null && (x(A) || te(A)), k = rn(e, _);
2479
- g && vo(_);
2480
- let [c, b, S] = O ? [
2481
- u,
2482
- k,
2483
- d[k] || J()
2484
- ] : rs(e, u, k, i, m, p), y = c, h = u;
2485
- if (!O && !(x(y) || lt(y) || Ce(y)) && N && (y = A, h = y), !O && (!(x(y) || lt(y) || Ce(y)) || !x(b)))
2486
- return a ? Ct : u;
2487
- let I = !1;
2488
- const T = () => {
2489
- I = !0;
2490
- }, V = Ce(y) ? y : as(e, u, b, y, h, T);
2491
- if (I)
2492
- return y;
2493
- const H = yo(e, b, S, _), B = fo(H), Z = go(e, V, B), $ = s ? s(Z, u) : Z;
2494
- if (__INTLIFY_PROD_DEVTOOLS__) {
2495
- const U = {
2496
- timestamp: Date.now(),
2497
- key: x(u) ? u : Ce(y) ? y.key : "",
2498
- locale: b || (Ce(y) ? y.locale : ""),
2499
- format: x(y) ? y : Ce(y) ? y.source : "",
2500
- message: $
2501
- };
2502
- U.meta = me({}, e.__meta, /* @__PURE__ */ no() || {}), Fa(U);
2503
- }
2504
- return $;
2505
- }
2506
- function vo(e) {
2507
- de(e.list) ? e.list = e.list.map((t) => x(t) ? vn(t) : t) : W(e.named) && Object.keys(e.named).forEach((t) => {
2508
- x(e.named[t]) && (e.named[t] = vn(e.named[t]));
2509
- });
2510
- }
2511
- function rs(e, t, n, s, a, r) {
2512
- const { messages: i, onWarn: d, messageResolver: u, localeFallbacker: _ } = e, p = _(e, s, n);
2513
- let m = J(), g, O = null;
2514
- const A = "translate";
2515
- for (let N = 0; N < p.length && (g = p[N], m = i[g] || J(), (O = u(m, t)) === null && (O = m[t]), !(x(O) || lt(O) || Ce(O))); N++)
2516
- if (!oo(g, p)) {
2517
- const k = an(
2518
- e,
2519
- // eslint-disable-line @typescript-eslint/no-explicit-any
2520
- t,
2521
- g,
2522
- r,
2523
- A
2524
- );
2525
- k !== t && (O = k);
2526
- }
2527
- return [O, g, m];
2528
- }
2529
- function as(e, t, n, s, a, r) {
2530
- const { messageCompiler: i, warnHtmlMessage: d } = e;
2531
- if (Ce(s)) {
2532
- const _ = s;
2533
- return _.locale = _.locale || n, _.key = _.key || t, _;
2534
- }
2535
- if (i == null) {
2536
- const _ = () => s;
2537
- return _.locale = n, _.key = t, _;
2538
- }
2539
- const u = i(s, bo(e, n, a, s, d, r));
2540
- return u.locale = n, u.key = t, u.source = s, u;
2541
- }
2542
- function go(e, t, n) {
2543
- return t(n);
2544
- }
2545
- function Gt(...e) {
2546
- const [t, n, s] = e, a = J();
2547
- if (!x(t) && !_e(t) && !Ce(t) && !lt(t))
2548
- throw $e(Be.INVALID_ARGUMENT);
2549
- const r = _e(t) ? String(t) : (Ce(t), t);
2550
- return _e(n) ? a.plural = n : x(n) ? a.default = n : j(n) && !Nt(n) ? a.named = n : de(n) && (a.list = n), _e(s) ? a.plural = s : x(s) ? a.default = s : j(s) && me(a, s), [r, a];
2551
- }
2552
- function bo(e, t, n, s, a, r) {
2553
- return {
2554
- locale: t,
2555
- key: n,
2556
- warnHtmlMessage: a,
2557
- onError: (i) => {
2558
- throw r && r(i), i;
2559
- },
2560
- onCacheKey: (i) => Fr(t, n, i)
2561
- };
2562
- }
2563
- function yo(e, t, n, s) {
2564
- const { modifiers: a, pluralRules: r, messageResolver: i, fallbackLocale: d, fallbackWarn: u, missingWarn: _, fallbackContext: p } = e, g = {
2565
- locale: t,
2566
- modifiers: a,
2567
- pluralRules: r,
2568
- messages: (O, A) => {
2569
- let N = i(n, O);
2570
- if (N == null && (p || A)) {
2571
- const [, , k] = rs(
2572
- p || e,
2573
- // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
2574
- O,
2575
- t,
2576
- d,
2577
- u,
2578
- _
2579
- );
2580
- N = i(k, O);
2581
- }
2582
- if (x(N) || lt(N)) {
2583
- let k = !1;
2584
- const b = as(e, O, t, N, O, () => {
2585
- k = !0;
2586
- });
2587
- return k ? Pn : b;
2588
- } else return Ce(N) ? N : Pn;
2589
- }
2590
- };
2591
- return e.processor && (g.processor = e.processor), s.list && (g.list = s.list), s.named && (g.named = s.named), _e(s.plural) && (g.pluralIndex = s.plural), g;
2592
- }
2593
- fa();
2594
- var Eo = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_4e73d002-17bd-4906-b40e-2899fd118a55", npm_package_dependencies_dinero_js: "^1.9.1", npm_package_dependencies_zod: "3.17.9", npm_package_devDependencies__types_node: "^18.19.33", npm_config_dedupe_peer_dependents: "", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_scripts_prepublish: "pnpm check:env && pnpm build:mf && pnpm build:dts", npm_package_dependencies_fuzzy_search: "^3.2.1", npm_package_dependencies_pinia: "^2.1.7", npm_package_devDependencies_vitest: "^1.6.0", USER: "runner", npm_config_user_agent: "pnpm/9.12.1 npm/? node/v20.18.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", npm_package_devDependencies_vite_plugin_commonjs: "^0.10.3", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_4e73d002-17bd-4906-b40e-2899fd118a55", PIPX_HOME: "/opt/pipx", npm_package_scripts_dev_standalone: "vite --mode standalone", npm_package_dependencies_node_html_parser: "^7.0.1", npm_package_devDependencies_vite: "5.4.8", npm_node_execpath: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_package_files_0: "dist", npm_package_scripts_prod_standalone: "PORTAL_ENV=production vite --mode standalone", npm_package_scripts_check_env: 'cat build-*.env | grep -qE "^[^#].*localhost" && { echo "Error: build-*.env files contains localhost reference" >&2; exit 1;} || exit 0', HOME: "/home/runner", npm_package_devDependencies_sass: "^1.77.2", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "PORTAL_ENV=production vite build --mode fmmf", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max_old_space_size=4096", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", npm_package_scripts_type_check: "vue-tsc --declaration --noEmit -p tsconfig.app.json", npm_package_dependencies__feedmepos_mf_common: "1.13.0-beta.1", npm_package_devDependencies_npm_run_all2: "^6.2.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", SYSTEMD_EXEC_PID: "718", npm_package_dependencies__feedmepos_ui_library: "1.3.8", npm_package_dependencies_dayjs: "^1.11.11", npm_package_dependencies_dotenv: "^16.4.5", npm_package_devDependencies__tsconfig_node18: "^18.2.4", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_devDependencies_tailwindcss: "3.4.1", npm_package_devDependencies_typescript: "5.2.2", NVM_DIR: "/home/runner/.nvm", npm_package_dependencies_google_maps: "^4.3.3", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^1.8.27", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250209.1.0", npm_package_scripts_build_prod: "PORTAL_ENV=production vite build --mode standalone", npm_package_scripts_dev: "vite", npm_package_dependencies__types_dinero_js: "^1.9.4", npm_package_devDependencies_prettier: "^3.2.5", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", npm_package_scripts_prod: "PORTAL_ENV=production vite", npm_package_devDependencies__vue_tsconfig: "^0.4.0", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:5722", GITHUB_WORKFLOW: "Preview FeedMe Inventory Portal V1", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_scripts_lint: "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", npm_package_scripts_check_publish_version: "./bin/check-version.sh", npm_package_dependencies_csstype: "^3.1.3", npm_package_dependencies_fuzzy: "^0.1.3", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13299780111", STATS_VMFE: "true", npm_package_devDependencies_happy_dom: "^12.10.3", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "801ee79eabb15a54972be304239bd9e69def15e5", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_exports___import: "./dist/app.js", npm_package_devDependencies__vitejs_plugin_vue: "^4.6.2", GITHUB_WORKFLOW_REF: "feedmepos/inventory-service/.github/workflows/inventory-portal-dev.yaml@refs/heads/dev/portal", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies__feedmepos_zod_inventory: "workspace:^", npm_package_dependencies_axios: "^1.7.1", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/work/inventory-service/inventory-service/apps/inventory-portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/inventory-service/inventory-service/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.18.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_04e90c5a-4249-404f-b0e7-32858ab55a99", INVOCATION_ID: "c7033188134c4bf1a7a2298452804e40", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.18.2/x64/bin/node", npm_package_name: "@feedmepos/mf-inventory-portal", GITHUB_ACTION: "publish_version", GITHUB_RUN_NUMBER: "367", GITHUB_TRIGGERING_ACTOR: "ye-yu", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_build_mf: "vite build --mode fmmf", npm_package_scripts_test_publish: "pnpm prepublish && pnpm pack", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_config_frozen_lockfile: "", npm_package_dependencies__typescript_eslint_typescript_estree: "^8.21.0", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies__vue_eslint_config_typescript: "^12.0.0", npm_package_devDependencies__vue_test_utils: "^2.4.6", npm_package_devDependencies_eslint: "^8.57.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 4", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev/portal", GITHUB_REPOSITORY: "feedmepos/inventory-service", STATS_D_D: "false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_publish_beta: "pnpm publish --tag beta", npm_package_scripts_unpack: "tar zxf", npm_package_dependencies__feedmepos_core: "^2.9.3", npm_package_devDependencies__types_debounce: "^1.2.4", npm_lifecycle_script: "vite build --mode fmmf", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest", npm_package_devDependencies__vue_eslint_config_prettier: "^8.0.0", GITHUB_REPOSITORY_ID: "656626604", GITHUB_ACTIONS: "true", STATS_PIP: "false", NODE_PATH: "/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/bin/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules/vite/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/vite@5.4.8_@types+node@18.19.33_sass@1.77.2_terser@5.30.3/node_modules:/home/runner/work/inventory-service/inventory-service/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.0.23-dev.29", npm_package_scripts_build_only: "pnpm build:mf && pnpm build:dts && pnpm build-types", npm_package_dependencies__tanstack_vue_table: "^8.17.3", npm_package_dependencies__vue_cli_service: "^5.0.8", npm_package_devDependencies__rushstack_eslint_patch: "^1.10.3", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vite build --mode standalone", npm_package_dependencies_vue_i18n: "^10.0.5", npm_config__feedmepos_registry: "https://registry.npmjs.org/", GITHUB_WORKSPACE: "/home/runner/work/inventory-service/inventory-service", ACCEPT_EULA: "Y", GITHUB_JOB: "setup", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_devDependencies__types_fuzzy_search: "^2.1.5", npm_package_devDependencies_cypress: "^13.9.0", GITHUB_SHA: "801ee79eabb15a54972be304239bd9e69def15e5", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_exports___style: "./dist/style.css", npm_package_dependencies_vue_router: "^4.4.0", GITHUB_REF: "refs/heads/dev/portal", GITHUB_ACTOR: "ye-yu", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_devDependencies__testing_library_vue: "^8.1.0", npm_package_scripts_format: "prettier --write src/", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_4e73d002-17bd-4906-b40e-2899fd118a55", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", GITHUB_ACTOR_ID: "30603031", RUNNER_WORKSPACE: "/home/runner/work/inventory-service", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.12.1/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_4e73d002-17bd-4906-b40e-2899fd118a55", npm_package_exports___types: "./dist/app.d.ts", npm_package_dependencies__feedmepos_inventory_core: "workspace:^", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_devDependencies_eslint_plugin_vue: "^9.26.0", npm_package_devDependencies_postcss: "^8.4.38", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_deploy: "pnpm run build-only && pnpm publish --no-git-checks .", npm_package_dependencies_debounce: "^2.0.0", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_4e73d002-17bd-4906-b40e-2899fd118a55", INIT_CWD: "/home/runner/work/inventory-service/inventory-service/apps/inventory-portal", npm_package_dependencies__feedmepos_inventory_core_js: "workspace:^", npm_package_dependencies_libphonenumber_js: "^1.11.18", NODE_ENV: "production" } };
2595
- const To = "10.0.5";
2596
- function ho() {
2597
- typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (et().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (et().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (et().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (et().__INTLIFY_PROD_DEVTOOLS__ = !1);
2598
- }
2599
- const it = {
2600
- // composer module errors
2601
- UNEXPECTED_RETURN_TYPE: xa,
2602
- // 24
2603
- // legacy module errors
2604
- INVALID_ARGUMENT: 25,
2605
- // i18n module errors
2606
- MUST_BE_CALL_SETUP_TOP: 26,
2607
- NOT_INSTALLED: 27,
2608
- // directive module errors
2609
- REQUIRED_VALUE: 28,
2610
- INVALID_VALUE: 29,
2611
- // vue-devtools errors
2612
- CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN: 30,
2613
- NOT_INSTALLED_WITH_PROVIDE: 31,
2614
- // unexpected error
2615
- UNEXPECTED_ERROR: 32,
2616
- // not compatible legacy vue-i18n constructor
2617
- NOT_COMPATIBLE_LEGACY_VUE_I18N: 33,
2618
- // Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly
2619
- NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2620
- };
2621
- function _t(e, ...t) {
2622
- return Rt(e, null, void 0);
2623
- }
2624
- const Bt = /* @__PURE__ */ nt("__translateVNode"), $t = /* @__PURE__ */ nt("__datetimeParts"), jt = /* @__PURE__ */ nt("__numberParts"), ko = nt("__setPluralRules"), os = /* @__PURE__ */ nt("__injectWithOption"), Wt = /* @__PURE__ */ nt("__dispose");
2625
- function mt(e) {
2626
- if (!W(e))
2627
- return e;
2628
- for (const t in e)
2629
- if (we(e, t))
2630
- if (!t.includes("."))
2631
- W(e[t]) && mt(e[t]);
2632
- else {
2633
- const n = t.split("."), s = n.length - 1;
2634
- let a = e, r = !1;
2635
- for (let i = 0; i < s; i++) {
2636
- if (n[i] in a || (a[n[i]] = J()), !W(a[n[i]])) {
2637
- r = !0;
2638
- break;
2639
- }
2640
- a = a[n[i]];
2641
- }
2642
- r || (a[n[s]] = e[t], delete e[t]), W(a[n[s]]) && mt(a[n[s]]);
2643
- }
2644
- return e;
2645
- }
2646
- function ls(e, t) {
2647
- const { messages: n, __i18n: s, messageResolver: a, flatJson: r } = t, i = j(n) ? n : de(s) ? J() : { [e]: J() };
2648
- if (de(s) && s.forEach((d) => {
2649
- if ("locale" in d && "resource" in d) {
2650
- const { locale: u, resource: _ } = d;
2651
- u ? (i[u] = i[u] || J(), Et(_, i[u])) : Et(_, i);
2652
- } else
2653
- x(d) && Et(JSON.parse(d), i);
2654
- }), a == null && r)
2655
- for (const d in i)
2656
- we(i, d) && mt(i[d]);
2657
- return i;
2658
- }
2659
- function is(e) {
2660
- return e.type;
2661
- }
2662
- function Io(e, t, n) {
2663
- let s = W(t.messages) ? t.messages : J();
2664
- "__i18nGlobal" in n && (s = ls(e.locale.value, {
2665
- messages: s,
2666
- __i18n: n.__i18nGlobal
2667
- }));
2668
- const a = Object.keys(s);
2669
- a.length && a.forEach((r) => {
2670
- e.mergeLocaleMessage(r, s[r]);
2671
- });
2672
- {
2673
- if (W(t.datetimeFormats)) {
2674
- const r = Object.keys(t.datetimeFormats);
2675
- r.length && r.forEach((i) => {
2676
- e.mergeDateTimeFormat(i, t.datetimeFormats[i]);
2677
- });
2678
- }
2679
- if (W(t.numberFormats)) {
2680
- const r = Object.keys(t.numberFormats);
2681
- r.length && r.forEach((i) => {
2682
- e.mergeNumberFormat(i, t.numberFormats[i]);
2683
- });
2684
- }
2685
- }
2686
- }
2687
- function Un(e) {
2688
- return M(fs, null, e, 0);
2689
- }
2690
- const Fn = "__INTLIFY_META__", Mn = () => [], Oo = () => !1;
2691
- let xn = 0;
2692
- function Hn(e) {
2693
- return (t, n, s, a) => e(n, s, Yt() || void 0, a);
2694
- }
2695
- const So = /* @__NO_SIDE_EFFECTS__ */ () => {
2696
- const e = Yt();
2697
- let t = null;
2698
- return e && (t = is(e)[Fn]) ? { [Fn]: t } : null;
2699
- };
2700
- function No(e = {}) {
2701
- const { __root: t, __injectWithOption: n } = e, s = t === void 0, a = e.flatJson, r = mn ? ue : ms;
2702
- let i = ae(e.inheritLocale) ? e.inheritLocale : !0;
2703
- const d = r(
2704
- // prettier-ignore
2705
- t && i ? t.locale.value : x(e.locale) ? e.locale : kt
2706
- ), u = r(
2707
- // prettier-ignore
2708
- t && i ? t.fallbackLocale.value : x(e.fallbackLocale) || de(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : d.value
2709
- ), _ = r(ls(d.value, e)), p = r(j(e.datetimeFormats) ? e.datetimeFormats : { [d.value]: {} }), m = r(j(e.numberFormats) ? e.numberFormats : { [d.value]: {} });
2710
- let g = t ? t.missingWarn : ae(e.missingWarn) || ht(e.missingWarn) ? e.missingWarn : !0, O = t ? t.fallbackWarn : ae(e.fallbackWarn) || ht(e.fallbackWarn) ? e.fallbackWarn : !0, A = t ? t.fallbackRoot : ae(e.fallbackRoot) ? e.fallbackRoot : !0, N = !!e.fallbackFormat, k = te(e.missing) ? e.missing : null, c = te(e.missing) ? Hn(e.missing) : null, b = te(e.postTranslation) ? e.postTranslation : null, S = t ? t.warnHtmlMessage : ae(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter;
2711
- const h = t ? t.modifiers : j(e.modifiers) ? e.modifiers : {};
2712
- let I = e.pluralRules || t && t.pluralRules, T;
2713
- T = (() => {
2714
- s && Sn(null);
2715
- const f = {
2716
- version: To,
2717
- locale: d.value,
2718
- fallbackLocale: u.value,
2719
- messages: _.value,
2720
- modifiers: h,
2721
- pluralRules: I,
2722
- missing: c === null ? void 0 : c,
2723
- missingWarn: g,
2724
- fallbackWarn: O,
2725
- fallbackFormat: N,
2726
- unresolving: !0,
2727
- postTranslation: b === null ? void 0 : b,
2728
- warnHtmlMessage: S,
2729
- escapeParameter: y,
2730
- messageResolver: e.messageResolver,
2731
- messageCompiler: e.messageCompiler,
2732
- __meta: { framework: "vue" }
2733
- };
2734
- f.datetimeFormats = p.value, f.numberFormats = m.value, f.__datetimeFormatters = j(T) ? T.__datetimeFormatters : void 0, f.__numberFormatters = j(T) ? T.__numberFormatters : void 0;
2735
- const R = ro(f);
2736
- return s && Sn(R), R;
2737
- })(), ut(T, d.value, u.value);
2738
- function H() {
2739
- return [
2740
- d.value,
2741
- u.value,
2742
- _.value,
2743
- p.value,
2744
- m.value
2745
- ];
2746
- }
2747
- const B = Q({
2748
- get: () => d.value,
2749
- set: (f) => {
2750
- d.value = f, T.locale = d.value;
2751
- }
2752
- }), Z = Q({
2753
- get: () => u.value,
2754
- set: (f) => {
2755
- u.value = f, T.fallbackLocale = u.value, ut(T, d.value, f);
2756
- }
2757
- }), $ = Q(() => _.value), U = /* @__PURE__ */ Q(() => p.value), P = /* @__PURE__ */ Q(() => m.value);
2758
- function le() {
2759
- return te(b) ? b : null;
2760
- }
2761
- function Te(f) {
2762
- b = f, T.postTranslation = f;
2763
- }
2764
- function ve() {
2765
- return k;
2766
- }
2767
- function We(f) {
2768
- f !== null && (c = Hn(f)), k = f, T.missing = c;
2769
- }
2770
- const ge = (f, R, z, se, Ze, ft) => {
2771
- H();
2772
- let st;
2773
- try {
2774
- Eo.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, s || (T.fallbackContext = t ? so() : void 0), st = f(T);
2775
- } finally {
2776
- __INTLIFY_PROD_DEVTOOLS__, s || (T.fallbackContext = void 0);
2777
- }
2778
- if (z !== "translate exists" && // for not `te` (e.g `t`)
2779
- _e(st) && st === Ct || z === "translate exists" && !st) {
2780
- const [ds, yl] = R();
2781
- return t && A ? se(t) : Ze(ds);
2782
- } else {
2783
- if (ft(st))
2784
- return st;
2785
- throw _t(it.UNEXPECTED_RETURN_TYPE);
2786
- }
2787
- };
2788
- function He(...f) {
2789
- return ge((R) => Reflect.apply(wn, null, [R, ...f]), () => Gt(...f), "translate", (R) => Reflect.apply(R.t, R, [...f]), (R) => R, (R) => x(R));
2790
- }
2791
- function Ye(...f) {
2792
- const [R, z, se] = f;
2793
- if (se && !W(se))
2794
- throw _t(it.INVALID_ARGUMENT);
2795
- return He(R, z, me({ resolvedMessage: !0 }, se || {}));
2796
- }
2797
- function C(...f) {
2798
- return ge((R) => Reflect.apply(Rn, null, [R, ...f]), () => Ht(...f), "datetime format", (R) => Reflect.apply(R.d, R, [...f]), () => In, (R) => x(R));
2799
- }
2800
- function w(...f) {
2801
- return ge((R) => Reflect.apply(An, null, [R, ...f]), () => Vt(...f), "number format", (R) => Reflect.apply(R.n, R, [...f]), () => In, (R) => x(R));
2802
- }
2803
- function oe(f) {
2804
- return f.map((R) => x(R) || _e(R) || ae(R) ? Un(String(R)) : R);
2805
- }
2806
- const Se = {
2807
- normalize: oe,
2808
- interpolate: (f) => f,
2809
- type: "vnode"
2810
- };
2811
- function De(...f) {
2812
- return ge((R) => {
2813
- let z;
2814
- const se = R;
2815
- try {
2816
- se.processor = Se, z = Reflect.apply(wn, null, [se, ...f]);
2817
- } finally {
2818
- se.processor = null;
2819
- }
2820
- return z;
2821
- }, () => Gt(...f), "translate", (R) => R[Bt](...f), (R) => [Un(R)], (R) => de(R));
2822
- }
2823
- function he(...f) {
2824
- return ge((R) => Reflect.apply(An, null, [R, ...f]), () => Vt(...f), "number format", (R) => R[jt](...f), Mn, (R) => x(R) || de(R));
2825
- }
2826
- function ke(...f) {
2827
- return ge((R) => Reflect.apply(Rn, null, [R, ...f]), () => Ht(...f), "datetime format", (R) => R[$t](...f), Mn, (R) => x(R) || de(R));
2828
- }
2829
- function Le(f) {
2830
- I = f, T.pluralRules = I;
2831
- }
2832
- function Ue(f, R) {
2833
- return ge(() => {
2834
- if (!f)
2835
- return !1;
2836
- const z = x(R) ? R : d.value, se = ie(z), Ze = T.messageResolver(se, f);
2837
- return lt(Ze) || Ce(Ze) || x(Ze);
2838
- }, () => [f], "translate exists", (z) => Reflect.apply(z.te, z, [f, R]), Oo, (z) => ae(z));
2839
- }
2840
- function Ve(f) {
2841
- let R = null;
2842
- const z = Jn(T, u.value, d.value);
2843
- for (let se = 0; se < z.length; se++) {
2844
- const Ze = _.value[z[se]] || {}, ft = T.messageResolver(Ze, f);
2845
- if (ft != null) {
2846
- R = ft;
2847
- break;
2848
- }
2849
- }
2850
- return R;
2851
- }
2852
- function Y(f) {
2853
- const R = Ve(f);
2854
- return R ?? (t ? t.tm(f) || {} : {});
2855
- }
2856
- function ie(f) {
2857
- return _.value[f] || {};
2858
- }
2859
- function fe(f, R) {
2860
- if (a) {
2861
- const z = { [f]: R };
2862
- for (const se in z)
2863
- we(z, se) && mt(z[se]);
2864
- R = z[f];
2865
- }
2866
- _.value[f] = R, T.messages = _.value;
2867
- }
2868
- function pe(f, R) {
2869
- _.value[f] = _.value[f] || {};
2870
- const z = { [f]: R };
2871
- if (a)
2872
- for (const se in z)
2873
- we(z, se) && mt(z[se]);
2874
- R = z[f], Et(R, _.value[f]), T.messages = _.value;
2875
- }
2876
- function Ne(f) {
2877
- return p.value[f] || {};
2878
- }
2879
- function o(f, R) {
2880
- p.value[f] = R, T.datetimeFormats = p.value, Cn(T, f, R);
2881
- }
2882
- function l(f, R) {
2883
- p.value[f] = me(p.value[f] || {}, R), T.datetimeFormats = p.value, Cn(T, f, R);
2884
- }
2885
- function E(f) {
2886
- return m.value[f] || {};
2887
- }
2888
- function F(f, R) {
2889
- m.value[f] = R, T.numberFormats = m.value, Dn(T, f, R);
2890
- }
2891
- function ee(f, R) {
2892
- m.value[f] = me(m.value[f] || {}, R), T.numberFormats = m.value, Dn(T, f, R);
2893
- }
2894
- xn++, t && mn && (Je(t.locale, (f) => {
2895
- i && (d.value = f, T.locale = f, ut(T, d.value, u.value));
2896
- }), Je(t.fallbackLocale, (f) => {
2897
- i && (u.value = f, T.fallbackLocale = f, ut(T, d.value, u.value));
2898
- }));
2899
- const D = {
2900
- id: xn,
2901
- locale: B,
2902
- fallbackLocale: Z,
2903
- get inheritLocale() {
2904
- return i;
2905
- },
2906
- set inheritLocale(f) {
2907
- i = f, f && t && (d.value = t.locale.value, u.value = t.fallbackLocale.value, ut(T, d.value, u.value));
2908
- },
2909
- get availableLocales() {
2910
- return Object.keys(_.value).sort();
2911
- },
2912
- messages: $,
2913
- get modifiers() {
2914
- return h;
2915
- },
2916
- get pluralRules() {
2917
- return I || {};
2918
- },
2919
- get isGlobal() {
2920
- return s;
2921
- },
2922
- get missingWarn() {
2923
- return g;
2924
- },
2925
- set missingWarn(f) {
2926
- g = f, T.missingWarn = g;
2927
- },
2928
- get fallbackWarn() {
2929
- return O;
2930
- },
2931
- set fallbackWarn(f) {
2932
- O = f, T.fallbackWarn = O;
2933
- },
2934
- get fallbackRoot() {
2935
- return A;
2936
- },
2937
- set fallbackRoot(f) {
2938
- A = f;
2939
- },
2940
- get fallbackFormat() {
2941
- return N;
2942
- },
2943
- set fallbackFormat(f) {
2944
- N = f, T.fallbackFormat = N;
2945
- },
2946
- get warnHtmlMessage() {
2947
- return S;
2948
- },
2949
- set warnHtmlMessage(f) {
2950
- S = f, T.warnHtmlMessage = f;
2951
- },
2952
- get escapeParameter() {
2953
- return y;
2954
- },
2955
- set escapeParameter(f) {
2956
- y = f, T.escapeParameter = f;
2957
- },
2958
- t: He,
2959
- getLocaleMessage: ie,
2960
- setLocaleMessage: fe,
2961
- mergeLocaleMessage: pe,
2962
- getPostTranslationHandler: le,
2963
- setPostTranslationHandler: Te,
2964
- getMissingHandler: ve,
2965
- setMissingHandler: We,
2966
- [ko]: Le
2967
- };
2968
- return D.datetimeFormats = U, D.numberFormats = P, D.rt = Ye, D.te = Ue, D.tm = Y, D.d = C, D.n = w, D.getDateTimeFormat = Ne, D.setDateTimeFormat = o, D.mergeDateTimeFormat = l, D.getNumberFormat = E, D.setNumberFormat = F, D.mergeNumberFormat = ee, D[os] = n, D[Bt] = De, D[$t] = ke, D[jt] = he, D;
2969
- }
2970
- const on = {
2971
- tag: {
2972
- type: [String, Object]
2973
- },
2974
- locale: {
2975
- type: String
2976
- },
2977
- scope: {
2978
- type: String,
2979
- // NOTE: avoid https://github.com/microsoft/rushstack/issues/1050
2980
- validator: (e) => e === "parent" || e === "global",
2981
- default: "parent"
2982
- /* ComponentI18nScope */
2983
- },
2984
- i18n: {
2985
- type: Object
2986
- }
2987
- };
2988
- function Ro({ slots: e }, t) {
2989
- return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((s, a) => [
2990
- ...s,
2991
- // prettier-ignore
2992
- ...a.type === je ? a.children : [a]
2993
- ], []) : t.reduce((n, s) => {
2994
- const a = e[s];
2995
- return a && (n[s] = a()), n;
2996
- }, J());
2997
- }
2998
- function cs() {
2999
- return je;
3000
- }
3001
- me({
3002
- keypath: {
3003
- type: String,
3004
- required: !0
3005
- },
3006
- plural: {
3007
- type: [Number, String],
3008
- validator: (e) => _e(e) || !isNaN(e)
3009
- }
3010
- }, on);
3011
- function Co(e) {
3012
- return de(e) && !x(e[0]);
3013
- }
3014
- function us(e, t, n, s) {
3015
- const { slots: a, attrs: r } = t;
3016
- return () => {
3017
- const i = { part: !0 };
3018
- let d = J();
3019
- e.locale && (i.locale = e.locale), x(e.format) ? i.key = e.format : W(e.format) && (x(e.format.key) && (i.key = e.format.key), d = Object.keys(e.format).reduce((g, O) => n.includes(O) ? me(J(), g, { [O]: e.format[O] }) : g, J()));
3020
- const u = s(e.value, i, d);
3021
- let _ = [i.key];
3022
- de(u) ? _ = u.map((g, O) => {
3023
- const A = a[g.type], N = A ? A({ [g.type]: g.value, index: O, parts: u }) : [g.value];
3024
- return Co(N) && (N[0].key = `${g.type}-${O}`), N;
3025
- }) : x(u) && (_ = [u]);
3026
- const p = me(J(), r), m = x(e.tag) || W(e.tag) ? e.tag : cs();
3027
- return ce(m, p, _);
3028
- };
3029
- }
3030
- me({
3031
- value: {
3032
- type: Number,
3033
- required: !0
3034
- },
3035
- format: {
3036
- type: [String, Object]
3037
- }
3038
- }, on);
3039
- me({
3040
- value: {
3041
- type: [Number, Date],
3042
- required: !0
3043
- },
3044
- format: {
3045
- type: [String, Object]
3046
- }
3047
- }, on);
3048
- const Ao = /* @__PURE__ */ nt("global-vue-i18n");
3049
- function At(e = {}) {
3050
- const t = Yt();
3051
- if (t == null)
3052
- throw _t(it.MUST_BE_CALL_SETUP_TOP);
3053
- if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3054
- throw _t(it.NOT_INSTALLED);
3055
- const n = Do(t), s = Po(n), a = is(t), r = Lo(e, a);
3056
- if (r === "global")
3057
- return Io(s, e, a), s;
3058
- if (r === "parent") {
3059
- let u = wo(n, t, e.__useComponent);
3060
- return u == null && (u = s), u;
3061
- }
3062
- const i = n;
3063
- let d = i.__getInstance(t);
3064
- if (d == null) {
3065
- const u = me({}, e);
3066
- "__i18n" in a && (u.__i18n = a.__i18n), s && (u.__root = s), d = No(u), i.__composerExtend && (d[Wt] = i.__composerExtend(d)), Fo(i, t, d), i.__setInstance(t, d);
3067
- }
3068
- return d;
3069
- }
3070
- function Do(e) {
3071
- const t = ps(e.isCE ? Ao : e.appContext.app.__VUE_I18N_SYMBOL__);
3072
- if (!t)
3073
- throw _t(e.isCE ? it.NOT_INSTALLED_WITH_PROVIDE : it.UNEXPECTED_ERROR);
3074
- return t;
3075
- }
3076
- function Lo(e, t) {
3077
- return Nt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3078
- }
3079
- function Po(e) {
3080
- return e.mode === "composition" ? e.global : e.global.__composer;
3081
- }
3082
- function wo(e, t, n = !1) {
3083
- let s = null;
3084
- const a = t.root;
3085
- let r = Uo(t, n);
3086
- for (; r != null; ) {
3087
- const i = e;
3088
- if (e.mode === "composition")
3089
- s = i.__getInstance(r);
3090
- else if (__VUE_I18N_LEGACY_API__) {
3091
- const d = i.__getInstance(r);
3092
- d != null && (s = d.__composer, n && s && !s[os] && (s = null));
3093
- }
3094
- if (s != null || a === r)
3095
- break;
3096
- r = r.parent;
3097
- }
3098
- return s;
3099
- }
3100
- function Uo(e, t = !1) {
3101
- return e == null ? null : t && e.vnode.ctx || e.parent;
3102
- }
3103
- function Fo(e, t, n) {
3104
- It(() => {
3105
- }, t), _s(() => {
3106
- const s = n;
3107
- e.__deleteInstance(t);
3108
- const a = s[Wt];
3109
- a && (a(), delete s[Wt]);
3110
- }, t);
3111
- }
3112
- ho();
3113
- Qa(Pa);
3114
- Za(qa);
3115
- eo(Jn);
3116
- if (__INTLIFY_PROD_DEVTOOLS__) {
3117
- const e = et();
3118
- e.__INTLIFY__ = !0, wa(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
3119
- }
3120
- const Mo = {
3121
- key: 0,
3122
- class: "flex flex-col gap-8"
3123
- }, xo = { class: "flex flex-col gap-4" }, Ho = { class: "flex items-center gap-4" }, Vo = {
3124
- key: 0,
3125
- class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
3126
- }, Go = /* @__PURE__ */ Ae({
3127
- __name: "NetSuiteField",
3128
- props: {
3129
- disabled: { type: Boolean },
3130
- supplier: {},
3131
- setting: {},
3132
- items: {},
3133
- onChange: { type: Function }
3134
- },
3135
- emits: ["netsuite:ready"],
3136
- setup(e, { emit: t }) {
3137
- const n = Kt(), s = e, a = t, { t: r } = At(), i = ue(!1), d = ue();
3138
- It(() => {
3139
- var m, g, O, A;
3140
- let p = {
3141
- id: "",
3142
- subsidiary: { id: "", name: "" },
3143
- errors: []
3144
- };
3145
- if (!n.isEnabled) {
3146
- a("netsuite:ready", p);
3147
- return;
3148
- }
3149
- try {
3150
- const N = n.currentLocationSubsidiary();
3151
- s.setting ? p = {
3152
- ...s.setting,
3153
- subsidiary: {
3154
- id: N.id || "",
3155
- name: N.name
3156
- }
3157
- } : p = {
3158
- ...p,
3159
- subsidiary: {
3160
- id: N.id || "",
3161
- name: N.name
3162
- }
3163
- };
3164
- const k = n.getAvailableItems(N.id), c = s.items.filter((b) => {
3165
- if (b.measurement != null) {
3166
- const S = n.getAvailableMeasurements(
3167
- b.sku._id,
3168
- N.id
3169
- );
3170
- return k.includes(b.sku._id) && S.includes(b.measurement.id);
3171
- }
3172
- return k.includes(b.sku._id);
3173
- }).map((b) => b.sku._id);
3174
- s.onChange(
3175
- s.items.filter((b) => c.includes(b.sku._id)),
3176
- p
3177
- );
3178
- } finally {
3179
- s.supplier.internal ? d.value = n.getNetSuiteLocation(
3180
- `${s.supplier.internal}_${s.supplier._id}`
3181
- ) : d.value = n.getNetSuiteVendor(s.supplier._id);
3182
- const N = s.supplier.internal ? n.getLocationSubsidiary((m = d.value) == null ? void 0 : m.netSuiteId).id : (g = d.value) == null ? void 0 : g.subsidiaryId, k = s.supplier.internal ? (O = n.currentLocationSubsidiary()) == null ? void 0 : O.id : (A = n.currentVendorSubsidiary(s.supplier._id)) == null ? void 0 : A.id;
3183
- !n.isEnabled || N && n.isEnabled && N == k ? a("netsuite:ready", p) : i.value = !0;
3184
- }
3185
- });
3186
- const u = Q(
3187
- () => s.supplier.internal ? n.currentLocationSubsidiary() : n.currentVendorSubsidiary(s.supplier._id)
3188
- ), _ = Q(() => {
3189
- var p, m;
3190
- return d.value == null ? `Cannot find the NetSuite location for "${s.supplier.name}"` : `The subsidiary of the request
3191
- location is ${(m = n.getLocationSubsidiary((p = d.value) == null ? void 0 : p.netSuiteId)) == null ? void 0 : m.fullName}`;
3192
- });
3193
- return (p, m) => {
3194
- const g = X("FmLabel"), O = X("FmIcon"), A = X("FmField"), N = X("FmTooltip");
3195
- return v(n).isEnabled ? (G(), ne("div", Mo, [
3196
- M(g, {
3197
- label: `NetSuite ${v(r)("inventory.transfer.form.netsuite.subsidiary")}`
3198
- }, null, 8, ["label"]),
3199
- L("div", xo, [
3200
- M(N, {
3201
- "z-index": 51,
3202
- placement: "left",
3203
- disabled: p.disabled
3204
- }, {
3205
- content: q(() => m[0] || (m[0] = [
3206
- Ut("This field is locked and based on the location of the request.")
3207
- ])),
3208
- default: q(() => [
3209
- M(A, null, {
3210
- default: q(() => {
3211
- var k;
3212
- return [
3213
- L("div", Ho, [
3214
- M(O, {
3215
- name: "lock_outline",
3216
- size: "sm",
3217
- color: p.disabled ? "neutral-gray-200" : "neutral-gray-400"
3218
- }, null, 8, ["color"]),
3219
- L("div", {
3220
- class: Pe([p.disabled ? "text-fm-color-typo-disabled" : ""])
3221
- }, re((k = u.value) == null ? void 0 : k.fullName), 3)
3222
- ])
3223
- ];
3224
- }),
3225
- _: 1
3226
- })
3227
- ]),
3228
- _: 1
3229
- }, 8, ["disabled"]),
3230
- i.value ? (G(), ne("div", Vo, re(_.value), 1)) : Ie("", !0)
3231
- ])
3232
- ])) : Ie("", !0);
3233
- };
3234
- }
3235
- }), Bo = { class: "flex flex-col gap-4" }, $o = { class: "flex items-center gap-8 overflow-x-auto pb-12" }, jo = { class: "flex flex-col gap-16" }, Wo = { class: "flex flex-col gap-24" }, Yo = { class: "flex flex-col gap-8" }, Ko = { class: "flex flex-col gap-4" }, Xo = { class: "flex items-center gap-4" }, qo = { class: "flex flex-col gap-8" }, Jo = { class: "flex flex-col gap-4" }, zo = { class: "flex items-center gap-4" }, Qo = {
3236
- key: 3,
3237
- class: "p-16 border border-fm-color-neutral-gray-300 fm-corner-radius-md flex flex-col"
3238
- }, Zo = {
3239
- key: 0,
3240
- class: "flex-1 flex gap-8 h-48 xs:flex-col xs:pt-16 sm:flex-col sm:pt-16"
3241
- }, el = { class: "flex-1" }, tl = { class: "flex-1" }, nl = {
3242
- key: 1,
3243
- class: "flex items-center gap-4"
3244
- }, sl = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary translate-y-[1px]" }, rl = { class: "flex flex-col gap-16" }, al = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, ol = { class: "flex gap-8" }, ll = { key: 0 }, il = /* @__PURE__ */ Ae({
3245
- __name: "TransferForm2",
3246
- props: {
3247
- modelValue: {},
3248
- request: {},
3249
- disabled: { type: Boolean },
3250
- suppliers: {},
3251
- skus: {},
3252
- lastClosingDate: {}
3253
- },
3254
- emits: ["validation-success", "form:ready"],
3255
- setup(e, { expose: t, emit: n }) {
3256
- const s = e, a = n, r = Ss(), { t: i } = tt(), d = zt(), u = Jt(), _ = Kt(), p = Zt(), m = St(), g = Kn(), { breakpoints: O } = Qt(), A = Q(() => O.value.xs || O.value.sm), N = Gn({
3257
- value: !1
3258
- }), k = ue(!1), c = Q(
3259
- () => {
3260
- var C;
3261
- return ((C = s.modelValue) == null ? void 0 : C.templateDoc) ?? g.templates.find((w) => w._id === r.template);
3262
- }
3263
- ), b = Q(() => r.status === "DRAFT" || !r._rev);
3264
- Je(c, (C) => {
3265
- C && b.value && (r.supplier = (C == null ? void 0 : C.purchaseOrder.supplier) ?? r.supplier);
3266
- }), It(() => {
3267
- var C;
3268
- try {
3269
- if (!r.template) return;
3270
- r.items.length || (r.items = ((C = c.value) == null ? void 0 : C.purchaseOrder.items) ?? []);
3271
- } finally {
3272
- k.value = !0;
3273
- }
3274
- }), Je([k, N], ([C, w], [oe, Re]) => {
3275
- w.value && Re.value && a("form:ready");
3276
- });
3277
- const S = Q(
3278
- () => d.currentLocation.type === Ns.restaurant
3279
- );
3280
- d.watchLocation(async () => {
3281
- location && (r.supplier || (r.supplier = p.suppliers.find((C) => C) ?? r.supplier));
3282
- });
3283
- const y = $s(), h = Xs(
3284
- () => r,
3285
- (C) => {
3286
- Object.assign(r, C);
3287
- },
3288
- !0,
3289
- !0
3290
- ), I = Q({
3291
- get() {
3292
- var C;
3293
- return typeof ((C = r == null ? void 0 : r.supplier) == null ? void 0 : C.internal) == "string" ? be.TRANSFER : be.PURCHASE;
3294
- },
3295
- set(C) {
3296
- var oe;
3297
- const w = typeof ((oe = r == null ? void 0 : r.supplier) == null ? void 0 : oe.internal) == "string" ? be.TRANSFER : be.PURCHASE;
3298
- C !== w && (r.supplier = C === be.PURCHASE ? h.locationOptionsTypePurchase.value[0] : h.locationOptionsTypeTransfer.value[0]);
3299
- }
3300
- }), T = Q(() => h.transferLocationOptions.value), V = Q({
3301
- get() {
3302
- return r.supplier._id;
3303
- },
3304
- set(C) {
3305
- h.transferLocationModel.value = C;
3306
- }
3307
- }), H = Q({
3308
- get() {
3309
- return r.remark ?? void 0;
3310
- },
3311
- set(C) {
3312
- r.remark = C;
3313
- }
3314
- }), { backdatePo: B, backdateSwitch: Z, backdateModel: $, backdateTimeModel: U } = fr({
3315
- getEffectiveAt() {
3316
- return r.effectiveAt;
3317
- },
3318
- setEffectiveAt(C) {
3319
- r.effectiveAt = C;
3320
- }
3321
- }), { comparePricesToggle: P, comparePriceFetching: le, comparePriceBySku: Te } = Dr(), ve = ue();
3322
- t({
3323
- validateInputs: () => {
3324
- var C, w;
3325
- (w = (C = ve.value) == null ? void 0 : C.validateInputs) == null || w.call(C);
3326
- },
3327
- resetInputsValidation: () => {
3328
- var C, w;
3329
- (w = (C = ve.value) == null ? void 0 : C.resetInputsValidation) == null || w.call(C);
3330
- },
3331
- resetInputs: () => {
3332
- var C, w;
3333
- (w = (C = ve.value) == null ? void 0 : C.resetInputs) == null || w.call(C);
3334
- }
3335
- });
3336
- const We = zs({
3337
- updateItem: (C) => {
3338
- r.items = r.items.map((w) => w.sku._id !== C.sku._id ? w : C);
3339
- },
3340
- deleteItem: (C) => {
3341
- r.items = r.items.filter((w) => w.sku._id !== C.sku._id);
3342
- },
3343
- get supplier() {
3344
- return r.supplier;
3345
- },
3346
- get items() {
3347
- return r.items;
3348
- },
3349
- get transferType() {
3350
- return I.value;
3351
- },
3352
- get template() {
3353
- return c.value;
3354
- },
3355
- get disabled() {
3356
- return s.disabled;
3357
- }
3358
- }), ge = Q(() => {
3359
- let C = We.columnDefs.value;
3360
- return _.isEnabled && I.value === be.TRANSFER && (C = C.filter((w) => w.id !== ye.TotalCost)), C;
3361
- });
3362
- function He() {
3363
- var he, ke, Le, Ue, Ve;
3364
- const C = new Set((Le = (ke = (he = c.value) == null ? void 0 : he.purchaseOrder) == null ? void 0 : ke.items) == null ? void 0 : Le.map((Y) => Y.sku._id)), w = _.isEnabled ? _.getAvailableItems((Ve = (Ue = r.netSuite) == null ? void 0 : Ue.subsidiary) == null ? void 0 : Ve.id) : [], oe = C.size ? u.skus.filter((Y) => C.has(Y._id)) : u.skus, Re = _.isEnabled ? oe.filter((Y) => {
3365
- var fe, pe, Ne, o;
3366
- const ie = (pe = (fe = c.value) == null ? void 0 : fe.purchaseOrder) == null ? void 0 : pe.items.find(
3367
- (l) => l.sku._id === Y._id
3368
- );
3369
- if (ie != null && ie.measurement != null) {
3370
- const l = _.getAvailableMeasurements(
3371
- ie.sku._id,
3372
- (o = (Ne = r.netSuite) == null ? void 0 : Ne.subsidiary) == null ? void 0 : o.id
3373
- );
3374
- return w.includes(ie.sku._id) && l.includes(ie.measurement.id);
3375
- }
3376
- return w.includes(Y._id);
3377
- }).map((Y) => Y._id) : oe.map((Y) => Y._id), Se = oe.map(
3378
- (Y) => ({
3379
- label: Y.name,
3380
- sublabel: Y.code,
3381
- value: Y,
3382
- disabled: !Re.includes(Y._id)
3383
- })
3384
- ), De = Se.filter((Y) => {
3385
- var ie;
3386
- return (ie = r.items) == null ? void 0 : ie.find((fe) => fe.sku._id === Y.value._id);
3387
- }).map((Y) => Y.value);
3388
- y.open({
3389
- title: i("inventory.transfer.form.items.selectItem"),
3390
- closeButton: !0,
3391
- contentComponent: As,
3392
- contentComponentProps: {
3393
- modelValue: De,
3394
- items: Se,
3395
- virtualScroll: !0
3396
- },
3397
- primaryActions: {
3398
- text: i("common.confirm"),
3399
- close: !0
3400
- },
3401
- secondaryActions: {
3402
- text: i("common.close"),
3403
- close: !0,
3404
- variant: "tertiary"
3405
- }
3406
- }).onPrimary((Y) => {
3407
- const ie = r.items ?? [], fe = Y.map((pe) => {
3408
- var l, E;
3409
- const Ne = ie.find((F) => F.sku._id === pe._id);
3410
- if (Ne)
3411
- return Ne;
3412
- const o = ((E = (l = c.value) == null ? void 0 : l.purchaseOrder.items) == null ? void 0 : E.find(
3413
- (F) => F.sku._id === pe._id
3414
- )) ?? {
3415
- sku: pe,
3416
- code: pe.code,
3417
- name: pe.name,
3418
- quantity: {
3419
- amount: 1,
3420
- precision: 0
3421
- }
3422
- };
3423
- return I.value == be.PURCHASE && (o.totalCost = Me(
3424
- o.sku,
3425
- o.quantity,
3426
- o.measurement,
3427
- {
3428
- supplier: r.supplier
3429
- }
3430
- )), o;
3431
- });
3432
- fe.sort((pe, Ne) => pe.sku.code.localeCompare(Ne.sku.code)), r.items = fe;
3433
- });
3434
- }
3435
- function Ye(C) {
3436
- return C;
3437
- }
3438
- return (C, w) => {
3439
- var l, E;
3440
- const oe = X("FmChip"), Re = X("FmLabel"), Se = X("FmIcon"), De = X("FmField"), he = X("FmTooltip"), ke = X("FmSelect"), Le = X("FmTextField"), Ue = X("FmTextarea"), Ve = X("FmSwitch"), Y = X("FmDatePicker"), ie = X("FmTimePicker"), fe = X("FmFormGroup"), pe = X("FmButton"), Ne = X("FmTable"), o = X("FmForm");
3441
- return G(), ne("div", Bo, [
3442
- L("div", $o, [
3443
- (l = s.modelValue) != null && l.template ? (G(), Oe(oe, {
3444
- key: 0,
3445
- variant: C.disabled ? "warning" : void 0,
3446
- label: `${v(i)("inventory.transfer.template.title")}: ${((E = c.value) == null ? void 0 : E.name) ?? v(i)("inventory.transfer.form.loading")}`,
3447
- icon: "summarize",
3448
- compact: ""
3449
- }, null, 8, ["variant", "label"])) : Ie("", !0),
3450
- M(oe, {
3451
- label: v(d).currentLocation.name,
3452
- icon: "storefront",
3453
- compact: ""
3454
- }, null, 8, ["label"]),
3455
- C.lastClosingDate ? (G(), Oe(oe, {
3456
- key: 1,
3457
- label: `${v(i)("inventory.transfer.form.lastClosing")}: ${v(qt)(C.lastClosingDate)} ${v(Rs)(C.lastClosingDate)}`,
3458
- icon: "calendar_month",
3459
- compact: ""
3460
- }, null, 8, ["label"])) : Ie("", !0)
3461
- ]),
3462
- M(o, {
3463
- ref_key: "formRef",
3464
- ref: ve,
3465
- class: "flex flex-col gap-32",
3466
- disabled: C.disabled,
3467
- onValidationFailed: console.log,
3468
- onValidationSuccess: w[13] || (w[13] = (F) => a("validation-success"))
3469
- }, {
3470
- default: q(() => {
3471
- var F, ee;
3472
- return [
3473
- L("div", jo, [
3474
- L("div", Wo, [
3475
- (F = s.modelValue) != null && F.template ? (G(), ne(je, { key: 0 }, [
3476
- L("div", Yo, [
3477
- M(Re, {
3478
- label: v(i)("inventory.transfer.form.type.title")
3479
- }, null, 8, ["label"]),
3480
- L("div", Ko, [
3481
- M(he, {
3482
- "z-index": 51,
3483
- placement: "left",
3484
- disabled: C.disabled
3485
- }, {
3486
- content: q(() => w[14] || (w[14] = [
3487
- Ut("This field is locked from template.")
3488
- ])),
3489
- default: q(() => [
3490
- M(De, null, {
3491
- default: q(() => [
3492
- L("div", Xo, [
3493
- M(Se, {
3494
- name: "lock_outline",
3495
- size: "sm",
3496
- color: C.disabled ? "neutral-gray-200" : "neutral-gray-400"
3497
- }, null, 8, ["color"]),
3498
- L("div", {
3499
- class: Pe({ "text-fm-color-typo-disabled": C.disabled })
3500
- }, re(v(i)(`inventory.transfer.form.type.${I.value.toLocaleLowerCase("en-us")}`)), 3)
3501
- ])
3502
- ]),
3503
- _: 1
3504
- })
3505
- ]),
3506
- _: 1
3507
- }, 8, ["disabled"]),
3508
- L("div", {
3509
- class: Pe([
3510
- "fm-typo-en-body-sm-400",
3511
- C.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
3512
- ])
3513
- }, null, 2)
3514
- ])
3515
- ]),
3516
- L("div", qo, [
3517
- M(Re, {
3518
- label: I.value === v(be).PURCHASE ? v(i)("inventory.transfer.form.purchaseFrom") : v(i)("inventory.transfer.form.transferFrom")
3519
- }, null, 8, ["label"]),
3520
- L("div", Jo, [
3521
- M(he, {
3522
- "z-index": 51,
3523
- placement: "left",
3524
- disabled: C.disabled
3525
- }, {
3526
- content: q(() => w[15] || (w[15] = [
3527
- Ut("This field is locked from template.")
3528
- ])),
3529
- default: q(() => [
3530
- M(De, null, {
3531
- default: q(() => {
3532
- var D;
3533
- return [
3534
- L("div", zo, [
3535
- M(Se, {
3536
- name: "lock_outline",
3537
- size: "sm",
3538
- color: C.disabled ? "neutral-gray-200" : "neutral-gray-400"
3539
- }, null, 8, ["color"]),
3540
- L("div", {
3541
- class: Pe({ "text-fm-color-typo-disabled": C.disabled })
3542
- }, re((D = T.value.find((f) => f.value === V.value)) == null ? void 0 : D.label), 3)
3543
- ])
3544
- ];
3545
- }),
3546
- _: 1
3547
- })
3548
- ]),
3549
- _: 1
3550
- }, 8, ["disabled"])
3551
- ])
3552
- ])
3553
- ], 64)) : (G(), ne(je, { key: 1 }, [
3554
- M(ke, {
3555
- label: v(i)("inventory.transfer.form.type.title"),
3556
- "model-value": I.value,
3557
- "onUpdate:modelValue": w[0] || (w[0] = (D) => I.value = D),
3558
- items: [
3559
- {
3560
- label: v(i)("inventory.transfer.form.type.purchase"),
3561
- value: v(be).PURCHASE,
3562
- disabled: !v(h).locationOptionsTypePurchase.value.length,
3563
- sublabel: v(h).locationOptionsTypePurchase.value.length ? void 0 : v(i)("inventory.transfer.form.noSupplierAvailable")
3564
- },
3565
- {
3566
- label: v(i)("inventory.transfer.form.type.transfer"),
3567
- value: v(be).TRANSFER,
3568
- disabled: !v(h).locationOptionsTypeTransfer.value.length,
3569
- sublabel: v(h).locationOptionsTypeTransfer.value.length ? void 0 : v(i)("inventory.transfer.form.noLocationAvailable")
3570
- }
3571
- ],
3572
- rules: [v(Tt)(1)(T.value)]
3573
- }, null, 8, ["label", "model-value", "items", "rules"]),
3574
- M(ke, {
3575
- label: I.value === v(be).PURCHASE ? v(i)("inventory.transfer.form.purchaseFrom") : v(i)("inventory.transfer.form.transferFrom"),
3576
- modelValue: V.value,
3577
- "onUpdate:modelValue": w[1] || (w[1] = (D) => V.value = D),
3578
- items: T.value
3579
- }, {
3580
- "menu-wrapper": q((D) => {
3581
- var f, R;
3582
- return [
3583
- M(qs, Ft(D, {
3584
- items: T.value,
3585
- "model-value": (R = (f = C.modelValue) == null ? void 0 : f.supplier) == null ? void 0 : R._id
3586
- }), null, 16, ["items", "model-value"])
3587
- ];
3588
- }),
3589
- _: 1
3590
- }, 8, ["label", "modelValue", "items"])
3591
- ], 64)),
3592
- M(Le, {
3593
- label: v(i)("inventory.transfer.form.reference"),
3594
- "label-mark": "optional",
3595
- modelValue: v(r).ref,
3596
- "onUpdate:modelValue": w[2] || (w[2] = (D) => v(r).ref = D)
3597
- }, null, 8, ["label", "modelValue"]),
3598
- M(Ue, {
3599
- label: v(i)("inventory.transfer.form.remark"),
3600
- "label-mark": "optional",
3601
- "max-length": 240,
3602
- modelValue: H.value,
3603
- "onUpdate:modelValue": w[3] || (w[3] = (D) => H.value = D),
3604
- class: Pe([C.disabled ? "text-fm-color-typo-disabled " : ""])
3605
- }, null, 8, ["label", "modelValue", "class"]),
3606
- k.value ? (G(), Oe(Go, {
3607
- key: 2,
3608
- disabled: C.disabled,
3609
- supplier: v(r).supplier,
3610
- setting: v(r).netSuite,
3611
- items: v(r).items,
3612
- onChange: (D, f) => {
3613
- v(r).items = D, v(r).netSuite = f;
3614
- },
3615
- "onNetsuite:ready": w[4] || (w[4] = (D) => {
3616
- N.value = !0;
3617
- })
3618
- }, null, 8, ["disabled", "supplier", "setting", "items", "onChange"])) : Ie("", !0),
3619
- v(m).enableBackdatePo ? (G(), ne("div", Qo, [
3620
- L("div", {
3621
- class: Pe([
3622
- "flex",
3623
- {
3624
- "flex-col": A.value
3625
- }
3626
- ])
3627
- }, [
3628
- M(Ve, {
3629
- modelValue: v(Z),
3630
- "onUpdate:modelValue": w[5] || (w[5] = (D) => rt(Z) ? Z.value = D : null),
3631
- label: v(i)("inventory.transfer.form.backdate.title"),
3632
- sublabel: v(i)("inventory.transfer.form.backdate.subtitle"),
3633
- "label-placement": "right",
3634
- disabled: S.value && !C.lastClosingDate || C.disabled
3635
- }, null, 8, ["modelValue", "label", "sublabel", "disabled"]),
3636
- L("div", {
3637
- class: Pe({ hidden: A.value, "w-16": !A.value })
3638
- }, null, 2),
3639
- v(Z) ? (G(), ne("div", Zo, [
3640
- L("div", el, [
3641
- M(Y, {
3642
- modelValue: v($),
3643
- "onUpdate:modelValue": w[6] || (w[6] = (D) => rt($) ? $.value = D : null)
3644
- }, null, 8, ["modelValue"])
3645
- ]),
3646
- L("div", tl, [
3647
- M(ie, {
3648
- modelValue: v(U),
3649
- "onUpdate:modelValue": w[7] || (w[7] = (D) => rt(U) ? U.value = D : null)
3650
- }, null, 8, ["modelValue"])
3651
- ])
3652
- ])) : Ie("", !0)
3653
- ], 2),
3654
- v(B) ? (G(), Oe(fe, {
3655
- key: 0,
3656
- modelValue: v(B),
3657
- "onUpdate:modelValue": w[8] || (w[8] = (D) => rt(B) ? B.value = D : null),
3658
- rules: [v(Cs)(new Date(C.lastClosingDate), /* @__PURE__ */ new Date())]
3659
- }, null, 8, ["modelValue", "rules"])) : Ie("", !0),
3660
- S.value && !C.lastClosingDate ? (G(), ne("div", nl, [
3661
- M(Se, {
3662
- name: "error",
3663
- size: "sm",
3664
- class: "text-fm-color-typo-warning"
3665
- }),
3666
- L("span", sl, re(v(i)("inventory.transfer.form.backdate.error")), 1)
3667
- ])) : Ie("", !0)
3668
- ])) : Ie("", !0)
3669
- ])
3670
- ]),
3671
- L("div", rl, [
3672
- M(fe, {
3673
- "model-value": v(r).items,
3674
- rules: [v(Tt)(1)]
3675
- }, null, 8, ["model-value", "rules"]),
3676
- L("div", {
3677
- class: Pe([
3678
- "flex gap-16",
3679
- {
3680
- "flex-col items-start": A.value,
3681
- "items-center": !A.value
3682
- }
3683
- ])
3684
- }, [
3685
- L("div", al, re(v(i)("inventory.transfer.form.items.title")), 1),
3686
- L("div", ol, [
3687
- M(pe, {
3688
- disabled: C.disabled,
3689
- label: v(i)("inventory.transfer.form.items.addItem"),
3690
- "prepend-icon": "add",
3691
- variant: "secondary",
3692
- "text-color": "primary",
3693
- "bg-color": "transparent",
3694
- "border-color": "primary",
3695
- onClick: w[9] || (w[9] = (D) => He()),
3696
- size: "md"
3697
- }, null, 8, ["disabled", "label"]),
3698
- v(r).template ? (G(), Oe(he, {
3699
- key: 0,
3700
- "z-index": 50
3701
- }, {
3702
- content: q(() => [
3703
- L("div", null, re(v(i)("inventory.transfer.form.items.forecastStock.notAvailable")), 1)
3704
- ]),
3705
- default: q(() => [
3706
- M(_n, {
3707
- "onUpdate:poItems": w[10] || (w[10] = (D) => v(r).items = D),
3708
- disabled: ""
3709
- })
3710
- ]),
3711
- _: 1
3712
- })) : (G(), Oe(_n, {
3713
- key: 1,
3714
- "onUpdate:poItems": w[11] || (w[11] = (D) => v(r).items = D),
3715
- disabled: C.disabled || !!v(r).template
3716
- }, null, 8, ["disabled"]))
3717
- ])
3718
- ], 2),
3719
- I.value === v(be).PURCHASE && b.value && v(m).enableTotalCost && ((ee = C.modelValue) != null && ee.items.length) ? (G(), ne("div", ll, [
3720
- M(Ve, {
3721
- label: v(le) ? v(i)("inventory.transfer.form.items.fetchingData") : v(i)("inventory.transfer.form.items.comparePriceHistory"),
3722
- "prepend-icon": "compare_arrows",
3723
- "label-placement": "right",
3724
- "model-value": v(P),
3725
- "onUpdate:modelValue": w[12] || (w[12] = (D) => rt(P) ? P.value = D : null),
3726
- disabled: v(le) || C.disabled
3727
- }, null, 8, ["label", "model-value", "disabled"])
3728
- ])) : Ie("", !0),
3729
- (G(), Oe(Ne, {
3730
- "column-defs": ge.value,
3731
- "row-data": v(r).items,
3732
- key: v(r).items.map((D) => D.sku._id).join("."),
3733
- "hide-footer": "",
3734
- "page-size": v(r).items.length
3735
- }, {
3736
- "table-row": q((D) => [
3737
- M(Ur, {
3738
- "compare-price-by-sku": v(Te),
3739
- "show-compare-price": I.value === v(be).PURCHASE && v(P),
3740
- row: D
3741
- }, null, 8, ["compare-price-by-sku", "show-compare-price", "row"])
3742
- ]),
3743
- "list-row": q((D) => [
3744
- (G(), Oe(jn, {
3745
- row: D,
3746
- key: v(r).items.map((f) => f.sku._id).join(".")
3747
- }, {
3748
- default: q((f) => [
3749
- M(mr, {
3750
- "compare-price-by-sku": v(Te),
3751
- "show-compare-price": I.value === v(be).PURCHASE && v(P),
3752
- row: D,
3753
- "cell-by-col-id": f
3754
- }, null, 8, ["compare-price-by-sku", "show-compare-price", "row", "cell-by-col-id"])
3755
- ]),
3756
- _: 2
3757
- }, 1032, ["row"]))
3758
- ]),
3759
- _: 1
3760
- }, 8, ["column-defs", "row-data", "page-size"]))
3761
- ])
3762
- ];
3763
- }),
3764
- _: 1
3765
- }, 8, ["disabled", "onValidationFailed"])
3766
- ]);
3767
- };
3768
- }
3769
- }), cl = { class: "flex items-center" }, ul = { class: "fm-typo-en-title-md-800" }, dl = { class: "flex gap-4" }, pl = /* @__PURE__ */ Ae({
3770
- __name: "TransferDialog",
3771
- props: {
3772
- mode: {},
3773
- modelValue: {},
3774
- templateId: {},
3775
- show: { type: Boolean },
3776
- lastClosingDate: {}
3777
- },
3778
- emits: ["update:show", "submitted"],
3779
- setup(e, { expose: t, emit: n }) {
3780
- var $;
3781
- const s = e, a = n, r = Wn(), i = Kn(), d = Ot(), u = Zt(), _ = Jt(), p = zt(), m = St(), { t: g } = tt(), O = ue(!1), A = ue(!1), N = ue(!1);
3782
- async function k(U) {
3783
- if (U) {
3784
- A.value = !1;
3785
- try {
3786
- await u.readSuppliers(), A.value = !0;
3787
- } catch {
3788
- d.open({
3789
- title: g("inventory.transfer.form.unableToFetchListOfSuppliers.title"),
3790
- message: g("inventory.transfer.form.unableToFetchListOfSuppliers.message"),
3791
- type: "error"
3792
- });
3793
- }
3794
- }
3795
- }
3796
- p.watchLocation(k);
3797
- function c() {
3798
- return {
3799
- remark: void 0,
3800
- ref: void 0,
3801
- stockSnapshotId: void 0,
3802
- effectiveAt: void 0,
3803
- items: [],
3804
- supplier: {
3805
- _rev: void 0,
3806
- email: void 0,
3807
- internal: void 0,
3808
- contactName: void 0,
3809
- phoneNumber: void 0,
3810
- registrationNumber: void 0,
3811
- supplyItems: void 0,
3812
- _id: "",
3813
- name: "",
3814
- address: {
3815
- line2: void 0,
3816
- line1: "",
3817
- state: "",
3818
- city: "",
3819
- postcode: "",
3820
- country: ""
3821
- }
3822
- },
3823
- status: "DRAFT",
3824
- _id: "",
3825
- seqNumber: 0,
3826
- deliveryOrder: [],
3827
- template: s.templateId,
3828
- templateDoc: i.templates.find((P) => P._id === s.templateId)
3829
- };
3830
- }
3831
- const b = js(s, "show"), S = ue(s.modelValue ?? c()), y = ue((($ = s.modelValue) == null ? void 0 : $._id) ?? `${Math.random()}`);
3832
- Je(
3833
- () => s.show,
3834
- (U) => {
3835
- var P;
3836
- U && (N.value = !1, S.value = s.modelValue ?? c(), y.value = ((P = s.modelValue) == null ? void 0 : P._id) ?? `${Math.random()}`);
3837
- }
3838
- );
3839
- const h = Q(() => !A.value || !N.value), I = Q(() => {
3840
- switch (s.mode) {
3841
- case ct.READ:
3842
- return "View transfer";
3843
- case ct.CREATE:
3844
- return g("inventory.transfer.receiveRequest.create.title");
3845
- case ct.UPDATE:
3846
- return g("inventory.transfer.receiveRequest.update.title");
3847
- }
3848
- return "";
3849
- }), T = ue();
3850
- t({
3851
- validateInputs: () => {
3852
- var U, P;
3853
- (P = (U = T.value) == null ? void 0 : U.validateInputs) == null || P.call(U);
3854
- },
3855
- resetInputsValidation: () => {
3856
- var U, P;
3857
- (P = (U = T.value) == null ? void 0 : U.resetInputsValidation) == null || P.call(U);
3858
- },
3859
- resetInputs: () => {
3860
- var U, P;
3861
- (P = (U = T.value) == null ? void 0 : U.resetInputs) == null || P.call(U);
3862
- }
3863
- });
3864
- async function V() {
3865
- const U = S.value;
3866
- O.value = !0, (U.supplier.internal === "warehouse" || U.supplier.internal === "restaurant") && (U.items = U.items.map(({ totalCost: P, ...le }) => le)), m.mustUseDefaultCost && (U.items = U.items.map((P) => ({
3867
- ...P,
3868
- totalCost: Me(P.sku, P.quantity, P.measurement)
3869
- })));
3870
- try {
3871
- await r.createPurchaseOrder(U), await new Promise((P) => setTimeout(P, 1e3)), d.open({
3872
- title: g("inventory.transfer.receiveRequest.create.success"),
3873
- message: g("inventory.transfer.receiveRequest.create.successMessage"),
3874
- type: "success"
3875
- }), a("update:show", !1), a("submitted");
3876
- } catch (P) {
3877
- d.open({
3878
- title: g("inventory.transfer.receiveRequest.create.error.title"),
3879
- message: g("inventory.transfer.receiveRequest.create.error.message"),
3880
- type: "error"
3881
- }), console.error("Error in creating purchase order", P);
3882
- } finally {
3883
- O.value = !1;
3884
- }
3885
- }
3886
- async function H() {
3887
- const U = S.value;
3888
- O.value = !0, (U.supplier.internal === "warehouse" || U.supplier.internal === "restaurant") && (U.items = U.items.map(({ totalCost: P, ...le }) => le)), m.mustUseDefaultCost && (U.items = U.items.map((P) => ({
3889
- ...P,
3890
- totalCost: Me(P.sku, P.quantity, P.measurement)
3891
- })));
3892
- try {
3893
- await r.updatePurchaseOrder(U), await new Promise((P) => setTimeout(P, 1e3)), d.open({
3894
- title: g("inventory.transfer.receiveRequest.update.success"),
3895
- message: g("inventory.transfer.receiveRequest.update.successMessage"),
3896
- type: "success"
3897
- }), a("update:show", !1), a("submitted");
3898
- } catch (P) {
3899
- d.open({
3900
- title: g("inventory.transfer.receiveRequest.update.error.title"),
3901
- message: g("inventory.transfer.receiveRequest.update.error.message"),
3902
- type: "error"
3903
- }), console.error("Error in updating purchase order", P);
3904
- } finally {
3905
- O.value = !1;
3906
- }
3907
- }
3908
- function B() {
3909
- switch (s.mode) {
3910
- case ct.CREATE:
3911
- return V();
3912
- case ct.UPDATE:
3913
- return H();
3914
- }
3915
- }
3916
- function Z() {
3917
- var U, P;
3918
- (P = (U = T.value) == null ? void 0 : U.validateInputs) == null || P.call(U);
3919
- }
3920
- return (U, P) => {
3921
- const le = X("FmButton"), Te = X("FmSideSheet");
3922
- return G(), Oe(Te, {
3923
- modelValue: v(b),
3924
- "onUpdate:modelValue": P[3] || (P[3] = (ve) => rt(b) ? b.value = ve : null),
3925
- "dismiss-away": "",
3926
- "close-button": "",
3927
- "max-width": 900
3928
- }, {
3929
- "side-sheet-header": q(() => [
3930
- L("div", cl, [
3931
- L("div", ul, re(I.value), 1)
3932
- ])
3933
- ]),
3934
- default: q(() => [
3935
- (G(), Oe(il, {
3936
- class: "w-full",
3937
- ref_key: "formRef",
3938
- ref: T,
3939
- "onForm:ready": P[0] || (P[0] = () => N.value = !0),
3940
- onValidationSuccess: B,
3941
- modelValue: S.value,
3942
- "onUpdate:modelValue": P[1] || (P[1] = (ve) => S.value = ve),
3943
- disabled: O.value || h.value,
3944
- suppliers: v(u).suppliers,
3945
- skus: v(_).skus,
3946
- key: y.value,
3947
- "last-closing-date": U.lastClosingDate
3948
- }, null, 8, ["modelValue", "disabled", "suppliers", "skus", "last-closing-date"]))
3949
- ]),
3950
- "side-sheet-footer": q(() => [
3951
- L("div", dl, [
3952
- M(le, {
3953
- loading: O.value,
3954
- disabled: h.value,
3955
- label: v(g)("common.save"),
3956
- onClick: Z
3957
- }, null, 8, ["loading", "disabled", "label"]),
3958
- M(le, {
3959
- disabled: h.value,
3960
- variant: "tertiary",
3961
- label: v(g)("common.close"),
3962
- onClick: P[2] || (P[2] = (ve) => a("update:show", !1))
3963
- }, null, 8, ["disabled", "label"])
3964
- ])
3965
- ]),
3966
- _: 1
3967
- }, 8, ["modelValue"]);
3968
- };
3969
- }
3970
- }), _l = { class: "flex flex-col py-8" }, ml = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, gl = {
3971
- key: 0,
3972
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
3973
- }, bl = { class: "pt-8" }, Vn = "ReceiveRequestViewSearchCriteria", Ul = /* @__PURE__ */ Ae({
3974
- __name: "ReceiveRequestView",
3975
- setup(e) {
3976
- const { t } = tt(), n = Ot();
3977
- vt.object({
3978
- name: vt.string().optional().nullable(),
3979
- startDate: vt.string().optional().nullable(),
3980
- endDate: vt.string().optional().nullable()
3981
- });
3982
- const s = Q(
3983
- () => !m._currentLocation || _.loading.value
3984
- ), a = Gs(), r = St();
3985
- function i() {
3986
- const h = {
3987
- name: "",
3988
- ...cn()
3989
- }, I = a.getItem(Vn);
3990
- if (!I)
3991
- return h;
3992
- try {
3993
- return JSON.parse(I);
3994
- } catch {
3995
- return h;
3996
- }
3997
- }
3998
- function d() {
3999
- a.setItem(Vn, JSON.stringify(u.value));
4000
- }
4001
- const u = ue(i()), _ = ws("receive/request", u.value), { columnDefs: p } = Us("receive/request", _), m = zt();
4002
- async function g() {
4003
- const h = `inventory-record_${un(u.value.startDate).format("DD-MM-YYYY_HH-mm")}-${un(u.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, I = _.purchaseOrders.value.flatMap(
4004
- (V) => V.items.map((H) => {
4005
- const B = new Date(Hs(V._id) ?? ""), Z = V.effectiveAt ? new Date(V.effectiveAt) : void 0, $ = qe(
4006
- Ms(H.sku, V.deliveryOrder || [])
4007
- ), U = qe(H.quantity);
4008
- return {
4009
- "SKU code": H.code,
4010
- "SKU name": H.name,
4011
- "PO #": V.seqNumber,
4012
- "Effective at": Z,
4013
- Date: B,
4014
- Status: V.status,
4015
- Reference: V.ref ?? "",
4016
- "Received quantity": $,
4017
- "Ordered quantity": U,
4018
- Unit: H.sku.unit.abbrev,
4019
- "Total cost": H.totalCost ? Xt(H.totalCost) : null
4020
- };
4021
- })
4022
- ), T = [
4023
- "SKU code",
4024
- "SKU name",
4025
- "PO #",
4026
- "Date",
4027
- "Status",
4028
- "Reference",
4029
- "Received quantity",
4030
- "Ordered quantity",
4031
- "Unit"
4032
- ];
4033
- r.enableBackdatePo && T.insert("Effective at", 4), r.enableTotalCost && T.push("Total cost"), await Vs(
4034
- [
4035
- {
4036
- name: "purchases",
4037
- data: I,
4038
- columns: T
4039
- }
4040
- ],
4041
- h
4042
- ), n.open({
4043
- title: t("inventory.transfer.receiveRequest.export.success"),
4044
- message: t("inventory.transfer.receiveRequest.export.message", [h]),
4045
- type: "success"
4046
- });
4047
- }
4048
- const O = ue(cn()), A = ue("");
4049
- Je([() => O.value], ([h]) => {
4050
- !h.startDate || !h.endDate || (u.value.startDate = h.startDate, u.value.endDate = h.endDate, _.updateDateRange(
4051
- u.value.startDate,
4052
- u.value.endDate
4053
- ), d());
4054
- }), Je([() => A.value], () => {
4055
- d();
4056
- });
4057
- function N(h) {
4058
- if (h === "create") {
4059
- if (s.value) {
4060
- n.open({
4061
- title: "Loading data...",
4062
- message: "Please wait.",
4063
- type: "info"
4064
- });
4065
- return;
4066
- }
4067
- return _.promptCreateTransferDialog();
4068
- }
4069
- if (h === "refresh")
4070
- return _.fetchData();
4071
- if (h === "export")
4072
- return g();
4073
- }
4074
- const { breakpoints: k } = Qt(), c = Q(() => k.value.xs || k.value.sm), b = Q(() => c.value ? 10 : 20), S = Ds(), y = Q(() => [
4075
- {
4076
- label: t("inventory.transfer.receiveRequest.actions.create"),
4077
- value: "create",
4078
- isPrimary: !0,
4079
- prependIcon: "add"
4080
- },
4081
- {
4082
- label: t("common.refresh"),
4083
- value: "refresh"
4084
- },
4085
- {
4086
- label: t("common.export"),
4087
- value: "export"
4088
- }
4089
- ]);
4090
- return (h, I) => {
4091
- const T = X("FmTable");
4092
- return G(), Oe(Ls, {
4093
- title: v(t)("inventory.transfer.receiveRequest.title2"),
4094
- actions: y.value,
4095
- "onClick:action": N
4096
- }, {
4097
- default: q(() => {
4098
- var V;
4099
- return [
4100
- L("div", {
4101
- class: Pe([
4102
- "flex flex-col gap-8 max-h-full",
4103
- {
4104
- "p-0": c.value,
4105
- "px-24 ": !c.value
4106
- }
4107
- ])
4108
- }, [
4109
- M(Ps, {
4110
- "date-range-query": "",
4111
- "date-range": O.value,
4112
- "onUpdate:dateRange": I[0] || (I[0] = (H) => O.value = H),
4113
- searchable: "",
4114
- "change-location": "",
4115
- search: A.value,
4116
- "onUpdate:search": I[1] || (I[1] = (H) => A.value = H)
4117
- }, null, 8, ["date-range", "search"]),
4118
- (G(), Oe(T, {
4119
- style: Bn(v(S).tableHeight),
4120
- "column-defs": v(p),
4121
- "row-data": v(_).purchaseOrders.value,
4122
- "search-value": A.value,
4123
- loading: s.value,
4124
- onRowClick: I[2] || (I[2] = (H) => v(_).promptShowTransferDetails(H.original)),
4125
- key: (V = v(m)._currentLocation) == null ? void 0 : V.dbName,
4126
- "page-size": b.value
4127
- }, {
4128
- "list-row": q((H) => [
4129
- M(jn, {
4130
- row: H,
4131
- onRowClick: v(_).promptShowTransferDetails
4132
- }, {
4133
- default: q((B) => {
4134
- var Z, $, U, P, le, Te, ve, We, ge, He, Ye, C, w, oe, Re, Se, De, he, ke, Le;
4135
- return [
4136
- L("div", _l, [
4137
- L("div", ml, [
4138
- M(v(xe), {
4139
- render: (U = ($ = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : $.columnDef) == null ? void 0 : U.cell,
4140
- props: (le = (P = B._id) == null ? void 0 : P.getContext) == null ? void 0 : le.call(P)
4141
- }, null, 8, ["render", "props"])
4142
- ]),
4143
- L("div", fl, [
4144
- M(v(xe), {
4145
- render: (We = (ve = (Te = B.supplier_name) == null ? void 0 : Te.column) == null ? void 0 : ve.columnDef) == null ? void 0 : We.cell,
4146
- props: (He = (ge = B.supplier_name) == null ? void 0 : ge.getContext) == null ? void 0 : He.call(ge)
4147
- }, null, 8, ["render", "props"])
4148
- ]),
4149
- L("div", vl, re(H.original.items.map((Ue) => `${Ue.name}`).join(", ")), 1),
4150
- H.original.ref ? (G(), ne("div", gl, [
4151
- M(v(xe), {
4152
- render: (w = (C = (Ye = B.ref) == null ? void 0 : Ye.column) == null ? void 0 : C.columnDef) == null ? void 0 : w.cell,
4153
- props: (Re = (oe = B.ref) == null ? void 0 : oe.getContext) == null ? void 0 : Re.call(oe)
4154
- }, null, 8, ["render", "props"])
4155
- ])) : Ie("", !0),
4156
- L("div", bl, [
4157
- M(v(xe), {
4158
- render: (he = (De = (Se = B.status) == null ? void 0 : Se.column) == null ? void 0 : De.columnDef) == null ? void 0 : he.cell,
4159
- props: (Le = (ke = B.status) == null ? void 0 : ke.getContext) == null ? void 0 : Le.call(ke)
4160
- }, null, 8, ["render", "props"])
4161
- ])
4162
- ])
4163
- ];
4164
- }),
4165
- _: 2
4166
- }, 1032, ["row", "onRowClick"])
4167
- ]),
4168
- _: 1
4169
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
4170
- ], 2),
4171
- (G(), Oe(vs, { to: "body" }, [
4172
- M(pl, Ft(v(_).transferDialogProps.value, {
4173
- onSubmitted: v(_).fetchData
4174
- }), null, 16, ["onSubmitted"]),
4175
- M(Fs, Ft(v(_).transferDetailsProps.value, {
4176
- onSubmitted: v(_).fetchData
4177
- }), null, 16, ["onSubmitted"])
4178
- ]))
4179
- ];
4180
- }),
4181
- _: 1
4182
- }, 8, ["title", "actions"]);
4183
- };
4184
- }
4185
- });
4186
- export {
4187
- Ul as default
4188
- };