@getmicdrop/venue-calendar 4.0.80 → 4.0.82

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 (117) hide show
  1. package/README.md +173 -128
  2. package/dist/{CarouselView.legacy-D2EY3K5p.js → CarouselView.legacy-DAixPl6l.js} +3 -3
  3. package/dist/{CarouselView.legacy-D2EY3K5p.js.map → CarouselView.legacy-DAixPl6l.js.map} +1 -1
  4. package/dist/{CartView-CXsAlVHs.js → CartView-CsdqWB24.js} +277 -280
  5. package/dist/CartView-CsdqWB24.js.map +1 -0
  6. package/dist/Checkout-B15JygVy.js +1673 -0
  7. package/dist/Checkout-B15JygVy.js.map +1 -0
  8. package/dist/{Checkout-Bj85hSlQ.js → Checkout-CUwOrErt.js} +69 -73
  9. package/dist/Checkout-CUwOrErt.js.map +1 -0
  10. package/dist/{Checkout.legacy-D4Uh3sQB.js → Checkout.legacy-CrFgAYYe.js} +77 -81
  11. package/dist/{Checkout.legacy-D4Uh3sQB.js.map → Checkout.legacy-CrFgAYYe.js.map} +1 -1
  12. package/dist/CheckoutTimer-qLOtPDt3.js +141 -0
  13. package/dist/CheckoutTimer-qLOtPDt3.js.map +1 -0
  14. package/dist/CollectionView-D2bRelLR.js +338 -0
  15. package/dist/CollectionView-D2bRelLR.js.map +1 -0
  16. package/dist/{CollectionView.legacy-CsBYjvZv.js → CollectionView.legacy-DLb5fzi-.js} +25 -28
  17. package/dist/{CollectionView.legacy-CsBYjvZv.js.map → CollectionView.legacy-DLb5fzi-.js.map} +1 -1
  18. package/dist/Event-DZpU-Ec1.js +2240 -0
  19. package/dist/Event-DZpU-Ec1.js.map +1 -0
  20. package/dist/EventPage-CL0yuKWZ.js +577 -0
  21. package/dist/EventPage-CL0yuKWZ.js.map +1 -0
  22. package/dist/{EventPage.legacy-DDVZNT-7.js → EventPage.legacy-EujdNc3A.js} +408 -411
  23. package/dist/{EventPage.legacy-DDVZNT-7.js.map → EventPage.legacy-EujdNc3A.js.map} +1 -1
  24. package/dist/{FeaturedView.legacy-BfOfYXRN.js → FeaturedView.legacy-CbLBD-tn.js} +19 -19
  25. package/dist/{FeaturedView.legacy-BfOfYXRN.js.map → FeaturedView.legacy-CbLBD-tn.js.map} +1 -1
  26. package/dist/{GalleryCard-CZkN5_Jb.js → GalleryCard-BcIcYghD.js} +14 -14
  27. package/dist/{GalleryCard-CZkN5_Jb.js.map → GalleryCard-BcIcYghD.js.map} +1 -1
  28. package/dist/{GalleryView.legacy-CziaM40i.js → GalleryView.legacy-XpQUg-5_.js} +3 -3
  29. package/dist/{GalleryView.legacy-CziaM40i.js.map → GalleryView.legacy-XpQUg-5_.js.map} +1 -1
  30. package/dist/{GroupedListView.legacy-CPy5md80.js → GroupedListView.legacy-qvwIV5Qm.js} +18 -18
  31. package/dist/{GroupedListView.legacy-CPy5md80.js.map → GroupedListView.legacy-qvwIV5Qm.js.map} +1 -1
  32. package/dist/Heading-5CT9Nk0b.js +81 -0
  33. package/dist/Heading-5CT9Nk0b.js.map +1 -0
  34. package/dist/ModalHeader-CGaXzdcs.js +22 -0
  35. package/dist/ModalHeader-CGaXzdcs.js.map +1 -0
  36. package/dist/OrderSummarySkeleton-pqfhjvKT.js +632 -0
  37. package/dist/OrderSummarySkeleton-pqfhjvKT.js.map +1 -0
  38. package/dist/{ScarcityBadge-Bungh7jy.js → ScarcityBadge-BkRFHRif.js} +24 -28
  39. package/dist/{ScarcityBadge-Bungh7jy.js.map → ScarcityBadge-BkRFHRif.js.map} +1 -1
  40. package/dist/{SeriesPage-BzyObY3_.js → SeriesPage-NWCA_Aez.js} +17 -21
  41. package/dist/{SeriesPage-BzyObY3_.js.map → SeriesPage-NWCA_Aez.js.map} +1 -1
  42. package/dist/{SeriesPage.legacy-BA00IzDL.js → SeriesPage.legacy-BXSwM5jV.js} +70 -74
  43. package/dist/{SeriesPage.legacy-BA00IzDL.js.map → SeriesPage.legacy-BXSwM5jV.js.map} +1 -1
  44. package/dist/{Success-NB1gahZr.js → Success-B4CM_cy1.js} +186 -175
  45. package/dist/{Success-NB1gahZr.js.map → Success-B4CM_cy1.js.map} +1 -1
  46. package/dist/{Success.legacy-D6cvUMzi.js → Success.legacy-BWAmPmZz.js} +58 -62
  47. package/dist/{Success.legacy-D6cvUMzi.js.map → Success.legacy-BWAmPmZz.js.map} +1 -1
  48. package/dist/Text-WY42WIKI.js +158 -0
  49. package/dist/Text-WY42WIKI.js.map +1 -0
  50. package/dist/{VenueCalendar-CISH7WGT.js → VenueCalendar-DMSeDRSN.js} +8138 -22881
  51. package/dist/VenueCalendar-DMSeDRSN.js.map +1 -0
  52. package/dist/ViewTicketsEmbed-AlVzNvxE.js +2081 -0
  53. package/dist/ViewTicketsEmbed-AlVzNvxE.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-ChzBkXfo.js +6 -0
  71. package/dist/{api-BV4wcElQ.js.map → api-ChzBkXfo.js.map} +1 -1
  72. package/dist/colors-CmP-sSZD.js.map +1 -1
  73. package/dist/{data-toggle-store.svelte-DU0VWdcf.js → data-toggle-store.svelte-CtW4s3Vw.js} +6 -6
  74. package/dist/{data-toggle-store.svelte-DU0VWdcf.js.map → data-toggle-store.svelte-CtW4s3Vw.js.map} +1 -1
  75. package/dist/index-BsWecoW1.js +63 -0
  76. package/dist/index-BsWecoW1.js.map +1 -0
  77. package/dist/labels-BB1JG19g.js +966 -0
  78. package/dist/labels-BB1JG19g.js.map +1 -0
  79. package/dist/transform-BlXf-shc.js +276 -0
  80. package/dist/transform-BlXf-shc.js.map +1 -0
  81. package/dist/types/index.d.ts +45 -0
  82. package/dist/venue-calendar.css +1 -1
  83. package/dist/venue-calendar.es.js +31 -37
  84. package/dist/venue-calendar.es.js.map +1 -1
  85. package/dist/venue-calendar.iife.js +40 -107
  86. package/dist/venue-calendar.iife.js.map +1 -1
  87. package/dist/venue-calendar.umd.js +38 -125
  88. package/dist/venue-calendar.umd.js.map +1 -1
  89. package/package.json +170 -168
  90. package/dist/CartView-CXsAlVHs.js.map +0 -1
  91. package/dist/Checkout-BPAkGlf6.js +0 -1531
  92. package/dist/Checkout-BPAkGlf6.js.map +0 -1
  93. package/dist/Checkout-Bj85hSlQ.js.map +0 -1
  94. package/dist/CheckoutTimer-CSc35x4t.js +0 -35
  95. package/dist/CheckoutTimer-CSc35x4t.js.map +0 -1
  96. package/dist/CollectionView-BitCEQzn.js +0 -148
  97. package/dist/CollectionView-BitCEQzn.js.map +0 -1
  98. package/dist/Event-BAKC5X6r.js +0 -1910
  99. package/dist/Event-BAKC5X6r.js.map +0 -1
  100. package/dist/EventPage-DxiAuBVc.js +0 -336
  101. package/dist/EventPage-DxiAuBVc.js.map +0 -1
  102. package/dist/Heading-AFd3o0xt.js +0 -44
  103. package/dist/Heading-AFd3o0xt.js.map +0 -1
  104. package/dist/OrderSummarySkeleton-dDKUH741.js +0 -16
  105. package/dist/OrderSummarySkeleton-dDKUH741.js.map +0 -1
  106. package/dist/Text-CXR2fhx6.js +0 -54
  107. package/dist/Text-CXR2fhx6.js.map +0 -1
  108. package/dist/VenueCalendar-CISH7WGT.js.map +0 -1
  109. package/dist/ViewTicketsEmbed-Bo16Y0sx.js +0 -2039
  110. package/dist/ViewTicketsEmbed-Bo16Y0sx.js.map +0 -1
  111. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js +0 -7
  112. package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js.map +0 -1
  113. package/dist/api-BV4wcElQ.js +0 -12
  114. package/dist/labels-B2ebkcUD.js +0 -659
  115. package/dist/labels-B2ebkcUD.js.map +0 -1
  116. package/dist/transform-B3tJXUnG.js +0 -275
  117. package/dist/transform-B3tJXUnG.js.map +0 -1
