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 +1 @@
|
|
|
1
|
-
import{c as e,d as a}from"../chunk-UXX4Q6IQ.mjs";import{a as t}from"../chunk-
|
|
1
|
+
import{c as e,d as a}from"../chunk-UXX4Q6IQ.mjs";import{a as t}from"../chunk-LFX7M5VY.mjs";import"../chunk-U3TLYVTV.mjs";import"../chunk-NAONLHIH.mjs";import"../chunk-L2CGDHVO.mjs";import"../chunk-CSWXKGJE.mjs";import"../chunk-7DINW2AE.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-YRJ7YWPV.mjs";import"../chunk-BXLP27FT.mjs";import"../chunk-IJCMUPNH.mjs";import"../chunk-ZSUPFOXY.mjs";import"../chunk-XB5WL3OT.mjs";import"../chunk-Y74ENEUN.mjs";import"../chunk-X5KZKO2V.mjs";import"../chunk-NMHAXISV.mjs";import"../chunk-MY3PX5GI.mjs";import"../chunk-SEG6IDDX.mjs";import"../chunk-OWBJTXZL.mjs";import"../chunk-BRYZOZKY.mjs";import"../chunk-OFQF5AEG.mjs";import"../chunk-A24EPYUY.mjs";import"../chunk-QKGEV7LG.mjs";import"../chunk-SV7NMNDI.mjs";import"../chunk-7XMGPUGL.mjs";import"../chunk-MNLXTN7B.mjs";import"../chunk-KJ2C7CBU.mjs";import"../chunk-WZLEEZ5C.mjs";import"../chunk-JODGODRI.mjs";import"../chunk-MGZMAVEP.mjs";import"../chunk-F4V6VUT7.mjs";import"../chunk-WMMLX5GC.mjs";import"../chunk-HJX2VPMY.mjs";import"../chunk-TXXFXCXB.mjs";import"../chunk-KSCHUMVE.mjs";import"../chunk-PRUIYGQW.mjs";import"../chunk-H4Y4SZIU.mjs";import"../chunk-7VKHSE4O.mjs";import"../chunk-RBZMFLLA.mjs";import"../chunk-WRPART4J.mjs";import"../chunk-N6EJQZAV.mjs";import"../chunk-HWEPDRG6.mjs";import"../chunk-3LJZCM5A.mjs";import"../chunk-4JC2TJML.mjs";import"../chunk-4NKKWJ2X.mjs";import"../chunk-A5EYIB3V.mjs";import"../chunk-DWRQHV42.mjs";import"../chunk-Y5ZFXDW5.mjs";import"../chunk-SBAFXZVU.mjs";import"../chunk-AWFQEK7A.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-PY53YVFX.mjs";import"../chunk-3YZN4MJB.mjs";import"../chunk-WNPA7YT3.mjs";import"../chunk-KB6PO4K4.mjs";import"../chunk-Y5VTKEKS.mjs";import"../chunk-CGBVZQYY.mjs";import"../chunk-BSQVKZCW.mjs";import"../chunk-YNCJATT7.mjs";import"../chunk-QOIH63J3.mjs";import"../chunk-OAOCXXC2.mjs";import"../chunk-BDX257W2.mjs";import"../chunk-DRJBYVJB.mjs";import"../chunk-RZTXT4UD.mjs";import"../chunk-ZDPQXVTF.mjs";import"../chunk-CS77R54Z.mjs";import"../chunk-23L5ZJ2U.mjs";import"../chunk-GHBJK554.mjs";import"../chunk-3TIFSACL.mjs";import"../chunk-SV3TTIPR.mjs";import"../chunk-XDP6BKTK.mjs";import"../chunk-HAYRX2WO.mjs";import"../chunk-WISCWNL2.mjs";import"../chunk-YNNW2C2U.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-SFLOMJ2U.mjs";import"../chunk-SPOYKTBR.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-FRWX5YES.mjs";import"../chunk-CV7PH2KH.mjs";import"../chunk-S7OK7D5I.mjs";import{jsx as l}from"react/jsx-runtime";var u={title:"Example Pages/Print",component:t},n=r=>l(t,{...r}),i={render:n,args:{type:"print",orientation:"portrait",page:{title:"Demo Page 1",hero:a.highImpactSimple,layout:[e.content.oneThirdWithImageThemeShort,e.content.oneThirdWithImageTheme3Collumns,e.content.headerAndTheme3Collumns,e.content.halfWithEmbeddedImage,e.content.media,e.content.boxesWithThreeColumns,{id:"67a74c276365f244c8b6d149",blockName:null,columns:[{id:"67a74ea16365f244c8b6d14b",size:"full",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"dark",background:"image",image:{id:1,alt:null,prefix:"media",updatedAt:"2025-02-08T12:27:55.461Z",createdAt:"2025-02-08T12:27:55.461Z",url:"/stock1.jpg",thumbnailURL:"/stock1.jpg",filename:"stock1.jpg",mimeType:"image/jpeg",filesize:346701,width:2190,height:1369,focalX:50,focalY:50,sizes:{thumbnail:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-300x188.jpg",width:300,height:188,mimeType:"image/jpeg",filesize:15812,filename:"etpN-LCfCvz_906z2BUPn-300x188.jpg"},square:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-500x500.jpg",width:500,height:500,mimeType:"image/jpeg",filesize:51438,filename:"etpN-LCfCvz_906z2BUPn-500x500.jpg"},small:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-600x375.jpg",width:600,height:375,mimeType:"image/jpeg",filesize:46315,filename:"etpN-LCfCvz_906z2BUPn-600x375.jpg"},medium:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-900x563.jpg",width:900,height:563,mimeType:"image/jpeg",filesize:88535,filename:"etpN-LCfCvz_906z2BUPn-900x563.jpg"},large:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-1400x875.jpg",width:1400,height:875,mimeType:"image/jpeg",filesize:172764,filename:"etpN-LCfCvz_906z2BUPn-1400x875.jpg"},xlarge:{url:"/api/media/file/etpN-LCfCvz_906z2BUPn-1920x1200.jpg",width:1920,height:1200,mimeType:"image/jpeg",filesize:279466,filename:"etpN-LCfCvz_906z2BUPn-1920x1200.jpg"}}}}}},{id:"67a7859083ee5e530f094671",blockName:null,columns:[{id:"67a7859883ee5e530f094673",size:"full",richText:{root:{type:"root",format:"",indent:0,version:1,children:[{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h3",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Sed at eros vel lacus varius varius nec id metus. ",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{tag:"h2",type:"heading",format:"",indent:0,version:1,children:[{mode:"normal",text:"Duis sed nisl euismod, ullamcorper augue at.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr"},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},enableLink:null,link:{type:"reference",newTab:null,url:null,label:null,appearance:"default"}}],blockType:"content",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null}}}]}}},d={args:{...i.args,orientation:"portrait"}},p={args:{...i.args,orientation:"landscape"}},c={args:{...i.args,orientation:"flow"}};export{i as Default,c as Flow,p as Landscape,d as Portrait,u as default};
|
package/dist/pages/Publish.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";"use client";var Et=Object.create;var Ba=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var Lt=Object.getOwnPropertyNames;var Dt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Gt=(t,a)=>{for(var o in a)Ba(t,o,{get:a[o],enumerable:!0})},Xa=(t,a,o,s)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of Lt(a))!Ht.call(t,r)&&r!==o&&Ba(t,r,{get:()=>a[r],enumerable:!(s=Ft(a,r))||s.enumerable});return t};var oa=(t,a,o)=>(o=t!=null?Et(Dt(t)):{},Xa(a||!t||!t.__esModule?Ba(o,"default",{value:t,enumerable:!0}):o,t)),Ut=t=>Xa(Ba({},"__esModule",{value:!0}),t);var zo={};Gt(zo,{Publish:()=>Io});module.exports=Ut(zo);var zt=require("react");var et=require("clsx");var La="-",jt=t=>{let a=Jt(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:n=>{let d=n.split(La);return d[0]===""&&d.length!==1&&d.shift(),$a(d,a)||Ot(n)},getConflictingClassGroupIds:(n,d)=>{let i=o[n]||[];return d&&s[n]?[...i,...s[n]]:i}}},$a=(t,a)=>{var n;if(t.length===0)return a.classGroupId;let o=t[0],s=a.nextPart.get(o),r=s?$a(t.slice(1),s):void 0;if(r)return r;if(a.validators.length===0)return;let e=t.join(La);return(n=a.validators.find(({validator:d})=>d(e)))==null?void 0:n.classGroupId},Qa=/^\[(.+)\]$/,Ot=t=>{if(Qa.test(t)){let a=Qa.exec(t)[1],o=a==null?void 0:a.substring(0,a.indexOf(":"));if(o)return"arbitrary.."+o}},Jt=t=>{let{theme:a,prefix:o}=t,s={nextPart:new Map,validators:[]};return Wt(Object.entries(t.classGroups),o).forEach(([e,n])=>{Fa(n,s,e,a)}),s},Fa=(t,a,o,s)=>{t.forEach(r=>{if(typeof r=="string"){let e=r===""?a:Va(a,r);e.classGroupId=o;return}if(typeof r=="function"){if(qt(r)){Fa(r(s),a,o,s);return}a.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([e,n])=>{Fa(n,Va(a,e),o,s)})})},Va=(t,a)=>{let o=t;return a.split(La).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},qt=t=>t.isThemeGetter,Wt=(t,a)=>a?t.map(([o,s])=>{let r=s.map(e=>typeof e=="string"?a+e:typeof e=="object"?Object.fromEntries(Object.entries(e).map(([n,d])=>[a+n,d])):e);return[o,r]}):t,Yt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,o=new Map,s=new Map,r=(e,n)=>{o.set(e,n),a++,a>t&&(a=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)}}},_a="!",Kt=t=>{let{separator:a,experimentalParseClassName:o}=t,s=a.length===1,r=a[0],e=a.length,n=d=>{let i=[],l=0,p=0,u;for(let b=0;b<d.length;b++){let k=d[b];if(l===0){if(k===r&&(s||d.slice(b,b+e)===a)){i.push(d.slice(p,b)),p=b+e;continue}if(k==="/"){u=b;continue}}k==="["?l++:k==="]"&&l--}let y=i.length===0?d:d.substring(p),x=y.startsWith(_a),m=x?y.substring(1):y,f=u&&u>p?u-p:void 0;return{modifiers:i,hasImportantModifier:x,baseClassName:m,maybePostfixModifierPosition:f}};return o?d=>o({className:d,parseClassName:n}):n},Xt=t=>{if(t.length<=1)return t;let a=[],o=[];return t.forEach(s=>{s[0]==="["?(a.push(...o.sort(),s),o=[]):o.push(s)}),a.push(...o.sort()),a},Qt=t=>({cache:Yt(t.cacheSize),parseClassName:Kt(t),...jt(t)}),Vt=/\s+/,$t=(t,a)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=a,e=[],n=t.trim().split(Vt),d="";for(let i=n.length-1;i>=0;i-=1){let l=n[i],{modifiers:p,hasImportantModifier:u,baseClassName:y,maybePostfixModifierPosition:x}=o(l),m=!!x,f=s(m?y.substring(0,x):y);if(!f){if(!m){d=l+(d.length>0?" "+d:d);continue}if(f=s(y),!f){d=l+(d.length>0?" "+d:d);continue}m=!1}let b=Xt(p).join(":"),k=u?b+_a:b,A=k+f;if(e.includes(A))continue;e.push(A);let M=r(f,m);for(let z=0;z<M.length;++z){let aa=M[z];e.push(k+aa)}d=l+(d.length>0?" "+d:d)}return d};function _t(){let t=0,a,o,s="";for(;t<arguments.length;)(a=arguments[t++])&&(o=Za(a))&&(s&&(s+=" "),s+=o);return s}var Za=t=>{if(typeof t=="string")return t;let a,o="";for(let s=0;s<t.length;s++)t[s]&&(a=Za(t[s]))&&(o&&(o+=" "),o+=a);return o};function Zt(t,...a){let o,s,r,e=n;function n(i){let l=a.reduce((p,u)=>u(p),t());return o=Qt(l),s=o.cache.get,r=o.cache.set,e=d,d(i)}function d(i){let l=s(i);if(l)return l;let p=$t(i,o);return r(i,p),p}return function(){return e(_t.apply(null,arguments))}}var N=t=>{let a=o=>o[t]||[];return a.isThemeGetter=!0,a},at=/^\[(?:([a-z-]+):)?(.+)\]$/i,ao=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),oo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eo=/\d+(%|px|r?em|[sdl]?dt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(dt|dt|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,so=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,no=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,J=t=>ia(t)||to.has(t)||ao.test(t),Q=t=>la(t,"length",go),ia=t=>!!t&&!Number.isNaN(Number(t)),Ea=t=>la(t,"number",ia),ba=t=>!!t&&Number.isInteger(Number(t)),io=t=>t.endsWith("%")&&ia(t.slice(0,-1)),g=t=>at.test(t),V=t=>oo.test(t),lo=new Set(["length","size","percentage"]),co=t=>la(t,lo,tt),mo=t=>la(t,"position",tt),po=new Set(["image","url"]),uo=t=>la(t,po,bo),yo=t=>la(t,"",fo),ha=()=>!0,la=(t,a,o)=>{let s=at.exec(t);return s?s[1]?typeof a=="string"?s[1]===a:a.has(s[1]):o(s[2]):!1},go=t=>eo.test(t)&&!so.test(t),tt=()=>!1,fo=t=>ro.test(t),bo=t=>no.test(t);var ho=()=>{let t=N("colors"),a=N("spacing"),o=N("blur"),s=N("brightness"),r=N("borderColor"),e=N("borderRadius"),n=N("borderSpacing"),d=N("borderWidth"),i=N("contrast"),l=N("grayscale"),p=N("hueRotate"),u=N("invert"),y=N("gap"),x=N("gradientColorStops"),m=N("gradientColorStopPositions"),f=N("inset"),b=N("margin"),k=N("opacity"),A=N("padding"),M=N("saturate"),z=N("scale"),aa=N("sepia"),ta=N("skew"),E=N("space"),ga=N("translate"),na=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",g,a],C=()=>[g,a],fa=()=>["",J,Q],H=()=>["auto",ia,g],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],da=()=>["solid","dashed","dotted","double","none"],Pa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",g],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[ia,g];return{cacheSize:500,separator:":",theme:{colors:[ha],spacing:[J,Q],blur:["none","",V,g],brightness:T(),borderColor:[t],borderRadius:["none","","full",V,g],borderSpacing:C(),borderWidth:fa(),contrast:T(),grayscale:U(),hueRotate:T(),invert:U(),gap:C(),gradientColorStops:[t],gradientColorStopPositions:[io,Q],inset:D(),margin:D(),opacity:T(),padding:C(),saturate:T(),scale:T(),sepia:U(),skew:T(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",g]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:[...O(),g]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:na()}],"overscroll-x":[{"overscroll-x":na()}],"overscroll-y":[{"overscroll-y":na()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ba,g]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",g]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",ba,g]}],"grid-cols":[{"grid-cols":[ha]}],"col-start-end":[{col:["auto",{span:["full",ba,g]},g]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[ha]}],"row-start-end":[{row:["auto",{span:[ba,g]},g]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",g]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",g]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],zt:[{zt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],dt:[{dt:["auto","min","max","fit","svw","lvw","dvw",g,a]}],"min-dt":[{"min-dt":[g,a,"min","max","fit"]}],"max-dt":[{"max-dt":[g,a,"none","full","min","max","fit","prose",{screen:[V]},V]}],dt:[{dt:[g,a,"auto","min","max","fit","svh","lvh","dvh"]}],"min-dt":[{"min-dt":[g,a,"min","max","fit","svh","lvh","dvh"]}],"max-dt":[{"max-dt":[g,a,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[g,a,"auto","min","max","fit"]}],"font-size":[{text:["base",V,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ea]}],"font-family":[{font:[ha]}],"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",g]}],"line-clamp":[{"line-clamp":["none",ia,Ea]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",J,g]}],"list-image":[{"list-image":["none",g]}],"list-style-type":[{list:["none","disc","decimal",g]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...da(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",J,Q]}],"underline-offset":[{"underline-offset":["auto",J,g]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",g]}],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",g]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),mo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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-dt":[{border:[d]}],"border-dt-x":[{"border-x":[d]}],"border-dt-y":[{"border-y":[d]}],"border-dt-s":[{"border-s":[d]}],"border-dt-e":[{"border-e":[d]}],"border-dt-t":[{"border-t":[d]}],"border-dt-r":[{"border-r":[d]}],"border-dt-b":[{"border-b":[d]}],"border-dt-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...da(),"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":[k]}],"divide-style":[{divide:da()}],"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:["",...da()]}],"outline-offset":[{"outline-offset":[J,g]}],"outline-dt":[{outline:[J,Q]}],"outline-color":[{outline:[t]}],"ring-dt":[{ring:fa()}],"ring-dt-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-dt":[{"ring-offset":[J,Q]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",V,yo]}],"shadow-color":[{shadow:[ha]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Pa(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Pa()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",V,g]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[u]}],saturate:[{saturate:[M]}],sepia:[{sepia:[aa]}],"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":[p]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[aa]}],"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",g]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",g]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",g]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[ba,g]}],"translate-x":[{"translate-x":[ga]}],"translate-y":[{"translate-y":[ga]}],"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",g]}],accent:[{accent:["auto",t]}],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","dt-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",g]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-zt":[{"scroll-zt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",g]}],fill:[{fill:[t,"none"]}],"stroke-dt":[{stroke:[J,Q,Ea]}],stroke:[{stroke:[t,"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","zt","mr","mb","ml"],mx:["mr","ml"],my:["zt","mb"],size:["dt","dt"],"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-dt":["border-dt-s","border-dt-e","border-dt-t","border-dt-r","border-dt-b","border-dt-l"],"border-dt-x":["border-dt-r","border-dt-l"],"border-dt-y":["border-dt-t","border-dt-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-zt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-zt","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 ot=Zt(ho);function c(...t){return ot((0,et.clsx)(t))}function xa(t){let a=0,o=(e,n)=>`${e.toLowerCase().replace(/\s+/g,"-").replace(/[^\dt-]/g,"")}-${n}`,s=t.layout.flatMap(e=>{let n=[];return"title"in e&&e.title&&n.push({text:e.title,id:o(e.title,a++),tag:"h2"}),"columns"in e&&Array.isArray(e.columns)&&e.columns.forEach(d=>{var i,l,p,u,y;if(d.title&&n.push({text:d.title,id:o(d.title,a++),tag:"h2"}),(l=(i=d.richText)==null?void 0:i.root)!=null&&l.children&&((u=(p=d.richText)==null?void 0:p.root)==null?void 0:u.children.length)===1){let x=d.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of x)m.children[0]&&n.push({text:(y=m.children[0].text)!=null?y:"",id:o(m.children[0].text,a++),tag:m.tag||"h2"})}}),n}),r=xo(t.layout);return{tableOfContents:s,contentWithIds:r}}function xo(t){let a=(s,r)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\dt-]/g,"")}-${r}`,o=0;return t.map(s=>(s.title&&(s.id=a(s.title,o++)),s.columns&&(s.columns=s.columns.map(r=>(r.title&&(r.id=a(r.title,o++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(e=>e!==void 0).filter(e=>e.children!==void 0&&e.children.length>0).map(e=>(e.type==="heading"&&e.children[0].text&&(e.id=a(e.children[0].text,o++)),e))),r))),s))}var st=require("@radix-ui/react-slot"),rt=require("class-variance-authority"),nt=oa(require("react")),dt=require("react/jsx-runtime"),vo=(0,rt.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:"dt-10 px-4 py-2",icon:"dt-10 dt-10",lg:"dt-11 rounded px-8",sm:"dt-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"}}}),ea=nt.forwardRef(({asChild:t=!1,className:a,size:o,variant:s,...r},e)=>(0,dt.jsx)(t?st.Slot:"button",{className:c(vo({className:a,size:o,variant:s})),ref:e,...r}));ea.displayName="Button";var Da=({type:t="solid",iconName:a="cloud",size:o="lg",className:s})=>{let r=t.includes("fa-")?t+" ":"fa-"+t+" ",e="fa-"+a,n=s!=null?s:"",d=r+e+" fa-"+o+" "+n;return(0,dt.jsx)("i",{className:d})};var lt=({className:t,content:a,style:o})=>(0,dt.jsx)("div",{className:c("mx-auto my-8 dt-full",t),children:(0,dt.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,dt.jsx)(F,{content:a,enableGutter:!1,enableProse:!1})})});var Ha=oa(require("next/link")),sa=t=>{let{type:a,appearance:o="inline",children:s,className:r,label:e,newTab:n,reference:d,size:i,url:l}=t,p=a==="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}`:l;if(!p)return null;let u=o==="link"?"clear":i,y=n?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,dt.jsxs)(Ha.default,{className:c(r),href:p||l||"",...y,children:[e&&e,s&&s]}):(0,dt.jsx)(ea,{asChild:!0,className:r,size:u,variant:o,children:(0,dt.jsxs)(Ha.default,{className:c(r),href:p||l||"",...y,children:[e&&e,s&&s]})})};var ca=({links:t,richText:a})=>(0,$.jsx)("div",{className:"container",children:(0,$.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,$.jsx)("div",{className:"max-dt-[48rem] flex items-center",children:a&&(0,$.jsx)(F,{className:"mb-0",content:a,enableGutter:!1})}),(0,$.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:o},s)=>(0,$.jsx)(sa,{size:"lg",...o},s))})]})});var Aa=require("prism-react-renderer");var ct=require("lucide-react");function pt({code:t}){let[a,o]=(0,zt.useState)("Copy");function s(){a==="Copy"&&(o(()=>"Copied!"),setTimeout(()=>{o(()=>"Copy")},1e3))}return(0,dt.jsx)("div",{className:"flex justify-end align-middle",children:(0,dt.jsxs)(ea,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),s()},children:[(0,dt.jsx)("p",{children:a}),(0,dt.jsx)("div",{className:"dt-6 dt-6 dark:invert",children:(0,dt.jsx)(ct.ClipboardCopy,{})})]})})}var ut=({code:t,language:a=""})=>t?(0,dt.jsx)(Aa.Highlight,{code:t,language:a,theme:Aa.themes.vsDark,children:({getLineProps:o,getTokenProps:s,tokens:r})=>(0,dt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((e,n)=>(0,dt.jsxs)("div",{...o({className:"table-row",line:e}),children:[(0,dt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,dt.jsx)("span",{className:"table-cell pl-4",children:e.map((d,i)=>(0,dt.jsx)("span",{...s({token:d})},i))})]},n)),(0,dt.jsx)(pt,{code:t})]})}):null;var yt=({className:t,code:a,language:o})=>(0,dt.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,dt.jsx)(ut,{code:a,language:o})});var ft=oa(require("next/image")),wo={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",bt=t=>{let{alt:a,fill:o,imgClassName:s,priority:r,resource:e,size:n,src:d,loading:i}=t,l,p,u=a,y=d||"";if(!y&&e&&typeof e=="object"){let{alt:f,filename:b,height:k,url:A,width:M}=e;if(k&&k>500){let z=500/k;l=M*z,p=k*z}else l=M,p=k;u=f||"",y=A||gt}let x=i||"lazy",m=n||Object.entries(wo).map(([,f])=>`(max-width: ${f}px) ${f*2}dt`).join(", ");return(0,dt.jsx)("picture",{children:(0,dt.jsx)(ft.default,{alt:u||"",className:c(s),fill:o,height:o?void 0:p,placeholder:"blur",blurDataURL:gt,priority:x!=="lazy"&&r,quality:100,loading:x,sizes:m,src:y,width:o?void 0:l})})};var ht=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var xt=()=>{if(ht){let t=window.location.protocol,a=window.location.hostname,o=window.location.port;return`${t}//${a}${o?`:${o}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var vt=t=>{let{onClick:a,resource:o,videoClassName:s}=t,r=(0,zt.useRef)(null);if((0,zt.useEffect)(()=>{let{current:e}=r;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return(0,dt.jsx)("video",{autoPlay:!0,className:c(s),controls:!1,loop:!0,muted:!0,onClick:a,playsInline:!0,ref:r,children:(0,dt.jsx)("source",{src:`${xt()}/media/${e}`})})}return null};var Sa=t=>{var n;let{className:a,htmlElement:o="div",resource:s}=t,r=typeof s=="object"&&((n=s==null?void 0:s.mimeType)==null?void 0:n.includes("video"));return(0,dt.jsx)(o||zt.Fragment,{...o!==null?{className:a}:{},children:r?(0,dt.jsx)(vt,{...t}):(0,dt.jsx)(bt,{...t})})};var _=t=>{let{className:a,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=t;return(0,dt.jsx)("div",{className:c("dt-full ",{container:o},a),children:(0,dt.jsx)(Sa,{imgClassName:c("rounded-[0.8rem]",s),className:"flex justify-center",resource:r,src:e})})};var kt=t=>{let{className:a,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=t;return(0,dt.jsx)("div",{className:c("",{container:o},a),children:(0,dt.jsx)(Sa,{imgClassName:c("rounded-[0.8rem]",s),resource:r,src:e})})};var ma=({title:t,description:a,features:o,id:s,nested:r=!1})=>(0,dt.jsxs)("section",{className:c(!r&&"container","dt-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,dt.jsx)("h2",{className:"mb-6 zt-0 text-2xl font-bold md:text-3xl text-primary",id:s||"",children:t}),a&&typeof a=="string"&&(0,dt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:a}),a&&typeof a=="object"&&(0,dt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,dt.jsx)(F,{content:a,enableGutter:!1})}),(0,dt.jsx)("div",{className:`grid gap-8 zt-10 md:grid-cols-${o?o.length:1}`,children:o&&o.map((e,n)=>{var i,l,p,u,y;let d=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return(0,dt.jsx)(Ct,{variant:((i=e.settings)==null?void 0:i.card)==="default"?"light":((l=e.settings)==null?void 0:l.card)||"outline",icon:d()||void 0,iconSize:((p=e.settings)==null?void 0:p.iconSize)||"large",width:"auto",order:n,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(u=e.link)!=null&&u.url?"Find out more":void 0,buttonHref:((y=e.link)==null?void 0:y.url)||void 0},n)})})]});var za=oa(require("react"));function wa({nodes:t}){return(0,dt.jsx)(za.Fragment,{children:t==null?void 0:t.map((a,o)=>{if(a==null)return null;if(a.type==="text"&&a.text){let e=(0,dt.jsx)(za.default.Fragment,{children:a.text},o);return a.format&1&&(e=(0,dt.jsx)("strong",{children:e},o)),a.format&2&&(e=(0,dt.jsx)("em",{children:e},o)),a.format&4&&(e=(0,dt.jsx)("span",{style:{textDecoration:"line-through"},children:e},o)),a.format&8&&(e=(0,dt.jsx)("span",{style:{textDecoration:"underline"},children:e},o)),a.format&16&&(e=(0,dt.jsx)("code",{children:a.text},o)),a.format&32&&(e=(0,dt.jsx)("sub",{children:e},o)),a.format&64&&(e=(0,dt.jsx)("sup",{children:e},o)),e}if(a.type==="table")return(0,dt.jsx)("table",{children:(0,dt.jsx)("tbody",{children:a.children.map((e,n)=>(0,dt.jsx)("tr",{children:e.children.map((d,i)=>(0,dt.jsx)("td",{children:wa({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 wa({nodes:e.children})},r="children"in a?s(a):"";if(a.type==="block"){let e=a.fields,n=e==null?void 0:e.blockType;if(!e||!n)return null;switch(n){case"cta":return(0,dt.jsx)(ca,{...e},o);case"mediaBlock":return(0,dt.jsx)(_,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-dt-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"imageBlock":return(0,dt.jsx)(kt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-dt-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"banner":return(0,dt.jsx)(lt,{className:"col-start-2 mb-4",...e},o);case"code":return(0,dt.jsx)(yt,{className:"col-start-2",...e},o);case"features":return(0,dt.jsx)(ma,{...e,nested:!0},o);case"reusableContentBlock":wa({nodes:e.reusableContent.layout});default:return null}}else switch(a.type){case"linebreak":return(0,dt.jsx)("br",{className:"col-start-2"},o);case"paragraph":return(0,dt.jsx)("p",{className:"col-start-2",children:r},o);case"heading":{let e=a==null?void 0:a.tag;return(0,dt.jsx)(e,{className:"col-start-2",id:(a==null?void 0:a.id)||"",children:r},o)}case"list":{let e=a==null?void 0:a.tag;return(0,dt.jsx)(e,{className:"list col-start-2",children:r},o)}case"listitem":return(a==null?void 0:a.checked)!=null?(0,dt.jsx)("li",{"aria-checked":a.checked?"true":"false",className:` ${a.checked,""}`,role:"checkbox",tabIndex:-1,value:a==null?void 0:a.value,children:r},o):(0,dt.jsx)("li",{value:a==null?void 0:a.value,children:r},o);case"quote":return(0,dt.jsx)("blockquote",{className:"col-start-2",children:r},o);case"link":{let e=a.fields;return(0,dt.jsx)(sa,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}case"autolink":{let e=a.fields;return(0,dt.jsx)(sa,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}default:return null}})})}var F=({className:t,content:a,enableGutter:o=!0,enableProse:s=!0})=>{var r;return a?(0,dt.jsx)("div",{className:c({"container ":o,"max-dt-none":!o,"mx-auto prose dark:prose-invert ":s},t),children:a&&!Array.isArray(a)&&typeof a=="object"&&"root"in a&&wa({nodes:(r=a==null?void 0:a.root)==null?void 0:r.children})}):null};function Pt(t){return t&&typeof t=="object"&&"type"in t&&"iconName"in t}function Ct({variant:t="outline",className:a,icon:o,iconSize:s="large",width:r="auto",order:e=0,heading:n,subheading:d,content:i,statistic:l,buttonText:p,buttonHref:u}){let y={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:""},x={"1/4":"dt-1/4","1/3":"dt-1/3","1/2":"dt-1/2",full:"dt-full",auto:"dt-full"};return(0,dt.jsxs)("div",{className:c("rounded-3xl p-8 md:p-8 min-dt-56 flex flex-col group",y[t],t==="outline"?"text-gray-900":"text-white",a,x[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[(0,dt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,dt.jsx)(ko,{icon:o,heading:n,variant:t,iconSize:s})}),l&&(0,dt.jsx)("div",{className:"mb-6",children:(0,dt.jsx)("div",{className:c("text-4xl text-wrap font-bold leading-none overflow-hidden",t==="outline"||t==="light"?"text-primary":"text-white"),children:l})}),d&&(0,dt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:d}),i&&typeof i=="object"&&(0,dt.jsx)("div",{className:c("space-y-6"),children:(0,dt.jsx)(F,{enableGutter:!1,content:i,enableProse:!1,className:c(t==="outline"||t==="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,dt.jsx)("div",{className:c("space-y-6",t==="outline"||t==="light"?"text-gray-900":"text-gray-100"),children:i}),p&&(0,dt.jsx)("div",{className:"zt-auto pt-6 flex items-center justify-center",children:(0,dt.jsx)(ea,{size:"lg",className:"text-white text-lg rounded-xl dt-full zt-auto items-center justify-center",asChild:!0,children:(0,dt.jsx)("a",{href:u,children:p})})}),t==="radial"&&(0,dt.jsx)("div",{className:"absolute bottom-0 right-0 dt-2/3 dt-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 ko=({icon:t,heading:a,variant:o,iconSize:s})=>t&&s==="small"?(0,dt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Pt(t)&&(0,dt.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"?"zt-2":""),children:(0,dt.jsx)(Da,{type:t.type,iconName:t.iconName,size:"2x"})}),(0,dt.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:a})]}):t?(0,dt.jsxs)("div",{className:"flex flex-col gap-4",children:[Pt(t)&&(0,dt.jsx)("div",{className:c("dt-12 dt-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":""),children:(0,dt.jsx)(Da,{type:t.type,iconName:t.iconName,size:"4x"})}),(0,dt.jsx)("h3",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:a})]}):(0,dt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,dt.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:a})});var Ma=t=>{var d;let{columns:a,theme:o}=t,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},n=(i,l,p)=>{if(l==="none"||p==="full")return{processedRichText:i,heading:null};let u=i,y=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(u={...i,root:{...i.root,children:i.root.children.slice(1)}},y=i.root.children[0]),{processedRichText:u,heading:y}};return(0,dt.jsx)("div",{className:"container my-6",children:(0,dt.jsx)("div",{className:c("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:a&&a.length>0&&a.map((i,l)=>{var b,k;let{enableLink:p,link:u,richText:y,size:x}=i,{processedRichText:m,heading:f}=n(y,((b=o==null?void 0:o.settings)==null?void 0:b.box)||"none",x||"full");return(0,dt.jsxs)("div",{className:c(`col-span-4 lg:col-span-${s[x]}`,{"md:col-span-2":x!=="full"},r[x!=="full"&&!e(y)&&((k=o==null?void 0:o.settings)==null?void 0:k.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${l+1}00`),children:[f&&(0,dt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -zt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),m&&(0,dt.jsx)(F,{content:m,enableGutter:!1,className:"rich-text"}),p&&(0,dt.jsx)(sa,{...u})]},l)})})})};var Tt=oa(require("next/image"));var Rt=t=>{let{customId:a,reusableContent:o}=t;return typeof o=="object"&&o!==null?(0,dt.jsx)(Co,{blocks:o.layout}):(0,dt.jsx)(dt.Fragment,{})},Bt={content:Ma,cta:ca,mediaBlock:_,imageBlock:_,features:ma},Co=t=>{let{blocks:a}=t;return a&&Array.isArray(a)&&a.length>0?(0,dt.jsx)("section",{id:"render-blocks",children:a.map((s,r)=>{var d,i;let{blockType:e}=s,n=s==null?void 0:s.theme;if(e&&e in Bt){let l=Bt[e];if(l)return(0,dt.jsx)("div",{className:"py-6 relative",children:(0,dt.jsx)("div",{className:c(((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,dt.jsx)(l,{...s})})},r)}return null})}):null};var At={content:Ma,cta:ca,mediaBlock:_,imageBlock:_,features:ma,reusableContentBlock:Rt},ka=t=>{let{blocks:a}=t;return a&&Array.isArray(a)&&a.length>0?(0,dt.jsx)("section",{id:"render-blocks",className:c(t.fill?"dt-full dt-full":""),children:a.map((s,r)=>{var d,i;let{blockType:e}=s,n=s==null?void 0:s.theme;if(e&&e in At){let l=At[e];if(l)return(0,dt.jsxs)("div",{className:c("py-6 relative",t.fill&&"flex dt-full items-center justify-center"),children:[(0,dt.jsx)(No,{block:s,index:r}),(0,dt.jsx)("div",{className:c("container dt-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,dt.jsx)(l,{...s})})]},r)}return null})}):null},No=t=>{var o,s,r,e,n;if(!("theme"in t.block))return null;let a=(o=t.block)==null?void 0:o.theme;if(a.settings.background==="image"){let d={imagePosition:a.settings.imagePosition||"left",overlay:a.settings.overlay!==void 0?a.settings.overlay:!0};return(0,dt.jsxs)("div",{className:c("absolute inset-0 dt-full dt-full -z-10",a.settings.theme==="dark"?"dark bg-background":a.settings.theme==="green"?"green bg-background":""),children:[(0,dt.jsx)(Tt.default,{src:((r=(s=a.settings)==null?void 0:s.image)==null?void 0:r.url)||"/placeholder.svg",alt:((n=(e=a.settings)==null?void 0:e.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),a.settings.overlay&&(0,dt.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,dt.jsx)("div",{className:c("absolute inset-0 -z-10 dt-screen dt-full",a.settings.theme==="dark"?"dark bg-background":a.settings.theme==="green"?"green bg-background":"")})};var ua=require("framer-motion");var Ts=require("pagedjs");var qa=oa(require("next/image"));var pa="../cortex-reply-dark-XPAJJJYY.png";var It=()=>(0,dt.jsxs)("footer",{className:`absolute bottom-0 left-0 dt-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
6
|
-
dark bg-background text-primary`,children:[(0,
|
|
7
|
-
${f===
|
|
8
|
-
|
|
9
|
-
dark bg-background text-primary`,children:[(0,
|
|
5
|
+
"use strict";"use client";var Mt=Object.create;var Pa=Object.defineProperty;var Lt=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var Ft=Object.getPrototypeOf,Dt=Object.prototype.hasOwnProperty;var Gt=(a,t)=>{for(var o in t)Pa(a,o,{get:t[o],enumerable:!0})},Qa=(a,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Et(t))!Dt.call(a,r)&&r!==o&&Pa(a,r,{get:()=>t[r],enumerable:!(s=Lt(t,r))||s.enumerable});return a};var oa=(a,t,o)=>(o=a!=null?Mt(Ft(a)):{},Qa(t||!a||!a.__esModule?Pa(o,"default",{value:a,enumerable:!0}):o,a)),Ht=a=>Qa(Pa({},"__esModule",{value:!0}),a);var Io={};Gt(Io,{Publish:()=>Ro});module.exports=Ht(Io);var St=require("react");var ot=require("clsx");var Ea="-",Ut=a=>{let t=Ot(a),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:n=>{let d=n.split(Ea);return d[0]===""&&d.length!==1&&d.shift(),_a(d,t)||jt(n)},getConflictingClassGroupIds:(n,d)=>{let i=o[n]||[];return d&&s[n]?[...i,...s[n]]:i}}},_a=(a,t)=>{var n;if(a.length===0)return t.classGroupId;let o=a[0],s=t.nextPart.get(o),r=s?_a(a.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;let e=a.join(Ea);return(n=t.validators.find(({validator:d})=>d(e)))==null?void 0:n.classGroupId},Xa=/^\[(.+)\]$/,jt=a=>{if(Xa.test(a)){let t=Xa.exec(a)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Ot=a=>{let{theme:t,prefix:o}=a,s={nextPart:new Map,validators:[]};return qt(Object.entries(a.classGroups),o).forEach(([e,n])=>{La(n,s,e,t)}),s},La=(a,t,o,s)=>{a.forEach(r=>{if(typeof r=="string"){let e=r===""?t:Ja(t,r);e.classGroupId=o;return}if(typeof r=="function"){if(Wt(r)){La(r(s),t,o,s);return}t.validators.push({validator:r,classGroupId:o});return}Object.entries(r).forEach(([e,n])=>{La(n,Ja(t,e),o,s)})})},Ja=(a,t)=>{let o=a;return t.split(Ea).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Wt=a=>a.isThemeGetter,qt=(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,Vt=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)}}},Ka="!",Yt=a=>{let{separator:t,experimentalParseClassName:o}=a,s=t.length===1,r=t[0],e=t.length,n=d=>{let i=[],l=0,m=0,p;for(let f=0;f<d.length;f++){let v=d[f];if(l===0){if(v===r&&(s||d.slice(f,f+e)===t)){i.push(d.slice(m,f)),m=f+e;continue}if(v==="/"){p=f;continue}}v==="["?l++:v==="]"&&l--}let g=i.length===0?d:d.substring(m),x=g.startsWith(Ka),b=x?g.substring(1):g,u=p&&p>m?p-m:void 0;return{modifiers:i,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:u}};return o?d=>o({className:d,parseClassName:n}):n},Qt=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},Xt=a=>({cache:Vt(a.cacheSize),parseClassName:Yt(a),...Ut(a)}),Jt=/\s+/,_t=(a,t)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:r}=t,e=[],n=a.trim().split(Jt),d="";for(let i=n.length-1;i>=0;i-=1){let l=n[i],{modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:x}=o(l),b=!!x,u=s(b?g.substring(0,x):g);if(!u){if(!b){d=l+(d.length>0?" "+d:d);continue}if(u=s(g),!u){d=l+(d.length>0?" "+d:d);continue}b=!1}let f=Qt(m).join(":"),v=p?f+Ka:f,R=v+u;if(e.includes(R))continue;e.push(R);let M=r(u,b);for(let z=0;z<M.length;++z){let aa=M[z];e.push(v+aa)}d=l+(d.length>0?" "+d:d)}return d};function Kt(){let a=0,t,o,s="";for(;a<arguments.length;)(t=arguments[a++])&&(o=$a(t))&&(s&&(s+=" "),s+=o);return s}var $a=a=>{if(typeof a=="string")return a;let t,o="";for(let s=0;s<a.length;s++)a[s]&&(t=$a(a[s]))&&(o&&(o+=" "),o+=t);return o};function $t(a,...t){let o,s,r,e=n;function n(i){let l=t.reduce((m,p)=>p(m),a());return o=Xt(l),s=o.cache.get,r=o.cache.set,e=d,d(i)}function d(i){let l=s(i);if(l)return l;let m=_t(i,o);return r(i,m),m}return function(){return e(Kt.apply(null,arguments))}}var N=a=>{let t=o=>o[a]||[];return t.isThemeGetter=!0,t},Za=/^\[(?:([a-z-]+):)?(.+)\]$/i,Zt=/^\d+\/\d+$/,ao=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(nt|nt|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,eo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,so=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ro=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=a=>ia(a)||ao.has(a)||Zt.test(a),J=a=>la(a,"length",yo),ia=a=>!!a&&!Number.isNaN(Number(a)),Ma=a=>la(a,"number",ia),fa=a=>!!a&&Number.isInteger(Number(a)),no=a=>a.endsWith("%")&&ia(a.slice(0,-1)),y=a=>Za.test(a),_=a=>to.test(a),io=new Set(["length","size","percentage"]),lo=a=>la(a,io,at),co=a=>la(a,"position",at),mo=new Set(["image","url"]),uo=a=>la(a,mo,fo),po=a=>la(a,"",go),ba=()=>!0,la=(a,t,o)=>{let s=Za.exec(a);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},yo=a=>oo.test(a)&&!eo.test(a),at=()=>!1,go=a=>so.test(a),fo=a=>ro.test(a);var bo=()=>{let a=N("colors"),t=N("spacing"),o=N("blur"),s=N("brightness"),r=N("borderColor"),e=N("borderRadius"),n=N("borderSpacing"),d=N("borderWidth"),i=N("contrast"),l=N("grayscale"),m=N("hueRotate"),p=N("invert"),g=N("gap"),x=N("gradientColorStops"),b=N("gradientColorStopPositions"),u=N("inset"),f=N("margin"),v=N("opacity"),R=N("padding"),M=N("saturate"),z=N("scale"),aa=N("sepia"),ta=N("skew"),L=N("space"),ya=N("translate"),na=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",y,t],C=()=>[y,t],ga=()=>["",W,J],G=()=>["auto",ia,y],O=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],da=()=>["solid","dashed","dotted","double","none"],Na=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",y],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>[ia,y];return{cacheSize:500,separator:":",theme:{colors:[ba],spacing:[W,J],blur:["none","",_,y],brightness:T(),borderColor:[a],borderRadius:["none","","full",_,y],borderSpacing:C(),borderWidth:ga(),contrast:T(),grayscale:U(),hueRotate:T(),invert:U(),gap:C(),gradientColorStops:[a],gradientColorStopPositions:[no,J],inset:D(),margin:D(),opacity:T(),padding:C(),saturate:T(),scale:T(),sepia:U(),skew:T(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",y]}],container:["container"],columns:[{columns:[_]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:[...O(),y]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:na()}],"overscroll-x":[{"overscroll-x":na()}],"overscroll-y":[{"overscroll-y":na()}],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"],z:[{z:["auto",fa,y]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",y]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",fa,y]}],"grid-cols":[{"grid-cols":[ba]}],"col-start-end":[{col:["auto",{span:["full",fa,y]},y]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[ba]}],"row-start-end":[{row:["auto",{span:[fa,y]},y]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",y]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"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]}],pt:[{pt:[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":[L]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[L]}],"space-y-reverse":["space-y-reverse"],nt:[{nt:["auto","min","max","fit","svw","lvw","dvw",y,t]}],"min-nt":[{"min-nt":[y,t,"min","max","fit"]}],"max-nt":[{"max-nt":[y,t,"none","full","min","max","fit","prose",{screen:[_]},_]}],nt:[{nt:[y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-nt":[{"min-nt":[y,t,"min","max","fit","svh","lvh","dvh"]}],"max-nt":[{"max-nt":[y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_,J]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ma]}],"font-family":[{font:[ba]}],"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",y]}],"line-clamp":[{"line-clamp":["none",ia,Ma]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,y]}],"list-image":[{"list-image":["none",y]}],"list-style-type":[{list:["none","disc","decimal",y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...da(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",W,J]}],"underline-offset":[{"underline-offset":["auto",W,y]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",y]}],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",y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...O(),co]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},uo]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],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-nt":[{border:[d]}],"border-nt-x":[{"border-x":[d]}],"border-nt-y":[{"border-y":[d]}],"border-nt-s":[{"border-s":[d]}],"border-nt-e":[{"border-e":[d]}],"border-nt-t":[{"border-t":[d]}],"border-nt-r":[{"border-r":[d]}],"border-nt-b":[{"border-b":[d]}],"border-nt-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...da(),"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":[v]}],"divide-style":[{divide:da()}],"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:["",...da()]}],"outline-offset":[{"outline-offset":[W,y]}],"outline-nt":[{outline:[W,J]}],"outline-color":[{outline:[a]}],"ring-nt":[{ring:ga()}],"ring-nt-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-nt":[{"ring-offset":[W,J]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",_,po]}],"shadow-color":[{shadow:[ba]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Na(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Na()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",_,y]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[M]}],sepia:[{sepia:[aa]}],"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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[M]}],"backdrop-sepia":[{"backdrop-sepia":[aa]}],"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",y]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",y]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[fa,y]}],"translate-x":[{"translate-x":[ya]}],"translate-y":[{"translate-y":[ya]}],"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",y]}],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","nt-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",y]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",y]}],fill:[{fill:[a,"none"]}],"stroke-nt":[{stroke:[W,J,Ma]}],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","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["nt","nt"],"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-nt":["border-nt-s","border-nt-e","border-nt-t","border-nt-r","border-nt-b","border-nt-l"],"border-nt-x":["border-nt-r","border-nt-l"],"border-nt-y":["border-nt-t","border-nt-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-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 tt=$t(bo);function c(...a){return tt((0,ot.clsx)(a))}function ha(a){let t=0,o=(e,n)=>`${e.toLowerCase().replace(/\s+/g,"-").replace(/[^\nt-]/g,"")}-${n}`,s=a.layout.flatMap(e=>{let n=[];return"title"in e&&e.title&&n.push({text:e.title,id:o(e.title,t++),tag:"h2"}),"columns"in e&&Array.isArray(e.columns)&&e.columns.forEach(d=>{var i,l,m,p,g;if(d.title&&n.push({text:d.title,id:o(d.title,t++),tag:"h2"}),(l=(i=d.richText)==null?void 0:i.root)!=null&&l.children&&((p=(m=d.richText)==null?void 0:m.root)==null?void 0:p.children.length)===1){let x=d.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of x)b.children[0]&&n.push({text:(g=b.children[0].text)!=null?g:"",id:o(b.children[0].text,t++),tag:b.tag||"h2"})}}),n}),r=ho(a.layout);return{tableOfContents:s,contentWithIds:r}}function ho(a){let t=(s,r)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\nt-]/g,"")}-${r}`,o=0;return a.map(s=>(s.title&&(s.id=t(s.title,o++)),s.columns&&(s.columns=s.columns.map(r=>(r.title&&(r.id=t(r.title,o++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(e=>e!==void 0).filter(e=>e.children!==void 0&&e.children.length>0).map(e=>(e.type==="heading"&&e.children[0].text&&(e.id=t(e.children[0].text,o++)),e))),r))),s))}var et=require("@radix-ui/react-slot"),st=require("class-variance-authority"),rt=oa(require("react")),nt=require("react/jsx-runtime"),xo=(0,st.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:"nt-10 px-4 py-2",icon:"nt-10 nt-10",lg:"nt-11 rounded px-8",sm:"nt-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"}}}),ea=rt.forwardRef(({asChild:a=!1,className:t,size:o,variant:s,...r},e)=>(0,nt.jsx)(a?et.Slot:"button",{className:c(xo({className:t,size:o,variant:s})),ref:e,...r}));ea.displayName="Button";var 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,nt.jsx)("i",{className:d})};var it=({className:a,content:t,style:o})=>(0,nt.jsx)("div",{className:c("mx-auto my-8 nt-full",a),children:(0,nt.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,nt.jsx)(E,{content:t,enableGutter:!1,enableProse:!1})})});var Da=oa(require("next/link")),sa=a=>{let{type:t,appearance:o="inline",children:s,className:r,label:e,newTab:n,reference:d,size:i,url:l}=a,m=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}`:l;if(!m)return null;let p=o==="link"?"clear":i,g=n?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,nt.jsxs)(Da.default,{className:c(r),href:m||l||"",...g,children:[e&&e,s&&s]}):(0,nt.jsx)(ea,{asChild:!0,className:r,size:p,variant:o,children:(0,nt.jsxs)(Da.default,{className:c(r),href:m||l||"",...g,children:[e&&e,s&&s]})})};var ca=({links:a,richText:t})=>(0,nt.jsx)("div",{className:"container",children:(0,nt.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,nt.jsx)("div",{className:"max-nt-[48rem] flex items-center",children:t&&(0,nt.jsx)(E,{className:"mb-0",content:t,enableGutter:!1})}),(0,nt.jsx)("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:o},s)=>(0,nt.jsx)(sa,{size:"lg",...o},s))})]})});var Ba=require("prism-react-renderer");var lt=require("lucide-react");function mt({code:a}){let[t,o]=(0,St.useState)("Copy");function s(){t==="Copy"&&(o(()=>"Copied!"),setTimeout(()=>{o(()=>"Copy")},1e3))}return(0,nt.jsx)("div",{className:"flex justify-end align-middle",children:(0,nt.jsxs)(ea,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(a),s()},children:[(0,nt.jsx)("p",{children:t}),(0,nt.jsx)("div",{className:"nt-6 nt-6 dark:invert",children:(0,nt.jsx)(lt.ClipboardCopy,{})})]})})}var ut=({code:a,language:t=""})=>a?(0,nt.jsx)(Ba.Highlight,{code:a,language:t,theme:Ba.themes.vsDark,children:({getLineProps:o,getTokenProps:s,tokens:r})=>(0,nt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((e,n)=>(0,nt.jsxs)("div",{...o({className:"table-row",line:e}),children:[(0,nt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,nt.jsx)("span",{className:"table-cell pl-4",children:e.map((d,i)=>(0,nt.jsx)("span",{...s({token:d})},i))})]},n)),(0,nt.jsx)(mt,{code:a})]})}):null;var pt=({className:a,code:t,language:o})=>(0,nt.jsx)("div",{className:[a,"not-prose"].filter(Boolean).join(" "),children:(0,nt.jsx)(ut,{code:t,language:o})});var gt=oa(require("next/image")),vo={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",ft=a=>{let{alt:t,fill:o,imgClassName:s,priority:r,resource:e,size:n,src:d,loading:i}=a,l,m,p=t,g=d||"";if(!g&&e&&typeof e=="object"){let{alt:u,filename:f,height:v,url:R,width:M}=e;if(v&&v>500){let z=500/v;l=M*z,m=v*z}else l=M,m=v;p=u||"",g=R||yt}let x=i||"lazy",b=n||Object.entries(vo).map(([,u])=>`(max-width: ${u}px) ${u*2}nt`).join(", ");return(0,nt.jsx)("picture",{children:(0,nt.jsx)(gt.default,{alt:p||"",className:c(s),fill:o,height:o?void 0:m,placeholder:"blur",blurDataURL:yt,priority:x!=="lazy"&&r,quality:100,loading:x,sizes:b,src:g,width:o?void 0:l})})};var bt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ht=()=>{if(bt){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 xt=a=>{let{onClick:t,resource:o,videoClassName:s}=a,r=(0,St.useRef)(null);if((0,St.useEffect)(()=>{let{current:e}=r;e&&e.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:e}=o;return(0,nt.jsx)("video",{autoPlay:!0,className:c(s),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,nt.jsx)("source",{src:`${ht()}/media/${e}`})})}return null};var Ia=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,nt.jsx)(o||St.Fragment,{...o!==null?{className:t}:{},children:r?(0,nt.jsx)(xt,{...a}):(0,nt.jsx)(ft,{...a})})};var $=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,nt.jsx)("div",{className:c("nt-full ",{container:o},t),children:(0,nt.jsx)(Ia,{imgClassName:c("rounded-[0.8rem]",s),className:"flex justify-center",resource:r,src:e})})};var wt=a=>{let{className:t,enableGutter:o=!0,imgClassName:s,media:r,staticImage:e}=a;return(0,nt.jsx)("div",{className:c("",{container:o},t),children:(0,nt.jsx)(Ia,{imgClassName:c("rounded-[0.8rem]",s),resource:r,src:e})})};var ma=({title:a,description:t,features:o,id:s,nested:r=!1})=>(0,nt.jsxs)("section",{className:c(!r&&"container","nt-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&(0,nt.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,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,nt.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,nt.jsx)(E,{content:t,enableGutter:!1})}),(0,nt.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${o?o.length:1}`,children:o&&o.map((e,n)=>{var i,l,m,p,g;let d=()=>{if(e.icon&&"type"in e.icon&&e.icon.type!=="none")return{type:e.icon.type,iconName:e.icon.icon}};return(0,nt.jsx)(kt,{variant:((i=e.settings)==null?void 0:i.card)==="default"?"light":((l=e.settings)==null?void 0:l.card)||"outline",icon:d()||void 0,iconSize:((m=e.settings)==null?void 0:m.iconSize)||"large",width:"auto",order:n,heading:e.title||"",content:e.content||void 0,statistic:e.statistic||void 0,buttonText:(p=e.link)!=null&&p.url?"Find out more":void 0,buttonHref:((g=e.link)==null?void 0:g.url)||void 0},n)})})]});var Sa=oa(require("react"));function va({nodes:a}){return(0,nt.jsx)(Sa.Fragment,{children:a==null?void 0:a.map((t,o)=>{if(t==null)return null;if(t.type==="text"&&t.text){let e=(0,nt.jsx)(Sa.default.Fragment,{children:t.text},o);return t.format&1&&(e=(0,nt.jsx)("strong",{children:e},o)),t.format&2&&(e=(0,nt.jsx)("em",{children:e},o)),t.format&4&&(e=(0,nt.jsx)("span",{style:{textDecoration:"line-through"},children:e},o)),t.format&8&&(e=(0,nt.jsx)("span",{style:{textDecoration:"underline"},children:e},o)),t.format&16&&(e=(0,nt.jsx)("code",{children:t.text},o)),t.format&32&&(e=(0,nt.jsx)("sub",{children:e},o)),t.format&64&&(e=(0,nt.jsx)("sup",{children:e},o)),e}if(t.type==="table")return(0,nt.jsx)("table",{children:(0,nt.jsx)("tbody",{children:t.children.map((e,n)=>(0,nt.jsx)("tr",{children:e.children.map((d,i)=>(0,nt.jsx)("td",{children:va({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 va({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,nt.jsx)(ca,{...e},o);case"mediaBlock":return(0,nt.jsx)($,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-nt-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"imageBlock":return(0,nt.jsx)(wt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...e,captionClassName:"mx-auto max-nt-[48rem]",enableGutter:!1,disableInnerContainer:!0},o);case"banner":return(0,nt.jsx)(it,{className:"col-start-2 mb-4",...e},o);case"code":return(0,nt.jsx)(pt,{className:"col-start-2",...e},o);case"features":return(0,nt.jsx)(ma,{...e,nested:!0},o);case"reusableContentBlock":va({nodes:e.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,nt.jsx)("br",{className:"col-start-2"},o);case"paragraph":return(0,nt.jsx)("p",{className:"col-start-2",children:r},o);case"heading":{let e=t==null?void 0:t.tag;return(0,nt.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,nt.jsx)(e,{className:"list col-start-2",children:r},o)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,nt.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,nt.jsx)("li",{value:t==null?void 0:t.value,children:r},o);case"quote":return(0,nt.jsx)("blockquote",{className:"col-start-2",children:r},o);case"link":{let e=t.fields;return(0,nt.jsx)(sa,{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,nt.jsx)(sa,{newTab:!!(e!=null&&e.newTab),reference:e.doc,type:e.linkType==="internal"?"reference":"custom",url:e.url,children:r},o)}default:return null}})})}var E=({className:a,content:t,enableGutter:o=!0,enableProse:s=!0})=>{var r;return t?(0,nt.jsx)("div",{className:c({"container ":o,"max-nt-none":!o,"mx-auto prose dark:prose-invert ":s},a),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&va({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function Nt(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function kt({variant:a="outline",className:t,icon:o,iconSize:s="large",width:r="auto",order:e=0,heading:n,subheading:d,content:i,statistic:l,buttonText:m,buttonHref:p}){let g={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:""},x={"1/4":"nt-1/4","1/3":"nt-1/3","1/2":"nt-1/2",full:"nt-full",auto:"nt-full"};return(0,nt.jsxs)("div",{className:c("rounded-3xl p-8 md:p-8 min-nt-56 flex flex-col group",g[a],a==="outline"?"text-gray-900":"text-white",t,x[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)(wo,{icon:o,heading:n,variant:a,iconSize:s})}),l&&(0,nt.jsx)("div",{className:"mb-6",children:(0,nt.jsx)("div",{className:c("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:l})}),d&&(0,nt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:d}),i&&typeof i=="object"&&(0,nt.jsx)("div",{className:c("space-y-6"),children:(0,nt.jsx)(E,{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,nt.jsx)("div",{className:c("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:i}),m&&(0,nt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,nt.jsx)(ea,{size:"lg",className:"text-white text-lg rounded-xl nt-full mt-auto items-center justify-center",asChild:!0,children:(0,nt.jsx)("a",{href:p,children:m})})}),a==="radial"&&(0,nt.jsx)("div",{className:"absolute bottom-0 right-0 nt-2/3 nt-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 wo=({icon:a,heading:t,variant:o,iconSize:s})=>a&&s==="small"?(0,nt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Nt(a)&&(0,nt.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,nt.jsx)(Fa,{type:a.type,iconName:a.iconName,size:"2x"})}),(0,nt.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:t})]}):a?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[Nt(a)&&(0,nt.jsx)("div",{className:c("nt-12 nt-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",o==="outline"||o==="light"?"text-accent":""),children:(0,nt.jsx)(Fa,{type:a.type,iconName:a.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:c("font-semibold",o==="outline"||o==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var za=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 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},n=(i,l,m)=>{if(l==="none"||m==="full")return{processedRichText:i,heading:null};let p=i,g=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(p={...i,root:{...i.root,children:i.root.children.slice(1)}},g=i.root.children[0]),{processedRichText:p,heading:g}};return(0,nt.jsx)("div",{className:"container my-6",children:(0,nt.jsx)("div",{className:c("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,l)=>{var f,v;let{enableLink:m,link:p,richText:g,size:x}=i,{processedRichText:b,heading:u}=n(g,((f=o==null?void 0:o.settings)==null?void 0:f.box)||"none",x||"full");return(0,nt.jsxs)("div",{className:c(`col-span-4 lg:col-span-${s[x]}`,{"md:col-span-2":x!=="full"},r[x!=="full"&&!e(g)&&((v=o==null?void 0:o.settings)==null?void 0:v.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${l+1}00`),children:[u&&(0,nt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),b&&(0,nt.jsx)(E,{content:b,enableGutter:!1,className:"rich-text"}),m&&(0,nt.jsx)(sa,{...p})]},l)})})})};var Rt=oa(require("next/image"));var At=a=>{let{customId:t,reusableContent:o}=a;return typeof o=="object"&&o!==null?(0,nt.jsx)(ko,{blocks:o.layout}):(0,nt.jsx)(nt.Fragment,{})},Pt={content:za,cta:ca,mediaBlock:$,imageBlock:$,features:ma},ko=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,nt.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 Pt){let l=Pt[e];if(l)return(0,nt.jsx)("div",{className:"py-6 relative",children:(0,nt.jsx)("div",{className:c(((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,nt.jsx)(l,{...s})})},r)}return null})}):null};var Bt={content:za,cta:ca,mediaBlock:$,imageBlock:$,features:ma,reusableContentBlock:At},wa=a=>{let{blocks:t}=a;return t&&Array.isArray(t)&&t.length>0?(0,nt.jsx)("section",{id:"render-blocks",className:c(a.fill?"nt-full nt-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 l=Bt[e];if(l)return(0,nt.jsxs)("div",{className:c("py-6 relative",a.fill&&"flex nt-full items-center justify-center"),children:[(0,nt.jsx)(Co,{block:s,index:r}),(0,nt.jsx)("div",{className:c("container nt-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,nt.jsx)(l,{...s})})]},r)}return null})}):null},Co=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,nt.jsxs)("div",{className:c("absolute inset-0 nt-full nt-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,nt.jsx)(Rt.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,nt.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,nt.jsx)("div",{className:c("absolute inset-0 -z-10 nt-screen nt-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var ua=require("framer-motion");var As=require("pagedjs");var Wa=oa(require("next/image")),Tt=({logoImage:a})=>(0,nt.jsxs)("footer",{className:`absolute bottom-0 left-0 nt-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
6
|
+
dark bg-background text-primary`,children:[(0,nt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,nt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"nt-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),ka=({title:a})=>(0,nt.jsx)("header",{className:"absolute top-0 left-0 nt-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,nt.jsx)("div",{className:"container",children:(0,nt.jsx)("span",{className:"container text-4xl px-6",children:a})})}),Ca=a=>{var r,e;let{title:t,hero:o,logoImage:s}=a;return(0,nt.jsxs)("div",{className:"relative nt-full nt-full flex flex-col justify-center min-nt-[500px] p-10",children:[(0,nt.jsx)("div",{className:"absolute inset-0",children:(0,nt.jsx)(Wa.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 nt-full dark:opacity-60"})}),(0,nt.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:s&&(0,nt.jsx)("div",{className:"nt-24",children:(0,nt.jsx)(Wa.default,{src:s.src,alt:"Company logo",className:"nt-full nt-full object-contain",width:192,height:96})})}),(0,nt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,nt.jsxs)("div",{className:"relative pl-24 z-10 max-nt-3xl",children:[(0,nt.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),o.richText&&(0,nt.jsx)(E,{content:o.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var qa=a=>{let[t,o]=(0,St.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],l=u=>{o(u)},m=()=>{o(u=>(u+1)%i.length)},p=()=>{o(u=>(u-1+i.length)%i.length)},x=(0,St.useCallback)(((u,f)=>{let v;return(...R)=>{clearTimeout(v),v=setTimeout(()=>u(...R),f)}})(u=>{u.deltaY>0?m():p()},300),[]),b=u=>{u.key==="ArrowDown"?m():u.key==="ArrowUp"&&p()};return(0,St.useEffect)(()=>(window.addEventListener("wheel",x),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",x),window.removeEventListener("keydown",b)}),[]),(0,nt.jsxs)("div",{className:"flex flex-col min-nt-screen relative overflow-hidden",children:[(0,nt.jsx)("div",{className:"fixed left-0 top-0 flex nt-screen nt-9 z-10 flex-col items-center justify-center bg-gray-900",children:n&&i.map((u,f)=>(0,nt.jsx)("button",{className:`group relative flex items-center justify-center my-2 nt-16 nt-4 rounded-full transition-all hover:bg-accent duration-300 ${t===f?"bg-accent":"bg-gray-600"}`,onClick:()=>l(f),children:(0,nt.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,nt.jsx)(ua.AnimatePresence,{children:i.map((u,f)=>(0,nt.jsx)("div",{id:`slide-${f}`,className:"print-section",children:(0,nt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
7
|
+
${f===t?"opacity-100":"opacity-0"}
|
|
8
|
+
nt-full nt-full bg-cover bg-center`,children:f===0?(0,nt.jsx)(Ca,{hero:r,title:a.title,logoImage:e}):(0,nt.jsxs)(nt.Fragment,{children:[u.blockName&&(0,nt.jsx)(ka,{title:u.blockName}),(0,nt.jsx)(wa,{blocks:[u],fill:!0}),(0,nt.jsx)(Tt,{logoImage:e})]})})},f))}),(0,nt.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:m,children:(0,nt.jsx)(No,{})})]})},No=()=>(0,nt.jsx)(ua.AnimatePresence,{children:(0,nt.jsx)(ua.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:c("nt-fit min-nt-[50px] min-nt-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,nt.jsx)(ua.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:c("nt-[12px] nt-[12px] rounded-full","bg-accent")})})});function Po(a){var t=document.createElement("div");t.style.display="block",t.style.height=a,document.body.appendChild(t);var o=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(o)}var It=({page:a,layout:t="portrait"})=>t==="flow"?(0,nt.jsx)(Ao,{page:a,layout:t}):(0,nt.jsx)(Bo,{page:a,layout:t}),Ao=({page:a,layout:t="portrait",logoImage:o})=>{let{contentWithIds:s}=ha(a),e=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...s];return(0,nt.jsx)("div",{className:"nt-[297mm]",children:(0,nt.jsxs)("div",{id:"printable-content",children:[e.map((n,d)=>(0,nt.jsx)(nt.Fragment,{children:d===0?(0,nt.jsx)("section",{className:"title-page nt-full nt-full",children:(0,nt.jsx)(Ca,{hero:a.hero,title:a.title})},d):(0,nt.jsxs)("section",{className:"normal-page overflow-hidden",children:[n.blockName&&(0,nt.jsx)(ka,{title:n.blockName}),(0,nt.jsx)(wa,{blocks:[n],fill:!0})]},d)})),(0,nt.jsx)("section",{className:"normal-page",children:(0,nt.jsxs)("div",{className:`nt-full py-2 px-8 flex justify-between items-center
|
|
9
|
+
dark bg-background text-primary`,children:[(0,nt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[o&&(0,nt.jsx)("img",{src:o.src,alt:"Cortex Reply Logo",className:"nt-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})})},Bo=({page:a,layout:t="portrait"})=>{let{contentWithIds:o}=ha(a),s=(0,St.useRef)(null),r=(0,St.useRef)(null),e=(0,St.useRef)(new As.Previewer),[n,d]=(0,St.useState)(0),l=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=(0,St.useCallback)(()=>{s.current&&(s.current&&(s.current.innerHTML=""),e.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],s.current).then(p=>d(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[]);return(0,St.useEffect)(()=>{e.current=new As.Previewer,m()},[m,t]),(0,nt.jsxs)("div",{className:"pagedjs-container",children:[(0,nt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:l.map((p,g)=>{var x,b;return(0,nt.jsx)(nt.Fragment,{children:g===0?(0,nt.jsx)("section",{className:"pagedjs-section title-page nt-full nt-full",children:(0,nt.jsx)(Ca,{hero:a.hero,title:a.title})},g):(0,nt.jsxs)("section",{className:c("pagedjs-section normal-page nt-[699px]",`nt-[${Po("185mm")}px]`,((b=(x=p.theme)==null?void 0:x.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,nt.jsx)(ka,{title:p.blockName}),(0,nt.jsx)(wa,{blocks:[p],fill:!0})]},g)})})}),(0,nt.jsx)("div",{ref:s,className:"preview-container"})]})};var zt=oa(require("html2canvas")),Ya=require("jspdf");function Ro({type:a="slideshow",orientation:t="landscape",...o}){let s=o.page,[r,e]=(0,St.useState)(t);console.log("args",o);let{contentWithIds:n,tableOfContents:d}=ha(s);if(a==="slideshow")return(0,nt.jsx)("div",{className:"flex fixed flex-col nt-screen nt-screen max-nt-screen overflow-auto overscroll-contain",children:(0,nt.jsx)(qa,{blocks:n,hero:o.hero,title:o.page.title})});if(a==="print")return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(To,{layout:r,changeLayout:e}),(0,nt.jsx)(It,{page:o.page,layout:r})]})}var To=({changeLayout:a,layout:t="landscape"})=>{let o=async()=>{t==="flow"?r("printable-content"):(await new Promise(e=>setTimeout(e,300)),window.print())},s=e=>{a&&a(e)},r=async e=>{console.log("elementToPrintId",e);let n=document.getElementById(e);if(!n)throw new Error(`Element with id ${e} not found`);let d=document.createElement("canvas"),i=window.devicePixelRatio;d.width=Math.max(n.clientWidth||0)*i,d.height=Math.max(n.clientHeight||0)*i+100;let l=d.getContext("2d");if(!l)throw new Error("Failed to get 2D context");let m=l.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((ta,L)=>(ta[L.src]=L,ta),{});l.drawImage=function(...ta){let[L,ya,na,F,D,C,ga,G,O]=ta;if(L instanceof HTMLImageElement){let da=p[L.src].style.objectFit||"fill",Na=p[L.src].style.objectPosition||"center center";D=L.height,F=L.width;let Q=F/D,U=G/O,[X,T]=Na.split(" ");switch(T||(T=X),da){case"cover":if(Q>U){let I=D*U,S=(F-I)/2;X==="left"&&(S=0),X==="right"&&(S=F-I),ya+=S,F=I}else{let I=F/U,S=(D-I)/2;T==="top"&&(S=0),T==="bottom"&&(S=D-I),na+=S,D=I}break;case"contain":if(Q>U){let I=G/Q,S=(O-I)/2;T==="top"&&(S=0),T==="bottom"&&(S=O-I),ga+=S,O=I}else{let I=O*Q,S=(G-I)/2;X==="left"&&(S=0),X==="right"&&(S=G-I),C+=S,G=I}break;case"fill":break}}return m.call(l,L,ya,na,F,D,C,ga,G,O)};let g=document.getElementById(e);if(!g)throw new Error(`Element with id ${e} not found`);var x=d.width,b=d.height;let f=(await(0,zt.default)(g,{canvas:d,windowHeight:b,windowWidth:x,scale:window.devicePixelRatio})).toDataURL("image/png"),R=new Ya.jsPDF({}).getImageProperties(f),M=297,z=M*(R.height/R.width),aa=new Ya.jsPDF({unit:"mm",format:[M,z]});aa.addImage(f,"PNG",0,0,M,z),aa.save("print.pdf")};return(0,nt.jsx)("div",{className:c("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:(0,nt.jsx)("div",{className:"flex flex-row-reverse z-20 min-nt-70 gap-4",children:(0,nt.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-nt-[auto] min-nt-[54px] flex-col rounded-lg border",children:[(0,nt.jsxs)("a",{onClick:o,className:"flex aspect-square min-nt-[25px] nt-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,nt.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,nt.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,nt.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,nt.jsxs)("a",{onClick:()=>s("portrait"),className:c("flex aspect-square min-nt-[25px] nt-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,nt.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,nt.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,nt.jsxs)("a",{onClick:()=>s("landscape"),className:c("flex aspect-square min-nt-[25px] nt-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,nt.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,nt.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,nt.jsxs)("a",{onClick:()=>s("flow"),className:c("flex aspect-square min-nt-[25px] nt-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,nt.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,nt.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};0&&(module.exports={Publish});
|
package/dist/pages/Publish.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../chunk-
|
|
2
|
+
"use strict";import{a}from"../chunk-LFX7M5VY.mjs";import"../chunk-U3TLYVTV.mjs";import"../chunk-NAONLHIH.mjs";import"../chunk-L2CGDHVO.mjs";import"../chunk-CSWXKGJE.mjs";import"../chunk-7DINW2AE.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-YRJ7YWPV.mjs";import"../chunk-BXLP27FT.mjs";import"../chunk-IJCMUPNH.mjs";import"../chunk-ZSUPFOXY.mjs";import"../chunk-XB5WL3OT.mjs";import"../chunk-Y74ENEUN.mjs";import"../chunk-X5KZKO2V.mjs";import"../chunk-NMHAXISV.mjs";import"../chunk-MY3PX5GI.mjs";import"../chunk-SEG6IDDX.mjs";import"../chunk-OWBJTXZL.mjs";import"../chunk-BRYZOZKY.mjs";import"../chunk-OFQF5AEG.mjs";import"../chunk-A24EPYUY.mjs";import"../chunk-QKGEV7LG.mjs";import"../chunk-SV7NMNDI.mjs";import"../chunk-7XMGPUGL.mjs";import"../chunk-MNLXTN7B.mjs";import"../chunk-KJ2C7CBU.mjs";import"../chunk-WZLEEZ5C.mjs";import"../chunk-JODGODRI.mjs";import"../chunk-MGZMAVEP.mjs";import"../chunk-F4V6VUT7.mjs";import"../chunk-WMMLX5GC.mjs";import"../chunk-HJX2VPMY.mjs";import"../chunk-TXXFXCXB.mjs";import"../chunk-KSCHUMVE.mjs";import"../chunk-PRUIYGQW.mjs";import"../chunk-H4Y4SZIU.mjs";import"../chunk-7VKHSE4O.mjs";import"../chunk-RBZMFLLA.mjs";import"../chunk-WRPART4J.mjs";import"../chunk-N6EJQZAV.mjs";import"../chunk-HWEPDRG6.mjs";import"../chunk-3LJZCM5A.mjs";import"../chunk-4JC2TJML.mjs";import"../chunk-4NKKWJ2X.mjs";import"../chunk-A5EYIB3V.mjs";import"../chunk-DWRQHV42.mjs";import"../chunk-Y5ZFXDW5.mjs";import"../chunk-SBAFXZVU.mjs";import"../chunk-AWFQEK7A.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-PY53YVFX.mjs";import"../chunk-3YZN4MJB.mjs";import"../chunk-WNPA7YT3.mjs";import"../chunk-KB6PO4K4.mjs";import"../chunk-Y5VTKEKS.mjs";import"../chunk-CGBVZQYY.mjs";import"../chunk-BSQVKZCW.mjs";import"../chunk-YNCJATT7.mjs";import"../chunk-QOIH63J3.mjs";import"../chunk-OAOCXXC2.mjs";import"../chunk-BDX257W2.mjs";import"../chunk-DRJBYVJB.mjs";import"../chunk-RZTXT4UD.mjs";import"../chunk-ZDPQXVTF.mjs";import"../chunk-CS77R54Z.mjs";import"../chunk-23L5ZJ2U.mjs";import"../chunk-GHBJK554.mjs";import"../chunk-3TIFSACL.mjs";import"../chunk-SV3TTIPR.mjs";import"../chunk-XDP6BKTK.mjs";import"../chunk-HAYRX2WO.mjs";import"../chunk-WISCWNL2.mjs";import"../chunk-YNNW2C2U.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-SFLOMJ2U.mjs";import"../chunk-SPOYKTBR.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-FRWX5YES.mjs";import"../chunk-CV7PH2KH.mjs";import"../chunk-S7OK7D5I.mjs";export{a as Publish};
|