cortex-react-components 1.58.22 → 1.58.23
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-H5ZJ5FZ6.mjs → chunk-26FHIJPI.mjs} +1 -1
- package/dist/{chunk-I2PJ5ANT.mjs → chunk-3TNHR4R3.mjs} +1 -1
- package/dist/{chunk-46OVI6RB.mjs → chunk-6ARDJ33C.mjs} +1 -1
- package/dist/{chunk-6DHYRATS.mjs → chunk-6LPSD3MQ.mjs} +1 -1
- package/dist/{chunk-XP6N7473.mjs → chunk-6SQK6BMG.mjs} +1 -1
- package/dist/{chunk-QBLN27FA.mjs → chunk-75OAUMGO.mjs} +1 -1
- package/dist/{chunk-2DGZ2JZ5.mjs → chunk-BTY3MRVI.mjs} +1 -1
- package/dist/{chunk-AX52NWUN.mjs → chunk-C2GNS62O.mjs} +1 -1
- package/dist/{chunk-MGBLZM7Q.mjs → chunk-C3TKY5VE.mjs} +1 -1
- package/dist/{chunk-7XB4Y3U2.mjs → chunk-CSNKYRV5.mjs} +1 -1
- package/dist/{chunk-DFB6DJCW.mjs → chunk-D7A7EUEW.mjs} +1 -1
- package/dist/chunk-FPQBVIUS.mjs +4 -0
- package/dist/{chunk-ZQGSLXFF.mjs → chunk-GM53J62R.mjs} +1 -1
- package/dist/{chunk-FGNLLSPZ.mjs → chunk-HJXEIYVK.mjs} +1 -1
- package/dist/{chunk-FPJFWQB5.mjs → chunk-HPMQRCDC.mjs} +1 -1
- package/dist/{chunk-IGYTQN3S.mjs → chunk-IABQ3JMG.mjs} +1 -1
- package/dist/{chunk-G2BJSFF4.mjs → chunk-IAP7Y2DK.mjs} +1 -1
- package/dist/{chunk-MTIC2X6C.mjs → chunk-IFZ6ABCM.mjs} +1 -1
- package/dist/{chunk-XXTN5HMN.mjs → chunk-J2IXHXCA.mjs} +1 -1
- package/dist/{chunk-UIBWSN7F.mjs → chunk-JVM2ZAN6.mjs} +1 -1
- package/dist/{chunk-F4JKB4UG.mjs → chunk-JZE6HGP6.mjs} +1 -1
- package/dist/{chunk-477T4CBB.mjs → chunk-K7XFS6IQ.mjs} +1 -1
- package/dist/{chunk-HER7J6HM.mjs → chunk-KEPEJWQO.mjs} +1 -1
- package/dist/{chunk-LLJZRF3C.mjs → chunk-KLCZHZKQ.mjs} +1 -1
- package/dist/{chunk-G3J6AOMR.mjs → chunk-LCRFWXVK.mjs} +1 -1
- package/dist/{chunk-QNE2DK3R.mjs → chunk-MFTCHZFC.mjs} +1 -1
- package/dist/{chunk-7WDAODFS.mjs → chunk-NO3JTFER.mjs} +1 -1
- package/dist/{chunk-BBCS6735.mjs → chunk-Q32SRZ5X.mjs} +1 -1
- package/dist/{chunk-IREQMG2S.mjs → chunk-QT5WSNLK.mjs} +1 -1
- package/dist/{chunk-F55C2C5H.mjs → chunk-RQ23CZK5.mjs} +1 -1
- package/dist/{chunk-JPFBD2KD.mjs → chunk-SQWRG4U3.mjs} +1 -1
- package/dist/{chunk-3BBZH3T3.mjs → chunk-TZE7RZAV.mjs} +1 -1
- package/dist/{chunk-S3KRL344.mjs → chunk-UFDQJZAB.mjs} +1 -1
- package/dist/{chunk-QTO5C7WM.mjs → chunk-UHW6FJUK.mjs} +1 -1
- package/dist/{chunk-RJGKFNZL.mjs → chunk-UKJ3TIPX.mjs} +1 -1
- package/dist/{chunk-QID6JIRX.mjs → chunk-VNPAYMAG.mjs} +1 -1
- package/dist/{chunk-QSBB2P4N.mjs → chunk-VV6P75VN.mjs} +1 -1
- package/dist/{chunk-X5XG7LVM.mjs → chunk-WDVSSHIB.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.js +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.js +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.js +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.js +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.js +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.js +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +4 -4
- 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/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.js +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/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- 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.js +3 -3
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +3 -3
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +4 -4
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/Card/index.js +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.js +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
- package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
- package/dist/components/Payload/Media/index.js +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +9 -9
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +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.js +3 -3
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.js +2 -2
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +177 -177
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +4 -4
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +4 -4
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +4 -4
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.js +3 -3
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.js +3 -3
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.js +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.js +2 -2
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.js +2 -2
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.js +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.js +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.js +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.js +3 -3
- package/dist/sections/index.mjs +1 -1
- package/dist/utils/getURL.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-44TDI42O.mjs +0 -1
- package/dist/chunk-TFWGOEV7.mjs +0 -4
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use server'
|
|
4
4
|
|
|
5
|
-
"use strict";var Zt=Object.create;var de=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Wt=Object.getOwnPropertyNames;var $t=Object.getPrototypeOf,Xt=Object.prototype.hasOwnProperty;var er=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},_e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Wt(t))!Xt.call(e,s)&&s!==r&&de(e,s,{get:()=>t[s],enumerable:!(n=Jt(t,s))||n.enumerable});return e};var S=(e,t,r)=>(r=e!=null?Zt($t(e)):{},_e(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),tr=e=>_e(de({},"__esModule",{value:!0}),e);var Qr={};er(Qr,{Default:()=>Q,LoadsOfBlogs:()=>Vt,NoAuthorImage:()=>_t,NoCategories:()=>qt,default:()=>Yr});module.exports=tr(Qr);var Ze="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//st";var at=require("clsx");var Re="-",rr=e=>{let t=ar(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{let i=a.split(Re);return i[0]===""&&i.length!==1&&i.shift(),$e(i,t)||or(a)},getConflictingClassGroupIds:(a,i)=>{let c=r[a]||[];return i&&n[a]?[...c,...n[a]]:c}}},$e=(e,t)=>{var a;if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?$e(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(Re);return(a=t.validators.find(({validator:i})=>i(o)))==null?void 0:a.classGroupId},Je=/^\[(.+)\]$/,or=e=>{if(Je.test(e)){let t=Je.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ar=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return sr(Object.entries(e.classGroups),r).forEach(([o,a])=>{Te(a,n,o,t)}),n},Te=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:We(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(nr(s)){Te(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{Te(a,We(t,o),r,n)})})},We=(e,t)=>{let r=e;return t.split(Re).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},nr=e=>e.isThemeGetter,sr=(e,t)=>t?e.map(([r,n])=>{let s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,i])=>[t+a,i])):o);return[r,s]}):e,ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,s=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return s(o,a),a},set(o,a){r.has(o)?r.set(o,a):s(o,a)}}},Xe="!",lr=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,a=i=>{let c=[],p=0,g=0,C;for(let w=0;w<i.length;w++){let A=i[w];if(p===0){if(A===s&&(n||i.slice(w,w+o)===t)){c.push(i.slice(g,w)),g=w+o;continue}if(A==="/"){C=w;continue}}A==="["?p++:A==="]"&&p--}let h=c.length===0?i:i.substring(g),k=h.startsWith(Xe),N=k?h.substring(1):h,f=C&&C>g?C-g:void 0;return{modifiers:c,hasImportantModifier:k,baseClassName:N,maybePostfixModifierPosition:f}};return r?i=>r({className:i,parseClassName:a}):a},cr=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},dr=e=>({cache:ir(e.cacheSize),parseClassName:lr(e),...rr(e)}),pr=/\s+/,mr=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],a=e.trim().split(pr),i="";for(let c=a.length-1;c>=0;c-=1){let p=a[c],{modifiers:g,hasImportantModifier:C,baseClassName:h,maybePostfixModifierPosition:k}=r(p),N=!!k,f=n(N?h.substring(0,k):h);if(!f){if(!N){i=p+(i.length>0?" "+i:i);continue}if(f=n(h),!f){i=p+(i.length>0?" "+i:i);continue}N=!1}let w=cr(g).join(":"),A=C?w+Xe:w,P=A+f;if(o.includes(P))continue;o.push(P);let H=s(f,N);for(let R=0;R<H.length;++R){let ie=H[R];o.push(A+ie)}i=p+(i.length>0?" "+i:i)}return i};function ur(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=et(t))&&(n&&(n+=" "),n+=r);return n}var et=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=et(e[n]))&&(r&&(r+=" "),r+=t);return r};function gr(e,...t){let r,n,s,o=a;function a(c){let p=t.reduce((g,C)=>C(g),e());return r=dr(p),n=r.cache.get,s=r.cache.set,o=i,i(c)}function i(c){let p=n(c);if(p)return p;let g=mr(c,r);return s(c,g),g}return function(){return o(ur.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-st-]+):)?(.+)\]$/i,fr=/^\d+\/\d+$/,br=new Set(["px","full","screen"]),yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hr=/\d+(%|px|r?em|[sdl]?st([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vr=/^(inset_)?-?((\d+)?\.?(\d+)[a-st]+|0)st-?((\d+)?\.?(\d+)[a-st]+|0)/,Cr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>V(e)||br.has(e)||fr.test(e),U=e=>q(e,"length",Rr),V=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>q(e,"number",V),ee=e=>!!e&&Number.isInteger(Number(e)),wr=e=>e.endsWith("%")&&V(e.slice(0,-1)),d=e=>tt.test(e),G=e=>yr.test(e),Ar=new Set(["length","size","percentage"]),kr=e=>q(e,Ar,rt),Nr=e=>q(e,"position",rt),Pr=new Set(["image","url"]),Br=e=>q(e,Pr,Ir),Tr=e=>q(e,"",Sr),te=()=>!0,q=(e,t,r)=>{let n=tt.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Rr=e=>hr.test(e)&&!xr.test(e),rt=()=>!1,Sr=e=>vr.test(e),Ir=e=>Cr.test(e);var Mr=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),n=b("brightness"),s=b("borderColor"),o=b("borderRadius"),a=b("borderSpacing"),i=b("borderWidth"),c=b("contrast"),p=b("grayscale"),g=b("hueRotate"),C=b("invert"),h=b("gap"),k=b("gradientColorStops"),N=b("gradientColorStopPositions"),f=b("inset"),w=b("margin"),A=b("opacity"),P=b("padding"),H=b("saturate"),R=b("scale"),ie=b("sepia"),je=b("skew"),Ke=b("space"),Oe=b("translate"),Ae=()=>["auto","contain","none"],ke=()=>["auto","hidden","clip","visible","scroll"],Ne=()=>["auto",d,t],x=()=>[d,t],Ye=()=>["",F,U],le=()=>["auto",V,d],Qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],Ve=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",d],qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[V,d];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[F,U],blur:["none","",G,d],brightness:E(),borderColor:[e],borderRadius:["none","","full",G,d],borderSpacing:x(),borderWidth:Ye(),contrast:E(),grayscale:X(),hueRotate:E(),invert:X(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[wr,U],inset:Ne(),margin:Ne(),opacity:E(),padding:x(),saturate:E(),scale:E(),sepia:X(),skew:E(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[G]}],"break-after":[{"break-after":qe()}],"break-before":[{"break-before":qe()}],"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:[...Qe(),d]}],overflow:[{overflow:ke()}],"overflow-x":[{"overflow-x":ke()}],"overflow-st":[{"overflow-st":ke()}],overscroll:[{overscroll:Ae()}],"overscroll-x":[{"overscroll-x":Ae()}],"overscroll-st":[{"overscroll-st":Ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-st":[{"inset-st":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],st:[{st:["auto",ee,d]}],basis:[{basis:Ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",ee,d]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,d]},d]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,d]},d]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-st":[{"gap-st":[h]}],"justify-content":[{justify:["normal",...Pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],st:[{st:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],st:[{st:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Ke]}],"space-x-reverse":["space-x-reverse"],"space-st":[{"space-st":[Ke]}],"space-st-reverse":["space-st-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[G]},G]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",G,U]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"font-family":[{font:[te]}],"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",d]}],"line-clamp":[{"line-clamp":["none",V,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,U]}],"underline-offset":[{"underline-offset":["auto",F,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Qe(),Nr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","st","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",kr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Br]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-st":[{"border-st":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-st":[{"divide-st":[i]}],"divide-st-reverse":["divide-st-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ce()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-st":[{"border-st":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[F,d]}],"outline-w":[{outline:[F,U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[F,U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",G,Tr]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Ve(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ve()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",G,d]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[C]}],saturate:[{saturate:[H]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-st":[{"border-spacing-st":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-st":[{"scale-st":[R]}],rotate:[{rotate:[ee,d]}],"translate-x":[{"translate-x":[Oe]}],"translate-st":[{"translate-st":[Oe]}],"skew-x":[{"skew-x":[je]}],"skew-st":[{"skew-st":[je]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","st","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-st":[{"scroll-st":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-st":[{"scroll-st":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","st","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-st":[{"touch-pan":["st","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[F,U,Be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-st"],overscroll:["overscroll-x","overscroll-st"],inset:["inset-x","inset-st","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-st":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-st"],p:["px","py","ps","st","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],st:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-st"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-st":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-st":["border-color-t","border-color-b"],"scroll-st":["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-st","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-st","touch-pz"],"touch-x":["touch"],"touch-st":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ot=gr(Mr);function l(...e){return ot((0,at.clsx)(e))}var st=require("react/jsx-runtime");function nt({children:e,isFluid:t=!1,isNoPadding:r=!1,className:n=""}){let s=l("container",t&&"full-width",r&&"no-padding",n);return(0,st.jsx)("div",{className:s,children:e})}var it=S(require("next/link"));function lt({children:e,href:t,openNewTab:r,...n}){return(0,st.jsx)(it.default,{href:t,target:r?"_blank":"_self",...n,children:e})}var Ot=S(require("next/image"));var dt=({className:e,content:t,style:r})=>(0,st.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,st.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,st.jsx)(I,{content:t,enableGutter:!1,enableProse:!1})})});var vt=require("react");var pt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),ut=S(require("react")),Lr=(0,mt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),D=ut.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},o)=>(0,st.jsx)(e?pt.Slot:"button",{className:l(Lr({className:t,size:r,variant:n})),ref:o,...s}));D.displayName="Button";var Se=S(require("next/link")),oe=e=>{let{type:t,appearance:r="inline",children:n,className:s,label:o,newTab:a,reference:i,size:c,url:p}=e,g=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:p;if(!g)return null;let C=r==="link"?"clear":c,h=a?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,st.jsxs)(Se.default,{className:l(s),href:g||p||"",...h,children:[o&&o,n&&n]}):(0,st.jsx)(D,{asChild:!0,className:s,size:C,variant:r,children:(0,st.jsxs)(Se.default,{className:l(s),href:g||p||"",...h,children:[o&&o,n&&n]})})};function me({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Er({className:e,...t}){return(0,st.jsx)("input",{...t,className:me({className:e})})}function ue({icon:e,...t}){return(0,st.jsxs)("div",{className:"relative w-full",children:[(0,st.jsx)(Er,{...t}),e&&(0,st.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-st-1/2 text-accent",children:e})]})}function Fr({className:e,...t}){return(0,st.jsx)("textarea",{...t,className:l(me({}),"resize-none md:min-h-[130px]",e)})}function ft({icon:e,...t}){return(0,st.jsxs)("div",{className:"relative w-full",children:[(0,st.jsx)(Fr,{...t}),e&&(0,st.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var yt=require("formik"),ht=require("react-icons/fa6"),j=S(require("yup"));async function bt(e){let{name:t,email:r,subject:n,message:s}=e,o=process.env.TEAMS_WEBHOOK_URL;if(!o)throw new Error("TEAMS_WEBHOOK_URL is not defined");let a={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0},{type:"TextBlock",text:`${n}`,wrap:!0}]}]},{type:"TextBlock",text:`${s}`,wrap:!0}]}}]};try{let i=await fetch(o,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Ie=require("sonner"),T={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},Dr=j.object().shape({name:j.string().min(2,T.tooShort).max(50,T.tooLong).required(T.required),email:j.string().email(T.email).required(T.required),subject:j.string().min(2,T.tooShort).max(50,T.tooLong).required(T.required),message:j.string().min(2,T.tooShort).max(300,T.tooLong).required(T.required)}),ge=l("!pr-[44px] text-foreground"),fe=l("!border-red-600 border"),be=l("sr-only");function xt(){return(0,st.jsx)(yt.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Dr,onSubmit:async(e,{resetForm:t})=>{let r=await bt(e);r.data===null?Ie.toast.error(r.message):(Ie.toast.success(r.message),t())},children:({errors:e,touched:t,values:r,handleChange:n,handleBlur:s,isSubmitting:o,handleSubmit:a})=>(0,st.jsxs)("form",{onSubmit:a,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,st.jsxs)("div",{children:[(0,st.jsx)(ue,{placeholder:"Your Name",type:"text",name:"name",value:r.name,onChange:n,onBlur:s,disabled:o,icon:(0,st.jsx)(ht.FaUser,{className:"text-primary"}),className:l(ge,e.name&&t.name&&fe)}),e.name&&t.name&&(0,st.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:be,children:e.name})]}),(0,st.jsxs)("div",{children:[(0,st.jsx)(ue,{placeholder:"Your Email",type:"email",name:"email",value:r.email,onChange:n,onBlur:s,disabled:o,icon:(0,st.jsx)(zr,{}),className:l(ge,e.email&&t.email&&fe)}),e.email&&t.email&&(0,st.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:be,children:e.email})]}),(0,st.jsxs)("div",{className:"lg:col-span-2",children:[(0,st.jsx)(ue,{placeholder:"Subject",type:"text",name:"subject",value:r.subject,onChange:n,onBlur:s,disabled:o,className:l(ge,e.subject&&t.subject&&fe)}),e.subject&&t.subject&&(0,st.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:be,children:e.subject})]}),(0,st.jsxs)("div",{className:"lg:col-span-2",children:[(0,st.jsx)(ft,{placeholder:"Message...",name:"message",value:r.message,onChange:n,onBlur:s,disabled:o,icon:(0,st.jsx)(Hr,{}),className:l(ge,e.message&&t.message&&fe)}),e.message&&t.message&&(0,st.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:be,children:e.message})]}),(0,st.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,st.jsx)(D,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:o,children:"Send"})})]})})}function zr(){return(0,st.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,st.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Hr(){return(0,st.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,st.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Ct=({links:e,richText:t})=>{let[r,n]=(0,vt.useState)(!1),s="accent",o=()=>n(!0),a=()=>n(!1),i=c=>{c.target===c.currentTarget&&a()};return(0,st.jsxs)("div",{className:l("relative isolate overflow-hidden",s==="accent"?"bg-accent":"bg-black"),children:[(0,st.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,st.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,st.jsx)(I,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,st.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,st.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},p)=>(c==null?void 0:c.url)==="/contact"?(0,st.jsx)("div",{onClick:o,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",s==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},p):(0,st.jsx)(oe,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",s==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},p))})})]})}),r&&(0,st.jsx)("div",{className:"absolute inset-0 st-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,st.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,st.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:a,children:"\u2715"}),(0,st.jsx)(xt,{})," "]})})]})};var ye=require("prism-react-renderer");var wt=require("lucide-react");function kt({code:e}){let[t,r]=(0,vt.useState)("Copy");function n(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,st.jsx)("div",{className:"flex justify-end align-middle",children:(0,st.jsxs)(D,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,st.jsx)("p",{children:t}),(0,st.jsx)("div",{className:"w-6 h-6",children:(0,st.jsx)(wt.ClipboardCopy,{})})]})})}var Nt=({code:e,language:t=""})=>e?(0,st.jsx)(ye.Highlight,{code:e,language:t,theme:ye.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,st.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,a)=>(0,st.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,st.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,st.jsx)("span",{className:"table-cell pl-4",children:o.map((i,c)=>(0,st.jsx)("span",{...n({token:i})},c))})]},a)),(0,st.jsx)(kt,{code:e})]})}):null;var Pt=({className:e,code:t,language:r})=>(0,st.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,st.jsx)(Nt,{code:t,language:r})});var Tt=S(require("next/image")),Ur={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Bt="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=",Rt=e=>{let{alt:t,fill:r,imgClassName:n,priority:s,resource:o,size:a,src:i,loading:c}=e,p,g,C=t,h=i||"";if(!h&&o&&typeof o=="object"){let{alt:f,filename:w,height:A,url:P,width:H}=o;if(A&&A>500){let R=500/A;p=H*R,g=A*R}else p=H,g=A;C=f||"",h=P||Bt}let k=c||"lazy",N=a||Object.entries(Ur).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,st.jsx)("picture",{children:(0,st.jsx)(Tt.default,{alt:C||"",className:l(n),fill:r,height:r?void 0:g,placeholder:"blur",blurDataURL:Bt,priority:k!=="lazy"&&s,quality:100,loading:k,sizes:N,src:h,width:r?void 0:p})})};var St=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var It=()=>{if(St){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Mt=e=>{let{onClick:t,resource:r,videoClassName:n}=e,s=(0,vt.useRef)(null);if((0,vt.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,st.jsx)("video",{autoPlay:!0,className:l(n),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,st.jsx)("source",{src:`${It()}/media/${o}`})})}return null};var ve=e=>{var a;let{className:t,htmlElement:r="div",resource:n}=e,s=typeof n=="object"&&((a=n==null?void 0:n.mimeType)==null?void 0:a.includes("video"));return(0,st.jsx)(r||vt.Fragment,{...r!==null?{className:t}:{},children:s?(0,st.jsx)(Mt,{...e}):(0,st.jsx)(Rt,{...e})})};var Et=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,st.jsx)("div",{className:l("h-full ",{container:r},t),children:(0,st.jsx)(ve,{imgClassName:l("rounded-[0.8rem]",n),className:"flex justify-center",resource:s,src:o})})};var Ft=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,st.jsx)("div",{className:l("",{container:r},t),children:(0,st.jsx)(ve,{imgClassName:l("rounded-[0.8rem]",n),resource:s,src:o})})};var ze=({type:e="solid",iconName:t="cloud",size:r="lg",className:n})=>{let s=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,a=n!=null?n:"",i=s+o+" fa-"+r+" "+a;return(0,st.jsx)("i",{className:i})};var Ht=S(require("next/image"));function zt(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function He({image:e,icon:t,title:r,subtitle:n,content:s,statistic:o,settings:a,link:i,className:c}){var C,h;let p={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:"bg-background"},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,st.jsxs)("a",{href:(i==null?void 0:i.url)||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",a&&!e&&p[(a==null?void 0:a.card)==="default"?"solid":a==null?void 0:a.card],e&&"bg-foreground",a&&(a==null?void 0:a.card)==="outline"?"text-gray-900":"text-white",g[(C=a==null?void 0:a.width)!=null?C:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",a&&`intersect:animate-delay-${a.order||1}00`,c),children:[e&&(0,st.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,st.jsx)(Ht.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,st.jsxs)("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,st.jsxs)("div",{className:"flex flex-col flex-grow",children:[n&&(0,st.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:n}),(0,st.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,st.jsx)(Gr,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:r!=null?r:"",variant:(a==null?void 0:a.card)==="default"?"solid":(h=a==null?void 0:a.card)!=null?h:"solid",iconSize:(a==null?void 0:a.iconSize)||"large"})}),s&&typeof s=="object"&&(0,st.jsx)(I,{enableGutter:!1,content:s,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-st-3",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),s&&typeof s=="string"&&(0,st.jsx)("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-st-3",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:s})]}),i&&i.url&&(0,st.jsx)("div",{className:"mt-6",children:(0,st.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:(i==null?void 0:i.label)||"Find out more"})})]})]})}var Gr=({icon:e,heading:t,variant:r,iconSize:n,subtitle:s})=>e&&n==="small"&&e.iconName!="no-icon-error"?(0,st.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,st.jsx)("div",{className:l(r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),zt(e)&&(0,st.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:(0,st.jsx)(ze,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,st.jsxs)("div",{className:"flex flex-col gap-4",children:[zt(e)&&(0,st.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,st.jsx)(ze,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,st.jsx)("h3",{className:l("font-normal",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,st.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,st.jsx)("div",{className:l("font-regular",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var O=S(require("react"));var J=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));J.displayName="Card";var ae=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("flex flex-col space-st-1.5 p-6",e),...t}));ae.displayName="CardHeader";var ne=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("font-semibold leading-none tracking-tight",e),...t}));ne.displayName="CardTitle";var jr=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("text-sm text-muted-foreground",e),...t}));jr.displayName="CardDescription";var W=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("p-6 pt-0",e),...t}));W.displayName="CardContent";var Kr=O.forwardRef(({className:e,...t},r)=>(0,st.jsx)("div",{ref:r,className:l("flex items-center p-6 pt-0",e),...t}));Kr.displayName="CardFooter";var Ut=({title:e,description:t,features:r,id:n,nested:s=!1})=>(0,st.jsxs)("section",{className:l(s?"w-full":"container",""),children:[(0,st.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,st.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:e}),t&&typeof t=="string"&&(0,st.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,st.jsx)("div",{className:"mb-5 text-foreground",children:(0,st.jsx)(I,{content:t,enableGutter:!1})})]}),(0,st.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${r?r.length>2?2:r.length:1} lg:grid-cols-${r?r.length>3?3:r.length:1}`,children:r&&r.map((o,a)=>{var c;let i=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,st.jsx)(He,{title:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,settings:{...o.settings,width:"auto",order:a},link:o.link?{...o.link,label:"Learn more"}:void 0,icon:(c=i())!=null?c:{type:"none",icon:null}},a)})})]});var Ce=S(require("react"));function se({nodes:e}){return(0,st.jsx)(Ce.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,st.jsx)(Ce.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,st.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,st.jsx)("em",{children:o},r)),t.format&4&&(o=(0,st.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,st.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,st.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,st.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,st.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,st.jsx)("table",{children:(0,st.jsx)("tbody",{children:t.children.map((o,a)=>(0,st.jsx)("tr",{children:o.children.map((i,c)=>(0,st.jsx)("td",{children:se({nodes:i.children})},c))},a))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let a of o.children)"checked"in a&&(a!=null&&a.checked||(a.checked=!1));return se({nodes:o.children})},s="children"in t?n(t):"";if(t.type==="block"){let o=t.fields,a=o==null?void 0:o.blockType;if(!o||!a)return null;switch(a){case"cta":return(0,st.jsx)(Ct,{...o},r);case"mediaBlock":return(0,st.jsx)(Et,{className:"col-start-1 col-span-3",imgClassName:"st-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,st.jsx)(Ft,{className:"col-start-1 col-span-3",imgClassName:"st-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,st.jsx)(dt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,st.jsx)(Pt,{className:"col-start-2",...o},r);case"features":return(0,st.jsx)(Ut,{...o,nested:!0},r);case"reusableContentBlock":se({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,st.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,st.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,st.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,st.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,st.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,st.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,st.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,st.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}case"autolink":{let o=t.fields;return(0,st.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var I=({className:e,content:t,enableGutter:r=!0,enableProse:n=!0})=>{var s;return t?(0,st.jsx)("div",{className:l({"container ":r,"max-w-none":!r,"mx-auto prose":n},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&se({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};var Yt=require("next/navigation");var Va=l("transition-colors duration-400 hover:text-primary ease-in-out");function Kt({title:e,links:t}){let r=(0,$.useSearchParams)(),n=(0,$.usePathname)(),{replace:s}=(0,$.useRouter)();function o(a){let i=new URLSearchParams(r);a?i.set("category",a):i.delete("category"),s(`${n}?${i.toString()}`)}return(0,st.jsxs)(J,{children:[(0,st.jsx)(ae,{children:(0,st.jsx)(ne,{className:"text-accent",children:e&&e})}),(0,st.jsx)(W,{children:t&&t.length>0&&(0,st.jsx)("nav",{"aria-label":"footer links navigation",children:(0,st.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((a,i)=>(0,st.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),o(a.href)},children:[a.label,(0,st.jsx)(wt.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}var Qt=S(require("next/link"));function Or({image:e,name:t,about:r,socialLinks:n}){return!e||!e.src||e.src.length<3||!t?null:(0,st.jsx)("div",{className:"mt-1 st-10 px-0 pt-0 lg:px-10",children:(0,st.jsx)(J,{children:(0,st.jsxs)(W,{children:[e&&e.src&&(0,st.jsx)(Ot.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ze,className:"mx-auto mt-6 rounded-full object-cover"}),(0,st.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,st.jsx)("p",{children:r}),n&&n.length>0&&(0,st.jsx)("nav",{"aria-label":"social links",children:(0,st.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:n.map((s,o)=>(0,st.jsx)("li",{children:(0,st.jsx)(lt,{href:s.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-st-1 hover:text-accents",children:(0,st.jsx)("span",{children:s.icon})})},o))})})]})})})}function Ue({page:e,categoryList:t,edit:r=!1,path:n="/admin/collections/posts/"}){var h;if(!e)return(0,Yt.notFound)();let{meta:s,populatedAuthors:o,authors:a,categories:i,content:c,title:p}=e,g={image:{src:s&&s.image&&s.image.url||void 0,alt:s&&s.image&&s.image.alt||void 0},authorName:((h=o==null?void 0:o[0])==null?void 0:h.name)||"",category:i,commentCount:0,title:p,description:(s==null?void 0:s.description)||""},C=a==null?void 0:a.map(k=>{var N,f;return{name:k.name||"",about:"",image:{src:k.profilePicture&&((f=(N=k.profilePicture.sizes)==null?void 0:N.square)==null?void 0:f.url)||"",alt:k.name||"blog author"},socialLinks:[]}});return(0,st.jsx)(nt,{children:(0,st.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,st.jsx)("div",{children:(0,st.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,st.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,st.jsx)(I,{content:c,enableGutter:!1,className:"prose-invert"})]})}),(0,st.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,st.jsx)("div",{className:"mt-4 lg:-mt-10 st-10 px-0 pt-0 lg:px-10",children:(0,st.jsxs)(J,{children:[(0,st.jsx)(ae,{children:(0,st.jsx)(ne,{className:"text-accent",children:"Content Actions"})}),(0,st.jsxs)(W,{children:[(0,st.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,st.jsx)(Qt.default,{href:`${n}${e.id}`,children:(0,st.jsx)(D,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),C&&C.map((k,N)=>(0,st.jsx)(Or,{...k},N)),t&&t.links&&(0,st.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,st.jsx)(Kt,{links:t.links,title:t.title})})]})]})})}var Yr={title:"Website Components/BlogDetail",component:Ue,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[e=>(0,st.jsx)(e,{})]},we=e=>(0,st.jsx)(Ue,{...e}),Q=we.bind({});Q.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{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},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. 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},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean ut ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var Vt=we.bind({});Vt.args={...Q.args,pages:{totalPages:40,page:20}};var qt=we.bind({});qt.args={...Q.args,page:{...Q.args.page,categoryList:{title:"Categories"}},categoryList:null};var _t=we.bind({});_t.args={...Q.args,page:{...Q.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};0&&(module.exports={Default,LoadsOfBlogs,NoAuthorImage,NoCategories});
|
|
5
|
+
"use strict";var Vt=Object.create;var de=Object.defineProperty;var Zt=Object.getOwnPropertyDescriptor;var Jt=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf,Xt=Object.prototype.hasOwnProperty;var _t=(e,t)=>{for(var r in t)de(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Jt(t))!Xt.call(e,n)&&n!==r&&de(e,n,{get:()=>t[n],enumerable:!(s=Zt(t,n))||s.enumerable});return e};var I=(e,t,r)=>(r=e!=null?Vt(Wt(e)):{},Ze(t||!e||!e.__esModule?de(r,"default",{value:e,enumerable:!0}):r,e)),$t=e=>Ze(de({},"__esModule",{value:!0}),e);var Yr={};_t(Yr,{Default:()=>q,LoadsOfBlogs:()=>Qt,NoAuthorImage:()=>Ot,NoCategories:()=>qt,default:()=>Kr});module.exports=$t(Yr);var Je="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//nt";var at=require("clsx");var Se="-",er=e=>{let t=rr(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{let i=a.split(Se);return i[0]===""&&i.length!==1&&i.shift(),_e(i,t)||tr(a)},getConflictingClassGroupIds:(a,i)=>{let c=r[a]||[];return i&&s[a]?[...c,...s[a]]:c}}},_e=(e,t)=>{var a;if(e.length===0)return t.classGroupId;let r=e[0],s=t.nextPart.get(r),n=s?_e(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join(Se);return(a=t.validators.find(({validator:i})=>i(o)))==null?void 0:a.classGroupId},We=/^\[(.+)\]$/,tr=e=>{if(We.test(e)){let t=We.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rr=e=>{let{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return ar(Object.entries(e.classGroups),r).forEach(([o,a])=>{Te(a,s,o,t)}),s},Te=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:Xe(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(or(n)){Te(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,a])=>{Te(a,Xe(t,o),r,s)})})},Xe=(e,t)=>{let r=e;return t.split(Se).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},or=e=>e.isThemeGetter,ar=(e,t)=>t?e.map(([r,s])=>{let n=s.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,i])=>[t+a,i])):o);return[r,n]}):e,sr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map,n=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,s=r,r=new Map)};return{get(o){let a=r.get(o);if(a!==void 0)return a;if((a=s.get(o))!==void 0)return n(o,a),a},set(o,a){r.has(o)?r.set(o,a):n(o,a)}}},$e="!",nr=e=>{let{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],o=t.length,a=i=>{let c=[],p=0,g=0,C;for(let w=0;w<i.length;w++){let A=i[w];if(p===0){if(A===n&&(s||i.slice(w,w+o)===t)){c.push(i.slice(g,w)),g=w+o;continue}if(A==="/"){C=w;continue}}A==="["?p++:A==="]"&&p--}let h=c.length===0?i:i.substring(g),k=h.startsWith($e),N=k?h.substring(1):h,f=C&&C>g?C-g:void 0;return{modifiers:c,hasImportantModifier:k,baseClassName:N,maybePostfixModifierPosition:f}};return r?i=>r({className:i,parseClassName:a}):a},ir=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},lr=e=>({cache:sr(e.cacheSize),parseClassName:nr(e),...er(e)}),cr=/\s+/,dr=(e,t)=>{let{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,o=[],a=e.trim().split(cr),i="";for(let c=a.length-1;c>=0;c-=1){let p=a[c],{modifiers:g,hasImportantModifier:C,baseClassName:h,maybePostfixModifierPosition:k}=r(p),N=!!k,f=s(N?h.substring(0,k):h);if(!f){if(!N){i=p+(i.length>0?" "+i:i);continue}if(f=s(h),!f){i=p+(i.length>0?" "+i:i);continue}N=!1}let w=ir(g).join(":"),A=C?w+$e:w,P=A+f;if(o.includes(P))continue;o.push(P);let H=n(f,N);for(let S=0;S<H.length;++S){let ie=H[S];o.push(A+ie)}i=p+(i.length>0?" "+i:i)}return i};function pr(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=et(t))&&(s&&(s+=" "),s+=r);return s}var et=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=et(e[s]))&&(r&&(r+=" "),r+=t);return r};function mr(e,...t){let r,s,n,o=a;function a(c){let p=t.reduce((g,C)=>C(g),e());return r=lr(p),s=r.cache.get,n=r.cache.set,o=i,i(c)}function i(c){let p=s(c);if(p)return p;let g=dr(c,r);return n(c,g),g}return function(){return o(pr.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},tt=/^\[(?:([a-z-]+):)?(.+)\]$/i,ur=/^\d+\/\d+$/,gr=new Set(["px","full","screen"]),fr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,br=/\d+(%|px|r?em|[sdl]?nt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Kt-?((\d+)?\.?(\d+)[a-z]+|0)/,xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>O(e)||gr.has(e)||ur.test(e),G=e=>V(e,"length",Br),O=e=>!!e&&!Number.isNaN(Number(e)),Be=e=>V(e,"number",O),ee=e=>!!e&&Number.isInteger(Number(e)),vr=e=>e.endsWith("%")&&O(e.slice(0,-1)),d=e=>tt.test(e),U=e=>fr.test(e),Cr=new Set(["length","size","percentage"]),wr=e=>V(e,Cr,rt),Ar=e=>V(e,"position",rt),kr=new Set(["image","url"]),Nr=e=>V(e,kr,Sr),Pr=e=>V(e,"",Tr),te=()=>!0,V=(e,t,r)=>{let s=tt.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Br=e=>br.test(e)&&!yr.test(e),rt=()=>!1,Tr=e=>hr.test(e),Sr=e=>xr.test(e);var Ir=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),s=b("brightness"),n=b("borderColor"),o=b("borderRadius"),a=b("borderSpacing"),i=b("borderWidth"),c=b("contrast"),p=b("grayscale"),g=b("hueRotate"),C=b("invert"),h=b("gap"),k=b("gradientColorStops"),N=b("gradientColorStopPositions"),f=b("inset"),w=b("margin"),A=b("opacity"),P=b("padding"),H=b("saturate"),S=b("scale"),ie=b("sepia"),je=b("skew"),Ke=b("space"),Ye=b("translate"),Ae=()=>["auto","contain","none"],ke=()=>["auto","hidden","clip","visible","scroll"],Ne=()=>["auto",d,t],x=()=>[d,t],Qe=()=>["",E,G],le=()=>["auto",O,d],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ce=()=>["solid","dashed","dotted","double","none"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",d],Ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[O,d];return{cacheSize:500,separator:":",theme:{colors:[te],spacing:[E,G],blur:["none","",U,d],brightness:F(),borderColor:[e],borderRadius:["none","","full",U,d],borderSpacing:x(),borderWidth:Qe(),contrast:F(),grayscale:$(),hueRotate:F(),invert:$(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[vr,G],inset:Ne(),margin:Ne(),opacity:F(),padding:x(),saturate:F(),scale:F(),sepia:$(),skew:F(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":Ve()}],"break-before":[{"break-before":Ve()}],"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:[...qe(),d]}],overflow:[{overflow:ke()}],"overflow-x":[{"overflow-x":ke()}],"overflow-nt":[{"overflow-nt":ke()}],overscroll:[{overscroll:Ae()}],"overscroll-x":[{"overscroll-x":Ae()}],"overscroll-nt":[{"overscroll-nt":Ae()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-nt":[{"inset-nt":[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",ee,d]}],basis:[{basis:Ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",ee,d]}],"grid-cols":[{"grid-cols":[te]}],"col-start-end":[{col:["auto",{span:["full",ee,d]},d]}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":[te]}],"row-start-end":[{row:["auto",{span:[ee,d]},d]}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-nt":[{"gap-nt":[h]}],"justify-content":[{justify:["normal",...Pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],nt:[{nt:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],nt:[{nt:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[Ke]}],"space-x-reverse":["space-x-reverse"],"space-nt":[{"space-nt":[Ke]}],"space-nt-reverse":["space-nt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[U]},U]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",U,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Be]}],"font-family":[{font:[te]}],"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",d]}],"line-clamp":[{"line-clamp":["none",O,Be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,G]}],"underline-offset":[{"underline-offset":["auto",E,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],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",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","nt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Nr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-nt":[{"border-nt":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...ce(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-nt":[{"divide-nt":[i]}],"divide-nt-reverse":["divide-nt-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:ce()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-nt":[{"border-nt":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ce()]}],"outline-offset":[{"outline-offset":[E,d]}],"outline-w":[{outline:[E,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Qe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[E,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,Pr]}],"shadow-color":[{shadow:[te]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Oe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",U,d]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[C]}],saturate:[{saturate:[H]}],sepia:[{sepia:[ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[H]}],"backdrop-sepia":[{"backdrop-sepia":[ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-nt":[{"border-spacing-nt":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:F()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:F()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-nt":[{"scale-nt":[S]}],rotate:[{rotate:[ee,d]}],"translate-x":[{"translate-x":[Ye]}],"translate-nt":[{"translate-nt":[Ye]}],"skew-x":[{"skew-x":[je]}],"skew-nt":[{"skew-nt":[je]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","nt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-nt":[{"scroll-nt":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-nt":[{"scroll-nt":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","nt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-nt":[{"touch-pan":["nt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,G,Be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-nt"],overscroll:["overscroll-x","overscroll-nt"],inset:["inset-x","inset-nt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-nt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-nt"],p:["px","py","ps","nt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],nt:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-nt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-nt":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-nt":["border-color-t","border-color-b"],"scroll-nt":["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-nt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-nt","touch-pz"],"touch-x":["touch"],"touch-nt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ot=mr(Ir);function l(...e){return ot((0,at.clsx)(e))}var nt=require("react/jsx-runtime");function st({children:e,isFluid:t=!1,isNoPadding:r=!1,className:s=""}){let n=l("container",t&&"full-width",r&&"no-padding",s);return(0,nt.jsx)("div",{className:n,children:e})}var it=I(require("next/link"));function lt({children:e,href:t,openNewTab:r,...s}){return(0,nt.jsx)(it.default,{href:t,target:r?"_blank":"_self",...s,children:e})}var jt=I(require("next/image"));var dt=({className:e,content:t,style:r})=>(0,nt.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,nt.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,nt.jsx)(R,{content:t,enableGutter:!1,enableProse:!1})})});var vt=require("react");var pt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),ut=I(require("react")),Rr=(0,mt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=ut.forwardRef(({asChild:e=!1,className:t,size:r,variant:s,...n},o)=>(0,nt.jsx)(e?pt.Slot:"button",{className:l(Rr({className:t,size:r,variant:s})),ref:o,...n}));z.displayName="Button";var Ie=I(require("next/link")),oe=e=>{let{type:t,appearance:r="inline",children:s,className:n,label:o,newTab:a,reference:i,size:c,url:p}=e,g=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:p;if(!g)return null;let C=r==="link"?"clear":c,h=a?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,nt.jsxs)(Ie.default,{className:l(n),href:g||p||"",...h,children:[o&&o,s&&s]}):(0,nt.jsx)(z,{asChild:!0,className:n,size:C,variant:r,children:(0,nt.jsxs)(Ie.default,{className:l(n),href:g||p||"",...h,children:[o&&o,s&&s]})})};function me({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Mr({className:e,...t}){return(0,nt.jsx)("input",{...t,className:me({className:e})})}function ue({icon:e,...t}){return(0,nt.jsxs)("div",{className:"relative w-full",children:[(0,nt.jsx)(Mr,{...t}),e&&(0,nt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-nt-1/2 text-accent",children:e})]})}function Lr({className:e,...t}){return(0,nt.jsx)("textarea",{...t,className:l(me({}),"resize-none md:min-h-[130px]",e)})}function ft({icon:e,...t}){return(0,nt.jsxs)("div",{className:"relative w-full",children:[(0,nt.jsx)(Lr,{...t}),e&&(0,nt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var yt=require("formik"),ht=require("react-icons/fa6"),j=I(require("yup"));async function bt(e){let{name:t,email:r,subject:s,message:n}=e,o=process.env.TEAMS_WEBHOOK_URL;if(!o)throw new Error("TEAMS_WEBHOOK_URL is not defined");let a={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0},{type:"TextBlock",text:`${s}`,wrap:!0}]}]},{type:"TextBlock",text:`${n}`,wrap:!0}]}}]};try{let i=await fetch(o,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Re=require("sonner"),T={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},Fr=j.object().shape({name:j.string().min(2,T.tooShort).max(50,T.tooLong).required(T.required),email:j.string().email(T.email).required(T.required),subject:j.string().min(2,T.tooShort).max(50,T.tooLong).required(T.required),message:j.string().min(2,T.tooShort).max(300,T.tooLong).required(T.required)}),ge=l("!pr-[44px] text-foreground"),fe=l("!border-red-600 border"),be=l("sr-only");function xt(){return(0,nt.jsx)(yt.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Fr,onSubmit:async(e,{resetForm:t})=>{let r=await bt(e);r.data===null?Re.toast.error(r.message):(Re.toast.success(r.message),t())},children:({errors:e,touched:t,values:r,handleChange:s,handleBlur:n,isSubmitting:o,handleSubmit:a})=>(0,nt.jsxs)("form",{onSubmit:a,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)(ue,{placeholder:"Your Name",type:"text",name:"name",value:r.name,onChange:s,onBlur:n,disabled:o,icon:(0,nt.jsx)(ht.FaUser,{className:"text-primary"}),className:l(ge,e.name&&t.name&&fe)}),e.name&&t.name&&(0,nt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:be,children:e.name})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)(ue,{placeholder:"Your Email",type:"email",name:"email",value:r.email,onChange:s,onBlur:n,disabled:o,icon:(0,nt.jsx)(Er,{}),className:l(ge,e.email&&t.email&&fe)}),e.email&&t.email&&(0,nt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:be,children:e.email})]}),(0,nt.jsxs)("div",{className:"lg:col-span-2",children:[(0,nt.jsx)(ue,{placeholder:"Subject",type:"text",name:"subject",value:r.subject,onChange:s,onBlur:n,disabled:o,className:l(ge,e.subject&&t.subject&&fe)}),e.subject&&t.subject&&(0,nt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:be,children:e.subject})]}),(0,nt.jsxs)("div",{className:"lg:col-span-2",children:[(0,nt.jsx)(ft,{placeholder:"Message...",name:"message",value:r.message,onChange:s,onBlur:n,disabled:o,icon:(0,nt.jsx)(zr,{}),className:l(ge,e.message&&t.message&&fe)}),e.message&&t.message&&(0,nt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:be,children:e.message})]}),(0,nt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,nt.jsx)(z,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:o,children:"Send"})})]})})}function Er(){return(0,nt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,nt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function zr(){return(0,nt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,nt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Ct=({links:e,richText:t})=>{let[r,s]=(0,vt.useState)(!1),n="accent",o=()=>s(!0),a=()=>s(!1),i=c=>{c.target===c.currentTarget&&a()};return(0,nt.jsxs)("div",{className:l("relative isolate overflow-hidden",n==="accent"?"bg-accent":"bg-black"),children:[(0,nt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,nt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,nt.jsx)(R,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,nt.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,nt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},p)=>(c==null?void 0:c.url)==="/contact"?(0,nt.jsx)("div",{onClick:o,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",n==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},p):(0,nt.jsx)(oe,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",n==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},p))})})]})}),r&&(0,nt.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,nt.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,nt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:a,children:"\u2715"}),(0,nt.jsx)(xt,{})," "]})})]})};var ye=require("prism-react-renderer");var wt=require("lucide-react");function kt({code:e}){let[t,r]=(0,vt.useState)("Copy");function s(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,nt.jsx)("div",{className:"flex justify-end align-middle",children:(0,nt.jsxs)(z,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),s()},children:[(0,nt.jsx)("p",{children:t}),(0,nt.jsx)("div",{className:"w-6 h-6",children:(0,nt.jsx)(wt.ClipboardCopy,{})})]})})}var Nt=({code:e,language:t=""})=>e?(0,nt.jsx)(ye.Highlight,{code:e,language:t,theme:ye.themes.vsDark,children:({getLineProps:r,getTokenProps:s,tokens:n})=>(0,nt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[n.map((o,a)=>(0,nt.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,nt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,nt.jsx)("span",{className:"table-cell pl-4",children:o.map((i,c)=>(0,nt.jsx)("span",{...s({token:i})},c))})]},a)),(0,nt.jsx)(kt,{code:e})]})}):null;var Pt=({className:e,code:t,language:r})=>(0,nt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,nt.jsx)(Nt,{code:t,language:r})});var Tt=I(require("next/image")),Dr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Bt="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=",St=e=>{let{alt:t,fill:r,imgClassName:s,priority:n,resource:o,size:a,src:i,loading:c}=e,p,g,C=t,h=i||"";if(!h&&o&&typeof o=="object"){let{alt:f,filename:w,height:A,url:P,width:H}=o;if(A&&A>500){let S=500/A;p=H*S,g=A*S}else p=H,g=A;C=f||"",h=P||Bt}let k=c||"lazy",N=a||Object.entries(Dr).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,nt.jsx)("picture",{children:(0,nt.jsx)(Tt.default,{alt:C||"",className:l(s),fill:r,height:r?void 0:g,placeholder:"blur",blurDataURL:Bt,priority:k!=="lazy"&&n,quality:100,loading:k,sizes:N,src:h,width:r?void 0:p})})};var It=e=>{let{onClick:t,resource:r,videoClassName:s}=e,n=(0,vt.useRef)(null);if((0,vt.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,nt.jsx)("video",{autoPlay:!0,className:l(s),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:n,children:(0,nt.jsx)("source",{src:r.url||""})})}return null};var ve=e=>{var a;let{className:t,htmlElement:r="div",resource:s}=e,n=typeof s=="object"&&((a=s==null?void 0:s.mimeType)==null?void 0:a.includes("video"));return(0,nt.jsx)(r||vt.Fragment,{...r!==null?{className:t}:{},children:n?(0,nt.jsx)(It,{...e}):(0,nt.jsx)(St,{...e})})};var Mt=e=>{let{className:t,enableGutter:r=!0,imgClassName:s,media:n,staticImage:o}=e;return(0,nt.jsx)("div",{className:l("h-full ",{container:r},t),children:(0,nt.jsx)(ve,{imgClassName:l("rounded-[0.8rem]",s),className:"flex justify-center",resource:n,src:o})})};var Lt=e=>{let{className:t,enableGutter:r=!0,imgClassName:s,media:n,staticImage:o}=e;return(0,nt.jsx)("div",{className:l("",{container:r},t),children:(0,nt.jsx)(ve,{imgClassName:l("rounded-[0.8rem]",s),resource:n,src:o})})};var De=({type:e="solid",iconName:t="cloud",size:r="lg",className:s})=>{let n=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,a=s!=null?s:"",i=n+o+" fa-"+r+" "+a;return(0,nt.jsx)("i",{className:i})};var zt=I(require("next/image"));function Et(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function He({image:e,icon:t,title:r,subtitle:s,content:n,statistic:o,settings:a,link:i,className:c}){var C,h;let p={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:"bg-background"},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,nt.jsxs)("a",{href:(i==null?void 0:i.url)||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",a&&!e&&p[(a==null?void 0:a.card)==="default"?"solid":a==null?void 0:a.card],e&&"bg-foreground",a&&(a==null?void 0:a.card)==="outline"?"text-gray-900":"text-white",g[(C=a==null?void 0:a.width)!=null?C:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",a&&`intersect:animate-delay-${a.order||1}00`,c),children:[e&&(0,nt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,nt.jsx)(zt.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,nt.jsxs)("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,nt.jsxs)("div",{className:"flex flex-col flex-grow",children:[s&&(0,nt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:s}),(0,nt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,nt.jsx)(Hr,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:r!=null?r:"",variant:(a==null?void 0:a.card)==="default"?"solid":(h=a==null?void 0:a.card)!=null?h:"solid",iconSize:(a==null?void 0:a.iconSize)||"large"})}),n&&typeof n=="object"&&(0,nt.jsx)(R,{enableGutter:!1,content:n,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-nt-3",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),n&&typeof n=="string"&&(0,nt.jsx)("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-nt-3",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:n})]}),i&&i.url&&(0,nt.jsx)("div",{className:"mt-6",children:(0,nt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:(i==null?void 0:i.label)||"Find out more"})})]})]})}var Hr=({icon:e,heading:t,variant:r,iconSize:s,subtitle:n})=>e&&s==="small"&&e.iconName!="no-icon-error"?(0,nt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,nt.jsx)("div",{className:l(r==="outline"||r==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:t}),Et(e)&&(0,nt.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-primary":"text-white",s==="small"?"-mr-2 ml-1 mt-1":""),children:(0,nt.jsx)(De,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[Et(e)&&(0,nt.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,nt.jsx)(De,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:l("font-normal",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:l("font-regular",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Y=I(require("react"));var W=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));W.displayName="Card";var ae=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("flex flex-col space-nt-1.5 p-6",e),...t}));ae.displayName="CardHeader";var se=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("font-semibold leading-none tracking-tight",e),...t}));se.displayName="CardTitle";var Gr=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("text-sm text-muted-foreground",e),...t}));Gr.displayName="CardDescription";var X=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("p-6 pt-0",e),...t}));X.displayName="CardContent";var Ur=Y.forwardRef(({className:e,...t},r)=>(0,nt.jsx)("div",{ref:r,className:l("flex items-center p-6 pt-0",e),...t}));Ur.displayName="CardFooter";var Dt=({title:e,description:t,features:r,id:s,nested:n=!1})=>(0,nt.jsxs)("section",{className:l(n?"w-full":"container",""),children:[(0,nt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,nt.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:s||"",children:e}),t&&typeof t=="string"&&(0,nt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,nt.jsx)("div",{className:"mb-5 text-foreground",children:(0,nt.jsx)(R,{content:t,enableGutter:!1})})]}),(0,nt.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${r?r.length>2?2:r.length:1} lg:grid-cols-${r?r.length>3?3:r.length:1}`,children:r&&r.map((o,a)=>{var c;let i=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,nt.jsx)(He,{title:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,settings:{...o.settings,width:"auto",order:a},link:o.link?{...o.link,label:"Learn more"}:void 0,icon:(c=i())!=null?c:{type:"none",icon:null}},a)})})]});var Ce=I(require("react"));function ne({nodes:e}){return(0,nt.jsx)(Ce.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,nt.jsx)(Ce.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,nt.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,nt.jsx)("em",{children:o},r)),t.format&4&&(o=(0,nt.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,nt.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,nt.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,nt.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,nt.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,nt.jsx)("table",{children:(0,nt.jsx)("tbody",{children:t.children.map((o,a)=>(0,nt.jsx)("tr",{children:o.children.map((i,c)=>(0,nt.jsx)("td",{children:ne({nodes:i.children})},c))},a))})},r);let s=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let a of o.children)"checked"in a&&(a!=null&&a.checked||(a.checked=!1));return ne({nodes:o.children})},n="children"in t?s(t):"";if(t.type==="block"){let o=t.fields,a=o==null?void 0:o.blockType;if(!o||!a)return null;switch(a){case"cta":return(0,nt.jsx)(Ct,{...o},r);case"mediaBlock":return(0,nt.jsx)(Mt,{className:"col-start-1 col-span-3",imgClassName:"nt-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,nt.jsx)(Lt,{className:"col-start-1 col-span-3",imgClassName:"nt-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,nt.jsx)(dt,{className:"col-start-2 mb-4",...o},r);case"code":return(0,nt.jsx)(Pt,{className:"col-start-2",...o},r);case"features":return(0,nt.jsx)(Dt,{...o,nested:!0},r);case"reusableContentBlock":ne({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,nt.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,nt.jsx)("p",{className:"col-start-2",children:n},r);case"heading":{let o=t==null?void 0:t.tag;return(0,nt.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:n},r)}case"list":{let o=t==null?void 0:t.tag;return(0,nt.jsx)(o,{className:"list col-start-2",children:n},r)}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:n},r):(0,nt.jsx)("li",{value:t==null?void 0:t.value,children:n},r);case"quote":return(0,nt.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=t.fields;return(0,nt.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}case"autolink":{let o=t.fields;return(0,nt.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var R=({className:e,content:t,enableGutter:r=!0,enableProse:s=!0})=>{var n;return t?(0,nt.jsx)("div",{className:l({"container ":r,"max-w-none":!r,"mx-auto prose":s},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ne({nodes:(n=t==null?void 0:t.root)==null?void 0:n.children})}):null};var Kt=require("next/navigation");var Ua=l("transition-colors duration-400 hover:text-primary ease-in-out");function Ut({title:e,links:t}){let r=(0,Kt.useSearchParams)(),s=(0,Kt.usePathname)(),{replace:n}=(0,Kt.useRouter)();function o(a){let i=new URLSearchParams(r);a?i.set("category",a):i.delete("category"),n(`${s}?${i.toString()}`)}return(0,nt.jsxs)(W,{children:[(0,nt.jsx)(ae,{children:(0,nt.jsx)(se,{className:"text-accent",children:e&&e})}),(0,nt.jsx)(X,{children:t&&t.length>0&&(0,nt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,nt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((a,i)=>(0,nt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),o(a.href)},children:[a.label,(0,nt.jsx)(wt.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}var Yt=I(require("next/link"));function jr({image:e,name:t,about:r,socialLinks:s}){return!e||!e.src||e.src.length<3||!t?null:(0,nt.jsx)("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:(0,nt.jsx)(W,{children:(0,nt.jsxs)(X,{children:[e&&e.src&&(0,nt.jsx)(jt.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Je,className:"mx-auto mt-6 rounded-full object-cover"}),(0,nt.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,nt.jsx)("p",{children:r}),s&&s.length>0&&(0,nt.jsx)("nav",{"aria-label":"social links",children:(0,nt.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:s.map((n,o)=>(0,nt.jsx)("li",{children:(0,nt.jsx)(lt,{href:n.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-nt-1 hover:text-accents",children:(0,nt.jsx)("span",{children:n.icon})})},o))})})]})})})}function Ge({page:e,categoryList:t,edit:r=!1,path:s="/admin/collections/posts/"}){var h;if(!e)return(0,Kt.notFound)();let{meta:n,populatedAuthors:o,authors:a,categories:i,content:c,title:p}=e,g={image:{src:n&&n.image&&n.image.url||void 0,alt:n&&n.image&&n.image.alt||void 0},authorName:((h=o==null?void 0:o[0])==null?void 0:h.name)||"",category:i,commentCount:0,title:p,description:(n==null?void 0:n.description)||""},C=a==null?void 0:a.map(k=>{var N,f;return{name:k.name||"",about:"",image:{src:k.profilePicture&&((f=(N=k.profilePicture.sizes)==null?void 0:N.square)==null?void 0:f.url)||"",alt:k.name||"blog author"},socialLinks:[]}});return(0,nt.jsx)(st,{children:(0,nt.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,nt.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,nt.jsx)(R,{content:c,enableGutter:!1,className:"prose-invert"})]})}),(0,nt.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,nt.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:(0,nt.jsxs)(W,{children:[(0,nt.jsx)(ae,{children:(0,nt.jsx)(se,{className:"text-accent",children:"Content Actions"})}),(0,nt.jsxs)(X,{children:[(0,nt.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,nt.jsx)(Yt.default,{href:`${s}${e.id}`,children:(0,nt.jsx)(z,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),C&&C.map((k,N)=>(0,nt.jsx)(jr,{...k},N)),t&&t.links&&(0,nt.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,nt.jsx)(Ut,{links:t.links,title:t.title})})]})]})})}var Kr={title:"Website Components/BlogDetail",component:Ge,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[e=>(0,nt.jsx)(e,{})]},we=e=>(0,nt.jsx)(Ge,{...e}),q=we.bind({});q.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{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},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. 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},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean ut ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var Qt=we.bind({});Qt.args={...q.args,pages:{totalPages:40,page:20}};var qt=we.bind({});qt.args={...q.args,page:{...q.args.page,categoryList:{title:"Categories"}},categoryList:null};var Ot=we.bind({});Ot.args={...q.args,page:{...q.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};0&&(module.exports={Default,LoadsOfBlogs,NoAuthorImage,NoCategories});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"../chunk-
|
|
1
|
+
import{a as i}from"../chunk-QT5WSNLK.mjs";import"../chunk-KML6U7IE.mjs";import"../chunk-TXXFXCXB.mjs";import"../chunk-HPMQRCDC.mjs";import"../chunk-O5BAW5XQ.mjs";import"../chunk-44VMK4FL.mjs";import"../chunk-L2QAYSRV.mjs";import"../chunk-NOEITQK2.mjs";import"../chunk-EG6XIOOJ.mjs";import"../chunk-MMBUMBDU.mjs";import"../chunk-CTKUF2I6.mjs";import"../chunk-M6M43TLT.mjs";import"../chunk-FGWIT6CV.mjs";import"../chunk-OI2YT2ZF.mjs";import"../chunk-EY5QX73B.mjs";import"../chunk-YCX5N23N.mjs";import"../chunk-UKJ3TIPX.mjs";import"../chunk-6LPSD3MQ.mjs";import"../chunk-SQWRG4U3.mjs";import"../chunk-WLBZXBU3.mjs";import"../chunk-FPQBVIUS.mjs";import"../chunk-Z2PPN7EJ.mjs";import"../chunk-6WLJQKDF.mjs";import"../chunk-PZT3KAUV.mjs";import"../chunk-JWDVKGZL.mjs";import"../chunk-BDX257W2.mjs";import"../chunk-Y2KKUQDU.mjs";import"../chunk-SBM5HULF.mjs";import"../chunk-VZXLXNVY.mjs";import"../chunk-Q6SEVCRG.mjs";import"../chunk-D76EO57Z.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-WISCWNL2.mjs";import"../chunk-SFLOMJ2U.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-SPOYKTBR.mjs";import"../chunk-S7OK7D5I.mjs";import{jsx as r}from"react/jsx-runtime";var u={title:"Website Components/BlogDetail",component:i,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[a=>r(a,{})]},e=a=>r(i,{...a}),t=e.bind({});t.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{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},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. 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},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean ut ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var l=e.bind({});l.args={...t.args,pages:{totalPages:40,page:20}};var o=e.bind({});o.args={...t.args,page:{...t.args.page,categoryList:{title:"Categories"}},categoryList:null};var s=e.bind({});s.args={...t.args,page:{...t.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};export{t as Default,l as LoadsOfBlogs,s as NoAuthorImage,o as NoCategories,u as default};
|