@@ -0,0 +1,141 @@
1
+ import "svelte/internal/disclose-version";
2
+ import * as e from "svelte/internal/client";
3
+ import { M as R, a as U, b as j, c as y, d as B, ap as F } from "./VenueCalendar-DMSeDRSN.js";
4
+ import { M as H } from "./ModalHeader-CGaXzdcs.js";
5
+ import { T as O } from "./Text-WY42WIKI.js";
6
+ var q = e.from_html("<!> <!> <!> <!>", 1), w = e.from_html("<!> <!>", 1);
7
+ function K(u, t) {
8
+ e.push(t, !0);
9
+ let c = e.prop(t, "open", 15, !1);
10
+ e.prop(t, "isProcessing", 3, !1), e.prop(t, "isSuccess", 3, !1);
11
+ let h = e.prop(t, "size", 3, "md"), s = e.prop(t, "persistent", 3, !1), f = e.prop(t, "haptic", 3, !0), m = e.prop(t, "variant", 3, "sheet");
12
+ R(u, {
13
+ get size() {
14
+ return h();
15
+ },
16
+ get persistent() {
17
+ return s();
18
+ },
19
+ get haptic() {
20
+ return f();
21
+ },
22
+ get oncancel() {
23
+ return t.oncancel;
24
+ },
25
+ get variant() {
26
+ return m();
27
+ },
28
+ get class() {
29
+ return t.class;
30
+ },
31
+ get "aria-labelledby"() {
32
+ return t["aria-labelledby"];
33
+ },
34
+ get open() {
35
+ return c();
36
+ },
37
+ set open(i) {
38
+ c(i);
39
+ },
40
+ children: (i, v) => {
41
+ var o = w(), d = e.first_child(o);
42
+ U(d, {});
43
+ var P = e.sibling(d, 2);
44
+ j(P, {
45
+ children: (x, D) => {
46
+ var _ = q(), g = e.first_child(_);
47
+ {
48
+ var z = (r) => {
49
+ H(r, {
50
+ children: (n, p) => {
51
+ var a = e.comment(), l = e.first_child(a);
52
+ e.snippet(l, () => t.header), e.append(n, a);
53
+ },
54
+ $$slots: { default: !0 }
55
+ });
56
+ };
57
+ e.if(g, (r) => {
58
+ t.header && r(z);
59
+ });
60
+ }
61
+ var b = e.sibling(g, 2);
62
+ {
63
+ var S = (r) => {
64
+ y(r, {
65
+ children: (n, p) => {
66
+ var a = e.comment(), l = e.first_child(a);
67
+ e.snippet(l, () => t.body), e.append(n, a);
68
+ },
69
+ $$slots: { default: !0 }
70
+ });
71
+ };
72
+ e.if(b, (r) => {
73
+ t.body && r(S);
74
+ });
75
+ }
76
+ var M = e.sibling(b, 2);
77
+ {
78
+ var T = (r) => {
79
+ y(r, {
80
+ children: (n, p) => {
81
+ var a = e.comment(), l = e.first_child(a);
82
+ e.snippet(l, () => t.children), e.append(n, a);
83
+ },
84
+ $$slots: { default: !0 }
85
+ });
86
+ };
87
+ e.if(M, (r) => {
88
+ t.children && r(T);
89
+ });
90
+ }
91
+ var C = e.sibling(M, 2);
92
+ {
93
+ var k = (r) => {
94
+ B(r, {
95
+ children: (n, p) => {
96
+ var a = e.comment(), l = e.first_child(a);
97
+ e.snippet(l, () => t.footer), e.append(n, a);
98
+ },
99
+ $$slots: { default: !0 }
100
+ });
101
+ };
102
+ e.if(C, (r) => {
103
+ t.footer && r(k);
104
+ });
105
+ }
106
+ e.append(x, _);
107
+ },
108
+ $$slots: { default: !0 }
109
+ }), e.append(i, o);
110
+ },
111
+ $$slots: { default: !0 }
112
+ }), e.pop();
113
+ }
114
+ var A = e.from_html("<div><!> <!></div>");
115
+ function L(u, t) {
116
+ e.push(t, !0), e.prop(t, "labels", 19, () => ({}));
117
+ let c = e.derived(() => (() => {
118
+ const v = Math.floor(t.seconds / 60), o = t.seconds % 60;
119
+ return `${v.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
120
+ })()), h = e.derived(() => t.isUrgent ? "Complete soon" : "Reservation held");
121
+ var s = A();
122
+ let f;
123
+ var m = e.child(s);
124
+ F(m, { size: 16, class: "shrink-0" });
125
+ var i = e.sibling(m, 2);
126
+ O(i, {
127
+ size: "sm",
128
+ class: "font-medium tabular-nums",
129
+ children: (v, o) => {
130
+ e.next();
131
+ var d = e.text();
132
+ e.template_effect(() => e.set_text(d, `${e.get(h) ?? ""} · ${e.get(c) ?? ""}`)), e.append(v, d);
133
+ },
134
+ $$slots: { default: !0 }
135
+ }), e.reset(s), e.template_effect(() => f = e.set_class(s, 1, "timer-display text-color-secondary svelte-8jbi4g", null, f, { urgent: t.isUrgent })), e.append(u, s), e.pop();
136
+ }
137
+ export {
138
+ L as C,
139
+ K as M
140
+ };
141
+ //# sourceMappingURL=CheckoutTimer-qLOtPDt3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckoutTimer-qLOtPDt3.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/Modal.svelte","../src/lib/public-calendar-flow/CheckoutTimer.svelte"],"sourcesContent":["<script lang=\"ts\">\r\n /**\r\n * Legacy Modal API — backward-compatible wrapper around ModalRoot + ModalOverlay + ModalPanel.\r\n * Accepts the old flat API: bind:open, header/body/footer snippets, size, persistent, oncancel.\r\n * New code should use ModalRoot + ModalOverlay + ModalPanel directly.\r\n */\r\n import type { Snippet } from 'svelte';\r\n import ModalRoot from './ModalRoot.svelte';\r\n import ModalOverlay from './ModalOverlay.svelte';\r\n import ModalPanel from './ModalPanel.svelte';\r\n import ModalHeader from './ModalHeader.svelte';\r\n import ModalBody from './ModalBody.svelte';\r\n import ModalFooter from './ModalFooter.svelte';\r\n\r\n interface Props {\r\n open?: boolean;\r\n isProcessing?: boolean;\r\n isSuccess?: boolean;\r\n size?: 'sm' | 'md' | 'lg' | 'xl';\r\n persistent?: boolean;\r\n haptic?: boolean;\r\n oncancel?: () => void;\r\n header?: Snippet;\r\n body?: Snippet;\r\n footer?: Snippet;\r\n children?: Snippet;\r\n class?: string;\r\n 'aria-labelledby'?: string;\r\n /**\r\n * Layout variant. `'sheet'` (default) = bottom-sheet on mobile, centered\r\n * on md+. `'dialog'` = centered on all viewports. See ModalRoot for details.\r\n */\r\n variant?: 'sheet' | 'dialog';\r\n }\r\n\r\n let {\r\n open = $bindable(false),\r\n isProcessing: _isProcessing = false,\r\n isSuccess: _isSuccess = false,\r\n size = 'md',\r\n persistent = false,\r\n haptic = true,\r\n oncancel,\r\n header,\r\n body,\r\n footer,\r\n children,\r\n class: className,\r\n 'aria-labelledby': ariaLabelledby,\r\n variant = 'sheet',\r\n }: Props = $props();\r\n</script>\r\n\r\n<ModalRoot bind:open {size} {persistent} {haptic} {oncancel} {variant} class={className} aria-labelledby={ariaLabelledby}>\r\n <ModalOverlay />\r\n <ModalPanel>\r\n {#if header}<ModalHeader>{@render header()}</ModalHeader>{/if}\r\n {#if body}<ModalBody>{@render body()}</ModalBody>{/if}\r\n {#if children}<ModalBody>{@render children()}</ModalBody>{/if}\r\n {#if footer}<ModalFooter>{@render footer()}</ModalFooter>{/if}\r\n </ModalPanel>\r\n</ModalRoot>\r\n","<script lang=\"ts\">\r\n\timport { Time } from 'carbon-icons-svelte';\r\n\timport { Text } from '@getmicdrop/svelte-components';\r\n\r\n\tinterface Props {\r\n\t\tseconds: number;\r\n\t\tisUrgent: boolean;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { seconds, isUrgent, labels = {}, }: Props = $props();\r\n\r\n\tlet display = $derived((() => {\r\n\t\tconst m = Math.floor(seconds / 60);\r\n\t\tconst s = seconds % 60;\r\n\t\treturn `${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\r\n\t})());\r\n\r\n\tlet label = $derived(isUrgent ? 'Complete soon' : 'Reservation held');\r\n</script>\r\n\r\n<div class=\"timer-display text-color-secondary\" class:urgent={isUrgent}>\r\n\t<Time size={16} class=\"shrink-0\" />\r\n\t<Text size=\"sm\" class=\"font-medium tabular-nums\">\r\n\t\t{label} &middot; {display}\r\n\t</Text>\r\n</div>\r\n\r\n<style>\r\n\t.timer-display {\r\n\t\tdisplay: inline-flex;\r\n\t\talign-items: center;\r\n\t\tgap: 0.5rem;\r\n\t}\r\n\r\n\t.timer-display.urgent {\r\n\t\tcolor: hsl(var(--accent-warning)); /* orange-500 */\r\n\t}\r\n</style>\r\n"],"names":["open","$","$$props","size","persistent","haptic","variant","ModalRoot","$$anchor","$$value","ModalOverlay","node","ModalPanel","node_1","ModalHeader","ModalBody","ModalFooter","display","m","s","label","div","root","Time","Text","text","classes"],"mappings":";;;;;;iBAAA;;AAmCE,MACEA,IAAIC,EAAA,KAAAC,GAAA,QAAA,IAAa,EAAK;+BACQ,EAAK,6BACX,EAAK;AAC7B,MAAAC,yBAAO,IAAI,GACXC,+BAAa,EAAK,GAClBC,2BAAS,EAAI,GAQbC,4BAAU,OAAO;AAIpB,EAAAC,EAASC,GAAA;AAAA;aAAYL,EAAI;AAAA;;aAAGC,EAAU;AAAA;;aAAGC,EAAM;AAAA;;;;;aAAcC,EAAO;AAAA;;;;;;;QAA1D,OAAS;;;QAAT,KAASG,GAAA;;;;;AACjB,MAAAC,EAAYC,GAAA,EAAA;;AACZ,MAAAC,EAAUC,GAAA;AAAA;;;;AACI,cAAAC,EAAWN,GAAA;AAAA;;;;;;;;;;;;;;AACb,cAAAO,EAASP,GAAA;AAAA;;;;;;;;;;;;;;AACL,cAAAO,EAASP,GAAA;AAAA;;;;;;;;;;;;;;AACX,cAAAQ,EAAWR,GAAA;AAAA;;;;;;;;;;;;;;;;;;AARpB;;iBCnDR;iBAUgCP,EAAA,KAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA;AAE/B,MAAIe,2BAA0B;AAC7B,UAAMC,IAAI,KAAK,kBAAgB,EAAE,GAC3BC,gBAAc;AACpB,cAAUD,EAAE,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAA,IAAKC,EAAE,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAA;AAAA,EACxE,IAAC,GAEGC,IAAKnB,EAAA,QAAA,MAAAC,EAAA,WAAuB,kBAAkB,kBAAkB;MAGpEmB,IAAGC,EAAA;;kBAAHD,CAAG;AACF,EAAAE,aAAW,IAAE,OAAA,YAAA;;AACb,EAAAC,EAAIX,GAAA;AAAA;;;;;AACH,MAAAZ,EAAA,gBAAA,MAAAA,EAAA,SAAAwB,GAAA,GAAAxB,EAAA,IAAAmB,CAAK,mBAAYH,CAAO,KAAA,EAAA,EAAA,CAAA;;;cAH1BI,CAAG,2CAAHA,GAAG,GAAA,oDAAA,MAAAK,GAAA,EAAA,QAAAxB,EAAA,SAAA,CAAA,CAAA,eAAHmB,CAAG;AAFI;","x_google_ignoreList":[0]}
@@ -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-DZpU-Ec1.js";
6
+ import { b as J } from "./transform-BlXf-shc.js";
7
+ import { s as K, at as X, a5 as Z, h as $, au as ee } from "./VenueCalendar-DMSeDRSN.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-DLb5fzi-.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-D2bRelLR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionView-D2bRelLR.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,OAAKA,EAAA,IAAEM,CAAM,EAAC;AAAA,MACd,cAAc;AAAA,MACd,WAAW;AAAA;;MAGX,IAAI;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