cortex-react-components 1.51.5 → 1.51.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-52MRKKN7.mjs +2 -0
- package/dist/{chunk-AOM6WKTN.mjs → chunk-664WGLB4.mjs} +1 -1
- package/dist/{chunk-FIBF6KMI.mjs → chunk-7XMGPUGL.mjs} +1 -1
- package/dist/{chunk-RJFBQZFX.mjs → chunk-ABCL62TB.mjs} +1 -1
- package/dist/{chunk-XGNF75KY.mjs → chunk-BXLP27FT.mjs} +1 -1
- package/dist/{chunk-VLUAFB54.mjs → chunk-DIPGFDJV.mjs} +1 -1
- package/dist/{chunk-IJXFDLYU.mjs → chunk-G4YWSH4Q.mjs} +1 -1
- package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
- package/dist/chunk-KRRS75EK.mjs +1 -0
- package/dist/{chunk-ANBHH4VA.mjs → chunk-LFX7M5VY.mjs} +1 -1
- package/dist/{chunk-IQ7LAP7P.mjs → chunk-MY3PX5GI.mjs} +1 -1
- package/dist/{chunk-KZR5SK2K.mjs → chunk-N56CFSQA.mjs} +1 -1
- package/dist/chunk-NAONLHIH.mjs +6 -0
- package/dist/{chunk-VZWV4G25.mjs → chunk-NMHAXISV.mjs} +1 -1
- package/dist/{chunk-NETY6BCN.mjs → chunk-OFQF5AEG.mjs} +1 -1
- package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
- package/dist/{chunk-G5HD4IFA.mjs → chunk-SEG6IDDX.mjs} +1 -1
- package/dist/chunk-U3TLYVTV.mjs +5 -0
- package/dist/chunk-Z2DEMZLU.mjs +1 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.d.ts +5 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.d.ts +2 -0
- package/dist/components/Layouts/Print.js +2 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.d.ts +2 -0
- package/dist/components/Layouts/SlideShow.js +4 -4
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +4 -4
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +7 -7
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +10 -10
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/index.js +12 -12
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +5 -5
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +5 -5
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +5 -5
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-4QEWBUVW.mjs +0 -2
- package/dist/chunk-FW4TOABU.mjs +0 -1
- package/dist/chunk-P2XZI7A4.mjs +0 -6
- package/dist/chunk-QHA556PO.mjs +0 -5
- package/dist/chunk-SQAWSBOK.mjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var Ct=Object.create;var ra=Object.defineProperty;var Nt=Object.getOwnPropertyDescriptor;var At=Object.getOwnPropertyNames;var Rt=Object.getPrototypeOf,Bt=Object.prototype.hasOwnProperty;var Pt=(a,t)=>{for(var o in t)ra(a,o,{get:t[o],enumerable:!0})},Da=(a,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of At(t))!Bt.call(a,r)&&r!==o&&ra(a,r,{get:()=>t[r],enumerable:!(s=Nt(t,r))||s.enumerable});return a};var q=(a,t,o)=>(o=a!=null?Ct(Rt(a)):{},Da(t||!a||!a.__esModule?ra(o,"default",{value:a,enumerable:!0}):o,a)),Tt=a=>Da(ra({},"__esModule",{value:!0}),a);var ho={};Pt(ho,{Primary:()=>fo,default:()=>go});module.exports=Tt(ho);var W=require("react");var Ga=require("react/jsx-runtime"),ha=({type:a="solid",iconName:t="cloud",size:o="lg",className:s})=>{let r=a.includes("fa-")?a+" ":"fa-"+a+" ",e="fa-"+t,d=s!=null?s:"",n=r+e+" fa-"+o+" "+d;return(0,Ga.jsx)("i",{className:n})};var Ya=require("clsx");var ka="-",St=a=>{let t=It(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:d=>{let n=d.split(ka);return n[0]===""&&n.length!==1&&n.shift(),Ua(n,t)||zt(d)},getConflictingClassGroupIds:(d,n)=>{let i=o[d]||[];return n&&s[d]?[...i,...s[d]]:i}}},Ua=(a,t)=>{var d;if(a.length===0)return t.classGroupId;let o=a[0],s=t.nextPart.get(o),r=s?Ua(a.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;let e=a.join(ka);return(d=t.validators.find(({validator:n})=>n(e)))==null?void 0:d.classGroupId},La=/^\[(.+)\]$/,zt=a=>{if(La.test(a)){let t=La.exec(a)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},It=a=>{let{theme:t,prefix:o}=a,s={nextPart:new Map,validators:[]};return Et(Object.entries(a.classGroups),o).forEach(([e,d])=>{va(d,s,e,t)}),s},va=(a,t,o,s)=>{a.forEach(r=>{if(typeof r=="string"){let e=r===""?t:Ha(t,r);e.classGroupId=o;return}if(typeof r=="function"){if(Mt(r)){va(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([e,d])=>{va(d,Ha(t,e),o,s)})})},Ha=(a,t)=>{let o=a;return t.split(ka).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Mt=a=>a.isThemeGetter,Et=(a,t)=>t?a.map(([o,s])=>{let r=s.map(e=>typeof e=="string"?t+e:typeof e=="object"?Object.fromEntries(Object.entries(e).map(([d,n])=>[t+d,n])):e);return[o,r]}):a,Ft=a=>{if(a<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map,r=(e,d)=>{o.set(e,d),t++,t>a&&(t=0,s=o,o=new Map)};return{get(e){let d=o.get(e);if(d!==void 0)return d;if((d=s.get(e))!==void 0)return r(e,d),d},set(e,d){o.has(e)?o.set(e,d):r(e,d)}}},Ja="!",Dt=a=>{let{separator:t,experimentalParseClassName:o}=a,s=t.length===1,r=t[0],e=t.length,d=n=>{let i=[],l=0,m=0,h;for(let f=0;f<n.length;f++){let x=n[f];if(l===0){if(x===r&&(s||n.slice(f,f+e)===t)){i.push(n.slice(m,f)),m=f+e;continue}if(x==="/"){h=f;continue}}x==="["?l++:x==="]"&&l--}let b=i.length===0?n:n.substring(m),C=b.startsWith(Ja),p=C?b.substring(1):b,y=h&&h>m?h-m:void 0;return{modifiers:i,hasImportantModifier:C,baseClassName:p,maybePostfixModifierPosition:y}};return o?n=>o({className:n,parseClassName:d}):d},Gt=a=>{if(a.length<=1)return a;let t=[],o=[];return a.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},Lt=a=>({cache:Ft(a.cacheSize),parseClassName:Dt(a),...St(a)}),Ht=/\s+/,Ut=(a,t)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,e=[],d=a.trim().split(Ht),n="";for(let i=d.length-1;i>=0;i-=1){let l=d[i],{modifiers:m,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:C}=o(l),p=!!C,y=s(p?b.substring(0,C):b);if(!y){if(!p){n=l+(n.length>0?" "+n:n);continue}if(y=s(b),!y){n=l+(n.length>0?" "+n:n);continue}p=!1}let f=Gt(m).join(":"),x=h?f+Ja:f,R=x+y;if(e.includes(R))continue;e.push(R);let F=r(y,p);for(let T=0;T<F.length;++T){let oa=F[T];e.push(x+oa)}n=l+(n.length>0?" "+n:n)}return n};function Jt(){let a=0,t,o,s="";for(;a<arguments.length;)(t=arguments[a++])&&(o=Oa(t))&&(s&&(s+=" "),s+=o);return s}var Oa=a=>{if(typeof a=="string")return a;let t,o="";for(let s=0;s<a.length;s++)a[s]&&(t=Oa(a[s]))&&(o&&(o+=" "),o+=t);return o};function Ot(a,...t){let o,s,r,e=d;function d(i){let l=t.reduce((m,h)=>h(m),a());return o=Lt(l),s=o.cache.get,r=o.cache.set,e=n,n(i)}function n(i){let l=s(i);if(l)return l;let m=Ut(i,o);return r(i,m),m}return function(){return e(Jt.apply(null,arguments))}}var v=a=>{let t=o=>o[a]||[];return t.isThemeGetter=!0,t},ja=/^\[(?:([a-z-]+):)?(.+)\]$/i,jt=/^\d+\/\d+$/,qt=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Ga|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=a=>K(a)||qt.has(a)||jt.test(a),D=a=>Y(a,"length",eo),K=a=>!!a&&!Number.isNaN(Number(a)),xa=a=>Y(a,"number",K),Z=a=>!!a&&Number.isInteger(Number(a)),Wt=a=>a.endsWith("%")&&K(a.slice(0,-1)),u=a=>ja.test(a),G=a=>Kt.test(a),_t=new Set(["length","size","percentage"]),Zt=a=>Y(a,_t,qa),$t=a=>Y(a,"position",qa),ao=new Set(["image","url"]),to=a=>Y(a,ao,ro),oo=a=>Y(a,"",so),$=()=>!0,Y=(a,t,o)=>{let s=ja.exec(a);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},eo=a=>Yt.test(a)&&!Qt.test(a),qa=()=>!1,so=a=>Xt.test(a),ro=a=>Vt.test(a);var no=()=>{let a=v("colors"),t=v("spacing"),o=v("blur"),s=v("brightness"),r=v("borderColor"),e=v("borderRadius"),d=v("borderSpacing"),n=v("borderWidth"),i=v("contrast"),l=v("grayscale"),m=v("hueRotate"),h=v("invert"),b=v("gap"),C=v("gradientColorStops"),p=v("gradientColorStopPositions"),y=v("inset"),f=v("margin"),x=v("opacity"),R=v("padding"),F=v("saturate"),T=v("scale"),oa=v("sepia"),Ta=v("skew"),Sa=v("space"),za=v("translate"),ya=()=>["auto","contain","none"],ba=()=>["auto","hidden","clip","visible","scroll"],ga=()=>["auto",u,t],w=()=>[u,t],Ia=()=>["",z,D],ea=()=>["auto",K,u],Ma=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],sa=()=>["solid","dashed","dotted","double","none"],Ea=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fa=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",u],Fa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[K,u];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[z,D],blur:["none","",G,u],brightness:S(),borderColor:[a],borderRadius:["none","","full",G,u],borderSpacing:w(),borderWidth:Ia(),contrast:S(),grayscale:_(),hueRotate:S(),invert:_(),gap:w(),gradientColorStops:[a],gradientColorStopPositions:[Wt,D],inset:ga(),margin:ga(),opacity:S(),padding:w(),saturate:S(),scale:S(),sepia:_(),skew:S(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":Fa()}],"break-before":[{"break-before":Fa()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ma(),u]}],overflow:[{overflow:ba()}],"overflow-x":[{"overflow-x":ba()}],"overflow-y":[{"overflow-y":ba()}],overscroll:[{overscroll:ya()}],"overscroll-x":[{"overscroll-x":ya()}],"overscroll-y":[{"overscroll-y":ya()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,u]}],basis:[{basis:ga()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Z,u]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",Z,u]},u]}],"col-start":[{"col-start":ea()}],"col-end":[{"col-end":ea()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[Z,u]},u]}],"row-start":[{"row-start":ea()}],"row-end":[{"row-end":ea()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...fa()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fa(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fa(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],Ga:[{Ga:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[Sa]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Sa]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,D]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xa]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",K,xa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",z,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...sa(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",z,D]}],"underline-offset":[{"underline-offset":["auto",z,u]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ma(),$t]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},to]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[e]}],"rounded-s":[{"rounded-s":[e]}],"rounded-e":[{"rounded-e":[e]}],"rounded-t":[{"rounded-t":[e]}],"rounded-r":[{"rounded-r":[e]}],"rounded-b":[{"rounded-b":[e]}],"rounded-l":[{"rounded-l":[e]}],"rounded-ss":[{"rounded-ss":[e]}],"rounded-se":[{"rounded-se":[e]}],"rounded-ee":[{"rounded-ee":[e]}],"rounded-es":[{"rounded-es":[e]}],"rounded-tl":[{"rounded-tl":[e]}],"rounded-tr":[{"rounded-tr":[e]}],"rounded-br":[{"rounded-br":[e]}],"rounded-bl":[{"rounded-bl":[e]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...sa(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:sa()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...sa()]}],"outline-offset":[{"outline-offset":[z,u]}],"outline-w":[{outline:[z,D]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:Ia()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[z,D]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",G,oo]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Ea(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ea()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",G,u]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[F]}],sepia:[{sepia:[oa]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[oa]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Z,u]}],"translate-x":[{"translate-x":[za]}],"translate-y":[{"translate-y":[za]}],"skew-x":[{"skew-x":[Ta]}],"skew-y":[{"skew-y":[Ta]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",a]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-Ga":[{"scroll-Ga":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[z,D,xa]}],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","Ga","pr","pb","pl"],px:["pr","pl"],py:["Ga","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-Ga","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Ga","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ka=Ot(no);function c(...a){return Ka((0,Ya.clsx)(a))}var Qa=({className:a,content:t,style:o})=>(0,Ga.jsx)("div",{className:c("mx-auto my-8 w-full",a),children:(0,Ga.jsx)("div",{className:c("border py-3 px-6 flex items-center rounded",{"border-border bg-card":o==="info","border-error bg-error/30":o==="error","border-success bg-success/30":o==="success","border-warning bg-warning/30":o==="warning"}),children:(0,Ga.jsx)(B,{content:t,enableGutter:!1,enableProse:!1})})});var Xa=require("@radix-ui/react-slot"),Va=require("class-variance-authority"),Wa=q(require("react")),io=(0,Va.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),J=Wa.forwardRef(({asChild:a=!1,className:t,size:o,variant:s,...r},e)=>(0,Ga.jsx)(a?Xa.Slot:"button",{className:c(io({className:t,size:o,variant:s})),ref:e,...r}));J.displayName="Button";var wa=q(require("next/link")),O=a=>{let{type:t,appearance:o="inline",children:s,className:r,label:e,newTab:d,reference:n,size:i,url:l}=a,m=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:l;if(!m)return null;let h=o==="link"?"clear":i,b=d?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,Ga.jsxs)(wa.default,{className:c(r),href:m||l||"",...b,children:[e&&e,s&&s]}):(0,Ga.jsx)(J,{asChild:!0,className:r,size:h,variant:o,children:(0,Ga.jsxs)(wa.default,{className:c(r),href:m||l||"",...b,children:[e&&e,s&&s]})})};var Q=({links:a,richText:t})=>(0,Ga.jsx)("div",{className:"container",children:(0,Ga.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Ga.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ga.jsx)(B,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ga.jsx)("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:o},s)=>(0,Ga.jsx)(O,{size:"lg",...o},s))})]})});var da=require("prism-react-renderer");var Za=require("lucide-react");function at({code:a}){let[t,o]=(0,$a.useState)("Copy");function s(){t==="Copy"&&(o(()=>"Copied!"),setTimeout(()=>{o(()=>"Copy")},1e3))}return(0,Ga.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ga.jsxs)(J,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(a),s()},children:[(0,Ga.jsx)("p",{children:t}),(0,Ga.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ga.jsx)(Za.ClipboardCopy,{})})]})})}var tt=({code:a,language:t=""})=>a?(0,Ga.jsx)(da.Highlight,{code:a,language:t,theme:da.themes.vsDark,children:({getLineProps:o,getTokenProps:s,tokens:r})=>(0,Ga.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((e,d)=>(0,Ga.jsxs)("div",{...o({className:"table-row",line:e}),children:[(0,Ga.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:d+1}),(0,Ga.jsx)("span",{className:"table-cell pl-4",children:e.map((n,i)=>(0,Ga.jsx)("span",{...s({token:n})},i))})]},d)),(0,Ga.jsx)(at,{code:a})]})}):null;var ot=({className:a,code:t,language:o})=>(0,Ga.jsx)("div",{className:[a,"not-prose"].filter(Boolean).join(" "),children:(0,Ga.jsx)(tt,{code:t,language:o})});var st=q(require("next/image")),lo={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},et="data:image/png;base64,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",rt=a=>{let{alt:t,fill:o,imgClassName:s,priority:r,resource:e,size:d,src:n,loading:i}=a,l,m,h=t,b=n||"";if(!b&&e&&typeof e=="object"){let{alt:y,filename:f,height:x,url:R,width:F}=e;if(x&&x>500){let T=500/x;l=F*T,m=x*T}else l=F,m=x;h=y||"",b=R||et}let C=i||"lazy",p=d||Object.entries(lo).map(([,y])=>`(max-width: ${y}px) ${y*2}w`).join(", ");return(0,Ga.jsx)("picture",{children:(0,Ga.jsx)(st.default,{alt:h||"",className:c(s),fill:o,height:o?void 0:m,placeholder:"blur",blurDataURL:et,priority:C!=="lazy"&&r,quality:100,loading:C,sizes:p,src:b,width:o?void 0:l})})};var nt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var dt=()=>{if(nt){let a=window.location.protocol,t=window.location.hostname,o=window.location.port;return`${a}//${t}${o?`:${o}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var it=a=>{let{onClick:t,resource:o,videoClassName:s}=a,r=(0,W.useRef)(null);if((0,W.useEffect)(()=>{let{current:e}=r;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return(0,Ga.jsx)("video",{autoPlay:!0,className:c(s),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Ga.jsx)("source",{src:`${dt()}/media/${e}`})})}return null};var ca=a=>{var d;let{className:t,htmlElement:o="div",resource:s}=a,r=typeof s=="object"&&((d=s==null?void 0:s.mimeType)==null?void 0:d.includes("video"));return(0,Ga.jsx)(o||W.Fragment,{...o!==null?{className:t}:{},children:r?(0,Ga.jsx)(it,{...a}):(0,Ga.jsx)(rt,{...a})})};var H=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,Ga.jsx)("div",{className:c("h-full ",{container:o},t),children:(0,Ga.jsx)(ca,{imgClassName:c("rounded-[0.8rem]",s),className:"flex justify-center",resource:r,src:e})})};var ct=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,Ga.jsx)("div",{className:c("",{container:o},t),children:(0,Ga.jsx)(ca,{imgClassName:c("rounded-[0.8rem]",s),resource:r,src:e})})};function ut(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function mt({variant:a="outline",className:t,icon:o,iconSize:s="large",width:r="auto",order:e=0,heading:d,subheading:n,content:i,statistic:l,buttonText:m,buttonHref:h}){let b={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},C={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Ga.jsxs)("div",{className:c("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",b[a],a==="outline"?"text-gray-900":"text-white",t,C[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[(0,Ga.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ga.jsx)(co,{icon:o,heading:d,variant:a,iconSize:s})}),l&&(0,Ga.jsx)("div",{className:"mb-6",children:(0,Ga.jsx)("div",{className:c("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:l})}),n&&(0,Ga.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:n}),i&&typeof i=="object"&&(0,Ga.jsx)("div",{className:c("space-y-6"),children:(0,Ga.jsx)(B,{enableGutter:!1,content:i,enableProse:!1,className:c(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),i&&typeof i=="string"&&(0,Ga.jsx)("div",{className:c("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:i}),m&&(0,Ga.jsx)("div",{className:"mt-auto Ga-6 flex items-center justify-center",children:(0,Ga.jsx)(J,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Ga.jsx)("a",{href:h,children:m})})}),a==="radial"&&(0,Ga.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var co=({icon:a,heading:t,variant:o,iconSize:s})=>a&&s==="small"?(0,Ga.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[ut(a)&&(0,Ga.jsx)("div",{className:c("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"mt-2":""),children:(0,Ga.jsx)(ha,{type:a.type,iconName:a.iconName,size:"2x"})}),(0,Ga.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:t})]}):a?(0,Ga.jsxs)("div",{className:"flex flex-col gap-4",children:[ut(a)&&(0,Ga.jsx)("div",{className:c("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":""),children:(0,Ga.jsx)(ha,{type:a.type,iconName:a.iconName,size:"4x"})}),(0,Ga.jsx)("h3",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ga.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ga.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var X=({title:a,description:t,features:o,id:s,nested:r=!1})=>(0,Ga.jsxs)("section",{className:c(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&(0,Ga.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:s||"",children:a}),t&&typeof t=="string"&&(0,Ga.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Ga.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,Ga.jsx)(B,{content:t,enableGutter:!1})}),(0,Ga.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${o?o.length:1}`,children:o&&o.map((e,d)=>{var i,l,m,h,b;let n=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return(0,Ga.jsx)(mt,{variant:((i=e.settings)==null?void 0:i.card)==="default"?"light":((l=e.settings)==null?void 0:l.card)||"outline",icon:n()||void 0,iconSize:((m=e.settings)==null?void 0:m.iconSize)||"large",width:"auto",order:d,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(h=e.link)!=null&&h.url?"Find out more":void 0,buttonHref:((b=e.link)==null?void 0:b.url)||void 0},d)})})]});var ua=q(require("react"));function ta({nodes:a}){return(0,Ga.jsx)(ua.Fragment,{children:a==null?void 0:a.map((t,o)=>{if(t==null)return null;if(t.type==="text"&&t.text){let e=(0,Ga.jsx)(ua.default.Fragment,{children:t.text},o);return t.format&1&&(e=(0,Ga.jsx)("strong",{children:e},o)),t.format&2&&(e=(0,Ga.jsx)("em",{children:e},o)),t.format&4&&(e=(0,Ga.jsx)("span",{style:{textDecoration:"line-through"},children:e},o)),t.format&8&&(e=(0,Ga.jsx)("span",{style:{textDecoration:"underline"},children:e},o)),t.format&16&&(e=(0,Ga.jsx)("code",{children:t.text},o)),t.format&32&&(e=(0,Ga.jsx)("sub",{children:e},o)),t.format&64&&(e=(0,Ga.jsx)("sup",{children:e},o)),e}if(t.type==="table")return(0,Ga.jsx)("table",{children:(0,Ga.jsx)("tbody",{children:t.children.map((e,d)=>(0,Ga.jsx)("tr",{children:e.children.map((n,i)=>(0,Ga.jsx)("td",{children:ta({nodes:n.children})},i))},d))})},o);let s=e=>{if(e.children==null)return null;if((e==null?void 0:e.type)==="list"&&(e==null?void 0:e.listType)==="check")for(let d of e.children)"checked"in d&&(d!=null&&d.checked||(d.checked=!1));return ta({nodes:e.children})},r="children"in t?s(t):"";if(t.type==="block"){let e=t.fields,d=e==null?void 0:e.blockType;if(!e||!d)return null;switch(d){case"cta":return(0,Ga.jsx)(Q,{...e},o);case"mediaBlock":return(0,Ga.jsx)(H,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"imageBlock":return(0,Ga.jsx)(ct,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"banner":return(0,Ga.jsx)(Qa,{className:"col-start-2 mb-4",...e},o);case"code":return(0,Ga.jsx)(ot,{className:"col-start-2",...e},o);case"features":return(0,Ga.jsx)(X,{...e,nested:!0},o);case"reusableContentBlock":ta({nodes:e.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ga.jsx)("br",{className:"col-start-2"},o);case"paragraph":return(0,Ga.jsx)("p",{className:"col-start-2",children:r},o);case"heading":{let e=t==null?void 0:t.tag;return(0,Ga.jsx)(e,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},o)}case"list":{let e=t==null?void 0:t.tag;return(0,Ga.jsx)(e,{className:"list col-start-2",children:r},o)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ga.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},o):(0,Ga.jsx)("li",{value:t==null?void 0:t.value,children:r},o);case"quote":return(0,Ga.jsx)("blockquote",{className:"col-start-2",children:r},o);case"link":{let e=t.fields;return(0,Ga.jsx)(O,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}case"autolink":{let e=t.fields;return(0,Ga.jsx)(O,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}default:return null}})})}var B=({className:a,content:t,enableGutter:o=!0,enableProse:s=!0})=>{var r;return t?(0,Ga.jsx)("div",{className:c({"container ":o,"max-w-none":!o,"mx-auto prose dark:prose-invert ":s},a),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ta({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var ma=a=>{var n;let{columns:t,theme:o}=a,s={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},e=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let l of i.root.children)if(e(l))return!0}if(i.children){for(let l of i.children)if(e(l))return!0}return!1},d=(i,l,m)=>{if(l==="none"||m==="full")return{processedRichText:i,heading:null};let h=i,b=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(h={...i,root:{...i.root,children:i.root.children.slice(1)}},b=i.root.children[0]),{processedRichText:h,heading:b}};return(0,Ga.jsx)("div",{className:"container my-6",children:(0,Ga.jsx)("div",{className:c("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(n=o==null?void 0:o.settings)!=null&&n.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,l)=>{var f,x;let{enableLink:m,link:h,richText:b,size:C}=i,{processedRichText:p,heading:y}=d(b,((f=o==null?void 0:o.settings)==null?void 0:f.box)||"none",C||"full");return(0,Ga.jsxs)("div",{className:c(`col-span-4 lg:col-span-${s[C]}`,{"md:col-span-2":C!=="full"},r[C!=="full"&&!e(b)&&((x=o==null?void 0:o.settings)==null?void 0:x.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${l+1}00`),children:[y&&(0,Ga.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:y.children[0].text}),p&&(0,Ga.jsx)(B,{content:p,enableGutter:!1,className:"rich-text"}),m&&(0,Ga.jsx)(O,{...h})]},l)})})})};var ft=q(require("next/image"));var bt=a=>{let{customId:t,reusableContent:o}=a;return typeof o=="object"&&o!==null?(0,Ga.jsx)(uo,{blocks:o.layout}):(0,Ga.jsx)(Ga.Fragment,{})},yt={content:ma,cta:Q,mediaBlock:H,imageBlock:H,features:X},uo=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,Ga.jsx)("section",{id:"render-blocks",children:t.map((s,r)=>{var n,i;let{blockType:e}=s,d=s==null?void 0:s.theme;if(e&&e in yt){let l=yt[e];if(l)return(0,Ga.jsx)("div",{className:"py-6 relative",children:(0,Ga.jsx)("div",{className:c(((n=d==null?void 0:d.settings)==null?void 0:n.theme)==="dark"?"dark":((i=d==null?void 0:d.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,Ga.jsx)(l,{...s})})},r)}return null})}):null};var gt={content:ma,cta:Q,mediaBlock:H,imageBlock:H,features:X,reusableContentBlock:bt},ht=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,Ga.jsx)("section",{id:"render-blocks",className:c(a.fill?"h-full w-full":""),children:t.map((s,r)=>{var n,i;let{blockType:e}=s,d=s==null?void 0:s.theme;if(e&&e in gt){let l=gt[e];if(l)return(0,Ga.jsxs)("div",{className:c("py-6 relative",a.fill&&"flex h-full items-center justify-center"),children:[(0,Ga.jsx)(mo,{block:s,index:r}),(0,Ga.jsx)("div",{className:c("container h-full",((n=d==null?void 0:d.settings)==null?void 0:n.theme)==="dark"?"dark":((i=d==null?void 0:d.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,Ga.jsx)(l,{...s})})]},r)}return null})}):null},mo=a=>{var o,s,r,e,d;if(!("theme"in a.block))return null;let t=(o=a.block)==null?void 0:o.theme;if(t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Ga.jsxs)("div",{className:c("absolute inset-0 w-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,Ga.jsx)(ft.default,{src:((r=(s=t.settings)==null?void 0:s.image)==null?void 0:r.url)||"/placeholder.svg",alt:((d=(e=t.settings)==null?void 0:e.image)==null?void 0:d.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Ga.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Ga.jsx)("div",{className:c("absolute inset-0 -z-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var V=require("framer-motion");var ys=require("pagedjs");var Pa=q(require("next/image"));var pa="../../cortex-reply-dark-XPAJJJYY.png";var xt=()=>(0,Ga.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
5
|
-
dark bg-background text-primary`,children:[(0,
|
|
6
|
-
${
|
|
7
|
-
w-full h-full bg-cover bg-center`,children:
|
|
4
|
+
"use strict";"use client";var wt=Object.create;var ra=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,Bt=Object.prototype.hasOwnProperty;var Pt=(a,t)=>{for(var o in t)ra(a,o,{get:t[o],enumerable:!0})},Ea=(a,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Nt(t))!Bt.call(a,r)&&r!==o&&ra(a,r,{get:()=>t[r],enumerable:!(s=Ct(t,r))||s.enumerable});return a};var q=(a,t,o)=>(o=a!=null?wt(At(a)):{},Ea(t||!a||!a.__esModule?ra(o,"default",{value:a,enumerable:!0}):o,a)),Rt=a=>Ea(ra({},"__esModule",{value:!0}),a);var go={};Pt(go,{Primary:()=>bo,default:()=>po});module.exports=Rt(go);var K=require("react");var Da=require("react/jsx-runtime"),fa=({type:a="solid",iconName:t="cloud",size:o="lg",className:s})=>{let r=a.includes("fa-")?a+" ":"fa-"+a+" ",e="fa-"+t,n=s!=null?s:"",d=r+e+" fa-"+o+" "+n;return(0,Da.jsx)("i",{className:d})};var Qa=require("clsx");var va="-",Tt=a=>{let t=It(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:n=>{let d=n.split(va);return d[0]===""&&d.length!==1&&d.shift(),Ua(d,t)||St(n)},getConflictingClassGroupIds:(n,d)=>{let i=o[n]||[];return d&&s[n]?[...i,...s[n]]:i}}},Ua=(a,t)=>{var n;if(a.length===0)return t.classGroupId;let o=a[0],s=t.nextPart.get(o),r=s?Ua(a.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;let e=a.join(va);return(n=t.validators.find(({validator:d})=>d(e)))==null?void 0:n.classGroupId},La=/^\[(.+)\]$/,St=a=>{if(La.test(a)){let t=La.exec(a)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},It=a=>{let{theme:t,prefix:o}=a,s={nextPart:new Map,validators:[]};return Mt(Object.entries(a.classGroups),o).forEach(([e,n])=>{xa(n,s,e,t)}),s},xa=(a,t,o,s)=>{a.forEach(r=>{if(typeof r=="string"){let e=r===""?t:Ga(t,r);e.classGroupId=o;return}if(typeof r=="function"){if(zt(r)){xa(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([e,n])=>{xa(n,Ga(t,e),o,s)})})},Ga=(a,t)=>{let o=a;return t.split(va).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},zt=a=>a.isThemeGetter,Mt=(a,t)=>t?a.map(([o,s])=>{let r=s.map(e=>typeof e=="string"?t+e:typeof e=="object"?Object.fromEntries(Object.entries(e).map(([n,d])=>[t+n,d])):e);return[o,r]}):a,Ft=a=>{if(a<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map,r=(e,n)=>{o.set(e,n),t++,t>a&&(t=0,s=o,o=new Map)};return{get(e){let n=o.get(e);if(n!==void 0)return n;if((n=s.get(e))!==void 0)return r(e,n),n},set(e,n){o.has(e)?o.set(e,n):r(e,n)}}},Ha="!",Et=a=>{let{separator:t,experimentalParseClassName:o}=a,s=t.length===1,r=t[0],e=t.length,n=d=>{let i=[],c=0,y=0,g;for(let p=0;p<d.length;p++){let h=d[p];if(c===0){if(h===r&&(s||d.slice(p,p+e)===t)){i.push(d.slice(y,p)),y=p+e;continue}if(h==="/"){g=p;continue}}h==="["?c++:h==="]"&&c--}let b=i.length===0?d:d.substring(y),w=b.startsWith(Ha),A=w?b.substring(1):b,u=g&&g>y?g-y:void 0;return{modifiers:i,hasImportantModifier:w,baseClassName:A,maybePostfixModifierPosition:u}};return o?d=>o({className:d,parseClassName:n}):n},Dt=a=>{if(a.length<=1)return a;let t=[],o=[];return a.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},Lt=a=>({cache:Ft(a.cacheSize),parseClassName:Et(a),...Tt(a)}),Gt=/\s+/,Ut=(a,t)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,e=[],n=a.trim().split(Gt),d="";for(let i=n.length-1;i>=0;i-=1){let c=n[i],{modifiers:y,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:w}=o(c),A=!!w,u=s(A?b.substring(0,w):b);if(!u){if(!A){d=c+(d.length>0?" "+d:d);continue}if(u=s(b),!u){d=c+(d.length>0?" "+d:d);continue}A=!1}let p=Dt(y).join(":"),h=g?p+Ha:p,B=h+u;if(e.includes(B))continue;e.push(B);let E=r(u,A);for(let T=0;T<E.length;++T){let oa=E[T];e.push(h+oa)}d=c+(d.length>0?" "+d:d)}return d};function Ht(){let a=0,t,o,s="";for(;a<arguments.length;)(t=arguments[a++])&&(o=ja(t))&&(s&&(s+=" "),s+=o);return s}var ja=a=>{if(typeof a=="string")return a;let t,o="";for(let s=0;s<a.length;s++)a[s]&&(t=ja(a[s]))&&(o&&(o+=" "),o+=t);return o};function jt(a,...t){let o,s,r,e=n;function n(i){let c=t.reduce((y,g)=>g(y),a());return o=Lt(c),s=o.cache.get,r=o.cache.set,e=d,d(i)}function d(i){let c=s(i);if(c)return c;let y=Ut(i,o);return r(i,y),y}return function(){return e(Ht.apply(null,arguments))}}var x=a=>{let t=o=>o[a]||[];return t.isThemeGetter=!0,t},Oa=/^\[(?:([a-Da-]+):)?(.+)\]$/i,Ot=/^\d+\/\d+$/,Vt=new Set(["px","full","screen"]),qt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qt=/\d+(%|px|r?em|[sdl]?Da([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jt=/^(inset_)?-?((\d+)?\.?(\d+)[a-Da]+|0)_-?((\d+)?\.?(\d+)[a-Da]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,I=a=>Q(a)||Vt.has(a)||Ot.test(a),D=a=>Y(a,"length",oo),Q=a=>!!a&&!Number.isNaN(Number(a)),ha=a=>Y(a,"number",Q),Z=a=>!!a&&Number.isInteger(Number(a)),Xt=a=>a.endsWith("%")&&Q(a.slice(0,-1)),m=a=>Oa.test(a),L=a=>qt.test(a),Kt=new Set(["length","size","percentage"]),Wt=a=>Y(a,Kt,Va),Zt=a=>Y(a,"position",Va),$t=new Set(["image","url"]),ao=a=>Y(a,$t,so),to=a=>Y(a,"",eo),$=()=>!0,Y=(a,t,o)=>{let s=Oa.exec(a);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},oo=a=>Qt.test(a)&&!Yt.test(a),Va=()=>!1,eo=a=>Jt.test(a),so=a=>_t.test(a);var ro=()=>{let a=x("colors"),t=x("spacing"),o=x("blur"),s=x("brightness"),r=x("borderColor"),e=x("borderRadius"),n=x("borderSpacing"),d=x("borderWidth"),i=x("contrast"),c=x("grayscale"),y=x("hueRotate"),g=x("invert"),b=x("gap"),w=x("gradientColorStops"),A=x("gradientColorStopPositions"),u=x("inset"),p=x("margin"),h=x("opacity"),B=x("padding"),E=x("saturate"),T=x("scale"),oa=x("sepia"),Ra=x("skew"),Ta=x("space"),Sa=x("translate"),ya=()=>["auto","contain","none"],pa=()=>["auto","hidden","clip","visible","scroll"],ba=()=>["auto",m,t],k=()=>[m,t],Ia=()=>["",I,D],ea=()=>["auto",Q,m],za=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],sa=()=>["solid","dashed","dotted","double","none"],Ma=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ga=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",m],Fa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[Q,m];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[I,D],blur:["none","",L,m],brightness:S(),borderColor:[a],borderRadius:["none","","full",L,m],borderSpacing:k(),borderWidth:Ia(),contrast:S(),grayscale:W(),hueRotate:S(),invert:W(),gap:k(),gradientColorStops:[a],gradientColorStopPositions:[Xt,D],inset:ba(),margin:ba(),opacity:S(),padding:k(),saturate:S(),scale:S(),sepia:W(),skew:S(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":Fa()}],"break-before":[{"break-before":Fa()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...za(),m]}],overflow:[{overflow:pa()}],"overflow-x":[{"overflow-x":pa()}],"overflow-y":[{"overflow-y":pa()}],overscroll:[{overscroll:ya()}],"overscroll-x":[{"overscroll-x":ya()}],"overscroll-y":[{"overscroll-y":ya()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],Da:[{Da:["auto",Z,m]}],basis:[{basis:ba()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Z,m]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",Z,m]},m]}],"col-start":[{"col-start":ea()}],"col-end":[{"col-end":ea()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[Z,m]},m]}],"row-start":[{"row-start":ea()}],"row-end":[{"row-end":ea()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-y":[{"gap-y":[b]}],"justify-content":[{justify:["normal",...ga()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ga(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ga(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],pe:[{pe:[B]}],pt:[{pt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],Da:[{Da:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[Ta]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ta]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",L,D]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ha]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",m]}],"line-clamp":[{"line-clamp":["none",Q,ha]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",I,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...sa(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",I,D]}],"underline-offset":[{"underline-offset":["auto",I,m]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...za(),Zt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ao]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[e]}],"rounded-s":[{"rounded-s":[e]}],"rounded-e":[{"rounded-e":[e]}],"rounded-t":[{"rounded-t":[e]}],"rounded-r":[{"rounded-r":[e]}],"rounded-b":[{"rounded-b":[e]}],"rounded-l":[{"rounded-l":[e]}],"rounded-ss":[{"rounded-ss":[e]}],"rounded-se":[{"rounded-se":[e]}],"rounded-ee":[{"rounded-ee":[e]}],"rounded-es":[{"rounded-es":[e]}],"rounded-tl":[{"rounded-tl":[e]}],"rounded-tr":[{"rounded-tr":[e]}],"rounded-br":[{"rounded-br":[e]}],"rounded-bl":[{"rounded-bl":[e]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...sa(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:sa()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...sa()]}],"outline-offset":[{"outline-offset":[I,m]}],"outline-w":[{outline:[I,D]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:Ia()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[I,D]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",L,to]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...Ma(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ma()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",L,m]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[g]}],saturate:[{saturate:[E]}],sepia:[{sepia:[oa]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[oa]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Z,m]}],"translate-x":[{"translate-x":[Sa]}],"translate-y":[{"translate-y":[Sa]}],"skew-x":[{"skew-x":[Ra]}],"skew-y":[{"skew-y":[Ra]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],accent:[{accent:["auto",a]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",m]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-Da":[{"scroll-Da":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[I,D,ha]}],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","Da","mr","mb","ml"],mx:["mr","ml"],my:["Da","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Da","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Da","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var qa=jt(ro);function l(...a){return qa((0,Qa.clsx)(a))}var Ya=({className:a,content:t,style:o})=>(0,Da.jsx)("div",{className:l("mx-auto my-8 w-full",a),children:(0,Da.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":o==="info","border-error bg-error/30":o==="error","border-success bg-success/30":o==="success","border-warning bg-warning/30":o==="warning"}),children:(0,Da.jsx)(P,{content:t,enableGutter:!1,enableProse:!1})})});var Ja=require("@radix-ui/react-slot"),_a=require("class-variance-authority"),Xa=q(require("react")),no=(0,_a.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),j=Xa.forwardRef(({asChild:a=!1,className:t,size:o,variant:s,...r},e)=>(0,Da.jsx)(a?Ja.Slot:"button",{className:l(no({className:t,size:o,variant:s})),ref:e,...r}));j.displayName="Button";var ka=q(require("next/link")),O=a=>{let{type:t,appearance:o="inline",children:s,className:r,label:e,newTab:n,reference:d,size:i,url:c}=a,y=t==="reference"&&typeof(d==null?void 0:d.value)=="object"&&d.value.slug?`${(d==null?void 0:d.relationTo)!=="pages"?`/${d==null?void 0:d.relationTo}`:""}/${d.value.slug}`:c;if(!y)return null;let g=o==="link"?"clear":i,b=n?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,Da.jsxs)(ka.default,{className:l(r),href:y||c||"",...b,children:[e&&e,s&&s]}):(0,Da.jsx)(j,{asChild:!0,className:r,size:g,variant:o,children:(0,Da.jsxs)(ka.default,{className:l(r),href:y||c||"",...b,children:[e&&e,s&&s]})})};var J=({links:a,richText:t})=>(0,Da.jsx)("div",{className:"container",children:(0,Da.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Da.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Da.jsx)(P,{className:"mb-0",content:t,enableGutter:!1})}),(0,Da.jsx)("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:o},s)=>(0,Da.jsx)(O,{size:"lg",...o},s))})]})});var da=require("prism-react-renderer");var Wa=require("lucide-react");function $a({code:a}){let[t,o]=(0,K.useState)("Copy");function s(){t==="Copy"&&(o(()=>"Copied!"),setTimeout(()=>{o(()=>"Copy")},1e3))}return(0,Da.jsx)("div",{className:"flex justify-end align-middle",children:(0,Da.jsxs)(j,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(a),s()},children:[(0,Da.jsx)("p",{children:t}),(0,Da.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Da.jsx)(Wa.ClipboardCopy,{})})]})})}var at=({code:a,language:t=""})=>a?(0,Da.jsx)(da.Highlight,{code:a,language:t,theme:da.themes.vsDark,children:({getLineProps:o,getTokenProps:s,tokens:r})=>(0,Da.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((e,n)=>(0,Da.jsxs)("div",{...o({className:"table-row",line:e}),children:[(0,Da.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,Da.jsx)("span",{className:"table-cell pl-4",children:e.map((d,i)=>(0,Da.jsx)("span",{...s({token:d})},i))})]},n)),(0,Da.jsx)($a,{code:a})]})}):null;var tt=({className:a,code:t,language:o})=>(0,Da.jsx)("div",{className:[a,"not-prose"].filter(Boolean).join(" "),children:(0,Da.jsx)(at,{code:t,language:o})});var et=q(require("next/image")),io={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},ot="data:image/png;base64,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",st=a=>{let{alt:t,fill:o,imgClassName:s,priority:r,resource:e,size:n,src:d,loading:i}=a,c,y,g=t,b=d||"";if(!b&&e&&typeof e=="object"){let{alt:u,filename:p,height:h,url:B,width:E}=e;if(h&&h>500){let T=500/h;c=E*T,y=h*T}else c=E,y=h;g=u||"",b=B||ot}let w=i||"lazy",A=n||Object.entries(io).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,Da.jsx)("picture",{children:(0,Da.jsx)(et.default,{alt:g||"",className:l(s),fill:o,height:o?void 0:y,placeholder:"blur",blurDataURL:ot,priority:w!=="lazy"&&r,quality:100,loading:w,sizes:A,src:b,width:o?void 0:c})})};var rt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var nt=()=>{if(rt){let a=window.location.protocol,t=window.location.hostname,o=window.location.port;return`${a}//${t}${o?`:${o}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var dt=a=>{let{onClick:t,resource:o,videoClassName:s}=a,r=(0,K.useRef)(null);if((0,K.useEffect)(()=>{let{current:e}=r;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return(0,Da.jsx)("video",{autoPlay:!0,className:l(s),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Da.jsx)("source",{src:`${nt()}/media/${e}`})})}return null};var ca=a=>{var n;let{className:t,htmlElement:o="div",resource:s}=a,r=typeof s=="object"&&((n=s==null?void 0:s.mimeType)==null?void 0:n.includes("video"));return(0,Da.jsx)(o||K.Fragment,{...o!==null?{className:t}:{},children:r?(0,Da.jsx)(dt,{...a}):(0,Da.jsx)(st,{...a})})};var U=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,Da.jsx)("div",{className:l("h-full ",{container:o},t),children:(0,Da.jsx)(ca,{imgClassName:l("rounded-[0.8rem]",s),className:"flex justify-center",resource:r,src:e})})};var lt=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,Da.jsx)("div",{className:l("",{container:o},t),children:(0,Da.jsx)(ca,{imgClassName:l("rounded-[0.8rem]",s),resource:r,src:e})})};function ct(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function ut({variant:a="outline",className:t,icon:o,iconSize:s="large",width:r="auto",order:e=0,heading:n,subheading:d,content:i,statistic:c,buttonText:y,buttonHref:g}){let b={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},w={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Da.jsxs)("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",b[a],a==="outline"?"text-gray-900":"text-white",t,w[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[(0,Da.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Da.jsx)(lo,{icon:o,heading:n,variant:a,iconSize:s})}),c&&(0,Da.jsx)("div",{className:"mb-6",children:(0,Da.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:c})}),d&&(0,Da.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:d}),i&&typeof i=="object"&&(0,Da.jsx)("div",{className:l("space-y-6"),children:(0,Da.jsx)(P,{enableGutter:!1,content:i,enableProse:!1,className:l(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),i&&typeof i=="string"&&(0,Da.jsx)("div",{className:l("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:i}),y&&(0,Da.jsx)("div",{className:"Da-auto pt-6 flex items-center justify-center",children:(0,Da.jsx)(j,{size:"lg",className:"text-white text-lg rounded-xl w-full Da-auto items-center justify-center",asChild:!0,children:(0,Da.jsx)("a",{href:g,children:y})})}),a==="radial"&&(0,Da.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var lo=({icon:a,heading:t,variant:o,iconSize:s})=>a&&s==="small"?(0,Da.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[ct(a)&&(0,Da.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"Da-2":""),children:(0,Da.jsx)(fa,{type:a.type,iconName:a.iconName,size:"2x"})}),(0,Da.jsx)("div",{className:l("font-semibold",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:t})]}):a?(0,Da.jsxs)("div",{className:"flex flex-col gap-4",children:[ct(a)&&(0,Da.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":""),children:(0,Da.jsx)(fa,{type:a.type,iconName:a.iconName,size:"4x"})}),(0,Da.jsx)("h3",{className:l("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Da.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Da.jsx)("div",{className:l("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var _=({title:a,description:t,features:o,id:s,nested:r=!1})=>(0,Da.jsxs)("section",{className:l(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&(0,Da.jsx)("h2",{className:"mb-6 Da-0 text-2xl font-bold md:text-3xl text-primary",id:s||"",children:a}),t&&typeof t=="string"&&(0,Da.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Da.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,Da.jsx)(P,{content:t,enableGutter:!1})}),(0,Da.jsx)("div",{className:`grid gap-8 Da-10 md:grid-cols-${o?o.length:1}`,children:o&&o.map((e,n)=>{var i,c,y,g,b;let d=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return(0,Da.jsx)(ut,{variant:((i=e.settings)==null?void 0:i.card)==="default"?"light":((c=e.settings)==null?void 0:c.card)||"outline",icon:d()||void 0,iconSize:((y=e.settings)==null?void 0:y.iconSize)||"large",width:"auto",order:n,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(g=e.link)!=null&&g.url?"Find out more":void 0,buttonHref:((b=e.link)==null?void 0:b.url)||void 0},n)})})]});var ua=q(require("react"));function ta({nodes:a}){return(0,Da.jsx)(ua.Fragment,{children:a==null?void 0:a.map((t,o)=>{if(t==null)return null;if(t.type==="text"&&t.text){let e=(0,Da.jsx)(ua.default.Fragment,{children:t.text},o);return t.format&1&&(e=(0,Da.jsx)("strong",{children:e},o)),t.format&2&&(e=(0,Da.jsx)("em",{children:e},o)),t.format&4&&(e=(0,Da.jsx)("span",{style:{textDecoration:"line-through"},children:e},o)),t.format&8&&(e=(0,Da.jsx)("span",{style:{textDecoration:"underline"},children:e},o)),t.format&16&&(e=(0,Da.jsx)("code",{children:t.text},o)),t.format&32&&(e=(0,Da.jsx)("sub",{children:e},o)),t.format&64&&(e=(0,Da.jsx)("sup",{children:e},o)),e}if(t.type==="table")return(0,Da.jsx)("table",{children:(0,Da.jsx)("tbody",{children:t.children.map((e,n)=>(0,Da.jsx)("tr",{children:e.children.map((d,i)=>(0,Da.jsx)("td",{children:ta({nodes:d.children})},i))},n))})},o);let s=e=>{if(e.children==null)return null;if((e==null?void 0:e.type)==="list"&&(e==null?void 0:e.listType)==="check")for(let n of e.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return ta({nodes:e.children})},r="children"in t?s(t):"";if(t.type==="block"){let e=t.fields,n=e==null?void 0:e.blockType;if(!e||!n)return null;switch(n){case"cta":return(0,Da.jsx)(J,{...e},o);case"mediaBlock":return(0,Da.jsx)(U,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"imageBlock":return(0,Da.jsx)(lt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"banner":return(0,Da.jsx)(Ya,{className:"col-start-2 mb-4",...e},o);case"code":return(0,Da.jsx)(tt,{className:"col-start-2",...e},o);case"features":return(0,Da.jsx)(_,{...e,nested:!0},o);case"reusableContentBlock":ta({nodes:e.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Da.jsx)("br",{className:"col-start-2"},o);case"paragraph":return(0,Da.jsx)("p",{className:"col-start-2",children:r},o);case"heading":{let e=t==null?void 0:t.tag;return(0,Da.jsx)(e,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},o)}case"list":{let e=t==null?void 0:t.tag;return(0,Da.jsx)(e,{className:"list col-start-2",children:r},o)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Da.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},o):(0,Da.jsx)("li",{value:t==null?void 0:t.value,children:r},o);case"quote":return(0,Da.jsx)("blockquote",{className:"col-start-2",children:r},o);case"link":{let e=t.fields;return(0,Da.jsx)(O,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}case"autolink":{let e=t.fields;return(0,Da.jsx)(O,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}default:return null}})})}var P=({className:a,content:t,enableGutter:o=!0,enableProse:s=!0})=>{var r;return t?(0,Da.jsx)("div",{className:l({"container ":o,"max-w-none":!o,"mx-auto prose dark:prose-invert ":s},a),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ta({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var ma=a=>{var d;let{columns:t,theme:o}=a,s={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},e=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let c of i.root.children)if(e(c))return!0}if(i.children){for(let c of i.children)if(e(c))return!0}return!1},n=(i,c,y)=>{if(c==="none"||y==="full")return{processedRichText:i,heading:null};let g=i,b=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(g={...i,root:{...i.root,children:i.root.children.slice(1)}},b=i.root.children[0]),{processedRichText:g,heading:b}};return(0,Da.jsx)("div",{className:"container my-6",children:(0,Da.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(d=o==null?void 0:o.settings)!=null&&d.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,c)=>{var p,h;let{enableLink:y,link:g,richText:b,size:w}=i,{processedRichText:A,heading:u}=n(b,((p=o==null?void 0:o.settings)==null?void 0:p.box)||"none",w||"full");return(0,Da.jsxs)("div",{className:l(`col-span-4 lg:col-span-${s[w]}`,{"md:col-span-2":w!=="full"},r[w!=="full"&&!e(b)&&((h=o==null?void 0:o.settings)==null?void 0:h.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[u&&(0,Da.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -Da-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),A&&(0,Da.jsx)(P,{content:A,enableGutter:!1,className:"rich-text"}),y&&(0,Da.jsx)(O,{...g})]},c)})})})};var gt=q(require("next/image"));var pt=a=>{let{customId:t,reusableContent:o}=a;return typeof o=="object"&&o!==null?(0,Da.jsx)(co,{blocks:o.layout}):(0,Da.jsx)(Da.Fragment,{})},yt={content:ma,cta:J,mediaBlock:U,imageBlock:U,features:_},co=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,Da.jsx)("section",{id:"render-blocks",children:t.map((s,r)=>{var d,i;let{blockType:e}=s,n=s==null?void 0:s.theme;if(e&&e in yt){let c=yt[e];if(c)return(0,Da.jsx)("div",{className:"py-6 relative",children:(0,Da.jsx)("div",{className:l(((d=n==null?void 0:n.settings)==null?void 0:d.theme)==="dark"?"dark":((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,Da.jsx)(c,{...s})})},r)}return null})}):null};var bt={content:ma,cta:J,mediaBlock:U,imageBlock:U,features:_,reusableContentBlock:pt},ft=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,Da.jsx)("section",{id:"render-blocks",className:l(a.fill?"h-full w-full":""),children:t.map((s,r)=>{var d,i;let{blockType:e}=s,n=s==null?void 0:s.theme;if(e&&e in bt){let c=bt[e];if(c)return(0,Da.jsxs)("div",{className:l("py-6 relative",a.fill&&"flex h-full items-center justify-center"),children:[(0,Da.jsx)(uo,{block:s,index:r}),(0,Da.jsx)("div",{className:l("container h-full",((d=n==null?void 0:n.settings)==null?void 0:d.theme)==="dark"?"dark":((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="green"?"green":""),children:(0,Da.jsx)(c,{...s})})]},r)}return null})}):null},uo=a=>{var o,s,r,e,n;if(!("theme"in a.block))return null;let t=(o=a.block)==null?void 0:o.theme;if(t.settings.background==="image"){let d={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Da.jsxs)("div",{className:l("absolute inset-0 w-full h-full -Da-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,Da.jsx)(gt.default,{src:((r=(s=t.settings)==null?void 0:s.image)==null?void 0:r.url)||"/placeholder.svg",alt:((n=(e=t.settings)==null?void 0:e.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Da.jsx)("div",{className:"absolute inset-0",style:{background:d.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Da.jsx)("div",{className:l("absolute inset-0 -Da-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var X=require("framer-motion");var us=require("pagedjs");var Pa=q(require("next/image")),ht=({logoImage:a})=>(0,Da.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
5
|
+
dark bg-background text-primary`,children:[(0,Da.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,Da.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Da.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Da.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),xt=({title:a})=>(0,Da.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,Da.jsx)("div",{className:"container",children:(0,Da.jsx)("span",{className:"container text-4xl px-6",children:a})})}),vt=a=>{var r,e;let{title:t,hero:o,logoImage:s}=a;return(0,Da.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Da.jsx)("div",{className:"absolute inset-0",children:(0,Da.jsx)(Pa.default,{src:o.media&&o.media.url?o.media.url:"/hero.png",alt:"Background",width:o.media&&o.media.width&&(r=o.media.width)!=null?r:1920,height:o.media&&o.media.height&&(e=o.media.height)!=null?e:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Da.jsx)("div",{className:"absolute left-16 Da-50 top-4 flex flex-col items-start gap-4",children:s&&(0,Da.jsx)("div",{className:"h-24",children:(0,Da.jsx)(Pa.default,{src:s.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Da.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Da.jsxs)("div",{className:"relative pl-24 Da-10 max-w-3xl",children:[(0,Da.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),o.richText&&(0,Da.jsx)(P,{content:o.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var kt=a=>{let[t,o]=(0,K.useState)(0),{blocks:s,hero:r,logoImage:e}=a,n=s&&Array.isArray(s)&&s.length>0,i=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...s],c=u=>{o(u)},y=()=>{o(u=>(u+1)%i.length)},g=()=>{o(u=>(u-1+i.length)%i.length)},w=(0,K.useCallback)(((u,p)=>{let h;return(...B)=>{clearTimeout(h),h=setTimeout(()=>u(...B),p)}})(u=>{u.deltaY>0?y():g()},300),[]),A=u=>{u.key==="ArrowDown"?y():u.key==="ArrowUp"&&g()};return(0,K.useEffect)(()=>(window.addEventListener("wheel",w),window.addEventListener("keydown",A),()=>{window.removeEventListener("wheel",w),window.removeEventListener("keydown",A)}),[]),(0,Da.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Da.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 Da-10 flex-col items-center justify-center bg-gray-900",children:n&&i.map((u,p)=>(0,Da.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===p?"bg-accent":"bg-gray-600"}`,onClick:()=>c(p),children:(0,Da.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,Da.jsx)(X.AnimatePresence,{children:i.map((u,p)=>(0,Da.jsx)("div",{id:`slide-${p}`,className:"print-section",children:(0,Da.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
6
|
+
${p===t?"opacity-100":"opacity-0"}
|
|
7
|
+
w-full h-full bg-cover bg-center`,children:p===0?(0,Da.jsx)(vt,{hero:r,title:a.title,logoImage:e}):(0,Da.jsxs)(Da.Fragment,{children:[u.blockName&&(0,Da.jsx)(xt,{title:u.blockName}),(0,Da.jsx)(ft,{blocks:[u],fill:!0}),(0,Da.jsx)(ht,{logoImage:e})]})})},p))}),(0,Da.jsx)("button",{className:"absolute bottom-4 left-1 Da-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:y,children:(0,Da.jsx)(mo,{})})]})},mo=()=>(0,Da.jsx)(X.AnimatePresence,{children:(0,Da.jsx)(X.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Da.jsx)(X.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var yo={title:"Layouts/SlideShow",component:kt,tags:["autodocs"],argTypes:{}},po=yo,bo={args:{sections:[{id:"section1",title:"Section 1",color:"bg-red-500"},{id:"section2",title:"Section 2",color:"bg-blue-500"},{id:"section3",title:"Section 3",color:"bg-green-500"},{id:"section4",title:"Section 4",color:"bg-yellow-500"}]}};0&&(module.exports={Primary});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use client";import{a as o}from"../../chunk-
|
|
4
|
+
"use client";import{a as o}from"../../chunk-NAONLHIH.mjs";import"../../chunk-52MRKKN7.mjs";import"../../chunk-AUBKJ4XO.mjs";import"../../chunk-6YV7RK6Q.mjs";import"../../chunk-NRL4U42W.mjs";import"../../chunk-ZIWHUQ4D.mjs";import"../../chunk-6LKCK2EH.mjs";import"../../chunk-EPTHSTUM.mjs";import"../../chunk-53QLSQCO.mjs";import"../../chunk-6HFYLEVF.mjs";import"../../chunk-R2WQNVEX.mjs";import"../../chunk-MGS3DQ22.mjs";import"../../chunk-JCH2CCQ7.mjs";import"../../chunk-UZ2XYB7D.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-HPMMYTRI.mjs";import"../../chunk-3AA3AMNV.mjs";import"../../chunk-FBEB6K6X.mjs";import"../../chunk-IQPZEEYJ.mjs";import"../../chunk-H7D3PZKE.mjs";import"../../chunk-L7YJN6PG.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-ZWKWU7U4.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-KDGEXDC5.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-S7OK7D5I.mjs";var t={title:"Layouts/SlideShow",component:o,tags:["autodocs"],argTypes:{}},i=t,r={args:{sections:[{id:"section1",title:"Section 1",color:"bg-red-500"},{id:"section2",title:"Section 2",color:"bg-blue-500"},{id:"section3",title:"Section 3",color:"bg-green-500"},{id:"section4",title:"Section 4",color:"bg-yellow-500"}]}};export{r as Primary,i as default};
|