@uniformdev/csk-components 6.0.76-alpha.1 → 6.0.78-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.
Files changed (29) hide show
  1. package/dist/chunk-NWTTCWMN.mjs +1 -0
  2. package/dist/chunk-SDTLQ3CZ.mjs +1 -0
  3. package/dist/components/canvas/emptyPlaceholders.d.mts +3 -3
  4. package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
  5. package/dist/components/canvas/index.d.mts +20 -4
  6. package/dist/components/canvas/index.mjs +2 -2
  7. package/dist/components/ui/index.d.mts +1 -0
  8. package/dist/components/ui/index.mjs +1 -1
  9. package/dist/content/components/canvas/DemoHero/atoms.tsx +2 -0
  10. package/dist/content/components/canvas/DemoHero/demo-hero.tsx +4 -2
  11. package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +4 -2
  12. package/dist/content/components/canvas/DemoHero/flexible-hero.tsx +2 -2
  13. package/dist/content/components/canvas/DemoHero/index.tsx +16 -1
  14. package/dist/content/components/canvas/NavigationFlyout/index.tsx +1 -0
  15. package/dist/content/components/canvas/NavigationFlyout/navigation-flyout.tsx +2 -1
  16. package/dist/content/components/canvas/NavigationGroup/index.tsx +1 -0
  17. package/dist/content/components/canvas/NavigationGroup/navigation-group.tsx +2 -1
  18. package/dist/content/components/canvas/NavigationLink/index.tsx +1 -0
  19. package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +2 -1
  20. package/dist/content/components/ui/Image/image.tsx +6 -2
  21. package/dist/content/components/ui/Image/index.ts +1 -0
  22. package/dist/{image-gallery-2ZNDWYOS.mjs → image-gallery-GDHVDVIL.mjs} +1 -1
  23. package/dist/navigation-flyout-MH7LKGJ2.mjs +1 -0
  24. package/dist/navigation-group-7WBDV5IY.mjs +1 -0
  25. package/package.json +1 -1
  26. package/dist/chunk-EIQPM3DQ.mjs +0 -1
  27. package/dist/chunk-T5V5WTTI.mjs +0 -1
  28. package/dist/navigation-flyout-J2NUTJM7.mjs +0 -1
  29. package/dist/navigation-group-RKFLIQXP.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{b as xe,d as ye,e as he,f as Re,g as Ne,h as I}from"./chunk-H3OSPGNK.mjs";import{a as ve}from"./chunk-QHIWJPL6.mjs";import{a as q}from"./chunk-SDTLQ3CZ.mjs";import{a as c}from"./chunk-RZFK2OR7.mjs";import{a as $}from"./chunk-JNIJ5N3Y.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as ge}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Te}from"@uniformdev/canvas-next-rsc/component";import{jsx as J,jsxs as xo}from"react/jsx-runtime";var go=({slots:e,component:t,context:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s})=>xo(c,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,children:[J("div",{className:"flex flex-col gap-4 text-start",children:J(Te,{data:t,context:o,slot:e.accordionContent})}),J(Te,{data:t,context:o,slot:e.accordionItems})]});import{jsx as be}from"react/jsx-runtime";var vo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>be("div",{className:"h-20"})};case"accordionItems":return{component:()=>be("div",{className:"h-28"})};default:return l}};var we=(o=>(o.AccordionContent="accordionContent",o.AccordionItems="accordionItems",o))(we||{});import{UniformSlot as Ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as ho}from"react/jsx-runtime";var yo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>ho("div",{className:"h-20"})};default:return l}};var He=(t=>(t.BackgroundImage="backgroundImage",t))(He||{}),Fe=(o=>(o.CardMedia="cardMedia",o.CardContent="cardContent",o))(Fe||{});import{jsx as V,jsxs as No}from"react/jsx-runtime";var Ro=({component:e,context:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,className:m,contentClassName:d})=>{let f=e.variant==="backgroundImage";return No(c,{className:p("relative overflow-hidden",m),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,children:[V("div",{className:p({"inset-0 size-full absolute":f}),children:V(Ee,{data:e,context:t,slot:o.cardMedia})}),V("div",{className:p("relative flex flex-col gap-y-2",d),children:V(Ee,{data:e,context:t,slot:o.cardContent})})]})};import wo from"next/dynamic";import{jsx as bo}from"react/jsx-runtime";var To=e=>{switch(e.slotName){case"carouselItems":return{component:()=>bo("div",{className:"mx-20 h-20 w-full"})};default:return l}};var Ae=(t=>(t.Items="carouselItems",t))(Ae||{}),Ar=wo(()=>import("./carousel-UKVR7LKR.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 D=({component:e,context:t,parameterId:o,text:r,...a})=>{let i=t.previewMode==="editor"&&t.isContextualEditing;return!r&&!i?null:C(ve,{...a,children:C(Be,{placeholder:"Text goes here",parameterId:o,as:a.tag||void 0,component:e,context:t})})},Le=({component:e,context:t,parameterId:o,text:r,...a})=>{let{link:i,icon:n}=a,s=ge(i),m=t.previewMode==="editor"&&t.isContextualEditing;return!r&&!s&&!m?null:C(xe,{...a,href:s,icon:C(()=>{let[f]=$(n),{url:u,title:y=""}=f||{};return u?C(q,{src:u,alt:y,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Be,{placeholder:"Button text goes here",parameterId:o,component:e,context:t})})},Ie=({component:e,context:t,image:o,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,priority:f,unoptimized:u})=>{let[y]=$(o);if(!y){let G=t.previewMode==="editor"&&t.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:W,title:K=""}=y;return C(q,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:W,alt:K,fill:!0,unoptimized:u,priority:f,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d})};import{jsx as T,jsxs as Ve}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,variant:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,children:Ve("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),Ve("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:s}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:m})]})]})});import{jsx as X,jsxs as Se}from"react/jsx-runtime";var Oe=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>Se(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,children:[X("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Se(c,{className:"relative flex flex-col gap-8",children:[X("div",{className:p("flex flex-col gap-4",m),children:n}),X("div",{className:p("flex flex-wrap gap-2 items-center",d),children:s})]})]});var ke=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Me=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var h=(e,t)=>Object.entries(e).reduce((o,[r,a])=>{if(r.startsWith(t)){let i=r.slice(t.length).replace(/^./,n=>n.toLowerCase());return{...o,[i]:a}}return{...o,[r]:a}},{});import{Fragment as Z,jsx as P,jsxs as Fo}from"react/jsx-runtime";var S=({eyebrowTitleText:e,eyebrowTitleTag:t,eyebrowTitleSize:o,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:u,titleTag:y,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt,descriptionText:Ft,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot,primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Jt,primaryButtonIconPosition:Qt,primaryButtonHoverButtonColor:Xt,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,isFlexibleHero:fe=!1,component:g,context:x,slots:Pe})=>{let ue=g.variant,uo=fe?P(Ue,{data:g,context:x,slot:Pe.flexibleHeroContent}):Fo(Z,{children:[P(D,{...h({eyebrowTitleText:e,eyebrowTitleTag:t,eyebrowTitleSize:o,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:g,context:x,parameterId:"eyebrowTitleText"}),P(D,{...h({titleText:u,titleTag:y,titleSize:W,titleColor:K,titleWeight:G,titleFont:Y,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:bt,titleLineCountRestrictions:wt},"title"),component:g,context:x,parameterId:"titleText"}),P(D,{...h({descriptionText:Ft,descriptionTag:Ht,descriptionSize:Et,descriptionColor:At,descriptionWeight:Bt,descriptionFont:Lt,descriptionAlignment:It,descriptionTransform:Vt,descriptionDecoration:Dt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:Ot},"description"),component:g,context:x,parameterId:"descriptionText"})]}),Co=fe?P(Ue,{data:g,context:x,slot:Pe.flexibleHeroCta}):P(Z,{children:P(Le,{...h({primaryButtonVariant:kt,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Jt,primaryButtonIconPosition:Qt,primaryButtonHoverButtonColor:Xt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:g,context:x,parameterId:"primaryButtonText"})}),Ce={variant:ue,backgroundColor:lo,spacing:po,border:co,fluidContent:fo,fullHeight:Po,textAlignmentClass:Me({contentAlignment:ce}),buttonAlignmentClass:ke({contentAlignment:ce}),demoHeroMedia:P(Z,{children:P(Ie,{image:jt,...h({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageContrastBaseColor:ao,imageOverlayOpacity:io,imageBorder:no,imagePriority:so,imageUnoptimized:mo},"image"),component:g,context:x})}),demoHeroContent:uo,demoHeroCTA:Co};switch(ue){case"columns":case"columnsReverse":return P(De,{...Ce});default:return P(Oe,{...Ce})}};import{jsx as Ho}from"react/jsx-runtime";var ze=({enableOverlayAutoTint:e=!1,...t})=>Ho(S,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",titleSize:{mobile:"3xl",tablet:"5xl",desktop:"5xl"},titleWeight:"bold",descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",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:!t.component.variant&&e?t.titleColor:void 0,imageOverlayOpacity:"0.3",spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Eo}from"react/jsx-runtime";var We=e=>Eo(S,{...e,isFlexibleHero:!0});import{jsx as Ke}from"react/jsx-runtime";var Ao=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 l}};var _e=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(_e||{}),Q=(o=>(o.Columns="columns",o.ColumnsReverse="columnsReverse",o))(Q||{}),Ge=(o=>(o.FlexibleHeroContent="flexibleHeroContent",o.FlexibleHeroCta="flexibleHeroCta",o))(Ge||{}),Bo={FixedHero:ze,FlexibleHero:We},Ha=Bo;import{UniformSlot as j}from"@uniformdev/canvas-next-rsc/component";import{jsx as O}from"react/jsx-runtime";var Ye=({context:e,component:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>O(he,{logo:O(j,{context:e,slot:o.footerLogo,data:t}),copyright:O(j,{context:e,slot:o.footerCopyright,data:t}),content:O(j,{context:e,slot:o.footerContent,data:t}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ee}from"react/jsx-runtime";var Lo=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 l}};var $e=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))($e||{}),_a=Ye;import{UniformSlot as te}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var qe=({backgroundColor:e,color:t,spacing:o,border:r,context:a,component:i,slots:n})=>k(Re,{sticky:i.variant==="sticky",leftSection:k(te,{context:a,slot:n.headerLeftContent,data:i}),rightSection:k(te,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:t,spacing:o,border:r,children:k(te,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as oe}from"react/jsx-runtime";var Io=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 l}};var Qe=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Qe||{}),Je=(t=>(t.Sticky="sticky",t))(Je||{}),ei=qe;import So from"next/dynamic";import{jsx as Do}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Do("div",{className:" mx-auto size-48"})};default:return l}};var Xe=(t=>(t.Items="imageGalleryItems",t))(Xe||{}),mi=So(()=>import("./image-gallery-GDHVDVIL.mjs").then(e=>e.ImageGallery));import ko from"next/dynamic";import{jsx as Ze}from"react/jsx-runtime";var Oo=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 l}};var gi=ko(()=>import("./navigation-flyout-MH7LKGJ2.mjs").then(e=>e.NavigationFlyout));import Uo from"next/dynamic";import{jsx as _o}from"react/jsx-runtime";var Mo=e=>{switch(e.slotName){case"links":return{component:()=>_o("div",{className:"h-40 w-48"})};default:return l}};var wi=Uo(()=>import("./navigation-group-7WBDV5IY.mjs").then(e=>e.NavigationGroup));import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var zo=({slots:e,component:t,context:o,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>M(Ne,{backgroundColor:r,header:M(re,{context:o,slot:e.pageHeader,data:t,children:a}),footer:M(re,{context:o,slot:e.pageFooter,data:t,children:n}),children:M(re,{context:o,slot:e.pageContent,data:t,children:i})});import{jsx as ae}from"react/jsx-runtime";var Wo=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 l}};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 b}from"react/jsx-runtime";var Ko=({parentComponent:e,slotName:t})=>{let o=e?.variant==="multiColumn";switch(t){case"reviewImage":return{component:()=>o?b("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>o?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>o?b("div",{className:"h-20 w-full"}):b("div",{className:"h-20 w-52"})};default:return l}};var ie=(t=>(t.MultiColumn="multiColumn",t))(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:t,activeStarsColor:o,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>w(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,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:[f,w("div",{className:"py-4",children:w(I,{rating:e,showReviewLabel:r,starsColor:t,activeStarsColor:o})}),w("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as R,jsxs as rt}from"react/jsx-runtime";var at=({stars:e,starsColor:t,activeStarsColor:o,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>R(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:rt("div",{className:"grid md:grid-cols-12",children:[rt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[R("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),R("div",{className:"flex flex-col gap-y-1",children:f})]}),R("div",{className:"my-2 md:col-span-4 md:my-0",children:R(I,{rating:e,showReviewLabel:r,starsColor:t,activeStarsColor:o})}),R("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as F}from"react/jsx-runtime";var Go=e=>{let{component:t,context:o,slots:r}=e,a=t.variant,i={...e,ReviewImage:F(ne,{context:o,data:t,slot:r.reviewImage}),ReviewPersonInfo:F(ne,{context:o,data:t,slot:r.reviewPersonInfo}),ReviewContent:F(ne,{context:o,data:t,slot:r.reviewContent})};switch(a){case"multiColumn":return F(at,{...i});default:return F(ot,{...i})}};import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as se}from"react/jsx-runtime";var Yo=({parentComponent:e,slotName:t})=>{let o=!e?.variant;switch(t){case"sectionMedia":return{component:()=>o?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 l}};var nt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(nt||{}),me=(o=>(o.Columns="columns",o.ColumnsReverse="columnsReverse",o))(me||{}),it=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(it||{});import{jsx as H,jsxs as st}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,variant:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>H(c,{backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,children:st("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[H("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:H("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),st("div",{className:"flex flex-col justify-center gap-8",children:[H("div",{className:p("flex flex-col gap-4",d),children:s}),H("div",{className:p("flex flex-wrap gap-2",f),children:m})]})]})});import{jsx as le,jsxs as lt}from"react/jsx-runtime";var pt=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,sectionMedia:i,sectionContent:n,sectionCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>lt(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,children:[le("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),lt(c,{className:"relative flex flex-col gap-8",children:[le("div",{className:p("flex flex-col gap-4",m),children:n}),le("div",{className:p("flex flex-wrap gap-2",d),children:s})]})]});var dt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),ct=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as E}from"react/jsx-runtime";var $o=({contentAlignment:e,slots:t,component:o,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>{let d=o.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,textAlignmentClass:ct({contentAlignment:e}),buttonAlignmentClass:dt({contentAlignment:e}),sectionMedia:E(pe,{data:o,context:r,slot:t.sectionMedia}),sectionContent:E(pe,{data:o,context:r,slot:t.sectionContent}),sectionCTA:E(pe,{data:o,context:r,slot:t.sectionCTA})};switch(d){case"columns":case"columnsReverse":return E(mt,{...f});default:return E(pt,{...f})}};import{UniformSlot as Pt}from"@uniformdev/canvas-next-rsc/component";var ft=({size:e,textColor:t})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${t}`]:t,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as Jo}from"react/jsx-runtime";var qo=({size:e,textColor:t,slots:o,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:d,children:N("div",{className:"overflow-x-auto",children:Jo("table",{className:ft({size:e,textColor:t}),children:[N("thead",{children:N(Pt,{slot:o.tableHead,context:a,data:r})}),N("tbody",{children:N(Pt,{slot:o.tableBody,context:a,data:r})})]})})});import{jsx as ut}from"react/jsx-runtime";var Qo=e=>{switch(e.slotName){case"tableHead":return{component:()=>ut("tr",{className:"h-20"})};case"tableBody":return{component:()=>ut("tr",{className:"h-40"})};default:return l}};var Ct=(o=>(o.TableHead="tableHead",o.TableBody="tableBody",o))(Ct||{});import{UniformSlot as z}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Xo=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>_("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>_("div",{className:"h-20 w-64"})};default:return l}};var xt=(o=>(o.WithLargeAvatar="withLargeAvatar",o.WithOverlappingImage="withOverlappingImage",o))(xt||{}),gt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(gt||{});import{jsx as A,jsxs as jo}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>A(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:jo("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[A("div",{children:r}),A("div",{className:"my-8",children:t}),A("div",{className:"size-10 rounded-full",children:e}),A("div",{className:"mt-4 flex gap-3",children:o})]})});import{jsx as B,jsxs as U}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:U("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[B("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),U("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:t}),U("div",{className:"flex items-center justify-between",children:[U("div",{className:"flex items-center gap-x-4",children:[B("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),B("div",{className:"gap-3",children:o})]}),r]})]})]})});import{jsx as L,jsxs as de}from"react/jsx-runtime";var ht=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,children:L(c,{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:[L("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:[L("div",{className:"",children:t}),de("div",{className:"flex items-center justify-between",children:[L("div",{className:"gap-3",children:o}),r]})]})]})})});import{jsx as v}from"react/jsx-runtime";var Zo=({context:e,component:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s})=>{let m=t.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,testimonialPrimaryImage:v(z,{context:e,data:t,slot:o.testimonialPrimaryImage}),testimonialContent:v(z,{context:e,data:t,slot:o.testimonialContent}),testimonialAuthor:v(z,{context:e,data:t,slot:o.testimonialAuthor}),testimonialSecondaryImage:v(z,{context:e,data:t,slot:o.testimonialSecondaryImage})};switch(m){case"withLargeAvatar":return v(yt,{...d});case"withOverlappingImage":return v(ht,{...d});default:return v(vt,{...d})}};export{go as a,we as b,vo as c,Ro as d,He as e,Fe as f,yo as g,Ae as h,Ar as i,To as j,_e as k,Q as l,Ge as m,Ha as n,Ao as o,$e as p,_a as q,Lo as r,Qe as s,Je as t,ei as u,Io as v,Xe as w,mi as x,Vo as y,gi as z,Oo as A,wi as B,Mo as C,zo as D,je as E,Wo as F,Go as G,ie as H,et as I,Ko as J,$o as K,nt as L,me as M,it as N,Yo as O,qo as P,Ct as Q,Qo as R,Zo as S,xt as T,gt as U,Xo as V};
