@getmicdrop/venue-calendar 4.1.20 → 4.1.21
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-BOoBoBw-.js → CartView-BT6tT85K.js} +9 -9
- package/dist/{CartView-BOoBoBw-.js.map → CartView-BT6tT85K.js.map} +1 -1
- package/dist/{Checkout-COF7QD5m.js → Checkout-Bggkt4ae.js} +9 -9
- package/dist/{Checkout-COF7QD5m.js.map → Checkout-Bggkt4ae.js.map} +1 -1
- package/dist/{Checkout-CKn4bx3u.js → Checkout-CMcAetKf.js} +7 -7
- package/dist/{Checkout-CKn4bx3u.js.map → Checkout-CMcAetKf.js.map} +1 -1
- package/dist/{CheckoutTimer-CuJ3H-dF.js → CheckoutTimer-BzXFBzLE.js} +5 -5
- package/dist/{CheckoutTimer-CuJ3H-dF.js.map → CheckoutTimer-BzXFBzLE.js.map} +1 -1
- package/dist/{ClockIcon-BMKqXd9k.js → ClockIcon-CTjogw-f.js} +2 -2
- package/dist/{ClockIcon-BMKqXd9k.js.map → ClockIcon-CTjogw-f.js.map} +1 -1
- package/dist/{CollectionView-CVI-8bUT.js → CollectionView-EiUpQ7Qf.js} +5 -5
- package/dist/{CollectionView-CVI-8bUT.js.map → CollectionView-EiUpQ7Qf.js.map} +1 -1
- package/dist/{Event-C9gU8KwH.js → Event-BxKp3c4e.js} +9 -9
- package/dist/{Event-C9gU8KwH.js.map → Event-BxKp3c4e.js.map} +1 -1
- package/dist/{EventPage-BCk648TY.js → EventPage-D-yLuLDX.js} +8 -8
- package/dist/{EventPage-BCk648TY.js.map → EventPage-D-yLuLDX.js.map} +1 -1
- package/dist/{Heading-Ce_NqN86.js → Heading-DmEiDle9.js} +2 -2
- package/dist/{Heading-Ce_NqN86.js.map → Heading-DmEiDle9.js.map} +1 -1
- package/dist/{ScarcityBadge-AWYBMlmA.js → ScarcityBadge-BHbm9H1l.js} +2 -2
- package/dist/{ScarcityBadge-AWYBMlmA.js.map → ScarcityBadge-BHbm9H1l.js.map} +1 -1
- package/dist/{SeriesPage-PwabAwdy.js → SeriesPage-DipiMfgn.js} +5 -5
- package/dist/{SeriesPage-PwabAwdy.js.map → SeriesPage-DipiMfgn.js.map} +1 -1
- package/dist/{Spinner-Db9Wpu2h.js → Spinner-DtPqUnEh.js} +2 -2
- package/dist/{Spinner-Db9Wpu2h.js.map → Spinner-DtPqUnEh.js.map} +1 -1
- package/dist/{Success-DXOVArdU.js → Success-b6rn2geE.js} +9 -9
- package/dist/{Success-DXOVArdU.js.map → Success-b6rn2geE.js.map} +1 -1
- package/dist/{Text-uczQblTk.js → Text-B4vB8FfC.js} +2 -2
- package/dist/{Text-uczQblTk.js.map → Text-B4vB8FfC.js.map} +1 -1
- package/dist/{VenueCalendar-4puopg0V.js → VenueCalendar-nR43Iptv.js} +13 -13
- package/dist/{VenueCalendar-4puopg0V.js.map → VenueCalendar-nR43Iptv.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-FTxJKhDE.js → ViewTicketsEmbed-7ouHN4OY.js} +5 -5
- package/dist/{ViewTicketsEmbed-FTxJKhDE.js.map → ViewTicketsEmbed-7ouHN4OY.js.map} +1 -1
- package/dist/{index-DXneiduZ.js → index-DkmP5LMr.js} +3 -3
- package/dist/{index-DXneiduZ.js.map → index-DkmP5LMr.js.map} +1 -1
- package/dist/{modalManager.svelte-Cm3zJtyM.js → modalManager.svelte-CvgmhRJa.js} +2 -2
- package/dist/{modalManager.svelte-Cm3zJtyM.js.map → modalManager.svelte-CvgmhRJa.js.map} +1 -1
- package/dist/{promo-CC3Rb8Fj.js → promo-zBwoLUtA.js} +2 -2
- package/dist/{promo-CC3Rb8Fj.js.map → promo-zBwoLUtA.js.map} +1 -1
- package/dist/{serverTotals-CAH5qllj.js → serverTotals-BS25PKF0.js} +2 -2
- package/dist/{serverTotals-CAH5qllj.js.map → serverTotals-BS25PKF0.js.map} +1 -1
- package/dist/{shareCopyFeedback.svelte-CSomhlS7.js → shareCopyFeedback.svelte-uIkn6vEd.js} +2 -2
- package/dist/{shareCopyFeedback.svelte-CSomhlS7.js.map → shareCopyFeedback.svelte-uIkn6vEd.js.map} +1 -1
- package/dist/{showcase-state-options-8Xu1QP48.js → showcase-state-options-C2XXjvGO.js} +2 -2
- package/dist/{showcase-state-options-8Xu1QP48.js.map → showcase-state-options-C2XXjvGO.js.map} +1 -1
- package/dist/{transform-Dx8Lr9Ji.js → transform-BRZ2zBU3.js} +2 -2
- package/dist/{transform-Dx8Lr9Ji.js.map → transform-BRZ2zBU3.js.map} +1 -1
- package/dist/{utm-D0I2QVAd.js → utm-BGbx2cuW.js} +2 -2
- package/dist/{utm-D0I2QVAd.js.map → utm-BGbx2cuW.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text-uczQblTk.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Image/Image.svelte","../node_modules/@getmicdrop/svelte-components/dist/components/Text.svelte"],"sourcesContent":["<!--\n Image.svelte\n\n The canonical image primitive for Micdrop. Variable-aspect, user-uploaded\n sources (event posters, performer headshots, venue photos) where we do NOT\n control the aspect ratio. This component is now the single home for the\n whole image family — `Avatar` composes it, and `BlurBackdropImage` is a\n thin `@deprecated` shim.\n\n Premium contract (Atlas brief 04 — perf 5 / completeness 5):\n\n 1. ZERO CLS — pass `width`/`height` (intrinsic px) or `aspectRatio`\n (e.g. `'2/3'`, `'16/9'`, `'1'`). The component reserves that space\n BEFORE the image loads so the page never reflows when it arrives.\n Dev-only `console.warn` if you provide neither dimensions nor a\n sizing class (we can't reserve space and CLS can creep back in).\n\n 2. BLUR-UP LOADING — the main image starts slightly blurred and SHARPENS\n (blur → 0) once the real bitmap has decoded (`img.decode()` +\n `decoding=\"async\"`). In blur-backdrop framing a blurred copy of the\n SAME already-fetched bitmap fills the letterbox gaps — no second\n network fetch, no LQIP asset to ship. Fade timing reads the motion\n tokens, so `prefers-reduced-motion` collapses it automatically.\n\n 3. BLUR-BACKDROP IS THE DEFAULT FRAMING — `fit` defaults to\n `'blur-backdrop'`: the image is `object-fit: contain` (never cropped)\n and a blurred copy of itself fills the letterbox gaps. This handles\n BOTH tall posters and wide photos with no cropping and no flat-gray\n bars. `'cover'` / `'contain'` / `'fill'` / `'scale-down'` / `'none'`\n remain as escape hatches and render the plain single-`<img>` path\n (identical DOM to the pre-premium component).\n\n 4. BRANDED FALLBACK — when `src` (and `fallback`) are missing or both\n error, we render a branded placeholder (the Micdrop mark on a tint)\n instead of a flat gray div. Override the asset with `fallback`, or\n suppress the mark with `branded={false}`.\n\n Passthrough props for raw-<img> parity (so consumers can migrate\n existing `<img>` sites to `<Image>`):\n - `draggable` — forwarded to the underlying `<img draggable>`.\n - `onload` — forwarded to the `<img>` load event.\n - `fetchpriority` — forwarded to `<img fetchpriority>` (resource hint).\n - `onError` — fires ONCE, only after the internal fallback chain is\n exhausted (i.e. the branded placeholder takes over). It does NOT fire\n on the first error while a distinct `fallback` is still going to be\n tried. The raw `onerror` handler stays owned internally to drive the\n src→fallback→placeholder degradation; `onError` composes with it\n rather than replacing it.\n Deliberately NOT exposed (closed-interface rulings, sc#682):\n - `srcset`/`sizes` — zero consumer demand.\n - `onclick` — interactive semantics belong on an interactive WRAPPER\n (`<a>` for navigation, `<button type=\"button\">` otherwise) around\n `<Image>`, never on the img itself. A clickable img is a keyboard trap\n that only compiles behind a11y suppressions; the wrapper gets focus +\n key handling for free and nothing in this interface blocks it.\n - `aria-hidden` — redundant. `alt=\"\"` (the default) maps the img to role\n none/presentation per HTML-AAM, removing it from the accessibility\n tree already. Decorative icons: `alt=\"\"` + `fit=\"contain\"` +\n `blurUp={false}` (plain single-<img> DOM).\n - an errored-element `onError(event)` — the src-swap-on-error use case IS\n the `fallback` prop (src → fallback → branded placeholder, loop-safe).\n Consumers never need the raw element.\n\n Example:\n <Image src={event.posterUrl} alt={event.name} aspectRatio=\"2/3\" class=\"w-full rounded-xl\" />\n <Image src={user.avatarUrl} alt={user.name} width={80} height={80} fit=\"cover\" class=\"rounded-xl\" />\n <Image src={banner.url} alt=\"\" aspectRatio=\"16/9\" class=\"w-full\" loading=\"eager\" fetchpriority=\"high\" />\n-->\n<script lang=\"ts\">\n import { DEV } from 'esm-env';\n import { cn } from '../../utils/classNames.js';\n import { createLogger } from '../../utils/logger.js';\n\n const log = createLogger('Image');\n\n // Silence the dev CLS nudge under the test runner (the suite intentionally\n // renders without dimensions to exercise other behaviour). Reads the Node\n // env var Vitest sets — bundler-agnostic.\n const IS_TEST =\n typeof process !== 'undefined' && !!process.env?.VITEST;\n\n interface Props {\n /** Image source URL. When empty/missing, falls back to `fallback`. */\n src?: string;\n /** Alt text. Empty string marks decorative images per WCAG. */\n alt?: string;\n /** Additional CSS classes (sizing, shape, rounded corners). Wins last. */\n class?: string;\n /** Fallback URL used when src is empty or errors (before the branded mark). */\n fallback?: string;\n /** Loading strategy. Default 'lazy'; pass 'eager' for above-fold. */\n loading?: 'eager' | 'lazy';\n /**\n * Framing mode. Default `'blur-backdrop'` — `object-fit: contain` over a\n * blurred copy of the same image so tall AND wide sources are never\n * cropped and never letterboxed with flat gray. The remaining values are\n * escape hatches that render a plain single `<img object-fit:…>`.\n */\n fit?: 'blur-backdrop' | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';\n /**\n * Intrinsic width in CSS px — reserves space before load (zero CLS) and\n * sets the `<img width>` attribute. Pair with `height` for a fixed box.\n */\n width?: number;\n /**\n * Intrinsic height in CSS px — reserves space before load (zero CLS) and\n * sets the `<img height>` attribute. Pair with `width` for a fixed box.\n */\n height?: number;\n /**\n * CSS `aspect-ratio` string (e.g. `'2/3'` posters, `'16/9'` banners,\n * `'1'` square). Reserves space before load when you size by one axis\n * (`w-full`) — the zero-CLS path for fluid layouts.\n */\n aspectRatio?: string;\n /**\n * Blur-up loading: render blurred, then sharpen once the real bitmap\n * decodes. Default true. Set false to skip the effect (e.g. tiny icons\n * where the blur is imperceptible but the extra work isn't worth it).\n */\n blurUp?: boolean;\n /**\n * When the fallback chain is exhausted, show the branded Micdrop mark on\n * a tint. Default true. Set false for a plain tinted placeholder.\n */\n branded?: boolean;\n /** Forwarded to `<img draggable>`. Omitted when undefined. */\n draggable?: boolean;\n /** Forwarded to the `<img>` load event. */\n // eslint-disable-next-line no-unused-vars -- intentionally retained (prop/slot/forward-compat or Svelte-5 reactive binding eslint cannot see)\n onload?: (e: Event) => void;\n /** Forwarded to `<img fetchpriority>` (fetch-priority resource hint). */\n fetchpriority?: 'high' | 'low' | 'auto';\n /**\n * Fires once when the fallback chain is exhausted and the branded\n * placeholder takes over — NOT on the first error if a distinct\n * `fallback` is still going to be tried. Composes with the internal\n * `onerror` machine.\n */\n onError?: () => void;\n }\n\n let {\n src = '',\n alt = '',\n class: className = '',\n fallback = '',\n loading = 'lazy',\n fit = 'blur-backdrop',\n width,\n height,\n aspectRatio,\n blurUp = true,\n branded = true,\n draggable,\n onload,\n fetchpriority,\n onError,\n }: Props = $props();\n\n // Track loading attempts: which URL we're showing right now.\n // When the current URL errors, drop to 'failed' and render the placeholder.\n // Distinct from src/fallback inputs because we need to remember which\n // candidate we already tried. Reset whenever inputs change.\n let attempt: 'src' | 'fallback' | 'failed' = $state(\n // eslint-disable-next-line svelte/valid-compile -- known Svelte compiler note, accepted for this primitive\n src ? 'src' : fallback ? 'fallback' : 'failed'\n );\n\n // Guard so `onError` fires at most once per input set, even if a stale\n // <img> re-emits a duplicate final `error`. Reset when inputs change so a\n // fresh src/fallback can legitimately fail-and-notify again.\n let notifiedError = $state(false);\n\n // Blur-up: starts blurred, sharpens once the real bitmap decodes. Reset on\n // every new candidate URL so each swap re-runs the blur-up reveal.\n let decoded = $state(false);\n\n // The rendered main <img>, so we can detect an already-decoded bitmap that\n // won't fire `load` again (a cached src re-assigned, or a re-mount onto a\n // cached URL). Without this, `decoded` sticks at false and the image stays\n // blurred forever — the \"avatar goes blurry after save\" bug.\n let mainImg: HTMLImageElement | undefined = $state();\n\n $effect(() => {\n // Re-derive when inputs change. (Read both to register dependencies.)\n const _s = src;\n const _f = fallback;\n attempt = _s ? 'src' : _f ? 'fallback' : 'failed';\n notifiedError = false;\n decoded = false;\n });\n\n let activeSrc = $derived(\n attempt === 'src' ? src : attempt === 'fallback' ? fallback : ''\n );\n\n // Cached-bitmap reveal: after the shown URL settles, a browser that already\n // has the image marks the <img> `complete` WITHOUT re-firing `load` (cache\n // hit, or a mount whose load event landed before the handler attached). Reveal\n // it immediately so it never sticks blurred; a genuinely-loading image is\n // `complete: false` here and still waits for `handleLoad`. Depends on the SAME\n // inputs as the reset effect (src/fallback) — plus activeSrc — so it always\n // re-runs right after the reset (declaration order) and reads the post-update\n // <img>, even when the resolved URL is unchanged.\n $effect(() => {\n void src;\n void fallback;\n void activeSrc;\n if (mainImg?.complete && mainImg.naturalWidth > 0) decoded = true;\n });\n let showImg = $derived(attempt !== 'failed' && !!activeSrc);\n\n // blur-backdrop is the only framing mode that wraps; everything else is a\n // plain single <img object-fit:…> (identical DOM to the legacy component).\n let backdrop = $derived(fit === 'blur-backdrop');\n let objectFit = $derived(backdrop ? 'contain' : fit);\n\n // Does the consumer reserve a DEFINITE box — one that fixes the rendered\n // HEIGHT before the bitmap's intrinsic dimensions are known? Only these\n // prevent vertical CLS:\n // - aspectRatio (height derives from width via the ratio), OR\n // - both width AND height (a fully fixed box), OR\n // - a `size-*` utility (sets width AND height together), OR\n // - a definite height / aspect-ratio class (`h-*`, `aspect-*`).\n // Deliberately NOT counted: width alone, `w-full`, `max-h-*`, `h-auto`,\n // AND `min-h-*` — min-h only reserves a FLOOR, so a taller bitmap still\n // grows the box and shifts the page. None of these reserve the actual\n // vertical extent before metadata, so CLS can still creep in.\n const DEFINITE_BOX_CLASS = /(?:^|\\s)(?:aspect-|size-|h-(?!auto\\b))/;\n let hasReservedBox = $derived(\n !!aspectRatio ||\n (width != null && height != null) ||\n DEFINITE_BOX_CLASS.test(className)\n );\n\n // Dev-only nudge: without a definite box we cannot reserve VERTICAL space,\n // so CLS can creep back in. Warn, never throw.\n $effect(() => {\n // Dev-only (tree-shaken from prod via esm-env DEV) and never under test.\n if (DEV && !IS_TEST && !hasReservedBox) {\n log.warn(\n 'No aspectRatio, no width+height pair, and no definite height/aspect ' +\n 'sizing class — vertical layout space cannot be reserved and the ' +\n 'page may shift when the image loads (CLS). Pass aspectRatio=\"2/3\", ' +\n 'both width and height, or an h-*/aspect-* class. (width alone or ' +\n 'w-full does not reserve vertical space.)'\n );\n }\n });\n\n // Reserve intrinsic space on the box that owns layout. For blur-backdrop\n // that's the wrapper; for the plain path it's the <img> itself.\n let reserveStyle = $derived(\n [\n width != null ? `width:${width}px` : '',\n height != null ? `height:${height}px` : '',\n aspectRatio ? `aspect-ratio:${aspectRatio}` : '',\n ]\n .filter(Boolean)\n .join(';')\n );\n\n // mark the real bitmap as decoded → triggers the blur→sharp fade.\n async function handleLoad(e: Event) {\n const img = e.currentTarget as HTMLImageElement;\n // Capture which URL this load is FOR. If `src` swaps mid-decode (the\n // active candidate changes), this stale resolution must NOT sharpen — or\n // fire onload for — the new image. Compare against the live activeSrc\n // after the await and bail if it moved on.\n const loadedSrc = activeSrc;\n try {\n // decode() resolves once the bitmap is paint-ready; avoids revealing a\n // half-painted image. Falls through if unsupported / aborted.\n await img.decode?.();\n } catch {\n // decode can reject on detached/aborted images — reveal anyway.\n }\n // Src swapped while we awaited decode() → this is a stale load. Drop it;\n // the new candidate's own load event will drive the reveal.\n if (activeSrc !== loadedSrc) return;\n decoded = true;\n onload?.(e);\n }\n\n function handleError() {\n // If we were on src and have a distinct fallback to try, advance.\n if (attempt === 'src' && fallback && fallback !== src) {\n attempt = 'fallback';\n return;\n }\n // Either fallback already attempted, or no distinct fallback exists.\n // The chain is exhausted — the branded placeholder takes over. Notify the\n // consumer exactly here (final failure only), never on the transient\n // src→fallback hop, and at most once per input set.\n attempt = 'failed';\n if (!notifiedError) {\n notifiedError = true;\n onError?.();\n }\n }\n</script>\n\n{#if showImg && backdrop}\n <!-- blur-backdrop framing (default): contain + same-image blurred fill.\n The wrapper owns layout + reserves space; the blur layer is a second\n cheap reuse of the already-fetched bitmap (no extra network fetch). -->\n <div\n class={cn('sc-image sc-image--backdrop', className)}\n class:sc-image--backdrop-reserved={hasReservedBox}\n style={reserveStyle || undefined}\n >\n <img\n src={activeSrc}\n alt=\"\"\n class=\"sc-image__blur\"\n aria-hidden=\"true\"\n decoding=\"async\"\n {loading}\n {draggable}\n {fetchpriority}\n />\n <img\n bind:this={mainImg}\n src={activeSrc}\n {alt}\n class=\"sc-image__main\"\n class:sc-image__main--reserved={hasReservedBox}\n class:sc-image__main--loading={blurUp && !decoded}\n style:object-fit={objectFit}\n {width}\n {height}\n {loading}\n {draggable}\n {fetchpriority}\n decoding=\"async\"\n onerror={handleError}\n onload={handleLoad}\n />\n </div>\n{:else if showImg}\n <!-- escape-hatch framing (cover/contain/fill/none/scale-down): plain single\n <img>, identical DOM to the legacy component, plus blur-up + dims. -->\n <img\n bind:this={mainImg}\n src={activeSrc}\n {alt}\n {loading}\n {draggable}\n {fetchpriority}\n {width}\n {height}\n class={cn(\n 'sc-image image',\n blurUp && !decoded && 'sc-image--loading',\n className\n )}\n style:object-fit={objectFit}\n style:aspect-ratio={aspectRatio || undefined}\n decoding=\"async\"\n onerror={handleError}\n onload={handleLoad}\n />\n{:else}\n <!-- No usable src — branded placeholder (Micdrop mark on a tint), or a plain\n tinted box when branded={false}. Empty alt marks decorative images (per\n WCAG); hide from assistive tech via aria-hidden + no role. -->\n {#if alt}\n <div\n class={cn(\n 'sc-image image sc-image-placeholder image-placeholder',\n branded && 'sc-image-placeholder--branded',\n className\n )}\n style={reserveStyle || undefined}\n role=\"img\"\n aria-label={alt}\n ></div>\n {:else}\n <div\n class={cn(\n 'sc-image image sc-image-placeholder image-placeholder',\n branded && 'sc-image-placeholder--branded',\n className\n )}\n style={reserveStyle || undefined}\n aria-hidden=\"true\"\n ></div>\n {/if}\n{/if}\n\n<style>\n /* `.image` is a legacy back-compat alias of `.sc-image` on the plain\n escape-hatch <img> + placeholder (consumer CSS / tests may target it). */\n .sc-image,\n .image {\n display: block;\n max-width: 100%;\n }\n\n /* --- blur-backdrop framing --- */\n .sc-image--backdrop {\n position: relative;\n overflow: hidden;\n container-type: inline-size;\n background: hsl(var(--bg-quaternary));\n }\n\n .sc-image__blur {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n max-width: none;\n object-fit: cover;\n transform: scale(1.15);\n filter: blur(16px) saturate(1.2);\n /* purely decorative fill; the absolutely-positioned blur paints first and\n the in-flow main layer (position:relative) stacks above it by source\n order — no explicit z-index needed. */\n }\n\n /* Small containers (<=80px): blur() applies before scale() in the render\n pipeline, so the blur halo gets scaled too. Need enough scale that the\n opaque image extends past the container edge even after the halo grows. */\n @container (max-width: 5rem) {\n .sc-image__blur {\n transform: scale(2);\n filter: blur(6px) saturate(1.2);\n }\n }\n\n .sc-image__main {\n position: relative;\n display: block;\n width: 100%;\n /* No reserved box (legacy / no-fit default): the in-flow main image\n DRIVES the wrapper height and sizes ITSELF to the consumer's sizing\n classes — which land on the wrapper. `max-height: inherit` /\n `max-width: inherit` pull the wrapper's `max-h-*` / `max-w-*` onto the\n image so object-fit:contain shrinks it to fit (image height == wrapper\n height). The image therefore NEVER exceeds the wrapper, so the wrapper's\n overflow:hidden (which clips the decorative blur fill) cannot clip the\n MAIN image — it renders exactly as the pre-premium single <img> did,\n constrained by max-h-* / h-auto, no reflow. Only force the image to fill\n a fixed box when the consumer reserved a DEFINITE one (explicit height /\n aspectRatio / size-* / h-* / aspect-*) — there the wrapper owns layout\n and the image fills it (true zero-CLS letterbox). */\n height: auto;\n max-width: inherit;\n max-height: inherit;\n object-fit: contain;\n }\n\n .sc-image--backdrop-reserved .sc-image__main--reserved {\n height: 100%;\n max-width: none;\n max-height: none;\n }\n\n /* --- blur-up reveal (CSS-only; reduced-motion gated via motion tokens) ---\n The main image / plain image starts slightly blurred + scaled and\n sharpens on decode. Durations read from --motion-* so\n prefers-reduced-motion collapses them. */\n .sc-image--loading,\n .sc-image__main {\n transition:\n filter var(--motion-normal) var(--ease-smooth),\n transform var(--motion-normal) var(--ease-smooth);\n }\n\n .sc-image--loading,\n .sc-image__main--loading {\n filter: blur(12px);\n transform: scale(1.02);\n }\n\n /* --- placeholder --- */\n .sc-image-placeholder {\n background: hsl(var(--bg-quaternary));\n }\n\n .sc-image-placeholder--branded {\n background-color: hsl(var(--bg-tertiary));\n background-image: url('../../assets/images/micdrop-logo.png');\n background-repeat: no-repeat;\n background-position: center;\n /* keep the mark a small, calm watermark — never edge-to-edge */\n background-size: min(48%, 96px) auto;\n opacity: 0.92;\n }\n</style>\n","<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import type { TypographyRole, TypographyTone } from '../tokens/typography.js';\n\n interface Props {\n /** Text role — the closed type system. Sets size+weight+line-height+tracking. Preferred. */\n variant?: TypographyRole;\n /** Tone (color) — orthogonal to variant. */\n tone?: TypographyTone;\n as?: 'span' | 'p' | 'label' | 'div';\n truncate?: boolean;\n class?: string;\n /** @deprecated use `variant` */ size?: 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';\n /** @deprecated set via `variant` */ leading?: 'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose';\n /** @deprecated use `tone` */ color?: 'default' | 'muted' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'none';\n /** @deprecated set via `variant` */ weight?: 'normal' | 'medium' | 'semibold' | 'bold';\n children: Snippet;\n }\n\n let {\n variant,\n tone,\n as = 'span',\n truncate = false,\n class: className = '',\n size,\n leading,\n color = 'default',\n weight,\n children,\n }: Props = $props();\n\n // ── New role API ──\n const toneClass: Record<string, string> = {\n primary: 'tone-primary', secondary: 'tone-secondary', muted: 'tone-muted',\n brand: 'tone-brand', success: 'tone-success', warning: 'tone-warning', danger: 'tone-danger',\n };\n\n // ── Deprecated prop maps (back-compat until consumers migrate to `variant`) ──\n const sizeClasses: Record<string, string> = {\n xs: 'type-caption', sm: 'type-body', base: 'type-bodyLarge', md: 'type-bodyLarge',\n lg: 'text-lg', xl: 'text-xl', '2xl': 'text-2xl',\n };\n const legacyColorClasses: Record<string, string> = {\n default: 'tone-primary', muted: 'tone-muted', primary: 'text-brand-primary',\n secondary: 'tone-secondary', success: 'text-accent-success', warning: 'text-accent-warning',\n error: 'text-accent-danger', none: '',\n };\n const leadingClasses: Record<string, string> = {\n none: 'leading-none', tight: 'leading-tight', snug: 'leading-snug',\n normal: 'leading-normal', relaxed: 'leading-relaxed', loose: 'leading-loose',\n };\n const weightClasses: Record<string, string> = {\n normal: 'font-normal', medium: 'font-medium', semibold: 'font-semibold', bold: 'font-bold',\n };\n\n let classes = $derived(\n (variant\n ? [`type-${variant}`, tone ? toneClass[tone] : '']\n : [\n sizeClasses[size ?? 'md'] || 'type-bodyLarge',\n leading ? leadingClasses[leading] : '',\n tone ? toneClass[tone] : legacyColorClasses[color] || '',\n weight ? weightClasses[weight] : 'font-normal',\n ])\n .concat(truncate ? 'truncate' : '', className)\n .filter(Boolean)\n .join(' '),\n );\n</script>\n\n<svelte:element this={as} class={classes}>{@render children()}</svelte:element>\n"],"names":["createLogger","src","$","$$props","alt","className","fallback","loading","fit","blurUp","branded","attempt","notifiedError","decoded","mainImg","_s","_f","activeSrc","showImg","backdrop","objectFit","DEFINITE_BOX_CLASS","hasReservedBox","reserveStyle","handleLoad","e","img","loadedSrc","handleError","div","root","img_1","img_2","$$value","classes","classes_1","styles","cn","img_3","root_1","$0","styles_1","div_1","root_2","div_2","root_3","$$render","consequent_2","alternate","consequent","consequent_1","alternate_1","as","truncate","color","toneClass","sizeClasses","legacyColorClasses","leadingClasses","weightClasses","$$element","$$anchor"],"mappings":";;;;iBAoEA;iBAKcA,EAAa,OAAO,GAKnB,OACJ,UAAY,OAAiB,QAAQ,KAAK;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,IAAI;AAAA,IAAW,IAAI;AAAA,IAAW,OAAO;AAAA,KAEjCC,IAA0C;AAAA,IAC9C,SAAS;AAAA,IAAgB,OAAO;AAAA,IAAc,SAAS;AAAA,IACvD,WAAW;AAAA,IAAkB,SAAS;AAAA,IAAuB,SAAS;AAAA,IACtE,OAAO;AAAA,IAAsB,MAAM;AAAA,KAE/BC,IAAsC;AAAA,IAC1C,MAAM;AAAA,IAAgB,OAAO;AAAA,IAAiB,MAAM;AAAA,IACpD,QAAQ;AAAA,IAAkB,SAAS;AAAA,IAAmB,OAAO;AAAA,KAEzDC,IAAqC;AAAA,IACzC,QAAQ;AAAA,IAAe,QAAQ;AAAA,IAAe,UAAU;AAAA,IAAiB,MAAM;AAAA;AAGjF,MAAIzB,IAAOhC,EAAA,QAAA,OAAAC,EAAA;;IAEsBA,EAAA,OAAAoD,YAAkB;AAAA;IAE3CC,EAAWrD,EAAA,QAAS,IAAI,KAAK;AAAA,IACnBA,EAAA,UAAAuD,eAA0B;AAAA,aAC7BH,EAASpD,EAAA,IAAA,IAASsD,EAAmBH,EAAK,CAAA,KAAK;AAAA,IAC7CnD,EAAA,SAAAwD,cAAwB;AAAA,EAEpC,GAAA,OAAON,MAAW,aAAa,IAAIhD,GAAS,EAC5C,OAAO,OAAO,EACd,KAAK,GAAG,CAAA;;eAIO+C,GAAE,IAAA,CAAAQ,GAAAC,MAAA;gDAAS3B,CAAO,EAAA,EAAA;;;;AAFhC;","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"Text-B4vB8FfC.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Image/Image.svelte","../node_modules/@getmicdrop/svelte-components/dist/components/Text.svelte"],"sourcesContent":["<!--\n Image.svelte\n\n The canonical image primitive for Micdrop. Variable-aspect, user-uploaded\n sources (event posters, performer headshots, venue photos) where we do NOT\n control the aspect ratio. This component is now the single home for the\n whole image family — `Avatar` composes it, and `BlurBackdropImage` is a\n thin `@deprecated` shim.\n\n Premium contract (Atlas brief 04 — perf 5 / completeness 5):\n\n 1. ZERO CLS — pass `width`/`height` (intrinsic px) or `aspectRatio`\n (e.g. `'2/3'`, `'16/9'`, `'1'`). The component reserves that space\n BEFORE the image loads so the page never reflows when it arrives.\n Dev-only `console.warn` if you provide neither dimensions nor a\n sizing class (we can't reserve space and CLS can creep back in).\n\n 2. BLUR-UP LOADING — the main image starts slightly blurred and SHARPENS\n (blur → 0) once the real bitmap has decoded (`img.decode()` +\n `decoding=\"async\"`). In blur-backdrop framing a blurred copy of the\n SAME already-fetched bitmap fills the letterbox gaps — no second\n network fetch, no LQIP asset to ship. Fade timing reads the motion\n tokens, so `prefers-reduced-motion` collapses it automatically.\n\n 3. BLUR-BACKDROP IS THE DEFAULT FRAMING — `fit` defaults to\n `'blur-backdrop'`: the image is `object-fit: contain` (never cropped)\n and a blurred copy of itself fills the letterbox gaps. This handles\n BOTH tall posters and wide photos with no cropping and no flat-gray\n bars. `'cover'` / `'contain'` / `'fill'` / `'scale-down'` / `'none'`\n remain as escape hatches and render the plain single-`<img>` path\n (identical DOM to the pre-premium component).\n\n 4. BRANDED FALLBACK — when `src` (and `fallback`) are missing or both\n error, we render a branded placeholder (the Micdrop mark on a tint)\n instead of a flat gray div. Override the asset with `fallback`, or\n suppress the mark with `branded={false}`.\n\n Passthrough props for raw-<img> parity (so consumers can migrate\n existing `<img>` sites to `<Image>`):\n - `draggable` — forwarded to the underlying `<img draggable>`.\n - `onload` — forwarded to the `<img>` load event.\n - `fetchpriority` — forwarded to `<img fetchpriority>` (resource hint).\n - `onError` — fires ONCE, only after the internal fallback chain is\n exhausted (i.e. the branded placeholder takes over). It does NOT fire\n on the first error while a distinct `fallback` is still going to be\n tried. The raw `onerror` handler stays owned internally to drive the\n src→fallback→placeholder degradation; `onError` composes with it\n rather than replacing it.\n Deliberately NOT exposed (closed-interface rulings, sc#682):\n - `srcset`/`sizes` — zero consumer demand.\n - `onclick` — interactive semantics belong on an interactive WRAPPER\n (`<a>` for navigation, `<button type=\"button\">` otherwise) around\n `<Image>`, never on the img itself. A clickable img is a keyboard trap\n that only compiles behind a11y suppressions; the wrapper gets focus +\n key handling for free and nothing in this interface blocks it.\n - `aria-hidden` — redundant. `alt=\"\"` (the default) maps the img to role\n none/presentation per HTML-AAM, removing it from the accessibility\n tree already. Decorative icons: `alt=\"\"` + `fit=\"contain\"` +\n `blurUp={false}` (plain single-<img> DOM).\n - an errored-element `onError(event)` — the src-swap-on-error use case IS\n the `fallback` prop (src → fallback → branded placeholder, loop-safe).\n Consumers never need the raw element.\n\n Example:\n <Image src={event.posterUrl} alt={event.name} aspectRatio=\"2/3\" class=\"w-full rounded-xl\" />\n <Image src={user.avatarUrl} alt={user.name} width={80} height={80} fit=\"cover\" class=\"rounded-xl\" />\n <Image src={banner.url} alt=\"\" aspectRatio=\"16/9\" class=\"w-full\" loading=\"eager\" fetchpriority=\"high\" />\n-->\n<script lang=\"ts\">\n import { DEV } from 'esm-env';\n import { cn } from '../../utils/classNames.js';\n import { createLogger } from '../../utils/logger.js';\n\n const log = createLogger('Image');\n\n // Silence the dev CLS nudge under the test runner (the suite intentionally\n // renders without dimensions to exercise other behaviour). Reads the Node\n // env var Vitest sets — bundler-agnostic.\n const IS_TEST =\n typeof process !== 'undefined' && !!process.env?.VITEST;\n\n interface Props {\n /** Image source URL. When empty/missing, falls back to `fallback`. */\n src?: string;\n /** Alt text. Empty string marks decorative images per WCAG. */\n alt?: string;\n /** Additional CSS classes (sizing, shape, rounded corners). Wins last. */\n class?: string;\n /** Fallback URL used when src is empty or errors (before the branded mark). */\n fallback?: string;\n /** Loading strategy. Default 'lazy'; pass 'eager' for above-fold. */\n loading?: 'eager' | 'lazy';\n /**\n * Framing mode. Default `'blur-backdrop'` — `object-fit: contain` over a\n * blurred copy of the same image so tall AND wide sources are never\n * cropped and never letterboxed with flat gray. The remaining values are\n * escape hatches that render a plain single `<img object-fit:…>`.\n */\n fit?: 'blur-backdrop' | 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';\n /**\n * Intrinsic width in CSS px — reserves space before load (zero CLS) and\n * sets the `<img width>` attribute. Pair with `height` for a fixed box.\n */\n width?: number;\n /**\n * Intrinsic height in CSS px — reserves space before load (zero CLS) and\n * sets the `<img height>` attribute. Pair with `width` for a fixed box.\n */\n height?: number;\n /**\n * CSS `aspect-ratio` string (e.g. `'2/3'` posters, `'16/9'` banners,\n * `'1'` square). Reserves space before load when you size by one axis\n * (`w-full`) — the zero-CLS path for fluid layouts.\n */\n aspectRatio?: string;\n /**\n * Blur-up loading: render blurred, then sharpen once the real bitmap\n * decodes. Default true. Set false to skip the effect (e.g. tiny icons\n * where the blur is imperceptible but the extra work isn't worth it).\n */\n blurUp?: boolean;\n /**\n * When the fallback chain is exhausted, show the branded Micdrop mark on\n * a tint. Default true. Set false for a plain tinted placeholder.\n */\n branded?: boolean;\n /** Forwarded to `<img draggable>`. Omitted when undefined. */\n draggable?: boolean;\n /** Forwarded to the `<img>` load event. */\n // eslint-disable-next-line no-unused-vars -- intentionally retained (prop/slot/forward-compat or Svelte-5 reactive binding eslint cannot see)\n onload?: (e: Event) => void;\n /** Forwarded to `<img fetchpriority>` (fetch-priority resource hint). */\n fetchpriority?: 'high' | 'low' | 'auto';\n /**\n * Fires once when the fallback chain is exhausted and the branded\n * placeholder takes over — NOT on the first error if a distinct\n * `fallback` is still going to be tried. Composes with the internal\n * `onerror` machine.\n */\n onError?: () => void;\n }\n\n let {\n src = '',\n alt = '',\n class: className = '',\n fallback = '',\n loading = 'lazy',\n fit = 'blur-backdrop',\n width,\n height,\n aspectRatio,\n blurUp = true,\n branded = true,\n draggable,\n onload,\n fetchpriority,\n onError,\n }: Props = $props();\n\n // Track loading attempts: which URL we're showing right now.\n // When the current URL errors, drop to 'failed' and render the placeholder.\n // Distinct from src/fallback inputs because we need to remember which\n // candidate we already tried. Reset whenever inputs change.\n let attempt: 'src' | 'fallback' | 'failed' = $state(\n // eslint-disable-next-line svelte/valid-compile -- known Svelte compiler note, accepted for this primitive\n src ? 'src' : fallback ? 'fallback' : 'failed'\n );\n\n // Guard so `onError` fires at most once per input set, even if a stale\n // <img> re-emits a duplicate final `error`. Reset when inputs change so a\n // fresh src/fallback can legitimately fail-and-notify again.\n let notifiedError = $state(false);\n\n // Blur-up: starts blurred, sharpens once the real bitmap decodes. Reset on\n // every new candidate URL so each swap re-runs the blur-up reveal.\n let decoded = $state(false);\n\n // The rendered main <img>, so we can detect an already-decoded bitmap that\n // won't fire `load` again (a cached src re-assigned, or a re-mount onto a\n // cached URL). Without this, `decoded` sticks at false and the image stays\n // blurred forever — the \"avatar goes blurry after save\" bug.\n let mainImg: HTMLImageElement | undefined = $state();\n\n $effect(() => {\n // Re-derive when inputs change. (Read both to register dependencies.)\n const _s = src;\n const _f = fallback;\n attempt = _s ? 'src' : _f ? 'fallback' : 'failed';\n notifiedError = false;\n decoded = false;\n });\n\n let activeSrc = $derived(\n attempt === 'src' ? src : attempt === 'fallback' ? fallback : ''\n );\n\n // Cached-bitmap reveal: after the shown URL settles, a browser that already\n // has the image marks the <img> `complete` WITHOUT re-firing `load` (cache\n // hit, or a mount whose load event landed before the handler attached). Reveal\n // it immediately so it never sticks blurred; a genuinely-loading image is\n // `complete: false` here and still waits for `handleLoad`. Depends on the SAME\n // inputs as the reset effect (src/fallback) — plus activeSrc — so it always\n // re-runs right after the reset (declaration order) and reads the post-update\n // <img>, even when the resolved URL is unchanged.\n $effect(() => {\n void src;\n void fallback;\n void activeSrc;\n if (mainImg?.complete && mainImg.naturalWidth > 0) decoded = true;\n });\n let showImg = $derived(attempt !== 'failed' && !!activeSrc);\n\n // blur-backdrop is the only framing mode that wraps; everything else is a\n // plain single <img object-fit:…> (identical DOM to the legacy component).\n let backdrop = $derived(fit === 'blur-backdrop');\n let objectFit = $derived(backdrop ? 'contain' : fit);\n\n // Does the consumer reserve a DEFINITE box — one that fixes the rendered\n // HEIGHT before the bitmap's intrinsic dimensions are known? Only these\n // prevent vertical CLS:\n // - aspectRatio (height derives from width via the ratio), OR\n // - both width AND height (a fully fixed box), OR\n // - a `size-*` utility (sets width AND height together), OR\n // - a definite height / aspect-ratio class (`h-*`, `aspect-*`).\n // Deliberately NOT counted: width alone, `w-full`, `max-h-*`, `h-auto`,\n // AND `min-h-*` — min-h only reserves a FLOOR, so a taller bitmap still\n // grows the box and shifts the page. None of these reserve the actual\n // vertical extent before metadata, so CLS can still creep in.\n const DEFINITE_BOX_CLASS = /(?:^|\\s)(?:aspect-|size-|h-(?!auto\\b))/;\n let hasReservedBox = $derived(\n !!aspectRatio ||\n (width != null && height != null) ||\n DEFINITE_BOX_CLASS.test(className)\n );\n\n // Dev-only nudge: without a definite box we cannot reserve VERTICAL space,\n // so CLS can creep back in. Warn, never throw.\n $effect(() => {\n // Dev-only (tree-shaken from prod via esm-env DEV) and never under test.\n if (DEV && !IS_TEST && !hasReservedBox) {\n log.warn(\n 'No aspectRatio, no width+height pair, and no definite height/aspect ' +\n 'sizing class — vertical layout space cannot be reserved and the ' +\n 'page may shift when the image loads (CLS). Pass aspectRatio=\"2/3\", ' +\n 'both width and height, or an h-*/aspect-* class. (width alone or ' +\n 'w-full does not reserve vertical space.)'\n );\n }\n });\n\n // Reserve intrinsic space on the box that owns layout. For blur-backdrop\n // that's the wrapper; for the plain path it's the <img> itself.\n let reserveStyle = $derived(\n [\n width != null ? `width:${width}px` : '',\n height != null ? `height:${height}px` : '',\n aspectRatio ? `aspect-ratio:${aspectRatio}` : '',\n ]\n .filter(Boolean)\n .join(';')\n );\n\n // mark the real bitmap as decoded → triggers the blur→sharp fade.\n async function handleLoad(e: Event) {\n const img = e.currentTarget as HTMLImageElement;\n // Capture which URL this load is FOR. If `src` swaps mid-decode (the\n // active candidate changes), this stale resolution must NOT sharpen — or\n // fire onload for — the new image. Compare against the live activeSrc\n // after the await and bail if it moved on.\n const loadedSrc = activeSrc;\n try {\n // decode() resolves once the bitmap is paint-ready; avoids revealing a\n // half-painted image. Falls through if unsupported / aborted.\n await img.decode?.();\n } catch {\n // decode can reject on detached/aborted images — reveal anyway.\n }\n // Src swapped while we awaited decode() → this is a stale load. Drop it;\n // the new candidate's own load event will drive the reveal.\n if (activeSrc !== loadedSrc) return;\n decoded = true;\n onload?.(e);\n }\n\n function handleError() {\n // If we were on src and have a distinct fallback to try, advance.\n if (attempt === 'src' && fallback && fallback !== src) {\n attempt = 'fallback';\n return;\n }\n // Either fallback already attempted, or no distinct fallback exists.\n // The chain is exhausted — the branded placeholder takes over. Notify the\n // consumer exactly here (final failure only), never on the transient\n // src→fallback hop, and at most once per input set.\n attempt = 'failed';\n if (!notifiedError) {\n notifiedError = true;\n onError?.();\n }\n }\n</script>\n\n{#if showImg && backdrop}\n <!-- blur-backdrop framing (default): contain + same-image blurred fill.\n The wrapper owns layout + reserves space; the blur layer is a second\n cheap reuse of the already-fetched bitmap (no extra network fetch). -->\n <div\n class={cn('sc-image sc-image--backdrop', className)}\n class:sc-image--backdrop-reserved={hasReservedBox}\n style={reserveStyle || undefined}\n >\n <img\n src={activeSrc}\n alt=\"\"\n class=\"sc-image__blur\"\n aria-hidden=\"true\"\n decoding=\"async\"\n {loading}\n {draggable}\n {fetchpriority}\n />\n <img\n bind:this={mainImg}\n src={activeSrc}\n {alt}\n class=\"sc-image__main\"\n class:sc-image__main--reserved={hasReservedBox}\n class:sc-image__main--loading={blurUp && !decoded}\n style:object-fit={objectFit}\n {width}\n {height}\n {loading}\n {draggable}\n {fetchpriority}\n decoding=\"async\"\n onerror={handleError}\n onload={handleLoad}\n />\n </div>\n{:else if showImg}\n <!-- escape-hatch framing (cover/contain/fill/none/scale-down): plain single\n <img>, identical DOM to the legacy component, plus blur-up + dims. -->\n <img\n bind:this={mainImg}\n src={activeSrc}\n {alt}\n {loading}\n {draggable}\n {fetchpriority}\n {width}\n {height}\n class={cn(\n 'sc-image image',\n blurUp && !decoded && 'sc-image--loading',\n className\n )}\n style:object-fit={objectFit}\n style:aspect-ratio={aspectRatio || undefined}\n decoding=\"async\"\n onerror={handleError}\n onload={handleLoad}\n />\n{:else}\n <!-- No usable src — branded placeholder (Micdrop mark on a tint), or a plain\n tinted box when branded={false}. Empty alt marks decorative images (per\n WCAG); hide from assistive tech via aria-hidden + no role. -->\n {#if alt}\n <div\n class={cn(\n 'sc-image image sc-image-placeholder image-placeholder',\n branded && 'sc-image-placeholder--branded',\n className\n )}\n style={reserveStyle || undefined}\n role=\"img\"\n aria-label={alt}\n ></div>\n {:else}\n <div\n class={cn(\n 'sc-image image sc-image-placeholder image-placeholder',\n branded && 'sc-image-placeholder--branded',\n className\n )}\n style={reserveStyle || undefined}\n aria-hidden=\"true\"\n ></div>\n {/if}\n{/if}\n\n<style>\n /* `.image` is a legacy back-compat alias of `.sc-image` on the plain\n escape-hatch <img> + placeholder (consumer CSS / tests may target it). */\n .sc-image,\n .image {\n display: block;\n max-width: 100%;\n }\n\n /* --- blur-backdrop framing --- */\n .sc-image--backdrop {\n position: relative;\n overflow: hidden;\n container-type: inline-size;\n background: hsl(var(--bg-quaternary));\n }\n\n .sc-image__blur {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n max-width: none;\n object-fit: cover;\n transform: scale(1.15);\n filter: blur(16px) saturate(1.2);\n /* purely decorative fill; the absolutely-positioned blur paints first and\n the in-flow main layer (position:relative) stacks above it by source\n order — no explicit z-index needed. */\n }\n\n /* Small containers (<=80px): blur() applies before scale() in the render\n pipeline, so the blur halo gets scaled too. Need enough scale that the\n opaque image extends past the container edge even after the halo grows. */\n @container (max-width: 5rem) {\n .sc-image__blur {\n transform: scale(2);\n filter: blur(6px) saturate(1.2);\n }\n }\n\n .sc-image__main {\n position: relative;\n display: block;\n width: 100%;\n /* No reserved box (legacy / no-fit default): the in-flow main image\n DRIVES the wrapper height and sizes ITSELF to the consumer's sizing\n classes — which land on the wrapper. `max-height: inherit` /\n `max-width: inherit` pull the wrapper's `max-h-*` / `max-w-*` onto the\n image so object-fit:contain shrinks it to fit (image height == wrapper\n height). The image therefore NEVER exceeds the wrapper, so the wrapper's\n overflow:hidden (which clips the decorative blur fill) cannot clip the\n MAIN image — it renders exactly as the pre-premium single <img> did,\n constrained by max-h-* / h-auto, no reflow. Only force the image to fill\n a fixed box when the consumer reserved a DEFINITE one (explicit height /\n aspectRatio / size-* / h-* / aspect-*) — there the wrapper owns layout\n and the image fills it (true zero-CLS letterbox). */\n height: auto;\n max-width: inherit;\n max-height: inherit;\n object-fit: contain;\n }\n\n .sc-image--backdrop-reserved .sc-image__main--reserved {\n height: 100%;\n max-width: none;\n max-height: none;\n }\n\n /* --- blur-up reveal (CSS-only; reduced-motion gated via motion tokens) ---\n The main image / plain image starts slightly blurred + scaled and\n sharpens on decode. Durations read from --motion-* so\n prefers-reduced-motion collapses them. */\n .sc-image--loading,\n .sc-image__main {\n transition:\n filter var(--motion-normal) var(--ease-smooth),\n transform var(--motion-normal) var(--ease-smooth);\n }\n\n .sc-image--loading,\n .sc-image__main--loading {\n filter: blur(12px);\n transform: scale(1.02);\n }\n\n /* --- placeholder --- */\n .sc-image-placeholder {\n background: hsl(var(--bg-quaternary));\n }\n\n .sc-image-placeholder--branded {\n background-color: hsl(var(--bg-tertiary));\n background-image: url('../../assets/images/micdrop-logo.png');\n background-repeat: no-repeat;\n background-position: center;\n /* keep the mark a small, calm watermark — never edge-to-edge */\n background-size: min(48%, 96px) auto;\n opacity: 0.92;\n }\n</style>\n","<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import type { TypographyRole, TypographyTone } from '../tokens/typography.js';\n\n interface Props {\n /** Text role — the closed type system. Sets size+weight+line-height+tracking. Preferred. */\n variant?: TypographyRole;\n /** Tone (color) — orthogonal to variant. */\n tone?: TypographyTone;\n as?: 'span' | 'p' | 'label' | 'div';\n truncate?: boolean;\n class?: string;\n /** @deprecated use `variant` */ size?: 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';\n /** @deprecated set via `variant` */ leading?: 'none' | 'tight' | 'snug' | 'normal' | 'relaxed' | 'loose';\n /** @deprecated use `tone` */ color?: 'default' | 'muted' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'none';\n /** @deprecated set via `variant` */ weight?: 'normal' | 'medium' | 'semibold' | 'bold';\n children: Snippet;\n }\n\n let {\n variant,\n tone,\n as = 'span',\n truncate = false,\n class: className = '',\n size,\n leading,\n color = 'default',\n weight,\n children,\n }: Props = $props();\n\n // ── New role API ──\n const toneClass: Record<string, string> = {\n primary: 'tone-primary', secondary: 'tone-secondary', muted: 'tone-muted',\n brand: 'tone-brand', success: 'tone-success', warning: 'tone-warning', danger: 'tone-danger',\n };\n\n // ── Deprecated prop maps (back-compat until consumers migrate to `variant`) ──\n const sizeClasses: Record<string, string> = {\n xs: 'type-caption', sm: 'type-body', base: 'type-bodyLarge', md: 'type-bodyLarge',\n lg: 'text-lg', xl: 'text-xl', '2xl': 'text-2xl',\n };\n const legacyColorClasses: Record<string, string> = {\n default: 'tone-primary', muted: 'tone-muted', primary: 'text-brand-primary',\n secondary: 'tone-secondary', success: 'text-accent-success', warning: 'text-accent-warning',\n error: 'text-accent-danger', none: '',\n };\n const leadingClasses: Record<string, string> = {\n none: 'leading-none', tight: 'leading-tight', snug: 'leading-snug',\n normal: 'leading-normal', relaxed: 'leading-relaxed', loose: 'leading-loose',\n };\n const weightClasses: Record<string, string> = {\n normal: 'font-normal', medium: 'font-medium', semibold: 'font-semibold', bold: 'font-bold',\n };\n\n let classes = $derived(\n (variant\n ? [`type-${variant}`, tone ? toneClass[tone] : '']\n : [\n sizeClasses[size ?? 'md'] || 'type-bodyLarge',\n leading ? leadingClasses[leading] : '',\n tone ? toneClass[tone] : legacyColorClasses[color] || '',\n weight ? weightClasses[weight] : 'font-normal',\n ])\n .concat(truncate ? 'truncate' : '', className)\n .filter(Boolean)\n .join(' '),\n );\n</script>\n\n<svelte:element this={as} class={classes}>{@render children()}</svelte:element>\n"],"names":["createLogger","src","$","$$props","alt","className","fallback","loading","fit","blurUp","branded","attempt","notifiedError","decoded","mainImg","_s","_f","activeSrc","showImg","backdrop","objectFit","DEFINITE_BOX_CLASS","hasReservedBox","reserveStyle","handleLoad","e","img","loadedSrc","handleError","div","root","img_1","img_2","$$value","classes","classes_1","styles","cn","img_3","root_1","$0","styles_1","div_1","root_2","div_2","root_3","$$render","consequent_2","alternate","consequent","consequent_1","alternate_1","as","truncate","color","toneClass","sizeClasses","legacyColorClasses","leadingClasses","weightClasses","$$element","$$anchor"],"mappings":";;;;iBAoEA;iBAKcA,EAAa,OAAO,GAKnB,OACJ,UAAY,OAAiB,QAAQ,KAAK;AA+DnD,MACEC,IAAGC,EAAA,KAAAC,GAAA,OAAA,GAAG,EAAE,GACRC,wBAAM,EAAE,GACDC,0BAAY,EAAE,GACrBC,6BAAW,EAAE,GACbC,4BAAU,MAAM,GAChBC,wBAAM,eAAe,GAIrBC,2BAAS,EAAI,GACbC,4BAAU,EAAI,GAWZC,IAAyCT,EAAA,MAAMA,EAAA;AAAA;AAAA,IAEjDD,MAAM,QAAQK,EAAQ,IAAG,aAAa;AAAA,MAMpCM,IAAgBV,EAAA,MAAO,EAAK,GAI5BW,IAAUX,EAAA,MAAO,EAAK,GAMtBY,IAAwCZ,EAAA,MAAM,MAAA;AAElD,EAAAA,EAAA,YAAO,MAAO;AAEZ,UAAMa,IAAKd,EAAG,GACRe,IAAKV,EAAQ;UACnBK,GAAUI,IAAK,QAAQC,IAAK,aAAa,UAAQ,EAAA,GACjDd,EAAA,IAAAU,GAAgB,EAAK,GACrBV,EAAA,IAAAW,GAAU,EAAK;AAAA,EACjB,CAAC;AAED,MAAII,IAASf,EAAA,QAAA,MAAAA,EAAA,IACXS,CAAO,MAAK,QAAQV,EAAG,IAAGC,EAAA,IAAAS,CAAO,MAAK,aAAaL,EAAQ,IAAG,EAAC;AAWjE,EAAAJ,EAAA,YAAO,MAAO;IACPD,EAAG,GACHK,EAAQ,SACRW,CAAS,GACZf,EAAA,IAAEY,CAAO,GAAE,YAAQZ,EAAA,IAAIY,CAAO,EAAC,eAAe,KAACZ,EAAA,IAAE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ignoreList":[0,1]}
|
|
@@ -15005,7 +15005,7 @@ function Ui(e, t) {
|
|
|
15005
15005
|
}
|
|
15006
15006
|
}
|
|
15007
15007
|
async function lc($) {
|
|
15008
|
-
$ === "series" ? r.get(Xe) || r.set(Xe, (await import("./SeriesPage-
|
|
15008
|
+
$ === "series" ? r.get(Xe) || r.set(Xe, (await import("./SeriesPage-DipiMfgn.js")).default, !0) : $ === "collection" ? r.get(vt) || r.set(vt, (await import("./CollectionView-EiUpQ7Qf.js")).default, !0) : r.get(Ve) || r.set(Ve, (await import("./EventPage-D-yLuLDX.js")).default, !0);
|
|
15009
15009
|
}
|
|
15010
15010
|
async function Qt({
|
|
15011
15011
|
type: $,
|
|
@@ -15070,12 +15070,12 @@ function Ui(e, t) {
|
|
|
15070
15070
|
contentName: L?.name || L?.title || r.get(W)?.data?.name || r.get(W)?.data?.title || ""
|
|
15071
15071
|
}), typeof window < "u" && requestAnimationFrame(() => {
|
|
15072
15072
|
document.querySelector(".micdrop-calendar-container")?.scrollIntoView?.({ block: "start", behavior: "auto" });
|
|
15073
|
-
}), r.get(Fe) || r.set(Fe, (await import("./Checkout-
|
|
15073
|
+
}), r.get(Fe) || r.set(Fe, (await import("./Checkout-CMcAetKf.js")).default, !0);
|
|
15074
15074
|
}
|
|
15075
15075
|
async function uc($) {
|
|
15076
15076
|
Te++, r.set(ce, $ || {}, !0), r.set(se, "success"), typeof window < "u" && requestAnimationFrame(() => {
|
|
15077
15077
|
document.querySelector(".micdrop-calendar-container")?.scrollIntoView?.({ block: "start", behavior: "auto" });
|
|
15078
|
-
}), r.get(ft) || r.set(ft, (await import("./Success-
|
|
15078
|
+
}), r.get(ft) || r.set(ft, (await import("./Success-b6rn2geE.js")).default, !0);
|
|
15079
15079
|
}
|
|
15080
15080
|
function fc() {
|
|
15081
15081
|
r.get(W) ? Qt({
|
|
@@ -16609,7 +16609,7 @@ if (typeof window < "u" && typeof HTMLElement < "u") {
|
|
|
16609
16609
|
}
|
|
16610
16610
|
}, customElements.get("micdrop-calendar") || customElements.define("micdrop-calendar", Gs);
|
|
16611
16611
|
}
|
|
16612
|
-
const db = "4.1.
|
|
16612
|
+
const db = "4.1.21", Xt = tt("VenueCalendar");
|
|
16613
16613
|
let di = null;
|
|
16614
16614
|
function Jl(e = {}) {
|
|
16615
16615
|
typeof e.onError == "function" && (di = e.onError, Nn({
|
|
@@ -16654,35 +16654,35 @@ const Le = {
|
|
|
16654
16654
|
// duplicate) has been deleted; everything uses EventPage.
|
|
16655
16655
|
EventPage: () => Yt(
|
|
16656
16656
|
"EventPage",
|
|
16657
|
-
() => import("./EventPage-
|
|
16657
|
+
() => import("./EventPage-D-yLuLDX.js").then((e) => e.default)
|
|
16658
16658
|
),
|
|
16659
16659
|
Checkout: () => Yt(
|
|
16660
16660
|
"Checkout",
|
|
16661
|
-
() => import("./Checkout-
|
|
16661
|
+
() => import("./Checkout-CMcAetKf.js").then((e) => e.default)
|
|
16662
16662
|
),
|
|
16663
16663
|
Success: () => Yt(
|
|
16664
16664
|
"Success",
|
|
16665
|
-
() => import("./Success-
|
|
16665
|
+
() => import("./Success-b6rn2geE.js").then((e) => e.default)
|
|
16666
16666
|
),
|
|
16667
16667
|
CartView: () => Yt(
|
|
16668
16668
|
"CartView",
|
|
16669
|
-
() => import("./CartView-
|
|
16669
|
+
() => import("./CartView-BT6tT85K.js").then((e) => e.default)
|
|
16670
16670
|
),
|
|
16671
16671
|
ViewTicketsEmbed: () => Yt(
|
|
16672
16672
|
"ViewTicketsEmbed",
|
|
16673
|
-
() => import("./ViewTicketsEmbed-
|
|
16673
|
+
() => import("./ViewTicketsEmbed-7ouHN4OY.js").then((e) => e.default)
|
|
16674
16674
|
),
|
|
16675
16675
|
CheckoutMain: () => Yt(
|
|
16676
16676
|
"CheckoutMain",
|
|
16677
|
-
() => import("./Checkout-
|
|
16677
|
+
() => import("./Checkout-Bggkt4ae.js").then((e) => e.b).then((e) => e.default)
|
|
16678
16678
|
),
|
|
16679
16679
|
SeriesPage: () => Yt(
|
|
16680
16680
|
"SeriesPage",
|
|
16681
|
-
() => import("./SeriesPage-
|
|
16681
|
+
() => import("./SeriesPage-DipiMfgn.js").then((e) => e.default)
|
|
16682
16682
|
),
|
|
16683
16683
|
CollectionView: () => Yt(
|
|
16684
16684
|
"CollectionView",
|
|
16685
|
-
() => import("./CollectionView-
|
|
16685
|
+
() => import("./CollectionView-EiUpQ7Qf.js").then((e) => e.default)
|
|
16686
16686
|
)
|
|
16687
16687
|
};
|
|
16688
16688
|
function yn(e, t) {
|
|
@@ -17216,4 +17216,4 @@ export {
|
|
|
17216
17216
|
Ty as y,
|
|
17217
17217
|
y4 as z
|
|
17218
17218
|
};
|
|
17219
|
-
//# sourceMappingURL=VenueCalendar-
|
|
17219
|
+
//# sourceMappingURL=VenueCalendar-nR43Iptv.js.map
|