@getmicdrop/venue-calendar 4.3.135 → 4.3.136

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 (125) hide show
  1. package/dist/{AddOnCard-_OX1BqWV.js → AddOnCard-Ck_b8lsf.js} +108 -97
  2. package/dist/{ArrowLeftIcon-CezkuCvg.js → ArrowLeftIcon-OhmQKtD4.js} +1 -1
  3. package/dist/{BlockPlaceholder-BBrehfrB.js → BlockPlaceholder-Cjbm5hoG.js} +1 -1
  4. package/dist/{Calendar-BV1XCdju.js → Calendar-B6yNPdBl.js} +4 -4
  5. package/dist/{CalendarFoundryView-CbAqIB4K.js → CalendarFoundryView-BfGZj-_Z.js} +20 -20
  6. package/dist/{CalendarIcon-Y6_CP1BO.js → CalendarIcon-DCLzgpBo.js} +1 -1
  7. package/dist/{CartView-DtgNCACZ.js → CartView-CA_wZlil.js} +81 -76
  8. package/dist/{CheckIcon-BFlrM9LP.js → CheckIcon-BjPbytbt.js} +1 -1
  9. package/dist/Checkout-C_Dn_RZI.js +1878 -0
  10. package/dist/{Checkout-BnI2UqNd.js → Checkout-JdT81S88.js} +16 -16
  11. package/dist/{CheckoutTimer-CfGllYB_.js → CheckoutTimer-DzYupNUI.js} +4 -4
  12. package/dist/{ChevronDownIcon-CmTx77Iz.js → ChevronDownIcon-O-Q8C_Qg.js} +1 -1
  13. package/dist/{CloseIcon--8LjBB63.js → CloseIcon-40klpaYz.js} +1 -1
  14. package/dist/{CollectionView-CKVGypsb.js → CollectionView-Dp529P99.js} +6 -6
  15. package/dist/{Event-C2BfY4hq.js → Event-BHnHfeO-.js} +766 -739
  16. package/dist/{EventCard-uMW7-Yc7.js → EventCard-DIFJADV7.js} +1 -1
  17. package/dist/EventPage-DGrkeBd_.js +1356 -0
  18. package/dist/{Input-C0BCVQQ5.js → Input-BG9DbwUe.js} +93 -109
  19. package/dist/{LocationIcon-Ct8LQDag.js → LocationIcon-BEx96ng8.js} +1 -1
  20. package/dist/{PasswordInput-DpeH_g-Z.js → PasswordInput-BQdpZ9HL.js} +1 -1
  21. package/dist/{RecommendationsRail-DL03xY8R.js → RecommendationsRail-BRthm1Iu.js} +8 -8
  22. package/dist/{ScarcityBadge-BB4ZD_8N.js → ScarcityBadge-Dt0r5r2M.js} +4 -4
  23. package/dist/{SeriesPage-lhbMdwIi.js → SeriesPage-0sHD6hcq.js} +2 -2
  24. package/dist/{Spinner-DNaDFSCe.js → Spinner-e-Mg0Eyb.js} +1 -1
  25. package/dist/{Success-LFYYWMod.js → Success-DWdMk7gp.js} +291 -222
  26. package/dist/{TagIcon-MVcV8ylU.js → TagIcon-BIJYPXYq.js} +1 -1
  27. package/dist/ViewTicketsEmbed-CjH3N_VJ.js +658 -0
  28. package/dist/{WarningCircleIcon-ch-94kEe.js → WarningCircleIcon-Uuc8KHJN.js} +1 -1
  29. package/dist/{WarningTriIcon-DFjb-boV.js → WarningTriIcon-SX24XObM.js} +1 -1
  30. package/dist/{adapter-BPpmiFWD.js → adapter-z116JHU0.js} +1 -1
  31. package/dist/api/api.cjs +1 -1
  32. package/dist/api/api.mjs +1 -0
  33. package/dist/api/types.d.ts +2 -0
  34. package/dist/{api-C02BQT4E.js → api-Dvn2tGdx.js} +4 -4
  35. package/dist/{browser-DxdP6IWt.js → browser-BzcyBbWS.js} +1 -0
  36. package/dist/checkout-libs/4.3.136/phone.js +6 -0
  37. package/dist/checkout-libs/4.3.136/qrcode.js +8 -0
  38. package/dist/{Text-CqjLjIF8.js → constants-D_7LswXe.js} +19 -12
  39. package/dist/{copyToClipboard-Cy_-50GG.js → copyToClipboard-BzoArVPb.js} +1 -1
  40. package/dist/{createErrorGate.svelte-Qp6j3EME.js → createErrorGate.svelte-CZVc_TpX.js} +1 -1
  41. package/dist/{cta-BpblR0dm.js → cta-CTb57V0F.js} +3 -3
  42. package/dist/{datetime-C_dBn97N.js → datetime-Co_z9IUQ.js} +1 -1
  43. package/dist/{de-DyiE1KNg.js → de-BbjhLBzm.js} +1 -0
  44. package/dist/{de-lc43hoya.js → de-DC0pKC1H.js} +1 -1
  45. package/dist/{defaultLabels-tC8zM7_V.js → defaultLabels-Q5_A1ZrR.js} +1 -1
  46. package/dist/{defaults-Bv4F-cYY.js → defaults-BDbx3_c0.js} +31 -33
  47. package/dist/{es-DhoitI_1.js → es-38yS4d3G.js} +1 -0
  48. package/dist/{es-B0uSu40a.js → es-DxoJfXOC.js} +1 -1
  49. package/dist/{event-9wBbeiK2.js → event-DXsgCbu0.js} +1 -1
  50. package/dist/{event-transform-Cp_h6-Ot.js → event-transform-iOZIJrTf.js} +4 -4
  51. package/dist/{fr-CzTFVHUe.js → fr-DCdoZpLm.js} +1 -1
  52. package/dist/{fr-DB--_n56.js → fr-LivMhlfx.js} +1 -0
  53. package/dist/{href-q4ZIwqKC.js → href-ZuPjzr6t.js} +3 -3
  54. package/dist/{i18n-DUMRUvVc.js → i18n-Xwod-PFp.js} +20 -20
  55. package/dist/i18n-cI0EPfvw.js +28 -0
  56. package/dist/{id-CMQRjMxp.js → id-BvOr8-aw.js} +1 -0
  57. package/dist/{id-BGqV9_gI.js → id-XuEVsPu6.js} +1 -1
  58. package/dist/{it-B_BQgPWl.js → it-RdUTxnO5.js} +1 -1
  59. package/dist/{it-hBxsIHz2.js → it-mzikQJIm.js} +1 -0
  60. package/dist/{ja-D1vfwJgB.js → ja-D9PSUNMd.js} +1 -0
  61. package/dist/{ja-BGWo7WDj.js → ja-DgVJimHs.js} +1 -1
  62. package/dist/{ko-FKSzdHrm.js → ko-CcPM8_aU.js} +1 -1
  63. package/dist/{ko-CRTegEJ4.js → ko-DEgW43V6.js} +1 -0
  64. package/dist/{constants-D4yEpZuQ.js → labels-BGvfcm36.js} +3 -2
  65. package/dist/loaders.static-xwcJwfk2.js +4 -0
  66. package/dist/locales/{4.3.135 → 4.3.136}/flow/de.js +1 -1
  67. package/dist/locales/{4.3.135 → 4.3.136}/flow/es.js +1 -1
  68. package/dist/locales/{4.3.135 → 4.3.136}/flow/fr.js +1 -1
  69. package/dist/locales/{4.3.135 → 4.3.136}/flow/id.js +1 -1
  70. package/dist/locales/{4.3.135 → 4.3.136}/flow/it.js +1 -1
  71. package/dist/locales/{4.3.135 → 4.3.136}/flow/ja.js +1 -1
  72. package/dist/locales/{4.3.135 → 4.3.136}/flow/ko.js +1 -1
  73. package/dist/locales/{4.3.135 → 4.3.136}/flow/nl.js +1 -1
  74. package/dist/locales/{4.3.135 → 4.3.136}/flow/pl.js +1 -1
  75. package/dist/locales/{4.3.135 → 4.3.136}/flow/pt-br.js +1 -1
  76. package/dist/locales/{4.3.135 → 4.3.136}/flow/tr.js +1 -1
  77. package/dist/locales/{4.3.135 → 4.3.136}/flow/zh.js +1 -1
  78. package/dist/locales/{4.3.135 → 4.3.136}/main/de.js +1 -1
  79. package/dist/locales/{4.3.135 → 4.3.136}/main/es.js +1 -1
  80. package/dist/locales/{4.3.135 → 4.3.136}/main/fr.js +1 -1
  81. package/dist/locales/{4.3.135 → 4.3.136}/main/id.js +1 -1
  82. package/dist/locales/{4.3.135 → 4.3.136}/main/it.js +1 -1
  83. package/dist/locales/{4.3.135 → 4.3.136}/main/ja.js +1 -1
  84. package/dist/locales/{4.3.135 → 4.3.136}/main/ko.js +1 -1
  85. package/dist/locales/{4.3.135 → 4.3.136}/main/nl.js +1 -1
  86. package/dist/locales/{4.3.135 → 4.3.136}/main/pl.js +1 -1
  87. package/dist/locales/{4.3.135 → 4.3.136}/main/pt-br.js +1 -1
  88. package/dist/locales/{4.3.135 → 4.3.136}/main/tr.js +1 -1
  89. package/dist/locales/{4.3.135 → 4.3.136}/main/zh.js +1 -1
  90. package/dist/{look-island.svelte-C27bvwqP.js → look-island.svelte-BldqMkPS.js} +8 -8
  91. package/dist/looks/{4.3.135 → 4.3.136}/looks.js +1 -1
  92. package/dist/{navigation-Cochv2HZ.js → navigation-D6W4anEV.js} +3 -3
  93. package/dist/{nl-Dhr_CNfS.js → nl-DdxH5fLm.js} +1 -1
  94. package/dist/{nl-DhUZIqb8.js → nl-DjFukZvI.js} +1 -0
  95. package/dist/phone-D76_-CNi.js +6 -0
  96. package/dist/phoneShape-DlWC17He.js +21 -0
  97. package/dist/{pixels-D_on_5fc.js → pixels-DO7kbZa_.js} +1 -1
  98. package/dist/{pl-vklyp95-.js → pl-B99nQZCh.js} +1 -1
  99. package/dist/{pl-D4bvrh0U.js → pl-COAiNJDs.js} +1 -0
  100. package/dist/{pt-br-C8yaXBBu.js → pt-br-_KntrgGE.js} +1 -0
  101. package/dist/{pt-br-BcKTBYBf.js → pt-br-jT56QM8s.js} +1 -1
  102. package/dist/qrcode-Cehaq1db.js +6 -0
  103. package/dist/{serverTotals-2i39gy_x.js → serverTotals-C-S3hONA.js} +1 -1
  104. package/dist/{showcase-state-options-B5GUg7wk.js → showcase-state-options-D5UTR7zF.js} +1 -1
  105. package/dist/{to-event-card-props-q8vFqxkX.js → to-event-card-props-CPYickue.js} +2 -2
  106. package/dist/{tr-C73ecvz8.js → tr-8IIuKwpQ.js} +1 -0
  107. package/dist/{tr-B4gKhpQA.js → tr-B5sI__p7.js} +1 -1
  108. package/dist/{utils-CNwfP0zV.js → utils-S6mZHEaC.js} +2 -2
  109. package/dist/venue-calendar.css +1 -1
  110. package/dist/venue-calendar.es.js +1352 -1316
  111. package/dist/venue-calendar.iife.js +30 -46
  112. package/dist/venue-calendar.umd.js +59 -59
  113. package/dist/{widget-key-context-DxoB6BR0.js → widget-key-context-Xn6MT23x.js} +1 -1
  114. package/dist/{zh-CxcIisjW.js → zh-DLwlt3JO.js} +1 -1
  115. package/dist/{zh-DWi3x7FQ.js → zh-apNTBV5B.js} +1 -0
  116. package/package.json +3 -3
  117. package/dist/Checkout-DpyT_TuS.js +0 -1872
  118. package/dist/EventPage-Bd3VBdhn.js +0 -1345
  119. package/dist/ViewTicketsEmbed-ClMXL5iX.js +0 -651
  120. package/dist/i18n-s5MzdFwq.js +0 -28
  121. /package/dist/looks/{4.3.135 → 4.3.136}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  122. /package/dist/looks/{4.3.135 → 4.3.136}/microphone-Ccv4r-kd.webp +0 -0
  123. /package/dist/looks/{4.3.135 → 4.3.136}/superuser-CZF6a5gO.webp +0 -0
  124. /package/dist/looks/{4.3.135 → 4.3.136}/treasury-DUE7lZzT.webp +0 -0
  125. /package/dist/looks/{4.3.135 → 4.3.136}/user-image-yuS4errP.svg +0 -0
