@oneclick.dev/cms-core-modules 0.0.83 → 0.0.85
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/{ContentEditor-CxKirDdL.mjs → ContentEditor-C5ydvk8b.mjs} +7067 -5886
- package/dist/{ContentEditor-CRFkD4tE.js → ContentEditor-DiveHwSJ.js} +43 -43
- package/dist/{Create-CsqVYhPO.mjs → Create-6uT9HWar.mjs} +35 -35
- package/dist/{Create-ip0MnS0o.js → Create-DuZ5nZrX.js} +1 -1
- package/dist/{DateFormatter-CvOfaUnU.mjs → DateFormatter-2B0R-DY4.mjs} +204 -400
- package/dist/DateFormatter-DbtOLV0L.js +1 -0
- package/dist/{Detail-RMXFuSRQ.js → Detail-BZ-iE9vf.js} +1 -1
- package/dist/{Detail-B4b_FLDa.mjs → Detail-C1Blq61w.mjs} +90 -90
- package/dist/{Detail-BayNaAg9.js → Detail-C8wQiDcv.js} +1 -1
- package/dist/{Detail-CbLk1v37.mjs → Detail-CJVMJDP7.mjs} +17 -17
- package/dist/{Detail-CnK-qbhE.js → Detail-CPqug27l.js} +1 -1
- package/dist/Detail-CjuhjPby.js +1 -0
- package/dist/{Detail-U0mgLKt6.mjs → Detail-CtItxMX4.mjs} +62 -63
- package/dist/{Detail-CVgWHbMC.mjs → Detail-Dnpnmy4-.mjs} +158 -158
- package/dist/{Entries-D7MHylQE.mjs → Entries-BkOPae4R.mjs} +49 -49
- package/dist/Entries-CcEW98F5.js +1 -0
- package/dist/{Find-XPcJxeRH.mjs → Find-Bd1uLqSa.mjs} +55 -55
- package/dist/Find-D4Qa45qC.js +1 -0
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-CDc8MIq2.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-Bc946oSc.mjs} +1 -1
- package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-StaNp-3y.js → NewReservationDialog.vue_vue_type_script_setup_true_lang-CqERfyYb.js} +1 -1
- package/dist/{Overview-CwCAeBnX.js → Overview-CA8wh_BI.js} +1 -1
- package/dist/{Overview-CgViRnNc.mjs → Overview-D4MFwRI_.mjs} +67 -68
- package/dist/{Overview-B2bFNGhH.js → Overview-Da0XexiT.js} +1 -1
- package/dist/Overview-DeQQ0FY3.js +1 -0
- package/dist/{Overview--XpvBbqz.mjs → Overview-DoOASlNz.mjs} +1 -3
- package/dist/{Overview-Cczt_dcE.mjs → Overview-gJSvftdE.mjs} +34 -34
- package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Cohhnd5x.mjs} +0 -1
- package/dist/{ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js → ReservationDetailDialog.vue_vue_type_script_setup_true_lang-VWVIxIr6.js} +1 -1
- package/dist/{SeoHealth-ZpvB7CS2.mjs → SeoHealth-Bc5chnaa.mjs} +14 -14
- package/dist/{SeoHealth-DFZ0LLBH.js → SeoHealth-BkpJ1F2Y.js} +1 -1
- package/dist/TableView-Ei_w_-bn.mjs +5745 -0
- package/dist/TableView-klOTPJKZ.js +4 -0
- package/dist/View-BaFlMcM6.js +1 -0
- package/dist/View-C4MBWRlA.mjs +28 -0
- package/dist/{agenda-Cl3s_FIE.mjs → agenda-C5grvzSa.mjs} +166 -169
- package/dist/agenda-DXMwVWpN.js +1 -0
- package/dist/{availability-B-tRp8hB.mjs → availability-C1NqOFsQ.mjs} +81 -81
- package/dist/{availability-BiBbzEIM.js → availability-D_wnfLsH.js} +1 -1
- package/dist/cms-core-modules.css +1 -1
- package/dist/{exceptions-DQPSFSj7.mjs → exceptions-BIwMhYa4.mjs} +1 -1
- package/dist/{exceptions-BA3PsW4n.js → exceptions-Cn7zooEu.js} +1 -1
- package/dist/{index-CBC9dWZ9.js → index-C9pSS15N.js} +2 -2
- package/dist/{index-YOOlBEZB.mjs → index-MwjeLHPP.mjs} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.mjs +23 -23
- package/dist/{orders-DZzdsHOW.mjs → orders-DhQ2EFXS.mjs} +157 -157
- package/dist/orders-V1pch_ih.js +1 -0
- package/dist/server-handlers.cjs.js +1 -1
- package/dist/server-handlers.mjs +142 -147
- package/package.json +2 -2
- package/dist/DateFormatter-ls6HfWpS.js +0 -1
- package/dist/Detail-BcboL7NF.js +0 -1
- package/dist/Entries-BPkZ7Jg5.js +0 -1
- package/dist/Find-Ds6OvuH6.js +0 -1
- package/dist/Overview-B-8TLLjh.js +0 -1
- package/dist/TableView-BUPPcHUW.mjs +0 -89505
- package/dist/TableView-CksiPsTL.js +0 -586
- package/dist/View-DDXN0tKD.mjs +0 -25
- package/dist/View-DfzaVOzS.js +0 -1
- package/dist/agenda-rlFma_wn.js +0 -1
- package/dist/floating-ui.dom-B9WYoHj2.js +0 -1
- package/dist/floating-ui.dom-fpIfhXTZ.mjs +0 -1291
- package/dist/index-DYpruS-A-Cw57iwdY.mjs +0 -4210
- package/dist/index-DYpruS-A-DwDXo9Tq.js +0 -88
- package/dist/index-YMaY4uuk-BgpTtr73.js +0 -1
- package/dist/index-YMaY4uuk-C_xV5K9Z.mjs +0 -1300
- package/dist/orders-tP4WdF5q.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as ne, inject as tt, resolveComponent as v, openBlock as h, createBlock as L, withCtx as f, createVNode as s, createElementVNode as u, createTextVNode as V, isRef as Y, unref as m, createElementBlock as w, toDisplayString as F, createCommentVNode as
|
|
2
|
-
import { u as xe, a as U, t as
|
|
1
|
+
import { defineComponent as ne, inject as tt, resolveComponent as v, openBlock as h, createBlock as L, withCtx as f, createVNode as s, createElementVNode as u, createTextVNode as V, isRef as Y, unref as m, createElementBlock as w, toDisplayString as F, createCommentVNode as O, computed as de, watch as re, useTemplateRef as Ee, ref as X, nextTick as Te, Fragment as J, renderList as ie, withModifiers as fe, onMounted as lt, normalizeClass as $e, withKeys as Yt, provide as dt, withAsyncContext as Kt } from "vue";
|
|
2
|
+
import { u as xe, a as U, t as qt, o as Se, b as ve, s as H, p as Ne, c as be, d as Ie, e as ut, f as Jt } from "./vee-validate-zod-CcOwoF6y.mjs";
|
|
3
3
|
import { Info as Wt, GripVertical as Qe, CircleX as Gt, Trash2 as Zt, PlusCircle as ct, Search as ft, ListFilter as Qt, ChevronDown as pt, X as en, ImagePlus as gt, Plus as tn, Tag as nn, ChevronRight as on, Archive as ln, Trash as rn, Loader2 as mt } from "lucide-vue-next";
|
|
4
4
|
import { animations as yt } from "@formkit/drag-and-drop";
|
|
5
5
|
import { useConfirmation as Dt, useModuleRoute as St, useFirebaseIntegration as Ct, useModulePermissions as an, useModuleBreadcrumbs as sn } from "@oneclick.dev/cms-kit";
|
|
@@ -42,7 +42,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
42
42
|
modelValue: m(l),
|
|
43
43
|
"onUpdate:modelValue": r[0] || (r[0] = (I) => Y(l) ? l.value = I : null)
|
|
44
44
|
}, null, 8, ["modelValue"]),
|
|
45
|
-
m(o).title ? (h(), w("p", fn, F(m(o).title), 1)) :
|
|
45
|
+
m(o).title ? (h(), w("p", fn, F(m(o).title), 1)) : O("", !0)
|
|
46
46
|
])
|
|
47
47
|
]),
|
|
48
48
|
u("div", pn, [
|
|
@@ -62,7 +62,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
62
62
|
modelValue: m(a),
|
|
63
63
|
"onUpdate:modelValue": r[1] || (r[1] = (I) => Y(a) ? a.value = I : null)
|
|
64
64
|
}, null, 8, ["modelValue"]),
|
|
65
|
-
m(o).description ? (h(), w("p", mn, F(m(o).description), 1)) :
|
|
65
|
+
m(o).description ? (h(), w("p", mn, F(m(o).description), 1)) : O("", !0)
|
|
66
66
|
])
|
|
67
67
|
]),
|
|
68
68
|
u("div", vn, [
|
|
@@ -83,7 +83,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
83
83
|
sources: m(t),
|
|
84
84
|
defaultSource: m(n)
|
|
85
85
|
}, null, 8, ["modelValue", "sources", "defaultSource"]),
|
|
86
|
-
m(o).media ? (h(), w("p", hn, F(m(o).media), 1)) :
|
|
86
|
+
m(o).media ? (h(), w("p", hn, F(m(o).media), 1)) : O("", !0)
|
|
87
87
|
])
|
|
88
88
|
])
|
|
89
89
|
]),
|
|
@@ -135,7 +135,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
135
135
|
}, null, 8, ["modelValue"]),
|
|
136
136
|
d[5] || (d[5] = u("span", { class: "absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none" }, "€", -1))
|
|
137
137
|
]),
|
|
138
|
-
m(t).price ? (h(), w("p", Dn, F(m(t).price), 1)) :
|
|
138
|
+
m(t).price ? (h(), w("p", Dn, F(m(t).price), 1)) : O("", !0)
|
|
139
139
|
]),
|
|
140
140
|
u("div", null, [
|
|
141
141
|
s(r, {
|
|
@@ -182,7 +182,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
182
182
|
_: 1
|
|
183
183
|
})
|
|
184
184
|
]),
|
|
185
|
-
m(t).compareAtPrice ? (h(), w("p", wn, F(m(t).compareAtPrice), 1)) :
|
|
185
|
+
m(t).compareAtPrice ? (h(), w("p", wn, F(m(t).compareAtPrice), 1)) : O("", !0)
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
u("div", kn, [
|
|
@@ -222,7 +222,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
222
222
|
}, null, 8, ["modelValue"]),
|
|
223
223
|
d[11] || (d[11] = u("span", { class: "absolute left-4 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none" }, "€", -1))
|
|
224
224
|
]),
|
|
225
|
-
m(t).costPerItem ? (h(), w("p", Nn, F(m(t).costPerItem), 1)) :
|
|
225
|
+
m(t).costPerItem ? (h(), w("p", Nn, F(m(t).costPerItem), 1)) : O("", !0)
|
|
226
226
|
])
|
|
227
227
|
])
|
|
228
228
|
]),
|
|
@@ -241,7 +241,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
241
241
|
setup(e) {
|
|
242
242
|
const { errors: t } = xe(), { value: n } = U("sku"), { value: o } = U("barcode"), { value: l } = U("trackInventory"), { value: a } = U("allowBackorder"), { value: i } = U("stock"), { value: d } = U("options"), { value: r } = U("variants"), b = de(() => r.value.reduce((x, c) => c.stock < 0 ? x : x + c.stock, 0));
|
|
243
243
|
return (x, c) => {
|
|
244
|
-
const D = v("Label"), T = v("Input"), N = v("Checkbox"), I = v("TooltipTrigger"), A = v("TooltipContent"),
|
|
244
|
+
const D = v("Label"), T = v("Input"), N = v("Checkbox"), I = v("TooltipTrigger"), A = v("TooltipContent"), M = v("Tooltip"), _ = v("CardContent"), S = v("Card");
|
|
245
245
|
return h(), L(S, null, {
|
|
246
246
|
default: f(() => [
|
|
247
247
|
s(_, null, {
|
|
@@ -315,7 +315,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
315
315
|
modelValue: m(i),
|
|
316
316
|
"onUpdate:modelValue": c[3] || (c[3] = (B) => Y(i) ? i.value = B : null),
|
|
317
317
|
class: "no-spinner"
|
|
318
|
-
}, null, 8, ["modelValue"])) : (h(), L(
|
|
318
|
+
}, null, 8, ["modelValue"])) : (h(), L(M, { key: 1 }, {
|
|
319
319
|
default: f(() => [
|
|
320
320
|
s(I, { class: "cursor-not-allowed" }, {
|
|
321
321
|
default: f(() => [
|
|
@@ -338,7 +338,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
338
338
|
_: 1
|
|
339
339
|
}))
|
|
340
340
|
])
|
|
341
|
-
])) :
|
|
341
|
+
])) : O("", !0),
|
|
342
342
|
u("div", An, [
|
|
343
343
|
s(N, {
|
|
344
344
|
id: "continue-selling",
|
|
@@ -363,7 +363,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
363
363
|
});
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
}),
|
|
366
|
+
}), Mn = { class: "flex items-center gap-2 mb-4" }, On = {
|
|
367
367
|
key: 0,
|
|
368
368
|
class: "grid grid-cols-2 gap-4 mb-4"
|
|
369
369
|
}, Fn = /* @__PURE__ */ ne({
|
|
@@ -371,13 +371,13 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
371
371
|
setup(e) {
|
|
372
372
|
const { errors: t } = xe(), { value: n } = U("isPhysicalProduct"), { value: o } = U("weight"), { value: l } = U("weightUnit");
|
|
373
373
|
return (a, i) => {
|
|
374
|
-
const d = v("Checkbox"), r = v("Label"), b = v("Input"), x = v("SelectValue"), c = v("SelectTrigger"), D = v("SelectItem"), T = v("SelectGroup"), N = v("SelectContent"), I = v("Select"), A = v("CardContent"),
|
|
375
|
-
return h(), L(
|
|
374
|
+
const d = v("Checkbox"), r = v("Label"), b = v("Input"), x = v("SelectValue"), c = v("SelectTrigger"), D = v("SelectItem"), T = v("SelectGroup"), N = v("SelectContent"), I = v("Select"), A = v("CardContent"), M = v("Card");
|
|
375
|
+
return h(), L(M, null, {
|
|
376
376
|
default: f(() => [
|
|
377
377
|
s(A, null, {
|
|
378
378
|
default: f(() => [
|
|
379
379
|
i[10] || (i[10] = u("h3", { class: "text-lg font-semibold mb-4" }, "Shipping", -1)),
|
|
380
|
-
u("div",
|
|
380
|
+
u("div", Mn, [
|
|
381
381
|
s(d, {
|
|
382
382
|
id: "is-physical-product",
|
|
383
383
|
modelValue: m(n),
|
|
@@ -393,7 +393,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
393
393
|
_: 1
|
|
394
394
|
})
|
|
395
395
|
]),
|
|
396
|
-
m(n) ? (h(), w("div",
|
|
396
|
+
m(n) ? (h(), w("div", On, [
|
|
397
397
|
u("div", null, [
|
|
398
398
|
s(r, {
|
|
399
399
|
for: "weight",
|
|
@@ -471,7 +471,7 @@ const un = { class: "flex flex-col gap-4" }, cn = { class: "flex flex-col" }, fn
|
|
|
471
471
|
_: 1
|
|
472
472
|
}, 8, ["modelValue"])
|
|
473
473
|
])
|
|
474
|
-
])) :
|
|
474
|
+
])) : O("", !0)
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
477
|
})
|
|
@@ -662,7 +662,7 @@ function Kn(e) {
|
|
|
662
662
|
bt(e, l, !0);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function qn({
|
|
666
666
|
parent: e,
|
|
667
667
|
getValues: t,
|
|
668
668
|
setValues: n,
|
|
@@ -713,7 +713,7 @@ function Jn({
|
|
|
713
713
|
handleParentDrop: Zn,
|
|
714
714
|
multiDrag: o.multiDrag ?? !1,
|
|
715
715
|
nativeDrag: o.nativeDrag ?? !0,
|
|
716
|
-
performSort:
|
|
716
|
+
performSort: Jn,
|
|
717
717
|
performTransfer: Gn,
|
|
718
718
|
root: o.root ?? document,
|
|
719
719
|
setupNode: to,
|
|
@@ -777,7 +777,7 @@ function Tt(e, t, n, o, l, a) {
|
|
|
777
777
|
transferred: !1
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function Jn({
|
|
781
781
|
parent: e,
|
|
782
782
|
draggedNodes: t,
|
|
783
783
|
targetNodes: n
|
|
@@ -826,7 +826,7 @@ function he(e, t, n) {
|
|
|
826
826
|
i !== -1 && n.selectedState.nodes.splice(i, 1);
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Me(e, t, n, o, l = !1) {
|
|
830
830
|
o.pointerSelection = l;
|
|
831
831
|
for (const a of t)
|
|
832
832
|
a.el.setAttribute("aria-selected", "true"), Ce([a.el], e.data.config.selectedClass, !0);
|
|
@@ -896,15 +896,15 @@ function te(e) {
|
|
|
896
896
|
}
|
|
897
897
|
function eo(e, t) {
|
|
898
898
|
t.abortControllers.mainParent = Fe(e, {
|
|
899
|
-
dragover:
|
|
899
|
+
dragover: Oe(t.config.handleParentDragover),
|
|
900
900
|
handleParentPointerover: t.config.handleParentPointerover,
|
|
901
|
-
scroll:
|
|
902
|
-
drop:
|
|
901
|
+
scroll: Oe(t.config.handleParentScroll),
|
|
902
|
+
drop: Oe(t.config.handleParentDrop),
|
|
903
903
|
hasNestedParent: (n) => {
|
|
904
904
|
const o = W.get(n.target);
|
|
905
905
|
o && (o.nestedParent = n.detail.parent);
|
|
906
906
|
},
|
|
907
|
-
focus:
|
|
907
|
+
focus: Oe(t.config.handleParentFocus)
|
|
908
908
|
}), t.config.externalDragHandle && t.config.externalDragHandle.el && t.config.externalDragHandle.callback && (t.abortControllers.externalDragHandle = Fe(
|
|
909
909
|
t.config.externalDragHandle.el,
|
|
910
910
|
{
|
|
@@ -1150,7 +1150,7 @@ function fo(e, t) {
|
|
|
1150
1150
|
(r) => r.el === i.el
|
|
1151
1151
|
) === -1 ? o = [...t.selectedState.nodes, i] : o = t.selectedState.nodes.filter(
|
|
1152
1152
|
(r) => r.el !== i.el
|
|
1153
|
-
) : o = [i],
|
|
1153
|
+
) : o = [i], Me(
|
|
1154
1154
|
e.targetData.parent,
|
|
1155
1155
|
o,
|
|
1156
1156
|
e.targetData.node,
|
|
@@ -1179,7 +1179,7 @@ function fo(e, t) {
|
|
|
1179
1179
|
else
|
|
1180
1180
|
for (let r = 0; r <= i.data.index; r++)
|
|
1181
1181
|
o.push(d[r]);
|
|
1182
|
-
|
|
1182
|
+
Me(
|
|
1183
1183
|
e.targetData.parent,
|
|
1184
1184
|
o,
|
|
1185
1185
|
e.targetData.node,
|
|
@@ -1190,13 +1190,13 @@ function fo(e, t) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
t.selectedState?.nodes?.length ? t.selectedState.nodes.findIndex(
|
|
1192
1192
|
(r) => r.el === e.targetData.node.el
|
|
1193
|
-
) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? he(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Nt() ? o.push(...t.selectedState.nodes) : he(t.selectedState.nodes, e.targetData.parent, t),
|
|
1193
|
+
) === -1 && (t.selectedState.parent.el !== e.targetData.parent.el ? he(t.selectedState.nodes, e.targetData.parent, t) : n.config.multiDrag && Nt() ? o.push(...t.selectedState.nodes) : he(t.selectedState.nodes, e.targetData.parent, t), Me(
|
|
1194
1194
|
e.targetData.parent,
|
|
1195
1195
|
o,
|
|
1196
1196
|
e.targetData.node,
|
|
1197
1197
|
t,
|
|
1198
1198
|
!0
|
|
1199
|
-
)) :
|
|
1199
|
+
)) : Me(
|
|
1200
1200
|
e.targetData.parent,
|
|
1201
1201
|
[e.targetData.node],
|
|
1202
1202
|
e.targetData.node,
|
|
@@ -1394,8 +1394,8 @@ function Co(e, t, n, o, l, a) {
|
|
|
1394
1394
|
"overflow"
|
|
1395
1395
|
], x = (N, I) => {
|
|
1396
1396
|
const A = window.getComputedStyle(N);
|
|
1397
|
-
b.forEach((
|
|
1398
|
-
I.style[
|
|
1397
|
+
b.forEach((M) => {
|
|
1398
|
+
I.style[M] = A[M];
|
|
1399
1399
|
});
|
|
1400
1400
|
}, c = (N, I = {}) => {
|
|
1401
1401
|
Object.assign(N.style, {
|
|
@@ -1621,7 +1621,7 @@ function Be(e, t) {
|
|
|
1621
1621
|
targetNodes: "node" in e.targetData ? [e.targetData.node] : []
|
|
1622
1622
|
}), t.currentParent = e.targetData.parent, t.transferred = !0);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Oe(e) {
|
|
1625
1625
|
function t(n) {
|
|
1626
1626
|
const o = W.get(n);
|
|
1627
1627
|
if (o)
|
|
@@ -1688,17 +1688,17 @@ function pe(e, t) {
|
|
|
1688
1688
|
function ht(e, t, n, o, l) {
|
|
1689
1689
|
const i = l.axis === "x", d = e === document.scrollingElement, r = i ? "scrollLeft" : "scrollTop", b = i ? "clientWidth" : "clientHeight", x = i ? "offsetWidth" : "offsetHeight", c = i ? "scrollWidth" : "scrollHeight", D = i ? t.clientX : t.clientY, T = i ? o.left : o.top, N = i ? n.overflowX : n.overflowY;
|
|
1690
1690
|
if (d) {
|
|
1691
|
-
const I = e[r], A = e[b],
|
|
1691
|
+
const I = e[r], A = e[b], M = I > 0, _ = I + A < (i ? l.state.rootScrollWidth || 0 : e[c]);
|
|
1692
1692
|
return i ? {
|
|
1693
|
-
left:
|
|
1693
|
+
left: M && D < A * 0.075,
|
|
1694
1694
|
right: _ && D > A * (1 - 0.075)
|
|
1695
1695
|
} : {
|
|
1696
|
-
up:
|
|
1696
|
+
up: M && D < A * 0.075,
|
|
1697
1697
|
down: _ && D > A * (1 - 0.075)
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
1700
1700
|
if ((N === "auto" || N === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
1701
|
-
const I = e[c], A = e[x],
|
|
1701
|
+
const I = e[c], A = e[x], M = e[r], _ = M > 0, S = M < I - A;
|
|
1702
1702
|
return i ? {
|
|
1703
1703
|
left: _ && D < T + A * 0.075,
|
|
1704
1704
|
right: S && D > T + A * (1 - 0.075)
|
|
@@ -1815,7 +1815,7 @@ function xt(e) {
|
|
|
1815
1815
|
if ("$el" in e && e.$el instanceof HTMLElement)
|
|
1816
1816
|
return e.$el;
|
|
1817
1817
|
}
|
|
1818
|
-
function
|
|
1818
|
+
function Mo(e, t) {
|
|
1819
1819
|
Array.isArray(e) || (e = [e]);
|
|
1820
1820
|
for (const n of e) {
|
|
1821
1821
|
const o = xt(n);
|
|
@@ -1828,7 +1828,7 @@ function Oo(e, t) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
var at = /* @__PURE__ */ new WeakMap();
|
|
1831
|
-
function
|
|
1831
|
+
function Oo(e) {
|
|
1832
1832
|
const t = at.get(e);
|
|
1833
1833
|
return t ? "value" in t ? t.value : t : (console.warn("No values found for parent element"), []);
|
|
1834
1834
|
}
|
|
@@ -1836,17 +1836,17 @@ function Fo(e, t) {
|
|
|
1836
1836
|
const n = at.get(t);
|
|
1837
1837
|
n && "value" in n && (n.value = e);
|
|
1838
1838
|
}
|
|
1839
|
-
function
|
|
1839
|
+
function Mt(e) {
|
|
1840
1840
|
rt && (Array.isArray(e) || (e = [e]), e.forEach((t) => {
|
|
1841
1841
|
const { parent: n, values: o, ...l } = t;
|
|
1842
|
-
|
|
1842
|
+
Mo(n, Lo(l, o));
|
|
1843
1843
|
}));
|
|
1844
1844
|
}
|
|
1845
1845
|
function Lo(e, t) {
|
|
1846
1846
|
return (n) => {
|
|
1847
|
-
at.set(n, t),
|
|
1847
|
+
at.set(n, t), qn({
|
|
1848
1848
|
parent: n,
|
|
1849
|
-
getValues:
|
|
1849
|
+
getValues: Oo,
|
|
1850
1850
|
setValues: Fo,
|
|
1851
1851
|
config: {
|
|
1852
1852
|
...e
|
|
@@ -1860,10 +1860,10 @@ const Bo = {
|
|
|
1860
1860
|
}, Ro = { class: "option-drag-handle flex-none mt-9.5 cursor-grab" }, Uo = { class: "flex-1" }, jo = { class: "mb-3" }, Ho = { class: "flex items-center" }, Xo = {
|
|
1861
1861
|
key: 0,
|
|
1862
1862
|
class: "mt-1 text-sm text-red-600"
|
|
1863
|
-
}, Yo = { class: "flex items-center gap-1" }, Ko = { class: "mb-2" },
|
|
1863
|
+
}, Yo = { class: "flex items-center gap-1" }, Ko = { class: "mb-2" }, qo = {
|
|
1864
1864
|
key: 0,
|
|
1865
1865
|
class: "option-value-drag-handle absolute -left-7 top-1/2 -translate-y-1/2 flex-none mr-2 cursor-grab"
|
|
1866
|
-
},
|
|
1866
|
+
}, Jo = ["onClick"], Wo = { class: "flex justify-between" }, Go = { class: "flex-1" }, Zo = { class: "text-sm mb-2" }, Qo = { class: "flex flex-wrap gap-2" }, el = {
|
|
1867
1867
|
key: 0,
|
|
1868
1868
|
class: "px-2 py-1 border rounded-full bg-muted text-muted-foreground text-sm"
|
|
1869
1869
|
}, tl = /* @__PURE__ */ ne({
|
|
@@ -1892,7 +1892,7 @@ const Bo = {
|
|
|
1892
1892
|
}
|
|
1893
1893
|
}), r = Ee("valueListRef"), b = X(!1);
|
|
1894
1894
|
re(b, async (_) => {
|
|
1895
|
-
|
|
1895
|
+
_ || (await Te(), Mt({
|
|
1896
1896
|
parent: r?.value,
|
|
1897
1897
|
values: d,
|
|
1898
1898
|
group: "valueList",
|
|
@@ -1918,7 +1918,7 @@ const Bo = {
|
|
|
1918
1918
|
_.target;
|
|
1919
1919
|
const B = i.value.values, K = B?.[S];
|
|
1920
1920
|
K.touched = !0, B?.every((Q) => Q.value.trim() !== "") && c();
|
|
1921
|
-
},
|
|
1921
|
+
}, M = (_) => {
|
|
1922
1922
|
const S = i.value, B = S?.values.every((K, j) => K.value.trim() !== "" || j === _);
|
|
1923
1923
|
S && S.values[_].value.trim() === "" && !B && T(_);
|
|
1924
1924
|
};
|
|
@@ -1943,10 +1943,10 @@ const Bo = {
|
|
|
1943
1943
|
u("div", Go, [
|
|
1944
1944
|
u("p", Zo, F(i.value.name), 1),
|
|
1945
1945
|
u("div", Qo, [
|
|
1946
|
-
(h(!0), w(
|
|
1946
|
+
(h(!0), w(J, null, ie(d.value, (j) => (h(), w(J, {
|
|
1947
1947
|
key: j.id
|
|
1948
1948
|
}, [
|
|
1949
|
-
j.value ? (h(), w("span", el, F(j.value), 1)) :
|
|
1949
|
+
j.value ? (h(), w("span", el, F(j.value), 1)) : O("", !0)
|
|
1950
1950
|
], 64))), 128))
|
|
1951
1951
|
])
|
|
1952
1952
|
])
|
|
@@ -1974,7 +1974,7 @@ const Bo = {
|
|
|
1974
1974
|
s(m(Gt), { class: "size-4" }),
|
|
1975
1975
|
V(" " + F(i.value.nameError), 1)
|
|
1976
1976
|
])
|
|
1977
|
-
])) :
|
|
1977
|
+
])) : O("", !0)
|
|
1978
1978
|
]),
|
|
1979
1979
|
u("div", Ko, [
|
|
1980
1980
|
S[7] || (S[7] = u("label", { class: "block text-sm mb-2" }, "Option values", -1)),
|
|
@@ -1982,13 +1982,13 @@ const Bo = {
|
|
|
1982
1982
|
ref_key: "valueListRef",
|
|
1983
1983
|
ref: r
|
|
1984
1984
|
}, [
|
|
1985
|
-
d.value ? (h(!0), w(
|
|
1985
|
+
d.value ? (h(!0), w(J, { key: 0 }, ie(d.value, (j, Q) => (h(), w("div", {
|
|
1986
1986
|
key: j.id,
|
|
1987
1987
|
class: "relative flex items-center mb-2"
|
|
1988
1988
|
}, [
|
|
1989
|
-
j.touched ? (h(), w("div",
|
|
1989
|
+
j.touched ? (h(), w("div", qo, [
|
|
1990
1990
|
s(m(Qe), { class: "size-4 text-gray-400" })
|
|
1991
|
-
])) :
|
|
1991
|
+
])) : O("", !0),
|
|
1992
1992
|
s(B, {
|
|
1993
1993
|
modelValue: j.value,
|
|
1994
1994
|
"onUpdate:modelValue": (oe) => j.value = oe,
|
|
@@ -1996,7 +1996,7 @@ const Bo = {
|
|
|
1996
1996
|
class: "pr-12",
|
|
1997
1997
|
onKeydown: (oe) => I(oe, Q),
|
|
1998
1998
|
onKeyup: (oe) => A(oe, Q),
|
|
1999
|
-
onBlur: (oe) =>
|
|
1999
|
+
onBlur: (oe) => M(Q),
|
|
2000
2000
|
spellcheck: "false"
|
|
2001
2001
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onKeydown", "onKeyup", "onBlur"]),
|
|
2002
2002
|
d.value.length > 2 && j.touched ? (h(), w("button", {
|
|
@@ -2006,8 +2006,8 @@ const Bo = {
|
|
|
2006
2006
|
type: "button"
|
|
2007
2007
|
}, [
|
|
2008
2008
|
s(m(Zt), { class: "size-4" })
|
|
2009
|
-
], 8,
|
|
2010
|
-
]))), 128)) :
|
|
2009
|
+
], 8, Jo)) : O("", !0)
|
|
2010
|
+
]))), 128)) : O("", !0)
|
|
2011
2011
|
], 512)
|
|
2012
2012
|
]),
|
|
2013
2013
|
u("div", Wo, [
|
|
@@ -2051,17 +2051,17 @@ const Bo = {
|
|
|
2051
2051
|
get() {
|
|
2052
2052
|
return o.modelValue;
|
|
2053
2053
|
},
|
|
2054
|
-
set(
|
|
2055
|
-
l("update:modelValue",
|
|
2054
|
+
set(M) {
|
|
2055
|
+
l("update:modelValue", M);
|
|
2056
2056
|
}
|
|
2057
2057
|
}), b = X(!1);
|
|
2058
|
-
re(r, (
|
|
2059
|
-
|
|
2060
|
-
}, { deep: !0 }), re(a, (
|
|
2061
|
-
r.value =
|
|
2058
|
+
re(r, (M) => {
|
|
2059
|
+
b.value || (!a.value || a.value.length === 0 && M.length > 0) && (b.value = !0, a.value = M ? JSON.parse(JSON.stringify(M)) : []);
|
|
2060
|
+
}, { deep: !0 }), re(a, (M) => {
|
|
2061
|
+
r.value = M?.map((_) => ({
|
|
2062
2062
|
..._,
|
|
2063
2063
|
values: _.values.filter((S) => S.value.trim() !== "")
|
|
2064
|
-
})), !I.value &&
|
|
2064
|
+
})), !I.value && M.length > 0 && A();
|
|
2065
2065
|
}, { deep: !0 });
|
|
2066
2066
|
const x = () => Math.random().toString(36).substring(2, 15), c = () => {
|
|
2067
2067
|
const _ = {
|
|
@@ -2072,33 +2072,33 @@ const Bo = {
|
|
|
2072
2072
|
};
|
|
2073
2073
|
a.value.push(_);
|
|
2074
2074
|
}, D = () => {
|
|
2075
|
-
d.value?.forEach((
|
|
2076
|
-
|
|
2075
|
+
d.value?.forEach((M) => {
|
|
2076
|
+
M && (M.minified = !0);
|
|
2077
2077
|
});
|
|
2078
|
-
}, T = (
|
|
2079
|
-
const _ = a.value.findIndex((S) => S.id ===
|
|
2080
|
-
_ !== -1 && (a.value[_] =
|
|
2081
|
-
}, N = (
|
|
2082
|
-
const _ = a.value.findIndex((S) => S.id ===
|
|
2078
|
+
}, T = (M) => {
|
|
2079
|
+
const _ = a.value.findIndex((S) => S.id === M.id);
|
|
2080
|
+
_ !== -1 && (a.value[_] = M);
|
|
2081
|
+
}, N = (M) => {
|
|
2082
|
+
const _ = a.value.findIndex((S) => S.id === M.id);
|
|
2083
2083
|
_ !== -1 && a.value.splice(_, 1);
|
|
2084
2084
|
}, I = X(!1), A = () => {
|
|
2085
2085
|
try {
|
|
2086
|
-
I.value = !0,
|
|
2086
|
+
I.value = !0, Mt({
|
|
2087
2087
|
parent: i?.value,
|
|
2088
2088
|
values: a,
|
|
2089
2089
|
group: "optionsList",
|
|
2090
2090
|
dragHandle: ".option-drag-handle",
|
|
2091
2091
|
plugins: [yt()]
|
|
2092
2092
|
});
|
|
2093
|
-
} catch (
|
|
2094
|
-
console.error(
|
|
2093
|
+
} catch (M) {
|
|
2094
|
+
console.error(M);
|
|
2095
2095
|
}
|
|
2096
2096
|
};
|
|
2097
2097
|
return lt(() => {
|
|
2098
|
-
a.value = o.modelValue ? JSON.parse(JSON.stringify(o.modelValue)) : [],
|
|
2098
|
+
a.value = o.modelValue ? JSON.parse(JSON.stringify(o.modelValue)) : [], a.value.length > 0 && A();
|
|
2099
2099
|
}), t({
|
|
2100
2100
|
minifyAll: D
|
|
2101
|
-
}), (
|
|
2101
|
+
}), (M, _) => {
|
|
2102
2102
|
const S = v("Button");
|
|
2103
2103
|
return h(), w("div", null, [
|
|
2104
2104
|
u("div", {
|
|
@@ -2108,7 +2108,7 @@ const Bo = {
|
|
|
2108
2108
|
ref_key: "optionsListRefElement",
|
|
2109
2109
|
ref: i
|
|
2110
2110
|
}, [
|
|
2111
|
-
(h(!0), w(
|
|
2111
|
+
(h(!0), w(J, null, ie(a.value, (B) => (h(), L(tl, {
|
|
2112
2112
|
ref_for: !0,
|
|
2113
2113
|
ref_key: "optionRefs",
|
|
2114
2114
|
ref: d,
|
|
@@ -2144,7 +2144,7 @@ const Bo = {
|
|
|
2144
2144
|
]),
|
|
2145
2145
|
_: 1
|
|
2146
2146
|
}))
|
|
2147
|
-
], 2)) :
|
|
2147
|
+
], 2)) : O("", !0)
|
|
2148
2148
|
], 2)
|
|
2149
2149
|
]);
|
|
2150
2150
|
};
|
|
@@ -2161,7 +2161,7 @@ const Bo = {
|
|
|
2161
2161
|
}, Dl = ["src"], Sl = ["src"], Cl = { class: "flex flex-col justify-center px-2" }, wl = { class: "text-md mb-0.5 hover:underline select-none" }, kl = { class: "flex items-center gap-1 text-xs text-muted-foreground hover:opacity-70 transition-opacity duration-200 cursor-pointer select-none" }, Pl = { class: "p-2 w-[30%]" }, Vl = { class: "relative" }, Nl = { key: 0 }, Il = { key: 1 }, Tl = {
|
|
2162
2162
|
key: 0,
|
|
2163
2163
|
class: "absolute inset-0 top-1/2 -translate-y-1/2 px-2 truncate text-sm text-muted-foreground w-full text-center pointer-events-none"
|
|
2164
|
-
}, $l = { class: "p-2 w-[18%]" }, El = { class: "w-10" }, Al = { class: "w-10 p-2 translate-x-10" }, zl = { class: "p-2 pl-12" },
|
|
2164
|
+
}, $l = { class: "p-2 w-[18%]" }, El = { class: "w-10" }, Al = { class: "w-10 p-2 translate-x-10" }, zl = { class: "p-2 pl-12" }, Ml = { class: "flex items-stretch gap-2" }, Ol = ["src"], Fl = { class: "flex flex-col justify-center px-2" }, Ll = { class: "p-2 w-[30%]" }, Bl = { class: "p-2 w-[18%] group" }, Rl = { class: "text-center text-sm text-muted-foreground bg-accent dark:bg-border p-3 -mx-6 -mb-6 rounded-b-lg" }, Ul = { key: 0 }, jl = /* @__PURE__ */ ne({
|
|
2165
2165
|
__name: "VariantList",
|
|
2166
2166
|
props: {
|
|
2167
2167
|
options: {
|
|
@@ -2210,7 +2210,7 @@ const Bo = {
|
|
|
2210
2210
|
price: c.value[p].price,
|
|
2211
2211
|
stock: c.value[p].stock,
|
|
2212
2212
|
image: c.value[p].image,
|
|
2213
|
-
options:
|
|
2213
|
+
options: M(p)
|
|
2214
2214
|
});
|
|
2215
2215
|
}), a.value = k.filter((p) => p.options?.length === Object.keys(o.options).length && p.options?.every((y) => Object.entries(o.options).find(([$, R]) => R.id === y.optionId)));
|
|
2216
2216
|
}
|
|
@@ -2226,7 +2226,7 @@ const Bo = {
|
|
|
2226
2226
|
const A = (k) => k.split("|").map((y) => {
|
|
2227
2227
|
const [$, R] = y.split(":");
|
|
2228
2228
|
return { optionId: $, valueId: R };
|
|
2229
|
-
}).map((y) => o.options?.[y.optionId]?.values?.find((se) => se.id === y.valueId)?.value || "").join(" "),
|
|
2229
|
+
}).map((y) => o.options?.[y.optionId]?.values?.find((se) => se.id === y.valueId)?.value || "").join(" "), M = (k) => k.split("|").map((y) => {
|
|
2230
2230
|
const [$, R] = y.split(":");
|
|
2231
2231
|
return { optionId: $, valueId: R };
|
|
2232
2232
|
}).map((y) => {
|
|
@@ -2306,12 +2306,12 @@ const Bo = {
|
|
|
2306
2306
|
setVariantMap: le,
|
|
2307
2307
|
refreshVariants: T
|
|
2308
2308
|
}), (k, p) => {
|
|
2309
|
-
const y = v("SelectValue"), $ = v("SelectTrigger"), R = v("SelectItem"), se = v("SelectContent"),
|
|
2310
|
-
return e.hide ?
|
|
2309
|
+
const y = v("SelectValue"), $ = v("SelectTrigger"), R = v("SelectItem"), se = v("SelectContent"), Ot = v("Select"), De = v("Button"), st = v("Input"), Ft = v("PopoverTrigger"), Lt = v("RadioGroupItem"), Bt = v("Label"), Rt = v("RadioGroup"), Ut = v("PopoverContent"), jt = v("Popover"), Ye = v("Checkbox"), Ke = v("TooltipTrigger"), qe = v("TooltipContent"), Je = v("Tooltip"), it = v("MediaPickerDialog"), We = v("NumberFieldInput"), Ge = v("NumberFieldContent"), Ze = v("NumberField"), Ht = v("NumberFieldDecrement"), Xt = v("NumberFieldIncrement");
|
|
2310
|
+
return e.hide ? O("", !0) : (h(), w("div", ol, [
|
|
2311
2311
|
u("div", ll, [
|
|
2312
2312
|
Object.keys(e.options).length > 1 ? (h(), w("div", rl, [
|
|
2313
2313
|
p[13] || (p[13] = u("p", null, "Group by", -1)),
|
|
2314
|
-
s(
|
|
2314
|
+
s(Ot, {
|
|
2315
2315
|
modelValue: r.value,
|
|
2316
2316
|
"onUpdate:modelValue": p[0] || (p[0] = (P) => r.value = P)
|
|
2317
2317
|
}, {
|
|
@@ -2324,7 +2324,7 @@ const Bo = {
|
|
|
2324
2324
|
}),
|
|
2325
2325
|
s(se, null, {
|
|
2326
2326
|
default: f(() => [
|
|
2327
|
-
(h(!0), w(
|
|
2327
|
+
(h(!0), w(J, null, ie(e.options, (P) => (h(), L(R, {
|
|
2328
2328
|
key: P.id,
|
|
2329
2329
|
value: P.id
|
|
2330
2330
|
}, {
|
|
@@ -2339,7 +2339,7 @@ const Bo = {
|
|
|
2339
2339
|
]),
|
|
2340
2340
|
_: 1
|
|
2341
2341
|
}, 8, ["modelValue"])
|
|
2342
|
-
])) :
|
|
2342
|
+
])) : O("", !0),
|
|
2343
2343
|
b.value ? (h(), L(De, {
|
|
2344
2344
|
key: 2,
|
|
2345
2345
|
variant: "outline",
|
|
@@ -2378,7 +2378,7 @@ const Bo = {
|
|
|
2378
2378
|
s(m(ft), { class: "size-4 absolute left-3 top-1/2 -translate-y-1/2 pointer-events-none" })
|
|
2379
2379
|
], 2),
|
|
2380
2380
|
u("div", sl, [
|
|
2381
|
-
(h(!0), w(
|
|
2381
|
+
(h(!0), w(J, null, ie(e.options, (P) => (h(), L(jt, {
|
|
2382
2382
|
key: P.id
|
|
2383
2383
|
}, {
|
|
2384
2384
|
default: f(() => [
|
|
@@ -2390,15 +2390,15 @@ const Bo = {
|
|
|
2390
2390
|
class: "border-dashed"
|
|
2391
2391
|
}, {
|
|
2392
2392
|
default: f(() => [
|
|
2393
|
-
P.groupBy ? (h(), w(
|
|
2394
|
-
V(F(P.name) + " is " + F(P.values.find((
|
|
2393
|
+
P.groupBy ? (h(), w(J, { key: 1 }, [
|
|
2394
|
+
V(F(P.name) + " is " + F(P.values.find((z) => z.id === P.groupBy)?.value) + " ", 1),
|
|
2395
2395
|
u("div", {
|
|
2396
2396
|
class: "p-2",
|
|
2397
|
-
onClick: fe((
|
|
2397
|
+
onClick: fe((z) => P.groupBy = "", ["stop"])
|
|
2398
2398
|
}, [
|
|
2399
2399
|
s(m(en), { class: "size-3" })
|
|
2400
2400
|
], 8, il)
|
|
2401
|
-
], 64)) : (h(), w(
|
|
2401
|
+
], 64)) : (h(), w(J, { key: 0 }, [
|
|
2402
2402
|
V(F(P.name) + " ", 1),
|
|
2403
2403
|
s(m(pt), { class: "size-3" })
|
|
2404
2404
|
], 64))
|
|
@@ -2412,24 +2412,24 @@ const Bo = {
|
|
|
2412
2412
|
default: f(() => [
|
|
2413
2413
|
s(Rt, {
|
|
2414
2414
|
modelValue: P.groupBy,
|
|
2415
|
-
"onUpdate:modelValue": (
|
|
2415
|
+
"onUpdate:modelValue": (z) => P.groupBy = z,
|
|
2416
2416
|
class: "mb-4"
|
|
2417
2417
|
}, {
|
|
2418
2418
|
default: f(() => [
|
|
2419
|
-
(h(!0), w(
|
|
2419
|
+
(h(!0), w(J, null, ie(P.values, (z) => (h(), w("div", {
|
|
2420
2420
|
class: "flex items-center space-x-2",
|
|
2421
|
-
key:
|
|
2421
|
+
key: z.id
|
|
2422
2422
|
}, [
|
|
2423
2423
|
s(Lt, {
|
|
2424
|
-
id:
|
|
2425
|
-
value:
|
|
2424
|
+
id: z.id,
|
|
2425
|
+
value: z.id,
|
|
2426
2426
|
class: "border-ring"
|
|
2427
2427
|
}, null, 8, ["id", "value"]),
|
|
2428
2428
|
s(Bt, {
|
|
2429
|
-
for:
|
|
2429
|
+
for: z.id
|
|
2430
2430
|
}, {
|
|
2431
2431
|
default: f(() => [
|
|
2432
|
-
V(F(
|
|
2432
|
+
V(F(z.value), 1)
|
|
2433
2433
|
]),
|
|
2434
2434
|
_: 2
|
|
2435
2435
|
}, 1032, ["for"])
|
|
@@ -2439,7 +2439,7 @@ const Bo = {
|
|
|
2439
2439
|
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
2440
2440
|
s(De, {
|
|
2441
2441
|
variant: "ghost",
|
|
2442
|
-
onClick: (
|
|
2442
|
+
onClick: (z) => P.groupBy = "",
|
|
2443
2443
|
size: "sm",
|
|
2444
2444
|
class: "ml-auto",
|
|
2445
2445
|
disabled: !P.groupBy
|
|
@@ -2456,8 +2456,8 @@ const Bo = {
|
|
|
2456
2456
|
_: 2
|
|
2457
2457
|
}, 1024))), 128))
|
|
2458
2458
|
])
|
|
2459
|
-
])) :
|
|
2460
|
-
r.value ? (h(), w(
|
|
2459
|
+
])) : O("", !0),
|
|
2460
|
+
r.value ? (h(), w(J, { key: 1 }, [
|
|
2461
2461
|
u("table", dl, [
|
|
2462
2462
|
u("thead", ul, [
|
|
2463
2463
|
u("tr", null, [
|
|
@@ -2475,13 +2475,13 @@ const Bo = {
|
|
|
2475
2475
|
}, "Collapse all")) : (h(), w("button", {
|
|
2476
2476
|
key: 1,
|
|
2477
2477
|
class: "hover:underline cursor-pointer",
|
|
2478
|
-
onClick: p[5] || (p[5] = (P) => x.value = e.options[r.value].values.map((
|
|
2478
|
+
onClick: p[5] || (p[5] = (P) => x.value = e.options[r.value].values.map((z) => z.id))
|
|
2479
2479
|
}, "Expand all"))
|
|
2480
2480
|
])
|
|
2481
2481
|
]),
|
|
2482
2482
|
p[20] || (p[20] = u("th", { class: "z-[101] sticky -top-4 py-2 font-normal bg-accent dark:bg-border" }, "Price", -1)),
|
|
2483
2483
|
u("th", gl, [
|
|
2484
|
-
s(
|
|
2484
|
+
s(Je, null, {
|
|
2485
2485
|
default: f(() => [
|
|
2486
2486
|
s(Ke, { class: "underline decoration-dashed underline-offset-4" }, {
|
|
2487
2487
|
default: f(() => [...p[18] || (p[18] = [
|
|
@@ -2489,7 +2489,7 @@ const Bo = {
|
|
|
2489
2489
|
])]),
|
|
2490
2490
|
_: 1
|
|
2491
2491
|
}),
|
|
2492
|
-
s(
|
|
2492
|
+
s(qe, null, {
|
|
2493
2493
|
default: f(() => [...p[19] || (p[19] = [
|
|
2494
2494
|
u("p", null, "Inventory at your store that can be sold.", -1)
|
|
2495
2495
|
])]),
|
|
@@ -2502,12 +2502,12 @@ const Bo = {
|
|
|
2502
2502
|
])
|
|
2503
2503
|
]),
|
|
2504
2504
|
u("tbody", ml, [
|
|
2505
|
-
(h(!0), w(
|
|
2505
|
+
(h(!0), w(J, null, ie(e.options[r.value].values, (P) => (h(), w(J, {
|
|
2506
2506
|
key: P.id
|
|
2507
2507
|
}, [
|
|
2508
2508
|
u("tr", {
|
|
2509
2509
|
class: "hover:bg-accent/50 cursor-pointer transition-colors duration-200 border-b border-input",
|
|
2510
|
-
onClick: (
|
|
2510
|
+
onClick: (z) => x.value.includes(P.id) ? x.value.splice(x.value.indexOf(P.id), 1) : x.value.push(P.id)
|
|
2511
2511
|
}, [
|
|
2512
2512
|
u("td", bl, [
|
|
2513
2513
|
s(Ye, {
|
|
@@ -2523,7 +2523,7 @@ const Bo = {
|
|
|
2523
2523
|
sources: m(i),
|
|
2524
2524
|
maxFiles: 1,
|
|
2525
2525
|
"initial-value": K(P.id) ? [] : j(P.id) ? [Q(P.id)] : [Q(P.id), oe(P.id)],
|
|
2526
|
-
onSubmit: (
|
|
2526
|
+
onSubmit: (z) => B(z, P.id)
|
|
2527
2527
|
}, {
|
|
2528
2528
|
default: f(() => [
|
|
2529
2529
|
u("button", {
|
|
@@ -2566,7 +2566,7 @@ const Bo = {
|
|
|
2566
2566
|
u("div", Cl, [
|
|
2567
2567
|
u("p", wl, F(P.value), 1),
|
|
2568
2568
|
u("button", kl, [
|
|
2569
|
-
V(F(S.value?.filter((
|
|
2569
|
+
V(F(S.value?.filter((z) => z.options?.find((q) => q.optionId === r.value)?.valueId === P.id).length) + " variants ", 1),
|
|
2570
2570
|
s(m(pt), {
|
|
2571
2571
|
class: $e(["size-3 transition-transform duration-200", x.value.includes(P.id) ? "rotate-180" : ""])
|
|
2572
2572
|
}, null, 8, ["class"])
|
|
@@ -2576,7 +2576,7 @@ const Bo = {
|
|
|
2576
2576
|
]),
|
|
2577
2577
|
u("td", Pl, [
|
|
2578
2578
|
u("div", Vl, [
|
|
2579
|
-
s(
|
|
2579
|
+
s(Je, null, {
|
|
2580
2580
|
default: f(() => [
|
|
2581
2581
|
s(Ke, {
|
|
2582
2582
|
class: "w-full",
|
|
@@ -2586,31 +2586,31 @@ const Bo = {
|
|
|
2586
2586
|
s(st, {
|
|
2587
2587
|
id: `variant-price-${P.id}`,
|
|
2588
2588
|
modelValue: ce.value,
|
|
2589
|
-
"onUpdate:modelValue": p[8] || (p[8] = (
|
|
2589
|
+
"onUpdate:modelValue": p[8] || (p[8] = (z) => ce.value = z),
|
|
2590
2590
|
class: $e(["dark:bg-transparent dark:border-ring/50 text-center", ye.value === P.id ? "" : "text-transparent"]),
|
|
2591
2591
|
onClick: p[9] || (p[9] = fe(() => {
|
|
2592
2592
|
}, ["stop"])),
|
|
2593
|
-
onFocus: (
|
|
2594
|
-
onBlur: (
|
|
2595
|
-
onKeydown: Yt((
|
|
2593
|
+
onFocus: (z) => Ve(z, P),
|
|
2594
|
+
onBlur: (z) => C(P.id),
|
|
2595
|
+
onKeydown: Yt((z) => E(P.id), ["enter"])
|
|
2596
2596
|
}, null, 8, ["id", "modelValue", "class", "onFocus", "onBlur", "onKeydown"])
|
|
2597
2597
|
]),
|
|
2598
2598
|
_: 2
|
|
2599
2599
|
}, 1024),
|
|
2600
|
-
s(
|
|
2600
|
+
s(qe, null, {
|
|
2601
2601
|
default: f(() => [
|
|
2602
|
-
S.value?.filter((
|
|
2602
|
+
S.value?.filter((z) => z.options?.find((q) => q.optionId === r.value)?.valueId === P.id).length === 1 ? (h(), w("p", Nl, "Applies to 1 variant")) : (h(), w("p", Il, "Applies to all " + F(S.value?.filter((z) => z.options?.find((q) => q.optionId === r.value)?.valueId === P.id).length) + " variants", 1))
|
|
2603
2603
|
]),
|
|
2604
2604
|
_: 2
|
|
2605
2605
|
}, 1024)
|
|
2606
2606
|
]),
|
|
2607
2607
|
_: 2
|
|
2608
2608
|
}, 1024),
|
|
2609
|
-
ye.value !== P.id ? (h(), w("span", Tl, F(je(P.id)), 1)) :
|
|
2609
|
+
ye.value !== P.id ? (h(), w("span", Tl, F(je(P.id)), 1)) : O("", !0)
|
|
2610
2610
|
])
|
|
2611
2611
|
]),
|
|
2612
2612
|
u("td", $l, [
|
|
2613
|
-
s(
|
|
2613
|
+
s(Je, null, {
|
|
2614
2614
|
default: f(() => [
|
|
2615
2615
|
s(Ke, {
|
|
2616
2616
|
class: "w-full focus-visible:outline-none",
|
|
@@ -2636,7 +2636,7 @@ const Bo = {
|
|
|
2636
2636
|
]),
|
|
2637
2637
|
_: 2
|
|
2638
2638
|
}, 1024),
|
|
2639
|
-
s(
|
|
2639
|
+
s(qe, null, {
|
|
2640
2640
|
default: f(() => [...p[21] || (p[21] = [
|
|
2641
2641
|
u("p", null, "Update for individual variants only", -1)
|
|
2642
2642
|
])]),
|
|
@@ -2647,8 +2647,8 @@ const Bo = {
|
|
|
2647
2647
|
}, 1024)
|
|
2648
2648
|
])
|
|
2649
2649
|
], 8, vl),
|
|
2650
|
-
x.value.includes(P.id) ? (h(!0), w(
|
|
2651
|
-
key:
|
|
2650
|
+
x.value.includes(P.id) ? (h(!0), w(J, { key: 0 }, ie(S.value?.filter((z) => z.options?.find((q) => q.optionId === r.value)?.valueId === P.id), (z) => (h(), w("tr", {
|
|
2651
|
+
key: z.id,
|
|
2652
2652
|
class: "hover:bg-accent/50 cursor-pointer transition-colors duration-200 border-b border-input"
|
|
2653
2653
|
}, [
|
|
2654
2654
|
u("td", El, [
|
|
@@ -2661,13 +2661,13 @@ const Bo = {
|
|
|
2661
2661
|
])
|
|
2662
2662
|
]),
|
|
2663
2663
|
u("td", zl, [
|
|
2664
|
-
u("div",
|
|
2664
|
+
u("div", Ml, [
|
|
2665
2665
|
u("div", null, [
|
|
2666
2666
|
s(it, {
|
|
2667
2667
|
sources: m(i),
|
|
2668
2668
|
maxFiles: 1,
|
|
2669
|
-
"initial-value": c.value[I(
|
|
2670
|
-
onSubmit: (
|
|
2669
|
+
"initial-value": c.value[I(z.options)].image ? [c.value[I(z.options)].image] : [],
|
|
2670
|
+
onSubmit: (q) => c.value[I(z.options)].image = q
|
|
2671
2671
|
}, {
|
|
2672
2672
|
default: f(() => [
|
|
2673
2673
|
u("button", {
|
|
@@ -2676,12 +2676,12 @@ const Bo = {
|
|
|
2676
2676
|
tabindex: "-1",
|
|
2677
2677
|
class: "cursor-pointer"
|
|
2678
2678
|
}, [
|
|
2679
|
-
c.value[I(
|
|
2679
|
+
c.value[I(z.options)].image ? (h(), w("img", {
|
|
2680
2680
|
key: 0,
|
|
2681
|
-
src: c.value[I(
|
|
2681
|
+
src: c.value[I(z.options)].image,
|
|
2682
2682
|
class: "size-10 object-cover rounded-md",
|
|
2683
2683
|
draggable: "false"
|
|
2684
|
-
}, null, 8,
|
|
2684
|
+
}, null, 8, Ol)) : (h(), L(De, {
|
|
2685
2685
|
key: 1,
|
|
2686
2686
|
variant: "outline",
|
|
2687
2687
|
class: "size-10 border-dashed cursor-pointer"
|
|
@@ -2697,7 +2697,7 @@ const Bo = {
|
|
|
2697
2697
|
}, 1032, ["sources", "initial-value", "onSubmit"])
|
|
2698
2698
|
]),
|
|
2699
2699
|
u("div", Fl, [
|
|
2700
|
-
u("p", null, F(
|
|
2700
|
+
u("p", null, F(z.options.filter((q) => q.optionId !== r.value).map((q) => q.value).join(" / ")), 1)
|
|
2701
2701
|
])
|
|
2702
2702
|
])
|
|
2703
2703
|
]),
|
|
@@ -2709,8 +2709,8 @@ const Bo = {
|
|
|
2709
2709
|
currencyDisplay: "symbol",
|
|
2710
2710
|
currencySign: "standard"
|
|
2711
2711
|
},
|
|
2712
|
-
modelValue: c.value[I(
|
|
2713
|
-
"onUpdate:modelValue": (
|
|
2712
|
+
modelValue: c.value[I(z.options)].price,
|
|
2713
|
+
"onUpdate:modelValue": (q) => c.value[I(z.options)].price = q,
|
|
2714
2714
|
min: 0
|
|
2715
2715
|
}, {
|
|
2716
2716
|
default: f(() => [
|
|
@@ -2726,8 +2726,8 @@ const Bo = {
|
|
|
2726
2726
|
]),
|
|
2727
2727
|
u("td", Bl, [
|
|
2728
2728
|
s(Ze, {
|
|
2729
|
-
modelValue: c.value[I(
|
|
2730
|
-
"onUpdate:modelValue": (
|
|
2729
|
+
modelValue: c.value[I(z.options)].stock,
|
|
2730
|
+
"onUpdate:modelValue": (q) => c.value[I(z.options)].stock = q
|
|
2731
2731
|
}, {
|
|
2732
2732
|
default: f(() => [
|
|
2733
2733
|
s(Ge, null, {
|
|
@@ -2742,16 +2742,16 @@ const Bo = {
|
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
2744
2744
|
])
|
|
2745
|
-
]))), 128)) :
|
|
2745
|
+
]))), 128)) : O("", !0)
|
|
2746
2746
|
], 64))), 128))
|
|
2747
2747
|
])
|
|
2748
2748
|
]),
|
|
2749
2749
|
u("div", Rl, [
|
|
2750
2750
|
V(" Total inventory at Webshop: " + F(Xe()) + " ", 1),
|
|
2751
|
-
ze() < 0 ? (h(), w("span", Ul, "(" + F(ze()) + ")", 1)) :
|
|
2751
|
+
ze() < 0 ? (h(), w("span", Ul, "(" + F(ze()) + ")", 1)) : O("", !0),
|
|
2752
2752
|
p[22] || (p[22] = V(" available ", -1))
|
|
2753
2753
|
])
|
|
2754
|
-
], 64)) :
|
|
2754
|
+
], 64)) : O("", !0)
|
|
2755
2755
|
]));
|
|
2756
2756
|
};
|
|
2757
2757
|
}
|
|
@@ -2809,7 +2809,7 @@ const Bo = {
|
|
|
2809
2809
|
});
|
|
2810
2810
|
};
|
|
2811
2811
|
}
|
|
2812
|
-
}), Xl = { class: "bg-white dark:bg-gray-50 border-4 dark:border-gray-600 p-4 rounded-lg mb-4" }, Yl = { class: "flex items-center gap-2 mb-2" }, Kl = ["src"],
|
|
2812
|
+
}), Xl = { class: "bg-white dark:bg-gray-50 border-4 dark:border-gray-600 p-4 rounded-lg mb-4" }, Yl = { class: "flex items-center gap-2 mb-2" }, Kl = ["src"], ql = { class: "text-[#1a0dab] text-lg" }, Jl = { class: "text-[#006621] text-[13px]" }, Wl = { class: "text-[#545454] text-[13px]" }, Gl = { class: "flex flex-col gap-4 mb-4" }, Zl = { class: "flex flex-col" }, Ql = {
|
|
2813
2813
|
key: 0,
|
|
2814
2814
|
class: "text-red-500 text-sm mt-1"
|
|
2815
2815
|
}, er = { class: "flex flex-col gap-4 mb-4" }, tr = { class: "flex flex-col" }, nr = {
|
|
@@ -2850,8 +2850,8 @@ const Bo = {
|
|
|
2850
2850
|
}, null, 8, Kl),
|
|
2851
2851
|
d[3] || (d[3] = u("span", { class: "text-[#4186f5] font-medium text-xs" }, "Preview", -1))
|
|
2852
2852
|
]),
|
|
2853
|
-
u("p",
|
|
2854
|
-
u("p",
|
|
2853
|
+
u("p", ql, F(m(l).title), 1),
|
|
2854
|
+
u("p", Jl, F(m(o)), 1),
|
|
2855
2855
|
u("p", Wl, F(m(l).description?.slice(0, 155)) + F(m(l).description?.length > 155 ? " ..." : ""), 1)
|
|
2856
2856
|
]),
|
|
2857
2857
|
u("div", Gl, [
|
|
@@ -2871,7 +2871,7 @@ const Bo = {
|
|
|
2871
2871
|
modelValue: m(o),
|
|
2872
2872
|
"onUpdate:modelValue": d[0] || (d[0] = (N) => Y(o) ? o.value = N : null)
|
|
2873
2873
|
}, null, 8, ["modelValue"]),
|
|
2874
|
-
m(t).slug ? (h(), w("p", Ql, F(m(t).slug), 1)) :
|
|
2874
|
+
m(t).slug ? (h(), w("p", Ql, F(m(t).slug), 1)) : O("", !0)
|
|
2875
2875
|
])
|
|
2876
2876
|
]),
|
|
2877
2877
|
u("div", er, [
|
|
@@ -2891,7 +2891,7 @@ const Bo = {
|
|
|
2891
2891
|
modelValue: m(l).title,
|
|
2892
2892
|
"onUpdate:modelValue": d[1] || (d[1] = (N) => m(l).title = N)
|
|
2893
2893
|
}, null, 8, ["modelValue"]),
|
|
2894
|
-
m(t).seo?.title ? (h(), w("p", nr, F(m(t).seo.title), 1)) :
|
|
2894
|
+
m(t).seo?.title ? (h(), w("p", nr, F(m(t).seo.title), 1)) : O("", !0)
|
|
2895
2895
|
])
|
|
2896
2896
|
]),
|
|
2897
2897
|
u("div", or, [
|
|
@@ -2933,7 +2933,7 @@ const Bo = {
|
|
|
2933
2933
|
setup(e) {
|
|
2934
2934
|
return (t, n) => {
|
|
2935
2935
|
const o = v("Button"), l = v("CardContent"), a = v("Card");
|
|
2936
|
-
return h(), w(
|
|
2936
|
+
return h(), w(J, null, [
|
|
2937
2937
|
n[3] || (n[3] = u("hr", { class: "my-4" }, null, -1)),
|
|
2938
2938
|
s(a, null, {
|
|
2939
2939
|
default: f(() => [
|
|
@@ -2986,7 +2986,7 @@ const Bo = {
|
|
|
2986
2986
|
s(i, { class: "w-full" }, {
|
|
2987
2987
|
default: f(() => [
|
|
2988
2988
|
u("div", cr, [
|
|
2989
|
-
m(n) === "published" ? (h(), w("span", fr)) : m(n) === "draft" ? (h(), w("span", pr)) : m(n) === "archived" ? (h(), w("span", gr)) :
|
|
2989
|
+
m(n) === "published" ? (h(), w("span", fr)) : m(n) === "draft" ? (h(), w("span", pr)) : m(n) === "archived" ? (h(), w("span", gr)) : O("", !0),
|
|
2990
2990
|
s(a, { placeholder: "Status" })
|
|
2991
2991
|
])
|
|
2992
2992
|
]),
|
|
@@ -3054,10 +3054,10 @@ const Bo = {
|
|
|
3054
3054
|
})();
|
|
3055
3055
|
const { errors: i } = xe(), { value: d } = U("collections");
|
|
3056
3056
|
return (r, b) => {
|
|
3057
|
-
const x = v("SelectValue"), c = v("SelectTrigger"), D = v("SelectLabel"), T = v("SelectItem"), N = v("SelectGroup"), I = v("SelectContent"), A = v("Select"),
|
|
3057
|
+
const x = v("SelectValue"), c = v("SelectTrigger"), D = v("SelectLabel"), T = v("SelectItem"), N = v("SelectGroup"), I = v("SelectContent"), A = v("Select"), M = v("CardContent"), _ = v("Card");
|
|
3058
3058
|
return h(), L(_, null, {
|
|
3059
3059
|
default: f(() => [
|
|
3060
|
-
s(
|
|
3060
|
+
s(M, null, {
|
|
3061
3061
|
default: f(() => [
|
|
3062
3062
|
b[5] || (b[5] = u("h3", { class: "text-lg font-semibold mb-4" }, "Collections", -1)),
|
|
3063
3063
|
s(A, {
|
|
@@ -3085,7 +3085,7 @@ const Bo = {
|
|
|
3085
3085
|
])]),
|
|
3086
3086
|
_: 1
|
|
3087
3087
|
}),
|
|
3088
|
-
(h(!0), w(
|
|
3088
|
+
(h(!0), w(J, null, ie(l.value.filter((S) => S.status === "published"), (S) => (h(), L(T, {
|
|
3089
3089
|
key: S.id,
|
|
3090
3090
|
value: S.id
|
|
3091
3091
|
}, {
|
|
@@ -3106,7 +3106,7 @@ const Bo = {
|
|
|
3106
3106
|
])]),
|
|
3107
3107
|
_: 1
|
|
3108
3108
|
}),
|
|
3109
|
-
(h(!0), w(
|
|
3109
|
+
(h(!0), w(J, null, ie(l.value.filter((S) => S.status === "draft"), (S) => (h(), L(T, {
|
|
3110
3110
|
key: S.id,
|
|
3111
3111
|
value: S.id
|
|
3112
3112
|
}, {
|
|
@@ -3145,7 +3145,7 @@ const Bo = {
|
|
|
3145
3145
|
}, wr = { class: "flex flex-col @3xl:flex-row gap-4 max-w-5xl mx-auto pb-24" }, kr = { class: "flex flex-col gap-4 w-full @3xl:w-2/3" }, Pr = { class: "flex flex-col gap-4 w-full @3xl:w-1/3" }, Vr = {
|
|
3146
3146
|
key: 0,
|
|
3147
3147
|
class: "fixed bottom-4 left-0 md:left-12 right-0 min-w-xs max-w-5xl w-[calc(100%-2rem)] md:w-[calc(100%-5rem)] xl:w-[calc(100%-2rem)] h-16 border border-white/10 backdrop-blur-sm border-t border-border flex items-center justify-center px-4 mx-auto z-[9999] rounded-xl overflow-hidden shadow bg-[radial-gradient(#ffffff80,transparent)] dark:bg-[radial-gradient(#00000080,transparent)]"
|
|
3148
|
-
}, Nr = { class: "w-full max-w-5xl flex items-center justify-end mx-auto" },
|
|
3148
|
+
}, Nr = { class: "w-full max-w-5xl flex items-center justify-end mx-auto" }, Or = /* @__PURE__ */ ne({
|
|
3149
3149
|
__name: "Detail",
|
|
3150
3150
|
props: {
|
|
3151
3151
|
config: {
|
|
@@ -3159,7 +3159,7 @@ const Bo = {
|
|
|
3159
3159
|
dt("sources", o.config.allowedMediaSources), dt("defaultSource", o.config.defaultUploadMediaSource);
|
|
3160
3160
|
const c = X(!1), D = de(() => !d.value.productId || d.value.productId === "new"), T = X(""), N = X([]);
|
|
3161
3161
|
N.value = ([t, n] = Kt(() => ce()), t = await t, n(), t);
|
|
3162
|
-
const I =
|
|
3162
|
+
const I = qt(Se({
|
|
3163
3163
|
title: H().min(1, "Title is required"),
|
|
3164
3164
|
description: H().optional(),
|
|
3165
3165
|
media: ve(H()).optional(),
|
|
@@ -3221,7 +3221,7 @@ const Bo = {
|
|
|
3221
3221
|
})).optional(),
|
|
3222
3222
|
tags: ve(H()).optional(),
|
|
3223
3223
|
collections: ve(H()).optional()
|
|
3224
|
-
})), { handleSubmit: A, errors:
|
|
3224
|
+
})), { handleSubmit: A, errors: M, values: _, setValues: S } = Jt({
|
|
3225
3225
|
validationSchema: I,
|
|
3226
3226
|
initialValues: {
|
|
3227
3227
|
createdAt: /* @__PURE__ */ new Date(),
|
|
@@ -3352,9 +3352,9 @@ const Bo = {
|
|
|
3352
3352
|
}),
|
|
3353
3353
|
s(m(on), { class: "size-3" }),
|
|
3354
3354
|
u("h1", yr, F(D.value ? "New Product" : m(_).title), 1),
|
|
3355
|
-
m(_).status === "published" ? (h(), w("span", Dr, "Published")) : m(_).status === "draft" ? (h(), w("span", Sr, "Draft")) : m(_).status === "archived" ? (h(), w("span", Cr, "Archived")) :
|
|
3355
|
+
m(_).status === "published" ? (h(), w("span", Dr, "Published")) : m(_).status === "draft" ? (h(), w("span", Sr, "Draft")) : m(_).status === "archived" ? (h(), w("span", Cr, "Archived")) : O("", !0)
|
|
3356
3356
|
]),
|
|
3357
|
-
D.value ?
|
|
3357
|
+
D.value ? O("", !0) : (h(), L(R, {
|
|
3358
3358
|
key: 0,
|
|
3359
3359
|
class: "rounded-lg shadow-xs"
|
|
3360
3360
|
}, {
|
|
@@ -3369,7 +3369,7 @@ const Bo = {
|
|
|
3369
3369
|
})
|
|
3370
3370
|
]),
|
|
3371
3371
|
_: 1
|
|
3372
|
-
})) :
|
|
3372
|
+
})) : O("", !0),
|
|
3373
3373
|
s(p, null, {
|
|
3374
3374
|
default: f(() => [
|
|
3375
3375
|
s(k, null, {
|
|
@@ -3400,7 +3400,7 @@ const Bo = {
|
|
|
3400
3400
|
E[4] || (E[4] = V(" Archive product ", -1))
|
|
3401
3401
|
]),
|
|
3402
3402
|
_: 1
|
|
3403
|
-
})) :
|
|
3403
|
+
})) : O("", !0),
|
|
3404
3404
|
m(l)("delete-product") ? (h(), L(y, {
|
|
3405
3405
|
key: 1,
|
|
3406
3406
|
variant: "destructive",
|
|
@@ -3411,13 +3411,13 @@ const Bo = {
|
|
|
3411
3411
|
E[5] || (E[5] = V(" Delete product ", -1))
|
|
3412
3412
|
]),
|
|
3413
3413
|
_: 1
|
|
3414
|
-
})) :
|
|
3414
|
+
})) : O("", !0)
|
|
3415
3415
|
]),
|
|
3416
3416
|
_: 1
|
|
3417
3417
|
})
|
|
3418
3418
|
]),
|
|
3419
3419
|
_: 1
|
|
3420
|
-
})) :
|
|
3420
|
+
})) : O("", !0)
|
|
3421
3421
|
]),
|
|
3422
3422
|
_: 1
|
|
3423
3423
|
}))
|
|
@@ -3430,7 +3430,7 @@ const Bo = {
|
|
|
3430
3430
|
s(Fn),
|
|
3431
3431
|
s(Hl),
|
|
3432
3432
|
s(dr),
|
|
3433
|
-
m(i)() ? (h(), L(ur, { key: 0 })) :
|
|
3433
|
+
m(i)() ? (h(), L(ur, { key: 0 })) : O("", !0)
|
|
3434
3434
|
]),
|
|
3435
3435
|
u("div", Pr, [
|
|
3436
3436
|
s(mr),
|
|
@@ -3448,7 +3448,7 @@ const Bo = {
|
|
|
3448
3448
|
c.value ? (h(), L(m(mt), {
|
|
3449
3449
|
key: 0,
|
|
3450
3450
|
class: "size-4 animate-spin"
|
|
3451
|
-
})) :
|
|
3451
|
+
})) : O("", !0),
|
|
3452
3452
|
V(" " + F(c.value ? "Creating" : "Create") + " New Product ", 1)
|
|
3453
3453
|
]),
|
|
3454
3454
|
_: 1
|
|
@@ -3461,17 +3461,17 @@ const Bo = {
|
|
|
3461
3461
|
c.value ? (h(), L(m(mt), {
|
|
3462
3462
|
key: 0,
|
|
3463
3463
|
class: "size-4 animate-spin"
|
|
3464
|
-
})) :
|
|
3464
|
+
})) : O("", !0),
|
|
3465
3465
|
V(" " + F(c.value ? "Saving" : "Save") + " Changes ", 1)
|
|
3466
3466
|
]),
|
|
3467
3467
|
_: 1
|
|
3468
|
-
}, 8, ["onClick", "disabled"])) :
|
|
3468
|
+
}, 8, ["onClick", "disabled"])) : O("", !0)
|
|
3469
3469
|
])
|
|
3470
|
-
])) :
|
|
3470
|
+
])) : O("", !0)
|
|
3471
3471
|
]);
|
|
3472
3472
|
};
|
|
3473
3473
|
}
|
|
3474
3474
|
});
|
|
3475
3475
|
export {
|
|
3476
|
-
|
|
3476
|
+
Or as default
|
|
3477
3477
|
};
|