react-motion-gallery 2.0.36 → 2.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +4 -4
  2. package/dist/FullscreenRuntime-Z3RXJ2HP.mjs +4 -0
  3. package/dist/{GridSkeleton-B5wWBN9L.d.mts → GridSkeleton-Dpsi5tXc.d.mts} +1 -1
  4. package/dist/{MasonrySkeleton-D8aZRUiv.d.mts → MasonrySkeleton-Cs0x-4yL.d.mts} +1 -1
  5. package/dist/chunk-45TZO7MN.mjs +2 -0
  6. package/dist/chunk-4RPAI2F7.mjs +4 -0
  7. package/dist/chunk-4URHXPTV.mjs +4 -0
  8. package/dist/{chunk-7PF7OJT2.mjs → chunk-5HGFS3S2.mjs} +1 -1
  9. package/dist/{chunk-MFTASEWB.mjs → chunk-AHMXEVKY.mjs} +1 -1
  10. package/dist/chunk-AU4O4KU4.mjs +1 -0
  11. package/dist/chunk-EWWWD475.mjs +1 -0
  12. package/dist/{chunk-J3UHEYNG.mjs → chunk-MJAHN7TG.mjs} +1 -1
  13. package/dist/{chunk-63CVVCOL.mjs → chunk-MLE7BKAD.mjs} +1 -1
  14. package/dist/chunk-P6NLW2QN.mjs +1 -0
  15. package/dist/chunk-UEIIMUYB.mjs +1 -0
  16. package/dist/chunk-YNQPSE2N.mjs +3 -0
  17. package/dist/{chunk-3RVITFUD.mjs → chunk-YU2WS3GJ.mjs} +1 -1
  18. package/dist/core.d.mts +1 -1
  19. package/dist/entries.d.mts +8 -7
  20. package/dist/entries.mjs +1 -1
  21. package/dist/fullscreen-captions.d.mts +1 -1
  22. package/dist/fullscreen-controls.d.mts +1 -1
  23. package/dist/fullscreen-crossfade.d.mts +1 -1
  24. package/dist/fullscreen-lazy-load.d.mts +1 -1
  25. package/dist/fullscreen-slider.d.mts +1 -1
  26. package/dist/fullscreen-slider.mjs +1 -1
  27. package/dist/fullscreen-thumbnails.d.mts +1 -1
  28. package/dist/fullscreen-video.d.mts +1 -1
  29. package/dist/fullscreen-zoom-pan.d.mts +1 -1
  30. package/dist/fullscreen.d.mts +4 -3
  31. package/dist/fullscreen.mjs +1 -1
  32. package/dist/grid.d.mts +2 -2
  33. package/dist/grid.mjs +1 -1
  34. package/dist/{index-lEnLoQv4.d.mts → index-QEgABhod.d.mts} +1 -1
  35. package/dist/index.d.mts +4 -3
  36. package/dist/index.mjs +1 -1
  37. package/dist/{layout-DoYnPD0I.d.mts → layout-BOy4geKv.d.mts} +1 -0
  38. package/dist/masonry.mjs +1 -1
  39. package/dist/metafile-esm.json +1 -1
  40. package/dist/{responsive-CrESIWcm.d.mts → responsive-BnHorKhC.d.mts} +25 -1
  41. package/dist/responsive.d.mts +1 -1
  42. package/dist/skeleton-base.d.mts +8 -5
  43. package/dist/skeleton-base.mjs +1 -1
  44. package/dist/skeleton-cache-provider.d.mts +7 -0
  45. package/dist/skeleton-cache-provider.mjs +1 -0
  46. package/dist/skeleton-cache.d.mts +70 -0
  47. package/dist/skeleton-cache.mjs +1 -0
  48. package/dist/skeleton-grid.d.mts +5 -4
  49. package/dist/skeleton-grid.mjs +1 -1
  50. package/dist/skeleton-masonry.d.mts +8 -6
  51. package/dist/skeleton-masonry.mjs +1 -1
  52. package/dist/skeleton-slider.d.mts +2 -1
  53. package/dist/skeleton-slider.mjs +5 -5
  54. package/package.json +9 -1
  55. package/dist/FullscreenRuntime-E7O76RND.mjs +0 -4
  56. package/dist/chunk-4BTS6IIA.mjs +0 -2
  57. package/dist/chunk-4ZOW533S.mjs +0 -1
  58. package/dist/chunk-7YGT5VBX.mjs +0 -1
  59. package/dist/chunk-LSHR3FZM.mjs +0 -4
  60. package/dist/chunk-RGS2QTPJ.mjs +0 -3
  61. package/dist/chunk-X3W6JPNH.mjs +0 -4
@@ -475,6 +475,29 @@ type FullscreenLazyLoadOptions = {
475
475
  images?: FullscreenLazyLoadConfig;
476
476
  videos?: FullscreenLazyLoadConfig;
477
477
  };
