@getmicdrop/venue-calendar 4.0.79 → 4.0.81

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/README.md +173 -128
  2. package/dist/{CarouselView.legacy-CsMGxVbb.js → CarouselView.legacy-Bn76lnuH.js} +3 -3
  3. package/dist/{CarouselView.legacy-CsMGxVbb.js.map → CarouselView.legacy-Bn76lnuH.js.map} +1 -1
  4. package/dist/{CartView-BOaZufWZ.js → CartView-lR1zLxmN.js} +277 -280
  5. package/dist/CartView-lR1zLxmN.js.map +1 -0
  6. package/dist/{Checkout-bkXNpxIB.js → Checkout-D5mXj5zN.js} +69 -73
  7. package/dist/Checkout-D5mXj5zN.js.map +1 -0
  8. package/dist/Checkout-KyLZlwLk.js +1673 -0
  9. package/dist/Checkout-KyLZlwLk.js.map +1 -0
  10. package/dist/{Checkout.legacy-BOPwZMyO.js → Checkout.legacy-Dl8Oh7y3.js} +95 -99
  11. package/dist/Checkout.legacy-Dl8Oh7y3.js.map +1 -0
  12. package/dist/CheckoutTimer-Deo1mLnO.js +141 -0
  13. package/dist/CheckoutTimer-Deo1mLnO.js.map +1 -0
  14. package/dist/CollectionView-C1O9xfVC.js +338 -0
  15. package/dist/CollectionView-C1O9xfVC.js.map +1 -0
  16. package/dist/{CollectionView.legacy-Dw-J6Ycd.js → CollectionView.legacy-DK_mCA_g.js} +21 -24
  17. package/dist/{CollectionView.legacy-Dw-J6Ycd.js.map → CollectionView.legacy-DK_mCA_g.js.map} +1 -1
  18. package/dist/Event-B5WRygEf.js +2240 -0
  19. package/dist/Event-B5WRygEf.js.map +1 -0
  20. package/dist/EventPage-f1AOk4Jb.js +577 -0
  21. package/dist/EventPage-f1AOk4Jb.js.map +1 -0
  22. package/dist/{EventPage.legacy-Br2M8N9-.js → EventPage.legacy-Bk3PJyJs.js} +408 -411
  23. package/dist/EventPage.legacy-Bk3PJyJs.js.map +1 -0
  24. package/dist/{FeaturedView.legacy-B86kMzvH.js → FeaturedView.legacy-BzCt1X1W.js} +18 -18
  25. package/dist/{FeaturedView.legacy-B86kMzvH.js.map → FeaturedView.legacy-BzCt1X1W.js.map} +1 -1
  26. package/dist/{GalleryCard-CTsYUZu6.js → GalleryCard-C1EKGErR.js} +14 -14
  27. package/dist/{GalleryCard-CTsYUZu6.js.map → GalleryCard-C1EKGErR.js.map} +1 -1
  28. package/dist/{GalleryView.legacy-uIexOsl5.js → GalleryView.legacy-BmQtZKl7.js} +3 -3
  29. package/dist/{GalleryView.legacy-uIexOsl5.js.map → GalleryView.legacy-BmQtZKl7.js.map} +1 -1
  30. package/dist/{GroupedListView.legacy-DMAwHQ9T.js → GroupedListView.legacy-D72fbNfA.js} +21 -21
  31. package/dist/{GroupedListView.legacy-DMAwHQ9T.js.map → GroupedListView.legacy-D72fbNfA.js.map} +1 -1
  32. package/dist/Heading-Bwevh2c4.js +81 -0
  33. package/dist/Heading-Bwevh2c4.js.map +1 -0
  34. package/dist/ModalHeader-DKwE5ZYZ.js +22 -0
  35. package/dist/ModalHeader-DKwE5ZYZ.js.map +1 -0
  36. package/dist/OrderSummarySkeleton-DKWKZNLL.js +632 -0
  37. package/dist/OrderSummarySkeleton-DKWKZNLL.js.map +1 -0
  38. package/dist/{ScarcityBadge-D9RzN3Tz.js → ScarcityBadge-3cFxTOCh.js} +25 -29
  39. package/dist/{ScarcityBadge-D9RzN3Tz.js.map → ScarcityBadge-3cFxTOCh.js.map} +1 -1
  40. package/dist/{SeriesPage-D0pf6VuS.js → SeriesPage-Cq4Q8Vah.js} +17 -21
  41. package/dist/{SeriesPage-D0pf6VuS.js.map → SeriesPage-Cq4Q8Vah.js.map} +1 -1
  42. package/dist/{SeriesPage.legacy-VYpfyT7B.js → SeriesPage.legacy-zvgW0S_y.js} +67 -71
  43. package/dist/SeriesPage.legacy-zvgW0S_y.js.map +1 -0
  44. package/dist/{Success-Dxgbo_Ct.js → Success-kyiEO6_Z.js} +186 -175
  45. package/dist/{Success-Dxgbo_Ct.js.map → Success-kyiEO6_Z.js.map} +1 -1
  46. package/dist/{Success.legacy-umzUtow7.js → Success.legacy-BxKYmXgz.js} +53 -57
  47. package/dist/{Success.legacy-umzUtow7.js.map → Success.legacy-BxKYmXgz.js.map} +1 -1
  48. package/dist/Text-_bLxSPv-.js +158 -0
  49. package/dist/Text-_bLxSPv-.js.map +1 -0
  50. package/dist/{VenueCalendar-D9TCV_XB.js → VenueCalendar-d8u6MKEu.js} +8131 -22680
  51. package/dist/VenueCalendar-d8u6MKEu.js.map +1 -0
  52. package/dist/ViewTicketsEmbed-DquJJVIK.js +2081 -0
  53. package/dist/ViewTicketsEmbed-DquJJVIK.js.map +1 -0
  54. package/dist/__SKIP_NAVIGATION__-CmipjatL.js +18 -0
  55. package/dist/__SKIP_NAVIGATION__-CmipjatL.js.map +1 -0
  56. package/dist/api/api.cjs +1 -1
  57. package/dist/api/api.cjs.map +1 -1
  58. package/dist/api/api.mjs +482 -374
  59. package/dist/api/api.mjs.map +1 -1
  60. package/dist/api/cta.d.ts +2 -10
  61. package/dist/api/transformers/address.d.ts +18 -0
  62. package/dist/api/transformers/cart.d.ts +19 -0
  63. package/dist/api/transformers/collection.d.ts +12 -0
  64. package/dist/api/transformers/event.d.ts +50 -1
  65. package/dist/api/transformers/giftCard.d.ts +11 -0
  66. package/dist/api/transformers/index.d.ts +10 -3
  67. package/dist/api/transformers/performer.d.ts +8 -0
  68. package/dist/api/transformers/series.d.ts +12 -0
  69. package/dist/api/types.d.ts +423 -383
  70. package/dist/api-BzICORqy.js +6 -0
  71. package/dist/{api-DFMsiBOR.js.map → api-BzICORqy.js.map} +1 -1
  72. package/dist/colors-CmP-sSZD.js.map +1 -1
  73. package/dist/{data-toggle-store.svelte-DtDqN-QD.js → data-toggle-store.svelte-BGbzblUJ.js} +10 -15
  74. package/dist/data-toggle-store.svelte-BGbzblUJ.js.map +1 -0
  75. package/dist/index-BsWecoW1.js +63 -0
  76. package/dist/index-BsWecoW1.js.map +1 -0
  77. package/dist/labels-Bj_cocb1.js +966 -0
  78. package/dist/labels-Bj_cocb1.js.map +1 -0
  79. package/dist/seo/seo.cjs +1 -1
  80. package/dist/seo/seo.cjs.map +1 -1
  81. package/dist/seo/seo.mjs +131 -122
  82. package/dist/seo/seo.mjs.map +1 -1
  83. package/dist/transform-D7Oe8jUp.js +276 -0
  84. package/dist/transform-D7Oe8jUp.js.map +1 -0
  85. package/dist/types/index.d.ts +45 -0
  86. package/dist/venue-calendar.css +1 -1
  87. package/dist/venue-calendar.es.js +31 -37
  88. package/dist/venue-calendar.es.js.map +1 -1
  89. package/dist/venue-calendar.iife.js +40 -107
  90. package/dist/venue-calendar.iife.js.map +1 -1
  91. package/dist/venue-calendar.umd.js +38 -125
  92. package/dist/venue-calendar.umd.js.map +1 -1
  93. package/package.json +170 -169
  94. package/dist/CartView-BOaZufWZ.js.map +0 -1
  95. package/dist/Checkout-DD6ZTUh-.js +0 -1531
  96. package/dist/Checkout-DD6ZTUh-.js.map +0 -1
  97. package/dist/Checkout-bkXNpxIB.js.map +0 -1
  98. package/dist/Checkout.legacy-BOPwZMyO.js.map +0 -1
  99. package/dist/CheckoutTimer-CHoKjZyH.js +0 -35
  100. package/dist/CheckoutTimer-CHoKjZyH.js.map +0 -1
  101. package/dist/CollectionView-Ce-OAEC4.js +0 -148
  102. package/dist/CollectionView-Ce-OAEC4.js.map +0 -1
  103. package/dist/Event-rdstzev0.js +0 -1910
  104. package/dist/Event-rdstzev0.js.map +0 -1
  105. package/dist/EventPage-B8VRC83d.js +0 -336
  106. package/dist/EventPage-B8VRC83d.js.map +0 -1
  107. package/dist/EventPage.legacy-Br2M8N9-.js.map +0 -1
  108. package/dist/Heading-AFd3o0xt.js +0 -44
  109. package/dist/Heading-AFd3o0xt.js.map +0 -1
  110. package/dist/OrderSummarySkeleton-dDKUH741.js +0 -16
  111. package/dist/OrderSummarySkeleton-dDKUH741.js.map +0 -1
  112. package/dist/SeriesPage.legacy-VYpfyT7B.js.map +0 -1
  113. package/dist/Text-CXR2fhx6.js +0 -54
  114. package/dist/Text-CXR2fhx6.js.map +0 -1
  115. package/dist/VenueCalendar-D9TCV_XB.js.map +0 -1
  116. package/dist/ViewTicketsEmbed-Bt05E5Ex.js +0 -2039
  117. package/dist/ViewTicketsEmbed-Bt05E5Ex.js.map +0 -1
  118. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js +0 -7
  119. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js.map +0 -1
  120. package/dist/api-DFMsiBOR.js +0 -12
  121. package/dist/data-toggle-store.svelte-DtDqN-QD.js.map +0 -1
  122. package/dist/labels-CClq3Rb9.js +0 -659
  123. package/dist/labels-CClq3Rb9.js.map +0 -1
  124. package/dist/transform-CWf-YI_e.js +0 -275
  125. package/dist/transform-CWf-YI_e.js.map +0 -1