@@ -0,0 +1 @@
1
+ import{a as r,c as m}from"./chunk-S7CSCIW4.mjs";import g from"next/image";import{jsx as s,jsxs as y}from"react/jsx-runtime";var f=({containerStyle:a,overlayColor:e,contrastBaseColor:o,overlayOpacity:i,border:t="",style:l,...p})=>y("div",{className:"relative size-full",style:a,children:[s(g,{...p,className:m({[r(t,"{value}")]:t}),style:{...l}}),s("div",{className:m("absolute bottom-0 left-0 right-0 top-0",{[`bg-${e||o}`]:e||o,[r(t,"{value}")]:t}),style:{opacity:i||0,...o&&!e?{filter:"grayscale(100%) invert(100%)"}:{}}})]});export{f as a};
@@ -1,6 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as react from 'react';
2
3
  import * as _uniformdev_canvas_next_rsc_shared from '@uniformdev/canvas-next-rsc-shared';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ResolveEmptyPlaceholderOptions } from '../../types/cskTypes.mjs';
5
5
  import { EmptyPlaceholderMapping } from '../../utils/createEmptyPlaceholderResolver.mjs';
6
6
  import '@uniformdev/canvas';
@@ -9,9 +9,9 @@ import '@uniformdev/canvas-next-rsc/component';
9
9
  declare const cskEmptyPlaceholderMapping: EmptyPlaceholderMapping;
10
10
 
11
11
  declare const emptyPlaceholderResolver: ({ parentComponent, ...restProps }: ResolveEmptyPlaceholderOptions) => {
12
- component: () => react_jsx_runtime.JSX.Element;
13
- } | {
14
12
  component: react.ComponentType<_uniformdev_canvas_next_rsc_shared.ComponentProps<any, any>> | null;
13
+ } | {
14
+ component: () => react_jsx_runtime.JSX.Element;
15
15
  };
16
16
 
17
17
  export { cskEmptyPlaceholderMapping as default, emptyPlaceholderResolver };
@@ -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-T5V5WTTI.mjs";import{d}from"../../chunk-2SEOCBRK.mjs";import{d as s}from"../../chunk-CBZWZSQW.mjs";import"../../chunk-H3OSPGNK.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-QHIWJPL6.mjs";import{d as r}from"../../chunk-T6HZMAEP.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-VZCFPWET.mjs";import"../../chunk-EIQPM3DQ.mjs";import"../../chunk-RZFK2OR7.mjs";import"../../chunk-3PDY7RJC.mjs";import"../../chunk-JNIJ5N3Y.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};
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-NWTTCWMN.mjs";import{d}from"../../chunk-2SEOCBRK.mjs";import{d as s}from"../../chunk-CBZWZSQW.mjs";import"../../chunk-H3OSPGNK.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-QHIWJPL6.mjs";import{d as r}from"../../chunk-T6HZMAEP.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-VZCFPWET.mjs";import"../../chunk-SDTLQ3CZ.mjs";import"../../chunk-RZFK2OR7.mjs";import"../../chunk-3PDY7RJC.mjs";import"../../chunk-JNIJ5N3Y.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};
@@ -204,6 +204,7 @@ type BaseImageParameters = {
204
204
  objectFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
205
205
  overlayColor?: string;
206
206
  overlayOpacity?: string;
207
+ contrastBaseColor?: string;
207
208
  border?: string | ViewPort<string>;
208
209
  priority?: boolean;
209
210
  unoptimized?: boolean;
@@ -218,9 +219,16 @@ type SecondaryButtonParameters = PrefixedKeys<BaseButtonParameters, 'secondaryBu
218
219
  secondaryButtonVariant?: ButtonVariant;
219
220
  };
220
221
  type ImageParameters$1 = PrefixedKeys<Omit<BaseImageParameters, 'image'>, 'image'> & Pick<BaseImageParameters, 'image'>;
222
+ /**
223
+ * @deprecated Use FixedHeroParameters or FlexibleHeroParameters directly instead.
224
+ */
221
225
  type DemoHeroParameters = ContainerParameters & {
222
226
  contentAlignment?: ContentAlignment$1;
223
227
  } & EyebrowTitleTextParameters & TitleTextParameters & DescriptionTextParameters & PrimaryButtonParameters & SecondaryButtonParameters & ImageParameters$1;