478
+ type FullscreenCloseScrollTiming = "before-close" | "after-close";
479
+ type FullscreenMobileDetectionContext = {
480
+ viewportWidth: number;
481
+ viewportHeight: number;
482
+ visualViewportWidth: number;
483
+ visualViewportHeight: number;
484
+ coarsePointer: boolean;
485
+ hoverNone: boolean;
486
+ maxTouchPoints: number;
487
+ userAgent: string;
488
+ };
489
+ type FullscreenCloseScrollContext = FullscreenMobileDetectionContext & {
490
+ index: number;
491
+ layout?: "slider" | "grid" | "masonry" | "entries" | null;
492
+ target: HTMLElement | null;
493
+ isMobile: boolean;
494
+ };
495
+ type FullscreenCloseScrollEnabled = boolean | "desktop-only" | "mobile-only" | ((context: FullscreenCloseScrollContext) => boolean);
496
+ type FullscreenCloseScrollOptions = {
497
+ enabled?: FullscreenCloseScrollEnabled;
498
+ timing?: FullscreenCloseScrollTiming;
499
+ mobileDetection?: (context: FullscreenMobileDetectionContext) => boolean;
500
+ };
478
501
  type FullscreenOptions = {
479
502
  enabled?: boolean;
480
503
  items?: MediaItem[] | string[];
@@ -486,6 +509,7 @@ type FullscreenOptions = {
486
509
  zoom?: FullscreenZoomPanOptions;
487
510
  effects?: FullscreenEffectsOptions;
488
511
  lazyLoad?: FullscreenLazyLoadOptions;
512
+ closeScroll?: boolean | FullscreenCloseScrollOptions;
489
513
  };
490
514
  type FullscreenPluginKind = "slider" | "controls" | "captions" | "zoom-pan" | "video" | "lazy-load" | "crossfade" | "thumbnails";
491
515
  type FullscreenPluginOptions = Partial<FullscreenOptions>;
@@ -527,4 +551,4 @@ type ResponsiveLength = ResponsiveLengthValue | Record<string, ResponsiveLengthV
527
551
  type ResponsivePosition = ThumbnailPosition | Array<ThumbnailPosition> | Record<string, ThumbnailPosition>;
528
552
  type ResponsiveCaptionPlacement = FsCaptionPlacement | Array<FsCaptionPlacement> | Record<string, FsCaptionPlacement>;
529
553
 
530
- export type { FSImageRender as A, ResponsivePosition as B, EntriesOptions as E, FullscreenCaptionOptions as F, IntroOptions as I, MediaEntryLink as M, PanAxisType as P, ResponsiveCaptionPlacement as R, SlideOwner as S, FullscreenControlsOptions as a, FullscreenCrossfadeOptions as b, FullscreenLazyLoadOptions as c, FullscreenOptions as d, FullscreenPlugin as e, FullscreenPluginKind as f, FullscreenSliderOptions as g, FullscreenVideoOptions as h, FullscreenZoomPanOptions as i, FsCaptionPlacement as j, FsIntroRequest as k, ResponsiveLength as l, ResponsiveLengthValue as m, EntryItem as n, EntryMediaRenderArgs as o, EntryOverlayRenderArgs as p, EntryOverlayStyle as q, EntryMediaLayout as r, EntryCardRenderArgs as s, EntrySkeletonResolverArgs as t, EntriesLoadingOptions as u, EntrySkeletonRenderArgs as v, FullscreenClose as w, FullscreenArrows as x, FullscreenCounter as y, FsCaptionRenderArgs as z };
554
+ export type { EntrySkeletonRenderArgs as A, FullscreenClose as B, FullscreenArrows as C, FullscreenCounter as D, EntriesOptions as E, FullscreenCaptionOptions as F, FsCaptionRenderArgs as G, FSImageRender as H, IntroOptions as I, ResponsivePosition as J, MediaEntryLink as M, PanAxisType as P, ResponsiveCaptionPlacement as R, SlideOwner as S, FullscreenCloseScrollContext as a, FullscreenCloseScrollEnabled as b, FullscreenCloseScrollOptions as c, FullscreenCloseScrollTiming as d, FullscreenControlsOptions as e, FullscreenCrossfadeOptions as f, FullscreenLazyLoadOptions as g, FullscreenMobileDetectionContext as h, FullscreenOptions as i, FullscreenPlugin as j, FullscreenPluginKind as k, FullscreenSliderOptions as l, FullscreenVideoOptions as m, FullscreenZoomPanOptions as n, FsCaptionPlacement as o, FsIntroRequest as p, ResponsiveLength as q, ResponsiveLengthValue as r, EntryItem as s, EntryMediaRenderArgs as t, EntryOverlayRenderArgs as u, EntryOverlayStyle as v, EntryMediaLayout as w, EntryCardRenderArgs as x, EntrySkeletonResolverArgs as y, EntriesLoadingOptions as z };
@@ -1,4 +1,4 @@
1
- export { R as ResponsiveCaptionPlacement, l as ResponsiveLength, m as ResponsiveLengthValue, B as ResponsivePosition } from './responsive-CrESIWcm.mjs';
1
+ export { R as ResponsiveCaptionPlacement, q as ResponsiveLength, r as ResponsiveLengthValue, J as ResponsivePosition } from './responsive-BnHorKhC.mjs';
2
2
  export { a as BREAKPOINT_MAP, B as BreakpointMap, R as ResponsiveNumber } from './responsiveNumber-CouEMJ9O.mjs';
3
3
  import './types-DXFoG8LC.mjs';
4
4
  import 'react';
@@ -3,8 +3,9 @@ import * as React from 'react';
3
3
  import { B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
4
4
  import { L as LoadingForceOptions } from './force-C5m1QpdF.mjs';
5
5
  import { L as LoadingTimingOptions } from './transitions-DU3ftmIq.mjs';
6
- import { S as SkeletonNode, a as SkeletonLength, b as SkeletonShimmer } from './layout-DoYnPD0I.mjs';
7
- export { e as SkeletonBaseStyle, f as SkeletonBaseStyleResponsive, g as SkeletonContainerStyle, h as SkeletonContainerStyleResponsive } from './layout-DoYnPD0I.mjs';
6
+ import { S as SkeletonNode, a as SkeletonLength, b as SkeletonShimmer } from './layout-BOy4geKv.mjs';
7
+ export { e as SkeletonBaseStyle, f as SkeletonBaseStyleResponsive, g as SkeletonContainerStyle, h as SkeletonContainerStyleResponsive } from './layout-BOy4geKv.mjs';
8
+ import { SkeletonCacheOptions } from './skeleton-cache.mjs';
8
9
  export { R as ResponsiveTextBarHeight, a as ResponsiveTextBarWidth, d as ResponsiveTextLastBarWidth, c as ResponsiveTextLineCount, b as ResponsiveTextLineHeight, T as TextSkeletonResponsiveBy } from './text-BBcRGVzn.mjs';
9
10
 
10
11
  type SkeletonForceOptions = LoadingForceOptions;
@@ -25,6 +26,7 @@ type SkeletonFrameProps = {
25
26
  loadingLayerFirst?: boolean;
26
27
  contentWrapper?: (children: React.ReactNode) => React.ReactNode;
27
28
  shellDataAttributes?: Record<string, string | boolean | undefined>;
29
+ shellRef?: React.Ref<HTMLDivElement>;
28
30
  };
29
31
  type SkeletonProps = {
30
32
  layout: SkeletonNode;
@@ -45,8 +47,9 @@ type SkeletonProps = {
45
47
  enabled?: boolean;
46
48
  force?: SkeletonForceOptions;
47
49
  timing?: SkeletonTimingOptions;
50
+ cache?: SkeletonCacheOptions;
48
51
  };
49
- declare function SkeletonFrame({ skeletonNode, children, ready, enabled, force, timing, shellClassName, shellStyle, loadingShellStyle, contentClassName, contentStyle, contentOwnsWrapperLayout, loadingLayerFirst, contentWrapper, shellDataAttributes, }: SkeletonFrameProps): react_jsx_runtime.JSX.Element;
50
- declare function Skeleton({ layout, children, breakpoints, className, style, shellClassName, shellStyle, contentClassName, contentStyle, backgroundColor, radius, shimmer, disableShimmer, ariaLabel, ready, enabled, force, timing, }: SkeletonProps): react_jsx_runtime.JSX.Element;
52
+ declare function SkeletonFrame({ skeletonNode, children, ready, enabled, force, timing, shellClassName, shellStyle, loadingShellStyle, contentClassName, contentStyle, contentOwnsWrapperLayout, loadingLayerFirst, contentWrapper, shellDataAttributes, shellRef, }: SkeletonFrameProps): react_jsx_runtime.JSX.Element;
53
+ declare function Skeleton({ layout, children, breakpoints, className, style, shellClassName, shellStyle, contentClassName, contentStyle, backgroundColor, radius, shimmer, disableShimmer, ariaLabel, ready, enabled, force, timing, cache, }: SkeletonProps): react_jsx_runtime.JSX.Element;
51
54
 
52
- export { Skeleton, type SkeletonForceOptions, SkeletonFrame, type SkeletonFrameProps, SkeletonLength, SkeletonNode, type SkeletonProps, SkeletonShimmer, type SkeletonTimingOptions, Skeleton as default };
55
+ export { Skeleton, SkeletonCacheOptions, type SkeletonForceOptions, SkeletonFrame, type SkeletonFrameProps, SkeletonLength, SkeletonNode, type SkeletonProps, SkeletonShimmer, type SkeletonTimingOptions, Skeleton as default };
@@ -1 +1 @@
1
- export{b as Skeleton,a as SkeletonFrame,b as default}from'./chunk-4ZOW533S.mjs';import'./chunk-4BTS6IIA.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
1
+ export{c as Skeleton,b as SkeletonFrame,c as default}from'./chunk-P6NLW2QN.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-EWWWD475.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
@@ -0,0 +1,7 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { SkeletonCacheProviderProps } from './skeleton-cache.mjs';
3
+ import 'react';
4
+
5
+ declare function SkeletonCacheProvider({ children, options, snapshot, snapshots, }: SkeletonCacheProviderProps): react_jsx_runtime.JSX.Element;
6
+
7
+ export { SkeletonCacheProvider, SkeletonCacheProviderProps };
@@ -0,0 +1 @@
1
+ export{a as SkeletonCacheProvider}from'./chunk-AU4O4KU4.mjs';
@@ -0,0 +1,70 @@
1
+ import * as React from 'react';
2
+
3
+ declare const SKELETON_CACHE_VERSION = 1;
4
+ declare const DEFAULT_SKELETON_CACHE_TTL_MS: number;
5
+ declare const DEFAULT_SKELETON_CACHE_DEBOUNCE_MS = 250;
6
+ type SkeletonCacheKind = "skeleton" | "masonry";
7
+ type SkeletonCacheTextRecord = {
8
+ lines: number;
9
+ barWidths?: string[];
10
+ lineWidthsPx?: number[];
11
+ barHeight?: number;
12
+ lineHeight?: number;
13
+ containerWidthPx?: number;
14
+ };
15
+ type SkeletonCacheMasonrySnapshot = {
16
+ variantKey: string;
17
+ shellHeightPx?: number;
18
+ itemHeightsPx?: number[];
19
+ };
20
+ type SkeletonCacheSnapshot = {
21
+ version: 1;
22
+ key: string;
23
+ scopeId: string;
24
+ kind: SkeletonCacheKind;
25
+ routeKey?: string;
26
+ createdAt: number;
27
+ widthBucketMin: number;
28
+ viewportWidth: number;
29
+ layoutWidthPx?: number;
30
+ masonry?: SkeletonCacheMasonrySnapshot;
31
+ text: Record<string, SkeletonCacheTextRecord>;
32
+ };
33
+ type SkeletonCacheCookieOptions = {
34
+ path?: string;
35
+ sameSite?: "lax" | "strict" | "none";
36
+ secure?: boolean;
37
+ };
38
+ type SkeletonCacheOptions = {
39
+ key: string;
40
+ snapshot?: SkeletonCacheSnapshot | null;
41
+ ttlMs?: number;
42
+ debounceMs?: number;
43
+ routeKey?: string;
44
+ cookie?: SkeletonCacheCookieOptions;
45
+ };
46
+ type SkeletonCacheProviderProps = {
47
+ children?: React.ReactNode;
48
+ options?: Omit<SkeletonCacheOptions, "snapshot">;
49
+ snapshot?: SkeletonCacheSnapshot | null;
50
+ snapshots?: Record<string, SkeletonCacheSnapshot | null | undefined>;
51
+ };
52
+ type SkeletonCacheParseOptions = {
53
+ key?: string;
54
+ scopeId?: string;
55
+ kind?: SkeletonCacheKind;
56
+ routeKey?: string;
57
+ ttlMs?: number;
58
+ now?: number;
59
+ textIds?: readonly string[];
60
+ itemCount?: number;
61
+ variantKeys?: readonly string[];
62
+ widthBucketMin?: number;
63
+ };
64
+ declare function getSkeletonCacheCookieName(key: string): string;
65
+ declare function serializeSkeletonCacheSnapshot(snapshot: SkeletonCacheSnapshot): string;
66
+ declare function validateSkeletonCacheSnapshot(snapshot: SkeletonCacheSnapshot | null | undefined, options?: SkeletonCacheParseOptions): SkeletonCacheSnapshot | null;
67
+ declare function parseSkeletonCacheCookie(raw: string | null | undefined, options?: SkeletonCacheParseOptions): SkeletonCacheSnapshot | null;
68
+ declare function getSkeletonCacheRouteKey(loc?: Pick<Location, "pathname" | "search"> | undefined): string;
69
+
70
+ export { DEFAULT_SKELETON_CACHE_DEBOUNCE_MS, DEFAULT_SKELETON_CACHE_TTL_MS, SKELETON_CACHE_VERSION, type SkeletonCacheCookieOptions, type SkeletonCacheKind, type SkeletonCacheMasonrySnapshot, type SkeletonCacheOptions, type SkeletonCacheProviderProps, type SkeletonCacheSnapshot, type SkeletonCacheTextRecord, getSkeletonCacheCookieName, getSkeletonCacheRouteKey, parseSkeletonCacheCookie, serializeSkeletonCacheSnapshot, validateSkeletonCacheSnapshot };
@@ -0,0 +1 @@
1
+ export{c as DEFAULT_SKELETON_CACHE_DEBOUNCE_MS,b as DEFAULT_SKELETON_CACHE_TTL_MS,a as SKELETON_CACHE_VERSION,d as getSkeletonCacheCookieName,h as getSkeletonCacheRouteKey,g as parseSkeletonCacheCookie,e as serializeSkeletonCacheSnapshot,f as validateSkeletonCacheSnapshot}from'./chunk-EWWWD475.mjs';
@@ -1,15 +1,16 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { R as ResponsiveNumber, B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
4
- import { a as SkeletonLength, b as SkeletonShimmer } from './layout-DoYnPD0I.mjs';
5
- export { S as SkeletonNode } from './layout-DoYnPD0I.mjs';
4
+ import { a as SkeletonLength, b as SkeletonShimmer } from './layout-BOy4geKv.mjs';
5
+ export { S as SkeletonNode } from './layout-BOy4geKv.mjs';
6
6
  import { f as ResponsiveGridTemplate, R as ResponsiveGridSpan } from './types-Do4Pq-Td.mjs';
7
- import { c as GridSkeletonLayoutNode, b as GridSkeletonSpec } from './GridSkeleton-B5wWBN9L.mjs';
8
- export { G as GridSkeletonNode, a as GridSkeletonSlot } from './GridSkeleton-B5wWBN9L.mjs';
7
+ import { c as GridSkeletonLayoutNode, b as GridSkeletonSpec } from './GridSkeleton-Dpsi5tXc.mjs';
8
+ export { G as GridSkeletonNode, a as GridSkeletonSlot } from './GridSkeleton-Dpsi5tXc.mjs';
9
9
  import { SkeletonForceOptions, SkeletonTimingOptions } from './skeleton-base.mjs';
10
10
  import './text-BBcRGVzn.mjs';
11
11
  import './force-C5m1QpdF.mjs';
12
12
  import './transitions-DU3ftmIq.mjs';
13
+ import './skeleton-cache.mjs';
13
14
 
14
15
  type SkeletonGridOptions = {
15
16
  count?: number;
@@ -1 +1 @@
1
- export{a as GridSkeleton,a as Skeleton,a as default}from'./chunk-X3W6JPNH.mjs';import'./chunk-4ZOW533S.mjs';import'./chunk-4BTS6IIA.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
1
+ export{a as GridSkeleton,a as Skeleton,a as default}from'./chunk-4RPAI2F7.mjs';import'./chunk-P6NLW2QN.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-EWWWD475.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-Y7NUGXTR.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
@@ -1,12 +1,13 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { R as ResponsiveNumber, B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
4
- import { a as SkeletonLength, b as SkeletonShimmer } from './layout-DoYnPD0I.mjs';
5
- export { S as SkeletonNode } from './layout-DoYnPD0I.mjs';
4
+ import { a as SkeletonLength, b as SkeletonShimmer } from './layout-BOy4geKv.mjs';
5
+ export { S as SkeletonNode } from './layout-BOy4geKv.mjs';
6
6
  import { R as ResponsiveMasonrySpan } from './types-Br27DWP7.mjs';
7
- import { M as MasonrySkeletonLayoutNode, a as MasonryPlacement, b as MasonrySkeletonSpec } from './MasonrySkeleton-D8aZRUiv.mjs';
8
- export { c as MasonrySkeletonNode, d as MasonrySkeletonSlot } from './MasonrySkeleton-D8aZRUiv.mjs';
7
+ import { M as MasonrySkeletonLayoutNode, a as MasonryPlacement, b as MasonrySkeletonSpec } from './MasonrySkeleton-Cs0x-4yL.mjs';
8
+ export { c as MasonrySkeletonNode, d as MasonrySkeletonSlot } from './MasonrySkeleton-Cs0x-4yL.mjs';
9
9
  import { SkeletonForceOptions, SkeletonTimingOptions } from './skeleton-base.mjs';
10
+ import { SkeletonCacheOptions } from './skeleton-cache.mjs';
10
11
  import './text-BBcRGVzn.mjs';
11
12
  import './force-C5m1QpdF.mjs';
12
13
  import './transitions-DU3ftmIq.mjs';
@@ -56,7 +57,8 @@ type MasonrySkeletonProps = {
56
57
  force?: SkeletonForceOptions;
57
58
  timing?: SkeletonTimingOptions;
58
59
  masonry?: SkeletonMasonryOptions;
60
+ cache?: SkeletonCacheOptions;
59
61
  };
60
- declare function MasonrySkeleton({ layout, children, breakpoints, className, style, shellClassName, shellStyle, contentClassName, contentStyle, backgroundColor, radius, shimmer, disableShimmer, ariaLabel, ready, enabled, force, timing, masonry, }: MasonrySkeletonProps): react_jsx_runtime.JSX.Element | null;
62
+ declare function MasonrySkeleton({ layout, children, breakpoints, className, style, shellClassName, shellStyle, contentClassName, contentStyle, backgroundColor, radius, shimmer, disableShimmer, ariaLabel, ready, enabled, force, timing, masonry, cache, }: MasonrySkeletonProps): react_jsx_runtime.JSX.Element | null;
61
63
 
62
- export { MasonryPlacement, MasonrySkeleton, type MasonrySkeletonProps, MasonrySkeletonSpec, MasonrySkeleton as Skeleton, SkeletonForceOptions, type SkeletonMasonryLayout, type SkeletonMasonryOptions, SkeletonTimingOptions, MasonrySkeleton as default };
64
+ export { MasonryPlacement, MasonrySkeleton, type MasonrySkeletonProps, MasonrySkeletonSpec, MasonrySkeleton as Skeleton, SkeletonCacheOptions, SkeletonForceOptions, type SkeletonMasonryLayout, type SkeletonMasonryOptions, SkeletonTimingOptions, MasonrySkeleton as default };
@@ -1 +1 @@
1
- export{a as MasonrySkeleton,a as Skeleton,a as default}from'./chunk-RGS2QTPJ.mjs';import'./chunk-LSHR3FZM.mjs';import'./chunk-4ZOW533S.mjs';import'./chunk-4BTS6IIA.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
1
+ export{a as MasonrySkeleton,a as Skeleton,a as default}from'./chunk-YNQPSE2N.mjs';import'./chunk-4URHXPTV.mjs';import'./chunk-P6NLW2QN.mjs';import'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-EWWWD475.mjs';import'./chunk-Z34PSRMG.mjs';import'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import'./chunk-HK2DPKES.mjs';
@@ -2,12 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import { R as ResponsiveNumber, B as BreakpointMap } from './responsiveNumber-CouEMJ9O.mjs';
4
4
  import { j as SliderHandle } from './types-BiXSaEk7.mjs';
5
- import { a as SkeletonLength$1, b as SkeletonShimmer$1 } from './layout-DoYnPD0I.mjs';
5
+ import { a as SkeletonLength$1, b as SkeletonShimmer$1 } from './layout-BOy4geKv.mjs';
6
6
  import { R as ResponsiveTextBarHeight, a as ResponsiveTextBarWidth, b as ResponsiveTextLineHeight, c as ResponsiveTextLineCount, d as ResponsiveTextLastBarWidth } from './text-BBcRGVzn.mjs';
7
7
  import { SkeletonForceOptions, SkeletonTimingOptions } from './skeleton-base.mjs';
8
8
  import './force-C5m1QpdF.mjs';
9
9
  import './media.mjs';
10
10
  import './transitions-DU3ftmIq.mjs';
11
+ import './skeleton-cache.mjs';
11
12
 
12
13
  type SkeletonLength = number | string;
13
14
  type SkeletonShimmer = {
@@ -1,4 +1,4 @@
1
- import {a as a$2}from'./chunk-R6EGYRTJ.mjs';import {a as a$4}from'./chunk-KJZTKXTM.mjs';import {a as a$3}from'./chunk-4ZOW533S.mjs';import {n,l,t,i as i$1,u,w,x,b,k as k$1,y,s,q,d as d$1,f,h,g,r,j}from'./chunk-4BTS6IIA.mjs';import'./chunk-Z34PSRMG.mjs';import {a as a$1}from'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import {i,a,d,e}from'./chunk-HK2DPKES.mjs';import*as C from'react';import {jsxs,jsx}from'react/jsx-runtime';var ut=300*1e3,ct=2,dt="rmg:slider-restore",Vt=new Set(["reload","back_forward"]);function Xt(e,t){return (e%t+t)%t}function Jt(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}function St(){return Date.now()}function mt(e,t=typeof window<"u"?window.location:void 0){let n=t?`${t.pathname}${t.search}`:"";return `${dt}:${e}:${n}`}function Ut(e=window){let n=(e.performance?.getEntriesByType?.("navigation")??[])[0];if(n?.type)return n.type;let r=e.performance?.navigation;return r?r.type===r.TYPE_RELOAD?"reload":r.type===r.TYPE_BACK_FORWARD?"back_forward":null:null}function Zt(e=window){let t=Ut(e);return !!t&&Vt.has(t)}function Qt(e){if(!e)return null;let t;try{t=JSON.parse(e);}catch{return null}if(!Jt(t)||t.version!==1)return null;let n=Number(t.index),r=Number(t.viewportWidth),i=Number(t.slideCount),o=Number(t.skeletonSlotCount),l=Number(t.timestamp),a=Number(t.scrollY),c=Number(t.scrollMax),u=t.heightPx==null?void 0:Number(t.heightPx);return !Number.isInteger(n)||n<0||!Number.isFinite(r)||r<=0||!Number.isInteger(i)||i<=0||!Number.isInteger(o)||o<=0||!Number.isFinite(l)||l<=0||u!=null&&(!Number.isFinite(u)||u<=0)?null:{version:1,index:n,heightPx:u,viewportWidth:r,slideCount:i,skeletonSlotCount:o,timestamp:l,scrollY:Number.isFinite(a)?Math.max(0,a):0,scrollMax:Number.isFinite(c)?Math.max(0,c):0,wasAtBottom:t.wasAtBottom===true}}function en(e,t){if(!e)return null;let n=Math.max(0,t.ttlMs),r=(t.now??St())-e.timestamp;if(n>0&&(r<0||r>n)||e.slideCount!==t.slideCount||e.skeletonSlotCount!==t.skeletonSlotCount||e.index<0||e.index>=t.slideCount)return null;let i=t.viewportTolerancePx??ct;return Math.abs(e.viewportWidth-t.viewportWidth)>i?null:e}function ft(e,t=window,n={}){if(!e?.enabled||e.controlled||n.requireNavigationRestore!==false&&!Zt(t))return null;try{let r=t.sessionStorage.getItem(mt(e.storageKeyId,t.location));return en(Qt(r),{ttlMs:e.ttlMs,viewportWidth:t.innerWidth||t.document.documentElement.clientWidth||0,slideCount:e.slideCount,skeletonSlotCount:e.skeletonSlotCount})}catch{return null}}function pt(e,t,n=window){if(!(!e?.enabled||e.controlled))try{let r=n.document.documentElement,i=n.document.body,o=Math.max(r?.scrollHeight??0,i?.scrollHeight??0),l=n.innerHeight||r?.clientHeight||0,a=Math.max(0,o-l),c=Math.max(0,n.scrollY||n.pageYOffset||0),u=a>0&&a-c<=4,s={version:1,index:Math.max(0,Math.floor(t.index)),heightPx:t.heightPx,viewportWidth:n.innerWidth||r?.clientWidth||0,slideCount:t.slideCount,skeletonSlotCount:t.skeletonSlotCount,timestamp:St(),scrollY:c,scrollMax:a,wasAtBottom:u};n.sessionStorage.setItem(mt(e.storageKeyId,n.location),JSON.stringify(s));}catch{}}function gt(e){let t=Math.max(0,Math.floor(e.slotCount)),n=Math.min(t,Math.max(0,Math.floor(e.visibleCount)));if(t<=0||n<=0)return [];let r=Math.min(Math.max(0,Math.floor(e.activeIndex)),Math.max(0,t-1)),i=Math.min(Math.max(0,Math.floor(e.activeSlotOffset)),Math.max(0,n-1)),o=e.loop?r:Math.min(Math.max(0,r-i),Math.max(0,t-n)),l=[],a=new Set;for(let c=0;c<n;c+=1){let u=o+c,s=e.loop?Xt(u,t):u;s<0||s>=t||a.has(s)||(a.add(s),l.push({slot:s+1,order:c}));}return l}function tn(e){return JSON.stringify(e).replace(/</g,"\\u003c")}function nn(e){return `(function(){try{
1
+ import {a as a$2}from'./chunk-R6EGYRTJ.mjs';import {a as a$3}from'./chunk-KJZTKXTM.mjs';import {b}from'./chunk-P6NLW2QN.mjs';import {n,l,t,i as i$1,u,w,x,b as b$1,k as k$1,y,s,q,d as d$1,f,h,g,r,j}from'./chunk-45TZO7MN.mjs';import'./chunk-AU4O4KU4.mjs';import'./chunk-EWWWD475.mjs';import'./chunk-Z34PSRMG.mjs';import {a as a$1}from'./chunk-UUAWLGWO.mjs';import'./chunk-LVYED5ZM.mjs';import'./chunk-B4CC5AGE.mjs';import {i,a,d,e}from'./chunk-HK2DPKES.mjs';import*as C from'react';import {jsxs,jsx}from'react/jsx-runtime';var ut=300*1e3,ct=2,dt="rmg:slider-restore",Vt=new Set(["reload","back_forward"]);function Xt(e,t){return (e%t+t)%t}function Jt(e){return !!e&&typeof e=="object"&&!Array.isArray(e)}function St(){return Date.now()}function mt(e,t=typeof window<"u"?window.location:void 0){let n=t?`${t.pathname}${t.search}`:"";return `${dt}:${e}:${n}`}function Ut(e=window){let n=(e.performance?.getEntriesByType?.("navigation")??[])[0];if(n?.type)return n.type;let r=e.performance?.navigation;return r?r.type===r.TYPE_RELOAD?"reload":r.type===r.TYPE_BACK_FORWARD?"back_forward":null:null}function Zt(e=window){let t=Ut(e);return !!t&&Vt.has(t)}function Qt(e){if(!e)return null;let t;try{t=JSON.parse(e);}catch{return null}if(!Jt(t)||t.version!==1)return null;let n=Number(t.index),r=Number(t.viewportWidth),i=Number(t.slideCount),o=Number(t.skeletonSlotCount),l=Number(t.timestamp),a=Number(t.scrollY),c=Number(t.scrollMax),u=t.heightPx==null?void 0:Number(t.heightPx);return !Number.isInteger(n)||n<0||!Number.isFinite(r)||r<=0||!Number.isInteger(i)||i<=0||!Number.isInteger(o)||o<=0||!Number.isFinite(l)||l<=0||u!=null&&(!Number.isFinite(u)||u<=0)?null:{version:1,index:n,heightPx:u,viewportWidth:r,slideCount:i,skeletonSlotCount:o,timestamp:l,scrollY:Number.isFinite(a)?Math.max(0,a):0,scrollMax:Number.isFinite(c)?Math.max(0,c):0,wasAtBottom:t.wasAtBottom===true}}function en(e,t){if(!e)return null;let n=Math.max(0,t.ttlMs),r=(t.now??St())-e.timestamp;if(n>0&&(r<0||r>n)||e.slideCount!==t.slideCount||e.skeletonSlotCount!==t.skeletonSlotCount||e.index<0||e.index>=t.slideCount)return null;let i=t.viewportTolerancePx??ct;return Math.abs(e.viewportWidth-t.viewportWidth)>i?null:e}function ft(e,t=window,n={}){if(!e?.enabled||e.controlled||n.requireNavigationRestore!==false&&!Zt(t))return null;try{let r=t.sessionStorage.getItem(mt(e.storageKeyId,t.location));return en(Qt(r),{ttlMs:e.ttlMs,viewportWidth:t.innerWidth||t.document.documentElement.clientWidth||0,slideCount:e.slideCount,skeletonSlotCount:e.skeletonSlotCount})}catch{return null}}function pt(e,t,n=window){if(!(!e?.enabled||e.controlled))try{let r=n.document.documentElement,i=n.document.body,o=Math.max(r?.scrollHeight??0,i?.scrollHeight??0),l=n.innerHeight||r?.clientHeight||0,a=Math.max(0,o-l),c=Math.max(0,n.scrollY||n.pageYOffset||0),u=a>0&&a-c<=4,s={version:1,index:Math.max(0,Math.floor(t.index)),heightPx:t.heightPx,viewportWidth:n.innerWidth||r?.clientWidth||0,slideCount:t.slideCount,skeletonSlotCount:t.skeletonSlotCount,timestamp:St(),scrollY:c,scrollMax:a,wasAtBottom:u};n.sessionStorage.setItem(mt(e.storageKeyId,n.location),JSON.stringify(s));}catch{}}function gt(e){let t=Math.max(0,Math.floor(e.slotCount)),n=Math.min(t,Math.max(0,Math.floor(e.visibleCount)));if(t<=0||n<=0)return [];let r=Math.min(Math.max(0,Math.floor(e.activeIndex)),Math.max(0,t-1)),i=Math.min(Math.max(0,Math.floor(e.activeSlotOffset)),Math.max(0,n-1)),o=e.loop?r:Math.min(Math.max(0,r-i),Math.max(0,t-n)),l=[],a=new Set;for(let c=0;c<n;c+=1){let u=o+c,s=e.loop?Xt(u,t):u;s<0||s>=t||a.has(s)||(a.add(s),l.push({slot:s+1,order:c}));}return l}function tn(e){return JSON.stringify(e).replace(/</g,"\\u003c")}function nn(e){return `(function(){try{
2
2
  var cfg=${tn(e)};
3
3
  var nav=(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||{}).type;
4
4
  if(!nav&&performance.navigation){nav=performance.navigation.type===performance.navigation.TYPE_RELOAD?"reload":performance.navigation.type===performance.navigation.TYPE_BACK_FORWARD?"back_forward":"";}
@@ -34,7 +34,7 @@ style.setAttribute("data-rmg-slider-restore-style",cfg.scopeId);
34
34
  style.textContent=css;
35
35
  document.head.appendChild(style);
36
36
  if(state.wasAtBottom){var keep=function(){var doc=document.documentElement;var body=document.body;var max=Math.max(0,Math.max(doc.scrollHeight,body?body.scrollHeight:0)-(innerHeight||doc.clientHeight||0));scrollTo(scrollX||0,max);};requestAnimationFrame(keep);setTimeout(keep,50);addEventListener("load",function(){requestAnimationFrame(keep);setTimeout(keep,120);},{once:true});}
37
- }catch(e){}})();`}function ht(e){if(e.slideCount<=0||e.skeletonSlotCount<=0)return "";let t=i(e.responsiveCount,e.fallbackCount,e.breakpointMap),n={scopeId:e.scopeId,storageKeyId:e.storageKeyId,ttlMs:e.ttlMs,slideCount:e.slideCount,skeletonSlotCount:e.skeletonSlotCount,maxSlots:e.maxSlots,loop:e.loop,activeSlotOffset:e.activeSlotOffset,countRules:t,dotStyles:e.dotStyles??[],viewportTolerancePx:ct};return nn(n)}function m(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function He(e){if(!e)return {};let t=m(e.margin),n=m(e.marginTop),r=m(e.marginRight),i=m(e.marginBottom),o=m(e.marginLeft),l={};return t!=null&&(l.margin=t),n!=null&&(l.marginTop=n),r!=null&&(l.marginRight=r),i!=null&&(l.marginBottom=i),o!=null&&(l.marginLeft=o),l}function rn(e,t){if(!(!e&&!t))return {...e||{},...t||{}}}function Ie(e,t){let n=e.slots?.[t];return {item:n?.item??e.item,itemWrapStyle:rn(e.itemWrapStyle,n?.itemWrapStyle)}}function We(e,t){let n$1={};e?.aspectRatio!=null&&(n$1.aspectRatio=e.aspectRatio);let r=m(e?.width),i=m(e?.maxWidth),o=m(e?.height),l=m(e?.maxHeight);return r!=null&&(n$1.inlineSize=r,n$1.width=r),i!=null&&(n$1.maxInlineSize=i,n$1.maxWidth=i),o!=null&&(n$1.height=o),l!=null&&(n$1.maxHeight=l),e?.aspectRatio!=null&&e?.height==null&&(n$1.height="auto"),e?.aspectRatio!=null&&e?.width==null&&e?.height==null&&(n$1.inlineSize="100%",n$1.width="100%",n$1.height="auto"),e?.backgroundColor&&(n$1["--rmg-skel-bg"]=e.backgroundColor),e?.borderRadius!=null&&(n$1["--rmg-skel-radius"]=m(e.borderRadius)),e?.overflow!=null&&(n$1.overflow=e.overflow),e?.alignSelf&&(n$1.alignSelf=e.alignSelf),e?.scale!=null&&(n$1.transform=`scale(${e.scale})`),Object.assign(n$1,n(t)),n$1}function on(e,t){let n={};t!=null&&(n.height=`${t}px`);let r=m(e?.width),i=m(e?.maxWidth);return r!=null&&(n.inlineSize=r,n.width=r),i!=null&&(n.maxInlineSize=i,n.maxWidth=i),e?.alignSelf&&(n.alignSelf=e.alignSelf),e?.scale!=null&&(n.transform=`scale(${e.scale})`),n}function $e(e){return typeof e=="string"&&e.trim()==="max-content"}function ln(e){return !e||typeof e!="object"?false:$e(e.width)?true:Object.values(e).some(n=>!!n&&typeof n=="object"&&$e(n.width))}function sn(e){let t=We(e,void 0);return delete t["--rmg-skel-bg"],e?.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e?.border!=null&&(t.border=e.border),e?.boxShadow!=null&&(t.boxShadow=e.boxShadow),e?.borderRadius!=null?(t.borderRadius=m(e.borderRadius),t.overflow=e?.overflow??"hidden"):e?.overflow!=null&&(t.overflow=e.overflow),t.boxSizing="border-box",t}function an(e){if(!e)return {outerStyle:void 0,innerStyle:void 0};let t=sn(e),n={};return t.boxShadow!=null&&(n["--rmg-slider-skel-wrap-shadow"]=t.boxShadow,delete t.boxShadow),t.borderRadius!=null&&(n["--rmg-slider-skel-wrap-shadow-radius"]=t.borderRadius),{outerStyle:Object.keys(n).length?n:void 0,innerStyle:t}}function Be(e){let t={};return e&&(e.position!=null&&(t.position=e.position),e.inset!=null&&(t.inset=m(e.inset)),e.insetBlock!=null&&(t.insetBlock=m(e.insetBlock)),e.insetInline!=null&&(t.insetInline=m(e.insetInline)),e.top!=null&&(t.top=m(e.top)),e.right!=null&&(t.right=m(e.right)),e.bottom!=null&&(t.bottom=m(e.bottom)),e.left!=null&&(t.left=m(e.left)),e.zIndex!=null&&(t.zIndex=e.zIndex),e.gap!=null&&(t.gap=m(e.gap)),e.padding!=null&&(t.padding=m(e.padding)),e.align&&(t.alignItems=e.align),e.justify&&(t.justifyContent=e.justify),e.wrap&&(t.flexWrap="wrap"),e.width!=null&&(t.width=m(e.width)),e.maxWidth!=null&&(t.maxWidth=m(e.maxWidth)),e.height!=null&&(t.height=m(e.height)),e.minHeight!=null&&(t.minHeight=m(e.minHeight)),e.maxHeight!=null&&(t.maxHeight=m(e.maxHeight)),e.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e.borderRadius!=null&&(t.borderRadius=m(e.borderRadius)),e.border!=null&&(t.border=e.border),e.boxShadow!=null&&(t.boxShadow=e.boxShadow),e.margin!=null&&(t.margin=m(e.margin)),e.marginTop!=null&&(t.marginTop=m(e.marginTop)),e.marginRight!=null&&(t.marginRight=m(e.marginRight)),e.marginBottom!=null&&(t.marginBottom=m(e.marginBottom)),e.marginLeft!=null&&(t.marginLeft=m(e.marginLeft)),e.flex!=null&&(t.flex=e.flex),e.flexGrow!=null&&(t.flexGrow=e.flexGrow),e.flexShrink!=null&&(t.flexShrink=e.flexShrink),e.flexBasis!=null&&(t.flexBasis=m(e.flexBasis)),e.order!=null&&(t.order=e.order),e.alignSelf!=null&&(t.alignSelf=e.alignSelf),e.overflow!=null&&(t.overflow=e.overflow),e.transform!=null&&(t.transform=e.transform),e.pointerEvents!=null&&(t.pointerEvents=e.pointerEvents),e.opacity!=null&&(t.opacity=e.opacity)),t}function Ae(e){let t=We(e,void 0);return delete t["--rmg-skel-bg"],e?.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e?.borderRadius!=null&&(t.borderRadius=m(e.borderRadius)),e?.overflow!=null&&(t.overflow=e.overflow),{...t,...He(e)}}function bt(e){return e.replace(/"/g,'\\"')}function ne(e,t,n,r=a){switch(e.kind){case "rect":case "square":case "circle":{let i=x({style:e.style,breakpointMap:r});if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "text":{let i=[...k$1({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,fitContent:ln(e.style),breakpointMap:r}).map(l=>({...l,raw:true})),...y({style:e.style,breakpointMap:r})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "media":{let i=[...w({style:e.style,breakpointMap:r}),...x({style:e.tile?.style,breakpointMap:r,selector:`${b} [data-rmg-skel-media-tile="true"]`})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "sliderDots":{let i=[...w({style:e.style,breakpointMap:r}),...x({style:e.dotStyle,breakpointMap:r,selector:`${b} [data-rmg-skel-slider-dot]`}),...x({style:e.activeStyle,breakpointMap:r,selector:`${b} [data-rmg-skel-dot-active="true"]`}),...x({style:e.inactiveStyle,breakpointMap:r,selector:`${b} [data-rmg-skel-dot-active="false"]`})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "stack":case "row":case "col":{let i=w({style:e.style,breakpointMap:r}),o=i.length?t():void 0;o&&i.length&&n.push({nodeId:o,rules:i});let l=e.children.map(a=>ne(a,t,n,r));return {...e,...o?{__rmgNodeId:o}:null,children:l}}case "slider":{let i=w({style:e.style,breakpointMap:r}),o=i.length?t():void 0;o&&i.length&&n.push({nodeId:o,rules:i});let l=ne(e.item,t,n,r),a=e.children?.map(s=>ne(s,t,n,r)),c=e.overlays?.map(s=>ne(s,t,n,r)),u=e.slots?.map(s=>({...s,item:s.item?ne(s.item,t,n,r):void 0}));return {...e,...o?{__rmgNodeId:o}:null,item:l,children:a,overlays:c,slots:u}}default:return e}}function un(e,t){if(!t.length)return "";let n=[];for(let r of t){let i=`${e} [data-rmg-skel-node="${bt(r.nodeId)}"]`;for(let o of r.rules){let l=o.raw?o.css.split("__NODE_SEL__").join(i):`${i}{${o.css}}`;o.minWidth<=0?n.push(l):n.push(`@media (min-width:${o.minWidth}px){${l}}`);}}return n.join(`
38
- `)}function kt(e){let{kind:t,style:n,shimmer:r,breakpointMap:i,mediaTile:o}=e,l={},a=s(n,i),c=e.__rmgNodeId;return t==="circle"&&(l.borderRadius="9999px"),t==="square"&&a?.aspectRatio==null&&(l.aspectRatio="1"),a?.aspectRatio!=null&&a?.height==null&&(l.height="auto"),jsx("div",{"data-rmg-skel-node":c,"data-rmg-skel-media-tile":o?"true":void 0,className:a$4.sliderSkeleton,style:{...We(a,r),...He(a),...l}})}function cn({node:e,breakpointMap:t}){let n=j({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,breakpointMap:t}),r=s(e.style,t),i=n.states.some(({state:s})=>s.lineCount!==n.baseState.lineCount||s.metrics.totalHeight!==n.baseState.metrics.totalHeight||s.metrics.barHeight!==n.baseState.metrics.barHeight||s.metrics.paddingBlock!==n.baseState.metrics.paddingBlock||s.metrics.rowGap!==n.baseState.metrics.rowGap),o=n.states.some(({state:s})=>s.lineCount!==n.baseState.lineCount||s.barWidths.length!==n.baseState.barWidths.length||s.barWidths.some((p,S)=>p!==n.baseState.barWidths[S])),l=e.__rmgNodeId,a=on(r,i?void 0:n.metrics.totalHeight),c={height:n.metrics.barHeight,backgroundColor:r?.backgroundColor,borderRadius:r?.borderRadius},u=$e(r?.width);return jsx("div",{"data-rmg-skel-node":l,"data-rmg-skel-text":"true",className:a$4.sliderSkeletonText,style:{...a,...He(r),...i?null:{paddingBlock:`${n.metrics.paddingBlock}px`,rowGap:`${n.metrics.rowGap}px`}},children:Array.from({length:n.maxLines}).map((s,p)=>jsx("div",{"data-rmg-skel-text-line":"true",className:[a$4.sliderSkeleton,a$4.sliderSkeletonTextLine].join(" "),style:{...We(c,e.shimmer),...o?null:{display:p>=n.baseLines?"none":void 0,width:u?n.baseState.barWidths[p]??"100%":"100%",maxWidth:n.baseState.barWidths[p]??"100%"}}},p))})}function Le({node:e,breakpointMap:t$1,activeDotIndex:n$1}){switch(e.kind){case "rect":case "square":case "circle":return jsx(kt,{...e,breakpointMap:t$1});case "media":{let r=Math.max(0,e.count|0),i=e.direction??"row",o=e.tile?.shape??"rect",l=e.__rmgNodeId,a=Be(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":l,className:a$4.sliderSkeletonGroup,style:{display:"flex",flexDirection:i==="row"?"row":"column",...a||{}},children:Array.from({length:r}).map((c,u)=>jsx(kt,{kind:o,style:e.tile?.style,shimmer:e.tile?.shimmer,breakpointMap:t$1,mediaTile:true},u))})}case "sliderDots":{let r=Math.max(0,e.count|0),i=e.__rmgNodeId,o=Be(t(e.style,t$1)),l=Ae(s(e.dotStyle,t$1)),a=Ae(s(e.activeStyle,t$1)),c=Ae(s(e.inactiveStyle,t$1)),u=typeof n$1=="number"&&Number.isFinite(n$1)?Math.max(0,Math.min(r-1,Math.floor(n$1))):0;return jsx("div",{"data-rmg-skel-node":i,"data-rmg-skel-slider-dots":"true","data-rmg-skel-dot-active-style":JSON.stringify(a),"data-rmg-skel-dot-inactive-style":JSON.stringify(c),className:a$4.sliderSkeletonGroup,style:{display:"flex",flexDirection:"row",...o||{}},children:Array.from({length:r}).map((s,p)=>{let S=p===u;return jsx("div",{"data-rmg-skel-slider-dot":p,"data-rmg-skel-dot-active":S?"true":"false",className:a$4.sliderSkeleton,style:{...n(e.shimmer),...l,...S?a:c}},p)})})}case "stack":case "row":case "col":{let r=e.kind==="row"?"row":"column",i=e.__rmgNodeId,o=Be(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":i,className:a$4.sliderSkeletonGroup,style:{display:"flex",flexDirection:r,...o||{}},children:e.children.map((l,a)=>jsx(Le,{node:l,breakpointMap:t$1,activeDotIndex:n$1},a))})}case "text":return jsx(cn,{node:e,breakpointMap:t$1});default:return null}}function yt(){return {layout:{kind:"slider",direction:"row",item:{kind:"rect",style:{width:"100%",height:"100%",borderRadius:2}},itemWrapStyle:void 0},radius:12}}function Ee(e){return /%$/.test(e.trim())}function Rt(e){let t=e.trim();if(!t.length)return null;if(t==="0")return {value:0,unit:"px"};let n=t.match(/^(\d+(?:\.\d+)?|\.\d+)([a-zA-Z]+)$/);if(!n)return null;let r=Number(n[1]);return !Number.isFinite(r)||r<0?null:{value:r,unit:n[2]}}function Ct(e){let t=[],n="",r=0;for(let i of e.trim()){if(/\s/.test(i)&&r===0){n&&(t.push(n),n="");continue}n+=i,i==="("?r+=1:i===")"&&(r=Math.max(0,r-1));}return n&&t.push(n),t}function dn(e){let t=e.trim();return t.length?t==="0"?"0px":/^(?:var|calc|min|max|clamp)\(.+\)$/i.test(t)||Rt(t)?t:null:null}function Sn(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)&&e>=0?e===0?"0px":`${e}px`:null;for(let t of Ct(String(e))){let n=dn(t);if(n)return n}return null}function _(e){return e==null?null:typeof e=="number"?`${e}px`:String(e)}function Me(e,t){if(!e)return null;if(t===0)return "0px";if(e==="0px")return e;let n=Rt(e);return n?`${n.value*t}${n.unit}`:`calc(${e} * ${t})`}function wt(e){if(e==null)return null;if(typeof e=="number")return e>0?e:null;let t=String(e).trim(),n=t.match(/^(\d+(?:\.\d+)?)\s*\/\s*(\d+(?:\.\d+)?)$/);if(n){let i=Number(n[1]),o=Number(n[2]);return i>0&&o>0?i/o:null}let r=Number(t);return Number.isFinite(r)&&r>0?r:null}function k(e){let t=e.filter(r=>!!r&&r.trim().length>0);if(!t.length)return null;let n=t.filter(r=>{let i=r.trim();return i!=="0"&&i!=="0px"});return n.length?n.length===1?n[0]:`calc(${n.join(" + ")})`:"0px"}function ve(e){let t=e.filter(n=>!!n&&n.trim().length>0);return t.length?t.length===1?t[0]:`max(${t.join(", ")})`:null}function mn(e){let t=e.filter(n=>!!n&&n.trim().length>0);return t.length?t.length===1?t[0]:`min(${t.join(", ")})`:null}function ae(e,t){if(e.trim()==="0"||e.trim()==="0px"||t.trim()==="0"||t.trim()==="0px")return "0px";if(t.trim()==="1")return e;let n=Number(t);return Number.isFinite(n)?Me(e,n)??`calc(${e} * ${t})`:`calc(${e} * ${t})`}function Fe(e,t){return t.trim()==="1"?e:`calc(${e} / ${t})`}function Nt(e,t){return t.trim()==="0"||t.trim()==="0px"?e:`calc(${e} - ${t})`}function Bt(e,t){let n=_(t);return !e||!n?e:mn([e,n])}function re(e){let t=_(e?.margin),n=_(e?.marginTop),r=_(e?.marginBottom);return t&&!n&&!r?Me(t,2):!t&&!n&&!r?null:k([n??t??"0px",r??t??"0px"])}function Lt(e){if(e==null)return null;let t=typeof e=="number"?`${e}px`:String(e).trim();if(!t.length)return null;let n=Ct(t);if(!n.length||n.length>4)return null;let[r,i,o,l]=n;return n.length===1?{top:r,right:r,bottom:r,left:r}:n.length===2?{top:r,right:i,bottom:r,left:i}:n.length===3?{top:r,right:i,bottom:o,left:i}:{top:r,right:i,bottom:o,left:l}}function Et(e){return Sn(e?.border)}function fn(e){return Me(Et(e),2)}function pn(e){return Me(Et(e),2)}function V(e){let t=Lt(e?.padding);return t?k([t.top,t.bottom]):null}function Ht(e){let t=Lt(e?.padding);return t?k([t.left,t.right]):null}function be(e){return _(e?.gap)}function xt(e,t){let n=Ht(t);return !n||n==="0px"?e:Nt(e,n)}function ue(e,t=0,n=a){return r(e,t,n)}function De(e,t,n,r,i=0,o=a){let l=ue(e.style,i,o),a=be(l)??"0px",c=Ht(l)??"0px",u=Math.max(1,t|0),s=u>1?ae(a,String(u-1)):"0px",p=`calc(100cqw - ${c} - ${s})`,{itemWrapStyle:S}=Ie(e,n),g=S?.width?_(S.width):null,v;return r==="peek"&&g&&!Ee(g)?v=g:v=Fe(p,String(u)),Bt(v,S?.maxWidth)??v}function gn(e,t,n,r,i=0,o=a){let l=De(e,t,n,r,i,o),{itemWrapStyle:a}=Ie(e,n),c=fn(a);return !c||c==="0px"?l:Nt(l,c)}function hn(e$1,t=0,n=a){let r=e(d(e$1.rowHeightCompensation,n),t);return r==null||!Number.isFinite(r)||r<=0?null:`${r}px`}function It(e,t,n,r=0,i=a){let o=ue(e.style,r,i),l=be(o)??"0px",a=V(o)??"0px",c=hn(e,r,i),u=Math.max(1,t|0),s=e.direction??"row",p=Array.from({length:u},(g,v)=>{let{item:M,itemWrapStyle:W}=Ie(e,v),O=De(e,u,v,n,r,i),N=gn(e,u,v,n,r,i),b=ce(M,N,r,i),y=pn(W),B=re(W),f=k([y,B]),d=null,H=null;if(b&&!Ee(b)&&(H=k([b,y,B])),W){let q=_(W.height);if(q)d=k([q,B]);else {let P=wt(W.aspectRatio);P?d=k([Fe(O,String(P)),B]):d=f;}}return b?d?Ee(b)?d:ve([d,H??b]):b:d}),S=s==="row"?(()=>{let g=e.initialHeightSlot;if(g==null)return ve(p);let v=Math.min(Math.max(0,Math.trunc(g)),Math.max(0,u-1));return p[v]??ve(p)})():k([k(p),u>1?ae(l,String(u-1)):"0px"]);return k([S,a,c])}function Wt(e,t=0,n=a){return k((e.children??[]).map(r=>ce(r,"100cqw",t,n)))}function ce(e,t,n=0,r=a){if(e.kind==="rect"||e.kind==="square"||e.kind==="circle"){let i=q(e.style,n,r),o=_(i?.height),l=wt(i?.aspectRatio);if(o)return k([o,re(i)]);if(l){let a=_(i?.width),c=a&&!Ee(a)?a:t,u=Bt(c,i?.maxWidth)??c,s=String(l),p=Fe(u,s);return k([p,re(i)])}return re(i)??null}if(e.kind==="media"){let i=e.direction??"row",o=ue(e.style,n,r),l=be(o)??"0px",a=Math.max(0,e.count|0),c=xt(t,o),u=e.tile?{kind:e.tile.shape??"rect",style:e.tile.style,shimmer:e.tile.shimmer}:{kind:"rect",style:{width:"100%",height:"100%"}},s=ce(u,c,n,r);return s?i==="row"?k([s,V(o)]):a<=1?k([s,V(o)]):k([ae(s,String(a)),ae(l,String(a-1)),V(o)]):null}if(e.kind==="sliderDots"){let i=ue(e.style,n,r),o=q(e.dotStyle,n,r),l=q(e.activeStyle,n,r),a=q(e.inactiveStyle,n,r),c=[o,l,a].map(s=>k([_(s?.height),re(s)])).filter(s=>!!s),u=ve(c);return u?k([u,V(i)]):V(i)}if(e.kind==="row"||e.kind==="col"||e.kind==="stack"){let i=e.kind==="row"?"row":"col",o=ue(e.style,n,r),l=be(o)??"0px",a=V(o)??"0px",c=xt(t,o),u=e.children.map(s=>ce(s,c,n,r));if(i==="row"){let s=ve(u);return s?k([s,a]):null}else {let s=u.filter(S=>!!S);if(!s.length)return a;let p=s.length>1?ae(l,String(s.length-1)):"0px";return k([k(s)??null,p,a])}}if(e.kind==="text"){let i=q(e.style,n,r),o=d$1({barHeight:g(e.barHeight,typeof e.barHeight=="number"?e.barHeight:0,n,r),lineHeight:h(e.lineHeight,typeof e.lineHeight=="number"?e.lineHeight:1,n,r),lines:f(e.lines,1,n,r)});return k([`${o.totalHeight}px`,re(i)])}return null}function Mt(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;if(!o)return ce(e,"100cqw",r,i);let l=It(o,t,n,r,i),a=Wt(o,r,i);return k([l,a])}function Pt(e,t=0,n=a){let r=e.kind==="slider"?e:null;return r?Wt(r,t,n):null}function Tt(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;if(!o||n!=="peek")return null;let l=Math.max(1,t|0);if(l<=1)return null;let a=ue(o.style,r,i),c=be(a)??"0px",u=Array.from({length:l-1},(p,S)=>De(o,l,S+1,n,r,i)),s=l>2?ae(c,String(l-2)):null;return k([...u,s])}function _t(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;return o?It(o,t,n,r,i):ce(e,"100cqw",r,i)}function ie(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "media":case "sliderDots":return;case "text":for(let r of i$1({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,breakpointMap:n}))t.add(r);return;case "stack":case "row":case "col":for(let r of e.children)ie(r,t,n);return;case "slider":ie(e.item,t,n);for(let r of e.children??[])ie(r,t,n);for(let r of e.overlays??[])ie(r,t,n);for(let r of e.slots??[])r.item&&ie(r.item,t,n);return;default:return e}}function oe(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":u(e.style,t,n);return;case "media":u(e.tile?.style,t,n);return;case "sliderDots":u(e.dotStyle,t,n),u(e.activeStyle,t,n),u(e.inactiveStyle,t,n);return;case "text":u(e.style,t,n);return;case "stack":case "row":case "col":for(let r of e.children)oe(r,t,n);return;case "slider":oe(e.item,t,n);for(let r of e.children??[])oe(r,t,n);for(let r of e.overlays??[])oe(r,t,n);for(let r of e.slots??[])r.item&&oe(r.item,t,n);return;default:return e}}function Ne(e,t,n=a){u(e,t,n);}function le(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "text":return;case "media":Ne(e.style,t,n);return;case "sliderDots":Ne(e.style,t,n);return;case "stack":case "row":case "col":Ne(e.style,t,n);for(let r of e.children)le(r,t,n);return;case "slider":Ne(e.style,t,n),le(e.item,t,n);for(let r of e.children??[])le(r,t,n);for(let r of e.overlays??[])le(r,t,n);for(let r of e.slots??[])r.item&&le(r.item,t,n);return;default:return e}}function se(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "media":case "sliderDots":case "text":return;case "stack":case "row":case "col":for(let r of e.children)se(r,t,n);return;case "slider":for(let r of d(e.rowHeightCompensation,n))t.add(r.minWidth);se(e.item,t,n);for(let r of e.children??[])se(r,t,n);for(let r of e.overlays??[])se(r,t,n);for(let r of e.slots??[])r.item&&se(r.item,t,n);return;default:return e}}function Ot(e,t=a){let n=new Set;return ie(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function At(e,t=a){let n=new Set;return le(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function $t(e,t=a){let n=new Set;return oe(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function Ft(e,t=a){let n=new Set;return se(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function Dt({count:e,maxSlots:t$1,activeDotIndex:n$1,rowStyle:r,spec:i,breakpoints:o,centerFirst:l=false,hasLeadingSpacer:a$2=false,responsiveCssScopeSelector:c}){let u=i??yt(),s=C.useMemo(()=>({...a,...o??{}}),[o]),p=u.layout??yt().layout,S=C.useMemo(()=>a$1("ssk_",{breakpoints:s,centerFirst:l,count:e,hasLeadingSpacer:a$2,maxSlots:t$1,rowStyle:r,spec:u}),[l,e,s,a$2,t$1,r,u]),g=C.useMemo(()=>`[data-rmg-slider-skel-scope="${bt(S)}"]`,[S]),v=c??g,M={...r||{},...n(u.shimmer)};u.backgroundColor&&(M["--rmg-skel-bg"]=u.backgroundColor),u.radius!=null&&(M["--rmg-skel-radius"]=m(u.radius));let{layout:W,responsiveCss:O}=C.useMemo(()=>{let T=0,I=()=>`n${++T}`,A=[],Se=ne(p,I,A,s),z=un(v,A);return {layout:Se,responsiveCss:z}},[p,v,s]),N=W,b=N.__rmgNodeId,y=Be(t(N.style,s)),B=N.count!=null?Math.max(0,N.count|0):Math.max(0,e|0),f=N.direction??"row",d=N.children??[],H=N.overlays??[],q=l&&f==="row",P=a$2&&f==="row",Re=N.itemStretch??true,J=Math.max(0,t$1|0),U=u.mode??"fit";return jsxs("div",{"data-rmg-slider-skel-scope":c?void 0:S,"data-rmg-skel-mode":U,"data-rmg-skel-has-extras":d.length?"true":void 0,className:[a$4.sliderSkeletonOverlay,u.className].filter(Boolean).join(" "),style:u.style,"data-rmg-skel-part":"overlay",children:[O?jsx("style",{dangerouslySetInnerHTML:{__html:O}}):null,jsxs("div",{className:a$4.sliderSkeletonLayout,"data-rmg-skel-part":"layout","data-rmg-skel-has-extras":d.length?"true":void 0,children:[jsx("div",{"data-rmg-skel-node":b,className:a$4.sliderSkeletonRow,"data-rmg-skel-part":"row",style:{...M,...y||{},display:"flex",flexDirection:f==="row"?"row":"column",...q?{justifyContent:"center"}:null},children:Array.from({length:J}).map((T,I)=>{let A=P&&I===0,Se=P?I-1:I,z=A?{item:{kind:"rect",style:{width:"100%",height:"100%",backgroundColor:"transparent"},shimmer:{enabled:false}},itemWrapStyle:{width:"var(--rmg-slider-center-first-spacer-width, 0px)",height:0}}:Ie(N,Se),E=z.itemWrapStyle,{outerStyle:$,innerStyle:Ce}=an(E);return jsx("div",{className:a$4.sliderSkeletonItem,"data-rmg-skel-slot":I+1,"data-rmg-skel-visible-count":B,"data-rmg-skel-center-first-spacer":A?"true":void 0,style:{boxSizing:"border-box",...E?He(E):null,...$??null,...f==="col"?{flex:"0 0 auto",height:"auto"}:Re?{height:"100%"}:{alignSelf:"flex-start",height:"auto"},minWidth:0,minHeight:0},children:jsx("div",{className:a$4.sliderSkeletonItemInner,style:{...Ce??null,...f==="row"&&!Re?{height:"auto"}:null},children:jsx(Le,{node:z.item,breakpointMap:s,activeDotIndex:n$1})})},`rmg-slider-skel-${I}`)})}),d.length?jsx("div",{className:a$4.sliderSkeletonExtras,"data-rmg-skel-part":"extras",children:d.map((T,I)=>jsx(Le,{node:T,breakpointMap:s,activeDotIndex:n$1},`rmg-slider-skel-extra-${I}`))}):null]}),H.length?jsx("div",{className:a$4.sliderSkeletonOverlays,"data-rmg-skel-part":"overlays",children:H.map((T,I)=>jsx(Le,{node:T,breakpointMap:s,activeDotIndex:n$1},`rmg-slider-skel-overlay-${I}`))}):null]})}function ze(e){return !!e&&typeof e=="object"&&!("kind"in e)&&"layout"in e&&e.layout?.kind==="slider"}function jt(e){return !!e&&typeof e=="object"&&"kind"in e&&e.kind==="slider"}function kn(e){if(ze(e))return e;let{mode:t,centering:n,className:r,visibleCount:i,backgroundColor:o,radius:l,shimmer:a,...c}=e;return {mode:t,centering:n,className:r,visibleCount:i,backgroundColor:o,radius:l,shimmer:a,layout:c}}function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return {};let t={};for(let[n,r]of Object.entries(e))r!=null&&(typeof r=="string"||typeof r=="number"||typeof r=="boolean")&&(t[n]=r);return t}function de(e,t=[]){return !e||typeof e!="object"?t:e.kind==="sliderDots"?(t.push({activeStyle:qt(e.activeStyle),inactiveStyle:qt(e.inactiveStyle)}),t):e.kind==="slider"?(de(e.item,t),e.children?.forEach?.(n=>de(n,t)),e.overlays?.forEach?.(n=>de(n,t)),e.slots?.forEach?.(n=>de(n.item,t)),t):(e.children?.forEach?.(n=>de(n,t)),t)}function je(e,t,n){return i(e,t,n).reduce((r,i)=>Math.max(r,i.count),0)}function yn(e,t){let n=Math.max(0,Math.floor(e));return n<=0?[]:n===1?t>=2?[2]:[]:Array.from({length:Math.min(t,n+1)},(r,i)=>i+1)}function zt(e){return `[data-rmg-scope="${e}"] > [data-rmg-scope-shell="true"]`}function qe(e){typeof document>"u"||document.querySelectorAll("style[data-rmg-slider-restore-style]").forEach(t=>{t.getAttribute("data-rmg-slider-restore-style")===e&&t.remove();});}function xn(e,t){if(t==null||!Number.isFinite(t)||t<=0)return "";let n=Math.round((t+Number.EPSILON)*1e3)/1e3;return `${zt(e)}{--rmg-slider-initial-height:${n}px!important;--rmg-slider-row-height:${n}px!important;}`}function Kt(e){let t=e.skeletonSpec.layout;if(!t)return "";let n=e.skeletonSpec.mode??"fit",r=zt(e.scopeId),i$1=i(e.responsiveCount,e.fallbackCount,e.breakpointMap),o=Ot(t,e.breakpointMap),l=At(t,e.breakpointMap),a=$t(t,e.breakpointMap),c=Ft(t,e.breakpointMap),u=S=>{let g=e.fallbackCount;for(let v of i$1)S>=v.minWidth&&(g=v.count);return Math.max(1,g|0)},s=(S,g)=>{let v=Mt(t,S,n,g,e.breakpointMap),M=_t(t,S,n,g,e.breakpointMap),W=Pt(t,g,e.breakpointMap),O=e.centerFirstSpacer?Tt(t,S,n,g,e.breakpointMap):null;if(!v&&!M&&!W&&!O)return "";let N=[v?`--rmg-slider-initial-height:${v};`:"",M?`--rmg-slider-row-height:${M};`:"",W?`--rmg-slider-extras-height:${W};`:"",e.centerFirstSpacer?`--rmg-slider-center-first-spacer-width:${O??"0px"};`:""].join("");return `${r}{${N}}`};return Array.from(new Set([...i$1.map(S=>S.minWidth),...a,...l,...o,...c])).sort((S,g)=>S-g).map(S=>{let g=s(u(S),S);return g?S<=0?g:`@media (min-width:${S}px){${g}}`:""}).filter(Boolean).join(`
39
- `)}function Ke({layout:e,children:t,breakpoints:n$1,className:r,style:i,shellClassName:o,shellStyle:l$1,contentClassName:a$4,contentStyle:c,backgroundColor:u,radius:s,shimmer:p,disableShimmer:S,ariaLabel:g,ready:v,enabled:M,force:W,timing:O,restore:N}){let b=C.useMemo(()=>({...a,...n$1??{}}),[n$1]),y=C.useMemo(()=>a$1("skel_",{layout:e,breakpoints:b,backgroundColor:u,radius:s,shimmer:p,disableShimmer:S}),[e,b,u,s,p,S]),B=C.useMemo(()=>jt(e)||ze(e)?kn(e):null,[e]),f=B?.layout?.kind==="slider"?B.layout:null,d=N?.kind==="slider"?N:null,H=d?.slider?.handleRef??null,q=d&&d.enabled!==false&&d.slider?.handleRef?[d.key??"",d.itemCount,JSON.stringify(d.visibleCount??null),d.loop===true?"loop":"no-loop",d.activeSlotOffset??""].join(":"):"",P=q!=="",[Re,J]=C.useState(()=>!P),[U,T]=C.useState(null),[I,A]=C.useState(null),Se=v===true&&(!P||Re),z=!!f,E=d?.visibleCount??(jt(e)?e.visibleCount:void 0)??(ze(e)?e.visibleCount:void 0)??(typeof f?.count=="number"?f.count:void 0),$=typeof E=="number"?Math.max(1,E|0):typeof f?.count=="number"?Math.max(1,f.count|0):1,Ce=!!f&&B?.centering==="first"&&(B.mode??"fit")==="peek",K=Ce&&je(E,$,b)>1,me=Array.isArray(f?.slots)&&f.slots.length>0?f.slots.length:Math.max(d?.itemCount??0,typeof f?.count=="number"?f.count:0,$),fe=f?Math.max(12,K?me+1:me,K?je(E,$,b)+1:je(E,$,b)):0,w=C.useMemo(()=>{if(!d||d.enabled===false||!z)return null;let x=Math.max(0,Math.floor(d.itemCount));return x<=0||me<=0?null:{enabled:true,storageKeyId:typeof d.key=="string"&&d.key.trim()?d.key.trim():y,ttlMs:typeof d.ttlMs=="number"&&Number.isFinite(d.ttlMs)?Math.max(0,d.ttlMs):ut,slideCount:x,skeletonSlotCount:Math.max(x,me)}},[z,y,d?.enabled,d?.itemCount,d?.key,d?.ttlMs,me]),G=C.useMemo(()=>f?a$2({scopeId:y,responsiveCount:E,fallbackCount:$,breakpointMap:b,maxSlots:fe,visibleSlotsForCount:K?yn:void 0,slotOrderForCount:U==null||!w?.enabled||!d?void 0:x=>gt({activeIndex:U,visibleCount:x,slotCount:w.skeletonSlotCount,loop:d.loop===true,activeSlotOffset:d.activeSlotOffset??(typeof f.initialHeightSlot=="number"?f.initialHeightSlot:0)})}):{cssText:"",ssrBaseCount:$},[b,y,K,$,f,fe,d,U,w,E]),Ge=C.useMemo(()=>!f||!B?"":Kt({scopeId:y,skeletonSpec:B,responsiveCount:E,fallbackCount:G.ssrBaseCount,breakpointMap:b,centerFirstSpacer:K}),[b,y,K,G.ssrBaseCount,f,B,E]),Ye=C.useMemo(()=>!w?.enabled||!d||!f?"":ht({scopeId:y,storageKeyId:w.storageKeyId,ttlMs:w.ttlMs,slideCount:w.slideCount,skeletonSlotCount:w.skeletonSlotCount,maxSlots:fe,loop:d.loop===true,activeSlotOffset:d.activeSlotOffset??(typeof f.initialHeightSlot=="number"?f.initialHeightSlot:0),responsiveCount:E,fallbackCount:G.ssrBaseCount,breakpointMap:b,dotStyles:de(f)}),[b,y,G.ssrBaseCount,f,fe,d?.activeSlotOffset,d?.enabled,d?.loop,w,E]),Ve=C.useMemo(()=>xn(y,I),[y,I]),Pe=C.useRef(null);C.useLayoutEffect(()=>{J(!P),T(null),A(null);},[P,q]),C.useLayoutEffect(()=>{if(!w?.enabled||!H||typeof window>"u")return;let x=null,F=false,pe=()=>{if(F)return;let Y=H.current;if(!Y){x=window.requestAnimationFrame(pe);return}let D=ft(w,window,{requireNavigationRestore:false});if(!D){qe(y),T(null),A(null),J(true);return}T(D.index),A(D.heightPx??null),qe(y);let _e=[w.storageKeyId,D.timestamp,D.index,D.heightPx??""].join(":");if(Pe.current!==_e&&Y.setIndex(D.index,"instant"),Pe.current===_e){J(true);return}if(!Y.isReady()){x=window.requestAnimationFrame(pe);return}if(!H.current?.isReady()){x=window.requestAnimationFrame(pe);return}Pe.current=_e,x=window.requestAnimationFrame(()=>{x=null,!F&&(H.current?.setIndex(D.index,"instant"),x=window.requestAnimationFrame(()=>{x=null,!F&&(x=window.requestAnimationFrame(()=>{x=null,F||J(true);}));}));});};return pe(),()=>{F=true,x!=null&&window.cancelAnimationFrame(x),qe(y);}},[y,H,w]),C.useEffect(()=>{if(!w?.enabled||!H||typeof window>"u")return;let x=()=>{let F=H.current;if(!F)return;let Y=F.getViewportNode()?.getBoundingClientRect().height;pt(w,{index:F.getIndex(),slideCount:w.slideCount,skeletonSlotCount:w.skeletonSlotCount,heightPx:Y&&Y>0?Y:void 0});};return window.addEventListener("pagehide",x),window.addEventListener("beforeunload",x),()=>{x(),window.removeEventListener("pagehide",x),window.removeEventListener("beforeunload",x);}},[H,w]);let Gt={position:"relative",width:"100%",minWidth:0,minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))",overflow:"hidden",...i,...u?{"--rmg-skel-bg":u}:null,...s!=null?{"--rmg-skel-radius":l(s)}:null,...S?null:n(p)},Te=f&&B?jsxs("div",{"data-rmg-skeleton-scope":y,className:r,style:Gt,"aria-hidden":g?void 0:true,"aria-label":g,role:g?"status":void 0,"aria-live":g?"polite":void 0,children:[G.cssText||Ge||Ve?jsx("style",{dangerouslySetInnerHTML:{__html:[G.cssText,Ge,Ve].filter(Boolean).join(`
40
- `)}}):null,jsx(Dt,{count:G.ssrBaseCount,maxSlots:fe,activeDotIndex:U??void 0,spec:B,breakpoints:b,centerFirst:Ce,hasLeadingSpacer:K,responsiveCssScopeSelector:`[data-rmg-scope="${y}"]`}),Ye?jsx("script",{dangerouslySetInnerHTML:{__html:Ye}}):null]}):null,Xe={containerType:"inline-size",width:"100%"},Yt=f?{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))"}:null;return Te?t===void 0?jsx("div",{"data-rmg-scope":y,style:Xe,children:jsx("div",{"data-rmg-scope-shell":"true",style:{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))"},children:Te})}):jsx("div",{"data-rmg-scope":y,style:Xe,children:jsx(a$3,{skeletonNode:Te,ready:Se,enabled:M,force:W,timing:O,shellClassName:o,shellStyle:l$1,loadingShellStyle:Yt,contentClassName:a$4,contentStyle:c,contentOwnsWrapperLayout:true,shellDataAttributes:{"data-rmg-scope-shell":"true"},children:t})}):null}export{Ke as Skeleton,Ke as SliderSkeleton,Kt as buildScopedInitialHeightCss,Ke as default};
37
+ }catch(e){}})();`}function ht(e){if(e.slideCount<=0||e.skeletonSlotCount<=0)return "";let t=i(e.responsiveCount,e.fallbackCount,e.breakpointMap),n={scopeId:e.scopeId,storageKeyId:e.storageKeyId,ttlMs:e.ttlMs,slideCount:e.slideCount,skeletonSlotCount:e.skeletonSlotCount,maxSlots:e.maxSlots,loop:e.loop,activeSlotOffset:e.activeSlotOffset,countRules:t,dotStyles:e.dotStyles??[],viewportTolerancePx:ct};return nn(n)}function m(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function He(e){if(!e)return {};let t=m(e.margin),n=m(e.marginTop),r=m(e.marginRight),i=m(e.marginBottom),o=m(e.marginLeft),l={};return t!=null&&(l.margin=t),n!=null&&(l.marginTop=n),r!=null&&(l.marginRight=r),i!=null&&(l.marginBottom=i),o!=null&&(l.marginLeft=o),l}function rn(e,t){if(!(!e&&!t))return {...e||{},...t||{}}}function Ie(e,t){let n=e.slots?.[t];return {item:n?.item??e.item,itemWrapStyle:rn(e.itemWrapStyle,n?.itemWrapStyle)}}function We(e,t){let n$1={};e?.aspectRatio!=null&&(n$1.aspectRatio=e.aspectRatio);let r=m(e?.width),i=m(e?.maxWidth),o=m(e?.height),l=m(e?.maxHeight);return r!=null&&(n$1.inlineSize=r,n$1.width=r),i!=null&&(n$1.maxInlineSize=i,n$1.maxWidth=i),o!=null&&(n$1.height=o),l!=null&&(n$1.maxHeight=l),e?.aspectRatio!=null&&e?.height==null&&(n$1.height="auto"),e?.aspectRatio!=null&&e?.width==null&&e?.height==null&&(n$1.inlineSize="100%",n$1.width="100%",n$1.height="auto"),e?.backgroundColor&&(n$1["--rmg-skel-bg"]=e.backgroundColor),e?.borderRadius!=null&&(n$1["--rmg-skel-radius"]=m(e.borderRadius)),e?.overflow!=null&&(n$1.overflow=e.overflow),e?.alignSelf&&(n$1.alignSelf=e.alignSelf),e?.scale!=null&&(n$1.transform=`scale(${e.scale})`),Object.assign(n$1,n(t)),n$1}function on(e,t){let n={};t!=null&&(n.height=`${t}px`);let r=m(e?.width),i=m(e?.maxWidth);return r!=null&&(n.inlineSize=r,n.width=r),i!=null&&(n.maxInlineSize=i,n.maxWidth=i),e?.alignSelf&&(n.alignSelf=e.alignSelf),e?.scale!=null&&(n.transform=`scale(${e.scale})`),n}function $e(e){return typeof e=="string"&&e.trim()==="max-content"}function ln(e){return !e||typeof e!="object"?false:$e(e.width)?true:Object.values(e).some(n=>!!n&&typeof n=="object"&&$e(n.width))}function sn(e){let t=We(e,void 0);return delete t["--rmg-skel-bg"],e?.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e?.border!=null&&(t.border=e.border),e?.boxShadow!=null&&(t.boxShadow=e.boxShadow),e?.borderRadius!=null?(t.borderRadius=m(e.borderRadius),t.overflow=e?.overflow??"hidden"):e?.overflow!=null&&(t.overflow=e.overflow),t.boxSizing="border-box",t}function an(e){if(!e)return {outerStyle:void 0,innerStyle:void 0};let t=sn(e),n={};return t.boxShadow!=null&&(n["--rmg-slider-skel-wrap-shadow"]=t.boxShadow,delete t.boxShadow),t.borderRadius!=null&&(n["--rmg-slider-skel-wrap-shadow-radius"]=t.borderRadius),{outerStyle:Object.keys(n).length?n:void 0,innerStyle:t}}function Be(e){let t={};return e&&(e.position!=null&&(t.position=e.position),e.inset!=null&&(t.inset=m(e.inset)),e.insetBlock!=null&&(t.insetBlock=m(e.insetBlock)),e.insetInline!=null&&(t.insetInline=m(e.insetInline)),e.top!=null&&(t.top=m(e.top)),e.right!=null&&(t.right=m(e.right)),e.bottom!=null&&(t.bottom=m(e.bottom)),e.left!=null&&(t.left=m(e.left)),e.zIndex!=null&&(t.zIndex=e.zIndex),e.gap!=null&&(t.gap=m(e.gap)),e.padding!=null&&(t.padding=m(e.padding)),e.align&&(t.alignItems=e.align),e.justify&&(t.justifyContent=e.justify),e.wrap&&(t.flexWrap="wrap"),e.width!=null&&(t.width=m(e.width)),e.maxWidth!=null&&(t.maxWidth=m(e.maxWidth)),e.height!=null&&(t.height=m(e.height)),e.minHeight!=null&&(t.minHeight=m(e.minHeight)),e.maxHeight!=null&&(t.maxHeight=m(e.maxHeight)),e.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e.borderRadius!=null&&(t.borderRadius=m(e.borderRadius)),e.border!=null&&(t.border=e.border),e.boxShadow!=null&&(t.boxShadow=e.boxShadow),e.margin!=null&&(t.margin=m(e.margin)),e.marginTop!=null&&(t.marginTop=m(e.marginTop)),e.marginRight!=null&&(t.marginRight=m(e.marginRight)),e.marginBottom!=null&&(t.marginBottom=m(e.marginBottom)),e.marginLeft!=null&&(t.marginLeft=m(e.marginLeft)),e.flex!=null&&(t.flex=e.flex),e.flexGrow!=null&&(t.flexGrow=e.flexGrow),e.flexShrink!=null&&(t.flexShrink=e.flexShrink),e.flexBasis!=null&&(t.flexBasis=m(e.flexBasis)),e.order!=null&&(t.order=e.order),e.alignSelf!=null&&(t.alignSelf=e.alignSelf),e.overflow!=null&&(t.overflow=e.overflow),e.transform!=null&&(t.transform=e.transform),e.pointerEvents!=null&&(t.pointerEvents=e.pointerEvents),e.opacity!=null&&(t.opacity=e.opacity)),t}function Ae(e){let t=We(e,void 0);return delete t["--rmg-skel-bg"],e?.backgroundColor!=null&&(t.backgroundColor=e.backgroundColor),e?.borderRadius!=null&&(t.borderRadius=m(e.borderRadius)),e?.overflow!=null&&(t.overflow=e.overflow),{...t,...He(e)}}function bt(e){return e.replace(/"/g,'\\"')}function ne(e,t,n,r=a){switch(e.kind){case "rect":case "square":case "circle":{let i=x({style:e.style,breakpointMap:r});if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "text":{let i=[...k$1({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,fitContent:ln(e.style),breakpointMap:r}).map(l=>({...l,raw:true})),...y({style:e.style,breakpointMap:r})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "media":{let i=[...w({style:e.style,breakpointMap:r}),...x({style:e.tile?.style,breakpointMap:r,selector:`${b$1} [data-rmg-skel-media-tile="true"]`})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "sliderDots":{let i=[...w({style:e.style,breakpointMap:r}),...x({style:e.dotStyle,breakpointMap:r,selector:`${b$1} [data-rmg-skel-slider-dot]`}),...x({style:e.activeStyle,breakpointMap:r,selector:`${b$1} [data-rmg-skel-dot-active="true"]`}),...x({style:e.inactiveStyle,breakpointMap:r,selector:`${b$1} [data-rmg-skel-dot-active="false"]`})];if(!i.length)return e;let o=t();return n.push({nodeId:o,rules:i}),{...e,__rmgNodeId:o}}case "stack":case "row":case "col":{let i=w({style:e.style,breakpointMap:r}),o=i.length?t():void 0;o&&i.length&&n.push({nodeId:o,rules:i});let l=e.children.map(a=>ne(a,t,n,r));return {...e,...o?{__rmgNodeId:o}:null,children:l}}case "slider":{let i=w({style:e.style,breakpointMap:r}),o=i.length?t():void 0;o&&i.length&&n.push({nodeId:o,rules:i});let l=ne(e.item,t,n,r),a=e.children?.map(s=>ne(s,t,n,r)),c=e.overlays?.map(s=>ne(s,t,n,r)),u=e.slots?.map(s=>({...s,item:s.item?ne(s.item,t,n,r):void 0}));return {...e,...o?{__rmgNodeId:o}:null,item:l,children:a,overlays:c,slots:u}}default:return e}}function un(e,t){if(!t.length)return "";let n=[];for(let r of t){let i=`${e} [data-rmg-skel-node="${bt(r.nodeId)}"]`;for(let o of r.rules){let l=o.raw?o.css.split("__NODE_SEL__").join(i):`${i}{${o.css}}`;o.minWidth<=0?n.push(l):n.push(`@media (min-width:${o.minWidth}px){${l}}`);}}return n.join(`
38
+ `)}function kt(e){let{kind:t,style:n,shimmer:r,breakpointMap:i,mediaTile:o}=e,l={},a=s(n,i),c=e.__rmgNodeId;return t==="circle"&&(l.borderRadius="9999px"),t==="square"&&a?.aspectRatio==null&&(l.aspectRatio="1"),a?.aspectRatio!=null&&a?.height==null&&(l.height="auto"),jsx("div",{"data-rmg-skel-node":c,"data-rmg-skel-media-tile":o?"true":void 0,className:a$3.sliderSkeleton,style:{...We(a,r),...He(a),...l}})}function cn({node:e,breakpointMap:t}){let n=j({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,breakpointMap:t}),r=s(e.style,t),i=n.states.some(({state:s})=>s.lineCount!==n.baseState.lineCount||s.metrics.totalHeight!==n.baseState.metrics.totalHeight||s.metrics.barHeight!==n.baseState.metrics.barHeight||s.metrics.paddingBlock!==n.baseState.metrics.paddingBlock||s.metrics.rowGap!==n.baseState.metrics.rowGap),o=n.states.some(({state:s})=>s.lineCount!==n.baseState.lineCount||s.barWidths.length!==n.baseState.barWidths.length||s.barWidths.some((p,S)=>p!==n.baseState.barWidths[S])),l=e.__rmgNodeId,a=on(r,i?void 0:n.metrics.totalHeight),c={height:n.metrics.barHeight,backgroundColor:r?.backgroundColor,borderRadius:r?.borderRadius},u=$e(r?.width);return jsx("div",{"data-rmg-skel-node":l,"data-rmg-skel-text":"true",className:a$3.sliderSkeletonText,style:{...a,...He(r),...i?null:{paddingBlock:`${n.metrics.paddingBlock}px`,rowGap:`${n.metrics.rowGap}px`}},children:Array.from({length:n.maxLines}).map((s,p)=>jsx("div",{"data-rmg-skel-text-line":"true",className:[a$3.sliderSkeleton,a$3.sliderSkeletonTextLine].join(" "),style:{...We(c,e.shimmer),...o?null:{display:p>=n.baseLines?"none":void 0,width:u?n.baseState.barWidths[p]??"100%":"100%",maxWidth:n.baseState.barWidths[p]??"100%"}}},p))})}function Le({node:e,breakpointMap:t$1,activeDotIndex:n$1}){switch(e.kind){case "rect":case "square":case "circle":return jsx(kt,{...e,breakpointMap:t$1});case "media":{let r=Math.max(0,e.count|0),i=e.direction??"row",o=e.tile?.shape??"rect",l=e.__rmgNodeId,a=Be(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":l,className:a$3.sliderSkeletonGroup,style:{display:"flex",flexDirection:i==="row"?"row":"column",...a||{}},children:Array.from({length:r}).map((c,u)=>jsx(kt,{kind:o,style:e.tile?.style,shimmer:e.tile?.shimmer,breakpointMap:t$1,mediaTile:true},u))})}case "sliderDots":{let r=Math.max(0,e.count|0),i=e.__rmgNodeId,o=Be(t(e.style,t$1)),l=Ae(s(e.dotStyle,t$1)),a=Ae(s(e.activeStyle,t$1)),c=Ae(s(e.inactiveStyle,t$1)),u=typeof n$1=="number"&&Number.isFinite(n$1)?Math.max(0,Math.min(r-1,Math.floor(n$1))):0;return jsx("div",{"data-rmg-skel-node":i,"data-rmg-skel-slider-dots":"true","data-rmg-skel-dot-active-style":JSON.stringify(a),"data-rmg-skel-dot-inactive-style":JSON.stringify(c),className:a$3.sliderSkeletonGroup,style:{display:"flex",flexDirection:"row",...o||{}},children:Array.from({length:r}).map((s,p)=>{let S=p===u;return jsx("div",{"data-rmg-skel-slider-dot":p,"data-rmg-skel-dot-active":S?"true":"false",className:a$3.sliderSkeleton,style:{...n(e.shimmer),...l,...S?a:c}},p)})})}case "stack":case "row":case "col":{let r=e.kind==="row"?"row":"column",i=e.__rmgNodeId,o=Be(t(e.style,t$1));return jsx("div",{"data-rmg-skel-node":i,className:a$3.sliderSkeletonGroup,style:{display:"flex",flexDirection:r,...o||{}},children:e.children.map((l,a)=>jsx(Le,{node:l,breakpointMap:t$1,activeDotIndex:n$1},a))})}case "text":return jsx(cn,{node:e,breakpointMap:t$1});default:return null}}function yt(){return {layout:{kind:"slider",direction:"row",item:{kind:"rect",style:{width:"100%",height:"100%",borderRadius:2}},itemWrapStyle:void 0},radius:12}}function Ee(e){return /%$/.test(e.trim())}function Rt(e){let t=e.trim();if(!t.length)return null;if(t==="0")return {value:0,unit:"px"};let n=t.match(/^(\d+(?:\.\d+)?|\.\d+)([a-zA-Z]+)$/);if(!n)return null;let r=Number(n[1]);return !Number.isFinite(r)||r<0?null:{value:r,unit:n[2]}}function Ct(e){let t=[],n="",r=0;for(let i of e.trim()){if(/\s/.test(i)&&r===0){n&&(t.push(n),n="");continue}n+=i,i==="("?r+=1:i===")"&&(r=Math.max(0,r-1));}return n&&t.push(n),t}function dn(e){let t=e.trim();return t.length?t==="0"?"0px":/^(?:var|calc|min|max|clamp)\(.+\)$/i.test(t)||Rt(t)?t:null:null}function Sn(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)&&e>=0?e===0?"0px":`${e}px`:null;for(let t of Ct(String(e))){let n=dn(t);if(n)return n}return null}function _(e){return e==null?null:typeof e=="number"?`${e}px`:String(e)}function Me(e,t){if(!e)return null;if(t===0)return "0px";if(e==="0px")return e;let n=Rt(e);return n?`${n.value*t}${n.unit}`:`calc(${e} * ${t})`}function wt(e){if(e==null)return null;if(typeof e=="number")return e>0?e:null;let t=String(e).trim(),n=t.match(/^(\d+(?:\.\d+)?)\s*\/\s*(\d+(?:\.\d+)?)$/);if(n){let i=Number(n[1]),o=Number(n[2]);return i>0&&o>0?i/o:null}let r=Number(t);return Number.isFinite(r)&&r>0?r:null}function k(e){let t=e.filter(r=>!!r&&r.trim().length>0);if(!t.length)return null;let n=t.filter(r=>{let i=r.trim();return i!=="0"&&i!=="0px"});return n.length?n.length===1?n[0]:`calc(${n.join(" + ")})`:"0px"}function ve(e){let t=e.filter(n=>!!n&&n.trim().length>0);return t.length?t.length===1?t[0]:`max(${t.join(", ")})`:null}function mn(e){let t=e.filter(n=>!!n&&n.trim().length>0);return t.length?t.length===1?t[0]:`min(${t.join(", ")})`:null}function ae(e,t){if(e.trim()==="0"||e.trim()==="0px"||t.trim()==="0"||t.trim()==="0px")return "0px";if(t.trim()==="1")return e;let n=Number(t);return Number.isFinite(n)?Me(e,n)??`calc(${e} * ${t})`:`calc(${e} * ${t})`}function Fe(e,t){return t.trim()==="1"?e:`calc(${e} / ${t})`}function Nt(e,t){return t.trim()==="0"||t.trim()==="0px"?e:`calc(${e} - ${t})`}function Bt(e,t){let n=_(t);return !e||!n?e:mn([e,n])}function re(e){let t=_(e?.margin),n=_(e?.marginTop),r=_(e?.marginBottom);return t&&!n&&!r?Me(t,2):!t&&!n&&!r?null:k([n??t??"0px",r??t??"0px"])}function Lt(e){if(e==null)return null;let t=typeof e=="number"?`${e}px`:String(e).trim();if(!t.length)return null;let n=Ct(t);if(!n.length||n.length>4)return null;let[r,i,o,l]=n;return n.length===1?{top:r,right:r,bottom:r,left:r}:n.length===2?{top:r,right:i,bottom:r,left:i}:n.length===3?{top:r,right:i,bottom:o,left:i}:{top:r,right:i,bottom:o,left:l}}function Et(e){return Sn(e?.border)}function fn(e){return Me(Et(e),2)}function pn(e){return Me(Et(e),2)}function V(e){let t=Lt(e?.padding);return t?k([t.top,t.bottom]):null}function Ht(e){let t=Lt(e?.padding);return t?k([t.left,t.right]):null}function be(e){return _(e?.gap)}function xt(e,t){let n=Ht(t);return !n||n==="0px"?e:Nt(e,n)}function ue(e,t=0,n=a){return r(e,t,n)}function De(e,t,n,r,i=0,o=a){let l=ue(e.style,i,o),a=be(l)??"0px",c=Ht(l)??"0px",u=Math.max(1,t|0),s=u>1?ae(a,String(u-1)):"0px",p=`calc(100cqw - ${c} - ${s})`,{itemWrapStyle:S}=Ie(e,n),g=S?.width?_(S.width):null,v;return r==="peek"&&g&&!Ee(g)?v=g:v=Fe(p,String(u)),Bt(v,S?.maxWidth)??v}function gn(e,t,n,r,i=0,o=a){let l=De(e,t,n,r,i,o),{itemWrapStyle:a}=Ie(e,n),c=fn(a);return !c||c==="0px"?l:Nt(l,c)}function hn(e$1,t=0,n=a){let r=e(d(e$1.rowHeightCompensation,n),t);return r==null||!Number.isFinite(r)||r<=0?null:`${r}px`}function It(e,t,n,r=0,i=a){let o=ue(e.style,r,i),l=be(o)??"0px",a=V(o)??"0px",c=hn(e,r,i),u=Math.max(1,t|0),s=e.direction??"row",p=Array.from({length:u},(g,v)=>{let{item:M,itemWrapStyle:W}=Ie(e,v),O=De(e,u,v,n,r,i),N=gn(e,u,v,n,r,i),b=ce(M,N,r,i),y=pn(W),B=re(W),f=k([y,B]),d=null,H=null;if(b&&!Ee(b)&&(H=k([b,y,B])),W){let q=_(W.height);if(q)d=k([q,B]);else {let P=wt(W.aspectRatio);P?d=k([Fe(O,String(P)),B]):d=f;}}return b?d?Ee(b)?d:ve([d,H??b]):b:d}),S=s==="row"?(()=>{let g=e.initialHeightSlot;if(g==null)return ve(p);let v=Math.min(Math.max(0,Math.trunc(g)),Math.max(0,u-1));return p[v]??ve(p)})():k([k(p),u>1?ae(l,String(u-1)):"0px"]);return k([S,a,c])}function Wt(e,t=0,n=a){return k((e.children??[]).map(r=>ce(r,"100cqw",t,n)))}function ce(e,t,n=0,r=a){if(e.kind==="rect"||e.kind==="square"||e.kind==="circle"){let i=q(e.style,n,r),o=_(i?.height),l=wt(i?.aspectRatio);if(o)return k([o,re(i)]);if(l){let a=_(i?.width),c=a&&!Ee(a)?a:t,u=Bt(c,i?.maxWidth)??c,s=String(l),p=Fe(u,s);return k([p,re(i)])}return re(i)??null}if(e.kind==="media"){let i=e.direction??"row",o=ue(e.style,n,r),l=be(o)??"0px",a=Math.max(0,e.count|0),c=xt(t,o),u=e.tile?{kind:e.tile.shape??"rect",style:e.tile.style,shimmer:e.tile.shimmer}:{kind:"rect",style:{width:"100%",height:"100%"}},s=ce(u,c,n,r);return s?i==="row"?k([s,V(o)]):a<=1?k([s,V(o)]):k([ae(s,String(a)),ae(l,String(a-1)),V(o)]):null}if(e.kind==="sliderDots"){let i=ue(e.style,n,r),o=q(e.dotStyle,n,r),l=q(e.activeStyle,n,r),a=q(e.inactiveStyle,n,r),c=[o,l,a].map(s=>k([_(s?.height),re(s)])).filter(s=>!!s),u=ve(c);return u?k([u,V(i)]):V(i)}if(e.kind==="row"||e.kind==="col"||e.kind==="stack"){let i=e.kind==="row"?"row":"col",o=ue(e.style,n,r),l=be(o)??"0px",a=V(o)??"0px",c=xt(t,o),u=e.children.map(s=>ce(s,c,n,r));if(i==="row"){let s=ve(u);return s?k([s,a]):null}else {let s=u.filter(S=>!!S);if(!s.length)return a;let p=s.length>1?ae(l,String(s.length-1)):"0px";return k([k(s)??null,p,a])}}if(e.kind==="text"){let i=q(e.style,n,r),o=d$1({barHeight:g(e.barHeight,typeof e.barHeight=="number"?e.barHeight:0,n,r),lineHeight:h(e.lineHeight,typeof e.lineHeight=="number"?e.lineHeight:1,n,r),lines:f(e.lines,1,n,r)});return k([`${o.totalHeight}px`,re(i)])}return null}function Mt(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;if(!o)return ce(e,"100cqw",r,i);let l=It(o,t,n,r,i),a=Wt(o,r,i);return k([l,a])}function Pt(e,t=0,n=a){let r=e.kind==="slider"?e:null;return r?Wt(r,t,n):null}function Tt(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;if(!o||n!=="peek")return null;let l=Math.max(1,t|0);if(l<=1)return null;let a=ue(o.style,r,i),c=be(a)??"0px",u=Array.from({length:l-1},(p,S)=>De(o,l,S+1,n,r,i)),s=l>2?ae(c,String(l-2)):null;return k([...u,s])}function _t(e,t,n,r=0,i=a){let o=e.kind==="slider"?e:null;return o?It(o,t,n,r,i):ce(e,"100cqw",r,i)}function ie(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "media":case "sliderDots":return;case "text":for(let r of i$1({barHeight:e.barHeight,barWidth:e.barWidth,lineHeight:e.lineHeight,lines:e.lines,lastBarWidth:e.lastBarWidth,breakpointMap:n}))t.add(r);return;case "stack":case "row":case "col":for(let r of e.children)ie(r,t,n);return;case "slider":ie(e.item,t,n);for(let r of e.children??[])ie(r,t,n);for(let r of e.overlays??[])ie(r,t,n);for(let r of e.slots??[])r.item&&ie(r.item,t,n);return;default:return e}}function oe(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":u(e.style,t,n);return;case "media":u(e.tile?.style,t,n);return;case "sliderDots":u(e.dotStyle,t,n),u(e.activeStyle,t,n),u(e.inactiveStyle,t,n);return;case "text":u(e.style,t,n);return;case "stack":case "row":case "col":for(let r of e.children)oe(r,t,n);return;case "slider":oe(e.item,t,n);for(let r of e.children??[])oe(r,t,n);for(let r of e.overlays??[])oe(r,t,n);for(let r of e.slots??[])r.item&&oe(r.item,t,n);return;default:return e}}function Ne(e,t,n=a){u(e,t,n);}function le(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "text":return;case "media":Ne(e.style,t,n);return;case "sliderDots":Ne(e.style,t,n);return;case "stack":case "row":case "col":Ne(e.style,t,n);for(let r of e.children)le(r,t,n);return;case "slider":Ne(e.style,t,n),le(e.item,t,n);for(let r of e.children??[])le(r,t,n);for(let r of e.overlays??[])le(r,t,n);for(let r of e.slots??[])r.item&&le(r.item,t,n);return;default:return e}}function se(e,t,n=a){switch(e.kind){case "rect":case "square":case "circle":case "media":case "sliderDots":case "text":return;case "stack":case "row":case "col":for(let r of e.children)se(r,t,n);return;case "slider":for(let r of d(e.rowHeightCompensation,n))t.add(r.minWidth);se(e.item,t,n);for(let r of e.children??[])se(r,t,n);for(let r of e.overlays??[])se(r,t,n);for(let r of e.slots??[])r.item&&se(r.item,t,n);return;default:return e}}function Ot(e,t=a){let n=new Set;return ie(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function At(e,t=a){let n=new Set;return le(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function $t(e,t=a){let n=new Set;return oe(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function Ft(e,t=a){let n=new Set;return se(e,n,t),Array.from(n).filter(r=>r>0).sort((r,i)=>r-i)}function Dt({count:e,maxSlots:t$1,activeDotIndex:n$1,rowStyle:r,spec:i,breakpoints:o,centerFirst:l=false,hasLeadingSpacer:a$2=false,responsiveCssScopeSelector:c}){let u=i??yt(),s=C.useMemo(()=>({...a,...o??{}}),[o]),p=u.layout??yt().layout,S=C.useMemo(()=>a$1("ssk_",{breakpoints:s,centerFirst:l,count:e,hasLeadingSpacer:a$2,maxSlots:t$1,rowStyle:r,spec:u}),[l,e,s,a$2,t$1,r,u]),g=C.useMemo(()=>`[data-rmg-slider-skel-scope="${bt(S)}"]`,[S]),v=c??g,M={...r||{},...n(u.shimmer)};u.backgroundColor&&(M["--rmg-skel-bg"]=u.backgroundColor),u.radius!=null&&(M["--rmg-skel-radius"]=m(u.radius));let{layout:W,responsiveCss:O}=C.useMemo(()=>{let T=0,I=()=>`n${++T}`,A=[],Se=ne(p,I,A,s),z=un(v,A);return {layout:Se,responsiveCss:z}},[p,v,s]),N=W,b=N.__rmgNodeId,y=Be(t(N.style,s)),B=N.count!=null?Math.max(0,N.count|0):Math.max(0,e|0),f=N.direction??"row",d=N.children??[],H=N.overlays??[],q=l&&f==="row",P=a$2&&f==="row",Re=N.itemStretch??true,J=Math.max(0,t$1|0),U=u.mode??"fit";return jsxs("div",{"data-rmg-slider-skel-scope":c?void 0:S,"data-rmg-skel-mode":U,"data-rmg-skel-has-extras":d.length?"true":void 0,className:[a$3.sliderSkeletonOverlay,u.className].filter(Boolean).join(" "),style:u.style,"data-rmg-skel-part":"overlay",children:[O?jsx("style",{dangerouslySetInnerHTML:{__html:O}}):null,jsxs("div",{className:a$3.sliderSkeletonLayout,"data-rmg-skel-part":"layout","data-rmg-skel-has-extras":d.length?"true":void 0,children:[jsx("div",{"data-rmg-skel-node":b,className:a$3.sliderSkeletonRow,"data-rmg-skel-part":"row",style:{...M,...y||{},display:"flex",flexDirection:f==="row"?"row":"column",...q?{justifyContent:"center"}:null},children:Array.from({length:J}).map((T,I)=>{let A=P&&I===0,Se=P?I-1:I,z=A?{item:{kind:"rect",style:{width:"100%",height:"100%",backgroundColor:"transparent"},shimmer:{enabled:false}},itemWrapStyle:{width:"var(--rmg-slider-center-first-spacer-width, 0px)",height:0}}:Ie(N,Se),E=z.itemWrapStyle,{outerStyle:$,innerStyle:Ce}=an(E);return jsx("div",{className:a$3.sliderSkeletonItem,"data-rmg-skel-slot":I+1,"data-rmg-skel-visible-count":B,"data-rmg-skel-center-first-spacer":A?"true":void 0,style:{boxSizing:"border-box",...E?He(E):null,...$??null,...f==="col"?{flex:"0 0 auto",height:"auto"}:Re?{height:"100%"}:{alignSelf:"flex-start",height:"auto"},minWidth:0,minHeight:0},children:jsx("div",{className:a$3.sliderSkeletonItemInner,style:{...Ce??null,...f==="row"&&!Re?{height:"auto"}:null},children:jsx(Le,{node:z.item,breakpointMap:s,activeDotIndex:n$1})})},`rmg-slider-skel-${I}`)})}),d.length?jsx("div",{className:a$3.sliderSkeletonExtras,"data-rmg-skel-part":"extras",children:d.map((T,I)=>jsx(Le,{node:T,breakpointMap:s,activeDotIndex:n$1},`rmg-slider-skel-extra-${I}`))}):null]}),H.length?jsx("div",{className:a$3.sliderSkeletonOverlays,"data-rmg-skel-part":"overlays",children:H.map((T,I)=>jsx(Le,{node:T,breakpointMap:s,activeDotIndex:n$1},`rmg-slider-skel-overlay-${I}`))}):null]})}function ze(e){return !!e&&typeof e=="object"&&!("kind"in e)&&"layout"in e&&e.layout?.kind==="slider"}function jt(e){return !!e&&typeof e=="object"&&"kind"in e&&e.kind==="slider"}function kn(e){if(ze(e))return e;let{mode:t,centering:n,className:r,visibleCount:i,backgroundColor:o,radius:l,shimmer:a,...c}=e;return {mode:t,centering:n,className:r,visibleCount:i,backgroundColor:o,radius:l,shimmer:a,layout:c}}function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return {};let t={};for(let[n,r]of Object.entries(e))r!=null&&(typeof r=="string"||typeof r=="number"||typeof r=="boolean")&&(t[n]=r);return t}function de(e,t=[]){return !e||typeof e!="object"?t:e.kind==="sliderDots"?(t.push({activeStyle:qt(e.activeStyle),inactiveStyle:qt(e.inactiveStyle)}),t):e.kind==="slider"?(de(e.item,t),e.children?.forEach?.(n=>de(n,t)),e.overlays?.forEach?.(n=>de(n,t)),e.slots?.forEach?.(n=>de(n.item,t)),t):(e.children?.forEach?.(n=>de(n,t)),t)}function je(e,t,n){return i(e,t,n).reduce((r,i)=>Math.max(r,i.count),0)}function yn(e,t){let n=Math.max(0,Math.floor(e));return n<=0?[]:n===1?t>=2?[2]:[]:Array.from({length:Math.min(t,n+1)},(r,i)=>i+1)}function zt(e){return `[data-rmg-scope="${e}"] > [data-rmg-scope-shell="true"]`}function qe(e){typeof document>"u"||document.querySelectorAll("style[data-rmg-slider-restore-style]").forEach(t=>{t.getAttribute("data-rmg-slider-restore-style")===e&&t.remove();});}function xn(e,t){if(t==null||!Number.isFinite(t)||t<=0)return "";let n=Math.round((t+Number.EPSILON)*1e3)/1e3;return `${zt(e)}{--rmg-slider-initial-height:${n}px!important;--rmg-slider-row-height:${n}px!important;}`}function Kt(e){let t=e.skeletonSpec.layout;if(!t)return "";let n=e.skeletonSpec.mode??"fit",r=zt(e.scopeId),i$1=i(e.responsiveCount,e.fallbackCount,e.breakpointMap),o=Ot(t,e.breakpointMap),l=At(t,e.breakpointMap),a=$t(t,e.breakpointMap),c=Ft(t,e.breakpointMap),u=S=>{let g=e.fallbackCount;for(let v of i$1)S>=v.minWidth&&(g=v.count);return Math.max(1,g|0)},s=(S,g)=>{let v=Mt(t,S,n,g,e.breakpointMap),M=_t(t,S,n,g,e.breakpointMap),W=Pt(t,g,e.breakpointMap),O=e.centerFirstSpacer?Tt(t,S,n,g,e.breakpointMap):null;if(!v&&!M&&!W&&!O)return "";let N=[v?`--rmg-slider-initial-height:${v};`:"",M?`--rmg-slider-row-height:${M};`:"",W?`--rmg-slider-extras-height:${W};`:"",e.centerFirstSpacer?`--rmg-slider-center-first-spacer-width:${O??"0px"};`:""].join("");return `${r}{${N}}`};return Array.from(new Set([...i$1.map(S=>S.minWidth),...a,...l,...o,...c])).sort((S,g)=>S-g).map(S=>{let g=s(u(S),S);return g?S<=0?g:`@media (min-width:${S}px){${g}}`:""}).filter(Boolean).join(`
39
+ `)}function Ke({layout:e,children:t,breakpoints:n$1,className:r,style:i,shellClassName:o,shellStyle:l$1,contentClassName:a$3,contentStyle:c,backgroundColor:u,radius:s,shimmer:p,disableShimmer:S,ariaLabel:g,ready:v,enabled:M,force:W,timing:O,restore:N}){let b$1=C.useMemo(()=>({...a,...n$1??{}}),[n$1]),y=C.useMemo(()=>a$1("skel_",{layout:e,breakpoints:b$1,backgroundColor:u,radius:s,shimmer:p,disableShimmer:S}),[e,b$1,u,s,p,S]),B=C.useMemo(()=>jt(e)||ze(e)?kn(e):null,[e]),f=B?.layout?.kind==="slider"?B.layout:null,d=N?.kind==="slider"?N:null,H=d?.slider?.handleRef??null,q=d&&d.enabled!==false&&d.slider?.handleRef?[d.key??"",d.itemCount,JSON.stringify(d.visibleCount??null),d.loop===true?"loop":"no-loop",d.activeSlotOffset??""].join(":"):"",P=q!=="",[Re,J]=C.useState(()=>!P),[U,T]=C.useState(null),[I,A]=C.useState(null),Se=v===true&&(!P||Re),z=!!f,E=d?.visibleCount??(jt(e)?e.visibleCount:void 0)??(ze(e)?e.visibleCount:void 0)??(typeof f?.count=="number"?f.count:void 0),$=typeof E=="number"?Math.max(1,E|0):typeof f?.count=="number"?Math.max(1,f.count|0):1,Ce=!!f&&B?.centering==="first"&&(B.mode??"fit")==="peek",K=Ce&&je(E,$,b$1)>1,me=Array.isArray(f?.slots)&&f.slots.length>0?f.slots.length:Math.max(d?.itemCount??0,typeof f?.count=="number"?f.count:0,$),fe=f?Math.max(12,K?me+1:me,K?je(E,$,b$1)+1:je(E,$,b$1)):0,w=C.useMemo(()=>{if(!d||d.enabled===false||!z)return null;let x=Math.max(0,Math.floor(d.itemCount));return x<=0||me<=0?null:{enabled:true,storageKeyId:typeof d.key=="string"&&d.key.trim()?d.key.trim():y,ttlMs:typeof d.ttlMs=="number"&&Number.isFinite(d.ttlMs)?Math.max(0,d.ttlMs):ut,slideCount:x,skeletonSlotCount:Math.max(x,me)}},[z,y,d?.enabled,d?.itemCount,d?.key,d?.ttlMs,me]),G=C.useMemo(()=>f?a$2({scopeId:y,responsiveCount:E,fallbackCount:$,breakpointMap:b$1,maxSlots:fe,visibleSlotsForCount:K?yn:void 0,slotOrderForCount:U==null||!w?.enabled||!d?void 0:x=>gt({activeIndex:U,visibleCount:x,slotCount:w.skeletonSlotCount,loop:d.loop===true,activeSlotOffset:d.activeSlotOffset??(typeof f.initialHeightSlot=="number"?f.initialHeightSlot:0)})}):{cssText:"",ssrBaseCount:$},[b$1,y,K,$,f,fe,d,U,w,E]),Ge=C.useMemo(()=>!f||!B?"":Kt({scopeId:y,skeletonSpec:B,responsiveCount:E,fallbackCount:G.ssrBaseCount,breakpointMap:b$1,centerFirstSpacer:K}),[b$1,y,K,G.ssrBaseCount,f,B,E]),Ye=C.useMemo(()=>!w?.enabled||!d||!f?"":ht({scopeId:y,storageKeyId:w.storageKeyId,ttlMs:w.ttlMs,slideCount:w.slideCount,skeletonSlotCount:w.skeletonSlotCount,maxSlots:fe,loop:d.loop===true,activeSlotOffset:d.activeSlotOffset??(typeof f.initialHeightSlot=="number"?f.initialHeightSlot:0),responsiveCount:E,fallbackCount:G.ssrBaseCount,breakpointMap:b$1,dotStyles:de(f)}),[b$1,y,G.ssrBaseCount,f,fe,d?.activeSlotOffset,d?.enabled,d?.loop,w,E]),Ve=C.useMemo(()=>xn(y,I),[y,I]),Pe=C.useRef(null);C.useLayoutEffect(()=>{J(!P),T(null),A(null);},[P,q]),C.useLayoutEffect(()=>{if(!w?.enabled||!H||typeof window>"u")return;let x=null,F=false,pe=()=>{if(F)return;let Y=H.current;if(!Y){x=window.requestAnimationFrame(pe);return}let D=ft(w,window,{requireNavigationRestore:false});if(!D){qe(y),T(null),A(null),J(true);return}T(D.index),A(D.heightPx??null),qe(y);let _e=[w.storageKeyId,D.timestamp,D.index,D.heightPx??""].join(":");if(Pe.current!==_e&&Y.setIndex(D.index,"instant"),Pe.current===_e){J(true);return}if(!Y.isReady()){x=window.requestAnimationFrame(pe);return}if(!H.current?.isReady()){x=window.requestAnimationFrame(pe);return}Pe.current=_e,x=window.requestAnimationFrame(()=>{x=null,!F&&(H.current?.setIndex(D.index,"instant"),x=window.requestAnimationFrame(()=>{x=null,!F&&(x=window.requestAnimationFrame(()=>{x=null,F||J(true);}));}));});};return pe(),()=>{F=true,x!=null&&window.cancelAnimationFrame(x),qe(y);}},[y,H,w]),C.useEffect(()=>{if(!w?.enabled||!H||typeof window>"u")return;let x=()=>{let F=H.current;if(!F)return;let Y=F.getViewportNode()?.getBoundingClientRect().height;pt(w,{index:F.getIndex(),slideCount:w.slideCount,skeletonSlotCount:w.skeletonSlotCount,heightPx:Y&&Y>0?Y:void 0});};return window.addEventListener("pagehide",x),window.addEventListener("beforeunload",x),()=>{x(),window.removeEventListener("pagehide",x),window.removeEventListener("beforeunload",x);}},[H,w]);let Gt={position:"relative",width:"100%",minWidth:0,minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))",overflow:"hidden",...i,...u?{"--rmg-skel-bg":u}:null,...s!=null?{"--rmg-skel-radius":l(s)}:null,...S?null:n(p)},Te=f&&B?jsxs("div",{"data-rmg-skeleton-scope":y,className:r,style:Gt,"aria-hidden":g?void 0:true,"aria-label":g,role:g?"status":void 0,"aria-live":g?"polite":void 0,children:[G.cssText||Ge||Ve?jsx("style",{dangerouslySetInnerHTML:{__html:[G.cssText,Ge,Ve].filter(Boolean).join(`
40
+ `)}}):null,jsx(Dt,{count:G.ssrBaseCount,maxSlots:fe,activeDotIndex:U??void 0,spec:B,breakpoints:b$1,centerFirst:Ce,hasLeadingSpacer:K,responsiveCssScopeSelector:`[data-rmg-scope="${y}"]`}),Ye?jsx("script",{dangerouslySetInnerHTML:{__html:Ye}}):null]}):null,Xe={containerType:"inline-size",width:"100%"},Yt=f?{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))"}:null;return Te?t===void 0?jsx("div",{"data-rmg-scope":y,style:Xe,children:jsx("div",{"data-rmg-scope-shell":"true",style:{minHeight:"var(--rmg-slider-initial-height, var(--rmg-slider-height, 320px))"},children:Te})}):jsx("div",{"data-rmg-scope":y,style:Xe,children:jsx(b,{skeletonNode:Te,ready:Se,enabled:M,force:W,timing:O,shellClassName:o,shellStyle:l$1,loadingShellStyle:Yt,contentClassName:a$3,contentStyle:c,contentOwnsWrapperLayout:true,shellDataAttributes:{"data-rmg-scope-shell":"true"},children:t})}):null}export{Ke as Skeleton,Ke as SliderSkeleton,Kt as buildScopedInitialHeightCss,Ke as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-motion-gallery",
3
- "version": "2.0.36",
3
+ "version": "2.0.38",
4
4
  "description": "Composable React media gallery primitives for sliders, grids, masonry, fullscreen, video, zoom/pan, and stable skeleton loading",
5
5
  "license": "PolyForm-Noncommercial-1.0.0",
6
6
  "author": "React Motion Gallery",
@@ -142,6 +142,14 @@
142
142
  "types": "./dist/skeleton-base.d.mts",
143
143
  "import": "./dist/skeleton-base.mjs"
144
144
  },
145
+ "./skeleton/cache": {
146
+ "types": "./dist/skeleton-cache.d.mts",
147
+ "import": "./dist/skeleton-cache.mjs"
148
+ },
149
+ "./skeleton/cache/provider": {
150
+ "types": "./dist/skeleton-cache-provider.d.mts",
151
+ "import": "./dist/skeleton-cache-provider.mjs"
152
+ },
145
153
  "./skeleton/slider": {
146
154
  "types": "./dist/skeleton-slider.d.mts",
147
155
  "import": "./dist/skeleton-slider.mjs"