@@ -0,0 +1,338 @@
1
+ import "svelte/internal/disclose-version";
2
+ import * as e from "svelte/internal/client";
3
+ import { untrack as N, onMount as U, onDestroy as Q } from "svelte";
4
+ import { g as Y } from "./__SKIP_NAVIGATION__-CmipjatL.js";
5
+ import { E as H } from "./Event-B5WRygEf.js";
6
+ import { b as J } from "./transform-D7Oe8jUp.js";
7
+ import { s as K, at as X, a5 as Z, h as $, au as ee } from "./VenueCalendar-d8u6MKEu.js";
8
+ import { cubicOut as te } from "svelte/easing";
9
+ var re = e.from_html("<div></div>"), oe = e.from_html('<div class="pt-2 space-y-2"><div class="flex gap-1.5"></div> <!></div>');
10
+ function le(D, t) {
11
+ e.push(t, !0);
12
+ const k = {
13
+ tooWeak: "Too weak",
14
+ weak: "Weak",
15
+ good: "Good",
16
+ strong: "Strong"
17
+ };
18
+ let i = e.prop(t, "password", 3, ""), w = e.prop(t, "strengthText", 15, ""), C = e.prop(t, "score", 31, () => -1), x = e.prop(t, "textColor", 15, ""), T = e.prop(t, "labels", 19, () => ({})), d = e.derived(() => ({ ...k, ...T() })), c = e.state(""), n, g = e.state(null);
19
+ const u = X(() => import("./index-BsWecoW1.js"));
20
+ function f() {
21
+ u().then((s) => {
22
+ e.set(g, s.passwordStrength, !0);
23
+ }).catch(() => {
24
+ });
25
+ }
26
+ e.user_effect(() => {
27
+ i() && !e.get(g) && f();
28
+ });
29
+ let v = e.derived(() => [
30
+ {
31
+ id: 0,
32
+ value: e.get(d).tooWeak,
33
+ minDiversity: 0,
34
+ minLength: 0
35
+ },
36
+ {
37
+ id: 1,
38
+ value: e.get(d).weak,
39
+ minDiversity: 1,
40
+ minLength: 6
41
+ },
42
+ {
43
+ id: 2,
44
+ value: e.get(d).good,
45
+ minDiversity: 2,
46
+ minLength: 8
47
+ },
48
+ {
49
+ id: 3,
50
+ value: e.get(d).strong,
51
+ minDiversity: 3,
52
+ minLength: 10
53
+ }
54
+ ]);
55
+ e.user_effect(() => (clearTimeout(n), i().length === 0 ? e.set(c, "") : n = setTimeout(
56
+ () => {
57
+ e.set(c, i());
58
+ },
59
+ 400
60
+ ), () => clearTimeout(n)));
61
+ let _ = e.derived(() => e.get(c) && e.get(g) ? e.get(g)(e.get(c), e.get(v)) : null), a = e.derived(() => e.get(c).length > 12 ? 3 : e.get(_)?.id ?? -1);
62
+ e.user_effect(() => {
63
+ const s = e.get(a);
64
+ N(() => C()) !== s && C(s);
65
+ });
66
+ let y = e.derived(() => e.get(a) === 0 ? e.get(d).tooWeak : e.get(a) === 1 ? e.get(d).weak : e.get(a) === 2 ? e.get(d).good : e.get(a) === 3 ? e.get(d).strong : ""), S = e.derived(() => e.get(a) < 0 ? "" : e.get(a) <= 1 ? "text-accent-danger" : "text-accent-success");
67
+ e.user_effect(() => {
68
+ const s = e.get(y);
69
+ N(() => w()) !== s && w(s);
70
+ });
71
+ let P = e.derived(() => e.get(a) <= 1 ? "bg-accent-danger" : "bg-accent-success");
72
+ e.user_effect(() => {
73
+ const s = e.get(S);
74
+ N(() => x()) !== s && x(s);
75
+ });
76
+ let q = e.derived(() => e.get(a) === 0 ? 1 : e.get(a) === 1 ? 2 : e.get(a) >= 2 ? 3 : 0);
77
+ var I = e.comment(), L = e.first_child(I);
78
+ {
79
+ var E = (s) => {
80
+ var p = oe(), m = e.child(p);
81
+ e.each(m, 20, () => [0, 1, 2], e.index, (V, r) => {
82
+ var o = re();
83
+ e.template_effect(() => e.set_class(o, 1, `h-1 flex-1 rounded-full transition-colors duration-300 ${(r < e.get(q) ? e.get(P) : "bg-bg-tertiary") ?? ""}`)), e.append(V, o);
84
+ }), e.reset(m);
85
+ var z = e.sibling(m, 2);
86
+ e.snippet(z, () => t.children ?? e.noop), e.reset(p), e.transition(3, p, () => K, () => ({ duration: 600, easing: te })), e.append(s, p);
87
+ };
88
+ e.if(L, (s) => {
89
+ e.get(c).length > 0 && s(E);
90
+ });
91
+ }
92
+ e.append(D, I), e.pop();
93
+ }
94
+ var se = e.from_html("<p> </p>"), ae = e.from_html("<div><!> <!></div>");
95
+ function ne(D, t) {
96
+ e.push(t, !0);
97
+ const k = { passwordStrength: "Password strength:" };
98
+ let i = e.prop(t, "value", 15, ""), w = e.prop(t, "label", 3, ""), C = e.prop(t, "placeholder", 3, ""), x = e.prop(t, "name", 3, ""), T = e.prop(t, "id", 3, ""), d = e.prop(t, "required", 3, !1), c = e.prop(t, "disableBuiltInValidation", 3, !1), n = e.prop(t, "disabled", 3, !1), g = e.prop(t, "error", 3, ""), u = e.prop(t, "hint", 3, ""), f = e.prop(t, "showStrength", 3, !1), v = e.prop(t, "size", 3, "md"), _ = e.prop(t, "minlength", 3, null), a = e.prop(t, "maxlength", 3, null), y = e.prop(t, "autocomplete", 3, "new-password"), S = e.prop(t, "showPasswordToggle", 3, !0), P = e.prop(t, "class", 3, ""), q = e.prop(t, "labels", 19, () => ({})), I = e.derived(() => ({ ...k, ...q() })), L = e.derived(() => c() ? !1 : d()), E = e.state(-1), s = e.state(""), p = e.state("");
99
+ var m = ae(), z = e.child(m);
100
+ Z(z, {
101
+ type: "password",
102
+ get id() {
103
+ return T();
104
+ },
105
+ get name() {
106
+ return x();
107
+ },
108
+ get placeholder() {
109
+ return C();
110
+ },
111
+ get label() {
112
+ return w();
113
+ },
114
+ get required() {
115
+ return e.get(L);
116
+ },
117
+ get disabled() {
118
+ return n();
119
+ },
120
+ get size() {
121
+ return v();
122
+ },
123
+ get minlength() {
124
+ return _();
125
+ },
126
+ get maxlength() {
127
+ return a();
128
+ },
129
+ get autocomplete() {
130
+ return y();
131
+ },
132
+ get showPasswordToggle() {
133
+ return S();
134
+ },
135
+ get errorText() {
136
+ return g();
137
+ },
138
+ get hintText() {
139
+ return u();
140
+ },
141
+ get oninputchange() {
142
+ return t.oninput;
143
+ },
144
+ get onblur() {
145
+ return t.onblur;
146
+ },
147
+ get onfocus() {
148
+ return t.onfocus;
149
+ },
150
+ get value() {
151
+ return i();
152
+ },
153
+ set value(o) {
154
+ i(o);
155
+ }
156
+ });
157
+ var V = e.sibling(z, 2);
158
+ {
159
+ var r = (o) => {
160
+ le(o, {
161
+ get password() {
162
+ return i();
163
+ },
164
+ get score() {
165
+ return e.get(E);
166
+ },
167
+ set score(l) {
168
+ e.set(E, l, !0);
169
+ },
170
+ get strengthText() {
171
+ return e.get(s);
172
+ },
173
+ set strengthText(l) {
174
+ e.set(s, l, !0);
175
+ },
176
+ get textColor() {
177
+ return e.get(p);
178
+ },
179
+ set textColor(l) {
180
+ e.set(p, l, !0);
181
+ },
182
+ children: (l, h) => {
183
+ var b = se(), R = e.child(b);
184
+ e.reset(b), e.template_effect(() => {
185
+ e.set_class(b, 1, `text-xs ${e.get(p) ?? ""}`), e.set_text(R, `${e.get(I).passwordStrength ?? ""} ${e.get(s) ?? ""}`);
186
+ }), e.append(l, b);
187
+ },
188
+ $$slots: { default: !0 }
189
+ });
190
+ };
191
+ e.if(V, (o) => {
192
+ f() && i() && o(r);
193
+ });
194
+ }
195
+ e.reset(m), e.template_effect(() => e.set_class(m, 1, e.clsx(P()))), e.append(D, m), e.pop();
196
+ }
197
+ var ie = e.from_html('<div class="flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y"><p> </p></div>'), de = e.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 text-xl font-bold mb-2 svelte-q4dz4y"> </h2> <p class="password-description text-sm mb-6 svelte-q4dz4y"> </p> <form class="flex flex-col gap-3"><!> <button type="submit" class="password-submit px-4 py-2 rounded-lg text-sm font-semibold svelte-q4dz4y"> </button></form></div></div>'), ce = e.from_html('<div class="flex flex-col items-center justify-center min-h-[50vh] text-center"><p class="error-text svelte-q4dz4y"> </p></div>');
198
+ function ge(D, t) {
199
+ e.push(t, !0);
200
+ const k = $("CollectionView");
201
+ let i = e.state(!1), w = e.state(null);
202
+ typeof window < "u" && new URLSearchParams(window.location.search).get("legacy") === "1" && e.set(i, !0), e.user_effect(() => {
203
+ e.get(i) && !e.get(w) && (k.warn("[VC] DEPRECATED: ?legacy=1 fallback for CollectionView retires on 2026-08-13. See docs/LEGACY_RETIREMENT.md."), import("./CollectionView.legacy-DK_mCA_g.js").then((r) => {
204
+ e.set(w, r.default, !0);
205
+ }).catch(() => {
206
+ e.set(i, !1);
207
+ }));
208
+ });
209
+ let C = e.prop(t, "organizationId", 3, ""), x = e.prop(t, "onNavigateToEvent", 3, void 0), T = e.prop(t, "password", 3, void 0), d = e.prop(t, "displayMode", 3, "gallery"), c = e.prop(t, "showViewSwitcher", 3, !0), n = e.prop(t, "labels", 19, () => ({})), g = e.state(null), u = e.state(!0), f = e.state(null), v = e.state(!1), _ = e.state(!1), a = e.state(""), y = e.state(!1), S = e.derived(() => e.get(g) ? J(e.get(g)) : null);
210
+ async function P(r) {
211
+ if (e.get(v)) {
212
+ if (!t.collectionId) {
213
+ e.set(f, n().noCollectionIdProvided || "No collection ID provided", !0), e.set(u, !1);
214
+ return;
215
+ }
216
+ e.set(u, !0), e.set(f, null), e.set(y, !1);
217
+ try {
218
+ const o = await ee(t.collectionId, r);
219
+ if (!e.get(v)) return;
220
+ if (o) {
221
+ if (o.passwordRequired || o.error?.code === "PASSWORD_REQUIRED") {
222
+ e.set(_, !0), e.set(u, !1);
223
+ return;
224
+ }
225
+ e.set(g, o, !0), e.set(_, !1);
226
+ } else {
227
+ if (r) {
228
+ e.set(_, !0), e.set(y, !0), e.set(u, !1);
229
+ return;
230
+ }
231
+ e.set(f, n().failedToLoadCollection || "Failed to load collection", !0);
232
+ }
233
+ } catch (o) {
234
+ if (e.get(v)) {
235
+ const l = o.message || "";
236
+ l.includes("401") || l.includes("403") || l.includes("password") ? e.set(_, !0) : e.set(f, l || n().failedToLoadCollection || "Failed to load collection", !0);
237
+ }
238
+ } finally {
239
+ e.get(v) && e.set(u, !1);
240
+ }
241
+ }
242
+ }
243
+ function q(r) {
244
+ r.preventDefault(), e.get(a).trim() && P(e.get(a));
245
+ }
246
+ function I(r) {
247
+ x() && r.id ? x()(Number(r.id), r.slug) : Y(`/${r.id}/${r.slug}`);
248
+ }
249
+ U(() => {
250
+ e.set(v, !0), P(T());
251
+ }), Q(() => {
252
+ e.set(v, !1);
253
+ });
254
+ var L = e.comment(), E = e.first_child(L);
255
+ {
256
+ var s = (r) => {
257
+ var o = e.comment(), l = e.first_child(o);
258
+ e.component(l, () => e.get(w), (h, b) => {
259
+ b(h, {
260
+ get collectionId() {
261
+ return t.collectionId;
262
+ },
263
+ get organizationId() {
264
+ return C();
265
+ },
266
+ get onNavigateToEvent() {
267
+ return x();
268
+ },
269
+ get password() {
270
+ return T();
271
+ },
272
+ get displayMode() {
273
+ return d();
274
+ },
275
+ get showViewSwitcher() {
276
+ return c();
277
+ },
278
+ get labels() {
279
+ return n();
280
+ }
281
+ });
282
+ }), e.append(r, o);
283
+ }, p = (r) => {
284
+ var o = ie(), l = e.child(o), h = e.child(l, !0);
285
+ e.reset(l), e.reset(o), e.template_effect(() => e.set_text(h, n().loadingCollection || "Loading collection...")), e.append(r, o);
286
+ }, m = (r) => {
287
+ var o = de(), l = e.child(o), h = e.child(l), b = e.child(h, !0);
288
+ e.reset(h);
289
+ var R = e.sibling(h, 2), W = e.child(R, !0);
290
+ e.reset(R);
291
+ var M = e.sibling(R, 2), O = e.child(M);
292
+ {
293
+ let A = e.derived(() => n().enterPassword || "Enter password"), B = e.derived(() => e.get(y) ? n().incorrectPassword || "Incorrect password. Please try again." : "");
294
+ ne(O, {
295
+ get placeholder() {
296
+ return e.get(A);
297
+ },
298
+ get error() {
299
+ return e.get(B);
300
+ },
301
+ get value() {
302
+ return e.get(a);
303
+ },
304
+ set value(G) {
305
+ e.set(a, G, !0);
306
+ }
307
+ });
308
+ }
309
+ var j = e.sibling(O, 2), F = e.child(j, !0);
310
+ e.reset(j), e.reset(M), e.reset(l), e.reset(o), e.template_effect(() => {
311
+ e.set_text(b, n().collectionPrivateTitle || "This collection is private"), e.set_text(W, n().collectionPrivateDescription || "Please enter the password to view this collection."), e.set_text(F, n().viewCollection || "View Collection");
312
+ }), e.event("submit", M, q), e.append(r, o);
313
+ }, z = (r) => {
314
+ var o = ce(), l = e.child(o), h = e.child(l);
315
+ e.reset(l), e.reset(o), e.template_effect(() => e.set_text(h, `${(n().errorPrefix || "Error:") ?? ""} ${e.get(f) ?? ""}`)), e.append(r, o);
316
+ }, V = (r) => {
317
+ H(r, {
318
+ get event() {
319
+ return e.get(S);
320
+ },
321
+ onCollectionEventClick: I
322
+ });
323
+ };
324
+ e.if(E, (r) => {
325
+ e.get(i) && e.get(w) ? r(s) : e.get(u) ? r(p, 1) : e.get(_) ? r(m, 2) : e.get(f) ? r(z, 3) : e.get(S) && r(V, 4);
326
+ });
327
+ }
328
+ e.append(D, L), e.pop();
329
+ }
330
+ const _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
331
+ __proto__: null,
332
+ default: ge
333
+ }, Symbol.toStringTag, { value: "Module" }));
334
+ export {
335
+ _e as C,
336
+ ne as P
337
+ };
338
+ //# sourceMappingURL=CollectionView-C1O9xfVC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionView-C1O9xfVC.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/recipes/inputs/PasswordStrengthIndicator/PasswordStrengthIndicator.svelte","../node_modules/@getmicdrop/svelte-components/dist/recipes/inputs/PasswordInput.svelte","../src/components/Views/CollectionView.svelte"],"sourcesContent":["<script lang=\"ts\">\r\n import type { Snippet } from 'svelte';\r\n import { safeSlide } from \"../../../utils/transitions.js\";\r\n import { lazyOnce } from \"../../../utils/lazyOnce.js\";\r\n import { cubicOut } from \"svelte/easing\";\r\n import { untrack } from \"svelte\";\r\n\r\n const defaultLabels = {\r\n tooWeak: 'Too weak',\r\n weak: 'Weak',\r\n good: 'Good',\r\n strong: 'Strong',\r\n };\r\n\r\n interface Props {\r\n password?: string;\r\n strengthText?: string;\r\n score?: number;\r\n textColor?: string;\r\n children?: Snippet;\r\n labels?: Partial<typeof defaultLabels>;\r\n }\r\n\r\n let {\r\n password = \"\",\r\n strengthText = $bindable(\"\"),\r\n score = $bindable(-1),\r\n textColor = $bindable(\"\"),\r\n children,\r\n labels: userLabels = {},\r\n }: Props = $props();\r\n\r\n let labels = $derived({ ...defaultLabels, ...userLabels });\r\n\r\n let debouncedPassword = $state(\"\");\r\n // Use a plain variable for timer to avoid reactive dependency\r\n let timer: ReturnType<typeof setTimeout> | undefined;\r\n\r\n // Lazily load the (~10 KB) strength library only once a password exists.\r\n // Until it resolves, `strengthFn` is null and the indicator shows its\r\n // neutral (no-result) state — the debounce window absorbs the load latency.\r\n //\r\n // lazyOnce memoizes the import on success but RESETS on rejection: a\r\n // transient chunk-load failure must not be cached, or the indicator would\r\n // stay bricked until a page reload. On failure the next keystroke retries.\r\n let strengthFn: typeof import('check-password-strength').passwordStrength | null = $state(null);\r\n const loadStrengthModule = lazyOnce(() => import('check-password-strength'));\r\n function ensureStrengthFn() {\r\n void loadStrengthModule()\r\n .then((m) => {\r\n strengthFn = m.passwordStrength;\r\n })\r\n .catch(() => {\r\n // Swallow — strengthFn stays null (neutral state) and lazyOnce\r\n // has already dropped its memo, so a later keystroke retries.\r\n });\r\n }\r\n\r\n // Kick off the load on the first keystroke, before the debounce fires.\r\n // Retries naturally on subsequent keystrokes after a transient failure\r\n // because lazyOnce does not cache the rejection.\r\n $effect(() => {\r\n if (password && !strengthFn) ensureStrengthFn();\r\n });\r\n\r\n let customOptions = $derived([\r\n {\r\n id: 0,\r\n value: labels.tooWeak,\r\n minDiversity: 0,\r\n minLength: 0,\r\n },\r\n {\r\n id: 1,\r\n value: labels.weak,\r\n minDiversity: 1,\r\n minLength: 6,\r\n },\r\n {\r\n id: 2,\r\n value: labels.good,\r\n minDiversity: 2,\r\n minLength: 8,\r\n },\r\n {\r\n id: 3,\r\n value: labels.strong,\r\n minDiversity: 3,\r\n minLength: 10,\r\n },\r\n ] as const);\r\n\r\n // Debounce password updates - timer is not reactive to avoid dependency cycle\r\n $effect(() => {\r\n clearTimeout(timer);\r\n if (password.length === 0) {\r\n debouncedPassword = \"\";\r\n } else {\r\n timer = setTimeout(() => {\r\n debouncedPassword = password;\r\n }, 400); // 400ms delay as requested\r\n }\r\n return () => clearTimeout(timer);\r\n });\r\n\r\n let strength = $derived(debouncedPassword && strengthFn\r\n ? strengthFn(debouncedPassword, customOptions as any)\r\n : null);\r\n\r\n // Derive score based on password length and strength\r\n let computedScore = $derived(debouncedPassword.length > 12 ? 3 : (strength?.id ?? -1));\r\n\r\n // Sync computed values to bindable props using effects with untrack\r\n $effect(() => {\r\n const newScore = computedScore;\r\n if (untrack(() => score) !== newScore) {\r\n score = newScore;\r\n }\r\n });\r\n\r\n // Derive text and color from computedScore (not from bindable score)\r\n let computedStrengthText = $derived(\r\n computedScore === 0 ? labels.tooWeak :\r\n computedScore === 1 ? labels.weak :\r\n computedScore === 2 ? labels.good :\r\n computedScore === 3 ? labels.strong : \"\"\r\n );\r\n\r\n // No color until a real strength result exists. computedScore is -1 while\r\n // the lazily-loaded strength library is still in flight (and during the\r\n // debounce window), so emitting danger here would flash a red \"Password\r\n // strength\" line with empty text in consumers (e.g. PasswordInput).\r\n let computedTextColor = $derived(\r\n computedScore < 0 ? \"\" :\r\n computedScore <= 1 ? \"text-accent-danger\" : \"text-accent-success\"\r\n );\r\n\r\n $effect(() => {\r\n const newText = computedStrengthText;\r\n if (untrack(() => strengthText) !== newText) {\r\n strengthText = newText;\r\n }\r\n });\r\n\r\n let strengthColor = $derived(computedScore <= 1 ? \"bg-accent-danger\" : \"bg-accent-success\");\r\n\r\n $effect(() => {\r\n const newColor = computedTextColor;\r\n if (untrack(() => textColor) !== newColor) {\r\n textColor = newColor;\r\n }\r\n });\r\n\r\n // Calculate how many bars to fill (1-3)\r\n let filledBars = $derived(computedScore === 0 ? 1 : computedScore === 1 ? 2 : computedScore >= 2 ? 3 : 0);\r\n</script>\r\n\r\n{#if debouncedPassword.length > 0}\r\n <div\r\n transition:safeSlide={{ duration: 600, easing: cubicOut }}\r\n class=\"pt-2 space-y-2\"\r\n >\r\n <!-- 3 segment bars -->\r\n <div class=\"flex gap-1.5\">\r\n <!-- eslint-disable-next-line svelte/require-each-key -- keyed-each migration deferred -->\r\n {#each [0, 1, 2] as barIndex}\r\n <div\r\n class=\"h-1 flex-1 rounded-full transition-colors duration-300 {barIndex <\r\n filledBars\r\n ? strengthColor\r\n : 'bg-bg-tertiary'}\"\r\n ></div>\r\n {/each}\r\n </div>\r\n {@render children?.()}\r\n </div>\r\n{/if}\r\n","<script lang=\"ts\">\r\n /**\r\n * PasswordInput - Password field with show/hide toggle and strength indicator\r\n *\r\n * Combines Input (password type) with PasswordStrengthIndicator for\r\n * a complete password entry experience.\r\n *\r\n * @example\r\n * <PasswordInput\r\n * label=\"New Password\"\r\n * bind:value={password}\r\n * showStrength\r\n * error={$errors.password}\r\n * required\r\n * />\r\n *\r\n * @example Consumer-owned validation (e.g. Zod): opt out of the built-in\r\n * `required` constraint so the consuming form is the single source of truth.\r\n * <PasswordInput\r\n * label=\"Password\"\r\n * bind:value={password}\r\n * required\r\n * disableBuiltInValidation\r\n * error={$errors.password}\r\n * />\r\n */\r\n import Input from '../../primitives/Input/Input.svelte';\r\n import PasswordStrengthIndicator from './PasswordStrengthIndicator/PasswordStrengthIndicator.svelte';\r\n\r\n const defaultLabels = {\r\n passwordStrength: 'Password strength:',\r\n };\r\n\r\n interface Props {\r\n /** Password value */\r\n value?: string;\r\n /** Label text */\r\n label?: string;\r\n /** Placeholder text */\r\n placeholder?: string;\r\n /** Input name attribute */\r\n name?: string;\r\n /** Input id attribute */\r\n id?: string;\r\n /** Whether the field is required */\r\n required?: boolean;\r\n /**\r\n * Opt out of the component's built-in `required` validation so the\r\n * consumer owns validation entirely (e.g. a Zod schema on the form).\r\n * When `true`, the `required` constraint is NOT forwarded to the\r\n * underlying field (no `aria-required`, no required asterisk). The\r\n * visual error/hint still render via `error`/`hint`. Defaults to\r\n * `false`, preserving the existing built-in behavior exactly.\r\n */\r\n disableBuiltInValidation?: boolean;\r\n /** Whether the field is disabled */\r\n disabled?: boolean;\r\n /** Error message to display */\r\n error?: string;\r\n /** Hint text shown below input */\r\n hint?: string;\r\n /** Show password strength indicator */\r\n showStrength?: boolean;\r\n /** Size variant */\r\n size?: 'sm' | 'md' | 'lg';\r\n /** Minimum password length */\r\n minlength?: number | null;\r\n /** Maximum password length */\r\n maxlength?: number | null;\r\n /** Autocomplete attribute */\r\n autocomplete?: string;\r\n /** Whether to show the password toggle button */\r\n showPasswordToggle?: boolean;\r\n /** Additional class for the wrapper div */\r\n class?: string;\r\n // Optional callbacks (matching Input component signatures)\r\n // eslint-disable-next-line no-unused-vars -- intentionally retained (prop/slot/forward-compat or Svelte-5 reactive binding eslint cannot see)\n oninput?: (value: string) => void;\r\n onblur?: () => void;\r\n onfocus?: () => void;\r\n /** Override user-visible strings */\r\n labels?: Partial<typeof defaultLabels>;\r\n }\r\n\r\n let {\r\n value = $bindable(''),\r\n label = '',\r\n placeholder = '',\r\n name = '',\r\n id = '',\r\n required = false,\r\n disableBuiltInValidation = false,\r\n disabled = false,\r\n error = '',\r\n hint = '',\r\n showStrength = false,\r\n size = 'md',\r\n minlength = null,\r\n maxlength = null,\r\n autocomplete = 'new-password',\r\n showPasswordToggle = true,\r\n class: className = '',\r\n oninput,\r\n onblur,\r\n onfocus,\r\n labels: userLabels = {},\r\n }: Props = $props();\r\n\r\n let labels = $derived({ ...defaultLabels, ...userLabels });\r\n\r\n // When the consumer opts out of built-in validation, do NOT forward the\r\n // `required` constraint to the underlying field — the consuming form owns\r\n // validation entirely. Default (false) forwards `required` as-is, exactly\r\n // preserving existing behavior.\r\n let effectiveRequired = $derived(disableBuiltInValidation ? false : required);\r\n\r\n // Password strength tracking\r\n let strengthScore = $state(-1);\r\n let strengthText = $state('');\r\n let strengthColor = $state('');\r\n</script>\r\n\r\n<div class={className}>\r\n <Input\r\n type=\"password\"\r\n {id}\r\n {name}\r\n {placeholder}\r\n {label}\r\n required={effectiveRequired}\r\n {disabled}\r\n {size}\r\n {minlength}\r\n {maxlength}\r\n {autocomplete}\r\n {showPasswordToggle}\r\n errorText={error}\r\n hintText={hint}\r\n bind:value\r\n oninputchange={oninput}\r\n {onblur}\r\n {onfocus}\r\n />\r\n\r\n {#if showStrength && value}\r\n <PasswordStrengthIndicator\r\n password={value}\r\n bind:score={strengthScore}\r\n bind:strengthText\r\n bind:textColor={strengthColor}\r\n >\r\n <p class=\"text-xs {strengthColor}\">\r\n {labels.passwordStrength} {strengthText}\r\n </p>\r\n </PasswordStrengthIndicator>\r\n {/if}\r\n</div>\r\n","<!-- native-element-exception: VC is an embeddable widget — native <button>s are intentional here (widget-controlled styling on calendar cells, date selectors, checkout/nav CTAs). -->\r\n<!-- @route-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n\timport { onMount, onDestroy } from 'svelte';\r\n\timport { goto } from '$app/navigation';\r\n\timport EventExperience from '$lib/public-calendar-flow/Event.svelte';\r\n\timport { transformCollectionData } from '$lib/public-calendar-flow/transform';\r\n\timport { fetchPublicCollection } from '$lib/api/events';\r\n\timport type { PublicCollectionData } from '$lib/api/types';\r\n\timport { createLogger, PasswordInput } from '@getmicdrop/svelte-components';\r\n\r\n\tconst logger = createLogger('CollectionView');\r\n\r\n\t// --- Legacy fallback ---\r\n\t// RETIREMENT: 2026-08-13 — see docs/LEGACY_RETIREMENT.md.\r\n\tlet useLegacy = $state(false);\r\n\tlet LegacyComponent: any = $state(null);\r\n\r\n\tif (typeof window !== 'undefined') {\r\n\t\tconst params = new URLSearchParams(window.location.search);\r\n\t\tif (params.get('legacy') === '1') {\r\n\t\t\tuseLegacy = true;\r\n\t\t}\r\n\t}\r\n\r\n\t$effect(() => {\r\n\t\tif (useLegacy && !LegacyComponent) {\r\n\t\t\tlogger.warn(\r\n\t\t\t\t'[VC] DEPRECATED: ?legacy=1 fallback for CollectionView retires on 2026-08-13. See docs/LEGACY_RETIREMENT.md.'\r\n\t\t\t);\r\n\t\t\timport('./CollectionView.legacy.svelte').then((m) => {\r\n\t\t\t\tLegacyComponent = m.default;\r\n\t\t\t}).catch(() => {\r\n\t\t\t\tuseLegacy = false;\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\r\n\t// --- Props (matches old CollectionView external interface) ---\r\n\tinterface Props {\r\n\t\tcollectionId: string | number;\r\n\t\torganizationId?: string;\r\n\t\tonNavigateToEvent?: (id: number, slug: string) => void;\r\n\t\tpassword?: string;\r\n\t\tdisplayMode?: string;\r\n\t\tshowViewSwitcher?: boolean;\r\n\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet {\r\n\t\tcollectionId,\r\n\t\torganizationId = '',\r\n\t\tonNavigateToEvent = undefined,\r\n\t\tpassword = undefined,\r\n\t\tdisplayMode = 'gallery',\r\n\t\tshowViewSwitcher = true,\r\n\t\tlabels = {},\r\n\t}: Props = $props();\r\n\r\n\t// --- State ---\r\n\tlet collection = $state<PublicCollectionData | null>(null);\r\n\tlet isLoading = $state(true);\r\n\tlet error = $state<string | null>(null);\r\n\tlet isMounted = $state(false);\r\n\tlet passwordRequired = $state(false);\r\n\tlet passwordInput = $state('');\r\n\tlet passwordError = $state(false);\r\n\r\n\t// --- Derived ---\r\n\tlet eventData = $derived(collection ? transformCollectionData(collection) : null);\r\n\r\n\t// --- Load collection data ---\r\n\tasync function loadCollection(pwd?: string): Promise<void> {\r\n\t\tif (!isMounted) return;\r\n\t\tif (!collectionId) {\r\n\t\t\terror = labels.noCollectionIdProvided || 'No collection ID provided';\r\n\t\t\tisLoading = false;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tisLoading = true;\r\n\t\terror = null;\r\n\t\tpasswordError = false;\r\n\r\n\t\ttry {\r\n\t\t\tconst data = await fetchPublicCollection(collectionId, pwd);\r\n\t\t\tif (!isMounted) return;\r\n\r\n\t\t\tif (data) {\r\n\t\t\t\tif ((data as any).passwordRequired || (data as any).error?.code === 'PASSWORD_REQUIRED') {\r\n\t\t\t\t\tpasswordRequired = true;\r\n\t\t\t\t\tisLoading = false;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tcollection = data;\r\n\t\t\t\tpasswordRequired = false;\r\n\t\t\t} else {\r\n\t\t\t\tif (pwd) {\r\n\t\t\t\t\tpasswordRequired = true;\r\n\t\t\t\t\tpasswordError = true;\r\n\t\t\t\t\tisLoading = false;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\terror = labels.failedToLoadCollection || 'Failed to load collection';\r\n\t\t\t}\r\n\t\t} catch (err: any) {\r\n\t\t\tif (isMounted) {\r\n\t\t\t\tconst msg = err.message || '';\r\n\t\t\t\tif (msg.includes('401') || msg.includes('403') || msg.includes('password')) {\r\n\t\t\t\t\tpasswordRequired = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\terror = msg || labels.failedToLoadCollection || 'Failed to load collection';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif (isMounted) {\r\n\t\t\t\tisLoading = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction handlePasswordSubmit(e: Event): void {\r\n\t\te.preventDefault();\r\n\t\tif (!passwordInput.trim()) return;\r\n\t\tloadCollection(passwordInput);\r\n\t}\r\n\r\n\tfunction handleCollectionEventClick(galleryEvent: { id?: number | string; slug: string }): void {\r\n\t\tif (onNavigateToEvent && galleryEvent.id) {\r\n\t\t\tonNavigateToEvent(Number(galleryEvent.id), galleryEvent.slug);\r\n\t\t} else {\r\n\t\t\t// @url-builder-escape: widget-internal route; SC's url-builders cover /a admin paths, not embedded calendar navigation.\r\n\t\t\tgoto(`/${galleryEvent.id}/${galleryEvent.slug}`);\r\n\t\t}\r\n\t}\r\n\r\n\t// --- Lifecycle ---\r\n\tonMount(() => {\r\n\t\tisMounted = true;\r\n\t\tloadCollection(password);\r\n\t});\r\n\r\n\tonDestroy(() => {\r\n\t\tisMounted = false;\r\n\t});\r\n</script>\r\n\r\n{#if useLegacy && LegacyComponent}\r\n\t<svelte:component this={LegacyComponent}\r\n\t\t{collectionId}\r\n\t\t{organizationId}\r\n\t\t{onNavigateToEvent}\r\n\t\t{password}\r\n\t\t{displayMode}\r\n\t\t{showViewSwitcher}\r\n\t\t{labels}\r\n\t/>\r\n{:else if isLoading}\r\n\t<div class=\"flex items-center justify-center py-12 text-center loading-container\">\r\n\t\t<p>{labels.loadingCollection || 'Loading collection...'}</p>\r\n\t</div>\r\n{:else if passwordRequired}\r\n\t<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\">\r\n\t\t<div class=\"password-card rounded-lg p-8 max-w-sm w-full\">\r\n\t\t\t<h2 class=\"password-title text-xl font-bold mb-2\">{labels.collectionPrivateTitle || 'This collection is private'}</h2>\r\n\t\t\t<p class=\"password-description text-sm mb-6\">{labels.collectionPrivateDescription || 'Please enter the password to view this collection.'}</p>\r\n\t\t\t<form onsubmit={handlePasswordSubmit} class=\"flex flex-col gap-3\">\r\n\t\t\t\t<PasswordInput\r\n\t\t\t\t\tbind:value={passwordInput}\r\n\t\t\t\t\tplaceholder={labels.enterPassword || \"Enter password\"}\r\n\t\t\t\t\terror={passwordError ? (labels.incorrectPassword || 'Incorrect password. Please try again.') : ''}\r\n\t\t\t\t/>\r\n\t\t\t\t<button type=\"submit\" class=\"password-submit px-4 py-2 rounded-lg text-sm font-semibold\">{labels.viewCollection || 'View Collection'}</button>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t</div>\r\n{:else if error}\r\n\t<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\">\r\n\t\t<p class=\"error-text\">{labels.errorPrefix || 'Error:'} {error}</p>\r\n\t</div>\r\n{:else if eventData}\r\n\t<EventExperience\r\n\t\tevent={eventData}\r\n\t\tonCollectionEventClick={handleCollectionEventClick}\r\n\t/>\r\n{/if}\r\n\r\n<style>\r\n\t.loading-container {\r\n\t\tcolor: hsl(var(--text-secondary, 215 16% 47%));\r\n\t}\r\n\r\n\t.error-text {\r\n\t\tcolor: hsl(var(--status-sold-out, 0 72% 51%));\r\n\t}\r\n\r\n\t.password-card {\r\n\t\tbackground: hsl(var(--surface-primary, 0 0% 100%));\r\n\t\tbox-shadow: 0 2px 10px color-mix(in srgb, black 10%, transparent);\r\n\t}\r\n\r\n\t.password-title {\r\n\t\tcolor: hsl(var(--text-primary, 0 0% 10%));\r\n\t}\r\n\r\n\t.password-description {\r\n\t\tcolor: hsl(var(--text-secondary, 0 0% 45%));\r\n\t}\r\n\r\n\t.password-submit {\r\n\t\tbackground: hsl(var(--brand-primary, 220 90% 56%));\r\n\t\tcolor: hsl(var(--text-on-primary, 0 0% 100%));\r\n\t}\r\n\r\n\t.password-submit:hover {\r\n\t\tfilter: brightness(0.95);\r\n\t}\r\n</style>"],"names":["defaultLabels","password","$","$$props","strengthText","score","textColor","userLabels","labels","debouncedPassword","timer","strengthFn","loadStrengthModule","lazyOnce","ensureStrengthFn","m","customOptions","strength","computedScore","newScore","untrack","computedStrengthText","computedTextColor","newText","strengthColor","newColor","filledBars","div","root_1","div_1","barIndex","div_2","root","cubicOut","$$render","consequent","value","label","placeholder","name","id","required","disableBuiltInValidation","disabled","error","hint","showStrength","size","minlength","maxlength","autocomplete","showPasswordToggle","className","effectiveRequired","strengthScore","Input","node","$$value","PasswordStrengthIndicator","$$anchor","p","logger","createLogger","useLegacy","LegacyComponent","organizationId","onNavigateToEvent","displayMode","showViewSwitcher","collection","isLoading","isMounted","passwordRequired","passwordInput","passwordError","eventData","transformCollectionData","loadCollection","pwd","data","fetchPublicCollection","err","msg","handlePasswordSubmit","e","handleCollectionEventClick","galleryEvent","goto","onMount","onDestroy","$$component","h2","p_1","form","PasswordInput","node_2","button","div_3","root_2","p_2","text_4","EventExperience","consequent_2","consequent_3","consequent_4"],"mappings":";;;;;;;;;kBAAA;;AAOI,QAAMA,IAAa;AAAA,IACjB,SAAS;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,QAAQ;AAAA;AAYV,MACEC,IAAQC,EAAA,KAAAC,GAAA,YAAA,GAAG,EAAE,GACbC,kCAAyB,EAAE,GAC3BC,mCAAoB,GACpBC,+BAAsB,EAAE,GAEhBC,IAAUL,EAAA,KAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA,GAGhBK,IAAMN,EAAA,QAAA,OAAA,EAAA,GAAiBF,GAAa,GAAKO,EAAU,EAAA,EAAA,GAEnDE,IAAoBP,EAAA,MAAO,EAAE,GAE7BQ,GASAC,IAA+ET,EAAA,MAAO,IAAI;AAC9F,QAAMU,IAAqBC,EAAQ,MAAO,OAAO,qBAAyB,CAAA;AAC1E,WAASC,IAAmB;AACnB,IAAAF,EAAkB,EAClB,KAAI,CAAEG,MAAM;YACTJ,GAAaI,EAAE,kBAAgB,EAAA;AAAA,IACnC,CAAC,EACA,MAAK,MAAO;AAAA,IAGb,CAAC;AAAA,EACT;AAKA,EAAAb,EAAA,kBAAc;AACV,IAAID,EAAQ,KAAA,CAAAC,EAAA,IAAKS,CAAU,KAAEG,EAAgB;AAAA,EACjD,CAAC;AAED,MAAIE,IAAad,EAAA,QAAA,MAAA;AAAA;MAET,IAAI;AAAA,MACJ,O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EAAA,IAUvBoE,CAAS,oBAITE,CAAgB,IAAAtC,EAAAoE,GAAA,CAAA,IAAApG,EAAA,IAehB0C,CAAK,IAAAV,EAAAqE,GAAA,CAAA,IAAArG,EAAA,IAILyE,CAAS,KAAAzC,EAAAsE,GAAA,CAAA;AAAA;;;AAnCX;;;;;","x_google_ignoreList":[0,1]}
@@ -1,18 +1,15 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
3
  import { onMount as le, onDestroy as oe } from "svelte";