228
+ type FixedHeroParameters = {
229
+ enableOverlayAutoTint?: boolean;
230
+ } & DemoHeroParameters;
231
+ type FlexibleHeroParameters = DemoHeroParameters;
224
232
  declare enum DemoHeroVariants {
225
233
  Columns = "columns",
226
234
  ColumnsReverse = "columnsReverse"
@@ -229,10 +237,15 @@ declare enum FlexibleHeroSlots {
229
237
  FlexibleHeroContent = "flexibleHeroContent",
230
238
  FlexibleHeroCta = "flexibleHeroCta"
231
239
  }
232
- type DemoHeroProps = ComponentProps<DemoHeroParameters, FlexibleHeroSlots>;
240
+ /**
241
+ * @deprecated Use FixedHeroProps or FlexibleHeroProps directly instead.
242
+ */
243
+ type DemoHeroProps = FixedHeroProps | FlexibleHeroProps;
244
+ type FixedHeroProps = ComponentProps<FixedHeroParameters>;
245
+ type FlexibleHeroProps = ComponentProps<FlexibleHeroParameters, FlexibleHeroSlots>;
233
246
  declare const DemoHero: {
234
- FixedHero: react.FC<DemoHeroProps>;
235
- FlexibleHero: react.FC<DemoHeroProps>;
247
+ FixedHero: react.FC<FixedHeroProps>;
248
+ FlexibleHero: react.FC<FlexibleHeroProps>;
236
249
  };
237
250
 
238
251
  declare const Divider: FC<DividerProps>;
@@ -411,6 +424,7 @@ type NavigationFlyoutParameters = TextParameters & {
411
424
  border?: string | ViewPort<string>;
412
425
  caretIcon?: AssetParamValue;
413
426
  hoverEffect?: string | ViewPort<string>;
427
+ className?: string;
414
428
  };
415
429
  declare enum NavigationFlyoutSlots {
416
430
  NavigationFlyoutLeftContent = "navigationFlyoutLeftContent",
@@ -426,6 +440,7 @@ type NavigationGroupParameters = TextParameters & {
426
440
  backgroundColor?: string;
427
441
  border?: string | ViewPort<string>;
428
442
  hoverEffect?: string | ViewPort<string>;
443
+ className?: string;
429
444
  };
430
445
  declare enum NavigationGroupSlots {
431
446
  Links = "links"
@@ -440,6 +455,7 @@ type NavigationLinkParameters = TextParameters & {
440
455
  link?: LinkParamValue;
441
456
  activeState?: boolean;
442
457
  hoverEffect?: string | ViewPort<string>;
458
+ className?: string;
443
459
  };
444
460
  type NavigationLinkProps = ComponentProps<NavigationLinkParameters>;
445
461
 
@@ -636,4 +652,4 @@ declare const componentResolver: ({ component }: {
636
652
  component: ({ component }: _uniformdev_canvas_next_rsc_shared.ComponentProps) => React.JSX.Element | null;
637
653
  };
638
654
 
639
- export { Accordion, _default$9 as AccordionItem, type AccordionItemParameters, type AccordionItemProps, AccordionItemSlots, type AccordionParameters, type AccordionProps, AccordionSlots, Badge, type BadgeParameters, type BadgeProps, _default$8 as Banner, ContentAlignment$2 as BannerContentAlignment, type BannerParameters, type BannerProps, BannerSlots, Breadcrumbs, type BreadcrumbsParameters, type BreadcrumbsProps, Button, type ButtonParameters, type ButtonProps, Card, type CardParameters, type CardProps, CardSlots, CardVariants, _default$7 as Carousel, type CarouselParameters, type CarouselProps, CarouselSlots, CommonPageSlots, Container, type ContainerParameters, type ContainerProps, ContainerSlots, _default$6 as Countdown, type CountdownParameters, type CountdownProps, CountdownSlots, CountdownVariants, DemoHero, ContentAlignment$1 as DemoHeroContentAlignment, type DemoHeroParameters, type DemoHeroProps, DemoHeroVariants, Divider, type DividerParameters, type DividerProps, Flex, FlexItem, type FlexItemParameters, type FlexItemProps, type FlexParameters, type FlexProps, FlexibleHeroSlots, Footer, type FooterParameters, type FooterProps, FooterSlots, Grid, GridItem, type GridItemParameters, type GridItemProps, GridItemSlots, type GridParameters, type GridProps, GridSlots, Header, type HeaderParameters, type HeaderProps, HeaderSlots, HeaderVariants, IconLabel, type IconLabelParameters, type IconLabelProps, Image, _default$5 as ImageGallery, type ImageGalleryParameters, type ImageGalleryProps, ImageGallerySlots, type ImageParameters, type ImageProps, Link, type LinkParameters, type LinkProps, LinkSlots, _default$4 as Modal, type ModalParameters, type ModalProps, ModalSlots, _default$3 as NavigationFlyout, type NavigationFlyoutParameters, type NavigationFlyoutProps, _default$2 as NavigationGroup, type NavigationGroupParameters, type NavigationGroupProps, NavigationLink, type NavigationLinkParameters, type NavigationLinkProps, Page, type PageParameters, type PageProps, Review, type ReviewParameters, type ReviewProps, ReviewSlots, ReviewVariants, RichText, type RichTextParameters, type RichTextProps, Section, ContentAlignment as SectionContentAlignment, type SectionParameters, type SectionProps, SectionSlots, SectionVariants, Spacer, type SpacerParameters, type SpacerProps, SpacerVariants, Tab, type TabParameters, type TabProps, TabSlots, Table, TableCustomCell, type TableCustomCellParameters, type TableCustomCellProps, TableCustomCellSlots, TableDataCell, type TableDataCellParameters, type TableDataCellProps, TableHeaderCell, type TableHeaderCellParameters, type TableHeaderCellProps, type TableParameters, type TableProps, TableRow, type TableRowProps, TableSlots, _default$1 as Tabs, type TabsParameters, type TabsProps, TabsSlots, TabsVariants, Testimonial, type TestimonialParameters, type TestimonialProps, TestimonialSlots, TestimonialVariants, Text, type TextParameters, type TextProps, _default as ThemeSwitcher, type ThemeSwitcherParameters, type ThemeSwitcherProps, Video, type VideoParameters, type VideoProps, componentResolver, cskComponentsMapping, cskComponentsMapping as default };
655
+ export { Accordion, _default$9 as AccordionItem, type AccordionItemParameters, type AccordionItemProps, AccordionItemSlots, type AccordionParameters, type AccordionProps, AccordionSlots, Badge, type BadgeParameters, type BadgeProps, _default$8 as Banner, ContentAlignment$2 as BannerContentAlignment, type BannerParameters, type BannerProps, BannerSlots, Breadcrumbs, type BreadcrumbsParameters, type BreadcrumbsProps, Button, type ButtonParameters, type ButtonProps, Card, type CardParameters, type CardProps, CardSlots, CardVariants, _default$7 as Carousel, type CarouselParameters, type CarouselProps, CarouselSlots, CommonPageSlots, Container, type ContainerParameters, type ContainerProps, ContainerSlots, _default$6 as Countdown, type CountdownParameters, type CountdownProps, CountdownSlots, CountdownVariants, DemoHero, ContentAlignment$1 as DemoHeroContentAlignment, type DemoHeroParameters, type DemoHeroProps, DemoHeroVariants, Divider, type DividerParameters, type DividerProps, type FixedHeroParameters, type FixedHeroProps, Flex, FlexItem, type FlexItemParameters, type FlexItemProps, type FlexParameters, type FlexProps, type FlexibleHeroParameters, type FlexibleHeroProps, FlexibleHeroSlots, Footer, type FooterParameters, type FooterProps, FooterSlots, Grid, GridItem, type GridItemParameters, type GridItemProps, GridItemSlots, type GridParameters, type GridProps, GridSlots, Header, type HeaderParameters, type HeaderProps, HeaderSlots, HeaderVariants, IconLabel, type IconLabelParameters, type IconLabelProps, Image, _default$5 as ImageGallery, type ImageGalleryParameters, type ImageGalleryProps, ImageGallerySlots, type ImageParameters, type ImageProps, Link, type LinkParameters, type LinkProps, LinkSlots, _default$4 as Modal, type ModalParameters, type ModalProps, ModalSlots, _default$3 as NavigationFlyout, type NavigationFlyoutParameters, type NavigationFlyoutProps, _default$2 as NavigationGroup, type NavigationGroupParameters, type NavigationGroupProps, NavigationLink, type NavigationLinkParameters, type NavigationLinkProps, Page, type PageParameters, type PageProps, Review, type ReviewParameters, type ReviewProps, ReviewSlots, ReviewVariants, RichText, type RichTextParameters, type RichTextProps, Section, ContentAlignment as SectionContentAlignment, type SectionParameters, type SectionProps, SectionSlots, SectionVariants, Spacer, type SpacerParameters, type SpacerProps, SpacerVariants, Tab, type TabParameters, type TabProps, TabSlots, Table, TableCustomCell, type TableCustomCellParameters, type TableCustomCellProps, TableCustomCellSlots, TableDataCell, type TableDataCellParameters, type TableDataCellProps, TableHeaderCell, type TableHeaderCellParameters, type TableHeaderCellProps, type TableParameters, type TableProps, TableRow, type TableRowProps, TableSlots, _default$1 as Tabs, type TabsParameters, type TabsProps, TabsSlots, TabsVariants, Testimonial, type TestimonialParameters, type TestimonialProps, TestimonialSlots, TestimonialVariants, Text, type TextParameters, type TextProps, _default as ThemeSwitcher, type ThemeSwitcherParameters, type ThemeSwitcherProps, Video, type VideoParameters, type VideoProps, componentResolver, cskComponentsMapping, cskComponentsMapping as default };
@@ -1,2 +1,2 @@
1
- import{a as dt}from"../../chunk-TM7Q5NMH.mjs";import{a as ut,b as ft,c as ht}from"../../chunk-HLLKGZN6.mjs";import{a as q}from"../../chunk-AKRWCDDG.mjs";import{a as st}from"../../chunk-56OQGKRM.mjs";import{B as Se,D as Ae,E as Er,G as Ne,H as Mr,I as Or,K as Be,L as jr,M as $r,N as Wr,P as ke,Q as Hr,S as Ue,T as Jr,U as Kr,a as Pe,b as Ir,d as ye,e as Sr,f as Ar,h as Nr,i as xe,k as Fr,l as Ur,m as _r,n as z,p as Vr,q as ve,s as Lr,t as Rr,u as be,w as Gr,x as Ie,z as Te}from"../../chunk-T5V5WTTI.mjs";import{b as Dr,c as we}from"../../chunk-2SEOCBRK.mjs";import{a as zr,b as qr,c as Fe}from"../../chunk-CBZWZSQW.mjs";import{a as $,b as W,d as H}from"../../chunk-H3OSPGNK.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as I}from"../../chunk-QHIWJPL6.mjs";import{a as wr,b as Tr,c as Ce}from"../../chunk-T6HZMAEP.mjs";import{a as Br,b as kr,c as ge}from"../../chunk-2UV7TQNF.mjs";import{a as lt,b as ct}from"../../chunk-VZCFPWET.mjs";import{a as b}from"../../chunk-EIQPM3DQ.mjs";import{a as mt}from"../../chunk-RZFK2OR7.mjs";import"../../chunk-3PDY7RJC.mjs";import{a as C}from"../../chunk-JNIJ5N3Y.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as j,c as v,d as pt}from"../../chunk-RX4IAAQQ.mjs";import{a as he,c as f}from"../../chunk-S7CSCIW4.mjs";import{a as it,b as br}from"../../chunk-YEKQJ4YC.mjs";var bt=it((aa,vt)=>{"use strict";var Re=class{constructor(e){this.value=e,this.next=void 0}},Ge=class{constructor(){this.clear()}enqueue(e){let t=new Re(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}};vt.exports=Ge});var wt=it((na,It)=>{"use strict";var Zr=bt(),eo=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 Zr,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};It.exports=eo});import Qr from"next/dynamic";var Pt=(e=>(e.AccordionItemContent="accordionItemContent",e))(Pt||{}),_e=Qr(()=>import("../../accordion-item-A2CU5OKG.mjs").then(r=>r.AccordionItem));import{UniformText as Yr}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ct}from"react/jsx-runtime";var yt=({className:r,...e})=>Ct("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:f("w-1.5 h-1.5",r),...e,children:Ct("circle",{r:"3",cx:"3",cy:"3"})});var xt=({pill:r,size:e,dotColor:t,borderColor:o,backgroundColor:a})=>f("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 Ve,jsxs as Xr}from"react/jsx-runtime";var gt=({component:r,context:e,textColor:t,backgroundColor:o,borderColor:a,dotColor:p,pill:i=!1,size:s})=>Xr("div",{className:xt({pill:i,size:s,dotColor:p,borderColor:a,backgroundColor:o}),children:[p&&Ve(yt,{className:f({[`fill-${p}`]:p})}),Ve(I,{color:t,size:"xs",children:Ve(Yr,{placeholder:"Badge text goes here",parameterId:"text",component:r,context:e})})]});var Le=gt;import{flattenValues as Rt,CanvasClient as yo}from"@uniformdev/canvas";var St=br(wt(),1),to=Object.defineProperty,Tt=r=>{throw TypeError(r)},ro=(r,e,t)=>e in r?to(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,oo=(r,e,t)=>ro(r,typeof e!="symbol"?e+"":e,t),ao=(r,e,t)=>e.has(r)||Tt("Cannot "+t),h=(r,e,t)=>(ao(r,e,"read from private field"),t?t.call(r):e.get(r)),w=(r,e,t)=>e.has(r)?Tt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var no=(0,St.default)(6),io=class At 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,At.prototype)}},x=class Nt{constructor(e){oo(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:no,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 so(()=>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 io(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,Nt.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 so(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 U,po=class J extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(J,U),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(J,U));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,U));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};U=new WeakMap;w(po,U,"/api/v2/aggregate");var De,mo=class Bt extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Bt,De),{...e,projectId:t});return await this.apiClient(o)}};De=new WeakMap;w(mo,De,"/api/v2/dimension");var _,X,kt=class B extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(B,_),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(h(B,_));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(h(B,_));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(h(B,X));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(h(B,X));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;X=new WeakMap;w(kt,_,"/api/v1/enrichments");w(kt,X,"/api/v1/enrichment-values");var Ee,lo=class Ft extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Ft,Ee),{...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})}};Ee=new WeakMap;w(lo,Ee,"/api/v2/manifest");var V,co=class K extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(K,V),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(K,V));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,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;w(co,V,"/api/v2/quirk");var L,uo=class Q extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Q,L),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(Q,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(Q,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;w(uo,L,"/api/v2/signal");var R,fo=class Y extends x{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(h(Y,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(h(Y,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(Y,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;w(fo,R,"/api/v2/test");import{createVariableReference as Po,parseVariableExpression as Co}from"@uniformdev/canvas";var Ut=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||Ut("Cannot "+t),Z=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),_t=(r,e,t)=>e.has(r)?Ut("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),ho=(r,e,t,o)=>($e(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),G=(r,e,t)=>($e(r,e,"access private method"),t);var Vt=class extends x{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=Me(n),l.previousSibling=Me(m),m&&(m.nextSibling=Me(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 Me=r=>r?{...r,parent:void 0,children:void 0}:void 0;var S,A,je,ee,We=class T{constructor(e){this.route=e,_t(this,S);var t;ho(this,S,G(t=T,A,je).call(t,this.route))}get dynamicSegmentCount(){return Z(this,S).segments.reduce((e,t)=>{var o;return G(o=T,A,ee).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=G(t=T,A,je).call(t,e),{segments:i}=Z(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(G(o=T,A,ee).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 Z(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=Z(this,S).segments.map(n=>{let m=T.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?Oe(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${Oe(n,a)}=${Oe(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(G(t=T,A,ee).call(t,e))return e.slice(T.dynamicSegmentPrefix.length)}};S=new WeakMap;A=new WeakSet;je=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(We.dynamicSegmentPrefix):!1};_t(We,A);We.dynamicSegmentPrefix=":";function Oe(r,e){if(!e)return encodeURIComponent(r);let t=[];return Co(r.toString(10),(o,a)=>{a==="variable"?t.push(Po(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as te}from"react/jsx-runtime";var Lt=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 re,jsxs as xo}from"react/jsx-runtime";var Gt=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 Vt({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 y=d.pathSegment?.includes(":")&&d.compositionId?await new yo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:d.compositionId}).then(({composition:N})=>N&&Rt(N)?.pageTitle||d.name).catch(()=>d.name):d.name,k=d.type==="placeholder"?void 0:j(d.path,s.dynamicInputs);return{title:y,link:k}})):[]})():await(async()=>e?.reduce((c,u)=>{let{title:d,link:P}=Rt(u);return d?[...c,{title:d,link:v(P)}]:c},[])||[])();return l.length?re("ul",{className:f("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:l.map(({title:c,link:u},d)=>xo("li",{className:"flex items-center",children:[!!d&&re("div",{className:"mx-2 size-[1em]",children:Lt(r)}),u?re(W,{variant:"link",textColor:o,className:f({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:u,children:c}):re(I,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${d}`))}):null};var He=Gt;import{useMemo as go}from"react";import{UniformText as vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as oe}from"react/jsx-runtime";var Dt=({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:y,onClick:k,text:N})=>{let g=v(t),E=e.previewMode==="editor"&&e?.isContextualEditing,F=go(()=>{let[fe]=C(n),{url:O,title:vr=""}=fe||{};if(O)return{url:O,title:vr}},[n]),M=()=>{if(!F)return;let{url:fe,title:O}=F;return oe(b,{src:fe,alt:O,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!N||!!F)&&!E?null:oe(W,{variant:r.variant,href:g,border:l,size:c,onClick:k,className:y,textSize:u,isActive:e.matchedRoute===g,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:d,hoverTextColor:P,icon:oe(M,{}),iconPosition:m,children:oe(vo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var ze=Dt;import{UniformSlot as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Et}from"react/jsx-runtime";var ae=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,className:l})=>Et(mt,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,className:l,children:Et(bo,{data:o,context:a,slot:t.containerContent})});var Mt=(e=>(e.ContainerContent="containerContent",e))(Mt||{});import{jsx as Ot}from"react/jsx-runtime";var ne=({color:r,thickness:e,width:t,alignment:o})=>Ot("div",{className:f("flex w-full",`justify-${o||"center"}`),children:Ot("div",{className:f({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as jt}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,wrapperClassName:d})=>jt(ut,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,wrapperClassName:d,className:u,children:jt(Io,{data:l,context:c,slot:m.flexItem})});var qe=$t;import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var ie=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>Wt(ft,{alignSelf:r,shrink:e,children:Wt(wo,{data:o,context:t,slot:a.inner})});import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ht}from"react/jsx-runtime";var zt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,slots:n,component:m,context:l,className:c})=>Ht(lt,{className:c,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,children:Ht(To,{data:m,context:l,slot:n.gridInner})});var qt=(e=>(e.GridInner="gridInner",e))(qt||{}),Je=zt;import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as Jt}from"react/jsx-runtime";var Kt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Jt(ct,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Jt(So,{data:i,context:p,slot:s.inner})});var Qt=(e=>(e.Inner="inner",e))(Qt||{}),Ke=Kt;import{UniformText as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Qe}from"react/jsx-runtime";var Yt=({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 Qe(q,{icon:d?Qe(b,{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:Qe(Ao,{placeholder:"Text goes here",parameterId:"text",component:l,context:c})})};var Ye=Yt;import{jsx as Xt}from"react/jsx-runtime";var Zt=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:Xt("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:Xt(H,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as er}from"react/jsx-runtime";var se=({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 er(Zt,{context:m,component:l,width:t,height:o});let{url:u,title:d=""}=c;return er(b,{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 No}from"@uniformdev/canvas-next-rsc/component";import{jsx as tr}from"react/jsx-runtime";var rr=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>tr($,{link:v(o),openInNewTab:a,children:tr(No,{data:r,context:e,slot:t.linkContent})});var or=(e=>(e.LinkContent="linkContent",e))(or||{}),Xe=rr;import{UniformText as Bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as ar}from"react/jsx-runtime";var nr=({href:r,isExternalLink:e,children:t})=>r?ar($,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):ar("div",{className:"cursor-pointer",children:t});import{jsx as D}from"react/jsx-runtime";var ir=({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=""})=>{let y=v(e),k=t&&j(d.matchedRoute,d.dynamicInputs)===y,[N]=C(r),{url:g,title:E=""}=N||{},F=()=>g?g.endsWith(".svg")?D(dt,{src:g,alt:E,fill:!0}):D(b,{src:g,alt:E,fill:!0}):null,M=f("transition-all duration-150",{[he(P,"group-hover:{value}")]:!!P,[he(P,"{value}")]:!!P&&k});return D(nr,{href:y,isExternalLink:pt(y),children:D(q,{icon:F(),className:"group",iconClassName:M,textClassName:M,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,children:D(Bo,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:u,context:d})})})};var Ze=ir;import{UniformRichText as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as sr}from"react/jsx-runtime";var pr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>sr(I,{lineCountRestrictions:e,color:r,font:t,children:sr(ko,{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 et=pr;import{jsx as Fo}from"react/jsx-runtime";var pe=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return Fo("div",{className:f({[`w-${r}`]:t,[`h-${r}`]:!t})})};var tt=(e=>(e.Horizontal="horizontal",e))(tt||{});import{UniformSlot as Uo}from"@uniformdev/canvas-next-rsc/component";import{jsx as _o}from"react/jsx-runtime";var mr=({slots:r,component:e,context:t})=>_o(Uo,{data:e,context:t,slot:r.tabContent});var lr=(e=>(e.TabContent="tabContent",e))(lr||{}),rt=mr;import{UniformSlot as Vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as ot}from"react/jsx-runtime";var me=({component:r,context:e,slots:t,alignment:o})=>ot("td",{children:ot("div",{className:f("w-fit",cr[o||"left"]),children:ot(Vo,{slot:t.tableCustomCellContent,context:e,data:r})})});var cr={left:"ml-0",center:"mx-auto",right:"ml-auto"},dr=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(dr||{});import{UniformText as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as ur}from"react/jsx-runtime";var le=({component:r,context:e})=>ur("td",{children:ur(Lo,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var ce=({component:r,context:e})=>fr("th",{children:fr(Ro,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var de=({slots:r,component:e,context:t})=>hr("tr",{children:hr(Go,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var Cr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:c})=>Pr(I,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Pr(Do,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:c})});var at=Cr;import Eo from"next/dynamic";var nt=Eo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as Mo}from"react/jsx-runtime";var yr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:Mo(H,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as xr}from"react/jsx-runtime";var ue=({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),y=d?.url||(e?.type==="url"?e.path:void 0);return y?xr(ht,{url:y,placeholderImageUrl:P?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):xr(yr,{component:c,context:u})};var gr={accordion:{component:Pe},accordionItem:{component:_e},badge:{component:Le},banner:{component:Ce},button:{component:ze},card:{component:ye},carousel:{component:xe},container:{component:ae},countdown:{component:ge},divider:{component:ne},grid:{component:Je},gridItem:{component:Ke},flex:{component:qe},flexItem:{component:ie},header:{component:be},section:{component:Be},iconLabel:{component:Ye},image:{component:se},page:{component:Ae},richText:{component:et},spacer:{component:pe},text:{component:at},video:{component:ue},tabs:{component:Fe},tab:{component:rt},table:{component:ke},tableRow:{component:de},tableHeaderCell:{component:ce},tableDataCell:{component:le},tableCustomCell:{component:me},modal:{component:we},imageGallery:{component:Ie},testimonial:{component:Ue},breadcrumbs:{component:He},review:{component:Ne},navigationLink:{component:Ze},navigationGroup:{component:Se},navigationFlyout:{component:Te},footer:{component:ve},themeSwitcher:{component:nt},link:{component:Xe},fixedHero:{component:z.FixedHero},flexibleHero:{component:z.FlexibleHero}},ap=gr,np=st(gr);export{Pe as Accordion,_e as AccordionItem,Pt as AccordionItemSlots,Ir as AccordionSlots,Le as Badge,Ce as Banner,wr as BannerContentAlignment,Tr as BannerSlots,He as Breadcrumbs,ze as Button,ye as Card,Ar as CardSlots,Sr as CardVariants,xe as Carousel,Nr as CarouselSlots,Er as CommonPageSlots,ae as Container,Mt as ContainerSlots,ge as Countdown,Br as CountdownSlots,kr as CountdownVariants,z as DemoHero,Fr as DemoHeroContentAlignment,Ur as DemoHeroVariants,ne as Divider,qe as Flex,ie as FlexItem,_r as FlexibleHeroSlots,ve as Footer,Vr as FooterSlots,Je as Grid,Ke as GridItem,Qt as GridItemSlots,qt as GridSlots,be as Header,Lr as HeaderSlots,Rr as HeaderVariants,Ye as IconLabel,se as Image,Ie as ImageGallery,Gr as ImageGallerySlots,Xe as Link,or as LinkSlots,we as Modal,Dr as ModalSlots,Te as NavigationFlyout,Se as NavigationGroup,Ze as NavigationLink,Ae as Page,Ne as Review,Or as ReviewSlots,Mr as ReviewVariants,et as RichText,Be as Section,jr as SectionContentAlignment,Wr as SectionSlots,$r as SectionVariants,pe as Spacer,tt as SpacerVariants,rt as Tab,lr as TabSlots,ke as Table,me as TableCustomCell,dr as TableCustomCellSlots,le as TableDataCell,ce as TableHeaderCell,de as TableRow,Hr as TableSlots,Fe as Tabs,qr as TabsSlots,zr as TabsVariants,Ue as Testimonial,Kr as TestimonialSlots,Jr as TestimonialVariants,at as Text,nt as ThemeSwitcher,ue as Video,np as componentResolver,gr as cskComponentsMapping,ap as default};
1
+ import{a as ut}from"../../chunk-TM7Q5NMH.mjs";import{a as ft,b as ht,c as Pt}from"../../chunk-HLLKGZN6.mjs";import{a as z}from"../../chunk-AKRWCDDG.mjs";import{a as pt}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 $r,N as Wr,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 W,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-NWTTCWMN.mjs";import{b as Er,c as Te}from"../../chunk-2SEOCBRK.mjs";import{a as qr,b as Jr,c as Ue}from"../../chunk-CBZWZSQW.mjs";import{a as j,b as H,d as $}from"../../chunk-H3OSPGNK.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as b}from"../../chunk-QHIWJPL6.mjs";import{a as Tr,b as Sr,c as ye}from"../../chunk-T6HZMAEP.mjs";import{a as kr,b as Fr,c as ve}from"../../chunk-2UV7TQNF.mjs";import{a as ct,b as dt}from"../../chunk-VZCFPWET.mjs";import{a as v}from"../../chunk-SDTLQ3CZ.mjs";import{a as lt}from"../../chunk-RZFK2OR7.mjs";import"../../chunk-3PDY7RJC.mjs";import{a as C}from"../../chunk-JNIJ5N3Y.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as O,c as g,d as mt}from"../../chunk-RX4IAAQQ.mjs";import{a as Pe,c as f}from"../../chunk-S7CSCIW4.mjs";import{a as st,b as Ir}from"../../chunk-YEKQJ4YC.mjs";var It=st((aa,bt)=>{"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}};bt.exports=De});var Tt=st((na,wt)=>{"use strict";var eo=It(),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};wt.exports=to});import Yr from"next/dynamic";var Ct=(e=>(e.AccordionItemContent="accordionItemContent",e))(Ct||{}),Ve=Yr(()=>import("../../accordion-item-A2CU5OKG.mjs").then(r=>r.AccordionItem));import{UniformText as Xr}from"@uniformdev/canvas-next-rsc/component";import{jsx as yt}from"react/jsx-runtime";var xt=({className:r,...e})=>yt("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:f("w-1.5 h-1.5",r),...e,children:yt("circle",{r:"3",cx:"3",cy:"3"})});var gt=({pill:r,size:e,dotColor:t,borderColor:o,backgroundColor:a})=>f("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 vt=({component:r,context:e,textColor:t,backgroundColor:o,borderColor:a,dotColor:p,pill:i=!1,size:s})=>Zr("div",{className:gt({pill:i,size:s,dotColor:p,borderColor:a,backgroundColor:o}),children:[p&&Le(xt,{className:f({[`fill-${p}`]:p})}),Le(b,{color:t,size:"xs",children:Le(Xr,{placeholder:"Badge text goes here",parameterId:"text",component:r,context:e})})]});var Re=vt;import{flattenValues as Gt,CanvasClient as xo}from"@uniformdev/canvas";var At=Ir(Tt(),1),ro=Object.defineProperty,St=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)||St("Cannot "+t),h=(r,e,t)=>(no(r,e,"read from private field"),t?t.call(r):e.get(r)),I=(r,e,t)=>e.has(r)?St("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var io=(0,At.default)(6),so=class Nt 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,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,className:l})=>Mt(lt,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,className:l,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,wrapperClassName:d})=>Ht(ft,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,wrapperClassName:d,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,slots:n,component:m,context:l,className:c})=>zt(ct,{className:c,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,children:zt(So,{data:m,context:l,slot:n.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};
@@ -103,6 +103,7 @@ declare const Image: FC<ImageProps>;
103
103
  type ImageProps = ImageProps$1 & {
104
104
  containerStyle?: NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
105
105
  overlayColor?: string;
106
+ contrastBaseColor?: string;
106
107
  overlayOpacity?: NonNullable<ImageProps$1['style']>['opacity'];
107
108
  border?: string | ViewPort<string>;
108
109
  };
@@ -1 +1 @@
1
- import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-HLLKGZN6.mjs";import{a as i}from"../../chunk-AKRWCDDG.mjs";import{a as o}from"../../chunk-P2OOJTJ2.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-H3OSPGNK.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-VZCFPWET.mjs";import{a as p}from"../../chunk-EIQPM3DQ.mjs";import{a as e}from"../../chunk-RZFK2OR7.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};
1
+ import{a as h}from"../../chunk-V4EBWEG4.mjs";import{a as c,b as g,c as F}from"../../chunk-HLLKGZN6.mjs";import{a as i}from"../../chunk-AKRWCDDG.mjs";import{a as o}from"../../chunk-P2OOJTJ2.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-H3OSPGNK.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-VZCFPWET.mjs";import{a as p}from"../../chunk-SDTLQ3CZ.mjs";import{a as e}from"../../chunk-RZFK2OR7.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};
@@ -90,6 +90,7 @@ export const BaseHeroImage: FC<BaseImageParameters & Omit<ComponentProps, 'param
90
90
  width,
91
91
  height,
92
92
  overlayColor,
93
+ contrastBaseColor,
93
94
  overlayOpacity,
94
95
  border,
95
96
  priority,
@@ -125,6 +126,7 @@ export const BaseHeroImage: FC<BaseImageParameters & Omit<ComponentProps, 'param
125
126
  sizes="100%"
126
127
  style={{ objectFit }}
127
128
  overlayColor={overlayColor}
129
+ contrastBaseColor={contrastBaseColor}
128
130
  overlayOpacity={overlayOpacity}
129
131
  border={border}
130
132
  />
@@ -1,13 +1,13 @@
1
1
  import { FC } from 'react';
2
2
  import { UniformSlot } from '@uniformdev/canvas-next-rsc/component';
3
- import { DemoHeroProps, DemoHeroVariants } from '.';
3
+ import { DemoHeroVariants, FixedHeroProps, FlexibleHeroProps } from '.';
4
4
  import { BaseHeroButton, BaseHeroImage, BaseHeroText } from './atoms';
5
5
  import { ColumnsVariant } from './columns-variant';
6
6
  import { DefaultVariant } from './default-variant';
7
7
  import { getButtonAlignmentClass, getTextAlignmentClass } from './style-utils';
8
8
  import { cleanUpPrefix } from './utils';
9
9
 
10
- export const DemoHero: FC<DemoHeroProps & { isFlexibleHero?: boolean }> = ({
10
+ export const DemoHero: FC<(FixedHeroProps | FlexibleHeroProps) & { isFlexibleHero?: boolean }> = ({
11
11
  // Eyebrow Text Parameters
12
12
  eyebrowTitleText,
13
13
  eyebrowTitleTag,
@@ -66,6 +66,7 @@ export const DemoHero: FC<DemoHeroProps & { isFlexibleHero?: boolean }> = ({
66
66
  imageHeight,
67
67
  imageObjectFit,
68
68
  imageOverlayColor,
69
+ imageContrastBaseColor,
69
70
  imageOverlayOpacity,
70
71
  imageBorder,
71
72
  imagePriority,
@@ -206,6 +207,7 @@ export const DemoHero: FC<DemoHeroProps & { isFlexibleHero?: boolean }> = ({
206
207
  imageHeight,
207
208
  imageObjectFit,
208
209
  imageOverlayColor,
210
+ imageContrastBaseColor,
209
211
  imageOverlayOpacity,
210
212
  imageBorder,
211
213
  imagePriority,
@@ -1,8 +1,8 @@
1
1
  import { FC } from 'react';
2
- import { DemoHeroProps } from '.';
2
+ import { FixedHeroProps } from '.';
3
3
  import { DemoHero } from './demo-hero';
4
4
 
5
- export const FixedHero: FC<DemoHeroProps> = props => (
5
+ export const FixedHero: FC<FixedHeroProps> = ({ enableOverlayAutoTint = false, ...props }) => (
6
6
  <DemoHero
7
7
  {...props}
8
8
  // Eyebrow Text Parameters
@@ -41,6 +41,8 @@ export const FixedHero: FC<DemoHeroProps> = props => (
41
41
  imagePriority
42
42
  imageObjectFit="cover"
43
43
  imageUnoptimized
44
+ imageContrastBaseColor={!props.component.variant && enableOverlayAutoTint ? props.titleColor : undefined}
45
+ imageOverlayOpacity="0.3"
44
46
  // Presentation Parameters
45
47
  spacing={{
46
48
  paddingTop: 'container-xlarge',
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { DemoHeroProps } from '.';
2
+ import { FlexibleHeroProps } from '.';
3
3
  import { DemoHero } from './demo-hero';
4
4
 
5
- export const FlexibleHero: FC<DemoHeroProps> = props => <DemoHero {...props} isFlexibleHero={true} />;
5
+ export const FlexibleHero: FC<FlexibleHeroProps> = props => <DemoHero {...props} isFlexibleHero={true} />;
@@ -41,6 +41,7 @@ export type BaseImageParameters = {
41
41
  objectFit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
42
42
  overlayColor?: string;
43
43
  overlayOpacity?: string;
44
+ contrastBaseColor?: string;
44
45
  border?: string | ViewPort<string>;
45
46
  priority?: boolean;
46
47
  unoptimized?: boolean;
@@ -59,6 +60,9 @@ export type SecondaryButtonParameters = PrefixedKeys<BaseButtonParameters, 'seco
59
60
  export type ImageParameters = PrefixedKeys<Omit<BaseImageParameters, 'image'>, 'image'> &
60
61
  Pick<BaseImageParameters, 'image'>;
61
62
 
63
+ /**
64
+ * @deprecated Use FixedHeroParameters or FlexibleHeroParameters directly instead.
65
+ */
62
66
  export type DemoHeroParameters = ContainerParameters & {
63
67
  contentAlignment?: ContentAlignment;
64
68
  } & EyebrowTitleTextParameters &
@@ -68,6 +72,12 @@ export type DemoHeroParameters = ContainerParameters & {
68
72
  SecondaryButtonParameters &
69
73
  ImageParameters;
70
74
 
75
+ export type FixedHeroParameters = {
76
+ enableOverlayAutoTint?: boolean;
77
+ } & DemoHeroParameters;
78
+
79
+ export type FlexibleHeroParameters = DemoHeroParameters;
80
+
71
81
  export enum DemoHeroVariants {
72
82
  Columns = 'columns',
73
83
  ColumnsReverse = 'columnsReverse',
@@ -78,7 +88,12 @@ export enum FlexibleHeroSlots {
78
88
  FlexibleHeroCta = 'flexibleHeroCta',
79
89
  }
80
90
 
81
- export type DemoHeroProps = ComponentProps<DemoHeroParameters, FlexibleHeroSlots>;
91
+ /**
92
+ * @deprecated Use FixedHeroProps or FlexibleHeroProps directly instead.
93
+ */
94
+ export type DemoHeroProps = FixedHeroProps | FlexibleHeroProps;
95
+ export type FixedHeroProps = ComponentProps<FixedHeroParameters>;
96
+ export type FlexibleHeroProps = ComponentProps<FlexibleHeroParameters, FlexibleHeroSlots>;
82
97
 
83
98
  const DemoHero = { FixedHero, FlexibleHero };
84
99
  export default DemoHero;
@@ -12,6 +12,7 @@ export type NavigationFlyoutParameters = TextParameters & {
12
12
  border?: string | ViewPort<string>;
13
13
  caretIcon?: AssetParamValue;
14
14
  hoverEffect?: string | ViewPort<string>;
15
+ className?: string;
15
16
  };
16
17
 
17
18
  export enum NavigationFlyoutSlots {
@@ -30,6 +30,7 @@ export const NavigationFlyout: FC<NavigationFlyoutProps> = ({
30
30
  context,
31
31
  slots,
32
32
  hoverEffect = '',
33
+ className,
33
34
  }) => {
34
35
  const [isOpen, setIsOpen] = useState(false);
35
36
 
@@ -62,7 +63,7 @@ export const NavigationFlyout: FC<NavigationFlyoutProps> = ({
62
63
  <button onMouseEnter={openFlyout} className={getButtonClasses({ color })}>
63
64
  <BaseIconLabel
64
65
  icon={renderUrl()}
65
- className="group"
66
+ className={cn('group', className)}
66
67
  iconClassName={actionClassName}
67
68
  textClassName={actionClassName}
68
69
  {...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
@@ -12,6 +12,7 @@ export type NavigationGroupParameters = TextParameters & {
12
12
  backgroundColor?: string;
13
13
  border?: string | ViewPort<string>;
14
14
  hoverEffect?: string | ViewPort<string>;
15
+ className?: string;
15
16
  };
16
17
 
17
18
  export enum NavigationGroupSlots {
@@ -30,6 +30,7 @@ export const NavigationGroup: FC<NavigationGroupProps> = ({
30
30
  context,
31
31
  slots,
32
32
  hoverEffect = '',
33
+ className,
33
34
  }) => {
34
35
  const [isOpen, setIsOpen] = useState(false);
35
36
 
@@ -57,7 +58,7 @@ export const NavigationGroup: FC<NavigationGroupProps> = ({
57
58
  <button onMouseEnter={openFlyout} onClick={openFlyout} className={getButtonClasses({ color })}>
58
59
  <BaseIconLabel
59
60
  icon={renderUrl()}
60
- className="group"
61
+ className={cn('group', className)}
61
62
  iconClassName={actionClassName}
62
63
  textClassName={actionClassName}
63
64
  {...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
@@ -10,6 +10,7 @@ export type NavigationLinkParameters = TextParameters & {
10
10
  link?: LinkParamValue;
11
11
  activeState?: boolean;
12
12
  hoverEffect?: string | ViewPort<string>;
13
+ className?: string;
13
14
  };
14
15
 
15
16
  export type NavigationLinkProps = ComponentProps<NavigationLinkParameters>;
@@ -25,6 +25,7 @@ export const NavigationLink: FC<NavigationLinkProps> = ({
25
25
  component,
26
26
  context,
27
27
  hoverEffect = '',
28
+ className,
28
29
  }) => {
29
30
  const href = formatUniformLink(link);
30
31
  const isActive = activeState && resolveRouteToPath(context.matchedRoute, context.dynamicInputs) === href;
@@ -47,7 +48,7 @@ export const NavigationLink: FC<NavigationLinkProps> = ({
47
48
  <Wrapper href={href} isExternalLink={isExternalLink(href)}>
48
49
  <BaseIconLabel
49
50
  icon={renderUrl()}
50
- className="group"
51
+ className={cn('group', className)}
51
52
  iconClassName={actionClassName}
52
53
  textClassName={actionClassName}
53
54
  {...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
@@ -6,6 +6,7 @@ import { ImageProps } from './';
6
6
  export const Image: FC<ImageProps> = ({
7
7
  containerStyle,
8
8
  overlayColor,
9
+ contrastBaseColor,
9
10
  overlayOpacity,
10
11
  border = '',
11
12
  style: imageStyle,
@@ -21,10 +22,13 @@ export const Image: FC<ImageProps> = ({
21
22
  />
22
23
  <div
23
24
  className={cn('absolute bottom-0 left-0 right-0 top-0', {
24
- [`bg-${overlayColor}`]: overlayColor,
25
+ [`bg-${overlayColor || contrastBaseColor}`]: overlayColor || contrastBaseColor,
25
26
  [resolveViewPort(border, '{value}')]: border,
26
27
  })}
27
- style={{ opacity: overlayOpacity || 0 }}
28
+ style={{
29
+ opacity: overlayOpacity || 0,
30
+ ...(contrastBaseColor && !overlayColor ? { filter: 'grayscale(100%) invert(100%)' } : {}),
31
+ }}
28
32
  />
29
33
  </div>
30
34
  );
@@ -5,6 +5,7 @@ import { ViewPort } from '@/types/cskTypes';
5
5
  export type ImageProps = NextImageProps & {
6
6
  containerStyle?: NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
7
7
  overlayColor?: string;
8
+ contrastBaseColor?: string;
8
9
  overlayOpacity?: NonNullable<NextImageProps['style']>['opacity'];
9
10
  border?: string | ViewPort<string>;
10
11
  };
@@ -1 +1 @@
1
- "use client";import{a as d}from"./chunk-EIQPM3DQ.mjs";import{a as I}from"./chunk-RZFK2OR7.mjs";import{a as G}from"./chunk-JNIJ5N3Y.mjs";import{c as h}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as R}from"@uniformdev/canvas-next-rsc/component";import F from"react-responsive-masonry";import{Fragment as v,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},L=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:p=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:f=[]}=n||{},c=f.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+p?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(v,{children:c?.map((e,o)=>e.length?y(F,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,u)=>y("div",{className:h("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${u}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var M=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,config:e,context:o,component:t})=>{let u=r?.length?{name:"items",items:G(r)?.map((a,C)=>l(d,{src:a.url,style:{objectFit:"cover"},alt:`Image ${C}`,fill:!0},a?.id||`image-${C}`))||[]}:n.imageGalleryItems,P=!r?.length&&!t?.slots?.imageGalleryItems?.filter(({_id:a})=>!a?.startsWith("placeholder"))?.length;return l(I,{backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,children:l("div",{className:"flex flex-col gap-1",children:P?l(R,{context:o,slot:n.imageGalleryItems,data:t}):l(L,{slot:u,aspectRatio:s,config:e})})})};export{M as ImageGallery};
1
+ "use client";import{a as d}from"./chunk-SDTLQ3CZ.mjs";import{a as I}from"./chunk-RZFK2OR7.mjs";import{a as G}from"./chunk-JNIJ5N3Y.mjs";import{c as h}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as R}from"@uniformdev/canvas-next-rsc/component";import F from"react-responsive-masonry";import{Fragment as v,jsx as y}from"react/jsx-runtime";var g={firstLineCount:2,secondLineCount:3,otherLinesCount:4},L=({slot:n,aspectRatio:s,config:r})=>{let{firstLineCount:i=g.firstLineCount,secondLineCount:p=g.secondLineCount,otherLinesCount:m=g.otherLinesCount}=r||{},{items:f=[]}=n||{},c=f.reduce((e,o,t)=>(t<i?e[0]?.push(o):t<i+p?e[1]?.push(o):e[2]?.push(o),e),[[],[],[]])||[];return y(v,{children:c?.map((e,o)=>e.length?y(F,{columnsCount:o<2||e.length<m?e.length:m,gutter:"4px",children:e.map((t,u)=>y("div",{className:h("flex flex-1 items-center justify-center",{[`aspect-${s}`]:!!s}),children:t},`img-${u}`))},`line-${o}`):null)})};import{jsx as l}from"react/jsx-runtime";var M=({slots:n,aspectRatio:s,items:r,backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,config:e,context:o,component:t})=>{let u=r?.length?{name:"items",items:G(r)?.map((a,C)=>l(d,{src:a.url,style:{objectFit:"cover"},alt:`Image ${C}`,fill:!0},a?.id||`image-${C}`))||[]}:n.imageGalleryItems,P=!r?.length&&!t?.slots?.imageGalleryItems?.filter(({_id:a})=>!a?.startsWith("placeholder"))?.length;return l(I,{backgroundColor:i,spacing:p,border:m,fluidContent:f,fullHeight:c,children:l("div",{className:"flex flex-col gap-1",children:P?l(R,{context:o,slot:n.imageGalleryItems,data:t}):l(L,{slot:u,aspectRatio:s,config:e})})})};export{M as ImageGallery};
@@ -0,0 +1 @@
1
+ "use client";import{a as H}from"./chunk-TM7Q5NMH.mjs";import{a as B}from"./chunk-AKRWCDDG.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as w,b as y}from"./chunk-VZCFPWET.mjs";import{a as C}from"./chunk-SDTLQ3CZ.mjs";import"./chunk-RZFK2OR7.mjs";import{a as g}from"./chunk-JNIJ5N3Y.mjs";import{a as u,c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as et,useState as at}from"react";import{UniformText as st}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as _}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:e,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:o("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:o("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:_(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:e,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:e,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as j,useState as tt}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var ot=()=>{let[t,s]=tt(0);return j(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:e,slots:i,onClose:r,component:n})=>{let l=ot();return R("div",{style:{top:l},className:o("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:e,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:e,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>o("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>o("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Gt=({icon:t,caretIcon:s,backgroundColor:e,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F="",className:X})=>{let[f,P]=at(!1),q=O(()=>P(!0),[]),h=O(()=>P(!1),[]),J=et(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[K]=g(t),{url:c,title:x=""}=K||{},Q=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=o("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Y]=g(s),{url:I,title:Z=""}=Y||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:q,className:D({color:l}),children:[a(B,{icon:Q(),className:o("group",X),iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(st,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:o("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Z,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:J,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})})]})};export{Gt as NavigationFlyout};
@@ -0,0 +1 @@
1
+ "use client";import{a as B}from"./chunk-TM7Q5NMH.mjs";import{a as I}from"./chunk-AKRWCDDG.mjs";import{a as y}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as f}from"./chunk-SDTLQ3CZ.mjs";import{a as v}from"./chunk-JNIJ5N3Y.mjs";import{a as l,c as t}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as S,useState as _}from"react";import{UniformText as j}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as K}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var F=({isOpen:o,backgroundColor:s,context:e,slots:i,border:a})=>p("div",{className:t("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:t({[`bg-${s}`]:!!s,[l(a,"{value}")]:a}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p(K,{data:e,slot:i.links,context:e})})})});import{useEffect as Q,useState as R}from"react";import{UniformSlot as X}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Z}from"react/jsx-runtime";var Y=()=>{let[o,s]=R(0);return Q(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),o},H=({isOpen:o,backgroundColor:s,context:e,slots:i,onClose:a})=>{let c=Y();return Z("div",{style:{top:c},className:t("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!o,block:o}),children:[m("button",{onClick:a,className:"w-max rotate-180 px-4",children:m(y,{})}),m("div",{className:"flex flex-col items-center gap-y-4 p-4",children:m(X,{data:e,slot:i.links,context:e})})]})};var w=({isOpen:o})=>t("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),M=({color:o})=>t("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as r,jsxs as U}from"react/jsx-runtime";var yo=({icon:o,caretIcon:s,backgroundColor:e,border:i,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,component:A,context:d,slots:C,hoverEffect:N="",className:E})=>{let[u,b]=_(!1),P=S(()=>b(!0),[]),x=S(()=>b(!1),[]),[z]=v(o),{url:n,title:h=""}=z||{},W=()=>n?n.endsWith(".svg")?r(B,{src:n,alt:h,fill:!0}):r(f,{src:n,alt:h,fill:!0}):null,G=t("transition-all duration-150",{[l(N,"group-hover:{value}")]:!!N}),[q]=v(s),{url:k,title:J=""}=q||{};return U("div",{className:"relative",onMouseLeave:x,children:[U("button",{onMouseEnter:P,onClick:P,className:M({color:g}),children:[r(I,{icon:W(),className:t("group",E),iconClassName:G,textClassName:G,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,children:r(j,{placeholder:"Text goes here",parameterId:"text",component:A,context:d})}),k&&r("div",{className:t("relative size-[1em]",w({isOpen:u}),{[`text-${a}`]:!!a}),children:r(f,{src:k,alt:J,fill:!0})})]}),r("div",{className:"hidden md:block",children:r(F,{isOpen:u,backgroundColor:e,context:d,slots:C,border:i})}),r("div",{className:"block md:hidden",children:r(H,{onClose:x,isOpen:u,backgroundColor:e,context:d,slots:C})})]})};export{yo as NavigationGroup};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/csk-components",
3
- "version": "6.0.76-alpha.1",
3
+ "version": "6.0.78-alpha.1",
4
4
  "description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -1 +0,0 @@
1
- import{a as e,c as o}from"./chunk-S7CSCIW4.mjs";import p from"next/image";import{jsx as a,jsxs as y}from"react/jsx-runtime";var g=({containerStyle:m,overlayColor:r,overlayOpacity:s,border:t="",style:l,...i})=>y("div",{className:"relative size-full",style:m,children:[a(p,{...i,className:o({[e(t,"{value}")]:t}),style:{...l}}),a("div",{className:o("absolute bottom-0 left-0 right-0 top-0",{[`bg-${r}`]:r,[e(t,"{value}")]:t}),style:{opacity:s||0}})]});export{g as a};
@@ -1 +0,0 @@
1
- import{b as ge,d as ve,e as ye,f as he,g as Re,h as I}from"./chunk-H3OSPGNK.mjs";import{a as xe}from"./chunk-QHIWJPL6.mjs";import{a as $}from"./chunk-EIQPM3DQ.mjs";import{a as c}from"./chunk-RZFK2OR7.mjs";import{a as Y}from"./chunk-JNIJ5N3Y.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as Ce}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Ne}from"@uniformdev/canvas-next-rsc/component";import{jsx as q,jsxs as go}from"react/jsx-runtime";var Co=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m})=>go(c,{className:"flex flex-col gap-8",backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,children:[q("div",{className:"flex flex-col gap-4 text-start",children:q(Ne,{data:o,context:t,slot:e.accordionContent})}),q(Ne,{data:o,context:t,slot:e.accordionItems})]});import{jsx as Te}from"react/jsx-runtime";var xo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Te("div",{className:"h-20"})};case"accordionItems":return{component:()=>Te("div",{className:"h-28"})};default:return l}};var we=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(we||{});import{UniformSlot as He}from"@uniformdev/canvas-next-rsc/component";import{jsx as yo}from"react/jsx-runtime";var vo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>yo("div",{className:"h-20"})};default:return l}};var Ee=(o=>(o.BackgroundImage="backgroundImage",o))(Ee||{}),be=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(be||{});import{jsx as D,jsxs as Ro}from"react/jsx-runtime";var ho=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,className:s,contentClassName:d})=>{let f=e.variant==="backgroundImage";return Ro(c,{className:p("relative overflow-hidden",s),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,children:[D("div",{className:p({"inset-0 size-full absolute":f}),children:D(He,{data:e,context:o,slot:t.cardMedia})}),D("div",{className:p("relative flex flex-col gap-y-2",d),children:D(He,{data:e,context:o,slot:t.cardContent})})]})};import wo from"next/dynamic";import{jsx as To}from"react/jsx-runtime";var No=e=>{switch(e.slotName){case"carouselItems":return{component:()=>To("div",{className:"mx-20 h-20 w-full"})};default:return l}};var Fe=(o=>(o.Items="carouselItems",o))(Fe||{}),Fr=wo(()=>import("./carousel-UKVR7LKR.mjs").then(e=>e.Carousel));import{UniformSlot as _e}from"@uniformdev/canvas-next-rsc/component";import{UniformText as Ae}from"@uniformdev/canvas-next-rsc/component";import{jsx as C}from"react/jsx-runtime";var V=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:C(xe,{...a,children:C(Ae,{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,m=Ce(i),s=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!m&&!s?null:C(ge,{...a,href:m,icon:C(()=>{let[f]=Y(n),{url:P,title:N=""}=f||{};return P?C($,{src:P,alt:N,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:C(Ae,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Be=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,overlayOpacity:m,border:s,priority:d,unoptimized:f})=>{let[P]=Y(t);if(!P){let K=o.previewMode==="editor"&&o.isContextualEditing,G=e?._id?.includes("placeholder_");return!K||G||!e.variant?null:C("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:C(ve,{type:"image",placeholder:"Please add an asset to display an image"})})}let{url:N,title:W=""}=P;return C($,{containerStyle:{...a?{width:`${a}px`}:{},...i?{height:`${i}px`}:{}},src:N,alt:W,fill:!0,unoptimized:f,priority:d,sizes:"100%",style:{objectFit:r},overlayColor:n,overlayOpacity:m,border:s})};import{jsx as T,jsxs as Ie}from"react/jsx-runtime";var De=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,demoHeroMedia:n,demoHeroContent:m,demoHeroCTA:s,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:Ie("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),Ie("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:m}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:s})]})]})});import{jsx as Q,jsxs as Ve}from"react/jsx-runtime";var Se=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:m,textAlignmentClass:s,buttonAlignmentClass:d})=>Ve(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[Q("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Ve(c,{className:"relative flex flex-col gap-8",children:[Q("div",{className:p("flex flex-col gap-4",s),children:n}),Q("div",{className:p("flex flex-wrap gap-2 items-center",d),children:m})]})]});var ke=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Oe=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var y=(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 X,jsx as u,jsxs as bo}from"react/jsx-runtime";var S=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:m,eyebrowTitleDecoration:s,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:P,titleTag:N,titleSize:W,titleColor:K,titleWeight:G,titleFont:ht,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:wt,titleLineCountRestrictions:bt,descriptionText:Et,descriptionTag:Ht,descriptionSize:Ft,descriptionColor:At,descriptionWeight:Lt,descriptionFont:Bt,descriptionAlignment:It,descriptionTransform:Dt,descriptionDecoration:Vt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:kt,primaryButtonVariant:Ot,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Jt,primaryButtonIconPosition:Qt,primaryButtonHoverButtonColor:Xt,primaryButtonHoverTextColor:Zt,image:jt,imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageOverlayOpacity:ao,imageBorder:io,imagePriority:no,imageUnoptimized:mo,contentAlignment:de,backgroundColor:so,spacing:lo,border:po,fluidContent:co,fullHeight:fo,isFlexibleHero:ce=!1,component:g,context:x,slots:fe})=>{let Pe=g.variant,Po=ce?u(_e,{data:g,context:x,slot:fe.flexibleHeroContent}):bo(X,{children:[u(V,{...y({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:m,eyebrowTitleDecoration:s,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:g,context:x,parameterId:"eyebrowTitleText"}),u(V,{...y({titleText:P,titleTag:N,titleSize:W,titleColor:K,titleWeight:G,titleFont:ht,titleAlignment:Rt,titleTransform:Nt,titleDecoration:Tt,titleLetterSpacing:wt,titleLineCountRestrictions:bt},"title"),component:g,context:x,parameterId:"titleText"}),u(V,{...y({descriptionText:Et,descriptionTag:Ht,descriptionSize:Ft,descriptionColor:At,descriptionWeight:Lt,descriptionFont:Bt,descriptionAlignment:It,descriptionTransform:Dt,descriptionDecoration:Vt,descriptionLetterSpacing:St,descriptionLineCountRestrictions:kt},"description"),component:g,context:x,parameterId:"descriptionText"})]}),uo=ce?u(_e,{data:g,context:x,slot:fe.flexibleHeroCta}):u(X,{children:u(Le,{...y({primaryButtonVariant:Ot,primaryButtonText:Mt,primaryButtonLink:_t,primaryButtonTextColor:Ut,primaryButtonTextWeight:zt,primaryButtonTextFont:Wt,primaryButtonTextTransform:Kt,primaryButtonButtonColor:Gt,primaryButtonBorder:Yt,primaryButtonSize:$t,primaryButtonIcon:qt,primaryButtonTextSize:Jt,primaryButtonIconPosition:Qt,primaryButtonHoverButtonColor:Xt,primaryButtonHoverTextColor:Zt},"primaryButton"),component:g,context:x,parameterId:"primaryButtonText"})}),ue={variant:Pe,backgroundColor:so,spacing:lo,border:po,fluidContent:co,fullHeight:fo,textAlignmentClass:Oe({contentAlignment:de}),buttonAlignmentClass:ke({contentAlignment:de}),demoHeroMedia:u(X,{children:u(Be,{image:jt,...y({imageWidth:eo,imageHeight:to,imageObjectFit:oo,imageOverlayColor:ro,imageOverlayOpacity:ao,imageBorder:io,imagePriority:no,imageUnoptimized:mo},"image"),component:g,context:x})}),demoHeroContent:Po,demoHeroCTA:uo};switch(Pe){case"columns":case"columnsReverse":return u(De,{...ue});default:return u(Se,{...ue})}};import{jsx as Eo}from"react/jsx-runtime";var Ue=e=>Eo(S,{...e,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",titleSize:{mobile:"3xl",tablet:"5xl",desktop:"5xl"},titleWeight:"bold",descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",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,spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!e.component.variant,isFlexibleHero:!1});import{jsx as Ho}from"react/jsx-runtime";var ze=e=>Ho(S,{...e,isFlexibleHero:!0});import{jsx as We}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>We("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>We("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Me=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Me||{}),J=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(J||{}),Ke=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ke||{}),Ao={FixedHero:Ue,FlexibleHero:ze},ba=Ao;import{UniformSlot as Z}from"@uniformdev/canvas-next-rsc/component";import{jsx as k}from"react/jsx-runtime";var Ge=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>k(ye,{logo:k(Z,{context:e,slot:t.footerLogo,data:o}),copyright:k(Z,{context:e,slot:t.footerCopyright,data:o}),content:k(Z,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as j}from"react/jsx-runtime";var Lo=e=>{switch(e.slotName){case"footerLogo":return{component:()=>j("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>j("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>j("div",{className:"h-20 w-48"})};default:return l}};var Ye=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))(Ye||{}),Oa=Ge;import{UniformSlot as ee}from"@uniformdev/canvas-next-rsc/component";import{jsx as O}from"react/jsx-runtime";var $e=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>O(he,{sticky:i.variant==="sticky",leftSection:O(ee,{context:a,slot:n.headerLeftContent,data:i}),rightSection:O(ee,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:O(ee,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as te}from"react/jsx-runtime";var Bo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>te("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>te("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>te("div",{className:"h-20 w-48"})};default:return l}};var Je=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(Je||{}),qe=(o=>(o.Sticky="sticky",o))(qe||{}),Za=$e;import Vo from"next/dynamic";import{jsx as Do}from"react/jsx-runtime";var Io=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Do("div",{className:" mx-auto size-48"})};default:return l}};var Qe=(o=>(o.Items="imageGalleryItems",o))(Qe||{}),ni=Vo(()=>import("./image-gallery-2ZNDWYOS.mjs").then(e=>e.ImageGallery));import ko from"next/dynamic";import{jsx as Xe}from"react/jsx-runtime";var So=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>Xe("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>Xe("div",{className:"h-40 w-48"})};default:return l}};var ui=ko(()=>import("./navigation-flyout-J2NUTJM7.mjs").then(e=>e.NavigationFlyout));import _o from"next/dynamic";import{jsx as Mo}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"links":return{component:()=>Mo("div",{className:"h-40 w-48"})};default:return l}};var Ti=_o(()=>import("./navigation-group-RKFLIQXP.mjs").then(e=>e.NavigationGroup));import{UniformSlot as oe}from"@uniformdev/canvas-next-rsc/component";import{jsx as M}from"react/jsx-runtime";var Uo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>M(Re,{backgroundColor:r,header:M(oe,{context:t,slot:e.pageHeader,data:o,children:a}),footer:M(oe,{context:t,slot:e.pageFooter,data:o,children:n}),children:M(oe,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as re}from"react/jsx-runtime";var zo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>re("div",{className:"h-40"})};case"pageContent":return{component:()=>re("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>re("div",{className:"h-40"})};default:return l}};var Ze=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(Ze||{});import{UniformSlot as ie}from"@uniformdev/canvas-next-rsc/component";import{jsx as w}from"react/jsx-runtime";var Wo=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?w("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};default:return l}};var ae=(o=>(o.MultiColumn="multiColumn",o))(ae||{}),je=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(je||{});import{jsx as b,jsxs as et}from"react/jsx-runtime";var tt=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:P})=>b(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:et("div",{className:"mx-auto flex lg:max-w-[60%]",children:[b("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),et("div",{className:"ml-6",children:[f,b("div",{className:"py-4",children:b(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),b("div",{className:"flex flex-col gap-y-5",children:P})]})]})});import{jsx as h,jsxs as ot}from"react/jsx-runtime";var rt=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:P})=>h(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:ot("div",{className:"grid md:grid-cols-12",children:[ot("div",{className:"mb-2 md:col-span-4 md:my-0",children:[h("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),h("div",{className:"flex flex-col gap-y-1",children:f})]}),h("div",{className:"my-2 md:col-span-4 md:my-0",children:h(I,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),h("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:P})]})});import{jsx as E}from"react/jsx-runtime";var Ko=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:E(ie,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:E(ie,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:E(ie,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return E(rt,{...i});default:return E(tt,{...i})}};import{UniformSlot as le}from"@uniformdev/canvas-next-rsc/component";import{jsx as ne}from"react/jsx-runtime";var Go=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:ne("div",{className:"size-full"})};case"sectionContent":return{component:()=>ne("div",{className:"h-20"})};case"sectionCTA":return{component:()=>ne("div",{className:"mx-40 h-20 w-full"})};default:return l}};var it=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(it||{}),me=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(me||{}),at=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(at||{});import{jsx as H,jsxs as nt}from"react/jsx-runtime";var mt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,variant:i,sectionMedia:n,sectionContent:m,sectionCTA:s,textAlignmentClass:d,buttonAlignmentClass:f})=>H(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:nt("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[H("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:H("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),nt("div",{className:"flex flex-col justify-center gap-8",children:[H("div",{className:p("flex flex-col gap-4",d),children:m}),H("div",{className:p("flex flex-wrap gap-2",f),children:s})]})]})});import{jsx as se,jsxs as st}from"react/jsx-runtime";var lt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,sectionMedia:i,sectionContent:n,sectionCTA:m,textAlignmentClass:s,buttonAlignmentClass:d})=>st(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,fullHeight:a,children:[se("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),st(c,{className:"relative flex flex-col gap-8",children:[se("div",{className:p("flex flex-col gap-4",s),children:n}),se("div",{className:p("flex flex-wrap gap-2",d),children:m})]})]});var pt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),dt=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as F}from"react/jsx-runtime";var Yo=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>{let d=t.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,textAlignmentClass:dt({contentAlignment:e}),buttonAlignmentClass:pt({contentAlignment:e}),sectionMedia:F(le,{data:t,context:r,slot:o.sectionMedia}),sectionContent:F(le,{data:t,context:r,slot:o.sectionContent}),sectionCTA:F(le,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return F(mt,{...f});default:return F(lt,{...f})}};import{UniformSlot as ft}from"@uniformdev/canvas-next-rsc/component";var ct=({size:e,textColor:o})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as R,jsxs as qo}from"react/jsx-runtime";var $o=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:m,fluidContent:s,fullHeight:d})=>R(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:m,fluidContent:s,fullHeight:d,children:R("div",{className:"overflow-x-auto",children:qo("table",{className:ct({size:e,textColor:o}),children:[R("thead",{children:R(ft,{slot:t.tableHead,context:a,data:r})}),R("tbody",{children:R(ft,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as Pt}from"react/jsx-runtime";var Jo=e=>{switch(e.slotName){case"tableHead":return{component:()=>Pt("tr",{className:"h-20"})};case"tableBody":return{component:()=>Pt("tr",{className:"h-40"})};default:return l}};var ut=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(ut||{});import{UniformSlot as z}from"@uniformdev/canvas-next-rsc/component";import{jsx as _}from"react/jsx-runtime";var Qo=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>_("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>_("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>_("div",{className:"h-20 w-64"})};default:return l}};var gt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(gt||{}),Ct=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Ct||{});import{jsx as A,jsxs as Zo}from"react/jsx-runtime";var xt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>A(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:Zo("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[A("div",{children:r}),A("div",{className:"my-8",children:o}),A("div",{className:"size-10 rounded-full",children:e}),A("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as L,jsxs as U}from"react/jsx-runtime";var vt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:U("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}),U("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:o}),U("div",{className:"flex items-center justify-between",children:[U("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 B,jsxs as pe}from"react/jsx-runtime";var yt=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:m,fullHeight:s,children:B(c,{className:"pb-10 lg:pb-0",children:pe("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[B("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),pe("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),pe("div",{className:"flex items-center justify-between",children:[B("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as v}from"react/jsx-runtime";var Xo=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m})=>{let s=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:m,testimonialPrimaryImage:v(z,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:v(z,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:v(z,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:v(z,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(s){case"withLargeAvatar":return v(vt,{...d});case"withOverlappingImage":return v(yt,{...d});default:return v(xt,{...d})}};export{Co as a,we as b,xo as c,ho as d,Ee as e,be as f,vo as g,Fe as h,Fr as i,No as j,Me as k,J as l,Ke as m,ba as n,Fo as o,Ye as p,Oa as q,Lo as r,Je as s,qe as t,Za as u,Bo as v,Qe as w,ni as x,Io as y,ui as z,So as A,Ti as B,Oo as C,Uo as D,Ze as E,zo as F,Ko as G,ae as H,je as I,Wo as J,Yo as K,it as L,me as M,at as N,Go as O,$o as P,ut as Q,Jo as R,Xo as S,gt as T,Ct as U,Qo as V};
@@ -1 +0,0 @@
1
- "use client";import{a as H}from"./chunk-TM7Q5NMH.mjs";import{a as B}from"./chunk-AKRWCDDG.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as w,b as y}from"./chunk-VZCFPWET.mjs";import{a as C}from"./chunk-EIQPM3DQ.mjs";import"./chunk-RZFK2OR7.mjs";import{a as g}from"./chunk-JNIJ5N3Y.mjs";import{a as u,c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as ot,useState as et}from"react";import{UniformText as at}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Z}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:o,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:e("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:e("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:Z(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:o,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:o,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as _,useState as j}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var tt=()=>{let[t,s]=j(0);return _(()=>{let o=document.getElementById("mobile-header");o&&s(o.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:o,slots:i,onClose:r,component:n})=>{let l=tt();return R("div",{style:{top:l},className:e("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:o,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:o,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>e("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>e("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Mt=({icon:t,caretIcon:s,backgroundColor:o,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F=""})=>{let[f,P]=et(!1),X=O(()=>P(!0),[]),h=O(()=>P(!1),[]),q=ot(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[J]=g(t),{url:c,title:x=""}=J||{},K=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=e("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Q]=g(s),{url:I,title:Y=""}=Q||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:X,className:D({color:l}),children:[a(B,{icon:K(),className:"group",iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(at,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:e("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Y,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:q,isOpen:f,backgroundColor:o,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:o,context:v,slots:N,border:i,component:p})})]})};export{Mt as NavigationFlyout};
@@ -1 +0,0 @@
1
- "use client";import{a as B}from"./chunk-TM7Q5NMH.mjs";import{a as I}from"./chunk-AKRWCDDG.mjs";import{a as y}from"./chunk-6TUDWIYU.mjs";import"./chunk-QHIWJPL6.mjs";import{a as f}from"./chunk-EIQPM3DQ.mjs";import{a as v}from"./chunk-JNIJ5N3Y.mjs";import{a as l,c as e}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as S,useState as Z}from"react";import{UniformText as _}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as J}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var F=({isOpen:o,backgroundColor:s,context:t,slots:i,border:a})=>p("div",{className:e("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:e({[`bg-${s}`]:!!s,[l(a,"{value}")]:a}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p(J,{data:t,slot:i.links,context:t})})})});import{useEffect as K,useState as Q}from"react";import{UniformSlot as R}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Y}from"react/jsx-runtime";var X=()=>{let[o,s]=Q(0);return K(()=>{let t=document.getElementById("mobile-header");t&&s(t.offsetHeight)},[]),o},H=({isOpen:o,backgroundColor:s,context:t,slots:i,onClose:a})=>{let c=X();return Y("div",{style:{top:c},className:e("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!o,block:o}),children:[m("button",{onClick:a,className:"w-max rotate-180 px-4",children:m(y,{})}),m("div",{className:"flex flex-col items-center gap-y-4 p-4",children:m(R,{data:t,slot:i.links,context:t})})]})};var w=({isOpen:o})=>e("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),M=({color:o})=>e("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as r,jsxs as U}from"react/jsx-runtime";var ko=({icon:o,caretIcon:s,backgroundColor:t,border:i,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,component:A,context:d,slots:C,hoverEffect:N=""})=>{let[u,b]=Z(!1),P=S(()=>b(!0),[]),x=S(()=>b(!1),[]),[E]=v(o),{url:n,title:h=""}=E||{},z=()=>n?n.endsWith(".svg")?r(B,{src:n,alt:h,fill:!0}):r(f,{src:n,alt:h,fill:!0}):null,G=e("transition-all duration-150",{[l(N,"group-hover:{value}")]:!!N}),[W]=v(s),{url:k,title:q=""}=W||{};return U("div",{className:"relative",onMouseLeave:x,children:[U("button",{onMouseEnter:P,onClick:P,className:M({color:g}),children:[r(I,{icon:z(),className:"group",iconClassName:G,textClassName:G,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,children:r(_,{placeholder:"Text goes here",parameterId:"text",component:A,context:d})}),k&&r("div",{className:e("relative size-[1em]",w({isOpen:u}),{[`text-${a}`]:!!a}),children:r(f,{src:k,alt:q,fill:!0})})]}),r("div",{className:"hidden md:block",children:r(F,{isOpen:u,backgroundColor:t,context:d,slots:C,border:i})}),r("div",{className:"block md:hidden",children:r(H,{onClose:x,isOpen:u,backgroundColor:t,context:d,slots:C})})]})};export{ko as NavigationGroup};