@getmicdrop/venue-calendar 4.3.122 → 4.3.124

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 (137) hide show
  1. package/dist/{AddOnCard-BkEFPzAX.js → AddOnCard-BCakRkN0.js} +18 -18
  2. package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-B6vERrBh.js} +1 -1
  3. package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CInLJaAM.js} +1 -1
  4. package/dist/{Calendar-hxcQBkTF.js → Calendar-DV_SrEdT.js} +131 -150
  5. package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cx60F-de.js} +968 -966
  6. package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-BA9OTu6n.js} +1 -1
  7. package/dist/{CartView-CQZw_kwm.js → CartView-DXL2fN6s.js} +279 -276
  8. package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-CsHdBvm7.js} +1 -1
  9. package/dist/{Checkout-Bsx9d4qD.js → Checkout-BDogQG64.js} +378 -376
  10. package/dist/Checkout-puHwDIls.js +1934 -0
  11. package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-KkahlL47.js} +5 -5
  12. package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-CfmGVqjm.js} +1 -1
  13. package/dist/ChevronRightOutline-CiG8UHni.js +23 -0
  14. package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-0KKo8fB2.js} +1 -1
  15. package/dist/{CollectionView-DXkBRGeQ.js → CollectionView-COd_e_aK.js} +6 -6
  16. package/dist/{Event-CmD84Ni8.js → Event-BYhY0nEy.js} +604 -518
  17. package/dist/EventCard-am-bIial.js +175 -0
  18. package/dist/{EventPage-4ToDFEaL.js → EventPage-DOiyzTGz.js} +289 -265
  19. package/dist/{Input-BXZmvQ0p.js → Input-CUn5WW7v.js} +1 -1
  20. package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-MUNzCw0b.js} +1 -1
  21. package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-uLRaGMSt.js} +1 -1
  22. package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-5l-M5ykF.js} +1 -1
  23. package/dist/{RecommendationsRail-CrBSsbBD.js → RecommendationsRail-ShRQ7JzA.js} +69 -66
  24. package/dist/{ScarcityBadge-BL4shc2w.js → ScarcityBadge-BvLoTIiM.js} +6 -6
  25. package/dist/{SeriesPage-Dt-T6mco.js → SeriesPage-DMYXn2vA.js} +2 -2
  26. package/dist/{Spinner-B2rdbspc.js → Spinner-CwCn-yPI.js} +1 -1
  27. package/dist/{Success-BTm0jRAO.js → Success-BP76tviw.js} +175 -172
  28. package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CUfTUPrP.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-BjqniKb9.js → ViewTicketsEmbed-DnMqRwJI.js} +17 -16
  30. package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-BVUWnzFt.js} +1 -1
  31. package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-CBHdMLyJ.js} +1 -1
  32. package/dist/adapter-BaqXgSqI.js +164 -0
  33. package/dist/api-BUAptAYH.js +489 -0
  34. package/dist/checkoutState-DKdzYK3y.js +198 -0
  35. package/dist/client-BxgiVv8K.js +262 -0
  36. package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
  37. package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-BaAhnhZ9.js} +1 -1
  38. package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-BCjQmoDN.js} +1 -1
  39. package/dist/cta-BE_N5pBc.js +116 -0
  40. package/dist/{datetime-BnKG6Hjm.js → datetime-BetkhP3Y.js} +47 -47
  41. package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
  42. package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
  43. package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-D7c3DLP3.js} +378 -401
  44. package/dist/{defaults-CcPpWiyw.js → defaults-QFkzo2Vg.js} +6 -6
  45. package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
  46. package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
  47. package/dist/{event-DfqUhl5j.js → event-DFyH3dNo.js} +1 -1
  48. package/dist/{event-transform-DJYPMj8I.js → event-transform-za8lXql7.js} +18 -18
  49. package/dist/{eventStatusStream-DXyc5Eng.js → eventStatusStream-CaDLn9GX.js} +1 -1
  50. package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
  51. package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
  52. package/dist/{href-CfWGAmkP.js → href--Xjr4Dsb.js} +3 -3
  53. package/dist/i18n-Bd9CN9cj.js +497 -0
  54. package/dist/i18n-Cwq8IQ_c.js +28 -0
  55. package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
  56. package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
  57. package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
  58. package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
  59. package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
  60. package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
  61. package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
  62. package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
  63. package/dist/locales/{4.3.122 → 4.3.124}/flow/de.js +1 -1
  64. package/dist/locales/{4.3.122 → 4.3.124}/flow/es.js +1 -1
  65. package/dist/locales/{4.3.122 → 4.3.124}/flow/fr.js +1 -1
  66. package/dist/locales/{4.3.122 → 4.3.124}/flow/id.js +1 -1
  67. package/dist/locales/{4.3.122 → 4.3.124}/flow/it.js +1 -1
  68. package/dist/locales/{4.3.122 → 4.3.124}/flow/ja.js +1 -1
  69. package/dist/locales/{4.3.122 → 4.3.124}/flow/ko.js +1 -1
  70. package/dist/locales/{4.3.122 → 4.3.124}/flow/nl.js +1 -1
  71. package/dist/locales/{4.3.122 → 4.3.124}/flow/pl.js +1 -1
  72. package/dist/locales/{4.3.122 → 4.3.124}/flow/pt-br.js +1 -1
  73. package/dist/locales/{4.3.122 → 4.3.124}/flow/tr.js +1 -1
  74. package/dist/locales/{4.3.122 → 4.3.124}/flow/zh.js +1 -1
  75. package/dist/locales/4.3.124/main/de.js +1 -0
  76. package/dist/locales/4.3.124/main/es.js +1 -0
  77. package/dist/locales/4.3.124/main/fr.js +1 -0
  78. package/dist/locales/4.3.124/main/id.js +1 -0
  79. package/dist/locales/4.3.124/main/it.js +1 -0
  80. package/dist/locales/4.3.124/main/ja.js +1 -0
  81. package/dist/locales/4.3.124/main/ko.js +1 -0
  82. package/dist/locales/4.3.124/main/nl.js +1 -0
  83. package/dist/locales/4.3.124/main/pl.js +1 -0
  84. package/dist/locales/4.3.124/main/pt-br.js +1 -0
  85. package/dist/locales/4.3.124/main/tr.js +1 -0
  86. package/dist/locales/4.3.124/main/zh.js +1 -0
  87. package/dist/look-island.svelte-QW0yvxsq.js +1278 -0
  88. package/dist/looks/4.3.124/looks.js +242 -0
  89. package/dist/looks/4.3.124/micdrop-wordmark-BYMG6vLR.svg +1 -0
  90. package/dist/looks/4.3.124/microphone-Ccv4r-kd.webp +0 -0
  91. package/dist/looks/4.3.124/superuser-CZF6a5gO.webp +0 -0
  92. package/dist/looks/4.3.124/treasury-DUE7lZzT.webp +0 -0
  93. package/dist/looks/4.3.124/user-image-yuS4errP.svg +9 -0
  94. package/dist/navigation-BYEhsDX4.js +176 -0
  95. package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
  96. package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
  97. package/dist/normalizers-CqGXhPZo.js +44 -0
  98. package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CL8tIxoM.js} +4 -0
  99. package/dist/{pixels-CFwOgA2N.js → pixels-CV8Zw_Kn.js} +1 -1
  100. package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
  101. package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
  102. package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
  103. package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
  104. package/dist/{serverTotals-B8SJCzxE.js → serverTotals-DGQ7a35U.js} +1 -1
  105. package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DTl2gdkG.js} +3 -3
  106. package/dist/to-event-card-props-CklRkTpt.js +205 -0
  107. package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
  108. package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
  109. package/dist/types/index.d.ts +21 -4
  110. package/dist/utils-CowZZZtC.js +219 -0
  111. package/dist/venue-calendar.css +1 -1
  112. package/dist/venue-calendar.es.js +1550 -1836
  113. package/dist/venue-calendar.iife.js +35 -35
  114. package/dist/venue-calendar.umd.js +183 -54
  115. package/dist/widget-key-context-DX9WCLIM.js +744 -0
  116. package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
  117. package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
  118. package/package.json +4 -4
  119. package/dist/Checkout-CN1o3v9L.js +0 -1933
  120. package/dist/api-0hNBT78w.js +0 -654
  121. package/dist/i18n-CIpUYDU6.js +0 -28
  122. package/dist/i18n-DyjdmQSR.js +0 -608
  123. package/dist/locales/4.3.122/main/de.js +0 -1
  124. package/dist/locales/4.3.122/main/es.js +0 -1
  125. package/dist/locales/4.3.122/main/fr.js +0 -1
  126. package/dist/locales/4.3.122/main/id.js +0 -1
  127. package/dist/locales/4.3.122/main/it.js +0 -1
  128. package/dist/locales/4.3.122/main/ja.js +0 -1
  129. package/dist/locales/4.3.122/main/ko.js +0 -1
  130. package/dist/locales/4.3.122/main/nl.js +0 -1
  131. package/dist/locales/4.3.122/main/pl.js +0 -1
  132. package/dist/locales/4.3.122/main/pt-br.js +0 -1
  133. package/dist/locales/4.3.122/main/tr.js +0 -1
  134. package/dist/locales/4.3.122/main/zh.js +0 -1
  135. package/dist/to-event-card-props-DYIfPN8e.js +0 -379
  136. package/dist/utils-BzgFQSTg.js +0 -412
  137. package/dist/widget-key-context-CmI7Qdtf.js +0 -991
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/TagIcon.svelte
@@ -1,13 +1,14 @@
1
1
  import { m as e, v as t } from "./sizing-B7ixYndz.js";
