@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.30
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.
- package/dist/{App-kX4bqoEe.js → App-CZJre5y8.js} +57 -55
- package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-CnxHxojY.js} +34 -28
- package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-C6lCOPNs.js} +2 -2
- package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-DZtFKLQ5.js} +6 -5
- package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-BmQGLuJ4.js} +28 -24
- package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-KLtlh31f.js} +183 -175
- package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
- package/dist/ClosingTemplateView-C_IiKnGx.js +2019 -0
- package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
- package/dist/FmDroppableField-J0xUsOTV.js +154 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
- package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
- package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
- package/dist/{ImportView-wAVrMEwL.js → ImportView-DRSoz0uM.js} +81 -74
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
- package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D5Laak2-.js} +73 -65
- package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-TG3fPQhR.js} +358 -345
- package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-CElpjyo7.js} +219 -209
- package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
- package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
- package/dist/{PublishView-CQtj0f31.js → PublishView-CLMfiLjP.js} +26 -23
- package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
- package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-BhD-NaHE.js} +478 -462
- package/dist/{RecipeView-DNNRvr1w.js → RecipeView-RWaO94w_.js} +73 -64
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
- package/dist/{StockView-CaOm5BCx.js → StockView-D5t8OxaG.js} +292 -282
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
- package/dist/{SupplierView-JSII9qwL.js → SupplierView-DiospFKq.js} +92 -80
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
- package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
- package/dist/{UnitView-CqN7mlJ2.js → UnitView-Banlxw7y.js} +70 -63
- package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-BL-p5hbi.js} +123 -114
- package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-EpEEb8EO.js +64040 -0
- package/dist/app-rgirz_52.js +8024 -0
- package/dist/app.d.ts +0 -21
- package/dist/app.js +6 -6
- package/dist/closing-template-zIjwO1_E.js +117 -0
- package/dist/date2-Dnc8Y81g.js +116 -0
- package/dist/dayjs.min-TdUgzmww.js +282 -0
- package/dist/{decimal-DfF_g5rc.js → decimal-C6s3GvGb.js} +4 -3
- package/dist/defineDeepModel-BSaaXVBF.js +19 -0
- package/dist/duplicate-template-Bw0H416G.js +34 -0
- package/dist/feature-C95Hao53.js +20162 -0
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/format-time-from-id-DlbHo6kY.js +15 -0
- package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-QBS54q0R.js} +308 -297
- package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-CUKCKtP7.js} +56 -52
- package/dist/index-CFn_9RMm.js +45 -0
- package/dist/{index-DZaT0ZaL.js → index-S9Ak__QC.js} +1 -1
- package/dist/{index-BbhuWHyh.js → index-goD-WGVb.js} +16 -14
- package/dist/lodash-gq8IrP4j.js +3678 -0
- package/dist/netsuite-CnhAKyAO.js +4316 -0
- package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-CBIpWdEW.js} +1 -1
- package/dist/router/shared.spec.d.ts +1 -0
- package/dist/row-action.enum-BcW_L_nE.js +67 -0
- package/dist/rules-DKklsaS1.js +201 -0
- package/dist/{stock-BYagIdsj.js → stock-3K93Mif9.js} +1 -1
- package/dist/{stock-V4ciPiBe.js → stock-BW8fen3H.js} +11 -10
- package/dist/style.css +1 -1
- package/dist/{supplier-CgtB1I9I.js → supplier-CObCSfot.js} +27 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
- package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
- package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -13
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/vue-i18n-CUznvVzc.js +2365 -0
- package/dist/xlsx-bT1p3YVR.js +24004 -0
- package/dist/xlsx.util-Cr9DpDFb.js +78 -0
- package/package.json +5 -5
- package/dist/ClosingTemplateView-D8IAdhDb.js +0 -2041
- package/dist/app-CnQ49Lyb.js +0 -131483
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, computed as x, openBlock as l, createElementBlock as d, createElementVNode as e, normalizeClass as b, toDisplayString as u, unref as p, ref as D, resolveComponent as B, Fragment as $, createVNode as k, createCommentVNode as N, withCtx as C, renderList as E } from "vue";
|
|
2
2
|
import { useI18n as F, useCoreStore as A } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
3
|
+
import { u as U } from "./netsuite-CnhAKyAO.js";
|
|
4
4
|
function ee(o, n = !1) {
|
|
5
5
|
var c;
|
|
6
6
|
return o ? [
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as
|
|
2
|
-
import { u as ce } from "./supplier-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { defineComponent as ie, mergeModels as Hd, computed as E, useModel as ed, resolveComponent as D, openBlock as S, createElementBlock as w, createElementVNode as h, createVNode as C, withCtx as U, toDisplayString as A, unref as p, Fragment as oe, renderList as le, ref as k, createBlock as z, createCommentVNode as W, createTextVNode as wd, isRef as dd, normalizeClass as ae, watch as Td, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
+
import { u as ce } from "./supplier-CObCSfot.js";
|
|
3
|
+
import { D as td, R as ye } from "./row-action.enum-BcW_L_nE.js";
|
|
4
|
+
import { c as Yd, _ as Xd, F as ve } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
5
|
+
import { c as we, a as ke, h as rd, i as nd, d as Zd, n as Ad, u as Pe } from "./app-EpEEb8EO.js";
|
|
6
|
+
import { useI18n as ee, useCoreStore as Ce } from "@feedmepos/mf-common";
|
|
7
|
+
import { u as Ve } from "./netsuite-CnhAKyAO.js";
|
|
8
|
+
import { useDialog as Ne, useSnackbar as Se, useProxiedModel as od, useDialogChild as qd, useBreakpoints as zd } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as Jd, _ as Qd } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
|
|
10
|
+
import { F as B } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
|
+
import { R as Z, g as et } from "./rules-DKklsaS1.js";
|
|
12
|
+
import { a as dt } from "./FmMultiselectDialog-BasrjBFA.js";
|
|
13
|
+
import { _ as tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
+
import { _ as rt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js";
|
|
15
|
+
import { u as xe } from "./feature-C95Hao53.js";
|
|
16
|
+
import { u as nt } from "./purchase-order-template-CBIpWdEW.js";
|
|
17
|
+
import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js";
|
|
18
|
+
import { defineStore as at } from "pinia";
|
|
19
|
+
import { b as Rd, d as Md, s as it, r as $t } from "./xlsx.util-Cr9DpDFb.js";
|
|
20
|
+
import { f as lt } from "./date2-Dnc8Y81g.js";
|
|
21
|
+
import { F as st } from "./FmDroppableField-J0xUsOTV.js";
|
|
10
22
|
function ut(e, d) {
|
|
11
|
-
const { t } = ee(), r =
|
|
23
|
+
const { t } = ee(), r = Ve();
|
|
12
24
|
function n(o, l) {
|
|
13
25
|
if (o === ye.Edit) {
|
|
14
26
|
e(we(l));
|
|
@@ -83,7 +95,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
83
95
|
}),
|
|
84
96
|
emits: ["update:modelValue", "update:autoAppendToTemplates"],
|
|
85
97
|
setup(e) {
|
|
86
|
-
const d =
|
|
98
|
+
const d = Ce(), t = ke(), r = E(() => t.skus), n = Ne(), { t: i } = ee(), o = ed(e, "modelValue");
|
|
87
99
|
ed(e, "autoAppendToTemplates");
|
|
88
100
|
function l() {
|
|
89
101
|
var N;
|
|
@@ -94,13 +106,13 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
94
106
|
})), y = ((N = o.value) == null ? void 0 : N.map((f) => f.skuId)) ?? [], g = E(
|
|
95
107
|
() => {
|
|
96
108
|
var f;
|
|
97
|
-
return ((f =
|
|
109
|
+
return ((f = Zd(d.currentCountry.value)) == null ? void 0 : f.currency) ?? "MYR";
|
|
98
110
|
}
|
|
99
111
|
);
|
|
100
112
|
n.open({
|
|
101
113
|
title: i("inventory.supplier.supplyItems.selectItem"),
|
|
102
114
|
closeButton: !0,
|
|
103
|
-
contentComponent:
|
|
115
|
+
contentComponent: dt,
|
|
104
116
|
contentComponentProps: {
|
|
105
117
|
modelValue: y,
|
|
106
118
|
items: c
|
|
@@ -166,12 +178,12 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
166
178
|
o.value = N;
|
|
167
179
|
}
|
|
168
180
|
return (c, y) => {
|
|
169
|
-
const g =
|
|
181
|
+
const g = D("FmButton");
|
|
170
182
|
return S(), w("div", ct, [
|
|
171
183
|
h("div", pt, [
|
|
172
184
|
h("div", ft, [
|
|
173
185
|
h("div", mt, [
|
|
174
|
-
C(
|
|
186
|
+
C(tt, { "z-index": 50 }, {
|
|
175
187
|
default: U(() => [
|
|
176
188
|
h("div", yt, A(p(i)("inventory.supplier.supplyItems.title")), 1)
|
|
177
189
|
]),
|
|
@@ -204,7 +216,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
204
216
|
]),
|
|
205
217
|
h("div", Ct, [
|
|
206
218
|
h("div", Nt, [
|
|
207
|
-
C(
|
|
219
|
+
C(rt, {
|
|
208
220
|
"model-value": v(N),
|
|
209
221
|
unit: u(N),
|
|
210
222
|
"onUpdate:modelValue": (T) => m(N, T),
|
|
@@ -237,10 +249,10 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
237
249
|
]);
|
|
238
250
|
};
|
|
239
251
|
}
|
|
240
|
-
}), Et = { class: "flex flex-col gap-40" }, It = { class: "flex flex-col gap-16" }, Ot = { key: 0 }, Ft = { class: "flex flex-col gap-8" }, wt = { class: "fm-typo-en-title-sm-800" }, Tt = { class: "grid grid-cols-2 gap-24" }, At = { class: "flex flex-col gap-8" }, Rt = { class: "fm-typo-en-title-sm-800" }, Mt = { class: "flex flex-col gap-16" },
|
|
252
|
+
}), Et = { class: "flex flex-col gap-40" }, It = { class: "flex flex-col gap-16" }, Ot = { key: 0 }, Ft = { class: "flex flex-col gap-8" }, wt = { class: "fm-typo-en-title-sm-800" }, Tt = { class: "grid grid-cols-2 gap-24" }, At = { class: "flex flex-col gap-8" }, Rt = { class: "fm-typo-en-title-sm-800" }, Mt = { class: "flex flex-col gap-16" }, Dt = {
|
|
241
253
|
key: 0,
|
|
242
254
|
class: "flex flex-col gap-8"
|
|
243
|
-
},
|
|
255
|
+
}, Lt = { class: "fm-typo-en-title-sm-800" }, kt = { class: "flex flex-col gap-16" }, Vt = {
|
|
244
256
|
key: 1,
|
|
245
257
|
class: "flex flex-col gap-8"
|
|
246
258
|
}, Ut = /* @__PURE__ */ ie({
|
|
@@ -251,7 +263,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
251
263
|
},
|
|
252
264
|
emits: ["update:modelValue", "validation-success"],
|
|
253
265
|
setup(e, { expose: d, emit: t }) {
|
|
254
|
-
const r = e, n = t, i =
|
|
266
|
+
const r = e, n = t, i = xe(), o = ke(), l = E(() => Ad(o.skus, "_id")), { t: s } = ee(), u = Pe(), v = E(
|
|
255
267
|
() => u.businessLevel || i.businessSupplierOnly
|
|
256
268
|
), m = E({
|
|
257
269
|
get() {
|
|
@@ -356,7 +368,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
356
368
|
unit: "day"
|
|
357
369
|
}, n("update:modelValue", a);
|
|
358
370
|
}
|
|
359
|
-
}), { enabledCountries: Y, currentCountry: X } =
|
|
371
|
+
}), { enabledCountries: Y, currentCountry: X } = Ce(), te = E({
|
|
360
372
|
get() {
|
|
361
373
|
var $;
|
|
362
374
|
return (($ = r.modelValue) == null ? void 0 : $.email) ?? "";
|
|
@@ -389,7 +401,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
389
401
|
(a = ($ = x.value) == null ? void 0 : $.resetInputs) == null || a.call($);
|
|
390
402
|
}
|
|
391
403
|
}), ($, a) => {
|
|
392
|
-
const H =
|
|
404
|
+
const H = D("FmChip"), I = D("FmTextField"), R = D("FmPhoneNumber"), de = D("FmPill"), M = D("FmForm");
|
|
393
405
|
return S(), z(M, {
|
|
394
406
|
ref_key: "formRef",
|
|
395
407
|
ref: x,
|
|
@@ -503,8 +515,8 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
503
515
|
}, null, 8, ["disabled", "label", "modelValue"])
|
|
504
516
|
])
|
|
505
517
|
]),
|
|
506
|
-
p(i).enableSupplierPreparationTime ? (S(), w("div",
|
|
507
|
-
h("div",
|
|
518
|
+
p(i).enableSupplierPreparationTime ? (S(), w("div", Dt, [
|
|
519
|
+
h("div", Lt, [
|
|
508
520
|
wd(A(p(s)("inventory.supplier.delivery.title")) + " ", 1),
|
|
509
521
|
C(de, { variant: "beta" })
|
|
510
522
|
]),
|
|
@@ -542,7 +554,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
542
554
|
},
|
|
543
555
|
emits: ["update:show", "submitted"],
|
|
544
556
|
setup(e, { expose: d, emit: t }) {
|
|
545
|
-
const r =
|
|
557
|
+
const r = Ve(), n = e, i = t, o = k(!1), l = Se(), s = Ne(), { t: u } = ee(), v = ce(), m = nt(), c = ke(), y = k(!1), g = E(() => {
|
|
546
558
|
switch (n.mode) {
|
|
547
559
|
case B.READ:
|
|
548
560
|
return "";
|
|
@@ -698,7 +710,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
698
710
|
var $e;
|
|
699
711
|
const re = {
|
|
700
712
|
amount: 1,
|
|
701
|
-
precision:
|
|
713
|
+
precision: et(K.unit)
|
|
702
714
|
};
|
|
703
715
|
return {
|
|
704
716
|
sku: K,
|
|
@@ -727,7 +739,7 @@ const ct = { class: "flex flex-col gap-12" }, pt = { class: "flex flex-col" }, f
|
|
|
727
739
|
}
|
|
728
740
|
}
|
|
729
741
|
return (_, x) => {
|
|
730
|
-
const $ =
|
|
742
|
+
const $ = D("FmLabel"), a = D("FmField"), H = D("FmButton"), I = D("FmSideSheet");
|
|
731
743
|
return S(), z(I, {
|
|
732
744
|
header: g.value,
|
|
733
745
|
modelValue: p(O),
|
|
@@ -799,7 +811,7 @@ function Zt(e, d) {
|
|
|
799
811
|
e.prototype = Object.create(d && d.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), d && se(e, d);
|
|
800
812
|
}
|
|
801
813
|
function qt(e) {
|
|
802
|
-
var d =
|
|
814
|
+
var d = Ld();
|
|
803
815
|
return function() {
|
|
804
816
|
var r = ue(e), n;
|
|
805
817
|
if (d) {
|
|
@@ -815,9 +827,9 @@ function zt(e, d) {
|
|
|
815
827
|
return d;
|
|
816
828
|
if (d !== void 0)
|
|
817
829
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
818
|
-
return
|
|
830
|
+
return Dd(e);
|
|
819
831
|
}
|
|
820
|
-
function
|
|
832
|
+
function Dd(e) {
|
|
821
833
|
if (e === void 0)
|
|
822
834
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
823
835
|
return e;
|
|
@@ -839,14 +851,14 @@ function Ae(e) {
|
|
|
839
851
|
}, Ae(e);
|
|
840
852
|
}
|
|
841
853
|
function ge(e, d, t) {
|
|
842
|
-
return
|
|
854
|
+
return Ld() ? ge = Reflect.construct : ge = function(n, i, o) {
|
|
843
855
|
var l = [null];
|
|
844
856
|
l.push.apply(l, i);
|
|
845
857
|
var s = Function.bind.apply(n, l), u = new s();
|
|
846
858
|
return o && se(u, o.prototype), u;
|
|
847
859
|
}, ge.apply(null, arguments);
|
|
848
860
|
}
|
|
849
|
-
function
|
|
861
|
+
function Ld() {
|
|
850
862
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
851
863
|
if (typeof Proxy == "function") return !0;
|
|
852
864
|
try {
|
|
@@ -874,7 +886,7 @@ var q = /* @__PURE__ */ function(e) {
|
|
|
874
886
|
var d = qt(t);
|
|
875
887
|
function t(r) {
|
|
876
888
|
var n;
|
|
877
|
-
return Xt(this, t), n = d.call(this, r), Object.setPrototypeOf(
|
|
889
|
+
return Xt(this, t), n = d.call(this, r), Object.setPrototypeOf(Dd(n), t.prototype), n.name = n.constructor.name, n;
|
|
878
890
|
}
|
|
879
891
|
return Yt(t);
|
|
880
892
|
}(/* @__PURE__ */ Ae(Error)), Ue = 2, Qt = 17, er = 3, G = "0-90-9٠-٩۰-۹", dr = "-‐-―−ー-", tr = "//", rr = "..", nr = " ", or = "()()[]\\[\\]", ar = "~⁓∼~", be = "".concat(dr).concat(tr).concat(rr).concat(nr).concat(or).concat(ar), Be = "++";
|
|
@@ -914,7 +926,7 @@ function $r(e, d) {
|
|
|
914
926
|
function Ie(e, d, t) {
|
|
915
927
|
return d && $r(e.prototype, d), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
916
928
|
}
|
|
917
|
-
var lr = "1.2.0", sr = "1.7.35", id = " ext. ", ur = /^\d+$/,
|
|
929
|
+
var lr = "1.2.0", sr = "1.7.35", id = " ext. ", ur = /^\d+$/, L = /* @__PURE__ */ function() {
|
|
918
930
|
function e(d) {
|
|
919
931
|
Ee(this, e), mr(d), this.metadata = d, kd.call(this, d);
|
|
920
932
|
}
|
|
@@ -1334,7 +1346,7 @@ var yr = function(d) {
|
|
|
1334
1346
|
return Re(d);
|
|
1335
1347
|
};
|
|
1336
1348
|
function Ge(e, d) {
|
|
1337
|
-
if (d = new
|
|
1349
|
+
if (d = new L(d), d.hasCountry(e))
|
|
1338
1350
|
return d.country(e).countryCallingCode();
|
|
1339
1351
|
throw new Error("Unknown country: ".concat(e));
|
|
1340
1352
|
}
|
|
@@ -1501,7 +1513,7 @@ function Tr(e, d, t) {
|
|
|
1501
1513
|
return o === i ? "IS_POSSIBLE" : o > i ? "TOO_SHORT" : n[n.length - 1] < i ? "TOO_LONG" : n.indexOf(i, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
|
|
1502
1514
|
}
|
|
1503
1515
|
function Ar(e, d, t) {
|
|
1504
|
-
if (d === void 0 && (d = {}), t = new
|
|
1516
|
+
if (d === void 0 && (d = {}), t = new L(t), d.v2) {
|
|
1505
1517
|
if (!e.countryCallingCode)
|
|
1506
1518
|
throw new Error("Invalid phone number object passed");
|
|
1507
1519
|
t.selectNumberingPlan(e.countryCallingCode);
|
|
@@ -1562,15 +1574,15 @@ function pd(e, d) {
|
|
|
1562
1574
|
r[t] = e[t];
|
|
1563
1575
|
return r;
|
|
1564
1576
|
}
|
|
1565
|
-
var
|
|
1577
|
+
var Dr = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
|
|
1566
1578
|
function je(e, d, t) {
|
|
1567
1579
|
if (d = d || {}, !(!e.country && !e.countryCallingCode)) {
|
|
1568
|
-
t = new
|
|
1580
|
+
t = new L(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
|
|
1569
1581
|
var r = d.v2 ? e.nationalNumber : e.phone;
|
|
1570
1582
|
if (J(r, t.nationalNumberPattern())) {
|
|
1571
1583
|
if (Oe(r, "FIXED_LINE", t))
|
|
1572
1584
|
return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || Oe(r, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
|
|
1573
|
-
for (var n = Rr(
|
|
1585
|
+
for (var n = Rr(Dr), i; !(i = n()).done; ) {
|
|
1574
1586
|
var o = i.value;
|
|
1575
1587
|
if (Oe(r, o, t))
|
|
1576
1588
|
return o;
|
|
@@ -1581,20 +1593,20 @@ function je(e, d, t) {
|
|
|
1581
1593
|
function Oe(e, d, t) {
|
|
1582
1594
|
return d = t.type(d), !d || !d.pattern() || d.possibleLengths() && d.possibleLengths().indexOf(e.length) < 0 ? !1 : J(e, d.pattern());
|
|
1583
1595
|
}
|
|
1584
|
-
function
|
|
1585
|
-
if (d = d || {}, t = new
|
|
1596
|
+
function Lr(e, d, t) {
|
|
1597
|
+
if (d = d || {}, t = new L(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
|
|
1586
1598
|
return je(e, d, t.metadata) !== void 0;
|
|
1587
1599
|
var r = d.v2 ? e.nationalNumber : e.phone;
|
|
1588
1600
|
return J(r, t.nationalNumberPattern());
|
|
1589
1601
|
}
|
|
1590
1602
|
function kr(e, d, t) {
|
|
1591
|
-
var r = new
|
|
1603
|
+
var r = new L(t), n = r.getCountryCodesForCallingCode(e);
|
|
1592
1604
|
return n ? n.filter(function(i) {
|
|
1593
1605
|
return Vr(d, i, t);
|
|
1594
1606
|
}) : [];
|
|
1595
1607
|
}
|
|
1596
1608
|
function Vr(e, d, t) {
|
|
1597
|
-
var r = new
|
|
1609
|
+
var r = new L(t);
|
|
1598
1610
|
return r.selectNumberingPlan(d), r.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
|
|
1599
1611
|
}
|
|
1600
1612
|
function Ur(e) {
|
|
@@ -1622,7 +1634,7 @@ function Gr(e, d, t) {
|
|
|
1622
1634
|
}
|
|
1623
1635
|
var Hr = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
|
|
1624
1636
|
function jr(e, d, t) {
|
|
1625
|
-
var r = new
|
|
1637
|
+
var r = new L(t);
|
|
1626
1638
|
if (r.selectNumberingPlan(e, d), r.defaultIDDPrefix())
|
|
1627
1639
|
return r.defaultIDDPrefix();
|
|
1628
1640
|
if (Hr.test(r.IDDPrefix()))
|
|
@@ -1693,7 +1705,7 @@ var vd = {
|
|
|
1693
1705
|
}
|
|
1694
1706
|
};
|
|
1695
1707
|
function Zr(e, d, t, r) {
|
|
1696
|
-
if (t ? t = yd(yd({}, vd), t) : t = vd, r = new
|
|
1708
|
+
if (t ? t = yd(yd({}, vd), t) : t = vd, r = new L(r), e.country && e.country !== "001") {
|
|
1697
1709
|
if (!r.hasCountry(e.country))
|
|
1698
1710
|
throw new Error("Unknown country: ".concat(e.country));
|
|
1699
1711
|
r.country(e.country);
|
|
@@ -1826,14 +1838,14 @@ var t0 = /* @__PURE__ */ function() {
|
|
|
1826
1838
|
}, {
|
|
1827
1839
|
key: "isValid",
|
|
1828
1840
|
value: function() {
|
|
1829
|
-
return
|
|
1841
|
+
return Lr(this, {
|
|
1830
1842
|
v2: !0
|
|
1831
1843
|
}, this.getMetadata());
|
|
1832
1844
|
}
|
|
1833
1845
|
}, {
|
|
1834
1846
|
key: "isNonGeographic",
|
|
1835
1847
|
value: function() {
|
|
1836
|
-
var t = new
|
|
1848
|
+
var t = new L(this.getMetadata());
|
|
1837
1849
|
return t.isNonGeographicCallingCode(this.countryCallingCode);
|
|
1838
1850
|
}
|
|
1839
1851
|
}, {
|
|
@@ -1891,7 +1903,7 @@ var t0 = /* @__PURE__ */ function() {
|
|
|
1891
1903
|
return /^[A-Z]{2}$/.test(d);
|
|
1892
1904
|
};
|
|
1893
1905
|
function n0(e, d) {
|
|
1894
|
-
var t, r, n = new
|
|
1906
|
+
var t, r, n = new L(d);
|
|
1895
1907
|
return r0(e) ? (t = e, n.selectNumberingPlan(t), r = n.countryCallingCode()) : r = e, {
|
|
1896
1908
|
country: t,
|
|
1897
1909
|
countryCallingCode: r
|
|
@@ -1900,7 +1912,7 @@ function n0(e, d) {
|
|
|
1900
1912
|
var o0 = new RegExp("([" + G + "])");
|
|
1901
1913
|
function a0(e, d, t, r) {
|
|
1902
1914
|
if (d) {
|
|
1903
|
-
var n = new
|
|
1915
|
+
var n = new L(r);
|
|
1904
1916
|
n.selectNumberingPlan(d, t);
|
|
1905
1917
|
var i = new RegExp(n.IDDPrefix());
|
|
1906
1918
|
if (e.search(i) === 0) {
|
|
@@ -1971,7 +1983,7 @@ function l0(e, d) {
|
|
|
1971
1983
|
function s0(e, d, t, r) {
|
|
1972
1984
|
var n = d ? Ge(d, r) : t;
|
|
1973
1985
|
if (e.indexOf(n) === 0) {
|
|
1974
|
-
r = new
|
|
1986
|
+
r = new L(r), r.selectNumberingPlan(d, t);
|
|
1975
1987
|
var i = e.slice(n.length), o = Me(i, r), l = o.nationalNumber, s = Me(e, r), u = s.nationalNumber;
|
|
1976
1988
|
if (!J(u, r.nationalNumberPattern()) && J(l, r.nationalNumberPattern()) || He(u, r) === "TOO_LONG")
|
|
1977
1989
|
return {
|
|
@@ -2010,7 +2022,7 @@ function u0(e, d, t, r) {
|
|
|
2010
2022
|
}
|
|
2011
2023
|
if (e[1] === "0")
|
|
2012
2024
|
return {};
|
|
2013
|
-
r = new
|
|
2025
|
+
r = new L(r);
|
|
2014
2026
|
for (var u = 2; u - 1 <= er && u <= e.length; ) {
|
|
2015
2027
|
var v = e.slice(1, u);
|
|
2016
2028
|
if (r.hasCallingCode(v))
|
|
@@ -2052,7 +2064,7 @@ function bd(e, d) {
|
|
|
2052
2064
|
}
|
|
2053
2065
|
function f0(e, d) {
|
|
2054
2066
|
var t = d.countries, r = d.metadata;
|
|
2055
|
-
r = new
|
|
2067
|
+
r = new L(r);
|
|
2056
2068
|
for (var n = c0(t), i; !(i = n()).done; ) {
|
|
2057
2069
|
var o = i.value;
|
|
2058
2070
|
if (r.country(o), r.leadingDigits()) {
|
|
@@ -2074,12 +2086,12 @@ function m0(e, d) {
|
|
|
2074
2086
|
metadata: n.metadata
|
|
2075
2087
|
});
|
|
2076
2088
|
}
|
|
2077
|
-
var Bd = "+", y0 = "[\\-\\.\\(\\)]?", _d = "([" + G + "]|" + y0 + ")", v0 = "^\\" + Bd + _d + "*[" + G + "]" + _d + "*$", g0 = new RegExp(v0, "g"),
|
|
2089
|
+
var Bd = "+", y0 = "[\\-\\.\\(\\)]?", _d = "([" + G + "]|" + y0 + ")", v0 = "^\\" + Bd + _d + "*[" + G + "]" + _d + "*$", g0 = new RegExp(v0, "g"), De = G, h0 = "[" + De + "]+((\\-)*[" + De + "])*", b0 = "a-zA-Z", _0 = "[" + b0 + "]+((\\-)*[" + De + "])*", P0 = "^(" + h0 + "\\.)*" + _0 + "\\.?$", C0 = new RegExp(P0, "g"), Pd = "tel:", Le = ";phone-context=", N0 = ";isub=";
|
|
2078
2090
|
function S0(e) {
|
|
2079
|
-
var d = e.indexOf(
|
|
2091
|
+
var d = e.indexOf(Le);
|
|
2080
2092
|
if (d < 0)
|
|
2081
2093
|
return null;
|
|
2082
|
-
var t = d +
|
|
2094
|
+
var t = d + Le.length;
|
|
2083
2095
|
if (t >= e.length)
|
|
2084
2096
|
return "";
|
|
2085
2097
|
var r = e.indexOf(";", t);
|
|
@@ -2099,7 +2111,7 @@ function E0(e, d) {
|
|
|
2099
2111
|
n = "", r.charAt(0) === Bd && (n += r);
|
|
2100
2112
|
var i = e.indexOf(Pd), o;
|
|
2101
2113
|
i >= 0 ? o = i + Pd.length : o = 0;
|
|
2102
|
-
var l = e.indexOf(
|
|
2114
|
+
var l = e.indexOf(Le);
|
|
2103
2115
|
n += e.substring(o, l);
|
|
2104
2116
|
}
|
|
2105
2117
|
var s = n.indexOf(N0);
|
|
@@ -2108,7 +2120,7 @@ function E0(e, d) {
|
|
|
2108
2120
|
}
|
|
2109
2121
|
var I0 = 250, O0 = new RegExp("[" + Be + G + "]"), F0 = new RegExp("[^" + G + "#]+$");
|
|
2110
2122
|
function w0(e, d, t) {
|
|
2111
|
-
if (d = d || {}, t = new
|
|
2123
|
+
if (d = d || {}, t = new L(t), d.defaultCountry && !t.hasCountry(d.defaultCountry))
|
|
2112
2124
|
throw d.v2 ? new q("INVALID_COUNTRY") : new Error("Unknown country: ".concat(d.defaultCountry));
|
|
2113
2125
|
var r = A0(e, d.v2, d.extract), n = r.number, i = r.ext, o = r.error;
|
|
2114
2126
|
if (!n) {
|
|
@@ -2224,17 +2236,17 @@ function Nd(e) {
|
|
|
2224
2236
|
for (var d = 1; d < arguments.length; d++) {
|
|
2225
2237
|
var t = arguments[d] != null ? arguments[d] : {};
|
|
2226
2238
|
d % 2 ? Cd(Object(t), !0).forEach(function(r) {
|
|
2227
|
-
|
|
2239
|
+
D0(e, r, t[r]);
|
|
2228
2240
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Cd(Object(t)).forEach(function(r) {
|
|
2229
2241
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
2230
2242
|
});
|
|
2231
2243
|
}
|
|
2232
2244
|
return e;
|
|
2233
2245
|
}
|
|
2234
|
-
function
|
|
2246
|
+
function D0(e, d, t) {
|
|
2235
2247
|
return d in e ? Object.defineProperty(e, d, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[d] = t, e;
|
|
2236
2248
|
}
|
|
2237
|
-
function
|
|
2249
|
+
function L0(e, d, t) {
|
|
2238
2250
|
return w0(e, Nd(Nd({}, d), {}, {
|
|
2239
2251
|
v2: !0
|
|
2240
2252
|
}), t);
|
|
@@ -2353,7 +2365,7 @@ function Y0(e, d, t) {
|
|
|
2353
2365
|
defaultCountry: void 0
|
|
2354
2366
|
}));
|
|
2355
2367
|
try {
|
|
2356
|
-
return
|
|
2368
|
+
return L0(e, d, t);
|
|
2357
2369
|
} catch (r) {
|
|
2358
2370
|
if (!(r instanceof q)) throw r;
|
|
2359
2371
|
}
|
|
@@ -2474,18 +2486,18 @@ function z0() {
|
|
|
2474
2486
|
];
|
|
2475
2487
|
}
|
|
2476
2488
|
function J0() {
|
|
2477
|
-
const e = Pe(), d = ce(), t =
|
|
2489
|
+
const e = Pe(), d = ce(), t = xe(), n = (e.businessLevel || t.businessSupplierOnly ? d.businessSuppliers : d.locationSuppliers).map(q0), o = Ce().currentBusiness.value, l = Gd(), s = [
|
|
2478
2490
|
["Business name:", o == null ? void 0 : o.name],
|
|
2479
2491
|
["Business ID:", o == null ? void 0 : o._id],
|
|
2480
2492
|
["Menu version", o == null ? void 0 : o.menuVersion],
|
|
2481
2493
|
[],
|
|
2482
2494
|
l.map((c) => c.name),
|
|
2483
2495
|
...n.map((c) => l.map((y) => c[y.id]))
|
|
2484
|
-
], u = l.map((c) => `system:${c.id}`), v = Rd(s, u), m = `${o == null ? void 0 : o.name} suppliers (${
|
|
2496
|
+
], u = l.map((c) => `system:${c.id}`), v = Rd(s, u), m = `${o == null ? void 0 : o.name} suppliers (${lt(/* @__PURE__ */ new Date())}).xlsx`;
|
|
2485
2497
|
return Md(v, m), m;
|
|
2486
2498
|
}
|
|
2487
2499
|
function Q0() {
|
|
2488
|
-
const d =
|
|
2500
|
+
const d = Ce().currentBusiness.value, t = Gd(), r = [
|
|
2489
2501
|
["Business name:", d == null ? void 0 : d.name],
|
|
2490
2502
|
["Business ID:", d == null ? void 0 : d._id],
|
|
2491
2503
|
["Menu version", d == null ? void 0 : d.menuVersion],
|
|
@@ -2503,7 +2515,7 @@ function e1(e) {
|
|
|
2503
2515
|
i,
|
|
2504
2516
|
o,
|
|
2505
2517
|
...l
|
|
2506
|
-
] =
|
|
2518
|
+
] = it(e);
|
|
2507
2519
|
if (!d || !d.length || d.some((c) => c.length && !c.startsWith("system:")))
|
|
2508
2520
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
2509
2521
|
const s = d.map((c) => c.split(":")[1]), v = [
|
|
@@ -2561,7 +2573,7 @@ function Od(e, d) {
|
|
|
2561
2573
|
}
|
|
2562
2574
|
function d1(e) {
|
|
2563
2575
|
try {
|
|
2564
|
-
const d = e1(e).filter((m) => m.data.name), t = Pe(), r = ce(), n =
|
|
2576
|
+
const d = e1(e).filter((m) => m.data.name), t = Pe(), r = ce(), n = xe(), i = t.businessLevel || n.businessSupplierOnly ? r.businessSuppliers : r.locationSuppliers, o = Ad(i, "_id"), l = d.filter((m) => !m.data.id), s = d.filter((m) => m.data.id), u = l.map((m) => Od(m.data, m.index)), v = s.map((m) => {
|
|
2565
2577
|
const c = Od(m.data, m.index), y = o[m.data.id];
|
|
2566
2578
|
if (!y)
|
|
2567
2579
|
return {
|
|
@@ -2626,7 +2638,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2626
2638
|
setup(e) {
|
|
2627
2639
|
const { t: d } = ee();
|
|
2628
2640
|
return (t, r) => {
|
|
2629
|
-
const n =
|
|
2641
|
+
const n = D("FmIcon"), i = D("FmTooltip");
|
|
2630
2642
|
return S(), w("div", t1, [
|
|
2631
2643
|
r[0] || (r[0] = h("div", null, "•", -1)),
|
|
2632
2644
|
h("div", r1, [
|
|
@@ -2685,7 +2697,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2685
2697
|
}, v1 = { class: "fm-typo-en-body-lg-600" }, g1 = /* @__PURE__ */ ie({
|
|
2686
2698
|
__name: "SupplierImport",
|
|
2687
2699
|
setup(e) {
|
|
2688
|
-
const d = k(null), t =
|
|
2700
|
+
const d = k(null), t = qd(), r = Se(), n = k(!1), i = k(!1), o = k(new Array()), l = k([]), s = k([]), u = E(
|
|
2689
2701
|
() => !!o.value.length || l.value.some((y) => y.errors.length) || s.value.some((y) => y.errors.length)
|
|
2690
2702
|
), v = E(
|
|
2691
2703
|
() => !!l.value.length || !!s.value.length
|
|
@@ -2695,7 +2707,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2695
2707
|
try {
|
|
2696
2708
|
n.value = !0;
|
|
2697
2709
|
const [g] = await Promise.all([
|
|
2698
|
-
|
|
2710
|
+
$t(y),
|
|
2699
2711
|
// fake buffer
|
|
2700
2712
|
new Promise((O) => setTimeout(O, 1e3))
|
|
2701
2713
|
]), N = g.SheetNames.find((O) => O);
|
|
@@ -2731,7 +2743,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2731
2743
|
return Td(d, (y) => {
|
|
2732
2744
|
y && c(y);
|
|
2733
2745
|
}), (y, g) => {
|
|
2734
|
-
const N =
|
|
2746
|
+
const N = D("FmCircularProgress"), f = D("FmIcon"), O = D("FmButton");
|
|
2735
2747
|
return S(), w("div", i1, [
|
|
2736
2748
|
h("div", $1, A(p(m)("inventory.supplier.import.message")), 1),
|
|
2737
2749
|
i.value ? (S(), w("div", l1, [
|
|
@@ -2743,7 +2755,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2743
2755
|
]),
|
|
2744
2756
|
h("div", s1, A(p(m)("inventory.formField.loading")), 1)
|
|
2745
2757
|
])) : (S(), w(oe, { key: 1 }, [
|
|
2746
|
-
C(
|
|
2758
|
+
C(st, {
|
|
2747
2759
|
class: ae({
|
|
2748
2760
|
"w-full": !0,
|
|
2749
2761
|
"h-[200px]": !d.value
|
|
@@ -2836,8 +2848,8 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2836
2848
|
]);
|
|
2837
2849
|
};
|
|
2838
2850
|
}
|
|
2839
|
-
}), h1 =
|
|
2840
|
-
const e = ce(), d =
|
|
2851
|
+
}), h1 = at("supplierActions", function() {
|
|
2852
|
+
const e = ce(), d = Ne(), { t } = ee(), r = Se();
|
|
2841
2853
|
function n() {
|
|
2842
2854
|
d.open({
|
|
2843
2855
|
title: t("inventory.supplier.import.title"),
|
|
@@ -2930,10 +2942,10 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
2930
2942
|
}), b1 = { class: "flex flex-col py-8" }, _1 = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, P1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, C1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, N1 = {
|
|
2931
2943
|
key: 0,
|
|
2932
2944
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
2933
|
-
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.",
|
|
2945
|
+
}, S1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", Y1 = /* @__PURE__ */ ie({
|
|
2934
2946
|
__name: "SupplierView",
|
|
2935
2947
|
setup(e) {
|
|
2936
|
-
const { importSuppliers: d, exportSuppliers: t } = h1(), r = ce(), n = Pe(), i =
|
|
2948
|
+
const { importSuppliers: d, exportSuppliers: t } = h1(), r = ce(), n = Pe(), i = xe(), o = Ve(), l = k(!1), s = Ne(), u = Se(), { t: v } = ee();
|
|
2937
2949
|
n.watchLocation(c);
|
|
2938
2950
|
const m = E(() => n.businessLevel);
|
|
2939
2951
|
Td(m, c);
|
|
@@ -3020,7 +3032,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3020
3032
|
if ($ === "refresh")
|
|
3021
3033
|
return c();
|
|
3022
3034
|
}
|
|
3023
|
-
const V = k(""), { breakpoints: Y } =
|
|
3035
|
+
const V = k(""), { breakpoints: Y } = zd(), X = E(() => Y.value.xs || Y.value.sm), te = E(() => X.value ? 10 : 20), _ = Jd(), x = E(() => [
|
|
3024
3036
|
{
|
|
3025
3037
|
label: v("inventory.supplier.create.title"),
|
|
3026
3038
|
value: "create",
|
|
@@ -3044,8 +3056,8 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3044
3056
|
}
|
|
3045
3057
|
]);
|
|
3046
3058
|
return ($, a) => {
|
|
3047
|
-
const H =
|
|
3048
|
-
return S(), z(
|
|
3059
|
+
const H = D("FmTable");
|
|
3060
|
+
return S(), z(Qd, {
|
|
3049
3061
|
title: p(v)("inventory.supplier.title"),
|
|
3050
3062
|
actions: x.value,
|
|
3051
3063
|
"onClick:action": T,
|
|
@@ -3061,7 +3073,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3061
3073
|
}
|
|
3062
3074
|
])
|
|
3063
3075
|
}, [
|
|
3064
|
-
C(
|
|
3076
|
+
C(ot, {
|
|
3065
3077
|
searchable: "",
|
|
3066
3078
|
"change-location": !(p(n).businessLevel || p(i).businessSupplierOnly),
|
|
3067
3079
|
search: V.value,
|
|
@@ -3080,7 +3092,7 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3080
3092
|
"page-size": te.value
|
|
3081
3093
|
}, {
|
|
3082
3094
|
"list-row": U((I) => [
|
|
3083
|
-
C(
|
|
3095
|
+
C(Xd, {
|
|
3084
3096
|
row: I,
|
|
3085
3097
|
onRowClick: f
|
|
3086
3098
|
}, {
|
|
@@ -3137,5 +3149,5 @@ const t1 = { class: "flex items-center gap-12 pl-8" }, r1 = { class: "flex flex-
|
|
|
3137
3149
|
}
|
|
3138
3150
|
});
|
|
3139
3151
|
export {
|
|
3140
|
-
|
|
3152
|
+
Y1 as default
|
|
3141
3153
|
};
|