@feedmepos/mf-inventory-portal 0.0.22-dev.3 → 0.0.22-dev.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.vue.d.ts +2 -0
- package/dist/{ApprovalView-BnkFRJgX.js → ApprovalView-BowcCo8d.js} +26 -26
- package/dist/{BindingsDialog-BDzmf8Wr.js → BindingsDialog-CmmLVQTN.js} +1 -1
- package/dist/{BindingsPicker-CRGFd-d8.js → BindingsPicker-BErHbcxb.js} +8 -8
- package/dist/{BindingsTable-BnHju77G.js → BindingsTable-hrfbN6tX.js} +1 -1
- package/dist/ClosingTemplateView-BVefCGpC.js +1072 -0
- package/dist/Entry.vue.d.ts +0 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BRV9dZhu.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js} +8 -8
- package/dist/IngredientsView-BqnUckSv.js +1817 -0
- package/dist/{IntegrationView-UySDEAnh.js → IntegrationView-BEdAKS1I.js} +120 -120
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxy6vo9D.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChrCZc0C.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DsYwNO5N.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-CGxMILW0.js → PurchaseOrderPrintPreview-DzaS_c8R.js} +1 -1
- package/dist/{ReceiveRequestView-BHOC-ZLV.js → ReceiveRequestView-CU-bhIjl.js} +20 -21
- package/dist/RecipeView-CmETsz5e.js +590 -0
- package/dist/{StockView-BcXcQZpl.js → StockView-BgmjwPbh.js} +602 -585
- package/dist/{SupplierView-Bl13ZM-9.js → SupplierView-CDm5q1th.js} +108 -108
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BZJyhJu4.js +858 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-lybenWiw.js +1678 -0
- package/dist/TransferTemplateView-CSQ2XxFU.js +1232 -0
- package/dist/{UnitView-DG8PGv5Y.js → UnitView-D7bcDkOX.js} +6 -6
- package/dist/{WarehouseView-CeS8jrgw.js → WarehouseView-BJAKVdRs.js} +17 -17
- package/dist/api/inventory.d.ts +72 -85
- package/dist/api/netsuite.d.ts +47 -0
- package/dist/api/purchase-order-template.d.ts +0 -4
- package/dist/{app-DYhspC_r.js → app-A8ykBdGf.js} +21877 -20978
- package/dist/app.d.ts +7 -0
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/{decimal-DwEh3AcZ.js → decimal-BC4EGBAX.js} +1 -1
- package/dist/{defineDeepModel-htf7zxRR.js → defineDeepModel-Ckfkwau_.js} +3 -3
- package/dist/{format-time-from-id-1BxShIsX.js → format-time-from-id-o1plVFRH.js} +3 -3
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/{id-to-date-CzSDsYm2.js → id-to-date-DyPIToei.js} +1 -1
- package/dist/purchase-order-transaction-type-skN4AmEj.js +678 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +22 -0
- package/dist/stores/location.d.ts +420 -504
- package/dist/stores/netsuite.d.ts +68 -0
- package/dist/stores/route.d.ts +0 -5
- package/dist/stores/warehouse.d.ts +4 -7
- package/dist/style.css +1 -1
- package/dist/{supplier-DegAxD_n.js → supplier-DV3Tg4TT.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-u_kejm-N.js +85 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1080 -1020
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1080 -1020
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1854 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2329 -286
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2213 -170
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1253 -1457
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +420 -1474
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +230 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
- package/dist/{xlsx-CSS2klUs.js → xlsx-CrHTSBmd.js} +1 -1
- package/dist/{xlsx.util-CeY18XxV.js → xlsx.util-hjzkZFnf.js} +2 -2
- package/package.json +5 -5
- package/dist/ClosingTemplateView-D2EIa9YG.js +0 -1030
- package/dist/IngredientsView-CiUpjKmC.js +0 -1759
- package/dist/RecipeView-lgrm1J9x.js +0 -581
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SXFiNrtm.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DSBEn-Mt.js +0 -1409
- package/dist/TransferTemplateView-C_eqQ9a8.js +0 -1230
- package/dist/array-ClJzD_Lt.js +0 -30
- package/dist/layout/InventoryLayout.vue.d.ts +0 -2
- package/dist/layout/layout-routes.d.ts +0 -6
- package/dist/purchase-order-transaction-type-lwIoC03T.js +0 -712
- package/dist/use-template-enabled-locations-B2ZtZAoX.js +0 -57
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as le, useModel as re, onMounted as ae, ref as P, computed as K, resolveComponent as L, openBlock as F, createElementBlock as B, createElementVNode as u, toDisplayString as I, createVNode as V, createBlock as U, withCtx as D, Fragment as E, renderList as G, normalizeClass as R, normalizeStyle as de, createSlots as ue, unref as w, createCommentVNode as O, withModifiers as ce, reactive as J, watch as Q, isRef as X, Teleport as fe } from "vue";
|
|
2
2
|
import { E as me } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ap as ee, ai as pe, c as q, aq as ge, j as ve } from "./app-A8ykBdGf.js";
|
|
4
4
|
import { useDialogChild as ye, useDialog as te, useProxiedModel as ne, useSnackbar as be, useBreakpoints as he } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as T, useCoreStore as _e } from "@feedmepos/mf-common";
|
|
6
|
-
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Ce, a as xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
|
|
7
7
|
const He = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
8
8
|
function Y(x, v) {
|
|
9
9
|
return ee.filter(x, v).length > 0;
|
|
@@ -20,17 +20,17 @@ function ke(x, v) {
|
|
|
20
20
|
],
|
|
21
21
|
matched: !1
|
|
22
22
|
};
|
|
23
|
-
const [
|
|
23
|
+
const [o] = ee.filter(x.toLocaleLowerCase(), [v], {
|
|
24
24
|
pre: "|",
|
|
25
25
|
post: "|"
|
|
26
26
|
});
|
|
27
|
-
if (!
|
|
27
|
+
if (!o)
|
|
28
28
|
return {
|
|
29
29
|
label: v,
|
|
30
30
|
segments: [{ segment: v, isMatch: !1 }],
|
|
31
31
|
matched: !1
|
|
32
32
|
};
|
|
33
|
-
const g =
|
|
33
|
+
const g = o.string.toString().replace(/\|\|/g, "").split("|").reduce((r, c, M) => (r.push({
|
|
34
34
|
segment: c,
|
|
35
35
|
isMatch: M % 2 !== 0
|
|
36
36
|
//e.g. index 1, 3, 5, ...
|
|
@@ -53,7 +53,7 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
53
53
|
}, Ve = ["data-cy"], Se = { class: "flex flex-col" }, Ae = { class: "fm-typo-en-body-md-400" }, Be = {
|
|
54
54
|
key: 1,
|
|
55
55
|
class: "w-full py-16 text-fm-color-typo-disabled fm-typo-en-body-md-400 text-center"
|
|
56
|
-
},
|
|
56
|
+
}, ie = /* @__PURE__ */ z({
|
|
57
57
|
__name: "FmNestedMultiselectDialog",
|
|
58
58
|
props: /* @__PURE__ */ le({
|
|
59
59
|
modelValue: {}
|
|
@@ -63,9 +63,9 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
63
63
|
}),
|
|
64
64
|
emits: ["update:modelValue"],
|
|
65
65
|
setup(x) {
|
|
66
|
-
const v = re(x, "modelValue"),
|
|
66
|
+
const v = re(x, "modelValue"), o = ye();
|
|
67
67
|
ae(() => {
|
|
68
|
-
|
|
68
|
+
o.emitData(v.value);
|
|
69
69
|
});
|
|
70
70
|
const g = P("");
|
|
71
71
|
function r(e) {
|
|
@@ -191,7 +191,7 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
191
191
|
const t = e.join();
|
|
192
192
|
s(e) ? y.value = y.value.filter((l) => l !== t) : y.value = [...y.value, t];
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function i(e) {
|
|
195
195
|
const t = e.join();
|
|
196
196
|
return y.value.find((l) => t.startsWith(l) && t !== l);
|
|
197
197
|
}
|
|
@@ -199,7 +199,7 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
199
199
|
() => A.value.filter((e) => M(e.keys, v.value) && e.active).length
|
|
200
200
|
);
|
|
201
201
|
function p(e, t, l) {
|
|
202
|
-
v.value = H(e, t, l),
|
|
202
|
+
v.value = H(e, t, l), o.emitData(v.value);
|
|
203
203
|
}
|
|
204
204
|
return (e, t) => {
|
|
205
205
|
const l = L("FmSearch"), d = L("FmCheckbox"), h = L("FmButton"), _ = L("FmListItem"), N = L("FmList");
|
|
@@ -223,7 +223,7 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
223
223
|
key: C.keys.join(),
|
|
224
224
|
class: R([
|
|
225
225
|
"transition-all overflow-y-clip",
|
|
226
|
-
|
|
226
|
+
i(C.keys) ? "max-h-0 opacity-0" : "max-h-[50px] opacity-100"
|
|
227
227
|
]),
|
|
228
228
|
"data-cy": `nested-${C.keys.join("-")}-${C.label}`
|
|
229
229
|
}, [
|
|
@@ -317,16 +317,16 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
317
317
|
},
|
|
318
318
|
emits: ["update:modifiers"],
|
|
319
319
|
setup(x, { emit: v }) {
|
|
320
|
-
const
|
|
321
|
-
const f =
|
|
322
|
-
const H =
|
|
320
|
+
const o = x, g = v, r = te(), c = K(() => {
|
|
321
|
+
const f = o.groups.flatMap((b) => b.items.map((m) => {
|
|
322
|
+
const H = o.items.find((y) => y._id === m._id);
|
|
323
323
|
return {
|
|
324
324
|
...m,
|
|
325
325
|
groupName: b.name,
|
|
326
326
|
name: m.name ?? (H == null ? void 0 : H.name) ?? "-"
|
|
327
327
|
};
|
|
328
328
|
}));
|
|
329
|
-
return
|
|
329
|
+
return o.modifiers.map((b) => {
|
|
330
330
|
const m = f.find((s) => s.selection === b.selection), H = (m == null ? void 0 : m.name) ?? "-", y = (m == null ? void 0 : m.groupName) ?? "";
|
|
331
331
|
return {
|
|
332
332
|
...b,
|
|
@@ -334,20 +334,20 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
334
334
|
groupName: y
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
|
-
}), M = K(() =>
|
|
337
|
+
}), M = K(() => o.groups.flatMap((f) => f.items.map((b) => ({ ...b, groupId: f._id }))));
|
|
338
338
|
function S({ selection: f }) {
|
|
339
339
|
g(
|
|
340
340
|
"update:modifiers",
|
|
341
|
-
|
|
341
|
+
o.modifiers.filter((b) => b.selection !== f)
|
|
342
342
|
);
|
|
343
343
|
}
|
|
344
344
|
function A({ selection: f }, b) {
|
|
345
|
-
const m =
|
|
345
|
+
const m = o.modifiers.find((H) => H.selection === f);
|
|
346
346
|
m && (m.code = b);
|
|
347
347
|
}
|
|
348
348
|
function $() {
|
|
349
349
|
let f = [];
|
|
350
|
-
|
|
350
|
+
o.groups.forEach((m) => {
|
|
351
351
|
let H = !1;
|
|
352
352
|
m.items.every((y) => y._id.startsWith("item")) && (H = !0), f.push({
|
|
353
353
|
label: m.name,
|
|
@@ -356,16 +356,16 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
356
356
|
disabled: H,
|
|
357
357
|
children: m.items.reduce((y, s) => {
|
|
358
358
|
var a;
|
|
359
|
-
const n =
|
|
359
|
+
const n = o.items.find((p) => p._id === s._id), i = (a = n == null ? void 0 : n.variant) == null ? void 0 : a.variantCombinations.find(
|
|
360
360
|
(p) => p.combinationKey === (s == null ? void 0 : s.combinationKey)
|
|
361
361
|
);
|
|
362
362
|
return [
|
|
363
363
|
...y,
|
|
364
364
|
{
|
|
365
|
-
label: `${s.name ?? (n == null ? void 0 : n.name)} ${
|
|
366
|
-
value: `${s.selection}${
|
|
365
|
+
label: `${s.name ?? (n == null ? void 0 : n.name)} ${i ? `(${i.name})` : ""}`,
|
|
366
|
+
value: `${s.selection}${i ? `/${i == null ? void 0 : i.combinationKey}` : ""}`,
|
|
367
367
|
disabled: H,
|
|
368
|
-
active: !!
|
|
368
|
+
active: !!o.modifiers.find(({ selection: p }) => p === s.selection)
|
|
369
369
|
}
|
|
370
370
|
];
|
|
371
371
|
}, [])
|
|
@@ -376,29 +376,29 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
376
376
|
};
|
|
377
377
|
r.open({
|
|
378
378
|
title: "Select Addons",
|
|
379
|
-
contentComponent:
|
|
379
|
+
contentComponent: ie,
|
|
380
380
|
contentComponentProps: b,
|
|
381
381
|
primaryActions: {
|
|
382
382
|
text: "Confirm",
|
|
383
383
|
close: !0
|
|
384
384
|
}
|
|
385
385
|
}).onPrimary((m) => {
|
|
386
|
-
const H = q(
|
|
386
|
+
const H = q(o.modifiers);
|
|
387
387
|
let y = [];
|
|
388
|
-
function s(n,
|
|
389
|
-
if (
|
|
388
|
+
function s(n, i) {
|
|
389
|
+
if (i(n), Z(n))
|
|
390
390
|
for (let a of n.children)
|
|
391
|
-
s(a,
|
|
391
|
+
s(a, i);
|
|
392
392
|
}
|
|
393
393
|
m.forEach((n) => {
|
|
394
|
-
s(n, (
|
|
394
|
+
s(n, (i) => {
|
|
395
395
|
var t;
|
|
396
|
-
if (
|
|
397
|
-
const p = M.value.find(({ selection: l }) => l ===
|
|
398
|
-
!Z(
|
|
396
|
+
if (o.groups.find(({ _id: l }) => l === i.value)) return;
|
|
397
|
+
const p = M.value.find(({ selection: l }) => l === i.value), e = y.find(({ selection: l }) => i.value === l);
|
|
398
|
+
!Z(i) && i.active && e === void 0 && y.push({
|
|
399
399
|
addonGroupId: (p == null ? void 0 : p.groupId) ?? "",
|
|
400
|
-
selection:
|
|
401
|
-
code: ((t = H.find(({ selection: l }) =>
|
|
400
|
+
selection: i.value,
|
|
401
|
+
code: ((t = H.find(({ selection: l }) => i.value === l)) == null ? void 0 : t.code) ?? ""
|
|
402
402
|
});
|
|
403
403
|
});
|
|
404
404
|
}), g("update:modifiers", y);
|
|
@@ -441,8 +441,8 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
441
441
|
"model-value": y.code,
|
|
442
442
|
"onUpdate:modelValue": [(n) => y.code = n, (n) => A(y, n)],
|
|
443
443
|
rules: [
|
|
444
|
-
function(
|
|
445
|
-
return !!
|
|
444
|
+
function(i) {
|
|
445
|
+
return !!i || "Required";
|
|
446
446
|
}
|
|
447
447
|
]
|
|
448
448
|
}, null, 8, ["disabled", "model-value", "onUpdate:modelValue", "rules"])
|
|
@@ -467,11 +467,11 @@ const Me = { class: "flex flex-col gap-12 h-[350px]" }, Fe = { class: "flex item
|
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
function Oe(x, v = []) {
|
|
470
|
-
const
|
|
471
|
-
return Re(
|
|
470
|
+
const o = v.map((r) => x.find((c) => c._id === r)).filter((r) => !!r);
|
|
471
|
+
return Re(o).reduce((r, c) => (r[c.combinationKey] = c.selectionName.join(" / "), r), {});
|
|
472
472
|
}
|
|
473
|
-
function ze(x, v,
|
|
474
|
-
const g =
|
|
473
|
+
function ze(x, v, o) {
|
|
474
|
+
const g = o.reduce((c, M) => {
|
|
475
475
|
var k, f, b;
|
|
476
476
|
const S = M.category || "", A = Oe(v, (k = M.variant) == null ? void 0 : k.variantGroupIds), $ = {
|
|
477
477
|
...M,
|
|
@@ -499,11 +499,11 @@ function ze(x, v, i) {
|
|
|
499
499
|
items: g[c._id || ""] || []
|
|
500
500
|
}));
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function oe(x, v) {
|
|
503
503
|
if (x.length == 1)
|
|
504
504
|
return x[0];
|
|
505
|
-
const
|
|
506
|
-
return
|
|
505
|
+
const o = x[0], g = x.slice(1, x.length), r = oe(g, v);
|
|
506
|
+
return o.reduce((M, S) => [...M, ...r.map((A) => v(S, A))], new Array());
|
|
507
507
|
}
|
|
508
508
|
function Re(x) {
|
|
509
509
|
if (x.length === 0) return [];
|
|
@@ -515,7 +515,7 @@ function Re(x) {
|
|
|
515
515
|
})
|
|
516
516
|
)
|
|
517
517
|
);
|
|
518
|
-
return
|
|
518
|
+
return oe(v, (g, r) => ({
|
|
519
519
|
combinationKey: [...g.combinationKey, ...r.combinationKey],
|
|
520
520
|
selectionName: [...g.selectionName, ...r.selectionName]
|
|
521
521
|
})).map((g) => {
|
|
@@ -559,31 +559,31 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
559
559
|
},
|
|
560
560
|
emits: ["update:bindings"],
|
|
561
561
|
setup(x, { emit: v }) {
|
|
562
|
-
const
|
|
563
|
-
() => ze(M.value,
|
|
562
|
+
const o = x, g = v, r = te(), c = K(() => o.isAddon ? "Addons" : "Products"), M = K(() => o.isAddon ? [] : o.categories), S = K(
|
|
563
|
+
() => ze(M.value, o.variants, o.menus)
|
|
564
564
|
), A = K(() => {
|
|
565
|
-
if (
|
|
566
|
-
return
|
|
567
|
-
const a =
|
|
565
|
+
if (o.isAddon)
|
|
566
|
+
return o.bindings.map((i) => {
|
|
567
|
+
const a = o.menus.find((e) => e._id === i.productId), p = (a == null ? void 0 : a.name) ?? "-";
|
|
568
568
|
return {
|
|
569
|
-
...
|
|
569
|
+
...i,
|
|
570
570
|
name: p,
|
|
571
571
|
itemCode: (a == null ? void 0 : a.code) ?? "-"
|
|
572
572
|
};
|
|
573
573
|
});
|
|
574
|
-
const n = S.value.flatMap((
|
|
575
|
-
return
|
|
574
|
+
const n = S.value.flatMap((i) => i.items);
|
|
575
|
+
return o.bindings.map((i) => {
|
|
576
576
|
var l;
|
|
577
|
-
const a = n.find((d) => d._id ===
|
|
577
|
+
const a = n.find((d) => d._id === i.productId), p = (a == null ? void 0 : a.name) ?? "-";
|
|
578
578
|
let e = (a == null ? void 0 : a.code) ?? "-", t;
|
|
579
|
-
if (
|
|
579
|
+
if (i.combinationKey) {
|
|
580
580
|
const d = (((l = a == null ? void 0 : a.variant) == null ? void 0 : l.variantCombinations) || []).find(
|
|
581
|
-
(h) => h.combinationKey ===
|
|
581
|
+
(h) => h.combinationKey === i.combinationKey
|
|
582
582
|
);
|
|
583
583
|
t = (d == null ? void 0 : d.name) ?? (d == null ? void 0 : d.codeName) ?? "", e = (d == null ? void 0 : d.code) ?? e;
|
|
584
584
|
}
|
|
585
585
|
return {
|
|
586
|
-
...
|
|
586
|
+
...i,
|
|
587
587
|
name: p,
|
|
588
588
|
itemCode: e,
|
|
589
589
|
variantName: t
|
|
@@ -593,14 +593,14 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
593
593
|
function $(n) {
|
|
594
594
|
g(
|
|
595
595
|
"update:bindings",
|
|
596
|
-
|
|
597
|
-
(
|
|
596
|
+
o.bindings.filter(
|
|
597
|
+
(i) => i.productId !== n.productId || i.combinationKey !== n.combinationKey
|
|
598
598
|
)
|
|
599
599
|
);
|
|
600
600
|
}
|
|
601
|
-
function k({ productId: n, combinationKey:
|
|
602
|
-
const p =
|
|
603
|
-
(e) => e.productId === n && e.combinationKey ===
|
|
601
|
+
function k({ productId: n, combinationKey: i }, a) {
|
|
602
|
+
const p = o.bindings.find(
|
|
603
|
+
(e) => e.productId === n && e.combinationKey === i
|
|
604
604
|
);
|
|
605
605
|
p && (p.code = a);
|
|
606
606
|
}
|
|
@@ -610,58 +610,58 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
610
610
|
sublabel: "Category",
|
|
611
611
|
value: n.name,
|
|
612
612
|
disabled: !1,
|
|
613
|
-
children: n.items.map((
|
|
613
|
+
children: n.items.map((i) => {
|
|
614
614
|
var p;
|
|
615
|
-
const a = (p =
|
|
615
|
+
const a = (p = i.variant) == null ? void 0 : p.variantCombinations;
|
|
616
616
|
return a != null && a.length ? {
|
|
617
|
-
label:
|
|
618
|
-
value:
|
|
617
|
+
label: i.name ?? "",
|
|
618
|
+
value: i._id,
|
|
619
619
|
sublabel: "Product",
|
|
620
620
|
children: [
|
|
621
621
|
{
|
|
622
|
-
label:
|
|
622
|
+
label: i.codeName ?? "",
|
|
623
623
|
value: {
|
|
624
|
-
productId:
|
|
624
|
+
productId: i._id
|
|
625
625
|
},
|
|
626
|
-
active: !!
|
|
627
|
-
({ productId: e, combinationKey: t }) =>
|
|
626
|
+
active: !!o.bindings.find(
|
|
627
|
+
({ productId: e, combinationKey: t }) => i._id === e && !t
|
|
628
628
|
)
|
|
629
629
|
},
|
|
630
630
|
...a.map((e) => ({
|
|
631
631
|
label: e.codeName ?? "",
|
|
632
632
|
value: {
|
|
633
|
-
productId:
|
|
633
|
+
productId: i._id,
|
|
634
634
|
combinationKey: e.combinationKey
|
|
635
635
|
},
|
|
636
636
|
sublabel: "Variant",
|
|
637
|
-
active: !!
|
|
638
|
-
({ productId: t, combinationKey: l }) =>
|
|
637
|
+
active: !!o.bindings.find(
|
|
638
|
+
({ productId: t, combinationKey: l }) => i._id === t && e.combinationKey === l
|
|
639
639
|
)
|
|
640
640
|
}))
|
|
641
641
|
]
|
|
642
642
|
} : {
|
|
643
|
-
label:
|
|
643
|
+
label: i.codeName ?? "",
|
|
644
644
|
value: {
|
|
645
|
-
productId:
|
|
645
|
+
productId: i._id
|
|
646
646
|
},
|
|
647
|
-
active: !!
|
|
648
|
-
({ productId: e, combinationKey: t }) =>
|
|
647
|
+
active: !!o.bindings.find(
|
|
648
|
+
({ productId: e, combinationKey: t }) => i._id === e && !t
|
|
649
649
|
)
|
|
650
650
|
};
|
|
651
651
|
})
|
|
652
652
|
}));
|
|
653
653
|
}
|
|
654
654
|
function b() {
|
|
655
|
-
return
|
|
655
|
+
return o.menus.map((n) => ({
|
|
656
656
|
label: n.name,
|
|
657
657
|
value: { productId: n._id },
|
|
658
|
-
active: !!
|
|
659
|
-
({ productId:
|
|
658
|
+
active: !!o.bindings.find(
|
|
659
|
+
({ productId: i, combinationKey: a }) => n._id === i && !a
|
|
660
660
|
)
|
|
661
661
|
}));
|
|
662
662
|
}
|
|
663
663
|
function m(n) {
|
|
664
|
-
const
|
|
664
|
+
const i = q(o.bindings);
|
|
665
665
|
return n.flatMap((a) => a.children.flatMap((p) => {
|
|
666
666
|
var t;
|
|
667
667
|
if (Z(p))
|
|
@@ -671,12 +671,12 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
671
671
|
return h ? {
|
|
672
672
|
productId: d,
|
|
673
673
|
combinationKey: h,
|
|
674
|
-
code: ((_ =
|
|
674
|
+
code: ((_ = i.find(
|
|
675
675
|
({ productId: C, combinationKey: j }) => d === C && h === j
|
|
676
676
|
)) == null ? void 0 : _.code) ?? ""
|
|
677
677
|
} : {
|
|
678
678
|
productId: d,
|
|
679
|
-
code: ((N =
|
|
679
|
+
code: ((N = i.find(({ productId: C, combinationKey: j }) => d === C && !j)) == null ? void 0 : N.code) ?? ""
|
|
680
680
|
};
|
|
681
681
|
});
|
|
682
682
|
if (!p.active)
|
|
@@ -685,44 +685,44 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
685
685
|
return [
|
|
686
686
|
{
|
|
687
687
|
productId: e,
|
|
688
|
-
code: ((t =
|
|
688
|
+
code: ((t = i.find(({ productId: l, combinationKey: d }) => e === l && !d)) == null ? void 0 : t.code) ?? ""
|
|
689
689
|
}
|
|
690
690
|
];
|
|
691
691
|
}));
|
|
692
692
|
}
|
|
693
693
|
function H(n) {
|
|
694
|
-
const
|
|
694
|
+
const i = q(o.bindings);
|
|
695
695
|
return n.filter((a) => a.active).map(
|
|
696
696
|
(a) => {
|
|
697
697
|
var p;
|
|
698
698
|
return {
|
|
699
699
|
productId: a.value.productId,
|
|
700
|
-
code: ((p =
|
|
700
|
+
code: ((p = i.find(({ productId: e }) => e === a.value.productId)) == null ? void 0 : p.code) ?? ""
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
705
|
function y() {
|
|
706
706
|
let n;
|
|
707
|
-
|
|
708
|
-
const
|
|
707
|
+
o.isAddon ? n = b() : n = f();
|
|
708
|
+
const i = {
|
|
709
709
|
modelValue: n
|
|
710
710
|
};
|
|
711
711
|
r.open({
|
|
712
712
|
title: `Select ${c.value}`,
|
|
713
|
-
contentComponent:
|
|
714
|
-
contentComponentProps:
|
|
713
|
+
contentComponent: ie,
|
|
714
|
+
contentComponentProps: i,
|
|
715
715
|
primaryActions: {
|
|
716
716
|
text: "Confirm",
|
|
717
717
|
close: !0
|
|
718
718
|
}
|
|
719
719
|
}).onPrimary((a) => {
|
|
720
720
|
let p;
|
|
721
|
-
|
|
721
|
+
o.isAddon ? p = H(a) : p = m(a), g("update:bindings", p);
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
const { t: s } = T();
|
|
725
|
-
return (n,
|
|
725
|
+
return (n, i) => {
|
|
726
726
|
const a = L("FmButton"), p = L("FmTextField");
|
|
727
727
|
return F(), B("div", Te, [
|
|
728
728
|
u("div", Ge, [
|
|
@@ -733,7 +733,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
733
733
|
size: "md",
|
|
734
734
|
icon: "link",
|
|
735
735
|
label: x.isAddon ? w(s)("inventory.integration.apply.applyAddon") : w(s)("inventory.integration.apply.applyProduct"),
|
|
736
|
-
onClick:
|
|
736
|
+
onClick: i[0] || (i[0] = (e) => y())
|
|
737
737
|
}, null, 8, ["label"])
|
|
738
738
|
]),
|
|
739
739
|
u("div", null, [
|
|
@@ -741,10 +741,10 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
741
741
|
u("tr", Je, [
|
|
742
742
|
u("th", Qe, I(w(s)("inventory.integration.apply.name")), 1),
|
|
743
743
|
u("th", null, I(w(s)("inventory.integration.apply.code")), 1),
|
|
744
|
-
|
|
744
|
+
i[1] || (i[1] = u("th", { class: "w-1" }, " ", -1))
|
|
745
745
|
]),
|
|
746
746
|
(F(!0), B(E, null, G(A.value, (e, t) => (F(), B(E, { key: t }, [
|
|
747
|
-
|
|
747
|
+
i[2] || (i[2] = u("tr", { class: "block h-8" }, null, -1)),
|
|
748
748
|
u("tr", null, [
|
|
749
749
|
u("td", null, [
|
|
750
750
|
u("div", Xe, [
|
|
@@ -780,7 +780,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
780
780
|
]);
|
|
781
781
|
};
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), it = { class: "flex flex-col gap-8 w-full" }, ot = /* @__PURE__ */ z({
|
|
784
784
|
__name: "ApplyProductDialog",
|
|
785
785
|
props: {
|
|
786
786
|
categories: { default: () => [] },
|
|
@@ -793,13 +793,13 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
793
793
|
},
|
|
794
794
|
emits: ["update:setting", "update:show", "submit"],
|
|
795
795
|
setup(x, { emit: v }) {
|
|
796
|
-
const
|
|
797
|
-
Q([() =>
|
|
796
|
+
const o = x, g = v, r = J(q(o.setting));
|
|
797
|
+
Q([() => o.show], ([k]) => {
|
|
798
798
|
if (k)
|
|
799
|
-
for (const f of Object.keys(
|
|
800
|
-
r[f] =
|
|
799
|
+
for (const f of Object.keys(o.setting))
|
|
800
|
+
r[f] = o.setting[f];
|
|
801
801
|
});
|
|
802
|
-
const c = P(), M = ne(
|
|
802
|
+
const c = P(), M = ne(o, "show");
|
|
803
803
|
function S() {
|
|
804
804
|
var k, f;
|
|
805
805
|
(f = (k = c.value) == null ? void 0 : k.validateInputs) == null || f.call(k);
|
|
@@ -819,7 +819,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
819
819
|
"max-width": 500
|
|
820
820
|
}, {
|
|
821
821
|
default: D(() => [
|
|
822
|
-
u("div",
|
|
822
|
+
u("div", it, [
|
|
823
823
|
u("div", null, [
|
|
824
824
|
V(b, { label: "Menu v3" })
|
|
825
825
|
]),
|
|
@@ -873,17 +873,17 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
873
873
|
},
|
|
874
874
|
emits: ["update:setting", "update:show", "submit"],
|
|
875
875
|
setup(x, { emit: v }) {
|
|
876
|
-
const
|
|
877
|
-
Q([() =>
|
|
876
|
+
const o = x, g = v, r = J(q(o.setting));
|
|
877
|
+
Q([() => o.show], ([s]) => {
|
|
878
878
|
if (s)
|
|
879
|
-
for (const n of Object.keys(
|
|
880
|
-
r[n] =
|
|
879
|
+
for (const n of Object.keys(o.setting))
|
|
880
|
+
r[n] = o.setting[n];
|
|
881
881
|
});
|
|
882
|
-
const c = K(() =>
|
|
883
|
-
const n =
|
|
882
|
+
const c = K(() => o.menus.filter((s) => (s == null ? void 0 : s.category) === null)), M = K(() => r.bindings.filter((s) => {
|
|
883
|
+
const n = o.menus.find((i) => i._id === s.productId);
|
|
884
884
|
return n ? (n == null ? void 0 : n.category) === null : !1;
|
|
885
|
-
})), S = K(() =>
|
|
886
|
-
const n =
|
|
885
|
+
})), S = K(() => o.menus.filter((s) => (s == null ? void 0 : s.category) !== null)), A = K(() => r.bindings.filter((s) => {
|
|
886
|
+
const n = o.menus.find((i) => i._id === s.productId);
|
|
887
887
|
return n ? (n == null ? void 0 : n.category) !== null : !1;
|
|
888
888
|
}));
|
|
889
889
|
function $(s) {
|
|
@@ -892,7 +892,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
892
892
|
function k(s) {
|
|
893
893
|
r.bindings = [...A.value, ...s];
|
|
894
894
|
}
|
|
895
|
-
const f = P(), b = ne(
|
|
895
|
+
const f = P(), b = ne(o, "show");
|
|
896
896
|
function m() {
|
|
897
897
|
var s, n;
|
|
898
898
|
(n = (s = f.value) == null ? void 0 : s.validateInputs) == null || n.call(s);
|
|
@@ -902,7 +902,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
902
902
|
}
|
|
903
903
|
const { t: y } = T();
|
|
904
904
|
return (s, n) => {
|
|
905
|
-
const
|
|
905
|
+
const i = L("FmChip"), a = L("FmForm"), p = L("FmButton"), e = L("FmSideSheet");
|
|
906
906
|
return F(), U(e, {
|
|
907
907
|
modelValue: w(b),
|
|
908
908
|
"onUpdate:modelValue": n[4] || (n[4] = (t) => X(b) ? b.value = t : null),
|
|
@@ -914,7 +914,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
914
914
|
default: D(() => [
|
|
915
915
|
u("div", st, [
|
|
916
916
|
u("div", null, [
|
|
917
|
-
V(
|
|
917
|
+
V(i, { label: "Menu v4" })
|
|
918
918
|
]),
|
|
919
919
|
V(a, {
|
|
920
920
|
ref_key: "formRef",
|
|
@@ -963,7 +963,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
963
963
|
}, ct = { key: 2 }, ft = { class: "flex justify-center" }, mt = ["src"], pt = { class: "flex flex-col items-center gap-2" }, gt = { class: "text-lg font-bold" }, vt = { class: "text-fm-color-neutral-gray-300" }, yt = { key: 0 }, kt = /* @__PURE__ */ z({
|
|
964
964
|
__name: "IntegrationView",
|
|
965
965
|
setup(x) {
|
|
966
|
-
const v = _e(),
|
|
966
|
+
const v = _e(), o = be(), g = ve(), r = P(!1), c = P(), M = P(), S = P(), A = P(), $ = P(), k = K(() => {
|
|
967
967
|
var e;
|
|
968
968
|
return ((e = $.value) == null ? void 0 : e.enable) ?? !1;
|
|
969
969
|
}), f = ge(), b = K(() => {
|
|
@@ -1004,7 +1004,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1004
1004
|
}));
|
|
1005
1005
|
A.value = N, $.value = await f.readSetting();
|
|
1006
1006
|
} catch (_) {
|
|
1007
|
-
|
|
1007
|
+
o.open({
|
|
1008
1008
|
title: "Something went wrong",
|
|
1009
1009
|
message: "Cannot fetch integration info. Please try again.",
|
|
1010
1010
|
type: "error"
|
|
@@ -1017,20 +1017,20 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1017
1017
|
async function y() {
|
|
1018
1018
|
H.value = !0;
|
|
1019
1019
|
}
|
|
1020
|
-
const { breakpoints: s } = he(), n = K(() => s.value.xs || s.value.sm),
|
|
1020
|
+
const { breakpoints: s } = he(), n = K(() => s.value.xs || s.value.sm), i = K(() => n.value);
|
|
1021
1021
|
async function a() {
|
|
1022
1022
|
const e = $.value;
|
|
1023
1023
|
if (e) {
|
|
1024
1024
|
r.value = !0;
|
|
1025
1025
|
try {
|
|
1026
|
-
await f.updateSetting(e),
|
|
1026
|
+
await f.updateSetting(e), o.open({
|
|
1027
1027
|
title: "Success",
|
|
1028
1028
|
message: "Your changes has been saved",
|
|
1029
1029
|
type: "success"
|
|
1030
1030
|
}), H.value = !1, await m(g.currentLocation);
|
|
1031
1031
|
return;
|
|
1032
1032
|
} catch (t) {
|
|
1033
|
-
|
|
1033
|
+
o.open({
|
|
1034
1034
|
title: "Something went wrong",
|
|
1035
1035
|
message: "Cannot update integration info. Please try again.",
|
|
1036
1036
|
type: "error"
|
|
@@ -1062,8 +1062,8 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1062
1062
|
])) : k.value ? (F(), B("div", ct, [
|
|
1063
1063
|
V(h, {
|
|
1064
1064
|
class: R({
|
|
1065
|
-
"w-full":
|
|
1066
|
-
"w-1/2": !
|
|
1065
|
+
"w-full": i.value,
|
|
1066
|
+
"w-1/2": !i.value,
|
|
1067
1067
|
border: !0,
|
|
1068
1068
|
"border-fm-color-neutral-gray-100": !0,
|
|
1069
1069
|
"cursor-pointer": !0,
|
|
@@ -1103,7 +1103,7 @@ const Te = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
1103
1103
|
], 2),
|
|
1104
1104
|
$.value ? (F(), B("div", yt, [
|
|
1105
1105
|
(F(), U(fe, { to: "body" }, [
|
|
1106
|
-
b.value === "v3" ? (F(), U(
|
|
1106
|
+
b.value === "v3" ? (F(), U(ot, {
|
|
1107
1107
|
key: 0,
|
|
1108
1108
|
menus: c.value,
|
|
1109
1109
|
variants: S.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { m as d } from "./app-A8ykBdGf.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as m, j as F } from "./app-A8ykBdGf.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
|
|
4
4
|
const l = m((e, t) => {
|
package/dist/{PurchaseOrderPrintPreview-CGxMILW0.js → PurchaseOrderPrintPreview-DzaS_c8R.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import {
|
|
3
|
+
import { ag as y, i as C } from "./app-A8ykBdGf.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|