2
- import { V as n, i as r, n as i, t as a } from "./defaultLabels-BbNEEsF7.js";
2
+ import { L as n, i as r, n as i, t as a } from "./defaultLabels-D7c3DLP3.js";
3
3
  import { t as o } from "./Button-VUB2WJ88.js";
4
- import { I as s, n as c, s as l } from "./widget-key-context-CmI7Qdtf.js";
5
- import { n as u, t as d } from "./Heading-vOVPxhJF.js";
4
+ import { n as s, s as c } from "./widget-key-context-DX9WCLIM.js";
5
+ import { n as l, t as u } from "./Heading-vOVPxhJF.js";
6
+ import { n as d } from "./client-BxgiVv8K.js";
6
7
  import { t as f } from "./Textarea-Cymhixzd.js";
7
- import { t as p } from "./Spinner-B2rdbspc.js";
8
+ import { t as p } from "./Spinner-CwCn-yPI.js";
8
9
  import { t as m } from "./Text-CqjLjIF8.js";
9
- import { t as h } from "./i18n-CIpUYDU6.js";
10
- import { a as g, i as _, n as v, o as y, r as b, s as x, t as ee } from "./defaults-CcPpWiyw.js";
10
+ import { t as h } from "./i18n-Cwq8IQ_c.js";
11
+ import { a as g, i as _, n as v, o as y, r as b, s as x, t as ee } from "./defaults-QFkzo2Vg.js";
11
12
  import "svelte/internal/disclose-version";
