@uniformdev/csk-components 6.0.87 → 6.0.99-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/dist/accordion-item-G5CNMERW.mjs +1 -0
- package/dist/{banner-4QNCOJXP.mjs → banner-2B4K5R4N.mjs} +1 -1
- package/dist/carousel-BBEW5P4Y.mjs +1 -0
- package/dist/{carousel-PCTBGT7M.mjs → carousel-ERCHOWUS.mjs} +1 -1
- package/dist/chunk-2YTACEBA.mjs +1 -0
- package/dist/{chunk-C42FGNCU.mjs → chunk-4LWAGTFW.mjs} +1 -1
- package/dist/chunk-5VM2Y55L.mjs +1 -0
- package/dist/chunk-BK7UG4U4.mjs +1 -0
- package/dist/{chunk-DBXG5BKX.mjs → chunk-FPOIJMYT.mjs} +1 -1
- package/dist/{chunk-H4YYFWGR.mjs → chunk-LA36HQWS.mjs} +1 -1
- package/dist/chunk-LX5AG5F7.mjs +1 -0
- package/dist/chunk-M3BGP5VE.mjs +1 -0
- package/dist/chunk-YUCUJWBO.mjs +1 -0
- package/dist/chunk-Z7JSWSPD.mjs +1 -0
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +10 -1
- package/dist/components/canvas/index.mjs +2 -2
- package/dist/components/ui/index.d.mts +4 -4
- package/dist/components/ui/index.mjs +1 -1
- package/dist/content/components/canvas/Accordion/accordion.tsx +2 -1
- package/dist/content/components/canvas/AccordionItem/accordion-item.tsx +1 -1
- package/dist/content/components/canvas/Breadcrumbs/breadcrumbs.tsx +18 -0
- package/dist/content/components/canvas/Card/card.tsx +2 -1
- package/dist/content/components/canvas/Carousel/carousel.tsx +2 -1
- package/dist/content/components/canvas/Container/container.tsx +13 -1
- package/dist/content/components/canvas/Container/parameters.ts +5 -0
- package/dist/content/components/canvas/DemoHero/columns-variant.tsx +12 -8
- package/dist/content/components/canvas/DemoHero/default-variant.tsx +10 -8
- package/dist/content/components/canvas/DemoHero/demo-hero.tsx +2 -0
- package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +65 -55
- package/dist/content/components/canvas/DemoHero/index.tsx +4 -0
- package/dist/content/components/canvas/DemoHero/style-utils.ts +2 -2
- package/dist/content/components/canvas/Grid/grid.tsx +2 -1
- package/dist/content/components/canvas/Image/image.tsx +32 -5
- package/dist/content/components/canvas/Image/index.tsx +1 -0
- package/dist/content/components/canvas/ImageGallery/image-gallery.tsx +2 -1
- package/dist/content/components/canvas/Review/default-variant.tsx +2 -1
- package/dist/content/components/canvas/Review/multi-column-variant.tsx +2 -1
- package/dist/content/components/canvas/Section/columns-variant.tsx +5 -1
- package/dist/content/components/canvas/Section/default-variant.tsx +5 -1
- package/dist/content/components/canvas/Section/section.tsx +2 -0
- package/dist/content/components/canvas/Table/table.tsx +2 -1
- package/dist/content/components/canvas/Tabs/tabs.tsx +2 -1
- package/dist/content/components/canvas/Testimonial/default-variant.tsx +3 -2
- package/dist/content/components/canvas/Testimonial/testimonial.tsx +2 -0
- package/dist/content/components/canvas/Testimonial/with-large-avatar-variant.tsx +3 -2
- package/dist/content/components/canvas/Testimonial/with-overlapping-image-variant.tsx +3 -2
- package/dist/content/components/ui/Container/container.tsx +6 -3
- package/dist/content/components/ui/Container/index.ts +5 -0
- package/dist/content/components/ui/Container/utils.ts +18 -0
- package/dist/content/components/ui/Flex/flex.tsx +26 -19
- package/dist/content/components/ui/Flex/index.ts +1 -0
- package/dist/content/components/ui/Grid/grid.tsx +24 -19
- package/dist/content/components/ui/Grid/index.ts +9 -1
- package/dist/content/components/ui/Image/image.tsx +1 -1
- package/dist/content/utils/assets.ts +4 -0
- package/dist/image-gallery-F6JLG7XW.mjs +1 -0
- package/dist/{index-Bo0jbwJv.d.mts → index-B9eeSbLG.d.mts} +3 -0
- package/dist/{mobile-MRAEZAWR.mjs → mobile-UAUHHXPH.mjs} +1 -1
- package/dist/{navigation-flyout-3SK6VRHA.mjs → navigation-flyout-MXIJA6PC.mjs} +1 -1
- package/dist/{navigation-group-7WBDV5IY.mjs → navigation-group-DEN3D2BO.mjs} +1 -1
- package/dist/tabs-AQFKYC6M.mjs +1 -0
- package/dist/utils/assets.d.mts +4 -0
- package/dist/utils/assets.mjs +1 -1
- package/package.json +1 -1
- package/dist/accordion-item-ULLV2BRJ.mjs +0 -1
- package/dist/carousel-W3SCTR5K.mjs +0 -1
- package/dist/chunk-2R23IIXO.mjs +0 -1
- package/dist/chunk-CEMXG4S3.mjs +0 -1
- package/dist/chunk-F435GHK2.mjs +0 -1
- package/dist/chunk-JNIJ5N3Y.mjs +0 -1
- package/dist/chunk-PIBMG73F.mjs +0 -1
- package/dist/chunk-SDTLQ3CZ.mjs +0 -1
- package/dist/chunk-XWVE2EED.mjs +0 -1
- package/dist/image-gallery-IYJI5V7T.mjs +0 -1
- package/dist/tabs-75KAGSVH.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as p}from"./chunk-QHIWJPL6.mjs";import{b as n}from"./chunk-YUCUJWBO.mjs";import{c as m}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as P,useState as B}from"react";import{UniformSlot as N,UniformText as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as c}from"react/jsx-runtime";var d=({className:t,...o})=>c("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:c("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 f}from"react/jsx-runtime";var a=({className:t,...o})=>f("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:f("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 w}from"react/jsx-runtime";var z=({tag:t,alignment:o,color:x,size:u,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,slots:S,component:l,context:i,backgroundColor:r,spacing:I,className:A})=>{let[s,G]=B(!1),V=P(()=>G(F=>!F),[]);return w(n,{fluidContent:!0,children:[e(n,{backgroundColor:r,spacing:I,fluidContent:!0,className:A,children:w("button",{onClick:V,className:"flex w-full flex-row items-center justify-between text-start",children:[e(p,{alignment:o,color:x,size:u,font:v,weight:C,transform:h,decoration:L,letterSpacing:g,children:e(R,{placeholder:"Text goes here",parameterId:"text",as:t||void 0,component:l,context:i})}),e("div",{className:m({[`text-${r} invert`]:!!r,"text-black dark:text-white":!r}),children:s?e(d,{}):e(a,{})})]})}),s&&e(N,{data:l,context:i,slot:S.accordionItemContent})]})};export{z as AccordionItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"./chunk-
|
|
1
|
+
"use client";import"./chunk-LA36HQWS.mjs";import{b as i}from"./chunk-YUCUJWBO.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as s}from"./chunk-5VM2Y55L.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as y}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var P=({slots:r,component:e,context:t,backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,height:C,itemsPerPage:n,gapX:p})=>o(s,{backgroundColor:a,spacing:l,border:m,fluidContent:i,fullHeight:u,fitHeight:f,height:C,itemsPerPage:n,gapX:p,countOfItems:r.carouselItems?.items.length??0,variant:e.variant,children:({className:c,style:v})=>o(y,{context:t,slot:r.carouselItems,data:e,children:({child:d,key:I})=>o("div",{className:c,style:v,children:d},I)})});export{P as Carousel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"./chunk-
|
|
1
|
+
"use client";import"./chunk-5VM2Y55L.mjs";import{b as p}from"./chunk-YUCUJWBO.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,fullHeight: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,fullHeight: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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{flattenValues as s}from"@uniformdev/canvas";var i=e=>(s(e)||[]).filter(({url:t})=>!!t);export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-QHIWJPL6.mjs";import{a as R,b as d}from"./chunk-
|
|
1
|
+
import{b as B,c as w}from"./chunk-6TUDWIYU.mjs";import{a as F}from"./chunk-QHIWJPL6.mjs";import{a as R,b as d}from"./chunk-Z7JSWSPD.mjs";import{b as m}from"./chunk-YUCUJWBO.mjs";import{d as y}from"./chunk-RX4IAAQQ.mjs";import{a as g,c as a}from"./chunk-S7CSCIW4.mjs";import A from"next/link";import{jsx as _}from"react/jsx-runtime";var x=({children:o,link:e,openInNewTab:t,rel:i,className:r})=>_(A,{href:e,className:a("[&:hover_img]:scale-[0.98] [&_img]:transition-transform hover:underline transition-transform",r),target:t?"_blank":"_self",rel:i,children:o});var L=(e=>(e.Link="link",e))(L||{});import{jsx as H,jsxs as Z}from"react/jsx-runtime";var O=({children:o,href:e,className:t,onClick:i})=>{let r=y(e);return e?H(x,{className:t,link:e,openInNewTab:r,rel:r?"noopener noreferrer":"",children:o}):H("button",{onClick:i,className:t,children:o})},E=({variant:o,children:e,href:t,className:i,onClick:r,textColor:n,textSize:s,buttonColor:p,isActive:W,icon:c,iconPosition:z,border:h="",textTransform:u="",textWeight:P,textFont:C,size:N,hoverButtonColor:k,hoverTextColor:b})=>{let D=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":c,"flex-row-reverse":c&&z==="right",[`font-${C}`]:!!C,[`font-${P}`]:!!P,[`p-${N}`]:N,[u]:!!u,[g(h,"{value}")]:h,[g(s,"text-{value}")]:s}),G=a({[`bg-${p}`]:p,[`hover:bg-${k}`]:k}),V=a("bg-transparent hover:underline hover:opacity-100",{[`hover:decoration-${p}`]:p,"!underline":t===W});return Z(O,{href:t,onClick:r,className:a(D,{[G]:!o,[V]:o==="link"},i),children:[c,e]})};import{jsx as T,jsxs as J}from"react/jsx-runtime";var q=({type:o,placeholder:e})=>J("div",{className:"flex aspect-video size-full flex-col items-center justify-center bg-white text-black dark:bg-black dark:text-white",children:[T(o==="video"?w:B,{className:"size-1/2 max-h-36 max-w-36"}),!!e&&T(F,{className:"text-center",weight:"bold",children:e})]});import{jsx as v,jsxs as S}from"react/jsx-runtime";var K=({logo:o,content:e,copyright:t,backgroundColor:i,spacing:r,border:n,fluidContent:s})=>v("footer",{children:v(m,{backgroundColor:i,spacing:r,border:n,fluidContent:s,children:S(m,{className:"flex w-full flex-col justify-between gap-4 md:flex-row",children:[S("div",{className:"flex flex-col gap-2 gap-y-4 md:w-1/2",children:[o,t]}),v("div",{children:e})]})})});import U from"next/dynamic";import{jsx as l,jsxs as Q}from"react/jsx-runtime";var M=({leftSection:o,rightSection:e,children:t,backgroundColor:i,spacing:r,border:n,className:s})=>l("nav",{children:l(m,{fluidContent:!0,backgroundColor:i,spacing:r,border:n,className:s,children:Q(R,{className:"items-center",columnsCount:"12",children:[l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-start",children:o})}),l(d,{columnSpan:"span-6",children:l("div",{className:"flex items-center justify-center gap-x-8",children:t})}),l(d,{columnSpan:"span-3",children:l("div",{className:"flex items-center justify-end gap-x-4",children:e})})]})})});import{jsx as f,jsxs as j}from"react/jsx-runtime";var X=U(()=>import("./mobile-UAUHHXPH.mjs").then(o=>o.MobileHeader)),Y=({sticky:o,...e})=>j("header",{className:a({"sticky top-0 shadow z-10":o}),children:[f("div",{className:"hidden md:block",children:f(M,{...e})}),f("div",{className:"block md:hidden",children:f(X,{...e})})]});import{jsx as oe,jsxs as te}from"react/jsx-runtime";var ee=({className:o,header:e,footer:t,children:i,backgroundColor:r,...n})=>te("div",{className:a("flex min-h-screen flex-col",o,{[`bg-${r}`]:!!r}),...n,children:[e,oe("div",{className:"flex flex-1 flex-col",children:i}),t]});import{jsx as $,jsxs as I}from"react/jsx-runtime";var re=({rating:o,showReviewLabel:e,starsColor:t,activeStarsColor:i})=>I("div",{className:"flex items-center space-x-1",children:[Array.from({length:5},(r,n)=>{let s=o>=n+1;return $("svg",{className:a("w-5 h-5",{[`fill-${t}`]:!s,[`fill-${i}`]:s}),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 20",children:$("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)}),e&&I("div",{className:"text-sm leading-[3px]",children:["(",o,"/5)"]})]});export{x as a,E as b,L as c,q as d,K as e,Y as f,ee as g,re as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"next/dynamic";var o=t(()=>import("./carousel-ERCHOWUS.mjs").then(e=>e.Carousel));export{o as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i,c as e}from"./chunk-S7CSCIW4.mjs";import g from"next/image";import{jsx as m,jsxs as y}from"react/jsx-runtime";var f=({containerStyle:a,overlayColor:o,contrastBaseColor:r,overlayOpacity:l,border:t="",style:p,...s})=>y("div",{className:e("relative",{"size-full":s.fill}),style:a,children:[m(g,{...s,className:e({[i(t,"{value}")]:t}),style:{...p}}),m("div",{className:e("absolute bottom-0 left-0 right-0 top-0",{[`bg-${o||r}`]:o||r,[i(t,"{value}")]:t}),style:{opacity:l||0,...r&&!o?{filter:"grayscale(100%) invert(100%)"}:{}}})]});export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r}from"./chunk-MSXDLSXH.mjs";import s from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var p=e=>{switch(e.slotName){case"tabItems":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var l=(o=>(o.Default="default",o.Bordered="bordered",o))(l||{}),t=(m=>(m.TabItems="tabItems",m))(t||{}),c=s(()=>import("./tabs-
|
|
1
|
+
import{a as r}from"./chunk-MSXDLSXH.mjs";import s from"next/dynamic";import{jsx as a}from"react/jsx-runtime";var p=e=>{switch(e.slotName){case"tabItems":return{component:()=>a("div",{className:"h-20 w-full"})};default:return r}};var l=(o=>(o.Default="default",o.Bordered="bordered",o))(l||{}),t=(m=>(m.TabItems="tabItems",m))(t||{}),c=s(()=>import("./tabs-AQFKYC6M.mjs").then(e=>e.Tabs));export{l as a,t as b,c,p as d};
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-2B4K5R4N.mjs").then(e=>e.Banner));export{l as a,t as b,h as c,a as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as xe,d as ye,e as he,f as Re,g as be,h as V}from"./chunk-4LWAGTFW.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as q}from"./chunk-BK7UG4U4.mjs";import{b as P}from"./chunk-YUCUJWBO.mjs";import{a as $}from"./chunk-2YTACEBA.mjs";import{a as c}from"./chunk-MSXDLSXH.mjs";import{c as Ce}from"./chunk-RX4IAAQQ.mjs";import{c as f}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as X,jsxs as yo}from"react/jsx-runtime";var vo=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>yo(P,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,children:[X("div",{className:"flex flex-col gap-4 text-start",children:X(Ne,{data:o,context:t,slot:e.accordionContent})}),X(Ne,{data:o,context:t,slot:e.accordionItems})]});import{jsx as Te}from"react/jsx-runtime";var ho=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Te("div",{className:"h-20"})};case"accordionItems":return{component:()=>Te("div",{className:"h-28"})};default:return c}};var Fe=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(Fe||{});import{UniformSlot as Ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as bo}from"react/jsx-runtime";var Ro=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>bo("div",{className:"h-20"})};default:return c}};var He=(o=>(o.BackgroundImage="backgroundImage",o))(He||{}),we=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(we||{});import{jsx as S,jsxs as To}from"react/jsx-runtime";var No=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,className:p,contentClassName:d})=>{let u=e.variant==="backgroundImage";return To(P,{className:f("relative overflow-hidden",p),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,children:[S("div",{className:f({"inset-0 size-full absolute":u}),children:S(Ee,{data:e,context:o,slot:t.cardMedia})}),S("div",{className:f("relative flex flex-col gap-y-2",d),children:S(Ee,{data:e,context:o,slot:t.cardContent})})]})};import Ho from"next/dynamic";import{jsx as wo}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>wo("div",{className:"mx-20 h-20 w-full"})};default:return c}};var Ae=(o=>(o.Items="carouselItems",o))(Ae||{}),Ir=Ho(()=>import("./carousel-BBEW5P4Y.mjs").then(e=>e.Carousel));import{UniformSlot as Ue}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Be}from"@uniformdev/canvas-next-rsc/component";import{jsx as C}from"react/jsx-runtime";var O=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:C(ve,{...a,children:C(Be,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},Le=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=Ce(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:C(xe,{...a,href:s,icon:C(()=>{let[p]=$(n),{url:d,title:u=""}=p||{};return d?C(q,{src:d,alt:u,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Be,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Ie=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l,priority:p,unoptimized:d})=>{let[u]=$(t);if(!u){let G=o.previewMode==="editor"&&o.isContextualEditing,Y=e?._id?.includes("placeholder_");return!G||Y||!e.variant?null:C("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:C(ye,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:v,title:K=""}=u;return C(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:v,alt:K,fill:!0,unoptimized:d,priority:p,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l})};import{jsx as T,jsxs as Ve}from"react/jsx-runtime";var Se=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,demoHeroMedia:m,demoHeroContent:l,demoHeroCTA:p,textAlignmentClass:d,buttonAlignmentClass:u})=>T(P,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:Ve("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),Ve("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:f("flex flex-col gap-4",d),children:l}),T("div",{className:f("flex flex-wrap gap-2 items-center",u),children:p})]})]})});import{jsx as Q,jsxs as Oe}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,demoHeroMedia:s,demoHeroContent:m,demoHeroCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>Oe(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[Q("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),Oe(P,{className:"relative flex flex-col gap-8",children:[Q("div",{className:f("flex flex-col gap-4",p),children:m}),Q("div",{className:f("flex flex-wrap gap-2 items-center",d),children:l})]})]});var ke=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>f("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}},{});import{Fragment as Z,jsx as g,jsxs as Eo}from"react/jsx-runtime";var D=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p,titleText:d,titleTag:u,titleSize:v,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:bt,titleDecoration:Nt,titleLetterSpacing:Tt,titleLineCountRestrictions:Ft,descriptionText:wt,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:Ot,descriptionLineCountRestrictions:Dt,primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt,image:jt,imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo,contentAlignment:ce,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,height:go,isFlexibleHero:fe=!1,component:x,context:y,slots:Pe})=>{let ue=x.variant,Co=fe?g(Ue,{data:x,context:y,slot:Pe.flexibleHeroContent}):Eo(Z,{children:[g(O,{...R({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p},"eyebrowTitle"),component:x,context:y,parameterId:"eyebrowTitleText"}),g(O,{...R({titleText:d,titleTag:u,titleSize:v,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:bt,titleDecoration:Nt,titleLetterSpacing:Tt,titleLineCountRestrictions:Ft},"title"),component:x,context:y,parameterId:"titleText"}),g(O,{...R({descriptionText:wt,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:St,descriptionLetterSpacing:Ot,descriptionLineCountRestrictions:Dt},"description"),component:x,context:y,parameterId:"descriptionText"})]}),xo=fe?g(Ue,{data:x,context:y,slot:Pe.flexibleHeroCta}):g(Z,{children:g(Le,{...R({primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Xt,primaryButtonIconPosition:Jt,primaryButtonHoverButtonColor:Qt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:x,context:y,parameterId:"primaryButtonText"})}),ge={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,fitHeight:uo,height:go,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:ke({contentAlignment:ce}),demoHeroMedia:g(Z,{children:g(Ie,{image:jt,...R({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo},"image"),component:x,context:y})}),demoHeroContent:Co,demoHeroCTA:xo};switch(ue){case"columns":case"columnsReverse":return g(Se,{...ge});default:return g(De,{...ge})}};import{jsx as Bo}from"react/jsx-runtime";var Ao=(e,o)=>{if(e)return e;if(o)return"0.3"},ze=({textColor:e,overlayAutoTint:o,enableOverlayAutoTint:t,...r})=>{let a=Ao(o,t);return Bo(D,{...r,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||r.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"5xl",desktop:"5xl"},titleWeight:"bold",titleColor:e||r.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||r.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-light",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!r.component.variant&&a?e:void 0,imageOverlayOpacity:a,spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!r.component.variant,isFlexibleHero:!1})};import{jsx as Lo}from"react/jsx-runtime";var We=e=>Lo(D,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Ke("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Ke("div",{className:"mx-40 h-20 w-full"})};default:return c}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),J=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(J||{}),Ge=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ge||{}),Vo={FixedHero:ze,FlexibleHero:We},Ba=Vo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var Ye=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>k(he,{logo:k(j,{context:e,slot:t.footerLogo,data:o}),copyright:k(j,{context:e,slot:t.footerCopyright,data:o}),content:k(j,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var So=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ee("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ee("div",{className:"h-20 w-48"})};default:return c}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),Wa=Ye;import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var qe=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>M(Re,{sticky:i.variant==="sticky",leftSection:M(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:M(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:M(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>oe("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>oe("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>oe("div",{className:"h-20 w-48"})};default:return c}};var Je=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Je||{}),Xe=(o=>(o.Sticky="sticky",o))(Xe||{}),ri=qe;import Mo from"next/dynamic";import{jsx as ko}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>ko("div",{className:" mx-auto size-48"})};default:return c}};var Qe=(o=>(o.Items="imageGalleryItems",o))(Qe||{}),di=Mo(()=>import("./image-gallery-F6JLG7XW.mjs").then(e=>e.ImageGallery));import Uo from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var _o=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Ze("div",{className:"h-40 w-48"})};default:return c}};var yi=Uo(()=>import("./navigation-flyout-MXIJA6PC.mjs").then(e=>e.NavigationFlyout));import Ko from"next/dynamic";import{jsx as Wo}from"react/jsx-runtime";var zo=e=>{switch(e.slotName){case"links":return{component:()=>Wo("div",{className:"h-40 w-48"})};default:return c}};var Ei=Ko(()=>import("./navigation-group-DEN3D2BO.mjs").then(e=>e.NavigationGroup));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Go=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>_(be,{backgroundColor:r,header:_(re,{context:t,slot:e.pageHeader,data:o,children:a}),footer:_(re,{context:t,slot:e.pageFooter,data:o,children:n}),children:_(re,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as ae}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>ae("div",{className:"h-40"})};case"pageContent":return{component:()=>ae("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>ae("div",{className:"h-40"})};default:return c}};var je=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(je||{});import{UniformSlot as ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as F}from"react/jsx-runtime";var $o=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?F("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};default:return c}};var ie=(o=>(o.MultiColumn="multiColumn",o))(ie||{}),et=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(et||{});import{jsx as w,jsxs as tt}from"react/jsx-runtime";var ot=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:u,ReviewContent:v})=>w(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:tt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[w("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),tt("div",{className:"ml-6",children:[u,w("div",{className:"py-4",children:w(V,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),w("div",{className:"flex flex-col gap-y-5",children:v})]})]})});import{jsx as b,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:u,ReviewContent:v})=>b(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("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:u})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(V,{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:v})]})});import{jsx as H}from"react/jsx-runtime";var qo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:H(ne,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:H(ne,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:H(ne,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return H(at,{...i});default:return H(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as se}from"react/jsx-runtime";var Xo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:se("div",{className:"size-full"})};case"sectionContent":return{component:()=>se("div",{className:"h-20"})};case"sectionCTA":return{component:()=>se("div",{className:"mx-40 h-20 w-full"})};default:return c}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),me=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(me||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as E,jsxs as st}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,sectionMedia:m,sectionContent:l,sectionCTA:p,textAlignmentClass:d,buttonAlignmentClass:u})=>E(P,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:st("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[E("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:E("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),st("div",{className:"flex flex-col justify-center gap-8",children:[E("div",{className:f("flex flex-col gap-4",d),children:l}),E("div",{className:f("flex flex-wrap gap-2",u),children:p})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,sectionMedia:s,sectionContent:m,sectionCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>lt(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),lt(P,{className:"relative flex flex-col gap-8",children:[le("div",{className:f("flex flex-col gap-4",p),children:m}),le("div",{className:f("flex flex-wrap gap-2",d),children:l})]})]});var dt=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>f("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as A}from"react/jsx-runtime";var Jo=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>{let d=t.variant,u={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:A(pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:A(pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:A(pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return A(mt,{...u});default:return A(pt,{...u})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:o})=>f("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 Zo}from"react/jsx-runtime";var Qo=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d})=>N(P,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d,children:N("div",{className:"overflow-x-auto",children:Zo("table",{className:ft({size:e,textColor:o}),children:[N("thead",{children:N(Pt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var jo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return c}};var gt=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(gt||{});import{UniformSlot as W}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var er=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>U("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>U("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>U("div",{className:"h-20 w-64"})};default:return c}};var xt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(xt||{}),Ct=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Ct||{});import{jsx as B,jsxs as or}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>B(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:or("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[B("div",{children:r}),B("div",{className:"my-8",children:o}),B("div",{className:"size-10 rounded-full",children:e}),B("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as L,jsxs as z}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>L(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:z("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[L("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),z("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:o}),z("div",{className:"flex items-center justify-between",children:[z("div",{className:"flex items-center gap-x-4",children:[L("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),L("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as I,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>I(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:I(P,{className:"pb-10 lg:pb-0",children:de("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[I("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}),de("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),de("div",{className:"flex items-center justify-between",children:[I("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as h}from"react/jsx-runtime";var tr=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>{let p=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,testimonialPrimaryImage:h(W,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:h(W,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:h(W,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:h(W,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(p){case"withLargeAvatar":return h(yt,{...d});case"withOverlappingImage":return h(ht,{...d});default:return h(vt,{...d})}};export{vo as a,Fe as b,ho as c,No as d,He as e,we as f,Ro as g,Ae as h,Ir as i,Fo as j,_e as k,J as l,Ge as m,Ba as n,Io as o,$e as p,Wa as q,So as r,Je as s,Xe as t,ri as u,Oo as v,Qe as w,di as x,Do as y,yi as z,_o as A,Ei as B,zo as C,Go as D,je as E,Yo as F,qo as G,ie as H,et as I,$o as J,Jo as K,nt as L,me as M,it as N,Xo as O,Qo as P,gt as Q,jo as R,tr as S,xt as T,Ct as U,er as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as P,b as c}from"./chunk-YUCUJWBO.mjs";import{a as e,c as l}from"./chunk-S7CSCIW4.mjs";import{jsx as y}from"react/jsx-runtime";var F=({className:r,wrapperClassName:o,direction:t,justifyContent:i,gap:a,alignItems:p,backgroundColor:u,spacing:v,border:x,fluidContent:d,fullHeight:s,fitHeight:n,height:m,children:g})=>{let f=P({height:m,fullHeight:s,fitHeight:n});return y(c,{backgroundColor:u,spacing:v,border:x,fluidContent:d,fullHeight:s,fitHeight:n,height:m,wrapperClassName:o,children:y("div",{className:l("flex",{[e(t,"flex-{value}")]:t,[e(i,"justify-{value}")]:i,[e(a,"gap-{value}")]:a,[e(p,"items-{value}")]:p,[e(f,"h-{value}")]:f},r),children:g})})};import{jsx as h}from"react/jsx-runtime";var b=({className:r,alignSelf:o,shrink:t,children:i})=>h("div",{className:l({[e(o,"self-{value}")]:o,[`shrink-${t}`]:t},r),children:i});import w from"next/dynamic";var G=w(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{F as a,b,G as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,b as x,c as l}from"./chunk-S7CSCIW4.mjs";var p=({height:t,fullHeight:a,fitHeight:o})=>{if(t)return t;if(a)return"h-screen";if(o)return"h-full"};import{jsx as V}from"react/jsx-runtime";var S=({className:t,wrapperClassName:a,style:o,children:P,backgroundColor:g,spacing:b,border:m="",fluidContent:r=!1,fullHeight:H=!1,fitHeight:T=!1,height:C,maxWidth:n,...y})=>{let[L,{marginTop:s,marginBottom:u,marginRight:f,marginLeft:d,paddingTop:h,paddingBottom:v,paddingRight:c,paddingLeft:w}]=x(b),i=p({height:C,fullHeight:H,fitHeight:T});return V("div",{className:l("px-4 xl:px-0",{"!px-0":r,"mx-auto w-full":!r,"max-w-7xl max-w-container-width":!n&&!r,[`max-w-${n}`]:!!n&&!r,[e(i,"h-{value}")]:i},a),children:V("div",{className:l({[`bg-${g}`]:!!g,[e(s,"mt-{value}")]:s,[e(u,"mb-{value}")]:u,[e(f,"mr-{value}")]:f,[e(d,"ml-{value}")]:d,[e(h,"pt-{value}")]:h,[e(v,"pb-{value}")]:v,[e(c,"pr-{value}")]:c,[e(w,"pl-{value}")]:w,[e(m,"{value}")]:m,[e(i,"h-{value}")]:i},t),style:{...L,...o},...y,children:P})})};export{p as a,S as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v,b as d}from"./chunk-YUCUJWBO.mjs";import{a as e,c as i}from"./chunk-S7CSCIW4.mjs";import{jsx as f}from"react/jsx-runtime";var w=({className:l,columnsCount:a,gapX:o,gapY:r,backgroundColor:t,spacing:m,border:C,fluidContent:b,fullHeight:p,fitHeight:n,height:s,children:A})=>{let u=v({height:s,fullHeight:p,fitHeight:n});return f(d,{backgroundColor:t,spacing:m,border:C,fluidContent:b,fullHeight:p,fitHeight:n,height:s,children:f("div",{className:i("grid",{[e(a,"grid-cols-{value}")]:a,[e(o,"gap-x-{value}")]:o,[e(r,"gap-y-{value}")]:r,[e(u,"h-{value}")]:u},l),children:A})})};import{jsx as P}from"react/jsx-runtime";var G=({className:l,columnStart:a,columnSpan:o,rowStart:r,rowSpan:t,children:m})=>P("div",{className:i({[e(a,"col-start-{value}")]:a,[e(o,"col-{value}")]:o,[e(r,"row-start-{value}")]:r,[e(t,"row-{value}")]:t},l),children:m});export{w as a,G as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-
|
|
1
|
+
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-LX5AG5F7.mjs";import{d}from"../../chunk-2SEOCBRK.mjs";import{d as s}from"../../chunk-FPOIJMYT.mjs";import"../../chunk-4LWAGTFW.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-QHIWJPL6.mjs";import{d as r}from"../../chunk-LA36HQWS.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-Z7JSWSPD.mjs";import"../../chunk-BK7UG4U4.mjs";import"../../chunk-YUCUJWBO.mjs";import"../../chunk-3PDY7RJC.mjs";import"../../chunk-2YTACEBA.mjs";import{b as o}from"../../chunk-MSXDLSXH.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";var u={accordion:e,banner:r,card:m,carousel:l,countdown:t,flexibleHero:a,footer:p,header:i,imageGallery:c,modal:d,navigationFlyout:y,navigationGroup:n,page:P,review:h,section:E,table:f,tabs:s,testimonial:g},K=u,L=o(u);export{K as default,L as emptyPlaceholderResolver};
|
|
@@ -7,11 +7,12 @@ import { ComponentMapping } from '../../utils/createComponentResolver.mjs';
|
|
|
7
7
|
import { SpaceType, ViewPort } from '../../types/cskTypes.mjs';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { FC } from 'react';
|
|
10
|
-
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-
|
|
10
|
+
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-B9eeSbLG.mjs';
|
|
11
11
|
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
12
12
|
import { AssetParamValue } from '@uniformdev/assets';
|
|
13
13
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
14
14
|
|
|
15
|
+
type HeightType = 'full' | 'screen' | 'svh' | 'lvh' | 'dvh' | 'min' | 'max' | 'fit';
|
|
15
16
|
type ContainerParameters = {
|
|
16
17
|
displayName?: string;
|
|
17
18
|
anchor?: string;
|
|
@@ -19,8 +20,11 @@ type ContainerParameters = {
|
|
|
19
20
|
spacing?: SpaceType | ViewPort<SpaceType>;
|
|
20
21
|
border?: string | ViewPort<string>;
|
|
21
22
|
fluidContent?: boolean;
|
|
23
|
+
/** @deprecated Use height prop instead */
|
|
22
24
|
fullHeight?: boolean;
|
|
25
|
+
/** @deprecated Use height prop instead */
|
|
23
26
|
fitHeight?: boolean;
|
|
27
|
+
height?: HeightType | ViewPort<HeightType>;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
declare const Accordion: FC<AccordionProps>;
|
|
@@ -231,7 +235,11 @@ type DemoHeroParameters = ContainerParameters & {
|
|
|
231
235
|
} & EyebrowTitleTextParameters & TitleTextParameters & DescriptionTextParameters & PrimaryButtonParameters & SecondaryButtonParameters & ImageParameters$1;
|
|
232
236
|
type FixedHeroParameters = {
|
|
233
237
|
textColor?: string;
|
|
238
|
+
/**
|
|
239
|
+
* @deprecated Use overlayAutoTint instead.
|
|
240
|
+
*/
|
|
234
241
|
enableOverlayAutoTint?: boolean;
|
|
242
|
+
overlayAutoTint?: string;
|
|
235
243
|
} & DemoHeroParameters;
|
|
236
244
|
type FlexibleHeroParameters = DemoHeroParameters;
|
|
237
245
|
declare enum DemoHeroVariants {
|
|
@@ -377,6 +385,7 @@ type ImageParameters = {
|
|
|
377
385
|
border?: string | ViewPort<string>;
|
|
378
386
|
priority?: boolean;
|
|
379
387
|
unoptimized?: boolean;
|
|
388
|
+
fill?: boolean;
|
|
380
389
|
};
|
|
381
390
|
type ImageProps = ComponentProps<ImageParameters>;
|
|
382
391
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,Nt.prototype)}},y=class Bt{constructor(e){ao(this,"options");var t,o,a,p,i;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let s=e.fetch;if(!s)if(typeof window<"u")s=window.fetch.bind(window);else if(typeof fetch<"u")s=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:s,apiHost:this.ensureApiHost(e.apiHost),apiKey:(t=e.apiKey)!=null?t:null,projectId:(o=e.projectId)!=null?o:null,bearerToken:(a=e.bearerToken)!=null?a:null,limitPolicy:(p=e.limitPolicy)!=null?p:io,bypassCache:(i=e.bypassCache)!=null?i:!1}}async apiClient(e,t){return(await this.apiClientWithResponse(e,t)).body}async apiClientWithResponse(e,t){return this.options.limitPolicy(async()=>{var o;let a=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(a["x-bypass-cache"]="true");let{fetch:p,signal:i}=this.options,n=await po(()=>p(e.toString(),{...t,signal:i,headers:{...t?.headers,...a}}));if(!n.ok){let m="";try{let l=await n.text();try{let c=JSON.parse(l);c.errorMessage?m=Array.isArray(c.errorMessage)?c.errorMessage.join(", "):c.errorMessage:m=l}catch{m=l}}catch{m="General error"}throw new so(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,Bt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function po(r){var e;let o=5,a;for(;o>0&&(a=await r(),a.status===429);){let p=0;try{let n=a.clone(),m=n.headers.get("date"),l=m?new Date(m).getTime():void 0,c=await n.json(),u=(e=c?.info)==null?void 0:e.reset;typeof l=="number"&&typeof u=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(u-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var _,mo=class q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(q,_),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(q,_));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;I(mo,_,"/api/v2/aggregate");var Ee,lo=class kt extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(kt,Ee),{...e,projectId:t});return await this.apiClient(o)}};Ee=new WeakMap;I(lo,Ee,"/api/v2/dimension");var V,Y,Ft=class F extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(F,V),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(h(F,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(h(F,Y));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;Y=new WeakMap;I(Ft,V,"/api/v1/enrichments");I(Ft,Y,"/api/v1/enrichment-values");var Me,co=class Ut extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Ut,Me),{...e,projectId:t});return await this.apiClient(o)}async publish(){let{projectId:e}=this.options,t=this.createUrl("/api/v1/publish",{siteId:e});await this.apiClient(t,{method:"POST",expectNoContent:!0})}};Me=new WeakMap;I(co,Me,"/api/v2/manifest");var L,uo=class J extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(J,L),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(J,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;I(uo,L,"/api/v2/quirk");var R,fo=class K extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;I(fo,R,"/api/v2/signal");var G,ho=class Q extends y{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(h(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;I(ho,G,"/api/v2/test");import{createVariableReference as Co,parseVariableExpression as yo}from"@uniformdev/canvas";var _t=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||_t("Cannot "+t),X=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),Vt=(r,e,t)=>e.has(r)?_t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Po=(r,e,t,o)=>($e(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),D=(r,e,t)=>($e(r,e,"access private method"),t);var Lt=class extends y{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:e}=this.options,t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)},this.getProjectMapDefinition=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map",{...e,projectId:t});return await this.apiClient(o)},this.upsertProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");return(await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t})})).projectMapId},this.deleteProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.upsertProjectMapNodes=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t,nodes:e.nodes.map(a=>({...a,node:{...this.cleanProjectMapNode(a.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.getSubtree=async e=>{var t;let o=this.setFetchOptions(e);o.tree="true";let a=this.createUrl("/api/v1/project-map-nodes",o),i={...(await this.apiClient(a)).tree},s=[i];for(;s&&s.length>0;){let n=s.pop(),m;(t=n?.children)==null||t.forEach(l=>{l.parent=Oe(n),l.previousSibling=Oe(m),m&&(m.nextSibling=Oe(l)),m=l,s.push(l)})}return i},this.getNodes=async e=>{let t=this.setFetchOptions(e),o=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(o)}}setFetchOptions(r){let{projectId:e}=this.options,t={projectId:e};return Object.entries(r).forEach(([o,a])=>{if(a!==void 0){if(typeof a=="boolean"){if(!a)return;t[o]="true";return}if(typeof a=="number"){t[o]=a.toString(10);return}t[o]=a}}),t}cleanProjectMapNode(r){var e,t,o;return{id:((o=(t=(e=r.id)==null?void 0:e.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:t.length)!=null?o: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 Oe=r=>r?{...r,parent:void 0,children:void 0}:void 0;var S,A,He,Z,We=class w{constructor(e){this.route=e,Vt(this,S);var t;Po(this,S,D(t=w,A,He).call(t,this.route))}get dynamicSegmentCount(){return X(this,S).segments.reduce((e,t)=>{var o;return D(o=w,A,Z).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=D(t=w,A,He).call(t,e),{segments:i}=X(this,S);if(a.length!==i.length)return{match:!1};let s={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let n=0;n<i.length;n++){let m=i[n],l=a[n];if(D(o=w,A,Z).call(o,m)){let c=m.slice(1);s.pathParams[c]=l,s.dynamicSegmentCount++}else if(m!==l)return{match:!1}}for(let[n,m]of X(this,S).queryParams)s.queryParams[n]=p.has(n)?p.get(n):m;return s}expand(e){let{dynamicInputValues:t={},allowedQueryParams:o=[],doNotEscapeVariables:a=!1}=e??{},p=X(this,S).segments.map(n=>{let m=w.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?je(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${je(n,a)}=${je(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(D(t=w,A,Z).call(t,e))return e.slice(w.dynamicSegmentPrefix.length)}};S=new WeakMap;A=new WeakSet;He=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[e,t]=r.split("?"),o=e.substring(1).split("/");o[o.length-1]===""&&o.pop();let a=new URLSearchParams(t);return{segments:o,queryParams:a}};Z=function(r){return r?r.startsWith(We.dynamicSegmentPrefix):!1};Vt(We,A);We.dynamicSegmentPrefix=":";function je(r,e){if(!e)return encodeURIComponent(r);let t=[];return yo(r.toString(10),(o,a)=>{a==="variable"?t.push(Co(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as ee}from"react/jsx-runtime";var Rt=r=>{switch(r){case"slash":return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return ee("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:ee("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as te,jsxs as go}from"react/jsx-runtime";var Dt=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let l=i?await(async()=>{let c=new Lt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:u}=await c.getNodes({path:s?.matchedRoute,includeAncestors:!0});return u?.length?Promise.all(u.map(async d=>{let x=d.pathSegment?.includes(":")&&d.compositionId?await new xo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:d.compositionId}).then(({composition:N})=>N&&Gt(N)?.pageTitle||d.name).catch(()=>d.name):d.name,T=d.type==="placeholder"?void 0:O(d.path,s.dynamicInputs);return{title:x,link:T}})):[]})():await(async()=>e?.reduce((c,u)=>{let{title:d,link:P}=Gt(u);return d?[...c,{title:d,link:g(P)}]:c},[])||[])();return l.length?te("ul",{className:f("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:l.map(({title:c,link:u},d)=>go("li",{className:"flex items-center",children:[!!d&&te("div",{className:"mx-2 size-[1em]",children:Rt(r)}),u?te(H,{variant:"link",textColor:o,className:f({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:u,children:c}):te(b,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${d}`))}):null};var ze=Dt;import{useMemo as vo}from"react";import{UniformText as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Et=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:c,textSize:u,hoverButtonColor:d,hoverTextColor:P,className:x,onClick:T,text:N})=>{let U=g(t),B=e.previewMode==="editor"&&e?.isContextualEditing,k=vo(()=>{let[he]=C(n),{url:M,title:br=""}=he||{};if(M)return{url:M,title:br}},[n]),ue=()=>{if(!k)return;let{url:he,title:M}=k;return re(v,{src:he,alt:M,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!N||!!k)&&!B?null:re(H,{variant:r.variant,href:U,border:l,size:c,onClick:T,className:x,textSize:u,isActive:e.matchedRoute===U,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:d,hoverTextColor:P,icon:re(ue,{}),iconPosition:m,children:re(bo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var qe=Et;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as Mt}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,className:c})=>Mt(lt,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,className:c,children:Mt(Io,{data:o,context:a,slot:t.containerContent})});var Ot=(e=>(e.ContainerContent="containerContent",e))(Ot||{});import{jsx as jt}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>jt("div",{className:f("flex w-full",`justify-${o||"center"}`),children:jt("div",{className:f({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ht}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:c,className:u,fitHeight:d,wrapperClassName:P})=>Ht(ft,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,fitHeight:d,wrapperClassName:P,className:u,children:Ht(wo,{data:l,context:c,slot:m.flexItem})});var Je=$t;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>Wt(ht,{alignSelf:r,shrink:e,children:Wt(To,{data:o,context:t,slot:a.inner})});import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var qt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,slots:m,component:l,context:c,className:u})=>zt(ct,{className:u,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,children:zt(So,{data:l,context:c,slot:m.gridInner})});var Jt=(e=>(e.GridInner="gridInner",e))(Jt||{}),Ke=qt;import{UniformSlot as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Kt}from"react/jsx-runtime";var Qt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Kt(dt,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Kt(Ao,{data:i,context:p,slot:s.inner})});var Yt=(e=>(e.Inner="inner",e))(Yt||{}),Qe=Qt;import{UniformText as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ye}from"react/jsx-runtime";var Xt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:c})=>{let[u]=C(r),{url:d,title:P=""}=u||{};return Ye(z,{icon:d?Ye(v,{src:d,alt:P,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Ye(No,{placeholder:"Text goes here",parameterId:"text",component:l,context:c})})};var Xe=Xt;import{jsx as Zt}from"react/jsx-runtime";var er=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:Zt("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:Zt($,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as tr}from"react/jsx-runtime";var ie=({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,unoptimized:n,context:m,component:l})=>{let[c]=C(r);if(!c)return tr(er,{context:m,component:l,width:t,height:o});let{url:u,title:d=""}=c;return tr(v,{containerStyle:{...t?{width:`${t}px`}:{},...o?{height:`${o}px`}:{}},src:u,alt:d,fill:!0,unoptimized:n,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i})};import{UniformSlot as Bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as rr}from"react/jsx-runtime";var or=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>rr(j,{link:g(o),openInNewTab:a,children:rr(Bo,{data:r,context:e,slot:t.linkContent})});var ar=(e=>(e.LinkContent="linkContent",e))(ar||{}),Ze=or;import{UniformText as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as nr}from"react/jsx-runtime";var ir=({href:r,isExternalLink:e,children:t})=>r?nr(j,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):nr("div",{className:"cursor-pointer",children:t});import{jsx as E}from"react/jsx-runtime";var sr=({icon:r,link:e,activeState:t,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,component:u,context:d,hoverEffect:P="",className:x})=>{let T=g(e),N=t&&O(d.matchedRoute,d.dynamicInputs)===T,[U]=C(r),{url:B,title:k=""}=U||{},ue=()=>B?B.endsWith(".svg")?E(ut,{src:B,alt:k,fill:!0}):E(v,{src:B,alt:k,fill:!0}):null,fe=f("transition-all duration-150",{[Pe(P,"group-hover:{value}")]:!!P,[Pe(P,"{value}")]:!!P&&N});return E(ir,{href:T,isExternalLink:mt(T),children:E(z,{icon:ue(),className:f("group",x),iconClassName:fe,textClassName:fe,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,children:E(ko,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:u,context:d})})})};var et=sr;import{UniformRichText as Fo}from"@uniformdev/canvas-next-rsc/component";import{jsx as pr}from"react/jsx-runtime";var mr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>pr(b,{lineCountRestrictions:e,color:r,font:t,children:pr(Fo,{className:f("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var tt=mr;import{jsx as Uo}from"react/jsx-runtime";var se=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return Uo("div",{className:f({[`w-${r}`]:t,[`h-${r}`]:!t})})};var rt=(e=>(e.Horizontal="horizontal",e))(rt||{});import{UniformSlot as _o}from"@uniformdev/canvas-next-rsc/component";import{jsx as Vo}from"react/jsx-runtime";var lr=({slots:r,component:e,context:t})=>Vo(_o,{data:e,context:t,slot:r.tabContent});var cr=(e=>(e.TabContent="tabContent",e))(cr||{}),ot=lr;import{UniformSlot as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as at}from"react/jsx-runtime";var pe=({component:r,context:e,slots:t,alignment:o})=>at("td",{children:at("div",{className:f("w-fit",dr[o||"left"]),children:at(Lo,{slot:t.tableCustomCellContent,context:e,data:r})})});var dr={left:"ml-0",center:"mx-auto",right:"ml-auto"},ur=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ur||{});import{UniformText as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var me=({component:r,context:e})=>fr("td",{children:fr(Ro,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var le=({component:r,context:e})=>hr("th",{children:hr(Go,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var ce=({slots:r,component:e,context:t})=>Pr("tr",{children:Pr(Do,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Cr}from"react/jsx-runtime";var yr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:c})=>Cr(b,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Cr(Eo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:c})});var nt=yr;import Mo from"next/dynamic";var it=Mo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as Oo}from"react/jsx-runtime";var xr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:Oo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as gr}from"react/jsx-runtime";var de=({video:r,url:e,placeholderImage:t,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l,component:c,context:u})=>{let[d]=C(r),[P]=C(t),x=d?.url||(e?.type==="url"?e.path:void 0);return x?gr(Pt,{url:x,placeholderImageUrl:P?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):gr(xr,{component:c,context:u})};var vr={accordion:{component:Ce},accordionItem:{component:Ve},badge:{component:Re},banner:{component:ye},button:{component:qe},card:{component:xe},carousel:{component:ge},container:{component:oe},countdown:{component:ve},divider:{component:ae},grid:{component:Ke},gridItem:{component:Qe},flex:{component:Je},flexItem:{component:ne},header:{component:Ie},section:{component:ke},iconLabel:{component:Xe},image:{component:ie},page:{component:Ne},richText:{component:tt},spacer:{component:se},text:{component:nt},video:{component:de},tabs:{component:Ue},tab:{component:ot},table:{component:Fe},tableRow:{component:ce},tableHeaderCell:{component:le},tableDataCell:{component:me},tableCustomCell:{component:pe},modal:{component:Te},imageGallery:{component:we},testimonial:{component:_e},breadcrumbs:{component:ze},review:{component:Be},navigationLink:{component:et},navigationGroup:{component:Ae},navigationFlyout:{component:Se},footer:{component:be},themeSwitcher:{component:it},link:{component:Ze},fixedHero:{component:W.FixedHero},flexibleHero:{component:W.FlexibleHero}},ap=vr,np=pt(vr);export{Ce as Accordion,Ve as AccordionItem,Ct as AccordionItemSlots,wr as AccordionSlots,Re as Badge,ye as Banner,Tr as BannerContentAlignment,Sr as BannerSlots,ze as Breadcrumbs,qe as Button,xe as Card,Nr as CardSlots,Ar as CardVariants,ge as Carousel,Br as CarouselSlots,Mr as CommonPageSlots,oe as Container,Ot as ContainerSlots,ve as Countdown,kr as CountdownSlots,Fr as CountdownVariants,W as DemoHero,Ur as DemoHeroContentAlignment,_r as DemoHeroVariants,ae as Divider,Je as Flex,ne as FlexItem,Vr as FlexibleHeroSlots,be as Footer,Lr as FooterSlots,Ke as Grid,Qe as GridItem,Yt as GridItemSlots,Jt as GridSlots,Ie as Header,Rr as HeaderSlots,Gr as HeaderVariants,Xe as IconLabel,ie as Image,we as ImageGallery,Dr as ImageGallerySlots,Ze as Link,ar as LinkSlots,Te as Modal,Er as ModalSlots,Se as NavigationFlyout,Ae as NavigationGroup,et as NavigationLink,Ne as Page,Be as Review,jr as ReviewSlots,Or as ReviewVariants,tt as RichText,ke as Section,Hr as SectionContentAlignment,Wr as SectionSlots,$r as SectionVariants,se as Spacer,rt as SpacerVariants,ot as Tab,cr as TabSlots,Fe as Table,pe as TableCustomCell,ur as TableCustomCellSlots,me as TableDataCell,le as TableHeaderCell,ce as TableRow,zr as TableSlots,Ue as Tabs,Jr as TabsSlots,qr as TabsVariants,_e as Testimonial,Qr as TestimonialSlots,Kr as TestimonialVariants,nt as Text,it as ThemeSwitcher,de as Video,np as componentResolver,vr as cskComponentsMapping,ap as default};
|
|
1
|
+
import{a as ft}from"../../chunk-TM7Q5NMH.mjs";import{a as ht,b as Pt,c as Ct}from"../../chunk-M3BGP5VE.mjs";import{a as q}from"../../chunk-AKRWCDDG.mjs";import{a as mt}from"../../chunk-56OQGKRM.mjs";import{B as Ae,D as Ne,E as Mr,G as Be,H as Or,I as jr,K as ke,L as Hr,M as Wr,N as $r,P as Fe,Q as zr,S as _e,T as Kr,U as Qr,a as Ce,b as wr,d as xe,e as Ar,f as Nr,h as Br,i as ge,k as Ur,l as _r,m as Vr,n as z,p as Lr,q as be,s as Rr,t as Gr,u as Ie,w as Dr,x as we,z as Se}from"../../chunk-LX5AG5F7.mjs";import{b as Er,c as Te}from"../../chunk-2SEOCBRK.mjs";import{a as qr,b as Jr,c as Ue}from"../../chunk-FPOIJMYT.mjs";import{a as H,b as W,d as $}from"../../chunk-4LWAGTFW.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as g}from"../../chunk-QHIWJPL6.mjs";import{a as Tr,b as Sr,c as ye}from"../../chunk-LA36HQWS.mjs";import{a as kr,b as Fr,c as ve}from"../../chunk-2UV7TQNF.mjs";import{a as dt,b as ut}from"../../chunk-Z7JSWSPD.mjs";import{a as w}from"../../chunk-BK7UG4U4.mjs";import{b as ct}from"../../chunk-YUCUJWBO.mjs";import"../../chunk-3PDY7RJC.mjs";import{a as y}from"../../chunk-2YTACEBA.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as j,c as I,d as lt}from"../../chunk-RX4IAAQQ.mjs";import{a as Pe,c as h}from"../../chunk-S7CSCIW4.mjs";import{a as pt,b as Ir}from"../../chunk-YEKQJ4YC.mjs";var wt=pt((na,It)=>{"use strict";var Ge=class{constructor(e){this.value=e,this.next=void 0}},De=class{constructor(){this.clear()}enqueue(e){let t=new Ge(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};It.exports=De});var St=pt((ia,Tt)=>{"use strict";var eo=wt(),to=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new eo,t=0,o=()=>{t--,e.size>0&&e.dequeue()()},a=async(s,n,...m)=>{t++;let l=(async()=>s(...m))();n(l);try{await l}catch{}o()},p=(s,n,...m)=>{e.enqueue(a.bind(null,s,n,...m)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},i=(s,...n)=>new Promise(m=>{p(s,m,...n)});return Object.defineProperties(i,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),i};Tt.exports=to});import Yr from"next/dynamic";var yt=(e=>(e.AccordionItemContent="accordionItemContent",e))(yt||{}),Ve=Yr(()=>import("../../accordion-item-G5CNMERW.mjs").then(r=>r.AccordionItem));import{UniformText as Xr}from"@uniformdev/canvas-next-rsc/component";import{jsx as xt}from"react/jsx-runtime";var gt=({className:r,...e})=>xt("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:h("w-1.5 h-1.5",r),...e,children:xt("circle",{r:"3",cx:"3",cy:"3"})});var vt=({pill:r,size:e,dotColor:t,borderColor:o,backgroundColor:a})=>h("inline-flex items-center w-fit",{"rounded-full":r,"rounded-md":!r,"gap-x-1.5":!!t,[`ring-1 ring-inset ring-${o}`]:!!o,[`bg-${a}`]:!!a,[`p-${e}`]:e});import{jsx as Le,jsxs as Zr}from"react/jsx-runtime";var bt=({component:r,context:e,textColor:t,backgroundColor:o,borderColor:a,dotColor:p,pill:i=!1,size:s})=>Zr("div",{className:vt({pill:i,size:s,dotColor:p,borderColor:a,backgroundColor:o}),children:[p&&Le(gt,{className:h({[`fill-${p}`]:p})}),Le(g,{color:t,size:"xs",children:Le(Xr,{placeholder:"Badge text goes here",parameterId:"text",component:r,context:e})})]});var Re=bt;import{flattenValues as Dt,CanvasClient as xo}from"@uniformdev/canvas";var Nt=Ir(St(),1),ro=Object.defineProperty,At=r=>{throw TypeError(r)},oo=(r,e,t)=>e in r?ro(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ao=(r,e,t)=>oo(r,typeof e!="symbol"?e+"":e,t),no=(r,e,t)=>e.has(r)||At("Cannot "+t),P=(r,e,t)=>(no(r,e,"read from private field"),t?t.call(r):e.get(r)),T=(r,e,t)=>e.has(r)?At("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var io=(0,Nt.default)(6),so=class Bt extends Error{constructor(e,t,o,a,p,i){super(`${e}
|
|
2
|
+
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,Bt.prototype)}},v=class kt{constructor(e){ao(this,"options");var t,o,a,p,i;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let s=e.fetch;if(!s)if(typeof window<"u")s=window.fetch.bind(window);else if(typeof fetch<"u")s=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:s,apiHost:this.ensureApiHost(e.apiHost),apiKey:(t=e.apiKey)!=null?t:null,projectId:(o=e.projectId)!=null?o:null,bearerToken:(a=e.bearerToken)!=null?a:null,limitPolicy:(p=e.limitPolicy)!=null?p:io,bypassCache:(i=e.bypassCache)!=null?i:!1}}async apiClient(e,t){return(await this.apiClientWithResponse(e,t)).body}async apiClientWithResponse(e,t){return this.options.limitPolicy(async()=>{var o;let a=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(a["x-bypass-cache"]="true");let{fetch:p,signal:i}=this.options,n=await po(()=>p(e.toString(),{...t,signal:i,headers:{...t?.headers,...a}}));if(!n.ok){let m="";try{let l=await n.text();try{let d=JSON.parse(l);d.errorMessage?m=Array.isArray(d.errorMessage)?d.errorMessage.join(", "):d.errorMessage:m=l}catch{m=l}}catch{m="General error"}throw new so(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,kt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function po(r){var e;let o=5,a;for(;o>0&&(a=await r(),a.status===429);){let p=0;try{let n=a.clone(),m=n.headers.get("date"),l=m?new Date(m).getTime():void 0,d=await n.json(),c=(e=d?.info)==null?void 0:e.reset;typeof l=="number"&&typeof c=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(c-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var V,mo=class J extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(J,V),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;T(mo,V,"/api/v2/aggregate");var Ee,lo=class Ft extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Ft,Ee),{...e,projectId:t});return await this.apiClient(o)}};Ee=new WeakMap;T(lo,Ee,"/api/v2/dimension");var L,X,Ut=class _ extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_,L),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;X=new WeakMap;T(Ut,L,"/api/v1/enrichments");T(Ut,X,"/api/v1/enrichment-values");var Me,co=class _t extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_t,Me),{...e,projectId:t});return await this.apiClient(o)}async publish(){let{projectId:e}=this.options,t=this.createUrl("/api/v1/publish",{siteId:e});await this.apiClient(t,{method:"POST",expectNoContent:!0})}};Me=new WeakMap;T(co,Me,"/api/v2/manifest");var R,uo=class K extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;T(uo,R,"/api/v2/quirk");var G,fo=class Q extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;T(fo,G,"/api/v2/signal");var D,ho=class Y extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Y,D),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Y,D));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Y,D));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};D=new WeakMap;T(ho,D,"/api/v2/test");import{createVariableReference as Co,parseVariableExpression as yo}from"@uniformdev/canvas";var Vt=r=>{throw TypeError(r)},We=(r,e,t)=>e.has(r)||Vt("Cannot "+t),Z=(r,e,t)=>(We(r,e,"read from private field"),t?t.call(r):e.get(r)),Lt=(r,e,t)=>e.has(r)?Vt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Po=(r,e,t,o)=>(We(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),E=(r,e,t)=>(We(r,e,"access private method"),t);var Rt=class extends v{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:e}=this.options,t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)},this.getProjectMapDefinition=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map",{...e,projectId:t});return await this.apiClient(o)},this.upsertProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");return(await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t})})).projectMapId},this.deleteProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.upsertProjectMapNodes=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t,nodes:e.nodes.map(a=>({...a,node:{...this.cleanProjectMapNode(a.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.getSubtree=async e=>{var t;let o=this.setFetchOptions(e);o.tree="true";let a=this.createUrl("/api/v1/project-map-nodes",o),i={...(await this.apiClient(a)).tree},s=[i];for(;s&&s.length>0;){let n=s.pop(),m;(t=n?.children)==null||t.forEach(l=>{l.parent=Oe(n),l.previousSibling=Oe(m),m&&(m.nextSibling=Oe(l)),m=l,s.push(l)})}return i},this.getNodes=async e=>{let t=this.setFetchOptions(e),o=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(o)}}setFetchOptions(r){let{projectId:e}=this.options,t={projectId:e};return Object.entries(r).forEach(([o,a])=>{if(a!==void 0){if(typeof a=="boolean"){if(!a)return;t[o]="true";return}if(typeof a=="number"){t[o]=a.toString(10);return}t[o]=a}}),t}cleanProjectMapNode(r){var e,t,o;return{id:((o=(t=(e=r.id)==null?void 0:e.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:t.length)!=null?o: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 Oe=r=>r?{...r,parent:void 0,children:void 0}:void 0;var B,k,He,ee,$e=class S{constructor(e){this.route=e,Lt(this,B);var t;Po(this,B,E(t=S,k,He).call(t,this.route))}get dynamicSegmentCount(){return Z(this,B).segments.reduce((e,t)=>{var o;return E(o=S,k,ee).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=E(t=S,k,He).call(t,e),{segments:i}=Z(this,B);if(a.length!==i.length)return{match:!1};let s={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let n=0;n<i.length;n++){let m=i[n],l=a[n];if(E(o=S,k,ee).call(o,m)){let d=m.slice(1);s.pathParams[d]=l,s.dynamicSegmentCount++}else if(m!==l)return{match:!1}}for(let[n,m]of Z(this,B).queryParams)s.queryParams[n]=p.has(n)?p.get(n):m;return s}expand(e){let{dynamicInputValues:t={},allowedQueryParams:o=[],doNotEscapeVariables:a=!1}=e??{},p=Z(this,B).segments.map(n=>{let m=S.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?je(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${je(n,a)}=${je(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(E(t=S,k,ee).call(t,e))return e.slice(S.dynamicSegmentPrefix.length)}};B=new WeakMap;k=new WeakSet;He=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[e,t]=r.split("?"),o=e.substring(1).split("/");o[o.length-1]===""&&o.pop();let a=new URLSearchParams(t);return{segments:o,queryParams:a}};ee=function(r){return r?r.startsWith($e.dynamicSegmentPrefix):!1};Lt($e,k);$e.dynamicSegmentPrefix=":";function je(r,e){if(!e)return encodeURIComponent(r);let t=[];return yo(r.toString(10),(o,a)=>{a==="variable"?t.push(Co(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as te}from"react/jsx-runtime";var Gt=r=>{switch(r){case"slash":return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as F,jsxs as go}from"react/jsx-runtime";var Et=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let n=!s?.matchedRoute||s?.matchedRoute==="composition",d=i?await(async()=>{if(n)return[];let c=new Rt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:f}=await c.getNodes({path:s?.matchedRoute,includeAncestors:!0});return f?.length?Promise.all(f.map(async u=>{let x=u.pathSegment?.includes(":")&&u.compositionId?await new xo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:u.compositionId}).then(({composition:b})=>b&&Dt(b)?.pageTitle||u.name).catch(()=>u.name):u.name,A=u.type==="placeholder"?void 0:j(u.path,s.dynamicInputs);return{title:x,link:A}})):[]})():await(async()=>e?.reduce((c,f)=>{let{title:u,link:C}=Dt(f);return u?[...c,{title:u,link:I(C)}]:c},[])||[])();return n&&i?F("ul",{className:"flex items-center",children:F("li",{className:"flex items-center",children:F(g,{size:t,font:a,color:o,transform:p,children:"Breadcrumbs cannot be auto-generated because the project map is not accessible in this context."})})}):d.length?F("ul",{className:h("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:d.map(({title:c,link:f},u)=>go("li",{className:"flex items-center",children:[!!u&&F("div",{className:"mx-2 size-[1em]",children:Gt(r)}),f?F(W,{variant:"link",textColor:o,className:h({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:f,children:c}):F(g,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${u}`))}):null};var ze=Et;import{useMemo as vo}from"react";import{UniformText as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Mt=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:d,textSize:c,hoverButtonColor:f,hoverTextColor:u,className:C,onClick:x,text:A})=>{let b=I(t),N=e.previewMode==="editor"&&e?.isContextualEditing,U=vo(()=>{let[he]=y(n),{url:O,title:br=""}=he||{};if(O)return{url:O,title:br}},[n]),ue=()=>{if(!U)return;let{url:he,title:O}=U;return re(w,{src:he,alt:O,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!A||!!U)&&!N?null:re(W,{variant:r.variant,href:b,border:l,size:d,onClick:x,className:C,textSize:c,isActive:e.matchedRoute===b,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:f,hoverTextColor:u,icon:re(ue,{}),iconPosition:m,children:re(bo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var qe=Mt;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ot}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:d,className:c})=>Ot(ct,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:d,className:c,children:Ot(Io,{data:o,context:a,slot:t.containerContent})});var jt=(e=>(e.ContainerContent="containerContent",e))(jt||{});import{jsx as Ht}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>Ht("div",{className:h("flex w-full",`justify-${o||"center"}`),children:Ht("div",{className:h({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:d,className:c,fitHeight:f,wrapperClassName:u})=>Wt(ht,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,fitHeight:f,wrapperClassName:u,className:c,children:Wt(wo,{data:l,context:d,slot:m.flexItem})});var Je=$t;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>zt(Pt,{alignSelf:r,shrink:e,children:zt(To,{data:o,context:t,slot:a.inner})});import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as qt}from"react/jsx-runtime";var Jt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,slots:l,component:d,context:c,className:f})=>qt(dt,{className:f,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,children:qt(So,{data:d,context:c,slot:l.gridInner})});var Kt=(e=>(e.GridInner="gridInner",e))(Kt||{}),Ke=Jt;import{UniformSlot as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Qt}from"react/jsx-runtime";var Yt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Qt(ut,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Qt(Ao,{data:i,context:p,slot:s.inner})});var Xt=(e=>(e.Inner="inner",e))(Xt||{}),Qe=Yt;import{UniformText as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ye}from"react/jsx-runtime";var Zt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:d})=>{let[c]=y(r),{url:f,title:u=""}=c||{};return Ye(q,{icon:f?Ye(w,{src:f,alt:u,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Ye(No,{placeholder:"Text goes here",parameterId:"text",component:l,context:d})})};var Xe=Zt;import{imageFrom as Bo}from"@uniformdev/assets";import{jsx as er}from"react/jsx-runtime";var tr=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:er("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:er($,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as Ze}from"react/jsx-runtime";var ie=async({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,fill:n,unoptimized:m,context:l,component:d})=>{let[c]=y(r);if(!c)return Ze(tr,{context:l,component:d,width:t,height:o});let{focalPoint:f,title:u=""}=c,C=t||c.width,x=o||c.height;if(!n&&(!C||!x))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),Ze("img",{src:c.url,alt:u});let A=Bo(c?.url).transform({width:t,height:o,fit:e,focal:f}).url();return Ze(w,{src:A,alt:u,unoptimized:m,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i,...n?{fill:!0}:{width:C,height:x}})};import{UniformSlot as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as rr}from"react/jsx-runtime";var or=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>rr(H,{link:I(o),openInNewTab:a,children:rr(ko,{data:r,context:e,slot:t.linkContent})});var ar=(e=>(e.LinkContent="linkContent",e))(ar||{}),et=or;import{UniformText as Fo}from"@uniformdev/canvas-next-rsc/component";import{jsx as nr}from"react/jsx-runtime";var ir=({href:r,isExternalLink:e,children:t})=>r?nr(H,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):nr("div",{className:"cursor-pointer",children:t});import{jsx as M}from"react/jsx-runtime";var sr=({icon:r,link:e,activeState:t,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:d,component:c,context:f,hoverEffect:u="",className:C})=>{let x=I(e),A=t&&j(f.matchedRoute,f.dynamicInputs)===x,[b]=y(r),{url:N,title:U=""}=b||{},ue=()=>N?N.endsWith(".svg")?M(ft,{src:N,alt:U,fill:!0}):M(w,{src:N,alt:U,fill:!0}):null,fe=h("transition-all duration-150",{[Pe(u,"group-hover:{value}")]:!!u,[Pe(u,"{value}")]:!!u&&A});return M(ir,{href:x,isExternalLink:lt(x),children:M(q,{icon:ue(),className:h("group",C),iconClassName:fe,textClassName:fe,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:d,children:M(Fo,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:c,context:f})})})};var tt=sr;import{UniformRichText as Uo}from"@uniformdev/canvas-next-rsc/component";import{jsx as pr}from"react/jsx-runtime";var mr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>pr(g,{lineCountRestrictions:e,color:r,font:t,children:pr(Uo,{className:h("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var rt=mr;import{jsx as _o}from"react/jsx-runtime";var se=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return _o("div",{className:h({[`w-${r}`]:t,[`h-${r}`]:!t})})};var ot=(e=>(e.Horizontal="horizontal",e))(ot||{});import{UniformSlot as Vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Lo}from"react/jsx-runtime";var lr=({slots:r,component:e,context:t})=>Lo(Vo,{data:e,context:t,slot:r.tabContent});var cr=(e=>(e.TabContent="tabContent",e))(cr||{}),at=lr;import{UniformSlot as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as nt}from"react/jsx-runtime";var pe=({component:r,context:e,slots:t,alignment:o})=>nt("td",{children:nt("div",{className:h("w-fit",dr[o||"left"]),children:nt(Ro,{slot:t.tableCustomCellContent,context:e,data:r})})});var dr={left:"ml-0",center:"mx-auto",right:"ml-auto"},ur=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ur||{});import{UniformText as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var me=({component:r,context:e})=>fr("td",{children:fr(Go,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var le=({component:r,context:e})=>hr("th",{children:hr(Do,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var ce=({slots:r,component:e,context:t})=>Pr("tr",{children:Pr(Eo,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Mo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Cr}from"react/jsx-runtime";var yr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:d})=>Cr(g,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Cr(Mo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:d})});var it=yr;import Oo from"next/dynamic";var st=Oo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as jo}from"react/jsx-runtime";var xr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:jo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as gr}from"react/jsx-runtime";var de=({video:r,url:e,placeholderImage:t,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l,component:d,context:c})=>{let[f]=y(r),[u]=y(t),C=f?.url||(e?.type==="url"?e.path:void 0);return C?gr(Ct,{url:C,placeholderImageUrl:u?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):gr(xr,{component:d,context:c})};var vr={accordion:{component:Ce},accordionItem:{component:Ve},badge:{component:Re},banner:{component:ye},button:{component:qe},card:{component:xe},carousel:{component:ge},container:{component:oe},countdown:{component:ve},divider:{component:ae},grid:{component:Ke},gridItem:{component:Qe},flex:{component:Je},flexItem:{component:ne},header:{component:Ie},section:{component:ke},iconLabel:{component:Xe},image:{component:ie},page:{component:Ne},richText:{component:rt},spacer:{component:se},text:{component:it},video:{component:de},tabs:{component:Ue},tab:{component:at},table:{component:Fe},tableRow:{component:ce},tableHeaderCell:{component:le},tableDataCell:{component:me},tableCustomCell:{component:pe},modal:{component:Te},imageGallery:{component:we},testimonial:{component:_e},breadcrumbs:{component:ze},review:{component:Be},navigationLink:{component:tt},navigationGroup:{component:Ae},navigationFlyout:{component:Se},footer:{component:be},themeSwitcher:{component:st},link:{component:et},fixedHero:{component:z.FixedHero},flexibleHero:{component:z.FlexibleHero}},ip=vr,sp=mt(vr);export{Ce as Accordion,Ve as AccordionItem,yt as AccordionItemSlots,wr as AccordionSlots,Re as Badge,ye as Banner,Tr as BannerContentAlignment,Sr as BannerSlots,ze as Breadcrumbs,qe as Button,xe as Card,Nr as CardSlots,Ar as CardVariants,ge as Carousel,Br as CarouselSlots,Mr as CommonPageSlots,oe as Container,jt as ContainerSlots,ve as Countdown,kr as CountdownSlots,Fr as CountdownVariants,z as DemoHero,Ur as DemoHeroContentAlignment,_r as DemoHeroVariants,ae as Divider,Je as Flex,ne as FlexItem,Vr as FlexibleHeroSlots,be as Footer,Lr as FooterSlots,Ke as Grid,Qe as GridItem,Xt as GridItemSlots,Kt as GridSlots,Ie as Header,Rr as HeaderSlots,Gr as HeaderVariants,Xe as IconLabel,ie as Image,we as ImageGallery,Dr as ImageGallerySlots,et as Link,ar as LinkSlots,Te as Modal,Er as ModalSlots,Se as NavigationFlyout,Ae as NavigationGroup,tt as NavigationLink,Ne as Page,Be as Review,jr as ReviewSlots,Or as ReviewVariants,rt as RichText,ke as Section,Hr as SectionContentAlignment,$r as SectionSlots,Wr as SectionVariants,se as Spacer,ot as SpacerVariants,at as Tab,cr as TabSlots,Fe as Table,pe as TableCustomCell,ur as TableCustomCellSlots,me as TableDataCell,le as TableHeaderCell,ce as TableRow,zr as TableSlots,Ue as Tabs,Jr as TabsSlots,qr as TabsVariants,_e as Testimonial,Qr as TestimonialSlots,Kr as TestimonialVariants,it as Text,st as ThemeSwitcher,de as Video,sp as componentResolver,vr as cskComponentsMapping,ip as default};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, SVGProps, ReactElement, HTMLAttributes, ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-
|
|
4
|
-
export { a as ButtonVariant } from '../../index-
|
|
3
|
+
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-B9eeSbLG.mjs';
|
|
4
|
+
export { a as ButtonVariant } from '../../index-B9eeSbLG.mjs';
|
|
5
5
|
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
6
6
|
import { ViewPort } from '../../types/cskTypes.mjs';
|
|
7
7
|
import { ImageProps as ImageProps$1 } from 'next/image';
|
|
@@ -42,7 +42,7 @@ type Direction = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
|
42
42
|
type Justify = 'normal' | 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
43
43
|
type FlexGap = keyof DefaultTheme['spacing'];
|
|
44
44
|
type Align = 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
45
|
-
type FlexProps = Pick<ContainerProps, 'className' | 'wrapperClassName' | 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children'> & {
|
|
45
|
+
type FlexProps = Pick<ContainerProps, 'className' | 'wrapperClassName' | 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'height' | 'children'> & {
|
|
46
46
|
direction?: Direction | ViewPort<Direction>;
|
|
47
47
|
justifyContent?: Justify | ViewPort<Justify>;
|
|
48
48
|
gap?: FlexGap | ViewPort<FlexGap>;
|
|
@@ -62,7 +62,7 @@ declare const Grid: FC<GridProps>;
|
|
|
62
62
|
|
|
63
63
|
type AvailableColumnsCount = keyof DefaultTheme['gridTemplateColumns'];
|
|
64
64
|
type AvailableGap = keyof DefaultTheme['spacing'];
|
|
65
|
-
type GridProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children'> & {
|
|
65
|
+
type GridProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children' | 'height'> & {
|
|
66
66
|
columnsCount?: AvailableColumnsCount | ViewPort<AvailableColumnsCount>;
|
|
67
67
|
gapY?: AvailableGap | ViewPort<AvailableGap>;
|
|
68
68
|
gapX?: AvailableGap | ViewPort<AvailableGap>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-
|
|
1
|
+
import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-M3BGP5VE.mjs";import{a as i}from"../../chunk-AKRWCDDG.mjs";import{a as o}from"../../chunk-5VM2Y55L.mjs";import{a as t,b as r,c as a,d as m,e as x,f as y,g as n,h as I}from"../../chunk-4LWAGTFW.mjs";import{a as f,b as s,c as d}from"../../chunk-6TUDWIYU.mjs";import{a as l}from"../../chunk-QHIWJPL6.mjs";import{a as u,b as P}from"../../chunk-Z7JSWSPD.mjs";import{a as p}from"../../chunk-BK7UG4U4.mjs";import{b as e}from"../../chunk-YUCUJWBO.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";export{f as ArrowIcon,r as Button,a as ButtonVariant,o as Carousel,e as Container,c as Flex,g as FlexItem,x as Footer,u as Grid,P as GridItem,y as Header,i as IconLabel,p as Image,s as ImageIcon,t as Link,m as MediaPlaceholder,n as Page,I as Rating,l as Text,h as ThemeSwitcher,F as Video,d as VideoIcon};
|
|
@@ -13,10 +13,11 @@ export const Accordion: FC<AccordionProps> = ({
|
|
|
13
13
|
fluidContent,
|
|
14
14
|
fullHeight,
|
|
15
15
|
fitHeight,
|
|
16
|
+
height,
|
|
16
17
|
}) => (
|
|
17
18
|
<Container
|
|
18
19
|
className="flex flex-col gap-8"
|
|
19
|
-
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
20
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, height }}
|
|
20
21
|
>
|
|
21
22
|
<div className="flex flex-col gap-4 text-start">
|
|
22
23
|
<UniformSlot data={component} context={context} slot={slots.accordionContent} />
|
|
@@ -30,7 +30,7 @@ export const AccordionItem: FC<AccordionItemProps> = ({
|
|
|
30
30
|
const toggleOpenAccordion = useCallback(() => setOpened(isOpened => !isOpened), []);
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
|
-
<Container {...{ fluidContent: true
|
|
33
|
+
<Container {...{ fluidContent: true }}>
|
|
34
34
|
<Container {...{ backgroundColor, spacing, fluidContent: true, className }}>
|
|
35
35
|
<button onClick={toggleOpenAccordion} className="flex w-full flex-row items-center justify-between text-start">
|
|
36
36
|
<BaseText {...{ alignment, color, size, font, weight, transform, decoration, letterSpacing }}>
|
|
@@ -18,6 +18,10 @@ export const Breadcrumbs: FC<BreadcrumbsProps> = async ({
|
|
|
18
18
|
autoGenerate,
|
|
19
19
|
context,
|
|
20
20
|
}) => {
|
|
21
|
+
// Matched route is 'composition' — this means we're in the composition pattern,
|
|
22
|
+
// so we don't have access to the project map at this point.
|
|
23
|
+
const isInPattern = !context?.matchedRoute || context?.matchedRoute === 'composition';
|
|
24
|
+
|
|
21
25
|
const getManualBreadcrumbs = async (): Promise<BreadcrumbLink[]> =>
|
|
22
26
|
links?.reduce<BreadcrumbLink[]>((acc, item) => {
|
|
23
27
|
const { title, link } = flattenValues(item) as {
|
|
@@ -31,6 +35,8 @@ export const Breadcrumbs: FC<BreadcrumbsProps> = async ({
|
|
|
31
35
|
}, []) || [];
|
|
32
36
|
|
|
33
37
|
const getAutoBreadcrumbs = async (): Promise<BreadcrumbLink[]> => {
|
|
38
|
+
if (isInPattern) return [];
|
|
39
|
+
|
|
34
40
|
const client = new ProjectMapClient({
|
|
35
41
|
projectId: process.env.UNIFORM_PROJECT_ID,
|
|
36
42
|
apiKey: process.env.UNIFORM_API_KEY,
|
|
@@ -71,6 +77,18 @@ export const Breadcrumbs: FC<BreadcrumbsProps> = async ({
|
|
|
71
77
|
|
|
72
78
|
const itemToDisplay = autoGenerate ? await getAutoBreadcrumbs() : await getManualBreadcrumbs();
|
|
73
79
|
|
|
80
|
+
if (isInPattern && autoGenerate) {
|
|
81
|
+
return (
|
|
82
|
+
<ul className="flex items-center">
|
|
83
|
+
<li className="flex items-center">
|
|
84
|
+
<BaseText size={size} font={font} color={color} transform={transform}>
|
|
85
|
+
Breadcrumbs cannot be auto-generated because the project map is not accessible in this context.
|
|
86
|
+
</BaseText>
|
|
87
|
+
</li>
|
|
88
|
+
</ul>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
74
92
|
if (!itemToDisplay.length) {
|
|
75
93
|
// ToDo: Add breadcrumbs placeholder
|
|
76
94
|
return null;
|
|
@@ -14,6 +14,7 @@ export const Card: FC<CardProps> = ({
|
|
|
14
14
|
fluidContent,
|
|
15
15
|
fullHeight,
|
|
16
16
|
fitHeight,
|
|
17
|
+
height,
|
|
17
18
|
className,
|
|
18
19
|
contentClassName,
|
|
19
20
|
}) => {
|
|
@@ -22,7 +23,7 @@ export const Card: FC<CardProps> = ({
|
|
|
22
23
|
return (
|
|
23
24
|
<Container
|
|
24
25
|
className={cn('relative overflow-hidden', className)}
|
|
25
|
-
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight }}
|
|
26
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, height }}
|
|
26
27
|
>
|
|
27
28
|
<div
|
|
28
29
|
className={cn({
|
|
@@ -15,11 +15,12 @@ export const Carousel: FC<CarouselProps> = ({
|
|
|
15
15
|
fluidContent,
|
|
16
16
|
fullHeight,
|
|
17
17
|
fitHeight,
|
|
18
|
+
height,
|
|
18
19
|
itemsPerPage,
|
|
19
20
|
gapX,
|
|
20
21
|
}) => (
|
|
21
22
|
<BaseCarousel
|
|
22
|
-
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, itemsPerPage, gapX }}
|
|
23
|
+
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, height, itemsPerPage, gapX }}
|
|
23
24
|
countOfItems={slots.carouselItems?.items.length ?? 0}
|
|
24
25
|
variant={component.variant}
|
|
25
26
|
>
|
|
@@ -15,10 +15,22 @@ export const Container: FC<ContainerProps> = ({
|
|
|
15
15
|
fluidContent,
|
|
16
16
|
fullHeight,
|
|
17
17
|
fitHeight,
|
|
18
|
+
height,
|
|
18
19
|
className,
|
|
19
20
|
}) => (
|
|
20
21
|
<BaseContainer
|
|
21
|
-
{...{
|
|
22
|
+
{...{
|
|
23
|
+
title: displayName,
|
|
24
|
+
id,
|
|
25
|
+
backgroundColor,
|
|
26
|
+
spacing,
|
|
27
|
+
border,
|
|
28
|
+
fluidContent,
|
|
29
|
+
fullHeight,
|
|
30
|
+
fitHeight,
|
|
31
|
+
height,
|
|
32
|
+
className,
|
|
33
|
+
}}
|
|
22
34
|
>
|
|
23
35
|
<UniformSlot data={component} context={context} slot={slots.containerContent} />
|
|
24
36
|
</BaseContainer>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SpaceType, ViewPort } from '@/types/cskTypes';
|
|
2
2
|
|
|
3
|
+
type HeightType = 'full' | 'screen' | 'svh' | 'lvh' | 'dvh' | 'min' | 'max' | 'fit';
|
|
4
|
+
|
|
3
5
|
export type ContainerParameters = {
|
|
4
6
|
displayName?: string;
|
|
5
7
|
anchor?: string;
|
|
@@ -7,6 +9,9 @@ export type ContainerParameters = {
|
|
|
7
9
|
spacing?: SpaceType | ViewPort<SpaceType>;
|
|
8
10
|
border?: string | ViewPort<string>;
|
|
9
11
|
fluidContent?: boolean;
|
|
12
|
+
/** @deprecated Use height prop instead */
|
|
10
13
|
fullHeight?: boolean;
|
|
14
|
+
/** @deprecated Use height prop instead */
|
|
11
15
|
fitHeight?: boolean;
|
|
16
|
+
height?: HeightType | ViewPort<HeightType>;
|
|
12
17
|
};
|