@getmicdrop/venue-calendar 4.1.16 → 4.1.17
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-6QOySzIh.js → CartView-J0qckr8X.js} +9 -9
- package/dist/{CartView-6QOySzIh.js.map → CartView-J0qckr8X.js.map} +1 -1
- package/dist/{Checkout-BRLAjrGK.js → Checkout-DQIVk8NT.js} +7 -7
- package/dist/{Checkout-BRLAjrGK.js.map → Checkout-DQIVk8NT.js.map} +1 -1
- package/dist/{Checkout-BUdEaWuO.js → Checkout-hmfkDuYF.js} +9 -9
- package/dist/{Checkout-BUdEaWuO.js.map → Checkout-hmfkDuYF.js.map} +1 -1
- package/dist/{CheckoutTimer-cs6tMuxq.js → CheckoutTimer-D6qbPXmL.js} +5 -5
- package/dist/{CheckoutTimer-cs6tMuxq.js.map → CheckoutTimer-D6qbPXmL.js.map} +1 -1
- package/dist/{ClockIcon-BaSk1QTM.js → ClockIcon-CeZ6tDgN.js} +2 -2
- package/dist/{ClockIcon-BaSk1QTM.js.map → ClockIcon-CeZ6tDgN.js.map} +1 -1
- package/dist/{CollectionView-7hj67MVA.js → CollectionView-ClJC-3Ot.js} +5 -5
- package/dist/{CollectionView-7hj67MVA.js.map → CollectionView-ClJC-3Ot.js.map} +1 -1
- package/dist/{Event-BjMnU-4o.js → Event-DnguMKoM.js} +9 -9
- package/dist/{Event-BjMnU-4o.js.map → Event-DnguMKoM.js.map} +1 -1
- package/dist/{EventPage-cph5D8Qo.js → EventPage-CicdCaIY.js} +8 -8
- package/dist/{EventPage-cph5D8Qo.js.map → EventPage-CicdCaIY.js.map} +1 -1
- package/dist/{Heading-rY_6L2u-.js → Heading-Dpc12_QS.js} +2 -2
- package/dist/{Heading-rY_6L2u-.js.map → Heading-Dpc12_QS.js.map} +1 -1
- package/dist/{ScarcityBadge-Rn3NWBbW.js → ScarcityBadge-CyrniwIo.js} +2 -2
- package/dist/{ScarcityBadge-Rn3NWBbW.js.map → ScarcityBadge-CyrniwIo.js.map} +1 -1
- package/dist/{SeriesPage-rimmzen5.js → SeriesPage-BmPai8Z4.js} +5 -5
- package/dist/{SeriesPage-rimmzen5.js.map → SeriesPage-BmPai8Z4.js.map} +1 -1
- package/dist/{Spinner-BIY41X6B.js → Spinner-CRWt7IYY.js} +2 -2
- package/dist/{Spinner-BIY41X6B.js.map → Spinner-CRWt7IYY.js.map} +1 -1
- package/dist/{Success-HDzXXwDj.js → Success-Cwhbg_gL.js} +9 -9
- package/dist/{Success-HDzXXwDj.js.map → Success-Cwhbg_gL.js.map} +1 -1
- package/dist/{Text-14mgKP9j.js → Text-CfL6ex6f.js} +2 -2
- package/dist/{Text-14mgKP9j.js.map → Text-CfL6ex6f.js.map} +1 -1
- package/dist/{VenueCalendar-DxqM91DB.js → VenueCalendar-DHAmKNT-.js} +13 -13
- package/dist/{VenueCalendar-DxqM91DB.js.map → VenueCalendar-DHAmKNT-.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-CaXtTmb-.js → ViewTicketsEmbed-otZKZMFe.js} +5 -5
- package/dist/{ViewTicketsEmbed-CaXtTmb-.js.map → ViewTicketsEmbed-otZKZMFe.js.map} +1 -1
- package/dist/{index-ClAm1EMT.js → index-CwsI9tPj.js} +3 -3
- package/dist/{index-ClAm1EMT.js.map → index-CwsI9tPj.js.map} +1 -1
- package/dist/{modalManager.svelte-D_dcAUPr.js → modalManager.svelte-BDEfA4mR.js} +2 -2
- package/dist/{modalManager.svelte-D_dcAUPr.js.map → modalManager.svelte-BDEfA4mR.js.map} +1 -1
- package/dist/{promo-BkuhbzDf.js → promo-BYT85gME.js} +2 -2
- package/dist/{promo-BkuhbzDf.js.map → promo-BYT85gME.js.map} +1 -1
- package/dist/{serverTotals-BAA_z6p4.js → serverTotals-CxpmLBUi.js} +2 -2
- package/dist/{serverTotals-BAA_z6p4.js.map → serverTotals-CxpmLBUi.js.map} +1 -1
- package/dist/{shareCopyFeedback.svelte-B9rmy5vu.js → shareCopyFeedback.svelte-BVLGQMN_.js} +2 -2
- package/dist/{shareCopyFeedback.svelte-B9rmy5vu.js.map → shareCopyFeedback.svelte-BVLGQMN_.js.map} +1 -1
- package/dist/{showcase-state-options-DRReBgGw.js → showcase-state-options-y0ZwSjmL.js} +2 -2
- package/dist/{showcase-state-options-DRReBgGw.js.map → showcase-state-options-y0ZwSjmL.js.map} +1 -1
- package/dist/{transform-BvkrH5Oq.js → transform-C4GBIj6D.js} +2 -2
- package/dist/{transform-BvkrH5Oq.js.map → transform-C4GBIj6D.js.map} +1 -1
- package/dist/{utm-um167isu.js → utm-DUS9p3Ww.js} +2 -2
- package/dist/{utm-um167isu.js.map → utm-DUS9p3Ww.js.map} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +2 -2
- package/dist/venue-calendar.iife.js +2 -2
- package/dist/venue-calendar.umd.js +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { M as w, a as E, b as I, c as P, e as D, ao as H, ap as N, aq as O } from "./VenueCalendar-
|
|
4
|
-
import { M as R } from "./modalManager.svelte-
|
|
3
|
+
import { M as w, a as E, b as I, c as P, e as D, ao as H, ap as N, aq as O } from "./VenueCalendar-DHAmKNT-.js";
|
|
4
|
+
import { M as R } from "./modalManager.svelte-BDEfA4mR.js";
|
|
5
5
|
import { d as U } from "./labels-Dna_YObX.js";
|
|
6
|
-
import { C as j } from "./ClockIcon-
|
|
7
|
-
import { T as q } from "./Text-
|
|
6
|
+
import { C as j } from "./ClockIcon-CeZ6tDgN.js";
|
|
7
|
+
import { T as q } from "./Text-CfL6ex6f.js";
|
|
8
8
|
var B = e.from_html("<!> <!> <!> <!>", 1), F = e.from_html("<!> <!>", 1);
|
|
9
9
|
function X(l, t) {
|
|
10
10
|
e.push(t, !0);
|
|
@@ -145,4 +145,4 @@ export {
|
|
|
145
145
|
X as M,
|
|
146
146
|
Y as i
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=CheckoutTimer-
|
|
148
|
+
//# sourceMappingURL=CheckoutTimer-D6qbPXmL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutTimer-
|
|
1
|
+
{"version":3,"file":"CheckoutTimer-D6qbPXmL.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/Modal.svelte","../src/lib/utils/event-ended.ts","../src/lib/public-calendar-flow/CheckoutTimer.svelte"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Legacy Modal API — backward-compatible wrapper around ModalRoot + ModalOverlay + ModalPanel.\n * Accepts the old flat API: bind:open, header/body/footer snippets, size, persistent, oncancel.\n * New code should use ModalRoot + ModalOverlay + ModalPanel directly.\n */\n import type { Snippet } from 'svelte';\n import ModalRoot from './ModalRoot.svelte';\n import ModalOverlay from './ModalOverlay.svelte';\n import ModalPanel from './ModalPanel.svelte';\n import ModalHeader from './ModalHeader.svelte';\n import ModalBody from './ModalBody.svelte';\n import ModalFooter from './ModalFooter.svelte';\n\n interface Props {\n open?: boolean;\n size?: 'sm' | 'md' | 'lg' | 'xl';\n persistent?: boolean;\n haptic?: boolean;\n oncancel?: () => void;\n header?: Snippet;\n body?: Snippet;\n footer?: Snippet;\n children?: Snippet;\n class?: string;\n 'aria-labelledby'?: string;\n /**\n * Layout variant. `'sheet'` (default) = bottom-sheet on mobile, centered\n * on md+. `'dialog'` = centered on all viewports. See ModalRoot for details.\n */\n variant?: 'sheet' | 'dialog';\n }\n\n let {\n open = $bindable(false),\n size = 'md',\n persistent = false,\n haptic = true,\n oncancel,\n header,\n body,\n footer,\n children,\n class: className,\n 'aria-labelledby': ariaLabelledby,\n variant = 'sheet',\n }: Props = $props();\n</script>\n\n<ModalRoot bind:open {size} {persistent} {haptic} {oncancel} {variant} class={className} aria-labelledby={ariaLabelledby}>\n <ModalOverlay />\n <ModalPanel>\n {#if header}<ModalHeader>{@render header()}</ModalHeader>{/if}\n {#if body}<ModalBody>{@render body()}</ModalBody>{/if}\n {#if children}<ModalBody>{@render children()}</ModalBody>{/if}\n {#if footer}<ModalFooter>{@render footer()}</ModalFooter>{/if}\n </ModalPanel>\n</ModalRoot>\n","import {\r\n browserNow,\r\n compareInstants,\r\n toInstantOrNull,\r\n} from '@getmicdrop/svelte-components/datetime';\r\n\r\n/**\r\n * The minimum an event has to carry to be judged ended. Both fields are\r\n * optional here so callers can pass a partially-loaded event without casting —\r\n * an event with neither timestamp is simply never \"ended\".\r\n */\r\nexport interface EndableEvent {\r\n startDateTime?: string | null;\r\n endDateTime?: string | null;\r\n}\r\n\r\n/**\r\n * Has this event's end time already passed?\r\n *\r\n * Extracted verbatim from CartView's `isEventEnded` derivation so the cart and\r\n * the checkout answer this question the same way — same source field\r\n * (`endDateTime` falling back to `startDateTime`), same absolute-instant\r\n * comparison against the buyer's own clock, tz-independent.\r\n *\r\n * `now` is a parameter so a ticking caller (checkout, where the event can end\r\n * while the buyer is mid-flow) can re-derive against a clock it owns. It\r\n * defaults to `browserNow()` for callers that only need the mount-time answer.\r\n */\r\nexport function isEventEnded(\r\n event: EndableEvent | null | undefined,\r\n now: Date = browserNow()\r\n): boolean {\r\n if (!event) return false;\r\n // Absolute instant vs the buyer's clock, tz-independent\r\n const eventEnd = toInstantOrNull(event.endDateTime || event.startDateTime);\r\n return eventEnd ? compareInstants(eventEnd, now) < 0 : false;\r\n}\r\n","<script lang=\"ts\">\r\n import { defaultLabels } from '$lib/public-calendar-flow/i18n/labels.js';\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 = defaultLabels }: 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 // vc#706: these were bare string literals with no catalogue entry, so they\r\n // were unreachable by every locale mechanism while on screen for the entire\r\n // checkout session. Keyed now; the `||` keeps English when no labels arrive.\r\n let label = $derived(\r\n isUrgent\r\n ? labels.completeSoon || 'Complete soon'\r\n : labels.reservationHeld || 'Reservation held'\r\n );\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","isEventEnded","event","now","browserNow","eventEnd","toInstantOrNull","compareInstants","labels","defaultLabels","display","m","s","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;ACnBD,SAASS,EACdC,GACAC,IAAYC,KACH;AACT,MAAI,CAACF,EAAO,QAAO;AAEnB,QAAMG,IAAWC,EAAgBJ,EAAM,eAAeA,EAAM,aAAa;AACzE,SAAOG,IAAWE,EAAgBF,GAAUF,CAAG,IAAI,IAAI;AACzD;;iBCpCA;;AAWE,MAAyBK,IAAMvB,EAAA,KAAAC,GAAA,UAAA,GAAGuB,CAAa,GAE3CC,2BACK;AACL,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,EACzE,IAAC,GAMCC,IAAK5B,EAAA,QAAA,MAAAC,EAAA,WAEHsB,EAAM,EAAC,gBAAgB,kBACvBA,EAAM,EAAC,mBAAmB,kBAAkB;MAInDM,IAAGC,EAAA;;kBAAHD,CAAG;AACD,EAAAE,EAASrB,GAAA,EAAA,MAAA,MAAA,OAAA,YAAA;;AACT,EAAAsB,EAAIpB,GAAA;AAAA;;;;;;AACF,MAAAZ,EAAA,gBAAA,MAAAA,EAAA,SAAAiC,GAAA,GAAAjC,EAAA,IAAA4B,CAAK,mBAAYH,CAAO,KAAA,EAAA,EAAA,CAAA;;;cAH5BI,CAAG,2CAAHA,GAAG,GAAA,oDAAA,MAAAK,GAAA,EAAA,QAAAjC,EAAA,SAAA,CAAA,CAAA,eAAH4B,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 h } from "./VenueCalendar-
|
|
3
|
+
import { u as h } from "./VenueCalendar-DHAmKNT-.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-CeZ6tDgN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClockIcon-
|
|
1
|
+
{"version":3,"file":"ClockIcon-CeZ6tDgN.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ClockIcon.svelte"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Clock — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color === 'currentColor' ? undefined : color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\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}\n</svg>\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,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAE;AAAF,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,MAAK,iBAAiB,SAAYA,EAAK,EAAA,CAAA;AAAA,kBAP1DK,CAAE;AAFK;","x_google_ignoreList":[0]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { m as j, E as J, ai as U, F as Y, aY as H, I as K, w as Q, g as Z, aZ as X, j as $, y as ee } from "./VenueCalendar-
|
|
3
|
+
import { m as j, E as J, ai as U, F as Y, aY as H, I as K, w as Q, g as Z, aZ as X, j as $, y as ee } from "./VenueCalendar-DHAmKNT-.js";
|
|
4
4
|
import { untrack as B, onMount as te, onDestroy as re } from "svelte";
|
|
5
|
-
import { g as le } from "./ScarcityBadge-
|
|
6
|
-
import { E as oe } from "./Event-
|
|
7
|
-
import { b as ne } from "./transform-
|
|
5
|
+
import { g as le } from "./ScarcityBadge-CyrniwIo.js";
|
|
6
|
+
import { E as oe } from "./Event-DnguMKoM.js";
|
|
7
|
+
import { b as ne } from "./transform-C4GBIj6D.js";
|
|
8
8
|
var se = e.from_html("<div></div>"), ie = e.from_html('<div class="pt-2 space-y-2"><div class="flex gap-1.5"></div> <!></div>');
|
|
9
9
|
function ae(k, t) {
|
|
10
10
|
e.push(t, !0);
|
|
@@ -335,4 +335,4 @@ function be(k, t) {
|
|
|
335
335
|
export {
|
|
336
336
|
be as default
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=CollectionView-
|
|
338
|
+
//# sourceMappingURL=CollectionView-ClJC-3Ot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionView-7hj67MVA.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\">\n import { mergeLabels, type SCLabels } from '../../../utils/labels.js';\n import type { Snippet } from 'svelte';\n import type { Options } from 'check-password-strength';\n import { DURATION, safeSlide, EASING } from \"../../../utils/transitions.js\";\n import { lazyOnce } from \"../../../utils/lazyOnce.js\";\n import { untrack } from \"svelte\";\n\n const defaultLabels = {\n tooWeak: 'Too weak',\n weak: 'Weak',\n good: 'Good',\n strong: 'Strong',\n };\n\n interface Props {\n password?: string;\n strengthText?: string;\n score?: number;\n textColor?: string;\n children?: Snippet;\n labels?: SCLabels<typeof defaultLabels>;\n }\n\n let {\n password = \"\",\n strengthText = $bindable(\"\"),\n score = $bindable(-1),\n textColor = $bindable(\"\"),\n children,\n labels: userLabels = {},\n }: Props = $props();\n\n let labels = $derived(mergeLabels(defaultLabels, userLabels));\n\n let debouncedPassword = $state(\"\");\n // Use a plain variable for timer to avoid reactive dependency\n let timer: ReturnType<typeof setTimeout> | undefined;\n\n // Lazily load the (~10 KB) strength library only once a password exists.\n // Until it resolves, `strengthFn` is null and the indicator shows its\n // neutral (no-result) state — the debounce window absorbs the load latency.\n //\n // lazyOnce memoizes the import on success but RESETS on rejection: a\n // transient chunk-load failure must not be cached, or the indicator would\n // stay bricked until a page reload. On failure the next keystroke retries.\n // Explicit type ARGUMENT (not annotation) on purpose: with `$state(null)` TS\n // infers T = null, so control-flow analysis proves the variable is `null` at\n // the $derived read below and collapses the truthy branch to `never`\n // (\"This expression is not callable\"). The type argument keeps the union.\n let strengthFn = $state<typeof import('check-password-strength').passwordStrength | null>(null);\n const loadStrengthModule = lazyOnce(() => import('check-password-strength'));\n function ensureStrengthFn() {\n void loadStrengthModule()\n .then((m) => {\n strengthFn = m.passwordStrength;\n })\n .catch(() => {\n // Swallow — strengthFn stays null (neutral state) and lazyOnce\n // has already dropped its memo, so a later keystroke retries.\n });\n }\n\n // Kick off the load on the first keystroke, before the debounce fires.\n // Retries naturally on subsequent keystrokes after a transient failure\n // because lazyOnce does not cache the rejection.\n $effect(() => {\n if (password && !strengthFn) ensureStrengthFn();\n });\n\n // Typed as the library's own `Options<string>` so the strength call needs no\n // cast: the tuple's first entry satisfies `FirstOption` (minDiversity/minLength 0)\n // and the rest satisfy `Option`, checked contextually against this annotation.\n let customOptions: Options<string> = $derived([\n {\n id: 0,\n value: labels.tooWeak,\n minDiversity: 0,\n minLength: 0,\n },\n {\n id: 1,\n value: labels.weak,\n minDiversity: 1,\n minLength: 6,\n },\n {\n id: 2,\n value: labels.good,\n minDiversity: 2,\n minLength: 8,\n },\n {\n id: 3,\n value: labels.strong,\n minDiversity: 3,\n minLength: 10,\n },\n ]);\n\n // Debounce password updates - timer is not reactive to avoid dependency cycle\n $effect(() => {\n clearTimeout(timer);\n if (password.length === 0) {\n debouncedPassword = \"\";\n } else {\n timer = setTimeout(() => {\n debouncedPassword = password;\n }, 400); // 400ms delay as requested\n }\n return () => clearTimeout(timer);\n });\n\n let strength = $derived(debouncedPassword && strengthFn\n ? strengthFn(debouncedPassword, customOptions)\n : null);\n\n // Derive score based on password length and strength\n let computedScore = $derived(debouncedPassword.length > 12 ? 3 : (strength?.id ?? -1));\n\n // Sync computed values to bindable props using effects with untrack\n $effect(() => {\n const newScore = computedScore;\n if (untrack(() => score) !== newScore) {\n score = newScore;\n }\n });\n\n // Derive text and color from computedScore (not from bindable score)\n let computedStrengthText = $derived(\n computedScore === 0 ? labels.tooWeak :\n computedScore === 1 ? labels.weak :\n computedScore === 2 ? labels.good :\n computedScore === 3 ? labels.strong : \"\"\n );\n\n // No color until a real strength result exists. computedScore is -1 while\n // the lazily-loaded strength library is still in flight (and during the\n // debounce window), so emitting danger here would flash a red \"Password\n // strength\" line with empty text in consumers (e.g. PasswordInput).\n let computedTextColor = $derived(\n computedScore < 0 ? \"\" :\n computedScore <= 1 ? \"text-accent-danger\" : \"text-accent-success\"\n );\n\n $effect(() => {\n const newText = computedStrengthText;\n if (untrack(() => strengthText) !== newText) {\n strengthText = newText;\n }\n });\n\n let strengthColor = $derived(computedScore <= 1 ? \"bg-accent-danger\" : \"bg-accent-success\");\n\n $effect(() => {\n const newColor = computedTextColor;\n if (untrack(() => textColor) !== newColor) {\n textColor = newColor;\n }\n });\n\n // Calculate how many bars to fill (1-3)\n let filledBars = $derived(computedScore === 0 ? 1 : computedScore === 1 ? 2 : computedScore >= 2 ? 3 : 0);\n</script>\n\n{#if debouncedPassword.length > 0}\n <div\n transition:safeSlide={{ duration: DURATION.elaborate, easing: EASING.out }}\n class=\"pt-2 space-y-2\"\n >\n <!-- 3 segment bars -->\n <div class=\"flex gap-1.5\">\n {#each [0, 1, 2] as barIndex (barIndex)}\n <div\n class=\"h-1 flex-1 rounded-full transition-colors duration-normal {barIndex <\n filledBars\n ? strengthColor\n : 'bg-bg-tertiary'}\"\n ></div>\n {/each}\n </div>\n {@render children?.()}\n </div>\n{/if}\n","<script lang=\"ts\">\n import { mergeLabels, type SCLabels } from '../../utils/labels.js';\n /**\n * PasswordInput - Password field with show/hide toggle and strength indicator\n *\n * Combines Input (password type) with PasswordStrengthIndicator for\n * a complete password entry experience.\n *\n * @example\n * <PasswordInput\n * label=\"New Password\"\n * bind:value={password}\n * showStrength\n * error={$errors.password}\n * required\n * />\n *\n * @example Consumer-owned validation (e.g. Zod): opt out of the built-in\n * `required` constraint so the consuming form is the single source of truth.\n * <PasswordInput\n * label=\"Password\"\n * bind:value={password}\n * required\n * disableBuiltInValidation\n * error={$errors.password}\n * />\n */\n import Input from '../../primitives/Input/Input.svelte';\n import PasswordStrengthIndicator from './PasswordStrengthIndicator/PasswordStrengthIndicator.svelte';\n\n const defaultLabels = {\n passwordStrength: 'Password strength:',\n };\n\n interface Props {\n /** Password value */\n value?: string;\n /** Label text */\n label?: string;\n /** Placeholder text */\n placeholder?: string;\n /** Input name attribute */\n name?: string;\n /** Input id attribute */\n id?: string;\n /** Whether the field is required */\n required?: boolean;\n /**\n * Opt out of the component's built-in `required` validation so the\n * consumer owns validation entirely (e.g. a Zod schema on the form).\n * When `true`, the `required` constraint is NOT forwarded to the\n * underlying field (no `aria-required`, no required asterisk). The\n * visual error/hint still render via `error`/`hint`. Defaults to\n * `false`, preserving the existing built-in behavior exactly.\n */\n disableBuiltInValidation?: boolean;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Error message to display */\n error?: string;\n /** Hint text shown below input */\n hint?: string;\n /** Show password strength indicator */\n showStrength?: boolean;\n /** Size variant */\n size?: 'sm' | 'md' | 'lg';\n /** Minimum password length */\n minlength?: number | null;\n /** Maximum password length */\n maxlength?: number | null;\n /** Autocomplete attribute */\n autocomplete?: string;\n /** Whether to show the password toggle button */\n showPasswordToggle?: boolean;\n /** Additional class for the wrapper div */\n class?: string;\n // Optional callbacks (matching Input component signatures)\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;\n onblur?: () => void;\n onfocus?: () => void;\n /** Override user-visible strings */\n labels?: SCLabels<typeof defaultLabels>;\n }\n\n let {\n value = $bindable(''),\n label = '',\n placeholder = '',\n name = '',\n id = '',\n required = false,\n disableBuiltInValidation = false,\n disabled = false,\n error = '',\n hint = '',\n showStrength = false,\n size = 'md',\n minlength = null,\n maxlength = null,\n autocomplete = 'new-password',\n showPasswordToggle = true,\n class: className = '',\n oninput,\n onblur,\n onfocus,\n labels: userLabels = {},\n }: Props = $props();\n\n let labels = $derived(mergeLabels(defaultLabels, userLabels));\n\n // When the consumer opts out of built-in validation, do NOT forward the\n // `required` constraint to the underlying field — the consuming form owns\n // validation entirely. Default (false) forwards `required` as-is, exactly\n // preserving existing behavior.\n let effectiveRequired = $derived(disableBuiltInValidation ? false : required);\n\n // Password strength tracking\n let strengthScore = $state(-1);\n let strengthText = $state('');\n let strengthColor = $state('');\n</script>\n\n<div class={className}>\n <Input\n type=\"password\"\n {id}\n {name}\n {placeholder}\n {label}\n required={effectiveRequired}\n {disabled}\n {size}\n {minlength}\n {maxlength}\n {autocomplete}\n {showPasswordToggle}\n errorText={error}\n hintText={hint}\n bind:value\n oninputchange={oninput}\n {onblur}\n {onfocus}\n />\n\n {#if showStrength && value}\n <PasswordStrengthIndicator\n password={value}\n bind:score={strengthScore}\n bind:strengthText\n bind:textColor={strengthColor}\n >\n <p class=\"type-caption {strengthColor}\">\n {labels.passwordStrength} {strengthText}\n </p>\n </PasswordStrengthIndicator>\n {/if}\n</div>\n","<!-- @route-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n import { defaultLabels } from '$lib/i18n/defaultLabels.js';\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 {\r\n Button,\r\n createLogger,\r\n PasswordInput,\r\n } 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 /** BCP-47 locale tag (e.g. 'es', 'es-MX'). Undefined → browser locale → en. */\r\n locale?: 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 = defaultLabels,\r\n locale = undefined,\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 // R-STORAGE-02 namespaced key (`micdrop:<feature>:<detail>`) — mirrors\r\n // EventPage's `micdrop:authedEvents:list` so the two public password gates\r\n // behave the same way: an unlock is sticky for the tab session instead of\r\n // re-prompting on every refresh.\r\n //\r\n // Events can store the id alone because their flag only suppresses a modal.\r\n // The public collection payload is served ONLY for a matching `?password=`\r\n // query (auth `isCollectionPasswordSatisfied` — there is no unlock cookie),\r\n // so the entry has to carry the password in order to replay it. The server\r\n // stays the authority: a stored password that no longer matches comes back\r\n // as `passwordRequired` and we re-prompt, so the flag can never reveal gated\r\n // content on its own. The value is a shared per-collection gate password,\r\n // not a visitor credential, and dies with the tab.\r\n const AUTHED_COLLECTIONS_STORAGE_KEY = 'micdrop:authedCollections:list';\r\n\r\n interface AuthedCollection {\r\n id: string;\r\n password: string;\r\n }\r\n\r\n function readAuthedCollections(): AuthedCollection[] {\r\n if (typeof window === 'undefined') return [];\r\n try {\r\n const parsed = JSON.parse(\r\n sessionStorage.getItem(AUTHED_COLLECTIONS_STORAGE_KEY) || '[]'\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n // A foreign/corrupt value under our key must degrade to \"locked\" rather\r\n // than throw and take the whole collection load down with it.\r\n return Array.isArray(parsed) ? parsed : [];\r\n } catch {\r\n return [];\r\n }\r\n }\r\n\r\n function getAuthedCollectionPassword(\r\n colId: string | number\r\n ): string | undefined {\r\n const entry = readAuthedCollections().find((c) => c?.id === String(colId));\r\n return entry?.password || undefined;\r\n }\r\n\r\n function setAuthedCollectionPassword(\r\n colId: string | number,\r\n pwd?: string\r\n ): void {\r\n if (typeof window === 'undefined' || !pwd) return;\r\n // Rewrite rather than push-if-absent so a rotated password replaces the\r\n // stale entry for this collection instead of being shadowed by it.\r\n const authedCollections = readAuthedCollections().filter(\r\n (c) => c?.id !== String(colId)\r\n );\r\n authedCollections.push({ id: String(colId), password: pwd });\r\n sessionStorage.setItem(\r\n AUTHED_COLLECTIONS_STORAGE_KEY,\r\n JSON.stringify(authedCollections)\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n }\r\n\r\n function clearAuthedCollection(colId: string | number): void {\r\n if (typeof window === 'undefined') return;\r\n const remaining = readAuthedCollections().filter(\r\n (c) => c?.id !== String(colId)\r\n );\r\n sessionStorage.setItem(\r\n AUTHED_COLLECTIONS_STORAGE_KEY,\r\n JSON.stringify(remaining)\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n }\r\n\r\n // --- Load collection data ---\r\n // `fromSession` marks a password replayed from sessionStorage rather than\r\n // typed just now — it must be dropped (not blamed on the visitor) if the\r\n // server no longer accepts it.\r\n async function loadCollection(\r\n pwd?: string,\r\n fromSession = false\r\n ): 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 if (fromSession) clearAuthedCollection(collectionId);\r\n isLoading = false;\r\n return;\r\n }\r\n collection = data;\r\n passwordRequired = false;\r\n // Remember the accepted password for this tab so a refresh re-opens the\r\n // collection instead of re-prompting. No-op when the collection isn't\r\n // protected (pwd undefined).\r\n setAuthedCollectionPassword(collectionId, pwd);\r\n } else {\r\n if (pwd) {\r\n passwordRequired = true;\r\n if (fromSession) {\r\n clearAuthedCollection(collectionId);\r\n } else {\r\n passwordError = true;\r\n }\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 if (fromSession) clearAuthedCollection(collectionId);\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 // An explicit prop password wins (the embed host supplied it); otherwise\r\n // replay this tab's stored unlock. The stored entry is keyed to the\r\n // collection id alone, so unlocking a collection still does NOT authenticate\r\n // the events inside it — the per-event gate runs on its own on the event page.\r\n const sessionPwd = password\r\n ? undefined\r\n : getAuthedCollectionPassword(collectionId);\r\n loadCollection(password ?? sessionPwd, Boolean(sessionPwd));\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 || 'Incorrect password. Please try again'\r\n : ''}\r\n />\r\n <Button variant=\"default\" type=\"submit\">\r\n {labels.viewCollection || 'View collection'}\r\n </Button>\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 {labels}\r\n {locale}\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, rgb(0 0 0) 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</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","locale","collection","isLoading","isMounted","passwordRequired","passwordInput","passwordError","eventData","transformCollectionData","latestLoad","AUTHED_COLLECTIONS_STORAGE_KEY","readAuthedCollections","parsed","getAuthedCollectionPassword","colId","c","setAuthedCollectionPassword","pwd","authedCollections","clearAuthedCollection","remaining","loadCollection","fromSession","loadId","data","fetchPublicCollection","err","msg","handlePasswordSubmit","e","handleCollectionEventClick","galleryEvent","goto","resolve","onMount","sessionPwd","onDestroy","h2","p_1","form","PasswordInput","node_1","Button","node_2","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,IAAMN,EAAA,QAAA,MAAYO,EAAYT,GAAeO,EAAU,CAAA,CAAA,GAEvDG,IAAoBR,EAAA,MAAO,EAAE,GAE7BS,GAaAC,IAAaV,EAAA,MAAyE,IAAI;AAC9F,QAAMW,IAAqBC,EAAQ,M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AAC,EAAA;cAADA,CAAC;AAID,UAAAC,cAJAD,GAAC,CAAA,eAIDC,CAAI;;gCAGYjG,EAAM,EAAC,iBAAiB,gBAAgB,6BAC9CgE,CAAa,IAChBhE,EAAM,EAAC,qBAAqB,yCAC5B,EAAE;AALP,QAAAkG,GAAaC,GAAA;AAAA;;;;;;cACZ,QAAU;yBAAEpC,CAAa;AAAA;cAAzB,MAAUV,GAAA;kBAAEU,GAAaV,GAAA,EAAA;AAAA;;;;AAM1B,MAAA+C,EAAMC,GAAA;AAAA;;;;;gDACJrG,EAAM,EAAC,kBAAkB,iBAAiB,CAAA;;;kBAT9CiG,CAAI,WARNxE,CAAG,WAHLH,CAAG;sBAKGtB,EAAM,EAAC,0BAA0B,4BAA4B,iBAG7DA,EAAM,EAAC,gCACN,mDAAmD;AAAA,UAEtDN,EAAA,MAAA,UAAAuG,GAAeX,CAAoB,eAXvChE,CAAG;AAAA;UA0BHgF,IAAGC,GAAA,GAGDC,YAHFF,CAAG,eAGDE,CAAC;cAADA,CAAC,WAHHF,CAAG,GAGqB5G,EAAA,gBAAA,MAAAA,EAAA,SAAA+G,GAAA,IAAAzG,IAAO,eAAe,yBAAWwC,CAAK,KAAA,EAAA,EAAA,CAAA,eAH9D8D,CAAG;AAAA;AAMHI,MAAAA,GAAelF,GAAA;AAAA;uBACPyC,CAAS;AAAA;gCACQuB;AAAA;iBACvBxF,EAAM;AAAA;;iBACN0D,EAAM;AAAA;;;;AA3CN,MAAAhE,EAAA,IAAAkE,CAAS,IAAA9B,EAAAC,CAAA,IAAArC,EAAA,IAMJoE,CAAgB,IAAAhC,EAAA6E,GAAA,CAAA,IAAAjH,EAAA,IA0BhB8C,CAAK,oBAMLyB,CAAS,KAAAnC,EAAA8E,GAAA,CAAA;AAAA;;;AA3CX;","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"CollectionView-ClJC-3Ot.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\">\n import { mergeLabels, type SCLabels } from '../../../utils/labels.js';\n import type { Snippet } from 'svelte';\n import type { Options } from 'check-password-strength';\n import { DURATION, safeSlide, EASING } from \"../../../utils/transitions.js\";\n import { lazyOnce } from \"../../../utils/lazyOnce.js\";\n import { untrack } from \"svelte\";\n\n const defaultLabels = {\n tooWeak: 'Too weak',\n weak: 'Weak',\n good: 'Good',\n strong: 'Strong',\n };\n\n interface Props {\n password?: string;\n strengthText?: string;\n score?: number;\n textColor?: string;\n children?: Snippet;\n labels?: SCLabels<typeof defaultLabels>;\n }\n\n let {\n password = \"\",\n strengthText = $bindable(\"\"),\n score = $bindable(-1),\n textColor = $bindable(\"\"),\n children,\n labels: userLabels = {},\n }: Props = $props();\n\n let labels = $derived(mergeLabels(defaultLabels, userLabels));\n\n let debouncedPassword = $state(\"\");\n // Use a plain variable for timer to avoid reactive dependency\n let timer: ReturnType<typeof setTimeout> | undefined;\n\n // Lazily load the (~10 KB) strength library only once a password exists.\n // Until it resolves, `strengthFn` is null and the indicator shows its\n // neutral (no-result) state — the debounce window absorbs the load latency.\n //\n // lazyOnce memoizes the import on success but RESETS on rejection: a\n // transient chunk-load failure must not be cached, or the indicator would\n // stay bricked until a page reload. On failure the next keystroke retries.\n // Explicit type ARGUMENT (not annotation) on purpose: with `$state(null)` TS\n // infers T = null, so control-flow analysis proves the variable is `null` at\n // the $derived read below and collapses the truthy branch to `never`\n // (\"This expression is not callable\"). The type argument keeps the union.\n let strengthFn = $state<typeof import('check-password-strength').passwordStrength | null>(null);\n const loadStrengthModule = lazyOnce(() => import('check-password-strength'));\n function ensureStrengthFn() {\n void loadStrengthModule()\n .then((m) => {\n strengthFn = m.passwordStrength;\n })\n .catch(() => {\n // Swallow — strengthFn stays null (neutral state) and lazyOnce\n // has already dropped its memo, so a later keystroke retries.\n });\n }\n\n // Kick off the load on the first keystroke, before the debounce fires.\n // Retries naturally on subsequent keystrokes after a transient failure\n // because lazyOnce does not cache the rejection.\n $effect(() => {\n if (password && !strengthFn) ensureStrengthFn();\n });\n\n // Typed as the library's own `Options<string>` so the strength call needs no\n // cast: the tuple's first entry satisfies `FirstOption` (minDiversity/minLength 0)\n // and the rest satisfy `Option`, checked contextually against this annotation.\n let customOptions: Options<string> = $derived([\n {\n id: 0,\n value: labels.tooWeak,\n minDiversity: 0,\n minLength: 0,\n },\n {\n id: 1,\n value: labels.weak,\n minDiversity: 1,\n minLength: 6,\n },\n {\n id: 2,\n value: labels.good,\n minDiversity: 2,\n minLength: 8,\n },\n {\n id: 3,\n value: labels.strong,\n minDiversity: 3,\n minLength: 10,\n },\n ]);\n\n // Debounce password updates - timer is not reactive to avoid dependency cycle\n $effect(() => {\n clearTimeout(timer);\n if (password.length === 0) {\n debouncedPassword = \"\";\n } else {\n timer = setTimeout(() => {\n debouncedPassword = password;\n }, 400); // 400ms delay as requested\n }\n return () => clearTimeout(timer);\n });\n\n let strength = $derived(debouncedPassword && strengthFn\n ? strengthFn(debouncedPassword, customOptions)\n : null);\n\n // Derive score based on password length and strength\n let computedScore = $derived(debouncedPassword.length > 12 ? 3 : (strength?.id ?? -1));\n\n // Sync computed values to bindable props using effects with untrack\n $effect(() => {\n const newScore = computedScore;\n if (untrack(() => score) !== newScore) {\n score = newScore;\n }\n });\n\n // Derive text and color from computedScore (not from bindable score)\n let computedStrengthText = $derived(\n computedScore === 0 ? labels.tooWeak :\n computedScore === 1 ? labels.weak :\n computedScore === 2 ? labels.good :\n computedScore === 3 ? labels.strong : \"\"\n );\n\n // No color until a real strength result exists. computedScore is -1 while\n // the lazily-loaded strength library is still in flight (and during the\n // debounce window), so emitting danger here would flash a red \"Password\n // strength\" line with empty text in consumers (e.g. PasswordInput).\n let computedTextColor = $derived(\n computedScore < 0 ? \"\" :\n computedScore <= 1 ? \"text-accent-danger\" : \"text-accent-success\"\n );\n\n $effect(() => {\n const newText = computedStrengthText;\n if (untrack(() => strengthText) !== newText) {\n strengthText = newText;\n }\n });\n\n let strengthColor = $derived(computedScore <= 1 ? \"bg-accent-danger\" : \"bg-accent-success\");\n\n $effect(() => {\n const newColor = computedTextColor;\n if (untrack(() => textColor) !== newColor) {\n textColor = newColor;\n }\n });\n\n // Calculate how many bars to fill (1-3)\n let filledBars = $derived(computedScore === 0 ? 1 : computedScore === 1 ? 2 : computedScore >= 2 ? 3 : 0);\n</script>\n\n{#if debouncedPassword.length > 0}\n <div\n transition:safeSlide={{ duration: DURATION.elaborate, easing: EASING.out }}\n class=\"pt-2 space-y-2\"\n >\n <!-- 3 segment bars -->\n <div class=\"flex gap-1.5\">\n {#each [0, 1, 2] as barIndex (barIndex)}\n <div\n class=\"h-1 flex-1 rounded-full transition-colors duration-normal {barIndex <\n filledBars\n ? strengthColor\n : 'bg-bg-tertiary'}\"\n ></div>\n {/each}\n </div>\n {@render children?.()}\n </div>\n{/if}\n","<script lang=\"ts\">\n import { mergeLabels, type SCLabels } from '../../utils/labels.js';\n /**\n * PasswordInput - Password field with show/hide toggle and strength indicator\n *\n * Combines Input (password type) with PasswordStrengthIndicator for\n * a complete password entry experience.\n *\n * @example\n * <PasswordInput\n * label=\"New Password\"\n * bind:value={password}\n * showStrength\n * error={$errors.password}\n * required\n * />\n *\n * @example Consumer-owned validation (e.g. Zod): opt out of the built-in\n * `required` constraint so the consuming form is the single source of truth.\n * <PasswordInput\n * label=\"Password\"\n * bind:value={password}\n * required\n * disableBuiltInValidation\n * error={$errors.password}\n * />\n */\n import Input from '../../primitives/Input/Input.svelte';\n import PasswordStrengthIndicator from './PasswordStrengthIndicator/PasswordStrengthIndicator.svelte';\n\n const defaultLabels = {\n passwordStrength: 'Password strength:',\n };\n\n interface Props {\n /** Password value */\n value?: string;\n /** Label text */\n label?: string;\n /** Placeholder text */\n placeholder?: string;\n /** Input name attribute */\n name?: string;\n /** Input id attribute */\n id?: string;\n /** Whether the field is required */\n required?: boolean;\n /**\n * Opt out of the component's built-in `required` validation so the\n * consumer owns validation entirely (e.g. a Zod schema on the form).\n * When `true`, the `required` constraint is NOT forwarded to the\n * underlying field (no `aria-required`, no required asterisk). The\n * visual error/hint still render via `error`/`hint`. Defaults to\n * `false`, preserving the existing built-in behavior exactly.\n */\n disableBuiltInValidation?: boolean;\n /** Whether the field is disabled */\n disabled?: boolean;\n /** Error message to display */\n error?: string;\n /** Hint text shown below input */\n hint?: string;\n /** Show password strength indicator */\n showStrength?: boolean;\n /** Size variant */\n size?: 'sm' | 'md' | 'lg';\n /** Minimum password length */\n minlength?: number | null;\n /** Maximum password length */\n maxlength?: number | null;\n /** Autocomplete attribute */\n autocomplete?: string;\n /** Whether to show the password toggle button */\n showPasswordToggle?: boolean;\n /** Additional class for the wrapper div */\n class?: string;\n // Optional callbacks (matching Input component signatures)\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;\n onblur?: () => void;\n onfocus?: () => void;\n /** Override user-visible strings */\n labels?: SCLabels<typeof defaultLabels>;\n }\n\n let {\n value = $bindable(''),\n label = '',\n placeholder = '',\n name = '',\n id = '',\n required = false,\n disableBuiltInValidation = false,\n disabled = false,\n error = '',\n hint = '',\n showStrength = false,\n size = 'md',\n minlength = null,\n maxlength = null,\n autocomplete = 'new-password',\n showPasswordToggle = true,\n class: className = '',\n oninput,\n onblur,\n onfocus,\n labels: userLabels = {},\n }: Props = $props();\n\n let labels = $derived(mergeLabels(defaultLabels, userLabels));\n\n // When the consumer opts out of built-in validation, do NOT forward the\n // `required` constraint to the underlying field — the consuming form owns\n // validation entirely. Default (false) forwards `required` as-is, exactly\n // preserving existing behavior.\n let effectiveRequired = $derived(disableBuiltInValidation ? false : required);\n\n // Password strength tracking\n let strengthScore = $state(-1);\n let strengthText = $state('');\n let strengthColor = $state('');\n</script>\n\n<div class={className}>\n <Input\n type=\"password\"\n {id}\n {name}\n {placeholder}\n {label}\n required={effectiveRequired}\n {disabled}\n {size}\n {minlength}\n {maxlength}\n {autocomplete}\n {showPasswordToggle}\n errorText={error}\n hintText={hint}\n bind:value\n oninputchange={oninput}\n {onblur}\n {onfocus}\n />\n\n {#if showStrength && value}\n <PasswordStrengthIndicator\n password={value}\n bind:score={strengthScore}\n bind:strengthText\n bind:textColor={strengthColor}\n >\n <p class=\"type-caption {strengthColor}\">\n {labels.passwordStrength} {strengthText}\n </p>\n </PasswordStrengthIndicator>\n {/if}\n</div>\n","<!-- @route-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n import { defaultLabels } from '$lib/i18n/defaultLabels.js';\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 {\r\n Button,\r\n createLogger,\r\n PasswordInput,\r\n } 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 /** BCP-47 locale tag (e.g. 'es', 'es-MX'). Undefined → browser locale → en. */\r\n locale?: 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 = defaultLabels,\r\n locale = undefined,\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 // R-STORAGE-02 namespaced key (`micdrop:<feature>:<detail>`) — mirrors\r\n // EventPage's `micdrop:authedEvents:list` so the two public password gates\r\n // behave the same way: an unlock is sticky for the tab session instead of\r\n // re-prompting on every refresh.\r\n //\r\n // Events can store the id alone because their flag only suppresses a modal.\r\n // The public collection payload is served ONLY for a matching `?password=`\r\n // query (auth `isCollectionPasswordSatisfied` — there is no unlock cookie),\r\n // so the entry has to carry the password in order to replay it. The server\r\n // stays the authority: a stored password that no longer matches comes back\r\n // as `passwordRequired` and we re-prompt, so the flag can never reveal gated\r\n // content on its own. The value is a shared per-collection gate password,\r\n // not a visitor credential, and dies with the tab.\r\n const AUTHED_COLLECTIONS_STORAGE_KEY = 'micdrop:authedCollections:list';\r\n\r\n interface AuthedCollection {\r\n id: string;\r\n password: string;\r\n }\r\n\r\n function readAuthedCollections(): AuthedCollection[] {\r\n if (typeof window === 'undefined') return [];\r\n try {\r\n const parsed = JSON.parse(\r\n sessionStorage.getItem(AUTHED_COLLECTIONS_STORAGE_KEY) || '[]'\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n // A foreign/corrupt value under our key must degrade to \"locked\" rather\r\n // than throw and take the whole collection load down with it.\r\n return Array.isArray(parsed) ? parsed : [];\r\n } catch {\r\n return [];\r\n }\r\n }\r\n\r\n function getAuthedCollectionPassword(\r\n colId: string | number\r\n ): string | undefined {\r\n const entry = readAuthedCollections().find((c) => c?.id === String(colId));\r\n return entry?.password || undefined;\r\n }\r\n\r\n function setAuthedCollectionPassword(\r\n colId: string | number,\r\n pwd?: string\r\n ): void {\r\n if (typeof window === 'undefined' || !pwd) return;\r\n // Rewrite rather than push-if-absent so a rotated password replaces the\r\n // stale entry for this collection instead of being shadowed by it.\r\n const authedCollections = readAuthedCollections().filter(\r\n (c) => c?.id !== String(colId)\r\n );\r\n authedCollections.push({ id: String(colId), password: pwd });\r\n sessionStorage.setItem(\r\n AUTHED_COLLECTIONS_STORAGE_KEY,\r\n JSON.stringify(authedCollections)\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n }\r\n\r\n function clearAuthedCollection(colId: string | number): void {\r\n if (typeof window === 'undefined') return;\r\n const remaining = readAuthedCollections().filter(\r\n (c) => c?.id !== String(colId)\r\n );\r\n sessionStorage.setItem(\r\n AUTHED_COLLECTIONS_STORAGE_KEY,\r\n JSON.stringify(remaining)\r\n ); // @storage-escape: authedCollections session-auth state (intentional raw sessionStorage)\r\n }\r\n\r\n // --- Load collection data ---\r\n // `fromSession` marks a password replayed from sessionStorage rather than\r\n // typed just now — it must be dropped (not blamed on the visitor) if the\r\n // server no longer accepts it.\r\n async function loadCollection(\r\n pwd?: string,\r\n fromSession = false\r\n ): 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 if (fromSession) clearAuthedCollection(collectionId);\r\n isLoading = false;\r\n return;\r\n }\r\n collection = data;\r\n passwordRequired = false;\r\n // Remember the accepted password for this tab so a refresh re-opens the\r\n // collection instead of re-prompting. No-op when the collection isn't\r\n // protected (pwd undefined).\r\n setAuthedCollectionPassword(collectionId, pwd);\r\n } else {\r\n if (pwd) {\r\n passwordRequired = true;\r\n if (fromSession) {\r\n clearAuthedCollection(collectionId);\r\n } else {\r\n passwordError = true;\r\n }\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 if (fromSession) clearAuthedCollection(collectionId);\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 // An explicit prop password wins (the embed host supplied it); otherwise\r\n // replay this tab's stored unlock. The stored entry is keyed to the\r\n // collection id alone, so unlocking a collection still does NOT authenticate\r\n // the events inside it — the per-event gate runs on its own on the event page.\r\n const sessionPwd = password\r\n ? undefined\r\n : getAuthedCollectionPassword(collectionId);\r\n loadCollection(password ?? sessionPwd, Boolean(sessionPwd));\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 || 'Incorrect password. Please try again'\r\n : ''}\r\n />\r\n <Button variant=\"default\" type=\"submit\">\r\n {labels.viewCollection || 'View collection'}\r\n </Button>\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 {labels}\r\n {locale}\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, rgb(0 0 0) 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</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","locale","collection","isLoading","isMounted","passwordRequired","passwordInput","passwordError","eventData","transformCollectionData","latestLoad","AUTHED_COLLECTIONS_STORAGE_KEY","readAuthedCollections","parsed","getAuthedCollectionPassword","colId","c","setAuthedCollectionPassword","pwd","authedCollections","clearAuthedCollection","remaining","loadCollection","fromSession","loadId","data","fetchPublicCollection","err","msg","handlePasswordSubmit","e","handleCollectionEventClick","galleryEvent","goto","resolve","onMount","sessionPwd","onDestroy","h2","p_1","form","PasswordInput","node_1","Button","node_2","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,UA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,IA0BhB8C,CAAK,oBAMLyB,CAAS,KAAAnC,EAAA8E,GAAA,CAAA;AAAA;;;AA3CX;","x_google_ignoreList":[0,1]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import { c as wa, a as Dt, b as yt, C as ra, D as Qt, d as ia, e as na, O as mt, g as ja, f as Ke } from "./index-
|
|
4
|
-
import { aX as It, u as sa, m as la, t as Je, J as oa, E as Ma, F as Ta, a5 as Fe, Q as Ve, aF as Ca, a_ as qa, R as Pa, S as Ra, w as da, a0 as ca, $ as $e, j as ge, a$ as ua, ax as qt, aw as Ya, a2 as Gt, aj as Ue, D as Ea, au as Ha, an as Wa, aP as Xe, I as fa, b0 as ga, b1 as ht, a1 as kt, af as rt, b2 as va, b3 as Oa, b4 as za, b5 as Ua, b6 as Fa, b7 as Ja } from "./VenueCalendar-
|
|
5
|
-
import { b as Za } from "./serverTotals-
|
|
6
|
-
import { I as pa, T as xe } from "./Text-
|
|
3
|
+
import { c as wa, a as Dt, b as yt, C as ra, D as Qt, d as ia, e as na, O as mt, g as ja, f as Ke } from "./index-CwsI9tPj.js";
|
|
4
|
+
import { aX as It, u as sa, m as la, t as Je, J as oa, E as Ma, F as Ta, a5 as Fe, Q as Ve, aF as Ca, a_ as qa, R as Pa, S as Ra, w as da, a0 as ca, $ as $e, j as ge, a$ as ua, ax as qt, aw as Ya, a2 as Gt, aj as Ue, D as Ea, au as Ha, an as Wa, aP as Xe, I as fa, b0 as ga, b1 as ht, a1 as kt, af as rt, b2 as va, b3 as Oa, b4 as za, b5 as Ua, b6 as Fa, b7 as Ja } from "./VenueCalendar-DHAmKNT-.js";
|
|
5
|
+
import { b as Za } from "./serverTotals-CxpmLBUi.js";
|
|
6
|
+
import { I as pa, T as xe } from "./Text-CfL6ex6f.js";
|
|
7
7
|
import { createContext as Aa, onMount as La, onDestroy as Ka } from "svelte";
|
|
8
|
-
import { c as Va, E as Xa, L as _a } from "./shareCopyFeedback.svelte-
|
|
9
|
-
import { C as $a, S as Nt, a as er, A as tr } from "./ScarcityBadge-
|
|
10
|
-
import { H as Te, C as _e } from "./Heading-
|
|
11
|
-
import { C as lt } from "./ClockIcon-
|
|
8
|
+
import { c as Va, E as Xa, L as _a } from "./shareCopyFeedback.svelte-BVLGQMN_.js";
|
|
9
|
+
import { C as $a, S as Nt, a as er, A as tr } from "./ScarcityBadge-CyrniwIo.js";
|
|
10
|
+
import { H as Te, C as _e } from "./Heading-Dpc12_QS.js";
|
|
11
|
+
import { C as lt } from "./ClockIcon-CeZ6tDgN.js";
|
|
12
12
|
import { d as et } from "./labels-Dna_YObX.js";
|
|
13
13
|
import { SvelteSet as ar, SvelteMap as rr } from "svelte/reactivity";
|
|
14
14
|
const [ir, nr] = Aa(), [ma, sr] = Aa();
|
|
@@ -3407,4 +3407,4 @@ function Nn(l, a) {
|
|
|
3407
3407
|
export {
|
|
3408
3408
|
Nn as E
|
|
3409
3409
|
};
|
|
3410
|
-
//# sourceMappingURL=Event-
|
|
3410
|
+
//# sourceMappingURL=Event-DnguMKoM.js.map
|