12
13
  import * as S from "svelte/internal/client";
13
14
  import { SvelteMap as te } from "svelte/reactivity";
@@ -129,7 +130,7 @@ var ae = {
129
130
  }, oe = S.from_html("<span class=\"mx-1 text-white/30\">&middot;</span>"), se = S.from_html("<!> ", 1), ce = S.from_html(" <!>", 1), le = S.from_html("<div class=\"flex h-52 w-52 items-center justify-center bg-bg-secondary\"><!></div>"), ue = S.from_html("<div class=\"pointer-events-none absolute inset-0 flex items-center justify-center\" aria-hidden=\"true\"><span class=\"rounded-md border border-status-error-border bg-card/90 px-3 py-1 type-label uppercase tracking-widest text-status-error-text\"> </span></div>"), de = S.from_html("<div class=\"mt-3 flex flex-col items-center gap-1.5\"><!> <p class=\"type-caption text-center tone-muted\"> </p></div>"), fe = S.from_html("<div class=\"relative flex justify-center\"><!> <!></div> <div class=\"mt-4 flex flex-col items-center gap-0.5\"><p> </p> <p class=\"type-label tone-secondary\"> </p> <p class=\"type-caption font-mono tone-muted\"> </p></div> <!>", 1), pe = S.from_html("<div class=\"mt-5 flex items-center justify-center gap-4\"><!> <!> <!></div> <div class=\"mt-2 text-center\"><!></div>", 1), me = S.from_svg("<svg aria-hidden=\"true\" class=\"h-3.5 w-3.5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3\"></path></svg> ", 1), he = S.from_html("<p aria-live=\"polite\"> </p>"), ge = S.from_html("<p class=\"type-caption text-status-error-text\" aria-live=\"polite\"> </p>"), _e = S.from_html("<div class=\"w-full space-y-2\"><label for=\"refund-reason\"> </label> <!> <!> <div class=\"flex items-center justify-center gap-3\"><!> <!></div></div>"), ve = S.from_html("<div class=\"fixed inset-0 z-base bg-black\"><!></div> <div class=\"relative z-sticky flex min-h-screen flex-col\"><header class=\"px-6 pb-4 pt-12 text-center\"><!> <div class=\"mt-1\"><!></div> <!> <div class=\"mt-1\"><!></div></header> <div class=\"flex flex-1 flex-col items-center justify-center px-4 py-4\"><div class=\"w-full max-w-xs overflow-hidden\" role=\"region\" aria-roledescription=\"carousel\"><!> <!></div></div> <div class=\"mt-auto bg-black/90 px-6 pb-10 pt-6 backdrop-blur-md\"><div class=\"mx-auto max-w-md space-y-5\"><div class=\"flex flex-col items-center gap-2\"><div class=\"flex items-center justify-center gap-3\"><!> <!></div> <p aria-live=\"polite\"> </p></div> <div class=\"flex flex-col items-center gap-3\"><!> <p> <a rel=\"external\" class=\"tone-muted underline underline-offset-2 transition-colors hover:text-white\">Apple</a> <span class=\"mx-1 tone-secondary\">&middot;</span> <a class=\"tone-muted underline underline-offset-2 transition-colors hover:text-white\" target=\"_blank\" rel=\"external noopener noreferrer\">Google</a> <span class=\"mx-1 tone-secondary\">&middot;</span> <a class=\"tone-muted underline underline-offset-2 transition-colors hover:text-white\" target=\"_blank\" rel=\"external noopener noreferrer\">Outlook</a></p></div> <div class=\"flex flex-col items-center gap-1\"><p> </p> <!></div> <div class=\"flex flex-col items-center gap-2 border-t border-white/10 pt-5\"><!></div> <div class=\"flex flex-col items-center gap-1\"><p> </p> <p> <a class=\"tone-muted underline underline-offset-2 transition-colors hover:tone-muted\"> </a></p></div></div></div></div>", 1);
