cortex-react-components 1.53.8 → 1.53.10
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-XAN2JADY.mjs → chunk-3WIP6KGJ.mjs} +1 -1
- package/dist/chunk-3X7MZJKC.mjs +1 -0
- package/dist/{chunk-EE3OE4KE.mjs → chunk-67BUBESC.mjs} +1 -1
- package/dist/{chunk-OGKJF5LR.mjs → chunk-7XB4Y3U2.mjs} +1 -1
- package/dist/{chunk-FBX62APP.mjs → chunk-A4FSBW4J.mjs} +1 -1
- package/dist/{chunk-CZHOJQXZ.mjs → chunk-ADAH23WU.mjs} +1 -1
- package/dist/{chunk-RE4QWZ2N.mjs → chunk-AHJ5FNJ2.mjs} +1 -1
- package/dist/chunk-CQOXWC6U.mjs +4 -0
- package/dist/{chunk-3H4I4BWV.mjs → chunk-D7A7EUEW.mjs} +1 -1
- package/dist/chunk-DHEI2PBB.mjs +4 -0
- package/dist/chunk-E6MYDQ3V.mjs +1 -0
- package/dist/{chunk-4MQV5KBS.mjs → chunk-EOJQ2KKP.mjs} +1 -1
- package/dist/{chunk-PLR4ZK4A.mjs → chunk-FKCT5IT7.mjs} +1 -1
- package/dist/{chunk-ZJRG7RA3.mjs → chunk-FRFZ7LVW.mjs} +1 -1
- package/dist/{chunk-GOQI5TPU.mjs → chunk-GBXO3SAQ.mjs} +1 -1
- package/dist/{chunk-U7FOLOH2.mjs → chunk-GGZBTSJX.mjs} +1 -1
- package/dist/{chunk-VSNDROOR.mjs → chunk-GSKQEJUW.mjs} +1 -1
- package/dist/{chunk-LWVLORSN.mjs → chunk-JF54R3EA.mjs} +1 -1
- package/dist/chunk-KDC7QCYU.mjs +4 -0
- package/dist/{chunk-UNB5JW5S.mjs → chunk-LHXPQC5D.mjs} +1 -1
- package/dist/chunk-LNJINQMW.mjs +1 -0
- package/dist/{chunk-KBVA4E4V.mjs → chunk-LREG7GGX.mjs} +1 -1
- package/dist/{chunk-ZZLWY7HX.mjs → chunk-LTCE726Z.mjs} +1 -1
- package/dist/{chunk-ORUW7NID.mjs → chunk-NCDGCFUX.mjs} +1 -1
- package/dist/chunk-NJC7ZQ2T.mjs +1 -0
- package/dist/{chunk-NVRKB4LW.mjs → chunk-PLAYORPG.mjs} +1 -1
- package/dist/{chunk-IBKC2QY6.mjs → chunk-PUTLV4MC.mjs} +1 -1
- package/dist/chunk-RQ23CZK5.mjs +1 -0
- package/dist/{chunk-YQFOV2N3.mjs → chunk-SELG6WQB.mjs} +1 -1
- package/dist/{chunk-QHKI3GAG.mjs → chunk-TNCMFPCJ.mjs} +1 -1
- package/dist/{chunk-BK3D55T5.mjs → chunk-TZE7RZAV.mjs} +1 -1
- package/dist/chunk-VQJUNVRU.mjs +1 -0
- package/dist/{chunk-V56EA7R6.mjs → chunk-WUHIBYYW.mjs} +1 -1
- package/dist/{chunk-M4IBPAQ4.mjs → chunk-XBDQDQ2Y.mjs} +1 -1
- package/dist/{chunk-OAO4Z5WE.mjs → chunk-XYLYPBZO.mjs} +1 -1
- package/dist/{chunk-REIGTQCW.mjs → chunk-YYTC3N7R.mjs} +1 -1
- package/dist/chunk-ZRELTOLU.mjs +4 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.js +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.js +93 -93
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/BrandLogo.d.ts +3 -2
- package/dist/components/HeaderFooter/BrandLogo.js +1 -1
- package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.js +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.js +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.d.ts +2 -1
- package/dist/components/HeaderFooter/Header.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.js +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.js +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.js +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.d.ts +3 -2
- package/dist/components/Heros/SectionHero/index.js +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +2 -2
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +3 -3
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +3 -3
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +11 -11
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.js +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.js +94 -94
- 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 +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +93 -93
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +4 -4
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +4 -4
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +4 -4
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/payload-types.d.ts +109 -3
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- 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.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.js +2 -2
- 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.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +2 -2
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6BMA4EN7.mjs +0 -1
- package/dist/chunk-EDNVTO7V.mjs +0 -1
- package/dist/chunk-HSFVPF3U.mjs +0 -1
- package/dist/chunk-JOD2CIH5.mjs +0 -1
- package/dist/chunk-M2DQADOK.mjs +0 -1
- package/dist/chunk-Q2H33MTB.mjs +0 -4
- package/dist/chunk-TAFEJ7HF.mjs +0 -4
- package/dist/chunk-WKD2UQGO.mjs +0 -4
- package/dist/chunk-Y57CQYEG.mjs +0 -1
- package/dist/chunk-ZVMBJZVM.mjs +0 -4
package/dist/components/index.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
|
-
"use strict";var $d=Object.create;var $o=Object.defineProperty;var Vd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,jd=Object.prototype.hasOwnProperty;var Xd=(e,t)=>{for(var a in t)$o(e,a,{get:t[a],enumerable:!0})},Wi=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wd(t))!jd.call(e,r)&&r!==a&&$o(e,r,{get:()=>t[r],enumerable:!(o=Vd(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?$d(Ud(e)):{},Wi(t||!e||!e.__esModule?$o(a,"default",{value:e,enumerable:!0}):a,e)),Yd=e=>Wi($o({},"__esModule",{value:!0}),e);var Zm={};Xd(Zm,{Alert:()=>$s,AlertDescription:()=>Ws,AlertTitle:()=>Vs,ApproveLeave:()=>Mi,Avatar:()=>At,AvatarFallback:()=>Bt,AvatarImage:()=>Lt,Badge:()=>tt,BannerBlock:()=>Ys,BrandLogo:()=>ua,Breadcrumb:()=>Wr,BreadcrumbEllipsis:()=>Kr,BreadcrumbItem:()=>jr,BreadcrumbLink:()=>Xr,BreadcrumbList:()=>Ur,BreadcrumbPage:()=>Yr,BreadcrumbSeparator:()=>qr,Breadcrumbs:()=>Ni,Button:()=>T,CMSLink:()=>ht,CRMKanbanBoard:()=>Qm,Calendar:()=>Ro,CalendarView:()=>Ei,CallToActionBlock:()=>Ra,Card:()=>Mo,Categories:()=>Am,Checkbox:()=>ut,CodeBlock:()=>Qs,Collapsible:()=>kt,CollapsibleContent:()=>Yt,CollapsibleTrigger:()=>Xt,CollectionArchive:()=>bm,Command:()=>nr,CommandDialog:()=>Wn,CommandEmpty:()=>zs,CommandGroup:()=>Fs,CommandInput:()=>Es,CommandItem:()=>Gs,CommandList:()=>Hs,CommandSeparator:()=>Os,CommandShortcut:()=>_s,Container:()=>Bo,ContentBlock:()=>Do,ContentCard:()=>ri,CopyButton:()=>Ks,CustomLink:()=>Ue,CustomerCard:()=>hl,DealCard:()=>zi,DealDetails:()=>Hi,Dialog:()=>et,DialogClose:()=>sr,DialogContent:()=>We,DialogDescription:()=>Bs,DialogFooter:()=>Ls,DialogHeader:()=>mt,DialogOverlay:()=>ir,DialogPortal:()=>As,DialogTitle:()=>pt,DialogTrigger:()=>rr,DropdownMenu:()=>tn,DropdownMenuCheckboxItem:()=>ts,DropdownMenuContent:()=>Zr,DropdownMenuGroup:()=>on,DropdownMenuItem:()=>es,DropdownMenuLabel:()=>os,DropdownMenuPortal:()=>rn,DropdownMenuRadioGroup:()=>nn,DropdownMenuRadioItem:()=>as,DropdownMenuSeparator:()=>rs,DropdownMenuShortcut:()=>ss,DropdownMenuSub:()=>sn,DropdownMenuSubContent:()=>Qr,DropdownMenuSubTrigger:()=>Jr,DropdownMenuTrigger:()=>an,DynamicIcon:()=>Ce,EventCard:()=>xl,FeatureCard:()=>bl,FeatureGrid:()=>Dl,FeaturesBlock:()=>ka,Filter:()=>Lm,FlowPrintable:()=>Ql,Footer:()=>jm,Header:()=>Xm,HeaderDesktop:()=>Pi,HeaderMobile:()=>Si,HeadingImage:()=>pm,Hero:()=>tm,HighImpactHero:()=>yi,HolidayGrid:()=>Bi,HolidayTracker:()=>Km,HoverCard:()=>On,HoverCardContent:()=>Is,HoverCardTrigger:()=>Gn,Image:()=>Rl,ImageBlock:()=>oi,InfoTile:()=>rm,Input:()=>He,Insight:()=>om,KanbanColumn:()=>Gi,Label:()=>ee,Logo:()=>ym,LowImpactHero:()=>xi,MOTD:()=>im,Mask:()=>Em,Media:()=>Ht,MediaBlock:()=>zt,MediumImpactHero:()=>hi,NewCustomerForm:()=>Fi,NewDealForm:()=>Oi,NewsGrid:()=>Kl,OrgChart:()=>dm,PagePrintable:()=>Zl,PageRange:()=>xm,PageShape:()=>Eo,Pagination:()=>Im,PayloadPagination:()=>wm,Popover:()=>wo,PopoverAnchor:()=>Bn,PopoverContent:()=>ja,PopoverTrigger:()=>No,PostHero:()=>zm,PricingCard:()=>em,Printable:()=>Pm,ProjectCard:()=>Pl,ProjectTeam:()=>Dm,ProposalSummary:()=>cm,RelatedContent:()=>Mm,RelatedPosts:()=>gm,RenderBlocks:()=>Ma,RenderHero:()=>Om,RequestLeave:()=>Li,ReusableContentBlock:()=>ii,RichText:()=>ae,ScrollArea:()=>aa,ScrollBar:()=>or,SectionHero:()=>wi,Select:()=>Ca,SelectContent:()=>ia,SelectGroup:()=>Vc,SelectItem:()=>na,SelectLabel:()=>Kn,SelectScrollDownButton:()=>Xs,SelectScrollUpButton:()=>js,SelectSeparator:()=>Jn,SelectTrigger:()=>sa,SelectValue:()=>Pa,Separator:()=>no,ServiceCard:()=>Zc,Sheet:()=>Wo,SheetClose:()=>gn,SheetContent:()=>co,SheetDescription:()=>ms,SheetFooter:()=>ds,SheetHeader:()=>ls,SheetOverlay:()=>Uo,SheetPortal:()=>ns,SheetTitle:()=>cs,SheetTrigger:()=>fn,Sidebar:()=>ba,SidebarContent:()=>Kt,SidebarFooter:()=>va,SidebarGroup:()=>Je,SidebarGroupAction:()=>vs,SidebarGroupContent:()=>dt,SidebarGroupLabel:()=>Dt,SidebarHeader:()=>ya,SidebarInput:()=>ys,SidebarInset:()=>bs,SidebarLeft:()=>Rm,SidebarMenu:()=>ze,SidebarMenuAction:()=>uo,SidebarMenuBadge:()=>hs,SidebarMenuButton:()=>Qe,SidebarMenuItem:()=>Ne,SidebarMenuSkeleton:()=>xs,SidebarMenuSub:()=>Jt,SidebarMenuSubButton:()=>Zt,SidebarMenuSubItem:()=>Qt,SidebarProvider:()=>us,SidebarRail:()=>gs,SidebarRight:()=>Tm,SidebarSeparator:()=>po,SidebarTrigger:()=>fs,SimpleHeader:()=>_m,Skeleton:()=>se,SlideShow:()=>Xl,TextAndImages:()=>Jl,Textarea:()=>la,Theme:()=>Nr,ThemeProvider:()=>Bm,Toast:()=>bo,ToastAction:()=>Cs,ToastClose:()=>yo,ToastDescription:()=>ho,ToastProvider:()=>tr,ToastTitle:()=>vo,ToastViewport:()=>go,Toaster:()=>Tn,Toggle:()=>Rs,ToggleGroup:()=>Ss,ToggleGroupItem:()=>ks,Tooltip:()=>qo,TooltipContent:()=>mo,TooltipProvider:()=>Yo,TooltipTrigger:()=>Ko,VideoHeader:()=>Vm,WhyUs:()=>mm,badgeVariants:()=>Us,buttonVariants:()=>qt,toggleVariants:()=>xo,useIsMobile:()=>Xo,useSidebar:()=>Wa,useToast:()=>er});module.exports=Yd(Zm);var Ga=h(require("react")),Vo=require("@radix-ui/react-icons"),en=require("@radix-ui/react-slot");var Zi=require("clsx");var $r="-",qd=e=>{let t=Jd(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split($r);return n[0]===""&&n.length!==1&&n.shift(),Xi(n,t)||Kd(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},Xi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Xi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join($r);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},Ui=/^\[(.+)\]$/,Kd=e=>{if(Ui.test(e)){let t=Ui.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jd=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Zd(Object.entries(e.classGroups),a).forEach(([s,i])=>{_r(i,o,s,t)}),o},_r=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:ji(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Qd(r)){_r(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{_r(i,ji(t,s),a,o)})})},ji=(e,t)=>{let a=e;return t.split($r).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qd=e=>e.isThemeGetter,Zd=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[a,r]}):e,ec=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},Yi="!",tc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],p=0,d=0,m;for(let v=0;v<n.length;v++){let P=n[v];if(p===0){if(P===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(P==="/"){m=v;continue}}P==="["?p++:P==="]"&&p--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Yi),b=g?f.substring(1):f,u=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:i}):i},ac=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},oc=e=>({cache:ec(e.cacheSize),parseClassName:tc(e),...qd(e)}),rc=/\s+/,sc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(rc),n="";for(let c=i.length-1;c>=0;c-=1){let p=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(p),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){n=p+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=p+(n.length>0?" "+n:n);continue}b=!1}let v=ac(d).join(":"),P=m?v+Yi:v,G=P+u;if(s.includes(G))continue;s.push(G);let Q=r(u,b);for(let me=0;me<Q.length;++me){let Ee=Q[me];s.push(P+Ee)}n=p+(n.length>0?" "+n:n)}return n};function ic(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=qi(t))&&(o&&(o+=" "),o+=a);return o}var qi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=qi(e[o]))&&(a&&(a+=" "),a+=t);return a};function nc(e,...t){let a,o,r,s=i;function i(c){let p=t.reduce((d,m)=>m(d),e());return a=oc(p),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let p=o(c);if(p)return p;let d=sc(c,a);return r(c,d),d}return function(){return s(ic.apply(null,arguments))}}var Z=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ki=/^\[(?:([a-z-]+):)?(.+)\]$/i,lc=/^\d+\/\d+$/,dc=new Set(["px","full","screen"]),cc=/^(\d+(\.\d+)?)?(xs|sm|Ke|lg|xl)$/,mc=/\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$/,pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Fa(e)||dc.has(e)||lc.test(e),Ut=e=>Oa(e,"length",Nc),Fa=e=>!!e&&!Number.isNaN(Number(e)),Gr=e=>Oa(e,"number",Fa),so=e=>!!e&&Number.isInteger(Number(e)),gc=e=>e.endsWith("%")&&Fa(e.slice(0,-1)),M=e=>Ki.test(e),jt=e=>cc.test(e),bc=new Set(["length","size","percentage"]),yc=e=>Oa(e,bc,Ji),vc=e=>Oa(e,"position",Ji),hc=new Set(["image","url"]),xc=e=>Oa(e,hc,Pc),wc=e=>Oa(e,"",Cc),io=()=>!0,Oa=(e,t,a)=>{let o=Ki.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Nc=e=>mc.test(e)&&!pc.test(e),Ji=()=>!1,Cc=e=>uc.test(e),Pc=e=>fc.test(e);var Rc=()=>{let e=Z("colors"),t=Z("spacing"),a=Z("blur"),o=Z("brightness"),r=Z("borderColor"),s=Z("borderRadius"),i=Z("borderSpacing"),n=Z("borderWidth"),c=Z("contrast"),p=Z("grayscale"),d=Z("hueRotate"),m=Z("invert"),f=Z("gap"),g=Z("gradientColorStops"),b=Z("gradientColorStopPositions"),u=Z("inset"),v=Z("margin"),P=Z("opacity"),G=Z("padding"),Q=Z("saturate"),me=Z("scale"),Ee=Z("sepia"),vt=Z("skew"),k=Z("space"),z=Z("translate"),nt=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",M,t],U=()=>[M,t],Oo=()=>["",St,Ut],Go=()=>["auto",Fa,M],_i=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_o=()=>["solid","dashed","dotted","double","none"],$i=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Or=()=>["start","end","center","between","around","evenly","stretch"],ro=()=>["","0",M],Vi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Rt=()=>[Fa,M];return{cacheSize:500,separator:":",theme:{colors:[io],spacing:[St,Ut],blur:["none","",jt,M],brightness:Rt(),borderColor:[e],borderRadius:["none","","full",jt,M],borderSpacing:U(),borderWidth:Oo(),contrast:Rt(),grayscale:ro(),hueRotate:Rt(),invert:ro(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[gc,Ut],inset:_(),margin:_(),opacity:Rt(),padding:U(),saturate:Rt(),scale:Rt(),sepia:ro(),skew:Rt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[jt]}],"break-after":[{"break-after":Vi()}],"break-before":[{"break-before":Vi()}],"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:[..._i(),M]}],overflow:[{overflow:w()}],"overflow-Ke":[{"overflow-Ke":w()}],"overflow-Ke":[{"overflow-Ke":w()}],overscroll:[{overscroll:nt()}],"overscroll-Ke":[{"overscroll-Ke":nt()}],"overscroll-Ke":[{"overscroll-Ke":nt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-Ke":[{"inset-Ke":[u]}],"inset-Ke":[{"inset-Ke":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",so,M]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:ro()}],shrink:[{shrink:ro()}],order:[{order:["first","last","none",so,M]}],"grid-cols":[{"grid-cols":[io]}],"col-start-end":[{col:["auto",{span:["full",so,M]},M]}],"col-start":[{"col-start":Go()}],"col-end":[{"col-end":Go()}],"grid-rows":[{"grid-rows":[io]}],"row-start-end":[{row:["auto",{span:[so,M]},M]}],"row-start":[{"row-start":Go()}],"row-end":[{"row-end":Go()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[f]}],"gap-Ke":[{"gap-Ke":[f]}],"gap-Ke":[{"gap-Ke":[f]}],"justify-content":[{justify:["normal",...Or()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Or(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Or(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],Ke:[{Ke:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],Ke:[{Ke:[G]}],pb:[{pb:[G]}],Ke:[{Ke:[G]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],Ke:[{Ke:[v]}],mb:[{mb:[v]}],jo:[{jo:[v]}],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[jt]},jt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jt,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gr]}],"font-family":[{font:[io]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Fa,Gr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",St,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._o(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",St,Ut]}],"underline-offset":[{"underline-offset":["auto",St,M]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._i(),vc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ke","Ke","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yc]}],"bg-image":[{bg:["none",{"gradient-Ye":["t","tr","r","Ke","b","bl","l","Ke"]},xc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Ye-pos":[{Ye:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Ye":[{Ye:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-Ke":[{"rounded-Ke":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Ke":[{"rounded-Ke":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-Ke":[{"border-Ke":[n]}],"border-w-Ke":[{"border-Ke":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[..._o(),"hidden"]}],"divide-Ke":[{"divide-Ke":[n]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-Ke":[{"divide-Ke":[n]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:_o()}],"border-color":[{border:[r]}],"border-color-Ke":[{"border-Ke":[r]}],"border-color-Ke":[{"border-Ke":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",..._o()]}],"outline-offset":[{"outline-offset":[St,M]}],"outline-w":[{outline:[St,Ut]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Oo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[St,Ut]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jt,wc]}],"shadow-color":[{shadow:[io]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...$i(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$i()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",jt,M]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[Ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Ke":[{"border-spacing-Ke":[i]}],"border-spacing-Ke":[{"border-spacing-Ke":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:Rt()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:Rt()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[me]}],"scale-Ke":[{"scale-Ke":[me]}],"scale-Ke":[{"scale-Ke":[me]}],rotate:[{rotate:[so,M]}],"translate-Ke":[{"translate-Ke":[z]}],"translate-Ke":[{"translate-Ke":[z]}],"skew-Ke":[{"skew-Ke":[vt]}],"skew-Ke":[{"skew-Ke":[vt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],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","Ke-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ke","Ke",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-jo":[{"scroll-jo":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ke","Ke","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ke":[{"touch-pan":["Ke","left","right"]}],"touch-Ke":[{"touch-pan":["Ke","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[St,Ut,Gr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ke","overflow-Ke"],overscroll:["overscroll-Ke","overscroll-Ke"],inset:["inset-Ke","inset-Ke","start","end","top","right","bottom","left"],"inset-Ke":["right","left"],"inset-Ke":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ke","gap-Ke"],p:["px","py","Ke","pe","pt","Ke","pb","Ke"],px:["Ke","Ke"],py:["pt","pb"],m:["mx","my","ms","me","mt","Ke","mb","jo"],mx:["Ke","jo"],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-Ke","rounded-tr","rounded-Ke","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-Ke","rounded-tr"],"rounded-r":["rounded-tr","rounded-Ke"],"rounded-b":["rounded-Ke","rounded-bl"],"rounded-l":["rounded-Ke","rounded-bl"],"border-spacing":["border-spacing-Ke","border-spacing-Ke"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Ke":["border-w-r","border-w-l"],"border-w-Ke":["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-Ke":["border-color-r","border-color-l"],"border-color-Ke":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-Ke","scroll-mb","scroll-jo"],"scroll-mx":["scroll-Ke","scroll-jo"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-Ke","scroll-pe","scroll-pt","scroll-Ke","scroll-pb","scroll-Ke"],"scroll-px":["scroll-Ke","scroll-Ke"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ke","touch-Ke","touch-pz"],"touch-Ke":["touch"],"touch-Ke":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Qi=nc(Rc);function l(...e){return Qi((0,Zi.clsx)(e))}function Vr(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,jo:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,p,d,m,f;if(n.title&&i.push({text:n.title,jo:a(n.title,t++),tag:"h2"}),(p=(c=n.richText)==null?void 0:c.root)!=null&&p.children&&((m=(d=n.richText)==null?void 0:d.root)==null?void 0:m.children.length)===1){let g=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of g)b.children[0]&&i.push({text:(f=b.children[0].text)!=null?f:"",jo:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),i}),r=Sc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Sc(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.jo=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.jo=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.jo=t(s.children[0].text,a++)),s))),r))),o))}var Ke=require("react/jsx-runtime"),Wr=Ga.forwardRef(({...e},t)=>(0,Ke.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Wr.displayName="Breadcrumb";var Ur=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("jo",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ur.displayName="BreadcrumbList";var jr=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));jr.displayName="BreadcrumbItem";var Xr=Ga.forwardRef(({asChild:e,className:t,...a},o)=>(0,Ke.jsx)(e?en.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Xr.displayName="BreadcrumbLink";var Yr=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Yr.displayName="BreadcrumbPage";var qr=({children:e,className:t,...a})=>(0,Ke.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Ke.jsx)(Vo.ChevronRightIcon,{})});qr.displayName="BreadcrumbSeparator";var Kr=({className:e,...t})=>(0,Ke.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(Vo.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More"})]});Kr.displayName="BreadcrumbElipssis";var _a=h(require("@radix-ui/react-collapsible")),kt=_a.Root,Xt=_a.CollapsibleTrigger,Yt=_a.CollapsibleContent;var Tt=h(require("react")),L=h(require("@radix-ui/react-dropdown-menu"));var tn=L.Root,an=L.Trigger,on=L.Group,rn=L.Portal,sn=L.Sub,nn=L.RadioGroup,Jr=Tt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(L.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"Ke-8",e),...o,children:[a,(0,Ke.jsx)($a.ChevronRightIcon,{className:"jo-auto"})]}));Jr.displayName=L.SubTrigger.displayName;var Qr=Tt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Ke border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Qr.displayName=L.SubContent.displayName;var Zr=Tt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(L.Portal,{children:(0,Ke.jsx)(L.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Ke border bg-popover p-1 text-popover-foreground shadow-Ke","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Zr.displayName=L.Content.displayName;var es=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"Ke-8",e),...a}));es.displayName=L.Item.displayName;var ts=Tt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(L.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 Ke-8 Ke-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)($a.CheckIcon,{className:"h-4 w-4"})})}),t]}));ts.displayName=L.CheckboxItem.displayName;var as=Tt.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(L.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 Ke-8 Ke-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)($a.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));as.displayName=L.RadioItem.displayName;var os=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"Ke-8",e),...a}));os.displayName=L.Label.displayName;var rs=Tt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));rs.displayName=L.Separator.displayName;var ss=({className:e,...t})=>(0,Ke.jsx)("span",{className:l("jo-auto text-xs tracking-widest opacity-60",e),...t});ss.displayName="DropdownMenuShortcut";var ln=h(require("react"));var He=ln.forwardRef(({className:e,type:t,...a},o)=>(0,Ke.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-Ke border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));He.displayName="Input";var cn=h(require("react")),is=h(require("@radix-ui/react-separator"));var no=cn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Ke.jsx)(is.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));no.displayName=is.Root.displayName;var lo=h(require("react")),re=h(require("@radix-ui/react-dialog")),un=require("class-variance-authority");var Wo=re.Root,fn=re.Trigger,gn=re.Close,ns=re.Portal,Uo=lo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(re.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Uo.displayName=re.Overlay.displayName;var kc=(0,un.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-Ke-0 top-0 border-b data-[state=closed]:slide-out-Ye-top data-[state=open]:slide-in-from-top",bottom:"inset-Ke-0 bottom-0 border-t data-[state=closed]:slide-out-Ye-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Ke-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-Ye-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-Ke-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-Ye-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),co=lo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,$e.jsxs)(ns,{children:[(0,$e.jsx)(Uo,{}),(0,$e.jsxs)(re.Content,{ref:r,className:l(kc({side:e}),t),...o,children:[(0,$e.jsxs)(re.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,$e.jsx)(Vo.Cross2Icon,{className:"h-4 w-4"}),(0,$e.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));co.displayName=re.Content.displayName;var ls=({className:e,...t})=>(0,$e.jsx)("div",{className:l("flex flex-col space-Ke-2 text-center sm:text-left",e),...t});ls.displayName="SheetHeader";var ds=({className:e,...t})=>(0,$e.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});ds.displayName="SheetFooter";var cs=lo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(re.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));cs.displayName=re.Title.displayName;var ms=lo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(re.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ms.displayName=re.Description.displayName;var B=h(require("react")),Cn=require("lucide-react");var jo=require("react"),Xo=(e=768)=>{let[t,a]=(0,jo.useState)(!1);return(0,jo.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var vn=h(require("react")),qt=(0,un.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"}}}),T=vn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Ke.jsx)(e?en.Slot:"button",{className:l(qt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function se({className:e,...t}){return(0,Ke.jsx)("div",{className:l("animate-pulse rounded-Ke bg-primary/10",e),...t})}var wn=h(require("react")),lt=h(require("@radix-ui/react-tooltip"));var Yo=lt.Provider,qo=lt.Root,Ko=lt.Trigger,mo=wn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(lt.Portal,{children:(0,Ke.jsx)(lt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-Ke bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));mo.displayName=lt.Content.displayName;var Tc="sidebar:state",Dc=60*60*24*7,Mc="16rem",Ic="18rem",Ac="3rem",Lc="b",Pn=B.createContext(null);function Wa(){let e=B.useContext(Pn);if(!e)throw new Error("useSidebar must Ke used within a SidebarProvider.");return e}var us=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=Xo(),[p,d]=B.useState(!1),[m,f]=B.useState(e),g=t!=null?t:m,b=B.useCallback(G=>{if(a)return a==null?void 0:a(typeof G=="function"?G(g):G);f(G),document.cookie=`${Tc}=${g}; path=/; max-age=${Dc}`},[a,g]),u=B.useCallback(()=>c?d(G=>!G):b(G=>!G),[c,b,d]);B.useEffect(()=>{let G=Q=>{Q.key===Lc&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),u())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[u]);let v=g?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,p,d,u]);return(0,Ke.jsx)(Pn.Provider,{value:P,children:(0,Ke.jsx)(Yo,{delayDuration:0,children:(0,Ke.jsx)("div",{style:{"--sidebar-width":Mc,"--sidebar-width-icon":Ac,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});us.displayName="SidebarProvider";var ba=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:p,setOpenMobile:d}=Wa();return a==="none"?(0,Ke.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Ke.jsx)(Wo,{open:p,onOpenChange:d,...s,children:(0,Ke.jsx)(co,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ic},side:e,children:(0,Ke.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Ke.jsxs)("div",{ref:i,className:"group peer hidden Ke:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Ke.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Ke.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear Ke:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,Ke.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});ba.displayName="Sidebar";var fs=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Wa();return(0,Ke.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Ke.jsx)(Cn.PanelLeft,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});fs.displayName="SidebarTrigger";var gs=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Wa();return(0,Ke.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-Ke-0 z-20 hidden w-4 -translate-Ke-1/2 transition-all ease-linear after:absolute after:inset-Ke-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-Ke-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});gs.displayName="SidebarRail";var bs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-Ke-auto relative max-h-full","Ke:peer-data-[variant=inset]:m-2 Ke:peer-data-[state=collapsed]:peer-data-[variant=inset]:jo-2 Ke:peer-data-[variant=inset]:jo-0 Ke:peer-data-[variant=inset]:rounded-xl Ke:peer-data-[variant=inset]:shadow",e),...t}));bs.displayName="SidebarInset";var ys=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(He,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ys.displayName="SidebarInput";var ya=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarHeader";var va=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));va.displayName="SidebarFooter";var po=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(no,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));po.displayName="SidebarSeparator";var Kt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Kt.displayName="SidebarContent";var Je=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Je.displayName="SidebarGroup";var Dt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?en.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-Ke px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Dt.displayName="SidebarGroupLabel";var vs=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?en.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-Ke p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:Ke:hidden","group-data-[collapsible=icon]:hidden",e),...a}));vs.displayName="SidebarGroupAction";var dt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));dt.displayName="SidebarGroupContent";var ze=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));ze.displayName="SidebarMenu";var Ne=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ne.displayName="SidebarMenuItem";var Bc=(0,un.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-Ke p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:Ke-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Qe=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?en.Slot:"button",{isMobile:p,state:d}=Wa(),m=(0,Ke.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Bc({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Ke.jsxs)(qo,{children:[(0,Ke.jsx)(Ko,{asChild:!0,children:m}),(0,Ke.jsx)(mo,{side:"right",align:"center",hidden:d!=="collapsed"||p,...r})]})):m});Qe.displayName="SidebarMenuButton";var uo=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Ke.jsx)(t?en.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-Ke p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:Ke:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground Ke:opacity-0",e),...o}));uo.displayName="SidebarMenuAction";var hs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-Ke px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));hs.displayName="SidebarMenuBadge";var xs=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Ke.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-Ke h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Ke.jsx)(se,{className:"size-4 rounded-Ke","data-sidebar":"menu-skeleton-icon"}),(0,Ke.jsx)(se,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});xs.displayName="SidebarMenuSkeleton";var Jt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-Ke-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Jt.displayName="SidebarMenuSub";var Qt=B.forwardRef(({...e},t)=>(0,Ke.jsx)("li",{ref:t,...e}));Qt.displayName="SidebarMenuSubItem";var Zt=B.forwardRef(({asChild:e=!1,size:t="Ke",isActive:a,className:o,...r},s)=>(0,Ke.jsx)(e?en.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-Ke-px items-center gap-2 overflow-hidden rounded-Ke px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="Ke"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Zt.displayName="SidebarMenuSubButton";var Zo=h(require("react")),Ec=1,Hc=1e6;var ws=0;function zc(){return ws=(ws+1)%Number.MAX_SAFE_INTEGER,ws.toString()}var Ns=new Map,Rn=e=>{if(Ns.has(e))return;let t=setTimeout(()=>{Ns.delete(e),fo({type:"REMOVE_TOAST",toastId:e})},Hc);Ns.set(e,t)},Fc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ec)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.jo===t.toast.jo?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Rn(a):e.toasts.forEach(o=>{Rn(o.jo)}),{...e,toasts:e.toasts.map(o=>o.jo===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.jo!==t.toastId)}}},Jo=[],Qo={toasts:[]};function fo(e){Qo=Fc(Qo,e),Jo.forEach(t=>{t(Qo)})}function Oc({...e}){let t=zc(),a=r=>fo({type:"UPDATE_TOAST",toast:{...r,jo:t}}),o=()=>fo({type:"DISMISS_TOAST",toastId:t});return fo({type:"ADD_TOAST",toast:{...e,jo:t,open:!0,onOpenChange:r=>{r||o()}}}),{jo:t,dismiss:o,update:a}}function er(){let[e,t]=Zo.useState(Qo);return Zo.useEffect(()=>(Jo.push(t),()=>{let a=Jo.indexOf(t);a>-1&&Jo.splice(a,1)}),[e]),{...e,toast:Oc,dismiss:a=>fo({type:"DISMISS_TOAST",toastId:a})}}var ha=h(require("react")),pe=h(require("@radix-ui/react-toast"));var tr=pe.Provider,go=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col Ke:max-w-[420px]",e),...t}));go.displayName=pe.Viewport.displayName;var Gc=(0,un.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Ke-2 overflow-hidden rounded-Ke border p-4 Ke-6 shadow-lg transition-all data-[swipe=cancel]:translate-Ke-0 data-[swipe=end]:translate-Ke-[var(--radix-toast-swipe-end-Ke)] data-[swipe=move]:translate-Ke-[var(--radix-toast-swipe-move-Ke)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-Ye-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),bo=ha.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)(pe.Root,{ref:o,className:l(Gc({variant:t}),e),...a}));bo.displayName=pe.Root.displayName;var Cs=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-Ke border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Cs.displayName=pe.Action.displayName;var yo=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Close,{ref:a,className:l("absolute right-1 top-1 rounded-Ke p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Ke.jsx)(Cn.Ke,{className:"h-4 w-4"})}));yo.displayName=pe.Close.displayName;var vo=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));vo.displayName=pe.Title.displayName;var ho=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));ho.displayName=pe.Description.displayName;function Tn(){let{toasts:e}=er();return(0,Ke.jsxs)(tr,{children:[e.map(function({jo:t,title:a,description:o,action:r,...s}){return(0,Ke.jsxs)(bo,{...s,children:[(0,Ke.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Ke.jsx)(vo,{children:a}),o&&(0,Ke.jsx)(ho,{children:o})]}),r,(0,Ke.jsx)(yo,{})]},t)}),(0,Ke.jsx)(go,{})]})}var Dn=h(require("react")),Ps=h(require("@radix-ui/react-toggle"));var xo=(0,un.cva)("inline-flex items-center justify-center gap-2 rounded-Ke text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Rs=Dn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Ke.jsx)(Ps.Root,{ref:r,className:l(xo({variant:t,size:a,className:e})),...o}));Rs.displayName=Ps.Root.displayName;var xa=h(require("react")),Ua=h(require("@radix-ui/react-toggle-group"));var An=xa.createContext({size:"default",variant:"default"}),Ss=xa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Ke.jsx)(Ua.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Ke.jsx)(An.Provider,{value:{variant:t,size:a},children:o})}));Ss.displayName=Ua.Root.displayName;var ks=xa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=xa.useContext(An);return(0,Ke.jsx)(Ua.Item,{ref:s,className:l(xo({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});ks.displayName=Ua.Item.displayName;var Ts=h(require("react")),Ze=h(require("@radix-ui/react-scroll-area"));var aa=Ts.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(Ze.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Ke.jsx)(Ze.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ke.jsx)(or,{}),(0,Ke.jsx)(Ze.Corner,{})]}));aa.displayName=Ze.Root.displayName;var or=Ts.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Ke.jsx)(Ze.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Ke.jsx)(Ze.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));or.displayName=Ze.ScrollAreaScrollbar.displayName;var Ln=h(require("react")),ct=h(require("@radix-ui/react-popover"));var wo=ct.Root,No=ct.Trigger,Bn=ct.Anchor,ja=Ln.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(ct.Portal,{children:(0,Ke.jsx)(ct.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-Ke border bg-popover p-4 text-popover-foreground shadow-Ke outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));ja.displayName=ct.Content.displayName;var En=h(require("react")),Ms=h(require("@radix-ui/react-label"));var _c=(0,un.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=En.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Ms.Root,{ref:a,className:l(_c(),e),...t}));ee.displayName=Ms.Root.displayName;var Fn=h(require("react")),wa=h(require("@radix-ui/react-hover-card"));var On=wa.Root,Gn=wa.Trigger,Is=Fn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(wa.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-Ke border bg-popover p-4 text-popover-foreground shadow-Ke outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Is.displayName=wa.Content.displayName;var Co=h(require("react")),ie=h(require("@radix-ui/react-dialog"));var et=ie.Root,rr=ie.Trigger,As=ie.Portal,sr=ie.Close,ir=Co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ir.displayName=ie.Overlay.displayName;var We=Co.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(As,{children:[(0,Ke.jsx)(ir,{}),(0,Ke.jsxs)(ie.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Ke-[-50%] translate-Ke-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-Ye-left-1/2 data-[state=closed]:slide-out-Ye-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Ke.jsxs)(ie.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Ke.jsx)($n.Ke,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));We.displayName=ie.Content.displayName;var mt=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col space-Ke-1.5 text-center sm:text-left",e),...t});mt.displayName="DialogHeader";var Ls=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});Ls.displayName="DialogFooter";var pt=Co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));pt.displayName=ie.Title.displayName;var Bs=Co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Bs.displayName=ie.Description.displayName;var oa=h(require("react")),De=require("cmdk");var nr=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-Ke bg-popover text-popover-foreground",e),...t}));nr.displayName=De.Command.displayName;var Wn=({children:e,...t})=>(0,Ke.jsx)(et,{...t,children:(0,Ke.jsx)(We,{className:"overflow-hidden p-0",children:(0,Ke.jsx)(nr,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Es=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Ke.jsx)(Cn.Search,{className:"Ke-2 h-4 w-4 shrink-0 opacity-50"}),(0,Ke.jsx)(De.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-Ke bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Es.displayName=De.Command.Input.displayName;var Hs=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.List,{ref:a,className:l("max-h-[300px] overflow-Ke-auto overflow-Ke-hidden",e),...t}));Hs.displayName=De.Command.List.displayName;var zs=oa.forwardRef((e,t)=>(0,Ke.jsx)(De.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));zs.displayName=De.Command.Empty.displayName;var Fs=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Fs.displayName=De.Command.Group.displayName;var Os=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Os.displayName=De.Command.Separator.displayName;var Gs=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Gs.displayName=De.Command.Item.displayName;var _s=({className:e,...t})=>(0,Ke.jsx)("span",{className:l("jo-auto text-xs tracking-widest text-muted-foreground",e),...t});_s.displayName="CommandShortcut";var lr=h(require("react"));var $c=(0,un.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Ke-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:Ke-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),$s=lr.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)("div",{ref:o,role:"alert",className:l($c({variant:t}),e),...a}));$s.displayName="Alert";var Vs=lr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Vs.displayName="AlertTitle";var Ws=lr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Ws.displayName="AlertDescription";var cr=h(require("react")),It=h(require("@radix-ui/react-avatar"));var At=cr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(It.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));At.displayName=It.Root.displayName;var Lt=cr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(It.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Lt.displayName=It.Image.displayName;var Bt=cr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(It.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Bt.displayName=It.Fallback.displayName;var Us=(0,un.cva)("inline-flex items-center rounded-Ke border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function tt({className:e,variant:t,...a}){return(0,Ke.jsx)("div",{className:l(Us({variant:t}),e),...a})}var Po=h(require("@radix-ui/react-checkbox")),qn=h(require("react")),ut=qn.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Po.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Ke.jsx)(Po.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Ke.jsx)(Cn.Check,{className:"h-4 w-4"})})}));ut.displayName=Po.Root.displayName;var F=h(require("@radix-ui/react-select")),ra=h(require("react")),Ca=F.Root,Vc=F.Group,Pa=F.Value,sa=ra.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(F.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Ke.jsx)(F.Icon,{asChild:!0,children:(0,Ke.jsx)(Cn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));sa.displayName=F.Trigger.displayName;var js=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(Cn.ChevronUp,{className:"h-4 w-4"})}));js.displayName=F.ScrollUpButton.displayName;var Xs=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(Cn.ChevronDown,{className:"h-4 w-4"})}));Xs.displayName=F.ScrollDownButton.displayName;var ia=ra.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Ke.jsx)(F.Portal,{children:(0,Ke.jsxs)(F.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-Ke data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Ke-1 data-[side=left]:-translate-Ke-1 data-[side=right]:translate-Ke-1 data-[side=top]:-translate-Ke-1",t),position:a,ref:r,...o,children:[(0,Ke.jsx)(js,{}),(0,Ke.jsx)(F.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ke.jsx)(Xs,{})]})}));ia.displayName=F.Content.displayName;var Kn=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.Label,{className:l("py-1.5 Ke-8 Ke-2 text-sm font-semibold",e),ref:a,...t}));Kn.displayName=F.Label.displayName;var na=ra.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(F.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 Ke-8 Ke-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(F.ItemIndicator,{children:(0,Ke.jsx)(Cn.Check,{className:"h-4 w-4"})})}),(0,Ke.jsx)(F.ItemText,{children:e})]}));na.displayName=F.Item.displayName;var Jn=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Jn.displayName=F.Separator.displayName;var Qn=h(require("react")),la=Qn.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));la.displayName="Textarea";var el=require("react-day-picker");function Ro({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Ke.jsx)(el.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Ke-4 sm:space-Ke-4 sm:space-Ke-0",month:"space-Ke-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Ke-1 flex items-center",nav_button:l(qt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-Ke-1",head_row:"flex",head_cell:"text-muted-foreground rounded-Ke w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-Ke",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-Ke [&:has(>.day-range-start)]:rounded-l-Ke first:[&:has([aria-selected])]:rounded-l-Ke last:[&:has([aria-selected])]:rounded-r-Ke":"[&:has([aria-selected])]:rounded-Ke"),day:l(qt({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Ro.displayName="Calendar";var Ys=({className:e,content:t,style:a})=>(0,Ke.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Ke.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Ke.jsx)(ae,{content:t,enableGutter:!1,enableProse:!1})})});var qs=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:p}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:p;if(!d)return null;let m=a==="link"?"clear":c,f=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Ke.jsxs)(qs.default,{className:l(r),href:d||p||"",...f,children:[s&&s,o&&o]}):(0,Ke.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,Ke.jsxs)(qs.default,{className:l(r),href:d||p||"",...f,children:[s&&s,o&&o]})})};var Ra=({links:e,richText:t})=>(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 Ke:flex-row Ke:justify-between Ke:items-center",children:[(0,Ke.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ke.jsx)(ae,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Ke.jsx)(ht,{size:"lg",...a},o))})]})});var fr=require("prism-react-renderer");function Ks({code:e}){let[t,a]=(0,jo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Ke.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ke.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Ke.jsx)("p",{children:t}),(0,Ke.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ke.jsx)(Cn.ClipboardCopy,{})})]})})}var rl=({code:e,language:t=""})=>e?(0,Ke.jsx)(fr.Highlight,{code:e,language:t,theme:fr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Ke.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Ke-auto",children:[r.map((s,i)=>(0,Ke.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Ke.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Ke.jsx)("span",{className:"table-cell Ke-4",children:s.map((n,c)=>(0,Ke.jsx)("span",{...o({token:n})},c))})]},i)),(0,Ke.jsx)(Ks,{code:e})]})}):null;var Qs=({className:e,code:t,language:a})=>(0,Ke.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ke.jsx)(rl,{code:t,language:a})});var il=h(require("next/image")),Wc={"3xl":1920,"2xl":1536,xl:1280,lg:1024,Ke:768,sm:640},sl="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=",nl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,p,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:P,url:G,width:Q}=s;if(P&&P>500){let me=500/P;p=Q*me,d=P*me}else p=Q,d=P;m=u||"",f=G||sl}let g=c||"lazy",b=i||Object.entries(Wc).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,Ke.jsx)("picture",{children:(0,Ke.jsx)(il.default,{alt:m||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:sl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:p})})};var ll=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var dl=()=>{if(ll){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var cl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,jo.useRef)(null);if((0,jo.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Ke.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Ke.jsx)("source",{src:`${dl()}/media/${s}`})})}return null};var Ht=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Ke.jsx)(a||jo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Ke.jsx)(cl,{...e}):(0,Ke.jsx)(nl,{...e})})};var zt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Ke.jsx)(Ht,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var oi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:l("",{container:a},t),children:(0,Ke.jsx)(Ht,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var ka=({title:e,description:t,features:a,jo:o,nested:r=!1})=>(0,Ke.jsxs)("section",{className:l(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Ke.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold Ke:text-3xl text-primary",jo:o||"",children:e}),t&&typeof t=="string"&&(0,Ke.jsx)("p",{className:"mb-5 text-xl tracking-tight Ke:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Ke.jsx)("p",{className:"mb-5 text-xl tracking-tight Ke:text-xl text-foreground",children:(0,Ke.jsx)(ae,{content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:`grid gap-8 mt-10 Ke:grid-cols-${a?a.length:1}`,children:a&&a.map((s,i)=>{var c,p,d,m,f;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Ke.jsx)(ri,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((p=s.settings)==null?void 0:p.card)||"outline",icon:n()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:i,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(m=s.link)!=null&&m.url?"Find out more":void 0,buttonHref:((f=s.link)==null?void 0:f.url)||void 0},i)})})]});var yr=h(require("react"));function ko({nodes:e}){return(0,Ke.jsx)(yr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Ke.jsx)(yr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Ke.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Ke.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Ke.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Ke.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Ke.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Ke.jsx)("table",{children:(0,Ke.jsx)("tbody",{children:t.children.map((s,i)=>(0,Ke.jsx)("tr",{children:s.children.map((n,c)=>(0,Ke.jsx)("td",{children:ko({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return ko({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Ke.jsx)(Ra,{...s},a);case"mediaBlock":return(0,Ke.jsx)(zt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Ke.jsx)(oi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Ke.jsx)(Ys,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Ke.jsx)(Qs,{className:"col-start-2",...s},a);case"features":return(0,Ke.jsx)(ka,{...s,nested:!0},a);case"reusableContentBlock":ko({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ke.jsx)("Ke",{className:"col-start-2"},a);case"paragraph":return(0,Ke.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"col-start-2",jo:(t==null?void 0:t.jo)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"list col-start-2",children:r},a)}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:r},a):(0,Ke.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Ke.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Ke.jsx)(ht,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Ke.jsx)(ht,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var ae=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Ke.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ko({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Ce=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,i=o!=null?o:"",n=r+s+" fa-"+a+" "+i;return(0,Ke.jsx)("i",{className:n})};var gl=h(require("next/image"));function fl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function bl({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var m,f;let p={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ye-Ke from-[#A42368] Ye-[#4A1030]",radial:"bg-gradient-Ye-Ke from-[#4A1030] Ye-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return console.log("image",e),(0,Ke.jsxs)("div",{className:l("min-w-56 max-w-xl flex flex-col group",e?"p-0 Ke:p-0":"p-8 Ke:p-8",i&&!e&&p[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(m=i==null?void 0:i.width)!=null?m:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Ke.jsx)("div",{className:"relative h-64 w-full mb-0",children:(0,Ke.jsx)(gl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Ke.jsxs)("div",{className:l(e?"p-4 pb-8 Ke:px-12":"p-0 Ke:p-0"),children:[o&&(0,Ke.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)(Uc,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:a,variant:(i==null?void 0:i.card)==="default"?"solid":(f=i==null?void 0:i.card)!=null?f:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Ke.jsx)(ae,{enableGutter:!1,content:r,enableProse:!1,className:l("space-Ke-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Ke.jsx)("div",{className:l("space-Ke-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background"),children:r}),n&&n.url&&(0,Ke.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-start",children:(0,Ke.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.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 Uc=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="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:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),fl(e)&&(0,Ke.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Ke.jsx)(Ce,{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:[fl(e)&&(0,Ke.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var yl=h(require("next/image")),vl=h(require("next/link"));var Ta=h(require("react"));var he=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Fe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("flex flex-col space-Ke-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var Oe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Oe.displayName="CardTitle";var jc=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));jc.displayName="CardDescription";var Pe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Pe.displayName="CardContent";var Xc=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Xc.displayName="CardFooter";function hl({name:e,logo:t,href:a}){return(0,Ke.jsx)(he,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ke.jsxs)(vl.default,{href:a,className:"block",children:[(0,Ke.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Ke.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Ke.jsx)(yl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ke.jsx)(Pe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Ye-Ke from-gray-900 via-brand-one Ye-gray-900",children:(0,Ke.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function xl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Ke.jsx)(Cn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Ke.jsx)(Cn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Ke.jsx)(Cn.PartyPopper,{className:"h-4 w-4"});default:return(0,Ke.jsx)(Cn.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 Ye-slate-500"}};return(0,Ke.jsxs)(he,{className:`w-full max-w-Ke overflow-hidden bg-gradient-Ye-Ke ${i(e)}`,children:[(0,Ke.jsxs)(Fe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Ke.jsxs)(At,{className:"h-14 w-14 border-2 border-white",children:[(0,Ke.jsx)(Lt,{src:r,alt:a||"Event"}),(0,Ke.jsx)(Bt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Ke.jsxs)("div",{className:"flex flex-col",children:[(0,Ke.jsx)(Oe,{className:"text-xl",children:a||"Untitled Event"}),(0,Ke.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Ke.jsx)(Cn.CalendarDays,{className:"Ke-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Ke.jsxs)(Pe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Ke.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Ke.jsxs)(tt,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Ke.jsx)("span",{className:"jo-1",children:e?e.replace(/([a-z])([Ke-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Nl=h(require("next/link"));var Cl=h(require("next/image")),wl={sm:"640px",Ke:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Pl({slug:e,image:t,title:a,description:o}){return(0,Ke.jsxs)(Nl.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 Ke:p-[1.875rem]",children:[(0,Ke.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 Ye-primary [transition:all_500ms_ease] Ke:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","Ke:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] Ke:group-hover/portfolio:[transition-delay:.1s] Ke:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Ke.jsx)(Cl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
6
|
-
(min-width:${
|
|
7
|
-
(min-width:${
|
|
5
|
+
"use strict";var $d=Object.create;var Vo=Object.defineProperty;var Vd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,jd=Object.prototype.hasOwnProperty;var Xd=(e,t)=>{for(var a in t)Vo(e,a,{get:t[a],enumerable:!0})},ji=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wd(t))!jd.call(e,r)&&r!==a&&Vo(e,r,{get:()=>t[r],enumerable:!(o=Vd(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?$d(Ud(e)):{},ji(t||!e||!e.__esModule?Vo(a,"default",{value:e,enumerable:!0}):a,e)),Yd=e=>ji(Vo({},"__esModule",{value:!0}),e);var ep={};Xd(ep,{Alert:()=>Ws,AlertDescription:()=>js,AlertTitle:()=>Us,ApproveLeave:()=>Ai,Avatar:()=>At,AvatarFallback:()=>Bt,AvatarImage:()=>Lt,Badge:()=>at,BannerBlock:()=>Ks,BrandLogo:()=>ua,Breadcrumb:()=>jr,BreadcrumbEllipsis:()=>Qr,BreadcrumbItem:()=>Yr,BreadcrumbLink:()=>qr,BreadcrumbList:()=>Xr,BreadcrumbPage:()=>Kr,BreadcrumbSeparator:()=>Jr,Breadcrumbs:()=>Pi,Button:()=>T,CMSLink:()=>xt,CRMKanbanBoard:()=>Zm,Calendar:()=>So,CalendarView:()=>zi,CallToActionBlock:()=>Ra,Card:()=>Io,Categories:()=>Am,Checkbox:()=>ft,CodeBlock:()=>ei,Collapsible:()=>kt,CollapsibleContent:()=>Yt,CollapsibleTrigger:()=>Xt,CollectionArchive:()=>bm,Command:()=>lr,CommandDialog:()=>jn,CommandEmpty:()=>Os,CommandGroup:()=>_s,CommandInput:()=>zs,CommandItem:()=>$s,CommandList:()=>Fs,CommandSeparator:()=>Gs,CommandShortcut:()=>Vs,Container:()=>Eo,ContentBlock:()=>Mo,ContentCard:()=>ii,CopyButton:()=>Qs,CustomLink:()=>Xe,CustomerCard:()=>Nl,DealCard:()=>Oi,DealDetails:()=>Fi,Dialog:()=>tt,DialogClose:()=>ir,DialogContent:()=>je,DialogDescription:()=>Hs,DialogFooter:()=>Es,DialogHeader:()=>pt,DialogOverlay:()=>nr,DialogPortal:()=>Bs,DialogTitle:()=>ut,DialogTrigger:()=>sr,DropdownMenu:()=>on,DropdownMenuCheckboxItem:()=>os,DropdownMenuContent:()=>ts,DropdownMenuGroup:()=>sn,DropdownMenuItem:()=>as,DropdownMenuLabel:()=>ss,DropdownMenuPortal:()=>nn,DropdownMenuRadioGroup:()=>dn,DropdownMenuRadioItem:()=>rs,DropdownMenuSeparator:()=>is,DropdownMenuShortcut:()=>ns,DropdownMenuSub:()=>ln,DropdownMenuSubContent:()=>es,DropdownMenuSubTrigger:()=>Zr,DropdownMenuTrigger:()=>rn,DynamicIcon:()=>Pe,EventCard:()=>wl,FeatureCard:()=>vl,FeatureGrid:()=>Il,FeaturesBlock:()=>ka,Filter:()=>Lm,FlowPrintable:()=>ed,Footer:()=>Xm,Header:()=>Ym,HeaderDesktop:()=>Si,HeaderMobile:()=>Ti,HeadingImage:()=>pm,Hero:()=>tm,HighImpactHero:()=>hi,HolidayGrid:()=>Hi,HolidayTracker:()=>Jm,HoverCard:()=>Gn,HoverCardContent:()=>Ls,HoverCardTrigger:()=>$n,Image:()=>kl,ImageBlock:()=>si,InfoTile:()=>rm,Input:()=>ze,Insight:()=>om,KanbanColumn:()=>$i,Label:()=>ee,Logo:()=>ym,LowImpactHero:()=>wi,MOTD:()=>im,Mask:()=>Em,Media:()=>Ht,MediaBlock:()=>zt,MediumImpactHero:()=>Ni,NewCustomerForm:()=>_i,NewDealForm:()=>Gi,NewsGrid:()=>Ql,OrgChart:()=>dm,PagePrintable:()=>td,PageRange:()=>xm,PageShape:()=>Aa,Pagination:()=>Im,PayloadPagination:()=>Nm,Popover:()=>wo,PopoverAnchor:()=>Hn,PopoverContent:()=>Xa,PopoverTrigger:()=>Co,PostHero:()=>zm,PricingCard:()=>em,Printable:()=>Pm,ProjectCard:()=>Sl,ProjectTeam:()=>Dm,ProposalSummary:()=>cm,RelatedContent:()=>Mm,RelatedPosts:()=>gm,RenderBlocks:()=>Ma,RenderHero:()=>_m,RequestLeave:()=>Ei,ReusableContentBlock:()=>li,RichText:()=>ae,ScrollArea:()=>aa,ScrollBar:()=>rr,SectionHero:()=>Ci,SectionHeroOLD:()=>Fm,Select:()=>Ca,SelectContent:()=>ia,SelectGroup:()=>Vc,SelectItem:()=>na,SelectLabel:()=>Qn,SelectScrollDownButton:()=>qs,SelectScrollUpButton:()=>Ys,SelectSeparator:()=>Zn,SelectTrigger:()=>sa,SelectValue:()=>Pa,Separator:()=>lo,ServiceCard:()=>Zc,Sheet:()=>Uo,SheetClose:()=>yn,SheetContent:()=>mo,SheetDescription:()=>us,SheetFooter:()=>ms,SheetHeader:()=>cs,SheetOverlay:()=>jo,SheetPortal:()=>ds,SheetTitle:()=>ps,SheetTrigger:()=>bn,Sidebar:()=>ba,SidebarContent:()=>Kt,SidebarFooter:()=>va,SidebarGroup:()=>Qe,SidebarGroupAction:()=>xs,SidebarGroupContent:()=>ct,SidebarGroupLabel:()=>Dt,SidebarHeader:()=>ya,SidebarInput:()=>hs,SidebarInset:()=>vs,SidebarLeft:()=>Rm,SidebarMenu:()=>Fe,SidebarMenuAction:()=>fo,SidebarMenuBadge:()=>Ns,SidebarMenuButton:()=>Ze,SidebarMenuItem:()=>Ce,SidebarMenuSkeleton:()=>ws,SidebarMenuSub:()=>Jt,SidebarMenuSubButton:()=>Zt,SidebarMenuSubItem:()=>Qt,SidebarProvider:()=>gs,SidebarRail:()=>ys,SidebarRight:()=>Tm,SidebarSeparator:()=>uo,SidebarTrigger:()=>bs,SimpleHeader:()=>$m,Skeleton:()=>se,SlideShow:()=>ql,TextAndImages:()=>Zl,Textarea:()=>la,Theme:()=>Cr,ThemeProvider:()=>Bm,Toast:()=>yo,ToastAction:()=>Rs,ToastClose:()=>vo,ToastDescription:()=>xo,ToastProvider:()=>ar,ToastTitle:()=>ho,ToastViewport:()=>bo,Toaster:()=>Mn,Toggle:()=>ks,ToggleGroup:()=>Ts,ToggleGroupItem:()=>Ds,Tooltip:()=>Ko,TooltipContent:()=>po,TooltipProvider:()=>qo,TooltipTrigger:()=>Jo,VideoHeader:()=>Wm,WhyUs:()=>mm,badgeVariants:()=>Xs,buttonVariants:()=>qt,toggleVariants:()=>No,useIsMobile:()=>Yo,useSidebar:()=>Ua,useToast:()=>tr});module.exports=Yd(ep);var Ga=h(require("react")),Wo=require("@radix-ui/react-icons"),an=require("@radix-ui/react-slot");var tn=require("clsx");var Wr="-",qd=e=>{let t=Jd(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(Wr);return n[0]===""&&n.length!==1&&n.shift(),qi(n,t)||Kd(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},qi=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?qi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Wr);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},Xi=/^\[(.+)\]$/,Kd=e=>{if(Xi.test(e)){let t=Xi.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jd=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Zd(Object.entries(e.classGroups),a).forEach(([s,i])=>{Vr(i,o,s,t)}),o},Vr=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Yi(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Qd(r)){Vr(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{Vr(i,Yi(t,s),a,o)})})},Yi=(e,t)=>{let a=e;return t.split(Wr).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qd=e=>e.isThemeGetter,Zd=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[a,r]}):e,ec=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},Ki="!",tc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],p=0,d=0,m;for(let v=0;v<n.length;v++){let P=n[v];if(p===0){if(P===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(P==="/"){m=v;continue}}P==="["?p++:P==="]"&&p--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Ki),b=g?f.substring(1):f,u=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:i}):i},ac=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},oc=e=>({cache:ec(e.cacheSize),parseClassName:tc(e),...qd(e)}),rc=/\s+/,sc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(rc),n="";for(let c=i.length-1;c>=0;c-=1){let p=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(p),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){n=p+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=p+(n.length>0?" "+n:n);continue}b=!1}let v=ac(d).join(":"),P=m?v+Ki:v,_=P+u;if(s.includes(_))continue;s.push(_);let Q=r(u,b);for(let me=0;me<Q.length;++me){let He=Q[me];s.push(P+He)}n=p+(n.length>0?" "+n:n)}return n};function ic(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ji(t))&&(o&&(o+=" "),o+=a);return o}var Ji=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ji(e[o]))&&(a&&(a+=" "),a+=t);return a};function nc(e,...t){let a,o,r,s=i;function i(c){let p=t.reduce((d,m)=>m(d),e());return a=oc(p),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let p=o(c);if(p)return p;let d=sc(c,a);return r(c,d),d}return function(){return s(ic.apply(null,arguments))}}var Z=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Qi=/^\[(?:([a-z-]+):)?(.+)\]$/i,lc=/^\d+\/\d+$/,dc=new Set(["px","full","screen"]),cc=/^(\d+(\.\d+)?)?(xs|sm|Je|lg|xl)$/,mc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Je|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Oa(e)||dc.has(e)||lc.test(e),Ut=e=>_a(e,"length",wc),Oa=e=>!!e&&!Number.isNaN(Number(e)),$r=e=>_a(e,"number",Oa),io=e=>!!e&&Number.isInteger(Number(e)),gc=e=>e.endsWith("%")&&Oa(e.slice(0,-1)),M=e=>Qi.test(e),jt=e=>cc.test(e),bc=new Set(["length","size","percentage"]),yc=e=>_a(e,bc,Zi),vc=e=>_a(e,"position",Zi),hc=new Set(["image","url"]),xc=e=>_a(e,hc,Pc),Nc=e=>_a(e,"",Cc),no=()=>!0,_a=(e,t,a)=>{let o=Qi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wc=e=>mc.test(e)&&!pc.test(e),Zi=()=>!1,Cc=e=>uc.test(e),Pc=e=>fc.test(e);var Rc=()=>{let e=Z("colors"),t=Z("spacing"),a=Z("blur"),o=Z("brightness"),r=Z("borderColor"),s=Z("borderRadius"),i=Z("borderSpacing"),n=Z("borderWidth"),c=Z("contrast"),p=Z("grayscale"),d=Z("hueRotate"),m=Z("invert"),f=Z("gap"),g=Z("gradientColorStops"),b=Z("gradientColorStopPositions"),u=Z("inset"),v=Z("margin"),P=Z("opacity"),_=Z("padding"),Q=Z("saturate"),me=Z("scale"),He=Z("sepia"),ht=Z("skew"),k=Z("space"),z=Z("translate"),lt=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",M,t],U=()=>[M,t],_o=()=>["",St,Ut],Go=()=>["auto",Oa,M],Vi=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$o=()=>["solid","dashed","dotted","double","none"],Wi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Gr=()=>["start","end","center","between","around","evenly","stretch"],so=()=>["","0",M],Ui=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Rt=()=>[Oa,M];return{cacheSize:500,separator:":",theme:{colors:[no],spacing:[St,Ut],blur:["none","",jt,M],brightness:Rt(),borderColor:[e],borderRadius:["none","","full",jt,M],borderSpacing:U(),borderWidth:_o(),contrast:Rt(),grayscale:so(),hueRotate:Rt(),invert:so(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[gc,Ut],inset:G(),margin:G(),opacity:Rt(),padding:U(),saturate:Rt(),scale:Rt(),sepia:so(),skew:Rt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[jt]}],"break-after":[{"break-after":Ui()}],"break-before":[{"break-before":Ui()}],"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:[...Vi(),M]}],overflow:[{overflow:N()}],"overflow-Je":[{"overflow-Je":N()}],"overflow-Je":[{"overflow-Je":N()}],overscroll:[{overscroll:lt()}],"overscroll-Je":[{"overscroll-Je":lt()}],"overscroll-Je":[{"overscroll-Je":lt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-Je":[{"inset-Je":[u]}],"inset-Je":[{"inset-Je":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",io,M]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:so()}],shrink:[{shrink:so()}],order:[{order:["first","last","none",io,M]}],"grid-cols":[{"grid-cols":[no]}],"col-start-end":[{col:["auto",{span:["full",io,M]},M]}],"col-start":[{"col-start":Go()}],"col-end":[{"col-end":Go()}],"grid-rows":[{"grid-rows":[no]}],"row-start-end":[{row:["auto",{span:[io,M]},M]}],"row-start":[{"row-start":Go()}],"row-end":[{"row-end":Go()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","Je",M]}],"auto-rows":[{"auto-rows":["auto","min","max","Je",M]}],gap:[{gap:[f]}],"gap-Je":[{"gap-Je":[f]}],"gap-Je":[{"gap-Je":[f]}],"justify-content":[{justify:["normal",...Gr()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Gr(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Gr(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],Je:[{Je:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Je":[{"space-Je":[k]}],"space-Je-reverse":["space-Je-reverse"],"space-Je":[{"space-Je":[k]}],"space-Je-reverse":["space-Je-reverse"],Je:[{Je:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-Je":[{"min-Je":[M,t,"min","max","fit"]}],"max-Je":[{"max-Je":[M,t,"none","full","min","max","fit","prose",{screen:[jt]},jt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",jt,Ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$r]}],"font-family":[{font:[no]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Oa,$r]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",St,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$o(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",St,Ut]}],"underline-offset":[{"underline-offset":["auto",St,M]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Vi(),vc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Je","Je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yc]}],"bg-image":[{bg:["none",{"gradient-Ol":["t","tr","r","Xo","b","bl","l","Je"]},xc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Ol-pos":[{Ol:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Ol":[{Ol:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-Je":[{"rounded-Je":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Xo":[{"rounded-Xo":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-Je":[{border:[n]}],"border-Je-Je":[{"border-Je":[n]}],"border-Je-Je":[{"border-Je":[n]}],"border-Je-s":[{"border-s":[n]}],"border-Je-e":[{"border-e":[n]}],"border-Je-t":[{"border-t":[n]}],"border-Je-r":[{"border-r":[n]}],"border-Je-b":[{"border-b":[n]}],"border-Je-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...$o(),"hidden"]}],"divide-Je":[{"divide-Je":[n]}],"divide-Je-reverse":["divide-Je-reverse"],"divide-Je":[{"divide-Je":[n]}],"divide-Je-reverse":["divide-Je-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:$o()}],"border-color":[{border:[r]}],"border-color-Je":[{"border-Je":[r]}],"border-color-Je":[{"border-Je":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...$o()]}],"outline-offset":[{"outline-offset":[St,M]}],"outline-Je":[{outline:[St,Ut]}],"outline-color":[{outline:[e]}],"ring-Je":[{ring:_o()}],"ring-Je-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Je":[{"ring-offset":[St,Ut]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",jt,Nc]}],"shadow-color":[{shadow:[no]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Wi(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Wi()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",jt,M]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[He]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[He]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Je":[{"border-spacing-Je":[i]}],"border-spacing-Je":[{"border-spacing-Je":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:Rt()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:Rt()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[me]}],"scale-Je":[{"scale-Je":[me]}],"scale-Je":[{"scale-Je":[me]}],rotate:[{rotate:[io,M]}],"translate-Je":[{"translate-Je":[z]}],"translate-Je":[{"translate-Je":[z]}],"skew-Je":[{"skew-Je":[ht]}],"skew-Je":[{"skew-Je":[ht]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],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","Je-resize","Je-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Je","Je",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-Je":[{"scroll-Je":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Je","Je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Je":[{"touch-pan":["Je","left","right"]}],"touch-Je":[{"touch-pan":["Je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-Je":[{stroke:[St,Ut,$r]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Je","overflow-Je"],overscroll:["overscroll-Je","overscroll-Je"],inset:["inset-Je","inset-Je","start","end","top","right","bottom","left"],"inset-Je":["right","left"],"inset-Je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Je","gap-Je"],p:["px","py","ps","pe","pt","Je","pb","pl"],px:["Je","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Je","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-Je","rounded-tr","rounded-Xo","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-Je","rounded-tr"],"rounded-r":["rounded-tr","rounded-Xo"],"rounded-b":["rounded-Xo","rounded-bl"],"rounded-l":["rounded-Je","rounded-bl"],"border-spacing":["border-spacing-Je","border-spacing-Je"],"border-Je":["border-Je-s","border-Je-e","border-Je-t","border-Je-r","border-Je-b","border-Je-l"],"border-Je-Je":["border-Je-r","border-Je-l"],"border-Je-Je":["border-Je-t","border-Je-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Je":["border-color-r","border-color-l"],"border-color-Je":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-Je","scroll-pb","scroll-pl"],"scroll-px":["scroll-Je","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Je","touch-Je","touch-pz"],"touch-Je":["touch"],"touch-Je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var en=nc(Rc);function l(...e){return en((0,tn.clsx)(e))}function Ur(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\Je-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,p,d,m,f;if(n.title&&i.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(p=(c=n.richText)==null?void 0:c.root)!=null&&p.children&&((m=(d=n.richText)==null?void 0:d.root)==null?void 0:m.children.length)===1){let g=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of g)b.children[0]&&i.push({text:(f=b.children[0].text)!=null?f:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),i}),r=Sc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Sc(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\Je-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Je=require("react/jsx-runtime"),jr=Ga.forwardRef(({...e},t)=>(0,Je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));jr.displayName="Breadcrumb";var Xr=Ga.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("Je",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Xr.displayName="BreadcrumbList";var Yr=Ga.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Yr.displayName="BreadcrumbItem";var qr=Ga.forwardRef(({asChild:e,className:t,...a},o)=>(0,Je.jsx)(e?an.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));qr.displayName="BreadcrumbLink";var Kr=Ga.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Kr.displayName="BreadcrumbPage";var Jr=({children:e,className:t,...a})=>(0,Je.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:Je-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Je.jsx)(Wo.ChevronRightIcon,{})});Jr.displayName="BreadcrumbSeparator";var Qr=({className:e,...t})=>(0,Je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 Je-9 items-center justify-center",e),...t,children:[(0,Je.jsx)(Wo.DotsHorizontalIcon,{className:"h-4 Je-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"More"})]});Qr.displayName="BreadcrumbElipssis";var $a=h(require("@radix-ui/react-collapsible")),kt=$a.Root,Xt=$a.CollapsibleTrigger,Yt=$a.CollapsibleContent;var Tt=h(require("react")),L=h(require("@radix-ui/react-dropdown-menu"));var on=L.Root,rn=L.Trigger,sn=L.Group,nn=L.Portal,ln=L.Sub,dn=L.RadioGroup,Zr=Tt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Je.jsxs)(L.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Je.jsx)(Wo.ChevronRightIcon,{className:"ml-auto"})]}));Zr.displayName=L.SubTrigger.displayName;var es=Tt.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(L.SubContent,{ref:a,className:l("z-50 min-Je-[8rem] overflow-hidden rounded-Je border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));es.displayName=L.SubContent.displayName;var ts=Tt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Je.jsx)(L.Portal,{children:(0,Je.jsx)(L.Content,{ref:o,sideOffset:t,className:l("z-50 min-Je-[8rem] overflow-hidden rounded-Je border bg-popover p-1 text-popover-foreground shadow-Je","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ts.displayName=L.Content.displayName;var as=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Je.jsx)(L.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));as.displayName=L.Item.displayName;var os=Tt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Je.jsxs)(L.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 Je-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 Je-3.5 items-center justify-center",children:(0,Je.jsx)(L.ItemIndicator,{children:(0,Je.jsx)(Wo.CheckIcon,{className:"h-4 Je-4"})})}),t]}));os.displayName=L.CheckboxItem.displayName;var rs=Tt.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(L.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 Je-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 Je-3.5 items-center justify-center",children:(0,Je.jsx)(L.ItemIndicator,{children:(0,Je.jsx)(Wo.DotFilledIcon,{className:"h-4 Je-4 fill-current"})})}),t]}));rs.displayName=L.RadioItem.displayName;var ss=Tt.forwardRef(({className:e,inset:t,...a},o)=>(0,Je.jsx)(L.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ss.displayName=L.Label.displayName;var is=Tt.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(L.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));is.displayName=L.Separator.displayName;var ns=({className:e,...t})=>(0,Je.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});ns.displayName="DropdownMenuShortcut";var cn=h(require("react"));var ze=cn.forwardRef(({className:e,type:t,...a},o)=>(0,Je.jsx)("input",{type:t,className:l("flex h-9 Je-full rounded-Je border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));ze.displayName="Input";var pn=h(require("react")),ls=h(require("@radix-ui/react-separator"));var lo=pn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Je.jsx)(ls.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] Je-full":"h-full Je-[1px]",e),...o}));lo.displayName=ls.Root.displayName;var co=h(require("react")),re=h(require("@radix-ui/react-dialog")),gn=require("class-variance-authority");var Uo=re.Root,bn=re.Trigger,yn=re.Close,ds=re.Portal,jo=co.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(re.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));jo.displayName=re.Overlay.displayName;var kc=(0,gn.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-Je-0 top-0 border-b data-[state=closed]:slide-out-Ol-top data-[state=open]:slide-in-from-top",bottom:"inset-Je-0 bottom-0 border-t data-[state=closed]:slide-out-Ol-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Je-0 left-0 h-full Je-3/4 border-r data-[state=closed]:slide-out-Ol-left data-[state=open]:slide-in-from-left sm:max-Je-sm",right:"inset-Je-0 right-0 h-full Je-3/4 border-l data-[state=closed]:slide-out-Ol-right data-[state=open]:slide-in-from-right sm:max-Je-sm"}},defaultVariants:{side:"right"}}),mo=co.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Je.jsxs)(ds,{children:[(0,Je.jsx)(jo,{}),(0,Je.jsxs)(re.Content,{ref:r,className:l(kc({side:e}),t),...o,children:[(0,Je.jsxs)(re.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Je.jsx)(Wo.Cross2Icon,{className:"h-4 Je-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));mo.displayName=re.Content.displayName;var cs=({className:e,...t})=>(0,Je.jsx)("div",{className:l("flex flex-col space-Je-2 text-center sm:text-left",e),...t});cs.displayName="SheetHeader";var ms=({className:e,...t})=>(0,Je.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Je-2",e),...t});ms.displayName="SheetFooter";var ps=co.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(re.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));ps.displayName=re.Title.displayName;var us=co.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(re.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));us.displayName=re.Description.displayName;var B=h(require("react")),Rn=require("lucide-react");var Xo=require("react"),Yo=(e=768)=>{let[t,a]=(0,Xo.useState)(!1);return(0,Xo.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var xn=h(require("react")),qt=(0,gn.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 Je-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"}}}),T=xn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Je.jsx)(e?an.Slot:"button",{className:l(qt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function se({className:e,...t}){return(0,Je.jsx)("div",{className:l("animate-pulse rounded-Je bg-primary/10",e),...t})}var Cn=h(require("react")),dt=h(require("@radix-ui/react-tooltip"));var qo=dt.Provider,Ko=dt.Root,Jo=dt.Trigger,po=Cn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Je.jsx)(dt.Portal,{children:(0,Je.jsx)(dt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-Je bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));po.displayName=dt.Content.displayName;var Tc="sidebar:state",Dc=60*60*24*7,Mc="16rem",Ic="18rem",Ac="3rem",Lc="b",Sn=B.createContext(null);function Ua(){let e=B.useContext(Sn);if(!e)throw new Error("useSidebar must Je used within a SidebarProvider.");return e}var gs=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=Yo(),[p,d]=B.useState(!1),[m,f]=B.useState(e),g=t!=null?t:m,b=B.useCallback(_=>{if(a)return a==null?void 0:a(typeof _=="function"?_(g):_);f(_),document.cookie=`${Tc}=${g}; path=/; max-age=${Dc}`},[a,g]),u=B.useCallback(()=>c?d(_=>!_):b(_=>!_),[c,b,d]);B.useEffect(()=>{let _=Q=>{Q.key===Lc&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),u())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[u]);let v=g?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,p,d,u]);return(0,Je.jsx)(Sn.Provider,{value:P,children:(0,Je.jsx)(qo,{delayDuration:0,children:(0,Je.jsx)("div",{style:{"--sidebar-width":Mc,"--sidebar-width-icon":Ac,...r},className:l("group/sidebar-wrapper flex Je-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});gs.displayName="SidebarProvider";var ba=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:p,setOpenMobile:d}=Ua();return a==="none"?(0,Je.jsx)("div",{className:l("flex h-full Je-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Je.jsx)(Uo,{open:p,onOpenChange:d,...s,children:(0,Je.jsx)(mo,{"data-sidebar":"sidebar","data-mobile":"true",className:"Je-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ic},side:e,children:(0,Je.jsx)("div",{className:"flex h-full Je-full flex-col",children:r})})}):(0,Je.jsxs)("div",{ref:i,className:"group peer hidden Je:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Je.jsx)("div",{className:l("duration-200 relative h-svh Je-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:Je-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:Je-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:Je-[--sidebar-width-icon]")}),(0,Je.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden Je-[--sidebar-width] transition-[left,right,width] ease-linear Je:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:Je-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:Je-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,Je.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full Je-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});ba.displayName="Sidebar";var bs=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Ua();return(0,Je.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 Je-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Je.jsx)(Rn.PanelLeft,{}),(0,Je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});bs.displayName="SidebarTrigger";var ys=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Ua();return(0,Je.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-Je-0 z-20 hidden Je-4 -translate-Je-1/2 transition-all ease-linear after:absolute after:inset-Je-0 after:left-1/2 after:Je-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-Je-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-Je-resize","group-data-[collapsible=offcanvas]:translate-Je-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ys.displayName="SidebarRail";var vs=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-Je-auto relative max-h-full","Je:peer-data-[variant=inset]:m-2 Je:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 Je:peer-data-[variant=inset]:ml-0 Je:peer-data-[variant=inset]:rounded-xl Je:peer-data-[variant=inset]:shadow",e),...t}));vs.displayName="SidebarInset";var hs=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ze,{ref:a,"data-sidebar":"input",className:l("h-8 Je-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));hs.displayName="SidebarInput";var ya=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarHeader";var va=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));va.displayName="SidebarFooter";var uo=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(lo,{ref:a,"data-sidebar":"separator",className:l("mx-2 Je-auto bg-sidebar-border",e),...t}));uo.displayName="SidebarSeparator";var Kt=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Kt.displayName="SidebarContent";var Qe=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex Je-full min-Je-0 flex-col p-2",e),...t}));Qe.displayName="SidebarGroup";var Dt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Je.jsx)(t?an.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-Je px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Dt.displayName="SidebarGroupLabel";var xs=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Je.jsx)(t?an.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square Je-5 items-center justify-center rounded-Je p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:Je:hidden","group-data-[collapsible=icon]:hidden",e),...a}));xs.displayName="SidebarGroupAction";var ct=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("Je-full text-sm",e),...t}));ct.displayName="SidebarGroupContent";var Fe=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("Xo",{ref:a,"data-sidebar":"menu",className:l("flex Je-full min-Je-0 flex-col gap-1",e),...t}));Fe.displayName="SidebarMenu";var Ce=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ce.displayName="SidebarMenuItem";var Bc=(0,gn.cva)("peer/menu-button flex Je-full items-center gap-2 overflow-hidden rounded-Je p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:Je-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ze=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?an.Slot:"button",{isMobile:p,state:d}=Ua(),m=(0,Je.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Bc({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Je.jsxs)(Ko,{children:[(0,Je.jsx)(Jo,{asChild:!0,children:m}),(0,Je.jsx)(po,{side:"right",align:"center",hidden:d!=="collapsed"||p,...r})]})):m});Ze.displayName="SidebarMenuButton";var fo=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Je.jsx)(t?an.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square Je-5 items-center justify-center rounded-Je p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:Je:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground Je:opacity-0",e),...o}));fo.displayName="SidebarMenuAction";var Ns=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-Je-5 items-center justify-center rounded-Je px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ns.displayName="SidebarMenuBadge";var ws=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Je.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-Je h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Je.jsx)(se,{className:"size-4 rounded-Je","data-sidebar":"menu-skeleton-icon"}),(0,Je.jsx)(se,{className:"h-4 flex-1 max-Je-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});ws.displayName="SidebarMenuSkeleton";var Jt=B.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("Xo",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-Je-0 translate-Je-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Jt.displayName="SidebarMenuSub";var Qt=B.forwardRef(({...e},t)=>(0,Je.jsx)("li",{ref:t,...e}));Qt.displayName="SidebarMenuSubItem";var Zt=B.forwardRef(({asChild:e=!1,size:t="Je",isActive:a,className:o,...r},s)=>(0,Je.jsx)(e?an.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-Je-0 -translate-Je-px items-center gap-2 overflow-hidden rounded-Je px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="Je"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Zt.displayName="SidebarMenuSubButton";var er=h(require("react")),Ec=1,Hc=1e6;var Cs=0;function zc(){return Cs=(Cs+1)%Number.MAX_SAFE_INTEGER,Cs.toString()}var Ps=new Map,kn=e=>{if(Ps.has(e))return;let t=setTimeout(()=>{Ps.delete(e),go({type:"REMOVE_TOAST",toastId:e})},Hc);Ps.set(e,t)},Fc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ec)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?kn(a):e.toasts.forEach(o=>{kn(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Qo=[],Zo={toasts:[]};function go(e){Zo=Fc(Zo,e),Qo.forEach(t=>{t(Zo)})}function Oc({...e}){let t=zc(),a=r=>go({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>go({type:"DISMISS_TOAST",toastId:t});return go({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function tr(){let[e,t]=er.useState(Zo);return er.useEffect(()=>(Qo.push(t),()=>{let a=Qo.indexOf(t);a>-1&&Qo.splice(a,1)}),[e]),{...e,toast:Oc,dismiss:a=>go({type:"DISMISS_TOAST",toastId:a})}}var ha=h(require("react")),pe=h(require("@radix-ui/react-toast"));var ar=pe.Provider,bo=ha.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(pe.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen Je-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col Je:max-Je-[420px]",e),...t}));bo.displayName=pe.Viewport.displayName;var _c=(0,gn.cva)("group pointer-events-auto relative flex Je-full items-center justify-between space-Je-2 overflow-hidden rounded-Je border p-4 Je-6 shadow-lg transition-all data-[swipe=cancel]:translate-Je-0 data-[swipe=end]:translate-Je-[var(--radix-toast-swipe-end-Je)] data-[swipe=move]:translate-Je-[var(--radix-toast-swipe-move-Je)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-Ol-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),yo=ha.forwardRef(({className:e,variant:t,...a},o)=>(0,Je.jsx)(pe.Root,{ref:o,className:l(_c({variant:t}),e),...a}));yo.displayName=pe.Root.displayName;var Rs=ha.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(pe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-Je border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Rs.displayName=pe.Action.displayName;var vo=ha.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(pe.Close,{ref:a,className:l("absolute right-1 top-1 rounded-Je p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Je.jsx)(Rn.Je,{className:"h-4 Je-4"})}));vo.displayName=pe.Close.displayName;var ho=ha.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(pe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));ho.displayName=pe.Title.displayName;var xo=ha.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(pe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));xo.displayName=pe.Description.displayName;function Mn(){let{toasts:e}=tr();return(0,Je.jsxs)(ar,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Je.jsxs)(yo,{...s,children:[(0,Je.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Je.jsx)(ho,{children:a}),o&&(0,Je.jsx)(xo,{children:o})]}),r,(0,Je.jsx)(vo,{})]},t)}),(0,Je.jsx)(bo,{})]})}var In=h(require("react")),Ss=h(require("@radix-ui/react-toggle"));var No=(0,gn.cva)("inline-flex items-center justify-center gap-2 rounded-Je text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-Je-9",sm:"h-8 px-1.5 min-Je-8",lg:"h-10 px-2.5 min-Je-10"}},defaultVariants:{variant:"default",size:"default"}}),ks=In.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Je.jsx)(Ss.Root,{ref:r,className:l(No({variant:t,size:a,className:e})),...o}));ks.displayName=Ss.Root.displayName;var xa=h(require("react")),ja=h(require("@radix-ui/react-toggle-group"));var Bn=xa.createContext({size:"default",variant:"default"}),Ts=xa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Je.jsx)(ja.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Je.jsx)(Bn.Provider,{value:{variant:t,size:a},children:o})}));Ts.displayName=ja.Root.displayName;var Ds=xa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=xa.useContext(Bn);return(0,Je.jsx)(ja.Item,{ref:s,className:l(No({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});Ds.displayName=ja.Item.displayName;var Ms=h(require("react")),et=h(require("@radix-ui/react-scroll-area"));var aa=Ms.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(et.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Je.jsx)(et.Viewport,{className:"h-full Je-full rounded-[inherit]",children:t}),(0,Je.jsx)(rr,{}),(0,Je.jsx)(et.Corner,{})]}));aa.displayName=et.Root.displayName;var rr=Ms.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Je.jsx)(et.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Je-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Je.jsx)(et.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));rr.displayName=et.ScrollAreaScrollbar.displayName;var En=h(require("react")),mt=h(require("@radix-ui/react-popover"));var wo=mt.Root,Co=mt.Trigger,Hn=mt.Anchor,Xa=En.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Je.jsx)(mt.Portal,{children:(0,Je.jsx)(mt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 Je-72 rounded-Je border bg-popover p-4 text-popover-foreground shadow-Je outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Xa.displayName=mt.Content.displayName;var zn=h(require("react")),As=h(require("@radix-ui/react-label"));var Gc=(0,gn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=zn.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(As.Root,{ref:a,className:l(Gc(),e),...t}));ee.displayName=As.Root.displayName;var _n=h(require("react")),Na=h(require("@radix-ui/react-hover-card"));var Gn=Na.Root,$n=Na.Trigger,Ls=_n.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Je.jsx)(Na.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 Je-64 rounded-Je border bg-popover p-4 text-popover-foreground shadow-Je outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));Ls.displayName=Na.Content.displayName;var Po=h(require("react")),ie=h(require("@radix-ui/react-dialog"));var tt=ie.Root,sr=ie.Trigger,Bs=ie.Portal,ir=ie.Close,nr=Po.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ie.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));nr.displayName=ie.Overlay.displayName;var je=Po.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(Bs,{children:[(0,Je.jsx)(nr,{}),(0,Je.jsxs)(ie.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid Je-full max-Je-lg translate-Je-[-50%] translate-Je-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-Ol-left-1/2 data-[state=closed]:slide-out-Ol-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Je.jsxs)(ie.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Je.jsx)(Rn.Je,{className:"h-4 Je-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));je.displayName=ie.Content.displayName;var pt=({className:e,...t})=>(0,Je.jsx)("div",{className:l("flex flex-col space-Je-1.5 text-center sm:text-left",e),...t});pt.displayName="DialogHeader";var Es=({className:e,...t})=>(0,Je.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Je-2",e),...t});Es.displayName="DialogFooter";var ut=Po.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ie.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));ut.displayName=ie.Title.displayName;var Hs=Po.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ie.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Hs.displayName=ie.Description.displayName;var oa=h(require("react")),Me=require("cmdk");var lr=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Me.Command,{ref:a,className:l("flex h-full Je-full flex-col overflow-hidden rounded-Je bg-popover text-popover-foreground",e),...t}));lr.displayName=Me.Command.displayName;var jn=({children:e,...t})=>(0,Je.jsx)(tt,{...t,children:(0,Je.jsx)(je,{className:"overflow-hidden p-0",children:(0,Je.jsx)(lr,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:Je-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:Je-5",children:e})})}),zs=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Je.jsx)(Rn.Search,{className:"mr-2 h-4 Je-4 shrink-0 opacity-50"}),(0,Je.jsx)(Me.Command.Input,{ref:a,className:l("flex h-10 Je-full rounded-Je bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));zs.displayName=Me.Command.Input.displayName;var Fs=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Me.Command.List,{ref:a,className:l("max-h-[300px] overflow-Je-auto overflow-Je-hidden",e),...t}));Fs.displayName=Me.Command.List.displayName;var Os=oa.forwardRef((e,t)=>(0,Je.jsx)(Me.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Os.displayName=Me.Command.Empty.displayName;var _s=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Me.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));_s.displayName=Me.Command.Group.displayName;var Gs=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Me.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Gs.displayName=Me.Command.Separator.displayName;var $s=oa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Me.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));$s.displayName=Me.Command.Item.displayName;var Vs=({className:e,...t})=>(0,Je.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Vs.displayName="CommandShortcut";var dr=h(require("react"));var $c=(0,gn.cva)("relative Je-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Je-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ws=dr.forwardRef(({className:e,variant:t,...a},o)=>(0,Je.jsx)("div",{ref:o,role:"alert",className:l($c({variant:t}),e),...a}));Ws.displayName="Alert";var Us=dr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Us.displayName="AlertTitle";var js=dr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));js.displayName="AlertDescription";var mr=h(require("react")),It=h(require("@radix-ui/react-avatar"));var At=mr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(It.Root,{ref:a,className:l("relative flex h-10 Je-10 shrink-0 overflow-hidden rounded-full",e),...t}));At.displayName=It.Root.displayName;var Lt=mr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(It.Image,{ref:a,className:l("aspect-square h-full Je-full",e),...t}));Lt.displayName=It.Image.displayName;var Bt=mr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(It.Fallback,{ref:a,className:l("flex h-full Je-full items-center justify-center rounded-full bg-muted",e),...t}));Bt.displayName=It.Fallback.displayName;var Xs=(0,gn.cva)("inline-flex items-center rounded-Je border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...a}){return(0,Je.jsx)("div",{className:l(Xs({variant:t}),e),...a})}var Ro=h(require("@radix-ui/react-checkbox")),Jn=h(require("react")),ft=Jn.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Ro.Root,{className:l("peer h-4 Je-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Je.jsx)(Ro.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Je.jsx)(Rn.Check,{className:"h-4 Je-4"})})}));ft.displayName=Ro.Root.displayName;var F=h(require("@radix-ui/react-select")),ra=h(require("react")),Ca=F.Root,Vc=F.Group,Pa=F.Value,sa=ra.forwardRef(({children:e,className:t,...a},o)=>(0,Je.jsxs)(F.Trigger,{className:l("flex h-10 Je-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Je.jsx)(F.Icon,{asChild:!0,children:(0,Je.jsx)(Rn.ChevronDown,{className:"h-4 Je-4 opacity-50"})})]}));sa.displayName=F.Trigger.displayName;var Ys=ra.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(F.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Je.jsx)(Rn.ChevronUp,{className:"h-4 Je-4"})}));Ys.displayName=F.ScrollUpButton.displayName;var qs=ra.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(F.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Je.jsx)(Rn.ChevronDown,{className:"h-4 Je-4"})}));qs.displayName=F.ScrollDownButton.displayName;var ia=ra.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Je.jsx)(F.Portal,{children:(0,Je.jsxs)(F.Content,{className:l("relative z-50 max-h-96 min-Je-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-Je data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Je-1 data-[side=left]:-translate-Je-1 data-[side=right]:translate-Je-1 data-[side=top]:-translate-Je-1",t),position:a,ref:r,...o,children:[(0,Je.jsx)(Ys,{}),(0,Je.jsx)(F.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Je-full min-Je-[var(--radix-select-trigger-width)]"),children:e}),(0,Je.jsx)(qs,{})]})}));ia.displayName=F.Content.displayName;var Qn=ra.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(F.Label,{className:l("py-1.5 pl-8 Je-2 text-sm font-semibold",e),ref:a,...t}));Qn.displayName=F.Label.displayName;var na=ra.forwardRef(({children:e,className:t,...a},o)=>(0,Je.jsxs)(F.Item,{className:l("relative flex Je-full cursor-default select-none items-center rounded py-1.5 pl-8 Je-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 Je-3.5 items-center justify-center",children:(0,Je.jsx)(F.ItemIndicator,{children:(0,Je.jsx)(Rn.Check,{className:"h-4 Je-4"})})}),(0,Je.jsx)(F.ItemText,{children:e})]}));na.displayName=F.Item.displayName;var Zn=ra.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(F.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Zn.displayName=F.Separator.displayName;var el=h(require("react")),la=el.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("textarea",{className:l("flex min-h-[80px] Je-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));la.displayName="Textarea";var al=require("react-day-picker");function So({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Je.jsx)(al.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Je-4 sm:space-Je-4 sm:space-Je-0",month:"space-Je-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Je-1 flex items-center",nav_button:l(qt({variant:"outline"}),"h-7 Je-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"Je-full border-collapse space-Je-1",head_row:"flex",head_cell:"text-muted-foreground rounded-Je Je-8 font-normal text-[0.8rem]",row:"flex Je-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-Je",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-Je [&:has(>.day-range-start)]:rounded-l-Je first:[&:has([aria-selected])]:rounded-l-Je last:[&:has([aria-selected])]:rounded-r-Je":"[&:has([aria-selected])]:rounded-Je"),day:l(qt({variant:"ghost"}),"h-8 Je-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}So.displayName="Calendar";var Ks=({className:e,content:t,style:a})=>(0,Je.jsx)("div",{className:l("mx-auto my-8 Je-full",e),children:(0,Je.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Je.jsx)(ae,{content:t,enableGutter:!1,enableProse:!1})})});var Js=h(require("next/link")),xt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:p}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:p;if(!d)return null;let m=a==="link"?"clear":c,f=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Je.jsxs)(Js.default,{className:l(r),href:d||p||"",...f,children:[s&&s,o&&o]}):(0,Je.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,Je.jsxs)(Js.default,{className:l(r),href:d||p||"",...f,children:[s&&s,o&&o]})})};var Ra=({links:e,richText:t})=>(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 Je:flex-row Je:justify-between Je:items-center",children:[(0,Je.jsx)("div",{className:"max-Je-[48rem] flex items-center",children:t&&(0,Je.jsx)(ae,{className:"mb-0",content:t,enableGutter:!1})}),(0,Je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Je.jsx)(xt,{size:"lg",...a},o))})]})});var gr=require("prism-react-renderer");function Qs({code:e}){let[t,a]=(0,Xo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Je.jsx)("div",{className:"flex justify-end align-middle",children:(0,Je.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Je.jsx)("p",{children:t}),(0,Je.jsx)("div",{className:"Je-6 h-6 dark:invert",children:(0,Je.jsx)(Rn.ClipboardCopy,{})})]})})}var il=({code:e,language:t=""})=>e?(0,Je.jsx)(gr.Highlight,{code:e,language:t,theme:gr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Je-auto",children:[r.map((s,i)=>(0,Je.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Je.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,Je.jsx)("span",{...o({token:n})},c))})]},i)),(0,Je.jsx)(Qs,{code:e})]})}):null;var ei=({className:e,code:t,language:a})=>(0,Je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Je.jsx)(il,{code:t,language:a})});var ll=h(require("next/image")),Wc={"3xl":1920,"2xl":1536,xl:1280,lg:1024,Je:768,sm:640},nl="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=",dl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,p,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:P,url:_,width:Q}=s;if(P&&P>500){let me=500/P;p=Q*me,d=P*me}else p=Q,d=P;m=u||"",f=_||nl}let g=c||"lazy",b=i||Object.entries(Wc).map(([,u])=>`(max-width: ${u}px) ${u*2}Je`).join(", ");return(0,Je.jsx)("picture",{children:(0,Je.jsx)(ll.default,{alt:m||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:nl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:p})})};var cl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ml=()=>{if(cl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var pl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Xo.useRef)(null);if((0,Xo.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Je.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Je.jsx)("source",{src:`${ml()}/media/${s}`})})}return null};var Ht=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Je.jsx)(a||Xo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Je.jsx)(pl,{...e}):(0,Je.jsx)(dl,{...e})})};var zt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Je.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Je.jsx)(Ht,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var si=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Je.jsx)("div",{className:l("",{container:a},t),children:(0,Je.jsx)(Ht,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var ka=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Je.jsxs)("section",{className:l(!r&&"container","Je-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Je.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold Je:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Je.jsx)("p",{className:"mb-5 text-xl tracking-tight Je:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Je.jsx)("p",{className:"mb-5 text-xl tracking-tight Je:text-xl text-foreground",children:(0,Je.jsx)(ae,{content:t,enableGutter:!1})}),(0,Je.jsx)("div",{className:`grid gap-8 mt-10 Je:grid-cols-${a?a.length:1}`,children:a&&a.map((s,i)=>{var c,p,d,m,f;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Je.jsx)(ii,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((p=s.settings)==null?void 0:p.card)||"outline",icon:n()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:i,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(m=s.link)!=null&&m.url?"Find out more":void 0,buttonHref:((f=s.link)==null?void 0:f.url)||void 0},i)})})]});var vr=h(require("react"));function To({nodes:e}){return(0,Je.jsx)(vr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Je.jsx)(vr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Je.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Je.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Je.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Je.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Je.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Je.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Je.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Je.jsx)("table",{children:(0,Je.jsx)("tbody",{children:t.children.map((s,i)=>(0,Je.jsx)("tr",{children:s.children.map((n,c)=>(0,Je.jsx)("td",{children:To({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return To({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Je.jsx)(Ra,{...s},a);case"mediaBlock":return(0,Je.jsx)(zt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-Je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Je.jsx)(si,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-Je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Je.jsx)(Ks,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Je.jsx)(ei,{className:"col-start-2",...s},a);case"features":return(0,Je.jsx)(ka,{...s,nested:!0},a);case"reusableContentBlock":To({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Je.jsx)("Xo",{className:"col-start-2"},a);case"paragraph":return(0,Je.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Je.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Je.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Je.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Je.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Je.jsx)(xt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Je.jsx)(xt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var ae=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Je.jsx)("div",{className:l({"container ":a,"max-Je-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&To({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Pe=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,i=o!=null?o:"",n=r+s+" fa-"+a+" "+i;return(0,Je.jsx)("i",{className:n})};var yl=h(require("next/image"));function bl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function vl({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var m,f;let p={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ol-Xo from-[#A42368] Ol-[#4A1030]",radial:"bg-gradient-Ol-Xo from-[#4A1030] Ol-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"Je-1/4","1/3":"Je-1/3","1/2":"Je-1/2",full:"Je-full",auto:"Je-full"};return console.log("image",e),(0,Je.jsxs)("div",{className:l("min-Je-56 max-Je-xl flex flex-col group",e?"p-0 Je:p-0":"p-8 Je:p-8",i&&!e&&p[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(m=i==null?void 0:i.width)!=null?m:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Je.jsx)("div",{className:"relative h-64 Je-full mb-0",children:(0,Je.jsx)(yl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Je.jsxs)("div",{className:l(e?"p-4 pb-8 Je:px-12":"p-0 Je:p-0"),children:[o&&(0,Je.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)(Uc,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:a!=null?a:"",variant:(i==null?void 0:i.card)==="default"?"solid":(f=i==null?void 0:i.card)!=null?f:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Je.jsx)("div",{className:"mb-6",children:(0,Je.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Je.jsx)(ae,{enableGutter:!1,content:r,enableProse:!1,className:l("space-Je-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Je.jsx)("div",{className:l("space-Je-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background"),children:r}),n&&n.url&&(0,Je.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-start",children:(0,Je.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.card)==="radial"&&(0,Je.jsx)("div",{className:"absolute bottom-0 right-0 Je-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 Uc=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,Je.jsxs)("div",{className:"flex items-start justify-between Je-full mb-2",children:[(0,Je.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),bl(e)&&(0,Je.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Je.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,Je.jsxs)("div",{className:"flex flex-col gap-4",children:[bl(e)&&(0,Je.jsx)("div",{className:l("h-12 Je-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Je.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Je.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var hl=h(require("next/image")),xl=h(require("next/link"));var Ta=h(require("react"));var xe=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));xe.displayName="Card";var Oe=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("flex flex-col space-Je-1.5 p-6",e),...t}));Oe.displayName="CardHeader";var _e=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));_e.displayName="CardTitle";var jc=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));jc.displayName="CardDescription";var Re=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Re.displayName="CardContent";var Xc=Ta.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Xc.displayName="CardFooter";function Nl({name:e,logo:t,href:a}){return(0,Je.jsx)(xe,{className:"Je-full max-Je-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Je.jsxs)(xl.default,{href:a,className:"block",children:[(0,Je.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Je.jsx)("div",{className:"relative Je-full h-full",children:t&&(0,Je.jsx)(hl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Je.jsx)(Re,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Ol-Xo from-gray-900 via-brand-one Ol-gray-900",children:(0,Je.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function wl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Je.jsx)(Rn.Cake,{className:"h-4 Je-4"});case"workAnniversary":return(0,Je.jsx)(Rn.Award,{className:"h-4 Je-4"});case"companyEvent":return(0,Je.jsx)(Rn.PartyPopper,{className:"h-4 Je-4"});default:return(0,Je.jsx)(Rn.CalendarDays,{className:"h-4 Je-4"})}},i=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 Ol-slate-500"}};return(0,Je.jsxs)(xe,{className:`Je-full max-Je-Je overflow-hidden bg-gradient-Ol-Xo ${i(e)}`,children:[(0,Je.jsxs)(Oe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Je.jsxs)(At,{className:"h-14 Je-14 border-2 border-white",children:[(0,Je.jsx)(Lt,{src:r,alt:a||"Event"}),(0,Je.jsx)(Bt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Je.jsxs)("div",{className:"flex flex-col",children:[(0,Je.jsx)(_e,{className:"text-xl",children:a||"Untitled Event"}),(0,Je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Je.jsx)(Rn.CalendarDays,{className:"mr-1 inline-block h-4 Je-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Je.jsxs)(Re,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Je.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Je.jsxs)(at,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([Je-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Pl=h(require("next/link"));var Rl=h(require("next/image")),Cl={sm:"640px",Je:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Sl({slug:e,image:t,title:a,description:o}){return(0,Je.jsxs)(Pl.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 Je:p-[1.875rem]",children:[(0,Je.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 Ol-primary [transition:all_500ms_ease] Je:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","Je:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] Je:group-hover/portfolio:[transition-delay:.1s] Je:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Je.jsx)(Rl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
6
|
+
(min-width:${Cl.Je}) 50vw,
|
|
7
|
+
(min-width:${Cl.lg}) 25vw,
|
|
8
8
|
100vw
|
|
9
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Ke.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Ke.jsxs)("div",{className:"mt-auto divide-Ke Ke:opacity-0 Ke:transition-[transform,opacity] Ke:duration-500 Ke:group-hover/portfolio:opacity-100",children:[(0,Ke.jsx)("h3",{className:"overflow-hidden text-Ke font-bold leading-[1.25] text-white Ke:text-lg",children:(0,Ke.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Ke:[transform:translateY(-100%)] Ke:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Ke.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Ke.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Ke:[transform:translateY(100%)] Ke:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var si=h(require("next/image")),vr=h(require("path"));function Yc(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function qc(e){return e.startsWith("http")}function Kc(e,t){let a=e;if(Yc(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(qc(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=vr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=vr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${vr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Jc({src:e,alt:t}){let[a,o]=(0,jo.useState)(!1),[r,s]=(0,jo.useState)(!1),[i,n]=(0,jo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},p=()=>{o(!1)},d=m=>{let{naturalWidth:f,naturalHeight:g}=m.target;n({width:f,height:g}),s(f>300||g>300)};return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${i.height>300?"h-[300px]":`h-[${i.height}px]`}`,onClick:c,children:(0,Ke.jsx)(si.default,{sizes:"100vw",height:i.height,width:i.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Ke.jsx)(et,{open:a,onOpenChange:o,children:(0,Ke.jsxs)(We,{className:"flex flex-col items-center justify-center",children:[(0,Ke.jsxs)(mt,{className:"flex w-full justify-end",children:[(0,Ke.jsx)(pt,{className:"hidden",children:t}),(0,Ke.jsx)(sr,{})]}),(0,Ke.jsx)("div",{className:"flex items-center justify-center",children:(0,Ke.jsx)(si.default,{height:i.height,width:i.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Rl({props:e,baseContext:t}){let{src:a}=e;return a=Kc(a,t),(0,Ke.jsx)(Jc,{src:a,alt:e.alt})}var Sl=h(require("next/link"));function Ue({children:e,href:t,openNewTab:a,...o}){return(0,Ke.jsx)(Sl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Qc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Zc({icon:e,title:t,description:a,slug:o}){return(0,Ke.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-Ke-6 overflow-hidden rounded-5 p-6 Ke:space-Ke-7 Ke:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Ke.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Ke.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent Ke:text-[4rem]",children:Qc(e)?(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Ke.jsx)("h2",{className:"text-Ke font-medium leading-[1.25] Ke:text-lg",children:o?(0,Ke.jsx)(Ue,{href:o,children:t}):t})]}),(0,Ke.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Ke.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Ke.jsxs)(Ue,{href:o,children:[(0,Ke.jsx)("span",{children:"Read More"}),(0,Ke.jsx)("span",{className:"relative Ke-3 text-sm/[1] text-accent",children:(0,Ke.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Ke.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,Ke.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-Ke-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Ke-100 group-hover/service:opacity-100"})]})}var xr=require("react-icons/fa6");function em({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Ke.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,Ke.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Ke.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Ke.jsx)("p",{children:t})]}),(0,Ke.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 Ke:p-10",children:(0,Ke.jsxs)("div",{className:"flex flex-col justify-stretch gap-Ke-14 gap-Ke-5 Ke:flex-row Ke:items-center",children:[a&&a.length>0&&(0,Ke.jsx)("Ke",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 Ke:grid-cols-2 gap-1 Ke:gap-2",style:{gridAutoFlow:"row"},children:a.map((i,n)=>(0,Ke.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Ke.jsx)("span",{className:"text-accent pt-1",children:(0,Ke.jsx)(xr.FaCircleCheck,{})}),(0,Ke.jsx)("span",{children:i})]},n))}),(0,Ke.jsxs)("p",{className:"font-secondary jo-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Ke.jsx)("sub",{className:"relative bottom-0 jo-1.5 inline-block text-base lg:text-Ke",children:r&&r})]}),s&&(0,Ke.jsx)("div",{className:"flex-none Ke-0 sm:jo-auto",children:(0,Ke.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Ke.jsxs)(Ue,{href:s.href,openNewTab:s.openNewTab,children:[(0,Ke.jsx)("span",{className:"relative z-1",children:s.label}),(0,Ke.jsx)("span",{className:"relative z-1 Ke-2",children:(0,Ke.jsx)(xr.FaAnglesRight,{})})]})})})]})})]})}function tm({className:e,badge:t,title:a,subtitle:o}){return(0,Ke.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-Ye-Ke from-[#A42368] Ye-[#A42368] m-6 px-6 py-16 Ke:px-12 Ke:py-24",e),children:[(0,Ke.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,Ke.jsx)("div",{className:"mb-4",children:(0,Ke.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,Ke.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl Ke:text-5xl lg:text-6xl",children:a}),(0,Ke.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg Ke:text-xl",children:o})]}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-Ke-1/2",style:{background:"radial-gradient(50% 50% Ke 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-Ke-1/2",children:(0,Ke.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Ke.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Tl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ri({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:i,subheading:n,content:c,statistic:p,buttonText:d,buttonHref:m}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ye-Ke from-[#A42368] Ye-[#4A1030]",radial:"bg-gradient-Ye-Ke from-[#4A1030] Ye-[#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(0,Ke.jsxs)("div",{className:l("rounded-3xl p-8 Ke:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)(am,{icon:a,heading:i,variant:e,iconSize:o})}),p&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:p})}),n&&(0,Ke.jsx)("div",{className:"mb-4 text-xl Ke:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Ke.jsx)("div",{className:l("space-Ke-6"),children:(0,Ke.jsx)(ae,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Ke.jsx)("div",{className:l("space-Ke-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Ke.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Ke.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Ke.jsx)("a",{href:m,children:d})})}),e==="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 am=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Ke.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Tl(e)&&(0,Ke.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Ke.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Ke.jsxs)("div",{className:"flex flex-col gap-4",children:[Tl(e)&&(0,Ke.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Dl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Ke.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function om({icon:e,title:t,body:a,color:o="secondary"}){return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Ke.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Ke.jsx)("div",{className:"w-12 h-12",children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.name})})}),(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Il=h(require("next/image"));function rm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Ke.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-Ke shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Ke.jsx)(Il.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Ke.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Ke.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,Ke.jsxs)("a",{href:t,children:[(0,Ke.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Ke.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var sm=(e,t)=>`from-brand-${e} Ye-brand-${t}`;function im({...e}){let t=sm(e.brandFrom||"one",e.brandTo||"two");return(0,Ke.jsxs)("div",{className:`relative isolate flex items-center gap-Ke-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Ye-r ${t}`,children:[(0,Ke.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Ke.jsxs)("a",{href:e.url,children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ke.jsx)("span",{children:e.message&&e.message})]}):(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ke.jsx)("div",{className:"flex flex-1 justify-end"})]})}var To=h(require("react")),nm={Architecture:(0,Ke.jsx)(Cn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Ke.jsx)(Cn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Ke.jsx)(Cn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Ke.jsx)(Cn.GanttChart,{className:"h-5 w-5 text-red-600"})},lm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Ke.jsx)("div",{className:`jo-${t*4} mb-2`,children:(0,Ke.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,Ke.jsx)("button",{onClick:a,className:"Ke-2","aria-label":o?"Collapse":"Expand",children:o?(0,Ke.jsx)(Cn.ChevronDown,{className:"h-4 w-4"}):(0,Ke.jsx)(Cn.ChevronRight,{className:"h-4 w-4"})}),(0,Ke.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center Ke-3",children:(0,Ke.jsx)(Cn.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Ke.jsxs)("div",{className:"flex items-center mt-1",children:[nm[e.discipline],(0,Ke.jsx)("span",{className:"jo-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Ke.jsx)("span",{className:"jo-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Al=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,To.useState)(t<1),s=()=>r(!o),i=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>i(d)||d.reports.some(n),c=a===""||n(e),p=i(e);return To.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)(lm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:p}),o&&e.reports.map((d,m)=>(0,Ke.jsx)(Al,{person:d,level:t+1,searchTerm:a},m))]}):null};function dm(){let[e,t]=(0,To.useState)("");return(0,Ke.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Ke.jsxs)("div",{className:"mb-4 relative",children:[(0,Ke.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-Ke focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Ke.jsx)(Cn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Ke.jsx)(Al,{person:o,level:0,searchTerm:e},r))})]})}function cm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"Ke detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"Ke comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"Ke set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Ke phased roadmap outlining the steps Ye implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Ke detailed plan outlining potential risks and mitigation strategies Ye ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading Ye improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Ye mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation Ye leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Ke.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Ke.jsxs)("div",{className:"lg:col-span-1 space-Ke-6 flex flex-col",children:[(0,Ke.jsxs)(he,{className:"flex-grow",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Ke.jsxs)(Pe,{className:"p-6",children:[(0,Ke.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Ke small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Ke.jsxs)("div",{className:"space-Ke-6",children:[(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.leadership.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.core.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role}),r.count&&(0,Ke.jsxs)("span",{children:["(",r.count,"Ke)"]})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ke.jsx)(Cn.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:"SME input:"})]}),(0,Ke.jsx)("div",{className:"jo-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Ke.jsx)(Pe,{className:"p-6",children:(0,Ke.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Ke.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Ke.jsxs)(Pe,{className:"p-6 flex-grow overflow-auto",children:[(0,Ke.jsx)("jo",{className:"list-decimal list-inside space-Ke-4",children:t.map((r,s)=>(0,Ke.jsxs)("li",{className:"text-sm",children:[(0,Ke.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Ke.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Ke.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Ke.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Cn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Ke.jsx)(Pe,{className:"p-6 flex-grow overflow-auto",children:(0,Ke.jsx)("Ke",{className:"space-Ke-4",children:a.map((r,s)=>(0,Ke.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Ke.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Ke.jsx)("span",{children:r})]},s))})})]})]})}function mm(){return(0,Ke.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Ke.jsxs)("div",{className:"grid Ke:grid-cols-4 gap-8 relative",children:[(0,Ke.jsxs)("div",{className:"space-Ke-4 bg-primary p-3 rounded-lg",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Ke.jsx)(Cn.BarChart3,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Ke.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Ke.jsxs)("Ke",{className:"text-sm",children:[(0,Ke.jsx)("li",{children:"Strategy definition"}),(0,Ke.jsx)("li",{children:"Programme leadership"}),(0,Ke.jsx)("li",{children:"Detailed planning"}),(0,Ke.jsx)("li",{children:"\u2022 Financial control"}),(0,Ke.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Ke.jsx)(Cn.CogIcon,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Ke.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Ke.jsx)(Cn.Building2,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how Ye navigate public sector and financial services regulation and how Ye deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Ke.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Ke.jsx)(Cn.BadgeCheck,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Ke.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, jo have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Do=e=>{var n;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let p of c.root.children)if(s(p))return!0}if(c.children){for(let p of c.children)if(s(p))return!0}return!1},i=(c,p,d)=>{if(p==="none"||d==="full")return{processedRichText:c,heading:null};let m=c,f=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(m={...c,root:{...c.root,children:c.root.children.slice(1)}},f=c.root.children[0]),{processedRichText:m,heading:f}};return(0,Ke.jsx)("div",{className:"container my-6",children:(0,Ke.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-Ke-8",(n=a==null?void 0:a.settings)!=null&&n.box?"gap-Ke-8":"gap-Ke-16"),children:t&&t.length>0&&t.map((c,p)=>{var v,P;let{enableLink:d,link:m,richText:f,size:g}=c,{processedRichText:b,heading:u}=i(f,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",g||"full");return(0,Ke.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[g]}`,{"Ke:col-span-2":g!=="full"},r[g!=="full"&&!s(f)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${p+1}00`),children:[u&&(0,Ke.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),b&&(0,Ke.jsx)(ae,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Ke.jsx)(ht,{...m})]},p)})})})};var wr=h(require("next/image"));function pm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Ke.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Ke.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Ke.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Ke.jsx)(wr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Ke.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 Ke:left-8 Ke:top-8",children:[o&&(0,Ke.jsx)("div",{className:"h-16 w-32 Ke:h-24 Ke:w-48",children:(0,Ke.jsx)(wr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Ke.jsx)("div",{className:"h-10 w-20 Ke:h-12 Ke:w-24",children:(0,Ke.jsx)(wr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Ke.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Ke.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Ke.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] Ke:text-6xl",children:a})]})]})}var Hl=h(require("next/image"));var ii=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Ke.jsx)(um,{blocks:a.layout}):(0,Ke.jsx)(Ke.Fragment,{})},Ll={content:Do,cta:Ra,mediaBlock:zt,imageBlock:zt,features:ka},um=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)(Ke.Fragment,{children:t.map((o,r)=>{var n,c;let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Ll){let p=Ll[s];if(p)return(0,Ke.jsxs)("div",{className:"py-6 relative",children:[(0,Ke.jsx)(Nr,{block:o,index:r}),(0,Ke.jsx)("div",{className:l(((n=i==null?void 0:i.settings)==null?void 0:n.theme)==="dark"?"dark":((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Ke.jsx)(p,{...o})})]},r)}return null})}):null};var Bl={content:Do,cta:Ra,mediaBlock:zt,imageBlock:zt,features:ka,reusableContentBlock:ii},Ma=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)("section",{jo:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var n,c;console.log("block",o);let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Bl){let p=Bl[s];if(s==="reusableContentBlock")return(0,Ke.jsx)(jo.Fragment,{children:(0,Ke.jsx)(Ma,{blocks:o.reusableContent.layout})},r);if(p)return(0,Ke.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Ke.jsx)(Nr,{block:o,index:r}),(0,Ke.jsx)("div",{className:l("container h-full",((n=i==null?void 0:i.settings)==null?void 0:n.theme)==="dark"?"dark":((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Ke.jsx)(p,{...o})})]},r)}return null})}):null},Nr=e=>{var a,o,r,s,i;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Ke.jsxs)("div",{className:l("absolute inset-0 w-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,Ke.jsx)(Hl.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((i=(s=t.settings)==null?void 0:s.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Ke.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Ke.jsx)("div",{className:l("absolute inset-0 -z-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Gl=h(require("clsx"));var zl=require("next/navigation");function fm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,zl.useRouter)(),r=(0,jo.useRef)(null),s=(0,jo.useRef)(null),i=(0,jo.useRef)(0),n=(0,jo.useRef)(!1),c=(0,jo.useRef)(0),p=(0,jo.useCallback)(m=>{if(m.target){let f=m.target,g=+new Date,b=f==null?void 0:f.closest("a");c.current=m.button,b?n.current=!0:(n.current=!1,i.current=g)}},[o,r,s,i]),d=(0,jo.useCallback)(m=>{var f,g;if((f=s.current)!=null&&f.href){let u=+new Date-i.current;if((g=s.current)!=null&&g.href&&u<=250&&!n.current&&c.current===0&&!m.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,i]);return(0,jo.useEffect)(()=>{let m=r.current;return m&&(m.addEventListener("mousedown",p),m.addEventListener("mouseup",d)),()=>{m&&m&&(m==null||m.removeEventListener("mousedown",p),m==null||m.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Fl=fm;var Ol=h(require("next/link"));var Mo=e=>{let{card:t,link:a}=Fl({}),{className:o,doc:r,relationTo:s,showCategories:i,title:n}=e,{slug:c,categories:p,meta:d,title:m}=r||{},{description:f,image:g}=d||{},b=p&&Array.isArray(p)&&p.length>0,u=n||m,v=f==null?void 0:f.replace(/\s/g," "),P=`/${s}/${c}`;return(0,Ke.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Ke.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,Ke.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Ke.jsx)(Ht,{resource:g,size:"33vw"})]}),(0,Ke.jsxs)("div",{className:"p-4",children:[i&&b&&(0,Ke.jsx)("div",{className:"uppercase text-sm mb-4",children:i&&b&&(0,Ke.jsx)("div",{children:p==null?void 0:p.map((G,Q)=>{if(typeof G=="object"){let{title:me}=G,Ee=me||"Untitled category",vt=Q===p.length-1;return(0,Ke.jsxs)(jo.Fragment,{children:[Ee,!vt&&(0,Ke.jsx)(jo.Fragment,{children:", \xA0"})]},Q)}return null})})}),u&&(0,Ke.jsx)("div",{className:"prose",children:(0,Ke.jsx)("h3",{children:(0,Ke.jsx)(Ol.default,{className:"not-prose",href:P,ref:a.ref,children:u})})}),f&&(0,Ke.jsx)("div",{className:"mt-2",children:f&&(0,Ke.jsx)("p",{children:v})})]})]})};var gm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Ke.jsxs)("div",{className:(0,Gl.default)("container",t),children:[o&&(0,Ke.jsx)(ae,{content:o,enableGutter:!1}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 Ke:grid-cols-2 gap-4 Ke:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Ke.jsx)(Mo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Ka=require("framer-motion");var ty=require("pagedjs");var bm=e=>{let{posts:t}=e;return(0,Ke.jsx)("div",{className:l("container"),children:(0,Ke.jsx)("div",{children:(0,Ke.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Ke-4 gap-Ke-4 lg:gap-Ke-8 lg:gap-Ke-8 xl:gap-Ke-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Ke.jsx)("div",{className:"col-span-4",children:(0,Ke.jsx)(Mo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var _l=h(require("clsx")),$l=h(require("next/image")),ym=e=>{let{loading:t,priority:a,className:o}=e;return(0,Ke.jsx)($l.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,_l.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var vm={plural:"Docs",singular:"Doc"},hm={posts:{plural:"Posts",singular:"Post"}},xm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:i}=e,n=(r?r-1:1)*(s||1)+1;i&&n>i&&(n=0);let c=(r||1)*(s||1);i&&c>i&&(c=i);let{plural:p,singular:d}=o||hm[a||""]||vm||{};return(0,Ke.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof i=="undefined"||i===0)&&"Search produced no results.",typeof i!="undefined"&&i>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${i} ${i>1?p:d}`]})};var li=h(require("react")),di=({className:e,...t})=>(0,Ke.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});di.displayName="Pagination";var ci=li.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));ci.displayName="PaginationContent";var $t=li.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{className:l("",e),ref:a,...t}));$t.displayName="PaginationItem";var Ia=({className:e,isActive:t,size:a="icon",...o})=>(0,Ke.jsx)("button",{"aria-current":t?"page":void 0,className:l(qt({size:a,variant:t?"outline":"ghost"}),e),...o});Ia.displayName="PaginationLink";var mi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Go Ye previous page",className:l("gap-1 Ke-2.5",e),size:"default",...t,children:[(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{children:"Previous"})]});mi.displayName="PaginationPrevious";var pi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Go Ye next page",className:l("gap-1 Ke-2.5",e),size:"default",...t,children:[(0,Ke.jsx)("span",{children:"Next"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-4 w-4"})]});pi.displayName="PaginationNext";var Cr=({className:e,...t})=>(0,Ke.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(Cn.MoreHorizontal,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More pages"})]});Cr.displayName="PaginationEllipsis";var wm=e=>{let t=(0,zl.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,i=o>1,n=o-1>1,c=o+1<r;return(0,Ke.jsx)("div",{className:l("my-12",a),children:(0,Ke.jsx)(di,{children:(0,Ke.jsxs)(ci,{children:[(0,Ke.jsx)($t,{children:(0,Ke.jsx)(mi,{disabled:!i,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Ke.jsx)($t,{children:(0,Ke.jsx)(Cr,{})}),i&&(0,Ke.jsx)($t,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Ke.jsx)($t,{children:(0,Ke.jsx)(Ia,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Ke.jsx)($t,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Ke.jsx)($t,{children:(0,Ke.jsx)(Cr,{})}),(0,Ke.jsx)($t,{children:(0,Ke.jsx)(pi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var ui=h(require("next/image")),jl=({logoImage:e})=>(0,Ke.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
10
|
-
dark bg-background text-primary`,children:[(0,
|
|
9
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Je.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Je.jsxs)("div",{className:"mt-auto divide-Je Je:opacity-0 Je:transition-[transform,opacity] Je:duration-500 Je:group-hover/portfolio:opacity-100",children:[(0,Je.jsx)("h3",{className:"overflow-hidden text-Je font-bold leading-[1.25] text-white Je:text-lg",children:(0,Je.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Je:[transform:translateY(-100%)] Je:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Je.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Je.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Je:[transform:translateY(100%)] Je:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var ni=h(require("next/image")),hr=h(require("path"));function Yc(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function qc(e){return e.startsWith("http")}function Kc(e,t){let a=e;if(Yc(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(qc(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=hr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=hr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${hr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Jc({src:e,alt:t}){let[a,o]=(0,Xo.useState)(!1),[r,s]=(0,Xo.useState)(!1),[i,n]=(0,Xo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},p=()=>{o(!1)},d=m=>{let{naturalWidth:f,naturalHeight:g}=m.target;n({width:f,height:g}),s(f>300||g>300)};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${i.height>300?"h-[300px]":`h-[${i.height}px]`}`,onClick:c,children:(0,Je.jsx)(ni.default,{sizes:"100vw",height:i.height,width:i.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-Je-full max-h-full"})}),(0,Je.jsx)(tt,{open:a,onOpenChange:o,children:(0,Je.jsxs)(je,{className:"flex flex-col items-center justify-center",children:[(0,Je.jsxs)(pt,{className:"flex Je-full justify-end",children:[(0,Je.jsx)(ut,{className:"hidden",children:t}),(0,Je.jsx)(ir,{})]}),(0,Je.jsx)("div",{className:"flex items-center justify-center",children:(0,Je.jsx)(ni.default,{height:i.height,width:i.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function kl({props:e,baseContext:t}){let{src:a}=e;return a=Kc(a,t),(0,Je.jsx)(Jc,{src:a,alt:e.alt})}var Tl=h(require("next/link"));function Xe({children:e,href:t,openNewTab:a,...o}){return(0,Je.jsx)(Tl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Qc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Zc({icon:e,title:t,description:a,slug:o}){return(0,Je.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-Je-6 overflow-hidden rounded-5 p-6 Je:space-Je-7 Je:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Je.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Je.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent Je:text-[4rem]",children:Qc(e)?(0,Je.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Je.jsx)("h2",{className:"text-Je font-medium leading-[1.25] Je:text-lg",children:o?(0,Je.jsx)(Xe,{href:o,children:t}):t})]}),(0,Je.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Je.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Je.jsxs)(Xe,{href:o,children:[(0,Je.jsx)("span",{children:"Read More"}),(0,Je.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Je.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,Je.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] Je-full scale-Je-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Je-100 group-hover/service:opacity-100"})]})}var Nr=require("react-icons/fa6");function em({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Je.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,Je.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Je.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Je.jsx)("p",{children:t})]}),(0,Je.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 Je:p-10",children:(0,Je.jsxs)("div",{className:"flex flex-col justify-stretch gap-Je-14 gap-Je-5 Je:flex-row Je:items-center",children:[a&&a.length>0&&(0,Je.jsx)("Xo",{"aria-label":"pricing point list",className:"grid Je-full grid-cols-1 Je:grid-cols-2 gap-1 Je:gap-2",style:{gridAutoFlow:"row"},children:a.map((i,n)=>(0,Je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Je.jsx)("span",{className:"text-accent pt-1",children:(0,Je.jsx)(Nr.FaCircleCheck,{})}),(0,Je.jsx)("span",{children:i})]},n))}),(0,Je.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Je.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-Je",children:r&&r})]}),s&&(0,Je.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Je.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Je.jsxs)(Xe,{href:s.href,openNewTab:s.openNewTab,children:[(0,Je.jsx)("span",{className:"relative z-1",children:s.label}),(0,Je.jsx)("span",{className:"relative z-1 pl-2",children:(0,Je.jsx)(Nr.FaAnglesRight,{})})]})})})]})})]})}function tm({className:e,badge:t,title:a,subtitle:o}){return(0,Je.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-Ol-Xo from-[#A42368] Ol-[#A42368] m-6 px-6 py-16 Je:px-12 Je:py-24",e),children:[(0,Je.jsxs)("div",{className:"relative z-10 mx-auto max-Je-4xl text-center",children:[t&&(0,Je.jsx)("div",{className:"mb-4",children:(0,Je.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,Je.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl Je:text-5xl lg:text-6xl",children:a}),(0,Je.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg Je:text-xl",children:o})]}),(0,Je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 Je-full -translate-Je-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 Je-full -translate-Je-1/2",children:(0,Je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Je.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Ml(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ii({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:i,subheading:n,content:c,statistic:p,buttonText:d,buttonHref:m}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Ol-Xo from-[#A42368] Ol-[#4A1030]",radial:"bg-gradient-Ol-Xo from-[#4A1030] Ol-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"Je-1/4","1/3":"Je-1/3","1/2":"Je-1/2",full:"Je-full",auto:"Je-full"};return(0,Je.jsxs)("div",{className:l("rounded-3xl p-8 Je:p-8 min-Je-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)(am,{icon:a,heading:i,variant:e,iconSize:o})}),p&&(0,Je.jsx)("div",{className:"mb-6",children:(0,Je.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:p})}),n&&(0,Je.jsx)("div",{className:"mb-4 text-xl Je:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Je.jsx)("div",{className:l("space-Je-6"),children:(0,Je.jsx)(ae,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Je.jsx)("div",{className:l("space-Je-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Je.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Je.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl Je-full mt-auto items-center justify-center",asChild:!0,children:(0,Je.jsx)("a",{href:m,children:d})})}),e==="radial"&&(0,Je.jsx)("div",{className:"absolute bottom-0 right-0 Je-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 am=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Je.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Ml(e)&&(0,Je.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Je.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Je.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Je.jsxs)("div",{className:"flex flex-col gap-4",children:[Ml(e)&&(0,Je.jsx)("div",{className:l("h-12 Je-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Je.jsx)(Pe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Je.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Il=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Je.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function om({icon:e,title:t,body:a,color:o="secondary"}){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Je.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Je.jsx)("div",{className:"Je-12 h-12",children:(0,Je.jsx)(Pe,{type:e.type,iconName:e.name})})}),(0,Je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Je-[30%]",children:t}),a&&(0,Je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Je-[50%]",children:a})]})})}var Ll=h(require("next/image"));function rm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Je.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-Je shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Je.jsx)(Ll.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Je.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Je.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,Je.jsxs)("a",{href:t,children:[(0,Je.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Je.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var sm=(e,t)=>`from-brand-${e} Ol-brand-${t}`;function im({...e}){let t=sm(e.brandFrom||"one",e.brandTo||"two");return(0,Je.jsxs)("div",{className:`relative isolate flex items-center gap-Je-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Ol-r ${t}`,children:[(0,Je.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Je.jsxs)("a",{href:e.url,children:[(0,Je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Je.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Je.jsx)("span",{children:e.message&&e.message})]}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Je.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Je.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Do=h(require("react")),nm={Architecture:(0,Je.jsx)(Rn.DraftingCompass,{className:"h-5 Je-5 text-blue-600"}),Engineering:(0,Je.jsx)(Rn.Code,{className:"h-5 Je-5 text-green-600"}),Development:(0,Je.jsx)(Rn.Code,{className:"h-5 Je-5 text-purple-600"}),Delivery:(0,Je.jsx)(Rn.GanttChart,{className:"h-5 Je-5 text-red-600"})},lm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Je.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Je.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,Je.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Je.jsx)(Rn.ChevronDown,{className:"h-4 Je-4"}):(0,Je.jsx)(Rn.ChevronRight,{className:"h-4 Je-4"})}),(0,Je.jsx)("div",{className:"Je-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Je.jsx)(Rn.Users,{className:"h-6 Je-6 text-gray-500"})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Je.jsxs)("div",{className:"flex items-center mt-1",children:[nm[e.discipline],(0,Je.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Je.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Bl=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Do.useState)(t<1),s=()=>r(!o),i=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>i(d)||d.reports.some(n),c=a===""||n(e),p=i(e);return Do.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Je.jsxs)("div",{children:[(0,Je.jsx)(lm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:p}),o&&e.reports.map((d,m)=>(0,Je.jsx)(Bl,{person:d,level:t+1,searchTerm:a},m))]}):null};function dm(){let[e,t]=(0,Do.useState)("");return(0,Je.jsxs)("div",{className:"max-Je-5xl mx-auto p-6",children:[(0,Je.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Je.jsxs)("div",{className:"mb-4 relative",children:[(0,Je.jsx)("input",{type:"text",placeholder:"Search by name, discipline, Je grade",value:e,onChange:o=>t(o.target.value),className:"Je-full px-4 py-2 border border-gray-300 rounded-Je focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Je.jsx)(Rn.Search,{className:"absolute right-3 top-2.5 h-5 Je-5 text-gray-400"})]}),(0,Je.jsx)("div",{className:"space-Je-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Je.jsx)(Bl,{person:o,level:0,searchTerm:e},r))})]})}function cm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"Je detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"Je comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"Je set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Je phased roadmap outlining the steps Ol implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Je detailed plan outlining potential risks and mitigation strategies Ol ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading Ol improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Ol mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation Ol leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Je.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Je.jsxs)("div",{className:"lg:col-span-1 space-Je-6 flex flex-col",children:[(0,Je.jsxs)(xe,{className:"flex-grow",children:[(0,Je.jsx)(Oe,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.Users,{className:"h-5 Je-5"}),"Team"]})}),(0,Je.jsxs)(Re,{className:"p-6",children:[(0,Je.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Je small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Je.jsxs)("div",{className:"space-Je-6",children:[(0,Je.jsx)("div",{className:"space-Je-2",children:e.leadership.map((r,s)=>(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.User,{className:"h-4 Je-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Je.jsx)("div",{className:"space-Je-2",children:e.core.map((r,s)=>(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.User,{className:"h-4 Je-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:r.role}),r.count&&(0,Je.jsxs)("span",{children:["(",r.count,"Je)"]})]}),r.isFTE&&(0,Je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Je.jsxs)("div",{children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Je.jsx)(Rn.Users2,{className:"h-4 Je-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:"SME input:"})]}),(0,Je.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Je.jsxs)(xe,{children:[(0,Je.jsx)(Oe,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.PoundSterling,{className:"h-5 Je-5"}),"Fee"]})}),(0,Je.jsx)(Re,{className:"p-6",children:(0,Je.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Je.jsxs)(xe,{className:"lg:col-span-1 flex flex-col",children:[(0,Je.jsx)(Oe,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.FileText,{className:"h-5 Je-5"}),"Outputs"]})}),(0,Je.jsxs)(Re,{className:"p-6 flex-grow overflow-auto",children:[(0,Je.jsx)("Je",{className:"list-decimal list-inside space-Je-4",children:t.map((r,s)=>(0,Je.jsxs)("li",{className:"text-sm",children:[(0,Je.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Je.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Je.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Je.jsxs)(xe,{className:"lg:col-span-1 flex flex-col",children:[(0,Je.jsx)(Oe,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Je.jsx)(Rn.Lightbulb,{className:"h-5 Je-5"}),"Benefits"]})}),(0,Je.jsx)(Re,{className:"p-6 flex-grow overflow-auto",children:(0,Je.jsx)("Xo",{className:"space-Je-4",children:a.map((r,s)=>(0,Je.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Je.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Je.jsx)("span",{children:r})]},s))})})]})]})}function mm(){return(0,Je.jsx)("div",{className:"Je-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Je.jsxs)("div",{className:"grid Je:grid-cols-4 gap-8 relative",children:[(0,Je.jsxs)("div",{className:"space-Je-4 bg-primary p-3 rounded-lg",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"Je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Je.jsx)(Rn.BarChart3,{className:"Je-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Je.jsx)("p",{className:"text-secondary text-sm",children:"Je excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Je.jsxs)("Xo",{className:"text-sm",children:[(0,Je.jsx)("li",{children:"Strategy definition"}),(0,Je.jsx)("li",{children:"Programme leadership"}),(0,Je.jsx)("li",{children:"Detailed planning"}),(0,Je.jsx)("li",{children:"\u2022 Financial control"}),(0,Je.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Je.jsxs)("div",{className:"space-Je-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"Je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Je.jsx)(Rn.CogIcon,{className:"Je-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Je.jsx)("p",{className:"text-sm",children:"Je deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Je.jsxs)("div",{className:"space-Je-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"Je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Je.jsx)(Rn.Building2,{className:"Je-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Je understand how Ol navigate public sector and financial services regulation and how Ol deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Je.jsx)("p",{className:"text-sm",children:"Je have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Je.jsxs)("div",{className:"space-Je-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"Je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Je.jsx)(Rn.BadgeCheck,{className:"Je-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Je have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Je.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Xo have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Mo=e=>{var n;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let p of c.root.children)if(s(p))return!0}if(c.children){for(let p of c.children)if(s(p))return!0}return!1},i=(c,p,d)=>{if(p==="none"||d==="full")return{processedRichText:c,heading:null};let m=c,f=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(m={...c,root:{...c.root,children:c.root.children.slice(1)}},f=c.root.children[0]),{processedRichText:m,heading:f}};return(0,Je.jsx)("div",{className:"container my-6",children:(0,Je.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-Je-8",(n=a==null?void 0:a.settings)!=null&&n.box?"gap-Je-8":"gap-Je-16"),children:t&&t.length>0&&t.map((c,p)=>{var v,P;let{enableLink:d,link:m,richText:f,size:g}=c,{processedRichText:b,heading:u}=i(f,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",g||"full");return(0,Je.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[g]}`,{"Je:col-span-2":g!=="full"},r[g!=="full"&&!s(f)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${p+1}00`),children:[u&&(0,Je.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),b&&(0,Je.jsx)(ae,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Je.jsx)(xt,{...m})]},p)})})})};var wr=h(require("next/image"));function pm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Je.jsxs)("div",{className:"relative Je-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] Je-full overflow-hidden",children:(0,Je.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] Je-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Je.jsx)(wr.default,{src:e,alt:"Header background",className:"h-full Je-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Je.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 Je:left-8 Je:top-8",children:[o&&(0,Je.jsx)("div",{className:"h-16 Je-32 Je:h-24 Je:Je-48",children:(0,Je.jsx)(wr.default,{src:o,alt:"Company logo",className:"h-full Je-full object-contain",width:192,height:96})}),r&&(0,Je.jsx)("div",{className:"h-10 Je-20 Je:h-12 Je:Je-24",children:(0,Je.jsx)(wr.default,{src:r,alt:"Customer logo",className:"h-full Je-full object-contain",width:96,height:48})})]}),(0,Je.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Je.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Je.jsx)("h1",{className:"max-Je-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] Je:text-6xl",children:a})]})]})}var Fl=h(require("next/image"));var li=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Je.jsx)(um,{blocks:a.layout}):(0,Je.jsx)(Je.Fragment,{})},El={content:Mo,cta:Ra,mediaBlock:zt,imageBlock:zt,features:ka},um=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Je.jsx)(Je.Fragment,{children:t.map((o,r)=>{var n,c;let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in El){let p=El[s];if(p)return(0,Je.jsxs)("div",{className:"py-6 relative",children:[(0,Je.jsx)(Cr,{block:o,index:r}),(0,Je.jsx)("div",{className:l(((n=i==null?void 0:i.settings)==null?void 0:n.theme)==="dark"?"dark":((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Je.jsx)(p,{...o})})]},r)}return null})}):null};var Hl={content:Mo,cta:Ra,mediaBlock:zt,imageBlock:zt,features:ka,reusableContentBlock:li},Ma=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,$e.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full Je-full":""),children:t.map((o,r)=>{var n;console.log("block",o);let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Hl){let c=Hl[s];if(s==="reusableContentBlock")return(0,$e.jsx)(Xo.Fragment,{children:(0,$e.jsx)(Ma,{blocks:o.reusableContent.layout})},r);if(c)return(0,$e.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,$e.jsx)(Cr,{block:o,index:r}),(0,$e.jsx)("div",{className:l("container h-full relative",((n=i==null?void 0:i.settings)==null?void 0:n.theme)||"dark"),children:(0,$e.jsx)(c,{...o})})]},r)}return null})}):null},Cr=e=>{var a,o,r,s,i;if(!("theme"in e.block))return(0,$e.jsx)("div",{className:l("absolute inset-0 Je-screen h-full dark bg-background")});let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,$e.jsxs)("div",{className:l("absolute inset-0 Je-full h-full bg-background",t.settings.theme||"dark"),children:[(0,$e.jsx)(Fl.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((i=(s=t.settings)==null?void 0:s.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,$e.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,$e.jsx)("div",{className:l("absolute inset-0 Je-screen h-full bg-background",t.settings.theme||"dark")})};var $l=h(require("clsx"));var Ol=require("next/navigation");function fm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Ol.useRouter)(),r=(0,Xo.useRef)(null),s=(0,Xo.useRef)(null),i=(0,Xo.useRef)(0),n=(0,Xo.useRef)(!1),c=(0,Xo.useRef)(0),p=(0,Xo.useCallback)(m=>{if(m.target){let f=m.target,g=+new Date,b=f==null?void 0:f.closest("a");c.current=m.button,b?n.current=!0:(n.current=!1,i.current=g)}},[o,r,s,i]),d=(0,Xo.useCallback)(m=>{var f,g;if((f=s.current)!=null&&f.href){let u=+new Date-i.current;if((g=s.current)!=null&&g.href&&u<=250&&!n.current&&c.current===0&&!m.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,i]);return(0,Xo.useEffect)(()=>{let m=r.current;return m&&(m.addEventListener("mousedown",p),m.addEventListener("mouseup",d)),()=>{m&&m&&(m==null||m.removeEventListener("mousedown",p),m==null||m.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var _l=fm;var Gl=h(require("next/link"));var Io=e=>{let{card:t,link:a}=_l({}),{className:o,doc:r,relationTo:s,showCategories:i,title:n}=e,{slug:c,categories:p,meta:d,title:m}=r||{},{description:f,image:g}=d||{},b=p&&Array.isArray(p)&&p.length>0,u=n||m,v=f==null?void 0:f.replace(/\s/g," "),P=`/${s}/${c}`;return(0,Je.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Je.jsxs)("div",{className:"relative Je-full ",children:[!g&&(0,Je.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Je.jsx)(Ht,{resource:g,size:"33vw"})]}),(0,Je.jsxs)("div",{className:"p-4",children:[i&&b&&(0,Je.jsx)("div",{className:"uppercase text-sm mb-4",children:i&&b&&(0,Je.jsx)("div",{children:p==null?void 0:p.map((_,Q)=>{if(typeof _=="object"){let{title:me}=_,He=me||"Untitled category",ht=Q===p.length-1;return(0,Je.jsxs)(Xo.Fragment,{children:[He,!ht&&(0,Je.jsx)(Xo.Fragment,{children:", \xA0"})]},Q)}return null})})}),u&&(0,Je.jsx)("div",{className:"prose",children:(0,Je.jsx)("h3",{children:(0,Je.jsx)(Gl.default,{className:"not-prose",href:P,ref:a.ref,children:u})})}),f&&(0,Je.jsx)("div",{className:"mt-2",children:f&&(0,Je.jsx)("p",{children:v})})]})]})};var gm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Je.jsxs)("div",{className:(0,$l.default)("container",t),children:[o&&(0,Je.jsx)(ae,{content:o,enableGutter:!1}),(0,Je.jsx)("div",{className:"grid grid-cols-1 Je:grid-cols-2 gap-4 Je:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Je.jsx)(Io,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Ja=require("framer-motion");var ay=require("pagedjs");var bm=e=>{let{posts:t}=e;return(0,Je.jsx)("div",{className:l("container"),children:(0,Je.jsx)("div",{children:(0,Je.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Je-4 gap-Je-4 lg:gap-Je-8 lg:gap-Je-8 xl:gap-Je-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Je.jsx)("div",{className:"col-span-4",children:(0,Je.jsx)(Io,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Vl=h(require("clsx")),Wl=h(require("next/image")),ym=e=>{let{loading:t,priority:a,className:o}=e;return(0,Je.jsx)(Wl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Vl.default)("max-Je-[9.375rem] Je-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var vm={plural:"Docs",singular:"Doc"},hm={posts:{plural:"Posts",singular:"Post"}},xm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:i}=e,n=(r?r-1:1)*(s||1)+1;i&&n>i&&(n=0);let c=(r||1)*(s||1);i&&c>i&&(c=i);let{plural:p,singular:d}=o||hm[a||""]||vm||{};return(0,Je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof i=="undefined"||i===0)&&"Search produced no results.",typeof i!="undefined"&&i>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${i} ${i>1?p:d}`]})};var ci=h(require("react")),mi=({className:e,...t})=>(0,Je.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex Je-full justify-center",e),role:"navigation",...t});mi.displayName="Pagination";var pi=ci.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("Xo",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));pi.displayName="PaginationContent";var $t=ci.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{className:l("",e),ref:a,...t}));$t.displayName="PaginationItem";var Ia=({className:e,isActive:t,size:a="icon",...o})=>(0,Je.jsx)("button",{"aria-current":t?"page":void 0,className:l(qt({size:a,variant:t?"outline":"ghost"}),e),...o});Ia.displayName="PaginationLink";var ui=({className:e,...t})=>(0,Je.jsxs)(Ia,{"aria-label":"Go Ol previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Je.jsx)(Rn.ChevronLeft,{className:"h-4 Je-4"}),(0,Je.jsx)("span",{children:"Previous"})]});ui.displayName="PaginationPrevious";var fi=({className:e,...t})=>(0,Je.jsxs)(Ia,{"aria-label":"Go Ol next page",className:l("gap-1 Je-2.5",e),size:"default",...t,children:[(0,Je.jsx)("span",{children:"Next"}),(0,Je.jsx)(Rn.ChevronRight,{className:"h-4 Je-4"})]});fi.displayName="PaginationNext";var Pr=({className:e,...t})=>(0,Je.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 Je-9 items-center justify-center",e),...t,children:[(0,Je.jsx)(Rn.MoreHorizontal,{className:"h-4 Je-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"More pages"})]});Pr.displayName="PaginationEllipsis";var Nm=e=>{let t=(0,Ol.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,i=o>1,n=o-1>1,c=o+1<r;return(0,Je.jsx)("div",{className:l("my-12",a),children:(0,Je.jsx)(mi,{children:(0,Je.jsxs)(pi,{children:[(0,Je.jsx)($t,{children:(0,Je.jsx)(ui,{disabled:!i,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Je.jsx)($t,{children:(0,Je.jsx)(Pr,{})}),i&&(0,Je.jsx)($t,{children:(0,Je.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Je.jsx)($t,{children:(0,Je.jsx)(Ia,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Je.jsx)($t,{children:(0,Je.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Je.jsx)($t,{children:(0,Je.jsx)(Pr,{})}),(0,Je.jsx)($t,{children:(0,Je.jsx)(fi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var gi=h(require("next/image")),Yl=({logoImage:e})=>(0,Je.jsxs)("footer",{className:`absolute bottom-0 left-0 Je-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
10
|
+
dark bg-background text-primary`,children:[(0,Je.jsxs)("div",{className:"flex px-6 items-center space-Je-2",children:[e&&(0,Je.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Je.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Je.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Ao=({title:e})=>(0,Je.jsx)("header",{className:"absolute top-0 left-0 Je-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,Je.jsx)("div",{className:"container",children:(0,Je.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Lo=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return console.log("TitleSlide",a),(0,Je.jsxs)("div",{className:"relative Je-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Je.jsx)("div",{className:"absolute inset-0",children:(0,Je.jsx)(gi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Je.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Je.jsx)("div",{className:"h-24",children:(0,Je.jsx)(gi.default,{src:o.src,alt:"Company logo",className:"h-full Je-full object-contain",width:192,height:96})})}),(0,Je.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Je.jsxs)("div",{className:"relative pl-24 z-10 max-Je-3xl",children:[(0,Je.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Je.jsx)(ae,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var ql=e=>{let[t,a]=(0,Xo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,i=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],p=u=>{a(u)},d=()=>{a(u=>(u+1)%c.length)},m=()=>{a(u=>(u-1+c.length)%c.length)},g=(0,Xo.useCallback)(((u,v)=>{let P;return(..._)=>{clearTimeout(P),P=setTimeout(()=>u(..._),v)}})(u=>{u.deltaY>0?d():m()},300),[]),b=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&m()};return(0,Xo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Je.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Je.jsx)("div",{className:"fixed left-0 top-0 flex h-screen Je-9 z-10 flex-col items-center justify-center bg-gray-900",children:i&&c.map((u,v)=>(0,Je.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 Je-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>p(v),children:(0,Je.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Je-1/2 translate-Je-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Je-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,Je.jsx)(Ja.AnimatePresence,{children:c.map((u,v)=>(0,Je.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,Je.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
11
11
|
${v===t?"opacity-100":"opacity-0"}
|
|
12
|
-
|
|
13
|
-
dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[a&&(0,Ke.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"Ke-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ke.jsx)("div",{ref:s,className:"preview-container"})]})},Zl=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Vr(e),o=(0,jo.useRef)(null),r=(0,jo.useRef)(null),s=(0,jo.useRef)(new ty.Previewer),[i,n]=(0,jo.useState)(0),p=[{jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,jo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,jo.useEffect)(()=>{s.current=new ty.Previewer,d()},[d,t]),(0,jo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Ke.jsxs)("div",{className:"pagedjs-container",children:[(0,Ke.jsx)("div",{jo:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>{var g,b;return(0,Ke.jsx)(Ke.Fragment,{children:f===0?(0,Ke.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Ke.jsx)(Ao,{hero:e.hero,title:e.title})},f):(0,Ke.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Cm("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Ke.jsx)(Io,{title:m.blockName}),(0,Ke.jsx)(Ma,{blocks:[m],fill:!0})]},f)})})}),(0,Ke.jsx)("div",{ref:o,className:"preview-container"})]})};var fi=h(require("clsx"));function Rm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,Ke.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Ke.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Ke.jsx)("a",{...f});return(0,Ke.jsxs)(ba,{...p,variant:"inset",children:[(0,Ke.jsx)(ya,{children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Ne,{children:n?(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)(se,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ke.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Ke.jsxs)(Kt,{children:[(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Ke.jsxs)(Kt,{children:[e&&!n&&e.map((f,g)=>(0,Ke.jsx)(Sm,{subNav:f,pathName:r,Link:m},g)),(0,Ke.jsx)(Je,{className:"mt-auto",children:(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:t&&!n&&t.map(f=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{asChild:!0,size:"sm",children:(0,Ke.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Ke.jsx)(f.icon,{}),(0,Ke.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Ke.jsx)(va,{})]})}function Sm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsx)(Je,{className:"py-0",children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(kt,{asChild:!0,defaultOpen:o.isActive,children:(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,tooltip:o.label,className:(0,fi.default)(r&&"font-bold text-accent"),children:(0,Ke.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ke.jsx)(o.icon,{}),(0,Ke.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Xt,{asChild:!0,children:(0,Ke.jsxs)(uo,{className:"data-[state=open]:rotate-90",children:[(0,Ke.jsx)(Cn.ChevronRight,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(Jt,{children:(i=o.links)==null?void 0:i.map(n=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,className:(0,fi.default)(n.url===t&&"font-bold text-accent"),children:(0,Ke.jsx)(a,{href:n.url,children:(0,Ke.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var td=h(require("clsx"));var km=()=>(0,Ke.jsx)(Ce,{iconName:"github",size:"10x"});function Tm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let b=d?u=>(0,Ke.jsx)(d,{...u}):p?({item:u,children:v,...P})=>(0,Ke.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,Ke.jsx)("a",{href:u.href,...u});return(0,Ke.jsxs)(ba,{side:"right",variant:"inset",...m,children:[(0,Ke.jsxs)(ya,{className:"border-b border-sidebar-border",children:[(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{children:(0,Ke.jsxs)(Qe,{onClick:s,children:[(0,Ke.jsx)(Cn.FilePlus,{})," ",(0,Ke.jsx)("span",{children:"Add Document"})]})}),c&&(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{onClick:c,tooltip:"Open in GitHub",children:(0,Ke.jsx)(km,{})})})]}),(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:()=>i(),variant:r?"outline":"default",className:(0,td.default)(r&&"text-accent"),children:[(0,Ke.jsx)(Cn.Edit,{})," ",(0,Ke.jsx)("span",{children:"Edit"})]})}),(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:n,children:[(0,Ke.jsx)(Cn.Printer,{})," ",(0,Ke.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Editor Controls",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:a})})]})}),(0,Ke.jsx)(po,{className:"mx-0"})]}),(0,Ke.jsxs)(Kt,{className:"overflow-auto",children:[o&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Related Content"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Table of Contents"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Related Content",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:e&&Object.keys(e).map(u=>(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,Ke.jsx)(Jt,{children:e[u].map(v=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:!1,size:"sm",children:(0,Ke.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Ke.jsx)("span",{children:v.label}),v.type==="note"&&(0,Ke.jsx)(Cn.PencilLine,{className:"jo-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Ke.jsx)(Ce,{iconName:"code-pull-request-draft",className:"jo-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Table of Contents",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:t.map(u=>{var v;return(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,children:(0,Ke.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,Ke.jsx)(Jt,{children:u.items.map(P=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Ke.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Ke.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,Ke.jsx)(va,{})]})}var od=h(require("next/image"));function Dm({title:e,members:t}){return(0,Ke.jsx)(he,{className:"mb-6",children:(0,Ke.jsxs)("div",{className:"p-6",children:[(0,Ke.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Ke.jsx)(Cn.Users,{className:"w-6 h-6 text-accent Ke-2"}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:t.map((a,o)=>(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Ke.jsx)(od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Ke.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var rd=h(require("next/link"));var Mm=({links:e,title:t="Related Content"})=>(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:t})}),(0,Ke.jsx)(Pe,{children:(0,Ke.jsx)("nav",{className:"flex flex-col space-Ke-2",children:e.map((a,o)=>(0,Ke.jsxs)(rd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},o))})})]});var gi=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Im({pages:e}){let t=(0,zl.useSearchParams)(),a=(0,zl.usePathname)(),{replace:o}=(0,zl.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,jo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Ke.jsx)("div",{className:"mt-12",children:(0,Ke.jsxs)("Ke",{className:"flex flex-wrap items-center justify-center gap-3 Ke:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Ke.jsx)(xr.FaArrowLeft,{})})}),d.map((m,f)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("a",{className:l(gi,m===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),i.end<r&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Ke.jsx)(xr.FaArrowRight,{})})})]})})}var Hy=l("transition-colors duration-400 hover:text-primary ease-in-out");function Am({title:e,links:t}){let a=(0,zl.useSearchParams)(),o=(0,zl.usePathname)(),{replace:r}=(0,zl.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:e&&e})}),(0,Ke.jsx)(Pe,{children:t&&t.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ke.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},n))})})})]})}function Lm({types:e}){let[t,a]=(0,jo.useState)(e&&e[0].href),o=(0,zl.useSearchParams)(),r=(0,zl.usePathname)(),{replace:s}=(0,zl.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Ke.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Ke-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Ke.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var pd=h(require("next/image"));function Bo({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,Ke.jsx)("div",{className:r,children:e})}var cd=require("next-themes");function Bm({children:e,...t}){return(0,Ke.jsx)(cd.ThemeProvider,{...t,children:e})}var Eo=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Ke.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ke.jsx)("rect",{Ke:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 ",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 content-end block overflow-hidden",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[1],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Em=({className:e})=>(0,Ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Ke.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var yi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Ke.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Ke.jsx)(ae,{className:"max-w-none mb-6 jo-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Ke.jsx)("Ke",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(ht,{...r})},s))})]}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Ke.jsx)(Ht,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Ke.jsx)("div",{children:(0,Ke.jsx)(pd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 Ye-white dark:from-background/0 dark:Ye-background"})]}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})});var vi=h(require("next/image"));var Hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Ke.jsx)("div",{children:(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},hi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Ke.jsx)(Hm,{media:t}),(0,Ke.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Ke.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ke.jsx)(ae,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var xi=({children:e,richText:t})=>(0,Ke.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Ke.jsx)("div",{className:"container",children:e||t&&(0,Ke.jsx)(ae,{content:t,enableGutter:!1})})});var gd=h(require("react")),bd=h(require("next/image"));var ud=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var fd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Ke";case 2:return"Cn";case 3:return"rd";default:return"th"}})(o)} ${r}`};var zm=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ke.jsxs)("div",{className:"relative grid pt-24",children:[(0,Ke.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Ke.jsxs)("div",{className:"container mx-auto",children:[(0,Ke.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-4 Ke:flex-row Ke:gap-16 ",children:[o&&o.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Ke.jsx)("p",{children:o.map((n,c)=>(0,Ke.jsxs)(gd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.jo))})]}),r&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Ke.jsx)("time",{dateTime:r,children:ud(r)})]}),t&&t.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Ke.jsx)(tt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.jo||c))})]})]})]})}),(0,Ke.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Ke.jsx)(bd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ke.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Ye-t from-background dark:from-black Ye-transparent"})]})]})};var Sr=require("@heroicons/react/20/solid");var yd=h(require("next/image"));function wi({title:e,breadcrumbItems:t,image:a}){return(0,Ke.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Ke.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,Ke.jsx)(yd.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 Ye-background dark:from-background/0 dark:Ye-background"}),(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-Ke-20 gap-Ke-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Ke.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,Ke.jsx)(Ni,{breadcrumbItems:t})]})})]})}var Fm={highImpact:yi,lowImpact:xi,mediumImpact:hi,sectionHero:wi},Om=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Fm[t];return a?(0,Ke.jsx)(a,{...e}):null};function Ni({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ke.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ke.jsxs)("jo",{role:"list",className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ke.jsx)(Sr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ke.jsx)("li",{children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(Sr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ke.jsx)("a",{href:a.href,className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Ke.jsx)("div",{className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ke.jsx)(Ke.Fragment,{})}var Ye=require("@headlessui/react"),Dr=require("@heroicons/react/24/outline");var Gm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ke.jsx)("a",{href:o,className:"flex items-center gap-Ke-1 text-sm text-foreground group",children:(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]})}):(0,Ke.jsxs)(Ye.Popover,{children:[(0,Ke.jsxs)(Ye.PopoverButton,{className:"flex items-center gap-Ke-1 text-sm/6 text-foreground outline-none group",children:[(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]}),(0,Ke.jsx)(Sr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ke.jsxs)(Ye.PopoverPanel,{transition:!0,className:"absolute inset-Ke-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Ke-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ke.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Ke-4 px-6 py-10 lg:px-8 xl:gap-Ke-8 z-50",children:t&&t.map(r=>(0,Ke.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Ke.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,size:"4x"})}),(0,Ke.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ke.jsx)("span",{className:"absolute inset-0"})]}),(0,Ke.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ke.jsx)("div",{className:"bg-gray-50",children:(0,Ke.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ke.jsx)("div",{className:"grid grid-cols-3 divide-Ke divide-gray-900/5 border-Ke border-gray-900/5",children:a.map(r=>(0,Ke.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Ke-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),vd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ke.jsx)(Ce,{...e,size:a});if("src"in e)return(0,Ke.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ke.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},kr=Gm;var Tr=["light","dark","green"];function _m({title:e,logo:t,menuItems:a}){let[o,r]=(0,jo.useState)(!1),[s,i]=(0,jo.useState)(!1),[n,c]=(0,jo.useState)("light"),p=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,jo.useState)(`${p}.${d}`),g=u=>{Tr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,jo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Tr[(Tr.indexOf(n)+1)%Tr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,Ke.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ke.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ke.jsx)("div",{className:"flex lg:flex-1",children:(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:e}),(0,Ke.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,Ke.jsx)("div",{className:"flex lg:hidden",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:a.map(u=>(0,Ke.jsx)(kr,{...u},u.name))}),(0,Ke.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ke.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Ke.jsx)(Sr.MoonIcon,{className:"h-6 w-6"}):(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ke.jsxs)(Ye.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ke.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 py-6",children:a.map(u=>(0,Ke.jsx)($m,{...u},u.name))})})})]})]})]})}function $m({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Vm({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ke.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ke.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Ke.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"flex flex-col items-start Ke:w-1/2 mb-10 z-0 Ke:mb-0",children:[(0,Ke.jsx)("h1",{className:"text-5xl Ke:text-6xl mb-6",children:r&&r}),(0,Ke.jsx)("div",{className:"text-lg Ke:text-xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})})}var xd=h(require("next/image"));function ua({logo:e,mobile:t=!1}){return(0,Ke.jsx)(Ue,{href:"/",className:l(t?"py-1":"py-2"),children:(0,Ke.jsx)(xd.default,{src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:t?35:50}})})}function Pi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,jo.useState)(!1),[c,p]=(0,jo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,cd.useTheme)();(0,jo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];p(b),f(b)};return(0,jo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:(0,Ke.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Ke.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Ke.jsx)(ua,{logo:a}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:o&&o.map(b=>(0,Ke.jsx)(kr,{...b},b.name))}),r&&(0,Ke.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(Cn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(Cn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Ri=["light","dark"];function Si({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,jo.useState)(!1),{theme:i,setTheme:n}=(0,cd.useTheme)(),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)("light");(0,jo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,jo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=Ri[(Ri.indexOf(d)+1)%Ri.length];m(g),n(g)};return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:[(0,Ke.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsx)("div",{className:"flex items-center space-Ke-4",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Ke.jsxs)(Ye.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-Ke p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 px-2 py-6",children:a&&a.map(g=>(0,Ke.jsx)(Wm,{...g},g.name))})})})]})]})]})})}function Wm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Pd=h(require("next/image"));var Um=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Ke-1 block px-4"),ki=l("text-gray-900 dark:text-white text-Ke font-bold leading-[1.25] Ke:text-lg mb-5 Ke:mb-[1.875rem]"),Ti=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Di=l("flex items-center gap-5"),Ar=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function jm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Ke.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Ke.jsx)("div",{className:"py-16 Ke:py-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"grid gap-10 Ke:grid-cols-2 xl:grid-cols-4",children:[(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ke.jsx)(ua,{logo:o}),(0,Ke.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ke.jsx)("nav",{"aria-label":"social links",children:(0,Ke.jsx)("Ke",{className:"inline-flex min-h-[50px] items-center divide-Ke rounded-5 bg-accent text-white",children:r.socialLinks.map((p,d)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":p.href,className:Um,href:p.href,openNewTab:!0,children:(0,Ke.jsx)("span",{children:p.icon})})},d))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ke.jsx)("h3",{className:ki,children:s.title}),s.links&&s.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2",children:s.links.map(p=>(0,Ke.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Ke.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Ke.jsx)(xr.FaChevronRight,{})}),(0,Ke.jsx)(Ue,{href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})]},p.label))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ke.jsx)("h3",{className:ki,children:i.title}),(0,Ke.jsxs)("Ke",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPaperPlane,{})}),(0,Ke.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Ke.jsx)("div",{className:"grid gap-1",children:i.mails.map((p,d)=>(0,Ke.jsx)("a",{href:`mailto:${p}`,className:Ar,children:p},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPhone,{})}),(0,Ke.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((p,d)=>(0,Ke.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Ar,children:p},d))})]})]})]}),n&&(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Ke.jsx)("h3",{className:ki,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Ke.jsx)("div",{className:"grid gap-6",children:n.blogs.map((p,d)=>(0,Ke.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Ke.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Ke.jsx)(Pd.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(xr.FaCalendarDays,{})}),(0,Ke.jsx)("span",{children:fd(p.date)})]}),(0,Ke.jsx)("h4",{className:"text-Ke leading-normal",children:(0,Ke.jsx)(Ue,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},d))})]})]})})}),(0,Ke.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Ke-8 gap-Ke-4 Ke:gap-Ke-10",children:[(0,Ke.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ke.jsx)("Ke",{className:"flex flex-wrap items-center gap-Ke-4 Ke:gap-Ke-7",children:c.links.map(p=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":`Go Ye page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})},p.label))})})]})})})]})}function Xm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s}){return(0,Ke.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ke.jsx)(Pi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,wide:s}),(0,Ke.jsx)(Si,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var Ba=require("sonner");function Mi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,jo.useState)([]),s=(0,zl.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.jo))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])};return(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-Ke",children:(0,Ke.jsxs)("Ke",{className:"divide-Ke divide-gray-200",children:[(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"jo-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:`select-${d.jo}`,checked:o.includes(d.jo),onCheckedChange:()=>n(d.jo),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"jo-3 flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-10 w-10",children:[(0,Ke.jsx)(Lt,{src:d.userImage,alt:d.userName}),(0,Ke.jsx)(Bt,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(tt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.jo))]})}),(0,Ke.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ii=require("date-fns");var kd=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Fo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=kd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Td=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Fo(o))return .5;for(;o<=r;)Fo(o)||s++,o.setDate(o.getDate()+1);return s},Dd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Ym=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Ke-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Li({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,jo.useState)(new Date),[r,s]=(0,jo.useState)(new Date),[i,n]=(0,jo.useState)("Full Day"),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)(1),f=(0,zl.useRouter)();(0,jo.useEffect)(()=>{let u=Dd(a,r);p(u),u&&n("Full Day")},[a,r]),(0,jo.useEffect)(()=>{if(!a||!r){m(0);return}let u=Td(a,r,i!=="Full Day");m(u)},[a,r,i]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Ba.toast.error("Please select both start and end dates");return}if(d>e){Ba.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||qm)(v);P.success?(Ba.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):Ba.toast.error(`Error: ${P.message}`)},className:"space-Ke-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),a?(0,Ii.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),r?(0,Ii.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Ke-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Ym,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var qm=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Id(...e){return e.filter(Boolean).join(" ")}function Bi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"mt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-Ke-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"max-h-[60vh] overflow-Ke-auto",children:(0,Ke.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Ke-4 Ke-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Ke-6 lg:Ke-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Ke.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Fo(m)?"bg-gray-200":""}`,children:[(0,Ke.jsx)("div",{children:c(m)}),(0,Ke.jsx)("div",{children:d+1})]},d)})]})}),(0,Ke.jsx)("tbody",{children:o.map((p,d)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Ke-4 Ke-3 text-sm font-medium text-gray-900 sm:Ke-6 lg:Ke-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-11 w-11",children:[(0,Ke.jsx)(Lt,{src:p.image,alt:p.name}),(0,Ke.jsx)(Bt,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===p.jo&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Fo(g)?"bg-gray-200":""),children:(0,Ke.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${p.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Ke.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.jo}-${f}`)})]},p.jo))})]})})})})]})}function Ei({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,jo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Cn"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Ke.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Ke.jsx)("jo",{className:"mt-2 space-Ke-1",children:d.holidays.map(m=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.jo))})]},d.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Ke.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("jo-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.jo))})]},d.date.toISOString()))})]})]})]})}var fa=require("lucide-react");function Ld(...e){return e.filter(Boolean).join(" ")}function Km({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,p]=(0,jo.useState)("Calendar View"),d=(0,zl.useRouter)(),m=!1,f=(0,Ii.parseISO)(a),g=async u=>{let v=(0,Ii.format)(u,"Ke-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Ke.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:fa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:fa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:fa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:fa.CheckSquare,current:c==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block w-full rounded-Ke border-gray-300 py-2 Ke-3 Ke-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,Ke.jsx)("option",{children:u.name},u.name))}),(0,Ke.jsx)(Cn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-b border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-Ke-8","aria-label":"Tabs",children:b.map(u=>(0,Ke.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:Ld(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,Ke.jsx)(u.icon,{className:Ld(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-jo-0.5 Ke-2 h-5 w-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,Ke.jsx)(Bi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Ke.jsx)(Ei,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Ke.jsx)(Li,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Ke.jsx)(Mi,{leaveRequests:o,onApprove:u=>i?i(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Hi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var Ee,vt,k,z,nt;let[n,c]=(0,jo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,jo.useState)(""),[m,f]=(0,jo.useState)(!1),[g,b]=(0,jo.useState)(null);(0,jo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed Ye save deal:",w.errors)}catch(w){console.error("Failed Ye save deal:",w)}},v=(w,_)=>{c(U=>({...U,[w]:_}))},P=w=>{let _=(n.categories||[]).includes(w)?(n.categories||[]).filter(U=>U!==w):[...n.categories||[],w];v("categories",_)},G=async()=>{if(p.trim()){let w={text:p,timestamp:new Date().toISOString()};try{let _=await i(w);if(!_.success){console.error("Failed Ye add comment:",_.errors);return}}catch(_){console.error("Failed Ye add comment:",_)}c(_=>({..._,comments:[..._.comments||[],w]})),d("")}},Q=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},me=w=>t==null?void 0:t.find(_=>_.jo===Number(w));return(0,Ke.jsx)(et,{open:!0,children:(0,Ke.jsxs)(We,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ke.jsxs)(mt,{className:"flex flex-row items-center justify-between",children:[(0,Ke.jsx)(pt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Ke.jsxs)("div",{className:"flex space-Ke-2",children:[(0,Ke.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Ke.jsxs)(T,{onClick:u,disabled:!m,children:[(0,Ke.jsx)(Cn.SaveIcon,{className:"w-4 h-4 Ke-2"}),"Save"]})]})]}),(0,Ke.jsxs)(aa,{className:"flex-grow Ke-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Ke.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Ke.jsx)(He,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ke.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Ee=n.value)==null?void 0:Ee.toLocaleString()]})}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Ke.jsxs)(Ca,{value:((k=(vt=n==null?void 0:n.assignee)==null?void 0:vt.jo)==null?void 0:k.toString())||"",onValueChange:w=>v("assignee",me(w)),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(w=>{var _;return(0,Ke.jsx)(na,{value:((_=w==null?void 0:w.jo)==null?void 0:_.toString())||"",children:w.name},w.jo)})})]}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.assignee.name})]})]}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Ke.jsx)(He,{type:"date",value:(nt=(z=n.closureDate)==null?void 0:z.split("T")[0])!=null?nt:"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"Ke/Ke"})]})]})]}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Ke.jsx)(la,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Ke.jsxs)(Ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select status"})}),(0,Ke.jsx)(ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(w=>(0,Ke.jsx)(na,{value:w,children:w},w))})]}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Ke.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(w=>{var _,U;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:((_=w.jo)==null?void 0:_.toString())||"",checked:(n.categories||[]).some(Oo=>Oo.jo===w.jo),onCheckedChange:()=>w.jo!==void 0&&P(w)}),(0,Ke.jsx)("label",{htmlFor:((U=w.jo)!=null?U:"").toString(),className:`text-sm font-medium ${Q(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.jo)})}):(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{console.log("cat",w);let _=w;return _?(0,Ke.jsx)(tt,{variant:"secondary",className:Q(_.type||"sector"),children:_.name},_.jo):null})})]})]}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Ke.jsx)(aa,{className:"h-[200px] overflow-Ke-auto",children:(0,Ke.jsx)("div",{className:"space-Ke-2",children:n.comments&&n.comments.slice().sort((w,_)=>new Date(_.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var _;return(0,Ke.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Ke.jsx)("p",{className:"text-sm text-gray-700",children:w.text}),(0,Ke.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=w==null?void 0:w.author)==null?void 0:_.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.jo)})})}),(0,Ke.jsxs)("div",{className:"flex mt-2",children:[(0,Ke.jsx)(He,{value:p,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Ke.jsxs)(T,{onClick:G,className:"jo-2",children:[(0,Ke.jsx)(Cn.PlusIcon,{className:"w-4 h-4 Ke-2"}),"Add"]})]})]}),(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function zi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.jo)});return(0,Ke.jsxs)(he,{className:"mb-4 cursor-pointer hover:shadow-Ke transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ke.jsxs)(Fe,{className:"pb-2",children:[(0,Ke.jsx)("div",{className:"flex justify-between items-center",children:(0,Ke.jsx)(Oe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Ke.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Ke.jsxs)(Pe,{children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ke.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 Ke-1 text-xs"}),(0,Ke.jsx)("span",{children:e.assignee.name})]}),(0,Ke.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ke.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ke.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ke.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-3 h-3 Ke-1"}),(0,Ke.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ke.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Ke.jsx)(tt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var zr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Fi({onSubmit:e}){var r;let[t,a]=(0,jo.useState)({name:"",intro:"",active:!0});return(0,Ke.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,Ke.jsx)(He,{jo:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,Ke.jsx)(la,{jo:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Ke.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Oi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var Q,me,Ee,vt;let[n,c]=(0,jo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,jo.useState)(!1),[m,f]=(0,jo.useState)({});(0,jo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(z.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=k=>{console.log(k),c(z=>({...z,categories:(z.categories||[]).includes(k.jo)?(z.categories||[]).filter(nt=>nt!==k.jo):[...z.categories||[],k.jo]}))},v=async k=>{c({...n,customer:k});try{let z=await s(k);z.success?d(!1):f(z.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(z=>z.jo===Number(k)),G=k=>e==null?void 0:e.find(z=>z.jo===Number(k));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("form",{onSubmit:b,className:"space-Ke-6",children:[(0,Ke.jsx)(aa,{className:"h-[60vh] Ke-4",children:(0,Ke.jsxs)("div",{className:"space-Ke-6 px-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)(Ca,{value:(me=(Q=n.customer)==null?void 0:Q.jo)==null?void 0:me.toString(),onValueChange:k=>c({...n,customer:G(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select customer"})}),(0,Ke.jsx)(ia,{children:e.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),(0,Ke.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ke.jsx)(Cn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,Ke.jsx)(He,{jo:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,Ke.jsxs)(Ca,{value:(vt=(Ee=n.assignee)==null?void 0:Ee.jo)==null?void 0:vt.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),m.assignee&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,Ke.jsx)(la,{jo:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{children:"Categories"}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:["proposition","source","sector"].map(k=>(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>{var nt;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:z.jo.toString(),checked:(nt=n.categories)==null?void 0:nt.includes(z.jo),onCheckedChange:()=>u(z)}),(0,Ke.jsx)("label",{htmlFor:z.jo.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.jo)})})]},k))})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ke.jsx)(He,{jo:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ke.jsx)(et,{open:p,onOpenChange:d,children:(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Customer"})}),(0,Ke.jsx)(Fi,{onSubmit:v})]})})]})}function Gi({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,jo.useState)(!1);return(0,Ke.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ke.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Ke.jsxs)(et,{open:d,onOpenChange:m,children:[(0,Ke.jsx)(rr,{asChild:!0,children:(0,Ke.jsxs)(T,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Ke.jsx)(Cn.PlusCircle,{className:"Ke-2 h-4 w-4"}),"Add New Deal"]})}),(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Deal"})}),(0,Ke.jsx)(Oi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,Ke.jsx)(zr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Ke.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Ke.jsx)(zr.Draggable,{draggableId:g.jo.toString(),index:g.jo,children:u=>(0,Ke.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Ke.jsx)(zi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.jo.toString())),f.placeholder]})}),(0,Ke.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Ke.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ke.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Ke.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ke.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Jm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Qm({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,jo.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),p=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((u,v)=>u+(v.value||0)*b[g],0)},d=(0,jo.useCallback)(f=>{var Q,me;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let u=g.droppableId,v=b.droppableId,P=(Q=e.deals)==null?void 0:Q.filter(Ee=>Ee.jo===g.index)[0],G=[...(me=e.deals)!=null?me:[]];P&&(P.status=v,a(P))},[a]);return(0,Ke.jsx)(zr.DragDropContext,{onDragEnd:d,children:(0,Ke.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Ke.jsx)("div",{className:"flex space-Ke-4 pb-4",children:Jm.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,u;let g=n(f);return(0,Ke.jsx)(Gi,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Ke.jsx)(Hi,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.jo.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
12
|
+
Je-full h-full bg-cover bg-center`,children:v===0?(0,Je.jsx)(Lo,{hero:r,title:e.title,logoImage:s}):(0,Je.jsxs)(Je.Fragment,{children:[u.blockName&&(0,Je.jsx)(Ao,{title:u.blockName}),(0,Je.jsx)(Ma,{blocks:[u],fill:!0}),(0,Je.jsx)(Yl,{logoImage:s})]})})},v))}),(0,Je.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Je.jsx)(wm,{})})]})},wm=()=>(0,Je.jsx)(Ja.AnimatePresence,{children:(0,Je.jsx)(Ja.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("Je-fit min-h-[50px] min-Je-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Je.jsx)(Ja.motion.div,{initial:{Je:0},animate:{Je:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("Je-[12px] h-[12px] rounded-full","bg-accent")})})});var Kl=h(require("next/link")),Jl=h(require("next/image"));function Ql({blogs:e,width:t=3}){return(0,Je.jsx)("div",{className:"Je-full max-Je-7xl mx-auto px-4 py-8",children:(0,Je.jsx)("div",{className:`grid Je:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Je.jsx)(Kl.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,Je.jsxs)("div",{className:"relative size-full",children:[(0,Je.jsx)(Jl.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Je.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Ol-t from-card Ol-transparrent flex flex-col justify-end",children:[(0,Je.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Je.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function Zl({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:i,companiesCount:n,dealsClosed:c,leadsGenerated:p}){return(0,Je.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Je.jsxs)("div",{className:"mx-auto max-Je-2xl px-6 lg:max-Je-7xl lg:px-8",children:[(0,Je.jsxs)("div",{className:"max-Je-4xl",children:[(0,Je.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Je.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Je.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Je.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Je-8 lg:gap-Je-16",children:[(0,Je.jsxs)("div",{className:"lg:Je-8",children:[(0,Je.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Je.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Je.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Je.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,m)=>(0,Je.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Je.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},m))})}),(0,Je.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Je.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Je.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,Je.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Je-8 gap-Je-4 sm:grid-cols-2",children:[(0,Je.jsxs)("div",{className:"flex flex-col gap-Je-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Je.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Je.jsxs)("Rn",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",i]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-Je-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Je.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Je.jsxs)("Rn",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Je"]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-Je-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Je.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Je.jsxs)("Rn",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-Je-2",children:[(0,Je.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Je.jsxs)("Rn",{className:"order-first text-6xl font-semibold tracking-tight",children:[p,"M"]})]})]})]})]})]})})}function Cm(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var pa=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Pm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Je.jsx)(ed,{page:e,layout:t,logoImage:a}):(0,Je.jsx)(td,{page:e,layout:t,logoImage:a}),ed=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Ur(e),r=(0,Xo.useRef)(null),s=(0,Xo.useRef)(null),i=(0,Xo.useRef)(new ay.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Xo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){console.log("Width: "+d.offsetWidth+"px"),console.log("Width in mm: "+pa(d.offsetWidth)+"mm"),console.log("Height: "+d.offsetHeight+"px"),console.log("Height in mm: "+pa(d.offsetHeight)+"mm");let m=document.createElement("style");return m.textContent=`@page { size: ${pa(d.offsetWidth)}mm ${pa(d.offsetHeight)}mm ; margin: 0mm; width: ${pa(d.offsetWidth)}mm }; .container : { max-width: ${pa(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(m),()=>{document.head.removeChild(m)}}},[t]);let c=(0,Xo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&i.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${pa(d.offsetWidth)}mm ${pa(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(m=>console.error("Paged.js error:",m))},[t]);(0,Xo.useEffect)(()=>{i.current=new ay.Previewer},[c,t]);let p=[n,...o];return(0,Je.jsxs)("div",{children:[(0,Je.jsx)("div",{className:"Je-[1123px] print:Je-[1123px]",children:(0,Je.jsxs)("div",{id:"printable-content",ref:r,children:[p.map((d,m)=>(0,Je.jsx)(Je.Fragment,{children:m===0?(0,Je.jsx)("section",{className:"title-page Je-full h-full",children:(0,Je.jsx)(Lo,{hero:e.hero,title:e.title})},m):(0,Je.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Je.jsx)(Ao,{title:d.blockName}),(0,Je.jsx)(Ma,{blocks:[d],fill:!0})]},m)})),(0,Je.jsx)("section",{className:"normal-page",children:(0,Je.jsxs)("div",{className:`Je-full py-2 px-8 flex justify-between items-center
|
|
13
|
+
dark bg-background text-primary`,children:[(0,Je.jsxs)("div",{className:"flex px-6 items-center space-Je-2",children:[a&&(0,Je.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Je.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Je.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Je.jsx)("div",{ref:s,className:"preview-container"})]})},td=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Ur(e),o=(0,Xo.useRef)(null),r=(0,Xo.useRef)(null),s=(0,Xo.useRef)(new ay.Previewer),[i,n]=(0,Xo.useState)(0),p=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Xo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,Xo.useEffect)(()=>{s.current=new ay.Previewer,d()},[d,t]),(0,Xo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Je.jsxs)("div",{className:"pagedjs-container",children:[(0,Je.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>{var g,b;return(0,Je.jsx)(Je.Fragment,{children:f===0?(0,Je.jsx)("section",{className:"pagedjs-section title-page Je-full h-full",children:(0,Je.jsx)(Lo,{hero:e.hero,title:e.title})},f):(0,Je.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Cm("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Je.jsx)(Ao,{title:m.blockName}),(0,Je.jsx)(Ma,{blocks:[m],fill:!0})]},f)})})}),(0,Je.jsx)("div",{ref:o,className:"preview-container"})]})};var bi=h(require("clsx"));function Rm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,Je.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Je.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start Je-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Je.jsx)("a",{...f});return(0,Je.jsxs)(ba,{...p,variant:"inset",children:[(0,Je.jsx)(ya,{children:(0,Je.jsx)(Fe,{children:(0,Je.jsx)(Ce,{children:n?(0,Je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Je.jsx)(se,{className:"bg-gray-200 my-2 Je-full h-7"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 my-2 h-5"})]}):(0,Je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Je.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Je.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Je.jsxs)(Kt,{children:[(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"}),(0,Je.jsx)(se,{className:"bg-gray-200 Je-3/4 h-5"})]}),(0,Je.jsxs)(Kt,{children:[e&&!n&&e.map((f,g)=>(0,Je.jsx)(Sm,{subNav:f,pathName:r,Link:m},g)),(0,Je.jsx)(Qe,{className:"mt-auto",children:(0,Je.jsx)(ct,{children:(0,Je.jsx)(Fe,{children:t&&!n&&t.map(f=>(0,Je.jsx)(Ce,{children:(0,Je.jsx)(Ze,{asChild:!0,size:"sm",children:(0,Je.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Je.jsx)(f.icon,{}),(0,Je.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Je.jsx)(va,{})]})}function Sm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Je.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsx)(Qe,{className:"py-0",children:(0,Je.jsx)(Fe,{children:(0,Je.jsx)(kt,{asChild:!0,defaultOpen:o.isActive,children:(0,Je.jsxs)(Ce,{children:[(0,Je.jsx)(Ze,{asChild:!0,tooltip:o.label,className:(0,bi.default)(r&&"font-bold text-accent"),children:(0,Je.jsxs)(a,{href:o.url,children:[o.icon&&(0,Je.jsx)(o.icon,{}),(0,Je.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Xt,{asChild:!0,children:(0,Je.jsxs)(fo,{className:"data-[state=open]:rotate-90",children:[(0,Je.jsx)(Rn.ChevronRight,{}),(0,Je.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Je.jsx)(Yt,{children:(0,Je.jsx)(Jt,{children:(i=o.links)==null?void 0:i.map(n=>(0,Je.jsx)(Qt,{children:(0,Je.jsx)(Zt,{asChild:!0,className:(0,bi.default)(n.url===t&&"font-bold text-accent"),children:(0,Je.jsx)(a,{href:n.url,children:(0,Je.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var od=h(require("clsx"));var km=()=>(0,Je.jsx)(Pe,{iconName:"github",size:"10x"});function Tm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let b=d?u=>(0,Je.jsx)(d,{...u}):p?({item:u,children:v,...P})=>(0,Je.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start Je-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,Je.jsx)("a",{href:u.href,...u});return(0,Je.jsxs)(ba,{side:"right",variant:"inset",...m,children:[(0,Je.jsxs)(ya,{className:"border-b border-sidebar-border",children:[(0,Je.jsxs)(Fe,{className:"flex-row space-Je-1",children:[(0,Je.jsx)(Ce,{children:(0,Je.jsxs)(Ze,{onClick:s,children:[(0,Je.jsx)(Rn.FilePlus,{})," ",(0,Je.jsx)("span",{children:"Add Document"})]})}),c&&(0,Je.jsx)(Ce,{children:(0,Je.jsx)(Ze,{onClick:c,tooltip:"Open in GitHub",children:(0,Je.jsx)(km,{})})})]}),(0,Je.jsxs)(Fe,{className:"flex-row space-Je-1",children:[(0,Je.jsx)(Ce,{className:"Je-5/12",children:(0,Je.jsxs)(Ze,{onClick:()=>i(),variant:r?"outline":"default",className:(0,od.default)(r&&"text-accent"),children:[(0,Je.jsx)(Rn.Edit,{})," ",(0,Je.jsx)("span",{children:"Edit"})]})}),(0,Je.jsx)(Ce,{className:"Je-5/12",children:(0,Je.jsxs)(Ze,{onClick:n,children:[(0,Je.jsx)(Rn.Printer,{})," ",(0,Je.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Dt,{asChild:!0,children:(0,Je.jsxs)(Xt,{children:["Editor Controls",(0,Je.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(ct,{children:(0,Je.jsx)(Yt,{children:a})})]})}),(0,Je.jsx)(uo,{className:"mx-0"})]}),(0,Je.jsxs)(Kt,{className:"overflow-auto",children:[o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Dt,{children:"Related Content"}),(0,Je.jsx)(ct,{children:(0,Je.jsx)(Fe,{children:Array.from({length:3}).map((u,v)=>(0,Je.jsx)(Ce,{children:(0,Je.jsx)(se,{className:"bg-gray-200 Je-full h-10"})},v))})})]}),(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Dt,{children:"Table of Contents"}),(0,Je.jsx)(ct,{children:(0,Je.jsx)(Fe,{children:Array.from({length:3}).map((u,v)=>(0,Je.jsx)(Ce,{children:(0,Je.jsx)(se,{className:"bg-gray-200 Je-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Je.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Dt,{asChild:!0,children:(0,Je.jsxs)(Xt,{children:["Related Content",(0,Je.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(ct,{children:(0,Je.jsx)(Yt,{children:(0,Je.jsx)(Fe,{children:e&&Object.keys(e).map(u=>(0,Je.jsxs)(Ce,{children:[(0,Je.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,Je.jsx)(Jt,{children:e[u].map(v=>(0,Je.jsx)(Qt,{children:(0,Je.jsx)(Zt,{asChild:!0,isActive:!1,size:"sm",children:(0,Je.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center Je-full text-xs",children:[(0,Je.jsx)("span",{children:v.label}),v.type==="note"&&(0,Je.jsx)(Rn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Je.jsx)(Pe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,Je.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Dt,{asChild:!0,children:(0,Je.jsxs)(Xt,{children:["Table of Contents",(0,Je.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(ct,{children:(0,Je.jsx)(Yt,{children:(0,Je.jsx)(Fe,{children:t.map(u=>{var v;return(0,Je.jsxs)(Ce,{children:[(0,Je.jsx)(Ze,{asChild:!0,children:(0,Je.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,Je.jsx)(Jt,{children:u.items.map(P=>(0,Je.jsx)(Qt,{children:(0,Je.jsx)(Zt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Je.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Je-full text-xs",children:(0,Je.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,Je.jsx)(va,{})]})}var sd=h(require("next/image"));function Dm({title:e,members:t}){return(0,Je.jsx)(xe,{className:"mb-6",children:(0,Je.jsxs)("div",{className:"p-6",children:[(0,Je.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Je.jsx)(Rn.Users,{className:"Je-6 h-6 text-accent mr-2"}),(0,Je.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Je.jsx)("div",{className:"space-Je-4",children:t.map((a,o)=>(0,Je.jsxs)("div",{className:"flex items-center space-Je-4",children:[(0,Je.jsx)("div",{className:"relative Je-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Je.jsx)(sd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Je.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var id=h(require("next/link"));var Mm=({links:e,title:t="Related Content"})=>(0,Je.jsxs)(xe,{children:[(0,Je.jsx)(Oe,{children:(0,Je.jsx)(_e,{className:"text-accent",children:t})}),(0,Je.jsx)(Re,{children:(0,Je.jsx)("nav",{className:"flex flex-col space-Je-2",children:e.map((a,o)=>(0,Je.jsxs)(id.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Je.jsx)(Rn.ExternalLink,{className:"ml-1 h-3 Je-3"})]},o))})})]});var yi=l("grid h-[45px] Je-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Im({pages:e}){let t=(0,Ol.useSearchParams)(),a=(0,Ol.usePathname)(),{replace:o}=(0,Ol.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,Xo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Je.jsx)("div",{className:"mt-12",children:(0,Je.jsxs)("Xo",{className:"flex flex-wrap items-center justify-center gap-3 Je:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Je.jsx)("li",{children:(0,Je.jsx)("button",{className:l(yi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Je.jsx)(Nr.FaArrowLeft,{})})}),d.map((m,f)=>(0,Je.jsx)("li",{children:(0,Je.jsx)("a",{className:l(yi,m===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),i.end<r&&(0,Je.jsx)("li",{children:(0,Je.jsx)("button",{className:l(yi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Je.jsx)(Nr.FaArrowRight,{})})})]})})}var zy=l("transition-colors duration-400 hover:text-primary ease-in-out");function Am({title:e,links:t}){let a=(0,Ol.useSearchParams)(),o=(0,Ol.usePathname)(),{replace:r}=(0,Ol.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Je.jsxs)(xe,{children:[(0,Je.jsx)(Oe,{children:(0,Je.jsx)(_e,{className:"text-accent",children:e&&e})}),(0,Je.jsx)(Re,{children:t&&t.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Je.jsx)("Xo",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Je.jsx)(Rn.ExternalLink,{className:"ml-1 h-3 Je-3"})]},n))})})})]})}function Lm({types:e}){let[t,a]=(0,Xo.useState)(e&&e[0].href),o=(0,Ol.useSearchParams)(),r=(0,Ol.usePathname)(),{replace:s}=(0,Ol.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Je-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Je.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var fd=h(require("next/image"));function Eo({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,Je.jsx)("div",{className:r,children:e})}var pd=require("next-themes");function Bm({children:e,...t}){return(0,Je.jsx)(pd.ThemeProvider,{...t,children:e})}var Aa=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Je.jsx)("div",{className:"Je-full h-[1240px] z-20",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Je.jsx)("rect",{Je:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Je.jsx)("div",{className:"Je-full h-[70px] Je:h-[332px] z-20 ",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Je.jsx)("div",{className:"Je-full h-[70px] Je:h-[332px] z-20 content-end block overflow-hidden",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Je.jsx)("div",{className:"Je-full min-h-[70px] Je:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"Je-full block overflow-hidden"),transform:a[1],children:(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Je.jsx)("div",{className:"Je-full min-h-[70px] Je:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"Je-full block overflow-hidden"),transform:a[3],children:(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Je.jsx)("div",{className:"Je-full min-h-[70px] Je:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"Je-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Em=({className:e})=>(0,Je.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute Je-full h-full"),children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Je.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var hi=({links:e,media:t,children:a,richText:o})=>(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Je.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Je.jsx)(ae,{className:"max-Je-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Je.jsx)("Xo",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Je.jsx)("li",{children:(0,Je.jsx)(xt,{...r})},s))})]}),(0,Je.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Je.jsx)(Ht,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Je.jsx)("div",{children:(0,Je.jsx)(fd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Je.jsx)("span",{className:"absolute inset-0 bg-gradient-Ol-b from-white dark:from-black"})]}),(0,Je.jsx)(Aa,{className:"text-black z-10",position:"header"})]})});var xi=h(require("next/image"));var Hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Je.jsx)(xi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Je.jsx)("div",{children:(0,Je.jsx)(xi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Ni=({links:e,media:t,children:a,richText:o})=>(0,Je.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Je.jsx)(Hm,{media:t}),(0,Je.jsx)("div",{className:"mx-0 min-Je-full relative z-9",children:(0,Je.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Je.jsx)(ae,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var wi=({children:e,richText:t})=>(0,Je.jsx)("div",{className:"min-Je-full py-10 bg-muted mt-24",children:(0,Je.jsx)("div",{className:"container",children:e||t&&(0,Je.jsx)(ae,{content:t,enableGutter:!1})})});var yd=h(require("react")),vd=h(require("next/image"));var gd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var bd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Rn";case 2:return"Rn";case 3:return"Rn";default:return"th"}})(o)} ${r}`};var zm=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Je.jsxs)("div",{className:"relative grid pt-24",children:[(0,Je.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Je.jsxs)("div",{className:"container mx-auto",children:[(0,Je.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Je.jsxs)("div",{className:"flex flex-col gap-4 Je:flex-row Je:gap-16 ",children:[o&&o.length>0&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Je.jsx)("p",{children:o.map((n,c)=>(0,Je.jsxs)(yd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Je.jsx)("time",{dateTime:r,children:gd(r)})]}),t&&t.length>0&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Je.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Je.jsx)(at,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Je.jsxs)("div",{className:"absolute inset-0 Je-full h-full",children:[(0,Je.jsx)(vd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Je-full h-1/2 bg-gradient-Ol-t from-background dark:from-black Ol-transparent"})]})]})};var Tr=require("@heroicons/react/20/solid");var kr=h(require("next/image"));var Ci=({title:e,image:t})=>(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Je.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Je.jsx)("h1",{className:"text-5xl Je:text-6xl",children:e})}),(0,Je.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Je.jsx)(kr.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,Je.jsx)("div",{children:(0,Je.jsx)(kr.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Je.jsx)("span",{className:"absolute inset-0 bg-gradient-Ol-b from-white dark:from-black"})]}),(0,Je.jsx)(Aa,{className:"text-black z-10",position:"header"})]})});function Fm({title:e,breadcrumbItems:t,image:a}){return(0,Je.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Je.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,Je.jsx)(kr.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,Je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 Ol-background dark:from-background/0 dark:Ol-background"}),(0,Je.jsx)(Eo,{children:(0,Je.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-Je-20 gap-Je-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:Je-1/2",children:e}),t&&t.length>0&&(0,Je.jsx)(Pi,{breadcrumbItems:t})]})})]})}var Om={highImpact:hi,lowImpact:wi,mediumImpact:Ni,sectionHero:Ci},_m=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Om[t];return a?(0,Je.jsx)(a,{...e}):null};function Pi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Je.jsxs)("Je",{role:"list",className:"flex items-center space-Je-4",children:[(0,Je.jsx)("li",{children:(0,Je.jsx)("div",{children:(0,Je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Je.jsx)(Tr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Je.jsx)("li",{children:(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(Tr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Je.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Je.jsx)(Je.Fragment,{})}var qe=require("@headlessui/react"),Ir=require("@heroicons/react/24/outline");var Gm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Je.jsx)("a",{href:o,className:"flex items-center gap-Je-1 text-sm text-foreground group",children:(0,Je.jsxs)("span",{className:"relative",children:[e,(0,Je.jsx)("span",{className:"absolute -bottom-1 left-1/2 Je-1/2 h-0.5 bg-accent transform -translate-Je-1/2 scale-Je-0 transition-transform duration-300 ease-in-out group-hover:scale-Je-100"})]})}):(0,Je.jsxs)(qe.Popover,{children:[(0,Je.jsxs)(qe.PopoverButton,{className:"flex items-center gap-Je-1 text-sm/6 text-foreground outline-none group",children:[(0,Je.jsxs)("span",{className:"relative",children:[e,(0,Je.jsx)("span",{className:"absolute bottom-0 left-1/2 Je-1/2 h-0.5 bg-accent transform -translate-Je-1/2 scale-Je-0 transition-transform duration-300 ease-in-out group-hover:scale-Je-100"})]}),(0,Je.jsx)(Tr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Je-5 flex-none text-accent"})]}),(0,Je.jsxs)(qe.PopoverPanel,{transition:!0,className:"absolute inset-Je-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Je.jsx)("div",{className:"mx-auto grid max-Je-7xl grid-cols-4 gap-Je-4 px-6 py-10 lg:px-8 xl:gap-Je-8 z-50",children:t&&t.map(r=>(0,Je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Je.jsx)(hd,{icon:r.icon,size:"4x"})}),(0,Je.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Je.jsx)("span",{className:"absolute inset-0"})]}),(0,Je.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Je.jsx)("div",{className:"bg-gray-50",children:(0,Je.jsx)("div",{className:"mx-auto max-Je-7xl px-6 lg:px-8",children:(0,Je.jsx)("div",{className:"grid grid-cols-3 divide-Je divide-gray-900/5 border-Je border-gray-900/5",children:a.map(r=>(0,Je.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Je-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Je.jsx)(hd,{icon:r.icon,className:"h-5 Je-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),hd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Je.jsx)(Pe,{...e,size:a});if("src"in e)return(0,Je.jsx)("div",{className:l(t,"h-full max-Je-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Dr=Gm;var Mr=["light","dark","green"];function $m({title:e,logo:t,menuItems:a}){let[o,r]=(0,Xo.useState)(!1),[s,i]=(0,Xo.useState)(!1),[n,c]=(0,Xo.useState)("light"),p=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,Xo.useState)(`${p}.${d}`),g=u=>{Mr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,Xo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Mr[(Mr.indexOf(n)+1)%Mr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,Je.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Je.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Je.jsx)("div",{className:"flex lg:flex-1",children:(0,Je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:e}),(0,Je.jsx)("img",{alt:e,src:m,className:"h-9 Je-auto"})]})}),(0,Je.jsx)("div",{className:"flex lg:hidden",children:(0,Je.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Je p-2.5 text-gray-700 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Je.jsx)(Ir.Bars3Icon,{"aria-hidden":"true",className:"h-6 Je-6"})]})}),(0,Je.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Je-12",children:a.map(u=>(0,Je.jsx)(Dr,{...u},u.name))}),(0,Je.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Je.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Je.jsx)(Tr.SunIcon,{className:"h-6 Je-6"}):n==="green"?(0,Je.jsx)(Tr.MoonIcon,{className:"h-6 Je-6"}):(0,Je.jsx)(Tr.SunIcon,{className:"h-6 Je-6"})})})]}),(0,Je.jsxs)(qe.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Je.jsxs)(qe.DialogPanel,{className:"fixed inset-Je-0 right-0 z-20 Je-full overflow-Je-auto bg-white px-6 py-6 sm:max-Je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Je.jsx)("img",{alt:e,src:t,className:"h-8 Je-auto"})]}),(0,Je.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Je p-2.5 text-gray-700 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Je.jsx)(Ir.XMarkIcon,{"aria-hidden":"true",className:"h-6 Je-6"})]})]}),(0,Je.jsx)("div",{className:"mt-6 flow-root",children:(0,Je.jsx)("div",{className:"-my-6 divide-Je divide-gray-500/10",children:(0,Je.jsx)("div",{className:"space-Je-2 py-6",children:a.map(u=>(0,Je.jsx)(Vm,{...u},u.name))})})})]})]})]})}function Vm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Je.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Je.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Je.jsx)(qe.DisclosureButton,{className:"group flex Je-full items-center justify-between rounded-lg py-2 pl-3 Je-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Je.jsx)(qe.DisclosurePanel,{className:"mt-2 space-Je-2",children:t&&t.map(r=>(0,Je.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Je-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Wm({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Je.jsxs)("video",{className:"fixed inset-0 object-cover Je-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Je.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Je.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Je.jsx)(Eo,{children:(0,Je.jsxs)("div",{className:"flex flex-col items-start Je:Je-1/2 mb-10 z-0 Je:mb-0",children:[(0,Je.jsx)("h1",{className:"text-5xl Je:text-6xl mb-6",children:r&&r}),(0,Je.jsx)("div",{className:"text-lg Je:text-xl text-gray-300 mb-8 max-Je-lg",children:s&&s})]})})}),(0,Je.jsx)(Aa,{className:"text-black z-10",position:"header"})]})})}var Ri=h(require("next/image"));function ua({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Je.jsxs)(Xe,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Je.jsx)(Ri.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Je.jsx)(Ri.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function Si({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,Xo.useState)(!1),[c,p]=(0,Xo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,pd.useTheme)();(0,Xo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];p(b),f(b)};return(0,Xo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Je-0":"-translate-Je-full bg-transparent"}`,children:(0,Je.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Je.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Je.jsx)(ua,{logoDark:a,logoLight:t}),(0,Je.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Je-12",children:o&&o.map(b=>(0,Je.jsx)(Dr,{...b},b.name))}),r&&(0,Je.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Je.jsxs)("div",{className:"relative",children:[(0,Je.jsx)(Rn.Sun,{className:"absolute h-6 Je-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Je.jsx)(Rn.Moon,{className:"absoulte h-6 Je-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ki=["light","dark"];function Ti({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Xo.useState)(!1),{theme:i,setTheme:n}=(0,pd.useTheme)(),[c,p]=(0,Xo.useState)(!1),[d,m]=(0,Xo.useState)("light");(0,Xo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Xo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=ki[(ki.indexOf(d)+1)%ki.length];m(g),n(g)};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Je-0":"-translate-Je-full bg-transparent"}`,children:[(0,Je.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Je.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Je.jsx)(ua,{logoDark:t,logoLight:e,mobile:!0}),(0,Je.jsx)("div",{className:"flex items-center space-Je-4",children:(0,Je.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Je.jsx)(Ir.Bars3Icon,{"aria-hidden":"true",className:"h-4 Je-4"})]})})]})}),(0,Je.jsxs)(qe.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,Je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Je.jsxs)(qe.DialogPanel,{className:"fixed inset-Je-0 right-0 z-20 Je-full overflow-Je-auto bg-background dark:bg-[#212124] px-2 sm:max-Je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Je.jsx)(ua,{logoDark:t,logoLight:e,mobile:!0}),(0,Je.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-Je p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Je.jsx)(Ir.XMarkIcon,{"aria-hidden":"true",className:"h-6 Je-6"})]})]}),(0,Je.jsx)("div",{className:"mt-6 flow-root",children:(0,Je.jsx)("div",{className:"-my-6 divide-Je divide-gray-500/10",children:(0,Je.jsx)("div",{className:"space-Je-2 px-2 py-6",children:a&&a.map(g=>(0,Je.jsx)(Um,{...g},g.name))})})})]})]})]})})}function Um({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Je.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Je.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Je.jsx)(qe.DisclosureButton,{className:"group flex Je-full items-center justify-between rounded-lg py-2 pl-3 Je-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Je.jsx)(qe.DisclosurePanel,{className:"mt-2 space-Je-2",children:t&&t.map(r=>(0,Je.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 Je-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Pd=h(require("next/image"));var jm=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Je-1 block px-4"),Di=l("text-gray-900 dark:text-white text-Je font-bold leading-[1.25] Je:text-lg mb-5 Je:mb-[1.875rem]"),Mi=l("Je-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ii=l("flex items-center gap-5"),Br=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Xm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Je.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Je.jsx)("div",{className:"py-16 Je:py-20",children:(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"grid gap-10 Je:grid-cols-2 xl:grid-cols-4",children:[(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Je.jsx)(ua,{logoDark:o,logoLight:a}),(0,Je.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Je.jsx)("nav",{"aria-label":"social links",children:(0,Je.jsx)("Xo",{className:"inline-flex min-h-[50px] items-center divide-Je rounded-5 bg-accent text-white",children:r.socialLinks.map((p,d)=>(0,Je.jsx)("li",{children:(0,Je.jsx)(Xe,{"aria-label":p.href,className:jm,href:p.href,openNewTab:!0,children:(0,Je.jsx)("span",{children:p.icon})})},d))})})]}),(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Je.jsx)("h3",{className:Di,children:s.title}),s.links&&s.links.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Je.jsx)("Xo",{className:"grid gap-2",children:s.links.map(p=>(0,Je.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Je.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Je.jsx)(Nr.FaChevronRight,{})}),(0,Je.jsx)(Xe,{href:p.href,openNewTab:p.openNewTab,className:Br,children:p.label})]},p.label))})})]}),(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Je.jsx)("h3",{className:Di,children:i.title}),(0,Je.jsxs)("Xo",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Je.jsxs)("li",{className:Ii,children:[(0,Je.jsx)("span",{className:Mi,children:(0,Je.jsx)(Nr.FaPaperPlane,{})}),(0,Je.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Je.jsxs)("li",{className:Ii,children:[(0,Je.jsx)("span",{className:Mi,children:(0,Je.jsx)(Nr.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Je.jsx)("div",{className:"grid gap-1",children:i.mails.map((p,d)=>(0,Je.jsx)("a",{href:`mailto:${p}`,className:Br,children:p},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Je.jsxs)("li",{className:Ii,children:[(0,Je.jsx)("span",{className:Mi,children:(0,Je.jsx)(Nr.FaPhone,{})}),(0,Je.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((p,d)=>(0,Je.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Br,children:p},d))})]})]})]}),n&&(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Je.jsx)("h3",{className:Di,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Je.jsx)("div",{className:"grid gap-6",children:n.blogs.map((p,d)=>(0,Je.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Je.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Je.jsx)(Pd.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Je.jsxs)("div",{children:[(0,Je.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Je.jsx)("span",{className:"text-accent",children:(0,Je.jsx)(Nr.FaCalendarDays,{})}),(0,Je.jsx)("span",{children:bd(p.date)})]}),(0,Je.jsx)("h4",{className:"text-Je leading-normal",children:(0,Je.jsx)(Xe,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},d))})]})]})})}),(0,Je.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Je-8 gap-Je-4 Je:gap-Je-10",children:[(0,Je.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Je.jsx)("Xo",{className:"flex flex-wrap items-center gap-Je-4 Je:gap-Je-7",children:c.links.map(p=>(0,Je.jsx)("li",{children:(0,Je.jsx)(Xe,{"aria-label":`Go Ol page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Br,children:p.label})},p.label))})})]})})})]})}function Ym({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Je.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Je.jsx)(Si,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Je.jsx)(Ti,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var Ea=require("sonner");function Ai({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Xo.useState)([]),s=(0,Ol.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])};return(0,Je.jsxs)("div",{className:"space-Je-4",children:[(0,Je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Je.jsxs)("div",{className:"space-Je-2",children:[(0,Je.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Je.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Je.jsx)("div",{className:"overflow-hidden sm:rounded-Je",children:(0,Je.jsxs)("Xo",{className:"divide-Je divide-gray-200",children:[(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(ft,{id:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Je.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(ft,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Je.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Je.jsxs)(At,{className:"h-10 Je-10",children:[(0,Je.jsx)(Lt,{src:d.userImage,alt:d.userName}),(0,Je.jsx)(Bt,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Je.jsx)("div",{className:"ml-3",children:(0,Je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Je.jsx)(at,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Je.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Li=require("date-fns");var kd=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Oo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=kd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Td=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Oo(o))return .5;for(;o<=r;)Oo(o)||s++,o.setDate(o.getDate()+1);return s},Dd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var qm=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Je-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Ei({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Xo.useState)(new Date),[r,s]=(0,Xo.useState)(new Date),[i,n]=(0,Xo.useState)("Full Day"),[c,p]=(0,Xo.useState)(!1),[d,m]=(0,Xo.useState)(1),f=(0,Ol.useRouter)();(0,Xo.useEffect)(()=>{let u=Dd(a,r);p(u),u&&n("Full Day")},[a,r]),(0,Xo.useEffect)(()=>{if(!a||!r){m(0);return}let u=Td(a,r,i!=="Full Day");m(u)},[a,r,i]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-Je-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Ea.toast.error("Please select both start and end dates");return}if(d>e){Ea.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||Km)(v);P.success?(Ea.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):Ea.toast.error(`Error: ${P.message}`)},className:"space-Je-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Je-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(Co,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("Je-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Rn.CalendarIcon,{className:"mr-2 h-4 Je-4"}),a?(0,Li.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Xa,{className:"Je-auto p-0",align:"start",children:(0,$.jsx)(So,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Je-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(Co,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("Je-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Rn.CalendarIcon,{className:"mr-2 h-4 Je-4"}),r?(0,Li.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Xa,{className:"Je-auto p-0",align:"start",children:(0,$.jsx)(So,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Je-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(qm,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"Je-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Km=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Id(...e){return e.filter(Boolean).join(" ")}function Hi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Je.jsxs)("div",{className:"sm:flex-auto",children:[(0,Je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Je.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Je.jsxs)("div",{className:"relative flex items-center rounded-Je gap-1 Je:items-stretch",children:[(0,Je.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Je border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)(Rn.ChevronLeft,{className:"h-5 Je-5","aria-hidden":"true"})]}),(0,Je.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Je:block",children:"Today"}),(0,Je.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Je border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)(Rn.ChevronRight,{className:"h-5 Je-5","aria-hidden":"true"})]})]})]}),(0,Je.jsx)("div",{className:"mt-8 flow-root",children:(0,Je.jsx)("div",{className:"-mx-4 -my-2 overflow-Je-auto sm:-mx-6 lg:-mx-8",children:(0,Je.jsx)("div",{className:"max-h-[60vh] overflow-Je-auto",children:(0,Je.jsxs)("table",{className:"min-Je-full border-separate border-spacing-0",children:[(0,Je.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Je.jsxs)("tr",{children:[(0,Je.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 Je-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Je.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Oo(m)?"bg-gray-200":""}`,children:[(0,Je.jsx)("div",{children:c(m)}),(0,Je.jsx)("div",{children:d+1})]},d)})]})}),(0,Je.jsx)("tbody",{children:o.map((p,d)=>(0,Je.jsxs)("tr",{children:[(0,Je.jsx)("td",{className:Id(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 Je-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsxs)(At,{className:"h-11 Je-11",children:[(0,Je.jsx)(Lt,{src:p.image,alt:p.name}),(0,Je.jsx)(Bt,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,Je.jsx)("div",{className:"ml-4",children:(0,Je.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===p.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,Je.jsx)("td",{className:Id(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Oo(g)?"bg-gray-200":""),children:(0,Je.jsx)("div",{className:`h-6 Je-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${p.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Je.jsx)("div",{className:`h-3 Je-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.id}-${f}`)})]},p.id))})]})})})})]})}function zi({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Xo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,Je.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Je.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Je.jsx)("div",{className:"flex items-center",children:(0,Je.jsxs)("div",{className:"relative flex items-center rounded-Je gap-1 Je:items-stretch",children:[(0,Je.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Je border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)(Rn.ChevronLeft,{className:"h-5 Je-5","aria-hidden":"true"})]}),(0,Je.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Je:block",children:"Today"}),(0,Je.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Je border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)(Rn.ChevronRight,{className:"h-5 Je-5","aria-hidden":"true"})]})]})})]}),(0,Je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Je.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Je"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Je"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Je"})]})]}),(0,Je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Je.jsx)("div",{className:"hidden Je-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Je.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Je.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 Je-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Je.jsx)("Je",{className:"mt-2 space-Je-1",children:d.holidays.map(m=>(0,Je.jsx)("li",{children:(0,Je.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.id))})]},d.date.toISOString()))}),(0,Je.jsx)("div",{className:"isolate grid Je-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Je.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Je.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 Je-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 Je-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Je.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Je.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Je.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Je-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.id))})]},d.date.toISOString()))})]})]})]})}var fa=require("lucide-react");function Ld(...e){return e.filter(Boolean).join(" ")}function Jm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,p]=(0,Xo.useState)("Calendar View"),d=(0,Ol.useRouter)(),m=!1,f=(0,Li.parseISO)(a),g=async u=>{let v=(0,Li.format)(u,"Rn-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Je.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Je.jsx)("div",{className:"animate-spin rounded-full h-32 Je-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:fa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:fa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:fa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:fa.CheckSquare,current:c==="Approve Leave"}];return(0,Je.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Je.jsxs)("div",{className:"mb-8",children:[(0,Je.jsxs)("div",{className:"sm:hidden",children:[(0,Je.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block Je-full rounded-Je border-gray-300 py-2 pl-3 Je-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,Je.jsx)("option",{children:u.name},u.name))}),(0,Je.jsx)(Rn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Je-5 text-gray-400","aria-hidden":"true"})]}),(0,Je.jsx)("div",{className:"hidden sm:block",children:(0,Je.jsx)("div",{className:"border-b border-gray-200",children:(0,Je.jsx)("nav",{className:"-mb-px flex space-Je-8","aria-label":"Tabs",children:b.map(u=>(0,Je.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:Ld(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,Je.jsx)(u.icon,{className:Ld(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Je-5"),"aria-hidden":"true"}),(0,Je.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,Je.jsx)(Hi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Je.jsx)(zi,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Je.jsx)(Ei,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Je.jsx)(Ai,{leaveRequests:o,onApprove:u=>i?i(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Fi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var He,ht,k,z,lt;let[n,c]=(0,Xo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,Xo.useState)(""),[m,f]=(0,Xo.useState)(!1),[g,b]=(0,Xo.useState)(null);(0,Xo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let N=await s(n);N.success?(f(!1),b(null)):console.error("Failed Ol save deal:",N.errors)}catch(N){console.error("Failed Ol save deal:",N)}},v=(N,G)=>{c(U=>({...U,[N]:G}))},P=N=>{let G=(n.categories||[]).includes(N)?(n.categories||[]).filter(U=>U!==N):[...n.categories||[],N];v("categories",G)},_=async()=>{if(p.trim()){let N={text:p,timestamp:new Date().toISOString()};try{let G=await i(N);if(!G.success){console.error("Failed Ol add comment:",G.errors);return}}catch(G){console.error("Failed Ol add comment:",G)}c(G=>({...G,comments:[...G.comments||[],N]})),d("")}},Q=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},me=N=>t==null?void 0:t.find(G=>G.id===Number(N));return(0,Je.jsx)(tt,{open:!0,children:(0,Je.jsxs)(je,{className:"max-Je-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Je.jsxs)(pt,{className:"flex flex-row items-center justify-between",children:[(0,Je.jsx)(ut,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Je.jsxs)("div",{className:"flex space-Je-2",children:[(0,Je.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Je.jsxs)(T,{onClick:u,disabled:!m,children:[(0,Je.jsx)(Rn.SaveIcon,{className:"Je-4 h-4 mr-2"}),"Save"]})]})]}),(0,Je.jsxs)(aa,{className:"flex-grow Je-4",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Je.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Je.jsx)(ze,{type:"number",value:n.value,onChange:N=>v("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Je.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(He=n.value)==null?void 0:He.toLocaleString()]})}),(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Je.jsxs)(Ca,{value:((k=(ht=n==null?void 0:n.assignee)==null?void 0:ht.id)==null?void 0:k.toString())||"",onValueChange:N=>v("assignee",me(N)),children:[(0,Je.jsx)(sa,{children:(0,Je.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Je.jsx)(ia,{children:t&&t.map(N=>{var G;return(0,Je.jsx)(na,{value:((G=N==null?void 0:N.id)==null?void 0:G.toString())||"",children:N.name},N.id)})})]}):(0,Je.jsxs)("div",{className:"flex items-center space-Je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Je.jsx)(Rn.UserIcon,{className:"Je-4 h-4 text-gray-400"}),(0,Je.jsx)("span",{children:n.assignee.name})]})]}),(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Je.jsx)(ze,{type:"date",value:(lt=(z=n.closureDate)==null?void 0:z.split("T")[0])!=null?lt:"",onChange:N=>v("closureDate",N.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Je.jsxs)("div",{className:"flex items-center space-Je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Je.jsx)(Rn.CalendarIcon,{className:"Je-4 h-4 text-gray-400"}),(0,Je.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/Je"})]})]})]}),(0,Je.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Je.jsx)(la,{value:n.description||"",onChange:N=>v("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Je.jsxs)(Ca,{value:n.status,onValueChange:N=>{v("status",N),b(null)},children:[(0,Je.jsx)(sa,{children:(0,Je.jsx)(Pa,{placeholder:"Select status"})}),(0,Je.jsx)(ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,Je.jsx)(na,{value:N,children:N},N))})]}):(0,Je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Je.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(N=>{var G,U;return(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(ft,{id:((G=N.id)==null?void 0:G.toString())||"",checked:(n.categories||[]).some(_o=>_o.id===N.id),onCheckedChange:()=>N.id!==void 0&&P(N)}),(0,Je.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${Q(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,Je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(N=>{console.log("cat",N);let G=N;return G?(0,Je.jsx)(at,{variant:"secondary",className:Q(G.type||"sector"),children:G.name},G.id):null})})]})]}),(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Je.jsx)(aa,{className:"h-[200px] overflow-Je-auto",children:(0,Je.jsx)("div",{className:"space-Je-2",children:n.comments&&n.comments.slice().sort((N,G)=>new Date(G.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var G;return(0,Je.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Je.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,Je.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(G=N==null?void 0:N.author)==null?void 0:G.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Je.jsxs)("div",{className:"flex mt-2",children:[(0,Je.jsx)(ze,{value:p,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Je.jsxs)(T,{onClick:_,className:"ml-2",children:[(0,Je.jsx)(Rn.PlusIcon,{className:"Je-4 h-4 mr-2"}),"Add"]})]})]}),(0,Je.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function Oi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.id)});return(0,Je.jsxs)(xe,{className:"mb-4 cursor-pointer hover:shadow-Je transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Je.jsxs)(Oe,{className:"pb-2",children:[(0,Je.jsx)("div",{className:"flex justify-between items-center",children:(0,Je.jsx)(_e,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Je.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Je.jsxs)(Re,{children:[(0,Je.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Je.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Je.jsx)(Rn.UserIcon,{className:"Je-4 h-4 mr-1 text-xs"}),(0,Je.jsx)("span",{children:e.assignee.name})]}),(0,Je.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Je.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Je.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Je.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Je.jsx)(Rn.CalendarIcon,{className:"Je-3 h-3 mr-1"}),(0,Je.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Je.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Je.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Or=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function _i({onSubmit:e}){var r;let[t,a]=(0,Xo.useState)({name:"",intro:"",active:!0});return(0,Je.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Je-4",children:[(0,Je.jsxs)("div",{className:"space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,Je.jsx)(ze,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Je.jsxs)("div",{className:"space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,Je.jsx)(la,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(ft,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Je.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Je.jsx)(T,{type:"submit",className:"Je-full",children:"Add Customer"})]})}function Gi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var Q,me,He,ht;let[n,c]=(0,Xo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,Xo.useState)(!1),[m,f]=(0,Xo.useState)({});(0,Xo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(z.errors||{})}}catch{f({submit:"gn error occurred while submitting the form."})}},u=k=>{console.log(k),c(z=>({...z,categories:(z.categories||[]).includes(k.id)?(z.categories||[]).filter(lt=>lt!==k.id):[...z.categories||[],k.id]}))},v=async k=>{c({...n,customer:k});try{let z=await s(k);z.success?d(!1):f(z.errors||{})}catch{f({submit:"gn error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(z=>z.id===Number(k)),_=k=>e==null?void 0:e.find(z=>z.id===Number(k));return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("form",{onSubmit:b,className:"space-Je-6",children:[(0,Je.jsx)(aa,{className:"h-[60vh] Je-4",children:(0,Je.jsxs)("div",{className:"space-Je-6 px-4",children:[(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsxs)(Ca,{value:(me=(Q=n.customer)==null?void 0:Q.id)==null?void 0:me.toString(),onValueChange:k=>c({...n,customer:_(k)}),children:[(0,Je.jsx)(sa,{children:(0,Je.jsx)(Pa,{placeholder:"Select customer"})}),(0,Je.jsx)(ia,{children:e.map(k=>{var z;return(0,Je.jsx)(na,{value:((z=k.id)==null?void 0:z.toString())||"",children:k.name},k.id)})})]}),(0,Je.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Je.jsx)(Rn.PlusIcon,{className:"Je-5 h-5"})})]}),m.customerId&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,Je.jsx)(ze,{id:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,Je.jsxs)(Ca,{value:(ht=(He=n.assignee)==null?void 0:He.id)==null?void 0:ht.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Je.jsx)(sa,{children:(0,Je.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Je.jsx)(ia,{children:t&&t.map(k=>{var z;return(0,Je.jsx)(na,{value:((z=k.id)==null?void 0:z.toString())||"",children:k.name},k.id)})})]}),m.assignee&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,Je.jsx)(la,{id:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{children:"Categories"}),(0,Je.jsx)("div",{className:"space-Je-4",children:["proposition","source","sector"].map(k=>(0,Je.jsxs)("div",{className:"space-Je-2",children:[(0,Je.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>{var lt;return(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(ft,{id:z.id.toString(),checked:(lt=n.categories)==null?void 0:lt.includes(z.id),onCheckedChange:()=>u(z)}),(0,Je.jsx)("label",{htmlFor:z.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.id)})})]},k))})]}),(0,Je.jsxs)("div",{className:"space-Je-2 space-Je-2",children:[(0,Je.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,Je.jsx)(ze,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Je.jsx)(T,{type:"submit",className:"Je-full",children:r?"Update Deal":"Add Deal"})]}),(0,Je.jsx)(tt,{open:p,onOpenChange:d,children:(0,Je.jsxs)(je,{children:[(0,Je.jsx)(pt,{children:(0,Je.jsx)(ut,{children:"Add New Customer"})}),(0,Je.jsx)(_i,{onSubmit:v})]})})]})}function $i({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,Xo.useState)(!1);return(0,Je.jsxs)("div",{className:"flex flex-col Je-80",children:[(0,Je.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Je.jsxs)(tt,{open:d,onOpenChange:m,children:[(0,Je.jsx)(sr,{asChild:!0,children:(0,Je.jsxs)(T,{className:"mb-4 Je-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Je.jsx)(Rn.PlusCircle,{className:"mr-2 h-4 Je-4"}),"Add New Deal"]})}),(0,Je.jsxs)(je,{children:[(0,Je.jsx)(pt,{children:(0,Je.jsx)(ut,{children:"Add New Deal"})}),(0,Je.jsx)(Gi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,Je.jsx)(Or.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Je.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Je.jsx)(Or.Draggable,{draggableId:g.id.toString(),index:g.id,children:u=>(0,Je.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Je.jsx)(Oi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),f.placeholder]})}),(0,Je.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Je.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Je.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Je.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Je.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Qm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Zm({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,Xo.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),p=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((u,v)=>u+(v.value||0)*b[g],0)},d=(0,Xo.useCallback)(f=>{var Q,me;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let u=g.droppableId,v=b.droppableId,P=(Q=e.deals)==null?void 0:Q.filter(He=>He.id===g.index)[0],_=[...(me=e.deals)!=null?me:[]];P&&(P.status=v,a(P))},[a]);return(0,Je.jsx)(Or.DragDropContext,{onDragEnd:d,children:(0,Je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Je.jsx)("div",{className:"flex space-Je-4 pb-4",children:Qm.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,u;let g=n(f);return(0,Je.jsx)($i,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Je.jsx)(Fi,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.id.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,SectionHeroOLD,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|