@uniformdev/csk-components 6.0.123-alpha.1 → 6.1.63-alpha.1
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/README.md +74 -81
- package/dist/ThemeSwitcher-EUDUX3QI.mjs +1 -0
- package/dist/accordion-item-7IKL6Z6Q.mjs +1 -0
- package/dist/accordion-item-MORC2F2Q.mjs +1 -0
- package/dist/banner-WOYK426U.mjs +1 -0
- package/dist/carousel-ALNEGOPM.mjs +1 -0
- package/dist/carousel-HKYR3ZBB.mjs +1 -0
- package/dist/chunk-27WJUZYR.mjs +1 -0
- package/dist/chunk-3JU2XCD2.mjs +1 -0
- package/dist/chunk-47YB4P2Q.mjs +1 -0
- package/dist/chunk-6CKVLOIH.mjs +1 -0
- package/dist/{chunk-PMMAALCQ.mjs → chunk-AOFJCDRO.mjs} +1 -1
- package/dist/{chunk-2BMAPB63.mjs → chunk-AWTML4I7.mjs} +1 -1
- package/dist/chunk-CZ4X5ZBK.mjs +1 -0
- package/dist/chunk-D673IM2U.mjs +1 -0
- package/dist/chunk-I6SUO5WR.mjs +1 -0
- package/dist/chunk-JT77BVIX.mjs +1 -0
- package/dist/chunk-LPAOEOU4.mjs +1 -0
- package/dist/chunk-MKOFM4XK.mjs +1 -0
- package/dist/chunk-NKINOJY6.mjs +1 -0
- package/dist/chunk-OKUDTS22.mjs +1 -0
- package/dist/chunk-OL6JBPZ4.mjs +1 -0
- package/dist/chunk-OY6ZJNCE.mjs +1 -0
- package/dist/chunk-PLKWUEFW.mjs +1 -0
- package/dist/chunk-QPQGRQKI.mjs +1 -0
- package/dist/chunk-VWWXSA5H.mjs +1 -0
- package/dist/chunk-XKCRANRQ.mjs +1 -0
- package/dist/chunk-XYU3TGOU.mjs +1 -0
- package/dist/chunk-Y337A266.mjs +7 -0
- package/dist/chunk-YQYDZJ65.mjs +1 -0
- package/dist/chunk-ZAHWFLY4.mjs +1 -0
- package/dist/{chunk-V4EBWEG4.mjs → chunk-ZWDCDE5W.mjs} +1 -1
- package/dist/components/canvas/emptyPlaceholders.d.mts +5 -4
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +4 -648
- package/dist/components/canvas/index.mjs +1 -1
- package/dist/components/canvas/serverClient.d.mts +694 -0
- package/dist/components/canvas/serverClient.mjs +1 -0
- package/dist/components/canvas/serverOnly.d.mts +41 -0
- package/dist/components/canvas/serverOnly.mjs +1 -0
- package/dist/components/ui/index.d.mts +24 -33
- package/dist/components/ui/index.mjs +1 -1
- package/dist/content/components/canvas/Accordion/accordion.tsx +8 -7
- package/dist/content/components/canvas/Accordion/index.tsx +2 -2
- package/dist/content/components/canvas/AccordionItem/accordion-item.tsx +9 -7
- package/dist/content/components/canvas/AccordionItem/index.tsx +4 -6
- package/dist/content/components/canvas/Badge/badge.tsx +12 -5
- package/dist/content/components/canvas/Badge/index.tsx +2 -3
- package/dist/content/components/canvas/Badge/style-utils.ts +6 -6
- package/dist/content/components/canvas/Banner/banner.tsx +24 -36
- package/dist/content/components/canvas/Banner/index.tsx +7 -11
- package/dist/content/components/canvas/Breadcrumbs/breadcrumbs.tsx +21 -22
- package/dist/content/components/canvas/Breadcrumbs/index.tsx +4 -7
- package/dist/content/components/canvas/Button/button.tsx +19 -11
- package/dist/content/components/canvas/Button/index.tsx +3 -5
- package/dist/content/components/canvas/Card/card.tsx +9 -9
- package/dist/content/components/canvas/Card/index.tsx +3 -3
- package/dist/content/components/canvas/Carousel/carousel.tsx +9 -7
- package/dist/content/components/canvas/Carousel/index.tsx +4 -4
- package/dist/content/components/canvas/Container/container.tsx +7 -6
- package/dist/content/components/canvas/Container/index.tsx +3 -3
- package/dist/content/components/canvas/CookieConsent/cookie-consent.tsx +126 -0
- package/dist/content/components/canvas/CookieConsent/empty-placeholder.tsx +12 -0
- package/dist/content/components/canvas/CookieConsent/index.tsx +26 -0
- package/dist/content/components/canvas/Countdown/countdown.tsx +9 -7
- package/dist/content/components/canvas/Countdown/index.tsx +2 -3
- package/dist/content/components/canvas/DemoHero/atoms.tsx +29 -32
- package/dist/content/components/canvas/DemoHero/columns-variant.tsx +4 -4
- package/dist/content/components/canvas/DemoHero/default-variant.tsx +4 -4
- package/dist/content/components/canvas/DemoHero/demo-hero.tsx +41 -18
- package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +13 -6
- package/dist/content/components/canvas/DemoHero/flexible-hero.tsx +8 -2
- package/dist/content/components/canvas/DemoHero/index.tsx +3 -4
- package/dist/content/components/canvas/Divider/divider.tsx +5 -2
- package/dist/content/components/canvas/Divider/index.tsx +2 -2
- package/dist/content/components/canvas/Flex/flex.tsx +9 -6
- package/dist/content/components/canvas/Flex/index.tsx +6 -6
- package/dist/content/components/canvas/FlexItem/flex-item.tsx +7 -4
- package/dist/content/components/canvas/FlexItem/index.tsx +4 -5
- package/dist/content/components/canvas/Footer/footer.tsx +9 -8
- package/dist/content/components/canvas/Footer/index.tsx +2 -3
- package/dist/content/components/canvas/Grid/grid.tsx +9 -7
- package/dist/content/components/canvas/Grid/index.tsx +5 -5
- package/dist/content/components/canvas/GridItem/grid-item.tsx +10 -8
- package/dist/content/components/canvas/GridItem/index.tsx +5 -5
- package/dist/content/components/canvas/Header/header.tsx +10 -7
- package/dist/content/components/canvas/Header/index.tsx +2 -3
- package/dist/content/components/canvas/IconLabel/icon-label.tsx +16 -8
- package/dist/content/components/canvas/IconLabel/index.tsx +4 -5
- package/dist/content/components/canvas/Image/image.tsx +13 -7
- package/dist/content/components/canvas/Image/index.tsx +2 -3
- package/dist/content/components/canvas/ImageGallery/empty-placeholder.tsx +1 -1
- package/dist/content/components/canvas/ImageGallery/gallery-inner.tsx +6 -6
- package/dist/content/components/canvas/ImageGallery/image-gallery.tsx +20 -33
- package/dist/content/components/canvas/ImageGallery/index.tsx +11 -12
- package/dist/content/components/canvas/Link/index.tsx +2 -3
- package/dist/content/components/canvas/Link/link.tsx +7 -4
- package/dist/content/components/canvas/Modal/index.tsx +2 -2
- package/dist/content/components/canvas/Modal/modal.tsx +9 -10
- package/dist/content/components/canvas/NavigationFlyout/desktop.tsx +9 -13
- package/dist/content/components/canvas/NavigationFlyout/index.tsx +21 -3
- package/dist/content/components/canvas/NavigationFlyout/mobile.tsx +10 -13
- package/dist/content/components/canvas/NavigationFlyout/{navigation-flyout.tsx → navigation-flyout-client.tsx} +26 -20
- package/dist/content/components/canvas/NavigationGroup/desktop.tsx +7 -10
- package/dist/content/components/canvas/NavigationGroup/index.tsx +20 -3
- package/dist/content/components/canvas/NavigationGroup/mobile.tsx +9 -8
- package/dist/content/components/canvas/NavigationGroup/{navigation-group.tsx → navigation-group-client.tsx} +21 -18
- package/dist/content/components/canvas/NavigationLink/index.tsx +2 -4
- package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +12 -9
- package/dist/content/components/canvas/Page/index.tsx +7 -7
- package/dist/content/components/canvas/Page/page.tsx +9 -18
- package/dist/content/components/canvas/Review/default-variant.tsx +2 -2
- package/dist/content/components/canvas/Review/empty-placeholder.tsx +6 -3
- package/dist/content/components/canvas/Review/index.tsx +6 -6
- package/dist/content/components/canvas/Review/multi-column-variant.tsx +2 -2
- package/dist/content/components/canvas/Review/review.tsx +11 -11
- package/dist/content/components/canvas/RichText/index.tsx +7 -6
- package/dist/content/components/canvas/RichText/rich-text.tsx +23 -6
- package/dist/content/components/canvas/Section/columns-variant.tsx +4 -4
- package/dist/content/components/canvas/Section/default-variant.tsx +6 -6
- package/dist/content/components/canvas/Section/empty-placeholder.tsx +5 -2
- package/dist/content/components/canvas/Section/index.tsx +2 -2
- package/dist/content/components/canvas/Section/section.tsx +11 -12
- package/dist/content/components/canvas/SimpleFooter/index.tsx +16 -0
- package/dist/content/components/canvas/SimpleFooter/simple-footer.tsx +85 -0
- package/dist/content/components/canvas/SimpleHeader/index.tsx +22 -0
- package/dist/content/components/canvas/SimpleHeader/simple-header.tsx +63 -0
- package/dist/content/components/canvas/Spacer/index.tsx +2 -2
- package/dist/content/components/canvas/Spacer/spacer.tsx +5 -2
- package/dist/content/components/canvas/Tab/index.tsx +2 -3
- package/dist/content/components/canvas/Tab/tab.tsx +6 -5
- package/dist/content/components/canvas/Table/index.tsx +2 -2
- package/dist/content/components/canvas/Table/table.tsx +8 -7
- package/dist/content/components/canvas/TableCustomCell/index.tsx +2 -2
- package/dist/content/components/canvas/TableCustomCell/table-custom-cell.tsx +7 -4
- package/dist/content/components/canvas/TableDataCell/index.tsx +2 -2
- package/dist/content/components/canvas/TableDataCell/table-data-cell.tsx +7 -4
- package/dist/content/components/canvas/TableHeaderCell/index.tsx +2 -2
- package/dist/content/components/canvas/TableHeaderCell/table-header-cell.tsx +7 -4
- package/dist/content/components/canvas/TableRow/index.tsx +5 -3
- package/dist/content/components/canvas/TableRow/table-row.tsx +6 -3
- package/dist/content/components/canvas/Tabs/index.tsx +7 -7
- package/dist/content/components/canvas/Tabs/style-utils.ts +12 -11
- package/dist/content/components/canvas/Tabs/tabs.tsx +44 -42
- package/dist/content/components/canvas/Testimonial/default-variant.tsx +7 -7
- package/dist/content/components/canvas/Testimonial/index.tsx +2 -2
- package/dist/content/components/canvas/Testimonial/testimonial.tsx +11 -13
- package/dist/content/components/canvas/Testimonial/with-large-avatar-variant.tsx +7 -7
- package/dist/content/components/canvas/Testimonial/with-overlapping-image-variant.tsx +7 -7
- package/dist/content/components/canvas/Text/index.tsx +2 -3
- package/dist/content/components/canvas/Text/text.tsx +21 -15
- package/dist/content/components/canvas/ThemeSwitcher/index.tsx +2 -2
- package/dist/content/components/canvas/ThemeSwitcher/theme-switcher.tsx +6 -3
- package/dist/content/components/canvas/Video/index.tsx +2 -3
- package/dist/content/components/canvas/Video/placeholder.tsx +1 -1
- package/dist/content/components/canvas/Video/video.tsx +8 -5
- package/dist/content/components/ui/Banner/banner.tsx +47 -0
- package/dist/content/components/ui/Banner/index.tsx +29 -0
- package/dist/content/components/{canvas → ui}/Banner/style-utils.ts +1 -2
- package/dist/content/components/ui/Carousel/index.ts +2 -2
- package/dist/content/components/ui/ComponentEmptyPlaceholder/component-empty-placeholder.tsx +13 -0
- package/dist/content/components/ui/ComponentEmptyPlaceholder/index.ts +6 -0
- package/dist/content/components/ui/Flex/flex.tsx +2 -0
- package/dist/content/components/ui/Flex/index.ts +2 -0
- package/dist/content/components/ui/FlexItem/index.ts +1 -1
- package/dist/content/components/ui/Footer/index.ts +4 -3
- package/dist/content/components/ui/Grid/grid.tsx +2 -0
- package/dist/content/components/ui/Grid/index.ts +3 -0
- package/dist/content/components/ui/GridItem/grid-item.tsx +10 -1
- package/dist/content/components/ui/GridItem/index.ts +3 -0
- package/dist/content/components/ui/IconLabel/icon-label.tsx +2 -0
- package/dist/content/components/ui/IconLabel/index.ts +1 -0
- package/dist/content/components/ui/InlineSVG/index.ts +3 -1
- package/dist/content/components/ui/InlineSVG/inline-svg.tsx +14 -3
- package/dist/content/components/ui/InlineSVG/utils.ts +66 -11
- package/dist/content/components/ui/Rating/index.tsx +1 -1
- package/dist/content/components/ui/Rating/rating.tsx +1 -1
- package/dist/content/types/cskTypes.ts +32 -9
- package/dist/content/utils/assets.ts +3 -18
- package/dist/content/utils/createComponentResolver.ts +7 -6
- package/dist/content/utils/createEmptyPlaceholderResolver.tsx +4 -8
- package/dist/content/utils/getSlotComponents.ts +15 -0
- package/dist/content/utils/routing.ts +60 -15
- package/dist/content/utils/useCookiesConsent.ts +17 -0
- package/dist/content/utils/withFlattenParameters.tsx +17 -0
- package/dist/content/utils/withSlotsDataValue.tsx +34 -0
- package/dist/cookie-consent-5QJUCW2K.mjs +1 -0
- package/dist/countdown-FRQZMVKW.mjs +1 -0
- package/dist/image-gallery-HWCMTJL3.mjs +1 -0
- package/dist/{index-D5cLtaIv.d.mts → index-CSSWgmI5.d.mts} +54 -28
- package/dist/index-CrBZatTs.d.mts +18 -0
- package/dist/index.mjs +3 -3
- package/dist/mobile-KBYNJEBM.mjs +1 -0
- package/dist/modal-4TVVGHWS.mjs +1 -0
- package/dist/modal-E5RMA4EO.mjs +1 -0
- package/dist/navigation-flyout-client-WUN4A34X.mjs +1 -0
- package/dist/navigation-group-client-Y72BOPIH.mjs +1 -0
- package/dist/parameters-B8w5Q6Pp.d.mts +29 -0
- package/dist/tabs-VMFTATOP.mjs +1 -0
- package/dist/theme-switcher-QTX46Z7E.mjs +1 -0
- package/dist/theme-switcher-RGY4D3KL.mjs +1 -0
- package/dist/types/cskTypes.d.mts +27 -9
- package/dist/utils/assets.d.mts +8 -17
- package/dist/utils/assets.mjs +1 -1
- package/dist/utils/createComponentResolver.d.mts +3 -9
- package/dist/utils/createComponentResolver.mjs +1 -1
- package/dist/utils/createEmptyPlaceholderResolver.d.mts +4 -2
- package/dist/utils/createEmptyPlaceholderResolver.mjs +1 -1
- package/dist/utils/getSlotComponents.d.mts +11 -0
- package/dist/utils/getSlotComponents.mjs +1 -0
- package/dist/utils/routing.d.mts +20 -7
- package/dist/utils/routing.mjs +1 -1
- package/dist/utils/sitemap.mjs +1 -1
- package/dist/utils/styling.d.mts +3 -0
- package/dist/utils/styling.mjs +1 -1
- package/dist/utils/withFlattenParameters.d.mts +10 -0
- package/dist/utils/withFlattenParameters.mjs +1 -0
- package/dist/utils/withSlotsDataValue.d.mts +12 -0
- package/dist/utils/withSlotsDataValue.mjs +1 -0
- package/dist/video-VG6ZQCKN.mjs +1 -0
- package/package.json +43 -14
- package/dist/ThemeSwitcher-6Q7LCO4Q.mjs +0 -1
- package/dist/accordion-item-QAVKQEB2.mjs +0 -1
- package/dist/accordion-item-Y4PSNOH4.mjs +0 -1
- package/dist/banner-EYII7V7X.mjs +0 -1
- package/dist/carousel-RZ2DV6QX.mjs +0 -1
- package/dist/carousel-YELQRJVB.mjs +0 -1
- package/dist/chunk-2UV7TQNF.mjs +0 -1
- package/dist/chunk-2YTACEBA.mjs +0 -1
- package/dist/chunk-56OQGKRM.mjs +0 -1
- package/dist/chunk-ABORGLS6.mjs +0 -2
- package/dist/chunk-B2O55EVA.mjs +0 -1
- package/dist/chunk-EOV2LPGC.mjs +0 -1
- package/dist/chunk-EUVKAE6M.mjs +0 -1
- package/dist/chunk-FIN5US3Q.mjs +0 -1
- package/dist/chunk-LZOK42EM.mjs +0 -1
- package/dist/chunk-MSXDLSXH.mjs +0 -1
- package/dist/chunk-RX4IAAQQ.mjs +0 -1
- package/dist/chunk-RYEXR67P.mjs +0 -1
- package/dist/chunk-TCQTXNKT.mjs +0 -1
- package/dist/chunk-TFA6HYP4.mjs +0 -7
- package/dist/chunk-VW2XC3SE.mjs +0 -1
- package/dist/chunk-YEKQJ4YC.mjs +0 -1
- package/dist/content/components/canvas/Banner/types.ts +0 -21
- package/dist/countdown-LYDXJLEE.mjs +0 -1
- package/dist/image-gallery-AMU6FS7N.mjs +0 -1
- package/dist/mobile-JGZBHQC2.mjs +0 -1
- package/dist/modal-43IHAVWB.mjs +0 -1
- package/dist/modal-5FNTFSTN.mjs +0 -1
- package/dist/navigation-flyout-EPIOXRWJ.mjs +0 -1
- package/dist/navigation-group-OCZ35QI2.mjs +0 -1
- package/dist/tabs-J23TEEQ7.mjs +0 -1
- package/dist/theme-switcher-76F2V343.mjs +0 -1
- package/dist/theme-switcher-WO5JIV2W.mjs +0 -1
- package/dist/video-RC2QHJS2.mjs +0 -1
- /package/dist/content/components/{canvas → ui}/Banner/close-button.tsx +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { SpaceType, ViewPort } from './types/cskTypes.mjs';
|
|
2
|
+
import { T as TextProps } from './index-CrBZatTs.mjs';
|
|
3
|
+
|
|
4
|
+
type HeightType = 'full' | 'screen' | 'svh' | 'lvh' | 'dvh' | 'min' | 'max' | 'fit';
|
|
5
|
+
type ContainerParameters = {
|
|
6
|
+
displayName?: string;
|
|
7
|
+
anchor?: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
spacing?: SpaceType | ViewPort<SpaceType>;
|
|
10
|
+
border?: string | ViewPort<string>;
|
|
11
|
+
fluidContent?: boolean;
|
|
12
|
+
height?: HeightType | ViewPort<HeightType>;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
type TextParameters = {
|
|
16
|
+
text?: string;
|
|
17
|
+
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
18
|
+
size?: TextProps['size'];
|
|
19
|
+
color?: string;
|
|
20
|
+
weight?: TextProps['weight'];
|
|
21
|
+
font?: string;
|
|
22
|
+
alignment?: TextProps['alignment'];
|
|
23
|
+
transform?: TextProps['transform'];
|
|
24
|
+
decoration?: TextProps['decoration'];
|
|
25
|
+
letterSpacing?: TextProps['letterSpacing'];
|
|
26
|
+
lineCountRestrictions?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type { ContainerParameters as C, TextParameters as T };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{b as d,c as T}from"./chunk-OY6ZJNCE.mjs";import{a as c}from"./chunk-7GVG4HLE.mjs";import"./chunk-S7CSCIW4.mjs";import{Fragment as E,useCallback as p,useState as P}from"react";import{flattenValues as A}from"@uniformdev/canvas";import{UniformSlot as B,UniformText as F}from"@uniformdev/next-app-router/component";import{jsx as o,jsxs as R}from"react/jsx-runtime";var u="text",k="text",Y=({slots:C,color:a,backgroundColor:g,spacing:b,border:f,fluidContent:_,height:x,variant:n,slotData:v,context:s})=>{let i=v?.tabItems?.map(t=>({...A(t),id:t?._id||""})),[m,r]=P(i?.[0]?.id||""),I=p(t=>{let e=t.target.id;r(e)},[]),M=p(t=>{let e=t.target.id;s.isContextualEditing&&r(e)},[s.isContextualEditing]);return R(c,{className:"flex flex-col gap-5",backgroundColor:g,spacing:b,border:f,fluidContent:_,height:x,children:[o("div",{className:d({color:a,variant:n}),children:i?.map(({id:t,[u]:e})=>o("button",{id:t,onClick:I,className:T({color:a,variant:n,isActiveTab:t===m}),children:o(F,{id:t,placeholder:"Text goes here",onFocus:M,parameter:{parameterId:u,type:k,value:e,_contextualEditing:{isEditable:!0}},component:{_id:t}})},t))}),o(B,{slot:C.tabItems,children:({child:t,_id:e,key:l})=>e===m?o(E,{children:t},l):o(E,{},l)})]})};export{Y as Tabs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{c as o}from"./chunk-S7CSCIW4.mjs";import{setCookie as h}from"cookies-next";import{useTheme as i}from"next-themes";import{jsx as C}from"react/jsx-runtime";var l=()=>C("svg",{width:"15",height:"15",viewBox:"0 0 15 15",className:"size-[1.2rem] fill-current",children:C("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fillRule:"evenodd",clipRule:"evenodd"})}),s=()=>C("svg",{width:"15",height:"15",viewBox:"0 0 15 15",className:"size-[1.2rem] fill-current",children:C("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fillRule:"evenodd",clipRule:"evenodd"})}),V=({iconColor:L,onChange:r})=>{let{setTheme:m,resolvedTheme:t}=i();return C("button",{"aria-label":"Theme selector",onClick:()=>{let e=t==="dark"?"light":"dark";m(e),h("theme",e),r?.(e)},className:o({[`text-${L}`]:!!L}),children:t==="dark"?C(s,{}):C(l,{})})};export{V as ThemeSwitcher};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as t}from"./chunk-OKUDTS22.mjs";import m from"next/dynamic";import{useUniformContext as h}from"@uniformdev/next-app-router/component";import{jsx as s}from"react/jsx-runtime";var n=m(()=>import("./ThemeSwitcher-EUDUX3QI.mjs").then(e=>e.default),{ssr:!1}),i=({iconColor:e})=>{let{context:r}=h();return s(n,{iconColor:e,onChange:o=>{r?.update({quirks:{theme:o}})}})},T=t(i);export{i as ThemeSwitcher,T as default};
|
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as _uniformdev_next_app_router_component from '@uniformdev/next-app-router/component';
|
|
2
|
+
import { ComponentProps as ComponentProps$1, HTMLAttributes } from 'react';
|
|
3
|
+
import { AssetParamValueItem } from '@uniformdev/canvas';
|
|
4
|
+
import { UniformComposition } from '@uniformdev/next-app-router';
|
|
5
|
+
import { ComponentParameter } from '@uniformdev/next-app-router-shared';
|
|
3
6
|
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
component: ComponentInstance;
|
|
7
|
-
slotName: string;
|
|
8
|
-
slotIndex: number;
|
|
9
|
-
};
|
|
7
|
+
type ResolveEmptyPlaceholderFunction = NonNullable<ComponentProps$1<typeof UniformComposition>['resolveEmptyPlaceholder']>;
|
|
8
|
+
type ResolveEmptyPlaceholderOptions = Parameters<ResolveEmptyPlaceholderFunction>[0];
|
|
10
9
|
type ViewPort<T> = {
|
|
11
10
|
desktop?: T;
|
|
12
11
|
tablet?: T;
|
|
13
12
|
mobile?: T;
|
|
14
13
|
};
|
|
15
14
|
type SpaceType = Pick<NonNullable<HTMLAttributes<HTMLDivElement>['style']>, 'marginTop' | 'marginLeft' | 'paddingTop' | 'marginRight' | 'paddingLeft' | 'marginBottom' | 'paddingRight' | 'paddingBottom'>;
|
|
15
|
+
type ToComponentParameters<T> = {
|
|
16
|
+
[K in keyof T]: ComponentParameter<T[K]>;
|
|
17
|
+
};
|
|
18
|
+
type ComponentProps<T, S extends string = string> = _uniformdev_next_app_router_component.ComponentProps<ToComponentParameters<T>, S>;
|
|
19
|
+
type ValueOfField<F> = F extends {
|
|
20
|
+
value: infer V;
|
|
21
|
+
} ? V : never;
|
|
22
|
+
type FlattenFields<T extends AssetParamValueItem> = {
|
|
23
|
+
[K in keyof T['fields']]: ValueOfField<T['fields'][K]>;
|
|
24
|
+
};
|
|
25
|
+
type RenameKey<T, K extends keyof T, NewName extends PropertyKey> = Omit<T, K> & {
|
|
26
|
+
[P in NewName]: T[K];
|
|
27
|
+
};
|
|
28
|
+
type ResolvedAssetFromItem<T extends AssetParamValueItem> = RenameKey<FlattenFields<T>, 'id', 'file'> & {
|
|
29
|
+
id: T['_id'];
|
|
30
|
+
};
|
|
31
|
+
type ReplaceFieldsWithAssets<T, K extends keyof T> = Omit<T, K> & {
|
|
32
|
+
[P in K]?: ResolvedAssetFromItem<AssetParamValueItem>[];
|
|
33
|
+
};
|
|
16
34
|
|
|
17
|
-
export type { ResolveEmptyPlaceholderOptions, SpaceType, ViewPort };
|
|
35
|
+
export type { ComponentProps, ReplaceFieldsWithAssets, ResolveEmptyPlaceholderOptions, ResolvedAssetFromItem, SpaceType, ViewPort };
|
package/dist/utils/assets.d.mts
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import { AssetParamValue } from '@uniformdev/assets';
|
|
1
|
+
import { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
|
|
2
|
+
import { ResolvedAssetFromItem } from '../types/cskTypes.mjs';
|
|
3
|
+
import '@uniformdev/next-app-router/component';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@uniformdev/canvas';
|
|
6
|
+
import '@uniformdev/next-app-router';
|
|
7
|
+
import '@uniformdev/next-app-router-shared';
|
|
2
8
|
|
|
3
|
-
type ResolvedAsset = {
|
|
4
|
-
id?: string;
|
|
5
|
-
url: string;
|
|
6
|
-
file?: string;
|
|
7
|
-
size?: number;
|
|
8
|
-
title?: string;
|
|
9
|
-
width?: number;
|
|
10
|
-
height?: number;
|
|
11
|
-
mediaType?: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
focalPoint?: {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
9
|
/**
|
|
19
10
|
* Resolves a list of assets, filtering out any entries without a valid URL.
|
|
20
11
|
*
|
|
21
12
|
* @param {AssetParamValue | undefined} image - The list of assets to resolve.
|
|
22
13
|
* @returns {ResolvedAsset[]} - An array of resolved assets with valid URLs.
|
|
23
14
|
*/
|
|
24
|
-
declare const resolveAsset: (image?: AssetParamValue) =>
|
|
15
|
+
declare const resolveAsset: (image?: AssetParamValue) => ResolvedAssetFromItem<AssetParamValueItem>[];
|
|
25
16
|
|
|
26
17
|
export { resolveAsset };
|
package/dist/utils/assets.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-XYU3TGOU.mjs";export{a as resolveAsset};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ComponentInstance } from '@uniformdev/canvas';
|
|
3
|
-
import { ResolveComponentResult } from '@uniformdev/canvas-next-rsc/component';
|
|
1
|
+
import { ResolveComponentResult, ResolveComponentFunction } from '@uniformdev/next-app-router';
|
|
4
2
|
|
|
5
|
-
type ComponentMapping = Record<string, ResolveComponentResult>;
|
|
6
|
-
declare const createComponentResolver: (mappings: ComponentMapping) =>
|
|
7
|
-
component: ComponentInstance;
|
|
8
|
-
}) => ResolveComponentResult | {
|
|
9
|
-
component: ({ component }: _uniformdev_canvas_next_rsc_shared.ComponentProps) => React.JSX.Element | null;
|
|
10
|
-
};
|
|
3
|
+
type ComponentMapping = Record<string, ResolveComponentResult['component']>;
|
|
4
|
+
declare const createComponentResolver: (mappings: ComponentMapping) => ResolveComponentFunction;
|
|
11
5
|
|
|
12
6
|
export { type ComponentMapping, createComponentResolver as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-47YB4P2Q.mjs";import"../chunk-CZ4X5ZBK.mjs";import"../chunk-OKUDTS22.mjs";export{a as default};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentType } from 'react';
|
|
3
|
-
import { ComponentProps } from '@uniformdev/
|
|
3
|
+
import { ComponentProps } from '@uniformdev/next-app-router/component';
|
|
4
4
|
import { ResolveEmptyPlaceholderOptions } from '../types/cskTypes.mjs';
|
|
5
5
|
import '@uniformdev/canvas';
|
|
6
|
+
import '@uniformdev/next-app-router';
|
|
7
|
+
import '@uniformdev/next-app-router-shared';
|
|
6
8
|
|
|
7
9
|
declare const DEFAULT_EMPTY_PLACEHOLDER: {
|
|
8
10
|
component: () => react_jsx_runtime.JSX.Element;
|
|
@@ -10,7 +12,7 @@ declare const DEFAULT_EMPTY_PLACEHOLDER: {
|
|
|
10
12
|
type EmptyPlaceholderMapping = Record<string, (props: ResolveEmptyPlaceholderOptions) => {
|
|
11
13
|
component: ComponentType<ComponentProps<any, any>> | null;
|
|
12
14
|
}>;
|
|
13
|
-
declare const createEmptyPlaceholderResolver: (mappings: EmptyPlaceholderMapping) => (
|
|
15
|
+
declare const createEmptyPlaceholderResolver: (mappings: EmptyPlaceholderMapping) => (props: ResolveEmptyPlaceholderOptions) => {
|
|
14
16
|
component: () => react_jsx_runtime.JSX.Element;
|
|
15
17
|
} | {
|
|
16
18
|
component: ComponentType<ComponentProps<any, any>> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-LPAOEOU4.mjs";export{a as DEFAULT_EMPTY_PLACEHOLDER,b as default};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _uniformdev_canvas from '@uniformdev/canvas';
|
|
2
|
+
import * as _uniformdev_next_app_router from '@uniformdev/next-app-router';
|
|
3
|
+
import { SlotDefinition } from '@uniformdev/next-app-router-shared';
|
|
4
|
+
import { ComponentProps } from '../types/cskTypes.mjs';
|
|
5
|
+
import '@uniformdev/next-app-router/component';
|
|
6
|
+
import 'react';
|
|
7
|
+
|
|
8
|
+
declare const compositionCache: _uniformdev_next_app_router.CompositionCache;
|
|
9
|
+
declare const getSlotComponents: <T>(slot: SlotDefinition, context: ComponentProps<T>["context"]) => (_uniformdev_canvas.ComponentInstance | null)[];
|
|
10
|
+
|
|
11
|
+
export { compositionCache, getSlotComponents };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"server-only";import{a,b}from"../chunk-I6SUO5WR.mjs";export{a as compositionCache,b as getSlotComponents};
|
package/dist/utils/routing.d.mts
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { ResolvedRouteGetResponse, RouteGetResponseEdgehancedComposition, LinkParamValue } from '@uniformdev/canvas';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Replaces dynamic segments in an unresolved path template (with `:tokens`)
|
|
5
|
+
* using values from a resolved path.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
7
|
+
* If the structure doesn't match, returns `undefined` instead of throwing an error.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} unresolved - The path template containing dynamic segments (e.g. `/:locale/:dynamic/static`).
|
|
10
|
+
* @param {string} resolved - The fully resolved path with actual values (e.g. `/en/test/static`).
|
|
11
|
+
* @returns {string | undefined} - The final path with dynamic tokens replaced (e.g. `/en/test/static`), or `undefined` on mismatch.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* resolveRouteToPath("/:locale/:dynamic", "/en/test");
|
|
15
|
+
* // Returns: "/en/test"
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* resolveRouteToPath("/:locale/:dynamic/static/:dynamic", "/en/test/static/foo");
|
|
19
|
+
* // Returns: "/en/test/static/foo"
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* resolveRouteToPath("/:locale/static", "/en/test");
|
|
23
|
+
* // Returns: undefined
|
|
9
24
|
*/
|
|
10
|
-
declare const resolveRouteToPath: (
|
|
11
|
-
[dynamicKey: string]: string;
|
|
12
|
-
} | undefined) => string;
|
|
25
|
+
declare const resolveRouteToPath: (unresolved: string, resolved: string) => string | undefined;
|
|
13
26
|
/**
|
|
14
27
|
* Checks if a given route response is free of errors and contains a composition.
|
|
15
28
|
*
|
package/dist/utils/routing.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-27WJUZYR.mjs";export{c as formatUniformLink,d as isExternalLink,b as isRouteWithoutErrors,a as resolveRouteToPath};
|
package/dist/utils/sitemap.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ProjectMapClient as m,getNodeActiveCompositionEdition as g}from"@uniformdev/project-map";var d=new m({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY,apiHost:process.env.UNIFORM_CLI_BASE_URL||"https://uniform.app"}),u=i=>i.reduce((e,r)=>e.flatMap(t=>r.map(o=>[...t,o])),[[]]),f=(i,e)=>{let r=[...e.matchAll(/:([^/]+)/g)];if(r.length===0)return[e];let t=r.map(n=>n[1]),o=t.map(n=>{let a=i[n];return a?Array.isArray(a)?a:[a]:[]});return u(o).map(n=>t.reduce((a,c,p)=>a.replace(`:${c}`,n[p]),e))},y=(i,e={})=>async()=>{let{nodes:r}=await d.getNodes({withCompositionData:!0});return r?r.filter(t=>t.type==="composition").flatMap(t=>{let o=g({node:t,targetLocale:void 0});return f(e,t.path).map(n=>({url:`${i}${n}`,lastModified:o?.modified,changeFrequency:"daily",priority:1}))}):[]};export{y as generateSitemap};
|
package/dist/utils/styling.d.mts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ArgumentArray } from 'classnames';
|
|
2
2
|
import { ViewPort, SpaceType } from '../types/cskTypes.mjs';
|
|
3
|
+
import '@uniformdev/next-app-router/component';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@uniformdev/canvas';
|
|
6
|
+
import '@uniformdev/next-app-router';
|
|
7
|
+
import '@uniformdev/next-app-router-shared';
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
10
|
* Resolves viewport-specific styles by replacing template placeholders with appropriate values.
|
package/dist/utils/styling.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-S7CSCIW4.mjs";
|
|
1
|
+
import{a,b,c}from"../chunk-S7CSCIW4.mjs";export{c as cn,b as formatSpaceParameterValue,a as resolveViewPort};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { FlattenValuesOptions } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentProps } from '../types/cskTypes.mjs';
|
|
4
|
+
import '@uniformdev/next-app-router/component';
|
|
5
|
+
import '@uniformdev/next-app-router';
|
|
6
|
+
import '@uniformdev/next-app-router-shared';
|
|
7
|
+
|
|
8
|
+
declare const withFlattenParameters: <TProps extends ComponentProps<T>, T>(WrappedComponent: ComponentType<TProps>, options?: FlattenValuesOptions) => ComponentType<TProps>;
|
|
9
|
+
|
|
10
|
+
export { withFlattenParameters };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-OKUDTS22.mjs";export{a as withFlattenParameters};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ComponentInstance } from '@uniformdev/canvas';
|
|
3
|
+
import { ComponentProps } from '../types/cskTypes.mjs';
|
|
4
|
+
import '@uniformdev/next-app-router/component';
|
|
5
|
+
import '@uniformdev/next-app-router';
|
|
6
|
+
import '@uniformdev/next-app-router-shared';
|
|
7
|
+
|
|
8
|
+
declare const withSlotsDataValue: <TProps extends ComponentProps<T>, T>(WrappedComponent: ComponentType<TProps & {
|
|
9
|
+
slotData?: Record<string, ComponentInstance[]>;
|
|
10
|
+
}>, withSlotData?: string[]) => ComponentType<TProps>;
|
|
11
|
+
|
|
12
|
+
export { withSlotsDataValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-D673IM2U.mjs";import"../chunk-I6SUO5WR.mjs";export{a as withSlotsDataValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a,c as e}from"./chunk-S7CSCIW4.mjs";import{useCallback as m,useState as V}from"react";import C from"next/dynamic";import{jsx as l,jsxs as b}from"react/jsx-runtime";var w=({className:t,...i})=>b("svg",{className:e("size-full",t),viewBox:"0 0 123 123",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:[l("circle",{cx:"61.5",cy:"61.5",r:"61.5",fillOpacity:"0.922864"}),l("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.7064 62.0304L48.7754 81.6468V42.4141L82.7064 62.0304Z",stroke:"white"})]}),u=({onClick:t})=>l("button",{className:"absolute left-1/2 top-1/2 w-1/5 -translate-x-1/2 -translate-y-1/2 transition hover:scale-90",type:"button","aria-label":"Play video",onClick:t,children:l(w,{})});import{jsx as s,jsxs as N}from"react/jsx-runtime";var F=C(()=>import("react-player/lazy").then(t=>t.default),{ssr:!1}),R=({url:t,autoPlay:i=!1,loop:f,controls:v,lazyLoad:n=!1,placeholderImageUrl:d,muted:y,overlayColor:c,overlayOpacity:P,border:o})=>{let[g,r]=V(i),p=m(()=>r(!0),[]),h=m(()=>r(!1),[]);return N("div",{className:"relative aspect-video size-full [&_video]:!object-cover",children:[t&&s("div",{className:e("absolute left-0 top-0 size-full overflow-hidden",{[a(o,"{value}")]:o}),children:s(F,{url:t,playing:g,onPause:h,onPlay:p,width:"100%",height:"100%",controls:v,muted:y,loop:f,light:n&&d||n,playIcon:s(u,{onClick:p})})}),s("div",{className:e("absolute inset-0 pointer-events-none",{[`bg-${c}`]:c,[a(o,"{value}")]:o}),style:{opacity:P||0}})]})};export{R as Video};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/csk-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.63-alpha.1",
|
|
4
4
|
"description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -32,6 +32,18 @@
|
|
|
32
32
|
"types": "./dist/utils/createComponentResolver.d.mts",
|
|
33
33
|
"default": "./dist/utils/createComponentResolver.mjs"
|
|
34
34
|
},
|
|
35
|
+
"./utils/getSlotComponents": {
|
|
36
|
+
"types": "./dist/utils/getSlotComponents.d.mts",
|
|
37
|
+
"default": "./dist/utils/getSlotComponents.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./utils/withSlotsDataValue": {
|
|
40
|
+
"types": "./dist/utils/withSlotsDataValue.d.mts",
|
|
41
|
+
"default": "./dist/utils/withSlotsDataValue.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./utils/withFlattenParameters": {
|
|
44
|
+
"types": "./dist/utils/withFlattenParameters.d.mts",
|
|
45
|
+
"default": "./dist/utils/withFlattenParameters.mjs"
|
|
46
|
+
},
|
|
35
47
|
"./utils/sitemap": {
|
|
36
48
|
"types": "./dist/utils/sitemap.d.mts",
|
|
37
49
|
"default": "./dist/utils/sitemap.mjs"
|
|
@@ -44,6 +56,14 @@
|
|
|
44
56
|
"types": "./dist/components/canvas/index.d.mts",
|
|
45
57
|
"default": "./dist/components/canvas/index.mjs"
|
|
46
58
|
},
|
|
59
|
+
"./components/canvas/serverOnly": {
|
|
60
|
+
"types": "./dist/components/canvas/serverOnly.d.mts",
|
|
61
|
+
"default": "./dist/components/canvas/serverOnly.mjs"
|
|
62
|
+
},
|
|
63
|
+
"./components/canvas/serverClient": {
|
|
64
|
+
"types": "./dist/components/canvas/serverClient.d.mts",
|
|
65
|
+
"default": "./dist/components/canvas/serverClient.mjs"
|
|
66
|
+
},
|
|
47
67
|
"./components/canvas/emptyPlaceholders": {
|
|
48
68
|
"types": "./dist/components/canvas/emptyPlaceholders.d.mts",
|
|
49
69
|
"default": "./dist/components/canvas/emptyPlaceholders.mjs"
|
|
@@ -71,9 +91,9 @@
|
|
|
71
91
|
"commander": "^9.0.0",
|
|
72
92
|
"cookies-next": "^4.3.0",
|
|
73
93
|
"dotenv": "16.4.7",
|
|
74
|
-
"
|
|
75
|
-
"ora": "^8.
|
|
76
|
-
"prettier": "3.
|
|
94
|
+
"js-cookie": "^3.0.5",
|
|
95
|
+
"ora": "^8.2.0",
|
|
96
|
+
"prettier": "3.6.2",
|
|
77
97
|
"react-player": "^2.16.0",
|
|
78
98
|
"react-responsive-masonry": "^2.7.0",
|
|
79
99
|
"tailwind-merge": "^3.3.1"
|
|
@@ -81,21 +101,30 @@
|
|
|
81
101
|
"devDependencies": {
|
|
82
102
|
"@repo/eslint-config": "*",
|
|
83
103
|
"@repo/typescript-config": "*",
|
|
84
|
-
"@
|
|
85
|
-
"@uniformdev/
|
|
86
|
-
"@uniformdev/canvas
|
|
87
|
-
"next": "^
|
|
88
|
-
"
|
|
89
|
-
"
|
|
104
|
+
"@types/js-cookie": "^3.0.6",
|
|
105
|
+
"@uniformdev/assets": "^20.48.0",
|
|
106
|
+
"@uniformdev/canvas": "^20.48.0",
|
|
107
|
+
"@uniformdev/next-app-router": "^20.48.0",
|
|
108
|
+
"@uniformdev/next-app-router-client": "^20.48.0",
|
|
109
|
+
"@uniformdev/next-app-router-shared": "^20.48.0",
|
|
110
|
+
"@uniformdev/project-map": "^20.48.0",
|
|
111
|
+
"next": "^16.1.1",
|
|
112
|
+
"next-themes": "^0.4.6",
|
|
113
|
+
"react": "^19.2.3",
|
|
114
|
+
"react-dom": "^19.2.3",
|
|
90
115
|
"tailwindcss": "^4.1.11",
|
|
91
116
|
"tsup": "^8.3.0",
|
|
92
117
|
"tsx": "^4.19.2"
|
|
93
118
|
},
|
|
94
119
|
"peerDependencies": {
|
|
95
|
-
"@uniformdev/assets": "
|
|
96
|
-
"@uniformdev/canvas": "
|
|
97
|
-
"@uniformdev/
|
|
98
|
-
"next": "
|
|
120
|
+
"@uniformdev/assets": "^20.48.0",
|
|
121
|
+
"@uniformdev/canvas": "^20.48.0",
|
|
122
|
+
"@uniformdev/next-app-router": "^20.48.0",
|
|
123
|
+
"@uniformdev/next-app-router-client": "^20.48.0",
|
|
124
|
+
"@uniformdev/next-app-router-shared": "^20.48.0",
|
|
125
|
+
"@uniformdev/project-map": "^20.48.0",
|
|
126
|
+
"next": ">=16",
|
|
127
|
+
"next-themes": ">=0.4.0",
|
|
99
128
|
"react": ">=19",
|
|
100
129
|
"react-dom": ">=19",
|
|
101
130
|
"tailwindcss": ">=3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-V4EBWEG4.mjs";import"./chunk-YEKQJ4YC.mjs";export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as r}from"./chunk-7GVG4HLE.mjs";import{c as l}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as C,useState as L}from"react";import{jsx as i}from"react/jsx-runtime";var s=({className:t,...o})=>i("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:i("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as p}from"react/jsx-runtime";var c=({className:t,...o})=>p("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as m}from"react/jsx-runtime";var N=({text:t,backgroundColor:o,spacing:w,className:f,accordionItemContent:d})=>{let[n,u]=L(!1),v=C(()=>u(a=>!a),[]);return m(r,{fluidContent:!0,children:[e(r,{backgroundColor:o,spacing:w,fluidContent:!0,className:f,children:m("button",{onClick:v,className:"flex w-full cursor-pointer flex-row items-center justify-between text-start",children:[t,e("div",{className:l({[`text-${o} invert`]:!!o,"text-black dark:text-white":!o}),children:n?e(s,{}):e(c,{})})]})}),n&&d]})};export{N as AccordionItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as m}from"./chunk-PMMAALCQ.mjs";import{a as r}from"./chunk-WAW7PQYM.mjs";import"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as T,UniformText as B}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var U=({tag:n,alignment:c,color:i,size:d,font:a,weight:p,transform:s,decoration:f,letterSpacing:x,slots:I,component:t,context:e,backgroundColor:l,spacing:A,className:C})=>o(m,{backgroundColor:l,spacing:A,className:C,text:o(r,{alignment:c,color:i,size:d,font:a,weight:p,transform:s,decoration:f,letterSpacing:x,children:o(B,{placeholder:"Text goes here",parameterId:"text",as:n||void 0,component:t,context:e})}),accordionItemContent:o(T,{data:t,context:e,slot:I.accordionItemContent})});export{U as AccordionItem};
|
package/dist/banner-EYII7V7X.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"./chunk-B2O55EVA.mjs";import{a as i}from"./chunk-7GVG4HLE.mjs";import"./chunk-MSXDLSXH.mjs";import{c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as L,useState as S}from"react";import{UniformSlot as V}from"@uniformdev/canvas-next-rsc/component";import{jsx as s}from"react/jsx-runtime";var h=({className:t,...o})=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",className:e("size-5",t),...o,children:s("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})}),y=({onClose:t,iconColor:o})=>s("button",{onClick:t,className:e("absolute right-5 top-1/2 -translate-y-1/2",{[`text-${o}`]:o}),children:s(h,{})}),C=y;var f=({variant:t,floating:o})=>e({"!w-11/12 left-1/2 -translate-x-1/2 my-4":o&&!!t,"fixed top-0 w-full z-10":t==="top","fixed bottom-0 w-full z-10":t==="bottom","p-4":o&&!t}),u=({contentAlignment:t,iconColor:o,fluidContent:r,floating:n})=>e("flex flex-row gap-x-4",{"justify-start":t==="left","justify-center":t==="center","justify-end":t==="right","pr-10":t==="right"&&o,"!mx-0":!r,"rounded-lg":n});import{jsx as p,jsxs as k}from"react/jsx-runtime";var X=({component:t,context:o,backgroundColor:r,spacing:n,border:c,fluidContent:a,slots:P,iconColor:l,contentAlignment:x="center",floating:m=!1})=>{let[d,B]=S(!0),g=L(()=>{B(!1)},[]);if(!d)return null;let w=f({variant:t.variant,floating:m}),b=u({contentAlignment:x,iconColor:l,fluidContent:a,floating:m});return p(i,{className:w,fluidContent:a,border:c,children:k(i,{className:e("relative w-full",b),backgroundColor:r,spacing:n,fluidContent:a,children:[p(V,{data:t,context:o,slot:P.bannerContent}),l&&p(C,{onClose:g,iconColor:l})]})})};export{X as Banner};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import"./chunk-EUVKAE6M.mjs";import{a as p}from"./chunk-7GVG4HLE.mjs";import{a as x,c as s}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as h,useEffect as N,useMemo as S,useRef as T,useState as y}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";var H=({countOfItems:o,backgroundColor:t,spacing:w,border:C,fluidContent:k,height:z,itemsPerPage:E="1",children:P,gapX:c,variant:b="default"})=>{let u=T(null),[f,m]=y(0),[R,$]=y(!1),l=Number(E),n=S(()=>o?l>1?Math.ceil(o/l):o:0,[o,l]);N(()=>{let e=()=>$(r=>!r);return window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]),N(()=>{if(u.current){let{clientWidth:e}=u.current;u.current.scrollLeft=f*e}},[f,R]);let d=h(()=>{m(e=>e===0?n-1:e-1)},[n]),v=h(()=>{m(e=>e===n-1?0:e+1)},[n]),L=()=>b==="brochure"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center"),children:[i("button",{onClick:d,children:"\u276E"}),i("div",{className:"flex items-center gap-2",children:Array.from({length:n}).map((e,r)=>i("button",{onClick:()=>m(r),className:s("h-2 rounded-full transition-all duration-300 size-2 opacity-50",{"w-6 opacity-100":r===f,[`bg-${t} invert`]:!!t,"bg-black dark:bg-white":!t}),"aria-label":`Go to slide ${r+1}`},`slide-${r}`))}),i("button",{onClick:v,children:"\u276F"})]}):b==="numeric"?a("div",{className:s("flex py-4 px-4 z-5 gap-x-4 justify-end items-center",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),a("div",{className:"flex flex-col px-2",children:[f+1," of ",n]}),i("button",{onClick:v,children:"\u276F"})]}):a("div",{className:s("absolute inset-x-5 top-1/2 flex -translate-y-1/2 justify-between",{[`text-${t} invert`]:!!t,"text-black dark:text-white":!t}),children:[i("button",{onClick:d,children:"\u276E"}),i("button",{onClick:v,children:"\u276F"})]}),M=()=>P({className:s("flex size-full items-center justify-center",{[x(c,"px-{value}")]:c}),style:{minWidth:l>1?`calc(${100/l}%)`:"100%"}});return i(p,{backgroundColor:t,spacing:w,border:C,fluidContent:k,height:z,children:a("div",{className:s("relative",{[x(c,"-mx-{value}")]:c}),children:[i("div",{ref:u,className:"flex overflow-x-hidden scroll-smooth",children:M()}),L()]})})};export{H as Carousel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";import{a as s}from"./chunk-EUVKAE6M.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as d}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var B=({slots:r,component:e,context:t,backgroundColor:a,spacing:l,border:m,fluidContent:i,height:u,itemsPerPage:f,gapX:C})=>o(s,{backgroundColor:a,spacing:l,border:m,fluidContent:i,height:u,itemsPerPage:f,gapX:C,countOfItems:r.carouselItems?.items.length??0,variant:e.variant,children:({className:n,style:p})=>o(d,{context:t,slot:r.carouselItems,data:e,children:({child:c,key:v})=>o("div",{className:n,style:p,children:c},v)})});export{B as Carousel};
|
package/dist/chunk-2UV7TQNF.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";var n=o=>{switch(o.slotName){case"countdownComplete":return{component:()=>null};default:return e}};var r=(t=>(t.CountdownComplete="countdownComplete",t))(r||{}),m=(t=>(t.LabelsUnder="labelsUnder",t))(m||{}),d=p(()=>import("./countdown-LYDXJLEE.mjs").then(o=>o.Countdown));export{r as a,m as b,d as c,n as d};
|
package/dist/chunk-2YTACEBA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{flattenValues as s}from"@uniformdev/canvas";var i=e=>(s(e)||[]).filter(({url:t})=>!!t);export{i as a};
|
package/dist/chunk-56OQGKRM.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{DefaultNotImplementedComponent as n}from"@uniformdev/canvas-next-rsc/component";var t=e=>({component:o})=>e[o?.type]??{component:n},r=t;export{r as a};
|
package/dist/chunk-ABORGLS6.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as z,b as it}from"./chunk-YEKQJ4YC.mjs";var V=z((xt,Q)=>{"use strict";var T=class{constructor(t){this.value=t,this.next=void 0}},O=class{constructor(){this.clear()}enqueue(t){let e=new T(t);this._head?(this._tail.next=e,this._tail=e):(this._head=e,this._tail=e),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Q.exports=O});var K=z((Et,G)=>{"use strict";var st=V(),at=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new st,e=0,n=()=>{e--,t.size>0&&t.dequeue()()},i=async(c,s,...o)=>{e++;let p=(async()=>c(...o))();s(p);try{await p}catch{}n()},l=(c,s,...o)=>{t.enqueue(i.bind(null,c,s,...o)),(async()=>(await Promise.resolve(),e<r&&t.size>0&&t.dequeue()()))()},a=(c,...s)=>new Promise(o=>{l(c,o,...s)});return Object.defineProperties(a,{activeCount:{get:()=>e},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};G.exports=at});var B=it(K(),1),ot=Object.defineProperty,Y=r=>{throw TypeError(r)},ct=(r,t,e)=>t in r?ot(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,lt=(r,t,e)=>ct(r,typeof t!="symbol"?t+"":t,e),pt=(r,t,e)=>t.has(r)||Y("Cannot "+e),h=(r,t,e)=>(pt(r,t,"read from private field"),e?e.call(r):t.get(r)),f=(r,t,e)=>t.has(r)?Y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e);var ht=(0,B.default)(6),ut=class H extends Error{constructor(t,e,n,i,l,a){super(`${t}
|
|
2
|
-
${i}${l?" "+l:""} (${e} ${n}${a?` Request ID: ${a}`:""})`),this.errorMessage=t,this.fetchMethod=e,this.fetchUri=n,this.statusCode=i,this.statusText=l,this.requestId=a,Object.setPrototypeOf(this,H.prototype)}},d=class X{constructor(t){lt(this,"options");var e,n,i,l,a;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let c=t.fetch;if(!c)if(typeof window<"u")c=window.fetch.bind(window);else if(typeof fetch<"u")c=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:c,apiHost:this.ensureApiHost(t.apiHost),apiKey:(e=t.apiKey)!=null?e:null,projectId:(n=t.projectId)!=null?n:null,bearerToken:(i=t.bearerToken)!=null?i:null,limitPolicy:(l=t.limitPolicy)!=null?l:ht,bypassCache:(a=t.bypassCache)!=null?a:!1}}async apiClient(t,e){return(await this.apiClientWithResponse(t,e)).body}async apiClientWithResponse(t,e){return this.options.limitPolicy(async()=>{var n;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(i["x-bypass-cache"]="true");let{fetch:l,signal:a}=this.options,s=await dt(()=>l(t.toString(),{...e,signal:a,headers:{...e?.headers,...i}}));if(!s.ok){let o="";try{let p=await s.text();try{let u=JSON.parse(p);u.errorMessage?o=Array.isArray(u.errorMessage)?u.errorMessage.join(", "):u.errorMessage:o=p}catch{o=p}}catch{o="General error"}throw new ut(o,(n=e?.method)!=null?n:"GET",t.toString(),s.status,s.statusText,X.getRequestId(s))}return e?.expectNoContent?{response:s,body:null}:{response:s,body:await s.json()}})}createUrl(t,e,n){let i=new URL(`${n??this.options.apiHost}${t}`);return Object.entries(e??{}).forEach(([l,a])=>{var c;typeof a<"u"&&a!==null&&i.searchParams.append(l,Array.isArray(a)?a.join(","):(c=a?.toString())!=null?c:"")}),i}ensureApiHost(t){if(!t)return"https://uniform.app";if(!t?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(t.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(t.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return t?.endsWith("/")&&(t=t.substring(0,t.length-1)),t}static getRequestId(t){let e=t.headers.get("apigw-requestid");if(e)return e}};async function dt(r){var t;let n=5,i;for(;n>0&&(i=await r(),i.status===429);){let l=0;try{let s=i.clone(),o=s.headers.get("date"),p=o?new Date(o).getTime():void 0,u=await s.json(),m=(t=u?.info)==null?void 0:t.reset;typeof p=="number"&&typeof m=="number"&&(l=Math.max(0,Math.min(Math.round(1.1*(m-p)),1e4)))}catch{}let a=Math.pow(2,5-n)*333,c=a+Math.round(Math.random()*(a/2))*(Math.random()>.5?1:-1);await new Promise(s=>setTimeout(s,l+c)),n-=1}return i}var w,ft=class I extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(I,w),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(I,w));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(I,w));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};w=new WeakMap;f(ft,w,"/api/v2/aggregate");var D,yt=class Z extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(Z,D),{...t,projectId:e});return await this.apiClient(n)}};D=new WeakMap;f(yt,D,"/api/v2/dimension");var _,P,tt=class g extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(g,_),{...t,projectId:e});return await this.apiClient(n)}async upsertCategory(t){let e=this.createUrl(h(g,_));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(t){let e=this.createUrl(h(g,_));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(t){let e=this.createUrl(h(g,P));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(t){let e=this.createUrl(h(g,P));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;P=new WeakMap;f(tt,_,"/api/v1/enrichments");f(tt,P,"/api/v1/enrichment-values");var R,mt=class et extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(et,R),{...t,projectId:e});return await this.apiClient(n)}async publish(){let{projectId:t}=this.options,e=this.createUrl("/api/v1/publish",{siteId:t});await this.apiClient(e,{method:"POST",expectNoContent:!0})}};R=new WeakMap;f(mt,R,"/api/v2/manifest");var b,vt=class j extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(j,b),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(j,b));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(j,b));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};b=new WeakMap;f(vt,b,"/api/v2/quirk");var U,Ct=class N extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(N,U),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(N,U));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(N,U));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};U=new WeakMap;f(Ct,U,"/api/v2/signal");var x,gt=class S extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(S,x),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(S,x));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(S,x));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};x=new WeakMap;f(gt,x,"/api/v2/test");import{createVariableReference as bt,parseVariableExpression as Ut}from"@uniformdev/canvas";var rt=r=>{throw TypeError(r)},L=(r,t,e)=>t.has(r)||rt("Cannot "+e),A=(r,t,e)=>(L(r,t,"read from private field"),e?e.call(r):t.get(r)),nt=(r,t,e)=>t.has(r)?rt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),wt=(r,t,e,n)=>(L(r,t,"write to private field"),n?n.call(r,e):t.set(r,e),e),E=(r,t,e)=>(L(r,t,"access private method"),e);var Nt=class extends d{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:t}=this.options,e=this.createUrl("/api/v1/project-map",{projectId:t});return await this.apiClient(e)},this.getProjectMapDefinition=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map",{...t,projectId:e});return await this.apiClient(n)},this.upsertProjectMap=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map");return(await this.apiClient(n,{method:"PUT",body:JSON.stringify({...t,projectId:e})})).projectMapId},this.deleteProjectMap=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map");await this.apiClient(n,{method:"DELETE",body:JSON.stringify({...t,projectId:e}),expectNoContent:!0})},this.upsertProjectMapNodes=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(n,{method:"PUT",body:JSON.stringify({...t,projectId:e,nodes:t.nodes.map(i=>({...i,node:{...this.cleanProjectMapNode(i.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(n,{method:"DELETE",body:JSON.stringify({...t,projectId:e}),expectNoContent:!0})},this.getSubtree=async t=>{var e;let n=this.setFetchOptions(t);n.tree="true";let i=this.createUrl("/api/v1/project-map-nodes",n),a={...(await this.apiClient(i)).tree},c=[a];for(;c&&c.length>0;){let s=c.pop(),o;(e=s?.children)==null||e.forEach(p=>{p.parent=k(s),p.previousSibling=k(o),o&&(o.nextSibling=k(p)),o=p,c.push(p)})}return a},this.getNodes=async t=>{let e=this.setFetchOptions(t),n=this.createUrl("/api/v1/project-map-nodes",e);return await this.apiClient(n)}}setFetchOptions(r){let{projectId:t}=this.options,e={projectId:t};return Object.entries(r).forEach(([n,i])=>{if(i!==void 0){if(typeof i=="boolean"){if(!i)return;e[n]="true";return}if(typeof i=="number"){e[n]=i.toString(10);return}e[n]=i}}),e}cleanProjectMapNode(r){var t,e,n;return{id:((n=(e=(t=r.id)==null?void 0:t.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:e.length)!=null?n:0)==1?r.id:void 0,path:r.path,name:r.name,type:r.type,order:r.order,data:r.data,compositionId:r.compositionId,description:r.description,locales:r.locales}}};var k=r=>r?{...r,parent:void 0,children:void 0}:void 0;function _t({editions:r,selectEdition:t,selectId:e,selectEnabledLocales:n,targetLocale:i}){if(!r||!r.length)return;if(!i)return r.find(a=>{let c=t(a);return!c.editionId||c.editionId===e(a)});let l;return r.forEach(a=>{var c,s,o,p;let u=t(a),m=l?t(l):void 0,J=(c=u.editionPriority)!=null?c:0,F=(s=m?.editionPriority)!=null?s:Number.MIN_SAFE_INTEGER;n(a).includes(i)&&(J>F||J===F&&((o=u.editionName)!=null?o:"").localeCompare((p=m?.editionName)!=null?p:"","en",{sensitivity:"base"})<0)&&(l=a)}),l}function St({node:r,targetLocale:t,fallbackWhenLocaleNotMatched:e=!1}){var n;if(!r.compositionData)return;if(!t)return r.compositionData;let i=_t({editions:(n=r.compositionData.editions)!=null?n:[],selectId:l=>{var a;return(a=l.editionId)!=null?a:""},selectEnabledLocales:l=>l.locales,selectEdition:l=>l,targetLocale:t});return!r.compositionData.editions&&r.compositionData.locales.includes(t)||e&&!i?r.compositionData:i}var v,C,W,M,$=class y{constructor(t){this.route=t,nt(this,v);var e;wt(this,v,E(e=y,C,W).call(e,this.route))}get dynamicSegmentCount(){return A(this,v).segments.reduce((t,e)=>{var n;return E(n=y,C,M).call(n,e)?t+1:t},0)}matches(t){var e,n;let{segments:i,queryParams:l}=E(e=y,C,W).call(e,t),{segments:a}=A(this,v);if(i.length!==a.length)return{match:!1};let c={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let s=0;s<a.length;s++){let o=a[s],p=i[s];if(E(n=y,C,M).call(n,o)){let u=o.slice(1);c.pathParams[u]=p,c.dynamicSegmentCount++}else if(o!==p)return{match:!1}}for(let[s,o]of A(this,v).queryParams)c.queryParams[s]=l.has(s)?l.get(s):o;return c}expand(t){let{dynamicInputValues:e={},allowedQueryParams:n=[],doNotEscapeVariables:i=!1}=t??{},l=A(this,v).segments.map(s=>{let o=y.getDynamicRouteSegmentName(s);if(!o)return s;let p=e[o];return p?q(p,i):s}).join("/"),a=n.filter(s=>{let o=typeof e[s];return o==="string"||o==="number"||o==="boolean"}).map(s=>`${q(s,i)}=${q(e[s],i)}`),c=a.length?`?${a.join("&")}`:"";return`/${l}${c}`}static getDynamicRouteSegmentName(t){var e;if(E(e=y,C,M).call(e,t))return t.slice(y.dynamicSegmentPrefix.length)}};v=new WeakMap;C=new WeakSet;W=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[t,e]=r.split("?"),n=t.substring(1).split("/");n[n.length-1]===""&&n.pop();let i=new URLSearchParams(e);return{segments:n,queryParams:i}};M=function(r){return r?r.startsWith($.dynamicSegmentPrefix):!1};nt($,C);$.dynamicSegmentPrefix=":";function q(r,t){if(!t)return encodeURIComponent(r);let e=[];return Ut(r.toString(10),(n,i)=>{i==="variable"?e.push(bt(n)):e.push(encodeURIComponent(n))}),e.join("")}export{Nt as a,St as b};
|
package/dist/chunk-B2O55EVA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./chunk-MSXDLSXH.mjs";import p from"next/dynamic";import{jsx as m}from"react/jsx-runtime";var a=e=>{switch(e.slotName){case"bannerContent":return{component:()=>m("div",{className:"h-20 w-full"})};default:return o}};var l=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(l||{}),t=(n=>(n.BannerContent="bannerContent",n))(t||{}),h=p(()=>import("./banner-EYII7V7X.mjs").then(e=>e.Banner));export{l as a,t as b,h as c,a as d};
|
package/dist/chunk-EOV2LPGC.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-WAW7PQYM.mjs";import{a as R,b as c}from"./chunk-TCQTXNKT.mjs";import{a as m}from"./chunk-7GVG4HLE.mjs";import{d as y}from"./chunk-RX4IAAQQ.mjs";import{a as g,c as a}from"./chunk-S7CSCIW4.mjs";import{jsx as D,jsxs as E}from"react/jsx-runtime";var z=({accordionContent:e,accordionItems:o,backgroundColor:r,spacing:i,border:t,fluidContent:n,height:s,className:l})=>E(m,{className:a("flex flex-col gap-8",l),backgroundColor:r,spacing:i,border:t,fluidContent:n,height:s,children:[e&&D("div",{className:"flex flex-col gap-4 text-start",children:e}),o]});import O from"next/link";import{jsx as Z}from"react/jsx-runtime";var x=({children:e,link:o,openInNewTab:r,rel:i,className:t})=>Z(O,{href:o,className:a("[&:hover_img]:scale-[0.98] [&_img]:transition-transform hover:underline transition-transform",t),target:r?"_blank":"_self",rel:i,children:e});var L=(o=>(o.Link="link",o))(L||{});import{jsx as H,jsxs as K}from"react/jsx-runtime";var J=({children:e,href:o,className:r,onClick:i})=>{let t=y(o);return o?H(x,{className:r,link:o,openInNewTab:t,rel:t?"noopener noreferrer":"",children:e}):H("button",{onClick:i,className:r,children:e})},q=({variant:e,children:o,href:r,className:i,onClick:t,textColor:n,textSize:s,buttonColor:l,isActive:S,icon:f,iconPosition:W,border:P="",textTransform:h="",textWeight:C,textFont:u,size:N,hoverButtonColor:k,hoverTextColor:b})=>{let G=a("block w-max font-medium focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50",{[`text-${n}`]:n,[`hover:text-${b}`]:b,"flex flex-row gap-x-2":f,"flex-row-reverse":f&&W==="right",[`font-${u}`]:!!u,[`font-${C}`]:!!C,[`p-${N}`]:N,[h]:!!h,[g(P,"{value}")]:P,[g(s,"text-{value}")]:s}),V=a({[`bg-${l}`]:l,[`hover:bg-${k}`]:k}),_=a("bg-transparent hover:underline hover:opacity-100",{[`hover:decoration-${l}`]:l,"!underline":r===S});return K(J,{href:r,onClick:t,className:a(G,{[V]:!e,[_]:e==="link"},i),children:[f,o]})};import{jsx as I,jsxs as U}from"react/jsx-runtime";var Q=({type:e,placeholder:o})=>U("div",{className:"flex aspect-video size-full flex-col items-center justify-center bg-white text-black dark:bg-black dark:text-white",children:[I(e==="video"?w:B,{className:"size-1/2 max-h-36 max-w-36"}),!!o&&I(F,{className:"text-center",weight:"bold",children:o})]});import{jsx as v,jsxs as M}from"react/jsx-runtime";var X=({logo:e,content:o,copyright:r,backgroundColor:i,spacing:t,border:n,fluidContent:s})=>v("footer",{children:v(m,{backgroundColor:i,spacing:t,border:n,fluidContent:s,children:M(m,{className:"flex w-full flex-col justify-between gap-4 md:flex-row",children:[M("div",{className:"flex flex-col gap-2 gap-y-4 md:w-1/2",children:[e,r]}),v("div",{children:o})]})})});import j from"next/dynamic";import{jsx as p,jsxs as Y}from"react/jsx-runtime";var $=({leftSection:e,rightSection:o,children:r,backgroundColor:i,spacing:t,border:n,className:s})=>p("nav",{children:p(m,{fluidContent:!0,backgroundColor:i,spacing:t,border:n,className:s,children:Y(R,{className:"items-center",columnsCount:"12",children:[p(c,{columnSpan:"span-3",children:p("div",{className:"flex items-center justify-start",children:e})}),p(c,{columnSpan:"span-6",children:p("div",{className:"flex items-center justify-center gap-x-8",children:r})}),p(c,{columnSpan:"span-3",children:p("div",{className:"flex items-center justify-end gap-x-4",children:o})})]})})});import{jsx as d,jsxs as re}from"react/jsx-runtime";var ee=j(()=>import("./mobile-JGZBHQC2.mjs").then(e=>e.MobileHeader)),oe=({sticky:e,...o})=>re("header",{className:a({"sticky top-0 shadow z-10":e}),children:[d("div",{className:"hidden md:block",children:d($,{...o})}),d("div",{className:"block md:hidden",children:d(ee,{...o})})]});import{jsx as ie,jsxs as ae}from"react/jsx-runtime";var te=({className:e,header:o,footer:r,children:i,backgroundColor:t,...n})=>ae("div",{className:a("flex min-h-screen flex-col",e,{[`bg-${t}`]:!!t}),...n,children:[o,ie("div",{className:"flex flex-1 flex-col",children:i}),r]});import{jsx as A,jsxs as T}from"react/jsx-runtime";var ne=({rating:e,showReviewLabel:o,starsColor:r,activeStarsColor:i})=>T("div",{className:"flex items-center space-x-1",children:[Array.from({length:5},(t,n)=>{let s=e>=n+1;return A("svg",{className:a("w-5 h-5",{[`fill-${r}`]:!s,[`fill-${i}`]:s}),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 20",children:A("path",{d:"M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"})},n)}),o&&T("div",{className:"text-sm leading-[3px]",children:["(",e,"/5)"]})]});export{z as a,x as b,q as c,L as d,Q as e,X as f,oe as g,te as h,ne as i};
|
package/dist/chunk-EUVKAE6M.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"next/dynamic";var o=t(()=>import("./carousel-RZ2DV6QX.mjs").then(e=>e.Carousel));export{o as a};
|
package/dist/chunk-FIN5US3Q.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-7GVG4HLE.mjs";import{a as e,c as l}from"./chunk-S7CSCIW4.mjs";import{jsx as m}from"react/jsx-runtime";var d=({className:r,wrapperClassName:t,direction:o,justifyContent:i,gap:s,alignItems:p,backgroundColor:f,spacing:P,border:c,fluidContent:v,height:a,children:y})=>m(n,{backgroundColor:f,spacing:P,border:c,fluidContent:v,height:a,wrapperClassName:t,children:m("div",{className:l("flex",{[e(o,"flex-{value}")]:o,[e(i,"justify-{value}")]:i,[e(s,"gap-{value}")]:s,[e(p,"items-{value}")]:p,[e(a,"h-{value}")]:a},r),children:y})});import{jsx as u}from"react/jsx-runtime";var x=({className:r,alignSelf:t,shrink:o,children:i})=>u("div",{className:l({[e(t,"self-{value}")]:t,[`shrink-${o}`]:o},r),children:i});import g from"next/dynamic";var D=g(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{d as a,x as b,D as c};
|
package/dist/chunk-LZOK42EM.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as be,c as Ne,e as we,f as Fe,g as Ee,h as Ae,i as O}from"./chunk-EOV2LPGC.mjs";import{a as Z}from"./chunk-BK7UG4U4.mjs";import{a as Te}from"./chunk-WAW7PQYM.mjs";import{a as c}from"./chunk-7GVG4HLE.mjs";import{a as Q}from"./chunk-2YTACEBA.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as Re}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as He}from"@uniformdev/canvas-next-rsc/component";import{jsx as j}from"react/jsx-runtime";var ho=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>j(be,{accordionContent:j(He,{data:o,context:t,slot:e.accordionContent}),accordionItems:j(He,{data:o,context:t,slot:e.accordionItems}),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s});import{jsx as Le}from"react/jsx-runtime";var Ro=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Le("div",{className:"h-20"})};case"accordionItems":return{component:()=>Le("div",{className:"h-28"})};default:return l}};var Ie=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(Ie||{});import{UniformSlot as Se}from"@uniformdev/canvas-next-rsc/component";import{jsx as No}from"react/jsx-runtime";var bo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>No("div",{className:"h-20"})};default:return l}};var Ve=(o=>(o.BackgroundImage="backgroundImage",o))(Ve||{}),Be=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(Be||{});import{jsx as k,jsxs as wo}from"react/jsx-runtime";var To=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,className:m,contentClassName:d})=>{let f=e.variant==="backgroundImage";return wo(c,{className:p("relative overflow-hidden",m),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,children:[k("div",{className:p({"inset-0 size-full absolute":f}),children:k(Se,{data:e,context:o,slot:t.cardMedia})}),k("div",{className:p("relative flex flex-col gap-y-2",d),children:k(Se,{data:e,context:o,slot:t.cardContent})})]})};import Ao from"next/dynamic";import{jsx as Eo}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>Eo("div",{className:"mx-20 h-20 w-full"})};default:return l}};var De=(o=>(o.Items="carouselItems",o))(De||{}),Or=Ao(()=>import("./carousel-YELQRJVB.mjs").then(e=>e.Carousel));import{UniformSlot as qe}from"@uniformdev/canvas-next-rsc/component";import{imageFrom as Ho}from"@uniformdev/assets";import{UniformText as Oe}from"@uniformdev/canvas-next-rsc/component";import{jsx as g}from"react/jsx-runtime";var M=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:g(Te,{...a,children:g(Oe,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},ke=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=Re(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:g(Ne,{...a,href:s,icon:g(()=>{let[f]=Q(n),{url:u,title:h=""}=f||{};return u?g(Z,{src:u,alt:h,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:g(Oe,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Me=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,priority:f,unoptimized:u,fill:h})=>{let[C]=Q(t);if(!C){let X=o.previewMode==="editor"&&o.isContextualEditing,J=e?._id?.includes("placeholder_");return!X||J||!e.variant?null:g("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:g(we,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:$,title:V=""}=C,S=a||C.width,D=i||C.height;if(!h&&(!S||!D))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),g("img",{src:C.url,alt:V});let q=Ho(C?.url).transform({width:a,height:i,fit:r,focal:$}).url();return g(Z,{src:q,alt:V,unoptimized:u,priority:f,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,...h?{fill:!0}:{width:S,height:D}})};import{jsx as T,jsxs as _e}from"react/jsx-runtime";var Ue=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:_e("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),_e("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:s}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:m})]})]})});import{jsx as te,jsxs as ze}from"react/jsx-runtime";var We=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>ze(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[te("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),ze(c,{className:"relative flex flex-col gap-8",children:[te("div",{className:p("flex flex-col gap-4",m),children:n}),te("div",{className:p("flex flex-wrap gap-2 items-center",d),children:s})]})]});var Ye=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Ke=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var R=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});var $e=e=>{let o=e?608:void 0;return{imageFill:!e,...o?{imageWidth:o,imageHeight:o}:{}}};import{Fragment as oe,jsx as P,jsxs as Lo}from"react/jsx-runtime";var _=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J,descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t,primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to,image:oo,imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo,contentAlignment:Ce,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,isFlexibleHero:xe=!1,component:x,context:v,slots:ve})=>{let ye=x.variant,vo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroContent}):Lo(oe,{children:[P(M,{...R({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:x,context:v,parameterId:"eyebrowTitleText"}),P(M,{...R({titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J},"title"),component:x,context:v,parameterId:"titleText"}),P(M,{...R({descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t},"description"),component:x,context:v,parameterId:"descriptionText"})]}),yo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroCta}):P(oe,{children:P(ke,{...R({primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to},"primaryButton"),component:x,context:v,parameterId:"primaryButtonText"})}),he={variant:ye,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,textAlignmentClass:Ke({contentAlignment:Ce}),buttonAlignmentClass:Ye({contentAlignment:Ce}),demoHeroMedia:P(oe,{children:P(Me,{image:oo,...R({imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo},"image"),component:x,context:v})}),demoHeroContent:vo,demoHeroCTA:yo};switch(ye){case"columns":case"columnsReverse":return P(Ue,{...he});default:return P(We,{...he})}};import{jsx as Io}from"react/jsx-runtime";var Xe=({textColor:e,overlayAutoTint:o,...t})=>Io(_,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||t.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"4xl",desktop:"4xl"},titleWeight:"bold",titleColor:e||t.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||t.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!t.component.variant&&o?e:void 0,imageOverlayOpacity:o,...$e(!!t.component.variant),spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Bo}from"react/jsx-runtime";var Je=e=>Bo(_,{...e,isFlexibleHero:!0});import{jsx as Qe}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Qe("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Qe("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Ge=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Ge||{}),ee=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ee||{}),Ze=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ze||{}),So={FixedHero:Xe,FlexibleHero:Je},Oa=So;import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var je=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>U(Fe,{logo:U(re,{context:e,slot:t.footerLogo,data:o}),copyright:U(re,{context:e,slot:t.footerCopyright,data:o}),content:U(re,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ae}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ae("div",{className:"h-20 w-48"})};default:return l}};var et=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))(et||{}),Xa=je;import{UniformSlot as ie}from"@uniformdev/canvas-next-rsc/component";import{jsx as z}from"react/jsx-runtime";var tt=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>z(Ee,{sticky:i.variant==="sticky",leftSection:z(ie,{context:a,slot:n.headerLeftContent,data:i}),rightSection:z(ie,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:z(ie,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as ne}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>ne("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>ne("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>ne("div",{className:"h-20 w-48"})};default:return l}};var rt=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(rt||{}),ot=(o=>(o.Sticky="sticky",o))(ot||{}),li=tt;import _o from"next/dynamic";import{jsx as Mo}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Mo("div",{className:" mx-auto size-48"})};default:return l}};var at=(o=>(o.Items="imageGalleryItems",o))(at||{}),Ci=_o(()=>import("./image-gallery-AMU6FS7N.mjs").then(e=>e.ImageGallery));import Wo from"next/dynamic";import{jsx as zo}from"react/jsx-runtime";var Uo=e=>{switch(e.slotName){case"trigger":return{component:()=>zo("div",{className:"h-20 w-full"})};default:return l}};var it=(r=>(r.Trigger="trigger",r.ModalContent="modalContent",r.ModalActions="modalActions",r))(it||{}),Ti=Wo(()=>import("./modal-43IHAVWB.mjs").then(e=>e.Modal));import Ko from"next/dynamic";import{jsx as nt}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>nt("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>nt("div",{className:"h-40 w-48"})};default:return l}};var Vi=Ko(()=>import("./navigation-flyout-EPIOXRWJ.mjs").then(e=>e.NavigationFlyout));import qo from"next/dynamic";import{jsx as $o}from"react/jsx-runtime";var Go=e=>{switch(e.slotName){case"links":return{component:()=>$o("div",{className:"h-40 w-48"})};default:return l}};var Wi=qo(()=>import("./navigation-group-OCZ35QI2.mjs").then(e=>e.NavigationGroup));import{UniformSlot as se}from"@uniformdev/canvas-next-rsc/component";import{jsx as W}from"react/jsx-runtime";var Xo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>W(Ae,{backgroundColor:r,header:W(se,{context:t,slot:e.pageHeader,data:o,children:a}),footer:W(se,{context:t,slot:e.pageFooter,data:o,children:n}),children:W(se,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as me}from"react/jsx-runtime";var Jo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>me("div",{className:"h-40"})};case"pageContent":return{component:()=>me("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>me("div",{className:"h-40"})};default:return l}};var st=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(st||{});import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as w}from"react/jsx-runtime";var Qo=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?w("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};default:return l}};var le=(o=>(o.MultiColumn="multiColumn",o))(le||{}),mt=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(mt||{});import{jsx as F,jsxs as lt}from"react/jsx-runtime";var pt=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>F(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:lt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[F("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),lt("div",{className:"ml-6",children:[f,F("div",{className:"py-4",children:F(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),F("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as b,jsxs as dt}from"react/jsx-runtime";var ct=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>b(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:dt("div",{className:"grid md:grid-cols-12",children:[dt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[b("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),b("div",{className:"flex flex-col gap-y-1",children:f})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),b("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as E}from"react/jsx-runtime";var Zo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:E(pe,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:E(pe,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:E(pe,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return E(ct,{...i});default:return E(pt,{...i})}};import{UniformSlot as Pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as de}from"react/jsx-runtime";var jo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:de("div",{className:"size-full"})};case"sectionContent":return{component:()=>de("div",{className:"h-20"})};case"sectionCTA":return{component:()=>de("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Pt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Pt||{}),ce=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ce||{}),ft=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(ft||{});import{jsx as A,jsxs as ut}from"react/jsx-runtime";var gt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>A(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:ut("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[A("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:A("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),ut("div",{className:"flex flex-col justify-center gap-8",children:[A("div",{className:p("flex flex-col gap-4",d),children:s}),A("div",{className:p("flex flex-wrap gap-2",f),children:m})]})]})});import{jsx as fe,jsxs as Ct}from"react/jsx-runtime";var xt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,sectionMedia:i,sectionContent:n,sectionCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>Ct(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[fe("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Ct(c,{className:"relative flex flex-col gap-8",children:[fe("div",{className:p("flex flex-col gap-4",m),children:n}),fe("div",{className:p("flex flex-wrap gap-2",d),children:s})]})]});var vt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),yt=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as H}from"react/jsx-runtime";var er=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>{let d=t.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,textAlignmentClass:yt({contentAlignment:e}),buttonAlignmentClass:vt({contentAlignment:e}),sectionMedia:H(Pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:H(Pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:H(Pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return H(gt,{...f});default:return H(xt,{...f})}};import{UniformSlot as Rt}from"@uniformdev/canvas-next-rsc/component";var ht=({size:e,textColor:o})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as or}from"react/jsx-runtime";var tr=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d,children:N("div",{className:"overflow-x-auto",children:or("table",{className:ht({size:e,textColor:o}),children:[N("thead",{children:N(Rt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Rt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as bt}from"react/jsx-runtime";var rr=e=>{switch(e.slotName){case"tableHead":return{component:()=>bt("tr",{className:"h-20"})};case"tableBody":return{component:()=>bt("tr",{className:"h-40"})};default:return l}};var Nt=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Nt||{});import{UniformSlot as G}from"@uniformdev/canvas-next-rsc/component";import{jsx as Y}from"react/jsx-runtime";var ar=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>Y("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>Y("div",{className:"h-20 w-64"})};default:return l}};var wt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(wt||{}),Tt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Tt||{});import{jsx as L,jsxs as nr}from"react/jsx-runtime";var Ft=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:nr("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[L("div",{children:r}),L("div",{className:"my-8",children:o}),L("div",{className:"size-10 rounded-full",children:e}),L("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as I,jsxs as K}from"react/jsx-runtime";var Et=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>I(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:K("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[I("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),K("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),K("div",{className:"flex items-center justify-between",children:[K("div",{className:"flex items-center gap-x-4",children:[I("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),I("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as B,jsxs as ue}from"react/jsx-runtime";var At=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:B(c,{className:"pb-10 lg:pb-0",children:ue("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[B("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),ue("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),ue("div",{className:"flex items-center justify-between",children:[B("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var ir=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>{let m=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,testimonialPrimaryImage:y(G,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:y(G,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:y(G,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:y(G,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(m){case"withLargeAvatar":return y(Et,{...d});case"withOverlappingImage":return y(At,{...d});default:return y(Ft,{...d})}};export{ho as a,Ie as b,Ro as c,To as d,Ve as e,Be as f,bo as g,De as h,Or as i,Fo as j,Ge as k,ee as l,Ze as m,Oa as n,Vo as o,et as p,Xa as q,Do as r,rt as s,ot as t,li as u,Oo as v,at as w,Ci as x,ko as y,it as z,Ti as A,Uo as B,Vi as C,Yo as D,Wi as E,Go as F,Xo as G,st as H,Jo as I,Zo as J,le as K,mt as L,Qo as M,er as N,Pt as O,ce as P,ft as Q,jo as R,tr as S,Nt as T,rr as U,ir as V,wt as W,Tt as X,ar as Y};
|
package/dist/chunk-MSXDLSXH.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";var e={component:()=>r("div",{className:"h-20 w-full"})},t=p=>({parentComponent:o,...l})=>o&&p[o.type]?.({parentComponent:o,...l})||e,m=t;export{e as a,m as b};
|
package/dist/chunk-RX4IAAQQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var s=/:([a-zA-Z0-9-_]+)/g,n=(e,o)=>o?e.replace(s,t=>o?.[t.substring(1)]||t):e,i=e=>"compositionApiResponse"in e&&!!e.compositionApiResponse&&"composition"in e.compositionApiResponse,r=e=>e?e.type==="email"?`mailto:${e.path}`:e.path:"",p=e=>e?.startsWith("http")??!1;export{n as a,i as b,r as c,p as d};
|