@getmicdrop/venue-calendar 4.3.7 → 4.3.9
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/{ArrowLeftIcon-DvOokN4u.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
- package/dist/{Badge-Gg5PWs7f.js → Badge-DsuBHDo4.js} +1 -2
- package/dist/{BlockPlaceholder-C2PUGPNA.js → BlockPlaceholder-BvArmbbO.js} +2 -2
- package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
- package/dist/{Calendar-BnqBcrZv.js → Calendar-Dei3Ahdk.js} +113 -105
- package/dist/{CalendarFoundryView-L97Allfg.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
- package/dist/{CalendarIcon-DvhQ-GaL.js → CalendarIcon-DJh5V_U9.js} +1 -1
- package/dist/CartView-DPzvlZwV.js +2245 -0
- package/dist/Checkout-CZGmzTDh.js +983 -0
- package/dist/{Checkout-DQWeMchu.js → Checkout-CaamQTXi.js} +368 -368
- package/dist/{CheckoutTimer-8tVmatUn.js → CheckoutTimer-BubF7ziC.js} +15 -15
- package/dist/{ChevronDownIcon-DyNmV5XZ.js → ChevronDownIcon-MTzda9yz.js} +1 -1
- package/dist/{ClockIcon-dOWVO61o.js → ClockIcon-Dit8R1GZ.js} +1 -1
- package/dist/{CloseIcon-a3S2RgbP.js → CloseIcon-XqvbBmiA.js} +1 -1
- package/dist/{CollectionView-CAMsmrmW.js → CollectionView-B_rrXaQH.js} +17 -17
- package/dist/CropImage-mVbYhD9Y.js +527 -0
- package/dist/{Event-BQgaaFkh.js → Event-WtVZMQfA.js} +585 -585
- package/dist/EventPage-B14U0-Hm.js +1147 -0
- package/dist/{Heading-cKAx0Ogl.js → Heading-PKl9dm72.js} +3 -4
- package/dist/{Image-CNZLcePz.js → Image-BWo4QBld.js} +12 -13
- package/dist/{Input-D1FpSX5Q.js → Input-Bl1wqeUH.js} +2 -2
- package/dist/{MailIcon-CR_eGi6n.js → MailIcon-DQTusrr4.js} +1 -1
- package/dist/{Modal-LkN8lh_m.js → Modal-CDIhIlu-.js} +2 -2
- package/dist/ModalFooter-DwkZn9ls.js +471 -0
- package/dist/ModalHeader-BSsyLaXY.js +18 -0
- package/dist/{PasswordInput-Bt6tvpzi.js → PasswordInput-CnjRiZJ7.js} +2 -2
- package/dist/{ScarcityBadge-g0dRh6K7.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
- package/dist/{SeriesPage-CNRwP2W0.js → SeriesPage-DszQMCy9.js} +5 -5
- package/dist/{Spinner-LroI7eOC.js → Spinner-BRgBJYJn.js} +2 -2
- package/dist/{Success--2NRdG0V.js → Success-BYVtvNeO.js} +106 -106
- package/dist/{TagIcon-BhLrURo_.js → TagIcon-BAZxGlbC.js} +1 -1
- package/dist/{ViewTicketsEmbed-CvuMdTA7.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
- package/dist/{WarningCircleIcon-BxBY0OMQ.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
- package/dist/{WarningTriIcon-QVzQiEM4.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
- package/dist/{__SKIP_PATHS__-B0_APtpt.js → __SKIP_PATHS__-B3-kZeYN.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +239 -237
- package/dist/{colors-BsP3TRan.js → api-CTiZ6rza.js} +243 -244
- package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
- package/dist/{constants-PBNG9ikv.js → constants-rFRS1lF-.js} +1 -1
- package/dist/{copyToClipboard-B2F5d6Cj.js → copyToClipboard-C5D-wCS_.js} +1 -1
- package/dist/{defaultLabels-BigaGqKj.js → defaultLabels-CpurXn7c.js} +337 -361
- package/dist/{event-rtg4-kWS.js → event-d06xVg2P.js} +1 -1
- package/dist/{event-transform-J7U1JmeK.js → event-transform-BjPTqPq1.js} +31 -31
- package/dist/{eventStatusStream-CJVT_9Gu.js → eventStatusStream-BhQUTdOZ.js} +2 -2
- package/dist/{href-Dx7B6ZiQ.js → href-DMLDnIDe.js} +3 -3
- package/dist/{i18n-sO8wTASy.js → i18n--3wPB7-n.js} +2 -2
- package/dist/{i18n-C0aOwSpF.js → i18n-CASpRf85.js} +135 -135
- package/dist/imageOptimizer-D8g9XVns.js +141 -0
- package/dist/{labels-BBFJnXep.js → labels-IV_I9087.js} +14 -14
- package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
- package/dist/{order-totals-DR-oXumr.js → order-totals-Buq9HeZa.js} +33 -33
- package/dist/{orders-CFF0Hb2x.js → orders-BK47iONR.js} +2 -2
- package/dist/{phoneUtils-C2GGZYvA.js → phoneUtils-YjT5IJ25.js} +1 -1
- package/dist/{pixels-M4FTi1Of.js → pixels-DjK-0XYz.js} +3 -3
- package/dist/{promo--p3GbP64.js → promo-DkM9sLly.js} +1 -1
- package/dist/{serverTotals-Dbi69SIr.js → serverTotals-CvJBYArq.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-Cb2Mdn0z.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
- package/dist/{showcase-state-options-BZGCm4wo.js → showcase-state-options-x_9iSBsd.js} +1 -1
- package/dist/{to-event-card-props-dIhKdERf.js → to-event-card-props-9y7sVBi_.js} +49 -49
- package/dist/types/index.d.ts +39 -0
- package/dist/{utils-CbacksjX.js → utils-D80jLqKH.js} +3 -3
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1515 -1506
- package/dist/venue-calendar.iife.js +54 -54
- package/dist/venue-calendar.umd.js +54 -54
- package/package.json +2 -2
- package/dist/CartView-D57bwixz.js +0 -2245
- package/dist/Checkout-wUH2YI1N.js +0 -980
- package/dist/CropImage-CxLcNArr.js +0 -445
- package/dist/EventPage-B9shaVEP.js +0 -1146
- package/dist/ModalFooter-B_8f1Z5p.js +0 -301
- package/dist/imageOptimizer-BwLwBMI6.js +0 -112
- package/dist/modalManager.svelte-B9mhX1cG.js +0 -53
- package/dist/portal-DqxEuE-7.js +0 -166
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/de.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/es.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/id.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/it.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/de.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/es.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/fr.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/id.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/it.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/ja.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/ko.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/nl.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/pl.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/tr.js +0 -0
- /package/dist/locales/{4.3.7 → 4.3.9}/main/zh.js +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as e, S as t, w as n, x as r } from "./api-CTiZ6rza.js";
|
|
2
2
|
//#region src/lib/core/theme-engine.js
|
|
3
3
|
var i = {
|
|
4
4
|
primary: t.defaultThemePrimary,
|
|
5
5
|
primaryHover: r.violet[700],
|
|
6
6
|
secondary: r.green.emerald,
|
|
7
7
|
accent: r.amber[500],
|
|
8
|
-
background:
|
|
9
|
-
surface:
|
|
10
|
-
surfaceHover:
|
|
11
|
-
text:
|
|
12
|
-
textMuted:
|
|
13
|
-
textOnPrimary:
|
|
14
|
-
border:
|
|
15
|
-
borderMuted:
|
|
8
|
+
background: n.background.primary,
|
|
9
|
+
surface: e[50],
|
|
10
|
+
surfaceHover: e[100],
|
|
11
|
+
text: e[800],
|
|
12
|
+
textMuted: e[500],
|
|
13
|
+
textOnPrimary: n.text.inverted,
|
|
14
|
+
border: e[200],
|
|
15
|
+
borderMuted: e[100],
|
|
16
16
|
radiusSm: "4px",
|
|
17
17
|
radiusMd: "8px",
|
|
18
18
|
radiusLg: "12px",
|
|
@@ -28,17 +28,17 @@ var i = {
|
|
|
28
28
|
shadowMd: "0 4px 6px rgba(0, 0, 0, 0.1)",
|
|
29
29
|
shadowLg: "0 10px 15px rgba(0, 0, 0, 0.1)",
|
|
30
30
|
badgeScarcityBg: r.red[600],
|
|
31
|
-
badgeScarcityText:
|
|
32
|
-
badgeSoldOutBg:
|
|
33
|
-
badgeSoldOutText:
|
|
31
|
+
badgeScarcityText: n.text.inverted,
|
|
32
|
+
badgeSoldOutBg: e[500],
|
|
33
|
+
badgeSoldOutText: n.text.inverted,
|
|
34
34
|
badgeAgeBg: r.amber[500],
|
|
35
|
-
badgeAgeText:
|
|
35
|
+
badgeAgeText: e[800],
|
|
36
36
|
statusOnSale: r.green.emerald,
|
|
37
37
|
statusSellingFast: r.amber[500],
|
|
38
38
|
statusSoldOut: r.red[600],
|
|
39
39
|
spacingUnit: "4px"
|
|
40
40
|
};
|
|
41
|
-
({ ...i }), { ...i }, r.violet[500], r.violet[400],
|
|
41
|
+
({ ...i }), { ...i }, r.violet[500], r.violet[400], e[900], e[800], e[700], e[50], e[400], e[700], e[600], { ...i }, e[700], e[800], n.background.primary, e[50], e[200], { ...i }, r.red[600], r.red[700], t.defaultThemePrimary;
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/lib/public-calendar-flow/i18n/labels.js
|
|
44
44
|
var a = {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as e from "svelte/internal/client";
|
|
2
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/utils/modalManager.svelte.js
|
|
3
|
+
function t() {
|
|
4
|
+
let t = e.state(!1), n = e.state(null);
|
|
5
|
+
return {
|
|
6
|
+
get isOpen() {
|
|
7
|
+
return e.get(t);
|
|
8
|
+
},
|
|
9
|
+
get data() {
|
|
10
|
+
return e.get(n);
|
|
11
|
+
},
|
|
12
|
+
open(r) {
|
|
13
|
+
e.set(n, r ?? null, !0), e.set(t, !0);
|
|
14
|
+
},
|
|
15
|
+
close() {
|
|
16
|
+
e.set(t, !1), e.set(n, null);
|
|
17
|
+
},
|
|
18
|
+
toggle(r) {
|
|
19
|
+
e.get(t) ? (e.set(t, !1), e.set(n, null)) : (e.set(n, r ?? null, !0), e.set(t, !0));
|
|
20
|
+
},
|
|
21
|
+
bind() {
|
|
22
|
+
return {
|
|
23
|
+
get open() {
|
|
24
|
+
return e.get(t);
|
|
25
|
+
},
|
|
26
|
+
set open(r) {
|
|
27
|
+
r ? e.set(t, !0) : (e.set(t, !1), e.set(n, null));
|
|
28
|
+
},
|
|
29
|
+
oncancel() {
|
|
30
|
+
e.set(t, !1), e.set(n, null);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as r } from "./promo
|
|
1
|
+
import { D as e, O as t } from "./constants-rFRS1lF-.js";
|
|
2
|
+
import { R as n } from "./defaultLabels-CpurXn7c.js";
|
|
3
|
+
import { n as r } from "./promo-DkM9sLly.js";
|
|
4
4
|
var i = .029, a = .3;
|
|
5
5
|
function o(e) {
|
|
6
6
|
return e.discountedPrice ?? e.price;
|
|
7
7
|
}
|
|
8
|
-
function s(
|
|
9
|
-
if (
|
|
8
|
+
function s(n, r = {}) {
|
|
9
|
+
if (n <= 0) return 0;
|
|
10
10
|
let i = r.serviceFeePercentage ?? 5, a = (r.serviceFeeCents ?? 150) / 100;
|
|
11
|
-
switch (
|
|
12
|
-
case "percentage": return
|
|
13
|
-
case "fixed": return
|
|
14
|
-
default: return
|
|
11
|
+
switch (e(r.serviceFeeChargeType)) {
|
|
12
|
+
case "percentage": return t(i / 100 * n);
|
|
13
|
+
case "fixed": return t(a);
|
|
14
|
+
default: return t(i / 100 * n + a);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
function c(e, t) {
|
|
@@ -21,63 +21,63 @@ function l(e = {}) {
|
|
|
21
21
|
return e.absorbServiceFee === !0;
|
|
22
22
|
}
|
|
23
23
|
function u(e) {
|
|
24
|
-
return
|
|
24
|
+
return t(e.serviceFee + e.cardProcessing);
|
|
25
25
|
}
|
|
26
|
-
function d(e,
|
|
27
|
-
let r =
|
|
28
|
-
if (r <= 0 || l(
|
|
26
|
+
function d(e, n = {}) {
|
|
27
|
+
let r = t(e.reduce((e, t) => e + o(t) * t.quantity, 0));
|
|
28
|
+
if (r <= 0 || l(n)) return {
|
|
29
29
|
face: r,
|
|
30
30
|
serviceFee: 0,
|
|
31
31
|
cardProcessing: 0,
|
|
32
32
|
total: r
|
|
33
33
|
};
|
|
34
|
-
let i = e.reduce((e,
|
|
34
|
+
let i = e.reduce((e, t) => e + Math.min(s(o(t), n), 10) * t.quantity, 0), a = c(r, i), u = t(a), d = t(i);
|
|
35
35
|
return {
|
|
36
36
|
face: r,
|
|
37
37
|
serviceFee: d,
|
|
38
38
|
cardProcessing: u,
|
|
39
|
-
total:
|
|
39
|
+
total: t(r + d + u)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/lib/public-calendar-flow/order-totals.ts
|
|
44
|
-
function f(
|
|
44
|
+
function f(e, i, a, o, s) {
|
|
45
45
|
let c = [], l = 0, u = 0, d = 0, f = !1;
|
|
46
|
-
for (let
|
|
47
|
-
let
|
|
48
|
-
if (
|
|
49
|
-
let s =
|
|
46
|
+
for (let t of e) {
|
|
47
|
+
let e = i[t.id] ?? 0;
|
|
48
|
+
if (e <= 0) continue;
|
|
49
|
+
let s = t.isDonation || t.ticketType === 2, p = s ? parseFloat(a[t.id]) || 0 : t.price;
|
|
50
50
|
if (p == null || !Number.isFinite(p)) {
|
|
51
51
|
c.push({
|
|
52
|
-
ticketId:
|
|
53
|
-
ticketName:
|
|
54
|
-
quantity:
|
|
52
|
+
ticketId: n(t.id),
|
|
53
|
+
ticketName: t.name,
|
|
54
|
+
quantity: e,
|
|
55
55
|
unitPrice: null,
|
|
56
|
-
fee:
|
|
56
|
+
fee: t.fee,
|
|
57
57
|
subtotal: null,
|
|
58
58
|
isDonation: !1
|
|
59
59
|
}), f = !0;
|
|
60
60
|
continue;
|
|
61
61
|
}
|
|
62
|
-
let m = p, h = s ? 0 :
|
|
63
|
-
if (o.isApplied && o.discountAmount > 0 && !s && r(o.discountTicketIds,
|
|
62
|
+
let m = p, h = s ? 0 : t.fee, g = 0;
|
|
63
|
+
if (o.isApplied && o.discountAmount > 0 && !s && r(o.discountTicketIds, t.id)) {
|
|
64
64
|
if (o.discountType === "%") {
|
|
65
65
|
let e = o.discountAmount;
|
|
66
66
|
g = Math.min(m, e / 100 * m);
|
|
67
|
-
} else o.discountType === "$" && (d += m *
|
|
67
|
+
} else o.discountType === "$" && (d += m * e);
|
|
68
68
|
}
|
|
69
|
-
let _ = m *
|
|
69
|
+
let _ = m * e;
|
|
70
70
|
c.push({
|
|
71
|
-
ticketId:
|
|
72
|
-
ticketName:
|
|
73
|
-
quantity:
|
|
71
|
+
ticketId: n(t.id),
|
|
72
|
+
ticketName: t.name,
|
|
73
|
+
quantity: e,
|
|
74
74
|
unitPrice: m,
|
|
75
75
|
fee: h,
|
|
76
76
|
subtotal: _,
|
|
77
77
|
isDonation: s
|
|
78
|
-
}), l += _, u += g *
|
|
78
|
+
}), l += _, u += g * e;
|
|
79
79
|
}
|
|
80
|
-
return o.isApplied && o.discountAmount > 0 && o.discountType === "$" && (u = Math.min(o.discountAmount, d)), l =
|
|
80
|
+
return o.isApplied && o.discountAmount > 0 && o.discountType === "$" && (u = Math.min(o.discountAmount, d)), l = t(l), u = t(u), f ? {
|
|
81
81
|
lines: c,
|
|
82
82
|
subtotal: null,
|
|
83
83
|
fees: null,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, S as t, x as n } from "./Button-
|
|
2
|
-
import { I as r, T as i, a, k as o, o as s } from "./defaultLabels-
|
|
1
|
+
import { C as e, S as t, x as n } from "./Button-CxQO7vwF.js";
|
|
2
|
+
import { I as r, T as i, a, k as o, o as s } from "./defaultLabels-CpurXn7c.js";
|
|
3
3
|
import * as c from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
|
|
5
5
|
var l = class e extends i {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-rFRS1lF-.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/ExclamationTriangleOutline.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as e } from "./Button-
|
|
2
|
-
import { D as t } from "./defaultLabels-
|
|
3
|
-
import { S as n, T as r, x as i } from "./orders-
|
|
1
|
+
import { x as e } from "./Button-CxQO7vwF.js";
|
|
2
|
+
import { D as t } from "./defaultLabels-CpurXn7c.js";
|
|
3
|
+
import { S as n, T as r, x as i } from "./orders-BK47iONR.js";
|
|
4
4
|
//#region src/lib/embed-bridge.js
|
|
5
5
|
var a = e("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
|
|
6
6
|
NAVIGATION: "MICDROP_NAVIGATION",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { r as c, t as l } from "./event-
|
|
1
|
+
import { J as e, a as t, m as n } from "./constants-rFRS1lF-.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-C5D-wCS_.js";
|
|
3
|
+
import { D as i, b as a, h as o, x as s } from "./defaultLabels-CpurXn7c.js";
|
|
4
|
+
import { r as c, t as l } from "./event-d06xVg2P.js";
|
|
5
5
|
import { t as u } from "./venue-CBos8YTa.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as d from "svelte/internal/client";
|
|
8
8
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
9
9
|
var f = d.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), p = d.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), m = d.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
10
|
-
function h(
|
|
11
|
-
d.push(
|
|
12
|
-
let
|
|
10
|
+
function h(t, n) {
|
|
11
|
+
d.push(n, !0);
|
|
12
|
+
let r = d.prop(n, "size", 3, "24"), i = d.prop(n, "color", 3, "currentColor"), a = d.prop(n, "class", 3, ""), o = e(), s = d.derived(() => n.weight ?? o?.weight ?? "regular");
|
|
13
13
|
var c = m();
|
|
14
14
|
let l;
|
|
15
15
|
var u = d.child(c), h = (e) => {
|
|
@@ -22,8 +22,8 @@ function h(e, t) {
|
|
|
22
22
|
d.if(u, (e) => {
|
|
23
23
|
d.get(s) === "fill" ? e(h) : e(g, -1);
|
|
24
24
|
}), d.reset(c), d.template_effect(() => {
|
|
25
|
-
d.set_class(c, 0, d.clsx(a())), d.set_attribute(c, "width",
|
|
26
|
-
}), d.append(
|
|
25
|
+
d.set_class(c, 0, d.clsx(a())), d.set_attribute(c, "width", r()), d.set_attribute(c, "height", r()), l = d.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
26
|
+
}), d.append(t, c), d.pop();
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/lib/api/transformers/address.ts
|
|
@@ -82,7 +82,7 @@ function S(e) {
|
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/lib/api/transformers/series.ts
|
|
84
84
|
function C(e) {
|
|
85
|
-
let
|
|
85
|
+
let n = e, r = s(e.timeZone || n.timezone || n.time_zone || "UTC"), i = c(e.image || "", { cdn: !0 }), a = (e.occurrences || []).map((e) => {
|
|
86
86
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
87
87
|
t.address,
|
|
88
88
|
t.city,
|
|
@@ -99,7 +99,7 @@ function C(e) {
|
|
|
99
99
|
...n ? { venueName: n } : {},
|
|
100
100
|
...r ? { venueAddress: r } : {}
|
|
101
101
|
};
|
|
102
|
-
}),
|
|
102
|
+
}), o = e.occurrences?.[0], l = o?.startDateTime ? t(o.startDateTime, r) : "", d = S(e.venue?.faq), f = (e.performers || []).map((e, t) => ({
|
|
103
103
|
id: t + 1,
|
|
104
104
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
105
105
|
profileImage: e.profileImage || void 0
|
|
@@ -110,16 +110,16 @@ function C(e) {
|
|
|
110
110
|
slug: "",
|
|
111
111
|
description: e.description || e.eventSummary || "",
|
|
112
112
|
date: l,
|
|
113
|
-
startDateTime:
|
|
114
|
-
endDateTime:
|
|
113
|
+
startDateTime: o?.startDateTime || "",
|
|
114
|
+
endDateTime: o?.endDateTime || "",
|
|
115
115
|
doorsOpenTime: "",
|
|
116
|
-
timezone:
|
|
116
|
+
timezone: r,
|
|
117
117
|
imageUrl: i,
|
|
118
118
|
venue: {
|
|
119
119
|
id: e.venue?.id || 0,
|
|
120
120
|
name: e.venue?.name || "",
|
|
121
121
|
address: p,
|
|
122
|
-
timezone:
|
|
122
|
+
timezone: r,
|
|
123
123
|
serviceFeePercentage: 0,
|
|
124
124
|
serviceFeeCents: 0,
|
|
125
125
|
taxPercentage: 0
|
|
@@ -131,7 +131,7 @@ function C(e) {
|
|
|
131
131
|
...u(e.venue),
|
|
132
132
|
status: "on_sale",
|
|
133
133
|
eventSeriesId: e.id,
|
|
134
|
-
seriesOccurrences:
|
|
134
|
+
seriesOccurrences: a,
|
|
135
135
|
isPasswordProtected: !1,
|
|
136
136
|
isRegistrationEvent: !1,
|
|
137
137
|
totalTicketsRemaining: 0,
|
|
@@ -185,13 +185,13 @@ function w(e) {
|
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region src/lib/public-calendar-flow/transform.ts
|
|
188
|
-
function T(
|
|
189
|
-
let
|
|
190
|
-
if (
|
|
191
|
-
let c =
|
|
192
|
-
if (c &&
|
|
193
|
-
let l =
|
|
194
|
-
return l &&
|
|
188
|
+
function T(e) {
|
|
189
|
+
let t = i(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, s = e.salesEnd || e.saleEnd || e.onSaleEnd;
|
|
190
|
+
if (n <= 0) return "sold_out";
|
|
191
|
+
let c = a(s);
|
|
192
|
+
if (c && o(c, t) < 0) return "sales_ended";
|
|
193
|
+
let l = a(r);
|
|
194
|
+
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
195
195
|
}
|
|
196
196
|
function E(e, t, n = !1) {
|
|
197
197
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
@@ -208,11 +208,11 @@ function E(e, t, n = !1) {
|
|
|
208
208
|
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
209
209
|
}
|
|
210
210
|
function D(e) {
|
|
211
|
-
let
|
|
211
|
+
let r = l(e), i = r.venue || {}, a = s(r.timeZone || r.timezone || i.timeZone || i.timezone || "UTC"), o = (e.availableTickets || []).map((e) => ({
|
|
212
212
|
id: e.id || e.ID,
|
|
213
213
|
name: e.name || e.title || "",
|
|
214
214
|
description: e.description || void 0,
|
|
215
|
-
price:
|
|
215
|
+
price: n(e.price),
|
|
216
216
|
fee: e.fee == null ? 0 : e.fee,
|
|
217
217
|
quantityAvailable: e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0,
|
|
218
218
|
quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
|
|
@@ -225,21 +225,21 @@ function D(e) {
|
|
|
225
225
|
isHidden: e.visibility === 2 || e.isHidden === !0,
|
|
226
226
|
ticketType: e.type || e.ticketType || void 0,
|
|
227
227
|
sectionName: e.sectionName || e.section || void 0
|
|
228
|
-
})), d =
|
|
229
|
-
id:
|
|
230
|
-
name:
|
|
231
|
-
address:
|
|
232
|
-
timezone:
|
|
233
|
-
serviceFeePercentage:
|
|
234
|
-
serviceFeeCents:
|
|
235
|
-
taxPercentage:
|
|
236
|
-
contactEmail:
|
|
237
|
-
}, x = (
|
|
228
|
+
})), d = o.filter((e) => !e.isHidden && !e.isDonation), f = d.reduce((e, t) => e + t.quantityAvailable, 0), p = d.reduce((e, t) => e + t.quantityTotal, 0), m = e.hasPurchasableHiddenTickets === !0, h = E(r.status, o, m), v = e.image || e.imageUrl || e.image_url || "", y = v.startsWith("http") ? v : c(v, { cdn: !0 }), b = {
|
|
229
|
+
id: i.id || i.ID || 0,
|
|
230
|
+
name: i.name || i.googleLocationNameCache || "",
|
|
231
|
+
address: i.address || i.googleLocationNameCache || "",
|
|
232
|
+
timezone: a,
|
|
233
|
+
serviceFeePercentage: i.serviceFeePercentage ?? i.fee ?? 0,
|
|
234
|
+
serviceFeeCents: i.serviceFeeCents == null ? 0 : i.serviceFeeCents,
|
|
235
|
+
taxPercentage: i.taxPercentage ?? i.tax ?? 0,
|
|
236
|
+
contactEmail: i.contactEmail || i.email || void 0
|
|
237
|
+
}, x = (r.performers || []).map((e) => ({
|
|
238
238
|
id: e.id || e.ID,
|
|
239
239
|
displayName: e.displayName || e.name || "",
|
|
240
240
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
241
241
|
role: e.role || void 0
|
|
242
|
-
})), C =
|
|
242
|
+
})), C = r.faqs ? S(r.faqs) : S(i.faq), w = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
243
243
|
id: e.id ?? e.eventId ?? t + 1,
|
|
244
244
|
slug: e.slug || "",
|
|
245
245
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -247,45 +247,45 @@ function D(e) {
|
|
|
247
247
|
status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
248
248
|
ctaText: e.ctaState?.text || "Get tickets",
|
|
249
249
|
ctaDisabled: e.ctaState?.disabled || !1
|
|
250
|
-
})), D =
|
|
250
|
+
})), D = r.startDateTime ? t(r.startDateTime, a) : "";
|
|
251
251
|
return {
|
|
252
|
-
id:
|
|
253
|
-
title:
|
|
254
|
-
slug:
|
|
255
|
-
description:
|
|
252
|
+
id: r.id,
|
|
253
|
+
title: r.title || "",
|
|
254
|
+
slug: r.slug || "",
|
|
255
|
+
description: r.description || r.eventSummary || "",
|
|
256
256
|
date: D,
|
|
257
|
-
startDateTime:
|
|
258
|
-
endDateTime:
|
|
259
|
-
doorsOpenTime:
|
|
260
|
-
timezone:
|
|
257
|
+
startDateTime: r.startDateTime || "",
|
|
258
|
+
endDateTime: r.endDateTime || "",
|
|
259
|
+
doorsOpenTime: r.doorsOpenTime || "",
|
|
260
|
+
timezone: a,
|
|
261
261
|
imageUrl: y,
|
|
262
262
|
venue: b,
|
|
263
263
|
performers: x,
|
|
264
|
-
tickets:
|
|
264
|
+
tickets: o,
|
|
265
265
|
faqs: C,
|
|
266
|
-
disclaimer:
|
|
267
|
-
...u(
|
|
266
|
+
disclaimer: r.disclaimer || i.disclaimer || void 0,
|
|
267
|
+
...u(i),
|
|
268
268
|
status: h,
|
|
269
|
-
salesStatus:
|
|
269
|
+
salesStatus: r.salesStatus || void 0,
|
|
270
270
|
...m ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
271
|
-
eventSeriesId:
|
|
271
|
+
eventSeriesId: r.eventSeriesId || void 0,
|
|
272
272
|
seriesOccurrences: w.length ? w : void 0,
|
|
273
|
-
isPasswordProtected:
|
|
274
|
-
isRegistrationEvent:
|
|
273
|
+
isPasswordProtected: r.hasPassword === !0 || !!r.password,
|
|
274
|
+
isRegistrationEvent: r.ticketType === 1 || r.eventTicketingType === 1,
|
|
275
275
|
totalTicketsRemaining: f,
|
|
276
276
|
totalTicketsCapacity: p,
|
|
277
|
-
stageName:
|
|
278
|
-
ageRestriction:
|
|
279
|
-
displayAgeRestriction:
|
|
280
|
-
displayStartTime:
|
|
281
|
-
displayEndTime:
|
|
282
|
-
displayDoorsTime:
|
|
283
|
-
displayTicketsLeft:
|
|
284
|
-
summary:
|
|
285
|
-
postSalesMessage:
|
|
286
|
-
collectionId:
|
|
287
|
-
venueAddressLines: g(
|
|
288
|
-
googleMapsUrl: _(
|
|
277
|
+
stageName: r.stage?.name || r.stageName || void 0,
|
|
278
|
+
ageRestriction: r.ageRestriction || void 0,
|
|
279
|
+
displayAgeRestriction: r.displayAgeRestriction ?? !1,
|
|
280
|
+
displayStartTime: r.displayStartTime ?? !0,
|
|
281
|
+
displayEndTime: r.displayEndTime ?? !0,
|
|
282
|
+
displayDoorsTime: r.displayDoorsTime ?? !0,
|
|
283
|
+
displayTicketsLeft: r.displayTicketsLeft ?? !0,
|
|
284
|
+
summary: r.eventSummary || void 0,
|
|
285
|
+
postSalesMessage: r.postSalesMessage || void 0,
|
|
286
|
+
collectionId: r.collectionId || void 0,
|
|
287
|
+
venueAddressLines: g(i.address || i.googleLocationNameCache || ""),
|
|
288
|
+
googleMapsUrl: _(i.address || i.googleLocationNameCache || "")
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
function O(e) {
|
|
@@ -302,7 +302,7 @@ async function A(e) {
|
|
|
302
302
|
} catch (e) {
|
|
303
303
|
if (e?.name === "AbortError") return "shared";
|
|
304
304
|
}
|
|
305
|
-
return await
|
|
305
|
+
return await r(e) ? "copied" : "failed";
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
|