@getmicdrop/venue-calendar 4.3.83 → 4.3.84

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.
Files changed (88) hide show
  1. package/dist/{AddOnCard-BYCDpk2K.js → AddOnCard-k0CbbRtO.js} +5 -5
  2. package/dist/{ArrowLeftIcon-6xnkovsS.js → ArrowLeftIcon-DFr9-r32.js} +1 -1
  3. package/dist/{BlockPlaceholder-1RPWfkcR.js → BlockPlaceholder-DoZUBPX7.js} +1 -1
  4. package/dist/{Calendar-BAxUNbCJ.js → Calendar-C9Ruulnk.js} +3 -3
  5. package/dist/{CalendarFoundryView-B66Buz8o.js → CalendarFoundryView-BhZKYpJA.js} +2566 -2564
  6. package/dist/{CalendarIcon-Btx7Euqv.js → CalendarIcon-BmiBbSkn.js} +1 -1
  7. package/dist/{CartView-Chn5l27D.js → CartView-COwJbfZC.js} +13 -13
  8. package/dist/{Checkout-CcKIfScz.js → Checkout-2BaAsTPe.js} +13 -13
  9. package/dist/{Checkout-C5LgIFb-.js → Checkout-DkwqwNvU.js} +149 -149
  10. package/dist/{CheckoutTimer-pQTMXAmN.js → CheckoutTimer-C4lVz0At.js} +2 -2
  11. package/dist/{ChevronDownIcon-BYOIcInU.js → ChevronDownIcon-Bx-8tSTH.js} +1 -1
  12. package/dist/{CloseIcon-D3gGFR7O.js → CloseIcon-sdrba_gB.js} +1 -1
  13. package/dist/{CollectionView-C5mmlJau.js → CollectionView-DN4raPIj.js} +5 -5
  14. package/dist/{Event-ySMZ1OHK.js → Event-BXG8JoVE.js} +15 -15
  15. package/dist/EventPage-N-crMY5p.js +1200 -0
  16. package/dist/{Input-CQrcfjVm.js → Input-BIqSzbwJ.js} +1 -1
  17. package/dist/{MailIcon-MvSVmkEt.js → MailIcon-DPpbXZYm.js} +1 -1
  18. package/dist/{PasswordInput-BErHXsR6.js → PasswordInput-BAOk2VDk.js} +1 -1
  19. package/dist/{RecommendationsRail-ChwDT3_7.js → RecommendationsRail-Bo5N7mgX.js} +7 -7
  20. package/dist/{ScarcityBadge-Bj2mo1Uq.js → ScarcityBadge-DqTMdlKZ.js} +4 -4
  21. package/dist/{SeriesPage-WueOt324.js → SeriesPage-BhNSU0w9.js} +2 -2
  22. package/dist/{Spinner-BwCafaV0.js → Spinner-DvQcuNjW.js} +1 -1
  23. package/dist/{Success-D61WsJ0V.js → Success-DnlDMsJh.js} +170 -165
  24. package/dist/{TagIcon-C-FuMbA1.js → TagIcon-DkqGw8FV.js} +1 -1
  25. package/dist/{ViewTicketsEmbed-pFsZWLJT.js → ViewTicketsEmbed-Dxuac7XX.js} +5 -5
  26. package/dist/{WarningCircleIcon-DGdpWNFz.js → WarningCircleIcon-DbF7ZBFa.js} +1 -1
  27. package/dist/{WarningTriIcon-BFhn1WrF.js → WarningTriIcon-DeSAWbi3.js} +1 -1
  28. package/dist/{api-bwiW5VFp.js → api-C2cCapyC.js} +131 -127
  29. package/dist/{copyToClipboard-Bkm90uQa.js → copyToClipboard-MV-qPNaL.js} +1 -1
  30. package/dist/{createErrorGate.svelte-Byl0eHnz.js → createErrorGate.svelte-BmlCLzHm.js} +1 -1
  31. package/dist/{datetime-z99tFja_.js → datetime-cuetGt7n.js} +1 -1
  32. package/dist/{de-DvQKFTDp.js → de-B2FTXRsf.js} +1 -1
  33. package/dist/{defaultLabels-C8IjF4yK.js → defaultLabels-C9HhBikU.js} +277 -272
  34. package/dist/{defaults-DHLXS93A.js → defaults-kXCUnVqe.js} +2 -2
  35. package/dist/{es-CaU7QjtJ.js → es-DDoidAuR.js} +1 -1
  36. package/dist/{event-DvLfUcYQ.js → event-DY6Myebh.js} +1 -1
  37. package/dist/{event-transform-DI6WX_MD.js → event-transform-BNUHkJpd.js} +4 -4
  38. package/dist/{eventStatusStream-DdP1qJs5.js → eventStatusStream-TRioq0f4.js} +1 -1
  39. package/dist/{fr-CrYvuImF.js → fr-Avh4Haao.js} +1 -1
  40. package/dist/{href-D1U02jyo.js → href-jLnVlYLp.js} +2 -2
  41. package/dist/{i18n-CW3H_HJk.js → i18n-B3Llhtmj.js} +4 -4
  42. package/dist/i18n-lPi_rcQE.js +28 -0
  43. package/dist/{id-40rI6Ejy.js → id-CF52W5i0.js} +1 -1
  44. package/dist/{it-CkfClvBt.js → it-C2jpczXk.js} +1 -1
  45. package/dist/{ja-KdwkpsqS.js → ja-BA3Kv4i8.js} +1 -1
  46. package/dist/{ko-t4WBayx3.js → ko-6x2WYbfh.js} +1 -1
  47. package/dist/locales/{4.3.83 → 4.3.84}/main/de.js +1 -1
  48. package/dist/locales/{4.3.83 → 4.3.84}/main/es.js +1 -1
  49. package/dist/locales/{4.3.83 → 4.3.84}/main/fr.js +1 -1
  50. package/dist/locales/{4.3.83 → 4.3.84}/main/id.js +1 -1
  51. package/dist/locales/{4.3.83 → 4.3.84}/main/it.js +1 -1
  52. package/dist/locales/{4.3.83 → 4.3.84}/main/ja.js +1 -1
  53. package/dist/locales/{4.3.83 → 4.3.84}/main/ko.js +1 -1
  54. package/dist/locales/{4.3.83 → 4.3.84}/main/nl.js +1 -1
  55. package/dist/locales/{4.3.83 → 4.3.84}/main/pl.js +1 -1
  56. package/dist/locales/{4.3.83 → 4.3.84}/main/pt-br.js +1 -1
  57. package/dist/locales/{4.3.83 → 4.3.84}/main/tr.js +1 -1
  58. package/dist/locales/{4.3.83 → 4.3.84}/main/zh.js +1 -1
  59. package/dist/{nl-CVf1K2w4.js → nl-E8Dxgwf_.js} +1 -1
  60. package/dist/{orders-DPu4OoQw.js → orders-yX09ELre.js} +1 -1
  61. package/dist/{pixels-C3DfhDZ4.js → pixels-Az_unyJZ.js} +1 -1
  62. package/dist/{pl-BwPHSa82.js → pl-BI7XfOJs.js} +1 -1
  63. package/dist/{pt-br-BuUAIl91.js → pt-br-4UaMdfZK.js} +1 -1
  64. package/dist/{serverTotals-CMzkLiTF.js → serverTotals-BcUY95wQ.js} +1 -1
  65. package/dist/{showcase-state-options-0e-xCSCj.js → showcase-state-options-BacZ0-vU.js} +1 -1
  66. package/dist/{to-event-card-props-DzlpTGht.js → to-event-card-props-DcWzd1qR.js} +2 -2
  67. package/dist/{tr-Clc-UHel.js → tr-HP2gG3H9.js} +1 -1
  68. package/dist/{utils-CumX8HTY.js → utils-DFkctDYO.js} +2 -2
  69. package/dist/venue-calendar.css +1 -1
  70. package/dist/venue-calendar.es.js +31 -31
  71. package/dist/venue-calendar.iife.js +23 -23
  72. package/dist/venue-calendar.umd.js +51 -51
  73. package/dist/{zh-BR-FN1jG.js → zh-Dos3IOOq.js} +1 -1
  74. package/package.json +2 -2
  75. package/dist/EventPage-DYJXP43w.js +0 -1200
  76. package/dist/i18n-DWT0CMuY.js +0 -28
  77. /package/dist/locales/{4.3.83 → 4.3.84}/flow/de.js +0 -0
  78. /package/dist/locales/{4.3.83 → 4.3.84}/flow/es.js +0 -0
  79. /package/dist/locales/{4.3.83 → 4.3.84}/flow/fr.js +0 -0
  80. /package/dist/locales/{4.3.83 → 4.3.84}/flow/id.js +0 -0
  81. /package/dist/locales/{4.3.83 → 4.3.84}/flow/it.js +0 -0
  82. /package/dist/locales/{4.3.83 → 4.3.84}/flow/ja.js +0 -0
  83. /package/dist/locales/{4.3.83 → 4.3.84}/flow/ko.js +0 -0
  84. /package/dist/locales/{4.3.83 → 4.3.84}/flow/nl.js +0 -0
  85. /package/dist/locales/{4.3.83 → 4.3.84}/flow/pl.js +0 -0
  86. /package/dist/locales/{4.3.83 → 4.3.84}/flow/pt-br.js +0 -0
  87. /package/dist/locales/{4.3.83 → 4.3.84}/flow/tr.js +0 -0
  88. /package/dist/locales/{4.3.83 → 4.3.84}/flow/zh.js +0 -0
@@ -1,42 +1,42 @@
1
1
  import { g as e } from "./sizing-B7ixYndz.js";
2
- import { E as t, K as n, o as r, t as i } from "./datetime-z99tFja_.js";
3
- import { t as a } from "./ArrowLeftIcon-6xnkovsS.js";
4
- import { t as o } from "./CalendarIcon-Btx7Euqv.js";
5
- import { t as s } from "./ChevronDownIcon-BYOIcInU.js";
6
- import { n as c, t as l } from "./MailIcon-MvSVmkEt.js";
7
- import { n as u, o as d, r as f, t as p } from "./RecommendationsRail-ChwDT3_7.js";
8
- import { n as m } from "./copyToClipboard-Bkm90uQa.js";
9
- import { A as h, L as g, V as _, j as v, z as y } from "./defaultLabels-C8IjF4yK.js";
2
+ import { E as t, K as n, o as r, t as i } from "./datetime-cuetGt7n.js";
3
+ import { t as a } from "./ArrowLeftIcon-DFr9-r32.js";
4
+ import { t as o } from "./CalendarIcon-BmiBbSkn.js";
5
+ import { t as s } from "./ChevronDownIcon-Bx-8tSTH.js";
6
+ import { n as c, t as l } from "./MailIcon-DPpbXZYm.js";
7
+ import { n as u, o as d, r as f, t as p } from "./RecommendationsRail-Bo5N7mgX.js";
8
+ import { n as m } from "./copyToClipboard-MV-qPNaL.js";
9
+ import { A as h, L as g, V as _, j as v, z as y } from "./defaultLabels-C9HhBikU.js";
10
10
  import { t as b } from "./Button-BmS_sz0q.js";
11
- import { $ as x, U as S, Z as C, c as w, tt as T, v as E } from "./orders-DPu4OoQw.js";
12
- import { V as D, _ as O, g as k } from "./api-bwiW5VFp.js";
13
- import { n as A, t as j } from "./Heading-B3zLftHS.js";
14
- import { t as M } from "./Text-CqjLjIF8.js";
15
- import { c as N, r as ee } from "./pixels-C3DfhDZ4.js";
16
- import { i as P, n as F, t as I } from "./i18n-CW3H_HJk.js";
17
- import { n as L, t as R } from "./i18n-DWT0CMuY.js";
18
- import { t as z } from "./__SKIP_PATHS__-C0ixDSSm.js";
19
- import { C as B, d as V, l as te, n as H } from "./utils-CumX8HTY.js";
20
- import { n as U, t as ne } from "./constants-kDn3-fLS.js";
21
- import { a as W, i as G, n as re, o as ie, r as K, s as q } from "./showcase-state-options-0e-xCSCj.js";
22
- import { n as ae, t as oe } from "./buyerEmail-BfCq-gDt.js";
23
- import { r as J } from "./defaults-DHLXS93A.js";
11
+ import { $ as x, U as S, Z as C, c as w, tt as T, v as E } from "./orders-yX09ELre.js";
12
+ import { C as D, V as O, g as k, h as A } from "./api-C2cCapyC.js";
13
+ import { n as j, t as M } from "./Heading-B3zLftHS.js";
14
+ import { t as N } from "./Text-CqjLjIF8.js";
15
+ import { c as P, r as ee } from "./pixels-Az_unyJZ.js";
16
+ import { i as F, n as I, t as L } from "./i18n-B3Llhtmj.js";
17
+ import { n as R, t as z } from "./i18n-lPi_rcQE.js";
18
+ import { t as B } from "./__SKIP_PATHS__-C0ixDSSm.js";
19
+ import { C as V, d as H, l as te, n as ne } from "./utils-DFkctDYO.js";
20
+ import { n as U, t as re } from "./constants-kDn3-fLS.js";
21
+ import { a as W, i as G, n as ie, o as K, r as q, s as ae } from "./showcase-state-options-BacZ0-vU.js";
22
+ import { n as oe, t as J } from "./buyerEmail-BfCq-gDt.js";
23
+ import { r as se } from "./defaults-kXCUnVqe.js";
24
24
  import "svelte/internal/disclose-version";
