@getmicdrop/venue-calendar 4.3.8 → 4.3.10

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 (124) hide show
  1. package/dist/{ArrowLeftIcon-DvIbVly-.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
  2. package/dist/{Badge-vsC_L__r.js → Badge-DCHGGod2.js} +8 -10
  3. package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-vmWb6wKc.js} +117 -63
  5. package/dist/{Calendar-CPD8dS_i.js → Calendar-D11ctjrD.js} +307 -282
  6. package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-DKhpjxnV.js} +6510 -6504
  7. package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-C8-UVSje.js} +1 -1
  8. package/dist/{CartView-DVugxQ3D.js → CartView-IqOekmQg.js} +814 -814
  9. package/dist/Checkout-ByQsDGg3.js +1005 -0
  10. package/dist/Checkout-C0lQ0AwV.js +1846 -0
  11. package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-B0E9KnHc.js} +15 -15
  12. package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
  13. package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dk9q65sX.js} +1 -1
  14. package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-CyR73vpD.js} +1 -1
  15. package/dist/{CollectionView-C55yLTPR.js → CollectionView-B-CNyf9Z.js} +17 -17
  16. package/dist/CropImage-4WcoXkHt.js +537 -0
  17. package/dist/{Event-ClxgC-gP.js → Event-B4x0sGkc.js} +1142 -870
  18. package/dist/{EventPage-ziJYmBIZ.js → EventPage--xwhM503.js} +244 -236
  19. package/dist/{Heading-D7TEStkb.js → Heading-Br1Yqnvg.js} +3 -4
  20. package/dist/{Image-CjM21MQP.js → Image-M5RaWbKU.js} +12 -13
  21. package/dist/{Input-CIRGYHTC.js → Input-Bk8lP6TX.js} +53 -53
  22. package/dist/{MailIcon-iy7T12Hz.js → MailIcon-Ic2SruY-.js} +1 -1
  23. package/dist/{Modal-wQSo-C1f.js → Modal-CLeZUJ_i.js} +2 -2
  24. package/dist/ModalFooter-CSoG_uic.js +470 -0
  25. package/dist/ModalHeader-DpKxDJT_.js +18 -0
  26. package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-BHj_lokg.js} +2 -2
  27. package/dist/RecommendationsRail-8AVZ0aLE.js +445 -0
  28. package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-DakRfDx4.js} +19 -19
  29. package/dist/{SeriesPage-doki-1XH.js → SeriesPage-BaOeDNb6.js} +5 -5
  30. package/dist/{Spinner-Dua8H4Z1.js → Spinner-a1KCKWxZ.js} +2 -2
  31. package/dist/{Success-DZOYl6St.js → Success-BtUgc4H7.js} +290 -257
  32. package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BiYfs6T7.js} +1 -1
  33. package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-Lxg7n02-.js} +109 -109
  34. package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
  35. package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-BzI-tSDG.js} +1 -1
  36. package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
  37. package/dist/api/api.cjs +1 -1
  38. package/dist/api/api.mjs +239 -237
  39. package/dist/{api-QG8CoGcM.js → api-C1M2t6HU.js} +114 -112
  40. package/dist/{browser-viCaCwoW.js → browser-DrfMvEfn.js} +7 -7
  41. package/dist/{labels-0dEJldQX.js → constants-YG4UeBdR.js} +17 -4
  42. package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-3SejVveg.js} +1 -1
  43. package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
  44. package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CXCsTwix.js} +331 -356
  45. package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
  46. package/dist/{event-CyPf2sZS.js → event-DAjJ01GM.js} +1 -1
  47. package/dist/{event-transform-DQmD2u_S.js → event-transform-DNqGTQhp.js} +54 -53
  48. package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-CLLN-Rvf.js} +2 -2
  49. package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
  50. package/dist/{href-CbfSre4l.js → href-DuxMJt4c.js} +3 -3
  51. package/dist/{i18n-CSftOFAS.js → i18n-Ct9Bo-Vp.js} +179 -129
  52. package/dist/{i18n-D54CGXK2.js → i18n-KdVjJUV5.js} +2 -2
  53. package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
  54. package/dist/imageOptimizer-Ba8P7ZEJ.js +140 -0
  55. package/dist/{it-CK6ravjO.js → it-C580sMYp.js} +14 -1
  56. package/dist/{ja-COO0Ibrr.js → ja-DLki4zXU.js} +14 -1
  57. package/dist/{ko-D8YqNrZs.js → ko-BUcfb1Gi.js} +14 -1
  58. package/dist/locales/4.3.10/flow/de.js +1 -0
  59. package/dist/locales/4.3.10/flow/es.js +1 -0
  60. package/dist/locales/4.3.10/flow/fr.js +1 -0
  61. package/dist/locales/4.3.10/flow/id.js +1 -0
  62. package/dist/locales/4.3.10/flow/it.js +1 -0
  63. package/dist/locales/4.3.10/flow/ja.js +1 -0
  64. package/dist/locales/4.3.10/flow/ko.js +1 -0
  65. package/dist/locales/4.3.10/flow/nl.js +1 -0
  66. package/dist/locales/4.3.10/flow/pl.js +1 -0
  67. package/dist/locales/4.3.10/flow/pt-br.js +1 -0
  68. package/dist/locales/4.3.10/flow/tr.js +1 -0
  69. package/dist/locales/4.3.10/flow/zh.js +1 -0
  70. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  71. package/dist/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
  72. package/dist/order-totals-DyVkHVqG.js +151 -0
  73. package/dist/{orders-Bat2EL64.js → orders-rH0WZYOW.js} +18 -18
  74. package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-BFrVEwkQ.js} +1 -1
  75. package/dist/{pixels-Ha6vOCaS.js → pixels-mdd6C3Bk.js} +3 -3
  76. package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
  77. package/dist/{promo-DWzTN7u9.js → promo-CTRn_F4t.js} +1 -1
  78. package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
  79. package/dist/{constants-q-jR2-bz.js → scarcity-Ccj5RlrR.js} +2 -5
  80. package/dist/{serverTotals-BBlkfqMf.js → serverTotals-Dk3z9sIA.js} +1 -1
  81. package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-8-egiV5-.js} +1 -1
  82. package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-a4k6D100.js} +49 -49
  83. package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
  84. package/dist/{utils-ChgG4jiQ.js → utils-BseYYrbn.js} +82 -78
  85. package/dist/venue-calendar.css +1 -1
  86. package/dist/venue-calendar.es.js +994 -996
  87. package/dist/venue-calendar.iife.js +56 -57
  88. package/dist/venue-calendar.umd.js +51 -52
  89. package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
  90. package/package.json +2 -2
  91. package/dist/Checkout-D7KSikhw.js +0 -980
  92. package/dist/Checkout-Ddcw2_8F.js +0 -1846
  93. package/dist/CropImage-CxLcNArr.js +0 -445
  94. package/dist/ModalFooter-DlRXuHQz.js +0 -301
  95. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  96. package/dist/keyboard-fiZFqeNA.js +0 -29
  97. package/dist/locales/4.3.8/flow/de.js +0 -1
  98. package/dist/locales/4.3.8/flow/es.js +0 -1
  99. package/dist/locales/4.3.8/flow/fr.js +0 -1
  100. package/dist/locales/4.3.8/flow/id.js +0 -1
  101. package/dist/locales/4.3.8/flow/it.js +0 -1
  102. package/dist/locales/4.3.8/flow/ja.js +0 -1
  103. package/dist/locales/4.3.8/flow/ko.js +0 -1
  104. package/dist/locales/4.3.8/flow/nl.js +0 -1
  105. package/dist/locales/4.3.8/flow/pl.js +0 -1
  106. package/dist/locales/4.3.8/flow/pt-br.js +0 -1
  107. package/dist/locales/4.3.8/flow/tr.js +0 -1
  108. package/dist/locales/4.3.8/flow/zh.js +0 -1
  109. package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
  110. package/dist/order-totals-Ci_p6SG6.js +0 -131
  111. package/dist/portal-DqxEuE-7.js +0 -166
  112. package/dist/shareCopyFeedback.svelte-CW0Yy9Oz.js +0 -330
  113. /package/dist/locales/{4.3.8 → 4.3.10}/main/de.js +0 -0
  114. /package/dist/locales/{4.3.8 → 4.3.10}/main/es.js +0 -0
  115. /package/dist/locales/{4.3.8 → 4.3.10}/main/fr.js +0 -0
  116. /package/dist/locales/{4.3.8 → 4.3.10}/main/id.js +0 -0
  117. /package/dist/locales/{4.3.8 → 4.3.10}/main/it.js +0 -0
  118. /package/dist/locales/{4.3.8 → 4.3.10}/main/ja.js +0 -0
  119. /package/dist/locales/{4.3.8 → 4.3.10}/main/ko.js +0 -0
  120. /package/dist/locales/{4.3.8 → 4.3.10}/main/nl.js +0 -0
  121. /package/dist/locales/{4.3.8 → 4.3.10}/main/pl.js +0 -0
  122. /package/dist/locales/{4.3.8 → 4.3.10}/main/pt-br.js +0 -0
  123. /package/dist/locales/{4.3.8 → 4.3.10}/main/tr.js +0 -0
  124. /package/dist/locales/{4.3.8 → 4.3.10}/main/zh.js +0 -0
