@uniformdev/csk-components 6.0.120-alpha.1 → 6.0.123-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.
@@ -0,0 +1,2 @@
1
+ import{a as z,b as it}from"./chunk-YEKQJ4YC.mjs";var V=z((xt,Q)=>{"use strict";var T=class{constructor(t){this.value=t,this.next=void 0}},O=class{constructor(){this.clear()}enqueue(t){let e=new T(t);this._head?(this._tail.next=e,this._tail=e):(this._head=e,this._tail=e),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Q.exports=O});var K=z((Et,G)=>{"use strict";var st=V(),at=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new st,e=0,n=()=>{e--,t.size>0&&t.dequeue()()},i=async(c,s,...o)=>{e++;let p=(async()=>c(...o))();s(p);try{await p}catch{}n()},l=(c,s,...o)=>{t.enqueue(i.bind(null,c,s,...o)),(async()=>(await Promise.resolve(),e<r&&t.size>0&&t.dequeue()()))()},a=(c,...s)=>new Promise(o=>{l(c,o,...s)});return Object.defineProperties(a,{activeCount:{get:()=>e},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};G.exports=at});var B=it(K(),1),ot=Object.defineProperty,Y=r=>{throw TypeError(r)},ct=(r,t,e)=>t in r?ot(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,lt=(r,t,e)=>ct(r,typeof t!="symbol"?t+"":t,e),pt=(r,t,e)=>t.has(r)||Y("Cannot "+e),h=(r,t,e)=>(pt(r,t,"read from private field"),e?e.call(r):t.get(r)),f=(r,t,e)=>t.has(r)?Y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e);var ht=(0,B.default)(6),ut=class H extends Error{constructor(t,e,n,i,l,a){super(`${t}
2
+ ${i}${l?" "+l:""} (${e} ${n}${a?` Request ID: ${a}`:""})`),this.errorMessage=t,this.fetchMethod=e,this.fetchUri=n,this.statusCode=i,this.statusText=l,this.requestId=a,Object.setPrototypeOf(this,H.prototype)}},d=class X{constructor(t){lt(this,"options");var e,n,i,l,a;if(!t.apiKey&&!t.bearerToken)throw new Error("You must provide an API key or a bearer token");let c=t.fetch;if(!c)if(typeof window<"u")c=window.fetch.bind(window);else if(typeof fetch<"u")c=fetch;else throw new Error("You must provide or polyfill a fetch implementation when not in a browser");this.options={...t,fetch:c,apiHost:this.ensureApiHost(t.apiHost),apiKey:(e=t.apiKey)!=null?e:null,projectId:(n=t.projectId)!=null?n:null,bearerToken:(i=t.bearerToken)!=null?i:null,limitPolicy:(l=t.limitPolicy)!=null?l:ht,bypassCache:(a=t.bypassCache)!=null?a:!1}}async apiClient(t,e){return(await this.apiClientWithResponse(t,e)).body}async apiClientWithResponse(t,e){return this.options.limitPolicy(async()=>{var n;let i=this.options.apiKey?{"x-api-key":this.options.apiKey}:{Authorization:`Bearer ${this.options.bearerToken}`};this.options.bypassCache&&(i["x-bypass-cache"]="true");let{fetch:l,signal:a}=this.options,s=await dt(()=>l(t.toString(),{...e,signal:a,headers:{...e?.headers,...i}}));if(!s.ok){let o="";try{let p=await s.text();try{let u=JSON.parse(p);u.errorMessage?o=Array.isArray(u.errorMessage)?u.errorMessage.join(", "):u.errorMessage:o=p}catch{o=p}}catch{o="General error"}throw new ut(o,(n=e?.method)!=null?n:"GET",t.toString(),s.status,s.statusText,X.getRequestId(s))}return e?.expectNoContent?{response:s,body:null}:{response:s,body:await s.json()}})}createUrl(t,e,n){let i=new URL(`${n??this.options.apiHost}${t}`);return Object.entries(e??{}).forEach(([l,a])=>{var c;typeof a<"u"&&a!==null&&i.searchParams.append(l,Array.isArray(a)?a.join(","):(c=a?.toString())!=null?c:"")}),i}ensureApiHost(t){if(!t)return"https://uniform.app";if(!t?.startsWith("http"))throw new Error('Your apiHost must start with "http"');if(t.indexOf("/",8)>-1)throw new Error("Your apiHost must not contain a path element after the domain");if(t.indexOf("?")>-1)throw new Error("Your apiHost must not contain a query string");return t?.endsWith("/")&&(t=t.substring(0,t.length-1)),t}static getRequestId(t){let e=t.headers.get("apigw-requestid");if(e)return e}};async function dt(r){var t;let n=5,i;for(;n>0&&(i=await r(),i.status===429);){let l=0;try{let s=i.clone(),o=s.headers.get("date"),p=o?new Date(o).getTime():void 0,u=await s.json(),m=(t=u?.info)==null?void 0:t.reset;typeof p=="number"&&typeof m=="number"&&(l=Math.max(0,Math.min(Math.round(1.1*(m-p)),1e4)))}catch{}let a=Math.pow(2,5-n)*333,c=a+Math.round(Math.random()*(a/2))*(Math.random()>.5?1:-1);await new Promise(s=>setTimeout(s,l+c)),n-=1}return i}var w,ft=class I extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(I,w),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(I,w));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(I,w));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};w=new WeakMap;f(ft,w,"/api/v2/aggregate");var D,yt=class Z extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(Z,D),{...t,projectId:e});return await this.apiClient(n)}};D=new WeakMap;f(yt,D,"/api/v2/dimension");var _,P,tt=class g extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(g,_),{...t,projectId:e});return await this.apiClient(n)}async upsertCategory(t){let e=this.createUrl(h(g,_));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(t){let e=this.createUrl(h(g,_));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async upsertValue(t){let e=this.createUrl(h(g,P));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async removeValue(t){let e=this.createUrl(h(g,P));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};_=new WeakMap;P=new WeakMap;f(tt,_,"/api/v1/enrichments");f(tt,P,"/api/v1/enrichment-values");var R,mt=class et extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(et,R),{...t,projectId:e});return await this.apiClient(n)}async publish(){let{projectId:t}=this.options,e=this.createUrl("/api/v1/publish",{siteId:t});await this.apiClient(e,{method:"POST",expectNoContent:!0})}};R=new WeakMap;f(mt,R,"/api/v2/manifest");var b,vt=class j extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(j,b),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(j,b));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(j,b));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};b=new WeakMap;f(vt,b,"/api/v2/quirk");var U,Ct=class N extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(N,U),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(N,U));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(N,U));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};U=new WeakMap;f(Ct,U,"/api/v2/signal");var x,gt=class S extends d{constructor(t){super(t)}async get(t){let{projectId:e}=this.options,n=this.createUrl(h(S,x),{...t,projectId:e});return await this.apiClient(n)}async upsert(t){let e=this.createUrl(h(S,x));await this.apiClient(e,{method:"PUT",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}async remove(t){let e=this.createUrl(h(S,x));await this.apiClient(e,{method:"DELETE",body:JSON.stringify({...t,projectId:this.options.projectId}),expectNoContent:!0})}};x=new WeakMap;f(gt,x,"/api/v2/test");import{createVariableReference as bt,parseVariableExpression as Ut}from"@uniformdev/canvas";var rt=r=>{throw TypeError(r)},L=(r,t,e)=>t.has(r)||rt("Cannot "+e),A=(r,t,e)=>(L(r,t,"read from private field"),e?e.call(r):t.get(r)),nt=(r,t,e)=>t.has(r)?rt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),wt=(r,t,e,n)=>(L(r,t,"write to private field"),n?n.call(r,e):t.set(r,e),e),E=(r,t,e)=>(L(r,t,"access private method"),e);var Nt=class extends d{constructor(r){super(r),this.getProjectMapDefinitions=async()=>{let{projectId:t}=this.options,e=this.createUrl("/api/v1/project-map",{projectId:t});return await this.apiClient(e)},this.getProjectMapDefinition=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map",{...t,projectId:e});return await this.apiClient(n)},this.upsertProjectMap=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map");return(await this.apiClient(n,{method:"PUT",body:JSON.stringify({...t,projectId:e})})).projectMapId},this.deleteProjectMap=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map");await this.apiClient(n,{method:"DELETE",body:JSON.stringify({...t,projectId:e}),expectNoContent:!0})},this.upsertProjectMapNodes=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(n,{method:"PUT",body:JSON.stringify({...t,projectId:e,nodes:t.nodes.map(i=>({...i,node:{...this.cleanProjectMapNode(i.node)}}))}),expectNoContent:!0})},this.deleteProjectMapNode=async t=>{let{projectId:e}=this.options,n=this.createUrl("/api/v1/project-map-nodes");await this.apiClient(n,{method:"DELETE",body:JSON.stringify({...t,projectId:e}),expectNoContent:!0})},this.getSubtree=async t=>{var e;let n=this.setFetchOptions(t);n.tree="true";let i=this.createUrl("/api/v1/project-map-nodes",n),a={...(await this.apiClient(i)).tree},c=[a];for(;c&&c.length>0;){let s=c.pop(),o;(e=s?.children)==null||e.forEach(p=>{p.parent=k(s),p.previousSibling=k(o),o&&(o.nextSibling=k(p)),o=p,c.push(p)})}return a},this.getNodes=async t=>{let e=this.setFetchOptions(t),n=this.createUrl("/api/v1/project-map-nodes",e);return await this.apiClient(n)}}setFetchOptions(r){let{projectId:t}=this.options,e={projectId:t};return Object.entries(r).forEach(([n,i])=>{if(i!==void 0){if(typeof i=="boolean"){if(!i)return;e[n]="true";return}if(typeof i=="number"){e[n]=i.toString(10);return}e[n]=i}}),e}cleanProjectMapNode(r){var t,e,n;return{id:((n=(e=(t=r.id)==null?void 0:t.match(/^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i))==null?void 0:e.length)!=null?n:0)==1?r.id:void 0,path:r.path,name:r.name,type:r.type,order:r.order,data:r.data,compositionId:r.compositionId,description:r.description,locales:r.locales}}};var k=r=>r?{...r,parent:void 0,children:void 0}:void 0;function _t({editions:r,selectEdition:t,selectId:e,selectEnabledLocales:n,targetLocale:i}){if(!r||!r.length)return;if(!i)return r.find(a=>{let c=t(a);return!c.editionId||c.editionId===e(a)});let l;return r.forEach(a=>{var c,s,o,p;let u=t(a),m=l?t(l):void 0,J=(c=u.editionPriority)!=null?c:0,F=(s=m?.editionPriority)!=null?s:Number.MIN_SAFE_INTEGER;n(a).includes(i)&&(J>F||J===F&&((o=u.editionName)!=null?o:"").localeCompare((p=m?.editionName)!=null?p:"","en",{sensitivity:"base"})<0)&&(l=a)}),l}function St({node:r,targetLocale:t,fallbackWhenLocaleNotMatched:e=!1}){var n;if(!r.compositionData)return;if(!t)return r.compositionData;let i=_t({editions:(n=r.compositionData.editions)!=null?n:[],selectId:l=>{var a;return(a=l.editionId)!=null?a:""},selectEnabledLocales:l=>l.locales,selectEdition:l=>l,targetLocale:t});return!r.compositionData.editions&&r.compositionData.locales.includes(t)||e&&!i?r.compositionData:i}var v,C,W,M,$=class y{constructor(t){this.route=t,nt(this,v);var e;wt(this,v,E(e=y,C,W).call(e,this.route))}get dynamicSegmentCount(){return A(this,v).segments.reduce((t,e)=>{var n;return E(n=y,C,M).call(n,e)?t+1:t},0)}matches(t){var e,n;let{segments:i,queryParams:l}=E(e=y,C,W).call(e,t),{segments:a}=A(this,v);if(i.length!==a.length)return{match:!1};let c={match:!0,dynamicSegmentCount:0,pathParams:{},queryParams:{}};for(let s=0;s<a.length;s++){let o=a[s],p=i[s];if(E(n=y,C,M).call(n,o)){let u=o.slice(1);c.pathParams[u]=p,c.dynamicSegmentCount++}else if(o!==p)return{match:!1}}for(let[s,o]of A(this,v).queryParams)c.queryParams[s]=l.has(s)?l.get(s):o;return c}expand(t){let{dynamicInputValues:e={},allowedQueryParams:n=[],doNotEscapeVariables:i=!1}=t??{},l=A(this,v).segments.map(s=>{let o=y.getDynamicRouteSegmentName(s);if(!o)return s;let p=e[o];return p?q(p,i):s}).join("/"),a=n.filter(s=>{let o=typeof e[s];return o==="string"||o==="number"||o==="boolean"}).map(s=>`${q(s,i)}=${q(e[s],i)}`),c=a.length?`?${a.join("&")}`:"";return`/${l}${c}`}static getDynamicRouteSegmentName(t){var e;if(E(e=y,C,M).call(e,t))return t.slice(y.dynamicSegmentPrefix.length)}};v=new WeakMap;C=new WeakSet;W=function(r){if(!r.startsWith("/")||r==="")throw new Error(`Path must start with a slash: ${r}`);let[t,e]=r.split("?"),n=t.substring(1).split("/");n[n.length-1]===""&&n.pop();let i=new URLSearchParams(e);return{segments:n,queryParams:i}};M=function(r){return r?r.startsWith($.dynamicSegmentPrefix):!1};nt($,C);$.dynamicSegmentPrefix=":";function q(r,t){if(!t)return encodeURIComponent(r);let e=[];return Ut(r.toString(10),(n,i)=>{i==="variable"?e.push(bt(n)):e.push(encodeURIComponent(n))}),e.join("")}export{Nt as a,St as b};
@@ -1 +1 @@
1
- import{a as be,c as Ne,e as we,f as Fe,g as Ee,h as Ae,i as O}from"./chunk-EOV2LPGC.mjs";import{a as Te}from"./chunk-WAW7PQYM.mjs";import{a as Z}from"./chunk-BK7UG4U4.mjs";import{a as c}from"./chunk-7GVG4HLE.mjs";import{a as Q}from"./chunk-2YTACEBA.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as Re}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as He}from"@uniformdev/canvas-next-rsc/component";import{jsx as j}from"react/jsx-runtime";var ho=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>j(be,{accordionContent:j(He,{data:o,context:t,slot:e.accordionContent}),accordionItems:j(He,{data:o,context:t,slot:e.accordionItems}),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s});import{jsx as Le}from"react/jsx-runtime";var Ro=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Le("div",{className:"h-20"})};case"accordionItems":return{component:()=>Le("div",{className:"h-28"})};default:return l}};var Ie=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(Ie||{});import{UniformSlot as Se}from"@uniformdev/canvas-next-rsc/component";import{jsx as No}from"react/jsx-runtime";var bo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>No("div",{className:"h-20"})};default:return l}};var Ve=(o=>(o.BackgroundImage="backgroundImage",o))(Ve||{}),Be=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(Be||{});import{jsx as k,jsxs as wo}from"react/jsx-runtime";var To=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,className:m,contentClassName:d})=>{let f=e.variant==="backgroundImage";return wo(c,{className:p("relative overflow-hidden",m),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,children:[k("div",{className:p({"inset-0 size-full absolute":f}),children:k(Se,{data:e,context:o,slot:t.cardMedia})}),k("div",{className:p("relative flex flex-col gap-y-2",d),children:k(Se,{data:e,context:o,slot:t.cardContent})})]})};import Ao from"next/dynamic";import{jsx as Eo}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>Eo("div",{className:"mx-20 h-20 w-full"})};default:return l}};var De=(o=>(o.Items="carouselItems",o))(De||{}),Or=Ao(()=>import("./carousel-YELQRJVB.mjs").then(e=>e.Carousel));import{UniformSlot as qe}from"@uniformdev/canvas-next-rsc/component";import{imageFrom as Ho}from"@uniformdev/assets";import{UniformText as Oe}from"@uniformdev/canvas-next-rsc/component";import{jsx as g}from"react/jsx-runtime";var M=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:g(Te,{...a,children:g(Oe,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},ke=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=Re(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:g(Ne,{...a,href:s,icon:g(()=>{let[f]=Q(n),{url:u,title:h=""}=f||{};return u?g(Z,{src:u,alt:h,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:g(Oe,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Me=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,priority:f,unoptimized:u,fill:h})=>{let[C]=Q(t);if(!C){let X=o.previewMode==="editor"&&o.isContextualEditing,J=e?._id?.includes("placeholder_");return!X||J||!e.variant?null:g("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:g(we,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:$,title:V=""}=C,S=a||C.width,D=i||C.height;if(!h&&(!S||!D))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),g("img",{src:C.url,alt:V});let q=Ho(C?.url).transform({width:a,height:i,fit:r,focal:$}).url();return g(Z,{src:q,alt:V,unoptimized:u,priority:f,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,...h?{fill:!0}:{width:S,height:D}})};import{jsx as T,jsxs as _e}from"react/jsx-runtime";var Ue=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:_e("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),_e("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:s}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:m})]})]})});import{jsx as te,jsxs as ze}from"react/jsx-runtime";var We=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>ze(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[te("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),ze(c,{className:"relative flex flex-col gap-8",children:[te("div",{className:p("flex flex-col gap-4",m),children:n}),te("div",{className:p("flex flex-wrap gap-2 items-center",d),children:s})]})]});var Ye=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Ke=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var R=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});var $e=e=>{let o=e?608:void 0;return{imageFill:!e,...o?{imageWidth:o,imageHeight:o}:{}}};import{Fragment as oe,jsx as P,jsxs as Lo}from"react/jsx-runtime";var _=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J,descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t,primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to,image:oo,imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo,contentAlignment:Ce,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,isFlexibleHero:xe=!1,component:x,context:v,slots:ve})=>{let ye=x.variant,vo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroContent}):Lo(oe,{children:[P(M,{...R({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:x,context:v,parameterId:"eyebrowTitleText"}),P(M,{...R({titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J},"title"),component:x,context:v,parameterId:"titleText"}),P(M,{...R({descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t},"description"),component:x,context:v,parameterId:"descriptionText"})]}),yo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroCta}):P(oe,{children:P(ke,{...R({primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to},"primaryButton"),component:x,context:v,parameterId:"primaryButtonText"})}),he={variant:ye,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,textAlignmentClass:Ke({contentAlignment:Ce}),buttonAlignmentClass:Ye({contentAlignment:Ce}),demoHeroMedia:P(oe,{children:P(Me,{image:oo,...R({imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo},"image"),component:x,context:v})}),demoHeroContent:vo,demoHeroCTA:yo};switch(ye){case"columns":case"columnsReverse":return P(Ue,{...he});default:return P(We,{...he})}};import{jsx as Io}from"react/jsx-runtime";var Xe=({textColor:e,overlayAutoTint:o,...t})=>Io(_,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||t.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"4xl",desktop:"4xl"},titleWeight:"bold",titleColor:e||t.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||t.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!t.component.variant&&o?e:void 0,imageOverlayOpacity:o,...$e(!!t.component.variant),spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Bo}from"react/jsx-runtime";var Je=e=>Bo(_,{...e,isFlexibleHero:!0});import{jsx as Qe}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Qe("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Qe("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Ge=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Ge||{}),ee=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ee||{}),Ze=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ze||{}),So={FixedHero:Xe,FlexibleHero:Je},Oa=So;import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var je=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>U(Fe,{logo:U(re,{context:e,slot:t.footerLogo,data:o}),copyright:U(re,{context:e,slot:t.footerCopyright,data:o}),content:U(re,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ae}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ae("div",{className:"h-20 w-48"})};default:return l}};var et=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))(et||{}),Xa=je;import{UniformSlot as ie}from"@uniformdev/canvas-next-rsc/component";import{jsx as z}from"react/jsx-runtime";var tt=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>z(Ee,{sticky:i.variant==="sticky",leftSection:z(ie,{context:a,slot:n.headerLeftContent,data:i}),rightSection:z(ie,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:z(ie,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as ne}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>ne("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>ne("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>ne("div",{className:"h-20 w-48"})};default:return l}};var rt=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(rt||{}),ot=(o=>(o.Sticky="sticky",o))(ot||{}),li=tt;import _o from"next/dynamic";import{jsx as Mo}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Mo("div",{className:" mx-auto size-48"})};default:return l}};var at=(o=>(o.Items="imageGalleryItems",o))(at||{}),Ci=_o(()=>import("./image-gallery-AMU6FS7N.mjs").then(e=>e.ImageGallery));import Wo from"next/dynamic";import{jsx as zo}from"react/jsx-runtime";var Uo=e=>{switch(e.slotName){case"trigger":return{component:()=>zo("div",{className:"h-20 w-full"})};default:return l}};var it=(r=>(r.Trigger="trigger",r.ModalContent="modalContent",r.ModalActions="modalActions",r))(it||{}),Ti=Wo(()=>import("./modal-43IHAVWB.mjs").then(e=>e.Modal));import Ko from"next/dynamic";import{jsx as nt}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>nt("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>nt("div",{className:"h-40 w-48"})};default:return l}};var Vi=Ko(()=>import("./navigation-flyout-NAU6O2WG.mjs").then(e=>e.NavigationFlyout));import qo from"next/dynamic";import{jsx as $o}from"react/jsx-runtime";var Go=e=>{switch(e.slotName){case"links":return{component:()=>$o("div",{className:"h-40 w-48"})};default:return l}};var Wi=qo(()=>import("./navigation-group-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 Xo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>W(Ae,{backgroundColor:r,header:W(se,{context:t,slot:e.pageHeader,data:o,children:a}),footer:W(se,{context:t,slot:e.pageFooter,data:o,children:n}),children:W(se,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as me}from"react/jsx-runtime";var Jo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>me("div",{className:"h-40"})};case"pageContent":return{component:()=>me("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>me("div",{className:"h-40"})};default:return l}};var st=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(st||{});import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as w}from"react/jsx-runtime";var Qo=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?w("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};default:return l}};var le=(o=>(o.MultiColumn="multiColumn",o))(le||{}),mt=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(mt||{});import{jsx as F,jsxs as lt}from"react/jsx-runtime";var pt=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>F(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:lt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[F("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),lt("div",{className:"ml-6",children:[f,F("div",{className:"py-4",children:F(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),F("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as b,jsxs as dt}from"react/jsx-runtime";var ct=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>b(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:dt("div",{className:"grid md:grid-cols-12",children:[dt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[b("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),b("div",{className:"flex flex-col gap-y-1",children:f})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),b("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as E}from"react/jsx-runtime";var Zo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:E(pe,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:E(pe,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:E(pe,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return E(ct,{...i});default:return E(pt,{...i})}};import{UniformSlot as Pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as de}from"react/jsx-runtime";var jo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:de("div",{className:"size-full"})};case"sectionContent":return{component:()=>de("div",{className:"h-20"})};case"sectionCTA":return{component:()=>de("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Pt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Pt||{}),ce=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ce||{}),ft=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(ft||{});import{jsx as A,jsxs as ut}from"react/jsx-runtime";var gt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>A(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:ut("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[A("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:A("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),ut("div",{className:"flex flex-col justify-center gap-8",children:[A("div",{className:p("flex flex-col gap-4",d),children:s}),A("div",{className:p("flex flex-wrap gap-2",f),children:m})]})]})});import{jsx as fe,jsxs as Ct}from"react/jsx-runtime";var xt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,sectionMedia:i,sectionContent:n,sectionCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>Ct(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[fe("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Ct(c,{className:"relative flex flex-col gap-8",children:[fe("div",{className:p("flex flex-col gap-4",m),children:n}),fe("div",{className:p("flex flex-wrap gap-2",d),children:s})]})]});var vt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),yt=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as H}from"react/jsx-runtime";var er=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>{let d=t.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,textAlignmentClass:yt({contentAlignment:e}),buttonAlignmentClass:vt({contentAlignment:e}),sectionMedia:H(Pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:H(Pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:H(Pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return H(gt,{...f});default:return H(xt,{...f})}};import{UniformSlot as Rt}from"@uniformdev/canvas-next-rsc/component";var ht=({size:e,textColor:o})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as or}from"react/jsx-runtime";var tr=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d,children:N("div",{className:"overflow-x-auto",children:or("table",{className:ht({size:e,textColor:o}),children:[N("thead",{children:N(Rt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Rt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as bt}from"react/jsx-runtime";var rr=e=>{switch(e.slotName){case"tableHead":return{component:()=>bt("tr",{className:"h-20"})};case"tableBody":return{component:()=>bt("tr",{className:"h-40"})};default:return l}};var Nt=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Nt||{});import{UniformSlot as G}from"@uniformdev/canvas-next-rsc/component";import{jsx as Y}from"react/jsx-runtime";var ar=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>Y("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>Y("div",{className:"h-20 w-64"})};default:return l}};var wt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(wt||{}),Tt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Tt||{});import{jsx as L,jsxs as nr}from"react/jsx-runtime";var Ft=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:nr("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[L("div",{children:r}),L("div",{className:"my-8",children:o}),L("div",{className:"size-10 rounded-full",children:e}),L("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as I,jsxs as K}from"react/jsx-runtime";var Et=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>I(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:K("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[I("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),K("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),K("div",{className:"flex items-center justify-between",children:[K("div",{className:"flex items-center gap-x-4",children:[I("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),I("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as B,jsxs as ue}from"react/jsx-runtime";var At=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:B(c,{className:"pb-10 lg:pb-0",children:ue("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[B("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),ue("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),ue("div",{className:"flex items-center justify-between",children:[B("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var ir=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>{let m=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,testimonialPrimaryImage:y(G,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:y(G,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:y(G,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:y(G,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(m){case"withLargeAvatar":return y(Et,{...d});case"withOverlappingImage":return y(At,{...d});default:return y(Ft,{...d})}};export{ho as a,Ie as b,Ro as c,To as d,Ve as e,Be as f,bo as g,De as h,Or as i,Fo as j,Ge as k,ee as l,Ze as m,Oa as n,Vo as o,et as p,Xa as q,Do as r,rt as s,ot as t,li as u,Oo as v,at as w,Ci as x,ko as y,it as z,Ti as A,Uo as B,Vi as C,Yo as D,Wi as E,Go as F,Xo as G,st as H,Jo as I,Zo as J,le as K,mt as L,Qo as M,er as N,Pt as O,ce as P,ft as Q,jo as R,tr as S,Nt as T,rr as U,ir as V,wt as W,Tt as X,ar as Y};
1
+ import{a as be,c as Ne,e as we,f as Fe,g as Ee,h as Ae,i as O}from"./chunk-EOV2LPGC.mjs";import{a as Z}from"./chunk-BK7UG4U4.mjs";import{a as Te}from"./chunk-WAW7PQYM.mjs";import{a as c}from"./chunk-7GVG4HLE.mjs";import{a as Q}from"./chunk-2YTACEBA.mjs";import{a as l}from"./chunk-MSXDLSXH.mjs";import{c as Re}from"./chunk-RX4IAAQQ.mjs";import{c as p}from"./chunk-S7CSCIW4.mjs";import{UniformSlot as He}from"@uniformdev/canvas-next-rsc/component";import{jsx as j}from"react/jsx-runtime";var ho=({slots:e,component:o,context:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>j(be,{accordionContent:j(He,{data:o,context:t,slot:e.accordionContent}),accordionItems:j(He,{data:o,context:t,slot:e.accordionItems}),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s});import{jsx as Le}from"react/jsx-runtime";var Ro=e=>{switch(e.slotName){case"accordionContent":return{component:()=>Le("div",{className:"h-20"})};case"accordionItems":return{component:()=>Le("div",{className:"h-28"})};default:return l}};var Ie=(t=>(t.AccordionContent="accordionContent",t.AccordionItems="accordionItems",t))(Ie||{});import{UniformSlot as Se}from"@uniformdev/canvas-next-rsc/component";import{jsx as No}from"react/jsx-runtime";var bo=e=>{switch(e.slotName){case"cardMedia":return{component:()=>null};case"cardContent":return{component:()=>No("div",{className:"h-20"})};default:return l}};var Ve=(o=>(o.BackgroundImage="backgroundImage",o))(Ve||{}),Be=(t=>(t.CardMedia="cardMedia",t.CardContent="cardContent",t))(Be||{});import{jsx as k,jsxs as wo}from"react/jsx-runtime";var To=({component:e,context:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,className:m,contentClassName:d})=>{let f=e.variant==="backgroundImage";return wo(c,{className:p("relative overflow-hidden",m),backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,children:[k("div",{className:p({"inset-0 size-full absolute":f}),children:k(Se,{data:e,context:o,slot:t.cardMedia})}),k("div",{className:p("relative flex flex-col gap-y-2",d),children:k(Se,{data:e,context:o,slot:t.cardContent})})]})};import Ao from"next/dynamic";import{jsx as Eo}from"react/jsx-runtime";var Fo=e=>{switch(e.slotName){case"carouselItems":return{component:()=>Eo("div",{className:"mx-20 h-20 w-full"})};default:return l}};var De=(o=>(o.Items="carouselItems",o))(De||{}),Or=Ao(()=>import("./carousel-YELQRJVB.mjs").then(e=>e.Carousel));import{UniformSlot as qe}from"@uniformdev/canvas-next-rsc/component";import{imageFrom as Ho}from"@uniformdev/assets";import{UniformText as Oe}from"@uniformdev/canvas-next-rsc/component";import{jsx as g}from"react/jsx-runtime";var M=({component:e,context:o,parameterId:t,text:r,...a})=>{let i=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!i?null:g(Te,{...a,children:g(Oe,{placeholder:"Text goes here",parameterId:t,as:a.tag||void 0,component:e,context:o})})},ke=({component:e,context:o,parameterId:t,text:r,...a})=>{let{link:i,icon:n}=a,s=Re(i),m=o.previewMode==="editor"&&o.isContextualEditing;return!r&&!s&&!m?null:g(Ne,{...a,href:s,icon:g(()=>{let[f]=Q(n),{url:u,title:h=""}=f||{};return u?g(Z,{src:u,alt:h,width:20,height:20,containerStyle:{width:"20px",height:"20px"}}):void 0},{}),children:g(Oe,{placeholder:"Button text goes here",parameterId:t,component:e,context:o})})},Me=({component:e,context:o,image:t,objectFit:r,width:a,height:i,overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,priority:f,unoptimized:u,fill:h})=>{let[C]=Q(t);if(!C){let X=o.previewMode==="editor"&&o.isContextualEditing,J=e?._id?.includes("placeholder_");return!X||J||!e.variant?null:g("div",{style:{width:a?`${a}px`:"auto",height:i?`${i}px`:"auto"},children:g(we,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:$,title:V=""}=C,S=a||C.width,D=i||C.height;if(!h&&(!S||!D))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),g("img",{src:C.url,alt:V});let q=Ho(C?.url).transform({width:a,height:i,fit:r,focal:$}).url();return g(Z,{src:q,alt:V,unoptimized:u,priority:f,sizes:"100%",style:{objectFit:r},overlayColor:n,contrastBaseColor:s,overlayOpacity:m,border:d,...h?{fill:!0}:{width:S,height:D}})};import{jsx as T,jsxs as _e}from"react/jsx-runtime";var Ue=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,demoHeroMedia:n,demoHeroContent:s,demoHeroCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>T(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:_e("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[T("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:T("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),_e("div",{className:"flex flex-col justify-center gap-8",children:[T("div",{className:p("flex flex-col gap-4",d),children:s}),T("div",{className:p("flex flex-wrap gap-2 items-center",f),children:m})]})]})});import{jsx as te,jsxs as ze}from"react/jsx-runtime";var We=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,demoHeroMedia:i,demoHeroContent:n,demoHeroCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>ze(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[te("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),ze(c,{className:"relative flex flex-col gap-8",children:[te("div",{className:p("flex flex-col gap-4",m),children:n}),te("div",{className:p("flex flex-wrap gap-2 items-center",d),children:s})]})]});var Ye=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),Ke=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});var R=(e,o)=>Object.entries(e).reduce((t,[r,a])=>{if(r.startsWith(o)){let i=r.slice(o.length).replace(/^./,n=>n.toLowerCase());return{...t,[i]:a}}return{...t,[r]:a}},{});var $e=e=>{let o=e?608:void 0;return{imageFill:!e,...o?{imageWidth:o,imageHeight:o}:{}}};import{Fragment as oe,jsx as P,jsxs as Lo}from"react/jsx-runtime";var _=({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f,titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J,descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t,primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to,image:oo,imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo,contentAlignment:Ce,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,isFlexibleHero:xe=!1,component:x,context:v,slots:ve})=>{let ye=x.variant,vo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroContent}):Lo(oe,{children:[P(M,{...R({eyebrowTitleText:e,eyebrowTitleTag:o,eyebrowTitleSize:t,eyebrowTitleColor:r,eyebrowTitleWeight:a,eyebrowTitleFont:i,eyebrowTitleAlignment:n,eyebrowTitleTransform:s,eyebrowTitleDecoration:m,eyebrowTitleLetterSpacing:d,eyebrowTitleLineCountRestrictions:f},"eyebrowTitle"),component:x,context:v,parameterId:"eyebrowTitleText"}),P(M,{...R({titleText:u,titleTag:h,titleSize:C,titleColor:$,titleWeight:V,titleFont:S,titleAlignment:D,titleTransform:q,titleDecoration:ge,titleLetterSpacing:X,titleLineCountRestrictions:J},"title"),component:x,context:v,parameterId:"titleText"}),P(M,{...R({descriptionText:Ht,descriptionTag:Lt,descriptionSize:It,descriptionColor:Bt,descriptionWeight:Vt,descriptionFont:St,descriptionAlignment:Dt,descriptionTransform:Ot,descriptionDecoration:kt,descriptionLetterSpacing:Mt,descriptionLineCountRestrictions:_t},"description"),component:x,context:v,parameterId:"descriptionText"})]}),yo=xe?P(qe,{data:x,context:v,slot:ve.flexibleHeroCta}):P(oe,{children:P(ke,{...R({primaryButtonVariant:Ut,primaryButtonText:zt,primaryButtonLink:Wt,primaryButtonTextColor:Yt,primaryButtonTextWeight:Kt,primaryButtonTextFont:Gt,primaryButtonTextTransform:$t,primaryButtonButtonColor:qt,primaryButtonBorder:Xt,primaryButtonSize:Jt,primaryButtonIcon:Qt,primaryButtonTextSize:Zt,primaryButtonIconPosition:jt,primaryButtonHoverButtonColor:eo,primaryButtonHoverTextColor:to},"primaryButton"),component:x,context:v,parameterId:"primaryButtonText"})}),he={variant:ye,backgroundColor:Po,spacing:uo,border:go,fluidContent:Co,height:xo,textAlignmentClass:Ke({contentAlignment:Ce}),buttonAlignmentClass:Ye({contentAlignment:Ce}),demoHeroMedia:P(oe,{children:P(Me,{image:oo,...R({imageWidth:ro,imageHeight:ao,imageObjectFit:io,imageOverlayColor:no,imageContrastBaseColor:so,imageOverlayOpacity:mo,imageBorder:lo,imagePriority:po,imageUnoptimized:co,imageFill:fo},"image"),component:x,context:v})}),demoHeroContent:vo,demoHeroCTA:yo};switch(ye){case"columns":case"columnsReverse":return P(Ue,{...he});default:return P(We,{...he})}};import{jsx as Io}from"react/jsx-runtime";var Xe=({textColor:e,overlayAutoTint:o,...t})=>Io(_,{...t,eyebrowTitleTag:"span",eyebrowTitleSize:{mobile:"xs",tablet:"lg",desktop:"xl"},eyebrowTitleWeight:"bold",eyebrowTitleTransform:"uppercase",eyebrowTitleColor:e||t.eyebrowTitleColor,titleSize:{mobile:"3xl",tablet:"4xl",desktop:"4xl"},titleWeight:"bold",titleColor:e||t.titleColor,descriptionTag:"p",descriptionSize:{mobile:"sm",tablet:"lg",desktop:"xl"},descriptionWeight:"normal",descriptionColor:e||t.descriptionColor,primaryButtonSize:"button-medium",primaryButtonTextSize:"sm",primaryButtonTextWeight:"normal",primaryButtonButtonColor:"button-primary",primaryButtonTextTransform:"uppercase",primaryButtonHoverButtonColor:"button-primary-hover",imagePriority:!0,imageObjectFit:"cover",imageUnoptimized:!0,imageContrastBaseColor:!t.component.variant&&o?e:void 0,imageOverlayOpacity:o,...$e(!!t.component.variant),spacing:{paddingTop:"container-xlarge",paddingLeft:"container-small",paddingRight:"container-small",paddingBottom:"container-xlarge"},fluidContent:!t.component.variant,isFlexibleHero:!1});import{jsx as Bo}from"react/jsx-runtime";var Je=e=>Bo(_,{...e,isFlexibleHero:!0});import{jsx as Qe}from"react/jsx-runtime";var Vo=e=>{switch(e.slotName){case"flexibleHeroContent":return{component:()=>Qe("div",{className:"h-20"})};case"flexibleHeroCta":return{component:()=>Qe("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Ge=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Ge||{}),ee=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ee||{}),Ze=(t=>(t.FlexibleHeroContent="flexibleHeroContent",t.FlexibleHeroCta="flexibleHeroCta",t))(Ze||{}),So={FixedHero:Xe,FlexibleHero:Je},Oa=So;import{UniformSlot as re}from"@uniformdev/canvas-next-rsc/component";import{jsx as U}from"react/jsx-runtime";var je=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n})=>U(Fe,{logo:U(re,{context:e,slot:t.footerLogo,data:o}),copyright:U(re,{context:e,slot:t.footerCopyright,data:o}),content:U(re,{context:e,slot:t.footerContent,data:o}),backgroundColor:r,spacing:a,border:i,fluidContent:n});import{jsx as ae}from"react/jsx-runtime";var Do=e=>{switch(e.slotName){case"footerLogo":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerCopyright":return{component:()=>ae("div",{className:"h-20 w-48"})};case"footerContent":return{component:()=>ae("div",{className:"h-20 w-48"})};default:return l}};var et=(r=>(r.FooterLogo="footerLogo",r.FooterCopyright="footerCopyright",r.FooterContent="footerContent",r))(et||{}),Xa=je;import{UniformSlot as ie}from"@uniformdev/canvas-next-rsc/component";import{jsx as z}from"react/jsx-runtime";var tt=({backgroundColor:e,color:o,spacing:t,border:r,context:a,component:i,slots:n})=>z(Ee,{sticky:i.variant==="sticky",leftSection:z(ie,{context:a,slot:n.headerLeftContent,data:i}),rightSection:z(ie,{context:a,slot:n.headerRightContent,data:i}),backgroundColor:e,color:o,spacing:t,border:r,children:z(ie,{context:a,slot:n.headerCenterContent,data:i})});import{jsx as ne}from"react/jsx-runtime";var Oo=e=>{switch(e.slotName){case"headerLeftContent":return{component:()=>ne("div",{className:"h-20 w-48"})};case"headerCenterContent":return{component:()=>ne("div",{className:"h-20 w-full"})};case"headerRightContent":return{component:()=>ne("div",{className:"h-20 w-48"})};default:return l}};var rt=(r=>(r.HeaderLeftContent="headerLeftContent",r.HeaderCenterContent="headerCenterContent",r.HeaderRightContent="headerRightContent",r))(rt||{}),ot=(o=>(o.Sticky="sticky",o))(ot||{}),li=tt;import _o from"next/dynamic";import{jsx as Mo}from"react/jsx-runtime";var ko=e=>{switch(e.slotName){case"imageGalleryItems":return{component:()=>Mo("div",{className:" mx-auto size-48"})};default:return l}};var at=(o=>(o.Items="imageGalleryItems",o))(at||{}),Ci=_o(()=>import("./image-gallery-AMU6FS7N.mjs").then(e=>e.ImageGallery));import Wo from"next/dynamic";import{jsx as zo}from"react/jsx-runtime";var Uo=e=>{switch(e.slotName){case"trigger":return{component:()=>zo("div",{className:"h-20 w-full"})};default:return l}};var it=(r=>(r.Trigger="trigger",r.ModalContent="modalContent",r.ModalActions="modalActions",r))(it||{}),Ti=Wo(()=>import("./modal-43IHAVWB.mjs").then(e=>e.Modal));import Ko from"next/dynamic";import{jsx as nt}from"react/jsx-runtime";var Yo=e=>{switch(e.slotName){case"navigationFlyoutLeftContent":return{component:()=>nt("div",{className:"h-40 w-48"})};case"navigationFlyoutRightContent":return{component:()=>nt("div",{className:"h-40 w-48"})};default:return l}};var Vi=Ko(()=>import("./navigation-flyout-EPIOXRWJ.mjs").then(e=>e.NavigationFlyout));import qo from"next/dynamic";import{jsx as $o}from"react/jsx-runtime";var Go=e=>{switch(e.slotName){case"links":return{component:()=>$o("div",{className:"h-40 w-48"})};default:return l}};var Wi=qo(()=>import("./navigation-group-OCZ35QI2.mjs").then(e=>e.NavigationGroup));import{UniformSlot as se}from"@uniformdev/canvas-next-rsc/component";import{jsx as W}from"react/jsx-runtime";var Xo=({slots:e,component:o,context:t,backgroundColor:r,headerCustomRenderer:a,contentCustomRenderer:i,footerCustomRenderer:n})=>W(Ae,{backgroundColor:r,header:W(se,{context:t,slot:e.pageHeader,data:o,children:a}),footer:W(se,{context:t,slot:e.pageFooter,data:o,children:n}),children:W(se,{context:t,slot:e.pageContent,data:o,children:i})});import{jsx as me}from"react/jsx-runtime";var Jo=e=>{switch(e.slotName){case"pageHeader":return{component:()=>me("div",{className:"h-40"})};case"pageContent":return{component:()=>me("div",{className:"h-[calc(100vh-10rem*2)]"})};case"pageFooter":return{component:()=>me("div",{className:"h-40"})};default:return l}};var st=(r=>(r.PageContent="pageContent",r.PageHeader="pageHeader",r.PageFooter="pageFooter",r))(st||{});import{UniformSlot as pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as w}from"react/jsx-runtime";var Qo=({parentComponent:e,slotName:o})=>{let t=e?.variant==="multiColumn";switch(o){case"reviewImage":return{component:()=>t?w("div",{className:"size-full"}):null};case"reviewPersonInfo":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};case"reviewContent":return{component:()=>t?w("div",{className:"h-20 w-full"}):w("div",{className:"h-20 w-52"})};default:return l}};var le=(o=>(o.MultiColumn="multiColumn",o))(le||{}),mt=(r=>(r.ReviewImage="reviewImage",r.ReviewPersonInfo="reviewPersonInfo",r.ReviewContent="reviewContent",r))(mt||{});import{jsx as F,jsxs as lt}from"react/jsx-runtime";var pt=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>F(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:lt("div",{className:"mx-auto flex lg:max-w-[60%]",children:[F("div",{className:"aspect-square size-12 shrink-0 rounded-full",children:d}),lt("div",{className:"ml-6",children:[f,F("div",{className:"py-4",children:F(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),F("div",{className:"flex flex-col gap-y-5",children:u})]})]})});import{jsx as b,jsxs as dt}from"react/jsx-runtime";var ct=({stars:e,starsColor:o,activeStarsColor:t,showRatingLabel:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,ReviewImage:d,ReviewPersonInfo:f,ReviewContent:u})=>b(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:dt("div",{className:"grid md:grid-cols-12",children:[dt("div",{className:"mb-2 md:col-span-4 md:my-0",children:[b("div",{className:"mb-2 aspect-square size-12 rounded-full",children:d}),b("div",{className:"flex flex-col gap-y-1",children:f})]}),b("div",{className:"my-2 md:col-span-4 md:my-0",children:b(O,{rating:e,showReviewLabel:r,starsColor:o,activeStarsColor:t})}),b("div",{className:"mt-2 flex flex-col gap-y-3 md:col-span-4 md:my-0",children:u})]})});import{jsx as E}from"react/jsx-runtime";var Zo=e=>{let{component:o,context:t,slots:r}=e,a=o.variant,i={...e,ReviewImage:E(pe,{context:t,data:o,slot:r.reviewImage}),ReviewPersonInfo:E(pe,{context:t,data:o,slot:r.reviewPersonInfo}),ReviewContent:E(pe,{context:t,data:o,slot:r.reviewContent})};switch(a){case"multiColumn":return E(ct,{...i});default:return E(pt,{...i})}};import{UniformSlot as Pe}from"@uniformdev/canvas-next-rsc/component";import{jsx as de}from"react/jsx-runtime";var jo=({parentComponent:e,slotName:o})=>{let t=!e?.variant;switch(o){case"sectionMedia":return{component:()=>t?null:de("div",{className:"size-full"})};case"sectionContent":return{component:()=>de("div",{className:"h-20"})};case"sectionCTA":return{component:()=>de("div",{className:"mx-40 h-20 w-full"})};default:return l}};var Pt=(r=>(r.Left="left",r.Center="center",r.Right="right",r))(Pt||{}),ce=(t=>(t.Columns="columns",t.ColumnsReverse="columnsReverse",t))(ce||{}),ft=(r=>(r.SectionContent="sectionContent",r.SectionMedia="sectionMedia",r.SectionCTA="sectionCTA",r))(ft||{});import{jsx as A,jsxs as ut}from"react/jsx-runtime";var gt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,variant:i,sectionMedia:n,sectionContent:s,sectionCTA:m,textAlignmentClass:d,buttonAlignmentClass:f})=>A(c,{backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:ut("div",{className:p("grid grid-cols-1 items-center gap-4 px-4 lg:grid-cols-2 xl:px-0"),children:[A("div",{className:p("aspect-square",{"order-last":i==="columnsReverse"}),children:A("div",{className:"flex size-full items-center justify-center overflow-hidden",children:n})}),ut("div",{className:"flex flex-col justify-center gap-8",children:[A("div",{className:p("flex flex-col gap-4",d),children:s}),A("div",{className:p("flex flex-wrap gap-2",f),children:m})]})]})});import{jsx as fe,jsxs as Ct}from"react/jsx-runtime";var xt=({backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,sectionMedia:i,sectionContent:n,sectionCTA:s,textAlignmentClass:m,buttonAlignmentClass:d})=>Ct(c,{className:"relative overflow-hidden",backgroundColor:e,spacing:o,border:t,fluidContent:r,height:a,children:[fe("div",{className:"absolute left-0 top-0 size-full overflow-hidden",children:i}),Ct(c,{className:"relative flex flex-col gap-8",children:[fe("div",{className:p("flex flex-col gap-4",m),children:n}),fe("div",{className:p("flex flex-wrap gap-2",d),children:s})]})]});var vt=({contentAlignment:e})=>p("justify-center",{"!justify-start":e==="left","!justify-end":e==="right"}),yt=({contentAlignment:e})=>p("text-center",{"text-start":e==="left","text-end":e==="right"});import{jsx as H}from"react/jsx-runtime";var er=({contentAlignment:e,slots:o,component:t,context:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>{let d=t.variant,f={variant:d,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,textAlignmentClass:yt({contentAlignment:e}),buttonAlignmentClass:vt({contentAlignment:e}),sectionMedia:H(Pe,{data:t,context:r,slot:o.sectionMedia}),sectionContent:H(Pe,{data:t,context:r,slot:o.sectionContent}),sectionCTA:H(Pe,{data:t,context:r,slot:o.sectionCTA})};switch(d){case"columns":case"columnsReverse":return H(gt,{...f});default:return H(xt,{...f})}};import{UniformSlot as Rt}from"@uniformdev/canvas-next-rsc/component";var ht=({size:e,textColor:o})=>p("text-left w-full [&_tr:not(:last-child)_td]:border-b [&_th]:border-b",{[`text-${o}`]:o,[`[&_td]:p-${e} [&_th]:p-${e}`]:e});import{jsx as N,jsxs as or}from"react/jsx-runtime";var tr=({size:e,textColor:o,slots:t,component:r,context:a,backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d})=>N(c,{className:"flex flex-col gap-5",backgroundColor:i,spacing:n,border:s,fluidContent:m,height:d,children:N("div",{className:"overflow-x-auto",children:or("table",{className:ht({size:e,textColor:o}),children:[N("thead",{children:N(Rt,{slot:t.tableHead,context:a,data:r})}),N("tbody",{children:N(Rt,{slot:t.tableBody,context:a,data:r})})]})})});import{jsx as bt}from"react/jsx-runtime";var rr=e=>{switch(e.slotName){case"tableHead":return{component:()=>bt("tr",{className:"h-20"})};case"tableBody":return{component:()=>bt("tr",{className:"h-40"})};default:return l}};var Nt=(t=>(t.TableHead="tableHead",t.TableBody="tableBody",t))(Nt||{});import{UniformSlot as G}from"@uniformdev/canvas-next-rsc/component";import{jsx as Y}from"react/jsx-runtime";var ar=({slotName:e})=>{switch(e){case"testimonialSecondaryImage":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialContent":return{component:()=>Y("div",{className:"h-20 w-64"})};case"testimonialPrimaryImage":return{component:()=>Y("div",{className:"size-full"})};case"testimonialAuthor":return{component:()=>Y("div",{className:"h-20 w-64"})};default:return l}};var wt=(t=>(t.WithLargeAvatar="withLargeAvatar",t.WithOverlappingImage="withOverlappingImage",t))(wt||{}),Tt=(a=>(a.TestimonialSecondaryImage="testimonialSecondaryImage",a.TestimonialContent="testimonialContent",a.TestimonialPrimaryImage="testimonialPrimaryImage",a.TestimonialAuthor="testimonialAuthor",a))(Tt||{});import{jsx as L,jsxs as nr}from"react/jsx-runtime";var Ft=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>L(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:nr("div",{className:"mx-auto flex flex-col items-center md:max-w-[80%]",children:[L("div",{children:r}),L("div",{className:"my-8",children:o}),L("div",{className:"size-10 rounded-full",children:e}),L("div",{className:"mt-4 flex gap-3",children:t})]})});import{jsx as I,jsxs as K}from"react/jsx-runtime";var Et=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>I(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:K("div",{className:"mx-auto flex items-center gap-x-10 md:max-w-[80%]",children:[I("div",{className:"hidden aspect-square w-full max-w-xs shrink-0 overflow-hidden rounded-xl lg:block",children:e}),K("div",{className:"flex flex-col gap-y-8",children:[I("div",{className:"",children:o}),K("div",{className:"flex items-center justify-between",children:[K("div",{className:"flex items-center gap-x-4",children:[I("div",{className:"block aspect-square w-10 overflow-hidden rounded-md lg:hidden",children:e}),I("div",{className:"gap-3",children:t})]}),r]})]})]})});import{jsx as B,jsxs as ue}from"react/jsx-runtime";var At=({testimonialPrimaryImage:e,testimonialContent:o,testimonialAuthor:t,testimonialSecondaryImage:r,backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m})=>B(c,{backgroundColor:a,spacing:i,border:n,fluidContent:s,height:m,children:B(c,{className:"pb-10 lg:pb-0",children:ue("div",{className:"mx-auto flex max-w-2xl flex-col items-center gap-10 lg:max-w-none lg:flex-row",children:[B("div",{className:"-mt-7 aspect-[2/1] w-full shrink-0 overflow-hidden rounded-xl lg:-my-7 lg:aspect-[1/1.4] lg:max-w-xs",children:e}),ue("div",{className:"flex flex-col gap-y-8",children:[B("div",{className:"",children:o}),ue("div",{className:"flex items-center justify-between",children:[B("div",{className:"gap-3",children:t}),r]})]})]})})});import{jsx as y}from"react/jsx-runtime";var ir=({context:e,component:o,slots:t,backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s})=>{let m=o.variant,d={backgroundColor:r,spacing:a,border:i,fluidContent:n,height:s,testimonialPrimaryImage:y(G,{context:e,data:o,slot:t.testimonialPrimaryImage}),testimonialContent:y(G,{context:e,data:o,slot:t.testimonialContent}),testimonialAuthor:y(G,{context:e,data:o,slot:t.testimonialAuthor}),testimonialSecondaryImage:y(G,{context:e,data:o,slot:t.testimonialSecondaryImage})};switch(m){case"withLargeAvatar":return y(Et,{...d});case"withOverlappingImage":return y(At,{...d});default:return y(Ft,{...d})}};export{ho as a,Ie as b,Ro as c,To as d,Ve as e,Be as f,bo as g,De as h,Or as i,Fo as j,Ge as k,ee as l,Ze as m,Oa as n,Vo as o,et as p,Xa as q,Do as r,rt as s,ot as t,li as u,Oo as v,at as w,Ci as x,ko as y,it as z,Ti as A,Uo as B,Vi as C,Yo as D,Wi as E,Go as F,Xo as G,st as H,Jo as I,Zo as J,le as K,mt as L,Qo as M,er as N,Pt as O,ce as P,ft as Q,jo as R,tr as S,Nt as T,rr as U,ir as V,wt as W,Tt as X,ar as Y};
@@ -1 +1 @@
1
- import{B as d,D as y,F as n,I as P,M as h,R as E,U as f,Y 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-YA5BXPZL.mjs";import{d as s}from"../../chunk-VW2XC3SE.mjs";import"../../chunk-EOV2LPGC.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-WAW7PQYM.mjs";import{d as r}from"../../chunk-B2O55EVA.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-TCQTXNKT.mjs";import"../../chunk-BK7UG4U4.mjs";import"../../chunk-7GVG4HLE.mjs";import"../../chunk-TFA6HYP4.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};
1
+ import{B as d,D as y,F as n,I as P,M as h,R as E,U as f,Y 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-LZOK42EM.mjs";import{d as s}from"../../chunk-VW2XC3SE.mjs";import"../../chunk-EOV2LPGC.mjs";import"../../chunk-6TUDWIYU.mjs";import"../../chunk-BK7UG4U4.mjs";import"../../chunk-WAW7PQYM.mjs";import{d as r}from"../../chunk-B2O55EVA.mjs";import{d as t}from"../../chunk-2UV7TQNF.mjs";import"../../chunk-TCQTXNKT.mjs";import"../../chunk-7GVG4HLE.mjs";import"../../chunk-TFA6HYP4.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};
@@ -1,2 +1 @@
1
- import{a as ht,b as Pt,c as Ct}from"../../chunk-FIN5US3Q.mjs";import{a as q,b as ft}from"../../chunk-RYEXR67P.mjs";import{a as mt}from"../../chunk-56OQGKRM.mjs";import{A as Se,C as Ae,E as Ne,G as Be,H as Er,J as Fe,K as Dr,L as Mr,N as ke,O as Or,P as jr,Q as Hr,S as Ue,T as Wr,V as Re,W as qr,X 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 Fr,l as kr,m as Ur,n as z,p as _r,q as Ie,s as Rr,t as Vr,u as we,w as Lr,x as Te,z as Gr}from"../../chunk-YA5BXPZL.mjs";import{a as $r,b as zr,c as _e}from"../../chunk-VW2XC3SE.mjs";import{b as H,c as W,e as $}from"../../chunk-EOV2LPGC.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-B2O55EVA.mjs";import{a as Nr,b as Br,c as be}from"../../chunk-2UV7TQNF.mjs";import{a as dt,b as ut}from"../../chunk-TCQTXNKT.mjs";import{a as S}from"../../chunk-BK7UG4U4.mjs";import{a as ct}from"../../chunk-7GVG4HLE.mjs";import"../../chunk-TFA6HYP4.mjs";import{a as C}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||{}),Ve=Kr(()=>import("../../accordion-item-Y4PSNOH4.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 Le,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&&Le(gt,{className:h({[`fill-${p}`]:p})}),Le(v,{color:t,size:"xs",children:Le(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 Ft{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 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 no(m,(o=t?.method)!=null?o:"GET",e.toString(),n.status,n.statusText,Ft.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,d=await n.json(),u=(e=d?.info)==null?void 0:e.reset;typeof l=="number"&&typeof u=="number"&&(p=Math.max(0,Math.min(Math.round(1.1*(u-l)),1e4)))}catch{}let i=Math.pow(2,5-o)*333,s=i+Math.round(Math.random()*(i/2))*(Math.random()>.5?1:-1);await new Promise(n=>setTimeout(n,p+s)),o-=1}return a}var R,so=class J extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(J,R),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(J,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(J,R));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};R=new WeakMap;A(so,R,"/api/v2/aggregate");var Me,po=class kt extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(kt,Me),{...e,projectId:t});return await this.apiClient(o)}};Me=new WeakMap;A(po,Me,"/api/v2/dimension");var V,X,Ut=class _ extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(_,V),{...e,projectId:t});return await this.apiClient(o)}async upsertCategory(e){let t=this.createUrl(P(_,V));await this.apiClient(t,{method:"PUT",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}async removeCategory(e){let t=this.createUrl(P(_,V));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})}};V=new WeakMap;X=new WeakMap;A(Ut,V,"/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 L,lo=class K extends b{constructor(e){super(e)}async get(e){let{projectId:t}=this.options,o=this.createUrl(P(K,L),{...e,projectId:t});return await this.apiClient(o)}async upsert(e){let t=this.createUrl(P(K,L));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,L));await this.apiClient(t,{method:"DELETE",body:JSON.stringify({...e,projectId:this.options.projectId}),expectNoContent:!0})}};L=new WeakMap;A(lo,L,"/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 Rt=r=>{throw TypeError(r)},$e=(r,e,t)=>e.has(r)||Rt("Cannot "+t),Z=(r,e,t)=>($e(r,e,"read from private field"),t?t.call(r):e.get(r)),Vt=(r,e,t)=>e.has(r)?Rt("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 Lt=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 F,k,We,ee,ze=class N{constructor(e){this.route=e,Vt(this,F);var t;fo(this,F,D(t=N,k,We).call(t,this.route))}get dynamicSegmentCount(){return Z(this,F).segments.reduce((e,t)=>{var o;return D(o=N,k,ee).call(o,t)?e+1:e},0)}matches(e){var t,o;let{segments:a,queryParams:p}=D(t=N,k,We).call(t,e),{segments:i}=Z(this,F);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,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,F).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,F).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,k,ee).call(t,e))return e.slice(N.dynamicSegmentPrefix.length)}};F=new WeakMap;k=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};Vt(ze,k);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",d=i?await(async()=>{if(n)return[];let u=new Lt({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:f}=await u.getNodes({path:s?.matchedRoute,includeAncestors:!0});return f?.length?Promise.all(f.map(async c=>{let y=c.pathSegment?.includes(":")&&c.compositionId?await new Co({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:c.compositionId}).then(({composition:I})=>I&&Et(I)?.pageTitle||c.name).catch(()=>c.name):c.name,B=c.type==="placeholder"?void 0:j(c.path,s.dynamicInputs);return{title:y,link:B}})):[]})():await(async()=>e?.reduce((u,f)=>{let{title:c,link:x}=Et(f);return c?[...u,{title:c,link:T(x)}]:u},[])||[])();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."})})}):d.length?U("ul",{className:h("flex items-center",{[`text-${t}`]:!!t,[`text-${o}`]:!!o}),children:d.map(({title:u,link:f},c)=>yo("li",{className:"flex items-center",children:[!!c&&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:u}):U(v,{size:t,font:a,color:o,transform:p,children:u})]},`${u}-${c}`))}):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:d,textSize:u,hoverButtonColor:f,hoverTextColor:c,className:x,onClick:y,text:B})=>{let I=T(t),g=e.previewMode==="editor"&&e?.isContextualEditing,w=xo(()=>{let[Pe]=C(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:d,onClick:y,className:x,textSize:u,isActive:e.matchedRoute===I,textColor:o,textFont:a,textWeight:p,textTransform:i,buttonColor:s,hoverButtonColor:f,hoverTextColor:c,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,height:m,className:l})=>Ot(ct,{title:r,id:e,backgroundColor:p,spacing:i,border:s,fluidContent:n,height:m,className:l,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,slots:n,component:m,context:l,className:d,height:u,wrapperClassName:f})=>Wt(ht,{direction:r,justifyContent:e,gap:t,alignItems:o,backgroundColor:a,spacing:p,border:i,fluidContent:s,height:u,wrapperClassName:f,className:d,children:Wt(bo,{data:m,context:l,slot:n.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,height:s,slots:n,component:m,context:l,className:d})=>qt(dt,{className:d,columnsCount:r,gapX:e,gapY:t,backgroundColor:o,spacing:a,border:p,fluidContent:i,height:s,children:qt(wo,{data:m,context:l,slot:n.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:d})=>{let[u]=C(r),{url:f,title:c=""}=u||{};return Xe(q,{icon:f?Xe(S,{src:f,alt:c,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:d})})};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:d})=>{let[u]=C(r);if(!u){let g=l.previewMode==="editor"&&l.isContextualEditing,w=d?._id?.includes("placeholder_");return!g||w?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:c=""}=u,x=t||u.width,y=o||u.height;if(!n&&(!x||!y))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),ie("img",{src:u.url,alt:c});let B=Ao(u?.url).transform({width:t,height:o,fit:e,focal:f}).url();return ie(S,{src:B,alt:c,unoptimized:m,priority:s,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:p,border:i,...n?{fill:!0}:{width:x,height:y}})};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:d,component:u,context:f,hoverEffect:c="",className:x})=>{let y=T(e),B=t&&j(f.matchedRoute,f.dynamicInputs)===y,[I]=C(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(c,"group-hover:{value}")]:!!c,[Ce(c,"{value}")]:!!c&&B});return M(ar,{href:y,isExternalLink:lt(y),children:M(q,{icon:fe(),className:h("group",x),iconClassName:he,textClassName:he,size:o,tag:a,color:p,weight:i,font:s,transform:n,decoration:m,letterSpacing:l,alignment:d,children:M(Bo,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:u,context:f})})})};var tt=nr;import{UniformRichText as Fo}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(Fo,{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 ko}from"react/jsx-runtime";var pe=({size:r,component:{variant:e}})=>{let t=e==="horizontal";return ko("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 Ro}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(Ro,{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 Vo}from"@uniformdev/canvas-next-rsc/component";import{jsx as dr}from"react/jsx-runtime";var le=({component:r,context:e})=>dr("td",{children:dr(Vo,{component:r,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Lo}from"@uniformdev/canvas-next-rsc/component";import{jsx as ur}from"react/jsx-runtime";var ce=({component:r,context:e})=>ur("th",{children:ur(Lo,{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:d})=>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:d})});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,placeholderImage:e,autoPlay:t,lazyLoad:o,loop:a,controls:p,muted:i,overlayColor:s,overlayOpacity:n,border:m,component:l,context:d})=>{let[u]=C(r),[f]=C(e),c=u?.url;return c?yr(Ct,{url:c,placeholderImageUrl:f?.url,autoPlay:t,lazyLoad:o,loop:a,controls:p,muted:i,overlayColor:s,overlayOpacity:n,border:m}):yr(Cr,{component:l,context:d})};var xr={accordion:{component:ye},accordionItem:{component:Ve},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:ke},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:Re},breadcrumbs:{component:qe},review:{component:Fe},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,Ve 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,Fr as DemoHeroContentAlignment,kr 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,Rr as HeaderSlots,Vr as HeaderVariants,Ze as IconLabel,se as Image,Te as ImageGallery,Lr 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,Fe as Review,Mr as ReviewSlots,Dr as ReviewVariants,rt as RichText,ke 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,Re 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
+ import{A as me,C as pe,E as ie,G as se,H as Xo,J as le,K as qo,L as Qo,N as de,O as Zo,P as jo,Q as er,S as fe,T as or,V as Pe,W as ar,X as nr,a as Z,b as Lo,d as ee,e as Do,f as Ho,h as Uo,i as oe,k as $o,l as Wo,m as _o,n as L,p as Eo,q as te,s as Oo,t as Jo,u as ae,w as Ko,x as ne,z as Yo}from"../../chunk-LZOK42EM.mjs";import{a as rr,b as tr,c as ce}from"../../chunk-VW2XC3SE.mjs";import{a as ze,b as $e,c as We}from"../../chunk-FIN5US3Q.mjs";import{a as N,b as Me}from"../../chunk-RYEXR67P.mjs";import{b as k,c as V,e as G}from"../../chunk-EOV2LPGC.mjs";import"../../chunk-6TUDWIYU.mjs";import{a as I}from"../../chunk-BK7UG4U4.mjs";import{a as b}from"../../chunk-WAW7PQYM.mjs";import{a as No,b as Ro,c as j}from"../../chunk-B2O55EVA.mjs";import{a as Mo,b as zo,c as re}from"../../chunk-2UV7TQNF.mjs";import{a as He,b as Ue}from"../../chunk-TCQTXNKT.mjs";import{a as De}from"../../chunk-7GVG4HLE.mjs";import"../../chunk-TFA6HYP4.mjs";import{a as x}from"../../chunk-2YTACEBA.mjs";import{a as Le}from"../../chunk-56OQGKRM.mjs";import"../../chunk-MSXDLSXH.mjs";import{a as S,c as h,d as Ne}from"../../chunk-RX4IAAQQ.mjs";import{a as Re}from"../../chunk-ABORGLS6.mjs";import{a as Q,c as f}from"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";import mr from"next/dynamic";var _e=(e=>(e.AccordionItemContent="accordionItemContent",e))(_e||{}),ue=mr(()=>import("../../accordion-item-Y4PSNOH4.mjs").then(o=>o.AccordionItem));import{UniformText as pr}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ee}from"react/jsx-runtime";var Oe=({className:o,...e})=>Ee("svg",{viewBox:"0 0 6 6","aria-hidden":"true",className:f("w-1.5 h-1.5",o),...e,children:Ee("circle",{r:"3",cx:"3",cy:"3"})});var Je=({pill:o,size:e,dotColor:r,borderColor:t,backgroundColor:a})=>f("inline-flex items-center w-fit",{"rounded-full":o,"rounded-md":!o,"gap-x-1.5":!!r,[`ring-1 ring-inset ring-${t}`]:!!t,[`bg-${a}`]:!!a,[`p-${e}`]:e});import{jsx as xe,jsxs as ir}from"react/jsx-runtime";var Ke=({component:o,context:e,textColor:r,backgroundColor:t,borderColor:a,dotColor:m,pill:s=!1,size:p})=>ir("div",{className:Je({pill:s,size:p,dotColor:m,borderColor:a,backgroundColor:t}),children:[m&&xe(Oe,{className:f({[`fill-${m}`]:m})}),xe(b,{color:r,size:"xs",children:xe(pr,{placeholder:"Badge text goes here",parameterId:"text",component:o,context:e})})]});var Ce=Ke;import{flattenValues as Xe,CanvasClient as sr}from"@uniformdev/canvas";import{jsx as R}from"react/jsx-runtime";var Ye=o=>{switch(o){case"slash":return R("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9 20.247 6-16.5"})});case"chevron":default:return R("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})}};import{jsx as w,jsxs as lr}from"react/jsx-runtime";var qe=async({separator:o,links:e,size:r,color:t,font:a,transform:m,autoGenerate:s,context:p})=>{let l=!p?.matchedRoute||p?.matchedRoute==="composition",u=s?await(async()=>{if(l)return[];let i=new Re({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}),{nodes:d}=await i.getNodes({path:p?.matchedRoute,includeAncestors:!0});return d?.length?Promise.all(d.map(async n=>{let C=n.pathSegment?.includes(":")&&n.compositionId?await new sr({projectId:process.env.UNIFORM_PROJECT_ID,apiKey:process.env.UNIFORM_API_KEY}).getCompositionById({compositionId:n.compositionId}).then(({composition:T})=>T&&Xe(T)?.pageTitle||n.name).catch(()=>n.name):n.name,B=n.type==="placeholder"?void 0:S(n.path,p.dynamicInputs);return{title:C,link:B}})):[]})():await(async()=>e?.reduce((i,d)=>{let{title:n,link:g}=Xe(d);return n?[...i,{title:n,link:h(g)}]:i},[])||[])();return l&&s?w("ul",{className:"flex items-center",children:w("li",{className:"flex items-center",children:w(b,{size:r,font:a,color:t,transform:m,children:"Breadcrumbs cannot be auto-generated because the project map is not accessible in this context."})})}):u.length?w("ul",{className:f("flex items-center",{[`text-${r}`]:!!r,[`text-${t}`]:!!t}),children:u.map(({title:i,link:d},n)=>lr("li",{className:"flex items-center",children:[!!n&&w("div",{className:"mx-2 size-[1em]",children:Ye(o)}),d?w(V,{variant:"link",textColor:t,className:f({[`font-${a}`]:!!a,[`text-${r}`]:!!r,[m||""]:!!m}),href:d,children:i}):w(b,{size:r,font:a,color:t,transform:m,children:i})]},`${i}-${n}`))}):null};var ge=qe;import{useMemo as dr}from"react";import{UniformText as fr}from"@uniformdev/canvas-next-rsc/component";import{jsx as D}from"react/jsx-runtime";var Qe=({component:o,context:e,link:r,textColor:t,textFont:a,textWeight:m,textTransform:s,buttonColor:p,icon:l,iconPosition:P,border:c,size:u,textSize:i,hoverButtonColor:d,hoverTextColor:n,className:g,onClick:C,text:B})=>{let T=h(r),y=e.previewMode==="editor"&&e?.isContextualEditing,v=dr(()=>{let[q]=x(l),{url:A,title:Go=""}=q||{};if(A)return{url:A,title:Go}},[l]),Y=()=>{if(!v)return;let{url:q,title:A}=v;return D(I,{src:q,alt:A,width:20,height:20,containerStyle:{width:"20px",height:"20px"}})};return!(!!B||!!v)&&!y?null:D(V,{variant:o.variant,href:T,border:c,size:u,onClick:C,className:g,textSize:i,isActive:e.matchedRoute===T,textColor:t,textFont:a,textWeight:m,textTransform:s,buttonColor:p,hoverButtonColor:d,hoverTextColor:n,icon:D(Y,{}),iconPosition:P,children:D(fr,{placeholder:"Button text goes here",parameterId:"text",component:o,context:e})})};var ye=Qe;import{UniformSlot as cr}from"@uniformdev/canvas-next-rsc/component";import{jsx as Ze}from"react/jsx-runtime";var H=({displayName:o,anchor:e,slots:r,component:t,context:a,backgroundColor:m,spacing:s,border:p,fluidContent:l,height:P,className:c})=>Ze(De,{title:o,id:e,backgroundColor:m,spacing:s,border:p,fluidContent:l,height:P,className:c,children:Ze(cr,{data:t,context:a,slot:r.containerContent})});var je=(e=>(e.ContainerContent="containerContent",e))(je||{});import{jsx as eo}from"react/jsx-runtime";var U=({color:o,thickness:e,width:r,alignment:t})=>eo("div",{className:f("flex w-full",`justify-${t||"center"}`),children:eo("div",{className:f({[`bg-${o}`]:!!o}),style:{width:r,height:e}})});import{UniformSlot as Pr}from"@uniformdev/canvas-next-rsc/component";import{jsx as oo}from"react/jsx-runtime";var ro=({direction:o,justifyContent:e,gap:r,alignItems:t,backgroundColor:a,spacing:m,border:s,fluidContent:p,slots:l,component:P,context:c,className:u,height:i,wrapperClassName:d})=>oo(ze,{direction:o,justifyContent:e,gap:r,alignItems:t,backgroundColor:a,spacing:m,border:s,fluidContent:p,height:i,wrapperClassName:d,className:u,children:oo(Pr,{data:P,context:c,slot:l.flexItem})});var be=ro;import{UniformSlot as ur}from"@uniformdev/canvas-next-rsc/component";import{jsx as to}from"react/jsx-runtime";var M=({alignSelf:o,shrink:e,context:r,component:t,slots:a})=>to($e,{alignSelf:o,shrink:e,children:to(ur,{data:t,context:r,slot:a.inner})});import{UniformSlot as xr}from"@uniformdev/canvas-next-rsc/component";import{jsx as ao}from"react/jsx-runtime";var no=({columnsCount:o,gapX:e,gapY:r,backgroundColor:t,spacing:a,border:m,fluidContent:s,height:p,slots:l,component:P,context:c,className:u})=>ao(He,{className:u,columnsCount:o,gapX:e,gapY:r,backgroundColor:t,spacing:a,border:m,fluidContent:s,height:p,children:ao(xr,{data:P,context:c,slot:l.gridInner})});var mo=(e=>(e.GridInner="gridInner",e))(mo||{}),Te=no;import{UniformSlot as Cr}from"@uniformdev/canvas-next-rsc/component";import{jsx as po}from"react/jsx-runtime";var io=({columnStart:o,columnSpan:e,rowStart:r,className:t,rowSpan:a,context:m,component:s,slots:p})=>po(Ue,{columnStart:o,columnSpan:e,rowStart:r,rowSpan:a,className:t,children:po(Cr,{data:s,context:m,slot:p.inner})});var so=(e=>(e.Inner="inner",e))(so||{}),ve=io;import{UniformText as gr}from"@uniformdev/canvas-next-rsc/component";import{jsx as he}from"react/jsx-runtime";var lo=({icon:o,size:e,tag:r,color:t,weight:a,font:m,transform:s,decoration:p,letterSpacing:l,alignment:P,component:c,context:u})=>{let[i]=x(o),{url:d,title:n=""}=i||{};return he(N,{icon:d?he(I,{src:d,alt:n,fill:!0}):void 0,size:e,tag:r,color:t,weight:a,font:m,transform:s,decoration:p,letterSpacing:l,alignment:P,children:he(gr,{placeholder:"Text goes here",parameterId:"text",component:c,context:u})})};var Ie=lo;import{imageFrom as yr}from"@uniformdev/assets";import{jsx as z}from"react/jsx-runtime";var $=async({image:o,objectFit:e,width:r,height:t,overlayColor:a,overlayOpacity:m,border:s,priority:p,fill:l,unoptimized:P,context:c,component:u})=>{let[i]=x(o);if(!i){let y=c.previewMode==="editor"&&c.isContextualEditing,v=u?._id?.includes("placeholder_");return!y||v?null:z("div",{style:{width:r?`${r}px`:"auto",height:t?`${t}px`:"auto"},children:z(G,{type:"image",placeholder:"Please add an asset to display an image"})})}let{focalPoint:d,title:n=""}=i,g=r||i.width,C=t||i.height;if(!l&&(!g||!C))return console.warn("No dimensions provided for the Next.js Image component. Falling back to a standard <img> tag for rendering."),z("img",{src:i.url,alt:n});let B=yr(i?.url).transform({width:r,height:t,fit:e,focal:d}).url();return z(I,{src:B,alt:n,unoptimized:P,priority:p,sizes:"100%",style:{objectFit:e},overlayColor:a,overlayOpacity:m,border:s,...l?{fill:!0}:{width:g,height:C}})};import{UniformSlot as br}from"@uniformdev/canvas-next-rsc/component";import{jsx as fo}from"react/jsx-runtime";var co=({component:o,context:e,slots:r,link:t,openInNewTab:a})=>fo(k,{link:h(t),openInNewTab:a,children:fo(br,{data:o,context:e,slot:r.linkContent})});var Po=(e=>(e.LinkContent="linkContent",e))(Po||{}),Be=co;import{UniformText as Tr}from"@uniformdev/canvas-next-rsc/component";import{jsx as uo}from"react/jsx-runtime";var xo=({href:o,isExternalLink:e,children:r})=>o?uo(k,{className:"cursor-pointer hover:no-underline",link:o,openInNewTab:e,rel:e?"noopener noreferrer":"",children:r}):uo("div",{className:"cursor-pointer",children:r});import{jsx as F}from"react/jsx-runtime";var Co=({icon:o,link:e,activeState:r,size:t,tag:a,color:m,weight:s,font:p,transform:l,decoration:P,letterSpacing:c,alignment:u,component:i,context:d,hoverEffect:n="",className:g})=>{let C=h(e),B=r&&S(d.matchedRoute,d.dynamicInputs)===C,[T]=x(o),{url:y,title:v=""}=T||{},Y=()=>y?y.endsWith(".svg")?F(Me,{src:y,alt:v,fill:!0}):F(I,{src:y,alt:v,fill:!0}):null,X=f("transition-all duration-150",{[Q(n,"group-hover:{value}")]:!!n,[Q(n,"{value}")]:!!n&&B});return F(xo,{href:C,isExternalLink:Ne(C),children:F(N,{icon:Y(),className:f("group",g),iconClassName:X,textClassName:X,size:t,tag:a,color:m,weight:s,font:p,transform:l,decoration:P,letterSpacing:c,alignment:u,children:F(Tr,{placeholder:"Text goes here",parameterId:"text",className:"whitespace-nowrap",component:i,context:d})})})};var we=Co;import{UniformRichText as vr}from"@uniformdev/canvas-next-rsc/component";import{jsx as go}from"react/jsx-runtime";var yo=({color:o,lineCountRestrictions:e,font:r,component:t,className:a})=>go(b,{lineCountRestrictions:e,color:o,font:r,children:go(vr,{className:f("prose max-w-full marker:text-current [&_*:not(pre)]:text-current",a),parameterId:"text",component:t,placeholder:"Rich text content goes here..."})});var Fe=yo;import{jsx as hr}from"react/jsx-runtime";var W=({size:o,component:{variant:e}})=>{let r=e==="horizontal";return hr("div",{className:f({[`w-${o}`]:r,[`h-${o}`]:!r})})};var Ae=(e=>(e.Horizontal="horizontal",e))(Ae||{});import{UniformSlot as Ir}from"@uniformdev/canvas-next-rsc/component";import{jsx as Br}from"react/jsx-runtime";var bo=({slots:o,component:e,context:r})=>Br(Ir,{data:e,context:r,slot:o.tabContent});var To=(e=>(e.TabContent="tabContent",e))(To||{}),Se=bo;import{UniformSlot as wr}from"@uniformdev/canvas-next-rsc/component";import{jsx as ke}from"react/jsx-runtime";var _=({component:o,context:e,slots:r,alignment:t})=>ke("td",{children:ke("div",{className:f("w-fit",vo[t||"left"]),children:ke(wr,{slot:r.tableCustomCellContent,context:e,data:o})})});var vo={left:"ml-0",center:"mx-auto",right:"ml-auto"},ho=(e=>(e.TableCustomCellContent="tableCustomCellContent",e))(ho||{});import{UniformText as Fr}from"@uniformdev/canvas-next-rsc/component";import{jsx as Io}from"react/jsx-runtime";var E=({component:o,context:e})=>Io("td",{children:Io(Fr,{component:o,context:e,parameterId:"value",placeholder:"Value"})});import{UniformText as Ar}from"@uniformdev/canvas-next-rsc/component";import{jsx as Bo}from"react/jsx-runtime";var O=({component:o,context:e})=>Bo("th",{children:Bo(Ar,{component:o,context:e,parameterId:"value",placeholder:"Value"})});import{UniformSlot as Sr}from"@uniformdev/canvas-next-rsc/component";import{jsx as wo}from"react/jsx-runtime";var J=({slots:o,component:e,context:r})=>wo("tr",{children:wo(Sr,{data:e,context:r,slot:o.tableRowCells})});import{UniformText as kr}from"@uniformdev/canvas-next-rsc/component";import{jsx as Fo}from"react/jsx-runtime";var Ao=({tag:o,size:e,color:r,weight:t,font:a,transform:m,decoration:s,letterSpacing:p,lineCountRestrictions:l,alignment:P,component:c,context:u})=>Fo(b,{color:r,size:e,font:a,weight:t,transform:m,decoration:s,letterSpacing:p,alignment:P,lineCountRestrictions:l,children:Fo(kr,{placeholder:"Text goes here",parameterId:"text",as:o||void 0,component:c,context:u})});var Ve=Ao;import Vr from"next/dynamic";var Ge=Vr(()=>import("../../theme-switcher-WO5JIV2W.mjs").then(o=>o.ThemeSwitcher));import{jsx as Gr}from"react/jsx-runtime";var So=({context:o,component:e})=>{let r=o.previewMode==="editor"&&o.isContextualEditing,t=e?._id?.includes("placeholder_");return!r||t?null:Gr(G,{type:"video",placeholder:"Please add video link to display a video"})};import{jsx as ko}from"react/jsx-runtime";var K=({video:o,placeholderImage:e,autoPlay:r,lazyLoad:t,loop:a,controls:m,muted:s,overlayColor:p,overlayOpacity:l,border:P,component:c,context:u})=>{let[i]=x(o),[d]=x(e),n=i?.url;return n?ko(We,{url:n,placeholderImageUrl:d?.url,autoPlay:r,lazyLoad:t,loop:a,controls:m,muted:s,overlayColor:p,overlayOpacity:l,border:P}):ko(So,{component:c,context:u})};var Vo={accordion:{component:Z},accordionItem:{component:ue},badge:{component:Ce},banner:{component:j},button:{component:ye},card:{component:ee},carousel:{component:oe},container:{component:H},countdown:{component:re},divider:{component:U},grid:{component:Te},gridItem:{component:ve},flex:{component:be},flexItem:{component:M},header:{component:ae},section:{component:de},iconLabel:{component:Ie},image:{component:$},page:{component:se},richText:{component:Fe},spacer:{component:W},text:{component:Ve},video:{component:K},tabs:{component:ce},tab:{component:Se},table:{component:fe},tableRow:{component:J},tableHeaderCell:{component:O},tableDataCell:{component:E},tableCustomCell:{component:_},modal:{component:me},imageGallery:{component:ne},testimonial:{component:Pe},breadcrumbs:{component:ge},review:{component:le},navigationLink:{component:we},navigationGroup:{component:ie},navigationFlyout:{component:pe},footer:{component:te},themeSwitcher:{component:Ge},link:{component:Be},fixedHero:{component:L.FixedHero},flexibleHero:{component:L.FlexibleHero}},zm=Vo,$m=Le(Vo);export{Z as Accordion,ue as AccordionItem,_e as AccordionItemSlots,Lo as AccordionSlots,Ce as Badge,j as Banner,No as BannerContentAlignment,Ro as BannerSlots,ge as Breadcrumbs,ye as Button,ee as Card,Ho as CardSlots,Do as CardVariants,oe as Carousel,Uo as CarouselSlots,Xo as CommonPageSlots,H as Container,je as ContainerSlots,re as Countdown,Mo as CountdownSlots,zo as CountdownVariants,L as DemoHero,$o as DemoHeroContentAlignment,Wo as DemoHeroVariants,U as Divider,be as Flex,M as FlexItem,_o as FlexibleHeroSlots,te as Footer,Eo as FooterSlots,Te as Grid,ve as GridItem,so as GridItemSlots,mo as GridSlots,ae as Header,Oo as HeaderSlots,Jo as HeaderVariants,Ie as IconLabel,$ as Image,ne as ImageGallery,Ko as ImageGallerySlots,Be as Link,Po as LinkSlots,me as Modal,Yo as ModalSlots,pe as NavigationFlyout,ie as NavigationGroup,we as NavigationLink,se as Page,le as Review,Qo as ReviewSlots,qo as ReviewVariants,Fe as RichText,de as Section,Zo as SectionContentAlignment,er as SectionSlots,jo as SectionVariants,W as Spacer,Ae as SpacerVariants,Se as Tab,To as TabSlots,fe as Table,_ as TableCustomCell,ho as TableCustomCellSlots,E as TableDataCell,O as TableHeaderCell,J as TableRow,or as TableSlots,ce as Tabs,tr as TabsSlots,rr as TabsVariants,Pe as Testimonial,nr as TestimonialSlots,ar as TestimonialVariants,Ve as Text,Ge as ThemeSwitcher,K as Video,$m as componentResolver,Vo as cskComponentsMapping,zm as default};
@@ -1 +1 @@
1
- import{a as A}from"../../chunk-V4EBWEG4.mjs";import{b as y}from"../../chunk-2BMAPB63.mjs";import{a as F}from"../../chunk-PMMAALCQ.mjs";import{a as G,b as V,c as T}from"../../chunk-FIN5US3Q.mjs";import{a as c,b as I}from"../../chunk-RYEXR67P.mjs";import{a as r}from"../../chunk-EUVKAE6M.mjs";import{a as o,b as t,c as a,d as p,e as x,f as u,g as i,h as g,i as h}from"../../chunk-EOV2LPGC.mjs";import{a as s,b as d,c as l}from"../../chunk-6TUDWIYU.mjs";import{a as m}from"../../chunk-WAW7PQYM.mjs";import{a as n,b as P}from"../../chunk-TCQTXNKT.mjs";import{a as f}from"../../chunk-BK7UG4U4.mjs";import{a as e}from"../../chunk-7GVG4HLE.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";export{o as Accordion,F as AccordionItem,s as ArrowIcon,a as Button,p as ButtonVariant,r as Carousel,e as Container,G as Flex,V as FlexItem,u as Footer,n as Grid,P as GridItem,i as Header,c as IconLabel,f as Image,d as ImageIcon,I as InlineSVG,t as Link,x as MediaPlaceholder,y as Modal,g as Page,h as Rating,m as Text,A as ThemeSwitcher,T as Video,l as VideoIcon};
1
+ import{a as A}from"../../chunk-V4EBWEG4.mjs";import{b as y}from"../../chunk-2BMAPB63.mjs";import{a as F}from"../../chunk-PMMAALCQ.mjs";import{a as G,b as V,c as T}from"../../chunk-FIN5US3Q.mjs";import{a as c,b as I}from"../../chunk-RYEXR67P.mjs";import{a as o,b as t,c as a,d as p,e as x,f as u,g as i,h as g,i as h}from"../../chunk-EOV2LPGC.mjs";import{a as s,b as d,c as l}from"../../chunk-6TUDWIYU.mjs";import{a as f}from"../../chunk-BK7UG4U4.mjs";import{a as m}from"../../chunk-WAW7PQYM.mjs";import{a as r}from"../../chunk-EUVKAE6M.mjs";import{a as n,b as P}from"../../chunk-TCQTXNKT.mjs";import{a as e}from"../../chunk-7GVG4HLE.mjs";import"../../chunk-RX4IAAQQ.mjs";import"../../chunk-S7CSCIW4.mjs";import"../../chunk-YEKQJ4YC.mjs";export{o as Accordion,F as AccordionItem,s as ArrowIcon,a as Button,p as ButtonVariant,r as Carousel,e as Container,G as Flex,V as FlexItem,u as Footer,n as Grid,P as GridItem,i as Header,c as IconLabel,f as Image,d as ImageIcon,I as InlineSVG,t as Link,x as MediaPlaceholder,y as Modal,g as Page,h as Rating,m as Text,A as ThemeSwitcher,T as Video,l as VideoIcon};
@@ -1 +1 @@
1
- "use client";import{a as B,b as H}from"./chunk-RYEXR67P.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import"./chunk-WAW7PQYM.mjs";import{a as w,b as y}from"./chunk-TCQTXNKT.mjs";import{a as C}from"./chunk-BK7UG4U4.mjs";import"./chunk-7GVG4HLE.mjs";import{a as g}from"./chunk-2YTACEBA.mjs";import{a as u,c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as et,useState as at}from"react";import{UniformText as st}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as _}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:e,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:o("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:o("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:_(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:e,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:e,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as j,useState as tt}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var ot=()=>{let[t,s]=tt(0);return j(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:e,slots:i,onClose:r,component:n})=>{let l=ot();return R("div",{style:{top:l},className:o("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:e,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:e,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>o("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>o("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Gt=({icon:t,caretIcon:s,backgroundColor:e,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F="",className:X})=>{let[f,P]=at(!1),q=O(()=>P(!0),[]),h=O(()=>P(!1),[]),J=et(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[K]=g(t),{url:c,title:x=""}=K||{},Q=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=o("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Y]=g(s),{url:I,title:Z=""}=Y||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:q,className:D({color:l}),children:[a(B,{icon:Q(),className:o("group",X),iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(st,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:o("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Z,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:J,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})})]})};export{Gt as NavigationFlyout};
1
+ "use client";import{a as B,b as H}from"./chunk-RYEXR67P.mjs";import{a as k}from"./chunk-6TUDWIYU.mjs";import{a as C}from"./chunk-BK7UG4U4.mjs";import"./chunk-WAW7PQYM.mjs";import{a as w,b as y}from"./chunk-TCQTXNKT.mjs";import"./chunk-7GVG4HLE.mjs";import{a as g}from"./chunk-2YTACEBA.mjs";import{a as u,c as o}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as O,useMemo as et,useState as at}from"react";import{UniformText as st}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as M}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as _}from"react/jsx-runtime";var G=({isOpen:t,backgroundColor:s,context:e,slots:i,border:r,component:n,hasRightContent:l})=>m("div",{className:o("absolute z-10 w-max left-1/2 -translate-x-1/2 pt-4",{hidden:!t,block:t,"w-full md:w-[460px]":!l,"w-full md:w-[460px] xl:w-[768px]":l}),children:m("div",{className:o("p-8",{[`bg-${s}`]:!!s,[u(r,"{value}")]:r}),children:_(w,{columnsCount:"2",gapX:"4",children:[m(y,{children:m("div",{className:"flex flex-col gap-y-4",children:m(M,{context:e,data:n,slot:i.navigationFlyoutLeftContent})})}),m(y,{children:m(M,{context:e,data:n,slot:i.navigationFlyoutRightContent})})]})})});import{useEffect as j,useState as tt}from"react";import{UniformSlot as L}from"@uniformdev/canvas-next-rsc/component";import{jsx as d,jsxs as R}from"react/jsx-runtime";var ot=()=>{let[t,s]=tt(0);return j(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),t},S=({isOpen:t,backgroundColor:s,context:e,slots:i,onClose:r,component:n})=>{let l=ot();return R("div",{style:{top:l},className:o("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!t,block:t}),children:[d("button",{onClick:r,className:"w-max rotate-180 px-4",children:d(k,{})}),R("div",{className:"flex flex-col items-center justify-center gap-y-8 p-4",children:[d(L,{context:e,data:n,slot:i.navigationFlyoutLeftContent}),d(L,{context:e,data:n,slot:i.navigationFlyoutRightContent})]})]})};var U=({isOpen:t})=>o("transition transform hidden md:block",{"rotate-180":t,"rotate-0":!t}),D=({color:t})=>o("flex items-center gap-x-2",{[`text-${t}`]:!!t});import{jsx as a,jsxs as $}from"react/jsx-runtime";var Gt=({icon:t,caretIcon:s,backgroundColor:e,border:i,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,component:p,context:v,slots:N,hoverEffect:F="",className:X})=>{let[f,P]=at(!1),q=O(()=>P(!0),[]),h=O(()=>P(!1),[]),J=et(()=>!!p.slots?.navigationFlyoutRightContent?.length,[p.slots]),[K]=g(t),{url:c,title:x=""}=K||{},Q=()=>c?c.endsWith(".svg")?a(H,{src:c,alt:x,fill:!0}):a(C,{src:c,alt:x,fill:!0}):null,b=o("transition-all duration-150",{[u(F,"group-hover:{value}")]:!!F}),[Y]=g(s),{url:I,title:Z=""}=Y||{};return $("div",{className:"relative",onMouseLeave:h,children:[$("button",{onMouseEnter:q,className:D({color:l}),children:[a(B,{icon:Q(),className:o("group",X),iconClassName:b,textClassName:b,size:r,tag:n,color:l,weight:T,font:V,transform:A,decoration:E,letterSpacing:z,alignment:W,children:a(st,{placeholder:"Text goes here",parameterId:"text",component:p,context:v})}),I&&a("div",{className:o("relative size-[1em]",U({isOpen:f}),{[`text-${r}`]:!!r}),children:a(C,{src:I,alt:Z,fill:!0})})]}),a("div",{className:"hidden md:block",children:a(G,{hasRightContent:J,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})}),a("div",{className:"block md:hidden",children:a(S,{onClose:h,isOpen:f,backgroundColor:e,context:v,slots:N,border:i,component:p})})]})};export{Gt as NavigationFlyout};
@@ -1 +1 @@
1
- "use client";import{a as I,b as B}from"./chunk-RYEXR67P.mjs";import{a as y}from"./chunk-6TUDWIYU.mjs";import"./chunk-WAW7PQYM.mjs";import{a as f}from"./chunk-BK7UG4U4.mjs";import{a as v}from"./chunk-2YTACEBA.mjs";import{a as l,c as t}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as S,useState as _}from"react";import{UniformText as j}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as K}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var F=({isOpen:o,backgroundColor:s,context:e,slots:i,border:a})=>p("div",{className:t("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:t({[`bg-${s}`]:!!s,[l(a,"{value}")]:a}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p(K,{data:e,slot:i.links,context:e})})})});import{useEffect as Q,useState as R}from"react";import{UniformSlot as X}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Z}from"react/jsx-runtime";var Y=()=>{let[o,s]=R(0);return Q(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),o},H=({isOpen:o,backgroundColor:s,context:e,slots:i,onClose:a})=>{let c=Y();return Z("div",{style:{top:c},className:t("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!o,block:o}),children:[m("button",{onClick:a,className:"w-max rotate-180 px-4",children:m(y,{})}),m("div",{className:"flex flex-col items-center gap-y-4 p-4",children:m(X,{data:e,slot:i.links,context:e})})]})};var w=({isOpen:o})=>t("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),M=({color:o})=>t("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as r,jsxs as U}from"react/jsx-runtime";var yo=({icon:o,caretIcon:s,backgroundColor:e,border:i,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,component:A,context:d,slots:C,hoverEffect:N="",className:E})=>{let[u,b]=_(!1),P=S(()=>b(!0),[]),x=S(()=>b(!1),[]),[z]=v(o),{url:n,title:h=""}=z||{},W=()=>n?n.endsWith(".svg")?r(B,{src:n,alt:h,fill:!0}):r(f,{src:n,alt:h,fill:!0}):null,G=t("transition-all duration-150",{[l(N,"group-hover:{value}")]:!!N}),[q]=v(s),{url:k,title:J=""}=q||{};return U("div",{className:"relative",onMouseLeave:x,children:[U("button",{onMouseEnter:P,onClick:P,className:M({color:g}),children:[r(I,{icon:W(),className:t("group",E),iconClassName:G,textClassName:G,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,children:r(j,{placeholder:"Text goes here",parameterId:"text",component:A,context:d})}),k&&r("div",{className:t("relative size-[1em]",w({isOpen:u}),{[`text-${a}`]:!!a}),children:r(f,{src:k,alt:J,fill:!0})})]}),r("div",{className:"hidden md:block",children:r(F,{isOpen:u,backgroundColor:e,context:d,slots:C,border:i})}),r("div",{className:"block md:hidden",children:r(H,{onClose:x,isOpen:u,backgroundColor:e,context:d,slots:C})})]})};export{yo as NavigationGroup};
1
+ "use client";import{a as I,b as B}from"./chunk-RYEXR67P.mjs";import{a as y}from"./chunk-6TUDWIYU.mjs";import{a as f}from"./chunk-BK7UG4U4.mjs";import"./chunk-WAW7PQYM.mjs";import{a as v}from"./chunk-2YTACEBA.mjs";import{a as l,c as t}from"./chunk-S7CSCIW4.mjs";import"./chunk-YEKQJ4YC.mjs";import{useCallback as S,useState as _}from"react";import{UniformText as j}from"@uniformdev/canvas-next-rsc/component";import{UniformSlot as K}from"@uniformdev/canvas-next-rsc/component";import{jsx as p}from"react/jsx-runtime";var F=({isOpen:o,backgroundColor:s,context:e,slots:i,border:a})=>p("div",{className:t("absolute left-0 max-w-64 z-10 pt-4",{hidden:!o,block:o}),children:p("div",{className:t({[`bg-${s}`]:!!s,[l(a,"{value}")]:a}),children:p("div",{className:"flex flex-col gap-y-4 p-4",children:p(K,{data:e,slot:i.links,context:e})})})});import{useEffect as Q,useState as R}from"react";import{UniformSlot as X}from"@uniformdev/canvas-next-rsc/component";import{jsx as m,jsxs as Z}from"react/jsx-runtime";var Y=()=>{let[o,s]=R(0);return Q(()=>{let e=document.getElementById("mobile-header");e&&s(e.offsetHeight)},[]),o},H=({isOpen:o,backgroundColor:s,context:e,slots:i,onClose:a})=>{let c=Y();return Z("div",{style:{top:c},className:t("fixed left-0 right-0 bottom-0 z-10 w-full pt-4",{[`bg-${s}`]:!!s,hidden:!o,block:o}),children:[m("button",{onClick:a,className:"w-max rotate-180 px-4",children:m(y,{})}),m("div",{className:"flex flex-col items-center gap-y-4 p-4",children:m(X,{data:e,slot:i.links,context:e})})]})};var w=({isOpen:o})=>t("transition transform hidden md:block",{"rotate-180":o,"rotate-0":!o}),M=({color:o})=>t("flex items-center gap-x-2",{[`text-${o}`]:!!o});import{jsx as r,jsxs as U}from"react/jsx-runtime";var yo=({icon:o,caretIcon:s,backgroundColor:e,border:i,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,component:A,context:d,slots:C,hoverEffect:N="",className:E})=>{let[u,b]=_(!1),P=S(()=>b(!0),[]),x=S(()=>b(!1),[]),[z]=v(o),{url:n,title:h=""}=z||{},W=()=>n?n.endsWith(".svg")?r(B,{src:n,alt:h,fill:!0}):r(f,{src:n,alt:h,fill:!0}):null,G=t("transition-all duration-150",{[l(N,"group-hover:{value}")]:!!N}),[q]=v(s),{url:k,title:J=""}=q||{};return U("div",{className:"relative",onMouseLeave:x,children:[U("button",{onMouseEnter:P,onClick:P,className:M({color:g}),children:[r(I,{icon:W(),className:t("group",E),iconClassName:G,textClassName:G,size:a,tag:c,color:g,weight:D,font:O,transform:$,decoration:L,letterSpacing:T,alignment:V,children:r(j,{placeholder:"Text goes here",parameterId:"text",component:A,context:d})}),k&&r("div",{className:t("relative size-[1em]",w({isOpen:u}),{[`text-${a}`]:!!a}),children:r(f,{src:k,alt:J,fill:!0})})]}),r("div",{className:"hidden md:block",children:r(F,{isOpen:u,backgroundColor:e,context:d,slots:C,border:i})}),r("div",{className:"block md:hidden",children:r(H,{onClose:x,isOpen:u,backgroundColor:e,context:d,slots:C})})]})};export{yo as NavigationGroup};
@@ -0,0 +1,21 @@
1
+ import { MetadataRoute } from 'next';
2
+
3
+ /**
4
+ * Returns an async function that generates a sitemap using the provided domain and dynamic values.
5
+ * It fetches all composition nodes from Uniform Project Map, resolves their paths,
6
+ * and returns sitemap entries with fully substituted URLs.
7
+ *
8
+ * @param domain - The base domain to prepend to each generated path (e.g., https://example.com).
9
+ * @param dynamicValues - A record of dynamic variables and their possible values.
10
+ * @returns A function that resolves to an array of MetadataRoute.Sitemap entries.
11
+ *
12
+ * @example
13
+ * export default generateSitemap('https://example.com', {
14
+ * locale: ['en', 'fr'],
15
+ * category: ['tech', 'health'],
16
+ * });
17
+ * // sitemap will contain all path combinations for provided dynamic values and your Project Map nodes
18
+ */
19
+ declare const generateSitemap: (domain: string, dynamicValues?: Record<string, string | string[]>) => () => Promise<MetadataRoute.Sitemap>;
20
+
21
+ export { generateSitemap };
@@ -0,0 +1 @@
1
+ import{a as s,b as c}from"../chunk-ABORGLS6.mjs";import"../chunk-YEKQJ4YC.mjs";var d=new s({apiHost:process.env.UNIFORM_CLI_BASE_URL||"https://uniform.app",apiKey:process.env.UNIFORM_API_KEY,projectId:process.env.UNIFORM_PROJECT_ID}),u=i=>i.reduce((e,r)=>e.flatMap(t=>r.map(o=>[...t,o])),[[]]),f=(i,e)=>{let r=[...e.matchAll(/:([^/]+)/g)];if(r.length===0)return[e];let t=r.map(n=>n[1]),o=t.map(n=>{let a=i[n];return a?Array.isArray(a)?a:[a]:[]});return u(o).map(n=>t.reduce((a,m,g)=>a.replace(`:${m}`,n[g]),e))},y=(i,e={})=>async()=>{let{nodes:r}=await d.getNodes({withCompositionData:!0});return r?r.filter(t=>t.type==="composition").flatMap(t=>{let o=c({node:t,targetLocale:void 0});return f(e,t.path).map(n=>({url:`${i}${n}`,lastModified:o?.modified,changeFrequency:"daily",priority:1}))}):[]};export{y as generateSitemap};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/csk-components",
3
- "version": "6.0.120-alpha.1",
3
+ "version": "6.0.123-alpha.1",
4
4
  "description": "Components Starter Kit that provides a set of basic components for building websites within a Uniform project",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -32,6 +32,10 @@
32
32
  "types": "./dist/utils/createComponentResolver.d.mts",
33
33
  "default": "./dist/utils/createComponentResolver.mjs"
34
34
  },
35
+ "./utils/sitemap": {
36
+ "types": "./dist/utils/sitemap.d.mts",
37
+ "default": "./dist/utils/sitemap.mjs"
38
+ },
35
39
  "./components/ui": {
36
40
  "types": "./dist/components/ui/index.d.mts",
37
41
  "default": "./dist/components/ui/index.mjs"
@@ -67,7 +71,7 @@
67
71
  "commander": "^9.0.0",
68
72
  "cookies-next": "^4.3.0",
69
73
  "dotenv": "16.4.7",
70
- "next-themes": "^0.4.4",
74
+ "next-themes": "^0.4.6",
71
75
  "ora": "^8.1.1",
72
76
  "prettier": "3.5.2",
73
77
  "react-player": "^2.16.0",
@@ -80,7 +84,7 @@
80
84
  "@uniformdev/assets": "^20.25.0",
81
85
  "@uniformdev/canvas": "^20.25.0",
82
86
  "@uniformdev/canvas-next-rsc": "^20.25.0",
83
- "next": "^15.3.2",
87
+ "next": "^15.4.2",
84
88
  "react": "^19.1.0",
85
89
  "react-dom": "^19.1.0",
86
90
  "tailwindcss": "^4.1.11",
@@ -105,4 +109,4 @@
105
109
  "publishConfig": {
106
110
  "access": "public"
107
111
  }
108
- }
112
+ }