@getmicdrop/venue-calendar 4.3.119 → 4.3.121

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 (118) hide show
  1. package/README.md +818 -818
  2. package/dist/{AddOnCard-BGFpF6uw.js → AddOnCard-jj59e855.js} +5 -5
  3. package/dist/{ArrowLeftIcon-pPaJkbnp.js → ArrowLeftIcon-t-CY0sbi.js} +1 -1
  4. package/dist/{BlockPlaceholder-BgLtwJnm.js → BlockPlaceholder-BmEZ68_q.js} +1 -1
  5. package/dist/Calendar-hxcQBkTF.js +463 -0
  6. package/dist/{CalendarFoundryView-CZ36wO24.js → CalendarFoundryView-CSAKDe-F.js} +19 -19
  7. package/dist/{CalendarIcon-C_6MSRyE.js → CalendarIcon-B5JWs0gm.js} +1 -1
  8. package/dist/{CartView-9YSoRvTw.js → CartView-CF2y1JDa.js} +719 -716
  9. package/dist/{CheckIcon-sr8D0z-b.js → CheckIcon-BSwoGox7.js} +1 -1
  10. package/dist/{Checkout-BLkYIKoR.js → Checkout-2h2K3-bE.js} +378 -378
  11. package/dist/{Checkout-BS3r4Qii.js → Checkout-BFu5dTw_.js} +328 -328
  12. package/dist/{CheckoutTimer-DY1NKJXP.js → CheckoutTimer-Bpt5gPyA.js} +2 -2
  13. package/dist/{ChevronDownIcon-Co6rRQp-.js → ChevronDownIcon-CVZ0usBx.js} +1 -1
  14. package/dist/{CloseIcon-DpRE5O8y.js → CloseIcon-DUnvWXUY.js} +1 -1
  15. package/dist/CollectionView-XdNMvMtn.js +141 -0
  16. package/dist/{Event-DUq4tYBE.js → Event-B_9T21du.js} +684 -680
  17. package/dist/EventPage-BMnKpciU.js +1201 -0
  18. package/dist/{Input-CsHb9Z8e.js → Input-BXZmvQ0p.js} +1 -1
  19. package/dist/{LocationIcon-Dxk7snUC.js → LocationIcon-E-7CQh4E.js} +1 -1
  20. package/dist/{PasswordInput-BlL0w_yr.js → PasswordInput-DzXNIwRc.js} +1 -1
  21. package/dist/{RecommendationsRail-Dq9t0T02.js → RecommendationsRail-DrzM8h2r.js} +124 -124
  22. package/dist/{ScarcityBadge-Bj_YMxz4.js → ScarcityBadge-DjzrzvId.js} +4 -4
  23. package/dist/{SeriesPage-CaPTQRSo.js → SeriesPage-Ds_FEEZW.js} +2 -2
  24. package/dist/{Spinner-BgdjQygI.js → Spinner-B2rdbspc.js} +1 -1
  25. package/dist/{Success-tXgS0BXp.js → Success-Dkak0iM9.js} +201 -201
  26. package/dist/{TagIcon-Kq7_bapx.js → TagIcon-BY8tK_qA.js} +1 -1
  27. package/dist/ViewTicketsEmbed-B_fqalQh.js +660 -0
  28. package/dist/{WarningCircleIcon-BdbAYYi4.js → WarningCircleIcon-C5Lc7qkF.js} +1 -1
  29. package/dist/{WarningTriIcon-D8otatZe.js → WarningTriIcon-BM8qc9xx.js} +1 -1
  30. package/dist/api/api.cjs +1 -1
  31. package/dist/api/api.mjs +258 -252
  32. package/dist/api/cart-addons.d.ts +2 -1
  33. package/dist/api/checkout-availability.d.ts +2 -25
  34. package/dist/api/client.d.ts +4 -7
  35. package/dist/api/events.d.ts +23 -22
  36. package/dist/api/gift-cards.d.ts +7 -6
  37. package/dist/api/orders.d.ts +13 -12
  38. package/dist/api/promo.d.ts +5 -4
  39. package/dist/api/surge-queue.d.ts +5 -34
  40. package/dist/api/venues.d.ts +5 -4
  41. package/dist/api/waitlist.d.ts +5 -9
  42. package/dist/{api-DG7ztpYi.js → api-BEYkGabB.js} +174 -169
  43. package/dist/{copyToClipboard-DSangJpP.js → copyToClipboard-F-akSgaF.js} +1 -1
  44. package/dist/{createErrorGate.svelte-CEBpRAmr.js → createErrorGate.svelte-CEGaIQeI.js} +1 -1
  45. package/dist/{datetime-YTw6PkGP.js → datetime-BnKG6Hjm.js} +1 -1
  46. package/dist/{de-CbwqVvg6.js → de-BHcAXwnM.js} +0 -1
  47. package/dist/{defaultLabels-CsRGNP7f.js → defaultLabels-BbNEEsF7.js} +0 -1
  48. package/dist/{defaults-UDvnrGu0.js → defaults-CgsFJvJ2.js} +2 -2
  49. package/dist/{es-Dxqulvec.js → es-DZ3yceh-.js} +0 -1
  50. package/dist/{event-CW18bU9h.js → event-DfqUhl5j.js} +1 -1
  51. package/dist/{event-transform-CyRMeKW_.js → event-transform-Bk1IoYh5.js} +4 -4
  52. package/dist/{eventStatusStream-Cf7PaLka.js → eventStatusStream-CE0PwO0c.js} +9 -9
  53. package/dist/{fr-0aCE52FE.js → fr-Dyi163Vk.js} +0 -1
  54. package/dist/{href-yqxAPbkW.js → href-CfWGAmkP.js} +3 -3
  55. package/dist/i18n-B705OXZp.js +28 -0
  56. package/dist/{i18n-MF3q-UBI.js → i18n-BoMUWcCq.js} +4 -4
  57. package/dist/{id-7ClY2Dwb.js → id-DvFRZVAm.js} +0 -1
  58. package/dist/{it-z-heX6Hy.js → it-Bh05tcLv.js} +0 -1
  59. package/dist/{ja-ecBzr5l9.js → ja-CU4PQS4j.js} +0 -1
  60. package/dist/{ko-Blnq1Wc_.js → ko-DDk6EdWm.js} +0 -1
  61. package/dist/locales/4.3.121/main/de.js +1 -0
  62. package/dist/locales/4.3.121/main/es.js +1 -0
  63. package/dist/locales/4.3.121/main/fr.js +1 -0
  64. package/dist/locales/4.3.121/main/id.js +1 -0
  65. package/dist/locales/4.3.121/main/it.js +1 -0
  66. package/dist/locales/4.3.121/main/ja.js +1 -0
  67. package/dist/locales/4.3.121/main/ko.js +1 -0
  68. package/dist/locales/4.3.121/main/nl.js +1 -0
  69. package/dist/locales/4.3.121/main/pl.js +1 -0
  70. package/dist/locales/4.3.121/main/pt-br.js +1 -0
  71. package/dist/locales/4.3.121/main/tr.js +1 -0
  72. package/dist/locales/4.3.121/main/zh.js +1 -0
  73. package/dist/{nl-Bm2Lee3j.js → nl-DOSKYHSx.js} +0 -1
  74. package/dist/{pixels-BAPQbj_Y.js → pixels-Bu5-BISs.js} +8 -8
  75. package/dist/{pl-DIp-gYhF.js → pl-CkLEymA2.js} +0 -1
  76. package/dist/{pt-br-BmcVsgbQ.js → pt-br-BHuCQSM-.js} +0 -1
  77. package/dist/{serverTotals-D57U4Nju.js → serverTotals-B8SJCzxE.js} +1 -1
  78. package/dist/{showcase-state-options-zfQoPg37.js → showcase-state-options-KO_TYk3I.js} +1 -1
  79. package/dist/{to-event-card-props-Dn1eDOiJ.js → to-event-card-props-DYIfPN8e.js} +9 -13
  80. package/dist/{tr-BshxS2DN.js → tr-Bvc34ODh.js} +0 -1
  81. package/dist/{utils-CdNe7KGe.js → utils-NMx3aPDk.js} +82 -78
  82. package/dist/venue-calendar.css +1 -1
  83. package/dist/venue-calendar.es.js +1445 -1445
  84. package/dist/venue-calendar.iife.js +31 -31
  85. package/dist/venue-calendar.umd.js +52 -52
  86. package/dist/{orders-BWVwv3P0.js → widget-key-context-D2zj4sp5.js} +221 -213
  87. package/dist/{zh-B06ZsUNX.js → zh-K0hOzZ3G.js} +0 -1
  88. package/package.json +1 -1
  89. package/src/lib/theme.js +222 -222
  90. package/dist/Calendar-S2Es6EKK.js +0 -486
  91. package/dist/CollectionView-DyFDlCmo.js +0 -138
  92. package/dist/EventPage-m5SlifRu.js +0 -1200
  93. package/dist/ViewTicketsEmbed-BnuypZ1H.js +0 -660
  94. package/dist/i18n-B-AwhAMH.js +0 -28
  95. package/dist/locales/4.3.119/main/de.js +0 -1
  96. package/dist/locales/4.3.119/main/es.js +0 -1
  97. package/dist/locales/4.3.119/main/fr.js +0 -1
  98. package/dist/locales/4.3.119/main/id.js +0 -1
  99. package/dist/locales/4.3.119/main/it.js +0 -1
  100. package/dist/locales/4.3.119/main/ja.js +0 -1
  101. package/dist/locales/4.3.119/main/ko.js +0 -1
  102. package/dist/locales/4.3.119/main/nl.js +0 -1
  103. package/dist/locales/4.3.119/main/pl.js +0 -1
  104. package/dist/locales/4.3.119/main/pt-br.js +0 -1
  105. package/dist/locales/4.3.119/main/tr.js +0 -1
  106. package/dist/locales/4.3.119/main/zh.js +0 -1
  107. /package/dist/locales/{4.3.119 → 4.3.121}/flow/de.js +0 -0
  108. /package/dist/locales/{4.3.119 → 4.3.121}/flow/es.js +0 -0
  109. /package/dist/locales/{4.3.119 → 4.3.121}/flow/fr.js +0 -0
  110. /package/dist/locales/{4.3.119 → 4.3.121}/flow/id.js +0 -0
  111. /package/dist/locales/{4.3.119 → 4.3.121}/flow/it.js +0 -0
  112. /package/dist/locales/{4.3.119 → 4.3.121}/flow/ja.js +0 -0
  113. /package/dist/locales/{4.3.119 → 4.3.121}/flow/ko.js +0 -0
  114. /package/dist/locales/{4.3.119 → 4.3.121}/flow/nl.js +0 -0
  115. /package/dist/locales/{4.3.119 → 4.3.121}/flow/pl.js +0 -0
  116. /package/dist/locales/{4.3.119 → 4.3.121}/flow/pt-br.js +0 -0
  117. /package/dist/locales/{4.3.119 → 4.3.121}/flow/tr.js +0 -0
  118. /package/dist/locales/{4.3.119 → 4.3.121}/flow/zh.js +0 -0
@@ -1,5 +1,5 @@
1
- import { n as e } from "./WarningCircleIcon-BdbAYYi4.js";
2
- import { g as t, x as n } from "./defaultLabels-CsRGNP7f.js";
1
+ import { n as e } from "./WarningCircleIcon-C5Lc7qkF.js";
2
+ import { g as t, x as n } from "./defaultLabels-BbNEEsF7.js";
3
3
  import { r } from "./Button-VUB2WJ88.js";
4
4
  import { t as i } from "./Text-CqjLjIF8.js";
5
5
  import { n as a } from "./constants-C6MZgb2S.js";
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-YTw6PkGP.js";
1
+ import { X as e } from "./datetime-BnKG6Hjm.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/ChevronDownIcon.svelte
@@ -1,4 +1,4 @@
1
- import { X as e } from "./datetime-YTw6PkGP.js";
1
+ import { X as e } from "./datetime-BnKG6Hjm.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/CalendarOutline.svelte
@@ -0,0 +1,141 @@
1
+ import { t as e } from "./Event-B_9T21du.js";
2
+ import { g as t } from "./sizing-B7ixYndz.js";
3
+ import { o as n } from "./RecommendationsRail-DrzM8h2r.js";
4
+ import { t as r } from "./defaultLabels-BbNEEsF7.js";
5
+ import { t as i } from "./Button-VUB2WJ88.js";
6
+ import { n as a } from "./widget-key-context-D2zj4sp5.js";
7
+ import { E as o } from "./api-BEYkGabB.js";
8
+ import { t as s } from "./PasswordInput-DzXNIwRc.js";
9
+ import { t as c } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
10
+ import { t as l } from "./__SKIP_PATHS__-C0ixDSSm.js";
11
+ import { i as u, n as d, t as f } from "./gate-password-cache-oOcDm9Ki.js";
12
+ import "svelte/internal/disclose-version";
13
+ import * as p from "svelte/internal/client";
14
+ import { onDestroy as m, onMount as h } from "svelte";
15
+ //#region src/components/Views/CollectionView.svelte
16
+ var g = p.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y\"><p> </p></div>"), _ = p.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><div class=\"password-card rounded-lg p-8 max-w-sm w-full svelte-q4dz4y\"><h2 class=\"password-title type-heading mb-2 svelte-q4dz4y\"> </h2> <p class=\"password-description type-body mb-6 svelte-q4dz4y\"> </p> <form class=\"flex flex-col gap-3\"><!> <!></form></div></div>"), v = p.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><p class=\"error-text svelte-q4dz4y\"> </p></div>");
17
+ function y(y, b) {
18
+ p.push(b, !0);
19
+ let x = a();
20
+ t("CollectionView"), p.prop(b, "organizationId", 3, "");
21
+ let S = p.prop(b, "onNavigateToEvent", 3, void 0), C = p.prop(b, "password", 3, void 0);
22
+ p.prop(b, "displayMode", 3, "gallery"), p.prop(b, "showViewSwitcher", 3, !0);
23
+ let w = p.prop(b, "labels", 3, r), T = p.prop(b, "locale", 3, void 0), E = p.prop(b, "initialCollection", 3, null), D = p.state(null), O = p.state(!0), k = p.state(null), A = p.state(!1), j = p.state(!1), M = p.state(""), N = p.state(!1), P = p.derived(() => p.get(D) ? n(p.get(D)) : null), F = 0;
24
+ async function I(e, t = !1) {
25
+ if (!p.get(A)) return;
26
+ let n = ++F;
27
+ if (!b.collectionId) {
28
+ p.set(k, w().noCollectionIdProvided || "No collection ID provided", !0), p.set(O, !1);
29
+ return;
30
+ }
31
+ p.set(O, !0), p.set(k, null), p.set(N, !1);
32
+ try {
33
+ let r = await o(b.collectionId, e, { widgetKey: x });
34
+ if (!p.get(A) || n !== F) return;
35
+ if (r) {
36
+ if (r.passwordRequired || r.error?.code === "PASSWORD_REQUIRED") {
37
+ p.set(j, !0), t && f("collection", b.collectionId), p.set(O, !1);
38
+ return;
39
+ }
40
+ p.set(D, r, !0), p.set(j, !1), u("collection", b.collectionId, e);
41
+ } else {
42
+ if (e) {
43
+ p.set(j, !0), t ? f("collection", b.collectionId) : p.set(N, !0), p.set(O, !1);
44
+ return;
45
+ }
46
+ p.set(k, w().failedToLoadCollection || "Failed to load collection", !0);
47
+ }
48
+ } catch (e) {
49
+ if (p.get(A) && n === F) {
50
+ let n = e.message || "";
51
+ n.includes("401") || n.includes("403") || n.includes("password") ? (p.set(j, !0), t && f("collection", b.collectionId)) : p.set(k, n || w().failedToLoadCollection || "Failed to load collection", !0);
52
+ }
53
+ } finally {
54
+ p.get(A) && n === F && p.set(O, !1);
55
+ }
56
+ }
57
+ function L(e) {
58
+ return !!(e && String(e.id) === String(b.collectionId) && e.visibility === "public" && Array.isArray(e.events) && !e.passwordRequired && !e.error);
59
+ }
60
+ function R(e) {
61
+ e.preventDefault(), p.get(M).trim() && I(p.get(M));
62
+ }
63
+ function z(e) {
64
+ S() && e.id ? S()(Number(e.id), e.slug) : c(l("/[id]/[slug]", {
65
+ id: String(e.id),
66
+ slug: String(e.slug)
67
+ }));
68
+ }
69
+ h(() => {
70
+ p.set(A, !0);
71
+ let e = C() ? void 0 : d("collection", b.collectionId);
72
+ if (!C() && !e && L(E())) {
73
+ p.set(D, E()), p.set(O, !1);
74
+ return;
75
+ }
76
+ I(C() ?? e, !!e);
77
+ }), m(() => {
78
+ p.set(A, !1);
79
+ });
80
+ var B = p.comment(), V = p.first_child(B), H = (e) => {
81
+ var t = g(), n = p.child(t), r = p.child(n, !0);
82
+ p.reset(n), p.reset(t), p.template_effect(() => p.set_text(r, w().loadingCollection || "Loading collection...")), p.append(e, t);
83
+ }, U = (e) => {
84
+ var t = _(), n = p.child(t), r = p.child(n), a = p.child(r, !0);
85
+ p.reset(r);
86
+ var o = p.sibling(r, 2), c = p.child(o, !0);
87
+ p.reset(o);
88
+ var l = p.sibling(o, 2), u = p.child(l);
89
+ {
90
+ let e = p.derived(() => w().enterPassword || "Enter password"), t = p.derived(() => p.get(N) ? w().incorrectPassword || "Incorrect password. Please try again" : "");
91
+ s(u, {
92
+ get placeholder() {
93
+ return p.get(e);
94
+ },
95
+ get error() {
96
+ return p.get(t);
97
+ },
98
+ get value() {
99
+ return p.get(M);
100
+ },
101
+ set value(e) {
102
+ p.set(M, e, !0);
103
+ }
104
+ });
105
+ }
106
+ var d = p.sibling(u, 2);
107
+ i(d, {
108
+ variant: "default",
109
+ type: "submit",
110
+ children: (e, t) => {
111
+ p.next();
112
+ var n = p.text();
113
+ p.template_effect(() => p.set_text(n, w().viewCollection || "View collection")), p.append(e, n);
114
+ },
115
+ $$slots: { default: !0 }
116
+ }), p.reset(l), p.reset(n), p.reset(t), p.template_effect(() => {
117
+ p.set_text(a, w().collectionPrivateTitle || "This collection is private"), p.set_text(c, w().collectionPrivateDescription || "Please enter the password to view this collection");
118
+ }), p.event("submit", l, R), p.append(e, t);
119
+ }, W = (e) => {
120
+ var t = v(), n = p.child(t), r = p.child(n);
121
+ p.reset(n), p.reset(t), p.template_effect(() => p.set_text(r, `${(w().errorPrefix || "Error:") ?? ""} ${p.get(k) ?? ""}`)), p.append(e, t);
122
+ }, G = (t) => {
123
+ e(t, {
124
+ get event() {
125
+ return p.get(P);
126
+ },
127
+ onCollectionEventClick: z,
128
+ get labels() {
129
+ return w();
130
+ },
131
+ get locale() {
132
+ return T();
133
+ }
134
+ });
135
+ };
136
+ p.if(V, (e) => {
137
+ p.get(O) ? e(H) : p.get(j) ? e(U, 1) : p.get(k) ? e(W, 2) : p.get(P) && e(G, 3);
138
+ }), p.append(y, B), p.pop();
139
+ }
140
+ //#endregion
141
+ export { y as default };