cortex-react-components 1.56.4 → 1.57.0
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-KIICLHKI.mjs → chunk-23BDC5JG.mjs} +1 -1
- package/dist/{chunk-43TBC2ZH.mjs → chunk-266LJXBZ.mjs} +1 -1
- package/dist/{chunk-KB6PO4K4.mjs → chunk-2IKC7MAP.mjs} +1 -1
- package/dist/{chunk-ILTBXZKO.mjs → chunk-2PGNGIFG.mjs} +1 -1
- package/dist/chunk-34BK5A3H.mjs +1 -0
- package/dist/{chunk-Z7P4QOKT.mjs → chunk-4TCLIMFP.mjs} +1 -1
- package/dist/{chunk-IUW2STPH.mjs → chunk-65KHY3N2.mjs} +1 -1
- package/dist/{chunk-3GYJDXNA.mjs → chunk-6YWAX7NS.mjs} +1 -1
- package/dist/{chunk-CSNKYRV5.mjs → chunk-7XB4Y3U2.mjs} +1 -1
- package/dist/{chunk-F7WTJLZQ.mjs → chunk-BGOXSZO2.mjs} +1 -1
- package/dist/{chunk-T4I5D4XZ.mjs → chunk-D44ZXHH4.mjs} +1 -1
- package/dist/{chunk-5RBQ77B3.mjs → chunk-D7A7EUEW.mjs} +1 -1
- package/dist/{chunk-ZR2EHFQ7.mjs → chunk-DCNOQTXQ.mjs} +1 -1
- package/dist/{chunk-7UKMCL5L.mjs → chunk-DQEHH4CP.mjs} +1 -1
- package/dist/{chunk-NV6DJCV4.mjs → chunk-E2GQ2UH4.mjs} +1 -1
- package/dist/{chunk-MG76MN3Q.mjs → chunk-F6DSJZ6G.mjs} +1 -1
- package/dist/{chunk-4RAPLTKA.mjs → chunk-FSYU6GF6.mjs} +1 -1
- package/dist/{chunk-XFNVJTZJ.mjs → chunk-GFBRIWHO.mjs} +1 -1
- package/dist/{chunk-7F7S63JI.mjs → chunk-GHWZZAOE.mjs} +1 -1
- package/dist/{chunk-SBAFXZVU.mjs → chunk-IO222G5L.mjs} +1 -1
- package/dist/{chunk-6DRKICKB.mjs → chunk-KGFHW5KZ.mjs} +1 -1
- package/dist/{chunk-LLJZRF3C.mjs → chunk-KLCZHZKQ.mjs} +1 -1
- package/dist/{chunk-ZNHNOPYF.mjs → chunk-NLU4IHO6.mjs} +1 -1
- package/dist/{chunk-Z2HNL6F6.mjs → chunk-NUKPO5ZV.mjs} +1 -1
- package/dist/{chunk-GYUMEOL2.mjs → chunk-OJPHYSRN.mjs} +1 -1
- package/dist/{chunk-56GKZ4U2.mjs → chunk-OPCNQTDN.mjs} +1 -1
- package/dist/{chunk-PFASTV4A.mjs → chunk-OPV35HTE.mjs} +1 -1
- package/dist/chunk-P5QTMPTP.mjs +1 -0
- package/dist/chunk-PDUZAE2B.mjs +4 -0
- package/dist/{chunk-OUKKI47A.mjs → chunk-PIM2JQYT.mjs} +1 -1
- package/dist/chunk-PKAWVXZZ.mjs +4 -0
- package/dist/{chunk-PY53YVFX.mjs → chunk-QMFZRG7O.mjs} +1 -1
- package/dist/{chunk-F55C2C5H.mjs → chunk-RQ23CZK5.mjs} +1 -1
- package/dist/{chunk-ZRUQIDWQ.mjs → chunk-RXNOA32M.mjs} +1 -1
- package/dist/{chunk-UEY6HPXN.mjs → chunk-SEYRH7IM.mjs} +1 -1
- package/dist/{chunk-V5N56VWG.mjs → chunk-TZE7RZAV.mjs} +1 -1
- package/dist/{chunk-V7EILEQH.mjs → chunk-WFGGJBQS.mjs} +1 -1
- package/dist/{chunk-XLWVEKEK.mjs → chunk-XDWPQKFP.mjs} +1 -1
- package/dist/{chunk-J7HJZ7IS.mjs → chunk-XZLY4ZDO.mjs} +2 -2
- package/dist/{chunk-Z6AOKSZU.mjs → chunk-YC53LS6B.mjs} +1 -1
- package/dist/{chunk-7ZKGCT6M.mjs → chunk-Z7GQVIJO.mjs} +1 -1
- package/dist/{chunk-NVFHMFFW.mjs → chunk-ZWII7FHR.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +2 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.d.ts +1 -0
- package/dist/components/Blocks/CallToAction.js +2 -1
- package/dist/components/Blocks/CallToAction.mjs +2 -1
- package/dist/components/Blocks/CallToAction.stories.js +2 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.js +2 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.js +2 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +2 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.js +2 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +2 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +2 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +2 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +2 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +2 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +2 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.js +2 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +2 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +2 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +2 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +5 -4
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.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 +2 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.js +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +2 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +2 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +2 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +2 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.js +2 -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 +2 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +3 -2
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +3 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +2 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +4 -3
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +4 -3
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +6 -5
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +2 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +2 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +2 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +2 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +8 -7
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +13 -13
- 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 +2 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +2 -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 +3 -3
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +2 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +222 -221
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +6 -5
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +6 -5
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +6 -5
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +2 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +2 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +2 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +2 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +2 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +2 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.js +4 -3
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.js +4 -3
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.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 +2 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.js +3 -3
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.js +3 -3
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +2 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +2 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetailList.js +2 -1
- package/dist/sections/ServiceDetailList.mjs +1 -1
- package/dist/sections/ServiceDetailSection.js +2 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.js +2 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +2 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +2 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +3 -3
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3LUYXQWZ.mjs +0 -1
- package/dist/chunk-6IVK75UA.mjs +0 -1
- package/dist/chunk-HF7UYIME.mjs +0 -1
- package/dist/chunk-RZWTH6SF.mjs +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{i as H,j as O,k as _,l as $,m as J,n as U,o as X}from"./chunk-O5BAW5XQ.mjs";import{a as y}from"./chunk-44VMK4FL.mjs";import{a as S}from"./chunk-GHWZZAOE.mjs";import{a as F}from"./chunk-2A6JF3LE.mjs";import{a as A}from"./chunk-4YJ3HV64.mjs";import{a as R}from"./chunk-2NFKSNJW.mjs";import{b as I}from"./chunk-BDX257W2.mjs";import{a as b}from"./chunk-SFLOMJ2U.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import{useState as q}from"react";import{jsx as d,jsxs as x}from"react/jsx-runtime";var oe=({links:a,richText:e})=>d("div",{className:"container",children:x("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[d("div",{className:"max-w-[48rem] flex items-center",children:e&&d(f,{className:"mb-0",content:e,enableGutter:!1})}),d("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:t},c)=>d(y,{size:"lg",...t},c))})]})}),z=({links:a,richText:e})=>{let[t,c]=q(!1),s=()=>c(!0),r=()=>c(!1),l=n=>{n.target===n.currentTarget&&r()};return x("div",{className:"relative isolate overflow-hidden bg-black",children:[d("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:x("div",{className:"mx-auto max-w-2xl text-center prose",children:[e&&d(f,{className:"mb-0 prose-p:text-white text-white",content:e,enableGutter:!1}),d("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:d("div",{className:"flex flex-col gap-8 text-white",children:(a||[]).map(({link:n},u)=>(n==null?void 0:n.url)==="/contact"?d("div",{onClick:s,className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline cursor-pointer",children:n.label},u):d(y,{size:"lg",className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline",...n},u))})})]})}),t&&d("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:l,children:x("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg relative",children:[d("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:r,children:"\u2715"}),d(S,{})," "]})}),x("svg",{viewBox:"0 0 1024 1024","aria-hidden":"true",className:"absolute left-1/2 top-1/2 -z-10 size-[64rem] -translate-x-1/2 [mask-image:radial-gradient(closest-side,white,transparent)]",children:[d("circle",{r:512,cx:512,cy:512,fill:"url(#8d958450-c69f-4251-94bc-4e091a323369)",fillOpacity:"0.7"}),d("defs",{children:x("radialGradient",{id:"8d958450-c69f-4251-94bc-4e091a323369",children:[d("stop",{stopColor:"#22B2AA"}),d("stop",{offset:1,stopColor:"#22B2AA"})]})})]})]})};import K from"next/image";import{jsx as m,jsxs as B}from"react/jsx-runtime";function D(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function C({image:a,icon:e,title:t,subtitle:c,content:s,statistic:r,settings:l,link:n,className:u}){var v,w;let N={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"},k={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:o("min-w-56 max-w-xl h-full flex flex-col group",a?"p-0 md:p-0":"p-8 md:p-8",l&&!a&&N[(l==null?void 0:l.card)==="default"?"solid":l==null?void 0:l.card],a&&"bg-foreground",l&&(l==null?void 0:l.card)==="outline"?"text-gray-900":"text-white",k[(v=l==null?void 0:l.width)!=null?v:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,u),children:[a&&m("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:m(K,{src:a.url||"/placeholder.svg",alt:a.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),B("div",{className:o(a?"p-4 md:p-1 md:px-8":"p-0 md:p-0","flex h-2/5 md:max-h-1/2 flex-col flex-grow"),children:[c&&m("div",{className:"mb-4 text-primary uppercase font-light",children:c}),m("div",{className:"flex items-center gap-4 mb-2 md:mb-0",children:m(Q,{icon:{type:(e==null?void 0:e.type)||"fa-light",iconName:(e==null?void 0:e.icon)||"no-icon-error"},heading:t!=null?t:"",variant:(l==null?void 0:l.card)==="default"?"solid":(w=l==null?void 0:l.card)!=null?w:"solid",iconSize:(l==null?void 0:l.iconSize)||"large"})}),r&&m("div",{className:"mb-6",children:m("div",{className:o("text-4xl text-wrap font-bold leading-none overflow-hidden",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"text-brand-green":"text-white"),children:r})}),s&&typeof s=="object"&&m(f,{enableGutter:!1,content:s,enableProse:!1,className:o("space-y-6",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",a&&"prose prose-headings:text-background prose-p:text-background")}),s&&typeof s=="string"&&m("div",{className:o("space-y-6",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose text-foreground":"prose text-gray-100",a&&"prose text-background"),children:s}),n&&n.url&&m("div",{className:"pt-6 h-full flex items-end justify-start",children:m("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(l==null?void 0:l.card)==="radial"&&m("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var Q=({icon:a,heading:e,variant:t,iconSize:c,subtitle:s})=>a&&c==="small"&&a.iconName!="no-icon-error"?B("div",{className:"flex items-start justify-between w-full mb-2",children:[m("div",{className:o("font-semibold",t==="outline"||t==="light"?"text-primary":"text-white",c==="small"?"text-2xl":"text-3xl"),children:e}),D(a)&&m("div",{className:o("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-primary":"text-white",c==="small"?"-mr-2 ml-1 mt-1":""),children:m(b,{type:a.type,iconName:a.iconName,size:"2x"})})]}):a&&a.iconName!="no-icon-error"?B("div",{className:"flex flex-col gap-4",children:[D(a)&&m("div",{className:o("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-accent":""),children:m(b,{type:a.type,iconName:a.iconName,size:"4x"})}),m("h3",{className:o("font-normal",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl text-white"),children:e})]}):m("div",{className:"flex items-center gap-4 mb-2",children:m("div",{className:o("font-regular",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as p,jsxs as P}from"react/jsx-runtime";function M(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function ge({variant:a="outline",className:e,icon:t,iconSize:c="large",width:s="auto",order:r=0,heading:l,subheading:n,content:u,statistic:N,buttonText:k,buttonHref:v}){let w={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:""},G={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return P("div",{className:o("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",w[a],a==="outline"?"text-gray-900":"text-white",e,G[s],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${r+1}00`),children:[p("div",{className:"flex items-center gap-4 mb-2",children:p(V,{icon:t,heading:l,variant:a,iconSize:c})}),N&&p("div",{className:"mb-6",children:p("div",{className:o("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:N})}),n&&p("div",{className:"mb-4 text-xl md:text-2xl font-light",children:n}),u&&typeof u=="object"&&p("div",{className:o("space-y-6"),children:p(f,{enableGutter:!1,content:u,enableProse:!1,className:o(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),u&&typeof u=="string"&&p("div",{className:o("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:u}),k&&p("div",{className:"mt-auto pt-6 flex items-center justify-center",children:p(I,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:p("a",{href:v,children:k})})}),a==="radial"&&p("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var V=({icon:a,heading:e,variant:t,iconSize:c})=>a&&c==="small"?P("div",{className:"flex items-start gap-4 mb-2",children:[M(a)&&p("div",{className:o("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-primary":"text-white",c==="small"?"mt-2":""),children:p(b,{type:a.type,iconName:a.iconName,size:"2x"})}),p("div",{className:o("font-semibold",t==="outline"||t==="light"?"text-primary":"text-white",c==="small"?"text-2xl":"text-3xl"),children:e})]}):a?P("div",{className:"flex flex-col gap-4",children:[M(a)&&p("div",{className:o("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-accent":""),children:p(b,{type:a.type,iconName:a.iconName,size:"4x"})}),p("h3",{className:o("font-semibold",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):p("div",{className:"flex items-center gap-4 mb-2",children:p("div",{className:o("font-semibold",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as g,jsxs as L}from"react/jsx-runtime";var j=({title:a,description:e,features:t,id:c,nested:s=!1})=>L("section",{className:o(s?"w-full":"container",""),children:[L("div",{className:"prose prose:max-w-none",children:[a&&g("h2",{className:"mb-6 mt-0 text-primary",id:c||"",children:a}),e&&typeof e=="string"&&g("p",{className:"mb-5 text-foreground",children:e}),e&&typeof e=="object"&&g("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:g(f,{content:e,enableGutter:!1})})]}),g("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length>2?2:t.length:1} lg:grid-cols-${t?t.length>3?3:t.length:1}`,children:t&&t.map((r,l)=>{var u;let n=()=>{if(r.icon&&"type"in r.icon&&r.icon.type!=="none")return{type:r.icon.type,icon:r.icon.icon}};return g(C,{title:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,settings:{...r.settings,width:"auto",order:l},link:r.link?{...r.link,label:"Learn more"}:void 0,icon:(u=n())!=null?u:{type:"none",icon:null}},l)})})]});import W,{Fragment as Y}from"react";import{jsx as i}from"react/jsx-runtime";function h({nodes:a}){return i(Y,{children:a==null?void 0:a.map((e,t)=>{if(e==null)return null;if(e.type==="text"&&e.text){let r=i(W.Fragment,{children:e.text},t);return e.format&1&&(r=i("strong",{children:r},t)),e.format&2&&(r=i("em",{children:r},t)),e.format&4&&(r=i("span",{style:{textDecoration:"line-through"},children:r},t)),e.format&8&&(r=i("span",{style:{textDecoration:"underline"},children:r},t)),e.format&16&&(r=i("code",{children:e.text},t)),e.format&32&&(r=i("sub",{children:r},t)),e.format&64&&(r=i("sup",{children:r},t)),r}if(e.type==="table")return i("table",{children:i("tbody",{children:e.children.map((r,l)=>i("tr",{children:r.children.map((n,u)=>i("td",{children:h({nodes:n.children})},u))},l))})},t);let c=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let l of r.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return h({nodes:r.children})},s="children"in e?c(e):"";if(e.type==="block"){let r=e.fields,l=r==null?void 0:r.blockType;if(!r||!l)return null;switch(l){case"cta":return i(z,{...r},t);case"mediaBlock":return i(F,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"imageBlock":return i(A,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return i(E,{className:"col-start-2 mb-4",...r},t);case"code":return i(R,{className:"col-start-2",...r},t);case"features":return i(j,{...r,nested:!0},t);case"reusableContentBlock":h({nodes:r.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return i("br",{className:"col-start-2"},t);case"paragraph":return i("p",{className:"col-start-2",children:s},t);case"heading":{let r=e==null?void 0:e.tag;return i(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:s},t)}case"list":{let r=e==null?void 0:e.tag;return i(r,{className:"list col-start-2",children:s},t)}case"listitem":return(e==null?void 0:e.checked)!=null?i("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:s},t):i("li",{value:e==null?void 0:e.value,children:s},t);case"quote":return i("blockquote",{className:"col-start-2",children:s},t);case"link":{let r=e.fields;return i(y,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:s},t)}case"autolink":{let r=e.fields;return i(y,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:s},t)}default:return null}})})}import{jsx as Z}from"react/jsx-runtime";var f=({className:a,content:e,enableGutter:t=!0,enableProse:c=!0})=>{var s;return e?Z("div",{className:o({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":c},a),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&h({nodes:(s=e==null?void 0:e.root)==null?void 0:s.children})}):null};import{jsx as T}from"react/jsx-runtime";var E=({className:a,content:e,style:t})=>T("div",{className:o("mx-auto my-8 w-full",a),children:T("div",{className:o("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:T(f,{content:e,enableGutter:!1,enableProse:!1})})});export{E as a,oe as b,z as c,j as d,h as e,f,C as g,ge as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-OWBJTXZL.mjs";import{a as C,c as h,d as D,g as b,i as N}from"./chunk-4JC2TJML.mjs";import{a as
|
|
1
|
+
import{a as U}from"./chunk-OWBJTXZL.mjs";import{a as k}from"./chunk-4NKKWJ2X.mjs";import{a as C,c as h,d as D,g as b,i as N}from"./chunk-4JC2TJML.mjs";import{a as T}from"./chunk-A5EYIB3V.mjs";import{a as l}from"./chunk-DWRQHV42.mjs";import{a as L}from"./chunk-Y5ZFXDW5.mjs";import{a as A,f as I,g as E,i as P}from"./chunk-JWDVKGZL.mjs";import{a as v}from"./chunk-QOIH63J3.mjs";import{b as f}from"./chunk-BDX257W2.mjs";import{useState as S,useEffect as J}from"react";import{PlusIcon as K}from"lucide-react";import{Fragment as Q,jsx as t,jsxs as r}from"react/jsx-runtime";function oe({customers:m,users:n,categories:B,onSubmit:O,initialDeal:d,onAddCustomer:V,onClose:p}){var y,x,w,F;let[s,i]=S(d||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[q,g]=S(!1),[o,c]=S({});J(()=>{d&&i(d)},[d]);let R=()=>{let e={};return s.customer||(e.customer="Customer is required"),s.value||(e.value="Value is required"),s.assignee||(e.assignee="Assignee is required"),s.closureDate||(e.closureDate="Closure Date is required"),c(e),Object.keys(e).length===0},H=async e=>{e.preventDefault(),c({});try{if(R()){let a=await O({...s});a.success?(i({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),p==null||p()):c(a.errors||{})}}catch{c({submit:"An error occurred while submitting the form."})}},M=e=>{i(a=>({...a,categories:(a.categories||[]).includes(e.id)?(a.categories||[]).filter(u=>u!==e.id):[...a.categories||[],e.id]}))},z=async e=>{i({...s,customer:e});try{let a=await V(e);a.success?g(!1):c(a.errors||{})}catch{c({submit:"An error occurred while submitting the form."})}},j=e=>n==null?void 0:n.find(a=>a.id===Number(e)),G=e=>m==null?void 0:m.find(a=>a.id===Number(e));return r(Q,{children:[r("form",{onSubmit:H,className:"space-y-6",children:[t(k,{className:"h-[60vh] pr-4",children:r("div",{className:"space-y-6 px-4",children:[r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"customer",children:"Customer"}),r("div",{className:"flex items-center space-x-2",children:[r(C,{value:(x=(y=s.customer)==null?void 0:y.id)==null?void 0:x.toString(),onValueChange:e=>i({...s,customer:G(e)}),children:[t(D,{children:t(h,{placeholder:"Select customer"})}),t(b,{children:m.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),t(f,{variant:"outline",size:"icon",onClick:()=>g(!0),children:t(K,{className:"w-5 h-5"})})]}),o.customerId&&t("p",{className:"text-red-500 text-sm",children:o.customerId})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"value",children:"Value"}),t(v,{id:"value",type:"number",value:s.value||"",onChange:e=>i({...s,value:Number.parseFloat(e.target.value)}),placeholder:"Enter deal value"}),o.value&&t("p",{className:"text-red-500 text-sm",children:o.value})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"assignee",children:"Assignee"}),r(C,{value:(F=(w=s.assignee)==null?void 0:w.id)==null?void 0:F.toString(),onValueChange:e=>i({...s,assignee:j(e)}),children:[t(D,{children:t(h,{placeholder:"Select assignee"})}),t(b,{children:n&&n.map(e=>{var a;return t(N,{value:((a=e.id)==null?void 0:a.toString())||"",children:e.name},e.id)})})]}),o.assignee&&t("p",{className:"text-red-500 text-sm",children:o.assignee})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"description",children:"Description"}),t(T,{id:"description",value:s.description||"",onChange:e=>i({...s,description:e.target.value}),placeholder:"Enter deal description"})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{children:"Categories"}),t("div",{className:"space-y-4",children:["proposition","source","sector"].map(e=>r("div",{className:"space-y-2",children:[t("h4",{className:"text-sm font-medium",children:e.charAt(0).toUpperCase()+e.slice(1)}),t("div",{className:"grid grid-cols-2 gap-2",children:B.filter(a=>a.type===e).map(a=>{var u;return r("div",{className:"flex items-center space-x-2",children:[t(L,{id:a.id.toString(),checked:(u=s.categories)==null?void 0:u.includes(a.id),onCheckedChange:()=>M(a)}),t("label",{htmlFor:a.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:a.name})]},a.id)})})]},e))})]}),r("div",{className:"space-y-2 space-x-2",children:[t(l,{htmlFor:"closureDate",children:"Closure Date"}),t(v,{id:"closureDate",type:"date",value:s.closureDate||"",onChange:e=>i({...s,closureDate:e.target.value})}),o.closureDate&&t("p",{className:"text-red-500 text-sm",children:o.closureDate})]})]})}),t(f,{type:"submit",className:"w-full",children:d?"Update Deal":"Add Deal"})]}),t(A,{open:q,onOpenChange:g,children:r(I,{children:[t(E,{children:t(P,{children:"Add New Customer"})}),t(U,{onSubmit:z})]})})]})}export{oe as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as b}from"./chunk-BGOXSZO2.mjs";import{a as k,b as S}from"./chunk-KGFHW5KZ.mjs";import{a as w}from"./chunk-XZLY4ZDO.mjs";import{a as C}from"./chunk-WU3JMLSC.mjs";import{a as P}from"./chunk-BZAYEKYC.mjs";import{a as x}from"./chunk-S5VKLW23.mjs";import{a as h}from"./chunk-SEYRH7IM.mjs";import{a as g}from"./chunk-65KHY3N2.mjs";import{a as v}from"./chunk-ZWII7FHR.mjs";import{f as d}from"./chunk-PDUZAE2B.mjs";import{a as u}from"./chunk-FCCL6W7R.mjs";import{a as y}from"./chunk-RQ23CZK5.mjs";import{a as s}from"./chunk-LCJIXE22.mjs";import{a as N}from"./chunk-E6MYDQ3V.mjs";import{a as f}from"./chunk-UESKYRNK.mjs";import{a as n}from"./chunk-NIQ4466A.mjs";import L from"next/image";import z from"next/link";import{jsx as a,jsxs as j}from"react/jsx-runtime";var Y=({dynamicServiceDetail:t,style:i})=>t.map((o,p)=>a(c,{id:o.slug,theme:p%2===0?"dark":"light",style:i,children:a("div",{className:"container",children:j("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[j("div",{className:n("w-full text-left"),children:[a("h2",{className:"text-3xl md:text-5xl text-primary",children:o.title}),a("div",{className:"mt-4 text-gray-700 text-lg",children:a(d,{enableGutter:!1,content:o.description,enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),a("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:a(z,{href:`/${o.slug}`,children:"Learn more"})})]}),o.icon&&typeof o.icon=="object"&&"type"in o.icon&&"iconName"in o.icon&&a("div",{className:n("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:a("i",{className:`${o.icon.type} fa-${o.icon.iconName} fa-10x w-1/2 h-full text-foreground fill-gradient-linear`,style:{width:"50%"}})})]})})},p));import{jsx as e,jsxs as r}from"react/jsx-runtime";var H=t=>({root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:t,type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}}),D=({children:t})=>e("div",{children:r("div",{className:"sticky top-0 h-screen",children:[t,e(s,{className:"text-black z-10",position:"header"})]})}),I=()=>r(D,{children:[r("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[e("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),e("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:e(f,{children:r("div",{className:"flex flex-col items-start md:w-1/2 mb-10 z-0 md:mb-0",children:[e("h1",{className:"text-5xl md:text-7xl mb-6",children:"Lorum ipsum."}),e("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:"Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio."})]})})})]}),T={highImpact:v,lowImpact:h,mediumImpact:g,sectionHero:x,dummy:I};function M({...t}){let i=t.style;return r("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e(y,{isMenuOpen:!0,logoLight:P,logoDark:C,...t.header}),e(F,{...t.hero}),e(c,{theme:"light",style:i,children:e(b,{...t.service})}),e(c,{theme:"dark",style:i,image:t.service.services[0].image,children:e(R,{})}),e(c,{theme:"light",style:i,children:e(R,{})}),e(c,{theme:"dark",style:i,children:e(k,{...t.contact})}),e(c,{theme:"light",style:i,children:e(S,{...t.contact})}),e(c,{theme:"last",style:i,children:e(w,{...t.blog})}),e(N,{...t.footer})]})}var F=t=>{let{type:i}=t||{};if(!i||i==="none")return null;let o=T[i];return o?e(o,{...t}):null},R=()=>{let t={blurDataURL:"/assets/props/Cortex-Handshake-BG.jpg",height:1315,url:"/assets/props/Cortex-Handshake-BG.jpg",width:1920};return e("div",{className:"container",children:r("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[r("div",{className:n("w-full text-left"),children:[e("h2",{className:"text-3xl md:text-5xl text-primary",children:"Lorum ipsum..."}),e("p",{className:"mt-4 text-gray-700 text-lg",children:e(d,{enableGutter:!1,content:H("Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Lorum ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui ac odio. Nulla facilisi. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies. Nullam nec nisi nec odio ultricies ultricies."),enableProse:!1,className:n("prose prose-headings:text-foreground prose-p:text-foreground")})}),e("button",{className:"mt-6 px-6 py-3 border border-1 border-accent text-foreground rounded-full text-base hover:bg-accent hover:text-accent-foreground transition",children:"Click here"})]}),e("div",{className:"w-full h-full min-h-96 p-6 md:p-6 flex justify-center",children:e(L,{src:t.url,alt:"image",width:t.width,height:t.height,className:"max-w-full"})})]})})},c=({children:t,theme:i,style:o,neighbours:p,shape:B,image:G,id:l})=>{let $=m=>r("div",{className:"select-none",children:[m&&typeof m=="object"&&e(u,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&e("div",{children:e(L,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(i==="dark"&&o==="slide")return e("section",{id:l||"next-section",className:"sticky md:top-0 h-screen",children:r("div",{className:"dark pt-0 min-h-[80vh]",children:[e(s,{className:"z-10",position:"dark-top"}),r("div",{className:"relative",children:[e("div",{className:"flex items-center bg-black justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"dark-bottom"})]})]})});if(i==="light"&&o==="slide")return e("section",{id:l||"next-section",className:"sticky top-0 light pt-0 h-screen",children:r("div",{className:"sticky top-0 light pt-0 h-screen",children:[e(s,{className:"z-10",position:"light-top"}),r("div",{className:"relative bg-white",children:[e("div",{className:"flex items-center bg-white justify-center pt-12",children:e("div",{className:"container",children:t})}),e("div",{className:"h-[200px] bg-white"})]})]})});if(i==="first")return e("section",{id:l||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:r("div",{className:"relative",children:[e("div",{className:"flex items-center justify-center pt-12",children:e("div",{className:"container",children:t})}),e(s,{className:"text-black z-10",position:"bottom-right"})]})})});if(i==="light")return e("section",{id:l||"next-section",className:"",children:e("div",{className:"sticky top-0 light bg-background min-h-[50vh]",children:e("div",{className:"flex items-center pt-8 justify-center",children:e("div",{className:"container",children:t})})})});if(i==="dark")return e("section",{id:l||"next-section",className:"",children:r("div",{className:"sticky top-0 dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pt-12 bg-black",children:e("div",{className:"container",children:t})}),e(s,{className:"text-accent z-10",position:"top"})]})});if(i==="last")return e("section",{id:l||"next-section",className:"",children:r("div",{className:"sticky top-0 dark min-h-[80vh] bg-white",children:[e(s,{className:"text-black z-10",position:"bottom-right"}),e("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:e("div",{className:"container",children:t})})]})})};export{M as a,c as b,Y as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-
|
|
4
|
+
import{c as k,h as R,i as v,k as S,l as f,o as x,p as u,q as c,r as y,s as w,v as P,w as B,x as L}from"./chunk-2IKC7MAP.mjs";import{a as n}from"./chunk-BSQVKZCW.mjs";import{a as g,b as N,c as M}from"./chunk-YNCJATT7.mjs";import{ChevronRight as A}from"lucide-react";import T from"clsx";import{Fragment as H,jsx as e,jsxs as i}from"react/jsx-runtime";function J({mainNav:o,secondaryNav:l,title:b,subTitle:a,pathName:p,menuHeading:d,onNavClick:s,loading:r=!1,LinkComponent:h,...F}){let C=h?t=>e(h,{...t}):s?({href:t,children:m,...I})=>e("button",{onClick:()=>s&&s(t),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:m}):t=>e("a",{...t});return i(k,{...F,variant:"inset",children:[e(R,{children:e(u,{children:e(c,{children:r?i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e(n,{className:"bg-gray-200 my-2 w-full h-7"}),e(n,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):i("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[e("span",{className:"truncate font-semibold",children:b}),a&&e("span",{className:"truncate text-sm",children:a})]})})})}),r&&i(S,{children:[e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"}),e(n,{className:"bg-gray-200 w-3/4 h-5"})]}),i(S,{children:[o&&!r&&o.map((t,m)=>e(G,{subNav:t,pathName:p,Link:C},m)),e(f,{className:"mt-auto",children:e(x,{children:e(u,{children:l&&!r&&l.map(t=>e(c,{children:e(y,{asChild:!0,size:"sm",children:i(C,{href:t.url||"",children:[t.icon&&e(t.icon,{}),e("span",{children:t.label})]})})},t.label))})})})]}),e(v,{})]})}function G({subNav:o,pathName:l,Link:b}){var d,s;let a=o,p=!1;return a.links&&a.links.map(r=>{r.url===l&&(p=!0)}),e(g,{defaultOpen:!0,className:"group/collapsible",children:e(f,{className:"py-0",children:e(u,{children:e(g,{asChild:!0,defaultOpen:a.isActive,children:i(c,{children:[e(y,{asChild:!0,tooltip:a.label,className:T(p&&"font-bold text-accent"),children:i(b,{href:a.url,children:[a.icon&&e(a.icon,{}),e("span",{children:a.label})]})}),(d=a.links)!=null&&d.length?i(H,{children:[e(N,{asChild:!0,children:i(w,{className:"data-[state=open]:rotate-90",children:[e(A,{}),e("span",{className:"sr-only",children:"Toggle"})]})}),e(M,{children:e(P,{children:(s=a.links)==null?void 0:s.map(r=>e(B,{children:e(L,{asChild:!0,className:T(r.url===l&&"font-bold text-accent"),children:e(b,{href:r.url,children:e("span",{children:r.label})})})},r.label))})})]}):null]})},a.label)})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m}from"./chunk-DHEI2PBB.mjs";import{a as i}from"./chunk-CQOXWC6U.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{jsx as n,jsxs as d}from"react/jsx-runtime";function u({isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,className:p,wide:l,themeControl:s=!1}){return d("div",{className:r("fixed top-0 left-0 right-0 z-50",p),children:[n(i,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a,themeControl:s,wide:l}),n(m,{isMenuOpen:e,logoLight:o,logoDark:t,menuItems:a})]})}export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-S5VKLW23.mjs";import{a as l}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-S5VKLW23.mjs";import{a as l}from"./chunk-SEYRH7IM.mjs";import{a as m}from"./chunk-65KHY3N2.mjs";import{a as i}from"./chunk-ZWII7FHR.mjs";import{ChevronRightIcon as c,HomeIcon as f}from"@heroicons/react/20/solid";import{Fragment as h,jsx as e,jsxs as a}from"react/jsx-runtime";var d={highImpact:i,lowImpact:l,mediumImpact:m,sectionHero:n},H=t=>{let{type:o}=t||{};if(!o||o==="none")return null;let r=d[o];return r?e(r,{...t}):null};function N({breadcrumbItems:t}){if(t&&t.length>0){let o=t.filter(r=>r.label.toLowerCase()!=="home");return e("nav",{"aria-label":"Breadcrumb",className:"flex",children:a("ol",{role:"list",className:"flex items-center space-x-4",children:[e("li",{children:e("div",{children:a("a",{href:"/",className:"text-foreground hover:text-accent",children:[e(f,{"aria-hidden":"true",className:"size-5 shrink-0"}),e("span",{className:"sr-only",children:"Home"})]})})}),o.map((r,s)=>e("li",{children:a("div",{className:"flex items-center",children:[e(c,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?e("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):e("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},s))]})})}return e(h,{})}export{H as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f as r}from"./chunk-PDUZAE2B.mjs";import{jsx as e}from"react/jsx-runtime";var c=({children:o,richText:t})=>e("div",{className:"min-w-full py-10 bg-muted mt-24",children:e("div",{className:"container",children:o||t&&e(r,{content:t,enableGutter:!1})})});export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-
|
|
4
|
+
import{a as h}from"./chunk-WU3JMLSC.mjs";import{a as g}from"./chunk-BZAYEKYC.mjs";import{a as S}from"./chunk-IO222G5L.mjs";import{a as o,b as d,c as i,d as t,e as m,f as l}from"./chunk-AWFQEK7A.mjs";import{a as p}from"./chunk-QMFZRG7O.mjs";import{a as c}from"./chunk-3YZN4MJB.mjs";import{b as s,d as b,f as u}from"./chunk-2IKC7MAP.mjs";import{a as n}from"./chunk-Y5VTKEKS.mjs";import{a as f}from"./chunk-RQ23CZK5.mjs";import{jsx as e,jsxs as r}from"react/jsx-runtime";function v({...a}){return r("div",{className:"bg-sidebar",children:[e(f,{isMenuOpen:!0,logoLight:g,logoDark:h,...a.header,wide:!0,className:"bg-sidebar"}),r(s,{className:"top-24 mb-4 h-full max-h-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[e(p,{...a.sidebarLeft,className:"flex-none top-24"}),r(u,{className:"grow overflow-hidden",children:[e("header",{className:"flex h-16 shrink-0 items-center gap-2",children:r("div",{className:"flex items-center gap-2 px-4",children:[e(b,{className:"-ml-1"}),e(n,{orientation:"vertical",className:"mr-2 h-4"}),e(o,{children:r(d,{children:[e(i,{className:"hidden md:block",children:e(t,{href:"#",children:"Building Your Application"})}),e(l,{className:"hidden md:block"}),e(i,{children:e(m,{children:"Data Fetching"})})]})})]})}),r("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[r("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"}),e("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),e("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-h-min"})]})]}),e(S,{...a.sidebarRight,className:"flex-none top-24"})]}),e(c,{})]})}export{v as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-
|
|
4
|
+
import{a as l}from"./chunk-4DJ6HKHR.mjs";import{a as m}from"./chunk-F6DSJZ6G.mjs";import{a}from"./chunk-BGOXSZO2.mjs";import{a as n}from"./chunk-KGFHW5KZ.mjs";import{a as d}from"./chunk-XZLY4ZDO.mjs";import{a as u}from"./chunk-WU3JMLSC.mjs";import{a as S}from"./chunk-BZAYEKYC.mjs";import{a as t}from"./chunk-266LJXBZ.mjs";import{a as i}from"./chunk-E6MYDQ3V.mjs";import{Fragment as s,jsx as e,jsxs as f}from"react/jsx-runtime";function c({...r}){return f("div",{className:"relative overflow-y-none scroll-smooth snap-y snap-mandatory",children:[e("div",{className:"h-screen relative overflow-hidden snap-start",children:e(t,{...r.header,logoVideo:l,logoLight:S,logoDark:u})}),e(a,{...r.service}),e(p,{...r.service}),e(n,{...r.contact}),e(d,{...r.blog}),e(i,{...r.footer})]})}function p({services:r}){return e(s,{children:r.map((b,o)=>e(m,{...b,theme:o%2===0?"dark":"light"},o))})}export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-34BK5A3H.mjs";import{a as l}from"./chunk-UESKYRNK.mjs";import{a as m}from"./chunk-NIQ4466A.mjs";import t from"next/image";import{Fragment as p,jsx as e,jsxs as i}from"react/jsx-runtime";function u(d){let{images:a,sectionHeading:n,keyPoints:s,description:o}=d;return e(p,{children:e("section",{id:"about-section",className:m(" clip-custom-top-l sticky md:top-0 md:h-screen z-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",d.className||""),children:e(l,{children:i("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[i("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[e(c,{...n}),s&&s.length>0&&e("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:s.map((r,g)=>i("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[e("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:r.icon}),e("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r.title})]},g))}),o&&e("p",{className:"mt-5 text-primary md:mt-[1.875rem]",children:o})]}),a&&e("div",{className:"mx-auto text-center",children:i("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[e("div",{className:"relative flex justify-end overflow-hidden",children:e("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:e("div",{className:"relative z-[4] overflow-hidden",children:e(t,{src:a.image1.src,alt:a.image1.alt,width:a.image1.width,height:a.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),e("div",{className:"flex overflow-hidden",children:e(t,{src:a.image2.src,alt:a.image2.alt,width:a.image2.width,height:a.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),e("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:e(t,{src:a.image3.src,alt:a.image4.alt,width:a.image3.width,height:a.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),e("div",{className:"overflow-hidden",children:e(t,{src:a.image4.src,alt:a.image4.alt,width:a.image4.width,height:a.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),e("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:e("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:e("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:e("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as x}from"./chunk-SV7NMNDI.mjs";import{a as v}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-SV7NMNDI.mjs";import{a as v}from"./chunk-34BK5A3H.mjs";import{c as u}from"./chunk-YNNW2C2U.mjs";import{a as f}from"./chunk-UESKYRNK.mjs";import{a as l}from"./chunk-WISCWNL2.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import h from"next/image";import{FaArrowRight as w}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";function $({blogs:a,sectionHeading:t,base:n="insights"}){return r(f,{children:[e("div",{className:"",children:t&&e("div",{"data-aos":"fade-up","data-aos-delay":"100",children:e(v,{...t,alignment:"start",hasBottomSpacing:!0})})}),a&&a.length>0&&e("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:a.map((s,o)=>e("div",{"data-aos":"fade-up","data-aos-delay":x([200,400,600],o),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:e(y,{...s,base:n})},o))})]})}var b=i("inline-flex items-center gap-2 text-white"),j=i("text-sm text-white");function y({slug:a,meta:t,authors:n,title:s,publishedAt:o,categories:N,base:g}){var p,c,d,m;return r("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[e("span",{className:"absolute inset-0 z-[2] "}),e(h,{src:((p=t==null?void 0:t.image)==null?void 0:p.url)||"/assets/images/brand/cortex-reply-gradient.png",alt:((c=t==null?void 0:t.image)==null?void 0:c.alt)||"Blog image",fill:!0,sizes:`
|
|
2
2
|
(min-width:768px) 50vw,
|
|
3
3
|
(min-width:1024px) 33vw,
|
|
4
4
|
100vw
|
|
@@ -6,4 +6,4 @@ import{a as x}from"./chunk-SV7NMNDI.mjs";import{a as v}from"./chunk-HF7UYIME.mjs
|
|
|
6
6
|
(min-width:768px) 50vw,
|
|
7
7
|
(min-width:1024px) 33vw,
|
|
8
8
|
100vw
|
|
9
|
-
`,className:i("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),r("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[o&&e("div",{children:e("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/
|
|
9
|
+
`,className:i("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),r("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[o&&e("div",{children:e("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:e("time",{dateTime:o,className:"text-foreground",children:e("span",{className:"block",children:u(o)})})})}),r("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[e("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:e("p",{className:b})}),e("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:e(l,{"aria-label":s,href:`/${g}/${a}`||"#",className:"transition-colors duration-300 hover:text-primary",children:s})}),e("div",{children:r(l,{href:`/${g}/${a}`||"#",className:i(b,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[e("span",{children:"Read article"}),e("span",{className:"text-accent",children:e(w,{})})]})})]})]})]})}export{$ as a,y as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{b as w,c as C}from"./chunk-
|
|
4
|
+
import{b as w,c as C}from"./chunk-NUKPO5ZV.mjs";import{b as y}from"./chunk-P5QTMPTP.mjs";import{a as N}from"./chunk-NIQ4466A.mjs";import{a as b}from"./chunk-C5XNOZXC.mjs";import{useEffect as d,useRef as s,useState as E,useCallback as H}from"react";import{Previewer as p}from"pagedjs";import{Fragment as T,jsx as n,jsxs as l}from"react/jsx-runtime";function B(r){var e=document.createElement("div");e.style.display="block",e.style.height=r,document.body.appendChild(e);var i=parseFloat(window.getComputedStyle(e,null).height);return e.parentNode&&e.parentNode.removeChild(e),Math.floor(i)}var m=r=>{let e=document.createElement("div");e.style.height="1mm",document.body.appendChild(e);let i=parseFloat(window.getComputedStyle(e).height);return document.body.removeChild(e),Math.floor(r/i)},z=({page:r,layout:e="portrait",logoImage:i})=>e==="flow"?n(I,{page:r,layout:e,logoImage:i}):n(M,{page:r,layout:e,logoImage:i}),I=({page:r,layout:e="portrait",logoImage:i})=>{let{contentWithIds:c}=b(r),u=s(null),a=s(null),h=s(new p),f={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};d(()=>{let o=document.getElementById("printable-content");if(o){let t=document.createElement("style");return t.textContent=`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; width: ${m(o.offsetWidth)}mm }; .container : { max-width: ${m(o.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(t),()=>{document.head.removeChild(t)}}},[e]);let k=H(()=>{if(!a.current)return;a.current&&(a.current.innerHTML="");let o=document.getElementById("printable-content");o&&h.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${m(o.offsetWidth)}mm ${m(o.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],a.current).catch(t=>console.error("Paged.js error:",t))},[e]);d(()=>{h.current=new p},[k,e]);let g=[f,...c];return l("div",{children:[n("div",{className:"w-[1123px] print:w-[1123px]",children:l("div",{id:"printable-content",ref:u,children:[g.map((o,t)=>n(T,{children:t===0?n("section",{className:"title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},t):l("section",{className:"normal-page overflow-hidden",children:[o.blockName&&n(w,{title:o.blockName}),n(y,{blocks:[o],fill:!0})]},t)})),n("section",{className:"normal-page",children:l("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
5
5
|
dark bg-background text-primary`,children:[l("div",{className:"flex px-6 items-center space-x-2",children:[i&&n("img",{src:i.src,alt:"Cortex Reply Logo",className:"h-8"}),n("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),n("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),n("div",{ref:a,className:"preview-container"})]})},M=({page:r,layout:e="portrait"})=>{let{contentWithIds:i}=b(r),c=s(null),u=s(null),a=s(new p),[h,f]=E(0),g=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...i],o=H(()=>{c.current&&(c.current&&(c.current.innerHTML=""),a.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",e==="landscape"?"./landscape.css":"./portrait.css"],c.current).then(t=>f(t.pageCount)).catch(t=>console.error("Paged.js error:",t)))},[e]);return d(()=>{a.current=new p,o()},[o,e]),d(()=>{let t=document.createElement("style");return t.textContent=`@page { size: A4 ${e} ; margin: 0mm; };`,document.head.appendChild(t),()=>{document.head.removeChild(t)}},[]),l("div",{className:"pagedjs-container",children:[n("div",{id:"printable-content",ref:u,style:{display:"none"},className:"pagedjs-content",children:g.map((t,v)=>{var P,x;return n(T,{children:v===0?n("section",{className:"pagedjs-section title-page w-full h-full",children:n(C,{hero:r.hero,title:r.title})},v):l("section",{className:N("pagedjs-section normal-page h-[699px]",`h-[${B("185mm")}px]`,((x=(P=t.theme)==null?void 0:P.settings)==null?void 0:x.theme)==="dark"?"dark":"light"),children:[t.blockName&&n(w,{title:t.blockName}),n(y,{blocks:[t],fill:!0})]},v)})})}),n("div",{ref:c,className:"preview-container"})]})};export{z as a,I as b,M as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{
|
|
4
|
+
import{f as t}from"./chunk-PDUZAE2B.mjs";import{a}from"./chunk-NIQ4466A.mjs";import n from"react";import*as l from"@radix-ui/react-collapsible";import{ChevronDownIcon as c,ChevronUpIcon as m}from"@radix-ui/react-icons";import{jsx as e,jsxs as s}from"react/jsx-runtime";var h=({title:p,richText:r})=>{let[o,i]=n.useState(!1);return e("div",{className:"border rounded-lg overflow-hidden",children:s(l.Root,{className:a("w-full"),open:o,onOpenChange:i,children:[s(l.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[e("h2",{className:"text-lg font-medium",children:p}),o?e(m,{className:"h-6 w-6"}):e(c,{className:"h-6 w-6"})]}),e(l.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:e("div",{className:"px-4 py-3 bg-white",children:e(t,{content:r||{},enableGutter:!1})})})]})})};export{h as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
import{
|
|
4
|
+
import{f as m}from"./chunk-PDUZAE2B.mjs";import{a as o}from"./chunk-44VMK4FL.mjs";import{a as s}from"./chunk-FCCL6W7R.mjs";import{a as c}from"./chunk-LCJIXE22.mjs";import h from"next/image";import{jsx as e,jsxs as i}from"react/jsx-runtime";var x=({links:r,media:t,children:l,richText:a})=>e("div",{children:i("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[i("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[l||a&&e(m,{className:"max-w-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:a,enableGutter:!0}),Array.isArray(r)&&r.length>0&&e("ul",{className:"flex justify-center gap-4",children:r.map(({link:n},p)=>e("li",{children:e(o,{...n})},p))})]}),i("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&e(s,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&e("div",{children:e(h,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),e("span",{className:"absolute inset-0 bg-gradient-to-b from-white dark:from-black"})]}),e(c,{className:"text-black z-10",position:"header"})]})});export{x as a};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
'use server'
|
|
3
4
|
|
|
4
|
-
"use strict";var nr=Object.create;var X=Object.defineProperty;var lr=Object.getOwnPropertyDescriptor;var sr=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty;var dr=(e,r)=>{for(var t in r)X(e,t,{get:r[t],enumerable:!0})},Ne=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of sr(r))!cr.call(e,l)&&l!==t&&X(e,l,{get:()=>r[l],enumerable:!(n=lr(r,l))||n.enumerable});return e};var U=(e,r,t)=>(t=e!=null?nr(ir(e)):{},Ne(r||!e||!e.__esModule?X(t,"default",{value:e,enumerable:!0}):t,e)),pr=e=>Ne(X({},"__esModule",{value:!0}),e);var _r={};dr(_r,{BannerBlock:()=>ye});module.exports=pr(_r);var Fe=require("clsx");var ie="-",ur=e=>{let r=fr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{let s=a.split(ie);return s[0]===""&&s.length!==1&&s.shift(),Re(s,r)||mr(a)},getConflictingClassGroupIds:(a,s)=>{let d=t[a]||[];return s&&n[a]?[...d,...n[a]]:d}}},Re=(e,r)=>{var a;if(e.length===0)return r.classGroupId;let t=e[0],n=r.nextPart.get(t),l=n?Re(e.slice(1),n):void 0;if(l)return l;if(r.validators.length===0)return;let o=e.join(ie);return(a=r.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Pe=/^\[(.+)\]$/,mr=e=>{if(Pe.test(e)){let r=Pe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},fr=e=>{let{theme:r,prefix:t}=e,n={nextPart:new Map,validators:[]};return br(Object.entries(e.classGroups),t).forEach(([o,a])=>{se(a,n,o,r)}),n},se=(e,r,t,n)=>{e.forEach(l=>{if(typeof l=="string"){let o=l===""?r:Be(r,l);o.classGroupId=t;return}if(typeof l=="function"){if(gr(l)){se(l(n),r,t,n);return}r.validators.push({validator:l,classGroupId:t});return}Object.entries(l).forEach(([o,a])=>{se(a,Be(r,o),t,n)})})},Be=(e,r)=>{let t=e;return r.split(ie).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},gr=e=>e.isThemeGetter,br=(e,r)=>r?e.map(([t,n])=>{let l=n.map(o=>typeof o=="string"?r+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[r+a,s])):o);return[t,l]}):e,yr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,n=new Map,l=(o,a)=>{t.set(o,a),r++,r>e&&(r=0,n=t,t=new Map)};return{get(o){let a=t.get(o);if(a!==void 0)return a;if((a=n.get(o))!==void 0)return l(o,a),a},set(o,a){t.has(o)?t.set(o,a):l(o,a)}}},Ie="!",hr=e=>{let{separator:r,experimentalParseClassName:t}=e,n=r.length===1,l=r[0],o=r.length,a=s=>{let d=[],u=0,f=0,w;for(let h=0;h<s.length;h++){let x=s[h];if(u===0){if(x===l&&(n||s.slice(h,h+o)===r)){d.push(s.slice(f,h)),f=h+o;continue}if(x==="/"){w=h;continue}}x==="["?u++:x==="]"&&u--}let v=d.length===0?s:s.substring(f),C=v.startsWith(Ie),A=C?v.substring(1):v,y=w&&w>f?w-f:void 0;return{modifiers:d,hasImportantModifier:C,baseClassName:A,maybePostfixModifierPosition:y}};return t?s=>t({className:s,parseClassName:a}):a},xr=e=>{if(e.length<=1)return e;let r=[],t=[];return e.forEach(n=>{n[0]==="["?(r.push(...t.sort(),n),t=[]):t.push(n)}),r.push(...t.sort()),r},vr=e=>({cache:yr(e.cacheSize),parseClassName:hr(e),...ur(e)}),wr=/\s+/,kr=(e,r)=>{let{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:l}=r,o=[],a=e.trim().split(wr),s="";for(let d=a.length-1;d>=0;d-=1){let u=a[d],{modifiers:f,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:C}=t(u),A=!!C,y=n(A?v.substring(0,C):v);if(!y){if(!A){s=u+(s.length>0?" "+s:s);continue}if(y=n(v),!y){s=u+(s.length>0?" "+s:s);continue}A=!1}let h=xr(f).join(":"),x=w?h+Ie:h,k=x+y;if(o.includes(k))continue;o.push(k);let T=l(y,A);for(let N=0;N<T.length;++N){let _=T[N];o.push(x+_)}s=u+(s.length>0?" "+s:s)}return s};function Cr(){let e=0,r,t,n="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Te(r))&&(n&&(n+=" "),n+=t);return n}var Te=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=Te(e[n]))&&(t&&(t+=" "),t+=r);return t};function Ar(e,...r){let t,n,l,o=a;function a(d){let u=r.reduce((f,w)=>w(f),e());return t=vr(u),n=t.cache.get,l=t.cache.set,o=s,s(d)}function s(d){let u=n(d);if(u)return u;let f=kr(d,t);return l(d,f),f}return function(){return o(Cr.apply(null,arguments))}}var g=e=>{let r=t=>t[e]||[];return r.isThemeGetter=!0,r},Se=/^\[(?:([a-De-]+):)?(.+)\]$/i,Nr=/^\d+\/\d+$/,Pr=new Set(["px","full","screen"]),Br=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rr=/\d+(%|px|r?em|[sdl]?v([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$/,Ir=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Tr=/^(inset_)?-?((\d+)?\.?(\d+)[a-De]+|0)_-?((\d+)?\.?(\d+)[a-De]+|0)/,Sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>G(e)||Pr.has(e)||Nr.test(e),S=e=>L(e,"length",Ur),G=e=>!!e&&!Number.isNaN(Number(e)),le=e=>L(e,"number",G),H=e=>!!e&&Number.isInteger(Number(e)),Mr=e=>e.endsWith("%")&&G(e.slice(0,-1)),i=e=>Se.test(e),M=e=>Br.test(e),zr=new Set(["length","size","percentage"]),Fr=e=>L(e,zr,Me),Er=e=>L(e,"position",Me),Gr=new Set(["image","url"]),Lr=e=>L(e,Gr,jr),Dr=e=>L(e,"",Hr),j=()=>!0,L=(e,r,t)=>{let n=Se.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):t(n[2]):!1},Ur=e=>Rr.test(e)&&!Ir.test(e),Me=()=>!1,Hr=e=>Tr.test(e),jr=e=>Sr.test(e);var Vr=()=>{let e=g("colors"),r=g("spacing"),t=g("blur"),n=g("brightness"),l=g("borderColor"),o=g("borderRadius"),a=g("borderSpacing"),s=g("borderWidth"),d=g("contrast"),u=g("grayscale"),f=g("hueRotate"),w=g("invert"),v=g("gap"),C=g("gradientColorStops"),A=g("gradientColorStopPositions"),y=g("inset"),h=g("margin"),x=g("opacity"),k=g("padding"),T=g("saturate"),N=g("scale"),_=g("sepia"),he=g("skew"),xe=g("space"),ve=g("translate"),te=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",i,r],b=()=>[i,r],we=()=>["",B,S],K=()=>["auto",G,i],ke=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",i],Ae=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[G,i];return{cacheSize:500,separator:":",theme:{colors:[j],spacing:[B,S],blur:["none","",M,i],brightness:P(),borderColor:[e],borderRadius:["none","","full",M,i],borderSpacing:b(),borderWidth:we(),contrast:P(),grayscale:D(),hueRotate:P(),invert:D(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Mr,S],inset:ae(),margin:ae(),opacity:P(),padding:b(),saturate:P(),scale:P(),sepia:D(),skew:P(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":Ae()}],"break-before":[{"break-before":Ae()}],"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:[...ke(),i]}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],De:[{De:["auto",H,i]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[j]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[j]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],De:[{De:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],De:[{De:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],De:[{De:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],De:[{De:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[xe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[xe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",le]}],"font-family":[{font:[j]}],"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",i]}],"line-clamp":[{"line-clamp":["none",G,le]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,S]}],"underline-offset":[{"underline-offset":["auto",B,i]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ke(),Er]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],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:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...Y(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:Y()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...Y()]}],"outline-offset":[{"outline-offset":[B,i]}],"outline-w":[{outline:[B,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[B,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,Dr]}],"shadow-color":[{shadow:[j]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ce()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",M,i]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[w]}],saturate:[{saturate:[T]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[H,i]}],"translate-x":[{"translate-x":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-x":[{"skew-x":[he]}],"skew-y":[{"skew-y":[he]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-De":[{"scroll-De":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-De":[{"scroll-De":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-De":[{"scroll-De":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-De":[{"scroll-De":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[B,S,le]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],De:["px","py","ps","De","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],De:["mx","my","ms","De","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-De":["scroll-mx","scroll-my","scroll-ms","scroll-De","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-De":["scroll-px","scroll-py","scroll-ps","scroll-De","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ze=Ar(Vr);function c(...e){return ze((0,Fe.clsx)(e))}var Ee=require("@radix-ui/react-slot"),Ge=require("class-variance-authority"),Le=U(require("react")),De=require("react/jsx-runtime"),Qr=(0,Ge.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"}}}),V=Le.forwardRef(({asChild:e=!1,className:r,size:t,variant:n,...l},o)=>(0,De.jsx)(e?Ee.Slot:"button",{className:c(Qr({className:r,size:t,variant:n})),ref:o,...l}));V.displayName="Button";var ce=U(require("next/link")),O=e=>{let{type:r,appearance:t="inline",children:n,className:l,label:o,newTab:a,reference:s,size:d,url:u}=e,f=r==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:u;if(!f)return null;let w=t==="link"?"clear":d,v=a?{rel:"noopener noreferrer",target:"_blank"}:{};return t==="inline"?(0,De.jsxs)(ce.default,{className:c(l),href:f||u||"",...v,children:[o&&o,n&&n]}):(0,De.jsx)(V,{asChild:!0,className:l,size:w,variant:t,children:(0,De.jsxs)(ce.default,{className:c(l),href:f||u||"",...v,children:[o&&o,n&&n]})})};var Ue=({links:e,richText:r})=>(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"bg-card rounded border-border border De-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,De.jsx)("div",{className:"max-w-[48rem] flex items-center",children:r&&(0,De.jsx)(F,{className:"mb-0",content:r,enableGutter:!1})}),(0,De.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:t},n)=>(0,De.jsx)(O,{size:"lg",...t},n))})]})});var q=require("prism-react-renderer");var He=require("lucide-react"),je=require("react");function Ve({code:e}){let[r,t]=(0,je.useState)("Copy");function n(){r==="Copy"&&(t(()=>"Copied!"),setTimeout(()=>{t(()=>"Copy")},1e3))}return(0,De.jsx)("div",{className:"flex justify-end align-middle",children:(0,De.jsxs)(V,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,De.jsx)("De",{children:r}),(0,De.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,De.jsx)(He.ClipboardCopy,{})})]})})}var Qe=({code:e,language:r=""})=>e?(0,De.jsx)(q.Highlight,{code:e,language:r,theme:q.themes.vsDark,children:({getLineProps:t,getTokenProps:n,tokens:l})=>(0,De.jsxs)("pre",{className:"bg-black De-4 border text-xs border-border rounded overflow-x-auto",children:[l.map((o,a)=>(0,De.jsxs)("div",{...t({className:"table-row",line:o}),children:[(0,De.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,De.jsx)("span",{className:"table-cell pl-4",children:o.map((s,d)=>(0,De.jsx)("span",{...n({token:s})},d))})]},a)),(0,De.jsx)(Ve,{code:e})]})}):null;var Oe=({className:e,code:r,language:t})=>(0,De.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,De.jsx)(Qe,{code:r,language:t})});var _e=U(require("next/image")),Or={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Je="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=",Ke=e=>{let{alt:r,fill:t,imgClassName:n,priority:l,resource:o,size:a,src:s,loading:d}=e,u,f,w=r,v=s||"";if(!v&&o&&typeof o=="object"){let{alt:y,filename:h,height:x,url:k,width:T}=o;if(x&&x>500){let N=500/x;u=T*N,f=x*N}else u=T,f=x;w=y||"",v=k||Je}let C=d||"lazy",A=a||Object.entries(Or).map(([,y])=>`(max-width: ${y}px) ${y*2}w`).join(", ");return(0,De.jsx)("picture",{children:(0,De.jsx)(_e.default,{alt:w||"",className:c(n),fill:t,height:t?void 0:f,placeholder:"blur",blurDataURL:Je,priority:C!=="lazy"&&l,quality:100,loading:C,sizes:A,src:v,width:t?void 0:u})})};var Ye=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Xe=()=>{if(Ye){let e=window.location.protocol,r=window.location.hostname,t=window.location.port;return`${e}//${r}${t?`:${t}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var qe=e=>{let{onClick:r,resource:t,videoClassName:n}=e,l=(0,je.useRef)(null);if((0,je.useEffect)(()=>{let{current:o}=l;o&&o.addEventListener("suspend",()=>{})},[]),t&&typeof t=="object"){let{filename:o}=t;return(0,De.jsx)("video",{autoPlay:!0,className:c(n),controls:!1,loop:!0,muted:!0,onClick:r,playsInline:!0,ref:l,children:(0,De.jsx)("source",{src:`${Xe()}/media/${o}`})})}return null};var $=e=>{var a;let{className:r,htmlElement:t="div",resource:n}=e,l=typeof n=="object"&&((a=n==null?void 0:n.mimeType)==null?void 0:a.includes("video"));return(0,De.jsx)(t||je.Fragment,{...t!==null?{className:r}:{},children:l?(0,De.jsx)(qe,{...e}):(0,De.jsx)(Ke,{...e})})};var Ze=e=>{let{className:r,enableGutter:t=!0,imgClassName:n,media:l,staticImage:o}=e;return(0,De.jsx)("div",{className:c("h-full ",{container:t},r),children:(0,De.jsx)($,{imgClassName:c("rounded-[0.8rem]",n),className:"flex justify-center",resource:l,src:o})})};var $e=e=>{let{className:r,enableGutter:t=!0,imgClassName:n,media:l,staticImage:o}=e;return(0,De.jsx)("div",{className:c("",{container:t},r),children:(0,De.jsx)($,{imgClassName:c("rounded-[0.8rem]",n),resource:l,src:o})})};var ge=({type:e="solid",iconName:r="cloud",size:t="lg",className:n})=>{let l=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+r,a=n!=null?n:"",s=l+o+" fa-"+t+" "+a;return(0,De.jsx)("i",{className:s})};var tr=U(require("next/image"));function rr(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function be({image:e,icon:r,title:t,subtitle:n,content:l,statistic:o,settings:a,link:s,className:d}){var w,v;let u={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"},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,De.jsxs)("div",{className:c("min-w-56 max-w-xl h-full flex flex-col group",e?"De-0 md:De-0":"De-8 md:De-8",a&&!e&&u[(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",f[(w=a==null?void 0:a.width)!=null?w:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",a&&`intersect:animate-delay-${a.order||1}00`,d),children:[e&&(0,De.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,De.jsx)(tr.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,De.jsxs)("div",{className:c(e?"De-4 md:De-1 md:px-8":"De-0 md:De-0","flex h-2/5 md:max-h-1/2 flex-col flex-grow"),children:[n&&(0,De.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:n}),(0,De.jsx)("div",{className:"flex items-center gap-4 mb-2 md:mb-0",children:(0,De.jsx)(Jr,{icon:{type:(r==null?void 0:r.type)||"fa-light",iconName:(r==null?void 0:r.icon)||"no-icon-error"},heading:t!=null?t:"",variant:(a==null?void 0:a.card)==="default"?"solid":(v=a==null?void 0:a.card)!=null?v:"solid",iconSize:(a==null?void 0:a.iconSize)||"large"})}),o&&(0,De.jsx)("div",{className:"mb-6",children:(0,De.jsx)("div",{className:c("text-4xl text-wrap font-bold leading-none overflow-hidden",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"text-brand-green":"text-white"),children:o})}),l&&typeof l=="object"&&(0,De.jsx)(F,{enableGutter:!1,content:l,enableProse:!1,className:c("space-y-6",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose prose-headings:text-foreground prose-De:text-foreground":"prose prose-headings:text-white prose-De:text-gray-100",e&&"prose prose-headings:text-background prose-De:text-background")}),l&&typeof l=="string"&&(0,De.jsx)("div",{className:c("space-y-6",(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:l}),s&&s.url&&(0,De.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,De.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:s.url||"#",children:(s==null?void 0:s.label)||"Find out more"})}),(a==null?void 0:a.card)==="radial"&&(0,De.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var Jr=({icon:e,heading:r,variant:t,iconSize:n,subtitle:l})=>e&&n==="small"&&e.iconName!="no-icon-error"?(0,De.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,De.jsx)("div",{className:c("font-semibold",t==="outline"||t==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:r}),rr(e)&&(0,De.jsx)("div",{className:c("rounded-full De-0 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-primary":"text-white",n==="small"?"-mr-2 ml-1 mt-1":""),children:(0,De.jsx)(ge,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,De.jsxs)("div",{className:"flex flex-col gap-4",children:[rr(e)&&(0,De.jsx)("div",{className:c("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-accent":""),children:(0,De.jsx)(ge,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,De.jsx)("h3",{className:c("font-normal",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:r})]}):(0,De.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,De.jsx)("div",{className:c("font-regular",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:r})});var or=({title:e,description:r,features:t,id:n,nested:l=!1})=>(0,De.jsxs)("section",{className:c(!l&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,De.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:n||"",children:e}),r&&typeof r=="string"&&(0,De.jsx)("De",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:r}),r&&typeof r=="object"&&(0,De.jsx)("De",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,De.jsx)(F,{content:r,enableGutter:!1})}),(0,De.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length>2?2:t.length:1} lg:grid-cols-${t?t.length>3?3:t.length:1}`,children:t&&t.map((o,a)=>{var d;let s=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,De.jsx)(be,{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:(d=s())!=null?d:{type:"none",icon:null}},a)})})]});var ee=U(require("react"));function J({nodes:e}){return(0,De.jsx)(ee.Fragment,{children:e==null?void 0:e.map((r,t)=>{if(r==null)return null;if(r.type==="text"&&r.text){let o=(0,De.jsx)(ee.default.Fragment,{children:r.text},t);return r.format&1&&(o=(0,De.jsx)("strong",{children:o},t)),r.format&2&&(o=(0,De.jsx)("em",{children:o},t)),r.format&4&&(o=(0,De.jsx)("span",{style:{textDecoration:"line-through"},children:o},t)),r.format&8&&(o=(0,De.jsx)("span",{style:{textDecoration:"underline"},children:o},t)),r.format&16&&(o=(0,De.jsx)("code",{children:r.text},t)),r.format&32&&(o=(0,De.jsx)("sub",{children:o},t)),r.format&64&&(o=(0,De.jsx)("sup",{children:o},t)),o}if(r.type==="table")return(0,De.jsx)("table",{children:(0,De.jsx)("tbody",{children:r.children.map((o,a)=>(0,De.jsx)("tr",{children:o.children.map((s,d)=>(0,De.jsx)("td",{children:J({nodes:s.children})},d))},a))})},t);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 J({nodes:o.children})},l="children"in r?n(r):"";if(r.type==="block"){let o=r.fields,a=o==null?void 0:o.blockType;if(!o||!a)return null;switch(a){case"cta":return(0,De.jsx)(Ue,{...o},t);case"mediaBlock":return(0,De.jsx)(Ze,{className:"col-start-1 col-span-3",imgClassName:"De-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"imageBlock":return(0,De.jsx)($e,{className:"col-start-1 col-span-3",imgClassName:"De-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return(0,De.jsx)(ye,{className:"col-start-2 mb-4",...o},t);case"code":return(0,De.jsx)(Oe,{className:"col-start-2",...o},t);case"features":return(0,De.jsx)(or,{...o,nested:!0},t);case"reusableContentBlock":J({nodes:o.reusableContent.layout});default:return null}}else switch(r.type){case"linebreak":return(0,De.jsx)("br",{className:"col-start-2"},t);case"paragraph":return(0,De.jsx)("De",{className:"col-start-2",children:l},t);case"heading":{let o=r==null?void 0:r.tag;return(0,De.jsx)(o,{className:"col-start-2",id:(r==null?void 0:r.id)||"",children:l},t)}case"list":{let o=r==null?void 0:r.tag;return(0,De.jsx)(o,{className:"list col-start-2",children:l},t)}case"listitem":return(r==null?void 0:r.checked)!=null?(0,De.jsx)("li",{"aria-checked":r.checked?"true":"false",className:` ${r.checked,""}`,role:"checkbox",tabIndex:-1,value:r==null?void 0:r.value,children:l},t):(0,De.jsx)("li",{value:r==null?void 0:r.value,children:l},t);case"quote":return(0,De.jsx)("blockquote",{className:"col-start-2",children:l},t);case"link":{let o=r.fields;return(0,De.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:l},t)}case"autolink":{let o=r.fields;return(0,De.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:l},t)}default:return null}})})}var F=({className:e,content:r,enableGutter:t=!0,enableProse:n=!0})=>{var l;return r?(0,De.jsx)("div",{className:c({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":n},e),children:r&&!Array.isArray(r)&&typeof r=="object"&&"root"in r&&J({nodes:(l=r==null?void 0:r.root)==null?void 0:l.children})}):null};var ye=({className:e,content:r,style:t})=>(0,De.jsx)("div",{className:c("mx-auto my-8 w-full",e),children:(0,De.jsx)("div",{className:c("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:(0,De.jsx)(F,{content:r,enableGutter:!1,enableProse:!1})})});0&&(module.exports={BannerBlock});
|
|
5
|
+
"use strict";var Ct=Object.create;var ee=Object.defineProperty;var kt=Object.getOwnPropertyDescriptor;var Nt=Object.getOwnPropertyNames;var At=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Bt=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},Le=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Nt(t))!Pt.call(e,s)&&s!==r&&ee(e,s,{get:()=>t[s],enumerable:!(n=kt(t,s))||n.enumerable});return e};var j=(e,t,r)=>(r=e!=null?Ct(At(e)):{},Le(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),Tt=e=>Le(ee({},"__esModule",{value:!0}),e);var fr={};Bt(fr,{BannerBlock:()=>Te});module.exports=Tt(fr);var _e=require("clsx");var he="-",It=e=>{let t=Rt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{let l=a.split(he);return l[0]===""&&l.length!==1&&l.shift(),De(l,t)||St(a)},getConflictingClassGroupIds:(a,l)=>{let d=r[a]||[];return l&&n[a]?[...d,...n[a]]:d}}},De=(e,t)=>{var a;if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?De(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(he);return(a=t.validators.find(({validator:l})=>l(o)))==null?void 0:a.classGroupId},Ge=/^\[(.+)\]$/,St=e=>{if(Ge.test(e)){let t=Ge.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Rt=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ft(Object.entries(e.classGroups),r).forEach(([o,a])=>{ye(a,n,o,t)}),n},ye=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:Ue(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(Mt(s)){ye(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,a])=>{ye(a,Ue(t,o),r,n)})})},Ue=(e,t)=>{let r=e;return t.split(he).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Mt=e=>e.isThemeGetter,Ft=(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,l])=>[t+a,l])):o);return[r,s]}):e,zt=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)}}},je="!",Et=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,a=l=>{let d=[],m=0,g=0,k;for(let x=0;x<l.length;x++){let v=l[x];if(m===0){if(v===s&&(n||l.slice(x,x+o)===t)){d.push(l.slice(g,x)),g=x+o;continue}if(v==="/"){k=x;continue}}v==="["?m++:v==="]"&&m--}let w=d.length===0?l:l.substring(g),A=w.startsWith(je),P=A?w.substring(1):w,h=k&&k>g?k-g:void 0;return{modifiers:d,hasImportantModifier:A,baseClassName:P,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:a}):a},Lt=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},Gt=e=>({cache:zt(e.cacheSize),parseClassName:Et(e),...It(e)}),Ut=/\s+/,Dt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],a=e.trim().split(Ut),l="";for(let d=a.length-1;d>=0;d-=1){let m=a[d],{modifiers:g,hasImportantModifier:k,baseClassName:w,maybePostfixModifierPosition:A}=r(m),P=!!A,h=n(P?w.substring(0,A):w);if(!h){if(!P){l=m+(l.length>0?" "+l:l);continue}if(h=n(w),!h){l=m+(l.length>0?" "+l:l);continue}P=!1}let x=Lt(g).join(":"),v=k?x+je:x,N=v+h;if(o.includes(N))continue;o.push(N);let F=s(h,P);for(let T=0;T<F.length;++T){let W=F[T];o.push(v+W)}l=m+(l.length>0?" "+l:l)}return l};function jt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=He(t))&&(n&&(n+=" "),n+=r);return n}var He=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=He(e[n]))&&(r&&(r+=" "),r+=t);return r};function Ht(e,...t){let r,n,s,o=a;function a(d){let m=t.reduce((g,k)=>k(g),e());return r=Gt(m),n=r.cache.get,s=r.cache.set,o=l,l(d)}function l(d){let m=n(d);if(m)return m;let g=Dt(d,r);return s(d,g),g}return function(){return o(jt.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Oe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ot=/^\d+\/\d+$/,Vt=new Set(["px","full","screen"]),Yt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_t=/\d+(%|px|r?em|[sdl]?v([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$/,Qt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>H(e)||Vt.has(e)||Ot.test(e),z=e=>O(e,"length",rr),H=e=>!!e&&!Number.isNaN(Number(e)),be=e=>O(e,"number",H),Q=e=>!!e&&Number.isInteger(Number(e)),Kt=e=>e.endsWith("%")&&H(e.slice(0,-1)),c=e=>Oe.test(e),E=e=>Yt.test(e),Xt=new Set(["length","size","percentage"]),Wt=e=>O(e,Xt,Ve),$t=e=>O(e,"position",Ve),Zt=new Set(["image","url"]),er=e=>O(e,Zt,ar),tr=e=>O(e,"",or),q=()=>!0,O=(e,t,r)=>{let n=Oe.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},rr=e=>_t.test(e)&&!Qt.test(e),Ve=()=>!1,or=e=>qt.test(e),ar=e=>Jt.test(e);var nr=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),n=b("brightness"),s=b("borderColor"),o=b("borderRadius"),a=b("borderSpacing"),l=b("borderWidth"),d=b("contrast"),m=b("grayscale"),g=b("hueRotate"),k=b("invert"),w=b("gap"),A=b("gradientColorStops"),P=b("gradientColorStopPositions"),h=b("inset"),x=b("margin"),v=b("opacity"),N=b("padding"),F=b("saturate"),T=b("scale"),W=b("sepia"),Ie=b("skew"),Se=b("space"),Re=b("translate"),me=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],fe=()=>["auto",c,t],y=()=>[c,t],Me=()=>["",R,z],$=()=>["auto",H,c],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",c],Ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>[H,c];return{cacheSize:500,separator:":",theme:{colors:[q],spacing:[R,z],blur:["none","",E,c],brightness:S(),borderColor:[e],borderRadius:["none","","full",E,c],borderSpacing:y(),borderWidth:Me(),contrast:S(),grayscale:_(),hueRotate:S(),invert:_(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[Kt,z],inset:fe(),margin:fe(),opacity:S(),padding:y(),saturate:S(),scale:S(),sepia:_(),skew:S(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Ee()}],"break-before":[{"break-before":Ee()}],"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:[...Fe(),c]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Q,c]}],basis:[{basis:fe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Q,c]}],"grid-cols":[{"grid-cols":[q]}],"col-start-end":[{col:["auto",{span:["full",Q,c]},c]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[q]}],"row-start-end":[{row:["auto",{span:[Q,c]},c]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ke:[{Ke:[N]}],px:[{px:[N]}],py:[{py:[N]}],ps:[{ps:[N]}],Ke:[{Ke:[N]}],pt:[{pt:[N]}],pr:[{pr:[N]}],pb:[{pb:[N]}],pl:[{pl:[N]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Se]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Se]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,t]}],"min-w":[{"min-w":[c,t,"min","max","fit"]}],"max-w":[{"max-w":[c,t,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[c,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,t,"auto","min","max","fit"]}],"font-size":[{text:["base",E,z]}],"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:[q]}],"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",c]}],"line-clamp":[{"line-clamp":["none",H,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,z]}],"underline-offset":[{"underline-offset":["auto",R,c]}],"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:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),$t]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},er]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],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:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Z()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[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:["",...Z()]}],"outline-offset":[{"outline-offset":[R,c]}],"outline-w":[{outline:[R,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[R,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,tr]}],"shadow-color":[{shadow:[q]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...ze(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ze()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",E,c]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[k]}],saturate:[{saturate:[F]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[k]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:S()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:S()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Q,c]}],"translate-x":[{"translate-x":[Re]}],"translate-y":[{"translate-y":[Re]}],"skew-x":[{"skew-x":[Ie]}],"skew-y":[{"skew-y":[Ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-Ke":[{"scroll-Ke":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-Ke":[{"scroll-Ke":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,z,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Ke:["px","py","ps","Ke","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ke":["scroll-px","scroll-py","scroll-ps","scroll-Ke","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ye=Ht(nr);function i(...e){return Ye((0,_e.clsx)(e))}var tt=require("react");var Qe=require("@radix-ui/react-slot"),qe=require("class-variance-authority"),Je=j(require("react")),Ke=require("react/jsx-runtime"),sr=(0,qe.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"}}}),G=Je.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},o)=>(0,Ke.jsx)(e?Qe.Slot:"button",{className:i(sr({className:t,size:r,variant:n})),ref:o,...s}));G.displayName="Button";var xe=j(require("next/link")),K=e=>{let{type:t,appearance:r="inline",children:n,className:s,label:o,newTab:a,reference:l,size:d,url:m}=e,g=t==="reference"&&typeof(l==null?void 0:l.value)=="object"&&l.value.slug?`${(l==null?void 0:l.relationTo)!=="pages"?`/${l==null?void 0:l.relationTo}`:""}/${l.value.slug}`:m;if(!g)return null;let k=r==="link"?"clear":d,w=a?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Ke.jsxs)(xe.default,{className:i(s),href:g||m||"",...w,children:[o&&o,n&&n]}):(0,Ke.jsx)(G,{asChild:!0,className:s,size:k,variant:r,children:(0,Ke.jsxs)(xe.default,{className:i(s),href:g||m||"",...w,children:[o&&o,n&&n]})})};function te({className:e}){return i("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 lr({className:e,...t}){return(0,Ke.jsx)("input",{...t,className:te({className:e})})}function re({icon:e,...t}){return(0,Ke.jsxs)("div",{className:"relative w-full",children:[(0,Ke.jsx)(lr,{...t}),e&&(0,Ke.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function ir({className:e,...t}){return(0,Ke.jsx)("textarea",{...t,className:i(te({}),"resize-none md:min-h-[130px]",e)})}function Xe({icon:e,...t}){return(0,Ke.jsxs)("div",{className:"relative w-full",children:[(0,Ke.jsx)(ir,{...t}),e&&(0,Ke.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var $e=require("formik"),Ze=require("react-icons/fa6"),U=j(require("yup"));async function We(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 l=await fetch(o,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var ve=require("sonner"),B={tooShort:"Must be tt least ${min} characters",tooLong:"Must be tt most ${max} characters",required:"This field is required",email:"Invalid email format"},cr=U.object().shape({name:U.string().min(2,B.tooShort).max(50,B.tooLong).required(B.required),email:U.string().email(B.email).required(B.required),subject:U.string().min(2,B.tooShort).max(50,B.tooLong).required(B.required),message:U.string().min(2,B.tooShort).max(300,B.tooLong).required(B.required)}),oe=i("!pr-[44px] text-foreground"),ae=i("!border-red-600 border"),ne=i("sr-only");function et(){return(0,Ke.jsx)($e.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:cr,onSubmit:async(e,{resetForm:t})=>{let r=await We(e);r.data===null?ve.toast.error(r.message):(ve.toast.success(r.message),t())},children:({errors:e,touched:t,values:r,handleChange:n,handleBlur:s,isSubmitting:o,handleSubmit:a})=>(0,Ke.jsxs)("form",{onSubmit:a,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)(re,{placeholder:"Your Name",type:"text",name:"name",value:r.name,onChange:n,onBlur:s,disabled:o,icon:(0,Ke.jsx)(Ze.FaUser,{className:"text-primary"}),className:i(oe,e.name&&t.name&&ae)}),e.name&&t.name&&(0,Ke.jsx)("Ke",{title:e.name,"aria-live":"polite",role:"error message",className:ne,children:e.name})]}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)(re,{placeholder:"Your Email",type:"email",name:"email",value:r.email,onChange:n,onBlur:s,disabled:o,icon:(0,Ke.jsx)(dr,{}),className:i(oe,e.email&&t.email&&ae)}),e.email&&t.email&&(0,Ke.jsx)("Ke",{title:e.email,"aria-live":"polite",role:"error message",className:ne,children:e.email})]}),(0,Ke.jsxs)("div",{className:"lg:col-span-2",children:[(0,Ke.jsx)(re,{placeholder:"Subject",type:"text",name:"subject",value:r.subject,onChange:n,onBlur:s,disabled:o,className:i(oe,e.subject&&t.subject&&ae)}),e.subject&&t.subject&&(0,Ke.jsx)("Ke",{title:e.subject,"aria-live":"polite",role:"error message",className:ne,children:e.subject})]}),(0,Ke.jsxs)("div",{className:"lg:col-span-2",children:[(0,Ke.jsx)(Xe,{placeholder:"Write Message...",name:"message",value:r.message,onChange:n,onBlur:s,disabled:o,icon:(0,Ke.jsx)(pr,{}),className:i(oe,e.message&&t.message&&ae)}),e.message&&t.message&&(0,Ke.jsx)("Ke",{title:e.message,"aria-live":"polite",role:"error message",className:ne,children:e.message})]}),(0,Ke.jsx)("div",{className:"lg:col-span-2 light",children:(0,Ke.jsx)(G,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:o,children:(0,Ke.jsx)("span",{children:"Send"})})})]})})}function dr(){return(0,Ke.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,Ke.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 pr(){return(0,Ke.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,Ke.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 rt=({links:e,richText:t})=>{let[r,n]=(0,tt.useState)(!1),s=()=>n(!0),o=()=>n(!1),a=l=>{l.target===l.currentTarget&&o()};return(0,Ke.jsxs)("div",{className:"relative isolate overflow-hidden bg-black",children:[(0,Ke.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,Ke.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Ke.jsx)(L,{className:"mb-0 prose-Ke:text-white text-white",content:t,enableGutter:!1}),(0,Ke.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,Ke.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:l},d)=>(l==null?void 0:l.url)==="/contact"?(0,Ke.jsx)("div",{onClick:s,className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline cursor-pointer",children:l.label},d):(0,Ke.jsx)(K,{size:"lg",className:"rounded-full px-3.5 py-2.5 border border-accent text-white no-underline",...l},d))})})]})}),r&&(0,Ke.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:a,children:(0,Ke.jsxs)("div",{className:"bg-white Ke-6 pt-10 rounded-lg shadow-lg w-full max-w-lg relative",children:[(0,Ke.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:o,children:"\u2715"}),(0,Ke.jsx)(et,{})," "]})}),(0,Ke.jsxs)("svg",{viewBox:"0 0 1024 1024","aria-hidden":"true",className:"absolute left-1/2 top-1/2 -z-10 size-[64rem] -translate-x-1/2 [mask-image:radial-gradient(closest-side,white,transparent)]",children:[(0,Ke.jsx)("circle",{r:512,cx:512,cy:512,fill:"url(#8d958450-c69f-4251-94bc-4e091a323369)",fillOpacity:"0.7"}),(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("radialGradient",{id:"8d958450-c69f-4251-94bc-4e091a323369",children:[(0,Ke.jsx)("stop",{stopColor:"#22B2AA"}),(0,Ke.jsx)("stop",{offset:1,stopColor:"#22B2AA"})]})})]})]})};var se=require("prism-react-renderer");var ot=require("lucide-react");function nt({code:e}){let[t,r]=(0,tt.useState)("Copy");function n(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Ke.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ke.jsxs)(G,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,Ke.jsx)("Ke",{children:t}),(0,Ke.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ke.jsx)(ot.ClipboardCopy,{})})]})})}var st=({code:e,language:t=""})=>e?(0,Ke.jsx)(se.Highlight,{code:e,language:t,theme:se.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,Ke.jsxs)("pre",{className:"bg-black Ke-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,a)=>(0,Ke.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Ke.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:a+1}),(0,Ke.jsx)("span",{className:"table-cell pl-4",children:o.map((l,d)=>(0,Ke.jsx)("span",{...n({token:l})},d))})]},a)),(0,Ke.jsx)(nt,{code:e})]})}):null;var lt=({className:e,code:t,language:r})=>(0,Ke.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ke.jsx)(st,{code:t,language:r})});var ct=j(require("next/image")),mr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},it="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=",dt=e=>{let{alt:t,fill:r,imgClassName:n,priority:s,resource:o,size:a,src:l,loading:d}=e,m,g,k=t,w=l||"";if(!w&&o&&typeof o=="object"){let{alt:h,filename:x,height:v,url:N,width:F}=o;if(v&&v>500){let T=500/v;m=F*T,g=v*T}else m=F,g=v;k=h||"",w=N||it}let A=d||"lazy",P=a||Object.entries(mr).map(([,h])=>`(max-width: ${h}px) ${h*2}w`).join(", ");return(0,Ke.jsx)("picture",{children:(0,Ke.jsx)(ct.default,{alt:k||"",className:i(n),fill:r,height:r?void 0:g,placeholder:"blur",blurDataURL:it,priority:A!=="lazy"&&s,quality:100,loading:A,sizes:P,src:w,width:r?void 0:m})})};var pt=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var mt=()=>{if(pt){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 ut=e=>{let{onClick:t,resource:r,videoClassName:n}=e,s=(0,tt.useRef)(null);if((0,tt.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Ke.jsx)("video",{autoPlay:!0,className:i(n),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,Ke.jsx)("source",{src:`${mt()}/media/${o}`})})}return null};var ce=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,Ke.jsx)(r||tt.Fragment,{...r!==null?{className:t}:{},children:s?(0,Ke.jsx)(ut,{...e}):(0,Ke.jsx)(dt,{...e})})};var gt=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Ke.jsx)("div",{className:i("h-full ",{container:r},t),children:(0,Ke.jsx)(ce,{imgClassName:i("rounded-[0.8rem]",n),className:"flex justify-center",resource:s,src:o})})};var bt=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Ke.jsx)("div",{className:i("",{container:r},t),children:(0,Ke.jsx)(ce,{imgClassName:i("rounded-[0.8rem]",n),resource:s,src:o})})};var Pe=({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:"",l=s+o+" fa-"+r+" "+a;return(0,Ke.jsx)("i",{className:l})};var xt=j(require("next/image"));function ht(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Be({image:e,icon:t,title:r,subtitle:n,content:s,statistic:o,settings:a,link:l,className:d}){var k,w;let m={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,Ke.jsxs)("div",{className:i("min-w-56 max-w-xl h-full flex flex-col group",e?"Ke-0 md:Ke-0":"Ke-8 md:Ke-8",a&&!e&&m[(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[(k=a==null?void 0:a.width)!=null?k:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",a&&`intersect:animate-delay-${a.order||1}00`,d),children:[e&&(0,Ke.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,Ke.jsx)(xt.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Ke.jsxs)("div",{className:i(e?"Ke-4 md:Ke-1 md:px-8":"Ke-0 md:Ke-0","flex h-2/5 md:max-h-1/2 flex-col flex-grow"),children:[n&&(0,Ke.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:n}),(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2 md:mb-0",children:(0,Ke.jsx)(ur,{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":(w=a==null?void 0:a.card)!=null?w:"solid",iconSize:(a==null?void 0:a.iconSize)||"large"})}),o&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:i("text-4xl text-wrap font-bold leading-none overflow-hidden",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"text-brand-green":"text-white"),children:o})}),s&&typeof s=="object"&&(0,Ke.jsx)(L,{enableGutter:!1,content:s,enableProse:!1,className:i("space-y-6",(a==null?void 0:a.card)==="outline"||(a==null?void 0:a.card)==="light"?"prose prose-headings:text-foreground prose-Ke:text-foreground":"prose prose-headings:text-white prose-Ke:text-gray-100",e&&"prose prose-headings:text-background prose-Ke:text-background")}),s&&typeof s=="string"&&(0,Ke.jsx)("div",{className:i("space-y-6",(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}),l&&l.url&&(0,Ke.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,Ke.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:l.url||"#",children:(l==null?void 0:l.label)||"Find out more"})}),(a==null?void 0:a.card)==="radial"&&(0,Ke.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var ur=({icon:e,heading:t,variant:r,iconSize:n,subtitle:s})=>e&&n==="small"&&e.iconName!="no-icon-error"?(0,Ke.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Ke.jsx)("div",{className:i("font-semibold",r==="outline"||r==="light"?"text-primary":"text-white",n==="small"?"text-2xl":"text-3xl"),children:t}),ht(e)&&(0,Ke.jsx)("div",{className:i("rounded-full Ke-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,Ke.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,Ke.jsxs)("div",{className:"flex flex-col gap-4",children:[ht(e)&&(0,Ke.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",r==="outline"||r==="light"?"text-accent":""),children:(0,Ke.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:i("font-normal",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:i("font-regular",r==="outline"||r==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var vt=({title:e,description:t,features:r,id:n,nested:s=!1})=>(0,Ke.jsxs)("section",{className:i(s?"w-full":"container",""),children:[(0,Ke.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Ke.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:n||"",children:e}),t&&typeof t=="string"&&(0,Ke.jsx)("Ke",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Ke.jsx)("Ke",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,Ke.jsx)(L,{content:t,enableGutter:!1})})]}),(0,Ke.jsx)("div",{className:`grid gap-8 mt-10 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 d;let l=()=>{if(o.icon&&"type"in o.icon&&o.icon.type!=="none")return{type:o.icon.type,icon:o.icon.icon}};return(0,Ke.jsx)(Be,{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:(d=l())!=null?d:{type:"none",icon:null}},a)})})]});var de=j(require("react"));function X({nodes:e}){return(0,Ke.jsx)(de.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,Ke.jsx)(de.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Ke.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Ke.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Ke.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Ke.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Ke.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Ke.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Ke.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Ke.jsx)("table",{children:(0,Ke.jsx)("tbody",{children:t.children.map((o,a)=>(0,Ke.jsx)("tr",{children:o.children.map((l,d)=>(0,Ke.jsx)("td",{children:X({nodes:l.children})},d))},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 X({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,Ke.jsx)(rt,{...o},r);case"mediaBlock":return(0,Ke.jsx)(gt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,Ke.jsx)(bt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,Ke.jsx)(Te,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Ke.jsx)(lt,{className:"col-start-2",...o},r);case"features":return(0,Ke.jsx)(vt,{...o,nested:!0},r);case"reusableContentBlock":X({nodes:o.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ke.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Ke.jsx)("Ke",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Ke.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,Ke.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ke.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,Ke.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,Ke.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,Ke.jsx)(K,{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,Ke.jsx)(K,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var L=({className:e,content:t,enableGutter:r=!0,enableProse:n=!0})=>{var s;return t?(0,Ke.jsx)("div",{className:i({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":n},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&X({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};var Te=({className:e,content:t,style:r})=>(0,Ke.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,Ke.jsx)("div",{className:i("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,Ke.jsx)(L,{content:t,enableGutter:!1,enableProse:!1})})});0&&(module.exports={BannerBlock});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-PDUZAE2B.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-GHWZZAOE.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-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.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-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
|