4
- import { a2 as ne, as as ce, aT as de, at as ve, aV as ge } from "./VenueCalendar-D9TCV_XB.js";
5
- import "svelte/internal/flags/legacy";
6
- import "svelte/transition";
7
- import "svelte/easing";
8
- import "svelte/reactivity";
9
- import { g as S } from "./transform-CWf-YI_e.js";
10
- import { G as ue } from "./GalleryCard-CTsYUZu6.js";
11
- import me from "./GroupedListView.legacy-DMAwHQ9T.js";
4
+ import { a6 as ne, au as ce, aN as de, aP as ve } from "./VenueCalendar-d8u6MKEu.js";
5
+ import { g as S } from "./transform-D7Oe8jUp.js";
6
+ import { G as ge } from "./GalleryCard-C1EKGErR.js";
7
+ import ue from "./GroupedListView.legacy-D72fbNfA.js";
8
+ import { P as me } from "./CollectionView-C1O9xfVC.js";
12
9
  var fe = e.from_html('<div class="password-container svelte-q3tjav"><div class="password-card svelte-q3tjav"><h2 class="password-title svelte-q3tjav"> </h2> <p class="password-description svelte-q3tjav"> </p> <form class="password-form svelte-q3tjav"><!> <button type="submit" class="password-submit svelte-q3tjav"> </button></form></div></div>'), pe = e.from_html('<div class="error-container svelte-q3tjav"><p class="error-text svelte-q3tjav"> </p></div>'), he = e.from_html('<div class="cover-image svelte-q3tjav"><div class="cover-blur svelte-q3tjav"></div> <img class="svelte-q3tjav"/></div>'), _e = e.from_html('<p class="collection-summary svelte-q3tjav"> </p>'), we = e.from_html('<div class="collection-description svelte-q3tjav"> </div>'), ye = e.from_html('<div class="view-switcher svelte-q3tjav" role="group"><button type="button"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect></svg></button> <button type="button"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg></button></div>'), be = e.from_html('<div class="events-grid svelte-q3tjav"></div>'), xe = e.from_html('<!> <div class="collection-header svelte-q3tjav"><h1 class="collection-title svelte-q3tjav"> </h1> <!> <!></div> <div class="events-section svelte-q3tjav"><div class="events-section-header svelte-q3tjav"><h2 class="events-heading svelte-q3tjav"> </h2> <!></div> <!></div>', 1), Te = e.from_html('<div class="collection-view svelte-q3tjav"><!></div>');