@@ -1,330 +0,0 @@
1
- import { D as e, b as t, h as n, x as r } from "./defaultLabels-BdLGAc3u.js";
2
- import { J as i, a, m as o } from "./constants-q-jR2-bz.js";
3
- import { t as s } from "./copyToClipboard-C7KGa7gG.js";
4
- import { r as c, t as l } from "./event-CyPf2sZS.js";
5
- import { t as u } from "./venue-CBos8YTa.js";
6
- import "svelte/internal/disclose-version";
7
- import * as d from "svelte/internal/client";
8
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
9
- var f = d.from_svg("<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"></path>"), p = d.from_svg("<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), m = d.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
10
- function h(e, t) {
11
- d.push(t, !0);
12
- let n = d.prop(t, "size", 3, "24"), r = d.prop(t, "color", 3, "currentColor"), a = d.prop(t, "class", 3, ""), o = i(), s = d.derived(() => t.weight ?? o?.weight ?? "regular");
13
- var c = m();
14
- let l;
15
- var u = d.child(c), h = (e) => {
16
- var t = f();
17
- d.append(e, t);
18
- }, g = (e) => {
19
- var t = p();
20
- d.next(2), d.append(e, t);
21
- };
22
- d.if(u, (e) => {
23
- d.get(s) === "fill" ? e(h) : e(g, -1);
24
- }), d.reset(c), d.template_effect(() => {
25
- d.set_class(c, 0, d.clsx(a())), d.set_attribute(c, "width", n()), d.set_attribute(c, "height", n()), l = d.set_style(c, "", l, { color: r() === "currentColor" ? void 0 : r() });
26
- }), d.append(e, c), d.pop();
27
- }
28
- //#endregion
29
- //#region src/lib/api/transformers/address.ts
30
- function g(e) {
31
- if (!e) return [];
32
- let t = e.split(",").map((e) => e.trim());
33
- if (t.length < 2) return [e];
34
- let n = t[t.length - 1].match(/^([A-Z]{2})\s+(\d{5}(-\d{4})?)$/);
35
- if (n && t.length >= 3) {
36
- let e = n[1], r = n[2], i = t[t.length - 2], a = t.slice(0, -2);
37
- return a.push(`${i}, ${e} ${r}`), a;
38
- }
39
- return [t[0], t.slice(1).join(", ")];
40
- }
41
- function _(e) {
42
- return e ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e)}` : "";
43
- }
44
- //#endregion
45
- //#region src/lib/api/transformers/faq.ts
46
- var v = "FAQ", y = 40, b = /^q\s*[:.)-]\s*/i, x = /^a\s*[:.)-]\s*/i;
47
- function S(e) {
48
- if (Array.isArray(e)) return e.map((e) => ({
49
- question: String(e?.question ?? "").trim(),
50
- answer: String(e?.answer ?? "").trim()
51
- })).filter((e) => e.question || e.answer).slice(0, y);
52
- if (typeof e != "string") return [];
53
- let t = e.trim();
54
- if (!t) return [];
55
- let n = t.split(/\r?\n/).map((e) => e.trim()).filter((e) => e.length > 0);
56
- if (n.length === 0) return [];
57
- let r = [], i = null;
58
- for (let e of n) {
59
- let t = b.test(e), n = x.test(e);
60
- if (t || !n && e.endsWith("?")) {
61
- i && r.push(i), i = {
62
- question: e.replace(b, "").trim(),
63
- answer: ""
64
- };
65
- continue;
66
- }
67
- let a = e.replace(x, "").trim();
68
- if (!i) {
69
- i = {
70
- question: v,
71
- answer: a
72
- };
73
- continue;
74
- }
75
- i.answer = i.answer ? `${i.answer}\n${a}` : a;
76
- }
77
- return i && r.push(i), r.some((e) => e.question !== v) ? r.filter((e) => e.question || e.answer).slice(0, y) : [{
78
- question: v,
79
- answer: n.join("\n")
80
- }];
81
- }
82
- //#endregion
83
- //#region src/lib/api/transformers/series.ts
84
- function C(e) {
85
- let t = e, n = r(e.timeZone || t.timezone || t.time_zone || "UTC"), i = c(e.image || "", { cdn: !0 }), o = (e.occurrences || []).map((e) => {
86
- let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
87
- t.address,
88
- t.city,
89
- t.state
90
- ].filter(Boolean).join(", ") : "";
91
- return {
92
- id: e.id,
93
- slug: e.slug || "",
94
- startDateTime: e.startDateTime,
95
- endDateTime: e.endDateTime || "",
96
- status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
97
- ctaText: e.ctaState?.text || "Get Tickets",
98
- ctaDisabled: e.ctaState?.disabled || !1,
99
- ...n ? { venueName: n } : {},
100
- ...r ? { venueAddress: r } : {}
101
- };
102
- }), s = e.occurrences?.[0], l = s?.startDateTime ? a(s.startDateTime, n) : "", d = S(e.venue?.faq), f = (e.performers || []).map((e, t) => ({
103
- id: t + 1,
104
- displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
105
- profileImage: e.profileImage || void 0
106
- })), p = e.venue?.location || e.venue?.googleLocationNameCache || "";
107
- return {
108
- id: e.id,
109
- title: e.title || "",
110
- slug: "",
111
- description: e.description || e.eventSummary || "",
112
- date: l,
113
- startDateTime: s?.startDateTime || "",
114
- endDateTime: s?.endDateTime || "",
115
- doorsOpenTime: "",
116
- timezone: n,
117
- imageUrl: i,
118
- venue: {
119
- id: e.venue?.id || 0,
120
- name: e.venue?.name || "",
121
- address: p,
122
- timezone: n,
123
- serviceFeePercentage: 0,
124
- serviceFeeCents: 0,
125
- taxPercentage: 0
126
- },
127
- performers: f,
128
- tickets: [],
129
- faqs: d,
130
- disclaimer: e.venue?.disclaimer || void 0,
131
- ...u(e.venue),
132
- status: "on_sale",
133
- eventSeriesId: e.id,
134
- seriesOccurrences: o,
135
- isPasswordProtected: !1,
136
- isRegistrationEvent: !1,
137
- totalTicketsRemaining: 0,
138
- totalTicketsCapacity: 0,
139
- venueAddressLines: g(p),
140
- googleMapsUrl: _(p)
141
- };
142
- }
143
- //#endregion
144
- //#region src/lib/api/transformers/collection.ts
145
- function w(e) {
146
- let t = (e.events || []).map((e) => ({
147
- id: e.id,
148
- name: e.title || "",
149
- slug: e.slug || "",
150
- image: c(e.image || "", { cdn: !0 }),
151
- startDateTime: e.startDateTime || "",
152
- status: e.status || "on_sale"
153
- })), n = c(e.coverImage || "", { cdn: !0 });
154
- return {
155
- id: e.id,
156
- title: e.collectionTitle || "",
157
- slug: "",
158
- description: e.description || e.summary || "",
159
- date: "",
160
- startDateTime: "",
161
- endDateTime: "",
162
- doorsOpenTime: "",
163
- timezone: "UTC",
164
- imageUrl: n,
165
- venue: {
166
- id: 0,
167
- name: "",
168
- address: "",
169
- timezone: "UTC",
170
- serviceFeePercentage: 0,
171
- serviceFeeCents: 0,
172
- taxPercentage: 0
173
- },
174
- performers: [],
175
- tickets: [],
176
- faqs: [],
177
- status: "on_sale",
178
- collectionId: e.id,
179
- collectionEvents: t,
180
- isPasswordProtected: !1,
181
- isRegistrationEvent: !1,
182
- totalTicketsRemaining: 0,
183
- totalTicketsCapacity: 0
184
- };
185
- }
186
- //#endregion
187
- //#region src/lib/public-calendar-flow/transform.ts
188
- function T(r) {
189
- let i = e(), a = r.remainingCapacity ?? r.quantityRemaining ?? r.quantity ?? 0, o = r.salesBegin || r.salesStart || r.saleBegin || r.onSaleStart, s = r.salesEnd || r.saleEnd || r.onSaleEnd;
190
- if (a <= 0) return "sold_out";
191
- let c = t(s);
192
- if (c && n(c, i) < 0) return "sales_ended";
193
- let l = t(o);
194
- return l && n(l, i) > 0 ? "coming_soon" : "on_sale";
195
- }
196
- function E(e, t, n = !1) {
197
- let r = (e || "").toLowerCase().replace(/\s+/g, "_");
198
- if (r === "cancelled" || r === "canceled") return "cancelled";
199
- if (r === "postponed") return "postponed";
200
- if (r === "past" || r === "ended") return "past";
201
- if (n || t.some((e) => e.isHidden && e.status === "on_sale")) return "on_sale";
202
- let i = t.filter((e) => !e.isHidden);
203
- if (i.length > 0) {
204
- if (i.every((e) => e.status === "sold_out")) return "sold_out";
205
- if (i.every((e) => e.status === "coming_soon")) return "coming_soon";
206
- if (i.every((e) => e.status === "sales_ended" || e.status === "sold_out")) return "sales_ended";
207
- }
208
- return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
209
- }
210
- function D(e) {
211
- let t = l(e), n = t.venue || {}, i = r(t.timeZone || t.timezone || n.timeZone || n.timezone || "UTC"), s = (e.availableTickets || []).map((e) => ({
212
- id: e.id || e.ID,
213
- name: e.name || e.title || "",
214
- description: e.description || void 0,
215
- price: o(e.price),
216
- fee: e.fee == null ? 0 : e.fee,
217
- quantityAvailable: e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0,
218
- quantityTotal: e.totalCapacity ?? e.quantity ?? 0,
219
- minPerOrder: e.minPerOrder ?? e.minQuantity ?? 1,
220
- maxPerOrder: e.maxPerOrder ?? e.maxQuantity ?? 10,
221
- status: T(e),
222
- salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
223
- salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
224
- isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
225
- isHidden: e.visibility === 2 || e.isHidden === !0,
226
- ticketType: e.type || e.ticketType || void 0,
227
- sectionName: e.sectionName || e.section || void 0
228
- })), d = s.filter((e) => !e.isHidden && !e.isDonation), f = d.reduce((e, t) => e + t.quantityAvailable, 0), p = d.reduce((e, t) => e + t.quantityTotal, 0), m = e.hasPurchasableHiddenTickets === !0, h = E(t.status, s, m), v = e.image || e.imageUrl || e.image_url || "", y = v.startsWith("http") ? v : c(v, { cdn: !0 }), b = {
229
- id: n.id || n.ID || 0,
230
- name: n.name || n.googleLocationNameCache || "",
231
- address: n.address || n.googleLocationNameCache || "",
232
- timezone: i,
233
- serviceFeePercentage: n.serviceFeePercentage ?? n.fee ?? 0,
234
- serviceFeeCents: n.serviceFeeCents == null ? 0 : n.serviceFeeCents,
235
- taxPercentage: n.taxPercentage ?? n.tax ?? 0,
236
- contactEmail: n.contactEmail || n.email || void 0
237
- }, x = (t.performers || []).map((e) => ({
238
- id: e.id || e.ID,
239
- displayName: e.displayName || e.name || "",
240
- profileImage: e.avatar || e.profileImage || void 0,
241
- role: e.role || void 0
242
- })), C = t.faqs ? S(t.faqs) : S(n.faq), w = (t.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
243
- id: e.id ?? e.eventId ?? t + 1,
244
- slug: e.slug || "",
245
- startDateTime: e.startDateTime || e.startTime || "",
246
- endDateTime: e.endDateTime || e.endTime || "",
247
- status: e.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
248
- ctaText: e.ctaState?.text || "Get tickets",
249
- ctaDisabled: e.ctaState?.disabled || !1
250
- })), D = t.startDateTime ? a(t.startDateTime, i) : "";
251
- return {
252
- id: t.id,
253
- title: t.title || "",
254
- slug: t.slug || "",
255
- description: t.description || t.eventSummary || "",
256
- date: D,
257
- startDateTime: t.startDateTime || "",
258
- endDateTime: t.endDateTime || "",
259
- doorsOpenTime: t.doorsOpenTime || "",
260
- timezone: i,
261
- imageUrl: y,
262
- venue: b,
263
- performers: x,
264
- tickets: s,
265
- faqs: C,
266
- disclaimer: t.disclaimer || n.disclaimer || void 0,
267
- ...u(n),
268
- status: h,
269
- salesStatus: t.salesStatus || void 0,
270
- ...m ? { hasPurchasableHiddenTickets: !0 } : {},
271
- eventSeriesId: t.eventSeriesId || void 0,
272
- seriesOccurrences: w.length ? w : void 0,
273
- isPasswordProtected: t.hasPassword === !0 || !!t.password,
274
- isRegistrationEvent: t.ticketType === 1 || t.eventTicketingType === 1,
275
- totalTicketsRemaining: f,
276
- totalTicketsCapacity: p,
277
- stageName: t.stage?.name || t.stageName || void 0,
278
- ageRestriction: t.ageRestriction || void 0,
279
- displayAgeRestriction: t.displayAgeRestriction ?? !1,
280
- displayStartTime: t.displayStartTime ?? !0,
281
- displayEndTime: t.displayEndTime ?? !0,
282
- displayDoorsTime: t.displayDoorsTime ?? !0,
283
- displayTicketsLeft: t.displayTicketsLeft ?? !0,
284
- summary: t.eventSummary || void 0,
285
- postSalesMessage: t.postSalesMessage || void 0,
286
- collectionId: t.collectionId || void 0,
287
- venueAddressLines: g(n.address || n.googleLocationNameCache || ""),
288
- googleMapsUrl: _(n.address || n.googleLocationNameCache || "")
289
- };
290
- }
291
- function O(e) {
292
- return C(e);
293
- }
294
- function k(e) {
295
- return w(e);
296
- }
297
- //#endregion
298
- //#region src/lib/public-calendar-flow/shareEventLink.ts
299
- async function A(e) {
300
- if (typeof navigator < "u" && typeof navigator.share == "function") try {
301
- return await navigator.share({ url: e }), "shared";
302
- } catch (e) {
303
- if (e?.name === "AbortError") return "shared";
304
- }
305
- return await s(e) ? "copied" : "failed";
306
- }
307
- //#endregion
308
- //#region src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts
309
- function j() {
310
- let e = d.state("idle"), t = d.state(""), n;
311
- async function r(r) {
312
- let i = await A(r);
313
- i === "copied" ? (d.set(t, ""), d.set(e, "copied"), clearTimeout(n), n = setTimeout(() => d.set(e, "idle"), 2500)) : i === "failed" && (clearTimeout(n), d.set(e, "failed"), d.set(t, r, !0));
314
- }
315
- function i() {
316
- clearTimeout(n);
317
- }
318
- return {
319
- get copyState() {
320
- return d.get(e);
321
- },
322
- get copyFailedUrl() {
323
- return d.get(t);
324
- },
325
- share: r,
326
- dispose: i
327
- };
328
- }
329
- //#endregion
330
- export { h as a, O as i, D as n, k as r, j as t };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes