@getmicdrop/venue-calendar 4.2.37 → 4.3.1
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-BQYrtN6U.js → ArrowLeftIcon-DvOokN4u.js} +1 -1
- package/dist/{Badge-B9AZ6xGE.js → Badge-Gg5PWs7f.js} +40 -61
- package/dist/{BlockPlaceholder-B9GlpQol.js → BlockPlaceholder-C2PUGPNA.js} +1 -1
- package/dist/Calendar-bhl8Q8us.js +1332 -0
- package/dist/{CalendarFoundryView-_m9S6y-W.js → CalendarFoundryView-C2O_AmBk.js} +5879 -5309
- package/dist/{CalendarIcon-CtLFr8m1.js → CalendarIcon-DvhQ-GaL.js} +1 -1
- package/dist/CartView-D57bwixz.js +2245 -0
- package/dist/{Checkbox-BexPyTGk.js → Checkbox-24CWEsty.js} +1 -1
- package/dist/{Checkout-y81OL1tz.js → Checkout-BqaJK6UP.js} +141 -140
- package/dist/{Checkout-BAAYg4tM.js → Checkout-DQWeMchu.js} +134 -134
- package/dist/{CheckoutTimer-CyXRKGLX.js → CheckoutTimer-8tVmatUn.js} +3 -3
- package/dist/{ChevronDownIcon-B4YmjJo1.js → ChevronDownIcon-DyNmV5XZ.js} +1 -1
- package/dist/{ClockIcon-z3z3e1Ly.js → ClockIcon-dOWVO61o.js} +1 -1
- package/dist/{CloseIcon-sro0esAo.js → CloseIcon-a3S2RgbP.js} +1 -1
- package/dist/{CollectionView-DTY7jDqf.js → CollectionView-B-PR54hU.js} +7 -7
- package/dist/CropImage-CxLcNArr.js +445 -0
- package/dist/{Event-BMuZ_wRJ.js → Event-DxNC58Zb.js} +1032 -742
- package/dist/EventPage-Y3NWzmN0.js +1146 -0
- package/dist/{Heading-mDILjyPm.js → Heading-cKAx0Ogl.js} +4 -2
- package/dist/{Image-JKlRpH-6.js → Image-CNZLcePz.js} +1 -1
- package/dist/Input-D1FpSX5Q.js +292 -0
- package/dist/{MailIcon-DO_anIoz.js → MailIcon-CR_eGi6n.js} +1 -1
- package/dist/{Modal-CAEKaCSU.js → Modal-LkN8lh_m.js} +5 -2
- package/dist/ModalFooter-B_8f1Z5p.js +301 -0
- package/dist/{PasswordInput-CkuDX_Od.js → PasswordInput-Bt6tvpzi.js} +19 -15
- package/dist/{ScarcityBadge-aZWWO-jZ.js → ScarcityBadge-g0dRh6K7.js} +5 -5
- package/dist/{SeriesPage-By-MkYKG.js → SeriesPage-D2305oP-.js} +4 -4
- package/dist/{Spinner-B5FVSyqq.js → Spinner-LroI7eOC.js} +1 -1
- package/dist/{Success-yjbKaeK_.js → Success-ClXshzvl.js} +218 -215
- package/dist/{TagIcon-b-8pupd7.js → TagIcon-BhLrURo_.js} +1 -1
- package/dist/{ViewTicketsEmbed-BBj9eJ31.js → ViewTicketsEmbed-CvuMdTA7.js} +8 -8
- package/dist/{WarningCircleIcon-DUs9DcAX.js → WarningCircleIcon-BxBY0OMQ.js} +1 -1
- package/dist/{WarningTriIcon-CvE9U1XG.js → WarningTriIcon-QVzQiEM4.js} +1 -1
- package/dist/{__SKIP_PATHS__-TvQ-zGgV.js → __SKIP_PATHS__-B0_APtpt.js} +1 -1
- package/dist/{browser-By3zPFZd.js → browser-viCaCwoW.js} +1 -1
- package/dist/{colors-DB1rR8pU.js → colors-BsP3TRan.js} +4 -4
- package/dist/{constants-SU5KYo7y.js → constants-PBNG9ikv.js} +29 -19
- package/dist/{copyToClipboard-DJNB40jo.js → copyToClipboard-B2F5d6Cj.js} +1 -1
- package/dist/{de-tOW1Ez0s.js → de-Jg2pbAJN.js} +12 -0
- package/dist/{de-naV1oceW.js → de-K0-gFyNH.js} +13 -1
- package/dist/{defaultLabels-BBFpYs4g.js → defaultLabels-BigaGqKj.js} +12 -0
- package/dist/{es-DrYewQpd.js → es-CcYV23YF.js} +12 -0
- package/dist/{es-D-A3ZiKZ.js → es-DsZSuXW4.js} +13 -1
- package/dist/{event-BHPnx4t4.js → event-rtg4-kWS.js} +1 -1
- package/dist/{event-transform-CfLdD-jt.js → event-transform-J7U1JmeK.js} +4 -4
- package/dist/{eventStatusStream-BCDueOd-.js → eventStatusStream-CJVT_9Gu.js} +1 -1
- package/dist/{fr-Bs9xnPu6.js → fr-2hbBUueN.js} +12 -0
- package/dist/{fr-ssP16X4K.js → fr-BmHldIKE.js} +13 -1
- package/dist/{href-ChgD_6bf.js → href-Dx7B6ZiQ.js} +48 -27
- package/dist/{i18n-xG6_glYu.js → i18n-C0aOwSpF.js} +64 -64
- package/dist/i18n-sO8wTASy.js +28 -0
- package/dist/{id-BLwvLobz.js → id-42eHQdTZ.js} +12 -0
- package/dist/{id-DPbWh0O5.js → id-CBHA4B6C.js} +13 -1
- package/dist/imageOptimizer-BwLwBMI6.js +112 -0
- package/dist/{it-B1b9bAf8.js → it-CK6ravjO.js} +13 -1
- package/dist/{it-CQ_Y8YK3.js → it-CT1Yl7lC.js} +12 -0
- package/dist/{ja-fx8mKJyH.js → ja-COO0Ibrr.js} +13 -1
- package/dist/{ja-CeudRJqE.js → ja-rdY01kpT.js} +12 -0
- package/dist/keyboard-fiZFqeNA.js +29 -0
- package/dist/{ko-KXtMvmUv.js → ko-D8YqNrZs.js} +13 -1
- package/dist/{ko-DFwVxd-1.js → ko-DzIwez8Z.js} +12 -0
- package/dist/{labels-DCO-vFuM.js → labels-BBFJnXep.js} +14 -2
- package/dist/locales/{4.2.37 → 4.3.1}/flow/de.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/es.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/fr.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/id.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/it.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/ja.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/ko.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/nl.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/pl.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/pt-br.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/tr.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/flow/zh.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/de.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/es.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/fr.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/id.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/it.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/ja.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/ko.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/nl.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/pl.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/pt-br.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/tr.js +1 -1
- package/dist/locales/{4.2.37 → 4.3.1}/main/zh.js +1 -1
- package/dist/{modalManager.svelte-Ctvt4aHJ.js → modalManager.svelte-B9mhX1cG.js} +2 -2
- package/dist/{nl-CYc0p85Y.js → nl-BOKQEcVS.js} +12 -0
- package/dist/{nl-IuI5cKOn.js → nl-Bk3DPD7e.js} +13 -1
- package/dist/{order-totals-C_d53Fnr.js → order-totals-DR-oXumr.js} +31 -31
- package/dist/{orders-VSh_VrRt.js → orders-CFF0Hb2x.js} +1 -1
- package/dist/{phoneUtils-BRZ05dK1.js → phoneUtils-C2GGZYvA.js} +621 -642
- package/dist/{pixels-CWS4aqBb.js → pixels-M4FTi1Of.js} +2 -2
- package/dist/{pl-BSqAasUa.js → pl-BbTUCBtu.js} +12 -0
- package/dist/{pl-CJBIjlYm.js → pl-CPmO94ic.js} +13 -1
- package/dist/portal-DqxEuE-7.js +166 -0
- package/dist/{promo-BKal5iAD.js → promo--p3GbP64.js} +1 -1
- package/dist/{pt-br-dIefWJKY.js → pt-br-Ch6NFhW6.js} +13 -1
- package/dist/{pt-br-CZs8_gFN.js → pt-br-yx3E3bTo.js} +12 -0
- package/dist/{serverTotals-DriGHN9x.js → serverTotals-Dbi69SIr.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-D-13lvf0.js → shareCopyFeedback.svelte-Ba3vibxL.js} +14 -14
- package/dist/{showcase-state-options-ffaVKL4Z.js → showcase-state-options-BZGCm4wo.js} +1 -1
- package/dist/{to-event-card-props-DfvugKGT.js → to-event-card-props-dIhKdERf.js} +105 -99
- package/dist/{tr-O80C2r5C.js → tr-B0X8dT0r.js} +12 -0
- package/dist/{tr-Brt5vw5H.js → tr-CXnalLJT.js} +13 -1
- package/dist/types/index.d.ts +11 -0
- package/dist/{utils-C39Ku47z.js → utils-CbacksjX.js} +164 -31
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1066 -982
- package/dist/venue-calendar.iife.js +60 -60
- package/dist/venue-calendar.umd.js +59 -59
- package/dist/z-index-BgKs9X9U.js +225 -0
- package/dist/{zh-BhjmF7s_.js → zh-CM2J1Py4.js} +13 -1
- package/dist/{zh-ydknixkJ.js → zh-_x9bdFXs.js} +12 -0
- package/package.json +220 -220
- package/dist/Calendar-A7RNgU0m.js +0 -1333
- package/dist/CartView-gpVuEafp.js +0 -2245
- package/dist/CropImage-D70HuWqC.js +0 -404
- package/dist/EventPage-CVVGDmlc.js +0 -981
- package/dist/Input-C1WW7SEF.js +0 -489
- package/dist/ModalFooter-D2WEdwmn.js +0 -464
- package/dist/api/api.cjs +0 -1
- package/dist/api/api.mjs +0 -1442
- package/dist/api/client.d.ts +0 -157
- package/dist/api/cta.d.ts +0 -50
- package/dist/api/events.d.ts +0 -202
- package/dist/api/gift-cards.d.ts +0 -119
- package/dist/api/index.d.ts +0 -46
- package/dist/api/orders.d.ts +0 -193
- package/dist/api/promo.d.ts +0 -45
- package/dist/api/result.d.ts +0 -78
- package/dist/api/route-manifest.d.ts +0 -206
- package/dist/api/transformers/address.d.ts +0 -18
- package/dist/api/transformers/cart.d.ts +0 -34
- package/dist/api/transformers/collection.d.ts +0 -12
- package/dist/api/transformers/event.d.ts +0 -177
- package/dist/api/transformers/faq.d.ts +0 -40
- package/dist/api/transformers/giftCard.d.ts +0 -11
- package/dist/api/transformers/index.d.ts +0 -27
- package/dist/api/transformers/order.d.ts +0 -44
- package/dist/api/transformers/performer.d.ts +0 -8
- package/dist/api/transformers/series.d.ts +0 -12
- package/dist/api/transformers/venue.d.ts +0 -65
- package/dist/api/types.d.ts +0 -554
- package/dist/api/venues.d.ts +0 -33
- package/dist/api/waitlist.d.ts +0 -77
- package/dist/i18n-CAZKVazm.js +0 -28
- package/dist/imageOptimizer-CB3wKJU8.js +0 -47
- package/dist/seo/HostSeoController.d.ts +0 -68
- package/dist/seo/buildCollectionJsonLd.d.ts +0 -8
- package/dist/seo/buildEventJsonLd.d.ts +0 -9
- package/dist/seo/buildSeriesJsonLd.d.ts +0 -6
- package/dist/seo/helpers.d.ts +0 -88
- package/dist/seo/index.d.ts +0 -10
- package/dist/seo/seo.cjs +0 -1
- package/dist/seo/seo.mjs +0 -592
- package/dist/seo/types.d.ts +0 -156
- package/dist/z-index-B0Vk_Mp1.js +0 -27
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
import { x as e } from "./Button-Cm6xkipe.js";
|
|
2
|
-
import { R as t, i as n
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { a as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { B as
|
|
12
|
-
import { a as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import "./colors-
|
|
16
|
-
import { c as ee, r as
|
|
17
|
-
import { i as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { n as
|
|
2
|
+
import { R as t, i as n } from "./defaultLabels-BigaGqKj.js";
|
|
3
|
+
import { J as r, i, t as a, u as o } from "./constants-PBNG9ikv.js";
|
|
4
|
+
import { t as s } from "./ArrowLeftIcon-DvOokN4u.js";
|
|
5
|
+
import { t as c } from "./CalendarIcon-DvhQ-GaL.js";
|
|
6
|
+
import { t as l } from "./ChevronDownIcon-DyNmV5XZ.js";
|
|
7
|
+
import { n as u, t as d } from "./MailIcon-CR_eGi6n.js";
|
|
8
|
+
import { a as f, n as p, t as m } from "./shareCopyFeedback.svelte-Ba3vibxL.js";
|
|
9
|
+
import { n as h } from "./copyToClipboard-B2F5d6Cj.js";
|
|
10
|
+
import { t as g } from "./Image-CNZLcePz.js";
|
|
11
|
+
import { B as _, J as v, Q as y, X as b, g as x, s as S } from "./orders-CFF0Hb2x.js";
|
|
12
|
+
import { a as C, l as w, o as T, t as E } from "./__SKIP_PATHS__-B0_APtpt.js";
|
|
13
|
+
import { n as D, t as O } from "./Heading-cKAx0Ogl.js";
|
|
14
|
+
import { t as k } from "./Text-CqjLjIF8.js";
|
|
15
|
+
import "./colors-BsP3TRan.js";
|
|
16
|
+
import { c as ee, r as te } from "./pixels-M4FTi1Of.js";
|
|
17
|
+
import { i as A, n as j, t as M } from "./i18n-C0aOwSpF.js";
|
|
18
|
+
import { n as N, t as P } from "./i18n-sO8wTASy.js";
|
|
19
|
+
import { S as F, d as ne, l as I, n as L } from "./utils-CbacksjX.js";
|
|
20
|
+
import { t as R } from "./labels-BBFJnXep.js";
|
|
21
|
+
import { a as z, i as B, n as V, o as re, r as H, s as U } from "./showcase-state-options-BZGCm4wo.js";
|
|
22
|
+
import { n as W, t as ie } from "./buyerEmail-BfCq-gDt.js";
|
|
22
23
|
import "svelte/internal/disclose-version";
|
|
23
24
|
import * as G from "svelte/internal/client";
|
|
24
|
-
import { SvelteMap as
|
|
25
|
-
import { onDestroy as
|
|
25
|
+
import { SvelteMap as ae } from "svelte/reactivity";
|
|
26
|
+
import { onDestroy as K, onMount as q } from "svelte";
|
|
26
27
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/HelpIcon.svelte
|
|
27
|
-
var
|
|
28
|
+
var oe = G.from_svg("<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z\"></path>"), se = G.from_svg("<circle cx=\"128\" cy=\"180\" r=\"12\"></circle><path d=\"M128,144v-8c17.67,0,32-12.54,32-28s-14.33-28-32-28S96,92.54,96,108v4\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle>", 1), J = G.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
28
29
|
function ce(e, t) {
|
|
29
30
|
G.push(t, !0);
|
|
30
|
-
let n = G.prop(t, "size", 3, "24"),
|
|
31
|
-
var c =
|
|
31
|
+
let n = G.prop(t, "size", 3, "24"), i = G.prop(t, "color", 3, "currentColor"), a = G.prop(t, "class", 3, ""), o = r(), s = G.derived(() => t.weight ?? o?.weight ?? "regular");
|
|
32
|
+
var c = J();
|
|
32
33
|
let l;
|
|
33
34
|
var u = G.child(c), d = (e) => {
|
|
34
|
-
var t =
|
|
35
|
+
var t = oe();
|
|
35
36
|
G.append(e, t);
|
|
36
37
|
}, f = (e) => {
|
|
37
|
-
var t =
|
|
38
|
+
var t = se();
|
|
38
39
|
G.next(2), G.append(e, t);
|
|
39
40
|
};
|
|
40
41
|
G.if(u, (e) => {
|
|
41
42
|
G.get(s) === "fill" ? e(d) : e(f, -1);
|
|
42
43
|
}), G.reset(c), G.template_effect(() => {
|
|
43
|
-
G.set_class(c, 0, G.clsx(
|
|
44
|
+
G.set_class(c, 0, G.clsx(a())), G.set_attribute(c, "width", n()), G.set_attribute(c, "height", n()), l = G.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
44
45
|
}), G.append(e, c), G.pop();
|
|
45
46
|
}
|
|
46
47
|
//#endregion
|
|
47
48
|
//#region src/lib/public-calendar-flow/pendingValidation.ts
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
return e ?
|
|
49
|
+
var Y = (e) => `micdrop_pending_validate_${e}`;
|
|
50
|
+
function X(e) {
|
|
51
|
+
return e ? v(Y(e), null) : null;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
e &&
|
|
53
|
+
function Z(e) {
|
|
54
|
+
e && b(Y(e));
|
|
54
55
|
}
|
|
55
56
|
//#endregion
|
|
56
57
|
//#region src/lib/public-calendar-flow/SuccessTicket.svelte
|
|
57
|
-
var
|
|
58
|
-
function
|
|
58
|
+
var le = G.from_html("<div class=\"p-3 rounded-lg bg-surface-secondary mb-6\"><!> <!></div>"), ue = G.from_html("<div class=\"flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4\"><!> <!></div>"), de = G.from_html("<div class=\"p-6 md:p-8\"><div class=\"flex justify-center mb-6\"><div class=\"indicator-container svelte-667vry\"><div></div> <svg viewBox=\"0 0 52 52\" aria-hidden=\"true\"><circle cx=\"26\" cy=\"26\" r=\"24\" class=\"checkmark-circle svelte-667vry\"></circle><circle cx=\"26\" cy=\"26\" r=\"24\" class=\"checkmark-fill svelte-667vry\"></circle><path d=\"M14 27l7 7 17-17\" class=\"checkmark-check svelte-667vry\"></path></svg></div></div> <div><div class=\"flex flex-col gap-3 text-center mb-6\"><!> <!> <!></div> <!> <div class=\"mb-6\"><!></div> <div class=\"flex justify-between items-center py-3 border-t border-default\"><!></div> <!></div></div>");
|
|
59
|
+
function fe(e, t) {
|
|
59
60
|
G.push(t, !0);
|
|
60
61
|
let n = G.prop(t, "labels", 3, R), r = G.derived(() => t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0)), i = G.derived(() => t.event.isRegistrationEvent ? n().youreRegistered || "You're registered" : n().youreIn || "You're in");
|
|
61
|
-
|
|
62
|
+
D(e, {
|
|
62
63
|
border: !0,
|
|
63
64
|
padding: !1,
|
|
64
65
|
class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
|
|
65
66
|
children: (e, a) => {
|
|
66
|
-
var o =
|
|
67
|
+
var o = de(), s = G.child(o), c = G.child(s), l = G.child(c);
|
|
67
68
|
let u;
|
|
68
|
-
var
|
|
69
|
+
var f = G.sibling(l, 2);
|
|
69
70
|
let p;
|
|
70
71
|
G.reset(c), G.reset(s);
|
|
71
72
|
var m = G.sibling(s, 2);
|
|
72
73
|
let h;
|
|
73
74
|
var g = G.child(m), _ = G.child(g);
|
|
74
|
-
|
|
75
|
+
O(_, {
|
|
75
76
|
level: 1,
|
|
76
77
|
size: "xl",
|
|
77
78
|
weight: "bold",
|
|
@@ -83,7 +84,7 @@ function Q(e, t) {
|
|
|
83
84
|
$$slots: { default: !0 }
|
|
84
85
|
});
|
|
85
86
|
var v = G.sibling(_, 2);
|
|
86
|
-
|
|
87
|
+
k(v, {
|
|
87
88
|
size: "lg",
|
|
88
89
|
weight: "semibold",
|
|
89
90
|
class: "block",
|
|
@@ -95,7 +96,7 @@ function Q(e, t) {
|
|
|
95
96
|
$$slots: { default: !0 }
|
|
96
97
|
});
|
|
97
98
|
var y = G.sibling(v, 2);
|
|
98
|
-
|
|
99
|
+
k(y, {
|
|
99
100
|
size: "sm",
|
|
100
101
|
color: "secondary",
|
|
101
102
|
class: "block",
|
|
@@ -108,8 +109,8 @@ function Q(e, t) {
|
|
|
108
109
|
$$slots: { default: !0 }
|
|
109
110
|
}), G.reset(g);
|
|
110
111
|
var b = G.sibling(g, 2), x = (e) => {
|
|
111
|
-
var r =
|
|
112
|
-
|
|
112
|
+
var r = le(), i = G.child(r);
|
|
113
|
+
k(i, {
|
|
113
114
|
size: "xs",
|
|
114
115
|
weight: "semibold",
|
|
115
116
|
color: "secondary",
|
|
@@ -122,7 +123,7 @@ function Q(e, t) {
|
|
|
122
123
|
$$slots: { default: !0 }
|
|
123
124
|
});
|
|
124
125
|
var a = G.sibling(i, 2);
|
|
125
|
-
|
|
126
|
+
k(a, {
|
|
126
127
|
size: "sm",
|
|
127
128
|
class: "block whitespace-pre-line",
|
|
128
129
|
children: (e, n) => {
|
|
@@ -137,7 +138,7 @@ function Q(e, t) {
|
|
|
137
138
|
t.event.postSalesMessage && e(x);
|
|
138
139
|
});
|
|
139
140
|
var S = G.sibling(b, 2), C = G.child(S);
|
|
140
|
-
|
|
141
|
+
j(C, {
|
|
141
142
|
get orderTotals() {
|
|
142
143
|
return t.orderTotals;
|
|
143
144
|
},
|
|
@@ -146,7 +147,7 @@ function Q(e, t) {
|
|
|
146
147
|
}
|
|
147
148
|
}), G.reset(S);
|
|
148
149
|
var w = G.sibling(S, 2), T = G.child(w);
|
|
149
|
-
|
|
150
|
+
k(T, {
|
|
150
151
|
size: "sm",
|
|
151
152
|
weight: "semibold",
|
|
152
153
|
class: "font-mono",
|
|
@@ -158,13 +159,13 @@ function Q(e, t) {
|
|
|
158
159
|
$$slots: { default: !0 }
|
|
159
160
|
}), G.reset(w);
|
|
160
161
|
var E = G.sibling(w, 2), D = (e) => {
|
|
161
|
-
var r =
|
|
162
|
-
|
|
162
|
+
var r = ue(), i = G.child(r);
|
|
163
|
+
d(i, {
|
|
163
164
|
size: "16",
|
|
164
165
|
class: "shrink-0 text-color-muted"
|
|
165
166
|
});
|
|
166
167
|
var a = G.sibling(i, 2);
|
|
167
|
-
|
|
168
|
+
k(a, {
|
|
168
169
|
size: "xs",
|
|
169
170
|
color: "secondary",
|
|
170
171
|
children: (e, r) => {
|
|
@@ -179,30 +180,30 @@ function Q(e, t) {
|
|
|
179
180
|
G.if(E, (e) => {
|
|
180
181
|
t.customerEmail && e(D);
|
|
181
182
|
}), G.reset(m), G.reset(o), G.template_effect(() => {
|
|
182
|
-
u = G.set_class(l, 1, "processing-spinner svelte-667vry", null, u, { "fade-out": t.showCheckmark }), p = G.set_class(
|
|
183
|
+
u = G.set_class(l, 1, "processing-spinner svelte-667vry", null, u, { "fade-out": t.showCheckmark }), p = G.set_class(f, 0, "checkmark-svg svelte-667vry", null, p, { active: t.showCheckmark }), h = G.set_class(m, 1, "content-section svelte-667vry", null, h, { visible: t.showContent });
|
|
183
184
|
}), G.append(e, o);
|
|
184
185
|
},
|
|
185
186
|
$$slots: { default: !0 }
|
|
186
187
|
}), G.pop();
|
|
187
188
|
}
|
|
188
|
-
var
|
|
189
|
+
var Q = {
|
|
189
190
|
blue: "#4285f4",
|
|
190
191
|
green: "#34a853",
|
|
191
192
|
yellow: "#fbbc05",
|
|
192
193
|
red: "#ea4335"
|
|
193
|
-
},
|
|
194
|
-
function
|
|
194
|
+
}, pe = G.from_html(" <!>", 1), me = G.from_html("<p class=\"wallet-note caption svelte-4szgdz\"> </p>"), he = G.from_html("<!> <!>", 1), ge = G.from_html("<div class=\"dropdown-menu bg-surface-primary border-default svelte-4szgdz\"><a rel=\"external noopener noreferrer\" class=\"dropdown-item type-body text-color-primary hover:bg-surface-secondary svelte-4szgdz\"><svg aria-hidden=\"true\" class=\"shrink-0\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z\"></path><path d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"></path><path d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z\"></path><path d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"></path></svg> </a> <button type=\"button\" class=\"dropdown-item type-body text-color-primary hover:bg-surface-secondary svelte-4szgdz\"><!> </button></div>"), _e = G.from_html("<!> ", 1), ve = G.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), ye = G.from_html("<span class=\"text-color-muted\">·</span> <a class=\"text-link type-caption text-color-muted hover:text-color-secondary svelte-4szgdz\"><!> </a>", 1), be = G.from_html("<div class=\"rounded-t-xl overflow-hidden bg-surface-tertiary\"><!></div> <div class=\"p-5 space-y-4\"><div><!> <div class=\"flex items-center gap-1.5 mt-1.5\"><!> <!></div> <div class=\"mt-0.5\"><!></div></div> <div class=\"flex flex-col items-center gap-3\"><button type=\"button\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"/wallet-badges/apple-wallet.svg\" class=\"wallet-badge-img svelte-4szgdz\"/></button> <button type=\"button\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"/wallet-badges/google-wallet-dark.svg\" class=\"wallet-badge-img google-dark svelte-4szgdz\"/> <img src=\"/wallet-badges/google-wallet-light.svg\" class=\"wallet-badge-img google-light svelte-4szgdz\"/></button> <!></div> <div class=\"divider\"></div> <div class=\"calendar-dropdown relative\"><!> <!></div> <div class=\"flex gap-2\"><!> <!></div> <!> <div class=\"flex items-center justify-center gap-4 pt-1\"><button type=\"button\" class=\"text-link type-caption text-color-muted hover:text-color-secondary svelte-4szgdz\"><!> </button> <!></div></div>", 1), xe = G.from_html("<div><!></div>");
|
|
195
|
+
function Se(e, t) {
|
|
195
196
|
G.push(t, !0);
|
|
196
|
-
let r = G.prop(t, "backHref", 3, void 0),
|
|
197
|
+
let r = G.prop(t, "backHref", 3, void 0), d = G.prop(t, "labels", 3, R), p = G.prop(t, "locale", 3, void 0), _ = G.derived(() => r() || t.eventUrl), v = G.state(!1), y = m(), b = G.state("");
|
|
197
198
|
G.user_effect(() => {
|
|
198
|
-
G.get(b) &&
|
|
199
|
+
G.get(b) && w(G.get(b), { politeness: "polite" });
|
|
199
200
|
}), G.user_effect(() => {
|
|
200
|
-
y.copyState === "failed" &&
|
|
201
|
+
y.copyState === "failed" && w(`Copy failed — select to copy: ${y.copyFailedUrl}`, { politeness: "assertive" });
|
|
201
202
|
});
|
|
202
203
|
function x() {
|
|
203
204
|
G.set(v, !G.get(v));
|
|
204
205
|
}
|
|
205
|
-
|
|
206
|
+
q(() => {
|
|
206
207
|
function e(e) {
|
|
207
208
|
e.target.closest(".calendar-dropdown") || G.set(v, !1);
|
|
208
209
|
}
|
|
@@ -244,33 +245,33 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
244
245
|
}
|
|
245
246
|
G.set(v, !1);
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
+
function T() {
|
|
248
249
|
G.set(v, !1);
|
|
249
250
|
}
|
|
250
251
|
function E() {
|
|
251
252
|
y.share(t.eventUrl);
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
-
G.set(b,
|
|
254
|
+
function O() {
|
|
255
|
+
G.set(b, d().walletComingSoon || "Wallet passes are coming soon. Your ticket is confirmed — check your email", !0);
|
|
255
256
|
}
|
|
256
|
-
|
|
257
|
-
let
|
|
257
|
+
K(y.dispose);
|
|
258
|
+
let ee = G.derived(() => (() => {
|
|
258
259
|
let e = [t.event.venue.name, t.event.venue.address].filter(Boolean);
|
|
259
260
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.join(", "))}`;
|
|
260
261
|
})());
|
|
261
|
-
function
|
|
262
|
-
window.location.href = G.get(
|
|
262
|
+
function te() {
|
|
263
|
+
window.location.href = G.get(_);
|
|
263
264
|
}
|
|
264
|
-
var
|
|
265
|
-
let
|
|
266
|
-
var
|
|
267
|
-
|
|
265
|
+
var A = xe();
|
|
266
|
+
let j;
|
|
267
|
+
var M = G.child(A);
|
|
268
|
+
D(M, {
|
|
268
269
|
border: !0,
|
|
269
270
|
padding: !1,
|
|
270
271
|
class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
|
|
271
272
|
children: (e, r) => {
|
|
272
|
-
var m =
|
|
273
|
-
|
|
273
|
+
var m = be(), _ = G.first_child(m), w = G.child(_);
|
|
274
|
+
g(w, {
|
|
274
275
|
get src() {
|
|
275
276
|
return t.event.imageUrl;
|
|
276
277
|
},
|
|
@@ -278,13 +279,13 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
278
279
|
return t.event.title;
|
|
279
280
|
},
|
|
280
281
|
get fallback() {
|
|
281
|
-
return
|
|
282
|
+
return a;
|
|
282
283
|
},
|
|
283
284
|
fit: "contain",
|
|
284
285
|
class: "w-full max-h-60 min-h-24"
|
|
285
|
-
}), G.reset(
|
|
286
|
-
var
|
|
287
|
-
|
|
286
|
+
}), G.reset(_);
|
|
287
|
+
var D = G.sibling(_, 2), A = G.child(D), j = G.child(A);
|
|
288
|
+
k(j, {
|
|
288
289
|
size: "sm",
|
|
289
290
|
weight: "semibold",
|
|
290
291
|
leading: "tight",
|
|
@@ -296,29 +297,29 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
296
297
|
},
|
|
297
298
|
$$slots: { default: !0 }
|
|
298
299
|
});
|
|
299
|
-
var
|
|
300
|
-
|
|
300
|
+
var M = G.sibling(j, 2), N = G.child(M);
|
|
301
|
+
c(N, {
|
|
301
302
|
size: "16",
|
|
302
303
|
class: "shrink-0 icon-muted"
|
|
303
304
|
});
|
|
304
|
-
var
|
|
305
|
-
|
|
305
|
+
var P = G.sibling(N, 2);
|
|
306
|
+
k(P, {
|
|
306
307
|
size: "xs",
|
|
307
308
|
color: "muted",
|
|
308
309
|
children: (e, n) => {
|
|
309
310
|
G.next();
|
|
310
|
-
var r =
|
|
311
|
+
var r = pe(), a = G.first_child(r), s = G.sibling(a), c = (e) => {
|
|
311
312
|
var n = G.text();
|
|
312
|
-
G.template_effect((e) => G.set_text(n, `· ${e ?? ""}`), [() =>
|
|
313
|
+
G.template_effect((e) => G.set_text(n, `· ${e ?? ""}`), [() => o(t.event.startDateTime, t.event.timezone, p())]), G.append(e, n);
|
|
313
314
|
};
|
|
314
|
-
G.if(
|
|
315
|
+
G.if(s, (e) => {
|
|
315
316
|
t.event.displayStartTime !== !1 && e(c);
|
|
316
|
-
}), G.template_effect((e) => G.set_text(a, `${e ?? ""} `), [() => i(t.event.startDateTime, t.event.timezone,
|
|
317
|
+
}), G.template_effect((e) => G.set_text(a, `${e ?? ""} `), [() => i(t.event.startDateTime, t.event.timezone, p())]), G.append(e, r);
|
|
317
318
|
},
|
|
318
319
|
$$slots: { default: !0 }
|
|
319
|
-
}), G.reset(
|
|
320
|
-
var F = G.sibling(
|
|
321
|
-
|
|
320
|
+
}), G.reset(M);
|
|
321
|
+
var F = G.sibling(M, 2), ne = G.child(F);
|
|
322
|
+
k(ne, {
|
|
322
323
|
size: "xs",
|
|
323
324
|
color: "muted",
|
|
324
325
|
class: "block",
|
|
@@ -328,55 +329,55 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
328
329
|
G.template_effect(() => G.set_text(r, t.event.venue.name)), G.append(e, r);
|
|
329
330
|
},
|
|
330
331
|
$$slots: { default: !0 }
|
|
331
|
-
}), G.reset(F), G.reset(
|
|
332
|
-
var
|
|
333
|
-
G.reset(
|
|
334
|
-
var
|
|
335
|
-
G.reset(
|
|
336
|
-
var
|
|
337
|
-
var t =
|
|
332
|
+
}), G.reset(F), G.reset(A);
|
|
333
|
+
var I = G.sibling(A, 2), L = G.child(I), R = G.child(L);
|
|
334
|
+
G.reset(L);
|
|
335
|
+
var z = G.sibling(L, 2), B = G.child(z), V = G.sibling(B, 2);
|
|
336
|
+
G.reset(z);
|
|
337
|
+
var re = G.sibling(z, 2), H = (e) => {
|
|
338
|
+
var t = me(), n = G.child(t, !0);
|
|
338
339
|
G.reset(t), G.template_effect(() => G.set_text(n, G.get(b))), G.append(e, t);
|
|
339
340
|
};
|
|
340
|
-
G.if(
|
|
341
|
-
G.get(b) && e(
|
|
342
|
-
}), G.reset(
|
|
343
|
-
var U = G.sibling(
|
|
341
|
+
G.if(re, (e) => {
|
|
342
|
+
G.get(b) && e(H);
|
|
343
|
+
}), G.reset(I);
|
|
344
|
+
var U = G.sibling(I, 4), W = G.child(U);
|
|
344
345
|
n(W, {
|
|
345
346
|
variant: "default",
|
|
346
347
|
size: "md",
|
|
347
348
|
class: "w-full",
|
|
348
349
|
onclick: x,
|
|
349
350
|
children: (e, t) => {
|
|
350
|
-
var n =
|
|
351
|
-
|
|
352
|
-
var i = G.sibling(r),
|
|
351
|
+
var n = he(), r = G.first_child(n);
|
|
352
|
+
c(r, { size: "16" });
|
|
353
|
+
var i = G.sibling(r), a = G.sibling(i);
|
|
353
354
|
{
|
|
354
355
|
let e = G.derived(() => G.get(v) ? "rotate-180" : "");
|
|
355
|
-
|
|
356
|
+
l(a, {
|
|
356
357
|
size: "16",
|
|
357
358
|
get class() {
|
|
358
359
|
return `ml-auto transition-transform ${G.get(e) ?? ""}`;
|
|
359
360
|
}
|
|
360
361
|
});
|
|
361
362
|
}
|
|
362
|
-
G.template_effect(() => G.set_text(i, ` ${(
|
|
363
|
+
G.template_effect(() => G.set_text(i, ` ${(d().addToCalendar || "Add to calendar") ?? ""} `)), G.append(e, n);
|
|
363
364
|
},
|
|
364
365
|
$$slots: { default: !0 }
|
|
365
366
|
});
|
|
366
367
|
var ie = G.sibling(W, 2), ae = (e) => {
|
|
367
|
-
var t =
|
|
368
|
+
var t = ge(), n = G.child(t), r = G.child(n), i = G.child(r), a = G.sibling(i), o = G.sibling(a), s = G.sibling(o);
|
|
368
369
|
G.reset(r);
|
|
369
|
-
var
|
|
370
|
+
var c = G.sibling(r);
|
|
370
371
|
G.reset(n);
|
|
371
|
-
var
|
|
372
|
-
|
|
372
|
+
var l = G.sibling(n, 2), f = G.child(l);
|
|
373
|
+
u(f, {
|
|
373
374
|
size: "16",
|
|
374
375
|
class: "shrink-0"
|
|
375
376
|
});
|
|
376
377
|
var p = G.sibling(f);
|
|
377
|
-
G.reset(
|
|
378
|
-
G.set_attribute(n, "href", G.get(S)), G.set_attribute(i, "fill",
|
|
379
|
-
}), G.delegated("click", n,
|
|
378
|
+
G.reset(l), G.reset(t), G.template_effect(() => {
|
|
379
|
+
G.set_attribute(n, "href", G.get(S)), G.set_attribute(i, "fill", Q.blue), G.set_attribute(a, "fill", Q.green), G.set_attribute(o, "fill", Q.yellow), G.set_attribute(s, "fill", Q.red), G.set_text(c, ` ${(d().googleCalendar || "Google Calendar") ?? ""}`), G.set_text(p, ` ${(d().appleCalendar || "Apple Calendar (.ics)") ?? ""}`);
|
|
380
|
+
}), G.delegated("click", n, T), G.delegated("click", l, C), G.append(e, t);
|
|
380
381
|
};
|
|
381
382
|
G.if(ie, (e) => {
|
|
382
383
|
G.get(v) && e(ae);
|
|
@@ -388,10 +389,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
388
389
|
class: "flex-1",
|
|
389
390
|
onclick: E,
|
|
390
391
|
children: (e, t) => {
|
|
391
|
-
var n =
|
|
392
|
-
|
|
392
|
+
var n = _e(), r = G.first_child(n);
|
|
393
|
+
f(r, { size: "16" });
|
|
393
394
|
var i = G.sibling(r);
|
|
394
|
-
G.template_effect(() => G.set_text(i, ` ${(y.copyState === "copied" ? "Link copied" :
|
|
395
|
+
G.template_effect(() => G.set_text(i, ` ${(y.copyState === "copied" ? "Link copied" : d().share || "Share") ?? ""}`)), G.append(e, n);
|
|
395
396
|
},
|
|
396
397
|
$$slots: { default: !0 }
|
|
397
398
|
});
|
|
@@ -401,13 +402,13 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
401
402
|
size: "md",
|
|
402
403
|
class: "flex-1",
|
|
403
404
|
get href() {
|
|
404
|
-
return G.get(
|
|
405
|
+
return G.get(ee);
|
|
405
406
|
},
|
|
406
407
|
children: (e, t) => {
|
|
407
|
-
var n =
|
|
408
|
-
|
|
408
|
+
var n = _e(), r = G.first_child(n);
|
|
409
|
+
h(r, { size: "16" });
|
|
409
410
|
var i = G.sibling(r);
|
|
410
|
-
G.template_effect(() => G.set_text(i, ` ${(
|
|
411
|
+
G.template_effect(() => G.set_text(i, ` ${(d().map || "Map") ?? ""}`)), G.append(e, n);
|
|
411
412
|
},
|
|
412
413
|
$$slots: { default: !0 }
|
|
413
414
|
});
|
|
@@ -415,47 +416,47 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
415
416
|
G.if(oe, (e) => {
|
|
416
417
|
t.event.venue.address && e(se);
|
|
417
418
|
}), G.reset(K);
|
|
418
|
-
var J = G.sibling(K, 2),
|
|
419
|
-
var t =
|
|
419
|
+
var J = G.sibling(K, 2), Y = (e) => {
|
|
420
|
+
var t = ve(), n = G.sibling(G.child(t)), r = G.child(n, !0);
|
|
420
421
|
G.reset(n), G.reset(t), G.template_effect(() => G.set_text(r, y.copyFailedUrl)), G.append(e, t);
|
|
421
422
|
};
|
|
422
423
|
G.if(J, (e) => {
|
|
423
|
-
y.copyState === "failed" && e(
|
|
424
|
+
y.copyState === "failed" && e(Y);
|
|
424
425
|
});
|
|
425
|
-
var
|
|
426
|
-
|
|
426
|
+
var X = G.sibling(J, 2), Z = G.child(X), le = G.child(Z);
|
|
427
|
+
s(le, {
|
|
427
428
|
size: "16",
|
|
428
429
|
class: "shrink-0"
|
|
429
430
|
});
|
|
430
|
-
var ue = G.sibling(
|
|
431
|
-
G.reset(
|
|
432
|
-
var
|
|
433
|
-
var n =
|
|
431
|
+
var ue = G.sibling(le);
|
|
432
|
+
G.reset(Z);
|
|
433
|
+
var de = G.sibling(Z, 2), fe = (e) => {
|
|
434
|
+
var n = ye(), r = G.sibling(G.first_child(n), 2), i = G.child(r);
|
|
434
435
|
ce(i, {
|
|
435
436
|
size: "16",
|
|
436
437
|
class: "shrink-0"
|
|
437
438
|
});
|
|
438
|
-
var
|
|
439
|
+
var a = G.sibling(i);
|
|
439
440
|
G.reset(r), G.template_effect(() => {
|
|
440
|
-
G.set_attribute(r, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), G.set_text(
|
|
441
|
+
G.set_attribute(r, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), G.set_text(a, ` ${(d().needHelp || "Need help?") ?? ""}`);
|
|
441
442
|
}), G.append(e, n);
|
|
442
443
|
};
|
|
443
|
-
G.if(
|
|
444
|
-
t.event.venue.contactEmail && e(
|
|
445
|
-
}), G.reset(
|
|
446
|
-
G.set_attribute(
|
|
447
|
-
}), G.delegated("click",
|
|
444
|
+
G.if(de, (e) => {
|
|
445
|
+
t.event.venue.contactEmail && e(fe);
|
|
446
|
+
}), G.reset(X), G.reset(D), G.template_effect(() => {
|
|
447
|
+
G.set_attribute(R, "alt", d().addToAppleWallet || "Add to Apple Wallet"), G.set_attribute(B, "alt", d().saveToGoogleWallet || "Save to Google Wallet"), G.set_attribute(V, "alt", d().saveToGoogleWallet || "Save to Google Wallet"), G.set_text(ue, ` ${(d().backToEvent || "Back to event") ?? ""}`);
|
|
448
|
+
}), G.delegated("click", L, O), G.delegated("click", z, O), G.delegated("click", Z, te), G.append(e, m);
|
|
448
449
|
},
|
|
449
450
|
$$slots: { default: !0 }
|
|
450
|
-
}), G.reset(
|
|
451
|
+
}), G.reset(A), G.template_effect(() => j = G.set_class(A, 1, "actions-wrapper svelte-4szgdz", null, j, { visible: t.showContent })), G.append(e, A), G.pop();
|
|
451
452
|
}
|
|
452
453
|
G.delegate(["click"]);
|
|
453
454
|
//#endregion
|
|
454
455
|
//#region src/lib/public-calendar-flow/Success.svelte
|
|
455
|
-
var
|
|
456
|
-
function
|
|
456
|
+
var Ce = G.from_html("<div class=\"w-full min-h-screen bg-surface-primary text-color-primary\"><div class=\"max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8\"><div class=\"vc-box-desktop-grid grid-cols-booking-split gap-8 items-start\"><!> <div class=\"sticky top-6\"><!></div></div> <div class=\"vc-box-mobile space-y-6\"><!> <!></div></div></div>");
|
|
457
|
+
function we(e, n) {
|
|
457
458
|
G.push(n, !0);
|
|
458
|
-
let r = V(), i = G.derived(() => H.current), a = G.prop(n, "data", 3, void 0), o = G.prop(n, "eventUrl", 3, void 0), s = G.prop(n, "backHref", 3, void 0), c = G.prop(n, "labels", 19, () => ({})), l = G.prop(n, "locale", 3, void 0), u = G.derived(() =>
|
|
459
|
+
let r = V(), i = G.derived(() => H.current), a = G.prop(n, "data", 3, void 0), o = G.prop(n, "eventUrl", 3, void 0), s = G.prop(n, "backHref", 3, void 0), c = G.prop(n, "labels", 19, () => ({})), l = G.prop(n, "locale", 3, void 0), u = G.derived(() => M(l(), c())), d = G.derived(() => !a());
|
|
459
460
|
G.user_effect(() => {
|
|
460
461
|
if (G.get(d)) return H.options = r, H.current = "default", H.isActive = !0, () => {
|
|
461
462
|
H.isActive = !1, H.options = [];
|
|
@@ -483,7 +484,7 @@ function Se(e, n) {
|
|
|
483
484
|
customerEmail: "customer@example.com"
|
|
484
485
|
},
|
|
485
486
|
free: {
|
|
486
|
-
event:
|
|
487
|
+
event: re,
|
|
487
488
|
orderId: "12848",
|
|
488
489
|
lines: [{
|
|
489
490
|
ticketId: t(201),
|
|
@@ -496,7 +497,7 @@ function Se(e, n) {
|
|
|
496
497
|
customerEmail: "comedy.fan@gmail.com"
|
|
497
498
|
},
|
|
498
499
|
registration: {
|
|
499
|
-
event:
|
|
500
|
+
event: U,
|
|
500
501
|
orderId: "12849",
|
|
501
502
|
lines: [{
|
|
502
503
|
ticketId: t(301),
|
|
@@ -539,7 +540,7 @@ function Se(e, n) {
|
|
|
539
540
|
promoDiscount: G.get(p).serverTotals.promoDiscount,
|
|
540
541
|
giftCardAmount: G.get(p).serverTotals.giftCardAmount
|
|
541
542
|
};
|
|
542
|
-
let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r =
|
|
543
|
+
let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r = A(t + n, G.get(p).event.venue.taxPercentage);
|
|
543
544
|
return {
|
|
544
545
|
lines: e,
|
|
545
546
|
subtotal: t,
|
|
@@ -549,7 +550,7 @@ function Se(e, n) {
|
|
|
549
550
|
promoDiscount: 0,
|
|
550
551
|
giftCardAmount: 0
|
|
551
552
|
};
|
|
552
|
-
})()), h = G.derived(() => G.get(d) ?
|
|
553
|
+
})()), h = G.derived(() => G.get(d) ? T(G.get(p).event.id, G.get(p).event.slug) : o() || "#"), g = G.state(!1), _ = G.state(!1), v = G.state(!1);
|
|
553
554
|
function y() {
|
|
554
555
|
if (G.get(v)) {
|
|
555
556
|
G.set(g, !0), G.set(_, !0);
|
|
@@ -563,11 +564,11 @@ function Se(e, n) {
|
|
|
563
564
|
}
|
|
564
565
|
G.user_effect(() => {
|
|
565
566
|
G.get(d) && (G.get(i), y());
|
|
566
|
-
}),
|
|
567
|
+
}), q(() => {
|
|
567
568
|
G.set(v, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), y();
|
|
568
569
|
});
|
|
569
|
-
var b =
|
|
570
|
-
|
|
570
|
+
var b = Ce(), x = G.child(b), S = G.child(x), C = G.child(S);
|
|
571
|
+
fe(C, {
|
|
571
572
|
get event() {
|
|
572
573
|
return G.get(p).event;
|
|
573
574
|
},
|
|
@@ -591,7 +592,7 @@ function Se(e, n) {
|
|
|
591
592
|
}
|
|
592
593
|
});
|
|
593
594
|
var w = G.sibling(C, 2);
|
|
594
|
-
|
|
595
|
+
Se(G.child(w), {
|
|
595
596
|
get event() {
|
|
596
597
|
return G.get(p).event;
|
|
597
598
|
},
|
|
@@ -614,8 +615,8 @@ function Se(e, n) {
|
|
|
614
615
|
return l();
|
|
615
616
|
}
|
|
616
617
|
}), G.reset(w), G.reset(S);
|
|
617
|
-
var
|
|
618
|
-
|
|
618
|
+
var E = G.sibling(S, 2), D = G.child(E);
|
|
619
|
+
fe(D, {
|
|
619
620
|
get event() {
|
|
620
621
|
return G.get(p).event;
|
|
621
622
|
},
|
|
@@ -637,7 +638,7 @@ function Se(e, n) {
|
|
|
637
638
|
get labels() {
|
|
638
639
|
return G.get(u);
|
|
639
640
|
}
|
|
640
|
-
}),
|
|
641
|
+
}), Se(G.sibling(D, 2), {
|
|
641
642
|
get event() {
|
|
642
643
|
return G.get(p).event;
|
|
643
644
|
},
|
|
@@ -659,95 +660,97 @@ function Se(e, n) {
|
|
|
659
660
|
get locale() {
|
|
660
661
|
return l();
|
|
661
662
|
}
|
|
662
|
-
}), G.reset(
|
|
663
|
+
}), G.reset(E), G.reset(x), G.reset(b), G.append(e, b), G.pop();
|
|
663
664
|
}
|
|
664
665
|
//#endregion
|
|
665
666
|
//#region src/components/Views/Success.svelte
|
|
666
|
-
var
|
|
667
|
-
function
|
|
668
|
-
G.push(
|
|
669
|
-
let
|
|
667
|
+
var $ = e("Success"), Te = G.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), Ee = G.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p> <a class=\"payment-failed-retry svelte-1mm1psu\"> </a>", 1), De = G.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), Oe = G.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 error-container svelte-1mm1psu\"><p class=\"svelte-1mm1psu\"> </p></div>"), ke = G.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
|
|
668
|
+
function Ae(e, t) {
|
|
669
|
+
G.push(t, !0);
|
|
670
|
+
let n = G.prop(t, "data", 19, () => ({})), r = G.prop(t, "browseUrl", 3, "/"), i = G.prop(t, "backHref", 3, void 0), a = G.prop(t, "eventUrl", 3, void 0), o = G.prop(t, "widgetId", 3, null), s = G.prop(t, "venueId", 3, null), c = G.prop(t, "labels", 19, () => ({})), l = G.prop(t, "locale", 3, void 0), u = G.derived(() => P(l(), c())), d = G.derived(() => G.get(u).ticketFallbackName), f = G.derived(() => i() || (n()?.id && n()?.slug ? C(String(n().id), String(n().slug)) : E(r(), {}))), m = G.state(null), h = G.state(""), g = G.state(null), b = G.state(!0), w = G.derived(() => String(n()?.redirectStatus || "")), T = G.derived(() => G.get(w) !== "" && G.get(w) !== "succeeded"), D = G.derived(() => G.get(w) === "pending" || G.get(w) === "processing"), O = G.state(!1), k = G.state(!1);
|
|
670
671
|
async function A(e, t) {
|
|
671
672
|
if (!e) return "unconfirmed";
|
|
672
|
-
let n =
|
|
673
|
+
let n = X(e);
|
|
673
674
|
if (n && t) {
|
|
674
|
-
|
|
675
|
-
let r = await
|
|
675
|
+
W(e, n.email);
|
|
676
|
+
let r = await S(e, {
|
|
676
677
|
...n,
|
|
677
678
|
id: e,
|
|
678
679
|
paymentIntentId: t
|
|
679
|
-
},
|
|
680
|
-
if (r?.success) return
|
|
681
|
-
if (r && (r.eventCanceled || r.eventPostponed)) return
|
|
680
|
+
}, l());
|
|
681
|
+
if (r?.success) return Z(e), "ok";
|
|
682
|
+
if (r && (r.eventCanceled || r.eventPostponed)) return Z(e), "no-charge";
|
|
682
683
|
}
|
|
683
684
|
try {
|
|
684
|
-
let t = (await
|
|
685
|
+
let t = (await L(e))?.purchasedTickets;
|
|
685
686
|
return Array.isArray(t) && t.length > 0 ? "ok" : "unconfirmed";
|
|
686
687
|
} catch (e) {
|
|
687
|
-
return
|
|
688
|
+
return $.warn("Success: redirect-return order check failed:", e), "unconfirmed";
|
|
688
689
|
}
|
|
689
690
|
}
|
|
690
|
-
|
|
691
|
+
q(async () => {
|
|
691
692
|
if (G.get(T)) {
|
|
692
|
-
G.set(
|
|
693
|
+
G.set(b, !1);
|
|
693
694
|
return;
|
|
694
695
|
}
|
|
695
|
-
if (G.get(
|
|
696
|
-
let e = await A(String(
|
|
696
|
+
if (G.get(w) === "succeeded") {
|
|
697
|
+
let e = await A(String(n()?.orderId || n()?.orderUuid || ""), String(n()?.paymentIntentId || ""));
|
|
697
698
|
if (e !== "ok") {
|
|
698
|
-
e === "no-charge" ? G.set(k, !0) : G.set(O, !0), G.set(
|
|
699
|
+
e === "no-charge" ? G.set(k, !0) : G.set(O, !0), G.set(b, !1);
|
|
699
700
|
return;
|
|
700
701
|
}
|
|
701
702
|
}
|
|
702
|
-
let { id: e, slug:
|
|
703
|
+
let { id: e, slug: t, event: r, orderId: i, orderUuid: c, customerEmail: f, ticketCount: S, value: C, currency: E } = n() || {};
|
|
703
704
|
{
|
|
704
|
-
let { postMessageOnSuccess: t, postMessageTargetOrigin:
|
|
705
|
+
let { postMessageOnSuccess: t, postMessageTargetOrigin: a } = _();
|
|
705
706
|
if (t) {
|
|
706
707
|
let t = {
|
|
707
|
-
orderId: String(
|
|
708
|
-
eventId: e ??
|
|
708
|
+
orderId: String(i || c || ""),
|
|
709
|
+
eventId: e ?? n()?.eventId ?? r?.id ?? null
|
|
709
710
|
};
|
|
710
|
-
typeof C == "number" && Number.isFinite(C) && (t.value = C, t.currency =
|
|
711
|
+
typeof C == "number" && Number.isFinite(C) && (t.value = C, t.currency = E || "USD"), ee(t, a);
|
|
711
712
|
}
|
|
712
713
|
}
|
|
713
714
|
{
|
|
714
|
-
let t = e ??
|
|
715
|
-
t != null && !d && (
|
|
715
|
+
let t = e ?? n()?.eventId ?? r?.id ?? null, a = String(i || c || ""), l = "micdrop_purchased_orders", u = v(l, []) ?? [], d = !!a && u.includes(a);
|
|
716
|
+
t != null && !d && (x(t, o(), s() || r?.venueID || r?.venueId || null), te({
|
|
716
717
|
eventId: t,
|
|
717
|
-
orderId:
|
|
718
|
+
orderId: a,
|
|
718
719
|
value: typeof C == "number" ? C : null,
|
|
719
|
-
currency:
|
|
720
|
+
currency: E,
|
|
720
721
|
contentName: r?.name || r?.title || ""
|
|
721
|
-
}),
|
|
722
|
+
}), a && y(l, [...u, a]));
|
|
722
723
|
}
|
|
723
|
-
G.set(h,
|
|
724
|
-
let
|
|
724
|
+
G.set(h, a() || `${window.location.origin}/e/${e}-${t}`, !0);
|
|
725
|
+
let D;
|
|
725
726
|
try {
|
|
726
|
-
|
|
727
|
+
D = p(r);
|
|
727
728
|
} catch (e) {
|
|
728
|
-
|
|
729
|
+
$.warn("Success: transformApiEvent failed:", e), G.set(g, G.get(u).failedToLoadEventData || "Failed to load event data", !0), G.set(b, !1);
|
|
729
730
|
return;
|
|
730
731
|
}
|
|
731
|
-
let
|
|
732
|
-
if (
|
|
733
|
-
|
|
732
|
+
let j = i || "", M = f || ie(j), P = [], R = null;
|
|
733
|
+
if (await N(l()).catch((e) => {
|
|
734
|
+
$.warn("Success: locale bundle unavailable, receipt stays English:", e);
|
|
735
|
+
}), j) try {
|
|
736
|
+
let e = await L(j);
|
|
734
737
|
if (e) {
|
|
735
738
|
M = e.customerEmail || M;
|
|
736
|
-
let t = e.purchasedTickets || e.tickets || [], n = new
|
|
739
|
+
let t = e.purchasedTickets || e.tickets || [], n = new ae();
|
|
737
740
|
for (let e of t) {
|
|
738
741
|
let t = `${e.ticketTypeId || e.ticketId || 0}-${e.ticketName || e.name || ""}`, r = n.get(t);
|
|
739
742
|
r ? (r.quantity += 1, r.subtotal += e.purchasePrice || e.price || 0) : n.set(t, {
|
|
740
743
|
ticketId: e.ticketTypeId || e.ticketId || 0,
|
|
741
|
-
ticketName: e.ticketName || e.name ||
|
|
744
|
+
ticketName: e.ticketName || e.name || G.get(d),
|
|
742
745
|
quantity: 1,
|
|
743
746
|
unitPrice: e.purchasePrice || e.price || 0,
|
|
744
747
|
fee: 0,
|
|
745
748
|
subtotal: e.purchasePrice || e.price || 0
|
|
746
749
|
});
|
|
747
750
|
}
|
|
748
|
-
if (
|
|
751
|
+
if (P = Array.from(n.values()), typeof e.totalPrice == "number") {
|
|
749
752
|
let t = Number(e.giftCardAmount ?? 0), n = Number(e.totalPrice) - t;
|
|
750
|
-
|
|
753
|
+
R = {
|
|
751
754
|
subtotal: e.basePrice ?? 0,
|
|
752
755
|
fees: Number(e.surcharge ?? 0) + Number(e.cardProcessing ?? 0) + Number(e.venueKickback ?? 0),
|
|
753
756
|
taxes: e.tax == null ? 0 : e.tax,
|
|
@@ -759,69 +762,69 @@ function ke(e, n) {
|
|
|
759
762
|
}
|
|
760
763
|
}
|
|
761
764
|
} catch (e) {
|
|
762
|
-
|
|
765
|
+
$.warn("Success: getOrder failed, using route params:", e);
|
|
763
766
|
}
|
|
764
|
-
|
|
765
|
-
ticketId:
|
|
766
|
-
ticketName:
|
|
767
|
-
quantity:
|
|
767
|
+
P.length === 0 && S > 0 && (P = [{
|
|
768
|
+
ticketId: 0,
|
|
769
|
+
ticketName: G.get(d),
|
|
770
|
+
quantity: S,
|
|
768
771
|
unitPrice: 0,
|
|
769
772
|
fee: 0,
|
|
770
773
|
subtotal: 0
|
|
771
|
-
}]), G.set(
|
|
772
|
-
event:
|
|
773
|
-
orderId: String(
|
|
774
|
-
lines:
|
|
774
|
+
}]), G.set(m, {
|
|
775
|
+
event: D,
|
|
776
|
+
orderId: String(j),
|
|
777
|
+
lines: P,
|
|
775
778
|
customerEmail: M,
|
|
776
|
-
...
|
|
777
|
-
}, !0),
|
|
779
|
+
...R ? { serverTotals: R } : {}
|
|
780
|
+
}, !0), ne(String(e)), F("checkout-cartid"), F(I), G.set(b, !1);
|
|
778
781
|
});
|
|
779
|
-
var
|
|
780
|
-
var t =
|
|
781
|
-
var t =
|
|
782
|
+
var j = G.comment(), M = G.first_child(j), R = (e) => {
|
|
783
|
+
var t = De(), n = G.child(t), r = (e) => {
|
|
784
|
+
var t = Te(), n = G.first_child(t), r = G.child(n, !0);
|
|
782
785
|
G.reset(n);
|
|
783
786
|
var i = G.sibling(n, 2), a = G.child(i, !0);
|
|
784
787
|
G.reset(i), G.template_effect(() => {
|
|
785
|
-
G.set_text(r, u
|
|
788
|
+
G.set_text(r, G.get(u).paymentNotConfirmedTitle || "Payment not confirmed"), G.set_text(a, G.get(u).paymentNotConfirmedMessage || "We couldn't confirm this payment yet. If it completes, a confirmation email will arrive shortly — please don't try again until then");
|
|
786
789
|
}), G.append(e, t);
|
|
787
790
|
}, i = (e) => {
|
|
788
|
-
var t =
|
|
791
|
+
var t = Ee(), n = G.first_child(t), r = G.child(n, !0);
|
|
789
792
|
G.reset(n);
|
|
790
793
|
var i = G.sibling(n, 2), a = G.child(i, !0);
|
|
791
794
|
G.reset(i);
|
|
792
795
|
var o = G.sibling(i, 2), s = G.child(o, !0);
|
|
793
796
|
G.reset(o), G.template_effect(() => {
|
|
794
|
-
G.set_text(r, u
|
|
797
|
+
G.set_text(r, G.get(u).paymentNotCompletedTitle || "Payment wasn't completed"), G.set_text(a, G.get(u).paymentNotCompletedMessage || "The payment didn't go through, so no tickets were issued. You can head back to the event and try again"), G.set_attribute(o, "href", G.get(f)), G.set_text(s, G.get(u).backToEvent || "Back to event");
|
|
795
798
|
}), G.append(e, t);
|
|
796
799
|
};
|
|
797
800
|
G.if(n, (e) => {
|
|
798
|
-
G.get(
|
|
801
|
+
G.get(D) || G.get(O) ? e(r) : e(i, -1);
|
|
799
802
|
}), G.reset(t), G.append(e, t);
|
|
800
|
-
}, R = (e) => {
|
|
801
|
-
var t = De(), n = G.child(t), r = G.child(n, !0);
|
|
802
|
-
G.reset(n), G.reset(t), G.template_effect(() => G.set_text(r, G.get(g))), G.append(e, t);
|
|
803
803
|
}, z = (e) => {
|
|
804
804
|
var t = Oe(), n = G.child(t), r = G.child(n, !0);
|
|
805
|
-
G.reset(n), G.reset(t), G.template_effect(() => G.set_text(r,
|
|
805
|
+
G.reset(n), G.reset(t), G.template_effect(() => G.set_text(r, G.get(g))), G.append(e, t);
|
|
806
806
|
}, B = (e) => {
|
|
807
|
-
|
|
807
|
+
var t = ke(), n = G.child(t), r = G.child(n, !0);
|
|
808
|
+
G.reset(n), G.reset(t), G.template_effect(() => G.set_text(r, G.get(u).loadingYourOrder || "Loading your order...")), G.append(e, t);
|
|
809
|
+
}, V = (e) => {
|
|
810
|
+
we(e, {
|
|
808
811
|
get data() {
|
|
809
|
-
return G.get(
|
|
812
|
+
return G.get(m);
|
|
810
813
|
},
|
|
811
814
|
get eventUrl() {
|
|
812
815
|
return G.get(h);
|
|
813
816
|
},
|
|
814
817
|
get labels() {
|
|
815
|
-
return u
|
|
818
|
+
return G.get(u);
|
|
816
819
|
},
|
|
817
820
|
get locale() {
|
|
818
|
-
return
|
|
821
|
+
return l();
|
|
819
822
|
}
|
|
820
823
|
});
|
|
821
824
|
};
|
|
822
|
-
G.if(
|
|
823
|
-
G.get(T) || G.get(k) || G.get(O) ? e(
|
|
824
|
-
}), G.append(e,
|
|
825
|
+
G.if(M, (e) => {
|
|
826
|
+
G.get(T) || G.get(k) || G.get(O) ? e(R) : G.get(g) ? e(z, 1) : G.get(b) || !G.get(m) ? e(B, 2) : e(V, -1);
|
|
827
|
+
}), G.append(e, j), G.pop();
|
|
825
828
|
}
|
|
826
829
|
//#endregion
|
|
827
|
-
export {
|
|
830
|
+
export { Ae as default };
|