@feedmepos/mf-menu-portal 1.0.4-dev.2 → 1.0.4-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.
- package/dist/{App-DtX4DyDA.js → App-nS46pByh.js} +3 -3
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js} +1 -1
- package/dist/{Catalog-Dly_r1yA.js → Catalog-B4RS8T29.js} +4 -4
- package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-6_783kbu.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js} +3 -3
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js +784 -0
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js} +3 -3
- package/dist/{Category-Dz1yFYyY.js → Category-CqneIGq4.js} +5 -5
- package/dist/{Category-BS-vFDYy.js → Category-DNQH1CI7.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js → CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js} +4 -4
- package/dist/{CookingGuide-CmbvWFgp.js → CookingGuide-DTAiFmEL.js} +4 -4
- package/dist/{Group-BRmWZnHh.js → Group-5xO2j3CL.js} +2 -2
- package/dist/{Group-B7s-vPXb.js → Group-DeUqUomY.js} +5 -5
- package/dist/{GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js → GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js} +5 -5
- package/dist/{Ingredient-BMAlctE4.js → Ingredient-BlDW3TfZ.js} +3 -3
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js} +1 -1
- package/dist/{MenuSetting-Ci7V_Jxn.js → MenuSetting-DdekHsQy.js} +3 -3
- package/dist/{OrderPacing-Bz5kn6DY.js → OrderPacing-Bb2n5wmI.js} +4 -4
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js} +1 -1
- package/dist/{Preview-BBGNaj1F.js → Preview-DGTw0POk.js} +1 -1
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js} +1 -1
- package/dist/{PrintRoute-BnARWdR2.js → PrintRoute-CJB4gIP2.js} +3 -3
- package/dist/{Product-DqN0NFUU.js → Product-CsbcyIgD.js} +4 -4
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Fkiw4lZp.js → ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js} +2 -2
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js} +3 -3
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js} +354 -346
- package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-Ccd4dAmx.js} +2 -2
- package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-DYcKdKHi.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js → ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js} +8 -8
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js} +1 -1
- package/dist/{Products-Cn6j1DOQ.js → Products-phZwCZhU.js} +3 -3
- package/dist/{Publish-BPJhG39B.js → Publish-BeKIXu3z.js} +3 -3
- package/dist/{Recipe-mt1vec5-.js → Recipe-Fo4tBkBv.js} +3 -3
- package/dist/{Scheduler-DlaSVACJ.js → Scheduler-C-A5m92O.js} +3 -3
- package/dist/{ServingSequence-Cr1REWZP.js → ServingSequence-BrCwLSO7.js} +2 -2
- package/dist/{Setting-CyCp2uw4.js → Setting-C24V-lps.js} +6 -6
- package/dist/{Subcategory-kuB7gYvc.js → Subcategory-B0oZIKbw.js} +2 -2
- package/dist/{Takeaway-tYHCAXYU.js → Takeaway-BFP2ohJn.js} +5 -5
- package/dist/{Takeaway-sVVykWDg.js → Takeaway-DywX5BiX.js} +2 -2
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.js → TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js} +3 -3
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js} +6 -6
- package/dist/{Unit-BSOvZxRy.js → Unit-NhEwH-kr.js} +2 -2
- package/dist/{Variant-BNnR5rLv.js → Variant-BBfWhH-s.js} +3 -3
- package/dist/{_id_-a9ZtdjtT.js → _id_-BooM3FX1.js} +3 -3
- package/dist/{app-CmElp8cO.js → app-Bmgb8ACe.js} +65 -65
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-B_wpWLAj.js → menu-compute-CG-fX5pi.js} +2 -2
- package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-BeGMWVns.js} +2 -2
- package/dist/{provide-BJRbSauL.js → provide-CfF0FmUz.js} +41824 -41362
- package/dist/{useActionFeedback-89GwO41T.js → useActionFeedback-DyUCQl2x.js} +1 -1
- package/package.json +1 -1
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as v, createElementVNode as n, renderSlot as We, resolveComponent as
|
|
1
|
+
import { defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as v, createElementVNode as n, renderSlot as We, resolveComponent as M, toDisplayString as I, createElementBlock as S, createCommentVNode as y, createVNode as s, ref as X, computed as R, toRaw as Je, onBeforeUnmount as ke, Fragment as re, renderList as Fe, shallowRef as ye, watch as Ae, onMounted as Bl, createTextVNode as sl, withModifiers as Ee, normalizeClass as Be, h as H, createSlots as cl, nextTick as el, normalizeStyle as pl, isRef as Ol, mergeProps as Ce, withDirectives as ul } from "vue";
|
|
2
2
|
import { _ as ge, a as Hl, b as $l, u as Xl } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
3
3
|
import { useI18n as be, CustomAttributesForm as Wl } from "@feedmepos/mf-common";
|
|
4
4
|
import { useAppStore as Ll, RemyButton as Sl } from "@feedmepos/mf-remy-panel";
|
|
5
5
|
import { InventoryBindingSummary as Yl } from "@feedmepos/mf-inventory-portal";
|
|
6
|
-
import { components as O, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as
|
|
7
|
-
import { b as Jl } from "./app-
|
|
6
|
+
import { components as O, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as Ne, FmButtonColorThemeVariant as Vl } from "@feedmepos/ui-library";
|
|
7
|
+
import { b as Jl } from "./app-Bmgb8ACe.js";
|
|
8
8
|
import { _ as Oe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
9
9
|
import { d as ea, _ as qe, a as la } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
10
|
-
import { b as Pe, u as Le, A as aa } from "./provide-
|
|
11
|
-
import { u as Ue } from "./useActionFeedback-
|
|
12
|
-
import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { _ as Ke, a as nl, F as sa, b as Dl, c as ia, d as ra } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { a as zl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { b as Pe, u as Le, A as aa } from "./provide-CfF0FmUz.js";
|
|
11
|
+
import { u as Ue } from "./useActionFeedback-DyUCQl2x.js";
|
|
12
|
+
import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js";
|
|
13
|
+
import { _ as Ke, a as nl, F as sa, b as Dl, c as ia, d as ra } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js";
|
|
14
|
+
import { a as zl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js";
|
|
15
|
+
import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js";
|
|
16
|
+
import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js";
|
|
17
17
|
import { _ as ma } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
18
18
|
import { _ as il } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
19
|
-
import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js";
|
|
20
20
|
import { u as ll } from "./useEditorValidation-Ctef5Bxt.js";
|
|
21
|
-
import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js";
|
|
22
22
|
const ml = /* @__PURE__ */ ce({
|
|
23
23
|
__name: "FlatInlineSort",
|
|
24
24
|
props: {
|
|
@@ -27,8 +27,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
27
27
|
lockLast: { type: Boolean }
|
|
28
28
|
},
|
|
29
29
|
emits: ["reorder"],
|
|
30
|
-
setup(
|
|
31
|
-
const i =
|
|
30
|
+
setup(Y, { emit: V }) {
|
|
31
|
+
const i = Y, x = V;
|
|
32
32
|
function o(w) {
|
|
33
33
|
x(
|
|
34
34
|
"reorder",
|
|
@@ -72,10 +72,10 @@ const ml = /* @__PURE__ */ ce({
|
|
|
72
72
|
anchor: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:enabled"],
|
|
75
|
-
setup(
|
|
76
|
-
const i =
|
|
75
|
+
setup(Y, { emit: V }) {
|
|
76
|
+
const i = Y, x = V;
|
|
77
77
|
return (o, d) => {
|
|
78
|
-
const w =
|
|
78
|
+
const w = M("FmSwitch"), C = M("FmCard");
|
|
79
79
|
return i.section.toggle === "none" ? (r(), T(qe, {
|
|
80
80
|
key: 0,
|
|
81
81
|
id: i.anchor,
|
|
@@ -143,8 +143,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
143
143
|
existingIds: {}
|
|
144
144
|
},
|
|
145
145
|
emits: ["close", "confirm"],
|
|
146
|
-
setup(
|
|
147
|
-
const i =
|
|
146
|
+
setup(Y, { emit: V }) {
|
|
147
|
+
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = X(""), C = X(""), P = X(!0);
|
|
148
148
|
function m() {
|
|
149
149
|
P.value = !1, x("close");
|
|
150
150
|
}
|
|
@@ -168,8 +168,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
168
168
|
return (_, F) => (r(), T(e(O).FmDialog, {
|
|
169
169
|
modelValue: P.value,
|
|
170
170
|
"onUpdate:modelValue": [
|
|
171
|
-
F[2] || (F[2] = (
|
|
172
|
-
F[3] || (F[3] = (
|
|
171
|
+
F[2] || (F[2] = (L) => P.value = L),
|
|
172
|
+
F[3] || (F[3] = (L) => !L && x("close"))
|
|
173
173
|
],
|
|
174
174
|
"max-width": 560
|
|
175
175
|
}, {
|
|
@@ -197,7 +197,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
197
197
|
n("div", Ca, [
|
|
198
198
|
s(e(O).FmTextField, {
|
|
199
199
|
modelValue: w.value,
|
|
200
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
200
|
+
"onUpdate:modelValue": F[0] || (F[0] = (L) => w.value = L),
|
|
201
201
|
label: e(o)("menu.product_image.custom.width"),
|
|
202
202
|
placeholder: e(o)("menu.product_image.custom.width"),
|
|
203
203
|
type: "number"
|
|
@@ -207,7 +207,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
207
207
|
n("div", $a, [
|
|
208
208
|
s(e(O).FmTextField, {
|
|
209
209
|
modelValue: C.value,
|
|
210
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
210
|
+
"onUpdate:modelValue": F[1] || (F[1] = (L) => C.value = L),
|
|
211
211
|
label: e(o)("menu.product_image.custom.height"),
|
|
212
212
|
placeholder: e(o)("menu.product_image.custom.height"),
|
|
213
213
|
type: "number"
|
|
@@ -230,8 +230,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
230
230
|
canRegenerateFromOriginal: { type: Boolean }
|
|
231
231
|
},
|
|
232
232
|
emits: ["close", "confirm"],
|
|
233
|
-
setup(
|
|
234
|
-
const i =
|
|
233
|
+
setup(Y, { emit: V }) {
|
|
234
|
+
const i = Y, x = V, { t: o } = be(), d = X(""), w = X(!1), C = X(!0);
|
|
235
235
|
function P() {
|
|
236
236
|
C.value = !1, x("close");
|
|
237
237
|
}
|
|
@@ -302,7 +302,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
302
302
|
}, za = {
|
|
303
303
|
key: 0,
|
|
304
304
|
class: "flex items-center gap-16"
|
|
305
|
-
}, Ra = ["alt", "src"],
|
|
305
|
+
}, Ra = ["alt", "src"], Ma = { class: "fm-typo-en-body-lg-600" }, Na = {
|
|
306
306
|
key: 1,
|
|
307
307
|
class: "space-y-16"
|
|
308
308
|
}, Ea = { class: "flex items-start gap-16" }, qa = { class: "mr-auto" }, Ga = { class: "fm-typo-en-title-sm-600" }, ja = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ka = { class: "divide-y divide-fm-color-neutral-gray-100" }, Qa = ["aria-label"], Ha = ["alt", "src"], Xa = { class: "fm-typo-en-body-lg-600" }, Wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ya = ["aria-label"], Za = ["alt", "src"], Ja = { class: "mr-auto" }, et = { class: "flex items-center gap-8" }, lt = { class: "fm-typo-en-body-lg-600" }, at = {
|
|
@@ -319,15 +319,15 @@ const ml = /* @__PURE__ */ ce({
|
|
|
319
319
|
imageRef: {}
|
|
320
320
|
},
|
|
321
321
|
emits: ["close"],
|
|
322
|
-
setup(
|
|
323
|
-
const i =
|
|
322
|
+
setup(Y, { emit: V }) {
|
|
323
|
+
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P = X(null), m = X("");
|
|
324
324
|
function l(q, Z) {
|
|
325
325
|
m.value = Z, P.value = q;
|
|
326
326
|
}
|
|
327
|
-
const $ = Je(i.target), _ = Je(i.imageRef), F = i.sdk.productImage.manage($, _),
|
|
327
|
+
const $ = Je(i.target), _ = Je(i.imageRef), F = i.sdk.productImage.manage($, _), L = Le(F);
|
|
328
328
|
ke(() => F.dispose());
|
|
329
329
|
const E = R(
|
|
330
|
-
() =>
|
|
330
|
+
() => L.value.status === "ready" ? L.value.value : null
|
|
331
331
|
), G = R(() => {
|
|
332
332
|
var q;
|
|
333
333
|
return ((q = E.value) == null ? void 0 : q.ratios) ?? [];
|
|
@@ -377,11 +377,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
377
377
|
async function b(q) {
|
|
378
378
|
const Z = k.value;
|
|
379
379
|
if (k.value = null, !Z) return;
|
|
380
|
-
const
|
|
380
|
+
const N = q ? await h(q.blob) : "";
|
|
381
381
|
await d(
|
|
382
382
|
() => F.replaceRatio(
|
|
383
383
|
Z.id,
|
|
384
|
-
q ? { base64:
|
|
384
|
+
q ? { base64: N, contentType: q.blob.type } : null
|
|
385
385
|
),
|
|
386
386
|
{
|
|
387
387
|
successMessage: o("menu.product_image.replace.queued"),
|
|
@@ -395,8 +395,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
395
395
|
}
|
|
396
396
|
function h(q) {
|
|
397
397
|
return new Promise((Z) => {
|
|
398
|
-
const
|
|
399
|
-
|
|
398
|
+
const N = new FileReader();
|
|
399
|
+
N.onerror = () => Z(""), N.onload = () => Z(typeof N.result == "string" ? N.result : ""), N.readAsDataURL(q);
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
const se = X(null);
|
|
@@ -430,13 +430,13 @@ const ml = /* @__PURE__ */ ce({
|
|
|
430
430
|
async function fe(q) {
|
|
431
431
|
await d(() => F.removeRatio(q.id), { showLoading: !1 });
|
|
432
432
|
}
|
|
433
|
-
return (q, Z) => (r(), S(
|
|
433
|
+
return (q, Z) => (r(), S(re, null, [
|
|
434
434
|
s(e(O).FmSideSheet, {
|
|
435
435
|
id: "manage-product-image",
|
|
436
436
|
modelValue: p.value,
|
|
437
437
|
"onUpdate:modelValue": [
|
|
438
|
-
Z[2] || (Z[2] = (
|
|
439
|
-
Z[3] || (Z[3] = (
|
|
438
|
+
Z[2] || (Z[2] = (N) => p.value = N),
|
|
439
|
+
Z[3] || (Z[3] = (N) => !N && x("close"))
|
|
440
440
|
],
|
|
441
441
|
"close-button": "",
|
|
442
442
|
"max-width": 860
|
|
@@ -476,9 +476,9 @@ const ml = /* @__PURE__ */ ce({
|
|
|
476
476
|
]),
|
|
477
477
|
_: 1
|
|
478
478
|
}),
|
|
479
|
-
n("p",
|
|
479
|
+
n("p", Ma, I(e(o)("menu.product_image.manage.original")), 1)
|
|
480
480
|
])) : y("", !0),
|
|
481
|
-
E.value.addFormat.state === "allowed" ? (r(), S("section",
|
|
481
|
+
E.value.addFormat.state === "allowed" ? (r(), S("section", Na, [
|
|
482
482
|
n("div", Ea, [
|
|
483
483
|
n("div", qa, [
|
|
484
484
|
n("p", Ga, I(e(o)("menu.product_image.manage.aspect_ratio")), 1),
|
|
@@ -490,7 +490,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
490
490
|
"aria-label": e(o)("menu.product_image.manage.add_format"),
|
|
491
491
|
"prepend-icon": "add",
|
|
492
492
|
variant: "primary",
|
|
493
|
-
onClick: Z[0] || (Z[0] = (
|
|
493
|
+
onClick: Z[0] || (Z[0] = (N) => g.value = !0)
|
|
494
494
|
}, null, 8, ["disabled", "label", "aria-label"])
|
|
495
495
|
]),
|
|
496
496
|
n("div", Ka, [
|
|
@@ -504,7 +504,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
504
504
|
label: e(o)("menu.product_image.preview.title"),
|
|
505
505
|
class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0",
|
|
506
506
|
variant: "plain",
|
|
507
|
-
onClick: Z[1] || (Z[1] = (
|
|
507
|
+
onClick: Z[1] || (Z[1] = (N) => l(
|
|
508
508
|
E.value.originalUrl,
|
|
509
509
|
e(o)("menu.product_image.manage.original")
|
|
510
510
|
))
|
|
@@ -531,19 +531,19 @@ const ml = /* @__PURE__ */ ce({
|
|
|
531
531
|
n("p", Wa, I(e(o)("menu.product_image.manage.custom_sizing")), 1)
|
|
532
532
|
])
|
|
533
533
|
], 8, Qa),
|
|
534
|
-
(r(!0), S(
|
|
535
|
-
key:
|
|
534
|
+
(r(!0), S(re, null, Fe(G.value, (N) => (r(), S("div", {
|
|
535
|
+
key: N.label,
|
|
536
536
|
class: "product-image-ratio-row flex items-center gap-16 py-12",
|
|
537
537
|
role: "group",
|
|
538
|
-
"aria-label":
|
|
538
|
+
"aria-label": N.label
|
|
539
539
|
}, [
|
|
540
540
|
s(e(O).FmButton, {
|
|
541
541
|
"aria-label": e(o)("menu.product_image.preview.title"),
|
|
542
542
|
label: e(o)("menu.product_image.preview.title"),
|
|
543
543
|
class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0 disabled:opacity-40",
|
|
544
|
-
disabled: !
|
|
544
|
+
disabled: !N.previewUrl,
|
|
545
545
|
variant: "plain",
|
|
546
|
-
onClick: (Ie) => l(
|
|
546
|
+
onClick: (Ie) => l(N.previewUrl, N.label)
|
|
547
547
|
}, {
|
|
548
548
|
default: v(() => [
|
|
549
549
|
s(e(O).FmCard, {
|
|
@@ -551,11 +551,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
551
551
|
variant: "outlined"
|
|
552
552
|
}, {
|
|
553
553
|
default: v(() => [
|
|
554
|
-
|
|
554
|
+
N.previewUrl ? (r(), S("img", {
|
|
555
555
|
key: 0,
|
|
556
|
-
alt:
|
|
556
|
+
alt: N.label,
|
|
557
557
|
class: "h-full w-full object-cover",
|
|
558
|
-
src:
|
|
558
|
+
src: N.previewUrl
|
|
559
559
|
}, null, 8, Za)) : (r(), T(e(O).FmIcon, {
|
|
560
560
|
key: 1,
|
|
561
561
|
color: "neutral-gray-300",
|
|
@@ -570,51 +570,51 @@ const ml = /* @__PURE__ */ ce({
|
|
|
570
570
|
}, 1032, ["aria-label", "label", "disabled", "onClick"]),
|
|
571
571
|
n("div", Ja, [
|
|
572
572
|
n("div", et, [
|
|
573
|
-
n("p", lt, I(
|
|
574
|
-
|
|
573
|
+
n("p", lt, I(N.label), 1),
|
|
574
|
+
N.required ? (r(), T(e(O).FmChip, {
|
|
575
575
|
key: 0,
|
|
576
576
|
color: "negative",
|
|
577
577
|
label: e(o)("menu.product_image.manage.required"),
|
|
578
578
|
size: "sm"
|
|
579
579
|
}, null, 8, ["label"])) : y("", !0),
|
|
580
|
-
B(
|
|
580
|
+
B(N) ? (r(), T(e(O).FmChip, {
|
|
581
581
|
key: 1,
|
|
582
|
-
color:
|
|
583
|
-
label: B(
|
|
582
|
+
color: N.status === "pending" ? "warning" : "negative",
|
|
583
|
+
label: B(N),
|
|
584
584
|
size: "sm"
|
|
585
585
|
}, null, 8, ["color", "label"])) : y("", !0)
|
|
586
586
|
]),
|
|
587
|
-
|
|
588
|
-
!
|
|
587
|
+
N.purpose ? (r(), S("p", at, I(e(C)(N.purpose)), 1)) : y("", !0),
|
|
588
|
+
!N.required && !N.previewUrl ? (r(), S("p", tt, I(e(o)("menu.product_image.manage.custom_image_hint")), 1)) : y("", !0)
|
|
589
589
|
]),
|
|
590
590
|
n("div", ot, [
|
|
591
591
|
s(e(O).FmButton, {
|
|
592
592
|
"aria-label": e(o)("menu.product_image.replace.action_for", {
|
|
593
|
-
ratio:
|
|
593
|
+
ratio: N.label
|
|
594
594
|
}),
|
|
595
|
-
disabled:
|
|
595
|
+
disabled: N.replace.state !== "allowed",
|
|
596
596
|
icon: "image",
|
|
597
597
|
variant: "tertiary",
|
|
598
|
-
onClick: (Ie) => k.value =
|
|
598
|
+
onClick: (Ie) => k.value = N
|
|
599
599
|
}, null, 8, ["aria-label", "disabled", "onClick"]),
|
|
600
600
|
s(e(O).FmButton, {
|
|
601
601
|
"aria-label": e(o)("menu.product_image.regenerate.action_for", {
|
|
602
|
-
ratio:
|
|
602
|
+
ratio: N.label
|
|
603
603
|
}),
|
|
604
|
-
disabled:
|
|
604
|
+
disabled: N.regenerate.state !== "allowed",
|
|
605
605
|
icon: "autorenew",
|
|
606
606
|
variant: "tertiary",
|
|
607
|
-
onClick: (Ie) => pe(
|
|
607
|
+
onClick: (Ie) => pe(N)
|
|
608
608
|
}, null, 8, ["aria-label", "disabled", "onClick"]),
|
|
609
|
-
|
|
609
|
+
N.canRemove ? (r(), T(e(O).FmButton, {
|
|
610
610
|
key: 0,
|
|
611
611
|
"aria-label": e(o)("menu.product_image.manage.remove_ratio.action_for", {
|
|
612
|
-
ratio:
|
|
612
|
+
ratio: N.label
|
|
613
613
|
}),
|
|
614
614
|
disabled: se.value !== null,
|
|
615
615
|
icon: "close",
|
|
616
616
|
variant: "tertiary",
|
|
617
|
-
onClick: (Ie) => de(
|
|
617
|
+
onClick: (Ie) => de(N)
|
|
618
618
|
}, null, 8, ["aria-label", "disabled", "onClick"])) : y("", !0)
|
|
619
619
|
])
|
|
620
620
|
], 8, Ya))), 128))
|
|
@@ -647,7 +647,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
647
647
|
s(e(O).FmDialog, {
|
|
648
648
|
"model-value": P.value !== null,
|
|
649
649
|
"max-width": 560,
|
|
650
|
-
"onUpdate:modelValue": Z[4] || (Z[4] = (
|
|
650
|
+
"onUpdate:modelValue": Z[4] || (Z[4] = (N) => !N && (P.value = null))
|
|
651
651
|
}, {
|
|
652
652
|
"dialog-header": v(() => [
|
|
653
653
|
n("p", ct, I(m.value), 1)
|
|
@@ -668,7 +668,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
668
668
|
key: 0,
|
|
669
669
|
"existing-ids": A.value,
|
|
670
670
|
sdk: i.sdk,
|
|
671
|
-
onClose: Z[5] || (Z[5] = (
|
|
671
|
+
onClose: Z[5] || (Z[5] = (N) => g.value = !1),
|
|
672
672
|
onConfirm: ee
|
|
673
673
|
}, null, 8, ["existing-ids", "sdk"])) : y("", !0),
|
|
674
674
|
k.value ? (r(), T(dl, {
|
|
@@ -676,14 +676,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
676
676
|
mode: "replace",
|
|
677
677
|
"ratio-label": k.value.label,
|
|
678
678
|
"aspect-ratio": k.value.aspectRatio,
|
|
679
|
-
onCancel: Z[6] || (Z[6] = (
|
|
679
|
+
onCancel: Z[6] || (Z[6] = (N) => k.value = null),
|
|
680
680
|
onConfirm: b
|
|
681
681
|
}, null, 8, ["ratio-label", "aspect-ratio"])) : y("", !0),
|
|
682
682
|
f.value ? (r(), T(Oa, {
|
|
683
683
|
key: 2,
|
|
684
684
|
"can-regenerate-from-original": f.value.canRegenerateFromOriginal,
|
|
685
685
|
"ratio-label": f.value.label,
|
|
686
|
-
onClose: Z[7] || (Z[7] = (
|
|
686
|
+
onClose: Z[7] || (Z[7] = (N) => f.value = null),
|
|
687
687
|
onConfirm: le
|
|
688
688
|
}, null, 8, ["can-regenerate-from-original", "ratio-label"])) : y("", !0)
|
|
689
689
|
], 64));
|
|
@@ -694,84 +694,84 @@ const ml = /* @__PURE__ */ ce({
|
|
|
694
694
|
sdk: {},
|
|
695
695
|
target: {}
|
|
696
696
|
},
|
|
697
|
-
setup(
|
|
698
|
-
const V =
|
|
697
|
+
setup(Y) {
|
|
698
|
+
const V = Y, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() => Je(V.target)), l = ye({
|
|
699
699
|
status: "loading"
|
|
700
700
|
});
|
|
701
701
|
let $ = null, _ = null;
|
|
702
|
-
function F(
|
|
703
|
-
_ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(
|
|
704
|
-
l.value =
|
|
702
|
+
function F(D) {
|
|
703
|
+
_ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(D), _ = $.subscribe((z) => {
|
|
704
|
+
l.value = z;
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
707
|
F(m.value), ke(() => {
|
|
708
708
|
_ == null || _(), $ == null || $.dispose();
|
|
709
709
|
});
|
|
710
|
-
const
|
|
710
|
+
const L = R(
|
|
711
711
|
() => l.value.status === "ready" ? l.value.value : null
|
|
712
712
|
), E = R(
|
|
713
713
|
() => {
|
|
714
|
-
var
|
|
715
|
-
return ((
|
|
714
|
+
var D;
|
|
715
|
+
return ((D = L.value) == null ? void 0 : D.tiles) ?? [];
|
|
716
716
|
}
|
|
717
717
|
), G = aa.join(","), A = X(null), p = X(!1), g = X([]), f = X(0), k = X([]), B = X(null);
|
|
718
718
|
let Q = null;
|
|
719
719
|
function ee() {
|
|
720
720
|
g.value = [], f.value = 0, k.value = [], Q = null;
|
|
721
721
|
}
|
|
722
|
-
Ae(m, (
|
|
723
|
-
|
|
722
|
+
Ae(m, (D, z) => {
|
|
723
|
+
D !== z && (B.value = null, ee(), N(), F(D));
|
|
724
724
|
});
|
|
725
725
|
const a = R(
|
|
726
726
|
() => g.value[f.value] ?? null
|
|
727
727
|
), c = R(() => {
|
|
728
|
-
var
|
|
729
|
-
return ((
|
|
728
|
+
var D;
|
|
729
|
+
return ((D = L.value) == null ? void 0 : D.addImage.state) !== "allowed";
|
|
730
730
|
});
|
|
731
731
|
function ne() {
|
|
732
|
-
var
|
|
733
|
-
(
|
|
732
|
+
var D;
|
|
733
|
+
(D = A.value) == null || D.click();
|
|
734
734
|
}
|
|
735
|
-
function pe(
|
|
736
|
-
const
|
|
737
|
-
ve(Array.from(
|
|
735
|
+
function pe(D) {
|
|
736
|
+
const z = D.target;
|
|
737
|
+
ve(Array.from(z.files ?? [])), z.value = "";
|
|
738
738
|
}
|
|
739
|
-
function le(
|
|
740
|
-
var
|
|
741
|
-
p.value = !1, !c.value && ve(Array.from(((
|
|
739
|
+
function le(D) {
|
|
740
|
+
var z;
|
|
741
|
+
p.value = !1, !c.value && ve(Array.from(((z = D.dataTransfer) == null ? void 0 : z.files) ?? []));
|
|
742
742
|
}
|
|
743
|
-
function ve(
|
|
744
|
-
if (c.value ||
|
|
745
|
-
const
|
|
746
|
-
for (const
|
|
747
|
-
const
|
|
748
|
-
if (
|
|
749
|
-
o(async () => ({ kind: "rejected", issues: [
|
|
743
|
+
function ve(D) {
|
|
744
|
+
if (c.value || D.length === 0) return;
|
|
745
|
+
const z = [];
|
|
746
|
+
for (const W of D) {
|
|
747
|
+
const ie = V.sdk.productImage.screenFile(W.type);
|
|
748
|
+
if (ie) {
|
|
749
|
+
o(async () => ({ kind: "rejected", issues: [ie] }), {
|
|
750
750
|
showLoading: !1
|
|
751
751
|
});
|
|
752
752
|
continue;
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
z.push(W);
|
|
755
755
|
}
|
|
756
|
-
|
|
756
|
+
z.length !== 0 && (g.value = z, f.value = 0, k.value = [], Q = m.value);
|
|
757
757
|
}
|
|
758
|
-
function b(
|
|
759
|
-
const
|
|
760
|
-
|
|
758
|
+
function b(D) {
|
|
759
|
+
const z = V.sdk.productImage.screenDecoded(
|
|
760
|
+
D ? { width: D.width, height: D.height } : null
|
|
761
761
|
);
|
|
762
|
-
if (
|
|
763
|
-
|
|
762
|
+
if (z || !D) {
|
|
763
|
+
z && o(async () => ({ kind: "rejected", issues: [z] }), {
|
|
764
764
|
showLoading: !1
|
|
765
765
|
}), se();
|
|
766
766
|
return;
|
|
767
767
|
}
|
|
768
768
|
k.value.push({
|
|
769
|
-
contentType:
|
|
770
|
-
fileName:
|
|
771
|
-
width:
|
|
772
|
-
height:
|
|
773
|
-
byteLength:
|
|
774
|
-
bytes:
|
|
769
|
+
contentType: D.blob.type,
|
|
770
|
+
fileName: D.fileName,
|
|
771
|
+
width: D.width,
|
|
772
|
+
height: D.height,
|
|
773
|
+
byteLength: D.blob.size,
|
|
774
|
+
bytes: D.blob
|
|
775
775
|
}), se();
|
|
776
776
|
}
|
|
777
777
|
function h() {
|
|
@@ -782,68 +782,76 @@ const ml = /* @__PURE__ */ ce({
|
|
|
782
782
|
f.value += 1;
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
785
|
-
const
|
|
786
|
-
ee(),
|
|
785
|
+
const D = k.value, z = Q;
|
|
786
|
+
ee(), D.length > 0 && z && de(z, D);
|
|
787
787
|
}
|
|
788
|
-
async function de(
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
788
|
+
async function de(D, z) {
|
|
789
|
+
var ie;
|
|
790
|
+
const W = ((ie = L.value) == null ? void 0 : ie.defersUpload) === !0;
|
|
791
|
+
await o(
|
|
792
|
+
() => V.sdk.productImage.upload(D, z),
|
|
793
|
+
W ? {
|
|
794
|
+
showLoading: !1,
|
|
795
|
+
successMessage: i("menu.product_image.staged_added")
|
|
796
|
+
} : {
|
|
797
|
+
loadingMessage: i("menu.product_image.uploading"),
|
|
798
|
+
successMessage: i("menu.product_image.uploaded")
|
|
799
|
+
}
|
|
800
|
+
);
|
|
793
801
|
}
|
|
794
802
|
const $e = ye(null), fe = ye(null);
|
|
795
803
|
let q = null, Z = null;
|
|
796
|
-
function
|
|
804
|
+
function N() {
|
|
797
805
|
q == null || q.dispose(), Z == null || Z(), q = null, Z = null, $e.value = null, fe.value = null;
|
|
798
806
|
}
|
|
799
|
-
function Ie(
|
|
800
|
-
const
|
|
801
|
-
if (!
|
|
802
|
-
|
|
803
|
-
const
|
|
804
|
-
return q =
|
|
805
|
-
fe.value =
|
|
806
|
-
}),
|
|
807
|
+
function Ie(D) {
|
|
808
|
+
const z = m.value;
|
|
809
|
+
if (!z) return null;
|
|
810
|
+
N();
|
|
811
|
+
const W = V.sdk.productImage.edit(z, Je(D.imageRef));
|
|
812
|
+
return q = W, Z = W.subscribe((ie) => {
|
|
813
|
+
fe.value = ie.status === "ready" ? ie.value : null, fe.value || ($e.value = null);
|
|
814
|
+
}), W;
|
|
807
815
|
}
|
|
808
|
-
async function De(
|
|
809
|
-
const
|
|
810
|
-
loadingMessage:
|
|
811
|
-
showLoading: !!
|
|
816
|
+
async function De(D, z) {
|
|
817
|
+
const W = await o(D, {
|
|
818
|
+
loadingMessage: z,
|
|
819
|
+
showLoading: !!z
|
|
812
820
|
});
|
|
813
|
-
return
|
|
814
|
-
type:
|
|
815
|
-
[
|
|
816
|
-
}),
|
|
821
|
+
return W.kind === "success" && w.open({
|
|
822
|
+
type: W.value.severity,
|
|
823
|
+
[W.value.presentation]: C(W.value.message)
|
|
824
|
+
}), W;
|
|
817
825
|
}
|
|
818
|
-
async function Ge(
|
|
819
|
-
const
|
|
820
|
-
if (!(!
|
|
826
|
+
async function Ge(D) {
|
|
827
|
+
const z = Ie(D), W = fe.value;
|
|
828
|
+
if (!(!z || !W))
|
|
821
829
|
try {
|
|
822
|
-
const
|
|
823
|
-
q ===
|
|
830
|
+
const ie = await Pl(W.sourceUrl);
|
|
831
|
+
q === z && ($e.value = ie);
|
|
824
832
|
} catch {
|
|
825
|
-
q ===
|
|
833
|
+
q === z && await De(() => z.confirmCrop(null));
|
|
826
834
|
}
|
|
827
835
|
}
|
|
828
|
-
async function Ye(
|
|
829
|
-
const
|
|
830
|
-
if ($e.value = null, !
|
|
831
|
-
let
|
|
836
|
+
async function Ye(D) {
|
|
837
|
+
const z = q, W = fe.value;
|
|
838
|
+
if ($e.value = null, !z || !W) return;
|
|
839
|
+
let ie = null;
|
|
832
840
|
try {
|
|
833
|
-
|
|
841
|
+
ie = await Ul(D);
|
|
834
842
|
} catch {
|
|
835
843
|
}
|
|
836
844
|
await De(
|
|
837
|
-
() =>
|
|
838
|
-
|
|
839
|
-
), q ===
|
|
845
|
+
() => z.confirmCrop(ie),
|
|
846
|
+
D ? C(W.loadingMessage) : void 0
|
|
847
|
+
), q === z && N();
|
|
840
848
|
}
|
|
841
|
-
async function He(
|
|
842
|
-
const
|
|
843
|
-
if (!
|
|
844
|
-
const
|
|
845
|
-
() =>
|
|
846
|
-
const _e = await Pl(
|
|
849
|
+
async function He(D) {
|
|
850
|
+
const z = Ie(D), W = fe.value;
|
|
851
|
+
if (!z || !W) return;
|
|
852
|
+
const ie = await o(
|
|
853
|
+
() => z.prepareRemy(async () => {
|
|
854
|
+
const _e = await Pl(W.sourceUrl);
|
|
847
855
|
return {
|
|
848
856
|
contentType: _e.type,
|
|
849
857
|
byteLength: _e.size,
|
|
@@ -852,23 +860,23 @@ const ml = /* @__PURE__ */ ce({
|
|
|
852
860
|
}),
|
|
853
861
|
{ showLoading: !1 }
|
|
854
862
|
);
|
|
855
|
-
|
|
856
|
-
imageData:
|
|
863
|
+
ie.kind === "success" && q === z && P.activate({
|
|
864
|
+
imageData: ie.value.imageData,
|
|
857
865
|
command: "modifyImage"
|
|
858
866
|
});
|
|
859
867
|
}
|
|
860
|
-
function J(
|
|
861
|
-
var
|
|
862
|
-
const
|
|
863
|
-
!
|
|
864
|
-
() =>
|
|
865
|
-
const _e = await oa(
|
|
868
|
+
function J(D) {
|
|
869
|
+
var ie;
|
|
870
|
+
const z = (ie = D.detail) == null ? void 0 : ie.imageData, W = q;
|
|
871
|
+
!W || typeof z != "string" || !z || De(
|
|
872
|
+
() => W.applyRemy(async () => {
|
|
873
|
+
const _e = await oa(z);
|
|
866
874
|
return V.sdk.productImage.screenFile(_e.type) ? {
|
|
867
875
|
contentType: _e.type,
|
|
868
876
|
byteLength: _e.size,
|
|
869
877
|
fileName: _e.name,
|
|
870
878
|
bytes: _e,
|
|
871
|
-
base64:
|
|
879
|
+
base64: z,
|
|
872
880
|
width: 0,
|
|
873
881
|
height: 0
|
|
874
882
|
} : Ul(await na(_e));
|
|
@@ -877,11 +885,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
877
885
|
);
|
|
878
886
|
}
|
|
879
887
|
Bl(() => window.addEventListener("apply-image", J)), ke(() => {
|
|
880
|
-
window.removeEventListener("apply-image", J),
|
|
888
|
+
window.removeEventListener("apply-image", J), N();
|
|
881
889
|
});
|
|
882
|
-
function we(
|
|
883
|
-
const
|
|
884
|
-
|
|
890
|
+
function we(D) {
|
|
891
|
+
const z = m.value;
|
|
892
|
+
z && d.open({
|
|
885
893
|
title: i("menu.product_image.delete.title"),
|
|
886
894
|
message: i("menu.product_image.delete.message"),
|
|
887
895
|
primaryActions: {
|
|
@@ -894,12 +902,12 @@ const ml = /* @__PURE__ */ ce({
|
|
|
894
902
|
}
|
|
895
903
|
}).onPrimary(async () => {
|
|
896
904
|
await o(
|
|
897
|
-
async () => V.sdk.productImage.removeImage(
|
|
905
|
+
async () => V.sdk.productImage.removeImage(z, Je(D.imageRef)),
|
|
898
906
|
{ showLoading: !1 }
|
|
899
907
|
);
|
|
900
908
|
});
|
|
901
909
|
}
|
|
902
|
-
return (
|
|
910
|
+
return (D, z) => (r(), T(e(O).FmFormGroup, {
|
|
903
911
|
class: "product-image-field pb-8 text-fm-color-typo-primary",
|
|
904
912
|
tag: "div",
|
|
905
913
|
label: e(i)("menu.common.labels.product_image"),
|
|
@@ -909,7 +917,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
909
917
|
default: v(() => [
|
|
910
918
|
n("p", ft, [
|
|
911
919
|
sl(I(e(i)("menu.product_image.hint")) + " ", 1),
|
|
912
|
-
c.value ? y("", !0) : (r(), S(
|
|
920
|
+
c.value ? y("", !0) : (r(), S(re, { key: 0 }, [
|
|
913
921
|
s(e(O).FmIcon, {
|
|
914
922
|
class: "mr-4 align-text-bottom",
|
|
915
923
|
color: "neutral-gray-400",
|
|
@@ -926,8 +934,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
926
934
|
p.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300",
|
|
927
935
|
c.value ? "opacity-50 cursor-not-allowed" : ""
|
|
928
936
|
]]),
|
|
929
|
-
onDragleave:
|
|
930
|
-
onDragover:
|
|
937
|
+
onDragleave: z[0] || (z[0] = Ee((W) => p.value = !1, ["prevent"])),
|
|
938
|
+
onDragover: z[1] || (z[1] = Ee((W) => p.value = !c.value, ["prevent"])),
|
|
931
939
|
onDrop: Ee(le, ["prevent"])
|
|
932
940
|
}, [
|
|
933
941
|
s(e(O).FmIcon, {
|
|
@@ -952,19 +960,19 @@ const ml = /* @__PURE__ */ ce({
|
|
|
952
960
|
onChange: pe
|
|
953
961
|
}, null, 40, _t)
|
|
954
962
|
], 34),
|
|
955
|
-
(r(!0), S(
|
|
963
|
+
(r(!0), S(re, null, Fe(E.value, (W, ie) => {
|
|
956
964
|
var _e, Xe, ze;
|
|
957
965
|
return r(), S("div", {
|
|
958
|
-
key:
|
|
966
|
+
key: W.url,
|
|
959
967
|
class: "product-image-tile relative aspect-square"
|
|
960
968
|
}, [
|
|
961
969
|
s(e(O).FmButton, {
|
|
962
|
-
"aria-label": e(i)("menu.product_image.manage.action_for", { index:
|
|
970
|
+
"aria-label": e(i)("menu.product_image.manage.action_for", { index: ie + 1 }),
|
|
963
971
|
class: "!block !h-full !w-full !overflow-hidden !rounded-md !p-0",
|
|
964
972
|
label: e(i)("menu.product_image.manage.title"),
|
|
965
|
-
disabled:
|
|
973
|
+
disabled: W.manage.state !== "allowed",
|
|
966
974
|
variant: "plain",
|
|
967
|
-
onClick: (je) => B.value =
|
|
975
|
+
onClick: (je) => B.value = W.imageRef
|
|
968
976
|
}, {
|
|
969
977
|
default: v(() => [
|
|
970
978
|
n("div", ht, [
|
|
@@ -974,9 +982,9 @@ const ml = /* @__PURE__ */ ce({
|
|
|
974
982
|
}, {
|
|
975
983
|
default: v(() => [
|
|
976
984
|
n("img", {
|
|
977
|
-
alt: e(i)("menu.product_image.tile_alt", { index:
|
|
985
|
+
alt: e(i)("menu.product_image.tile_alt", { index: ie + 1 }),
|
|
978
986
|
class: "h-full w-full object-cover",
|
|
979
|
-
src:
|
|
987
|
+
src: W.url
|
|
980
988
|
}, null, 8, kt)
|
|
981
989
|
]),
|
|
982
990
|
_: 2
|
|
@@ -986,18 +994,18 @@ const ml = /* @__PURE__ */ ce({
|
|
|
986
994
|
_: 2
|
|
987
995
|
}, 1032, ["aria-label", "label", "disabled", "onClick"]),
|
|
988
996
|
n("div", wt, [
|
|
989
|
-
|
|
997
|
+
W.isCover ? (r(), T(e(O).FmChip, {
|
|
990
998
|
key: 0,
|
|
991
999
|
label: e(i)("menu.product_image.cover_badge")
|
|
992
1000
|
}, null, 8, ["label"])) : y("", !0),
|
|
993
|
-
|
|
1001
|
+
W.formatCount !== null && W.formatCount !== void 0 ? (r(), T(e(O).FmChip, {
|
|
994
1002
|
key: 1,
|
|
995
|
-
label: e(x)(
|
|
1003
|
+
label: e(x)(W.formatCount),
|
|
996
1004
|
"right-icon": "resize"
|
|
997
1005
|
}, null, 8, ["label"])) : y("", !0)
|
|
998
1006
|
]),
|
|
999
1007
|
n("div", xt, [
|
|
1000
|
-
((_e =
|
|
1008
|
+
((_e = W.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(O).FmButton, {
|
|
1001
1009
|
key: 0,
|
|
1002
1010
|
label: e(i)("menu.product_image.editor.title"),
|
|
1003
1011
|
"aria-label": e(i)("menu.product_image.editor.title"),
|
|
@@ -1005,7 +1013,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1005
1013
|
class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
|
|
1006
1014
|
"bg-color": "neutral-white",
|
|
1007
1015
|
variant: "tertiary",
|
|
1008
|
-
onClick: Ee((je) => Ge(
|
|
1016
|
+
onClick: Ee((je) => Ge(W), ["stop"])
|
|
1009
1017
|
}, {
|
|
1010
1018
|
default: v(() => [
|
|
1011
1019
|
s(e(O).FmIcon, {
|
|
@@ -1015,7 +1023,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1015
1023
|
]),
|
|
1016
1024
|
_: 2
|
|
1017
1025
|
}, 1032, ["label", "aria-label", "title", "onClick"])) : y("", !0),
|
|
1018
|
-
((Xe =
|
|
1026
|
+
((Xe = W.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(O).FmButton, {
|
|
1019
1027
|
key: 1,
|
|
1020
1028
|
label: e(i)("menu.remy.title"),
|
|
1021
1029
|
"aria-label": e(i)("menu.remy.title"),
|
|
@@ -1024,7 +1032,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1024
1032
|
class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
|
|
1025
1033
|
"bg-color": "neutral-white",
|
|
1026
1034
|
variant: "tertiary",
|
|
1027
|
-
onClick: Ee((je) => He(
|
|
1035
|
+
onClick: Ee((je) => He(W), ["stop"])
|
|
1028
1036
|
}, {
|
|
1029
1037
|
default: v(() => [
|
|
1030
1038
|
s(e(O).FmIcon, {
|
|
@@ -1036,14 +1044,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1036
1044
|
}, 1032, ["label", "aria-label", "title", "disabled", "onClick"])) : y("", !0)
|
|
1037
1045
|
]),
|
|
1038
1046
|
s(e(O).FmButton, {
|
|
1039
|
-
label: e(i)("menu.product_image.remove.action_for", { index:
|
|
1040
|
-
"aria-label": e(i)("menu.product_image.remove.action_for", { index:
|
|
1047
|
+
label: e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
|
|
1048
|
+
"aria-label": e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
|
|
1041
1049
|
class: "!absolute -right-8 -top-8 !h-24 !w-24 !rounded-full !p-0",
|
|
1042
|
-
disabled:
|
|
1050
|
+
disabled: W.remove.state !== "allowed",
|
|
1043
1051
|
"bg-color": "neutral-black",
|
|
1044
1052
|
"icon-color": "neutral-white",
|
|
1045
1053
|
variant: "tertiary",
|
|
1046
|
-
onClick: (je) => we(
|
|
1054
|
+
onClick: (je) => we(W)
|
|
1047
1055
|
}, {
|
|
1048
1056
|
default: v(() => [
|
|
1049
1057
|
s(e(O).FmIcon, {
|
|
@@ -1070,7 +1078,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1070
1078
|
file: $e.value,
|
|
1071
1079
|
mode: fe.value.mode,
|
|
1072
1080
|
"edit-view": fe.value,
|
|
1073
|
-
onCancel:
|
|
1081
|
+
onCancel: N,
|
|
1074
1082
|
onConfirm: Ye
|
|
1075
1083
|
}, null, 8, ["file", "mode", "edit-view"])) : y("", !0),
|
|
1076
1084
|
B.value && V.target ? (r(), T(bt, {
|
|
@@ -1078,7 +1086,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1078
1086
|
"image-ref": B.value,
|
|
1079
1087
|
sdk: V.sdk,
|
|
1080
1088
|
target: V.target,
|
|
1081
|
-
onClose:
|
|
1089
|
+
onClose: z[2] || (z[2] = (W) => B.value = null)
|
|
1082
1090
|
}, null, 8, ["image-ref", "sdk", "target"])) : y("", !0)
|
|
1083
1091
|
]),
|
|
1084
1092
|
_: 1
|
|
@@ -1099,8 +1107,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1099
1107
|
create: { type: Function },
|
|
1100
1108
|
dialogCancelName: {}
|
|
1101
1109
|
},
|
|
1102
|
-
setup(
|
|
1103
|
-
const V =
|
|
1110
|
+
setup(Y) {
|
|
1111
|
+
const V = Y, { t: i } = be(), x = R(
|
|
1104
1112
|
() => V.kind === "group" ? {
|
|
1105
1113
|
search: "menu.common.labels.search_groups",
|
|
1106
1114
|
add: "menu.common.actions.add_group",
|
|
@@ -1139,13 +1147,13 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1139
1147
|
(_) => {
|
|
1140
1148
|
var E;
|
|
1141
1149
|
if (!_ || !V.dialogCancelName) return;
|
|
1142
|
-
const F = i("menu.common.actions.cancel"),
|
|
1150
|
+
const F = i("menu.common.actions.cancel"), L = [
|
|
1143
1151
|
...((E = _.closest(".fm-dialog")) == null ? void 0 : E.querySelectorAll("button")) ?? []
|
|
1144
1152
|
].find((G) => {
|
|
1145
1153
|
var A;
|
|
1146
1154
|
return ((A = G.textContent) == null ? void 0 : A.trim()) === F;
|
|
1147
1155
|
});
|
|
1148
|
-
|
|
1156
|
+
L == null || L.setAttribute("aria-label", V.dialogCancelName);
|
|
1149
1157
|
},
|
|
1150
1158
|
{ flush: "post" }
|
|
1151
1159
|
);
|
|
@@ -1153,7 +1161,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1153
1161
|
() => l.value.status === "ready" ? l.value.value : null
|
|
1154
1162
|
);
|
|
1155
1163
|
return (_, F) => {
|
|
1156
|
-
const
|
|
1164
|
+
const L = M("FmSearch"), E = M("FmCheckbox"), G = M("FmButton");
|
|
1157
1165
|
return $.value && (!_.kind || $.value.totalCount > 0) ? (r(), S("div", {
|
|
1158
1166
|
key: 0,
|
|
1159
1167
|
ref_key: "root",
|
|
@@ -1164,7 +1172,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1164
1172
|
])
|
|
1165
1173
|
}, [
|
|
1166
1174
|
n("div", null, [
|
|
1167
|
-
s(
|
|
1175
|
+
s(L, {
|
|
1168
1176
|
"model-value": $.value.query,
|
|
1169
1177
|
placeholder: e(i)(_.kind ? x.value.search : "menu.common.actions.search"),
|
|
1170
1178
|
autofocus: !!_.kind,
|
|
@@ -1176,7 +1184,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1176
1184
|
_.kind ? "flex-1 min-h-0 overflow-y-auto p-8" : "flex flex-col gap-8"
|
|
1177
1185
|
)
|
|
1178
1186
|
}, [
|
|
1179
|
-
(r(!0), S(
|
|
1187
|
+
(r(!0), S(re, null, Fe($.value.choices, (A) => (r(), S("div", {
|
|
1180
1188
|
key: A.id,
|
|
1181
1189
|
class: Be(_.kind ? void 0 : "contents")
|
|
1182
1190
|
}, [
|
|
@@ -1240,8 +1248,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1240
1248
|
min: {}
|
|
1241
1249
|
},
|
|
1242
1250
|
emits: ["update:modelValue", "update:enabled"],
|
|
1243
|
-
setup(
|
|
1244
|
-
const i =
|
|
1251
|
+
setup(Y, { emit: V }) {
|
|
1252
|
+
const i = Y, x = V, o = Pe(), d = X(i.modelValue !== null);
|
|
1245
1253
|
let w = !1;
|
|
1246
1254
|
Ae(
|
|
1247
1255
|
() => i.modelValue,
|
|
@@ -1257,7 +1265,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1257
1265
|
w = l === null, x("update:modelValue", l);
|
|
1258
1266
|
}
|
|
1259
1267
|
return (m, l) => {
|
|
1260
|
-
const $ =
|
|
1268
|
+
const $ = M("FmSwitch"), _ = M("FmStepperField");
|
|
1261
1269
|
return r(), S("div", Tt, [
|
|
1262
1270
|
n("div", At, [
|
|
1263
1271
|
n("p", Bt, I(m.label), 1),
|
|
@@ -1286,7 +1294,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1286
1294
|
]);
|
|
1287
1295
|
};
|
|
1288
1296
|
}
|
|
1289
|
-
}), Dt = ["data-scope-title"], zt = { class: "fm-typo-en-title-md-600 mr-auto" }, Rt = { class: "pt-8 space-y-32" },
|
|
1297
|
+
}), Dt = ["data-scope-title"], zt = { class: "fm-typo-en-title-md-600 mr-auto" }, Rt = { class: "pt-8 space-y-32" }, Mt = { class: "fm-typo-en-title-sm-600" }, Nt = { class: "flex items-end space-x-24" }, Et = { class: "flex" }, qt = { key: 0 }, Gt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, jt = { class: "flex flex-wrap gap-8 mt-8" }, Kt = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 mt-8" }, Qt = { class: "space-y-16" }, Ht = {
|
|
1290
1298
|
key: 1,
|
|
1291
1299
|
class: "flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
|
|
1292
1300
|
}, Xt = { class: "space-y-4" }, Wt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Zt = { class: "xs:overflow-x-scroll" }, Jt = { class: "xs:min-w-[640px]" }, eo = { class: "flex gap-8 items-center justify-start" }, lo = { class: "flex items-center gap-8" }, ao = { class: "grow" }, to = { class: "pt-16 space-y-24" }, oo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = { class: "fm-typo-en-title-sm-600" }, so = { class: "space-y-16" }, io = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ ce({
|
|
@@ -1302,8 +1310,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1302
1310
|
createPriceGroup: { type: Function }
|
|
1303
1311
|
},
|
|
1304
1312
|
emits: ["update:modelValue"],
|
|
1305
|
-
setup(
|
|
1306
|
-
const i =
|
|
1313
|
+
setup(Y, { emit: V }) {
|
|
1314
|
+
const i = Y, x = R(
|
|
1307
1315
|
() => i.presentation === "tree" ? 720 : 800
|
|
1308
1316
|
), o = V, { t: d, n: w } = be(), C = (b) => {
|
|
1309
1317
|
const h = b.code ? d("menu.group.list.product_code_name", {
|
|
@@ -1326,18 +1334,18 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1326
1334
|
}
|
|
1327
1335
|
ke(_);
|
|
1328
1336
|
const F = ye(null);
|
|
1329
|
-
function
|
|
1337
|
+
function L() {
|
|
1330
1338
|
var b;
|
|
1331
1339
|
(b = F.value) == null || b.dispose(), F.value = null;
|
|
1332
1340
|
}
|
|
1333
1341
|
function E(b, h) {
|
|
1334
|
-
|
|
1342
|
+
L(), F.value = i.session.pricingEditor(
|
|
1335
1343
|
b.id,
|
|
1336
1344
|
b.combinationKey,
|
|
1337
1345
|
h
|
|
1338
1346
|
);
|
|
1339
1347
|
}
|
|
1340
|
-
ke(
|
|
1348
|
+
ke(L);
|
|
1341
1349
|
const G = ye(null), A = R(() => [
|
|
1342
1350
|
{
|
|
1343
1351
|
accessorKey: "label",
|
|
@@ -1655,8 +1663,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1655
1663
|
}
|
|
1656
1664
|
return (b, h) => {
|
|
1657
1665
|
var He;
|
|
1658
|
-
const se =
|
|
1659
|
-
return r(), S(
|
|
1666
|
+
const se = M("FmSelect"), de = M("FmButton"), $e = M("FmChip"), fe = M("FmCard"), q = M("FmStepperField"), Z = M("FmFormGroup"), N = M("FmSwitch"), Ie = M("FmIcon"), De = M("FmTable"), Ge = M("FmSideSheet"), Ye = M("ProductGroupSheet", !0);
|
|
1667
|
+
return r(), S(re, null, [
|
|
1660
1668
|
s(Ge, {
|
|
1661
1669
|
"model-value": b.modelValue,
|
|
1662
1670
|
"max-width": x.value,
|
|
@@ -1700,8 +1708,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1700
1708
|
variant: "outlined"
|
|
1701
1709
|
}, {
|
|
1702
1710
|
default: v(() => [
|
|
1703
|
-
n("p",
|
|
1704
|
-
n("div",
|
|
1711
|
+
n("p", Mt, I(e(d)("menu.group.option.variant")), 1),
|
|
1712
|
+
n("div", Nt, [
|
|
1705
1713
|
s(se, {
|
|
1706
1714
|
class: "flex-1",
|
|
1707
1715
|
"aria-label": e(d)("menu.group.option.variant"),
|
|
@@ -1715,14 +1723,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1715
1723
|
}, null, 8, ["aria-label", "menu-z-index", "items", "model-value"]),
|
|
1716
1724
|
n("div", Et, [
|
|
1717
1725
|
s(de, {
|
|
1718
|
-
variant: e(
|
|
1726
|
+
variant: e(Ne).Tertiary,
|
|
1719
1727
|
"prepend-icon": "keyboard_arrow_left",
|
|
1720
1728
|
size: "lg",
|
|
1721
1729
|
"aria-label": e(d)("menu.product.form.group.combination.previous"),
|
|
1722
1730
|
onClick: h[1] || (h[1] = (J) => b.session.stepCombination("previous"))
|
|
1723
1731
|
}, null, 8, ["variant", "aria-label"]),
|
|
1724
1732
|
s(de, {
|
|
1725
|
-
variant: e(
|
|
1733
|
+
variant: e(Ne).Tertiary,
|
|
1726
1734
|
"prepend-icon": "keyboard_arrow_right",
|
|
1727
1735
|
size: "lg",
|
|
1728
1736
|
"aria-label": e(d)("menu.product.form.group.combination.next"),
|
|
@@ -1733,7 +1741,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1733
1741
|
b.view.combinations.length > 1 ? (r(), S("div", qt, [
|
|
1734
1742
|
n("p", Gt, I(e(d)("menu.group.option.show_in_variants")), 1),
|
|
1735
1743
|
n("div", jt, [
|
|
1736
|
-
(r(!0), S(
|
|
1744
|
+
(r(!0), S(re, null, Fe(b.view.combinations, (J) => (r(), T($e, {
|
|
1737
1745
|
key: J.id,
|
|
1738
1746
|
icon: J.hidden ? "visibility_off" : "check",
|
|
1739
1747
|
label: J.label,
|
|
@@ -1807,14 +1815,14 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1807
1815
|
var J;
|
|
1808
1816
|
return [
|
|
1809
1817
|
n("div", Qt, [
|
|
1810
|
-
s(
|
|
1818
|
+
s(N, {
|
|
1811
1819
|
"model-value": b.view.stackable,
|
|
1812
1820
|
disabled: "",
|
|
1813
1821
|
label: e(d)("menu.common.labels.stackable"),
|
|
1814
1822
|
"label-placement": "right",
|
|
1815
1823
|
sublabel: e(d)("menu.common.labels.stackable_sublabel")
|
|
1816
1824
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
1817
|
-
s(
|
|
1825
|
+
s(N, {
|
|
1818
1826
|
"model-value": b.view.hidden,
|
|
1819
1827
|
label: e(d)("menu.common.labels.hide_group"),
|
|
1820
1828
|
"label-placement": "right",
|
|
@@ -1926,10 +1934,10 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1926
1934
|
class: "px-16 py-12"
|
|
1927
1935
|
}, {
|
|
1928
1936
|
default: v(() => {
|
|
1929
|
-
var
|
|
1937
|
+
var D;
|
|
1930
1938
|
return [
|
|
1931
1939
|
n("p", oo, I(e(d)("menu.group.nested.currently_configuring")), 1),
|
|
1932
|
-
n("p", no, I((
|
|
1940
|
+
n("p", no, I((D = G.value) == null ? void 0 : D.name), 1)
|
|
1933
1941
|
];
|
|
1934
1942
|
}),
|
|
1935
1943
|
_: 1
|
|
@@ -1962,7 +1970,7 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1962
1970
|
"z-index": (i.zIndex ?? 200) + 100,
|
|
1963
1971
|
"on-create-price-group": b.createPriceGroup,
|
|
1964
1972
|
"main-pricing-label": !1,
|
|
1965
|
-
onClose:
|
|
1973
|
+
onClose: L
|
|
1966
1974
|
}, null, 8, ["session", "z-index", "on-create-price-group"])) : y("", !0),
|
|
1967
1975
|
g.value && f.value ? (r(), T(Ye, {
|
|
1968
1976
|
key: 2,
|
|
@@ -1988,8 +1996,8 @@ const ml = /* @__PURE__ */ ce({
|
|
|
1988
1996
|
summary: {},
|
|
1989
1997
|
variant: { default: "full" }
|
|
1990
1998
|
},
|
|
1991
|
-
setup(
|
|
1992
|
-
const V =
|
|
1999
|
+
setup(Y) {
|
|
2000
|
+
const V = Y, i = Qe(), { t: x, n: o } = be(), d = x("menu.product.form.summary.empty_value"), w = R(() => [
|
|
1993
2001
|
{
|
|
1994
2002
|
name: x("menu.product.form.summary.fields.code"),
|
|
1995
2003
|
value: V.summary.code ?? d
|
|
@@ -2055,11 +2063,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
2055
2063
|
});
|
|
2056
2064
|
}
|
|
2057
2065
|
return (P, m) => {
|
|
2058
|
-
const l =
|
|
2066
|
+
const l = M("FmButton");
|
|
2059
2067
|
return P.variant === "full" ? (r(), S("div", uo, [
|
|
2060
2068
|
n("div", mo, I(e(x)("menu.product.form.summary.title")), 1),
|
|
2061
2069
|
m[0] || (m[0] = n("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
|
|
2062
|
-
(r(!0), S(
|
|
2070
|
+
(r(!0), S(re, null, Fe(w.value, ($) => (r(), S("div", {
|
|
2063
2071
|
key: $.name,
|
|
2064
2072
|
class: "space-y-4"
|
|
2065
2073
|
}, [
|
|
@@ -2076,11 +2084,11 @@ const ml = /* @__PURE__ */ ce({
|
|
|
2076
2084
|
};
|
|
2077
2085
|
}
|
|
2078
2086
|
});
|
|
2079
|
-
function
|
|
2087
|
+
function Ml(Y, V) {
|
|
2080
2088
|
const i = X(""), x = R(() => i.value.trim().toLowerCase()), o = R(
|
|
2081
|
-
() => x.value ?
|
|
2089
|
+
() => x.value ? Y().filter(
|
|
2082
2090
|
(C) => V(C).toLowerCase().includes(x.value)
|
|
2083
|
-
) :
|
|
2091
|
+
) : Y()
|
|
2084
2092
|
), d = R(
|
|
2085
2093
|
() => x.value !== "" && o.value.length === 0
|
|
2086
2094
|
);
|
|
@@ -2089,14 +2097,14 @@ function Nl(W, V) {
|
|
|
2089
2097
|
}
|
|
2090
2098
|
return { search: i, filtered: o, noMatches: d, reset: w };
|
|
2091
2099
|
}
|
|
2092
|
-
function
|
|
2093
|
-
const
|
|
2100
|
+
function Nl() {
|
|
2101
|
+
const Y = X(), V = X();
|
|
2094
2102
|
let i = !1;
|
|
2095
2103
|
async function x(d) {
|
|
2096
2104
|
var P;
|
|
2097
2105
|
if (i = d, V.value = void 0, !d) return;
|
|
2098
2106
|
await el(), await new Promise(requestAnimationFrame);
|
|
2099
|
-
const w = (P =
|
|
2107
|
+
const w = (P = Y.value) == null ? void 0 : P.parentElement;
|
|
2100
2108
|
if (!i || !w) return;
|
|
2101
2109
|
const C = getComputedStyle(w);
|
|
2102
2110
|
V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
|
|
@@ -2104,7 +2112,7 @@ function Ml() {
|
|
|
2104
2112
|
const o = R(
|
|
2105
2113
|
() => V.value ? { minHeight: `${V.value}px` } : void 0
|
|
2106
2114
|
);
|
|
2107
|
-
return { content:
|
|
2115
|
+
return { content: Y, contentStyle: o, onMenuChanged: x };
|
|
2108
2116
|
}
|
|
2109
2117
|
const bo = {
|
|
2110
2118
|
key: 0,
|
|
@@ -2121,16 +2129,16 @@ const bo = {
|
|
|
2121
2129
|
placeholder: {}
|
|
2122
2130
|
},
|
|
2123
2131
|
emits: ["update:modelValue", "create"],
|
|
2124
|
-
setup(
|
|
2125
|
-
const i =
|
|
2132
|
+
setup(Y, { emit: V }) {
|
|
2133
|
+
const i = Y, x = V, { t: o } = be(), { search: d, filtered: w, noMatches: C, reset: P } = Ml(
|
|
2126
2134
|
() => i.items,
|
|
2127
2135
|
(F) => F.label
|
|
2128
|
-
), { content: m, contentStyle: l, onMenuChanged: $ } =
|
|
2136
|
+
), { content: m, contentStyle: l, onMenuChanged: $ } = Nl();
|
|
2129
2137
|
function _(F) {
|
|
2130
2138
|
F || P(), $(F);
|
|
2131
2139
|
}
|
|
2132
|
-
return (F,
|
|
2133
|
-
const E =
|
|
2140
|
+
return (F, L) => {
|
|
2141
|
+
const E = M("FmSearch"), G = M("FmMenuItem"), A = M("FmButton"), p = M("FmSelect");
|
|
2134
2142
|
return r(), T(p, {
|
|
2135
2143
|
items: F.items,
|
|
2136
2144
|
disabled: F.disabled,
|
|
@@ -2138,7 +2146,7 @@ const bo = {
|
|
|
2138
2146
|
"keep-selection-order": "",
|
|
2139
2147
|
"model-value": F.modelValue,
|
|
2140
2148
|
placeholder: F.placeholder,
|
|
2141
|
-
"onUpdate:modelValue":
|
|
2149
|
+
"onUpdate:modelValue": L[2] || (L[2] = (g) => x("update:modelValue", g ?? [])),
|
|
2142
2150
|
onDropdownChanged: _
|
|
2143
2151
|
}, {
|
|
2144
2152
|
"menu-wrapper": v(({ handleItemChange: g }) => [
|
|
@@ -2151,12 +2159,12 @@ const bo = {
|
|
|
2151
2159
|
F.items.length ? (r(), S("div", bo, [
|
|
2152
2160
|
s(E, {
|
|
2153
2161
|
modelValue: e(d),
|
|
2154
|
-
"onUpdate:modelValue":
|
|
2162
|
+
"onUpdate:modelValue": L[0] || (L[0] = (f) => Ol(d) ? d.value = f : null),
|
|
2155
2163
|
autofocus: "",
|
|
2156
2164
|
placeholder: e(o)("menu.common.actions.search")
|
|
2157
2165
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2158
2166
|
])) : y("", !0),
|
|
2159
|
-
(r(!0), S(
|
|
2167
|
+
(r(!0), S(re, null, Fe(e(w), (f) => (r(), T(G, {
|
|
2160
2168
|
key: f.value,
|
|
2161
2169
|
label: f.label,
|
|
2162
2170
|
"has-checkbox": "",
|
|
@@ -2171,7 +2179,7 @@ const bo = {
|
|
|
2171
2179
|
"prepend-icon": "add",
|
|
2172
2180
|
class: "w-full justify-start",
|
|
2173
2181
|
label: e(o)("menu.product.form.detail.category.add_new"),
|
|
2174
|
-
onClick:
|
|
2182
|
+
onClick: L[1] || (L[1] = (f) => x("create"))
|
|
2175
2183
|
}, null, 8, ["label"])
|
|
2176
2184
|
], 4)
|
|
2177
2185
|
]),
|
|
@@ -2195,15 +2203,15 @@ const bo = {
|
|
|
2195
2203
|
session: {}
|
|
2196
2204
|
},
|
|
2197
2205
|
emits: ["create"],
|
|
2198
|
-
setup(
|
|
2199
|
-
const i =
|
|
2206
|
+
setup(Y, { emit: V }) {
|
|
2207
|
+
const i = Y, x = V, { t: o } = be(), d = Pe(), w = (g) => g.labelMessage ? d(g.labelMessage) : g.label, C = X(!1), P = X(), { search: m, filtered: l, noMatches: $, reset: _ } = Ml(
|
|
2200
2208
|
() => i.view.categoryOptions,
|
|
2201
2209
|
w
|
|
2202
2210
|
), {
|
|
2203
2211
|
content: F,
|
|
2204
|
-
contentStyle:
|
|
2212
|
+
contentStyle: L,
|
|
2205
2213
|
onMenuChanged: E
|
|
2206
|
-
} =
|
|
2214
|
+
} = Nl();
|
|
2207
2215
|
function G(g) {
|
|
2208
2216
|
C.value = g, g || _(), E(g);
|
|
2209
2217
|
}
|
|
@@ -2217,7 +2225,7 @@ const bo = {
|
|
|
2217
2225
|
i.session.selectCategory(g, f), f && ((k = P.value) == null || k.toggleMenu(!1));
|
|
2218
2226
|
}
|
|
2219
2227
|
return (g, f) => {
|
|
2220
|
-
const k =
|
|
2228
|
+
const k = M("FmIcon"), B = M("FmField"), Q = M("FmSearch"), ee = M("FmMenuItem"), a = M("FmButton"), c = M("FmMenu"), ne = M("FmFormGroup"), pe = M("FmChipGroup");
|
|
2221
2229
|
return r(), S("div", {
|
|
2222
2230
|
class: "flex flex-col gap-4",
|
|
2223
2231
|
"aria-label": g.view.categoryLabel === "plural" ? e(o)("menu.product.form.detail.category.label") : e(o)("menu.product.form.detail.category.label_singular")
|
|
@@ -2258,7 +2266,7 @@ const bo = {
|
|
|
2258
2266
|
ref_key: "content",
|
|
2259
2267
|
ref: F,
|
|
2260
2268
|
class: "relative min-w-[112px] py-12 px-4 flex flex-col overflow-y-auto bg-fm-color-neutral-white shadow-light-300 rounded-md",
|
|
2261
|
-
style: pl(e(
|
|
2269
|
+
style: pl(e(L))
|
|
2262
2270
|
}, [
|
|
2263
2271
|
g.view.categoryOptions.length ? (r(), S("div", ho, [
|
|
2264
2272
|
s(Q, {
|
|
@@ -2268,7 +2276,7 @@ const bo = {
|
|
|
2268
2276
|
placeholder: e(o)("menu.common.actions.search")
|
|
2269
2277
|
}, null, 8, ["modelValue", "placeholder"])
|
|
2270
2278
|
])) : y("", !0),
|
|
2271
|
-
(r(!0), S(
|
|
2279
|
+
(r(!0), S(re, null, Fe(e(l), (le) => (r(), T(ee, {
|
|
2272
2280
|
key: le.id,
|
|
2273
2281
|
label: w(le),
|
|
2274
2282
|
"has-checkbox": "",
|
|
@@ -2307,10 +2315,10 @@ const bo = {
|
|
|
2307
2315
|
}, Uo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Io = {
|
|
2308
2316
|
key: 0,
|
|
2309
2317
|
class: "space-y-8"
|
|
2310
|
-
}, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Do = ["aria-expanded"], zo = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" },
|
|
2318
|
+
}, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Do = ["aria-expanded"], zo = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Mo = {
|
|
2311
2319
|
key: 0,
|
|
2312
2320
|
class: "flex flex-col gap-32 pl-32"
|
|
2313
|
-
},
|
|
2321
|
+
}, No = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Eo = {
|
|
2314
2322
|
key: 0,
|
|
2315
2323
|
class: "space-y-8"
|
|
2316
2324
|
}, qo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Go = { class: "flex w-[100px] items-center gap-8 pt-12" }, jo = { class: "fm-typo-en-body-md-400" }, Ko = { class: "flex-1" }, Qo = { class: "w-full flex gap-8 items-center justify-end relative -top-px" }, Ho = /* @__PURE__ */ ce({
|
|
@@ -2322,8 +2330,8 @@ const bo = {
|
|
|
2322
2330
|
initialSection: { default: "name" }
|
|
2323
2331
|
},
|
|
2324
2332
|
emits: ["update:modelValue"],
|
|
2325
|
-
setup(
|
|
2326
|
-
const i =
|
|
2333
|
+
setup(Y, { emit: V }) {
|
|
2334
|
+
const i = Y, x = V, { t: o } = be(), d = Qe(), w = R({
|
|
2327
2335
|
get: () => i.modelValue,
|
|
2328
2336
|
set: (f) => {
|
|
2329
2337
|
f ? x("update:modelValue", f) : p();
|
|
@@ -2373,7 +2381,7 @@ const bo = {
|
|
|
2373
2381
|
)
|
|
2374
2382
|
);
|
|
2375
2383
|
}
|
|
2376
|
-
function
|
|
2384
|
+
function L(f, k) {
|
|
2377
2385
|
_(
|
|
2378
2386
|
m.value.map(
|
|
2379
2387
|
(B) => B.code === f ? { ...B, description: k } : B
|
|
@@ -2414,7 +2422,7 @@ const bo = {
|
|
|
2414
2422
|
}).onPrimary(p);
|
|
2415
2423
|
}
|
|
2416
2424
|
return (f, k) => {
|
|
2417
|
-
const B =
|
|
2425
|
+
const B = M("FmIcon"), Q = M("FmTextarea"), ee = M("FmButton"), a = M("FmDialog");
|
|
2418
2426
|
return r(), T(a, {
|
|
2419
2427
|
modelValue: w.value,
|
|
2420
2428
|
"onUpdate:modelValue": k[4] || (k[4] = (c) => w.value = c),
|
|
@@ -2481,7 +2489,7 @@ const bo = {
|
|
|
2481
2489
|
]),
|
|
2482
2490
|
m.value.length > 0 ? (r(), S("div", Io, [
|
|
2483
2491
|
n("p", To, I(e(o)("menu.common.translation.translation_label")), 1),
|
|
2484
|
-
(r(!0), S(
|
|
2492
|
+
(r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
|
|
2485
2493
|
key: c.code,
|
|
2486
2494
|
class: "flex gap-16 items-center"
|
|
2487
2495
|
}, [
|
|
@@ -2520,9 +2528,9 @@ const bo = {
|
|
|
2520
2528
|
n("span", Ro, I(e(o)("menu.product.translation.optional")), 1)
|
|
2521
2529
|
])
|
|
2522
2530
|
], 8, Do),
|
|
2523
|
-
P.value ? (r(), S("div",
|
|
2531
|
+
P.value ? (r(), S("div", Mo, [
|
|
2524
2532
|
n("div", null, [
|
|
2525
|
-
n("p",
|
|
2533
|
+
n("p", No, I(e(o)("menu.common.translation.default")), 1),
|
|
2526
2534
|
n("div", {
|
|
2527
2535
|
class: Be(["-mt-px", {
|
|
2528
2536
|
"mb-px product-translation-empty-textarea": m.value.length === 0
|
|
@@ -2538,7 +2546,7 @@ const bo = {
|
|
|
2538
2546
|
]),
|
|
2539
2547
|
m.value.length > 0 ? (r(), S("div", Eo, [
|
|
2540
2548
|
n("p", qo, I(e(o)("menu.common.translation.translation_label")), 1),
|
|
2541
|
-
(r(!0), S(
|
|
2549
|
+
(r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
|
|
2542
2550
|
key: c.code,
|
|
2543
2551
|
class: "flex gap-16 items-start"
|
|
2544
2552
|
}, [
|
|
@@ -2553,7 +2561,7 @@ const bo = {
|
|
|
2553
2561
|
"aria-label": l(c.label),
|
|
2554
2562
|
"model-value": c.description,
|
|
2555
2563
|
placeholder: e(o)("menu.product.translation.placeholder"),
|
|
2556
|
-
"onUpdate:modelValue": (ne) =>
|
|
2564
|
+
"onUpdate:modelValue": (ne) => L(c.code, String(ne ?? ""))
|
|
2557
2565
|
}, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
|
|
2558
2566
|
])
|
|
2559
2567
|
]))), 128))
|
|
@@ -2581,10 +2589,10 @@ const bo = {
|
|
|
2581
2589
|
}, Un = { class: "flex flex-col space-y-4" }, In = { class: "fm-typo-en-body-lg-600" }, Tn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = { class: "flex items-center gap-16" }, Bn = { class: "space-y-16" }, On = { class: "space-y-8" }, Ln = {
|
|
2582
2590
|
key: 0,
|
|
2583
2591
|
class: "pl-32 pb-4 flex items-center gap-16"
|
|
2584
|
-
}, Dn = { class: "fm-typo-en-body-lg-400" }, zn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" },
|
|
2592
|
+
}, Dn = { class: "fm-typo-en-body-lg-400" }, zn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" }, Mn = {
|
|
2585
2593
|
key: 0,
|
|
2586
2594
|
class: "space-y-8"
|
|
2587
|
-
},
|
|
2595
|
+
}, Nn = {
|
|
2588
2596
|
key: 0,
|
|
2589
2597
|
class: "pl-32 pb-4 flex space-x-16"
|
|
2590
2598
|
}, En = { class: "w-[258px] xs:w-full" }, qn = {
|
|
@@ -2632,8 +2640,8 @@ const bo = {
|
|
|
2632
2640
|
sdk: {}
|
|
2633
2641
|
},
|
|
2634
2642
|
emits: ["select-scope", "create-entity"],
|
|
2635
|
-
setup(
|
|
2636
|
-
const i =
|
|
2643
|
+
setup(Y, { emit: V }) {
|
|
2644
|
+
const i = Y, x = X(null);
|
|
2637
2645
|
Ae(
|
|
2638
2646
|
() => [i.treeSelection, i.view.itemId],
|
|
2639
2647
|
async ([u]) => {
|
|
@@ -2692,7 +2700,7 @@ const bo = {
|
|
|
2692
2700
|
count: u.variantCount
|
|
2693
2701
|
})
|
|
2694
2702
|
}) : t;
|
|
2695
|
-
},
|
|
2703
|
+
}, L = (u) => u.reduce((t, j) => {
|
|
2696
2704
|
const te = F(j);
|
|
2697
2705
|
return t ? l("menu.group.list.join_products", { list: t, item: te }) : te;
|
|
2698
2706
|
}, ""), E = Qe();
|
|
@@ -2735,7 +2743,7 @@ const bo = {
|
|
|
2735
2743
|
},
|
|
2736
2744
|
tertiaryActions: {
|
|
2737
2745
|
text: l("menu.product.form.order_pacing.time_presets.add_preset"),
|
|
2738
|
-
variant:
|
|
2746
|
+
variant: Ne.Plain,
|
|
2739
2747
|
close: !1
|
|
2740
2748
|
}
|
|
2741
2749
|
}).onPrimary(() => {
|
|
@@ -2841,7 +2849,7 @@ const bo = {
|
|
|
2841
2849
|
label: l(u === null ? "menu.product.form.detail.order_from.default" : zl[u]),
|
|
2842
2850
|
value: u
|
|
2843
2851
|
}))
|
|
2844
|
-
),
|
|
2852
|
+
), N = R(() => [...a.value.priceTierRows]), Ie = R(
|
|
2845
2853
|
() => a.value.showVariantMemberPricing
|
|
2846
2854
|
), De = R(() => [
|
|
2847
2855
|
{
|
|
@@ -2875,7 +2883,7 @@ const bo = {
|
|
|
2875
2883
|
O.FmButton,
|
|
2876
2884
|
{
|
|
2877
2885
|
label: l("menu.product.form.member_price.configure.title"),
|
|
2878
|
-
variant:
|
|
2886
|
+
variant: Ne.Plain,
|
|
2879
2887
|
// This is the product form's per-tier member-price action. Its
|
|
2880
2888
|
// nested pricing-sheet counterpart uses "Configure member price",
|
|
2881
2889
|
// so the two independently addressable surfaces stay distinct.
|
|
@@ -3018,7 +3026,7 @@ const bo = {
|
|
|
3018
3026
|
H(
|
|
3019
3027
|
O.FmButton,
|
|
3020
3028
|
{
|
|
3021
|
-
variant:
|
|
3029
|
+
variant: Ne.Plain,
|
|
3022
3030
|
label: l(
|
|
3023
3031
|
"menu.product.form.member_price.configure.title"
|
|
3024
3032
|
),
|
|
@@ -3134,7 +3142,7 @@ const bo = {
|
|
|
3134
3142
|
header: () => l("menu.group.list.columns.products"),
|
|
3135
3143
|
enableSorting: !1,
|
|
3136
3144
|
size: 200,
|
|
3137
|
-
cell: (u) =>
|
|
3145
|
+
cell: (u) => L(u.getValue())
|
|
3138
3146
|
},
|
|
3139
3147
|
{
|
|
3140
3148
|
id: "actions",
|
|
@@ -3149,7 +3157,7 @@ const bo = {
|
|
|
3149
3157
|
[
|
|
3150
3158
|
H(O.FmButton, {
|
|
3151
3159
|
icon: "delete",
|
|
3152
|
-
variant:
|
|
3160
|
+
variant: Ne.Tertiary,
|
|
3153
3161
|
textColor: "neutral-gray-400",
|
|
3154
3162
|
"aria-label": l("menu.common.labels.a11y_labelled_name", {
|
|
3155
3163
|
label: l("menu.product.form.group.actions.detach"),
|
|
@@ -3159,7 +3167,7 @@ const bo = {
|
|
|
3159
3167
|
}),
|
|
3160
3168
|
H(O.FmButton, {
|
|
3161
3169
|
icon: "edit",
|
|
3162
|
-
variant:
|
|
3170
|
+
variant: Ne.Tertiary,
|
|
3163
3171
|
textColor: "neutral-gray-400",
|
|
3164
3172
|
// A normal group is never editable from the product form, a dynamic
|
|
3165
3173
|
// one always is, and a product group only under
|
|
@@ -3169,7 +3177,7 @@ const bo = {
|
|
|
3169
3177
|
label: l("menu.product.form.group.actions.edit"),
|
|
3170
3178
|
name: t.label
|
|
3171
3179
|
}),
|
|
3172
|
-
onClick: () =>
|
|
3180
|
+
onClick: () => ie(t)
|
|
3173
3181
|
})
|
|
3174
3182
|
]
|
|
3175
3183
|
);
|
|
@@ -3178,15 +3186,15 @@ const bo = {
|
|
|
3178
3186
|
]), J = X(!1), we = ye(
|
|
3179
3187
|
null
|
|
3180
3188
|
);
|
|
3181
|
-
let
|
|
3182
|
-
function
|
|
3183
|
-
|
|
3189
|
+
let D = null, z = null;
|
|
3190
|
+
function W() {
|
|
3191
|
+
z == null || z(), z = null, D == null || D.dispose(), D = null, we.value = null, J.value = !1;
|
|
3184
3192
|
}
|
|
3185
|
-
function
|
|
3193
|
+
function ie(u) {
|
|
3186
3194
|
if (u.edit.state !== "allowed") return;
|
|
3187
|
-
|
|
3195
|
+
W();
|
|
3188
3196
|
const t = i.session.groupEditor(u.id);
|
|
3189
|
-
|
|
3197
|
+
D = t, we.value = t.get(), z = t.subscribe((j) => {
|
|
3190
3198
|
we.value = j;
|
|
3191
3199
|
}), J.value = !0;
|
|
3192
3200
|
}
|
|
@@ -3196,7 +3204,7 @@ const bo = {
|
|
|
3196
3204
|
return ((u = we.value) == null ? void 0 : u.status) === "ready" ? we.value.value : null;
|
|
3197
3205
|
}
|
|
3198
3206
|
);
|
|
3199
|
-
ke(
|
|
3207
|
+
ke(W);
|
|
3200
3208
|
const Xe = R(
|
|
3201
3209
|
() => a.value.inventoryRows.map((u) => ({
|
|
3202
3210
|
_id: u.key,
|
|
@@ -3280,7 +3288,7 @@ const bo = {
|
|
|
3280
3288
|
// Legacy appends the same "Add new" row to this menu
|
|
3281
3289
|
// (`ProductTakeaway.vue:108-128`).
|
|
3282
3290
|
"append-menu": () => H(O.FmButton, {
|
|
3283
|
-
variant:
|
|
3291
|
+
variant: Ne.Plain,
|
|
3284
3292
|
prependIcon: "add",
|
|
3285
3293
|
class: "w-full justify-start",
|
|
3286
3294
|
label: l("menu.product.form.takeaway.options.add_new"),
|
|
@@ -3357,8 +3365,8 @@ const bo = {
|
|
|
3357
3365
|
{ flush: "pre" }
|
|
3358
3366
|
), (u, t) => {
|
|
3359
3367
|
var xl;
|
|
3360
|
-
const j =
|
|
3361
|
-
return r(), S(
|
|
3368
|
+
const j = M("FmBreadcrumb"), te = M("FmSelect"), oe = M("FmButton"), Ve = M("FmTooltip"), al = M("FmTextarea"), tl = M("FmRadio"), Kl = M("FmSnackbar"), _l = M("FmRadioGroup"), hl = M("FmFormGroup"), kl = M("FmStepperField"), Ql = M("FmIcon"), Ze = M("FmTable"), Me = M("FmCheckbox"), wl = M("FmSwitch");
|
|
3369
|
+
return r(), S(re, null, [
|
|
3362
3370
|
n("div", {
|
|
3363
3371
|
ref_key: "formRoot",
|
|
3364
3372
|
ref: x,
|
|
@@ -3473,7 +3481,7 @@ const bo = {
|
|
|
3473
3481
|
}, {
|
|
3474
3482
|
content: v(() => [
|
|
3475
3483
|
n("div", un, [
|
|
3476
|
-
(r(!0), S(
|
|
3484
|
+
(r(!0), S(re, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
|
|
3477
3485
|
key: U.locale
|
|
3478
3486
|
}, I(e(l)("menu.common.translation.tooltip_value", {
|
|
3479
3487
|
value: U.value,
|
|
@@ -3532,7 +3540,7 @@ const bo = {
|
|
|
3532
3540
|
}, {
|
|
3533
3541
|
content: v(() => [
|
|
3534
3542
|
n("div", vn, [
|
|
3535
|
-
(r(!0), S(
|
|
3543
|
+
(r(!0), S(re, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
|
|
3536
3544
|
key: U.locale
|
|
3537
3545
|
}, I(e(l)("menu.common.translation.tooltip_value", {
|
|
3538
3546
|
value: U.value,
|
|
@@ -3712,7 +3720,7 @@ const bo = {
|
|
|
3712
3720
|
}, {
|
|
3713
3721
|
default: v(() => [
|
|
3714
3722
|
n("div", hn, [
|
|
3715
|
-
(r(), S(
|
|
3723
|
+
(r(), S(re, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
|
|
3716
3724
|
key: U,
|
|
3717
3725
|
class: "flex flex-col gap-16 p-16 border-b last:border-b-0 border-fm-color-neutral-gray-100"
|
|
3718
3726
|
}, [
|
|
@@ -3732,7 +3740,7 @@ const bo = {
|
|
|
3732
3740
|
])
|
|
3733
3741
|
]),
|
|
3734
3742
|
n("div", Fn, [
|
|
3735
|
-
(r(), S(
|
|
3743
|
+
(r(), S(re, null, Fe(["min", "max"], (he) => {
|
|
3736
3744
|
var ol;
|
|
3737
3745
|
return s(Lt, {
|
|
3738
3746
|
key: he,
|
|
@@ -3921,8 +3929,8 @@ const bo = {
|
|
|
3921
3929
|
default: v(() => [
|
|
3922
3930
|
s(Ze, {
|
|
3923
3931
|
"column-defs": De.value,
|
|
3924
|
-
"row-data":
|
|
3925
|
-
"page-size":
|
|
3932
|
+
"row-data": N.value,
|
|
3933
|
+
"page-size": N.value.length,
|
|
3926
3934
|
"hide-footer": ""
|
|
3927
3935
|
}, null, 8, ["column-defs", "row-data", "page-size"])
|
|
3928
3936
|
]),
|
|
@@ -3935,7 +3943,7 @@ const bo = {
|
|
|
3935
3943
|
var ae, Se;
|
|
3936
3944
|
return [
|
|
3937
3945
|
n("div", Bn, [
|
|
3938
|
-
s(
|
|
3946
|
+
s(Me, {
|
|
3939
3947
|
disabled: a.value.editOpenPrice.state !== "allowed",
|
|
3940
3948
|
label: e(l)("menu.product.form.price.settings.open_price.label"),
|
|
3941
3949
|
sublabel: e(l)("menu.product.form.price.settings.open_price.sublabel"),
|
|
@@ -3944,7 +3952,7 @@ const bo = {
|
|
|
3944
3952
|
"onUpdate:modelValue": t[29] || (t[29] = (U) => c.value.setOpenPrice(!!U))
|
|
3945
3953
|
}, null, 8, ["disabled", "label", "sublabel", "model-value"]),
|
|
3946
3954
|
n("div", On, [
|
|
3947
|
-
s(
|
|
3955
|
+
s(Me, {
|
|
3948
3956
|
disabled: a.value.editUnitSale.state !== "allowed",
|
|
3949
3957
|
label: e(l)("menu.product.form.price.settings.sell_by_unit.label"),
|
|
3950
3958
|
sublabel: e(l)("menu.product.form.price.settings.sell_by_unit.sublabel"),
|
|
@@ -4005,14 +4013,14 @@ const bo = {
|
|
|
4005
4013
|
])
|
|
4006
4014
|
])) : y("", !0)
|
|
4007
4015
|
]),
|
|
4008
|
-
a.value.editCosting.state === "allowed" ? (r(), S("div",
|
|
4009
|
-
s(
|
|
4016
|
+
a.value.editCosting.state === "allowed" ? (r(), S("div", Mn, [
|
|
4017
|
+
s(Me, {
|
|
4010
4018
|
label: e(l)("menu.product.form.price.settings.track_costing.label"),
|
|
4011
4019
|
"model-value": a.value.costingAmount !== null,
|
|
4012
4020
|
value: "",
|
|
4013
4021
|
"onUpdate:modelValue": t[33] || (t[33] = (U) => c.value.setCostingAmount(U ? 0 : null))
|
|
4014
4022
|
}, null, 8, ["label", "model-value"]),
|
|
4015
|
-
a.value.costingAmount !== null ? (r(), S("div",
|
|
4023
|
+
a.value.costingAmount !== null ? (r(), S("div", Nn, [
|
|
4016
4024
|
n("div", En, [
|
|
4017
4025
|
s(Ke, Ce({
|
|
4018
4026
|
class: "w-full",
|
|
@@ -4029,7 +4037,7 @@ const bo = {
|
|
|
4029
4037
|
])) : y("", !0)
|
|
4030
4038
|
])) : y("", !0),
|
|
4031
4039
|
a.value.editMinimumPrice.state !== "hidden" ? (r(), S("div", qn, [
|
|
4032
|
-
s(
|
|
4040
|
+
s(Me, {
|
|
4033
4041
|
label: e(l)("menu.product.form.price.settings.min_price.label"),
|
|
4034
4042
|
disabled: a.value.editMinimumPrice.state !== "allowed",
|
|
4035
4043
|
"model-value": a.value.minimumPriceAmount !== null,
|
|
@@ -4063,11 +4071,11 @@ const bo = {
|
|
|
4063
4071
|
}, {
|
|
4064
4072
|
default: v(() => [
|
|
4065
4073
|
n("div", Kn, [
|
|
4066
|
-
(r(!0), S(
|
|
4074
|
+
(r(!0), S(re, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
|
|
4067
4075
|
key: ae.code,
|
|
4068
4076
|
class: "space-y-8"
|
|
4069
4077
|
}, [
|
|
4070
|
-
s(
|
|
4078
|
+
s(Me, {
|
|
4071
4079
|
label: ae.name,
|
|
4072
4080
|
sublabel: e(l)("menu.product.form.price.statutory_charges.unit_amount", {
|
|
4073
4081
|
amount: ve(ae)
|
|
@@ -4193,7 +4201,7 @@ const bo = {
|
|
|
4193
4201
|
}, ["stop"]))
|
|
4194
4202
|
}, null, 8, ["disabled", "aria-label"])) : y("", !0)
|
|
4195
4203
|
]),
|
|
4196
|
-
s(
|
|
4204
|
+
s(Me, {
|
|
4197
4205
|
class: "flex-1",
|
|
4198
4206
|
label: me.label,
|
|
4199
4207
|
"model-value": [...((Se = a.value.print) == null ? void 0 : Se.departmentIds) ?? []],
|
|
@@ -4404,7 +4412,7 @@ const bo = {
|
|
|
4404
4412
|
}, {
|
|
4405
4413
|
default: v(() => [
|
|
4406
4414
|
u.presentation !== "tree" || a.value.editTakeawayPos.state === "allowed" || a.value.editTakeawayApp.state === "allowed" ? (r(), S("div", cs, [
|
|
4407
|
-
a.value.editTakeawayPos.state === "allowed" ? (r(), T(
|
|
4415
|
+
a.value.editTakeawayPos.state === "allowed" ? (r(), T(Me, {
|
|
4408
4416
|
key: 0,
|
|
4409
4417
|
label: e(l)("menu.product.form.takeaway.takeawayConfig.pos.label"),
|
|
4410
4418
|
sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.pos.sublabel"),
|
|
@@ -4412,7 +4420,7 @@ const bo = {
|
|
|
4412
4420
|
value: "",
|
|
4413
4421
|
"onUpdate:modelValue": t[51] || (t[51] = (K) => c.value.setTakeawayConfig({ pos: !!K }))
|
|
4414
4422
|
}, null, 8, ["label", "sublabel", "model-value"])) : y("", !0),
|
|
4415
|
-
a.value.editTakeawayApp.state === "allowed" ? (r(), T(
|
|
4423
|
+
a.value.editTakeawayApp.state === "allowed" ? (r(), T(Me, {
|
|
4416
4424
|
key: 1,
|
|
4417
4425
|
label: e(l)("menu.product.form.takeaway.takeawayConfig.app.label"),
|
|
4418
4426
|
sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.app.sublabel"),
|
|
@@ -4504,11 +4512,11 @@ const bo = {
|
|
|
4504
4512
|
key: 1,
|
|
4505
4513
|
"model-value": J.value,
|
|
4506
4514
|
view: _e.value,
|
|
4507
|
-
session: e(
|
|
4515
|
+
session: e(D),
|
|
4508
4516
|
"order-from-options": a.value.orderFromOptions,
|
|
4509
4517
|
presentation: u.presentation,
|
|
4510
4518
|
"create-price-group": w,
|
|
4511
|
-
"onUpdate:modelValue": t[56] || (t[56] = (K) => K ||
|
|
4519
|
+
"onUpdate:modelValue": t[56] || (t[56] = (K) => K || W())
|
|
4512
4520
|
}, null, 8, ["model-value", "view", "session", "order-from-options", "presentation"])) : y("", !0),
|
|
4513
4521
|
ze.value ? (r(), T(Rl, {
|
|
4514
4522
|
key: 2,
|
|
@@ -4535,8 +4543,8 @@ const bo = {
|
|
|
4535
4543
|
label: {},
|
|
4536
4544
|
validation: {}
|
|
4537
4545
|
},
|
|
4538
|
-
setup(
|
|
4539
|
-
const V =
|
|
4546
|
+
setup(Y) {
|
|
4547
|
+
const V = Y, { t: i } = be(), x = Pe(), { run: o } = Ue(), d = Le(V.session), w = R(
|
|
4540
4548
|
() => d.value.status === "ready" ? d.value.value : null
|
|
4541
4549
|
), C = R(
|
|
4542
4550
|
() => w.value ? V.validation.issue(w.value.fieldIssues, "name") ?? w.value.nameIssue : null
|
|
@@ -4552,7 +4560,7 @@ const bo = {
|
|
|
4552
4560
|
var g;
|
|
4553
4561
|
$ == null || $(), $ = null, p && ((g = P.value) == null || g.dispose()), P.value = null, m.value = null, l.value = !1;
|
|
4554
4562
|
}
|
|
4555
|
-
function
|
|
4563
|
+
function L() {
|
|
4556
4564
|
var g;
|
|
4557
4565
|
if (((g = w.value) == null ? void 0 : g.translation.state) !== "allowed") return;
|
|
4558
4566
|
F(!0);
|
|
@@ -4585,8 +4593,8 @@ const bo = {
|
|
|
4585
4593
|
F(!0), V.session.dispose();
|
|
4586
4594
|
}), (p, g) => {
|
|
4587
4595
|
var k;
|
|
4588
|
-
const f =
|
|
4589
|
-
return r(), S(
|
|
4596
|
+
const f = M("FmButton");
|
|
4597
|
+
return r(), S(re, null, [
|
|
4590
4598
|
s(ge, Ce(
|
|
4591
4599
|
{
|
|
4592
4600
|
"model-value": ((k = w.value) == null ? void 0 : k.name) ?? "",
|
|
@@ -4608,7 +4616,7 @@ const bo = {
|
|
|
4608
4616
|
class: "!p-0",
|
|
4609
4617
|
icon: "g_translate",
|
|
4610
4618
|
variant: "tertiary",
|
|
4611
|
-
onClick:
|
|
4619
|
+
onClick: L
|
|
4612
4620
|
}, null, 8, ["aria-label", "disabled"])
|
|
4613
4621
|
];
|
|
4614
4622
|
}),
|
|
@@ -4647,8 +4655,8 @@ const bo = {
|
|
|
4647
4655
|
label: {},
|
|
4648
4656
|
validation: {}
|
|
4649
4657
|
},
|
|
4650
|
-
setup(
|
|
4651
|
-
const V =
|
|
4658
|
+
setup(Y) {
|
|
4659
|
+
const V = Y, { t: i } = be(), x = Pe(), o = Le(V.session), d = R(
|
|
4652
4660
|
() => o.value.status === "ready" ? o.value.value : null
|
|
4653
4661
|
), w = R(
|
|
4654
4662
|
() => d.value ? V.validation.issue(d.value.fieldIssues, "name") ?? d.value.nameIssue : null
|
|
@@ -4665,9 +4673,9 @@ const bo = {
|
|
|
4665
4673
|
}
|
|
4666
4674
|
return ke(() => V.session.dispose()), ($, _) => {
|
|
4667
4675
|
var E;
|
|
4668
|
-
const F =
|
|
4669
|
-
return r(), S(
|
|
4670
|
-
s(
|
|
4676
|
+
const F = M("FmButton"), L = M("FmTextField");
|
|
4677
|
+
return r(), S(re, null, [
|
|
4678
|
+
s(L, Ce(
|
|
4671
4679
|
{
|
|
4672
4680
|
autofocus: "",
|
|
4673
4681
|
"error-messages": w.value ? [e(x)(w.value)] : [],
|
|
@@ -4718,8 +4726,8 @@ const bo = {
|
|
|
4718
4726
|
initialProductIds: {}
|
|
4719
4727
|
},
|
|
4720
4728
|
emits: ["close", "created"],
|
|
4721
|
-
setup(
|
|
4722
|
-
const i =
|
|
4729
|
+
setup(Y, { emit: V }) {
|
|
4730
|
+
const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = i.sdk.orderPacing.editor(), C = ll(() => w);
|
|
4723
4731
|
w.setLinkedProducts(i.initialProductIds);
|
|
4724
4732
|
const P = Le(w), m = R(
|
|
4725
4733
|
() => P.value.status === "ready" ? P.value.value : null
|
|
@@ -4781,16 +4789,16 @@ const bo = {
|
|
|
4781
4789
|
onClick: () => w.unlinkProduct(f.row.original.productId)
|
|
4782
4790
|
})
|
|
4783
4791
|
}
|
|
4784
|
-
]), F = X(!1),
|
|
4792
|
+
]), F = X(!1), L = X(!1);
|
|
4785
4793
|
function E() {
|
|
4786
4794
|
var f;
|
|
4787
|
-
((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(),
|
|
4795
|
+
((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), L.value = !0);
|
|
4788
4796
|
}
|
|
4789
4797
|
function G() {
|
|
4790
|
-
w.saveTranslationEdit(),
|
|
4798
|
+
w.saveTranslationEdit(), L.value = !1;
|
|
4791
4799
|
}
|
|
4792
4800
|
function A() {
|
|
4793
|
-
w.discardTranslationEdit(),
|
|
4801
|
+
w.discardTranslationEdit(), L.value = !1;
|
|
4794
4802
|
}
|
|
4795
4803
|
ke(() => w.dispose());
|
|
4796
4804
|
async function p() {
|
|
@@ -4808,8 +4816,8 @@ const bo = {
|
|
|
4808
4816
|
}
|
|
4809
4817
|
return (f, k) => {
|
|
4810
4818
|
var a;
|
|
4811
|
-
const B =
|
|
4812
|
-
return r(), S(
|
|
4819
|
+
const B = M("FmButton"), Q = M("FmTable"), ee = M("FmSideSheet");
|
|
4820
|
+
return r(), S(re, null, [
|
|
4813
4821
|
s(ee, {
|
|
4814
4822
|
"model-value": !0,
|
|
4815
4823
|
"is-container": e(O).FmForm,
|
|
@@ -4897,8 +4905,8 @@ const bo = {
|
|
|
4897
4905
|
}, 8, ["is-container", "is-container-props"]),
|
|
4898
4906
|
m.value ? (r(), T(il, {
|
|
4899
4907
|
key: 0,
|
|
4900
|
-
modelValue:
|
|
4901
|
-
"onUpdate:modelValue": k[3] || (k[3] = (c) =>
|
|
4908
|
+
modelValue: L.value,
|
|
4909
|
+
"onUpdate:modelValue": k[3] || (k[3] = (c) => L.value = c),
|
|
4902
4910
|
dirty: m.value.translationDirty,
|
|
4903
4911
|
name: m.value.name,
|
|
4904
4912
|
"name-locale": m.value.nameLocale,
|
|
@@ -4926,29 +4934,29 @@ const bo = {
|
|
|
4926
4934
|
sdk: {}
|
|
4927
4935
|
},
|
|
4928
4936
|
emits: ["close", "created"],
|
|
4929
|
-
setup(
|
|
4930
|
-
const i =
|
|
4937
|
+
setup(Y, { emit: V }) {
|
|
4938
|
+
const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.printDepartment.editor(), P = Le(C), m = R(
|
|
4931
4939
|
() => P.value.status === "ready" ? P.value.value : null
|
|
4932
4940
|
), l = ll(() => C), $ = R(
|
|
4933
4941
|
() => m.value ? l.issue(m.value.fieldIssues, "name") : null
|
|
4934
4942
|
);
|
|
4935
4943
|
ke(() => C.dispose());
|
|
4936
4944
|
const _ = R(() => {
|
|
4937
|
-
const
|
|
4938
|
-
return
|
|
4945
|
+
const L = $.value;
|
|
4946
|
+
return L ? L.code !== $s ? d(L) : o("menu.print_dept.validation.name_required") : "";
|
|
4939
4947
|
});
|
|
4940
4948
|
async function F() {
|
|
4941
4949
|
var G;
|
|
4942
|
-
const
|
|
4950
|
+
const L = ((G = m.value) == null ? void 0 : G.name) ?? "";
|
|
4943
4951
|
(await w(() => l.submit(() => C.submit()), {
|
|
4944
4952
|
showLoading: () => {
|
|
4945
4953
|
var A;
|
|
4946
4954
|
return ((A = m.value) == null ? void 0 : A.status) === "submitting";
|
|
4947
4955
|
}
|
|
4948
|
-
})).kind === "success" && (x("created",
|
|
4956
|
+
})).kind === "success" && (x("created", L), x("close"));
|
|
4949
4957
|
}
|
|
4950
|
-
return (
|
|
4951
|
-
const G =
|
|
4958
|
+
return (L, E) => {
|
|
4959
|
+
const G = M("FmButton"), A = M("FmSideSheet");
|
|
4952
4960
|
return r(), T(A, {
|
|
4953
4961
|
"model-value": !0,
|
|
4954
4962
|
"is-container": e(O).FmForm,
|
|
@@ -5004,8 +5012,8 @@ const bo = {
|
|
|
5004
5012
|
sdk: {}
|
|
5005
5013
|
},
|
|
5006
5014
|
emits: ["close", "created"],
|
|
5007
|
-
setup(
|
|
5008
|
-
const i =
|
|
5015
|
+
setup(Y, { emit: V }) {
|
|
5016
|
+
const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.takeaway.editor(), P = Le(C), m = R(
|
|
5009
5017
|
() => P.value.status === "ready" ? P.value.value : null
|
|
5010
5018
|
), l = ll(() => C), $ = R(
|
|
5011
5019
|
() => m.value ? l.issue(m.value.fieldIssues, "name") : null
|
|
@@ -5016,7 +5024,7 @@ const bo = {
|
|
|
5016
5024
|
var A;
|
|
5017
5025
|
((A = m.value) == null ? void 0 : A.translation.state) === "allowed" && (C.beginTranslationEdit(), _.value = !0);
|
|
5018
5026
|
}
|
|
5019
|
-
function
|
|
5027
|
+
function L() {
|
|
5020
5028
|
C.saveTranslationEdit(), _.value = !1;
|
|
5021
5029
|
}
|
|
5022
5030
|
function E() {
|
|
@@ -5033,8 +5041,8 @@ const bo = {
|
|
|
5033
5041
|
})).kind === "success" && (x("created", A), x("close"));
|
|
5034
5042
|
}
|
|
5035
5043
|
return (A, p) => {
|
|
5036
|
-
const g =
|
|
5037
|
-
return r(), S(
|
|
5044
|
+
const g = M("FmButton"), f = M("FmSideSheet");
|
|
5045
|
+
return r(), S(re, null, [
|
|
5038
5046
|
s(f, {
|
|
5039
5047
|
"model-value": !0,
|
|
5040
5048
|
"is-container": e(O).FmForm,
|
|
@@ -5128,7 +5136,7 @@ const bo = {
|
|
|
5128
5136
|
entity: e(o)("menu.takeaway.title")
|
|
5129
5137
|
}),
|
|
5130
5138
|
onDiscard: E,
|
|
5131
|
-
onSave:
|
|
5139
|
+
onSave: L,
|
|
5132
5140
|
"onUpdate:name": e(C).setName,
|
|
5133
5141
|
"onUpdate:nameLocale": e(C).setNameLocale
|
|
5134
5142
|
}, null, 8, ["modelValue", "dirty", "name", "name-locale", "supported-locales", "title", "name-section-label", "onUpdate:name", "onUpdate:nameLocale"])) : y("", !0)
|
|
@@ -5151,15 +5159,15 @@ const bo = {
|
|
|
5151
5159
|
sdk: {}
|
|
5152
5160
|
},
|
|
5153
5161
|
emits: ["close", "created"],
|
|
5154
|
-
setup(
|
|
5155
|
-
const i =
|
|
5162
|
+
setup(Y, { emit: V }) {
|
|
5163
|
+
const i = Y, x = V, { t: o } = be(), d = Qe(), w = Pe(), { run: C } = Ue(), P = i.sdk.variant.editor(), m = Le(P), l = R(
|
|
5156
5164
|
() => m.value.status === "ready" ? m.value.value : null
|
|
5157
5165
|
), $ = ll(() => P), _ = R(
|
|
5158
5166
|
() => l.value ? $.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
|
|
5159
5167
|
), F = R(
|
|
5160
5168
|
() => l.value ? $.issue(l.value.fieldIssues, "options") ?? l.value.optionsIssue : null
|
|
5161
5169
|
);
|
|
5162
|
-
function
|
|
5170
|
+
function L(ee) {
|
|
5163
5171
|
const { ref: a, ...c } = $.field(
|
|
5164
5172
|
"options",
|
|
5165
5173
|
(ne) => P.setOptionName(ee, ne)
|
|
@@ -5227,8 +5235,8 @@ const bo = {
|
|
|
5227
5235
|
return ke(() => {
|
|
5228
5236
|
g(), P.dispose();
|
|
5229
5237
|
}), (ee, a) => {
|
|
5230
|
-
const c =
|
|
5231
|
-
return r(), S(
|
|
5238
|
+
const c = M("FmButton"), ne = M("FmSideSheet");
|
|
5239
|
+
return r(), S(re, null, [
|
|
5232
5240
|
s(ne, {
|
|
5233
5241
|
"model-value": !0,
|
|
5234
5242
|
"max-width": 560,
|
|
@@ -5319,7 +5327,7 @@ const bo = {
|
|
|
5319
5327
|
}),
|
|
5320
5328
|
class: "flex-1",
|
|
5321
5329
|
ref: (ve) => G(le, ve)
|
|
5322
|
-
},
|
|
5330
|
+
}, L(le)), cl({ _: 2 }, [
|
|
5323
5331
|
le !== l.value.options.length - 1 ? {
|
|
5324
5332
|
name: "append",
|
|
5325
5333
|
fn: v(() => [
|
|
@@ -5394,11 +5402,11 @@ const bo = {
|
|
|
5394
5402
|
presentation: {}
|
|
5395
5403
|
},
|
|
5396
5404
|
emits: ["created"],
|
|
5397
|
-
setup(
|
|
5398
|
-
const x =
|
|
5405
|
+
setup(Y, { expose: V, emit: i }) {
|
|
5406
|
+
const x = Y, o = i, d = (A, p) => o("created", { kind: A, name: p }), { t: w } = be(), C = Qe(), { run: P } = Ue(), m = ye(null), l = ll(() => m.value), $ = X(!1), _ = X(!1), F = X(!1), L = X(!1), E = X(!1);
|
|
5399
5407
|
function G(A) {
|
|
5400
5408
|
if (A === "printRoute") {
|
|
5401
|
-
|
|
5409
|
+
L.value = !0;
|
|
5402
5410
|
return;
|
|
5403
5411
|
}
|
|
5404
5412
|
if (A === "takeaway") {
|
|
@@ -5486,7 +5494,7 @@ const bo = {
|
|
|
5486
5494
|
});
|
|
5487
5495
|
}
|
|
5488
5496
|
}
|
|
5489
|
-
return V({ open: G }), (A, p) => (r(), S(
|
|
5497
|
+
return V({ open: G }), (A, p) => (r(), S(re, null, [
|
|
5490
5498
|
$.value ? (r(), T(ra, {
|
|
5491
5499
|
key: 0,
|
|
5492
5500
|
presentation: A.presentation,
|
|
@@ -5507,10 +5515,10 @@ const bo = {
|
|
|
5507
5515
|
onClose: p[4] || (p[4] = (g) => F.value = !1),
|
|
5508
5516
|
onCreated: p[5] || (p[5] = (g) => d("pacing", g))
|
|
5509
5517
|
}, null, 8, ["initial-product-ids", "sdk"])) : y("", !0),
|
|
5510
|
-
|
|
5518
|
+
L.value ? (r(), T(Ss, {
|
|
5511
5519
|
key: 3,
|
|
5512
5520
|
sdk: A.sdk,
|
|
5513
|
-
onClose: p[6] || (p[6] = (g) =>
|
|
5521
|
+
onClose: p[6] || (p[6] = (g) => L.value = !1),
|
|
5514
5522
|
onCreated: p[7] || (p[7] = (g) => d("printRoute", g))
|
|
5515
5523
|
}, null, 8, ["sdk"])) : y("", !0),
|
|
5516
5524
|
E.value ? (r(), T(Us, {
|