130
131
  function D(t, i) {
131
132
  S.push(i, !0);
132
- let s = c(), h = S.prop(i, "data", 3, ae), _ = S.prop(i, "labels", 3, a), C = S.state(0), w = S.derived(() => h().tickets[S.get(C)]), T = S.state(0), E = S.state(0), D = S.state(0), O = S.state(!1), k = S.state(!1), A = S.state(""), j = S.state(!1), M = S.derived(() => ee(h().event, h().venue, h().order.orderNumber)), ye = S.derived(() => v(h().venue)), be = S.derived(() => b(h().order.orderUUID)), xe = S.derived(() => g(h().event.startDateTime, h().event.timezone)), Se = S.derived(() => y(h().event.startDateTime, h().event.timezone)), N = S.derived(() => h().tickets.length), P = S.derived(() => S.get(N) > 1), Ce = S.derived(() => h().event.imageUrl), F = S.derived(() => S.get(w).refunded === !0), we = S.derived(() => !S.get(F) && S.get(w).checkedIn === !0), Te = S.derived(() => S.get(F) ? ` — ${_().qrRefundedSuffix || "refunded, not valid for entry"}` : S.get(we) ? ` — ${_().qrCheckedInSuffix || "already checked in"}` : ""), I = S.state(S.proxy(/* @__PURE__ */ new Map()));
133
+ let d = s(), h = S.prop(i, "data", 3, ae), _ = S.prop(i, "labels", 3, a), C = S.state(0), w = S.derived(() => h().tickets[S.get(C)]), T = S.state(0), E = S.state(0), D = S.state(0), O = S.state(!1), k = S.state(!1), A = S.state(""), j = S.state(!1), M = S.derived(() => ee(h().event, h().venue, h().order.orderNumber)), ye = S.derived(() => v(h().venue)), be = S.derived(() => b(h().order.orderUUID)), xe = S.derived(() => g(h().event.startDateTime, h().event.timezone)), Se = S.derived(() => y(h().event.startDateTime, h().event.timezone)), N = S.derived(() => h().tickets.length), P = S.derived(() => S.get(N) > 1), Ce = S.derived(() => h().event.imageUrl), F = S.derived(() => S.get(w).refunded === !0), we = S.derived(() => !S.get(F) && S.get(w).checkedIn === !0), Te = S.derived(() => S.get(F) ? ` — ${_().qrRefundedSuffix || "refunded, not valid for entry"}` : S.get(we) ? ` — ${_().qrCheckedInSuffix || "already checked in"}` : ""), I = S.state(S.proxy(/* @__PURE__ */ new Map()));
133
134
  S.user_effect(() => {
134
135
  for (let e of h().tickets) S.get(I).has(e.id) || x(e.qrCodeData, 220).then((t) => {
135
136
  S.get(I).set(e.id, t), S.set(I, new te(S.get(I)), !0);
@@ -197,7 +198,7 @@ function D(t, i) {
197
198
  async function Fe() {
198
199
  if (S.get(B)) return;
199
200
  S.set(B, !0), S.set(V, "");
200
- let e = await l(h().order.orderUUID, S.get(z).trim(), { widgetKey: s });
201
+ let e = await c(h().order.orderUUID, S.get(z).trim(), { widgetKey: d });
201
202
  S.set(B, !1), e.success ? (S.set(Pe, !0), S.set(R, !1)) : S.set(V, e.error || _().somethingWentWrong || "Something went wrong. Please try again in a moment", !0);
202
203
  }
203
204
  var Ie = ve(), H = S.first_child(Ie), Le = S.child(H), Re = (e) => {
@@ -214,7 +215,7 @@ function D(t, i) {
214
215
  S.get(Ce) && e(Re);
215
216
  }), S.reset(H);
216
217
  var ze = S.sibling(H, 2), U = S.child(ze), Be = S.child(U);
217
- d(Be, {
218
+ u(Be, {
218
219
  level: 1,
219
220
  size: "2xl",
220
221
  weight: "bold",
@@ -280,7 +281,7 @@ function D(t, i) {
280
281
  $$slots: { default: !0 }
281
282
  }), S.reset(Ue), S.reset(U);
282
283
  var G = S.sibling(U, 2), K = S.child(G), Ge = S.child(K);
283
- u(Ge, {
284
+ l(Ge, {
284
285
  get class() {
285
286
  return `qr-card !bg-card rounded-2xl shadow-2xl ${S.get(A) ?? ""}`;
286
287
  },
@@ -614,7 +615,7 @@ S.delegate([
614
615
  var O = S.from_html("<div class=\"flex min-h-screen items-center justify-center bg-bg-quaternary\"><!></div>"), k = S.from_html("<div class=\"flex min-h-screen flex-col items-center justify-center bg-bg-quaternary px-6 text-center\"><p class=\"type-subheading text-white\"> </p> <button type=\"button\" class=\"mt-4 rounded-lg bg-card/10 px-4 py-2 type-body text-white/80 transition-colors hover:bg-card/20\"> </button></div>");
615
616
  function A(e, t) {
616
617
  S.push(t, !0);
617
- let n = c(), r = S.prop(t, "locale", 3, void 0), i = S.prop(t, "labels", 19, () => ({})), a = S.derived(() => h(r(), i())), o = S.state(null), l = S.state(null), u = S.state(null), d = S.derived(() => S.get(l) === "notFound" ? S.get(a).viewTicketsOrderNotFound || "Order not found. Please check the link in your email" : S.get(l) === "loadFailed" ? S.get(u) ?? (S.get(a).viewTicketsLoadFailed || "Unable to load your tickets. Please try again") : null), f = S.state(!0), m = 0;
618
+ let n = s(), r = S.prop(t, "locale", 3, void 0), i = S.prop(t, "labels", 19, () => ({})), a = S.derived(() => h(r(), i())), o = S.state(null), c = S.state(null), l = S.state(null), u = S.derived(() => S.get(c) === "notFound" ? S.get(a).viewTicketsOrderNotFound || "Order not found. Please check the link in your email" : S.get(c) === "loadFailed" ? S.get(l) ?? (S.get(a).viewTicketsLoadFailed || "Unable to load your tickets. Please try again") : null), f = S.state(!0), m = 0;
618
619
  S.user_effect(() => {
619
620
  g(t.orderUUID);
620
621
  });
@@ -624,9 +625,9 @@ function A(e, t) {
624
625
  S.set(o, ae, !0), S.set(f, !1);
625
626
  return;
626
627
  }
627
- S.set(f, !0), S.set(l, null), S.set(u, null);
628
- let r = await s(_(e), { widgetKey: n });
629
- t === m && (r.success ? S.set(o, r.data ?? null, !0) : r.statusCode === 404 ? S.set(l, "notFound") : (S.set(l, "loadFailed"), S.set(u, r.error ?? null, !0)), S.set(f, !1));
628
+ S.set(f, !0), S.set(c, null), S.set(l, null);
629
+ let r = await d(_(e), { widgetKey: n });
630
+ t === m && (r.success ? S.set(o, r.data ?? null, !0) : r.statusCode === 404 ? S.set(c, "notFound") : (S.set(c, "loadFailed"), S.set(l, r.error ?? null, !0)), S.set(f, !1));
630
631
  }
631
632
  var v = S.comment(), y = S.first_child(v), b = (e) => {
632
633
  var t = O(), n = S.child(t);
@@ -639,7 +640,7 @@ function A(e, t) {
639
640
  S.reset(r);
640
641
  var o = S.sibling(r, 2), s = S.child(o, !0);
641
642
  S.reset(o), S.reset(n), S.template_effect(() => {
642
- S.set_text(i, S.get(d)), S.set_text(s, S.get(a).networkErrorRetry || "Try again");
643
+ S.set_text(i, S.get(u)), S.set_text(s, S.get(a).networkErrorRetry || "Try again");
643
644
  }), S.delegated("click", o, () => g(t.orderUUID)), S.append(e, n);
644
645
  }, ee = (e) => {
645
646
  D(e, {
@@ -652,7 +653,7 @@ function A(e, t) {
652
653
  });
653
654
  };
654
655
  S.if(y, (e) => {
655
- S.get(f) ? e(b) : S.get(d) ? e(x, 1) : S.get(o) && e(ee, 2);
656
+ S.get(f) ? e(b) : S.get(u) ? e(x, 1) : S.get(o) && e(ee, 2);
656
657
  }), S.append(e, v), S.pop();
657
658
  }
658
659
  S.delegate(["click"]);
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/AddIcon.svelte
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-BetkhP3Y.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/WarningTriIcon.svelte
@@ -0,0 +1,164 @@
1
+ import { m as e, v as t } from "./sizing-B7ixYndz.js";
2
+ import { n, t as r } from "./ChevronRightOutline-CiG8UHni.js";
3
+ import { B as i, J as a } from "./datetime-BetkhP3Y.js";
4
+ import { r as o } from "./Button-VUB2WJ88.js";
5
+ import "svelte/internal/disclose-version";
6
+ import * as s from "svelte/internal/client";
7
+ //#region node_modules/@getmicdrop/svelte-components/dist/richtext/index.js
8
+ var c = /<\/(?:p|div|h[1-6]|li|ul|ol|blockquote|tr)>/gi, l = /<br\s*\/?>/gi, u = /<[^>]*>/g, d = {
9
+ "&amp;": "&",
10
+ "&lt;": "<",
11
+ "&gt;": ">",
12
+ "&quot;": "\"",
13
+ "&#39;": "'",
14
+ "&apos;": "'",
15
+ "&nbsp;": " "
16
+ };
17
+ function f(e) {
18
+ return e.replace(/&#x([0-9a-f]+);/gi, (e, t) => p(parseInt(t, 16))).replace(/&#(\d+);/g, (e, t) => p(Number(t))).replace(/&[a-z0-9]+;/gi, (e) => d[e.toLowerCase()] ?? e);
19
+ }
20
+ function p(e) {
21
+ return Number.isFinite(e) && e > 0 && e <= 1114111 ? String.fromCodePoint(e) : "";
22
+ }
23
+ function m(e, t) {
24
+ if (!e) return "";
25
+ let n = String(e).replace(l, " ").replace(c, " ").replace(u, "");
26
+ if (n = f(n).replace(/\s+/g, " ").trim(), t && t > 0 && n.length > t) {
27
+ let e = n.slice(0, t), r = e.lastIndexOf(" ");
28
+ n = (r > 40 ? e.slice(0, r) : e).trimEnd() + "…";
29
+ }
30
+ return n;
31
+ }
32
+ //#endregion
33
+ //#region node_modules/@getmicdrop/svelte-components/dist/calendar/MonthSwitcher/MonthSwitcher.svelte
34
+ var h = s.from_html("<header class=\"w-full flex items-center justify-between select-none\"><h2> </h2> <div class=\"flex items-center gap-2\"><button type=\"button\"><!></button> <button type=\"button\"> </button> <button type=\"button\"><!></button></div></header>");
35
+ function g(c, l) {
36
+ s.push(l, !0);
37
+ let u = {
38
+ today: "Today",
39
+ previousMonth: "Previous month",
40
+ goToCurrentMonth: "Go to current month",
41
+ nextMonth: "Next month"
42
+ }, d = o(), f = d.getMonth(), p = d.getFullYear(), m = s.prop(l, "currentYear", 3, p), g = s.prop(l, "currentMonth", 3, f), _ = s.prop(l, "handleNext", 3, () => {}), v = s.prop(l, "handlePrev", 3, () => {}), y = s.prop(l, "handleToday", 3, () => {}), b = s.prop(l, "disablePastNavigation", 3, !0), x = s.prop(l, "labels", 19, () => ({})), S = s.derived(() => t(u, x())), C = s.derived(() => m() === p && g() === f), w = s.derived(() => !b() || !s.get(C)), T = s.state(!1), E = s.state(!1), D = s.state(!1);
43
+ function O(e = "light") {
44
+ if (!(typeof window > "u")) {
45
+ if (window.webkit?.messageHandlers?.haptic) {
46
+ window.webkit.messageHandlers.haptic.postMessage(e);
47
+ return;
48
+ }
49
+ if (window.TapticEngine) {
50
+ window.TapticEngine.impact({ style: e });
51
+ return;
52
+ }
53
+ navigator.vibrate && navigator.vibrate(e === "light" ? 10 : 20);
54
+ }
55
+ }
56
+ function k() {
57
+ s.get(w) && (O("light"), v()());
58
+ }
59
+ function A() {
60
+ O("light"), _()();
61
+ }
62
+ function j() {
63
+ O("light"), y()();
64
+ }
65
+ var M = h(), N = s.child(M), P = s.child(N, !0);
66
+ s.reset(N);
67
+ var F = s.sibling(N, 2), I = s.child(F);
68
+ let L;
69
+ var R = s.child(I);
70
+ n(R, { class: "w-5 h-5" }), s.reset(I);
71
+ var z = s.sibling(I, 2);
72
+ let B;
73
+ var V = s.child(z, !0);
74
+ s.reset(z);
75
+ var H = s.sibling(z, 2);
76
+ let U;
77
+ var W = s.child(H);
78
+ r(W, { class: "w-5 h-5" }), s.reset(H), s.reset(F), s.reset(M), s.template_effect((t) => {
79
+ s.set_class(N, 1, s.clsx(e.title)), s.set_text(P, t), L = s.set_class(I, 1, "p-3 -m-1.5 flex items-center justify-center border-0 rounded-full bg-transparent tone-muted cursor-pointer select-none transition-transform duration-instant ease-out hover:bg-muted focus:outline-hidden disabled:opacity-50 disabled:cursor-not-allowed", null, L, {
80
+ "scale-press": s.get(T),
81
+ "bg-muted": s.get(T),
82
+ "tone-primary": s.get(T)
83
+ }), I.disabled = !s.get(w), s.set_attribute(I, "aria-label", s.get(S).previousMonth), B = s.set_class(z, 1, `${e.label} px-3 py-1 border border-stroke-primary rounded-lg bg-transparent cursor-pointer select-none transition-transform duration-instant ease-out hover:bg-brand-primary hover:text-white hover:border-brand-primary focus:outline-hidden disabled:opacity-40 disabled:cursor-not-allowed`, null, B, {
84
+ "scale-press": s.get(D),
85
+ "bg-brand-primary": s.get(D),
86
+ "text-white": s.get(D)
87
+ }), z.disabled = s.get(C), s.set_attribute(z, "aria-label", s.get(S).goToCurrentMonth), s.set_text(V, s.get(S).today), U = s.set_class(H, 1, "p-3 -m-1.5 flex items-center justify-center border-0 rounded-full bg-transparent tone-muted cursor-pointer select-none transition-transform duration-instant ease-out hover:bg-muted focus:outline-hidden", null, U, {
88
+ "scale-press": s.get(E),
89
+ "bg-muted": s.get(E),
90
+ "tone-primary": s.get(E)
91
+ }), s.set_attribute(H, "aria-label", s.get(S).nextMonth);
92
+ }, [() => a(i(m(), g(), 1), { month: "long" })]), s.delegated("click", I, k), s.delegated("touchstart", I, () => s.set(T, !0), void 0, !0), s.delegated("touchend", I, () => s.set(T, !1)), s.event("touchcancel", I, () => s.set(T, !1)), s.delegated("mousedown", I, () => s.set(T, !0)), s.delegated("mouseup", I, () => s.set(T, !1)), s.event("mouseleave", I, () => s.set(T, !1)), s.delegated("click", z, j), s.delegated("touchstart", z, () => s.set(D, !0), void 0, !0), s.delegated("touchend", z, () => s.set(D, !1)), s.event("touchcancel", z, () => s.set(D, !1)), s.delegated("mousedown", z, () => s.set(D, !0)), s.delegated("mouseup", z, () => s.set(D, !1)), s.event("mouseleave", z, () => s.set(D, !1)), s.delegated("click", H, A), s.delegated("touchstart", H, () => s.set(E, !0), void 0, !0), s.delegated("touchend", H, () => s.set(E, !1)), s.event("touchcancel", H, () => s.set(E, !1)), s.delegated("mousedown", H, () => s.set(E, !0)), s.delegated("mouseup", H, () => s.set(E, !1)), s.event("mouseleave", H, () => s.set(E, !1)), s.append(c, M), s.pop();
93
+ }
94
+ s.delegate([
95
+ "click",
96
+ "touchstart",
97
+ "touchend",
98
+ "mousedown",
99
+ "mouseup"
100
+ ]);
101
+ //#endregion
102
+ //#region src/lib/browse-widgets/adapter.ts
103
+ function _(e, t) {
104
+ let n = (e || "").toLowerCase().replace(/\s+/g, "_"), r;
105
+ switch (n) {
106
+ case "on_sale":
107
+ r = "on_sale";
108
+ break;
109
+ case "sold_out":
110
+ case "soldout":
111
+ r = "sold_out";
112
+ break;
113
+ case "coming_soon":
114
+ case "comingsoon":
115
+ r = "coming_soon";
116
+ break;
117
+ case "sales_ended":
118
+ case "salesended":
119
+ r = "sales_ended";
120
+ break;
121
+ case "cancelled":
122
+ case "canceled":
123
+ r = "cancelled";
124
+ break;
125
+ case "postponed":
126
+ r = "postponed";
127
+ break;
128
+ default: r = "on_sale";
129
+ }
130
+ return t && r === "on_sale" ? "sold_out" : r;
131
+ }
132
+ function v(e) {
133
+ if (!Array.isArray(e)) return;
134
+ let t = e.map((e) => typeof e?.displayName == "string" ? e.displayName.trim() : "").filter(Boolean);
135
+ return t.length > 0 ? t : void 0;
136
+ }
137
+ function y(e) {
138
+ return Array.isArray(e) ? e.filter((e) => !!e.id).map((e) => ({
139
+ eventID: e.id,
140
+ name: e.name,
141
+ date: e.date,
142
+ startDateTime: e.startDateTime || "",
143
+ endDateTime: e.endDateTime || void 0,
144
+ imageUrl: e.image,
145
+ status: _(e.status, e.isSoldOut || !1),
146
+ eventSeriesId: e.eventSeriesId || void 0,
147
+ ticketsRemaining: e.ticketsRemaining,
148
+ ticketsTotal: e.ticketsTotal,
149
+ description: e.description || void 0,
150
+ timeZone: e.timeZone || e.timezone || void 0,
151
+ slug: e.slug || void 0,
152
+ venueName: e.venueName || void 0,
153
+ venueAddress: e.venueAddress || void 0,
154
+ stageName: e.stageName || void 0,
155
+ performerNames: v(e.publicPerformers),
156
+ doorsOpenTime: e.doorsOpenTime || void 0,
157
+ displayDoorsTime: e.displayDoorsTime,
158
+ displayStartTime: e.displayStartTime,
159
+ displayAgeRestriction: e.displayAgeRestriction,
160
+ ageRestriction: e.ageRestriction ?? void 0
161
+ })) : [];
162
+ }
163
+ //#endregion
164
+ export { g as n, m as r, y as t };