@getmicdrop/venue-calendar 4.0.116 → 4.0.118
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.
- package/dist/{CartView-C2qWvcu9.js → CartView-HFSnn7Rt.js} +581 -578
- package/dist/CartView-HFSnn7Rt.js.map +1 -0
- package/dist/{Checkout-CLPqxfgY.js → Checkout-CTc6iK35.js} +5 -5
- package/dist/{Checkout-CLPqxfgY.js.map → Checkout-CTc6iK35.js.map} +1 -1
- package/dist/{Checkout-B0yjUtQN.js → Checkout-DQKm0xcX.js} +123 -123
- package/dist/{Checkout-B0yjUtQN.js.map → Checkout-DQKm0xcX.js.map} +1 -1
- package/dist/{CheckoutTimer-DUaGudBw.js → CheckoutTimer-BIZKpt9R.js} +5 -5
- package/dist/{CheckoutTimer-DUaGudBw.js.map → CheckoutTimer-BIZKpt9R.js.map} +1 -1
- package/dist/{ClockIcon-DXTGNR0v.js → ClockIcon-ael6hWUn.js} +2 -2
- package/dist/{ClockIcon-DXTGNR0v.js.map → ClockIcon-ael6hWUn.js.map} +1 -1
- package/dist/{CollectionView-Ct_JkveS.js → CollectionView-BUfJwcVV.js} +67 -67
- package/dist/CollectionView-BUfJwcVV.js.map +1 -0
- package/dist/{Event-D22-oJCk.js → Event-xOzWg-Bq.js} +212 -212
- package/dist/Event-xOzWg-Bq.js.map +1 -0
- package/dist/{EventPage-C4Jcsmcl.js → EventPage-CGh7hMYs.js} +87 -87
- package/dist/EventPage-CGh7hMYs.js.map +1 -0
- package/dist/{Heading-DmDM683H.js → Heading-C1lHt0SL.js} +4 -4
- package/dist/{Heading-DmDM683H.js.map → Heading-C1lHt0SL.js.map} +1 -1
- package/dist/{ScarcityBadge-DVABGyGB.js → ScarcityBadge-DA1SxpG9.js} +28 -28
- package/dist/{ScarcityBadge-DVABGyGB.js.map → ScarcityBadge-DA1SxpG9.js.map} +1 -1
- package/dist/{SeriesPage-DYl7X0jU.js → SeriesPage-C6w9oUjN.js} +5 -5
- package/dist/{SeriesPage-DYl7X0jU.js.map → SeriesPage-C6w9oUjN.js.map} +1 -1
- package/dist/{Spinner-BvsY6lCr.js → Spinner-BDJVxS7o.js} +11 -11
- package/dist/Spinner-BDJVxS7o.js.map +1 -0
- package/dist/{Success-CAT0qgqe.js → Success-DdaW6M2g.js} +32 -32
- package/dist/{Success-CAT0qgqe.js.map → Success-DdaW6M2g.js.map} +1 -1
- package/dist/{Text-DZgYiCzf.js → Text-DOb1DPl4.js} +17 -17
- package/dist/{Text-DZgYiCzf.js.map → Text-DOb1DPl4.js.map} +1 -1
- package/dist/{VenueCalendar-BtwCvhg2.js → VenueCalendar-kbk6Pv_G.js} +1923 -1918
- package/dist/VenueCalendar-kbk6Pv_G.js.map +1 -0
- package/dist/{ViewTicketsEmbed-DFb5-m-P.js → ViewTicketsEmbed-DZH5_CP_.js} +5 -5
- package/dist/{ViewTicketsEmbed-DFb5-m-P.js.map → ViewTicketsEmbed-DZH5_CP_.js.map} +1 -1
- package/dist/{labels-CHkp2z_E.js → labels-CMq-W2M3.js} +21 -21
- package/dist/{labels-CHkp2z_E.js.map → labels-CMq-W2M3.js.map} +1 -1
- package/dist/{modalManager.svelte-BM1iScYq.js → modalManager.svelte-CL4EyFLT.js} +2 -2
- package/dist/{modalManager.svelte-BM1iScYq.js.map → modalManager.svelte-CL4EyFLT.js.map} +1 -1
- package/dist/{promo-Cgqwc60_.js → promo-KYU3GVP3.js} +9 -9
- package/dist/{promo-Cgqwc60_.js.map → promo-KYU3GVP3.js.map} +1 -1
- package/dist/{showcase-state-options-Cl1xIaUe.js → showcase-state-options-By7iS0wU.js} +4 -4
- package/dist/{showcase-state-options-Cl1xIaUe.js.map → showcase-state-options-By7iS0wU.js.map} +1 -1
- package/dist/{transform-DpGRIz3T.js → transform-ClDKWDFl.js} +8 -8
- package/dist/{transform-DpGRIz3T.js.map → transform-ClDKWDFl.js.map} +1 -1
- package/dist/{utm-BPToBF7V.js → utm-rXBfFgwI.js} +7 -7
- package/dist/{utm-BPToBF7V.js.map → utm-rXBfFgwI.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +39 -39
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +37 -37
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/CartView-C2qWvcu9.js.map +0 -1
- package/dist/CollectionView-Ct_JkveS.js.map +0 -1
- package/dist/Event-D22-oJCk.js.map +0 -1
- package/dist/EventPage-C4Jcsmcl.js.map +0 -1
- package/dist/Spinner-BvsY6lCr.js.map +0 -1
- package/dist/VenueCalendar-BtwCvhg2.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { M as R, a as U, b as j, c as y, e as w } from "./VenueCalendar-
|
|
4
|
-
import { M as B } from "./modalManager.svelte-
|
|
5
|
-
import { C as F } from "./ClockIcon-
|
|
6
|
-
import { T as H } from "./Text-
|
|
3
|
+
import { M as R, a as U, b as j, c as y, e as w } from "./VenueCalendar-kbk6Pv_G.js";
|
|
4
|
+
import { M as B } from "./modalManager.svelte-CL4EyFLT.js";
|
|
5
|
+
import { C as F } from "./ClockIcon-ael6hWUn.js";
|
|
6
|
+
import { T as H } from "./Text-DOb1DPl4.js";
|
|
7
7
|
var I = e.from_html("<!> <!> <!> <!>", 1), O = e.from_html("<!> <!>", 1);
|
|
8
8
|
function L(u, t) {
|
|
9
9
|
e.push(t, !0);
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
N as C,
|
|
139
139
|
L as M
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=CheckoutTimer-
|
|
141
|
+
//# sourceMappingURL=CheckoutTimer-BIZKpt9R.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutTimer-
|
|
1
|
+
{"version":3,"file":"CheckoutTimer-BIZKpt9R.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 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 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 import { ClockIcon } from '@getmicdrop/svelte-components/primitives/Icons/phosphor/index.js';\r\n import { Text } from '@getmicdrop/svelte-components';\r\n\r\n interface Props {\r\n seconds: number;\r\n isUrgent: boolean;\r\n labels?: Record<string, string>;\r\n }\r\n\r\n let { seconds, isUrgent, labels: _labels = {} }: Props = $props();\r\n\r\n let display = $derived(\r\n (() => {\r\n const m = Math.floor(seconds / 60);\r\n const s = seconds % 60;\r\n return `${m.toString().padStart(2, '0')}:${s.toString().padStart(2, '0')}`;\r\n })()\r\n );\r\n\r\n let 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 <ClockIcon size=\"16\" class=\"shrink-0\" />\r\n <Text size=\"sm\" weight=\"medium\" class=\"tabular-nums\">\r\n {label} · {display}\r\n </Text>\r\n</div>\r\n\r\n<style>\r\n .timer-display {\r\n display: inline-flex;\r\n align-items: center;\r\n gap: 0.5rem;\r\n }\r\n\r\n .timer-display.urgent {\r\n color: hsl(var(--accent-warning)); /* orange-500 */\r\n }\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","label","div","root","ClockIcon","Text","text","classes"],"mappings":";;;;;;;iBAAA;;AAiCE,MACEA,IAAIC,EAAA,KAAAC,GAAA,QAAA,IAAa,EAAK,GACtBC,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;;iBC/CR;iBAU0CP,EAAA,KAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA;AAExC,MAAIe,2BACK;AACL,UAAMC,IAAI,KAAK,kBAAgB,EAAE,GAC3B,gBAAc;AACpB,cAAUA,EAAE,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAA,IAAK,EAAE,SAAQ,EAAG,SAAS,GAAG,GAAG,CAAA;AAAA,EACzE,IAAC,GAGCC,IAAKlB,EAAA,QAAA,MAAAC,EAAA,WAAuB,kBAAkB,kBAAkB;MAGrEkB,IAAGC,EAAA;;kBAAHD,CAAG;AACD,EAAAE,EAASX,GAAA,EAAA,MAAA,MAAA,OAAA,YAAA;;AACT,EAAAY,EAAIV,GAAA;AAAA;;;;;;AACF,MAAAZ,EAAA,gBAAA,MAAAA,EAAA,SAAAuB,GAAA,GAAAvB,EAAA,IAAAkB,CAAK,mBAAYF,CAAO,KAAA,EAAA,EAAA,CAAA;;;cAH5BG,CAAG,2CAAHA,GAAG,GAAA,oDAAA,MAAAK,GAAA,EAAA,QAAAvB,EAAA,SAAA,CAAA,CAAA,eAAHkB,CAAG;AAFI;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { u as f } from "./VenueCalendar-
|
|
3
|
+
import { u as f } from "./VenueCalendar-kbk6Pv_G.js";
|
|
4
4
|
var g = e.from_svg('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z"></path>'), m = e.from_svg('<circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><polyline points="128 72 128 128 184 128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline>', 1), w = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
5
5
|
function x(a, o) {
|
|
6
6
|
e.push(o, !0);
|
|
@@ -29,4 +29,4 @@ function x(a, o) {
|
|
|
29
29
|
export {
|
|
30
30
|
x as C
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=ClockIcon-
|
|
32
|
+
//# sourceMappingURL=ClockIcon-ael6hWUn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClockIcon-
|
|
1
|
+
{"version":3,"file":"ClockIcon-ael6hWUn.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ClockIcon.svelte"],"sourcesContent":["<script lang=\"ts\">\r\n /**\r\n * Clock — Phosphor icon (canonical Micdrop icon family).\r\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\r\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\r\n */\r\n import { useIconWeight, type IconWeight } from './iconWeight.js';\r\n\r\n interface Props {\r\n /** Pixel size (width + height). */\r\n size?: string;\r\n /** Icon color; defaults to `currentColor` (inherits text color). */\r\n color?: string;\r\n /** Extra classes. */\r\n class?: string;\r\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\r\n weight?: IconWeight;\r\n }\r\n\r\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\r\n\r\n const ctx = useIconWeight();\r\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\r\n</script>\r\n\r\n<svg\r\n class={className}\r\n aria-hidden=\"true\"\r\n width={size}\r\n height={size}\r\n viewBox=\"0 0 256 256\"\r\n fill=\"currentColor\"\r\n style:color={color}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n>\r\n {#if resolved === 'fill'}<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm56,112H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z\"/>{:else}<circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><polyline points=\"128 72 128 128 184 128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\r\n</svg>\r\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles"],"mappings":";;;;iBAAA;;AAmBE,MAAMA,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAGC,EAAA;;kBAAHD,CAAG;;;UAUwBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAG;AAAH,IAAAP,EAAA,UAAAO,aACQJ,EAAS,CAAA,CAAA,GADjBH,EAAA,cAAAO,YAGQR,EAAI,CAAA,GAHZC,EAAA,cAAAO,aAISR,EAAI,CAAA,GAJbe,IAAAd,EAAA,UAAAO,mBAOcL,EAAK,GAAA;AAAA,kBAPnBK,CAAG;AAFI;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { untrack as V, onMount as
|
|
4
|
-
import { g as
|
|
5
|
-
import { r as
|
|
6
|
-
import { E as
|
|
7
|
-
import { b as
|
|
8
|
-
import {
|
|
9
|
-
var
|
|
10
|
-
function
|
|
3
|
+
import { untrack as V, onMount as M, onDestroy as O } from "svelte";
|
|
4
|
+
import { g as A } from "./ScarcityBadge-DA1SxpG9.js";
|
|
5
|
+
import { r as B } from "./__SKIP_PATHS__-BtJ0tS93.js";
|
|
6
|
+
import { E as G } from "./Event-xOzWg-Bq.js";
|
|
7
|
+
import { b as U } from "./transform-ClDKWDFl.js";
|
|
8
|
+
import { m as W, D as Q, af as H, E as J, aS as K, I as X, j as Y, aT as Z } from "./VenueCalendar-kbk6Pv_G.js";
|
|
9
|
+
var $ = e.from_html("<div></div>"), ee = e.from_html('<div class="pt-2 space-y-2"><div class="flex gap-1.5"></div> <!></div>');
|
|
10
|
+
function te(I, t) {
|
|
11
11
|
e.push(t, !0);
|
|
12
12
|
const _ = {
|
|
13
13
|
tooWeak: "Too weak",
|
|
@@ -15,8 +15,8 @@ function ee(I, t) {
|
|
|
15
15
|
good: "Good",
|
|
16
16
|
strong: "Strong"
|
|
17
17
|
};
|
|
18
|
-
let u = e.prop(t, "password", 3, ""), i = e.prop(t, "strengthText", 15, ""), w = e.prop(t, "score", 31, () => -1), g = e.prop(t, "textColor", 15, ""), f = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => (
|
|
19
|
-
const b =
|
|
18
|
+
let u = e.prop(t, "password", 3, ""), i = e.prop(t, "strengthText", 15, ""), w = e.prop(t, "score", 31, () => -1), g = e.prop(t, "textColor", 15, ""), f = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => W(_, f())), d = e.state(""), v, p = e.state(null);
|
|
19
|
+
const b = K(() => import("./index-BsWecoW1.js"));
|
|
20
20
|
function x() {
|
|
21
21
|
b().then((r) => {
|
|
22
22
|
e.set(p, r.passwordStrength, !0);
|
|
@@ -58,32 +58,32 @@ function ee(I, t) {
|
|
|
58
58
|
},
|
|
59
59
|
400
|
|
60
60
|
), () => clearTimeout(v)));
|
|
61
|
-
let
|
|
61
|
+
let L = e.derived(() => e.get(d) && e.get(p) ? e.get(p)(e.get(d), e.get(y)) : null), n = e.derived(() => e.get(d).length > 12 ? 3 : e.get(L)?.id ?? -1);
|
|
62
62
|
e.user_effect(() => {
|
|
63
63
|
const r = e.get(n);
|
|
64
64
|
V(() => w()) !== r && w(r);
|
|
65
65
|
});
|
|
66
|
-
let T = e.derived(() => e.get(n) === 0 ? e.get(a).tooWeak : e.get(n) === 1 ? e.get(a).weak : e.get(n) === 2 ? e.get(a).good : e.get(n) === 3 ? e.get(a).strong : ""),
|
|
66
|
+
let T = e.derived(() => e.get(n) === 0 ? e.get(a).tooWeak : e.get(n) === 1 ? e.get(a).weak : e.get(n) === 2 ? e.get(a).good : e.get(n) === 3 ? e.get(a).strong : ""), D = e.derived(() => e.get(n) < 0 ? "" : e.get(n) <= 1 ? "text-accent-danger" : "text-accent-success");
|
|
67
67
|
e.user_effect(() => {
|
|
68
68
|
const r = e.get(T);
|
|
69
69
|
V(() => i()) !== r && i(r);
|
|
70
70
|
});
|
|
71
71
|
let q = e.derived(() => e.get(n) <= 1 ? "bg-accent-danger" : "bg-accent-success");
|
|
72
72
|
e.user_effect(() => {
|
|
73
|
-
const r = e.get(
|
|
73
|
+
const r = e.get(D);
|
|
74
74
|
V(() => g()) !== r && g(r);
|
|
75
75
|
});
|
|
76
76
|
let k = e.derived(() => e.get(n) === 0 ? 1 : e.get(n) === 1 ? 2 : e.get(n) >= 2 ? 3 : 0);
|
|
77
77
|
var C = e.comment(), z = e.first_child(C);
|
|
78
78
|
{
|
|
79
79
|
var l = (r) => {
|
|
80
|
-
var o =
|
|
81
|
-
e.each(s, 20, () => [0, 1, 2], (
|
|
82
|
-
var c =
|
|
83
|
-
e.template_effect(() => e.set_class(c, 1, `h-1 flex-1 rounded-full transition-colors duration-normal ${(E < e.get(k) ? e.get(q) : "bg-bg-tertiary") ?? ""}`)), e.append(
|
|
80
|
+
var o = ee(), s = e.child(o);
|
|
81
|
+
e.each(s, 20, () => [0, 1, 2], (h) => h, (h, E) => {
|
|
82
|
+
var c = $();
|
|
83
|
+
e.template_effect(() => e.set_class(c, 1, `h-1 flex-1 rounded-full transition-colors duration-normal ${(E < e.get(k) ? e.get(q) : "bg-bg-tertiary") ?? ""}`)), e.append(h, c);
|
|
84
84
|
}), e.reset(s);
|
|
85
85
|
var S = e.sibling(s, 2);
|
|
86
|
-
e.snippet(S, () => t.children ?? e.noop), e.reset(o), e.transition(3, o, () =>
|
|
86
|
+
e.snippet(S, () => t.children ?? e.noop), e.reset(o), e.transition(3, o, () => Q, () => ({ duration: J.elaborate, easing: H.out })), e.append(r, o);
|
|
87
87
|
};
|
|
88
88
|
e.if(z, (r) => {
|
|
89
89
|
e.get(d).length > 0 && r(l);
|
|
@@ -91,13 +91,13 @@ function ee(I, t) {
|
|
|
91
91
|
}
|
|
92
92
|
e.append(I, C), e.pop();
|
|
93
93
|
}
|
|
94
|
-
var
|
|
95
|
-
function
|
|
94
|
+
var re = e.from_html("<p> </p>"), le = e.from_html("<div><!> <!></div>");
|
|
95
|
+
function oe(I, t) {
|
|
96
96
|
e.push(t, !0);
|
|
97
97
|
const _ = { passwordStrength: "Password strength:" };
|
|
98
|
-
let u = e.prop(t, "value", 15, ""), i = e.prop(t, "label", 3, ""), w = e.prop(t, "placeholder", 3, ""), g = e.prop(t, "name", 3, ""), f = e.prop(t, "id", 3, ""), a = e.prop(t, "required", 3, !1), d = e.prop(t, "disableBuiltInValidation", 3, !1), v = e.prop(t, "disabled", 3, !1), p = e.prop(t, "error", 3, ""), b = e.prop(t, "hint", 3, ""), x = e.prop(t, "showStrength", 3, !1), y = e.prop(t, "size", 3, "md"),
|
|
99
|
-
var s =
|
|
100
|
-
|
|
98
|
+
let u = e.prop(t, "value", 15, ""), i = e.prop(t, "label", 3, ""), w = e.prop(t, "placeholder", 3, ""), g = e.prop(t, "name", 3, ""), f = e.prop(t, "id", 3, ""), a = e.prop(t, "required", 3, !1), d = e.prop(t, "disableBuiltInValidation", 3, !1), v = e.prop(t, "disabled", 3, !1), p = e.prop(t, "error", 3, ""), b = e.prop(t, "hint", 3, ""), x = e.prop(t, "showStrength", 3, !1), y = e.prop(t, "size", 3, "md"), L = e.prop(t, "minlength", 3, null), n = e.prop(t, "maxlength", 3, null), T = e.prop(t, "autocomplete", 3, "new-password"), D = e.prop(t, "showPasswordToggle", 3, !0), q = e.prop(t, "class", 3, ""), k = e.prop(t, "labels", 19, () => ({})), C = e.derived(() => W(_, k())), z = e.derived(() => d() ? !1 : a()), l = e.state(-1), r = e.state(""), o = e.state("");
|
|
99
|
+
var s = le(), S = e.child(s);
|
|
100
|
+
X(S, {
|
|
101
101
|
type: "password",
|
|
102
102
|
get id() {
|
|
103
103
|
return f();
|
|
@@ -121,7 +121,7 @@ function le(I, t) {
|
|
|
121
121
|
return y();
|
|
122
122
|
},
|
|
123
123
|
get minlength() {
|
|
124
|
-
return
|
|
124
|
+
return L();
|
|
125
125
|
},
|
|
126
126
|
get maxlength() {
|
|
127
127
|
return n();
|
|
@@ -130,7 +130,7 @@ function le(I, t) {
|
|
|
130
130
|
return T();
|
|
131
131
|
},
|
|
132
132
|
get showPasswordToggle() {
|
|
133
|
-
return
|
|
133
|
+
return D();
|
|
134
134
|
},
|
|
135
135
|
get errorText() {
|
|
136
136
|
return p();
|
|
@@ -154,52 +154,52 @@ function le(I, t) {
|
|
|
154
154
|
u(c);
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
var
|
|
157
|
+
var h = e.sibling(S, 2);
|
|
158
158
|
{
|
|
159
159
|
var E = (c) => {
|
|
160
|
-
|
|
160
|
+
te(c, {
|
|
161
161
|
get password() {
|
|
162
162
|
return u();
|
|
163
163
|
},
|
|
164
164
|
get score() {
|
|
165
165
|
return e.get(l);
|
|
166
166
|
},
|
|
167
|
-
set score(
|
|
168
|
-
e.set(l,
|
|
167
|
+
set score(m) {
|
|
168
|
+
e.set(l, m, !0);
|
|
169
169
|
},
|
|
170
170
|
get strengthText() {
|
|
171
171
|
return e.get(r);
|
|
172
172
|
},
|
|
173
|
-
set strengthText(
|
|
174
|
-
e.set(r,
|
|
173
|
+
set strengthText(m) {
|
|
174
|
+
e.set(r, m, !0);
|
|
175
175
|
},
|
|
176
176
|
get textColor() {
|
|
177
177
|
return e.get(o);
|
|
178
178
|
},
|
|
179
|
-
set textColor(
|
|
180
|
-
e.set(o,
|
|
179
|
+
set textColor(m) {
|
|
180
|
+
e.set(o, m, !0);
|
|
181
181
|
},
|
|
182
|
-
children: (
|
|
183
|
-
var P =
|
|
182
|
+
children: (m, N) => {
|
|
183
|
+
var P = re(), R = e.child(P);
|
|
184
184
|
e.reset(P), e.template_effect(() => {
|
|
185
|
-
e.set_class(P, 1, `type-caption ${e.get(o) ?? ""}`), e.set_text(
|
|
186
|
-
}), e.append(
|
|
185
|
+
e.set_class(P, 1, `type-caption ${e.get(o) ?? ""}`), e.set_text(R, `${e.get(C).passwordStrength ?? ""} ${e.get(r) ?? ""}`);
|
|
186
|
+
}), e.append(m, P);
|
|
187
187
|
},
|
|
188
188
|
$$slots: { default: !0 }
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
-
e.if(
|
|
191
|
+
e.if(h, (c) => {
|
|
192
192
|
x() && u() && c(E);
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
e.reset(s), e.template_effect(() => e.set_class(s, 1, e.clsx(q()))), e.append(I, s), e.pop();
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
199
|
-
e.push(t, !0),
|
|
197
|
+
var se = e.from_html('<div class="flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y"><p> </p></div>'), ae = 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 type-heading mb-2 svelte-q4dz4y"> </h2> <p class="password-description type-body mb-6 svelte-q4dz4y"> </p> <form class="flex flex-col gap-3"><!> <button type="submit" class="password-submit px-4 py-2 rounded-lg type-label svelte-q4dz4y"> </button></form></div></div>'), ie = 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 pe(I, t) {
|
|
199
|
+
e.push(t, !0), Y("CollectionView"), e.prop(t, "organizationId", 3, "");
|
|
200
200
|
let _ = e.prop(t, "onNavigateToEvent", 3, void 0), u = e.prop(t, "password", 3, void 0);
|
|
201
201
|
e.prop(t, "displayMode", 3, "gallery"), e.prop(t, "showViewSwitcher", 3, !0);
|
|
202
|
-
let i = e.prop(t, "labels", 19, () => ({})), w = e.state(null), g = e.state(!0), f = e.state(null), a = e.state(!1), d = e.state(!1), v = e.state(""), p = e.state(!1), b = e.derived(() => e.get(w) ?
|
|
202
|
+
let i = e.prop(t, "labels", 19, () => ({})), w = e.state(null), g = e.state(!0), f = e.state(null), a = e.state(!1), d = e.state(!1), v = e.state(""), p = e.state(!1), b = e.derived(() => e.get(w) ? U(e.get(w)) : null), x = 0;
|
|
203
203
|
async function y(l) {
|
|
204
204
|
if (!e.get(a)) return;
|
|
205
205
|
const r = ++x;
|
|
@@ -209,7 +209,7 @@ function ve(I, t) {
|
|
|
209
209
|
}
|
|
210
210
|
e.set(g, !0), e.set(f, null), e.set(p, !1);
|
|
211
211
|
try {
|
|
212
|
-
const o = await
|
|
212
|
+
const o = await Z(t.collectionId, l);
|
|
213
213
|
if (!e.get(a) || r !== x) return;
|
|
214
214
|
if (o) {
|
|
215
215
|
if (o.passwordRequired || o.error?.code === "PASSWORD_REQUIRED") {
|
|
@@ -233,67 +233,67 @@ function ve(I, t) {
|
|
|
233
233
|
e.get(a) && r === x && e.set(g, !1);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function L(l) {
|
|
237
237
|
l.preventDefault(), e.get(v).trim() && y(e.get(v));
|
|
238
238
|
}
|
|
239
239
|
function n(l) {
|
|
240
|
-
_() && l.id ? _()(Number(l.id), l.slug) :
|
|
240
|
+
_() && l.id ? _()(Number(l.id), l.slug) : A(B("/[id]/[slug]", { id: String(l.id), slug: String(l.slug) }));
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
M(() => {
|
|
243
243
|
e.set(a, !0), y(u());
|
|
244
|
-
}),
|
|
244
|
+
}), O(() => {
|
|
245
245
|
e.set(a, !1);
|
|
246
246
|
});
|
|
247
|
-
var T = e.comment(),
|
|
247
|
+
var T = e.comment(), D = e.first_child(T);
|
|
248
248
|
{
|
|
249
249
|
var q = (l) => {
|
|
250
|
-
var r =
|
|
250
|
+
var r = se(), o = e.child(r), s = e.child(o, !0);
|
|
251
251
|
e.reset(o), e.reset(r), e.template_effect(() => e.set_text(s, i().loadingCollection || "Loading collection...")), e.append(l, r);
|
|
252
252
|
}, k = (l) => {
|
|
253
|
-
var r =
|
|
253
|
+
var r = ae(), o = e.child(r), s = e.child(o), S = e.child(s, !0);
|
|
254
254
|
e.reset(s);
|
|
255
|
-
var
|
|
256
|
-
e.reset(
|
|
257
|
-
var c = e.sibling(
|
|
255
|
+
var h = e.sibling(s, 2), E = e.child(h, !0);
|
|
256
|
+
e.reset(h);
|
|
257
|
+
var c = e.sibling(h, 2), m = e.child(c);
|
|
258
258
|
{
|
|
259
|
-
let
|
|
260
|
-
|
|
259
|
+
let R = e.derived(() => i().enterPassword || "Enter password"), j = e.derived(() => e.get(p) ? i().incorrectPassword || "Incorrect password. Please try again" : "");
|
|
260
|
+
oe(m, {
|
|
261
261
|
get placeholder() {
|
|
262
|
-
return e.get(
|
|
262
|
+
return e.get(R);
|
|
263
263
|
},
|
|
264
264
|
get error() {
|
|
265
|
-
return e.get(
|
|
265
|
+
return e.get(j);
|
|
266
266
|
},
|
|
267
267
|
get value() {
|
|
268
268
|
return e.get(v);
|
|
269
269
|
},
|
|
270
|
-
set value(
|
|
271
|
-
e.set(v,
|
|
270
|
+
set value(F) {
|
|
271
|
+
e.set(v, F, !0);
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
e.reset(
|
|
275
|
+
var N = e.sibling(m, 2), P = e.child(N, !0);
|
|
276
|
+
e.reset(N), e.reset(c), e.reset(o), e.reset(r), e.template_effect(() => {
|
|
277
277
|
e.set_text(S, i().collectionPrivateTitle || "This collection is private"), e.set_text(E, i().collectionPrivateDescription || "Please enter the password to view this collection"), e.set_text(P, i().viewCollection || "View collection");
|
|
278
|
-
}), e.event("submit", c,
|
|
278
|
+
}), e.event("submit", c, L), e.append(l, r);
|
|
279
279
|
}, C = (l) => {
|
|
280
|
-
var r =
|
|
280
|
+
var r = ie(), o = e.child(r), s = e.child(o);
|
|
281
281
|
e.reset(o), e.reset(r), e.template_effect(() => e.set_text(s, `${(i().errorPrefix || "Error:") ?? ""} ${e.get(f) ?? ""}`)), e.append(l, r);
|
|
282
282
|
}, z = (l) => {
|
|
283
|
-
|
|
283
|
+
G(l, {
|
|
284
284
|
get event() {
|
|
285
285
|
return e.get(b);
|
|
286
286
|
},
|
|
287
287
|
onCollectionEventClick: n
|
|
288
288
|
});
|
|
289
289
|
};
|
|
290
|
-
e.if(
|
|
290
|
+
e.if(D, (l) => {
|
|
291
291
|
e.get(g) ? l(q) : e.get(d) ? l(k, 1) : e.get(f) ? l(C, 2) : e.get(b) && l(z, 3);
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
e.append(I, T), e.pop();
|
|
295
295
|
}
|
|
296
296
|
export {
|
|
297
|
-
|
|
297
|
+
pe as default
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=CollectionView-
|
|
299
|
+
//# sourceMappingURL=CollectionView-BUfJwcVV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionView-BUfJwcVV.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 { mergeLabels, type SCLabels } from '../../../utils/labels.js';\r\n import type { Snippet } from 'svelte';\r\n import type { Options } from 'check-password-strength';\r\n import { DURATION, safeSlide, EASING } from \"../../../utils/transitions.js\";\r\n import { lazyOnce } from \"../../../utils/lazyOnce.js\";\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?: SCLabels<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(mergeLabels(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 // Explicit type ARGUMENT (not annotation) on purpose: with `$state(null)` TS\r\n // infers T = null, so control-flow analysis proves the variable is `null` at\r\n // the $derived read below and collapses the truthy branch to `never`\r\n // (\"This expression is not callable\"). The type argument keeps the union.\r\n let strengthFn = $state<typeof import('check-password-strength').passwordStrength | null>(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 // Typed as the library's own `Options<string>` so the strength call needs no\r\n // cast: the tuple's first entry satisfies `FirstOption` (minDiversity/minLength 0)\r\n // and the rest satisfy `Option`, checked contextually against this annotation.\r\n let customOptions: Options<string> = $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 ]);\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)\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: DURATION.elaborate, easing: EASING.out }}\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 {#each [0, 1, 2] as barIndex (barIndex)}\r\n <div\r\n class=\"h-1 flex-1 rounded-full transition-colors duration-normal {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 import { mergeLabels, type SCLabels } from '../../utils/labels.js';\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)\r\n oninput?: (value: string) => void;\r\n onblur?: () => void;\r\n onfocus?: () => void;\r\n /** Override user-visible strings */\r\n labels?: SCLabels<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(mergeLabels(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=\"type-caption {strengthColor}\">\r\n {labels.passwordStrength} {strengthText}\r\n </p>\r\n </PasswordStrengthIndicator>\r\n {/if}\r\n</div>\r\n","<!-- button-exception: the password-gate submit is a type=submit form control styled by scoped CSS (.password-submit) per venue brand. -->\r\n<!-- @route-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n import { onMount, onDestroy } from 'svelte';\r\n import { goto } from '$app/navigation';\r\n import { resolve } from '$app/paths';\r\n import EventExperience from '$lib/public-calendar-flow/Event.svelte';\r\n import { transformCollectionData } from '$lib/public-calendar-flow/transform';\r\n import { fetchPublicCollection } from '$lib/api/events';\r\n import type { PublicCollectionData } from '$lib/api/types';\r\n import { createLogger, PasswordInput } from '@getmicdrop/svelte-components';\r\n\r\n const _logger = createLogger('CollectionView');\r\n\r\n // --- Props (matches old CollectionView external interface) ---\r\n interface Props {\r\n collectionId: string | number;\r\n organizationId?: string;\r\n onNavigateToEvent?: (_id: number, _slug: string) => void;\r\n password?: string;\r\n displayMode?: string;\r\n showViewSwitcher?: boolean;\r\n labels?: Record<string, string>;\r\n }\r\n\r\n let {\r\n collectionId,\r\n organizationId: _organizationId = '',\r\n onNavigateToEvent = undefined,\r\n password = undefined,\r\n displayMode: _displayMode = 'gallery',\r\n showViewSwitcher: _showViewSwitcher = true,\r\n labels = {},\r\n }: Props = $props();\r\n\r\n // --- State ---\r\n let collection = $state<PublicCollectionData | null>(null);\r\n let isLoading = $state(true);\r\n let error = $state<string | null>(null);\r\n let isMounted = $state(false);\r\n let passwordRequired = $state(false);\r\n let passwordInput = $state('');\r\n let passwordError = $state(false);\r\n\r\n // --- Derived ---\r\n let eventData = $derived(\r\n collection ? transformCollectionData(collection) : null\r\n );\r\n\r\n // Monotonic id for collection loads. loadCollection runs on mount AND on each\r\n // password submit; a slower EARLIER request resolving last would otherwise\r\n // clobber the latest attempt (isMounted only covers unmount, not overlap).\r\n let latestLoad = 0;\r\n\r\n // --- Load collection data ---\r\n async function loadCollection(pwd?: string): Promise<void> {\r\n if (!isMounted) return;\r\n const loadId = ++latestLoad;\r\n if (!collectionId) {\r\n error = labels.noCollectionIdProvided || 'No collection ID provided';\r\n isLoading = false;\r\n return;\r\n }\r\n\r\n isLoading = true;\r\n error = null;\r\n passwordError = false;\r\n\r\n try {\r\n const data = await fetchPublicCollection(collectionId, pwd);\r\n // A newer load superseded us — discard this stale response.\r\n if (!isMounted || loadId !== latestLoad) return;\r\n\r\n if (data) {\r\n if (data.passwordRequired || data.error?.code === 'PASSWORD_REQUIRED') {\r\n passwordRequired = true;\r\n isLoading = false;\r\n return;\r\n }\r\n collection = data;\r\n passwordRequired = false;\r\n } else {\r\n if (pwd) {\r\n passwordRequired = true;\r\n passwordError = true;\r\n isLoading = false;\r\n return;\r\n }\r\n error = labels.failedToLoadCollection || 'Failed to load collection';\r\n }\r\n } catch (err: any) {\r\n // A superseded load failing must not overwrite the latest load's state\r\n // (e.g. a slow wrong-password 401 re-locking an already-loaded collection).\r\n if (isMounted && loadId === latestLoad) {\r\n const msg = err.message || '';\r\n if (\r\n msg.includes('401') ||\r\n msg.includes('403') ||\r\n msg.includes('password')\r\n ) {\r\n passwordRequired = true;\r\n } else {\r\n error =\r\n msg || labels.failedToLoadCollection || 'Failed to load collection';\r\n }\r\n }\r\n } finally {\r\n // Only the latest load may clear the spinner — a stale load settling\r\n // first must not reveal content while the newest load is still pending.\r\n if (isMounted && loadId === latestLoad) {\r\n isLoading = false;\r\n }\r\n }\r\n }\r\n\r\n function handlePasswordSubmit(e: Event): void {\r\n e.preventDefault();\r\n if (!passwordInput.trim()) return;\r\n loadCollection(passwordInput);\r\n }\r\n\r\n function handleCollectionEventClick(galleryEvent: {\r\n id?: number | string;\r\n slug: string;\r\n }): void {\r\n if (onNavigateToEvent && galleryEvent.id) {\r\n onNavigateToEvent(Number(galleryEvent.id), galleryEvent.slug);\r\n } else {\r\n // @url-builder-escape: widget-internal route; SC's url-builders cover /a admin paths, not embedded calendar navigation.\r\n goto(\r\n resolve('/[id]/[slug]', {\r\n id: String(galleryEvent.id),\r\n slug: String(galleryEvent.slug),\r\n })\r\n );\r\n }\r\n }\r\n\r\n // --- Lifecycle ---\r\n onMount(() => {\r\n isMounted = true;\r\n loadCollection(password);\r\n });\r\n\r\n onDestroy(() => {\r\n isMounted = false;\r\n });\r\n</script>\r\n\r\n<!-- @pageloader-escape: 4-state gate (loading / private-password-card / error /\r\n content) — PageLoader models only loading/error/children, so it can't own the\r\n password-required branch that sits as a sibling here. -->\r\n{#if isLoading}\r\n <div\r\n class=\"flex items-center justify-center py-12 text-center loading-container\"\r\n >\r\n <p>{labels.loadingCollection || 'Loading collection...'}</p>\r\n </div>\r\n{:else if passwordRequired}\r\n <div\r\n class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"\r\n >\r\n <div class=\"password-card rounded-lg p-8 max-w-sm w-full\">\r\n <h2 class=\"password-title type-heading mb-2\">\r\n {labels.collectionPrivateTitle || 'This collection is private'}\r\n </h2>\r\n <p class=\"password-description type-body mb-6\">\r\n {labels.collectionPrivateDescription ||\r\n 'Please enter the password to view this collection'}\r\n </p>\r\n <form onsubmit={handlePasswordSubmit} class=\"flex flex-col gap-3\">\r\n <PasswordInput\r\n bind:value={passwordInput}\r\n placeholder={labels.enterPassword || 'Enter password'}\r\n error={passwordError\r\n ? labels.incorrectPassword ||\r\n 'Incorrect password. Please try again'\r\n : ''}\r\n />\r\n <button\r\n type=\"submit\"\r\n class=\"password-submit px-4 py-2 rounded-lg type-label\"\r\n >{labels.viewCollection || 'View collection'}</button\r\n >\r\n </form>\r\n </div>\r\n </div>\r\n{:else if error}\r\n <div\r\n class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"\r\n >\r\n <p class=\"error-text\">{labels.errorPrefix || 'Error:'} {error}</p>\r\n </div>\r\n{:else if eventData}\r\n <EventExperience\r\n event={eventData}\r\n onCollectionEventClick={handleCollectionEventClick}\r\n />\r\n{/if}\r\n\r\n<style>\r\n .loading-container {\r\n color: hsl(var(--text-secondary, 215 16% 47%));\r\n }\r\n\r\n .error-text {\r\n color: hsl(var(--status-sold-out, 0 72% 51%));\r\n }\r\n\r\n .password-card {\r\n background: hsl(var(--surface-primary, 0 0% 100%));\r\n box-shadow: 0 2px 10px color-mix(in srgb, black 10%, transparent);\r\n }\r\n\r\n .password-title {\r\n color: hsl(var(--text-primary, 0 0% 10%));\r\n }\r\n\r\n .password-description {\r\n color: hsl(var(--text-secondary, 0 0% 45%));\r\n }\r\n\r\n .password-submit {\r\n background: hsl(var(--brand-primary, 220 90% 56%));\r\n color: hsl(var(--text-on-primary, 0 0% 100%));\r\n }\r\n\r\n .password-submit:hover {\r\n filter: brightness(0.95);\r\n }\r\n</style>\r\n"],"names":["defaultLabels","password","$","$$props","strengthText","score","textColor","userLabels","labels","mergeLabels","debouncedPassword","timer","strengthFn","loadStrengthModule","lazyOnce","ensureStrengthFn","m","customOptions","strength","computedScore","newScore","untrack","computedStrengthText","computedTextColor","newText","strengthColor","newColor","filledBars","div","root_1","div_1","barIndex","$$anchor","div_2","root","safeSlide","DURATION","EASING","$$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","p","createLogger","onNavigateToEvent","collection","isLoading","isMounted","passwordRequired","passwordInput","passwordError","eventData","transformCollectionData","latestLoad","loadCollection","pwd","loadId","data","fetchPublicCollection","err","msg","handlePasswordSubmit","e","handleCollectionEventClick","galleryEvent","goto","resolve","onMount","onDestroy","h2","p_1","form","PasswordInput","node_1","button","div_3","root_2","p_2","text_4","EventExperience","consequent_1","consequent_3"],"mappings":";;;;;;;;;kBAAA;;AAQI,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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