vlite3 1.4.21 → 1.4.23
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/components/Cart/Cart.vue.js +53 -49
- package/components/Cart/CartCouponInput.vue.d.ts +1 -0
- package/components/Cart/CartCouponInput.vue.js +36 -33
- package/components/Cart/CartLineItem.vue.d.ts +1 -0
- package/components/Cart/CartLineItem.vue.js +121 -113
- package/components/Cart/CartSummary.vue.d.ts +1 -0
- package/components/Cart/CartSummary.vue.js +59 -51
- package/components/Cart/CartVariant1.vue.js +66 -63
- package/components/Cart/CartVariant2.vue.js +50 -47
- package/components/Cart/CartVariant3.vue.js +61 -58
- package/components/Cart/CartVariant4.vue.js +72 -68
- package/components/CategoryManager/CategoryManager.vue2.js +2 -2
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Form/AccordionView.vue.js +80 -77
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +164 -162
- package/components/Form/FormField.vue.js +26 -28
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +21 -18
- package/components/Form/composables/useForm.js +150 -150
- package/components/Form/index.vue.js +1 -1
- package/components/Form/index.vue2.js +43 -39
- package/components/Input.vue.js +3 -3
- package/components/Price/Price.vue.js +2 -2
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +2 -2
- package/components/Textarea.vue.js +14 -14
- package/index.js +389 -388
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/i18n.d.ts +10 -4
- package/utils/i18n.js +14 -3
- /package/components/Dropdown/{DropdownMenu.vue3.js → DropdownMenu.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as N, computed as d, openBlock as a, createElementBlock as u, normalizeClass as o, createElementVNode as n, toDisplayString as m, createCommentVNode as s, createBlock as g, withCtx as k, createTextVNode as h, Fragment as V, renderList as z, createVNode as C } from "vue";
|
|
2
|
+
import D from "../Icon.vue.js";
|
|
3
|
+
import w from "../Button.vue.js";
|
|
4
|
+
import E from "./CartLineItem.vue.js";
|
|
5
|
+
import L from "./CartSummary.vue.js";
|
|
6
|
+
import I from "./CartCouponInput.vue.js";
|
|
7
|
+
import P from "./CartEmptyState.vue.js";
|
|
8
|
+
const R = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "rounded-lg border border-border overflow-hidden"
|
|
11
|
-
},
|
|
11
|
+
}, T = { class: "divide-y divide-border" }, j = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "space-y-2 mt-4"
|
|
14
|
-
},
|
|
14
|
+
}, A = { class: "font-medium text-foreground" }, K = /* @__PURE__ */ N({
|
|
15
15
|
__name: "CartVariant3",
|
|
16
16
|
props: {
|
|
17
17
|
data: {},
|
|
@@ -23,11 +23,11 @@ const P = {
|
|
|
23
23
|
containerClass: {}
|
|
24
24
|
},
|
|
25
25
|
emits: ["update:quantity", "remove", "clear", "apply-coupon", "remove-coupon", "coupon-change", "continue", "continue-shopping"],
|
|
26
|
-
setup(e, { emit:
|
|
27
|
-
const b = e,
|
|
28
|
-
() =>
|
|
29
|
-
);
|
|
30
|
-
return (
|
|
26
|
+
setup(e, { emit: q }) {
|
|
27
|
+
const b = e, i = q, c = d(() => b.data), y = d(() => b.labels || {}), r = d(() => b.actions || {}), p = d(() => b.features || {}), v = d(() => c.value.empty || !c.value.items || c.value.items.length === 0), S = d(
|
|
28
|
+
() => c.value.totals.itemCount ?? c.value.items?.reduce(($, t) => $ + (t.quantity || 0), 0) ?? 0
|
|
29
|
+
), x = d(() => c.value.currency || c.value.totals.currency);
|
|
30
|
+
return ($, t) => (a(), u("div", {
|
|
31
31
|
class: o(["v-cart v-cart-v3 w-full bg-background text-foreground", e.containerClass])
|
|
32
32
|
}, [
|
|
33
33
|
n("div", {
|
|
@@ -36,39 +36,39 @@ const P = {
|
|
|
36
36
|
n("div", null, [
|
|
37
37
|
n("h1", {
|
|
38
38
|
class: o(["font-extrabold tracking-tight text-foreground", e.compact ? "text-xl" : "text-3xl"])
|
|
39
|
-
},
|
|
40
|
-
|
|
39
|
+
}, m(c.value.title || y.value.cart || "Shopping Cart"), 3),
|
|
40
|
+
v.value ? s("", !0) : (a(), u("p", {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: o(["text-muted-foreground mt-0.5", e.compact ? "text-xs" : "text-sm"])
|
|
43
|
-
},
|
|
43
|
+
}, m(S.value) + " " + m(S.value === 1 ? "item" : "items") + " in your cart ", 3))
|
|
44
44
|
]),
|
|
45
|
-
e.features.clearable && !
|
|
45
|
+
e.features.clearable && !v.value && !e.data.readonly ? (a(), g(w, {
|
|
46
46
|
key: 0,
|
|
47
47
|
variant: "ghost",
|
|
48
48
|
size: "sm",
|
|
49
49
|
icon: "lucide:trash-2",
|
|
50
50
|
class: "self-start",
|
|
51
|
-
onClick: t[0] || (t[0] = (l) =>
|
|
51
|
+
onClick: t[0] || (t[0] = (l) => i("clear"))
|
|
52
52
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
53
|
+
default: k(() => [
|
|
54
|
+
h(m(y.value.clearCart || "Clear cart"), 1)
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
})) : s("", !0)
|
|
58
58
|
], 2),
|
|
59
59
|
n("div", {
|
|
60
60
|
class: o(["grid gap-6", [
|
|
61
|
-
|
|
61
|
+
v.value ? "grid-cols-1" : "grid-cols-1 lg:grid-cols-[1fr_360px] xl:grid-cols-[1fr_400px]",
|
|
62
62
|
e.compact ? "gap-4" : "gap-6"
|
|
63
63
|
]])
|
|
64
64
|
}, [
|
|
65
65
|
n("div", null, [
|
|
66
|
-
|
|
66
|
+
v.value ? (a(), g(P, {
|
|
67
67
|
key: 0,
|
|
68
68
|
labels: e.labels,
|
|
69
69
|
compact: e.compact,
|
|
70
|
-
onContinueShopping: t[1] || (t[1] = (l) =>
|
|
71
|
-
}, null, 8, ["labels", "compact"])) : (a(),
|
|
70
|
+
onContinueShopping: t[1] || (t[1] = (l) => i("continue-shopping"))
|
|
71
|
+
}, null, 8, ["labels", "compact"])) : (a(), u("div", R, [
|
|
72
72
|
n("div", {
|
|
73
73
|
class: o(["bg-muted/40 border-b border-border text-muted-foreground uppercase tracking-wider font-bold flex items-center", [e.compact ? "px-3 py-2 text-[10px]" : "px-4 py-2.5 text-xs"]])
|
|
74
74
|
}, [
|
|
@@ -80,25 +80,26 @@ const P = {
|
|
|
80
80
|
class: o(e.compact ? "w-20 text-right" : "w-28 text-right")
|
|
81
81
|
}, "Total", 2)
|
|
82
82
|
], 2),
|
|
83
|
-
n("ul",
|
|
84
|
-
(a(!0),
|
|
83
|
+
n("ul", T, [
|
|
84
|
+
(a(!0), u(V, null, z(e.data.items, (l) => (a(), u("li", {
|
|
85
85
|
key: l.id
|
|
86
86
|
}, [
|
|
87
|
-
|
|
87
|
+
C(E, {
|
|
88
88
|
item: l,
|
|
89
89
|
features: e.features,
|
|
90
90
|
labels: e.labels,
|
|
91
91
|
compact: e.compact,
|
|
92
92
|
readonly: e.data.readonly,
|
|
93
|
+
currency: x.value,
|
|
93
94
|
layout: "card",
|
|
94
|
-
"onUpdate:quantity": t[2] || (t[2] = (f,
|
|
95
|
-
onRemove: t[3] || (t[3] = (f) =>
|
|
96
|
-
}, null, 8, ["item", "features", "labels", "compact", "readonly"])
|
|
95
|
+
"onUpdate:quantity": t[2] || (t[2] = (f, B) => i("update:quantity", f, B)),
|
|
96
|
+
onRemove: t[3] || (t[3] = (f) => i("remove", f))
|
|
97
|
+
}, null, 8, ["item", "features", "labels", "compact", "readonly", "currency"])
|
|
97
98
|
]))), 128))
|
|
98
99
|
])
|
|
99
100
|
]))
|
|
100
101
|
]),
|
|
101
|
-
|
|
102
|
+
v.value ? s("", !0) : (a(), u("aside", {
|
|
102
103
|
key: 0,
|
|
103
104
|
class: o(["lg:sticky lg:top-4 self-start", e.compact ? "space-y-3" : "space-y-4"])
|
|
104
105
|
}, [
|
|
@@ -111,75 +112,77 @@ const P = {
|
|
|
111
112
|
n("div", {
|
|
112
113
|
class: o(e.compact ? "space-y-3" : "space-y-4")
|
|
113
114
|
}, [
|
|
114
|
-
e.features.coupon ? (a(), g(
|
|
115
|
+
e.features.coupon ? (a(), g(I, {
|
|
115
116
|
key: 0,
|
|
116
117
|
coupon: e.data.coupon,
|
|
117
118
|
labels: e.labels,
|
|
118
119
|
compact: e.compact,
|
|
119
120
|
readonly: e.data.readonly,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
currency: x.value,
|
|
122
|
+
onApply: t[4] || (t[4] = (l) => i("apply-coupon", l)),
|
|
123
|
+
onRemove: t[5] || (t[5] = (l) => i("remove-coupon")),
|
|
124
|
+
onChange: t[6] || (t[6] = (l) => i("coupon-change", l))
|
|
125
|
+
}, null, 8, ["coupon", "labels", "compact", "readonly", "currency"])) : s("", !0),
|
|
124
126
|
n("div", {
|
|
125
127
|
class: o(["border-t border-border", e.compact ? "pt-2" : "pt-3"])
|
|
126
128
|
}, [
|
|
127
|
-
|
|
129
|
+
C(L, {
|
|
128
130
|
totals: e.data.totals,
|
|
129
131
|
features: e.features,
|
|
130
132
|
labels: e.labels,
|
|
131
133
|
compact: e.compact,
|
|
132
134
|
coupon: e.data.coupon,
|
|
135
|
+
currency: x.value,
|
|
133
136
|
variant: "Variant3"
|
|
134
|
-
}, null, 8, ["totals", "features", "labels", "compact", "coupon"])
|
|
137
|
+
}, null, 8, ["totals", "features", "labels", "compact", "coupon", "currency"])
|
|
135
138
|
], 2)
|
|
136
139
|
], 2),
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
r.value.showContinue && p.value.continue || r.value.showContinueShopping && p.value.continueShopping ? (a(), u("div", j, [
|
|
141
|
+
r.value.showContinue && p.value.continue ? (a(), g(w, {
|
|
139
142
|
key: 0,
|
|
140
143
|
variant: "primary",
|
|
141
144
|
size: e.compact ? "md" : "lg",
|
|
142
145
|
block: !0,
|
|
143
|
-
icon:
|
|
144
|
-
disabled:
|
|
146
|
+
icon: r.value.continueIcon || "lucide:lock",
|
|
147
|
+
disabled: r.value.continueDisabled || v.value,
|
|
145
148
|
class: "w-full",
|
|
146
|
-
onClick: t[7] || (t[7] = (l) =>
|
|
149
|
+
onClick: t[7] || (t[7] = (l) => i("continue"))
|
|
147
150
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
|
|
151
|
+
default: k(() => [
|
|
152
|
+
h(m(r.value.continueLabel || y.value.continue || "Proceed to checkout"), 1)
|
|
150
153
|
]),
|
|
151
154
|
_: 1
|
|
152
155
|
}, 8, ["size", "icon", "disabled"])) : s("", !0),
|
|
153
|
-
|
|
156
|
+
r.value.showContinueShopping && p.value.continueShopping ? (a(), g(w, {
|
|
154
157
|
key: 1,
|
|
155
158
|
variant: "ghost",
|
|
156
159
|
size: e.compact ? "sm" : "md",
|
|
157
160
|
block: !0,
|
|
158
|
-
icon:
|
|
159
|
-
disabled:
|
|
161
|
+
icon: r.value.continueShoppingIcon || "lucide:arrow-left",
|
|
162
|
+
disabled: r.value.continueShoppingDisabled,
|
|
160
163
|
class: "w-full",
|
|
161
|
-
onClick: t[8] || (t[8] = (l) =>
|
|
164
|
+
onClick: t[8] || (t[8] = (l) => i("continue-shopping"))
|
|
162
165
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
|
|
166
|
+
default: k(() => [
|
|
167
|
+
h(m(r.value.continueShoppingLabel || y.value.continueShopping || "Continue shopping"), 1)
|
|
165
168
|
]),
|
|
166
169
|
_: 1
|
|
167
170
|
}, 8, ["size", "icon", "disabled"])) : s("", !0)
|
|
168
171
|
])) : s("", !0)
|
|
169
172
|
], 2),
|
|
170
|
-
p.value.trustSignals &&
|
|
173
|
+
p.value.trustSignals && c.value.trustSignals?.length ? (a(), u("div", {
|
|
171
174
|
key: 0,
|
|
172
175
|
class: o(["rounded-lg border border-border bg-muted/30", e.compact ? "p-3 space-y-2" : "p-4 space-y-2.5"])
|
|
173
176
|
}, [
|
|
174
|
-
(a(!0),
|
|
177
|
+
(a(!0), u(V, null, z(c.value.trustSignals, (l, f) => (a(), u("div", {
|
|
175
178
|
key: f,
|
|
176
179
|
class: o(["flex items-center gap-2", e.compact ? "text-xs" : "text-sm"])
|
|
177
180
|
}, [
|
|
178
|
-
|
|
181
|
+
C(D, {
|
|
179
182
|
icon: l.icon,
|
|
180
183
|
class: "w-4 h-4 text-muted-foreground"
|
|
181
184
|
}, null, 8, ["icon"]),
|
|
182
|
-
n("span",
|
|
185
|
+
n("span", A, m(l.text), 1)
|
|
183
186
|
], 2))), 128))
|
|
184
187
|
], 2)) : s("", !0)
|
|
185
188
|
], 2))
|
|
@@ -188,5 +191,5 @@ const P = {
|
|
|
188
191
|
}
|
|
189
192
|
});
|
|
190
193
|
export {
|
|
191
|
-
|
|
194
|
+
K as default
|
|
192
195
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as z, computed as i, openBlock as n, createElementBlock as c, normalizeClass as s, createElementVNode as m, createVNode as y, toDisplayString as b, createCommentVNode as r, unref as B, createBlock as g, Fragment as N, renderList as D, withCtx as C, createTextVNode as w } from "vue";
|
|
2
|
+
import E from "../Icon.vue.js";
|
|
3
|
+
import L from "../Price/Price.vue.js";
|
|
4
|
+
import $ from "../Button.vue.js";
|
|
5
|
+
import j from "./CartLineItem.vue.js";
|
|
6
|
+
import I from "./CartSummary.vue.js";
|
|
7
|
+
import R from "./CartCouponInput.vue.js";
|
|
8
|
+
import T from "./CartEmptyState.vue.js";
|
|
9
|
+
const A = { class: "flex items-center gap-2 min-w-0" }, F = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "inline-flex items-center justify-center px-1.5 h-5 rounded-full bg-primary/10 text-primary text-[10px] font-bold tabular-nums"
|
|
12
|
-
},
|
|
12
|
+
}, U = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "text-xs text-muted-foreground"
|
|
15
|
-
},
|
|
15
|
+
}, G = { class: "font-semibold text-foreground" }, H = { class: "flex-1 min-h-0 overflow-y-auto" }, J = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "space-y-1.5 pt-0.5"
|
|
18
|
-
},
|
|
18
|
+
}, Z = /* @__PURE__ */ z({
|
|
19
19
|
__name: "CartVariant4",
|
|
20
20
|
props: {
|
|
21
21
|
data: {},
|
|
@@ -27,119 +27,123 @@ const T = { class: "flex items-center gap-2 min-w-0" }, A = {
|
|
|
27
27
|
containerClass: {}
|
|
28
28
|
},
|
|
29
29
|
emits: ["update:quantity", "remove", "clear", "apply-coupon", "remove-coupon", "coupon-change", "continue", "continue-shopping"],
|
|
30
|
-
setup(e, { emit:
|
|
31
|
-
const
|
|
32
|
-
() =>
|
|
33
|
-
);
|
|
34
|
-
return (
|
|
35
|
-
class:
|
|
30
|
+
setup(e, { emit: S }) {
|
|
31
|
+
const v = e, l = S, u = i(() => v.data), x = i(() => v.labels || {}), a = i(() => v.actions || {}), p = i(() => v.features || {}), d = i(() => u.value.empty || !u.value.items || u.value.items.length === 0), V = i(
|
|
32
|
+
() => u.value.totals.itemCount ?? u.value.items?.reduce((k, t) => k + (t.quantity || 0), 0) ?? 0
|
|
33
|
+
), f = i(() => u.value.currency || u.value.totals.currency);
|
|
34
|
+
return (k, t) => (n(), c("div", {
|
|
35
|
+
class: s(["v-cart v-cart-v4 flex flex-col bg-background text-foreground border border-border rounded-lg overflow-hidden w-full h-full", [e.containerClass]])
|
|
36
36
|
}, [
|
|
37
37
|
m("div", {
|
|
38
|
-
class:
|
|
38
|
+
class: s(["flex items-center justify-between gap-2 border-b border-border shrink-0", e.compact ? "px-3 py-2" : "px-4 py-2.5"])
|
|
39
39
|
}, [
|
|
40
|
-
m("div",
|
|
41
|
-
|
|
40
|
+
m("div", A, [
|
|
41
|
+
y(E, {
|
|
42
42
|
icon: "lucide:shopping-bag",
|
|
43
|
-
class:
|
|
43
|
+
class: s(e.compact ? "w-4 h-4" : "w-4.5 h-4.5")
|
|
44
44
|
}, null, 8, ["class"]),
|
|
45
45
|
m("p", {
|
|
46
|
-
class:
|
|
47
|
-
}, b(
|
|
48
|
-
d.value ?
|
|
46
|
+
class: s(["font-bold text-foreground truncate", (e.compact, "text-sm")])
|
|
47
|
+
}, b(u.value.title || x.value.cart || "Cart"), 3),
|
|
48
|
+
d.value ? r("", !0) : (n(), c("span", F, b(V.value), 1))
|
|
49
49
|
]),
|
|
50
|
-
!d.value && !e.compact ? (
|
|
51
|
-
m("span",
|
|
52
|
-
|
|
50
|
+
!d.value && !e.compact ? (n(), c("p", U, [
|
|
51
|
+
m("span", G, [
|
|
52
|
+
y(B(L), {
|
|
53
53
|
value: e.data.totals.grandTotal,
|
|
54
|
+
currency: f.value,
|
|
54
55
|
class: "text-foreground font-semibold"
|
|
55
|
-
}, null, 8, ["value"])
|
|
56
|
+
}, null, 8, ["value", "currency"])
|
|
56
57
|
])
|
|
57
|
-
])) :
|
|
58
|
+
])) : r("", !0)
|
|
58
59
|
], 2),
|
|
59
|
-
m("div",
|
|
60
|
-
d.value ? (
|
|
60
|
+
m("div", H, [
|
|
61
|
+
d.value ? (n(), g(T, {
|
|
61
62
|
key: 0,
|
|
62
63
|
labels: e.labels,
|
|
63
64
|
compact: !0,
|
|
64
|
-
onContinueShopping: t[0] || (t[0] = (
|
|
65
|
-
}, null, 8, ["labels"])) : (
|
|
65
|
+
onContinueShopping: t[0] || (t[0] = (o) => l("continue-shopping"))
|
|
66
|
+
}, null, 8, ["labels"])) : (n(), c("ul", {
|
|
66
67
|
key: 1,
|
|
67
|
-
class:
|
|
68
|
+
class: s(["divide-y divide-border", e.compact ? "px-3" : "px-4"])
|
|
68
69
|
}, [
|
|
69
|
-
(
|
|
70
|
-
key:
|
|
70
|
+
(n(!0), c(N, null, D(e.data.items, (o) => (n(), c("li", {
|
|
71
|
+
key: o.id
|
|
71
72
|
}, [
|
|
72
|
-
|
|
73
|
-
item:
|
|
73
|
+
y(j, {
|
|
74
|
+
item: o,
|
|
74
75
|
features: e.features,
|
|
75
76
|
labels: e.labels,
|
|
76
77
|
compact: e.compact,
|
|
77
78
|
readonly: e.data.readonly,
|
|
79
|
+
currency: f.value,
|
|
78
80
|
layout: "mini",
|
|
79
|
-
"onUpdate:quantity": t[1] || (t[1] = (
|
|
80
|
-
onRemove: t[2] || (t[2] = (
|
|
81
|
-
}, null, 8, ["item", "features", "labels", "compact", "readonly"])
|
|
81
|
+
"onUpdate:quantity": t[1] || (t[1] = (h, q) => l("update:quantity", h, q)),
|
|
82
|
+
onRemove: t[2] || (t[2] = (h) => l("remove", h))
|
|
83
|
+
}, null, 8, ["item", "features", "labels", "compact", "readonly", "currency"])
|
|
82
84
|
]))), 128))
|
|
83
85
|
], 2))
|
|
84
86
|
]),
|
|
85
|
-
d.value ?
|
|
87
|
+
d.value ? r("", !0) : (n(), c("div", {
|
|
86
88
|
key: 0,
|
|
87
|
-
class:
|
|
89
|
+
class: s(["border-t border-border bg-muted/30 shrink-0", e.compact ? "p-3 space-y-2" : "p-4 space-y-3"])
|
|
88
90
|
}, [
|
|
89
|
-
|
|
91
|
+
y(I, {
|
|
90
92
|
totals: e.data.totals,
|
|
91
93
|
features: e.features,
|
|
92
94
|
labels: e.labels,
|
|
93
95
|
compact: e.compact,
|
|
94
96
|
coupon: e.data.coupon,
|
|
97
|
+
currency: f.value,
|
|
95
98
|
variant: "Variant4"
|
|
96
|
-
}, null, 8, ["totals", "features", "labels", "compact", "coupon"]),
|
|
97
|
-
e.features.coupon ? (
|
|
99
|
+
}, null, 8, ["totals", "features", "labels", "compact", "coupon", "currency"]),
|
|
100
|
+
e.features.coupon ? (n(), g(R, {
|
|
98
101
|
key: 0,
|
|
99
102
|
coupon: e.data.coupon,
|
|
100
103
|
labels: e.labels,
|
|
101
104
|
compact: e.compact,
|
|
102
105
|
readonly: e.data.readonly,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
currency: f.value,
|
|
107
|
+
onApply: t[3] || (t[3] = (o) => l("apply-coupon", o)),
|
|
108
|
+
onRemove: t[4] || (t[4] = (o) => l("remove-coupon")),
|
|
109
|
+
onChange: t[5] || (t[5] = (o) => l("coupon-change", o))
|
|
110
|
+
}, null, 8, ["coupon", "labels", "compact", "readonly", "currency"])) : r("", !0),
|
|
111
|
+
a.value.showContinue && p.value.continue || a.value.showContinueShopping && p.value.continueShopping ? (n(), c("div", J, [
|
|
112
|
+
a.value.showContinue && p.value.continue ? (n(), g($, {
|
|
109
113
|
key: 0,
|
|
110
114
|
variant: "primary",
|
|
111
115
|
size: e.compact ? "sm" : "md",
|
|
112
116
|
block: !0,
|
|
113
|
-
icon:
|
|
114
|
-
disabled:
|
|
117
|
+
icon: a.value.continueIcon || "lucide:arrow-right",
|
|
118
|
+
disabled: a.value.continueDisabled || d.value,
|
|
115
119
|
class: "w-full",
|
|
116
|
-
onClick: t[6] || (t[6] = (
|
|
120
|
+
onClick: t[6] || (t[6] = (o) => l("continue"))
|
|
117
121
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
|
|
122
|
+
default: C(() => [
|
|
123
|
+
w(b(a.value.continueLabel || x.value.continue || "Checkout"), 1)
|
|
120
124
|
]),
|
|
121
125
|
_: 1
|
|
122
|
-
}, 8, ["size", "icon", "disabled"])) :
|
|
123
|
-
|
|
126
|
+
}, 8, ["size", "icon", "disabled"])) : r("", !0),
|
|
127
|
+
a.value.showContinueShopping && p.value.continueShopping ? (n(), g($, {
|
|
124
128
|
key: 1,
|
|
125
129
|
variant: "ghost",
|
|
126
130
|
size: "sm",
|
|
127
131
|
block: !0,
|
|
128
|
-
icon:
|
|
129
|
-
disabled:
|
|
132
|
+
icon: a.value.continueShoppingIcon || "lucide:arrow-left",
|
|
133
|
+
disabled: a.value.continueShoppingDisabled,
|
|
130
134
|
class: "w-full",
|
|
131
|
-
onClick: t[7] || (t[7] = (
|
|
135
|
+
onClick: t[7] || (t[7] = (o) => l("continue-shopping"))
|
|
132
136
|
}, {
|
|
133
|
-
default:
|
|
134
|
-
|
|
137
|
+
default: C(() => [
|
|
138
|
+
w(b(a.value.continueShoppingLabel || x.value.continueShopping || "Continue shopping"), 1)
|
|
135
139
|
]),
|
|
136
140
|
_: 1
|
|
137
|
-
}, 8, ["icon", "disabled"])) :
|
|
138
|
-
])) :
|
|
141
|
+
}, 8, ["icon", "disabled"])) : r("", !0)
|
|
142
|
+
])) : r("", !0)
|
|
139
143
|
], 2))
|
|
140
144
|
], 2));
|
|
141
145
|
}
|
|
142
146
|
});
|
|
143
147
|
export {
|
|
144
|
-
|
|
148
|
+
Z as default
|
|
145
149
|
};
|