@uniformdev/csk-components 6.0.76-alpha.1 → 6.0.77-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-T5V5WTTI.mjs → chunk-GU776XBS.mjs} +1 -1
- package/dist/components/canvas/emptyPlaceholders.d.mts +3 -3
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +3 -0
- package/dist/components/canvas/index.mjs +2 -2
- package/dist/content/components/canvas/NavigationFlyout/index.tsx +1 -0
- package/dist/content/components/canvas/NavigationFlyout/navigation-flyout.tsx +2 -1
- package/dist/content/components/canvas/NavigationGroup/index.tsx +1 -0
- package/dist/content/components/canvas/NavigationGroup/navigation-group.tsx +2 -1
- package/dist/content/components/canvas/NavigationLink/index.tsx +1 -0
- package/dist/content/components/canvas/NavigationLink/navigation-link.tsx +2 -1
- package/dist/navigation-flyout-YK6OWITR.mjs +1 -0
- package/dist/navigation-group-5YMQCUUX.mjs +1 -0
- package/package.json +1 -1
- package/dist/navigation-flyout-J2NUTJM7.mjs +0 -1
- package/dist/navigation-group-RKFLIQXP.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
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
|
+
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-YK6OWITR.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-5YMQCUUX.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,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-
|
|
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-GU776XBS.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};
|
|
@@ -411,6 +411,7 @@ type NavigationFlyoutParameters = TextParameters & {
|
|
|
411
411
|
border?: string | ViewPort<string>;
|
|
412
412
|
caretIcon?: AssetParamValue;
|
|
413
413
|
hoverEffect?: string | ViewPort<string>;
|
|
414
|
+
className?: string;
|
|
414
415
|
};
|
|
415
416
|
declare enum NavigationFlyoutSlots {
|
|
416
417
|
NavigationFlyoutLeftContent = "navigationFlyoutLeftContent",
|
|
@@ -426,6 +427,7 @@ type NavigationGroupParameters = TextParameters & {
|
|
|
426
427
|
backgroundColor?: string;
|
|
427
428
|
border?: string | ViewPort<string>;
|
|
428
429
|
hoverEffect?: string | ViewPort<string>;
|
|
430
|
+
className?: string;
|
|
429
431
|
};
|
|
430
432
|
declare enum NavigationGroupSlots {
|
|
431
433
|
Links = "links"
|
|
@@ -440,6 +442,7 @@ type NavigationLinkParameters = TextParameters & {
|
|
|
440
442
|
link?: LinkParamValue;
|
|
441
443
|
activeState?: boolean;
|
|
442
444
|
hoverEffect?: string | ViewPort<string>;
|
|
445
|
+
className?: string;
|
|
443
446
|
};
|
|
444
447
|
type NavigationLinkProps = ComponentProps<NavigationLinkParameters>;
|
|
445
448
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,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 $r,M as Wr,N as Hr,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 H,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-GU776XBS.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 $,d as W}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-EIQPM3DQ.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)},We=(r,e,t)=>e.has(r)||_t("Cannot "+t),X=(r,e,t)=>(We(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)=>(We(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),D=(r,e,t)=>(We(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,$e,Z,He=class w{constructor(e){this.route=e,Vt(this,S);var t;Po(this,S,D(t=w,A,$e).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,$e).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;$e=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(He.dynamicSegmentPrefix):!1};Vt(He,A);He.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($,{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($,{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 $t}from"react/jsx-runtime";var Wt=({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})=>$t(ft,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,wrapperClassName:d,className:u,children:$t(wo,{data:l,context:c,slot:m.flexItem})});var Je=Wt;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ht}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>Ht(ht,{alignSelf:r,shrink:e,children:Ht(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(W,{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(W,{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:H.FixedHero},flexibleHero:{component:H.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,H 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,$r as SectionContentAlignment,Hr as SectionSlots,Wr 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};
|
|
@@ -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=
|
|
66
|
+
className={cn('group', className)}
|
|
66
67
|
iconClassName={actionClassName}
|
|
67
68
|
textClassName={actionClassName}
|
|
68
69
|
{...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
|
|
@@ -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=
|
|
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=
|
|
51
|
+
className={cn('group', className)}
|
|
51
52
|
iconClassName={actionClassName}
|
|
52
53
|
textClassName={actionClassName}
|
|
53
54
|
{...{ size, tag, color, weight, font, transform, decoration, letterSpacing, alignment }}
|
|
@@ -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-EIQPM3DQ.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-EIQPM3DQ.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.
|
|
3
|
+
"version": "6.0.77-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
|
-
"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};
|