@@ -1,45 +1,45 @@
1
1
  import { g as e } from "./sizing-B7ixYndz.js";
2
- import { A as t, X as n, s as r, t as i } from "./datetime-C_dBn97N.js";
3
- import { t as a } from "./ArrowLeftIcon-CezkuCvg.js";
4
- import { t as o } from "./CalendarIcon-Y6_CP1BO.js";
5
- import { t as s } from "./ChevronDownIcon-CmTx77Iz.js";
6
- import { n as c, t as l } from "./LocationIcon-Ct8LQDag.js";
7
- import { a as u, c as d, n as f, t as p } from "./RecommendationsRail-DL03xY8R.js";
8
- import { n as m } from "./copyToClipboard-Cy_-50GG.js";
9
- import { D as h, E as g, F as _, L as v, N as y } from "./defaultLabels-tC8zM7_V.js";
2
+ import { A as t, X as n, s as r, t as i } from "./datetime-Co_z9IUQ.js";
3
+ import { t as a } from "./ArrowLeftIcon-OhmQKtD4.js";
4
+ import { t as o } from "./CalendarIcon-DCLzgpBo.js";
5
+ import { t as s } from "./ChevronDownIcon-O-Q8C_Qg.js";
6
+ import { n as c, t as l } from "./LocationIcon-BEx96ng8.js";
7
+ import { a as u, c as d, n as f, t as p } from "./RecommendationsRail-BRthm1Iu.js";
8
+ import { n as m } from "./copyToClipboard-BzoArVPb.js";
9
+ import { D as h, E as g, F as _, L as v, N as y } from "./defaultLabels-Q5_A1ZrR.js";
10
10
  import { t as b } from "./Button-VUB2WJ88.js";
11
- import { b as x, n as S, u as C } from "./widget-key-context-DxoB6BR0.js";
12
- import { T as w, m as T } from "./api-C02BQT4E.js";
11
+ import { b as x, n as S, u as C } from "./widget-key-context-Xn6MT23x.js";
12
+ import { T as w, m as T } from "./api-Dvn2tGdx.js";
13
13
  import { n as E, t as D } from "./Heading-vOVPxhJF.js";
14
- import { C as O, D as k, T as A, p as j } from "./client-SmFkruvn.js";
15
- import { t as M } from "./Text-CqjLjIF8.js";
16
- import { a as N, i as P } from "./navigation-Cochv2HZ.js";
17
- import { c as F, r as I } from "./pixels-D_on_5fc.js";
18
- import { n as ee, t as L } from "./i18n-s5MzdFwq.js";
19
- import { t as R } from "./__SKIP_PATHS__-C0ixDSSm.js";
20
- import { g as z, r as B, t as V } from "./checkoutState-wrwq9TD7.js";
21
- import { n as H } from "./utils-CNwfP0zV.js";
22
- import { n as U, t as te } from "./constants-D4yEpZuQ.js";
23
- import { i as ne, n as W, t as G } from "./i18n-DUMRUvVc.js";
24
- import { a as K, i as q, n as J, o as Y, r as X, s as re } from "./showcase-state-options-B5GUg7wk.js";
25
- import { n as ie, t as ae } from "./buyerEmail-BfCq-gDt.js";
26
- import { a as oe, r as se } from "./defaults-Bv4F-cYY.js";
14
+ import { C as O, D as k, T as A, h as j, p as M } from "./client-SmFkruvn.js";
15
+ import { n as N, t as P } from "./constants-D_7LswXe.js";
16
+ import { a as F, i as I } from "./navigation-D6W4anEV.js";
17
+ import { c as L, r as ee } from "./pixels-DO7kbZa_.js";
18
+ import { n as te, t as R } from "./i18n-cI0EPfvw.js";
19
+ import { t as z } from "./__SKIP_PATHS__-C0ixDSSm.js";
20
+ import { g as B, r as ne, t as V } from "./checkoutState-wrwq9TD7.js";
21
+ import { n as H } from "./utils-S6mZHEaC.js";
22
+ import { t as U } from "./labels-BGvfcm36.js";
23
+ import { i as W, n as G, t as K } from "./i18n-Xwod-PFp.js";
24
+ import { a as q, i as J, n as Y, o as re, r as X, s as ie } from "./showcase-state-options-D5UTR7zF.js";
25
+ import { n as ae, t as oe } from "./buyerEmail-BfCq-gDt.js";
26
+ import { a as se, r as ce } from "./defaults-BDbx3_c0.js";
27
27
  import "svelte/internal/disclose-version";
28
28
  import * as Z from "svelte/internal/client";