13
- function Ve(G, c) {
10
+ function Ie(G, c) {
14
11
  e.push(c, !0), e.prop(c, "organizationId", 3, "");
15
- let M = e.prop(c, "password", 3, void 0), U = e.prop(c, "displayMode", 3, "gallery"), N = e.prop(c, "showViewSwitcher", 3, !0), o = e.prop(c, "labels", 19, () => ({})), n = e.state(null), f = e.state(!0), p = e.state(null), h = e.state(!1), w = e.state(!1), k = e.state(""), E = e.state(!1), d = e.state(e.proxy(U()));
12
+ let M = e.prop(c, "password", 3, void 0), N = e.prop(c, "displayMode", 3, "gallery"), U = e.prop(c, "showViewSwitcher", 3, !0), o = e.prop(c, "labels", 19, () => ({})), n = e.state(null), f = e.state(!0), p = e.state(null), h = e.state(!1), w = e.state(!1), k = e.state(""), E = e.state(!1), d = e.state(e.proxy(N()));
16
13
  function A(t) {
17
14
  return {
18
15
  id: t.id,
@@ -45,7 +42,7 @@ function Ve(G, c) {
45
42
  const i = new Date(t);
46
43
  return ne(i, { hour: "numeric", minute: "2-digit", hour12: !0 });
47
44
  }
48
- let y = e.derived(() => e.get(n) ? W(e.get(n).events || []) : []), O = e.derived(() => e.get(y).map(A)), z = e.derived(() => e.get(y).map(B)), Q = e.derived(() => N() && e.get(y).length >= 2);
45
+ let y = e.derived(() => e.get(n) ? W(e.get(n).events || []) : []), O = e.derived(() => e.get(y).map(A)), z = e.derived(() => e.get(y).map(B)), Q = e.derived(() => U() && e.get(y).length >= 2);
49
46
  function W(t) {
50
47
  return [...t].sort((i, l) => !i.startDateTime && !l.startDateTime ? 0 : i.startDateTime ? l.startDateTime ? new Date(i.startDateTime).getTime() - new Date(l.startDateTime).getTime() : -1 : 1);
51
48
  }
@@ -96,19 +93,19 @@ function Ve(G, c) {
96
93
  }), oe(() => {
97
94
  e.set(h, !1);
98
95
  });
99
- var C = Te(), J = e.child(C);
96
+ var P = Te(), J = e.child(P);
100
97
  {
101
98
  var K = (t) => {
102
99
  de(t, { type: "gallery" });
103
100
  }, X = (t) => {
104
101
  var i = fe(), l = e.child(i), v = e.child(l), b = e.child(v, !0);
105
102
  e.reset(v);
106
- var g = e.sibling(v, 2), P = e.child(g, !0);
103
+ var g = e.sibling(v, 2), C = e.child(g, !0);
107
104
  e.reset(g);
108
105
  var _ = e.sibling(g, 2), D = e.child(_);
109
106
  {
110
107
  let q = e.derived(() => o().enterPassword || "Enter password"), x = e.derived(() => e.get(E) ? o().incorrectPassword || "Incorrect password. Please try again." : "");
111
- ve(D, {
108
+ me(D, {
112
109
  get placeholder() {
113
110
  return e.get(q);
114
111
  },
@@ -126,7 +123,7 @@ function Ve(G, c) {
126
123
  }
127
124
  var j = e.sibling(D, 2), I = e.child(j, !0);
128
125
  e.reset(j), e.reset(_), e.reset(l), e.reset(i), e.template_effect(() => {
129
- e.set_text(b, o().collectionPrivateTitle || "This collection is private"), e.set_text(P, o().collectionPrivateDescription || "Please enter the password to view this collection."), e.set_text(I, o().viewCollection || "View Collection");
126
+ e.set_text(b, o().collectionPrivateTitle || "This collection is private"), e.set_text(C, o().collectionPrivateDescription || "Please enter the password to view this collection."), e.set_text(I, o().viewCollection || "View Collection");
130
127
  }), e.event("submit", _, H), e.append(t, i);
131
128
  }, Y = (t) => {
132
129
  var i = pe(), l = e.child(i), v = e.child(l);
@@ -145,7 +142,7 @@ function Ve(G, c) {
145
142
  e.get(n).coverImage && r(v);
146
143
  });
147
144
  }
148
- var b = e.sibling(l, 2), g = e.child(b), P = e.child(g, !0);
145
+ var b = e.sibling(l, 2), g = e.child(b), C = e.child(g, !0);
149
146
  e.reset(g);
150
147
  var _ = e.sibling(g, 2);
151
148
  {
@@ -195,7 +192,7 @@ function Ve(G, c) {
195
192
  var re = (r) => {
196
193
  {
197
194
  let a = e.derived(() => o().noUpcomingEvents || "No upcoming events"), s = e.derived(() => o().noUpcomingEventsSubtext || "There are no events in this collection right now. Check back soon!");
198
- ge(r, {
195
+ ve(r, {
199
196
  get message() {
200
197
  return e.get(a);
201
198
  },
@@ -205,7 +202,7 @@ function Ve(G, c) {
205
202
  });
206
203
  }
207
204
  }, ae = (r) => {
208
- me(r, {
205
+ ue(r, {
209
206
  get events() {
210
207
  return e.get(z);
211
208
  },
@@ -215,7 +212,7 @@ function Ve(G, c) {
215
212
  }, se = (r) => {
216
213
  var a = be();
217
214
  e.each(a, 21, () => e.get(O), (s) => s.id, (s, u) => {
218
- ue(s, {
215
+ ge(s, {
219
216
  get event() {
220
217
  return e.get(u);
221
218
  },
@@ -224,21 +221,21 @@ function Ve(G, c) {
224
221
  }), e.reset(a), e.append(r, a);
225
222
  };
226
223
  e.if(ie, (r) => {
227
- e.get(y).length === 0 ? r(re) : e.get(d) === "list" ? r(ae, 1) : r(se, !1);
224
+ e.get(y).length === 0 ? r(re) : e.get(d) === "list" ? r(ae, 1) : r(se, -1);
228
225
  });
229
226
  }
230
227
  e.reset(q), e.template_effect(() => {
231
- e.set_text(P, e.get(n).collectionTitle), e.set_text($, `Events (${e.get(y).length ?? ""})`);
228
+ e.set_text(C, e.get(n).collectionTitle), e.set_text($, `Events (${e.get(y).length ?? ""})`);
232
229
  }), e.append(t, i);
233
230
  };
234
231
  e.if(J, (t) => {
235
232
  e.get(f) ? t(K) : e.get(w) ? t(X, 1) : e.get(p) ? t(Y, 2) : e.get(n) && t(Z, 3);
236
233
  });
237
234
  }
238
- e.reset(C), e.append(G, C), e.pop();
235
+ e.reset(P), e.append(G, P), e.pop();
239
236
  }
240
237
  e.delegate(["click"]);
241
238
  export {
242
- Ve as default
239
+ Ie as default
243
240
  };
244
- //# sourceMappingURL=CollectionView.legacy-Dw-J6Ycd.js.map
241
+ //# sourceMappingURL=CollectionView.legacy-DK_mCA_g.js.map