25
25
  import * as Y from "svelte/internal/client";
26
- import { SvelteMap as se } from "svelte/reactivity";
26
+ import { SvelteMap as ce } from "svelte/reactivity";
27
27
  import { onDestroy as X, onMount as Z } from "svelte";
28
28
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/HelpIcon.svelte
29
- var ce = Y.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>"), le = Y.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), ue = Y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
30
- function de(e, t) {
29
+ var le = Y.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>"), ue = Y.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), de = Y.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
30
+ function fe(e, t) {
31
31
  Y.push(t, !0);
32
32
  let r = Y.prop(t, "size", 3, "24"), i = Y.prop(t, "color", 3, "currentColor"), a = Y.prop(t, "class", 3, ""), o = n(), s = Y.derived(() => t.weight ?? o?.weight ?? "regular");
33
- var c = ue();
33
+ var c = de();
34
34
  let l;
35
35
  var u = Y.child(c), d = (e) => {
36
- var t = ce();
36
+ var t = le();
37
37
  Y.append(e, t);
38
38
  }, f = (e) => {
39
- var t = le();
39
+ var t = ue();
40
40
  Y.next(2), Y.append(e, t);
41
41
  };
42
42
  Y.if(u, (e) => {
@@ -47,16 +47,16 @@ function de(e, t) {
47
47
  }
48
48
  //#endregion
49
49
  //#region src/lib/public-calendar-flow/pendingValidation.ts
50
- var fe = (e) => `micdrop_pending_validate_${e}`;
51
- function pe(e) {
52
- return e ? C(fe(e), null) : null;
53
- }
50
+ var pe = (e) => `micdrop_pending_validate_${e}`;
54
51
  function me(e) {
55
- e && x(fe(e));
52
+ return e ? C(pe(e), null) : null;
53
+ }
54
+ function he(e) {
55
+ e && x(pe(e));
56
56
  }
57
57
  //#endregion
58
58
  //#region src/lib/public-calendar-flow/successPromoGrossUp.ts
59
- function he(e, n) {
59
+ function ge(e, n) {
60
60
  if (!Number.isFinite(n) || n <= 0) return {
61
61
  lines: e,
62
62
  appliedDiscount: 0
@@ -92,16 +92,16 @@ function he(e, n) {
92
92
  }
93
93
  //#endregion
94
94
  //#region src/lib/public-calendar-flow/SuccessTicket.svelte
95
- var ge = Y.from_html("<div class=\"p-3 rounded-lg bg-surface-secondary mb-6\"><!> <!></div>"), _e = Y.from_html("<a target=\"_blank\" rel=\"noopener\" class=\"text-link\"><!></a>"), ve = Y.from_html("<div class=\"flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4\"><!> <!></div>"), ye = Y.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>");
96
- function be(e, t) {
95
+ var _e = Y.from_html("<div class=\"p-3 rounded-lg bg-surface-secondary mb-6\"><!> <!></div>"), ve = Y.from_html("<a target=\"_blank\" rel=\"noopener\" class=\"text-link\"><!></a>"), ye = Y.from_html("<div class=\"flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4\"><!> <!></div>"), be = Y.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>");
96
+ function xe(e, t) {
97
97
  Y.push(t, !0);
98
98
  let n = Y.prop(t, "labels", 3, U), r = Y.derived(() => t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0)), i = Y.derived(() => t.event.isRegistrationEvent ? n().youreRegistered || "You're registered" : n().youreIn || "You're in");
99
- A(e, {
99
+ j(e, {
100
100
  border: !0,
101
101
  padding: !1,
102
102
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
103
103
  children: (e, a) => {
104
- var o = ye(), s = Y.child(o), c = Y.child(s), u = Y.child(c);
104
+ var o = be(), s = Y.child(o), c = Y.child(s), u = Y.child(c);
105
105
  let d;
106
106
  var f = Y.sibling(u, 2);
107
107
  let p;
@@ -109,7 +109,7 @@ function be(e, t) {
109
109
  var m = Y.sibling(s, 2);
110
110
  let h;
111
111
  var g = Y.child(m), _ = Y.child(g);
112
- j(_, {
112
+ M(_, {
113
113
  level: 1,
114
114
  size: "xl",
115
115
  weight: "bold",
@@ -121,7 +121,7 @@ function be(e, t) {
121
121
  $$slots: { default: !0 }
122
122
  });
123
123
  var v = Y.sibling(_, 2);
124
- M(v, {
124
+ N(v, {
125
125
  size: "lg",
126
126
  weight: "semibold",
127
127
  class: "block",
@@ -133,7 +133,7 @@ function be(e, t) {
133
133
  $$slots: { default: !0 }
134
134
  });
135
135
  var y = Y.sibling(v, 2);
136
- M(y, {
136
+ N(y, {
137
137
  size: "sm",
138
138
  color: "secondary",
139
139
  class: "block",
@@ -146,8 +146,8 @@ function be(e, t) {
146
146
  $$slots: { default: !0 }
147
147
  }), Y.reset(g);
148
148
  var b = Y.sibling(g, 2), x = (e) => {
149
- var r = ge(), i = Y.child(r);
150
- M(i, {
149
+ var r = _e(), i = Y.child(r);
150
+ N(i, {
151
151
  size: "xs",
152
152
  weight: "semibold",
153
153
  color: "secondary",
@@ -160,7 +160,7 @@ function be(e, t) {
160
160
  $$slots: { default: !0 }
161
161
  });
162
162
  var a = Y.sibling(i, 2);
163
- M(a, {
163
+ N(a, {
164
164
  size: "sm",
165
165
  class: "block whitespace-pre-line",
166
166
  children: (e, n) => {
@@ -175,7 +175,7 @@ function be(e, t) {
175
175
  t.event.postSalesMessage && e(x);
176
176
  });
177
177
  var S = Y.sibling(b, 2), C = Y.child(S);
178
- F(C, {
178
+ I(C, {
179
179
  get orderTotals() {
180
180
  return t.orderTotals;
181
181
  },
@@ -184,7 +184,7 @@ function be(e, t) {
184
184
  }
185
185
  }), Y.reset(S);
186
186
  var w = Y.sibling(S, 2), T = Y.child(w);
187
- M(T, {
187
+ N(T, {
188
188
  size: "sm",
189
189
  weight: "semibold",
190
190
  class: "font-mono",
@@ -196,8 +196,8 @@ function be(e, t) {
196
196
  $$slots: { default: !0 }
197
197
  });
198
198
  var E = Y.sibling(T, 2), D = (e) => {
199
- var r = _e(), i = Y.child(r);
200
- M(i, {
199
+ var r = ve(), i = Y.child(r);
200
+ N(i, {
201
201
  size: "sm",
202
202
  weight: "semibold",
203
203
  children: (e, t) => {
@@ -206,19 +206,19 @@ function be(e, t) {
206
206
  Y.template_effect(() => Y.set_text(r, n().downloadPdf || "Download PDF")), Y.append(e, r);
207
207
  },
208
208
  $$slots: { default: !0 }
209
- }), Y.reset(r), Y.template_effect((e) => Y.set_attribute(r, "href", e), [() => J(t.orderUuid)]), Y.append(e, r);
209
+ }), Y.reset(r), Y.template_effect((e) => Y.set_attribute(r, "href", e), [() => se(t.orderUuid)]), Y.append(e, r);
210
210
  };
211
211
  Y.if(E, (e) => {
212
212
  t.orderUuid && e(D);
213
213
  }), Y.reset(w);
214
214
  var O = Y.sibling(w, 2), k = (e) => {
215
- var r = ve(), i = Y.child(r);
215
+ var r = ye(), i = Y.child(r);
216
216
  l(i, {
217
217
  size: "16",
218
218
  class: "shrink-0 text-color-muted"
219
219
  });
220
220
  var a = Y.sibling(i, 2);
221
- M(a, {
221
+ N(a, {
222
222
  size: "xs",
223
223
  color: "secondary",
224
224
  children: (e, r) => {
@@ -244,14 +244,14 @@ var Q = {
244
244
  green: "#34a853",
245
245
  yellow: "#fbbc05",
246
246
  red: "#ea4335"
247
- }, xe = Y.from_html(" <!>", 1), Se = Y.from_html("<p class=\"wallet-note caption svelte-4szgdz\"> </p>"), Ce = Y.from_html("<!> <!>", 1), we = Y.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>"), Te = Y.from_html("<!> ", 1), Ee = Y.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), De = Y.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), Oe = Y.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), ke = Y.from_html("<div><!></div>");
248
- function Ae(e, t) {
247
+ }, Se = Y.from_html(" <!>", 1), Ce = Y.from_html("<p class=\"wallet-note caption svelte-4szgdz\"> </p>"), we = Y.from_html("<!> <!>", 1), Te = Y.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>"), Ee = Y.from_html("<!> ", 1), De = Y.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), Oe = Y.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), ke = Y.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), Ae = Y.from_html("<div><!></div>");
248
+ function je(e, t) {
249
249
  Y.push(t, !0);
250
250
  let n = Y.prop(t, "backHref", 3, void 0), l = Y.prop(t, "labels", 3, U), f = Y.prop(t, "locale", 3, void 0), p = Y.derived(() => n() || t.eventUrl), h = Y.state(!1), g = u(), v = Y.state("");
251
251
  Y.user_effect(() => {
252
- Y.get(v) && D(Y.get(v), { politeness: "polite" });
252
+ Y.get(v) && O(Y.get(v), { politeness: "polite" });
253
253
  }), Y.user_effect(() => {
254
- g.copyState === "failed" && D(`Copy failed — select to copy: ${g.copyFailedUrl}`, { politeness: "assertive" });
254
+ g.copyState === "failed" && O(`Copy failed — select to copy: ${g.copyFailedUrl}`, { politeness: "assertive" });
255
255
  });
256
256
  function y() {
257
257
  Y.set(h, !Y.get(h));
@@ -312,19 +312,19 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
312
312
  let e = [t.event.venue.name, t.event.venue.address].filter(Boolean);
313
313
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.join(", "))}`;
314
314
  })());
315
- function O() {
315
+ function D() {
316
316
  window.location.href = Y.get(p);
317
317
  }
318
- var k = ke();
319
- let j;
320
- var N = Y.child(k);
321
- A(N, {
318
+ var k = Ae();
319
+ let A;
320
+ var M = Y.child(k);
321
+ j(M, {
322
322
  border: !0,
323
323
  padding: !1,
324
324
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
325
325
  children: (e, n) => {
326
- var u = Oe(), p = Y.first_child(u), D = Y.child(p);
327
- _(D, {
326
+ var u = ke(), p = Y.first_child(u), O = Y.child(p);
327
+ _(O, {
328
328
  get src() {
329
329
  return t.event.imageUrl;
330
330
  },
@@ -332,13 +332,13 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
332
332
  return t.event.title;
333
333
  },
334
334
  get fallback() {
335
- return ne;
335
+ return re;
336
336
  },
337
337
  fit: "contain",
338
338
  class: "w-full max-h-60 min-h-24"
339
339
  }), Y.reset(p);
340
340
  var k = Y.sibling(p, 2), A = Y.child(k), j = Y.child(A);
341
- M(j, {
341
+ N(j, {
342
342
  size: "sm",
343
343
  weight: "semibold",
344
344
  leading: "tight",
@@ -350,18 +350,18 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
350
350
  },
351
351
  $$slots: { default: !0 }
352
352
  });
353
- var N = Y.sibling(j, 2), ee = Y.child(N);
354
- o(ee, {
353
+ var M = Y.sibling(j, 2), P = Y.child(M);
354
+ o(P, {
355
355
  size: "16",
356
356
  class: "shrink-0 icon-muted"
357
357
  });
358
- var P = Y.sibling(ee, 2);
359
- M(P, {
358
+ var ee = Y.sibling(P, 2);
359
+ N(ee, {
360
360
  size: "xs",
361
361
  color: "muted",
362
362
  children: (e, n) => {
363
363
  Y.next();
364
- var a = xe(), o = Y.first_child(a), s = Y.sibling(o), c = (e) => {
364
+ var a = Se(), o = Y.first_child(a), s = Y.sibling(o), c = (e) => {
365
365
  var n = Y.text();
366
366
  Y.template_effect((e) => Y.set_text(n, `· ${e ?? ""}`), [() => r(t.event.startDateTime, t.event.timezone, f())]), Y.append(e, n);
367
367
  };
@@ -370,9 +370,9 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
370
370
  }), Y.template_effect((e) => Y.set_text(o, `${e ?? ""} `), [() => i(t.event.startDateTime, t.event.timezone, f())]), Y.append(e, a);
371
371
  },
372
372
  $$slots: { default: !0 }
373
- }), Y.reset(N);
374
- var F = Y.sibling(N, 2), I = Y.child(F);
375
- M(I, {
373
+ }), Y.reset(M);
374
+ var F = Y.sibling(M, 2), I = Y.child(F);
375
+ N(I, {
376
376
  size: "xs",
377
377
  color: "muted",
378
378
  class: "block",
@@ -385,23 +385,23 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
385
385
  }), Y.reset(F), Y.reset(A);
386
386
  var L = Y.sibling(A, 2), R = Y.child(L), z = Y.child(R);
387
387
  Y.reset(R);
388
- var B = Y.sibling(R, 2), V = Y.child(B), te = Y.sibling(V, 2);
388
+ var B = Y.sibling(R, 2), V = Y.child(B), H = Y.sibling(V, 2);
389
389
  Y.reset(B);
390
- var H = Y.sibling(B, 2), U = (e) => {
391
- var t = Se(), n = Y.child(t, !0);
390
+ var te = Y.sibling(B, 2), ne = (e) => {
391
+ var t = Ce(), n = Y.child(t, !0);
392
392
  Y.reset(t), Y.template_effect(() => Y.set_text(n, Y.get(v))), Y.append(e, t);
393
393
  };
394
- Y.if(H, (e) => {
395
- Y.get(v) && e(U);
394
+ Y.if(te, (e) => {
395
+ Y.get(v) && e(ne);
396
396
  }), Y.reset(L);
397
- var W = Y.sibling(L, 4), G = Y.child(W);
398
- b(G, {
397
+ var U = Y.sibling(L, 4), W = Y.child(U);
398
+ b(W, {
399
399
  variant: "default",
400
400
  size: "md",
401
401
  class: "w-full",
402
402
  onclick: y,
403
403
  children: (e, t) => {
404
- var n = Ce(), r = Y.first_child(n);
404
+ var n = we(), r = Y.first_child(n);
405
405
  o(r, { size: "16" });
406
406
  var i = Y.sibling(r), a = Y.sibling(i);
407
407
  {
@@ -417,8 +417,8 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
417
417
  },
418
418
  $$slots: { default: !0 }
419
419
  });
420
- var re = Y.sibling(G, 2), ie = (e) => {
421
- var t = we(), n = Y.child(t), r = Y.child(n), i = Y.child(r), a = Y.sibling(i), o = Y.sibling(a), s = Y.sibling(o);
420
+ var G = Y.sibling(W, 2), ie = (e) => {
421
+ var t = Te(), n = Y.child(t), r = Y.child(n), i = Y.child(r), a = Y.sibling(i), o = Y.sibling(a), s = Y.sibling(o);
422
422
  Y.reset(r);
423
423
  var u = Y.sibling(r);
424
424
  Y.reset(n);
@@ -432,17 +432,17 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
432
432
  Y.set_attribute(n, "href", Y.get(x)), Y.set_attribute(i, "fill", Q.blue), Y.set_attribute(a, "fill", Q.green), Y.set_attribute(o, "fill", Q.yellow), Y.set_attribute(s, "fill", Q.red), Y.set_text(u, ` ${(l().googleCalendar || "Google Calendar") ?? ""}`), Y.set_text(p, ` ${(l().appleCalendar || "Apple Calendar (.ics)") ?? ""}`);
433
433
  }), Y.delegated("click", n, C), Y.delegated("click", d, S), Y.append(e, t);
434
434
  };
435
- Y.if(re, (e) => {
435
+ Y.if(G, (e) => {
436
436
  Y.get(h) && e(ie);
437
- }), Y.reset(W);
438
- var K = Y.sibling(W, 2), q = Y.child(K);
437
+ }), Y.reset(U);
438
+ var K = Y.sibling(U, 2), q = Y.child(K);
439
439
  b(q, {
440
440
  variant: "default",
441
441
  size: "md",
442
442
  class: "flex-1",
443
443
  onclick: w,
444
444
  children: (e, t) => {
445
- var n = Te(), r = Y.first_child(n);
445
+ var n = Ee(), r = Y.first_child(n);
446
446
  d(r, { size: "16" });
447
447
  var i = Y.sibling(r);
448
448
  Y.template_effect(() => Y.set_text(i, ` ${(g.copyState === "copied" ? "Link copied" : l().share || "Share") ?? ""}`)), Y.append(e, n);
@@ -458,7 +458,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
458
458
  return Y.get(E);
459
459
  },
460
460
  children: (e, t) => {
461
- var n = Te(), r = Y.first_child(n);
461
+ var n = Ee(), r = Y.first_child(n);
462
462
  m(r, { size: "16" });
463
463
  var i = Y.sibling(r);
464
464
  Y.template_effect(() => Y.set_text(i, ` ${(l().map || "Map") ?? ""}`)), Y.append(e, n);
@@ -470,22 +470,22 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
470
470
  t.event.venue.address && e(oe);
471
471
  }), Y.reset(K);
472
472
  var J = Y.sibling(K, 2), se = (e) => {
473
- var t = Ee(), n = Y.sibling(Y.child(t)), r = Y.child(n, !0);
473
+ var t = De(), n = Y.sibling(Y.child(t)), r = Y.child(n, !0);
474
474
  Y.reset(n), Y.reset(t), Y.template_effect(() => Y.set_text(r, g.copyFailedUrl)), Y.append(e, t);
475
475
  };
476
476
  Y.if(J, (e) => {
477
477
  g.copyState === "failed" && e(se);
478
478
  });
479
- var X = Y.sibling(J, 2), Z = Y.child(X), ce = Y.child(Z);
480
- a(ce, {
479
+ var ce = Y.sibling(J, 2), X = Y.child(ce), Z = Y.child(X);
480
+ a(Z, {
481
481
  size: "16",
482
482
  class: "shrink-0"
483
483
  });
484
- var le = Y.sibling(ce);
485
- Y.reset(Z);
486
- var ue = Y.sibling(Z, 2), fe = (e) => {
487
- var n = De(), r = Y.sibling(Y.first_child(n), 2), i = Y.child(r);
488
- de(i, {
484
+ var le = Y.sibling(Z);
485
+ Y.reset(X);
486
+ var ue = Y.sibling(X, 2), de = (e) => {
487
+ var n = Oe(), r = Y.sibling(Y.first_child(n), 2), i = Y.child(r);
488
+ fe(i, {
489
489
  size: "16",
490
490
  class: "shrink-0"
491
491
  });
@@ -495,24 +495,24 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
495
495
  }), Y.append(e, n);
496
496
  };
497
497
  Y.if(ue, (e) => {
498
- t.event.venue.contactEmail && e(fe);
499
- }), Y.reset(X), Y.reset(k), Y.template_effect(() => {
500
- Y.set_attribute(z, "alt", l().addToAppleWallet || "Add to Apple Wallet"), Y.set_attribute(V, "alt", l().saveToGoogleWallet || "Save to Google Wallet"), Y.set_attribute(te, "alt", l().saveToGoogleWallet || "Save to Google Wallet"), Y.set_text(le, ` ${(l().backToEvent || "Back to event") ?? ""}`);
501
- }), Y.delegated("click", R, T), Y.delegated("click", B, T), Y.delegated("click", Z, O), Y.append(e, u);
498
+ t.event.venue.contactEmail && e(de);
499
+ }), Y.reset(ce), Y.reset(k), Y.template_effect(() => {
500
+ Y.set_attribute(z, "alt", l().addToAppleWallet || "Add to Apple Wallet"), Y.set_attribute(V, "alt", l().saveToGoogleWallet || "Save to Google Wallet"), Y.set_attribute(H, "alt", l().saveToGoogleWallet || "Save to Google Wallet"), Y.set_text(le, ` ${(l().backToEvent || "Back to event") ?? ""}`);
501
+ }), Y.delegated("click", R, T), Y.delegated("click", B, T), Y.delegated("click", X, D), Y.append(e, u);
502
502
  },
503
503
  $$slots: { default: !0 }
504
- }), Y.reset(k), Y.template_effect(() => j = Y.set_class(k, 1, "actions-wrapper svelte-4szgdz", null, j, { visible: t.showContent })), Y.append(e, k), Y.pop();
504
+ }), Y.reset(k), Y.template_effect(() => A = Y.set_class(k, 1, "actions-wrapper svelte-4szgdz", null, A, { visible: t.showContent })), Y.append(e, k), Y.pop();
505
505
  }
506
506
  Y.delegate(["click"]);
507
507
  //#endregion
508
508
  //#region src/lib/public-calendar-flow/Success.svelte
509
- var je = Y.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>");
510
- function Me(e, t) {
509
+ var Me = Y.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>");
510
+ function Ne(e, t) {
511
511
  Y.push(t, !0);
512
- let n = re(), r = Y.derived(() => K.current), i = Y.prop(t, "data", 3, void 0), a = Y.prop(t, "eventUrl", 3, void 0), o = Y.prop(t, "backHref", 3, void 0), s = Y.prop(t, "labels", 19, () => ({})), c = Y.prop(t, "locale", 3, void 0), l = Y.derived(() => I(c(), s())), u = Y.derived(() => !i());
512
+ let n = ie(), r = Y.derived(() => q.current), i = Y.prop(t, "data", 3, void 0), a = Y.prop(t, "eventUrl", 3, void 0), o = Y.prop(t, "backHref", 3, void 0), s = Y.prop(t, "labels", 19, () => ({})), c = Y.prop(t, "locale", 3, void 0), l = Y.derived(() => L(c(), s())), u = Y.derived(() => !i());
513
513
  Y.user_effect(() => {
514
- if (Y.get(u)) return K.options = n, K.current = "default", K.isActive = !0, () => {
515
- K.isActive = !1, K.options = [];
514
+ if (Y.get(u)) return q.options = n, q.current = "default", q.isActive = !0, () => {
515
+ q.isActive = !1, q.options = [];
516
516
  };
517
517
  });
518
518
  let d = {
@@ -537,7 +537,7 @@ function Me(e, t) {
537
537
  customerEmail: "customer@example.com"
538
538
  },
539
539
  free: {
540
- event: ie,
540
+ event: K,
541
541
  orderId: "12848",
542
542
  lines: [{
543
543
  ticketId: y(201),
@@ -550,7 +550,7 @@ function Me(e, t) {
550
550
  customerEmail: "comedy.fan@gmail.com"
551
551
  },
552
552
  registration: {
553
- event: q,
553
+ event: ae,
554
554
  orderId: "12849",
555
555
  lines: [{
556
556
  ticketId: y(301),
@@ -593,7 +593,7 @@ function Me(e, t) {
593
593
  promoDiscount: Y.get(f).serverTotals.promoDiscount,
594
594
  giftCardAmount: Y.get(f).serverTotals.giftCardAmount
595
595
  };
596
- let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r = P(t + n, Y.get(f).event.venue.taxPercentage);
596
+ let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r = F(t + n, Y.get(f).event.venue.taxPercentage);
597
597
  return {
598
598
  lines: e,
599
599
  subtotal: t,
@@ -603,9 +603,9 @@ function Me(e, t) {
603
603
  promoDiscount: 0,
604
604
  giftCardAmount: 0
605
605
  };
606
- })()), h = Y.derived(() => Y.get(u) ? O(Y.get(f).event.id, Y.get(f).event.slug) : a() || "#"), g = Y.state(!1), _ = Y.state(!1), v = Y.state(!1);
606
+ })()), h = Y.derived(() => Y.get(u) ? k(Y.get(f).event.id, Y.get(f).event.slug) : a() || "#"), g = Y.state(!1), _ = Y.state(!1), v = Y.state(!1);
607
607
  function b(e) {
608
- window.location.assign(k(e.eventID, e.slug ?? null));
608
+ window.location.assign(A(e.eventID, e.slug ?? null));
609
609
  }
610
610
  function x() {
611
611
  if (Y.get(v)) {
@@ -623,8 +623,8 @@ function Me(e, t) {
623
623
  }), Z(() => {
624
624
  Y.set(v, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), x();
625
625
  });
626
- var S = je(), C = Y.child(S), w = Y.child(C), T = Y.child(w);
627
- be(T, {
626
+ var S = Me(), C = Y.child(S), w = Y.child(C), T = Y.child(w);
627
+ xe(T, {
628
628
  get event() {
629
629
  return Y.get(f).event;
630
630
  },
@@ -665,7 +665,7 @@ function Me(e, t) {
665
665
  onselect: b
666
666
  });
667
667
  var D = Y.sibling(E, 2);
668
- Ae(Y.child(D), {
668
+ je(Y.child(D), {
669
669
  get event() {
670
670
  return Y.get(f).event;
671
671
  },
@@ -688,8 +688,8 @@ function Me(e, t) {
688
688
  return c();
689
689
  }
690
690
  }), Y.reset(D), Y.reset(w);
691
- var A = Y.sibling(w, 2), j = Y.child(A);
692
- be(j, {
691
+ var O = Y.sibling(w, 2), j = Y.child(O);
692
+ xe(j, {
693
693
  get event() {
694
694
  return Y.get(f).event;
695
695
  },
@@ -716,7 +716,7 @@ function Me(e, t) {
716
716
  }
717
717
  });
718
718
  var M = Y.sibling(j, 2);
719
- Ae(M, {
719
+ je(M, {
720
720
  get event() {
721
721
  return Y.get(f).event;
722
722
  },
@@ -752,47 +752,47 @@ function Me(e, t) {
752
752
  return c();
753
753
  },
754
754
  onselect: b
755
- }), Y.reset(A), Y.reset(C), Y.reset(S), Y.append(e, S), Y.pop();
755
+ }), Y.reset(O), Y.reset(C), Y.reset(S), Y.append(e, S), Y.pop();
756
756
  }
757
757
  //#endregion
758
758
  //#region src/components/Views/Success.svelte
759
- var $ = e("Success"), Ne = Y.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), Pe = Y.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), Fe = Y.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), Ie = Y.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>"), Le = Y.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
760
- function Re(e, t) {
759
+ var $ = e("Success"), Pe = Y.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), Fe = Y.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), Ie = Y.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), Le = Y.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 loading-container svelte-1mm1psu\" data-testid=\"success-order-complete-no-details\"><p> </p></div>"), Re = Y.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
760
+ function ze(e, t) {
761
761
  Y.push(t, !0);
762
- let n = Y.prop(t, "data", 19, () => ({})), r = Y.prop(t, "browseUrl", 3, "/"), i = Y.prop(t, "backHref", 3, void 0), a = Y.prop(t, "eventUrl", 3, void 0), o = Y.prop(t, "widgetId", 3, null), s = Y.prop(t, "venueId", 3, null), c = Y.prop(t, "labels", 19, () => ({})), l = Y.prop(t, "locale", 3, void 0), u = Y.derived(() => R(l(), c())), d = Y.derived(() => Y.get(u).ticketFallbackName), p = Y.derived(() => i() || (n()?.id && n()?.slug ? k(String(n().id), String(n().slug)) : z(r(), {}))), m = Y.state(null), _ = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, y = Y.state(""), b = Y.state(null), x = Y.state(!0), D = Y.derived(() => String(n()?.redirectStatus || "")), O = Y.derived(() => Y.get(D) !== "" && Y.get(D) !== "succeeded"), A = Y.derived(() => Y.get(D) === "pending" || Y.get(D) === "processing"), j = Y.state(!1), M = Y.state(!1);
763
- async function P(e, t) {
762
+ let n = Y.prop(t, "data", 19, () => ({})), r = Y.prop(t, "browseUrl", 3, "/"), i = Y.prop(t, "backHref", 3, void 0), a = Y.prop(t, "eventUrl", 3, void 0), o = Y.prop(t, "widgetId", 3, null), s = Y.prop(t, "venueId", 3, null), c = Y.prop(t, "labels", 19, () => ({})), l = Y.prop(t, "locale", 3, void 0), u = Y.derived(() => z(l(), c())), d = Y.derived(() => Y.get(u).ticketFallbackName), p = Y.derived(() => i() || (n()?.id && n()?.slug ? A(String(n().id), String(n().slug)) : B(r(), {}))), m = Y.state(null), _ = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, y = Y.state(""), b = Y.state(!1), x = Y.state(!0), O = Y.derived(() => String(n()?.redirectStatus || "")), k = Y.derived(() => Y.get(O) !== "" && Y.get(O) !== "succeeded"), j = Y.derived(() => Y.get(O) === "pending" || Y.get(O) === "processing"), M = Y.state(!1), N = Y.state(!1);
763
+ async function F(e, t) {
764
764
  if (!e) return "unconfirmed";
765
- let n = pe(e);
765
+ let n = me(e);
766
766
  if (n && t) {
767
- ae(e, n.email);
767
+ oe(e, n.email);
768
768
  let r = await w(e, {
769
769
  ...n,
770
770
  id: e,
771
771
  paymentIntentId: t
772
772
  }, l());
773
- if (r?.success) return me(e), "ok";
774
- if (r && (r.eventCanceled || r.eventPostponed)) return me(e), "no-charge";
773
+ if (r?.success) return he(e), "ok";
774
+ if (r && (r.eventCanceled || r.eventPostponed)) return he(e), "no-charge";
775
775
  }
776
776
  try {
777
- let t = (await H(e))?.purchasedTickets;
777
+ let t = (await ne(e))?.purchasedTickets;
778
778
  return Array.isArray(t) && t.length > 0 ? "ok" : "unconfirmed";
779
779
  } catch (e) {
780
780
  return $.warn("Success: redirect-return order check failed:", e), "unconfirmed";
781
781
  }
782
782
  }
783
783
  Z(async () => {
784
- if (Y.get(O)) {
784
+ if (Y.get(k)) {
785
785
  Y.set(x, !1);
786
786
  return;
787
787
  }
788
- if (Y.get(D) === "succeeded") {
789
- let e = await P(String(n()?.orderId || n()?.orderUuid || ""), String(n()?.paymentIntentId || ""));
788
+ if (Y.get(O) === "succeeded") {
789
+ let e = await F(String(n()?.orderId || n()?.orderUuid || ""), String(n()?.paymentIntentId || ""));
790
790
  if (e !== "ok") {
791
- e === "no-charge" ? Y.set(M, !0) : Y.set(j, !0), Y.set(x, !1);
791
+ e === "no-charge" ? Y.set(N, !0) : Y.set(M, !0), Y.set(x, !1);
792
792
  return;
793
793
  }
794
794
  }
795
- let { id: e, slug: t, event: r, orderId: i, orderUuid: c, customerEmail: p, ticketCount: w, value: k, currency: A } = n() || {};
795
+ let { id: e, slug: t, event: r, orderId: i, orderUuid: c, customerEmail: u, ticketCount: p, value: w, currency: A } = n() || {};
796
796
  {
797
797
  let { postMessageOnSuccess: t, postMessageTargetOrigin: a } = S();
798
798
  if (t) {
@@ -800,7 +800,7 @@ function Re(e, t) {
800
800
  orderId: String(i || c || ""),
801
801
  eventId: e ?? n()?.eventId ?? r?.id ?? null
802
802
  };
803
- typeof k == "number" && Number.isFinite(k) && (t.value = k, t.currency = A || "USD"), N(t, a);
803
+ typeof w == "number" && Number.isFinite(w) && (t.value = w, t.currency = A || "USD"), P(t, a);
804
804
  }
805
805
  }
806
806
  {
@@ -808,27 +808,32 @@ function Re(e, t) {
808
808
  t != null && !d && (E(t, o(), s() || r?.venueID || r?.venueId || null), ee({
809
809
  eventId: t,
810
810
  orderId: a,
811
- value: typeof k == "number" ? k : null,
811
+ value: typeof w == "number" ? w : null,
812
812
  currency: A,
813
813
  contentName: r?.name || r?.title || ""
814
814
  }), a && T(l, [...u, a]));
815
815
  }
816
816
  Y.set(y, a() || `${window.location.origin}/e/${e}-${t}`, !0);
817
- let F;
817
+ let j = r;
818
+ !j && e != null && e !== "" && (j = await D(e).catch(() => null));
819
+ let I;
818
820
  try {
819
- F = f(r);
821
+ I = j ? f(j) : null;
820
822
  } catch (e) {
821
- $.warn("Success: transformApiEvent failed:", e), Y.set(b, Y.get(u).failedToLoadEventData || "Failed to load event data", !0), Y.set(x, !1);
823
+ $.warn("Success: transformApiEvent failed:", e), I = null;
824
+ }
825
+ if (!I) {
826
+ $.warn("Success: no show record for order", i), Y.set(b, !0), H(String(e)), V("checkout-cartid"), V(te), Y.set(x, !1);
822
827
  return;
823
828
  }
824
- let I = i || c || "", R = p || oe(I), z = [], U = null;
825
- if (await L(l()).catch((e) => {
829
+ let L = i || c || "", z = u || J(L), B = [], U = null;
830
+ if (await R(l()).catch((e) => {
826
831
  $.warn("Success: locale bundle unavailable, receipt stays English:", e);
827
- }), I) try {
828
- let e = await H(I);
832
+ }), L) try {
833
+ let e = await ne(L);
829
834
  if (e) {
830
- R = e.customerEmail || R;
831
- let t = e.purchasedTickets || e.tickets || [], n = new se();
835
+ z = e.customerEmail || z;
836
+ let t = e.purchasedTickets || e.tickets || [], n = new ce();
832
837
  for (let e of t) {
833
838
  let t = `${e.ticketTypeId || e.ticketId || 0}-${e.ticketName || e.name || ""}`, r = n.get(t);
834
839
  r ? (r.quantity += 1, r.subtotal += e.purchasePrice || e.price || 0) : n.set(t, {
@@ -840,8 +845,8 @@ function Re(e, t) {
840
845
  subtotal: e.purchasePrice || e.price || 0
841
846
  });
842
847
  }
843
- let r = he(Array.from(n.values()), Number(e.promoCodeStoredDiscountAmount ?? 0));
844
- if (z = r.lines, typeof e.totalPrice == "number") {
848
+ let r = ge(Array.from(n.values()), Number(e.promoCodeStoredDiscountAmount ?? 0));
849
+ if (B = r.lines, typeof e.totalPrice == "number") {
845
850
  let t = Number(e.giftCardAmount ?? 0), n = Number(e.totalPrice) - t;
846
851
  U = {
847
852
  subtotal: h(g(v(Number(e.basePrice ?? 0)) + v(r.appliedDiscount))),
@@ -857,32 +862,32 @@ function Re(e, t) {
857
862
  } catch (e) {
858
863
  $.warn("Success: getOrder failed, using route params:", e);
859
864
  }
860
- z.length === 0 && w > 0 && (z = [{
865
+ B.length === 0 && p > 0 && (B = [{
861
866
  ticketId: 0,
862
867
  ticketName: Y.get(d),
863
- quantity: w,
868
+ quantity: p,
864
869
  unitPrice: 0,
865
870
  fee: 0,
866
871
  subtotal: 0
867
872
  }]), Y.set(m, {
868
- event: F,
869
- orderId: String(I),
870
- lines: z,
871
- customerEmail: R,
873
+ event: I,
874
+ orderId: String(L),
875
+ lines: B,
876
+ customerEmail: z,
872
877
  ...U ? { serverTotals: U } : {},
873
- ..._.test(String(I)) ? { orderUuid: String(I) } : {}
874
- }, !0), V(String(e)), B("checkout-cartid"), B(te), Y.set(x, !1);
878
+ ..._.test(String(L)) ? { orderUuid: String(L) } : {}
879
+ }, !0), H(String(e)), V("checkout-cartid"), V(te), Y.set(x, !1);
875
880
  });
876
- var F = Y.comment(), I = Y.first_child(F), U = (e) => {
877
- var t = Fe(), n = Y.child(t), r = (e) => {
878
- var t = Ne(), n = Y.first_child(t), r = Y.child(n, !0);
881
+ var I = Y.comment(), L = Y.first_child(I), U = (e) => {
882
+ var t = Ie(), n = Y.child(t), r = (e) => {
883
+ var t = Pe(), n = Y.first_child(t), r = Y.child(n, !0);
879
884
  Y.reset(n);
880
885
  var i = Y.sibling(n, 2), a = Y.child(i, !0);
881
886
  Y.reset(i), Y.template_effect(() => {
882
887
  Y.set_text(r, Y.get(u).paymentNotConfirmedTitle || "Payment not confirmed"), Y.set_text(a, Y.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");
883
888
  }), Y.append(e, t);
884
889
  }, i = (e) => {
885
- var t = Pe(), n = Y.first_child(t), r = Y.child(n, !0);
890
+ var t = Fe(), n = Y.first_child(t), r = Y.child(n, !0);
886
891
  Y.reset(n);
887
892
  var i = Y.sibling(n, 2), a = Y.child(i, !0);
888
893
  Y.reset(i);
@@ -892,16 +897,16 @@ function Re(e, t) {
892
897
  }), Y.append(e, t);
893
898
  };
894
899
  Y.if(n, (e) => {
895
- Y.get(A) || Y.get(j) ? e(r) : e(i, -1);
900
+ Y.get(j) || Y.get(M) ? e(r) : e(i, -1);
896
901
  }), Y.reset(t), Y.append(e, t);
897
- }, ne = (e) => {
898
- var t = Ie(), n = Y.child(t), r = Y.child(n, !0);
899
- Y.reset(n), Y.reset(t), Y.template_effect(() => Y.set_text(r, Y.get(b))), Y.append(e, t);
900
- }, W = (e) => {
902
+ }, re = (e) => {
901
903
  var t = Le(), n = Y.child(t), r = Y.child(n, !0);
904
+ Y.reset(n), Y.reset(t), Y.template_effect(() => Y.set_text(r, Y.get(u).orderCompleteDetailsInEmail || "Order complete. Your confirmation email has the details")), Y.append(e, t);
905
+ }, W = (e) => {
906
+ var t = Re(), n = Y.child(t), r = Y.child(n, !0);
902
907
  Y.reset(n), Y.reset(t), Y.template_effect(() => Y.set_text(r, Y.get(u).loadingYourOrder || "Loading your order...")), Y.append(e, t);
903
908
  }, G = (e) => {
904
- Me(e, {
909
+ Ne(e, {
905
910
  get data() {
906
911
  return Y.get(m);
907
912
  },
@@ -916,9 +921,9 @@ function Re(e, t) {
916
921
  }
917
922
  });
918
923
  };
919
- Y.if(I, (e) => {
920
- Y.get(O) || Y.get(M) || Y.get(j) ? e(U) : Y.get(b) ? e(ne, 1) : Y.get(x) || !Y.get(m) ? e(W, 2) : e(G, -1);
921
- }), Y.append(e, F), Y.pop();
924
+ Y.if(L, (e) => {
925
+ Y.get(k) || Y.get(N) || Y.get(M) ? e(U) : Y.get(b) ? e(re, 1) : Y.get(x) || !Y.get(m) ? e(W, 2) : e(G, -1);
926
+ }), Y.append(e, I), Y.pop();
922
927
  }
923
928
  //#endregion
924
- export { Re as default };
929
+ export { ze as default };