29
- import { SvelteMap as ce } from "svelte/reactivity";
30
- import { onDestroy as le, onMount as ue } from "svelte";
29
+ import { SvelteMap as le } from "svelte/reactivity";
30
+ import { onDestroy as ue, onMount as de } from "svelte";
31
31
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/HelpIcon.svelte
32
- var de = Z.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>"), fe = Z.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), pe = Z.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
33
- function me(e, t) {
32
+ var fe = Z.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>"), pe = Z.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), me = Z.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
33
+ function he(e, t) {
34
34
  Z.push(t, !0);
35
35
  let r = Z.prop(t, "size", 3, "24"), i = Z.prop(t, "color", 3, "currentColor"), a = Z.prop(t, "class", 3, ""), o = n(), s = Z.derived(() => t.weight ?? o?.weight ?? "regular");
36
- var c = pe();
36
+ var c = me();
37
37
  let l;
38
38
  var u = Z.child(c), d = (e) => {
39
- var t = de();
39
+ var t = fe();
40
40
  Z.append(e, t);
41
41
  }, f = (e) => {
42
- var t = fe();
42
+ var t = pe();
43
43
  Z.next(2), Z.append(e, t);
44
44
  };
45
45
  Z.if(u, (e) => {
@@ -49,28 +49,68 @@ function me(e, t) {
49
49
  }), Z.append(e, c), Z.pop();
50
50
  }
51
51
  //#endregion
52
- //#region src/lib/public-calendar-flow/pendingValidation.ts
53
- var he = (e) => `micdrop_pending_validate_${e}`;
52
+ //#region src/lib/api/transformers/order.ts
54
53
  function ge(e) {
55
- return e ? O(he(e), null) : null;
54
+ let t = e;
55
+ return {
56
+ uuid: t.uuid || String(t.id || t.ID || ""),
57
+ id: t.id || t.ID,
58
+ ticketNumber: t.ticketNumber || t.ticket_number,
59
+ orderId: t.orderId || t.order_id,
60
+ attendeeFirstName: t.attendeeFirstName || t.attendee_first_name || t.firstName,
61
+ attendeeLastName: t.attendeeLastName || t.attendee_last_name || t.lastName,
62
+ attendeeEmail: t.attendeeEmail || t.attendee_email || t.email,
63
+ ticketName: t.ticketName || t.ticket_name || t.name || "",
64
+ ticketTypeId: t.ticketTypeId || t.ticket_type_id,
65
+ purchasePrice: t.purchasePrice || t.purchase_price || t.price || 0,
66
+ status: t.status,
67
+ checkedIn: t.checkedIn || t.checked_in,
68
+ checkedInAt: t.checkedInAt || t.checked_in_at
69
+ };
56
70
  }
57
71
  function _e(e) {
58
- e && A(he(e));
72
+ let t = e, n = t.purchasedTickets || t.tickets || t.purchased_tickets || [];
73
+ return {
74
+ uuid: t.uuid || String(t.id || t.ID || ""),
75
+ id: t.id || t.ID,
76
+ customerEmail: t.customerEmail || t.email || t.customer_email || "",
77
+ customerFirstName: t.customerFirstName || t.firstName || t.first_name,
78
+ customerLastName: t.customerLastName || t.lastName || t.last_name,
79
+ status: t.status || "unknown",
80
+ totalAmount: t.totalAmount || t.total || t.total_amount || 0,
81
+ subtotal: t.subtotal,
82
+ serviceFeesAmount: t.serviceFeesAmount || t.serviceFee || t.service_fee || t.service_fees_amount || 0,
83
+ taxAmount: t.taxAmount || t.tax || t.tax_amount || 0,
84
+ discount: t.discount == null ? 0 : t.discount,
85
+ paymentIntentId: t.paymentIntentId || t.payment_intent_id,
86
+ paymentMethod: t.paymentMethod || t.payment_method,
87
+ statementDescriptor: typeof t.statementDescriptor == "string" ? t.statementDescriptor.trim() : "",
88
+ purchasedTickets: n.map(ge),
89
+ createdAt: t.createdAt || t.created_at,
90
+ updatedAt: t.updatedAt || t.updated_at
91
+ };
92
+ }
93
+ var ve = _e, ye = (e) => `micdrop_pending_validate_${e}`;
94
+ function be(e) {
95
+ return e ? O(ye(e), null) : null;
96
+ }
97
+ function xe(e) {
98
+ e && A(ye(e));
59
99
  }
60
100
  //#endregion
61
101
  //#region src/lib/public-calendar-flow/completedOrder.ts
62
- var ve = (e) => `micdrop_completed_order_${e}`;
63
- function ye(e, t) {
102
+ var Se = (e) => `micdrop_completed_order_${e}`;
103
+ function Ce(e, t) {
64
104
  let n = String(e ?? "").trim(), r = String(t ?? "").trim();
65
- !n || !r || k(ve(n), r);
105
+ !n || !r || k(Se(n), r);
66
106
  }
67
- function be(e) {
107
+ function we(e) {
68
108
  let t = String(e ?? "").trim();
69
- return t ? O(ve(t), "") ?? "" : "";
109
+ return t ? O(Se(t), "") ?? "" : "";
70
110
  }
71
111
  //#endregion
72
112
  //#region src/lib/public-calendar-flow/successPromoGrossUp.ts
73
- function xe(e, n) {
113
+ function Te(e, n) {
74
114
  if (!Number.isFinite(n) || n <= 0) return {
75
115
  lines: e,
76
116
  appliedDiscount: 0
@@ -106,36 +146,36 @@ function xe(e, n) {
106
146
  }
107
147
  //#endregion
108
148
  //#region src/lib/public-calendar-flow/SuccessTicket.svelte
109
- var Se = Z.from_html("<div class=\"p-3 rounded-lg bg-surface-secondary mb-6\"><!> <!></div>"), Ce = Z.from_html("<a target=\"_blank\" rel=\"noopener\" class=\"text-link\"><!></a>"), we = Z.from_html("<div class=\"flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4\"><!> <!></div>"), Te = Z.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>");
110
- function Ee(e, t) {
149
+ var Ee = Z.from_html("<div class=\"p-3 rounded-lg bg-surface-secondary mb-6\"><!> <!></div>"), De = Z.from_html("<div class=\"mt-3\"><!></div>"), Oe = Z.from_html("<a target=\"_blank\" rel=\"noopener\" class=\"text-link\"><!></a>"), ke = Z.from_html("<div class=\"flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4\"><!> <!></div>"), Ae = Z.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>");
150
+ function je(e, t) {
111
151
  Z.push(t, !0);
112
- let n = Z.prop(t, "labels", 3, U), r = Z.derived(() => t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0)), i = Z.derived(() => t.event.isRegistrationEvent ? n().youreRegistered || "You're registered" : n().youreIn || "You're in");
152
+ let n = Z.prop(t, "statementDescriptor", 3, ""), r = Z.prop(t, "labels", 3, U), i = Z.derived(() => t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0)), a = Z.derived(() => t.event.isRegistrationEvent ? r().youreRegistered || "You're registered" : r().youreIn || "You're in");
113
153
  E(e, {
114
154
  border: !0,
115
155
  padding: !1,
116
156
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
117
- children: (e, a) => {
118
- var o = Te(), s = Z.child(o), c = Z.child(s), l = Z.child(c);
119
- let u;
120
- var d = Z.sibling(l, 2);
121
- let f;
122
- Z.reset(c), Z.reset(s);
123
- var p = Z.sibling(s, 2);
124
- let h;
125
- var g = Z.child(p), _ = Z.child(g);
126
- D(_, {
157
+ children: (e, o) => {
158
+ var s = Ae(), c = Z.child(s), l = Z.child(c), u = Z.child(l);
159
+ let d;
160
+ var f = Z.sibling(u, 2);
161
+ let p;
162
+ Z.reset(l), Z.reset(c);
163
+ var h = Z.sibling(c, 2);
164
+ let g;
165
+ var _ = Z.child(h), v = Z.child(_);
166
+ D(v, {
127
167
  level: 1,
128
168
  size: "xl",
129
169
  weight: "bold",
130
170
  children: (e, t) => {
131
171
  Z.next();
132
172
  var n = Z.text();
133
- Z.template_effect(() => Z.set_text(n, Z.get(i))), Z.append(e, n);
173
+ Z.template_effect(() => Z.set_text(n, Z.get(a))), Z.append(e, n);
134
174
  },
135
175
  $$slots: { default: !0 }
136
176
  });
137
- var v = Z.sibling(_, 2);
138
- M(v, {
177
+ var y = Z.sibling(v, 2);
178
+ N(y, {
139
179
  size: "lg",
140
180
  weight: "semibold",
141
181
  class: "block",
@@ -146,35 +186,35 @@ function Ee(e, t) {
146
186
  },
147
187
  $$slots: { default: !0 }
148
188
  });
149
- var y = Z.sibling(v, 2);
150
- M(y, {
189
+ var b = Z.sibling(y, 2);
190
+ N(b, {
151
191
  size: "sm",
152
192
  color: "secondary",
153
193
  class: "block",
154
194
  children: (e, t) => {
155
195
  Z.next();
156
- var i = Z.text();
157
- Z.template_effect(() => Z.set_text(i, `${Z.get(r) ?? ""}
158
- ${(Z.get(r) === 1 ? n().ticket || "ticket" : n().tickets || "tickets") ?? ""} confirmed`)), Z.append(e, i);
196
+ var n = Z.text();
197
+ Z.template_effect(() => Z.set_text(n, `${Z.get(i) ?? ""}
198
+ ${(Z.get(i) === 1 ? r().ticket || "ticket" : r().tickets || "tickets") ?? ""} confirmed`)), Z.append(e, n);
159
199
  },
160
200
  $$slots: { default: !0 }
161
- }), Z.reset(g);
162
- var b = Z.sibling(g, 2), x = (e) => {
163
- var r = Se(), i = Z.child(r);
164
- M(i, {
201
+ }), Z.reset(_);
202
+ var x = Z.sibling(_, 2), S = (e) => {
203
+ var n = Ee(), i = Z.child(n);
204
+ N(i, {
165
205
  size: "xs",
166
206
  weight: "semibold",
167
207
  color: "secondary",
168
208
  class: "block",
169
209
  children: (e, t) => {
170
210
  Z.next();
171
- var r = Z.text();
172
- Z.template_effect(() => Z.set_text(r, n().messageFromOrganizer || "A note from the organizer")), Z.append(e, r);
211
+ var n = Z.text();
212
+ Z.template_effect(() => Z.set_text(n, r().messageFromOrganizer || "A note from the organizer")), Z.append(e, n);
173
213
  },
174
214
  $$slots: { default: !0 }
175
215
  });
176
216
  var a = Z.sibling(i, 2);
177
- M(a, {
217
+ N(a, {
178
218
  size: "sm",
179
219
  class: "block whitespace-pre-line",
180
220
  children: (e, n) => {
@@ -183,22 +223,38 @@ function Ee(e, t) {
183
223
  Z.template_effect(() => Z.set_text(r, t.event.postSalesMessage)), Z.append(e, r);
184
224
  },
185
225
  $$slots: { default: !0 }
186
- }), Z.reset(r), Z.append(e, r);
226
+ }), Z.reset(n), Z.append(e, n);
187
227
  };
188
- Z.if(b, (e) => {
189
- t.event.postSalesMessage && e(x);
228
+ Z.if(x, (e) => {
229
+ t.event.postSalesMessage && e(S);
190
230
  });
191
- var S = Z.sibling(b, 2), C = Z.child(S);
192
- W(C, {
231
+ var C = Z.sibling(x, 2), w = Z.child(C);
232
+ G(w, {
193
233
  get orderTotals() {
194
234
  return t.orderTotals;
195
235
  },
196
236
  get labels() {
197
- return n();
237
+ return r();
198
238
  }
199
- }), Z.reset(S);
200
- var w = Z.sibling(S, 2), T = Z.child(w);
201
- M(T, {
239
+ });
240
+ var T = Z.sibling(w, 2), E = (e) => {
241
+ var t = De(), i = Z.child(t);
242
+ N(i, {
243
+ size: "xs",
244
+ color: "secondary",
245
+ children: (e, t) => {
246
+ Z.next();
247
+ var i = Z.text();
248
+ Z.template_effect((e) => Z.set_text(i, e), [() => (r().cardStatementAs || "This charge appears on your card statement as {descriptor}").replace("{descriptor}", n())]), Z.append(e, i);
249
+ },
250
+ $$slots: { default: !0 }
251
+ }), Z.reset(t), Z.append(e, t);
252
+ };
253
+ Z.if(T, (e) => {
254
+ n() && e(E);
255
+ }), Z.reset(C);
256
+ var O = Z.sibling(C, 2), k = Z.child(O);
257
+ N(k, {
202
258
  size: "sm",
203
259
  weight: "semibold",
204
260
  class: "font-mono",
@@ -209,46 +265,46 @@ function Ee(e, t) {
209
265
  },
210
266
  $$slots: { default: !0 }
211
267
  });
212
- var E = Z.sibling(T, 2), O = (e) => {
213
- var r = Ce(), i = Z.child(r);
214
- M(i, {
268
+ var A = Z.sibling(k, 2), j = (e) => {
269
+ var n = Oe(), i = Z.child(n);
270
+ N(i, {
215
271
  size: "sm",
216
272
  weight: "semibold",
217
273
  children: (e, t) => {
218
274
  Z.next();
219
- var r = Z.text();
220
- Z.template_effect(() => Z.set_text(r, n().downloadPdf || "Download PDF")), Z.append(e, r);
275
+ var n = Z.text();
276
+ Z.template_effect(() => Z.set_text(n, r().downloadPdf || "Download PDF")), Z.append(e, n);
221
277
  },
222
278
  $$slots: { default: !0 }
223
- }), Z.reset(r), Z.template_effect((e) => Z.set_attribute(r, "href", e), [() => se(t.orderUuid)]), Z.append(e, r);
279
+ }), Z.reset(n), Z.template_effect((e) => Z.set_attribute(n, "href", e), [() => ce(t.orderUuid)]), Z.append(e, n);
224
280
  };
225
- Z.if(E, (e) => {
226
- t.orderUuid && e(O);
227
- }), Z.reset(w);
228
- var k = Z.sibling(w, 2), A = (e) => {
229
- var r = we(), i = Z.child(r);
281
+ Z.if(A, (e) => {
282
+ t.orderUuid && e(j);
283
+ }), Z.reset(O);
284
+ var M = Z.sibling(O, 2), P = (e) => {
285
+ var n = ke(), i = Z.child(n);
230
286
  m(i, {
231
287
  size: "16",
232
288
  class: "shrink-0 text-color-muted"
233
289
  });
234
290
  var a = Z.sibling(i, 2);
235
- M(a, {
291
+ N(a, {
236
292
  size: "xs",
237
293
  color: "secondary",
238
- children: (e, r) => {
294
+ children: (e, n) => {
239
295
  Z.next();
240
296
  var i = Z.text();
241
- Z.template_effect(() => Z.set_text(i, `${(n().confirmationSentTo || "Confirmation sent to") ?? ""}
297
+ Z.template_effect(() => Z.set_text(i, `${(r().confirmationSentTo || "Confirmation sent to") ?? ""}
242
298
  ${t.customerEmail ?? ""}`)), Z.append(e, i);
243
299
  },
244
300
  $$slots: { default: !0 }
245
- }), Z.reset(r), Z.append(e, r);
301
+ }), Z.reset(n), Z.append(e, n);
246
302
  };
247
- Z.if(k, (e) => {
248
- t.customerEmail && e(A);
249
- }), Z.reset(p), Z.reset(o), Z.template_effect(() => {
250
- u = Z.set_class(l, 1, "processing-spinner svelte-667vry", null, u, { "fade-out": t.showCheckmark }), f = Z.set_class(d, 0, "checkmark-svg svelte-667vry", null, f, { active: t.showCheckmark }), h = Z.set_class(p, 1, "content-section svelte-667vry", null, h, { visible: t.showContent });
251
- }), Z.append(e, o);
303
+ Z.if(M, (e) => {
304
+ t.customerEmail && e(P);
305
+ }), Z.reset(h), Z.reset(s), Z.template_effect(() => {
306
+ d = Z.set_class(u, 1, "processing-spinner svelte-667vry", null, d, { "fade-out": t.showCheckmark }), p = Z.set_class(f, 0, "checkmark-svg svelte-667vry", null, p, { active: t.showCheckmark }), g = Z.set_class(h, 1, "content-section svelte-667vry", null, g, { visible: t.showContent });
307
+ }), Z.append(e, s);
252
308
  },
253
309
  $$slots: { default: !0 }
254
310
  }), Z.pop();
@@ -258,8 +314,8 @@ var Q = {
258
314
  green: "#34a853",
259
315
  yellow: "#fbbc05",
260
316
  red: "#ea4335"
261
- }, De = Z.from_html(" <!>", 1), Oe = Z.from_html("<a rel=\"external\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"https://get-micdrop.com/wallet-badges/apple-wallet.svg\" class=\"wallet-badge-img svelte-4szgdz\"/></a>"), ke = Z.from_html("<a target=\"_blank\" rel=\"external noopener noreferrer\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"https://get-micdrop.com/wallet-badges/google-wallet-dark.svg\" class=\"wallet-badge-img google-dark svelte-4szgdz\"/> <img src=\"https://get-micdrop.com/wallet-badges/google-wallet-light.svg\" class=\"wallet-badge-img google-light svelte-4szgdz\"/></a>"), Ae = Z.from_html("<div class=\"flex flex-col items-center gap-3\"><!> <!></div>"), je = Z.from_html("<!> <!>", 1), Me = Z.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>"), Ne = Z.from_html("<!> ", 1), Pe = Z.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), Fe = Z.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), Ie = Z.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=\"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), Le = Z.from_html("<div><!></div>");
262
- function Re(e, t) {
317
+ }, Me = Z.from_html(" <!>", 1), Ne = Z.from_html("<a rel=\"external\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"https://get-micdrop.com/wallet-badges/apple-wallet.svg\" class=\"wallet-badge-img svelte-4szgdz\"/></a>"), Pe = Z.from_html("<a target=\"_blank\" rel=\"external noopener noreferrer\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"https://get-micdrop.com/wallet-badges/google-wallet-dark.svg\" class=\"wallet-badge-img google-dark svelte-4szgdz\"/> <img src=\"https://get-micdrop.com/wallet-badges/google-wallet-light.svg\" class=\"wallet-badge-img google-light svelte-4szgdz\"/></a>"), Fe = Z.from_html("<div class=\"flex flex-col items-center gap-3\"><!> <!></div>"), Ie = Z.from_html("<!> <!>", 1), Le = Z.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>"), Re = Z.from_html("<!> ", 1), ze = Z.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), Be = Z.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), Ve = Z.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=\"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), He = Z.from_html("<div><!></div>");
318
+ function Ue(e, t) {
263
319
  Z.push(t, !0);
264
320
  let n = Z.prop(t, "orderUuid", 3, void 0), u = Z.prop(t, "backHref", 3, void 0), p = Z.prop(t, "onBackToEvent", 3, void 0), m = Z.prop(t, "labels", 3, U), h = Z.prop(t, "locale", 3, void 0), g = Z.derived(() => u() || t.eventUrl), _ = Z.state(!1), y = f();
265
321
  Z.user_effect(() => {
@@ -268,7 +324,7 @@ function Re(e, t) {
268
324
  function x() {
269
325
  Z.set(_, !Z.get(_));
270
326
  }
271
- ue(() => {
327
+ de(() => {
272
328
  function e(e) {
273
329
  e.target.closest(".calendar-dropdown") || Z.set(_, !1);
274
330
  }
@@ -285,28 +341,28 @@ function Re(e, t) {
285
341
  }).toString()}`;
286
342
  })());
287
343
  function T() {
288
- let e = new Date(t.event.startDateTime), n = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(e.getTime() + 72e5), r = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), i = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, a = r(/* @__PURE__ */ new Date()), o = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), s = (e) => e ? e.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", c = `BEGIN:VCALENDAR
344
+ let e = new Date(t.event.startDateTime), n = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(e.getTime() + 72e5), r = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), i = new URL(j()).host, a = `order-${t.orderId}-event-${t.event.id}@${i}`, o = r(/* @__PURE__ */ new Date()), s = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), c = (e) => e ? e.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", l = `BEGIN:VCALENDAR
289
345
  VERSION:2.0
290
- PRODID:-//MicDrop//Ticket Confirmation//EN
346
+ PRODID:-//${c(t.event.venue.name || i)}//Ticket Confirmation//EN
291
347
  CALSCALE:GREGORIAN
292
348
  METHOD:PUBLISH
293
349
  BEGIN:VEVENT
294
- UID:${i}
295
- DTSTAMP:${a}
350
+ UID:${a}
351
+ DTSTAMP:${o}
296
352
  DTSTART:${r(e)}
297
353
  DTEND:${r(n)}
298
- SUMMARY:${s(t.event.title)}
299
- LOCATION:${s(o)}
300
- DESCRIPTION:${s(`Order #${t.orderId}\n\nView event: ${t.eventUrl}`)}
354
+ SUMMARY:${c(t.event.title)}
355
+ LOCATION:${c(s)}
356
+ DESCRIPTION:${c(`Order #${t.orderId}\n\nView event: ${t.eventUrl}`)}
301
357
  URL:${t.eventUrl}
302
358
  STATUS:CONFIRMED
303
359
  END:VEVENT
304
- END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u = URL.createObjectURL(l);
360
+ END:VCALENDAR`, u = new Blob([l], { type: "text/calendar;charset=utf-8" }), d = URL.createObjectURL(u);
305
361
  try {
306
362
  let e = document.createElement("a");
307
- e.href = u, e.download = `${(t.event.title || "event").replace(/[^a-zA-Z0-9\s-]/g, "").replace(/\s+/g, "-")}.ics`, document.body.appendChild(e), e.click(), e.remove();
363
+ e.href = d, e.download = `${(t.event.title || "event").replace(/[^a-zA-Z0-9\s-]/g, "").replace(/\s+/g, "-")}.ics`, document.body.appendChild(e), e.click(), e.remove();
308
364
  } finally {
309
- URL.revokeObjectURL(u);
365
+ URL.revokeObjectURL(d);
310
366
  }
311
367
  Z.set(_, !1);
312
368
  }
@@ -327,47 +383,52 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
327
383
  google: null
328
384
  }, !0), !e) return;
329
385
  let t = !1;
330
- return oe(e, k).then((e) => {
386
+ return se(e, k).then((e) => {
331
387
  t || Z.set(A, e, !0);
332
388
  }), () => {
333
389
  t = !0;
334
390
  };
335
- }), le(y.dispose);
336
- let j = Z.derived(() => (() => {
391
+ }), ue(y.dispose);
392
+ let M = Z.derived(() => (() => {
337
393
  let e = [t.event.venue.name, t.event.venue.address].filter(Boolean);
338
394
  return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.join(", "))}`;
339
395
  })());
340
- function N() {
396
+ function F() {
341
397
  if (p()) {
342
398
  p()();
343
399
  return;
344
400
  }
345
401
  window.location.href = Z.get(g);
346
402
  }
347
- var P = Le();
348
- let F;
349
- var I = Z.child(P);
350
- E(I, {
403
+ var I = He();
404
+ let L;
405
+ var ee = Z.child(I);
406
+ E(ee, {
351
407
  border: !0,
352
408
  padding: !1,
353
409
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
354
410
  children: (e, n) => {
355
- var u = Ie(), f = Z.first_child(u), p = Z.child(f);
356
- v(p, {
357
- get src() {
358
- return t.event.imageUrl;
359
- },
360
- get alt() {
361
- return t.event.title;
362
- },
363
- get fallback() {
364
- return te;
365
- },
366
- fit: "contain",
367
- class: "w-full max-h-60 min-h-24"
368
- }), Z.reset(f);
411
+ var u = Ve(), f = Z.first_child(u), p = Z.child(f);
412
+ {
413
+ let e = Z.derived(P);
414
+ v(p, {
415
+ get src() {
416
+ return t.event.imageUrl;
417
+ },
418
+ get alt() {
419
+ return t.event.title;
420
+ },
421
+ get fallback() {
422
+ return Z.get(e);
423
+ },
424
+ branded: !1,
425
+ fit: "contain",
426
+ class: "w-full max-h-60 min-h-24"
427
+ });
428
+ }
429
+ Z.reset(f);
369
430
  var g = Z.sibling(f, 2), S = Z.child(g), w = Z.child(S);
370
- M(w, {
431
+ N(w, {
371
432
  size: "sm",
372
433
  weight: "semibold",
373
434
  leading: "tight",
@@ -384,13 +445,13 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
384
445
  size: "16",
385
446
  class: "shrink-0 icon-muted"
386
447
  });
387
- var P = Z.sibling(k, 2);
388
- M(P, {
448
+ var j = Z.sibling(k, 2);
449
+ N(j, {
389
450
  size: "xs",
390
451
  color: "muted",
391
452
  children: (e, n) => {
392
453
  Z.next();
393
- var a = De(), o = Z.first_child(a), s = Z.sibling(o), c = (e) => {
454
+ var a = Me(), o = Z.first_child(a), s = Z.sibling(o), c = (e) => {
394
455
  var n = Z.text();
395
456
  Z.template_effect((e) => Z.set_text(n, `· ${e ?? ""}`), [() => r(t.event.startDateTime, t.event.timezone, h())]), Z.append(e, n);
396
457
  };
@@ -400,8 +461,8 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
400
461
  },
401
462
  $$slots: { default: !0 }
402
463
  }), Z.reset(E);
403
- var F = Z.sibling(E, 2), I = Z.child(F);
404
- M(I, {
464
+ var I = Z.sibling(E, 2), L = Z.child(I);
465
+ N(L, {
405
466
  size: "xs",
406
467
  color: "muted",
407
468
  class: "block",
@@ -411,10 +472,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
411
472
  Z.template_effect(() => Z.set_text(r, t.event.venue.name)), Z.append(e, r);
412
473
  },
413
474
  $$slots: { default: !0 }
414
- }), Z.reset(F), Z.reset(S);
415
- var ee = Z.sibling(S, 2), L = (e) => {
416
- var t = Ae(), n = Z.child(t), r = (e) => {
417
- var t = Oe(), n = Z.child(t);
475
+ }), Z.reset(I), Z.reset(S);
476
+ var ee = Z.sibling(S, 2), te = (e) => {
477
+ var t = Fe(), n = Z.child(t), r = (e) => {
478
+ var t = Ne(), n = Z.child(t);
418
479
  Z.reset(t), Z.template_effect(() => {
419
480
  Z.set_attribute(t, "href", Z.get(A).apple), Z.set_attribute(n, "alt", m().addToAppleWallet || "Add to Apple Wallet");
420
481
  }), Z.append(e, t);
@@ -423,7 +484,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
423
484
  Z.get(A).apple && e(r);
424
485
  });
425
486
  var i = Z.sibling(n, 2), a = (e) => {
426
- var t = ke(), n = Z.child(t), r = Z.sibling(n, 2);
487
+ var t = Pe(), n = Z.child(t), r = Z.sibling(n, 2);
427
488
  Z.reset(t), Z.template_effect(() => {
428
489
  Z.set_attribute(t, "href", Z.get(A).google), Z.set_attribute(n, "alt", m().saveToGoogleWallet || "Save to Google Wallet"), Z.set_attribute(r, "alt", m().saveToGoogleWallet || "Save to Google Wallet");
429
490
  }), Z.append(e, t);
@@ -433,7 +494,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
433
494
  }), Z.reset(t), Z.append(e, t);
434
495
  };
435
496
  Z.if(ee, (e) => {
436
- (Z.get(A).apple || Z.get(A).google) && e(L);
497
+ (Z.get(A).apple || Z.get(A).google) && e(te);
437
498
  });
438
499
  var R = Z.sibling(ee, 4), z = Z.child(R);
439
500
  b(z, {
@@ -442,7 +503,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
442
503
  class: "w-full",
443
504
  onclick: x,
444
505
  children: (e, t) => {
445
- var n = je(), r = Z.first_child(n);
506
+ var n = Ie(), r = Z.first_child(n);
446
507
  o(r, { size: "16" });
447
508
  var i = Z.sibling(r), a = Z.sibling(i);
448
509
  {
@@ -458,8 +519,8 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
458
519
  },
459
520
  $$slots: { default: !0 }
460
521
  });
461
- var B = Z.sibling(z, 2), V = (e) => {
462
- var t = Me(), n = Z.child(t), r = Z.child(n), i = Z.child(r), a = Z.sibling(i), o = Z.sibling(a), s = Z.sibling(o);
522
+ var B = Z.sibling(z, 2), ne = (e) => {
523
+ var t = Le(), n = Z.child(t), r = Z.child(n), i = Z.child(r), a = Z.sibling(i), o = Z.sibling(a), s = Z.sibling(o);
463
524
  Z.reset(r);
464
525
  var l = Z.sibling(r);
465
526
  Z.reset(n);
@@ -474,32 +535,32 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
474
535
  }), Z.delegated("click", n, D), Z.delegated("click", u, T), Z.append(e, t);
475
536
  };
476
537
  Z.if(B, (e) => {
477
- Z.get(_) && e(V);
538
+ Z.get(_) && e(ne);
478
539
  }), Z.reset(R);
479
- var H = Z.sibling(R, 2), U = Z.child(H);
480
- b(U, {
540
+ var V = Z.sibling(R, 2), H = Z.child(V);
541
+ b(H, {
481
542
  variant: "default",
482
543
  size: "md",
483
544
  class: "flex-1",
484
545
  onclick: O,
485
546
  children: (e, t) => {
486
- var n = Ne(), r = Z.first_child(n);
547
+ var n = Re(), r = Z.first_child(n);
487
548
  d(r, { size: "16" });
488
549
  var i = Z.sibling(r);
489
550
  Z.template_effect(() => Z.set_text(i, ` ${(y.copyState === "copied" ? "Link copied" : m().share || "Share") ?? ""}`)), Z.append(e, n);
490
551
  },
491
552
  $$slots: { default: !0 }
492
553
  });
493
- var ne = Z.sibling(U, 2), W = (e) => {
554
+ var U = Z.sibling(H, 2), W = (e) => {
494
555
  b(e, {
495
556
  variant: "default",
496
557
  size: "md",
497
558
  class: "flex-1",
498
559
  get href() {
499
- return Z.get(j);
560
+ return Z.get(M);
500
561
  },
501
562
  children: (e, t) => {
502
- var n = Ne(), r = Z.first_child(n);
563
+ var n = Re(), r = Z.first_child(n);
503
564
  l(r, { size: "16" });
504
565
  var i = Z.sibling(r);
505
566
  Z.template_effect(() => Z.set_text(i, ` ${(m().map || "Map") ?? ""}`)), Z.append(e, n);
@@ -507,11 +568,11 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
507
568
  $$slots: { default: !0 }
508
569
  });
509
570
  };
510
- Z.if(ne, (e) => {
571
+ Z.if(U, (e) => {
511
572
  t.event.venue.address && e(W);
512
- }), Z.reset(H);
513
- var G = Z.sibling(H, 2), K = (e) => {
514
- var t = Pe(), n = Z.sibling(Z.child(t)), r = Z.child(n, !0);
573
+ }), Z.reset(V);
574
+ var G = Z.sibling(V, 2), K = (e) => {
575
+ var t = ze(), n = Z.sibling(Z.child(t)), r = Z.child(n, !0);
515
576
  Z.reset(n), Z.reset(t), Z.template_effect(() => Z.set_text(r, y.copyFailedUrl)), Z.append(e, t);
516
577
  };
517
578
  Z.if(G, (e) => {
@@ -522,11 +583,11 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
522
583
  size: "16",
523
584
  class: "shrink-0"
524
585
  });
525
- var X = Z.sibling(Y);
586
+ var re = Z.sibling(Y);
526
587
  Z.reset(J);
527
- var re = Z.sibling(J, 2), ie = (e) => {
528
- var n = Fe(), r = Z.sibling(Z.first_child(n), 2), i = Z.child(r);
529
- me(i, {
588
+ var X = Z.sibling(J, 2), ie = (e) => {
589
+ var n = Be(), r = Z.sibling(Z.first_child(n), 2), i = Z.child(r);
590
+ he(i, {
530
591
  size: "16",
531
592
  class: "shrink-0"
532
593
  });
@@ -535,20 +596,20 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
535
596
  Z.set_attribute(r, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), Z.set_text(a, ` ${(m().needHelp || "Need help?") ?? ""}`);
536
597
  }), Z.append(e, n);
537
598
  };
538
- Z.if(re, (e) => {
599
+ Z.if(X, (e) => {
539
600
  t.event.venue.contactEmail && e(ie);
540
- }), Z.reset(q), Z.reset(g), Z.template_effect(() => Z.set_text(X, ` ${(m().backToEvent || "Back to event") ?? ""}`)), Z.delegated("click", J, N), Z.append(e, u);
601
+ }), Z.reset(q), Z.reset(g), Z.template_effect(() => Z.set_text(re, ` ${(m().backToEvent || "Back to event") ?? ""}`)), Z.delegated("click", J, F), Z.append(e, u);
541
602
  },
542
603
  $$slots: { default: !0 }
543
- }), Z.reset(P), Z.template_effect(() => F = Z.set_class(P, 1, "actions-wrapper svelte-4szgdz", null, F, { visible: t.showContent })), Z.append(e, P), Z.pop();
604
+ }), Z.reset(I), Z.template_effect(() => L = Z.set_class(I, 1, "actions-wrapper svelte-4szgdz", null, L, { visible: t.showContent })), Z.append(e, I), Z.pop();
544
605
  }
545
606
  Z.delegate(["click"]);
546
607
  //#endregion
547
608
  //#region src/lib/public-calendar-flow/Success.svelte
548
- var ze = Z.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>");
549
- function Be(e, t) {
609
+ var We = Z.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>");
610
+ function Ge(e, t) {
550
611
  Z.push(t, !0);
551
- let n = J(), r = Z.derived(() => X.current), i = Z.prop(t, "data", 3, void 0), a = Z.prop(t, "eventUrl", 3, void 0), o = Z.prop(t, "backHref", 3, void 0), s = Z.prop(t, "onBackToEvent", 3, void 0), c = Z.prop(t, "labels", 19, () => ({})), l = Z.prop(t, "locale", 3, void 0), u = Z.derived(() => G(l(), c())), d = Z.derived(() => !i());
612
+ let n = Y(), r = Z.derived(() => X.current), i = Z.prop(t, "data", 3, void 0), a = Z.prop(t, "eventUrl", 3, void 0), o = Z.prop(t, "backHref", 3, void 0), s = Z.prop(t, "onBackToEvent", 3, void 0), c = Z.prop(t, "labels", 19, () => ({})), l = Z.prop(t, "locale", 3, void 0), u = Z.derived(() => K(l(), c())), d = Z.derived(() => !i());
552
613
  Z.user_effect(() => {
553
614
  if (Z.get(d)) return X.options = n, X.current = "default", X.isActive = !0, () => {
554
615
  X.isActive = !1, X.options = [];
@@ -556,7 +617,7 @@ function Be(e, t) {
556
617
  });
557
618
  let f = {
558
619
  default: {
559
- event: K,
620
+ event: q,
560
621
  orderId: "12847",
561
622
  lines: [{
562
623
  ticketId: _(101),
@@ -576,7 +637,7 @@ function Be(e, t) {
576
637
  customerEmail: "customer@example.com"
577
638
  },
578
639
  free: {
579
- event: Y,
640
+ event: re,
580
641
  orderId: "12848",
581
642
  lines: [{
582
643
  ticketId: _(201),
@@ -589,7 +650,7 @@ function Be(e, t) {
589
650
  customerEmail: "comedy.fan@gmail.com"
590
651
  },
591
652
  registration: {
592
- event: re,
653
+ event: ie,
593
654
  orderId: "12849",
594
655
  lines: [{
595
656
  ticketId: _(301),
@@ -602,7 +663,7 @@ function Be(e, t) {
602
663
  customerEmail: "learner@example.com"
603
664
  },
604
665
  donation: {
605
- event: q,
666
+ event: J,
606
667
  orderId: "12850",
607
668
  lines: [{
608
669
  ticketId: _(401),
@@ -632,7 +693,7 @@ function Be(e, t) {
632
693
  promoDiscount: Z.get(m).serverTotals.promoDiscount,
633
694
  giftCardAmount: Z.get(m).serverTotals.giftCardAmount
634
695
  };
635
- let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r = ne(t + n, Z.get(m).event.venue.taxPercentage);
696
+ let t = e.reduce((e, t) => e + t.subtotal, 0), n = e.reduce((e, t) => e + t.fee * t.quantity, 0), r = W(t + n, Z.get(m).event.venue.taxPercentage);
636
697
  return {
637
698
  lines: e,
638
699
  subtotal: t,
@@ -642,9 +703,9 @@ function Be(e, t) {
642
703
  promoDiscount: 0,
643
704
  giftCardAmount: 0
644
705
  };
645
- })()), g = Z.derived(() => Z.get(d) ? N(Z.get(m).event.id, Z.get(m).event.slug) : a() || "#"), v = Z.state(!1), y = Z.state(!1), b = Z.state(!1);
706
+ })()), g = Z.derived(() => Z.get(d) ? F(Z.get(m).event.id, Z.get(m).event.slug) : a() || "#"), v = Z.state(!1), y = Z.state(!1), b = Z.state(!1);
646
707
  function x(e) {
647
- window.location.assign(P(e.eventID, e.slug ?? null));
708
+ window.location.assign(I(e.eventID, e.slug ?? null));
648
709
  }
649
710
  function S() {
650
711
  if (Z.get(b)) {
@@ -659,11 +720,11 @@ function Be(e, t) {
659
720
  }
660
721
  Z.user_effect(() => {
661
722
  Z.get(d) && (Z.get(r), S());
662
- }), ue(() => {
723
+ }), de(() => {
663
724
  Z.set(b, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), S();
664
725
  });
665
- var C = ze(), w = Z.child(C), T = Z.child(w), E = Z.child(T);
666
- Ee(E, {
726
+ var C = We(), w = Z.child(C), T = Z.child(w), E = Z.child(T);
727
+ je(E, {
667
728
  get event() {
668
729
  return Z.get(m).event;
669
730
  },
@@ -676,6 +737,9 @@ function Be(e, t) {
676
737
  get customerEmail() {
677
738
  return Z.get(m).customerEmail;
678
739
  },
740
+ get statementDescriptor() {
741
+ return Z.get(m).statementDescriptor;
742
+ },
679
743
  get orderUuid() {
680
744
  return Z.get(m).orderUuid;
681
745
  },
@@ -704,7 +768,7 @@ function Be(e, t) {
704
768
  onselect: x
705
769
  });
706
770
  var O = Z.sibling(D, 2);
707
- Re(Z.child(O), {
771
+ Ue(Z.child(O), {
708
772
  get event() {
709
773
  return Z.get(m).event;
710
774
  },
@@ -734,7 +798,7 @@ function Be(e, t) {
734
798
  }
735
799
  }), Z.reset(O), Z.reset(T);
736
800
  var k = Z.sibling(T, 2), A = Z.child(k);
737
- Ee(A, {
801
+ je(A, {
738
802
  get event() {
739
803
  return Z.get(m).event;
740
804
  },
@@ -747,6 +811,9 @@ function Be(e, t) {
747
811
  get customerEmail() {
748
812
  return Z.get(m).customerEmail;
749
813
  },
814
+ get statementDescriptor() {
815
+ return Z.get(m).statementDescriptor;
816
+ },
750
817
  get orderUuid() {
751
818
  return Z.get(m).orderUuid;
752
819
  },
@@ -761,7 +828,7 @@ function Be(e, t) {
761
828
  }
762
829
  });
763
830
  var j = Z.sibling(A, 2);
764
- Re(j, {
831
+ Ue(j, {
765
832
  get event() {
766
833
  return Z.get(m).event;
767
834
  },
@@ -807,22 +874,22 @@ function Be(e, t) {
807
874
  }
808
875
  //#endregion
809
876
  //#region src/components/Views/Success.svelte
810
- var $ = e("Success"), Ve = Z.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), He = Z.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), Ue = Z.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), We = Z.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>"), Ge = Z.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
811
- function Ke(e, t) {
877
+ var $ = e("Success"), Ke = Z.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), qe = Z.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), Je = Z.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), Ye = Z.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>"), Xe = Z.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
878
+ function Ze(e, t) {
812
879
  Z.push(t, !0);
813
- let n = S(), r = Z.prop(t, "data", 19, () => ({})), i = Z.prop(t, "browseUrl", 3, "/"), a = Z.prop(t, "backHref", 3, void 0), o = Z.prop(t, "onBackToEvent", 3, void 0), s = Z.prop(t, "eventUrl", 3, void 0), c = Z.prop(t, "widgetId", 3, null), l = Z.prop(t, "venueId", 3, null), d = Z.prop(t, "labels", 19, () => ({})), f = Z.prop(t, "locale", 3, void 0), p = Z.derived(() => L(f(), d())), m = Z.derived(() => Z.get(p).ticketFallbackName), _ = Z.derived(() => a() || (r()?.id && r()?.slug ? P(String(r().id), String(r().slug)) : R(i(), {}))), v = Z.state(null), b = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, w = Z.state(""), E = Z.state(!1), D = Z.state(!0), A = Z.derived(() => String(r()?.redirectStatus || "")), M = Z.derived(() => Z.get(A) !== "" && Z.get(A) !== "succeeded"), N = Z.derived(() => Z.get(A) === "pending" || Z.get(A) === "processing"), U = Z.state(!1), te = Z.state(!1);
814
- async function ne(e, t) {
880
+ let n = S(), r = Z.prop(t, "data", 19, () => ({})), i = Z.prop(t, "browseUrl", 3, "/"), a = Z.prop(t, "backHref", 3, void 0), o = Z.prop(t, "onBackToEvent", 3, void 0), s = Z.prop(t, "eventUrl", 3, void 0), c = Z.prop(t, "widgetId", 3, null), l = Z.prop(t, "venueId", 3, null), d = Z.prop(t, "labels", 19, () => ({})), f = Z.prop(t, "locale", 3, void 0), p = Z.derived(() => R(f(), d())), m = Z.derived(() => Z.get(p).ticketFallbackName), _ = Z.derived(() => a() || (r()?.id && r()?.slug ? I(String(r().id), String(r().slug)) : z(i(), {}))), v = Z.state(null), b = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, w = Z.state(""), E = Z.state(!1), D = Z.state(!0), A = Z.derived(() => String(r()?.redirectStatus || "")), j = Z.derived(() => Z.get(A) !== "" && Z.get(A) !== "succeeded"), N = Z.derived(() => Z.get(A) === "pending" || Z.get(A) === "processing"), P = Z.state(!1), F = Z.state(!1);
881
+ async function U(e, t) {
815
882
  if (!e) return "unconfirmed";
816
- let r = ge(e);
883
+ let r = be(e);
817
884
  if (r && t) {
818
- ie(e, r.email);
885
+ ae(e, r.email);
819
886
  let i = await C(e, {
820
887
  ...r,
821
888
  id: e,
822
889
  paymentIntentId: t
823
890
  }, f(), { widgetKey: n });
824
- if (i?.success) return _e(e), "ok";
825
- if (i && (i.eventCanceled || i.eventPostponed)) return _e(e), "no-charge";
891
+ if (i?.success) return xe(e), "ok";
892
+ if (i && (i.eventCanceled || i.eventPostponed)) return xe(e), "no-charge";
826
893
  }
827
894
  try {
828
895
  let t = (await H(e, { widgetKey: n }))?.purchasedTickets;
@@ -831,32 +898,32 @@ function Ke(e, t) {
831
898
  return $.warn("Success: redirect-return order check failed:", e), "unconfirmed";
832
899
  }
833
900
  }
834
- ue(async () => {
835
- if (Z.get(M)) {
901
+ de(async () => {
902
+ if (Z.get(j)) {
836
903
  Z.set(D, !1);
837
904
  return;
838
905
  }
839
906
  if (Z.get(A) === "succeeded") {
840
- let e = await ne(String(r()?.orderId || r()?.orderUuid || ""), String(r()?.paymentIntentId || ""));
907
+ let e = await U(String(r()?.orderId || r()?.orderUuid || ""), String(r()?.paymentIntentId || ""));
841
908
  if (e !== "ok") {
842
- e === "no-charge" ? Z.set(te, !0) : Z.set(U, !0), Z.set(D, !1);
909
+ e === "no-charge" ? Z.set(F, !0) : Z.set(P, !0), Z.set(D, !1);
843
910
  return;
844
911
  }
845
912
  }
846
- let { id: e, slug: t, event: i, orderId: a, orderUuid: o, customerEmail: d, ticketCount: p, value: _, currency: S } = r() || {}, C = e ?? r()?.eventId ?? i?.id ?? null, N = String(a || o || "") || be(C);
913
+ let { id: e, slug: t, event: i, orderId: a, orderUuid: o, customerEmail: d, ticketCount: p, value: _, currency: S } = r() || {}, C = e ?? r()?.eventId ?? i?.id ?? null, N = String(a || o || "") || we(C);
847
914
  {
848
- let { postMessageOnSuccess: e, postMessageTargetOrigin: t } = j();
915
+ let { postMessageOnSuccess: e, postMessageTargetOrigin: t } = M();
849
916
  if (e) {
850
917
  let e = {
851
918
  orderId: N,
852
919
  eventId: C
853
920
  };
854
- typeof _ == "number" && Number.isFinite(_) && (e.value = _, e.currency = S || "USD"), F(e, t);
921
+ typeof _ == "number" && Number.isFinite(_) && (e.value = _, e.currency = S || "USD"), L(e, t);
855
922
  }
856
923
  }
857
924
  {
858
925
  let e = C, t = N, n = "micdrop_purchased_orders", r = O(n, []) ?? [], a = !!t && r.includes(t);
859
- e != null && !a && (x(e, c(), l() || i?.venueID || i?.venueId || null), I({
926
+ e != null && !a && (x(e, c(), l() || i?.venueID || i?.venueId || null), ee({
860
927
  eventId: e,
861
928
  orderId: t,
862
929
  value: typeof _ == "number" ? _ : null,
@@ -865,28 +932,28 @@ function Ke(e, t) {
865
932
  }), t && k(n, [...r, t]));
866
933
  }
867
934
  Z.set(w, s() || `${window.location.origin}/e/${e}-${t}`, !0);
868
- let P = i;
869
- !P && e != null && e !== "" && (P = await T(e, void 0, void 0, { widgetKey: n }).catch(() => null));
870
- let L;
935
+ let I = i;
936
+ !I && e != null && e !== "" && (I = await T(e, void 0, void 0, { widgetKey: n }).catch(() => null));
937
+ let R;
871
938
  try {
872
- L = P ? u(P) : null;
939
+ R = I ? u(I) : null;
873
940
  } catch (e) {
874
- $.warn("Success: transformApiEvent failed:", e), L = null;
941
+ $.warn("Success: transformApiEvent failed:", e), R = null;
875
942
  }
876
- if (!L) {
877
- $.warn("Success: no show record for order", a), Z.set(E, !0), B(String(e)), z("checkout-cartid"), z(V), Z.set(D, !1);
943
+ if (!R) {
944
+ $.warn("Success: no show record for order", a), Z.set(E, !0), ne(String(e)), B("checkout-cartid"), B(V), Z.set(D, !1);
878
945
  return;
879
946
  }
880
- let R = d || ae(N), W = [], G = null;
881
- if (await ee(f()).catch((e) => {
947
+ let z = d || oe(N), W = [], G = null, K = "";
948
+ if (await te(f()).catch((e) => {
882
949
  $.warn("Success: locale bundle unavailable, receipt stays English:", e);
883
950
  }), N) try {
884
951
  let e = await H(N, { widgetKey: n });
885
952
  if (e) {
886
- R = e.customerEmail || R;
953
+ z = e.customerEmail || z;
887
954
  let t = e.purchasedTickets || e.tickets || [];
888
- t.length > 0 && ye(C, N);
889
- let n = new ce();
955
+ t.length > 0 && Ce(C, N);
956
+ let n = new le();
890
957
  for (let e of t) {
891
958
  let t = `${e.ticketTypeId || e.ticketId || 0}-${e.ticketName || e.name || ""}`, r = n.get(t);
892
959
  r ? (r.quantity += 1, r.subtotal += e.purchasePrice || e.price || 0) : n.set(t, {
@@ -898,7 +965,7 @@ function Ke(e, t) {
898
965
  subtotal: e.purchasePrice || e.price || 0
899
966
  });
900
967
  }
901
- let r = xe(Array.from(n.values()), Number(e.promoCodeStoredDiscountAmount ?? 0));
968
+ let r = Te(Array.from(n.values()), Number(e.promoCodeStoredDiscountAmount ?? 0));
902
969
  if (W = r.lines, typeof e.totalPrice == "number") {
903
970
  let t = Number(e.giftCardAmount ?? 0), n = Number(e.totalPrice) - t;
904
971
  G = {
@@ -911,6 +978,7 @@ function Ke(e, t) {
911
978
  stripeAmount: n
912
979
  };
913
980
  }
981
+ K = ve(e).statementDescriptor ?? "";
914
982
  }
915
983
  } catch (e) {
916
984
  $.warn("Success: getOrder failed, using route params:", e);
@@ -923,24 +991,25 @@ function Ke(e, t) {
923
991
  fee: 0,
924
992
  subtotal: 0
925
993
  }]), W.length === 0 ? Z.set(E, !0) : Z.set(v, {
926
- event: L,
994
+ event: R,
927
995
  orderId: String(N),
928
996
  lines: W,
929
- customerEmail: R,
997
+ customerEmail: z,
930
998
  ...G ? { serverTotals: G } : {},
999
+ ...K ? { statementDescriptor: K } : {},
931
1000
  ...b.test(String(N)) ? { orderUuid: String(N) } : {}
932
- }, !0), B(String(e)), z("checkout-cartid"), z(V), Z.set(D, !1);
1001
+ }, !0), ne(String(e)), B("checkout-cartid"), B(V), Z.set(D, !1);
933
1002
  });
934
1003
  var W = Z.comment(), G = Z.first_child(W), K = (e) => {
935
- var t = Ue(), n = Z.child(t), r = (e) => {
936
- var t = Ve(), n = Z.first_child(t), r = Z.child(n, !0);
1004
+ var t = Je(), n = Z.child(t), r = (e) => {
1005
+ var t = Ke(), n = Z.first_child(t), r = Z.child(n, !0);
937
1006
  Z.reset(n);
938
1007
  var i = Z.sibling(n, 2), a = Z.child(i, !0);
939
1008
  Z.reset(i), Z.template_effect(() => {
940
1009
  Z.set_text(r, Z.get(p).paymentNotConfirmedTitle || "Payment not confirmed"), Z.set_text(a, Z.get(p).paymentNotConfirmedMessage || "We couldn't confirm this payment yet. If it completes, a confirmation email will arrive shortly — please don't try again until then");
941
1010
  }), Z.append(e, t);
942
1011
  }, i = (e) => {
943
- var t = He(), n = Z.first_child(t), r = Z.child(n, !0);
1012
+ var t = qe(), n = Z.first_child(t), r = Z.child(n, !0);
944
1013
  Z.reset(n);
945
1014
  var i = Z.sibling(n, 2), a = Z.child(i, !0);
946
1015
  Z.reset(i);
@@ -950,16 +1019,16 @@ function Ke(e, t) {
950
1019
  }), Z.append(e, t);
951
1020
  };
952
1021
  Z.if(n, (e) => {
953
- Z.get(N) || Z.get(U) ? e(r) : e(i, -1);
1022
+ Z.get(N) || Z.get(P) ? e(r) : e(i, -1);
954
1023
  }), Z.reset(t), Z.append(e, t);
955
1024
  }, q = (e) => {
956
- var t = We(), n = Z.child(t), r = Z.child(n, !0);
1025
+ var t = Ye(), n = Z.child(t), r = Z.child(n, !0);
957
1026
  Z.reset(n), Z.reset(t), Z.template_effect(() => Z.set_text(r, Z.get(p).orderCompleteDetailsInEmail || "Order complete. Your confirmation email has the details")), Z.append(e, t);
958
1027
  }, J = (e) => {
959
- var t = Ge(), n = Z.child(t), r = Z.child(n, !0);
1028
+ var t = Xe(), n = Z.child(t), r = Z.child(n, !0);
960
1029
  Z.reset(n), Z.reset(t), Z.template_effect(() => Z.set_text(r, Z.get(p).loadingYourOrder || "Loading your order...")), Z.append(e, t);
961
1030
  }, Y = (e) => {
962
- Be(e, {
1031
+ Ge(e, {
963
1032
  get data() {
964
1033
  return Z.get(v);
965
1034
  },
@@ -978,8 +1047,8 @@ function Ke(e, t) {
978
1047
  });
979
1048
  };
980
1049
  Z.if(G, (e) => {
981
- Z.get(M) || Z.get(te) || Z.get(U) ? e(K) : Z.get(E) ? e(q, 1) : Z.get(D) || !Z.get(v) ? e(J, 2) : e(Y, -1);
1050
+ Z.get(j) || Z.get(F) || Z.get(P) ? e(K) : Z.get(E) ? e(q, 1) : Z.get(D) || !Z.get(v) ? e(J, 2) : e(Y, -1);
982
1051
  }), Z.append(e, W), Z.pop();
983
1052
  }
984
1053
  //#endregion
985
- export { Ke as default };
1054
+ export { Ze as default };