@uniformdev/csk-components 6.0.104-alpha.2 → 6.0.113-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion-item-NUEMADB2.mjs +1 -0
- package/dist/accordion-item-VWHOTJAC.mjs +1 -0
- package/dist/chunk-7GZZPOY4.mjs +1 -0
- package/dist/chunk-BJ3OD5EH.mjs +1 -0
- package/dist/chunk-JE7SVZ2M.mjs +1 -0
- package/dist/chunk-RYEXR67P.mjs +1 -0
- package/dist/chunk-TDAANMNJ.mjs +1 -0
- package/dist/chunk-WAW7PQYM.mjs +1 -0
- package/dist/chunk-WNQCSSLG.mjs +1 -0
- package/dist/components/canvas/emptyPlaceholders.mjs +1 -1
- package/dist/components/canvas/index.d.mts +4 -4
- package/dist/components/canvas/index.mjs +2 -2
- package/dist/components/ui/index.d.mts +45 -22
- package/dist/components/ui/index.mjs +1 -1
- package/dist/content/components/canvas/Accordion/accordion.tsx +5 -9
- package/dist/content/components/canvas/AccordionItem/accordion-item.tsx +23 -36
- package/dist/content/components/canvas/Button/index.tsx +1 -2
- package/dist/content/components/canvas/DemoHero/atoms.tsx +31 -4
- package/dist/content/components/canvas/DemoHero/demo-hero.tsx +2 -0
- package/dist/content/components/canvas/DemoHero/fixed-hero.tsx +3 -1
- package/dist/content/components/canvas/DemoHero/index.tsx +2 -2
- package/dist/content/components/canvas/DemoHero/utils.ts +14 -0
- package/dist/content/components/canvas/Flex/flex.tsx +2 -0
- package/dist/content/components/canvas/Image/image.tsx +13 -2
- package/dist/content/components/ui/Button/index.ts +2 -5
- package/dist/content/components/ui/Flex/index.ts +1 -3
- package/dist/content/components/ui/Grid/index.ts +3 -7
- package/dist/content/components/ui/GridItem/index.ts +4 -10
- package/dist/content/components/ui/Text/index.ts +3 -6
- package/dist/{index-B9eeSbLG.d.mts → index-Bi9hBway.d.mts} +5 -8
- package/dist/{mobile-UAUHHXPH.mjs → mobile-GZUA7EI6.mjs} +1 -1
- package/dist/navigation-flyout-EIN6DEX4.mjs +1 -0
- package/dist/navigation-group-QA65N6AI.mjs +1 -0
- package/package.json +6 -6
- package/dist/accordion-item-G5CNMERW.mjs +0 -1
- package/dist/chunk-4LWAGTFW.mjs +0 -1
- package/dist/chunk-AKRWCDDG.mjs +0 -1
- package/dist/chunk-M3BGP5VE.mjs +0 -1
- package/dist/chunk-QHIWJPL6.mjs +0 -1
- package/dist/chunk-TIRCISSU.mjs +0 -1
- package/dist/chunk-TM7Q5NMH.mjs +0 -1
- package/dist/chunk-Z7JSWSPD.mjs +0 -1
- package/dist/content/components/canvas/AccordionItem/icon-arrow-down.tsx +0 -20
- package/dist/content/components/canvas/AccordionItem/icon-arrow-up.tsx +0 -20
- package/dist/content/components/canvas/Image/placeholder.tsx +0 -20
- package/dist/navigation-flyout-MXIJA6PC.mjs +0 -1
- package/dist/navigation-group-DEN3D2BO.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as m}from"./chunk-TDAANMNJ.mjs";import{a as r}from"./chunk-WAW7PQYM.mjs";import"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{UniformSlot as T,UniformText as B}from"@uniformdev/canvas-next-rsc/component";import{jsx as o}from"react/jsx-runtime";var U=({tag:n,alignment:c,color:i,size:d,font:a,weight:p,transform:s,decoration:f,letterSpacing:x,slots:I,component:t,context:e,backgroundColor:l,spacing:A,className:C})=>o(m,{backgroundColor:l,spacing:A,className:C,text:o(r,{alignment:c,color:i,size:d,font:a,weight:p,transform:s,decoration:f,letterSpacing:x,children:o(B,{placeholder:"Text goes here",parameterId:"text",as:n||void 0,component:t,context:e})}),accordionItemContent:o(T,{data:t,context:e,slot:I.accordionItemContent})});export{U as AccordionItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{b as r}from"./chunk-YUCUJWBO.mjs";import{c as l}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as C,useState as L}from"react";import{jsx as i}from"react/jsx-runtime";var s=({className:t,...o})=>i("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:i("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50013 0L0 7.13651L1.95843 9L7.5 3.7271L13.0416 9L15 7.13651L7.50013 0Z",fill:"currentColor"})});import{jsx as p}from"react/jsx-runtime";var c=({className:t,...o})=>p("svg",{className:t,width:"15",height:"9",viewBox:"0 0 15 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...o,children:p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.49987 9L15 1.86349L13.0416 0L7.5 5.2729L1.95843 0L0 1.86349L7.49987 9Z",fill:"currentColor"})});import{jsx as e,jsxs as m}from"react/jsx-runtime";var N=({text:t,backgroundColor:o,spacing:w,className:f,accordionItemContent:d})=>{let[n,u]=L(!1),v=C(()=>u(a=>!a),[]);return m(r,{fluidContent:!0,children:[e(r,{backgroundColor:o,spacing:w,fluidContent:!0,className:f,children:m("button",{onClick:v,className:"flex w-full cursor-pointer flex-row items-center justify-between text-start",children:[t,e("div",{className:l({[`text-${o} invert`]:!!o,"text-black dark:text-white":!o}),children:n?e(s,{}):e(c,{})})]})}),n&&d]})};export{N as AccordionItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as w,c as F}from"./chunk-6TUDWIYU.mjs";import{a as R}from"./chunk-WAW7PQYM.mjs";import{a as L,b as d}from"./chunk-WNQCSSLG.mjs";import{b as l}from"./chunk-YUCUJWBO.mjs";import{d as B}from"./chunk-RX4IAAQQ.mjs";import{a as x,c as a}from"./chunk-S7CSCIW4.mjs";import{jsx as D,jsxs as E}from"react/jsx-runtime";var z=({accordionContent:e,accordionItems:o,backgroundColor:r,spacing:i,border:t,fluidContent:n,fullHeight:s,fitHeight:m,height:g,className:c})=>E(l,{className:a("flex flex-col gap-8",c),backgroundColor:r,spacing:i,border:t,fluidContent:n,fullHeight:s,fitHeight:m,height:g,children:[e&&D("div",{className:"flex flex-col gap-4 text-start",children:e}),o]});import O from"next/link";import{jsx as Z}from"react/jsx-runtime";var v=({children:e,link:o,openInNewTab:r,rel:i,className:t})=>Z(O,{href:o,className:a("[&:hover_img]:scale-[0.98] [&_img]:transition-transform hover:underline transition-transform",t),target:r?"_blank":"_self",rel:i,children:e});var H=(o=>(o.Link="link",o))(H||{});import{jsx as I,jsxs as K}from"react/jsx-runtime";var J=({children:e,href:o,className:r,onClick:i})=>{let t=B(o);return o?I(v,{className:r,link:o,openInNewTab:t,rel:t?"noopener noreferrer":"",children:e}):I("button",{onClick:i,className:r,children:e})},q=({variant:e,children:o,href:r,className:i,onClick:t,textColor:n,textSize:s,buttonColor:m,isActive:g,icon:c,iconPosition:W,border:C="",textTransform:h="",textWeight:u,textFont:N,size:k,hoverButtonColor:b,hoverTextColor:y})=>{let G=a("block w-max font-medium focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50",{[`text-${n}`]:n,[`hover:text-${y}`]:y,"flex flex-row gap-x-2":c,"flex-row-reverse":c&&W==="right",[`font-${N}`]:!!N,[`font-${u}`]:!!u,[`p-${k}`]:k,[h]:!!h,[x(C,"{value}")]:C,[x(s,"text-{value}")]:s}),V=a({[`bg-${m}`]:m,[`hover:bg-${b}`]:b}),_=a("bg-transparent hover:underline hover:opacity-100",{[`hover:decoration-${m}`]:m,"!underline":r===g});return K(J,{href:r,onClick:t,className:a(G,{[V]:!e,[_]:e==="link"},i),children:[c,o]})};import{jsx as M,jsxs as U}from"react/jsx-runtime";var Q=({type:e,placeholder:o})=>U("div",{className:"flex aspect-video size-full flex-col items-center justify-center bg-white text-black dark:bg-black dark:text-white",children:[M(e==="video"?F:w,{className:"size-1/2 max-h-36 max-w-36"}),!!o&&M(R,{className:"text-center",weight:"bold",children:o})]});import{jsx as P,jsxs as $}from"react/jsx-runtime";var X=({logo:e,content:o,copyright:r,backgroundColor:i,spacing:t,border:n,fluidContent:s})=>P("footer",{children:P(l,{backgroundColor:i,spacing:t,border:n,fluidContent:s,children:$(l,{className:"flex w-full flex-col justify-between gap-4 md:flex-row",children:[$("div",{className:"flex flex-col gap-2 gap-y-4 md:w-1/2",children:[e,r]}),P("div",{children:o})]})})});import j from"next/dynamic";import{jsx as p,jsxs as Y}from"react/jsx-runtime";var A=({leftSection:e,rightSection:o,children:r,backgroundColor:i,spacing:t,border:n,className:s})=>p("nav",{children:p(l,{fluidContent:!0,backgroundColor:i,spacing:t,border:n,className:s,children:Y(L,{className:"items-center",columnsCount:"12",children:[p(d,{columnSpan:"span-3",children:p("div",{className:"flex items-center justify-start",children:e})}),p(d,{columnSpan:"span-6",children:p("div",{className:"flex items-center justify-center gap-x-8",children:r})}),p(d,{columnSpan:"span-3",children:p("div",{className:"flex items-center justify-end gap-x-4",children:o})})]})})});import{jsx as f,jsxs as re}from"react/jsx-runtime";var ee=j(()=>import("./mobile-GZUA7EI6.mjs").then(e=>e.MobileHeader)),oe=({sticky:e,...o})=>re("header",{className:a({"sticky top-0 shadow z-10":e}),children:[f("div",{className:"hidden md:block",children:f(A,{...o})}),f("div",{className:"block md:hidden",children:f(ee,{...o})})]});import{jsx as ie,jsxs as ae}from"react/jsx-runtime";var te=({className:e,header:o,footer:r,children:i,backgroundColor:t,...n})=>ae("div",{className:a("flex min-h-screen flex-col",e,{[`bg-${t}`]:!!t}),...n,children:[o,ie("div",{className:"flex flex-1 flex-col",children:i}),r]});import{jsx as T,jsxs as S}from"react/jsx-runtime";var ne=({rating:e,showReviewLabel:o,starsColor:r,activeStarsColor:i})=>S("div",{className:"flex items-center space-x-1",children:[Array.from({length:5},(t,n)=>{let s=e>=n+1;return T("svg",{className:a("w-5 h-5",{[`fill-${r}`]:!s,[`fill-${i}`]:s}),"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 22 20",children:T("path",{d:"M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"})},n)}),o&&S("div",{className:"text-sm leading-[3px]",children:["(",e,"/5)"]})]});export{z as a,v as b,q as c,H as d,Q as e,X as f,oe as g,te as h,ne as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as P,b as l}from"./chunk-YUCUJWBO.mjs";import{a as e,c as p}from"./chunk-S7CSCIW4.mjs";import{jsx as u}from"react/jsx-runtime";var x=({className:r,wrapperClassName:t,direction:o,justifyContent:a,gap:i,alignItems:s,backgroundColor:c,spacing:g,border:I,fluidContent:v,fullHeight:m,fitHeight:n,height:f,children:V})=>{let d=P({height:f,fullHeight:m,fitHeight:n});return u(l,{backgroundColor:c,spacing:g,border:I,fluidContent:v,fullHeight:m,fitHeight:n,height:f,wrapperClassName:t,children:u("div",{className:p("flex",{[e(o,"flex-{value}")]:o,[e(a,"justify-{value}")]:a,[e(i,"gap-{value}")]:i,[e(s,"items-{value}")]:s,[e(d,"h-{value}")]:d},r),children:V})})};import{jsx as F}from"react/jsx-runtime";var y=({className:r,alignSelf:t,shrink:o,children:a})=>F("div",{className:p({[e(t,"self-{value}")]:t,[`shrink-${o}`]:o},r),children:a});import h from"next/dynamic";var w=h(()=>import("./video-RC2QHJS2.mjs").then(r=>r.Video));export{x as a,y as b,w as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as be,c as Ne,e as Fe,f as He,g as we,h as Ee,i as O}from"./chunk-7GZZPOY4.mjs";import{a as Te}from"./chunk-WAW7PQYM.mjs";import{a as Z}from"./chunk-BK7UG4U4.mjs";import{b as P}from"./chunk-YUCUJWBO.mjs";import{a as Q}from"./chunk-2YTACEBA.mjs";import{a as c}from"./chunk-MSXDLSXH.mjs";import{c as Re}from"./chunk-RX4IAAQQ.mjs";import{c as f}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as Ae}from"@uniformdev/canvas-next-rsc/component";import{jsx as j}from"react/jsx-runtime";var Ro=({slots:e,component:t,context:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>j(be,{accordionContent:j(Ae,{data:t,context:o,slot:e.accordionContent}),accordionItems:j(Ae,{data:t,context:o,slot:e.accordionItems}),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l});import{jsx as Ie}from"react/jsx-runtime";var bo=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Ie("div",{className:"h-20"})};case"accordionItems":return{component:()=>Ie("div",{className:"h-28"})};default:return c}};var Be=(o=>(o.AccordionContent="accordionContent",o.AccordionItems="accordionItems",o))(Be||{});import{UniformSlot as Se}from"@uniformdev/canvas-next-rsc/component";import{jsx as To}from"react/jsx-runtime";var No=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>To("div",{className:"h-20"})};default:return c}};var Ve=(t=>(t.BackgroundImage="backgroundImage",t))(Ve||{}),Le=(o=>(o.CardMedia="cardMedia",o.CardContent="cardContent",o))(Le||{});import{jsx as k,jsxs as Ho}from"react/jsx-runtime";var Fo=({component:e,context:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,className:p,contentClassName:d})=>{let g=e.variant==="backgroundImage";return Ho(P,{className:f("relative overflow-hidden",p),backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,children:[k("div",{className:f({"inset-0 size-full absolute":g}),children:k(Se,{data:e,context:t,slot:o.cardMedia})}),k("div",{className:f("relative flex flex-col gap-y-2",d),children:k(Se,{data:e,context:t,slot:o.cardContent})})]})};import Ao from"next/dynamic";import{jsx as Eo}from"react/jsx-runtime";var wo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>Eo("div",{className:"mx-20 h-20 w-full"})};default:return c}};var De=(t=>(t.Items="carouselItems",t))(De||{}),Dr=Ao(()=>import("./carousel-BBEW5P4Y.mjs").then(e=>e.Carousel));import{UniformSlot as qe}from"@uniformdev/canvas-next-rsc/component";import{imageFrom as Io}from"@uniformdev/assets";import{UniformText as Oe}from"@uniformdev/canvas-next-rsc/component";import{jsx as x}from"react/jsx-runtime";var M=({component:e,context:t,parameterId:o,text:r,...a})=>{let i=t.previewMode==="editor"&&t.isContextualEditing;return!r&&!i?null:x(Te,{...a,children:x(Oe,{placeholder:"Text goes here",parameterId:o,as:a.tag||void 0,component:e,context:t})})},ke=({component:e,context:t,parameterId:o,text:r,...a})=>{let{link:i,icon:n}=a,s=Re(i),m=t.previewMode==="editor"&&t.isContextualEditing;return!r&&!s&&!m?null:x(Ne,{...a,href:s,icon:x(()=>{let[p]=Q(n),{url:d,title:g=""}=p||{};return d?x(Z,{src:d,alt:g,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:x(Oe,{placeholder:"Button text goes here",parameterId:o,component:e,context:t})})},Me=({component:e,context:t,image:o,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l,priority:p,unoptimized:d,fill:g})=>{let[u]=Q(o);if(!u){let X=t.previewMode==="editor"&&t.isContextualEditing,J=e?._id?.includes("placeholder_");return!X||J||!e.variant?null:x("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:x(Fe,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:$,title:V=""}=u,S=a||u.width,D=i||u.height;if(!g&&(!S||!D))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),x("img",{src:u.url,alt:V});let q=Io(u?.url).transform({width:a,height:i,fit:r,focal:$}).url();return x(Z,{src:q,alt:V,unoptimized:d,priority:p,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:l,...g?{fill:!0}:{width:S,height:D}})};import{jsx as T,jsxs as _e}from"react/jsx-runtime";var Ue=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,demoHeroMedia:m,demoHeroContent:l,demoHeroCTA:p,textAlignmentClass:d,buttonAlignmentClass:g})=>T(P,{backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:_e("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),_e("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:f("flex flex-col gap-4",d),children:l}),T("div",{className:f("flex flex-wrap gap-2 items-center",g),children:p})]})]})});import{jsx as te,jsxs as ze}from"react/jsx-runtime";var We=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,demoHeroMedia:s,demoHeroContent:m,demoHeroCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>ze(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[te("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),ze(P,{className:"relative flex flex-col gap-8",children:[te("div",{className:f("flex flex-col gap-4",p),children:m}),te("div",{className:f("flex flex-wrap gap-2 items-center",d),children:l})]})]});var Ke=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Ye=({contentAlignment:e})=>f("text-center",{"text-start":e==="left","text-end":e==="right"});var R=(e,t)=>Object.entries(e).reduce((o,[r,a])=>{if(r.startsWith(t)){let i=r.slice(t.length).replace(/^./,n=>n.toLowerCase());return{...o,[i]:a}}return{...o,[r]:a}},{});var $e=e=>{let t=e?608:void 0;return{imageFill:!e,...t?{imageWidth:t,imageHeight:t}:{}}};import{Fragment as oe,jsx as C,jsxs as Bo}from"react/jsx-runtime";var _=({eyebrowTitleText:e,eyebrowTitleTag:t,eyebrowTitleSize:o,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p,titleText:d,titleTag:g,titleSize:u,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ue,titleLetterSpacing:X,titleLineCountRestrictions:J,descriptionText:Et,descriptionTag:At,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Lt,descriptionFont:Vt,descriptionAlignment:St,descriptionTransform:Dt,descriptionDecoration:Ot,descriptionLetterSpacing:kt,descriptionLineCountRestrictions:Mt,primaryButtonVariant:_t,primaryButtonText:Ut,primaryButtonLink:zt,primaryButtonTextColor:Wt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Yt,primaryButtonTextTransform:Gt,primaryButtonButtonColor:$t,primaryButtonBorder:qt,primaryButtonSize:Xt,primaryButtonIcon:Jt,primaryButtonTextSize:Qt,primaryButtonIconPosition:Zt,primaryButtonHoverButtonColor:jt,primaryButtonHoverTextColor:eo,image:to,imageWidth:oo,imageHeight:ro,imageObjectFit:ao,imageOverlayColor:io,imageContrastBaseColor:no,imageOverlayOpacity:so,imageBorder:mo,imagePriority:lo,imageUnoptimized:po,imageFill:co,contentAlignment:Ce,backgroundColor:fo,spacing:Po,border:go,fluidContent:uo,fullHeight:Co,fitHeight:xo,height:vo,isFlexibleHero:xe=!1,component:v,context:h,slots:ve})=>{let he=v.variant,ho=xe?C(qe,{data:v,context:h,slot:ve.flexibleHeroContent}):Bo(oe,{children:[C(M,{...R({eyebrowTitleText:e,eyebrowTitleTag:t,eyebrowTitleSize:o,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:l,eyebrowTitleLineCountRestrictions:p},"eyebrowTitle"),component:v,context:h,parameterId:"eyebrowTitleText"}),C(M,{...R({titleText:d,titleTag:g,titleSize:u,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ue,titleLetterSpacing:X,titleLineCountRestrictions:J},"title"),component:v,context:h,parameterId:"titleText"}),C(M,{...R({descriptionText:Et,descriptionTag:At,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Lt,descriptionFont:Vt,descriptionAlignment:St,descriptionTransform:Dt,descriptionDecoration:Ot,descriptionLetterSpacing:kt,descriptionLineCountRestrictions:Mt},"description"),component:v,context:h,parameterId:"descriptionText"})]}),yo=xe?C(qe,{data:v,context:h,slot:ve.flexibleHeroCta}):C(oe,{children:C(ke,{...R({primaryButtonVariant:_t,primaryButtonText:Ut,primaryButtonLink:zt,primaryButtonTextColor:Wt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Yt,primaryButtonTextTransform:Gt,primaryButtonButtonColor:$t,primaryButtonBorder:qt,primaryButtonSize:Xt,primaryButtonIcon:Jt,primaryButtonTextSize:Qt,primaryButtonIconPosition:Zt,primaryButtonHoverButtonColor:jt,primaryButtonHoverTextColor:eo},"primaryButton"),component:v,context:h,parameterId:"primaryButtonText"})}),ye={variant:he,backgroundColor:fo,spacing:Po,border:go,fluidContent:uo,fullHeight:Co,fitHeight:xo,height:vo,textAlignmentClass:Ye({contentAlignment:Ce}),buttonAlignmentClass:Ke({contentAlignment:Ce}),demoHeroMedia:C(oe,{children:C(Me,{image:to,...R({imageWidth:oo,imageHeight:ro,imageObjectFit:ao,imageOverlayColor:io,imageContrastBaseColor:no,imageOverlayOpacity:so,imageBorder:mo,imagePriority:lo,imageUnoptimized:po,imageFill:co},"image"),component:v,context:h})}),demoHeroContent:ho,demoHeroCTA:yo};switch(he){case"columns":case"columnsReverse":return C(Ue,{...ye});default:return C(We,{...ye})}};import{jsx as Vo}from"react/jsx-runtime";var Lo=(e,t)=>{if(e)return e;if(t)return"0.3"},Xe=({textColor:e,overlayAutoTint:t,enableOverlayAutoTint:o,...r})=>{let a=Lo(t,o);return Vo(_,{...r,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||r.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"4xl",desktop:"4xl"},titleWeight:"bold",titleColor:e||r.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||r.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextColor:"text-secondary",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!r.component.variant&&a?e:void 0,imageOverlayOpacity:a,...$e(!!r.component.variant),spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!r.component.variant,isFlexibleHero:!1})};import{jsx as So}from"react/jsx-runtime";var Je=e=>So(_,{...e,isFlexibleHero:!0});import{jsx as Qe}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Qe("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Qe("div",{className:"mx-40 h-20 w-full"})};default:return c}};var Ge=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Ge||{}),ee=(o=>(o.Columns="columns",o.ColumnsReverse="columnsReverse",o))(ee||{}),Ze=(o=>(o.FlexibleHeroContent="flexibleHeroContent",o.FlexibleHeroCta="flexibleHeroCta",o))(Ze||{}),Oo={FixedHero:Xe,FlexibleHero:Je},Da=Oo;import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var je=({context:e,component:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>U(He,{logo:U(re,{context:e,slot:o.footerLogo,data:t}),copyright:U(re,{context:e,slot:o.footerCopyright,data:t}),content:U(re,{context:e,slot:o.footerContent,data:t}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ae}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ae("div",{className:"h-20 w-48"})};default:return c}};var et=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))(et||{}),qa=je;import{UniformSlot as ie}from"@uniformdev/canvas-next-rsc/component";import{jsx as z}from"react/jsx-runtime";var tt=({backgroundColor:e,color:t,spacing:o,border:r,context:a,component:i,slots:n})=>z(we,{sticky:i.variant==="sticky",leftSection:z(ie,{context:a,slot:n.headerLeftContent,data:i}),rightSection:z(ie,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:t,spacing:o,border:r,children:z(ie,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as ne}from"react/jsx-runtime";var Mo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>ne("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>ne("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>ne("div",{className:"h-20 w-48"})};default:return c}};var rt=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(rt||{}),ot=(t=>(t.Sticky="sticky",t))(ot||{}),mi=tt;import zo from"next/dynamic";import{jsx as Uo}from"react/jsx-runtime";var _o=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Uo("div",{className:" mx-auto size-48"})};default:return c}};var at=(t=>(t.Items="imageGalleryItems",t))(at||{}),ui=zo(()=>import("./image-gallery-F6JLG7XW.mjs").then(e=>e.ImageGallery));import Ko from"next/dynamic";import{jsx as it}from"react/jsx-runtime";var Wo=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>it("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>it("div",{className:"h-40 w-48"})};default:return c}};var Ti=Ko(()=>import("./navigation-flyout-EIN6DEX4.mjs").then(e=>e.NavigationFlyout));import $o from"next/dynamic";import{jsx as Go}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"links":return{component:()=>Go("div",{className:"h-40 w-48"})};default:return c}};var Vi=$o(()=>import("./navigation-group-QA65N6AI.mjs").then(e=>e.NavigationGroup));import{UniformSlot as se}from"@uniformdev/canvas-next-rsc/component";import{jsx as W}from"react/jsx-runtime";var qo=({slots:e,component:t,context:o,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>W(Ee,{backgroundColor:r,header:W(se,{context:o,slot:e.pageHeader,data:t,children:a}),footer:W(se,{context:o,slot:e.pageFooter,data:t,children:n}),children:W(se,{context:o,slot:e.pageContent,data:t,children:i})});import{jsx as me}from"react/jsx-runtime";var Xo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>me("div",{className:"h-40"})};case"pageContent":return{component:()=>me("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>me("div",{className:"h-40"})};default:return c}};var nt=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(nt||{});import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as F}from"react/jsx-runtime";var Jo=({parentComponent:e,slotName:t})=>{let o=e?.variant==="multiColumn";switch(t){case"reviewImage":return{component:()=>o?F("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>o?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>o?F("div",{className:"h-20 w-full"}):F("div",{className:"h-20 w-52"})};default:return c}};var le=(t=>(t.MultiColumn="multiColumn",t))(le||{}),st=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(st||{});import{jsx as H,jsxs as mt}from"react/jsx-runtime";var lt=({stars:e,starsColor:t,activeStarsColor:o,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:g,ReviewContent:u})=>H(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:mt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[H("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),mt("div",{className:"ml-6",children:[g,H("div",{className:"py-4",children:H(O,{rating:e,showReviewLabel:r,starsColor:t,activeStarsColor:o})}),H("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as b,jsxs as pt}from"react/jsx-runtime";var dt=({stars:e,starsColor:t,activeStarsColor:o,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,ReviewImage:d,ReviewPersonInfo:g,ReviewContent:u})=>b(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:pt("div",{className:"grid md:grid-cols-12",children:[pt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[b("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),b("div",{className:"flex flex-col gap-y-1",children:g})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(O,{rating:e,showReviewLabel:r,starsColor:t,activeStarsColor:o})}),b("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as w}from"react/jsx-runtime";var Qo=e=>{let{component:t,context:o,slots:r}=e,a=t.variant,i={...e,ReviewImage:w(pe,{context:o,data:t,slot:r.reviewImage}),ReviewPersonInfo:w(pe,{context:o,data:t,slot:r.reviewPersonInfo}),ReviewContent:w(pe,{context:o,data:t,slot:r.reviewContent})};switch(a){case"multiColumn":return w(dt,{...i});default:return w(lt,{...i})}};import{UniformSlot as Pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as de}from"react/jsx-runtime";var Zo=({parentComponent:e,slotName:t})=>{let o=!e?.variant;switch(t){case"sectionMedia":return{component:()=>o?null:de("div",{className:"size-full"})};case"sectionContent":return{component:()=>de("div",{className:"h-20"})};case"sectionCTA":return{component:()=>de("div",{className:"mx-40 h-20 w-full"})};default:return c}};var ft=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(ft||{}),ce=(o=>(o.Columns="columns",o.ColumnsReverse="columnsReverse",o))(ce||{}),ct=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(ct||{});import{jsx as E,jsxs as Pt}from"react/jsx-runtime";var gt=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,variant:s,sectionMedia:m,sectionContent:l,sectionCTA:p,textAlignmentClass:d,buttonAlignmentClass:g})=>E(P,{backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:Pt("div",{className:f("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[E("div",{className:f("aspect-square",{"order-last":s==="columnsReverse"}),children:E("div",{className:"flex size-full items-center justify-center overflow-hidden",children:m})}),Pt("div",{className:"flex flex-col justify-center gap-8",children:[E("div",{className:f("flex flex-col gap-4",d),children:l}),E("div",{className:f("flex flex-wrap gap-2",g),children:p})]})]})});import{jsx as fe,jsxs as ut}from"react/jsx-runtime";var Ct=({backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,sectionMedia:s,sectionContent:m,sectionCTA:l,textAlignmentClass:p,buttonAlignmentClass:d})=>ut(P,{className:"relative overflow-hidden",backgroundColor:e,spacing:t,border:o,fluidContent:r,fullHeight:a,fitHeight:i,height:n,children:[fe("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:s}),ut(P,{className:"relative flex flex-col gap-8",children:[fe("div",{className:f("flex flex-col gap-4",p),children:m}),fe("div",{className:f("flex flex-wrap gap-2",d),children:l})]})]});var xt=({contentAlignment:e})=>f("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),vt=({contentAlignment:e})=>f("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as A}from"react/jsx-runtime";var jo=({contentAlignment:e,slots:t,component:o,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>{let d=o.variant,g={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,textAlignmentClass:vt({contentAlignment:e}),buttonAlignmentClass:xt({contentAlignment:e}),sectionMedia:A(Pe,{data:o,context:r,slot:t.sectionMedia}),sectionContent:A(Pe,{data:o,context:r,slot:t.sectionContent}),sectionCTA:A(Pe,{data:o,context:r,slot:t.sectionCTA})};switch(d){case"columns":case"columnsReverse":return A(gt,{...g});default:return A(Ct,{...g})}};import{UniformSlot as yt}from"@uniformdev/canvas-next-rsc/component";var ht=({size:e,textColor:t})=>f("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${t}`]:t,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as tr}from"react/jsx-runtime";var er=({size:e,textColor:t,slots:o,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d})=>N(P,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,fullHeight:l,fitHeight:p,height:d,children:N("div",{className:"overflow-x-auto",children:tr("table",{className:ht({size:e,textColor:t}),children:[N("thead",{children:N(yt,{slot:o.tableHead,context:a,data:r})}),N("tbody",{children:N(yt,{slot:o.tableBody,context:a,data:r})})]})})});import{jsx as Rt}from"react/jsx-runtime";var or=e=>{switch(e.slotName){case"tableHead":return{component:()=>Rt("tr",{className:"h-20"})};case"tableBody":return{component:()=>Rt("tr",{className:"h-40"})};default:return c}};var bt=(o=>(o.TableHead="tableHead",o.TableBody="tableBody",o))(bt||{});import{UniformSlot as G}from"@uniformdev/canvas-next-rsc/component";import{jsx as K}from"react/jsx-runtime";var rr=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>K("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>K("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>K("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>K("div",{className:"h-20 w-64"})};default:return c}};var Tt=(o=>(o.WithLargeAvatar="withLargeAvatar",o.WithOverlappingImage="withOverlappingImage",o))(Tt||{}),Nt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Nt||{});import{jsx as I,jsxs as ir}from"react/jsx-runtime";var Ft=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>I(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:ir("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[I("div",{children:r}),I("div",{className:"my-8",children:t}),I("div",{className:"size-10 rounded-full",children:e}),I("div",{className:"mt-4 flex gap-3",children:o})]})});import{jsx as B,jsxs as Y}from"react/jsx-runtime";var Ht=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>B(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:Y("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[B("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),Y("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:t}),Y("div",{className:"flex items-center justify-between",children:[Y("div",{className:"flex items-center gap-x-4",children:[B("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),B("div",{className:"gap-3",children:o})]}),r]})]})]})});import{jsx as L,jsxs as ge}from"react/jsx-runtime";var wt=({testimonialPrimaryImage:e,testimonialContent:t,testimonialAuthor:o,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p})=>L(P,{backgroundColor:a,spacing:i,border:n,fluidContent:s,fullHeight:m,fitHeight:l,height:p,children:L(P,{className:"pb-10 lg:pb-0",children:ge("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[L("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),ge("div",{className:"flex flex-col gap-y-8",children:[L("div",{className:"",children:t}),ge("div",{className:"flex items-center justify-between",children:[L("div",{className:"gap-3",children:o}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var ar=({context:e,component:t,slots:o,backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l})=>{let p=t.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,fullHeight:s,fitHeight:m,height:l,testimonialPrimaryImage:y(G,{context:e,data:t,slot:o.testimonialPrimaryImage}),testimonialContent:y(G,{context:e,data:t,slot:o.testimonialContent}),testimonialAuthor:y(G,{context:e,data:t,slot:o.testimonialAuthor}),testimonialSecondaryImage:y(G,{context:e,data:t,slot:o.testimonialSecondaryImage})};switch(p){case"withLargeAvatar":return y(Ht,{...d});case"withOverlappingImage":return y(wt,{...d});default:return y(Ft,{...d})}};export{Ro as a,Be as b,bo as c,Fo as d,Ve as e,Le as f,No as g,De as h,Dr as i,wo as j,Ge as k,ee as l,Ze as m,Da as n,Do as o,et as p,qa as q,ko as r,rt as s,ot as t,mi as u,Mo as v,at as w,ui as x,_o as y,Ti as z,Wo as A,Vi as B,Yo as C,qo as D,nt as E,Xo as F,Qo as G,le as H,st as I,Jo as J,jo as K,ft as L,ce as M,ct as N,Zo as O,er as P,bt as Q,or as R,ar as S,Tt as T,Nt as U,rr as V};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as x}from"./chunk-WAW7PQYM.mjs";import{c as g}from"./chunk-S7CSCIW4.mjs";import{jsx as h,jsxs as y}from"react/jsx-runtime";var N=({icon:e,size:t,tag:r,color:s,weight:o,font:a,transform:c,decoration:i,letterSpacing:d,alignment:f,children:p,textClassName:n,iconClassName:l,className:m})=>y("div",{className:g("flex w-fit items-center gap-x-3",{[`text-${t}`]:!!t,[`text-${s}`]:!!s},m),children:[e&&h("div",{className:g("relative size-[1em]",l),children:e}),h(x,{alignment:f,tag:r,color:s,size:t,font:a,weight:o,transform:c,decoration:i,letterSpacing:d,className:n,children:p})]});var v=e=>e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/\son\w+="[^"]*"/gi,"").replace(/\son\w+='[^']*'/gi,"").replace(/javascript:/gi,""),S=e=>e.replace(/fill=(['"])(?!none|transparent)[^'"]*\1/gi,'fill="currentColor"').replace(/stroke=(['"])(?!none|transparent)[^'"]*\1/gi,'stroke="currentColor"').replace(/color=(['"])[^'"]*\1/gi,'color="currentColor"'),b=e=>{let t=e.match(/<svg\s+([^>]*)>/i);if(!t||!t[1])return{};let r=t[1],s={},o=/(\w[\w-]*)=["']([^"']*)["']/g,a;for(;a=o.exec(r);){let[,c,i]=a;c&&i&&(s[c]=i)}return s},w=e=>e.match(/<svg[^>]*>([\s\S]*?)<\/svg>/i)?.[1]??"",C=async e=>{try{let t=await fetch(e,{headers:{Accept:"image/svg+xml, text/plain, */*"}});if(!t.ok)throw new Error(`Failed to fetch SVG: ${t.status} ${t.statusText}`);let r=await t.text();if(!r.trim().includes("<svg"))throw new Error("Response is not valid SVG");return r}catch(t){throw console.error("Error fetching SVG:",t),t}};import{jsx as u}from"react/jsx-runtime";var G=async({src:e,className:t="",width:r,height:s,fill:o,sanitize:a=!0,useCurrentColor:c=!0,fallback:i,alt:d})=>{if(!e)return i??null;let f=p=>{let n=[];return a&&n.push(v),c&&n.push(S),n.reduce((l,m)=>m(l),p)};try{let p=await C(e),n=f(p),l=b(n),m=w(n),P={...l,role:"img","aria-label":d,width:o?"100%":r,height:o?"100%":s,className:g(l.className,t,{"absolute inset-0":o})};return u("div",{className:"relative size-full",children:u("svg",{...P,dangerouslySetInnerHTML:{__html:m}})})}catch{return i??u("div",{className:g(t),style:{width:r,height:s},children:u("div",{className:"rounded border border-red-200 bg-red-50 p-2 text-sm text-red-500",children:"Failed to load SVG"})})}};export{N as a,G as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"next/dynamic";var r=t(()=>import("./accordion-item-VWHOTJAC.mjs").then(o=>o.AccordionItem));export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as r}from"./chunk-S7CSCIW4.mjs";import{jsx as x}from"react/jsx-runtime";var P=({className:u,size:s,color:o,weight:n,font:i,transform:a="",decoration:p="",letterSpacing:l,alignment:m,children:t,lineCountRestrictions:c})=>{let g=r({[`text-${o}`]:!!o,[`font-${i}`]:!!i,[e(s,"text-{value}")]:s,[`font-${n}`]:!!n,[`text-${m}`]:!!m,[a]:!!a,[p]:!!p,[`tracking-${l}`]:!!l,[e(c,"line-clamp-{value}")]:c},u);if(typeof t=="string")return x("span",{className:g,children:t});let f=t.props||{};return x(t.type,{...f,className:r(g,f?.className)})};export{P as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d,b as P}from"./chunk-YUCUJWBO.mjs";import{a as r,c as s}from"./chunk-S7CSCIW4.mjs";import{jsx as f}from"react/jsx-runtime";var w=({className:a,columnsCount:t,gapX:o,gapY:i,backgroundColor:e,spacing:n,border:u,fluidContent:v,fullHeight:m,fitHeight:p,height:l,children:c})=>{let g=d({height:l,fullHeight:m,fitHeight:p});return f(P,{backgroundColor:e,spacing:n,border:u,fluidContent:v,fullHeight:m,fitHeight:p,height:l,children:f("div",{className:s("grid",{[r(t,"grid-cols-{value}")]:t,[r(o,"gap-x-{value}")]:o,[r(i,"gap-y-{value}")]:i,[r(g,"h-{value}")]:g},a),children:c})})};import{jsx as C}from"react/jsx-runtime";var V=({className:a,columnStart:t,columnSpan:o,rowStart:i,rowSpan:e,children:n})=>C("div",{className:s({[r(t,"col-start-{value}")]:t,[r(o,"col-{value}")]:o,[r(i,"row-start-{value}")]:i,[r(e,"row-{value}")]:e},a),children:n});export{w as a,V as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-
|
|
1
|
+
import{A as y,C as n,F as P,J as h,O as E,R as f,V as g,c as e,g as m,j as l,o as a,r as p,v as i,y as c}from"../../chunk-JE7SVZ2M.mjs";import{d}from"../../chunk-2SEOCBRK.mjs";import{d as s}from"../../chunk-FPOIJMYT.mjs";import"../../chunk-7GZZPOY4.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-WAW7PQYM.mjs";import{d as r}from"../../chunk-LA36HQWS.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-WNQCSSLG.mjs";import"../../chunk-BK7UG4U4.mjs";import"../../chunk-YUCUJWBO.mjs";import"../../chunk-3PDY7RJC.mjs";import"../../chunk-2YTACEBA.mjs";import{b as o}from"../../chunk-MSXDLSXH.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";var u={accordion:e,banner:r,card:m,carousel:l,countdown:t,flexibleHero:a,footer:p,header:i,imageGallery:c,modal:d,navigationFlyout:y,navigationGroup:n,page:P,review:h,section:E,table:f,tabs:s,testimonial:g},K=u,L=o(u);export{K as default,L as emptyPlaceholderResolver};
|
|
@@ -7,8 +7,7 @@ import { ComponentMapping } from '../../utils/createComponentResolver.mjs';
|
|
|
7
7
|
import { SpaceType, ViewPort } from '../../types/cskTypes.mjs';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { FC } from 'react';
|
|
10
|
-
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-
|
|
11
|
-
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
10
|
+
import { T as TextProps$1, B as ButtonProps$1, a as ButtonVariant, F as FooterProps$1, H as HeaderProps$1 } from '../../index-Bi9hBway.mjs';
|
|
12
11
|
import { AssetParamValue } from '@uniformdev/assets';
|
|
13
12
|
import { RichTextNode } from '@uniformdev/richtext';
|
|
14
13
|
|
|
@@ -105,7 +104,7 @@ type ButtonParameters = {
|
|
|
105
104
|
text?: string;
|
|
106
105
|
link?: LinkParamValue;
|
|
107
106
|
textColor?: string;
|
|
108
|
-
textWeight?:
|
|
107
|
+
textWeight?: string;
|
|
109
108
|
textFont?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
|
|
110
109
|
textTransform?: string;
|
|
111
110
|
buttonColor?: string;
|
|
@@ -192,7 +191,7 @@ type BaseButtonParameters = {
|
|
|
192
191
|
text?: string;
|
|
193
192
|
link?: LinkParamValue;
|
|
194
193
|
textColor?: string;
|
|
195
|
-
textWeight?:
|
|
194
|
+
textWeight?: string;
|
|
196
195
|
textFont?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
|
|
197
196
|
textTransform?: string;
|
|
198
197
|
buttonColor?: string;
|
|
@@ -216,6 +215,7 @@ type BaseImageParameters = {
|
|
|
216
215
|
border?: string | ViewPort<string>;
|
|
217
216
|
priority?: boolean;
|
|
218
217
|
unoptimized?: boolean;
|
|
218
|
+
fill?: boolean;
|
|
219
219
|
};
|
|
220
220
|
type EyebrowTitleTextParameters = PrefixedKeys<TextParameters, 'eyebrowTitle'>;
|
|
221
221
|
type TitleTextParameters = PrefixedKeys<TextParameters, 'title'>;
|
|
@@ -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,Bt.prototype)}},v=class kt{constructor(e){ao(this,"options");var t,o,a,p,i;if(!e.apiKey&&!e.bearerToken)throw new Error("You must provide an API key or a bearer token");let s=e.fetch;if(!s)if(typeof window<"u")s=window.fetch.bind(window);else if(typeof fetch<"u")s=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...e,fetch:s,apiHost:this.ensureApiHost(e.apiHost),apiKey:(t=e.apiKey)!=null?t:null,projectId:(o=e.projectId)!=null?o:null,bearerToken:(a=e.bearerToken)!=null?a:null,limitPolicy:(p=e.limitPolicy)!=null?p:io,bypassCache:(i=e.bypassCache)!=null?i:!1}}async apiClient(e,t){return(await this.apiClientWithResponse(e,t)).body}async apiClientWithResponse(e,t){return this.options.limitPolicy(async()=>{var o;let a=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(a["x-bypass-cache"]="true");let{fetch:p,signal:i}=this.options,n=await po(()=>p(e.toString(),{...t,signal:i,headers:{...t?.headers,...a}}));if(!n.ok){let m="";try{let l=await n.text();try{let d=JSON.parse(l);d.errorMessage?m=Array.isArray(d.errorMessage)?d.errorMessage.join(", "):d.errorMessage:m=l}catch{m=l}}catch{m="General error"}throw new so(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,kt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function po(r){var e;let o=5,a;for(;o>0&&(a=await r(),a.status===429);){let p=0;try{let n=a.clone(),m=n.headers.get("date"),l=m?new Date(m).getTime():void 0,d=await n.json(),c=(e=d?.info)==null?void 0:e.reset;typeof l=="number"&&typeof c=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(c-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var V,mo=class J extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(J,V),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;T(mo,V,"/api/v2/aggregate");var Ee,lo=class Ft extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Ft,Ee),{...e,projectId:t});return await this.apiClient(o)}};Ee=new WeakMap;T(lo,Ee,"/api/v2/dimension");var L,X,Ut=class _ extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_,L),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;X=new WeakMap;T(Ut,L,"/api/v1/enrichments");T(Ut,X,"/api/v1/enrichment-values");var Me,co=class _t extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_t,Me),{...e,projectId:t});return await this.apiClient(o)}async publish(){let{projectId:e}=this.options,t=this.createUrl("/api/v1/publish",{siteId:e});await this.apiClient(t,{method:"POST",expectNoContent:!0})}};Me=new WeakMap;T(co,Me,"/api/v2/manifest");var R,uo=class K extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;T(uo,R,"/api/v2/quirk");var G,fo=class Q extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;T(fo,G,"/api/v2/signal");var D,ho=class Y extends v{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Y,D),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Y,D));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Y,D));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};D=new WeakMap;T(ho,D,"/api/v2/test");import{createVariableReference as Co,parseVariableExpression as yo}from"@uniformdev/canvas";var Vt=r=>{throw TypeError(r)},We=(r,e,t)=>e.has(r)||Vt("Cannot "+t),Z=(r,e,t)=>(We(r,e,"read from private field"),t?t.call(r):e.get(r)),Lt=(r,e,t)=>e.has(r)?Vt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Po=(r,e,t,o)=>(We(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),E=(r,e,t)=>(We(r,e,"access private method"),t);var Rt=class extends v{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:e}=this.options,t=this.createUrl("/api/v1/project-map",{projectId:e});return await this.apiClient(t)},this.getProjectMapDefinition=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map",{...e,projectId:t});return await this.apiClient(o)},this.upsertProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");return(await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t})})).projectMapId},this.deleteProjectMap=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.upsertProjectMapNodes=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"PUT",body:JSON.stringify({...e,projectId:t,nodes:e.nodes.map(a=>({...a,node:{...this.cleanProjectMapNode(a.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async e=>{let{projectId:t}=this.options,o=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(o,{method:"DELETE",body:JSON.stringify({...e,projectId:t}),expectNoContent:!0})},this.getSubtree=async e=>{var t;let o=this.setFetchOptions(e);o.tree="true";let a=this.createUrl("/api/v1/project-map-nodes",o),i={...(await this.apiClient(a)).tree},s=[i];for(;s&&s.length>0;){let n=s.pop(),m;(t=n?.children)==null||t.forEach(l=>{l.parent=Oe(n),l.previousSibling=Oe(m),m&&(m.nextSibling=Oe(l)),m=l,s.push(l)})}return i},this.getNodes=async e=>{let t=this.setFetchOptions(e),o=this.createUrl("/api/v1/project-map-nodes",t);return await this.apiClient(o)}}setFetchOptions(r){let{projectId:e}=this.options,t={projectId:e};return Object.entries(r).forEach(([o,a])=>{if(a!==void 0){if(typeof a=="boolean"){if(!a)return;t[o]="true";return}if(typeof a=="number"){t[o]=a.toString(10);return}t[o]=a}}),t}cleanProjectMapNode(r){var e,t,o;return{id:((o=(t=(e=r.id)==null?void 0:e.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:t.length)!=null?o:0)==1?r.id:void 0,path:r.path,name:r.name,type:r.type,order:r.order,data:r.data,compositionId:r.compositionId,description:r.description,locales:r.locales}}};var Oe=r=>r?{...r,parent:void 0,children:void 0}:void 0;var B,k,He,ee,$e=class S{constructor(e){this.route=e,Lt(this,B);var t;Po(this,B,E(t=S,k,He).call(t,this.route))}get dynamicSegmentCount(){return Z(this,B).segments.reduce((e,t)=>{var o;return E(o=S,k,ee).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=E(t=S,k,He).call(t,e),{segments:i}=Z(this,B);if(a.length!==i.length)return{match:!1};let s={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let n=0;n<i.length;n++){let m=i[n],l=a[n];if(E(o=S,k,ee).call(o,m)){let d=m.slice(1);s.pathParams[d]=l,s.dynamicSegmentCount++}else if(m!==l)return{match:!1}}for(let[n,m]of Z(this,B).queryParams)s.queryParams[n]=p.has(n)?p.get(n):m;return s}expand(e){let{dynamicInputValues:t={},allowedQueryParams:o=[],doNotEscapeVariables:a=!1}=e??{},p=Z(this,B).segments.map(n=>{let m=S.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?je(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${je(n,a)}=${je(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(E(t=S,k,ee).call(t,e))return e.slice(S.dynamicSegmentPrefix.length)}};B=new WeakMap;k=new WeakSet;He=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[e,t]=r.split("?"),o=e.substring(1).split("/");o[o.length-1]===""&&o.pop();let a=new URLSearchParams(t);return{segments:o,queryParams:a}};ee=function(r){return r?r.startsWith($e.dynamicSegmentPrefix):!1};Lt($e,k);$e.dynamicSegmentPrefix=":";function je(r,e){if(!e)return encodeURIComponent(r);let t=[];return yo(r.toString(10),(o,a)=>{a==="variable"?t.push(Co(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as te}from"react/jsx-runtime";var Gt=r=>{switch(r){case"slash":return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as F,jsxs as go}from"react/jsx-runtime";var Et=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let n=!s?.matchedRoute||s?.matchedRoute==="composition",d=i?await(async()=>{if(n)return[];let c=new Rt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:f}=await c.getNodes({path:s?.matchedRoute,includeAncestors:!0});return f?.length?Promise.all(f.map(async u=>{let x=u.pathSegment?.includes(":")&&u.compositionId?await new xo({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:u.compositionId}).then(({composition:b})=>b&&Dt(b)?.pageTitle||u.name).catch(()=>u.name):u.name,A=u.type==="placeholder"?void 0:j(u.path,s.dynamicInputs);return{title:x,link:A}})):[]})():await(async()=>e?.reduce((c,f)=>{let{title:u,link:C}=Dt(f);return u?[...c,{title:u,link:I(C)}]:c},[])||[])();return n&&i?F("ul",{className:"flex items-center",children:F("li",{className:"flex items-center",children:F(g,{size:t,font:a,color:o,transform:p,children:"Breadcrumbs cannot be auto-generated because the project map is not accessible in this context."})})}):d.length?F("ul",{className:h("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:d.map(({title:c,link:f},u)=>go("li",{className:"flex items-center",children:[!!u&&F("div",{className:"mx-2 size-[1em]",children:Gt(r)}),f?F(W,{variant:"link",textColor:o,className:h({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:f,children:c}):F(g,{size:t,font:a,color:o,transform:p,children:c})]},`${c}-${u}`))}):null};var ze=Et;import{useMemo as vo}from"react";import{UniformText as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Mt=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:d,textSize:c,hoverButtonColor:f,hoverTextColor:u,className:C,onClick:x,text:A})=>{let b=I(t),N=e.previewMode==="editor"&&e?.isContextualEditing,U=vo(()=>{let[he]=y(n),{url:O,title:br=""}=he||{};if(O)return{url:O,title:br}},[n]),ue=()=>{if(!U)return;let{url:he,title:O}=U;return re(w,{src:he,alt:O,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!A||!!U)&&!N?null:re(W,{variant:r.variant,href:b,border:l,size:d,onClick:x,className:C,textSize:c,isActive:e.matchedRoute===b,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:f,hoverTextColor:u,icon:re(ue,{}),iconPosition:m,children:re(bo,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var qe=Mt;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ot}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:d,className:c})=>Ot(ct,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:d,className:c,children:Ot(Io,{data:o,context:a,slot:t.containerContent})});var jt=(e=>(e.ContainerContent="containerContent",e))(jt||{});import{jsx as Ht}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>Ht("div",{className:h("flex w-full",`justify-${o||"center"}`),children:Ht("div",{className:h({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:d,className:c,fitHeight:f,wrapperClassName:u})=>Wt(ht,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,fitHeight:f,wrapperClassName:u,className:c,children:Wt(wo,{data:l,context:d,slot:m.flexItem})});var Je=$t;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>zt(Pt,{alignSelf:r,shrink:e,children:zt(To,{data:o,context:t,slot:a.inner})});import{UniformSlot as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as qt}from"react/jsx-runtime";var Jt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,slots:l,component:d,context:c,className:f})=>qt(dt,{className:f,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,children:qt(So,{data:d,context:c,slot:l.gridInner})});var Kt=(e=>(e.GridInner="gridInner",e))(Kt||{}),Ke=Jt;import{UniformSlot as Ao}from"@uniformdev/canvas-next-rsc/component";import{jsx as Qt}from"react/jsx-runtime";var Yt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Qt(ut,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Qt(Ao,{data:i,context:p,slot:s.inner})});var Xt=(e=>(e.Inner="inner",e))(Xt||{}),Qe=Yt;import{UniformText as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ye}from"react/jsx-runtime";var Zt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:d})=>{let[c]=y(r),{url:f,title:u=""}=c||{};return Ye(q,{icon:f?Ye(w,{src:f,alt:u,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Ye(No,{placeholder:"Text goes here",parameterId:"text",component:l,context:d})})};var Xe=Zt;import{imageFrom as Bo}from"@uniformdev/assets";import{jsx as er}from"react/jsx-runtime";var tr=({context:r,component:e,width:t,height:o})=>{let a=r.previewMode==="editor"&&r.isContextualEditing,p=e?._id?.includes("placeholder_");return!a||p?null:er("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:er($,{type:"image",placeholder:"Please add an asset to display an image"})})};import{jsx as Ze}from"react/jsx-runtime";var ie=async({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,fill:n,unoptimized:m,context:l,component:d})=>{let[c]=y(r);if(!c)return Ze(tr,{context:l,component:d,width:t,height:o});let{focalPoint:f,title:u=""}=c,C=t||c.width,x=o||c.height;if(!n&&(!C||!x))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),Ze("img",{src:c.url,alt:u});let A=Bo(c?.url).transform({width:t,height:o,fit:e,focal:f}).url();return Ze(w,{src:A,alt:u,unoptimized:m,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i,...n?{fill:!0}:{width:C,height:x}})};import{UniformSlot as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as rr}from"react/jsx-runtime";var or=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>rr(H,{link:I(o),openInNewTab:a,children:rr(ko,{data:r,context:e,slot:t.linkContent})});var ar=(e=>(e.LinkContent="linkContent",e))(ar||{}),et=or;import{UniformText as Fo}from"@uniformdev/canvas-next-rsc/component";import{jsx as nr}from"react/jsx-runtime";var ir=({href:r,isExternalLink:e,children:t})=>r?nr(H,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):nr("div",{className:"cursor-pointer",children:t});import{jsx as M}from"react/jsx-runtime";var sr=({icon:r,link:e,activeState:t,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:d,component:c,context:f,hoverEffect:u="",className:C})=>{let x=I(e),A=t&&j(f.matchedRoute,f.dynamicInputs)===x,[b]=y(r),{url:N,title:U=""}=b||{},ue=()=>N?N.endsWith(".svg")?M(ft,{src:N,alt:U,fill:!0}):M(w,{src:N,alt:U,fill:!0}):null,fe=h("transition-all duration-150",{[Pe(u,"group-hover:{value}")]:!!u,[Pe(u,"{value}")]:!!u&&A});return M(ir,{href:x,isExternalLink:lt(x),children:M(q,{icon:ue(),className:h("group",C),iconClassName:fe,textClassName:fe,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:d,children:M(Fo,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:c,context:f})})})};var tt=sr;import{UniformRichText as Uo}from"@uniformdev/canvas-next-rsc/component";import{jsx as pr}from"react/jsx-runtime";var mr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>pr(g,{lineCountRestrictions:e,color:r,font:t,children:pr(Uo,{className:h("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var rt=mr;import{jsx as _o}from"react/jsx-runtime";var se=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return _o("div",{className:h({[`w-${r}`]:t,[`h-${r}`]:!t})})};var ot=(e=>(e.Horizontal="horizontal",e))(ot||{});import{UniformSlot as Vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Lo}from"react/jsx-runtime";var lr=({slots:r,component:e,context:t})=>Lo(Vo,{data:e,context:t,slot:r.tabContent});var cr=(e=>(e.TabContent="tabContent",e))(cr||{}),at=lr;import{UniformSlot as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as nt}from"react/jsx-runtime";var pe=({component:r,context:e,slots:t,alignment:o})=>nt("td",{children:nt("div",{className:h("w-fit",dr[o||"left"]),children:nt(Ro,{slot:t.tableCustomCellContent,context:e,data:r})})});var dr={left:"ml-0",center:"mx-auto",right:"ml-auto"},ur=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ur||{});import{UniformText as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var me=({component:r,context:e})=>fr("td",{children:fr(Go,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Do}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var le=({component:r,context:e})=>hr("th",{children:hr(Do,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Pr}from"react/jsx-runtime";var ce=({slots:r,component:e,context:t})=>Pr("tr",{children:Pr(Eo,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Mo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Cr}from"react/jsx-runtime";var yr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:d})=>Cr(g,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:Cr(Mo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:d})});var it=yr;import Oo from"next/dynamic";var st=Oo(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as jo}from"react/jsx-runtime";var xr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:jo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as gr}from"react/jsx-runtime";var de=({video:r,url:e,placeholderImage:t,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l,component:d,context:c})=>{let[f]=y(r),[u]=y(t),C=f?.url||(e?.type==="url"?e.path:void 0);return C?gr(Ct,{url:C,placeholderImageUrl:u?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):gr(xr,{component:d,context:c})};var vr={accordion:{component:Ce},accordionItem:{component:Ve},badge:{component:Re},banner:{component:ye},button:{component:qe},card:{component:xe},carousel:{component:ge},container:{component:oe},countdown:{component:ve},divider:{component:ae},grid:{component:Ke},gridItem:{component:Qe},flex:{component:Je},flexItem:{component:ne},header:{component:Ie},section:{component:ke},iconLabel:{component:Xe},image:{component:ie},page:{component:Ne},richText:{component:rt},spacer:{component:se},text:{component:it},video:{component:de},tabs:{component:Ue},tab:{component:at},table:{component:Fe},tableRow:{component:ce},tableHeaderCell:{component:le},tableDataCell:{component:me},tableCustomCell:{component:pe},modal:{component:Te},imageGallery:{component:we},testimonial:{component:_e},breadcrumbs:{component:ze},review:{component:Be},navigationLink:{component:tt},navigationGroup:{component:Ae},navigationFlyout:{component:Se},footer:{component:be},themeSwitcher:{component:st},link:{component:et},fixedHero:{component:z.FixedHero},flexibleHero:{component:z.FlexibleHero}},ip=vr,sp=mt(vr);export{Ce as Accordion,Ve as AccordionItem,yt as AccordionItemSlots,wr as AccordionSlots,Re as Badge,ye as Banner,Tr as BannerContentAlignment,Sr as BannerSlots,ze as Breadcrumbs,qe as Button,xe as Card,Nr as CardSlots,Ar as CardVariants,ge as Carousel,Br as CarouselSlots,Mr as CommonPageSlots,oe as Container,jt as ContainerSlots,ve as Countdown,kr as CountdownSlots,Fr as CountdownVariants,z as DemoHero,Ur as DemoHeroContentAlignment,_r as DemoHeroVariants,ae as Divider,Je as Flex,ne as FlexItem,Vr as FlexibleHeroSlots,be as Footer,Lr as FooterSlots,Ke as Grid,Qe as GridItem,Xt as GridItemSlots,Kt as GridSlots,Ie as Header,Rr as HeaderSlots,Gr as HeaderVariants,Xe as IconLabel,ie as Image,we as ImageGallery,Dr as ImageGallerySlots,et as Link,ar as LinkSlots,Te as Modal,Er as ModalSlots,Se as NavigationFlyout,Ae as NavigationGroup,tt as NavigationLink,Ne as Page,Be as Review,jr as ReviewSlots,Or as ReviewVariants,rt as RichText,ke as Section,Hr as SectionContentAlignment,$r as SectionSlots,Wr as SectionVariants,se as Spacer,ot as SpacerVariants,at as Tab,cr as TabSlots,Fe as Table,pe as TableCustomCell,ur as TableCustomCellSlots,me as TableDataCell,le as TableHeaderCell,ce as TableRow,zr as TableSlots,Ue as Tabs,Jr as TabsSlots,qr as TabsVariants,_e as Testimonial,Qr as TestimonialSlots,Kr as TestimonialVariants,it as Text,st as ThemeSwitcher,de as Video,sp as componentResolver,vr as cskComponentsMapping,ip as default};
|
|
1
|
+
import{a as ht,b as Pt,c as Ct}from"../../chunk-BJ3OD5EH.mjs";import{a as q,b as ft}from"../../chunk-RYEXR67P.mjs";import"../../chunk-TDAANMNJ.mjs";import"../../chunk-V4EBWEG4.mjs";import"../../chunk-5VM2Y55L.mjs";import{a as mt}from"../../chunk-56OQGKRM.mjs";import{B as Ne,D as Be,E as Er,G as ke,H as Dr,I as Mr,K as Fe,L as Or,M as jr,N as Hr,P as Ue,Q as Wr,S as Ve,T as qr,U as Jr,a as ye,b as br,d as ge,e as Tr,f as Sr,h as Ar,i as ve,k as kr,l as Fr,m as Ur,n as z,p as _r,q as Ie,s as Vr,t as Lr,u as we,w as Rr,x as Te,z as Ae}from"../../chunk-JE7SVZ2M.mjs";import{b as Gr,c as Se}from"../../chunk-2SEOCBRK.mjs";import{a as $r,b as zr,c as _e}from"../../chunk-FPOIJMYT.mjs";import{b as H,c as W,e as $}from"../../chunk-7GZZPOY4.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as v}from"../../chunk-WAW7PQYM.mjs";import{a as Ir,b as wr,c as xe}from"../../chunk-LA36HQWS.mjs";import{a as Nr,b as Br,c as be}from"../../chunk-2UV7TQNF.mjs";import{a as dt,b as ut}from"../../chunk-WNQCSSLG.mjs";import{a as S}from"../../chunk-BK7UG4U4.mjs";import{b as ct}from"../../chunk-YUCUJWBO.mjs";import"../../chunk-3PDY7RJC.mjs";import{a as y}from"../../chunk-2YTACEBA.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as j,c as T,d as lt}from"../../chunk-RX4IAAQQ.mjs";import{a as Ce,c as h}from"../../chunk-S7CSCIW4.mjs";import{a as pt,b as vr}from"../../chunk-YEKQJ4YC.mjs";var wt=pt((oa,It)=>{"use strict";var Ee=class{constructor(e){this.value=e,this.next=void 0}},De=class{constructor(){this.clear()}enqueue(e){let t=new Ee(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};It.exports=De});var St=pt((aa,Tt)=>{"use strict";var Xr=wt(),Zr=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 Xr,t=0,o=()=>{t--,e.size>0&&e.dequeue()()},a=async(s,n,...m)=>{t++;let l=(async()=>s(...m))();n(l);try{await l}catch{}o()},p=(s,n,...m)=>{e.enqueue(a.bind(null,s,n,...m)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},i=(s,...n)=>new Promise(m=>{p(s,m,...n)});return Object.defineProperties(i,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),i};Tt.exports=Zr});import Kr from"next/dynamic";var yt=(e=>(e.AccordionItemContent="accordionItemContent",e))(yt||{}),Le=Kr(()=>import("../../accordion-item-NUEMADB2.mjs").then(r=>r.AccordionItem));import{UniformText as Qr}from"@uniformdev/canvas-next-rsc/component";import{jsx as xt}from"react/jsx-runtime";var gt=({className:r,...e})=>xt("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:h("w-1.5 h-1.5",r),...e,children:xt("circle",{r:"3",cx:"3",cy:"3"})});var vt=({pill:r,size:e,dotColor:t,borderColor:o,backgroundColor:a})=>h("inline-flex items-center w-fit",{"rounded-full":r,"rounded-md":!r,"gap-x-1.5":!!t,[`ring-1 ring-inset ring-${o}`]:!!o,[`bg-${a}`]:!!a,[`p-${e}`]:e});import{jsx as Re,jsxs as Yr}from"react/jsx-runtime";var bt=({component:r,context:e,textColor:t,backgroundColor:o,borderColor:a,dotColor:p,pill:i=!1,size:s})=>Yr("div",{className:vt({pill:i,size:s,dotColor:p,borderColor:a,backgroundColor:o}),children:[p&&Re(gt,{className:h({[`fill-${p}`]:p})}),Re(v,{color:t,size:"xs",children:Re(Qr,{placeholder:"Badge text goes here",parameterId:"text",component:r,context:e})})]});var Ge=bt;import{flattenValues as Et,CanvasClient as Co}from"@uniformdev/canvas";var Nt=vr(St(),1),eo=Object.defineProperty,At=r=>{throw TypeError(r)},to=(r,e,t)=>e in r?eo(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ro=(r,e,t)=>to(r,typeof e!="symbol"?e+"":e,t),oo=(r,e,t)=>e.has(r)||At("Cannot "+t),P=(r,e,t)=>(oo(r,e,"read from private field"),t?t.call(r):e.get(r)),A=(r,e,t)=>e.has(r)?At("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var ao=(0,Nt.default)(6),no=class Bt extends Error{constructor(e,t,o,a,p,i){super(`${e}
|
|
2
|
+
${a}${p?" "+p:""} (${t} ${o}${i?` Request ID: ${i}`:""})`),this.errorMessage=e,this.fetchMethod=t,this.fetchUri=o,this.statusCode=a,this.statusText=p,this.requestId=i,Object.setPrototypeOf(this,Bt.prototype)}},b=class kt{constructor(e){ro(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:ao,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 io(()=>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 no(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,kt.getRequestId(n))}return t?.expectNoContent?{response:n,body:null}:{response:n,body:await n.json()}})}createUrl(e,t,o){let a=new URL(`${o??this.options.apiHost}${e}`);return Object.entries(t??{}).forEach(([p,i])=>{var s;typeof i<"u"&&i!==null&&a.searchParams.append(p,Array.isArray(i)?i.join(","):(s=i?.toString())!=null?s:"")}),a}ensureApiHost(e){if(!e)return"https://uniform.app";if(!e?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(e.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(e.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return e?.endsWith("/")&&(e=e.substring(0,e.length-1)),e}static getRequestId(e){let t=e.headers.get("apigw-requestid");if(t)return t}};async function io(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(),d=(e=c?.info)==null?void 0:e.reset;typeof l=="number"&&typeof d=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(d-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var V,so=class J extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(J,V),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(J,V));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};V=new WeakMap;A(so,V,"/api/v2/aggregate");var Me,po=class Ft extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Ft,Me),{...e,projectId:t});return await this.apiClient(o)}};Me=new WeakMap;A(po,Me,"/api/v2/dimension");var L,X,Ut=class _ extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_,L),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(P(_,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(e){let t=this.createUrl(P(_,X));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;X=new WeakMap;A(Ut,L,"/api/v1/enrichments");A(Ut,X,"/api/v1/enrichment-values");var Oe,mo=class _t extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_t,Oe),{...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})}};Oe=new WeakMap;A(mo,Oe,"/api/v2/manifest");var R,lo=class K extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(K,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(K,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;A(lo,R,"/api/v2/quirk");var G,co=class Q extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Q,G),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Q,G));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};G=new WeakMap;A(co,G,"/api/v2/signal");var E,uo=class Y extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(Y,E),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(Y,E));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async remove(e){let t=this.createUrl(P(Y,E));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};E=new WeakMap;A(uo,E,"/api/v2/test");import{createVariableReference as ho,parseVariableExpression as Po}from"@uniformdev/canvas";var Vt=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||Vt("Cannot "+t),Z=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),Lt=(r,e,t)=>e.has(r)?Vt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),fo=(r,e,t,o)=>($e(r,e,"write to private field"),o?o.call(r,t):e.set(r,t),t),D=(r,e,t)=>($e(r,e,"access private method"),t);var Rt=class extends b{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=je(n),l.previousSibling=je(m),m&&(m.nextSibling=je(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 je=r=>r?{...r,parent:void 0,children:void 0}:void 0;var k,F,We,ee,ze=class N{constructor(e){this.route=e,Lt(this,k);var t;fo(this,k,D(t=N,F,We).call(t,this.route))}get dynamicSegmentCount(){return Z(this,k).segments.reduce((e,t)=>{var o;return D(o=N,F,ee).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=D(t=N,F,We).call(t,e),{segments:i}=Z(this,k);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=N,F,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,k).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,k).segments.map(n=>{let m=N.getDynamicRouteSegmentName(n);if(!m)return n;let l=t[m];return l?He(l,a):n}).join("/"),i=o.filter(n=>{let m=typeof t[n];return m==="string"||m==="number"||m==="boolean"}).map(n=>`${He(n,a)}=${He(t[n],a)}`),s=i.length?`?${i.join("&")}`:"";return`/${p}${s}`}static getDynamicRouteSegmentName(e){var t;if(D(t=N,F,ee).call(t,e))return e.slice(N.dynamicSegmentPrefix.length)}};k=new WeakMap;F=new WeakSet;We=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(ze.dynamicSegmentPrefix):!1};Lt(ze,F);ze.dynamicSegmentPrefix=":";function He(r,e){if(!e)return encodeURIComponent(r);let t=[];return Po(r.toString(10),(o,a)=>{a==="variable"?t.push(ho(o)):t.push(encodeURIComponent(o))}),t.join("")}import{jsx as te}from"react/jsx-runtime";var Gt=r=>{switch(r){case"slash":return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return te("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:te("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as U,jsxs as yo}from"react/jsx-runtime";var Dt=async({separator:r,links:e,size:t,color:o,font:a,transform:p,autoGenerate:i,context:s})=>{let n=!s?.matchedRoute||s?.matchedRoute==="composition",c=i?await(async()=>{if(n)return[];let d=new Rt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:f}=await d.getNodes({path:s?.matchedRoute,includeAncestors:!0});return f?.length?Promise.all(f.map(async u=>{let x=u.pathSegment?.includes(":")&&u.compositionId?await new Co({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:u.compositionId}).then(({composition:I})=>I&&Et(I)?.pageTitle||u.name).catch(()=>u.name):u.name,B=u.type==="placeholder"?void 0:j(u.path,s.dynamicInputs);return{title:x,link:B}})):[]})():await(async()=>e?.reduce((d,f)=>{let{title:u,link:C}=Et(f);return u?[...d,{title:u,link:T(C)}]:d},[])||[])();return n&&i?U("ul",{className:"flex items-center",children:U("li",{className:"flex items-center",children:U(v,{size:t,font:a,color:o,transform:p,children:"Breadcrumbs cannot be auto-generated because the project map is not accessible in this context."})})}):c.length?U("ul",{className:h("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:c.map(({title:d,link:f},u)=>yo("li",{className:"flex items-center",children:[!!u&&U("div",{className:"mx-2 size-[1em]",children:Gt(r)}),f?U(W,{variant:"link",textColor:o,className:h({[`font-${a}`]:!!a,[`text-${t}`]:!!t,[p||""]:!!p}),href:f,children:d}):U(v,{size:t,font:a,color:o,transform:p,children:d})]},`${d}-${u}`))}):null};var qe=Dt;import{useMemo as xo}from"react";import{UniformText as go}from"@uniformdev/canvas-next-rsc/component";import{jsx as re}from"react/jsx-runtime";var Mt=({component:r,context:e,link:t,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,icon:n,iconPosition:m,border:l,size:c,textSize:d,hoverButtonColor:f,hoverTextColor:u,className:C,onClick:x,text:B})=>{let I=T(t),g=e.previewMode==="editor"&&e?.isContextualEditing,w=xo(()=>{let[Pe]=y(n),{url:O,title:gr=""}=Pe||{};if(O)return{url:O,title:gr}},[n]),fe=()=>{if(!w)return;let{url:Pe,title:O}=w;return re(S,{src:Pe,alt:O,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!B||!!w)&&!g?null:re(W,{variant:r.variant,href:I,border:l,size:c,onClick:x,className:C,textSize:d,isActive:e.matchedRoute===I,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:f,hoverTextColor:u,icon:re(fe,{}),iconPosition:m,children:re(go,{placeholder:"Button text goes here",parameterId:"text",component:r,context:e})})};var Je=Mt;import{UniformSlot as vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ot}from"react/jsx-runtime";var oe=({displayName:r,anchor:e,slots:t,component:o,context:a,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:c,className:d})=>Ot(ct,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,fullHeight:m,fitHeight:l,height:c,className:d,children:Ot(vo,{data:o,context:a,slot:t.containerContent})});var jt=(e=>(e.ContainerContent="containerContent",e))(jt||{});import{jsx as Ht}from"react/jsx-runtime";var ae=({color:r,thickness:e,width:t,alignment:o})=>Ht("div",{className:h("flex w-full",`justify-${o||"center"}`),children:Ht("div",{className:h({[`bg-${r}`]:!!r}),style:{width:t,height:e}})});import{UniformSlot as bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as Wt}from"react/jsx-runtime";var $t=({direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,slots:m,component:l,context:c,className:d,fitHeight:f,height:u,wrapperClassName:C})=>Wt(ht,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,fullHeight:n,fitHeight:f,height:u,wrapperClassName:C,className:d,children:Wt(bo,{data:l,context:c,slot:m.flexItem})});var Ke=$t;import{UniformSlot as Io}from"@uniformdev/canvas-next-rsc/component";import{jsx as zt}from"react/jsx-runtime";var ne=({alignSelf:r,shrink:e,context:t,component:o,slots:a})=>zt(Pt,{alignSelf:r,shrink:e,children:zt(Io,{data:o,context:t,slot:a.inner})});import{UniformSlot as wo}from"@uniformdev/canvas-next-rsc/component";import{jsx as qt}from"react/jsx-runtime";var Jt=({columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,slots:l,component:c,context:d,className:f})=>qt(dt,{className:f,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,fullHeight:s,fitHeight:n,height:m,children:qt(wo,{data:c,context:d,slot:l.gridInner})});var Kt=(e=>(e.GridInner="gridInner",e))(Kt||{}),Qe=Jt;import{UniformSlot as To}from"@uniformdev/canvas-next-rsc/component";import{jsx as Qt}from"react/jsx-runtime";var Yt=({columnStart:r,columnSpan:e,rowStart:t,className:o,rowSpan:a,context:p,component:i,slots:s})=>Qt(ut,{columnStart:r,columnSpan:e,rowStart:t,rowSpan:a,className:o,children:Qt(To,{data:i,context:p,slot:s.inner})});var Xt=(e=>(e.Inner="inner",e))(Xt||{}),Ye=Yt;import{UniformText as So}from"@uniformdev/canvas-next-rsc/component";import{jsx as Xe}from"react/jsx-runtime";var Zt=({icon:r,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,component:l,context:c})=>{let[d]=y(r),{url:f,title:u=""}=d||{};return Xe(q,{icon:f?Xe(S,{src:f,alt:u,fill:!0}):void 0,size:e,tag:t,color:o,weight:a,font:p,transform:i,decoration:s,letterSpacing:n,alignment:m,children:Xe(So,{placeholder:"Text goes here",parameterId:"text",component:l,context:c})})};var Ze=Zt;import{imageFrom as Ao}from"@uniformdev/assets";import{jsx as ie}from"react/jsx-runtime";var se=async({image:r,objectFit:e,width:t,height:o,overlayColor:a,overlayOpacity:p,border:i,priority:s,fill:n,unoptimized:m,context:l,component:c})=>{let[d]=y(r);if(!d){let g=l.previewMode==="editor"&&l.isContextualEditing,w=c?._id?.includes("placeholder_");return!g||w||!c.variant?null:ie("div",{style:{width:t?`${t}px`:"auto",height:o?`${o}px`:"auto"},children:ie($,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:f,title:u=""}=d,C=t||d.width,x=o||d.height;if(!n&&(!C||!x))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),ie("img",{src:d.url,alt:u});let B=Ao(d?.url).transform({width:t,height:o,fit:e,focal:f}).url();return ie(S,{src:B,alt:u,unoptimized:m,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i,...n?{fill:!0}:{width:C,height:x}})};import{UniformSlot as No}from"@uniformdev/canvas-next-rsc/component";import{jsx as er}from"react/jsx-runtime";var tr=({component:r,context:e,slots:t,link:o,openInNewTab:a})=>er(H,{link:T(o),openInNewTab:a,children:er(No,{data:r,context:e,slot:t.linkContent})});var rr=(e=>(e.LinkContent="linkContent",e))(rr||{}),et=tr;import{UniformText as Bo}from"@uniformdev/canvas-next-rsc/component";import{jsx as or}from"react/jsx-runtime";var ar=({href:r,isExternalLink:e,children:t})=>r?or(H,{className:"cursor-pointer hover:no-underline",link:r,openInNewTab:e,rel:e?"noopener noreferrer":"",children:t}):or("div",{className:"cursor-pointer",children:t});import{jsx as M}from"react/jsx-runtime";var nr=({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:d,context:f,hoverEffect:u="",className:C})=>{let x=T(e),B=t&&j(f.matchedRoute,f.dynamicInputs)===x,[I]=y(r),{url:g,title:w=""}=I||{},fe=()=>g?g.endsWith(".svg")?M(ft,{src:g,alt:w,fill:!0}):M(S,{src:g,alt:w,fill:!0}):null,he=h("transition-all duration-150",{[Ce(u,"group-hover:{value}")]:!!u,[Ce(u,"{value}")]:!!u&&B});return M(ar,{href:x,isExternalLink:lt(x),children:M(q,{icon:fe(),className:h("group",C),iconClassName:he,textClassName:he,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:c,children:M(Bo,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:d,context:f})})})};var tt=nr;import{UniformRichText as ko}from"@uniformdev/canvas-next-rsc/component";import{jsx as ir}from"react/jsx-runtime";var sr=({color:r,lineCountRestrictions:e,font:t,component:o,className:a})=>ir(v,{lineCountRestrictions:e,color:r,font:t,children:ir(ko,{className:h("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:o,placeholder:"Rich text content goes here..."})});var rt=sr;import{jsx as Fo}from"react/jsx-runtime";var pe=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return Fo("div",{className:h({[`w-${r}`]:t,[`h-${r}`]:!t})})};var ot=(e=>(e.Horizontal="horizontal",e))(ot||{});import{UniformSlot as Uo}from"@uniformdev/canvas-next-rsc/component";import{jsx as _o}from"react/jsx-runtime";var pr=({slots:r,component:e,context:t})=>_o(Uo,{data:e,context:t,slot:r.tabContent});var mr=(e=>(e.TabContent="tabContent",e))(mr||{}),at=pr;import{UniformSlot as Vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as nt}from"react/jsx-runtime";var me=({component:r,context:e,slots:t,alignment:o})=>nt("td",{children:nt("div",{className:h("w-fit",lr[o||"left"]),children:nt(Vo,{slot:t.tableCustomCellContent,context:e,data:r})})});var lr={left:"ml-0",center:"mx-auto",right:"ml-auto"},cr=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(cr||{});import{UniformText as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as dr}from"react/jsx-runtime";var le=({component:r,context:e})=>dr("td",{children:dr(Lo,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Ro}from"@uniformdev/canvas-next-rsc/component";import{jsx as ur}from"react/jsx-runtime";var ce=({component:r,context:e})=>ur("th",{children:ur(Ro,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Go}from"@uniformdev/canvas-next-rsc/component";import{jsx as fr}from"react/jsx-runtime";var de=({slots:r,component:e,context:t})=>fr("tr",{children:fr(Go,{data:e,context:t,slot:r.tableRowCells})});import{UniformText as Eo}from"@uniformdev/canvas-next-rsc/component";import{jsx as hr}from"react/jsx-runtime";var Pr=({tag:r,size:e,color:t,weight:o,font:a,transform:p,decoration:i,letterSpacing:s,lineCountRestrictions:n,alignment:m,component:l,context:c})=>hr(v,{color:t,size:e,font:a,weight:o,transform:p,decoration:i,letterSpacing:s,alignment:m,lineCountRestrictions:n,children:hr(Eo,{placeholder:"Text goes here",parameterId:"text",as:r||void 0,component:l,context:c})});var it=Pr;import Do from"next/dynamic";var st=Do(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(r=>r.ThemeSwitcher));import{jsx as Mo}from"react/jsx-runtime";var Cr=({context:r,component:e})=>{let t=r.previewMode==="editor"&&r.isContextualEditing,o=e?._id?.includes("placeholder_");return!t||o?null:Mo($,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as yr}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:d})=>{let[f]=y(r),[u]=y(t),C=f?.url||(e?.type==="url"?e.path:void 0);return C?yr(Ct,{url:C,placeholderImageUrl:u?.url,autoPlay:o,lazyLoad:a,loop:p,controls:i,muted:s,overlayColor:n,overlayOpacity:m,border:l}):yr(Cr,{component:c,context:d})};var xr={accordion:{component:ye},accordionItem:{component:Le},badge:{component:Ge},banner:{component:xe},button:{component:Je},card:{component:ge},carousel:{component:ve},container:{component:oe},countdown:{component:be},divider:{component:ae},grid:{component:Qe},gridItem:{component:Ye},flex:{component:Ke},flexItem:{component:ne},header:{component:we},section:{component:Fe},iconLabel:{component:Ze},image:{component:se},page:{component:Be},richText:{component:rt},spacer:{component:pe},text:{component:it},video:{component:ue},tabs:{component:_e},tab:{component:at},table:{component:Ue},tableRow:{component:de},tableHeaderCell:{component:ce},tableDataCell:{component:le},tableCustomCell:{component:me},modal:{component:Se},imageGallery:{component:Te},testimonial:{component:Ve},breadcrumbs:{component:qe},review:{component:ke},navigationLink:{component:tt},navigationGroup:{component:Ne},navigationFlyout:{component:Ae},footer:{component:Ie},themeSwitcher:{component:st},link:{component:et},fixedHero:{component:z.FixedHero},flexibleHero:{component:z.FlexibleHero}},tp=xr,rp=mt(xr);export{ye as Accordion,Le as AccordionItem,yt as AccordionItemSlots,br as AccordionSlots,Ge as Badge,xe as Banner,Ir as BannerContentAlignment,wr as BannerSlots,qe as Breadcrumbs,Je as Button,ge as Card,Sr as CardSlots,Tr as CardVariants,ve as Carousel,Ar as CarouselSlots,Er as CommonPageSlots,oe as Container,jt as ContainerSlots,be as Countdown,Nr as CountdownSlots,Br as CountdownVariants,z as DemoHero,kr as DemoHeroContentAlignment,Fr as DemoHeroVariants,ae as Divider,Ke as Flex,ne as FlexItem,Ur as FlexibleHeroSlots,Ie as Footer,_r as FooterSlots,Qe as Grid,Ye as GridItem,Xt as GridItemSlots,Kt as GridSlots,we as Header,Vr as HeaderSlots,Lr as HeaderVariants,Ze as IconLabel,se as Image,Te as ImageGallery,Rr as ImageGallerySlots,et as Link,rr as LinkSlots,Se as Modal,Gr as ModalSlots,Ae as NavigationFlyout,Ne as NavigationGroup,tt as NavigationLink,Be as Page,ke as Review,Mr as ReviewSlots,Dr as ReviewVariants,rt as RichText,Fe as Section,Or as SectionContentAlignment,Hr as SectionSlots,jr as SectionVariants,pe as Spacer,ot as SpacerVariants,at as Tab,mr as TabSlots,Ue as Table,me as TableCustomCell,cr as TableCustomCellSlots,le as TableDataCell,ce as TableHeaderCell,de as TableRow,Wr as TableSlots,_e as Tabs,zr as TabsSlots,$r as TabsVariants,Ve as Testimonial,Jr as TestimonialSlots,qr as TestimonialVariants,it as Text,st as ThemeSwitcher,ue as Video,rp as componentResolver,xr as cskComponentsMapping,tp as default};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, SVGProps, ReactElement, HTMLAttributes, ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-
|
|
4
|
-
export { a as ButtonVariant } from '../../index-
|
|
5
|
-
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
3
|
+
import { T as TextProps, B as ButtonProps, C as ContainerProps, F as FooterProps, H as HeaderProps } from '../../index-Bi9hBway.mjs';
|
|
4
|
+
export { a as ButtonVariant } from '../../index-Bi9hBway.mjs';
|
|
6
5
|
import { ViewPort } from '../../types/cskTypes.mjs';
|
|
7
6
|
import { ImageProps as ImageProps$1 } from 'next/image';
|
|
8
7
|
import { ReactPlayerProps } from 'react-player';
|
|
@@ -34,18 +33,17 @@ type CarouselProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing
|
|
|
34
33
|
gapX?: string;
|
|
35
34
|
variant?: string;
|
|
36
35
|
};
|
|
37
|
-
declare const _default$
|
|
36
|
+
declare const _default$3: react.ComponentType<CarouselProps>;
|
|
38
37
|
|
|
39
38
|
declare const Flex: FC<FlexProps>;
|
|
40
39
|
|
|
41
40
|
type Direction = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
42
41
|
type Justify = 'normal' | 'start' | 'end' | 'center' | 'between' | 'around' | 'evenly' | 'stretch';
|
|
43
|
-
type FlexGap = keyof DefaultTheme['spacing'];
|
|
44
42
|
type Align = 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
45
43
|
type FlexProps = Pick<ContainerProps, 'className' | 'wrapperClassName' | 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'height' | 'children'> & {
|
|
46
44
|
direction?: Direction | ViewPort<Direction>;
|
|
47
45
|
justifyContent?: Justify | ViewPort<Justify>;
|
|
48
|
-
gap?:
|
|
46
|
+
gap?: string | ViewPort<string>;
|
|
49
47
|
alignItems?: Align | ViewPort<Align>;
|
|
50
48
|
};
|
|
51
49
|
|
|
@@ -60,26 +58,20 @@ type FlexItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
60
58
|
|
|
61
59
|
declare const Grid: FC<GridProps>;
|
|
62
60
|
|
|
63
|
-
type AvailableColumnsCount = keyof DefaultTheme['gridTemplateColumns'];
|
|
64
|
-
type AvailableGap = keyof DefaultTheme['spacing'];
|
|
65
61
|
type GridProps = Pick<ContainerProps, 'title' | 'backgroundColor' | 'spacing' | 'border' | 'fluidContent' | 'fullHeight' | 'fitHeight' | 'children' | 'height'> & {
|
|
66
|
-
columnsCount?:
|
|
67
|
-
gapY?:
|
|
68
|
-
gapX?:
|
|
62
|
+
columnsCount?: string | ViewPort<string>;
|
|
63
|
+
gapY?: string | ViewPort<string>;
|
|
64
|
+
gapX?: string | ViewPort<string>;
|
|
69
65
|
className?: string;
|
|
70
66
|
};
|
|
71
67
|
|
|
72
68
|
declare const GridItem: FC<GridItemProps>;
|
|
73
69
|
|
|
74
|
-
type AvailableColumnStart = keyof DefaultTheme['gridColumnStart'];
|
|
75
|
-
type AvailableColumnSpan = keyof DefaultTheme['gridColumn'];
|
|
76
|
-
type AvailableGridRowStart = keyof DefaultTheme['gridRowStart'];
|
|
77
|
-
type AvailableGridRowSpan = keyof DefaultTheme['gridRow'];
|
|
78
70
|
type GridItemProps = HTMLAttributes<HTMLDivElement> & {
|
|
79
|
-
columnStart?:
|
|
80
|
-
columnSpan?:
|
|
81
|
-
rowStart?:
|
|
82
|
-
rowSpan?:
|
|
71
|
+
columnStart?: string | ViewPort<string>;
|
|
72
|
+
columnSpan?: string | ViewPort<string>;
|
|
73
|
+
rowStart?: string | ViewPort<string>;
|
|
74
|
+
rowSpan?: string | ViewPort<string>;
|
|
83
75
|
className?: string;
|
|
84
76
|
};
|
|
85
77
|
|
|
@@ -151,7 +143,7 @@ type ThemeSwitcherProps = {
|
|
|
151
143
|
iconColor?: string;
|
|
152
144
|
onChange?: (theme: string) => void;
|
|
153
145
|
};
|
|
154
|
-
declare const _default$
|
|
146
|
+
declare const _default$2: react.ComponentType<ThemeSwitcherProps>;
|
|
155
147
|
|
|
156
148
|
type VideoProps = ReactPlayerProps & {
|
|
157
149
|
autoPlay?: boolean;
|
|
@@ -161,6 +153,37 @@ type VideoProps = ReactPlayerProps & {
|
|
|
161
153
|
overlayOpacity?: NonNullable<ImageProps$1['style']>['opacity'];
|
|
162
154
|
border?: string | ViewPort<string>;
|
|
163
155
|
};
|
|
164
|
-
declare const _default: react.ComponentType<VideoProps>;
|
|
156
|
+
declare const _default$1: react.ComponentType<VideoProps>;
|
|
165
157
|
|
|
166
|
-
|
|
158
|
+
declare const InlineSVG: FC<InlineSVGProps>;
|
|
159
|
+
|
|
160
|
+
type InlineSVGProps = {
|
|
161
|
+
src: string;
|
|
162
|
+
className?: string;
|
|
163
|
+
fill?: boolean;
|
|
164
|
+
width?: number;
|
|
165
|
+
height?: number;
|
|
166
|
+
sanitize?: boolean;
|
|
167
|
+
fallback?: React.ReactNode;
|
|
168
|
+
useCurrentColor?: boolean;
|
|
169
|
+
alt?: string;
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
declare const Accordion: FC<AccordionProps>;
|
|
173
|
+
|
|
174
|
+
type AccordionProps = ContainerProps & {
|
|
175
|
+
accordionContent?: ReactNode;
|
|
176
|
+
accordionItems: ReactNode;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
type AccordionItemParameters = Pick<ContainerProps, 'backgroundColor' | 'spacing' | 'border'> & {
|
|
180
|
+
text: ReactElement;
|
|
181
|
+
accordionItemContent: ReactNode;
|
|
182
|
+
};
|
|
183
|
+
type AccordionItemAdditionalProps = {
|
|
184
|
+
className?: string;
|
|
185
|
+
};
|
|
186
|
+
type AccordionItemProps = AccordionItemParameters & AccordionItemAdditionalProps;
|
|
187
|
+
declare const _default: react.ComponentType<AccordionItemProps>;
|
|
188
|
+
|
|
189
|
+
export { Accordion, _default as AccordionItem, type AccordionItemProps, type AccordionProps, Arrow as ArrowIcon, Button, ButtonProps, _default$3 as Carousel, type CarouselProps, Container, ContainerProps, Flex, FlexItem, type FlexItemProps, type FlexProps, Footer, FooterProps, Grid, GridItem, type GridItemProps, type GridProps, Header, HeaderProps, IconLabel, type IconLabelProps, Image, ImageIcon, type ImageProps, InlineSVG, type InlineSVGProps, Link, type LinkProps, MediaPlaceholder, type MediaPlaceholderType, Page, type PageProps, Rating, type RatingProps, Text, TextProps, _default$2 as ThemeSwitcher, type ThemeSwitcherProps, _default$1 as Video, VideoIcon, type VideoProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as v,b as w,c as y}from"../../chunk-BJ3OD5EH.mjs";import{a as q,b as r}from"../../chunk-RYEXR67P.mjs";import{a as u}from"../../chunk-TDAANMNJ.mjs";import{a as x}from"../../chunk-V4EBWEG4.mjs";import{a as c}from"../../chunk-5VM2Y55L.mjs";import{a as b,b as d,c as e,d as f,e as l,f as m,g as p,h as s,i as t}from"../../chunk-7GZZPOY4.mjs";import{a as h,b as i,c as j}from"../../chunk-6TUDWIYU.mjs";import{a as k}from"../../chunk-WAW7PQYM.mjs";import{a as n,b as o}from"../../chunk-WNQCSSLG.mjs";import{a as g}from"../../chunk-BK7UG4U4.mjs";import{b as a}from"../../chunk-YUCUJWBO.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";export{b as Accordion,u as AccordionItem,h as ArrowIcon,e as Button,f as ButtonVariant,c as Carousel,a as Container,v as Flex,w as FlexItem,m as Footer,n as Grid,o as GridItem,p as Header,q as IconLabel,g as Image,i as ImageIcon,r as InlineSVG,d as Link,l as MediaPlaceholder,s as Page,t as Rating,k as Text,x as ThemeSwitcher,y as Video,j as VideoIcon};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { UniformSlot } from '@uniformdev/canvas-next-rsc/component';
|
|
3
|
-
import
|
|
3
|
+
import BaseAccordion from '@/components/ui/Accordion';
|
|
4
4
|
import { AccordionProps } from '.';
|
|
5
5
|
|
|
6
6
|
export const Accordion: FC<AccordionProps> = ({
|
|
@@ -15,13 +15,9 @@ export const Accordion: FC<AccordionProps> = ({
|
|
|
15
15
|
fitHeight,
|
|
16
16
|
height,
|
|
17
17
|
}) => (
|
|
18
|
-
<
|
|
19
|
-
|
|
18
|
+
<BaseAccordion
|
|
19
|
+
accordionContent={<UniformSlot data={component} context={context} slot={slots.accordionContent} />}
|
|
20
|
+
accordionItems={<UniformSlot data={component} context={context} slot={slots.accordionItems} />}
|
|
20
21
|
{...{ backgroundColor, spacing, border, fluidContent, fullHeight, fitHeight, height }}
|
|
21
|
-
|
|
22
|
-
<div className="flex flex-col gap-4 text-start">
|
|
23
|
-
<UniformSlot data={component} context={context} slot={slots.accordionContent} />
|
|
24
|
-
</div>
|
|
25
|
-
<UniformSlot data={component} context={context} slot={slots.accordionItems} />
|
|
26
|
-
</Container>
|
|
22
|
+
/>
|
|
27
23
|
);
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { FC
|
|
3
|
+
import { FC } from 'react';
|
|
4
4
|
import { UniformSlot, UniformText } from '@uniformdev/canvas-next-rsc/component';
|
|
5
|
-
import
|
|
5
|
+
import BaseAccordionItem from '@/components/ui/AccordionItem';
|
|
6
6
|
import BaseText from '@/components/ui/Text';
|
|
7
|
-
import { cn } from '@/utils/styling';
|
|
8
7
|
import { AccordionItemProps } from '.';
|
|
9
|
-
import { IconArrowDown } from './icon-arrow-down';
|
|
10
|
-
import { IconArrowUp } from './icon-arrow-up';
|
|
11
8
|
|
|
12
9
|
export const AccordionItem: FC<AccordionItemProps> = ({
|
|
13
10
|
tag,
|
|
@@ -25,34 +22,24 @@ export const AccordionItem: FC<AccordionItemProps> = ({
|
|
|
25
22
|
backgroundColor,
|
|
26
23
|
spacing,
|
|
27
24
|
className,
|
|
28
|
-
}) =>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})}
|
|
50
|
-
>
|
|
51
|
-
{isOpened ? <IconArrowDown /> : <IconArrowUp />}
|
|
52
|
-
</div>
|
|
53
|
-
</button>
|
|
54
|
-
</Container>
|
|
55
|
-
{isOpened && <UniformSlot data={component} context={context} slot={slots.accordionItemContent} />}
|
|
56
|
-
</Container>
|
|
57
|
-
);
|
|
58
|
-
};
|
|
25
|
+
}) => (
|
|
26
|
+
<BaseAccordionItem
|
|
27
|
+
{...{
|
|
28
|
+
backgroundColor,
|
|
29
|
+
spacing,
|
|
30
|
+
className,
|
|
31
|
+
}}
|
|
32
|
+
text={
|
|
33
|
+
<BaseText {...{ alignment, color, size, font, weight, transform, decoration, letterSpacing }}>
|
|
34
|
+
<UniformText
|
|
35
|
+
placeholder="Text goes here"
|
|
36
|
+
parameterId="text"
|
|
37
|
+
as={tag || undefined}
|
|
38
|
+
component={component}
|
|
39
|
+
context={context}
|
|
40
|
+
/>
|
|
41
|
+
</BaseText>
|
|
42
|
+
}
|
|
43
|
+
accordionItemContent={<UniformSlot data={component} context={context} slot={slots.accordionItemContent} />}
|
|
44
|
+
/>
|
|
45
|
+
);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DefaultTheme } from 'tailwindcss/types/generated/default-theme';
|
|
2
1
|
import { AssetParamValue } from '@uniformdev/assets';
|
|
3
2
|
import { LinkParamValue } from '@uniformdev/canvas';
|
|
4
3
|
import { ComponentProps } from '@uniformdev/canvas-next-rsc/component';
|
|
@@ -10,7 +9,7 @@ export type ButtonParameters = {
|
|
|
10
9
|
text?: string;
|
|
11
10
|
link?: LinkParamValue;
|
|
12
11
|
textColor?: string;
|
|
13
|
-
textWeight?:
|
|
12
|
+
textWeight?: string;
|
|
14
13
|
textFont?: 'uppercase' | 'lowercase' | 'capitalize' | 'normal-case';
|
|
15
14
|
textTransform?: string;
|
|
16
15
|
buttonColor?: string;
|