@getmicdrop/venue-calendar 4.3.117 → 4.3.119
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/README.md +818 -818
- package/dist/{AddOnCard-D_d9UHNs.js → AddOnCard-BGFpF6uw.js} +65 -65
- package/dist/{ArrowLeftIcon-Bs7mUb9F.js → ArrowLeftIcon-pPaJkbnp.js} +1 -1
- package/dist/{BlockPlaceholder-BgUO-Q5N.js → BlockPlaceholder-BgLtwJnm.js} +1 -1
- package/dist/{Calendar-BMGUJww4.js → Calendar-S2Es6EKK.js} +97 -97
- package/dist/{CalendarFoundryView-B3J3OpP5.js → CalendarFoundryView-CZ36wO24.js} +4180 -4493
- package/dist/{CalendarIcon-29_IwvHT.js → CalendarIcon-C_6MSRyE.js} +1 -1
- package/dist/{CartView-H9Z2y9CT.js → CartView-9YSoRvTw.js} +337 -337
- package/dist/CheckIcon-sr8D0z-b.js +25 -0
- package/dist/{Checkout-DOG64hFG.js → Checkout-BLkYIKoR.js} +65 -64
- package/dist/{Checkout-JGthqqs-.js → Checkout-BS3r4Qii.js} +67 -67
- package/dist/{CheckoutTimer-BYmPa5AI.js → CheckoutTimer-DY1NKJXP.js} +2 -2
- package/dist/{ChevronDownIcon-Denff3IQ.js → ChevronDownIcon-Co6rRQp-.js} +1 -1
- package/dist/{CloseIcon-BnwP0Nx3.js → CloseIcon-DpRE5O8y.js} +5 -26
- package/dist/{CollectionView-Cxz75nqf.js → CollectionView-DyFDlCmo.js} +4 -4
- package/dist/{CropImage-BOd2evXB.js → CropImage-C8W_Xb_V.js} +3 -3
- package/dist/Event-DUq4tYBE.js +4058 -0
- package/dist/{EventPage-CFAgJ7ii.js → EventPage-m5SlifRu.js} +19 -19
- package/dist/{Heading-Db8kKUvN.js → Heading-vOVPxhJF.js} +45 -19
- package/dist/{Input-CvK81EKX.js → Input-CsHb9Z8e.js} +5 -5
- package/dist/{MailIcon-DdNZD4Cv.js → LocationIcon-Dxk7snUC.js} +4 -4
- package/dist/{Modal-hKMSS6bJ.js → Modal-kG0LKgMZ.js} +2 -2
- package/dist/{ModalFooter-9RwP9PR1.js → ModalFooter-CM5RDuvB.js} +42 -42
- package/dist/{ModalHeader-9TxpIx5T.js → ModalHeader-DBVXezSL.js} +1 -1
- package/dist/{PasswordInput-CJ7o73tQ.js → PasswordInput-BlL0w_yr.js} +5 -5
- package/dist/{PhoneInput-9qgnvS-F.js → PhoneInput-DnmN_L03.js} +21 -21
- package/dist/{RecommendationsRail-C3FXg2oO.js → RecommendationsRail-Dq9t0T02.js} +69 -44
- package/dist/{ScarcityBadge-BiseR8MX.js → ScarcityBadge-Bj_YMxz4.js} +3 -3
- package/dist/{SeriesPage-byd8v915.js → SeriesPage-CaPTQRSo.js} +2 -2
- package/dist/{Success-D5_89YJA.js → Success-tXgS0BXp.js} +62 -62
- package/dist/{TagIcon-DtX06EKe.js → TagIcon-Kq7_bapx.js} +1 -1
- package/dist/{ViewTicketsEmbed-BmFbj8iP.js → ViewTicketsEmbed-BnuypZ1H.js} +1 -1
- package/dist/{WarningCircleIcon-BEbthCpd.js → WarningCircleIcon-BdbAYYi4.js} +1 -1
- package/dist/{WarningTriIcon-Ba68mCD0.js → WarningTriIcon-D8otatZe.js} +1 -1
- package/dist/api/transformers/event.d.ts +2 -2
- package/dist/{api-OjCXecbx.js → api-DG7ztpYi.js} +1 -1
- package/dist/{constants-kDn3-fLS.js → constants-C6MZgb2S.js} +14 -0
- package/dist/{copyToClipboard-pMnstOiv.js → copyToClipboard-DSangJpP.js} +4 -4
- package/dist/{createErrorGate.svelte-DgREjCbj.js → createErrorGate.svelte-CEBpRAmr.js} +1 -1
- package/dist/{datetime-vgtbUysw.js → datetime-YTw6PkGP.js} +158 -124
- package/dist/{de-Ddxx02Ub.js → de-BPmqZ6ao.js} +15 -1
- package/dist/{es-CbcvPdPt.js → es-BV3Sgeg-.js} +15 -1
- package/dist/{event-transform-B5i2_NHJ.js → event-transform-CyRMeKW_.js} +10 -10
- package/dist/{floatingPosition-Dka8Z2M5.js → floatingPosition-XIv5DYuP.js} +7 -8
- package/dist/{fr-B6StQGuk.js → fr-BJ0VQGEj.js} +15 -1
- package/dist/{href-Dv7vLRDA.js → href-yqxAPbkW.js} +416 -95
- package/dist/{i18n-B-mcjNXL.js → i18n-MF3q-UBI.js} +152 -148
- package/dist/{id-BgyzUf0j.js → id-CVXaHHqU.js} +15 -1
- package/dist/{imageOptimizer-CX9dzg-E.js → imageOptimizer-B3fj8_30.js} +7 -7
- package/dist/{it-FYvfjD40.js → it-C0lzsHje.js} +15 -1
- package/dist/{ja-CttqurG4.js → ja-Dl2r6tQ6.js} +15 -1
- package/dist/{ko-BExabPw4.js → ko-DINqFSE1.js} +15 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/de.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/es.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/fr.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/id.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/it.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/ja.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/ko.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/nl.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/pl.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/pt-br.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/tr.js +1 -1
- package/dist/locales/{4.3.117 → 4.3.119}/flow/zh.js +1 -1
- package/dist/{nl-DQARtEz-.js → nl-D92n5tHa.js} +15 -1
- package/dist/{pl-bEHWdYWg.js → pl-BlZHcnlS.js} +15 -1
- package/dist/portal-D-oaEWsY.js +43 -0
- package/dist/{z-index-CeYVHpUz.js → portalContainment-CeAVqIb-.js} +111 -58
- package/dist/{pt-br-B8XEnIoG.js → pt-br-BrxthY0b.js} +15 -1
- package/dist/{to-event-card-props-BquqSDuB.js → to-event-card-props-Dn1eDOiJ.js} +23 -23
- package/dist/{tr-9EWGVIVf.js → tr-BnAdi4HO.js} +15 -1
- package/dist/{utils-vLhNHY0t.js → utils-CdNe7KGe.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +127 -149
- package/dist/venue-calendar.iife.js +35 -35
- package/dist/venue-calendar.umd.js +57 -57
- package/dist/{zh-BOf81DR7.js → zh-Tg1OTvWs.js} +15 -1
- package/package.json +2 -2
- package/src/lib/theme.js +222 -222
- package/dist/Event-B-FDXrnA.js +0 -3647
- package/dist/portal-BZBgqs8B.js +0 -98
- /package/dist/locales/{4.3.117 → 4.3.119}/main/de.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/es.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/fr.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/id.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/it.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/ja.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/ko.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/nl.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/pl.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/tr.js +0 -0
- /package/dist/locales/{4.3.117 → 4.3.119}/main/zh.js +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { i as e } from "./Button-B58iYo_t.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as i } from "./WarningCircleIcon-
|
|
4
|
-
import { r as a, s as o, t as s } from "./ScarcityBadge-
|
|
2
|
+
import { A as t, k as n, p as r } from "./datetime-YTw6PkGP.js";
|
|
3
|
+
import { r as i } from "./WarningCircleIcon-BdbAYYi4.js";
|
|
4
|
+
import { r as a, s as o, t as s } from "./ScarcityBadge-Bj_YMxz4.js";
|
|
5
5
|
import { A as c, L as l, z as u } from "./defaultLabels-CsRGNP7f.js";
|
|
6
6
|
import { t as d } from "./Button-VUB2WJ88.js";
|
|
7
7
|
import { t as f } from "./Text-CqjLjIF8.js";
|
|
8
|
-
import {
|
|
9
|
-
import { n as h } from "./constants-
|
|
8
|
+
import { r as p, u as m } from "./i18n-MF3q-UBI.js";
|
|
9
|
+
import { n as h } from "./constants-C6MZgb2S.js";
|
|
10
10
|
import "svelte/internal/disclose-version";
|
|
11
11
|
import * as g from "svelte/internal/client";
|
|
12
12
|
var _ = .029, v = .3;
|
|
13
13
|
function y(e) {
|
|
14
14
|
return e.discountedPrice ?? e.price;
|
|
15
15
|
}
|
|
16
|
-
function b(e,
|
|
16
|
+
function b(e, r = {}) {
|
|
17
17
|
if (e <= 0) return 0;
|
|
18
|
-
let i =
|
|
19
|
-
switch (
|
|
20
|
-
case "percentage": return
|
|
21
|
-
case "fixed": return
|
|
22
|
-
default: return
|
|
18
|
+
let i = r.serviceFeePercentage ?? 5, a = (r.serviceFeeCents ?? 150) / 100;
|
|
19
|
+
switch (n(r.serviceFeeChargeType)) {
|
|
20
|
+
case "percentage": return t(i / 100 * e);
|
|
21
|
+
case "fixed": return t(a);
|
|
22
|
+
default: return t(i / 100 * e + a);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
function x(e, t) {
|
|
@@ -29,48 +29,48 @@ function S(e = {}) {
|
|
|
29
29
|
return e.absorbServiceFee === !0;
|
|
30
30
|
}
|
|
31
31
|
function C(e) {
|
|
32
|
-
return
|
|
32
|
+
return t(e.serviceFee + e.cardProcessing);
|
|
33
33
|
}
|
|
34
|
-
function w(e,
|
|
35
|
-
let
|
|
36
|
-
if (
|
|
37
|
-
face:
|
|
34
|
+
function w(e, n = {}) {
|
|
35
|
+
let r = t(e.reduce((e, t) => e + y(t) * t.quantity, 0));
|
|
36
|
+
if (r <= 0 || S(n)) return {
|
|
37
|
+
face: r,
|
|
38
38
|
serviceFee: 0,
|
|
39
39
|
cardProcessing: 0,
|
|
40
|
-
total:
|
|
40
|
+
total: r
|
|
41
41
|
};
|
|
42
|
-
let i = e.reduce((e,
|
|
42
|
+
let i = e.reduce((e, t) => e + Math.min(b(y(t), n), 10) * t.quantity, 0), a = x(r, i), o = t(a), s = t(i);
|
|
43
43
|
return {
|
|
44
|
-
face:
|
|
44
|
+
face: r,
|
|
45
45
|
serviceFee: s,
|
|
46
46
|
cardProcessing: o,
|
|
47
|
-
total: r
|
|
47
|
+
total: t(r + s + o)
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/lib/public-calendar-flow/order-totals.ts
|
|
52
|
-
function T(e,
|
|
52
|
+
function T(e, n, r, i, o, s) {
|
|
53
53
|
let d = [], f = 0, p = 0, m = 0, h = !1;
|
|
54
|
-
for (let
|
|
55
|
-
let e = t
|
|
54
|
+
for (let t of e) {
|
|
55
|
+
let e = n[t.id] ?? 0;
|
|
56
56
|
if (e <= 0) continue;
|
|
57
|
-
let o =
|
|
57
|
+
let o = t.isDonation || t.ticketType === 2, s = o ? parseFloat(r[t.id]) || 0 : t.price;
|
|
58
58
|
if (s == null || !Number.isFinite(s)) {
|
|
59
59
|
d.push({
|
|
60
|
-
ticketId: u(
|
|
61
|
-
lineKey: `t:${
|
|
60
|
+
ticketId: u(t.id),
|
|
61
|
+
lineKey: `t:${t.id}`,
|
|
62
62
|
kind: "ticket",
|
|
63
|
-
ticketName:
|
|
63
|
+
ticketName: t.name,
|
|
64
64
|
quantity: e,
|
|
65
65
|
unitPrice: null,
|
|
66
|
-
fee:
|
|
66
|
+
fee: t.fee,
|
|
67
67
|
subtotal: null,
|
|
68
68
|
isDonation: !1
|
|
69
69
|
}), h = !0;
|
|
70
70
|
continue;
|
|
71
71
|
}
|
|
72
|
-
let c = s, l = o ? 0 :
|
|
73
|
-
if (i.isApplied && i.discountAmount > 0 && !o && a(i.discountTicketIds,
|
|
72
|
+
let c = s, l = o ? 0 : t.fee, g = 0;
|
|
73
|
+
if (i.isApplied && i.discountAmount > 0 && !o && a(i.discountTicketIds, t.id)) {
|
|
74
74
|
if (i.discountType === "%") {
|
|
75
75
|
let e = i.discountAmount;
|
|
76
76
|
g = Math.min(c, e / 100 * c);
|
|
@@ -78,10 +78,10 @@ function T(e, t, n, i, o, s) {
|
|
|
78
78
|
}
|
|
79
79
|
let _ = c * e;
|
|
80
80
|
d.push({
|
|
81
|
-
ticketId: u(
|
|
82
|
-
lineKey: `t:${
|
|
81
|
+
ticketId: u(t.id),
|
|
82
|
+
lineKey: `t:${t.id}`,
|
|
83
83
|
kind: "ticket",
|
|
84
|
-
ticketName:
|
|
84
|
+
ticketName: t.name,
|
|
85
85
|
quantity: e,
|
|
86
86
|
unitPrice: c,
|
|
87
87
|
fee: l,
|
|
@@ -90,22 +90,22 @@ function T(e, t, n, i, o, s) {
|
|
|
90
90
|
}), f += _, p += g * e;
|
|
91
91
|
}
|
|
92
92
|
for (let e of s ?? []) {
|
|
93
|
-
let
|
|
94
|
-
if (
|
|
95
|
-
let
|
|
93
|
+
let n = e.quantity;
|
|
94
|
+
if (n <= 0) continue;
|
|
95
|
+
let r = c(l(e.addOn.priceCents));
|
|
96
96
|
d.push({
|
|
97
97
|
ticketId: u(e.addOn.id),
|
|
98
98
|
lineKey: `a:${e.addOn.id}`,
|
|
99
99
|
kind: "addon",
|
|
100
100
|
ticketName: e.addOn.name,
|
|
101
|
-
quantity:
|
|
102
|
-
unitPrice:
|
|
101
|
+
quantity: n,
|
|
102
|
+
unitPrice: r,
|
|
103
103
|
fee: 0,
|
|
104
|
-
subtotal: r
|
|
104
|
+
subtotal: t(r * n),
|
|
105
105
|
isDonation: !1
|
|
106
|
-
}), f +=
|
|
106
|
+
}), f += r * n;
|
|
107
107
|
}
|
|
108
|
-
return i.isApplied && i.discountAmount > 0 && i.discountType === "$" && (p = Math.min(i.discountAmount, m)), f =
|
|
108
|
+
return i.isApplied && i.discountAmount > 0 && i.discountType === "$" && (p = Math.min(i.discountAmount, m)), f = t(f), p = t(p), h ? {
|
|
109
109
|
lines: d,
|
|
110
110
|
subtotal: null,
|
|
111
111
|
fees: null,
|
|
@@ -164,23 +164,23 @@ function A(e, t) {
|
|
|
164
164
|
//#endregion
|
|
165
165
|
//#region src/lib/public-calendar-flow/AddOnCard.svelte
|
|
166
166
|
var j = g.from_html("<span class=\"add-on-thumb svelte-eimrjh\" aria-hidden=\"true\"> </span>"), M = g.from_html("<!> <span class=\"qty-display svelte-eimrjh\"><!></span> <!>", 1), N = g.from_html("<article><!> <div class=\"min-w-0 flex-1\"><!> <div class=\"flex flex-wrap items-center gap-x-2\"><!> <!> <!> <!></div> <div class=\"mt-1\"><!></div> <!></div> <div class=\"flex items-center quantity-selector\"><!></div></article>");
|
|
167
|
-
function P(t,
|
|
168
|
-
g.push(
|
|
169
|
-
let a = g.prop(
|
|
167
|
+
function P(t, n) {
|
|
168
|
+
g.push(n, !0);
|
|
169
|
+
let a = g.prop(n, "showScarcity", 3, !0), u = g.prop(n, "labels", 3, h), _ = g.derived(() => A(n.addOn, n.ticketCount)), v = g.derived(() => n.addOn.resolvedRemaining <= 0), y = g.derived(() => n.addOn.quantityRule === "per_ticket" && n.ticketCount <= 0 && !g.get(v)), b = g.derived(() => g.get(v) || g.get(y)), x = g.derived(() => n.quantity > 0), S = g.derived(() => !g.get(b) && n.quantity < g.get(_)), C = g.derived(() => r(c(l(n.addOn.priceCents)), u())), w = g.derived(() => a() && m(n.addOn.resolvedRemaining, n.addOn.resolvedRemaining) !== "none"), T = g.derived(() => n.addOn.redeemable ? n.addOn.redeemAt === "host_desk" ? u().addOnRedeemHost || "check in with the host" : n.addOn.redeemAt === "merch_table" ? u().addOnRedeemMerch || "collect at the merch table" : u().addOnRedeemBar || "redeem at the bar" : u().addOnCollectInPerson || "collect in person"), E = g.derived(() => n.addOn.quantityRule === "per_ticket" ? (u().addOnPerTicketLimit || "max {count} per ticket").replace("{count}", String(n.addOn.maxQuantity)) : "");
|
|
170
170
|
function D() {
|
|
171
|
-
g.get(x) && (
|
|
171
|
+
g.get(x) && (n.onQuantityChange(n.addOn.id, n.quantity - 1), e("light"));
|
|
172
172
|
}
|
|
173
173
|
function O() {
|
|
174
|
-
g.get(S) && (
|
|
174
|
+
g.get(S) && (n.onQuantityChange(n.addOn.id, Math.min(n.quantity + 1, g.get(_))), e("light"));
|
|
175
175
|
}
|
|
176
176
|
var k = N();
|
|
177
177
|
let P;
|
|
178
178
|
var F = g.child(k), I = (e) => {
|
|
179
|
-
var t = j(),
|
|
180
|
-
g.reset(t), g.template_effect(() => g.set_text(
|
|
179
|
+
var t = j(), r = g.child(t, !0);
|
|
180
|
+
g.reset(t), g.template_effect(() => g.set_text(r, n.addOn.emoji)), g.append(e, t);
|
|
181
181
|
};
|
|
182
182
|
g.if(F, (e) => {
|
|
183
|
-
|
|
183
|
+
n.addOn.emoji && e(I);
|
|
184
184
|
});
|
|
185
185
|
var L = g.sibling(F, 2), R = g.child(L);
|
|
186
186
|
f(R, {
|
|
@@ -189,8 +189,8 @@ function P(t, r) {
|
|
|
189
189
|
class: "block",
|
|
190
190
|
children: (e, t) => {
|
|
191
191
|
g.next();
|
|
192
|
-
var
|
|
193
|
-
g.template_effect(() => g.set_text(
|
|
192
|
+
var r = g.text();
|
|
193
|
+
g.template_effect(() => g.set_text(r, n.addOn.name)), g.append(e, r);
|
|
194
194
|
},
|
|
195
195
|
$$slots: { default: !0 }
|
|
196
196
|
});
|
|
@@ -200,14 +200,14 @@ function P(t, r) {
|
|
|
200
200
|
color: "muted",
|
|
201
201
|
children: (e, t) => {
|
|
202
202
|
g.next();
|
|
203
|
-
var
|
|
204
|
-
g.template_effect(() => g.set_text(
|
|
203
|
+
var r = g.text();
|
|
204
|
+
g.template_effect(() => g.set_text(r, n.addOn.description)), g.append(e, r);
|
|
205
205
|
},
|
|
206
206
|
$$slots: { default: !0 }
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
g.if(B, (e) => {
|
|
210
|
-
|
|
210
|
+
n.addOn.description && e(V);
|
|
211
211
|
});
|
|
212
212
|
var H = g.sibling(B, 2);
|
|
213
213
|
f(H, {
|
|
@@ -238,10 +238,10 @@ function P(t, r) {
|
|
|
238
238
|
var G = g.sibling(U, 2), K = (e) => {
|
|
239
239
|
s(e, {
|
|
240
240
|
get remaining() {
|
|
241
|
-
return
|
|
241
|
+
return n.addOn.resolvedRemaining;
|
|
242
242
|
},
|
|
243
243
|
get total() {
|
|
244
|
-
return
|
|
244
|
+
return n.addOn.resolvedRemaining;
|
|
245
245
|
},
|
|
246
246
|
context: "ticket",
|
|
247
247
|
get labels() {
|
|
@@ -280,10 +280,10 @@ function P(t, r) {
|
|
|
280
280
|
g.get(y) && e(X);
|
|
281
281
|
}), g.reset(L);
|
|
282
282
|
var Z = g.sibling(L, 2), Q = g.child(Z), $ = (e) => {
|
|
283
|
-
var t = M(),
|
|
283
|
+
var t = M(), r = g.first_child(t);
|
|
284
284
|
{
|
|
285
|
-
let e = g.derived(() => !g.get(x)), t = g.derived(() => u().decrease || "Decrease"), i = g.derived(() =>
|
|
286
|
-
d(
|
|
285
|
+
let e = g.derived(() => !g.get(x)), t = g.derived(() => u().decrease || "Decrease"), i = g.derived(() => n.addOn.name), a = g.derived(() => u().quantityNoun || "quantity");
|
|
286
|
+
d(r, {
|
|
287
287
|
variant: "alternative",
|
|
288
288
|
size: "icon-lg",
|
|
289
289
|
onclick: D,
|
|
@@ -299,19 +299,19 @@ function P(t, r) {
|
|
|
299
299
|
$$slots: { default: !0 }
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
var a = g.sibling(
|
|
302
|
+
var a = g.sibling(r, 2), s = g.child(a);
|
|
303
303
|
f(s, {
|
|
304
304
|
size: "sm",
|
|
305
305
|
children: (e, t) => {
|
|
306
306
|
g.next();
|
|
307
|
-
var
|
|
308
|
-
g.template_effect(() => g.set_text(
|
|
307
|
+
var r = g.text();
|
|
308
|
+
g.template_effect(() => g.set_text(r, n.quantity)), g.append(e, r);
|
|
309
309
|
},
|
|
310
310
|
$$slots: { default: !0 }
|
|
311
311
|
}), g.reset(a);
|
|
312
312
|
var c = g.sibling(a, 2);
|
|
313
313
|
{
|
|
314
|
-
let e = g.derived(() => !g.get(S)), t = g.derived(() => u().increase || "Increase"),
|
|
314
|
+
let e = g.derived(() => !g.get(S)), t = g.derived(() => u().increase || "Increase"), r = g.derived(() => n.addOn.name), a = g.derived(() => u().quantityNoun || "quantity");
|
|
315
315
|
d(c, {
|
|
316
316
|
variant: "alternative",
|
|
317
317
|
size: "icon-lg",
|
|
@@ -320,7 +320,7 @@ function P(t, r) {
|
|
|
320
320
|
return g.get(e);
|
|
321
321
|
},
|
|
322
322
|
get "aria-label"() {
|
|
323
|
-
return `${g.get(t) ?? ""} ${g.get(
|
|
323
|
+
return `${g.get(t) ?? ""} ${g.get(r) ?? ""} ${g.get(a) ?? ""}`;
|
|
324
324
|
},
|
|
325
325
|
children: (e, t) => {
|
|
326
326
|
i(e, { size: "16" });
|
|
@@ -333,7 +333,7 @@ function P(t, r) {
|
|
|
333
333
|
g.if(Q, (e) => {
|
|
334
334
|
g.get(v) || e($);
|
|
335
335
|
}), g.reset(Z), g.reset(k), g.template_effect(() => {
|
|
336
|
-
P = g.set_class(k, 1, "add-on-card flex items-center justify-between gap-3 rounded-lg border p-3 svelte-eimrjh", null, P, { disabled: g.get(b) }), g.set_style(k, `--add-on-transition: ${
|
|
336
|
+
P = g.set_class(k, 1, "add-on-card flex items-center justify-between gap-3 rounded-lg border p-3 svelte-eimrjh", null, P, { disabled: g.get(b) }), g.set_style(k, `--add-on-transition: ${p.normal ?? ""}ms;`), g.set_attribute(k, "data-testid", `add-on-card-${n.addOn.id ?? ""}`);
|
|
337
337
|
}), g.append(t, k), g.pop();
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { X as e } from "./datetime-YTw6PkGP.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ArrowLeftIcon.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as e } from "./sizing-B7ixYndz.js";
|
|
2
|
-
import {
|
|
2
|
+
import { X as t } from "./datetime-YTw6PkGP.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as n from "svelte/internal/client";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/InfoIcon.svelte
|