cortex-react-components 1.40.1 → 1.40.3
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-RT2YQPBB.mjs → chunk-373YJLIH.mjs} +1 -1
- package/dist/{chunk-UYL4BACW.mjs → chunk-4RHWRSNG.mjs} +1 -1
- package/dist/{chunk-GBLZNN44.mjs → chunk-62YZZSOX.mjs} +1 -1
- package/dist/{chunk-HOHTZCBW.mjs → chunk-CNCPREWR.mjs} +1 -1
- package/dist/{chunk-STREWEPO.mjs → chunk-CTCV3L4B.mjs} +1 -1
- package/dist/{chunk-5XF6WIV7.mjs → chunk-ET5WFKM7.mjs} +1 -1
- package/dist/{chunk-MLCK4J2D.mjs → chunk-FBFDZOP6.mjs} +1 -1
- package/dist/{chunk-CH46S52X.mjs → chunk-HRZRAS6Z.mjs} +1 -1
- package/dist/{chunk-34NJELRZ.mjs → chunk-HTO3HNQS.mjs} +1 -1
- package/dist/{chunk-QUC2J3J4.mjs → chunk-I2TKZ5BM.mjs} +1 -1
- package/dist/{chunk-2R7F4VOJ.mjs → chunk-IS5OUEJJ.mjs} +1 -1
- package/dist/{chunk-KQGTRCZ6.mjs → chunk-JM6ZXLBG.mjs} +1 -1
- package/dist/{chunk-ADJEMG5X.mjs → chunk-JYZW3G3N.mjs} +1 -1
- package/dist/{chunk-3GDRM3XB.mjs → chunk-L44KSGUG.mjs} +1 -1
- package/dist/{chunk-TA72YYXA.mjs → chunk-LVUWQ35N.mjs} +1 -1
- package/dist/{chunk-67CFEGX4.mjs → chunk-QGZ7QIG3.mjs} +1 -1
- package/dist/{chunk-W7NOB7CY.mjs → chunk-SJWN6J3F.mjs} +1 -1
- package/dist/{chunk-QY7LU2TL.mjs → chunk-UDVFDGKM.mjs} +1 -1
- package/dist/{chunk-LCWZZNZR.mjs → chunk-Y6QUDCQM.mjs} +1 -1
- package/dist/chunk-YCX5N23N.mjs +4 -0
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/Image.js +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/Image.stories.js +1 -1
- package/dist/components/Cards/Image.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.js +3 -3
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +3 -3
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +1 -1
- 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/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +3 -3
- 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/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +97 -97
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-P5NVJTJ5.mjs +0 -4
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
'use strict'
|
|
5
5
|
'use server'
|
|
6
6
|
|
|
7
|
-
"use strict";var jc=Object.create;var kr=Object.defineProperty;var Xc=Object.getOwnPropertyDescriptor;var Yc=Object.getOwnPropertyNames;var Kc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var Qc=(e,t)=>{for(var a in t)kr(e,a,{get:t[a],enumerable:!0})},Us=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yc(t))!qc.call(e,o)&&o!==a&&kr(e,o,{get:()=>t[o],enumerable:!(r=Xc(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?jc(Kc(e)):{},Us(t||!e||!e.__esModule?kr(a,"default",{value:e,enumerable:!0}):a,e)),Jc=e=>Us(kr({},"__esModule",{value:!0}),e);var op={};Qc(op,{AboutSection:()=>jm,Alert:()=>Oi,AlertDescription:()=>Gi,AlertTitle:()=>_i,ApproveLeave:()=>Ds,Avatar:()=>gt,AvatarFallback:()=>bt,AvatarImage:()=>ft,Badge:()=>Ft,BannerBlock:()=>Yi,BlogCard:()=>Jl,BlogDetail:()=>ap,BlogList:()=>bm,BlogListSection:()=>Ym,BrandLogo:()=>Vt,Breadcrumb:()=>_o,BreadcrumbEllipsis:()=>jo,BreadcrumbItem:()=>$o,BreadcrumbLink:()=>Vo,BreadcrumbList:()=>Go,BreadcrumbPage:()=>Uo,BreadcrumbSeparator:()=>Wo,Breadcrumbs:()=>Cs,Button:()=>D,CMSLink:()=>yt,Calendar:()=>lr,CalendarView:()=>Bs,CallToActionBlock:()=>mr,Card:()=>ur,Categories:()=>fr,Checkbox:()=>nr,CodeBlock:()=>Ji,Collapsible:()=>ct,CollapsibleContent:()=>At,CollapsibleTrigger:()=>Tt,CollectionArchive:()=>vm,Command:()=>Wr,CommandDialog:()=>Xn,CommandEmpty:()=>Ei,CommandGroup:()=>Bi,CommandInput:()=>Ii,CommandItem:()=>zi,CommandList:()=>Li,CommandSeparator:()=>Hi,CommandShortcut:()=>Fi,ContactSection:()=>ep,Container:()=>me,ContentBlock:()=>os,CopyButton:()=>qi,CustomLink:()=>ue,CustomerCard:()=>ul,Dialog:()=>Na,DialogClose:()=>Vr,DialogContent:()=>Jt,DialogDescription:()=>Mi,DialogFooter:()=>Di,DialogHeader:()=>or,DialogOverlay:()=>Ur,DialogPortal:()=>Ai,DialogTitle:()=>ir,DialogTrigger:()=>Wn,DropdownMenu:()=>tn,DropdownMenuCheckboxItem:()=>Qo,DropdownMenuContent:()=>Ko,DropdownMenuGroup:()=>rn,DropdownMenuItem:()=>qo,DropdownMenuLabel:()=>Zo,DropdownMenuPortal:()=>on,DropdownMenuRadioGroup:()=>nn,DropdownMenuRadioItem:()=>Jo,DropdownMenuSeparator:()=>ei,DropdownMenuShortcut:()=>ti,DropdownMenuSub:()=>sn,DropdownMenuSubContent:()=>Yo,DropdownMenuSubTrigger:()=>Xo,DropdownMenuTrigger:()=>an,DynamicIcon:()=>Ve,EventCard:()=>gl,FeatureCard:()=>dl,FeatureGrid:()=>Nl,FeaturesBlock:()=>pr,Filter:()=>hs,Footer:()=>Fm,Header:()=>Om,HeaderDesktop:()=>xr,HeaderMobile:()=>yr,HeadingImage:()=>pm,HighImpactHero:()=>xs,HolidayGrid:()=>Es,HolidayTracker:()=>Vm,HoverCard:()=>Gn,HoverCardContent:()=>Ti,HoverCardTrigger:()=>$n,Image:()=>xl,ImageBlock:()=>rs,InfoTile:()=>rm,Input:()=>Ga,Insight:()=>am,Label:()=>qt,Logo:()=>hm,LowImpactHero:()=>Ns,MOTD:()=>im,MainPageSection:()=>rp,Media:()=>Nt,MediaBlock:()=>Pa,MediumImpactHero:()=>ws,NewsGrid:()=>Wl,OrgChart:()=>lm,PageRange:()=>wm,Pagination:()=>bs,PayloadPagination:()=>Nm,Popover:()=>tr,PopoverAnchor:()=>Hn,PopoverContent:()=>wa,PopoverTrigger:()=>ar,PostHero:()=>Am,PricingCard:()=>Xi,PricingSection:()=>Wm,ProjectCard:()=>hl,ProjectTeam:()=>km,ProposalSummary:()=>cm,RelatedContent:()=>gs,RelatedPosts:()=>gm,RenderBlocks:()=>is,RenderHero:()=>Mm,RequestLeave:()=>Ls,RichText:()=>Z,ScrollArea:()=>Ri,ScrollBar:()=>$r,SectionHero:()=>Ps,Select:()=>jd,SelectContent:()=>el,SelectGroup:()=>Xd,SelectItem:()=>al,SelectLabel:()=>tl,SelectScrollDownButton:()=>Ui,SelectScrollUpButton:()=>Vi,SelectSeparator:()=>rl,SelectTrigger:()=>Zn,SelectValue:()=>Yd,Separator:()=>$a,ServiceCard:()=>ji,ServiceSection:()=>Um,Sheet:()=>Ar,SheetClose:()=>fn,SheetContent:()=>Ua,SheetDescription:()=>ni,SheetFooter:()=>ii,SheetHeader:()=>oi,SheetOverlay:()=>Dr,SheetPortal:()=>ri,SheetTitle:()=>si,SheetTrigger:()=>gn,Sidebar:()=>Wt,SidebarContent:()=>Mt,SidebarFooter:()=>Xt,SidebarGroup:()=>_e,SidebarGroupAction:()=>gi,SidebarGroupContent:()=>Ye,SidebarGroupLabel:()=>mt,SidebarHeader:()=>jt,SidebarInput:()=>ui,SidebarInset:()=>pi,SidebarLeft:()=>Pm,SidebarMenu:()=>De,SidebarMenuAction:()=>Xa,SidebarMenuBadge:()=>fi,SidebarMenuButton:()=>Ge,SidebarMenuItem:()=>xe,SidebarMenuSkeleton:()=>bi,SidebarMenuSub:()=>It,SidebarMenuSubButton:()=>Et,SidebarMenuSubItem:()=>Lt,SidebarProvider:()=>ci,SidebarRail:()=>mi,SidebarRight:()=>Sm,SidebarSeparator:()=>ja,SidebarTrigger:()=>di,SimpleHeader:()=>Lm,Skeleton:()=>te,SlideShow:()=>$l,TextAndImages:()=>jl,Textarea:()=>il,ThemeProvider:()=>_m,Toast:()=>qa,ToastAction:()=>xi,ToastClose:()=>Qa,ToastDescription:()=>Za,ToastProvider:()=>_r,ToastTitle:()=>Ja,ToastViewport:()=>Ka,Toaster:()=>Dn,Toggle:()=>wi,ToggleGroup:()=>Ni,ToggleGroupItem:()=>Pi,Tooltip:()=>Er,TooltipContent:()=>Wa,TooltipProvider:()=>Lr,TooltipTrigger:()=>Br,VideoHeader:()=>Hm,WhyUs:()=>dm,badgeVariants:()=>$i,buttonVariants:()=>Dt,Oe:()=>s,getTableOfContents:()=>Dd,reducer:()=>Sn,toast:()=>kn,toggleVariants:()=>er,useIsMobile:()=>Ir,useSidebar:()=>xa,useToast:()=>Or});module.exports=Jc(op);var fa=v(require("react")),Tr=require("@radix-ui/react-icons"),en=require("@radix-ui/react-slot");var Zs=require("clsx");var Oo="-",Zc=e=>{let t=td(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let l=n.split(Oo);return l[0]===""&&l.length!==1&&l.shift(),Xs(l,t)||ed(n)},getConflictingClassGroupIds:(n,l)=>{let d=a[n]||[];return l&&r[n]?[...d,...r[n]]:d}}},Xs=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Xs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Oo);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},Ws=/^\[(.+)\]$/,ed=e=>{if(Ws.test(e)){let t=Ws.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},td=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return rd(Object.entries(e.classGroups),a).forEach(([i,n])=>{Fo(n,r,i,t)}),r},Fo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:js(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(ad(o)){Fo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,n])=>{Fo(n,js(t,i),a,r)})})},js=(e,t)=>{let a=e;return t.split(Oo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},ad=e=>e.isThemeGetter,rd=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[a,o]}):e,od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return o(i,n),n},set(i,n){a.has(i)?a.set(i,n):o(i,n)}}},Ys="!",id=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,n=l=>{let d=[],m=0,c=0,p;for(let h=0;h<l.length;h++){let P=l[h];if(m===0){if(P===o&&(r||l.slice(h,h+i)===t)){d.push(l.slice(c,h)),c=h+i;continue}if(P==="/"){p=h;continue}}P==="["?m++:P==="]"&&m--}let u=d.length===0?l:l.substring(c),f=u.startsWith(Ys),N=f?u.substring(1):u,g=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:N,maybePostfixModifierPosition:g}};return a?l=>a({className:l,parseClassName:n}):n},sd=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},nd=e=>({cache:od(e.cacheSize),parseClassName:id(e),...Zc(e)}),ld=/\s+/,cd=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],n=e.trim().split(ld),l="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=a(m),N=!!f,g=r(N?u.substring(0,f):u);if(!g){if(!N){l=m+(l.length>0?" "+l:l);continue}if(g=r(u),!g){l=m+(l.length>0?" "+l:l);continue}N=!1}let h=sd(c).join(":"),P=p?h+Ys:h,R=P+g;if(i.includes(R))continue;i.push(R);let fe=o(g,N);for(let Ae=0;Ae<fe.length;++Ae){let st=fe[Ae];i.push(P+st)}l=m+(l.length>0?" "+l:l)}return l};function dd(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ks(t))&&(r&&(r+=" "),r+=a);return r}var Ks=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Ks(e[r]))&&(a&&(a+=" "),a+=t);return a};function md(e,...t){let a,r,o,i=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=nd(m),r=a.cache.get,o=a.cache.set,i=l,l(d)}function l(d){let m=r(d);if(m)return m;let c=cd(d,a);return o(d,c),c}return function(){return i(dd.apply(null,arguments))}}var Y=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},qs=/^\[(?:([a-Oe-]+):)?(.+)\]$/i,pd=/^\d+\/\d+$/,ud=new Set(["px","full","screen"]),gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Oe|Mr|in|cm|mm|cap|ch|ex|r?lh|cq(Oe|h|i|Oe|min|max))|\Oe(calc|min|max|clamp)\(.+\)|^0$/,bd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-Oe]+|0)Oe-?((\d+)?\.?(\d+)[a-Oe]+|0)/,hd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>ua(e)||ud.has(e)||pd.test(e),St=e=>ga(e,"length",Sd),ua=e=>!!e&&!Number.isNaN(Number(e)),zo=e=>ga(e,"number",ua),Oa=e=>!!e&&Number.isInteger(Number(e)),xd=e=>e.endsWith("%")&&ua(e.slice(0,-1)),S=e=>qs.test(e),kt=e=>gd.test(e),yd=new Set(["length","size","percentage"]),wd=e=>ga(e,yd,Qs),Nd=e=>ga(e,"position",Qs),Pd=new Set(["image","url"]),Cd=e=>ga(e,Pd,Td),Rd=e=>ga(e,"",kd),_a=()=>!0,ga=(e,t,a)=>{let r=qs.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},Sd=e=>fd.test(e)&&!bd.test(e),Qs=()=>!1,kd=e=>vd.test(e),Td=e=>hd.test(e);var Ad=()=>{let e=Y("colors"),t=Y("spacing"),a=Y("blur"),r=Y("brightness"),o=Y("borderColor"),i=Y("borderRadius"),n=Y("borderSpacing"),l=Y("borderWidth"),d=Y("contrast"),m=Y("grayscale"),c=Y("hueRotate"),p=Y("invert"),u=Y("gap"),f=Y("gradientColorStops"),N=Y("gradientColorStopPositions"),g=Y("inset"),h=Y("margin"),P=Y("opacity"),R=Y("padding"),fe=Y("saturate"),Ae=Y("scale"),st=Y("sepia"),Cr=Y("skew"),Fs=Y("space"),Os=Y("translate"),Lo=()=>["auto","contain","none"],Eo=()=>["auto","hidden","clip","visible","scroll"],Bo=()=>["auto",S,t],q=()=>[S,t],_s=()=>["",lt,St],Rr=()=>["auto",ua,S],Gs=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Sr=()=>["solid","dashed","dotted","double","none"],$s=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ho=()=>["start","end","center","between","around","evenly","stretch"],Fa=()=>["","0",S],Vs=()=>["auto","avoid","all","avoid-page","page","left","right","column"],nt=()=>[ua,S];return{cacheSize:500,separator:":",theme:{colors:[_a],spacing:[lt,St],blur:["none","",kt,S],brightness:nt(),borderColor:[e],borderRadius:["none","","full",kt,S],borderSpacing:q(),borderWidth:_s(),contrast:nt(),grayscale:Fa(),hueRotate:nt(),invert:Fa(),gap:q(),gradientColorStops:[e],gradientColorStopPositions:[xd,St],inset:Bo(),margin:Bo(),opacity:nt(),padding:q(),saturate:nt(),scale:nt(),sepia:Fa(),skew:nt(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":Vs()}],"break-before":[{"break-before":Vs()}],"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:[...Gs(),S]}],overflow:[{overflow:Eo()}],"overflow-Oe":[{"overflow-Oe":Eo()}],"overflow-Oe":[{"overflow-Oe":Eo()}],overscroll:[{overscroll:Lo()}],"overscroll-Oe":[{"overscroll-Oe":Lo()}],"overscroll-Oe":[{"overscroll-Oe":Lo()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-Oe":[{"inset-Oe":[g]}],"inset-Oe":[{"inset-Oe":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],Oe:[{Oe:["auto",Oa,S]}],basis:[{basis:Bo()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:Fa()}],shrink:[{shrink:Fa()}],order:[{order:["first","last","none",Oa,S]}],"grid-cols":[{"grid-cols":[_a]}],"col-start-end":[{col:["auto",{span:["full",Oa,S]},S]}],"col-start":[{"col-start":Rr()}],"col-end":[{"col-end":Rr()}],"grid-rows":[{"grid-rows":[_a]}],"row-start-end":[{row:["auto",{span:[Oa,S]},S]}],"row-start":[{"row-start":Rr()}],"row-end":[{"row-end":Rr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[u]}],"gap-Oe":[{"gap-Oe":[u]}],"gap-Oe":[{"gap-Oe":[u]}],"justify-content":[{justify:["normal",...Ho()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ho(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ho(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],Oe:[{Oe:[R]}],Oe:[{Oe:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Oe":[{"space-Oe":[Fs]}],"space-Oe-reverse":["space-Oe-reverse"],"space-Oe":[{"space-Oe":[Fs]}],"space-Oe-reverse":["space-Oe-reverse"],Oe:[{Oe:["auto","min","max","fit","svw","lvw","dvw",S,t]}],"min-Oe":[{"min-Oe":[S,t,"min","max","fit"]}],"max-Oe":[{"max-Oe":[S,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[S,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zo]}],"font-family":[{font:[_a]}],"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",S]}],"line-clamp":[{"line-clamp":["none",ua,zo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lt,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"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","Oe-underline"],"text-decoration-style":[{decoration:[...Sr(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",lt,St]}],"underline-offset":[{"underline-offset":["auto",lt,S]}],"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:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"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:[...Gs(),Nd]}],"bg-repeat":[{bg:["Oe-repeat",{repeat:["","Oe","Oe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Oe","bl","l","tl"]},Cd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Oe":[{"rounded-Oe":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-Mr":[{"rounded-Mr":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-Oe":[{"rounded-Oe":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-Oe":[{border:[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-s":[{"border-s":[l]}],"border-Oe-e":[{"border-e":[l]}],"border-Oe-t":[{"border-t":[l]}],"border-Oe-r":[{"border-r":[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Sr(),"hidden"]}],"divide-Oe":[{"divide-Oe":[l]}],"divide-Oe-reverse":["divide-Oe-reverse"],"divide-Oe":[{"divide-Oe":[l]}],"divide-Oe-reverse":["divide-Oe-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Sr()}],"border-color":[{border:[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Sr()]}],"outline-offset":[{"outline-offset":[lt,S]}],"outline-Oe":[{outline:[lt,St]}],"outline-color":[{outline:[e]}],"ring-Oe":[{ring:_s()}],"ring-Oe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Oe":[{"ring-offset":[lt,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,Rd]}],"shadow-color":[{shadow:[_a]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...$s(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$s()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",kt,S]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[fe]}],sepia:[{sepia:[st]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[fe]}],"backdrop-sepia":[{"backdrop-sepia":[st]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-Oe":[{"border-spacing-Oe":[n]}],"border-spacing-Oe":[{"border-spacing-Oe":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:nt()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:nt()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Ae]}],"scale-Oe":[{"scale-Oe":[Ae]}],"scale-Oe":[{"scale-Oe":[Ae]}],rotate:[{rotate:[Oa,S]}],"translate-Oe":[{"translate-Oe":[Os]}],"translate-Oe":[{"translate-Oe":[Os]}],"skew-Oe":[{"skew-Oe":[Cr]}],"skew-Oe":[{"skew-Oe":[Cr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],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","Oe-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Oe-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Oe","Oe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-Oe":[{"scroll-Oe":q()}],"scroll-Oe":[{"scroll-Oe":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Oe","Oe","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Oe":[{"touch-pan":["Oe","left","right"]}],"touch-Oe":[{"touch-pan":["Oe","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[e,"none"]}],"stroke-Oe":[{stroke:[lt,St,zo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Oe","overflow-Oe"],overscroll:["overscroll-Oe","overscroll-Oe"],inset:["inset-Oe","inset-Oe","start","end","top","right","bottom","left"],"inset-Oe":["right","left"],"inset-Oe":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Oe","gap-Oe"],p:["px","py","ps","Oe","Oe","pr","pb","pl"],px:["pr","pl"],py:["Oe","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Oe","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-Oe","rounded-l","rounded-Mr","rounded-se","rounded-ee","rounded-Oe","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-Mr","rounded-Oe"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Oe":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Oe","border-spacing-Oe"],"border-Oe":["border-Oe-s","border-Oe-e","border-Oe-t","border-Oe-r","border-Oe-Oe","border-Oe-l"],"border-Oe-Oe":["border-Oe-r","border-Oe-l"],"border-Oe-Oe":["border-Oe-t","border-Oe-Oe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Oe","border-color-l"],"border-color-Oe":["border-color-r","border-color-l"],"border-color-Oe":["border-color-t","border-color-Oe"],"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-Oe","scroll-Oe","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Oe","scroll-pb"],touch:["touch-Oe","touch-Oe","touch-pz"],"touch-Oe":["touch"],"touch-Oe":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Js=md(Ad);function s(...e){return Js((0,Zs.clsx)(e))}function Dd(e){let t=0,a=(i,n)=>`${i.toLowerCase().replace(/\s+/g,"-").replace(/[^\Oe-]/g,"")}-${n}`,r=e.layout.flatMap(i=>{let n=[];return"title"in i&&i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),"columns"in i&&Array.isArray(i.columns)&&i.columns.forEach(l=>{l.title&&n.push({text:l.title,id:a(l.title,t++),tag:"h2"}),l.richText&&l.richText.root.children.filter(d=>d.type==="heading").forEach(d=>{n.push({text:d.children[0].text,id:a(d.children[0].text,t++),tag:d.tag||"h2"})})}),n}),o=Md(e.layout);return{tableOfContents:r,contentWithIds:o}}function Md(e){let t=(r,o)=>`${r.toLowerCase().replace(/\s+/g,"-").replace(/[^\Oe-]/g,"")}-${o}`,a=0;return e.map(r=>(r.title&&(r.id=t(r.title,a++)),r.columns&&(r.columns=r.columns.map(o=>(o.title&&(o.id=t(o.title,a++)),o.richText&&(o.richText.root.children=o.richText.root.children.map(i=>(i.type==="heading"&&(i.id=t(i.children[0].text,a++)),i))),o))),r))}var Oe=require("react/jsx-runtime"),_o=fa.forwardRef(({...e},t)=>(0,Oe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));_o.displayName="Breadcrumb";var Go=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ol",{ref:a,className:s("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Go.displayName="BreadcrumbList";var $o=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{ref:a,className:s("inline-flex items-center gap-1.5",e),...t}));$o.displayName="BreadcrumbItem";var Vo=fa.forwardRef(({asChild:e,className:t,...a},r)=>(0,Oe.jsx)(e?en.Slot:"a",{ref:r,className:s("transition-colors hover:text-foreground",t),...a}));Vo.displayName="BreadcrumbLink";var Uo=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:s("font-normal text-foreground",e),...t}));Uo.displayName="BreadcrumbPage";var Wo=({children:e,className:t,...a})=>(0,Oe.jsx)("Oe",{role:"presentation","aria-hidden":"true",className:s("[&>svg]:Oe-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Oe.jsx)(Tr.ChevronRightIcon,{})});Wo.displayName="BreadcrumbSeparator";var jo=({className:e,...t})=>(0,Oe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Tr.DotsHorizontalIcon,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More"})]});jo.displayName="BreadcrumbElipssis";var ba=v(require("@radix-ui/react-collapsible")),ct=ba.Root,Tt=ba.CollapsibleTrigger,At=ba.CollapsibleContent;var dt=v(require("react")),A=v(require("@radix-ui/react-dropdown-menu"));var tn=A.Root,an=A.Trigger,rn=A.Group,on=A.Portal,sn=A.Sub,nn=A.RadioGroup,Xo=dt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,Oe.jsxs)(A.SubTrigger,{ref:o,className:s("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),...r,children:[a,(0,Oe.jsx)(Tr.ChevronRightIcon,{className:"ml-auto"})]}));Xo.displayName=A.SubTrigger.displayName;var Yo=dt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(A.SubContent,{ref:a,className:s("Oe-50 min-Oe-[8rem] overflow-hidden rounded-md 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}));Yo.displayName=A.SubContent.displayName;var Ko=dt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Oe.jsx)(A.Portal,{children:(0,Oe.jsx)(A.Content,{ref:r,sideOffset:t,className:s("Oe-50 min-Oe-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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})}));Ko.displayName=A.Content.displayName;var qo=dt.forwardRef(({className:e,inset:t,...a},r)=>(0,Oe.jsx)(A.Item,{ref:r,className:s("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}));qo.displayName=A.Item.displayName;var Qo=dt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,Oe.jsxs)(A.CheckboxItem,{ref:o,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,...r,children:[(0,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(A.ItemIndicator,{children:(0,Oe.jsx)(Tr.CheckIcon,{className:"h-4 Oe-4"})})}),t]}));Qo.displayName=A.CheckboxItem.displayName;var Jo=dt.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)(A.RadioItem,{ref:r,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(A.ItemIndicator,{children:(0,Oe.jsx)(Tr.DotFilledIcon,{className:"h-4 Oe-4 fill-current"})})}),t]}));Jo.displayName=A.RadioItem.displayName;var Zo=dt.forwardRef(({className:e,inset:t,...a},r)=>(0,Oe.jsx)(A.Label,{ref:r,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Zo.displayName=A.Label.displayName;var ei=dt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(A.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));ei.displayName=A.Separator.displayName;var ti=({className:e,...t})=>(0,Oe.jsx)("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});ti.displayName="DropdownMenuShortcut";var ln=v(require("react"));var Ga=ln.forwardRef(({className:e,type:t,...a},r)=>(0,Oe.jsx)("input",{type:t,className:s("flex h-9 Oe-full rounded-md 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:r,...a}));Ga.displayName="Input";var dn=v(require("react")),ai=v(require("@radix-ui/react-separator"));var $a=dn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,Oe.jsx)(ai.Root,{ref:o,decorative:a,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] Oe-full":"h-full Oe-[1px]",e),...r}));$a.displayName=ai.Root.displayName;var Va=v(require("react")),ee=v(require("@radix-ui/react-dialog")),un=require("class-variance-authority");var Ar=ee.Root,gn=ee.Trigger,fn=ee.Close,ri=ee.Portal,Dr=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Overlay,{className:s("fixed inset-0 Oe-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}));Dr.displayName=ee.Overlay.displayName;var Id=(0,un.cva)("fixed Oe-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-Oe-0 top-0 border-Oe data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-Oe-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Oe-0 left-0 h-full Oe-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-Oe-sm",right:"inset-Oe-0 right-0 h-full Oe-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-Oe-sm"}},defaultVariants:{side:"right"}}),Ua=Va.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,Oe.jsxs)(ri,{children:[(0,Oe.jsx)(Dr,{}),(0,Oe.jsxs)(ee.Content,{ref:o,className:s(Id({side:e}),t),...r,children:[(0,Oe.jsxs)(ee.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,Oe.jsx)(Tr.Cross2Icon,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ua.displayName=ee.Content.displayName;var oi=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col space-Oe-2 text-center sm:text-left",e),...t});oi.displayName="SheetHeader";var ii=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Oe-2",e),...t});ii.displayName="SheetFooter";var si=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Title,{ref:a,className:s("text-lg font-semibold text-foreground",e),...t}));si.displayName=ee.Title.displayName;var ni=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));ni.displayName=ee.Description.displayName;var M=v(require("react")),Pn=require("lucide-react");var Mr=require("react"),Ir=(e=768)=>{let[t,a]=(0,Mr.useState)(!1);return(0,Mr.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var hn=v(require("react")),Dt=(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 Oe-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),D=hn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,Oe.jsx)(e?en.Slot:"button",{className:s(Dt({className:t,size:a,variant:r})),ref:i,...o}));D.displayName="Button";function te({className:e,...t}){return(0,Oe.jsx)("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t})}var wn=v(require("react")),Xe=v(require("@radix-ui/react-tooltip"));var Lr=Xe.Provider,Er=Xe.Root,Br=Xe.Trigger,Wa=wn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Oe.jsx)(Xe.Portal,{children:(0,Oe.jsx)(Xe.Content,{ref:r,sideOffset:t,className:s("Oe-50 overflow-hidden rounded-md 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})}));Wa.displayName=Xe.Content.displayName;var Ld="sidebar:state",Ed=60*60*24*7,Bd="16rem",Hd="18rem",zd="3rem",Fd="Oe",Cn=M.createContext(null);function xa(){let e=M.useContext(Cn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ci=M.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...n},l)=>{let d=Ir(),[m,c]=M.useState(!1),[p,u]=M.useState(e),f=t!=null?t:p,N=M.useCallback(R=>{if(a)return a==null?void 0:a(typeof R=="function"?R(f):R);u(R),document.cookie=`${Ld}=${f}; path=/; max-age=${Ed}`},[a,f]),g=M.useCallback(()=>d?c(R=>!R):N(R=>!R),[d,N,c]);M.useEffect(()=>{let R=fe=>{fe.key===Fd&&(fe.metaKey||fe.ctrlKey)&&(fe.preventDefault(),g())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[g]);let h=f?"expanded":"collapsed",P=M.useMemo(()=>({state:h,open:f,setOpen:N,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:g}),[h,f,N,d,m,c,g]);return(0,Oe.jsx)(Cn.Provider,{value:P,children:(0,Oe.jsx)(Lr,{delayDuration:0,children:(0,Oe.jsx)("div",{style:{"--sidebar-width":Bd,"--sidebar-width-icon":zd,...o},className:s("group/sidebar-wrapper flex Oe-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...n,children:i})})})});ci.displayName="SidebarProvider";var Wt=M.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},n)=>{let{isMobile:l,state:d,openMobile:m,setOpenMobile:c}=xa();return a==="none"?(0,Oe.jsx)("div",{className:s("flex h-full Oe-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):l?(0,Oe.jsx)(Ar,{open:m,onOpenChange:c,...i,children:(0,Oe.jsx)(Ua,{"data-sidebar":"sidebar","data-mobile":"true",className:"Oe-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Hd},side:e,children:(0,Oe.jsx)("div",{className:"flex h-full Oe-full flex-col",children:o})})}):(0,Oe.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Oe.jsx)("div",{className:s("duration-200 relative h-svh Oe-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:Oe-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:Oe-[calc(var(--sidebar-width-icon)Oe+_theme(spacing.4))]":"group-data-[collapsible=icon]:Oe-[--sidebar-width-icon]")}),(0,Oe.jsx)("div",{className:s("duration-200 fixed top-14 bottom-0 Oe-10 hidden Oe-[--sidebar-width] transition-[left,right,width] ease-linear md: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]:Oe-[calc(var(--sidebar-width-icon)Oe+_theme(spacing.4)Oe+2px)]":"group-data-[collapsible=icon]:Oe-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,Oe.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full Oe-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:o})})]})});Wt.displayName="Sidebar";var di=M.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=xa();return(0,Oe.jsxs)(D,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:s("h-7 Oe-7",e),onClick:i=>{t==null||t(i),o()},...a,children:[(0,Oe.jsx)(Pn.PanelLeft,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});di.displayName="SidebarTrigger";var mi=M.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=xa();return(0,Oe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:s("absolute inset-Oe-0 Oe-20 hidden Oe-4 -translate-Oe-1/2 transition-all ease-linear after:absolute after:inset-Oe-0 after:left-1/2 after:Oe-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Oe&]:cursor-Oe-resize [[data-side=right]Oe&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Oe&]:cursor-e-resize [[data-side=right][data-state=collapsed]Oe&]:cursor-Oe-resize","group-data-[collapsible=offcanvas]:translate-Oe-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Oe&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Oe&]:-left-2",e),...t})});mi.displayName="SidebarRail";var pi=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("main",{ref:a,className:s("flex flex-1 flex-col bg-background overflow-Oe-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));pi.displayName="SidebarInset";var ui=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Ga,{ref:a,"data-sidebar":"input",className:s("h-8 Oe-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ui.displayName="SidebarInput";var jt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"header",className:s("flex flex-col gap-2 p-2",e),...t}));jt.displayName="SidebarHeader";var Xt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"footer",className:s("flex flex-col gap-2 p-2",e),...t}));Xt.displayName="SidebarFooter";var ja=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)($a,{ref:a,"data-sidebar":"separator",className:s("mx-2 Oe-auto bg-sidebar-border",e),...t}));ja.displayName="SidebarSeparator";var Mt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"content",className:s("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Mt.displayName="SidebarContent";var _e=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"group",className:s("relative flex Oe-full min-Oe-0 flex-col p-2",e),...t}));_e.displayName="SidebarGroup";var mt=M.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Oe.jsx)(t?en.Slot:"div",{ref:r,"data-sidebar":"group-label",className:s("duration-200 flex h-8 shrink-0 items-center rounded-md 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}));mt.displayName="SidebarGroupLabel";var gi=M.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Oe.jsx)(t?en.Slot:"button",{ref:r,"data-sidebar":"group-action",className:s("absolute right-3 top-3.5 flex aspect-square Oe-5 items-center justify-center rounded-md 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:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));gi.displayName="SidebarGroupAction";var Ye=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:s("Oe-full text-sm",e),...t}));Ye.displayName="SidebarGroupContent";var De=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{ref:a,"data-sidebar":"menu",className:s("flex Oe-full min-Oe-0 flex-col gap-1",e),...t}));De.displayName="SidebarMenu";var xe=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{ref:a,"data-sidebar":"menu-item",className:s("group/menu-item relative",e),...t}));xe.displayName="SidebarMenuItem";var Od=(0,un.cva)("peer/menu-button flex Oe-full items-center gap-2 overflow-hidden rounded-md 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:pr-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"}}),Ge=M.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:i,...n},l)=>{let d=e?en.Slot:"button",{isMobile:m,state:c}=xa(),p=(0,Oe.jsx)(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:s(Od({variant:a,size:r}),i),...n});return o?(typeof o=="string"&&(o={children:o}),(0,Oe.jsxs)(Er,{children:[(0,Oe.jsx)(Br,{asChild:!0,children:p}),(0,Oe.jsx)(Wa,{side:"right",align:"center",hidden:c!=="collapsed"||m,...o})]})):p});Ge.displayName="SidebarMenuButton";var Xa=M.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,Oe.jsx)(t?en.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:s("absolute right-1 top-1.5 flex aspect-square Oe-5 items-center justify-center rounded-md 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:md: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 md:opacity-0",e),...r}));Xa.displayName="SidebarMenuAction";var fi=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:s("absolute right-1 flex h-5 min-Oe-5 items-center justify-center rounded-md 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}));fi.displayName="SidebarMenuBadge";var bi=M.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=M.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Oe.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:s("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Oe.jsx)(te,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Oe.jsx)(te,{className:"h-4 flex-1 max-Oe-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});bi.displayName="SidebarMenuSkeleton";var It=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:s("mx-3.5 flex min-Oe-0 translate-Oe-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));It.displayName="SidebarMenuSub";var Lt=M.forwardRef(({...e},t)=>(0,Oe.jsx)("Oe",{ref:t,...e}));Lt.displayName="SidebarMenuSubItem";var Et=M.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},i)=>(0,Oe.jsx)(e?en.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:s("flex h-7 min-Oe-0 -translate-Oe-px items-center gap-2 overflow-hidden rounded-md 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==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o}));Et.displayName="SidebarMenuSubButton";var Fr=v(require("react")),_d=1,Gd=1e6;var vi=0;function $d(){return vi=(vi+1)%Number.MAX_SAFE_INTEGER,vi.toString()}var hi=new Map,Rn=e=>{if(hi.has(e))return;let t=setTimeout(()=>{hi.delete(e),Ya({type:"REMOVE_TOAST",toastId:e})},Gd);hi.set(e,t)},Sn=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_d)};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?Rn(a):e.toasts.forEach(r=>{Rn(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===a||a===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Hr=[],zr={toasts:[]};function Ya(e){zr=Sn(zr,e),Hr.forEach(t=>{t(zr)})}function kn({...e}){let t=$d(),a=o=>Ya({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ya({type:"DISMISS_TOAST",toastId:t});return Ya({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Or(){let[e,t]=Fr.useState(zr);return Fr.useEffect(()=>(Hr.push(t),()=>{let a=Hr.indexOf(t);a>-1&&Hr.splice(a,1)}),[e]),{...e,toast:kn,dismiss:a=>Ya({type:"DISMISS_TOAST",toastId:a})}}var Yt=v(require("react")),se=v(require("@radix-ui/react-toast"));var _r=se.Provider,Ka=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Viewport,{ref:a,className:s("fixed top-0 Oe-[100] flex max-h-screen Oe-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-Oe-[420px]",e),...t}));Ka.displayName=se.Viewport.displayName;var Vd=(0,un.cva)("group pointer-events-auto relative flex Oe-full items-center justify-between space-Oe-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Oe-0 data-[swipe=end]:translate-Oe-[var(--radix-toast-swipe-end-Oe)] data-[swipe=move]:translate-Oe-[var(--radix-toast-swipe-move-Oe)] 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-to-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"}}),qa=Yt.forwardRef(({className:e,variant:t,...a},r)=>(0,Oe.jsx)(se.Root,{ref:r,className:s(Vd({variant:t}),e),...a}));qa.displayName=se.Root.displayName;var xi=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Action,{ref:a,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md 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}));xi.displayName=se.Action.displayName;var Qa=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Close,{ref:a,className:s("absolute right-1 top-1 rounded-md 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,Oe.jsx)(Pn.Oe,{className:"h-4 Oe-4"})}));Qa.displayName=se.Close.displayName;var Ja=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Title,{ref:a,className:s("text-sm font-semibold [&+div]:text-xs",e),...t}));Ja.displayName=se.Title.displayName;var Za=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Description,{ref:a,className:s("text-sm opacity-90",e),...t}));Za.displayName=se.Description.displayName;function Dn(){let{toasts:e}=Or();return(0,Oe.jsxs)(_r,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,Oe.jsxs)(qa,{...i,children:[(0,Oe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Oe.jsx)(Ja,{children:a}),r&&(0,Oe.jsx)(Za,{children:r})]}),o,(0,Oe.jsx)(Qa,{})]},t)}),(0,Oe.jsx)(Ka,{})]})}var Mn=v(require("react")),yi=v(require("@radix-ui/react-toggle"));var er=(0,un.cva)("inline-flex items-center justify-center gap-2 rounded-md 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-Oe-9",sm:"h-8 px-1.5 min-Oe-8",lg:"h-10 px-2.5 min-Oe-10"}},defaultVariants:{variant:"default",size:"default"}}),wi=Mn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,Oe.jsx)(yi.Root,{ref:o,className:s(er({variant:t,size:a,className:e})),...r}));wi.displayName=yi.Root.displayName;var Kt=v(require("react")),ya=v(require("@radix-ui/react-toggle-group"));var En=Kt.createContext({size:"default",variant:"default"}),Ni=Kt.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,Oe.jsx)(ya.Root,{ref:i,className:s("flex items-center justify-center gap-1",e),...o,children:(0,Oe.jsx)(En.Provider,{value:{variant:t,size:a},children:r})}));Ni.displayName=ya.Root.displayName;var Pi=Kt.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let n=Kt.useContext(En);return(0,Oe.jsx)(ya.Item,{ref:i,className:s(er({variant:n.variant||a,size:n.size||r}),e),...o,children:t})});Pi.displayName=ya.Item.displayName;var Ci=v(require("react")),$e=v(require("@radix-ui/react-scroll-area"));var Ri=Ci.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)($e.Root,{ref:r,className:s("relative overflow-hidden",e),...a,children:[(0,Oe.jsx)($e.Viewport,{className:"h-full Oe-full rounded-[inherit]",children:t}),(0,Oe.jsx)($r,{}),(0,Oe.jsx)($e.Corner,{})]}));Ri.displayName=$e.Root.displayName;var $r=Ci.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,Oe.jsx)($e.ScrollAreaScrollbar,{ref:r,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Oe-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,Oe.jsx)($e.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$r.displayName=$e.ScrollAreaScrollbar.displayName;var Bn=v(require("react")),Ke=v(require("@radix-ui/react-popover"));var tr=Ke.Root,ar=Ke.Trigger,Hn=Ke.Anchor,wa=Bn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Oe.jsx)(Ke.Portal,{children:(0,Oe.jsx)(Ke.Content,{ref:o,align:t,sideOffset:a,className:s("Oe-50 Oe-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...r})}));wa.displayName=Ke.Content.displayName;var zn=v(require("react")),ki=v(require("@radix-ui/react-label"));var Ud=(0,un.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),qt=zn.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ki.Root,{ref:a,className:s(Ud(),e),...t}));qt.displayName=ki.Root.displayName;var _n=v(require("react")),Qt=v(require("@radix-ui/react-hover-card"));var Gn=Qt.Root,$n=Qt.Trigger,Ti=_n.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Oe.jsx)(Qt.Content,{ref:o,align:t,sideOffset:a,className:s("Oe-50 Oe-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...r}));Ti.displayName=Qt.Content.displayName;var rr=v(require("react")),ae=v(require("@radix-ui/react-dialog"));var Na=ae.Root,Wn=ae.Trigger,Ai=ae.Portal,Vr=ae.Close,Ur=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Overlay,{ref:a,className:s("fixed inset-0 Oe-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}));Ur.displayName=ae.Overlay.displayName;var Jt=rr.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)(Ai,{children:[(0,Oe.jsx)(Ur,{}),(0,Oe.jsxs)(ae.Content,{ref:r,className:s("fixed left-[50%] top-[50%] Oe-50 grid Oe-full max-Oe-lg translate-Oe-[-50%] translate-Oe-[-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-to-left-1/2 data-[state=closed]:slide-out-to-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,Oe.jsxs)(ae.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,Oe.jsx)(Pn.Oe,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Jt.displayName=ae.Content.displayName;var or=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col space-Oe-1.5 text-center sm:text-left",e),...t});or.displayName="DialogHeader";var Di=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Oe-2",e),...t});Di.displayName="DialogFooter";var ir=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));ir.displayName=ae.Title.displayName;var Mi=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Mi.displayName=ae.Description.displayName;var zt=v(require("react")),Re=require("cmdk");var Wr=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command,{ref:a,className:s("flex h-full Oe-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Wr.displayName=Re.Command.displayName;var Xn=({children:e,...t})=>(0,Oe.jsx)(Na,{...t,children:(0,Oe.jsx)(Jt,{className:"overflow-hidden p-0",children:(0,Oe.jsx)(Wr,{className:"[&Oe[cmdk-group-heading]]:px-2 [&Oe[cmdk-group-heading]]:font-medium [&Oe[cmdk-group-heading]]:text-muted-foreground [&Oe[cmdk-group]:not([hidden])Oe~[cmdk-group]]:Oe-0 [&Oe[cmdk-group]]:px-2 [&Oe[cmdk-input-wrapper]_svg]:h-5 [&Oe[cmdk-input-wrapper]_svg]:Oe-5 [&Oe[cmdk-input]]:h-12 [&Oe[cmdk-item]]:px-2 [&Oe[cmdk-item]]:py-3 [&Oe[cmdk-item]_svg]:h-5 [&Oe[cmdk-item]_svg]:Oe-5",children:e})})}),Ii=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsxs)("div",{className:"flex items-center border-Oe px-3","cmdk-input-wrapper":"",children:[(0,Oe.jsx)(Pn.Search,{className:"mr-2 h-4 Oe-4 shrink-0 opacity-50"}),(0,Oe.jsx)(Re.Command.Input,{ref:a,className:s("flex h-10 Oe-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ii.displayName=Re.Command.Input.displayName;var Li=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.List,{ref:a,className:s("max-h-[300px] overflow-Oe-auto overflow-Oe-hidden",e),...t}));Li.displayName=Re.Command.List.displayName;var Ei=zt.forwardRef((e,t)=>(0,Oe.jsx)(Re.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ei.displayName=Re.Command.Empty.displayName;var Bi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Group,{ref:a,className:s("overflow-hidden p-1 text-foreground [&Oe[cmdk-group-heading]]:px-2 [&Oe[cmdk-group-heading]]:py-1.5 [&Oe[cmdk-group-heading]]:text-xs [&Oe[cmdk-group-heading]]:font-medium [&Oe[cmdk-group-heading]]:text-muted-foreground",e),...t}));Bi.displayName=Re.Command.Group.displayName;var Hi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Separator,{ref:a,className:s("-mx-1 h-px bg-border",e),...t}));Hi.displayName=Re.Command.Separator.displayName;var zi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Item,{ref:a,className:s("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}));zi.displayName=Re.Command.Item.displayName;var Fi=({className:e,...t})=>(0,Oe.jsx)("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Fi.displayName="CommandShortcut";var jr=v(require("react"));var Wd=(0,un.cva)("relative Oe-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Oe-[-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"}}),Oi=jr.forwardRef(({className:e,variant:t,...a},r)=>(0,Oe.jsx)("div",{ref:r,role:"alert",className:s(Wd({variant:t}),e),...a}));Oi.displayName="Alert";var _i=jr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("h5",{ref:a,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));_i.displayName="AlertTitle";var Gi=jr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("text-sm [&_p]:leading-relaxed",e),...t}));Gi.displayName="AlertDescription";var Yr=v(require("react")),ut=v(require("@radix-ui/react-avatar"));var gt=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ut.Root,{ref:a,className:s("relative flex h-10 Oe-10 shrink-0 overflow-hidden rounded-full",e),...t}));gt.displayName=ut.Root.displayName;var ft=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ut.Image,{ref:a,className:s("aspect-square h-full Oe-full",e),...t}));ft.displayName=ut.Image.displayName;var bt=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ut.Fallback,{ref:a,className:s("flex h-full Oe-full items-center justify-center rounded-full bg-muted",e),...t}));bt.displayName=ut.Fallback.displayName;var $i=(0,un.cva)("inline-flex items-center rounded-md 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 Ft({className:e,variant:t,...a}){return(0,Oe.jsx)("div",{className:s($i({variant:t}),e),...a})}var sr=v(require("@radix-ui/react-checkbox")),Jn=v(require("react")),nr=Jn.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(sr.Root,{className:s("peer h-4 Oe-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,Oe.jsx)(sr.Indicator,{className:s("flex items-center justify-center text-current"),children:(0,Oe.jsx)(Pn.Check,{className:"h-4 Oe-4"})})}));nr.displayName=sr.Root.displayName;var L=v(require("@radix-ui/react-select")),Ot=v(require("react")),jd=L.Root,Xd=L.Group,Yd=L.Value,Zn=Ot.forwardRef(({children:e,className:t,...a},r)=>(0,Oe.jsxs)(L.Trigger,{className:s("flex h-10 Oe-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:r,...a,children:[e,(0,Oe.jsx)(L.Icon,{asChild:!0,children:(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4 opacity-50"})})]}));Zn.displayName=L.Trigger.displayName;var Vi=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.ScrollUpButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Oe.jsx)(Pn.ChevronUp,{className:"h-4 Oe-4"})}));Vi.displayName=L.ScrollUpButton.displayName;var Ui=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.ScrollDownButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4"})}));Ui.displayName=L.ScrollDownButton.displayName;var el=Ot.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,Oe.jsx)(L.Portal,{children:(0,Oe.jsxs)(L.Content,{className:s("relative Oe-50 max-h-96 min-Oe-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md 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-Oe-1 data-[side=left]:-translate-Oe-1 data-[side=right]:translate-Oe-1 data-[side=top]:-translate-Oe-1",t),position:a,ref:o,...r,children:[(0,Oe.jsx)(Vi,{}),(0,Oe.jsx)(L.Viewport,{className:s("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Oe-full min-Oe-[var(--radix-select-trigger-width)]"),children:e}),(0,Oe.jsx)(Ui,{})]})}));el.displayName=L.Content.displayName;var tl=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.Label,{className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));tl.displayName=L.Label.displayName;var al=Ot.forwardRef(({children:e,className:t,...a},r)=>(0,Oe.jsxs)(L.Item,{className:s("relative flex Oe-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...a,children:[(0,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(L.ItemIndicator,{children:(0,Oe.jsx)(Pn.Check,{className:"h-4 Oe-4"})})}),(0,Oe.jsx)(L.ItemText,{children:e})]}));al.displayName=L.Item.displayName;var rl=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.Separator,{className:s("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));rl.displayName=L.Separator.displayName;var ol=v(require("react")),il=ol.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("textarea",{className:s("flex min-h-[80px] Oe-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}));il.displayName="Textarea";var nl=require("react-day-picker");function lr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,Oe.jsx)(nl.DayPicker,{showOutsideDays:a,className:s("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Oe-4 sm:space-Oe-4 sm:space-Oe-0",month:"space-Oe-4",caption:"flex justify-center Oe-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Oe-1 flex items-center",nav_button:s(Dt({variant:"outline"}),"h-7 Oe-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"Oe-full border-collapse space-Oe-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md Oe-8 font-normal text-[0.8rem]",row:"flex Oe-full mt-2",cell:s("relative p-0 text-center text-sm focus-within:relative focus-within:Oe-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:s(Dt({variant:"ghost"}),"h-8 Oe-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},...r})}lr.displayName="Calendar";var Ve=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",i="fa-"+t,n=r!=null?r:"",l=o+i+" fa-"+a+" "+n;return(0,Oe.jsx)("i",{className:l})};var dl=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,Oe.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[o]} p-6 flex flex-col items-center text-center`,children:[(0,Oe.jsx)("div",{className:"Oe-12 h-12 ",children:(0,Oe.jsx)(Ve,{type:r,iconName:a,className:"Oe-12 h-12 text-white"})}),(0,Oe.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,Oe.jsx)("p",{className:"text-white text-sm",children:t})]});var ml=v(require("next/image")),pl=v(require("next/link"));var ta=v(require("react"));var J=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));J.displayName="Card";var be=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("flex flex-col space-Oe-1.5 p-6",e),...t}));be.displayName="CardHeader";var ve=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("font-semibold leading-none tracking-tight",e),...t}));ve.displayName="CardTitle";var Kd=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Kd.displayName="CardDescription";var ne=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("p-6 Oe-0",e),...t}));ne.displayName="CardContent";var qd=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("flex items-center p-6 Oe-0",e),...t}));qd.displayName="CardFooter";function ul({name:e,logo:t,href:a}){return(0,Oe.jsx)(J,{className:"Oe-full max-Oe-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Oe.jsxs)(pl.default,{href:a,className:"block",children:[(0,Oe.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Oe.jsx)("div",{className:"relative Oe-full h-full",children:t&&(0,Oe.jsx)(ml.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Oe.jsx)(ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,Oe.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 gl({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=l=>{switch(l){case"birthday":return(0,Oe.jsx)(Pn.Cake,{className:"h-4 Oe-4"});case"workAnniversary":return(0,Oe.jsx)(Pn.Award,{className:"h-4 Oe-4"});case"companyEvent":return(0,Oe.jsx)(Pn.PartyPopper,{className:"h-4 Oe-4"});default:return(0,Oe.jsx)(Pn.CalendarDays,{className:"h-4 Oe-4"})}},n=l=>{switch(l){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,Oe.jsxs)(J,{className:`Oe-full max-Oe-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,Oe.jsxs)(be,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,Oe.jsxs)(gt,{className:"h-14 Oe-14 border-2 border-white",children:[(0,Oe.jsx)(ft,{src:o,alt:a||"Event"}),(0,Oe.jsx)(bt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Oe.jsxs)("div",{className:"flex flex-col",children:[(0,Oe.jsx)(ve,{className:"text-xl",children:a||"Untitled Event"}),(0,Oe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Oe.jsx)(Pn.CalendarDays,{className:"mr-1 inline-block h-4 Oe-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Oe.jsxs)(ne,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,Oe.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,Oe.jsxs)(Ft,{variant:"secondary",className:`${n(e)} text-white/80`,children:[i(e),(0,Oe.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Oe])([A-Z])/g,"$1 $2").split(" ").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" "):"Event"})]})]})]})}var bl=v(require("next/link"));var vl=v(require("next/image")),fl={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function hl({slug:e,image:t,title:a,description:r}){return(0,Oe.jsxs)(bl.default,{href:e,className:"group/portfolio relative Oe-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Oe.jsx)("span",{className:s("absolute inset-0 Oe-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Oe.jsx)(vl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
7
|
+
"use strict";var jc=Object.create;var kr=Object.defineProperty;var Xc=Object.getOwnPropertyDescriptor;var Yc=Object.getOwnPropertyNames;var Kc=Object.getPrototypeOf,qc=Object.prototype.hasOwnProperty;var Qc=(e,t)=>{for(var a in t)kr(e,a,{get:t[a],enumerable:!0})},Us=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Yc(t))!qc.call(e,o)&&o!==a&&kr(e,o,{get:()=>t[o],enumerable:!(r=Xc(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?jc(Kc(e)):{},Us(t||!e||!e.__esModule?kr(a,"default",{value:e,enumerable:!0}):a,e)),Jc=e=>Us(kr({},"__esModule",{value:!0}),e);var op={};Qc(op,{AboutSection:()=>jm,Alert:()=>Oi,AlertDescription:()=>Gi,AlertTitle:()=>_i,ApproveLeave:()=>Ds,Avatar:()=>ft,AvatarFallback:()=>vt,AvatarImage:()=>bt,Badge:()=>Ft,BannerBlock:()=>Yi,BlogCard:()=>Jl,BlogDetail:()=>ap,BlogList:()=>bm,BlogListSection:()=>Ym,BrandLogo:()=>Vt,Breadcrumb:()=>_o,BreadcrumbEllipsis:()=>jo,BreadcrumbItem:()=>$o,BreadcrumbLink:()=>Vo,BreadcrumbList:()=>Go,BreadcrumbPage:()=>Uo,BreadcrumbSeparator:()=>Wo,Breadcrumbs:()=>Cs,Button:()=>D,CMSLink:()=>tt,Calendar:()=>lr,CalendarView:()=>Bs,CallToActionBlock:()=>mr,Card:()=>ur,Categories:()=>fr,Checkbox:()=>nr,CodeBlock:()=>Ji,Collapsible:()=>dt,CollapsibleContent:()=>At,CollapsibleTrigger:()=>Tt,CollectionArchive:()=>vm,Command:()=>Wr,CommandDialog:()=>Xn,CommandEmpty:()=>Ei,CommandGroup:()=>Bi,CommandInput:()=>Ii,CommandItem:()=>zi,CommandList:()=>Li,CommandSeparator:()=>Hi,CommandShortcut:()=>Fi,ContactSection:()=>ep,Container:()=>me,ContentBlock:()=>os,CopyButton:()=>qi,CustomLink:()=>ue,CustomerCard:()=>ul,Dialog:()=>Na,DialogClose:()=>Vr,DialogContent:()=>Jt,DialogDescription:()=>Mi,DialogFooter:()=>Di,DialogHeader:()=>or,DialogOverlay:()=>Ur,DialogPortal:()=>Ai,DialogTitle:()=>ir,DialogTrigger:()=>Wn,DropdownMenu:()=>tn,DropdownMenuCheckboxItem:()=>Qo,DropdownMenuContent:()=>Ko,DropdownMenuGroup:()=>rn,DropdownMenuItem:()=>qo,DropdownMenuLabel:()=>Zo,DropdownMenuPortal:()=>on,DropdownMenuRadioGroup:()=>nn,DropdownMenuRadioItem:()=>Jo,DropdownMenuSeparator:()=>ei,DropdownMenuShortcut:()=>ti,DropdownMenuSub:()=>sn,DropdownMenuSubContent:()=>Yo,DropdownMenuSubTrigger:()=>Xo,DropdownMenuTrigger:()=>an,DynamicIcon:()=>Ve,EventCard:()=>gl,FeatureCard:()=>dl,FeatureGrid:()=>Nl,FeaturesBlock:()=>pr,Filter:()=>hs,Footer:()=>Fm,Header:()=>Om,HeaderDesktop:()=>xr,HeaderMobile:()=>yr,HeadingImage:()=>pm,HighImpactHero:()=>xs,HolidayGrid:()=>Es,HolidayTracker:()=>Vm,HoverCard:()=>Gn,HoverCardContent:()=>Ti,HoverCardTrigger:()=>$n,Image:()=>xl,ImageBlock:()=>rs,InfoTile:()=>rm,Input:()=>Ga,Insight:()=>am,Label:()=>qt,Logo:()=>hm,LowImpactHero:()=>Ns,MOTD:()=>im,MainPageSection:()=>rp,Media:()=>Nt,MediaBlock:()=>Pa,MediumImpactHero:()=>ws,NewsGrid:()=>Wl,OrgChart:()=>lm,PageRange:()=>wm,Pagination:()=>bs,PayloadPagination:()=>Nm,Popover:()=>tr,PopoverAnchor:()=>Hn,PopoverContent:()=>wa,PopoverTrigger:()=>ar,PostHero:()=>Am,PricingCard:()=>Xi,PricingSection:()=>Wm,ProjectCard:()=>hl,ProjectTeam:()=>km,ProposalSummary:()=>cm,RelatedContent:()=>gs,RelatedPosts:()=>gm,RenderBlocks:()=>is,RenderHero:()=>Mm,RequestLeave:()=>Ls,RichText:()=>Z,ScrollArea:()=>Ri,ScrollBar:()=>$r,SectionHero:()=>Ps,Select:()=>jd,SelectContent:()=>el,SelectGroup:()=>Xd,SelectItem:()=>al,SelectLabel:()=>tl,SelectScrollDownButton:()=>Ui,SelectScrollUpButton:()=>Vi,SelectSeparator:()=>rl,SelectTrigger:()=>Zn,SelectValue:()=>Yd,Separator:()=>$a,ServiceCard:()=>ji,ServiceSection:()=>Um,Sheet:()=>Ar,SheetClose:()=>fn,SheetContent:()=>Ua,SheetDescription:()=>ni,SheetFooter:()=>ii,SheetHeader:()=>oi,SheetOverlay:()=>Dr,SheetPortal:()=>ri,SheetTitle:()=>si,SheetTrigger:()=>gn,Sidebar:()=>Wt,SidebarContent:()=>Mt,SidebarFooter:()=>Xt,SidebarGroup:()=>_e,SidebarGroupAction:()=>gi,SidebarGroupContent:()=>Ye,SidebarGroupLabel:()=>pt,SidebarHeader:()=>jt,SidebarInput:()=>ui,SidebarInset:()=>pi,SidebarLeft:()=>Pm,SidebarMenu:()=>De,SidebarMenuAction:()=>Xa,SidebarMenuBadge:()=>fi,SidebarMenuButton:()=>Ge,SidebarMenuItem:()=>xe,SidebarMenuSkeleton:()=>bi,SidebarMenuSub:()=>It,SidebarMenuSubButton:()=>Et,SidebarMenuSubItem:()=>Lt,SidebarProvider:()=>ci,SidebarRail:()=>mi,SidebarRight:()=>Sm,SidebarSeparator:()=>ja,SidebarTrigger:()=>di,SimpleHeader:()=>Lm,Skeleton:()=>te,SlideShow:()=>$l,TextAndImages:()=>jl,Textarea:()=>il,ThemeProvider:()=>_m,Toast:()=>qa,ToastAction:()=>xi,ToastClose:()=>Qa,ToastDescription:()=>Za,ToastProvider:()=>_r,ToastTitle:()=>Ja,ToastViewport:()=>Ka,Toaster:()=>Dn,Toggle:()=>wi,ToggleGroup:()=>Ni,ToggleGroupItem:()=>Pi,Tooltip:()=>Er,TooltipContent:()=>Wa,TooltipProvider:()=>Lr,TooltipTrigger:()=>Br,VideoHeader:()=>Hm,WhyUs:()=>dm,badgeVariants:()=>$i,buttonVariants:()=>Dt,Oe:()=>s,getTableOfContents:()=>Dd,reducer:()=>Sn,toast:()=>kn,toggleVariants:()=>er,useIsMobile:()=>Ir,useSidebar:()=>xa,useToast:()=>Or});module.exports=Jc(op);var fa=v(require("react")),Tr=require("@radix-ui/react-icons"),en=require("@radix-ui/react-slot");var Zs=require("clsx");var Oo="-",Zc=e=>{let t=td(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let l=n.split(Oo);return l[0]===""&&l.length!==1&&l.shift(),Xs(l,t)||ed(n)},getConflictingClassGroupIds:(n,l)=>{let d=a[n]||[];return l&&r[n]?[...d,...r[n]]:d}}},Xs=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Xs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Oo);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},Ws=/^\[(.+)\]$/,ed=e=>{if(Ws.test(e)){let t=Ws.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},td=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return rd(Object.entries(e.classGroups),a).forEach(([i,n])=>{Fo(n,r,i,t)}),r},Fo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:js(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(ad(o)){Fo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,n])=>{Fo(n,js(t,i),a,r)})})},js=(e,t)=>{let a=e;return t.split(Oo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},ad=e=>e.isThemeGetter,rd=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[a,o]}):e,od=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return o(i,n),n},set(i,n){a.has(i)?a.set(i,n):o(i,n)}}},Ys="!",id=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,n=l=>{let d=[],m=0,c=0,p;for(let h=0;h<l.length;h++){let P=l[h];if(m===0){if(P===o&&(r||l.slice(h,h+i)===t)){d.push(l.slice(c,h)),c=h+i;continue}if(P==="/"){p=h;continue}}P==="["?m++:P==="]"&&m--}let u=d.length===0?l:l.substring(c),f=u.startsWith(Ys),N=f?u.substring(1):u,g=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:N,maybePostfixModifierPosition:g}};return a?l=>a({className:l,parseClassName:n}):n},sd=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},nd=e=>({cache:od(e.cacheSize),parseClassName:id(e),...Zc(e)}),ld=/\s+/,cd=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],n=e.trim().split(ld),l="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:f}=a(m),N=!!f,g=r(N?u.substring(0,f):u);if(!g){if(!N){l=m+(l.length>0?" "+l:l);continue}if(g=r(u),!g){l=m+(l.length>0?" "+l:l);continue}N=!1}let h=sd(c).join(":"),P=p?h+Ys:h,R=P+g;if(i.includes(R))continue;i.push(R);let fe=o(g,N);for(let Ae=0;Ae<fe.length;++Ae){let nt=fe[Ae];i.push(P+nt)}l=m+(l.length>0?" "+l:l)}return l};function dd(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ks(t))&&(r&&(r+=" "),r+=a);return r}var Ks=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Ks(e[r]))&&(a&&(a+=" "),a+=t);return a};function md(e,...t){let a,r,o,i=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=nd(m),r=a.cache.get,o=a.cache.set,i=l,l(d)}function l(d){let m=r(d);if(m)return m;let c=cd(d,a);return o(d,c),c}return function(){return i(dd.apply(null,arguments))}}var Y=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},qs=/^\[(?:([a-Oe-]+):)?(.+)\]$/i,pd=/^\d+\/\d+$/,ud=new Set(["px","full","screen"]),gd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|Mr|in|cm|mm|cap|ch|ex|r?lh|cq(Oe|h|i|Oe|min|max))|\Oe(calc|min|max|clamp)\(.+\)|^0$/,bd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-Oe]+|0)Oe-?((\d+)?\.?(\d+)[a-Oe]+|0)/,hd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=e=>ua(e)||ud.has(e)||pd.test(e),St=e=>ga(e,"length",Sd),ua=e=>!!e&&!Number.isNaN(Number(e)),zo=e=>ga(e,"number",ua),Oa=e=>!!e&&Number.isInteger(Number(e)),xd=e=>e.endsWith("%")&&ua(e.slice(0,-1)),S=e=>qs.test(e),kt=e=>gd.test(e),yd=new Set(["length","size","percentage"]),wd=e=>ga(e,yd,Qs),Nd=e=>ga(e,"position",Qs),Pd=new Set(["image","url"]),Cd=e=>ga(e,Pd,Td),Rd=e=>ga(e,"",kd),_a=()=>!0,ga=(e,t,a)=>{let r=qs.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},Sd=e=>fd.test(e)&&!bd.test(e),Qs=()=>!1,kd=e=>vd.test(e),Td=e=>hd.test(e);var Ad=()=>{let e=Y("colors"),t=Y("spacing"),a=Y("blur"),r=Y("brightness"),o=Y("borderColor"),i=Y("borderRadius"),n=Y("borderSpacing"),l=Y("borderWidth"),d=Y("contrast"),m=Y("grayscale"),c=Y("hueRotate"),p=Y("invert"),u=Y("gap"),f=Y("gradientColorStops"),N=Y("gradientColorStopPositions"),g=Y("inset"),h=Y("margin"),P=Y("opacity"),R=Y("padding"),fe=Y("saturate"),Ae=Y("scale"),nt=Y("sepia"),Cr=Y("skew"),Fs=Y("space"),Os=Y("translate"),Lo=()=>["auto","contain","none"],Eo=()=>["auto","hidden","clip","visible","scroll"],Bo=()=>["auto",S,t],q=()=>[S,t],_s=()=>["",ct,St],Rr=()=>["auto",ua,S],Gs=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Sr=()=>["solid","dashed","dotted","double","none"],$s=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ho=()=>["start","end","center","between","around","evenly","stretch"],Fa=()=>["","0",S],Vs=()=>["auto","avoid","all","avoid-page","page","left","right","column"],lt=()=>[ua,S];return{cacheSize:500,separator:":",theme:{colors:[_a],spacing:[ct,St],blur:["none","",kt,S],brightness:lt(),borderColor:[e],borderRadius:["none","","full",kt,S],borderSpacing:q(),borderWidth:_s(),contrast:lt(),grayscale:Fa(),hueRotate:lt(),invert:Fa(),gap:q(),gradientColorStops:[e],gradientColorStopPositions:[xd,St],inset:Bo(),margin:Bo(),opacity:lt(),padding:q(),saturate:lt(),scale:lt(),sepia:Fa(),skew:lt(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":Vs()}],"break-before":[{"break-before":Vs()}],"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:[...Gs(),S]}],overflow:[{overflow:Eo()}],"overflow-Oe":[{"overflow-Oe":Eo()}],"overflow-Oe":[{"overflow-Oe":Eo()}],overscroll:[{overscroll:Lo()}],"overscroll-Oe":[{"overscroll-Oe":Lo()}],"overscroll-Oe":[{"overscroll-Oe":Lo()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-Oe":[{"inset-Oe":[g]}],"inset-Oe":[{"inset-Oe":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],Oe:[{Oe:["auto",Oa,S]}],basis:[{basis:Bo()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:Fa()}],shrink:[{shrink:Fa()}],order:[{order:["first","last","none",Oa,S]}],"grid-cols":[{"grid-cols":[_a]}],"col-start-end":[{col:["auto",{span:["full",Oa,S]},S]}],"col-start":[{"col-start":Rr()}],"col-end":[{"col-end":Rr()}],"grid-rows":[{"grid-rows":[_a]}],"row-start-end":[{row:["auto",{span:[Oa,S]},S]}],"row-start":[{"row-start":Rr()}],"row-end":[{"row-end":Rr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[u]}],"gap-Oe":[{"gap-Oe":[u]}],"gap-Oe":[{"gap-Oe":[u]}],"justify-content":[{justify:["normal",...Ho()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ho(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ho(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],Oe:[{Oe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-Oe":[{"space-Oe":[Fs]}],"space-Oe-reverse":["space-Oe-reverse"],"space-Oe":[{"space-Oe":[Fs]}],"space-Oe-reverse":["space-Oe-reverse"],Oe:[{Oe:["auto","min","max","fit","svw","lvw","dvw",S,t]}],"min-Oe":[{"min-Oe":[S,t,"min","max","fit"]}],"max-Oe":[{"max-Oe":[S,t,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[S,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,t,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,St]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",zo]}],"font-family":[{font:[_a]}],"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",S]}],"line-clamp":[{"line-clamp":["none",ua,zo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"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","Oe-underline"],"text-decoration-style":[{decoration:[...Sr(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,St]}],"underline-offset":[{"underline-offset":["auto",ct,S]}],"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:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],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",S]}],"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:[...Gs(),Nd]}],"bg-repeat":[{bg:["Oe-repeat",{repeat:["","Oe","Oe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","Oe","bl","l","tl"]},Cd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Oe":[{"rounded-Oe":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-Mr":[{"rounded-Mr":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-Oe":[{"rounded-Oe":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-Oe":[{border:[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-s":[{"border-s":[l]}],"border-Oe-e":[{"border-e":[l]}],"border-Oe-t":[{"border-t":[l]}],"border-Oe-r":[{"border-r":[l]}],"border-Oe-Oe":[{"border-Oe":[l]}],"border-Oe-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Sr(),"hidden"]}],"divide-Oe":[{"divide-Oe":[l]}],"divide-Oe-reverse":["divide-Oe-reverse"],"divide-Oe":[{"divide-Oe":[l]}],"divide-Oe-reverse":["divide-Oe-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Sr()}],"border-color":[{border:[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-Oe":[{"border-Oe":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Sr()]}],"outline-offset":[{"outline-offset":[ct,S]}],"outline-Oe":[{outline:[ct,St]}],"outline-color":[{outline:[e]}],"ring-Oe":[{ring:_s()}],"ring-Oe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Oe":[{"ring-offset":[ct,St]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",kt,Rd]}],"shadow-color":[{shadow:[_a]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...$s(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$s()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",kt,S]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[fe]}],sepia:[{sepia:[nt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[fe]}],"backdrop-sepia":[{"backdrop-sepia":[nt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-Oe":[{"border-spacing-Oe":[n]}],"border-spacing-Oe":[{"border-spacing-Oe":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:lt()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:lt()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Ae]}],"scale-Oe":[{"scale-Oe":[Ae]}],"scale-Oe":[{"scale-Oe":[Ae]}],rotate:[{rotate:[Oa,S]}],"translate-Oe":[{"translate-Oe":[Os]}],"translate-Oe":[{"translate-Oe":[Os]}],"skew-Oe":[{"skew-Oe":[Cr]}],"skew-Oe":[{"skew-Oe":[Cr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],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","Oe-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Oe-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Oe","Oe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-Oe":[{"scroll-Oe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Oe","Oe","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Oe":[{"touch-pan":["Oe","left","right"]}],"touch-Oe":[{"touch-pan":["Oe","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[e,"none"]}],"stroke-Oe":[{stroke:[ct,St,zo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Oe","overflow-Oe"],overscroll:["overscroll-Oe","overscroll-Oe"],inset:["inset-Oe","inset-Oe","start","end","top","right","bottom","left"],"inset-Oe":["right","left"],"inset-Oe":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Oe","gap-Oe"],p:["px","py","ps","Oe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Oe","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-Oe","rounded-l","rounded-Mr","rounded-se","rounded-ee","rounded-Oe","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-Mr","rounded-Oe"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-Oe":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Oe","border-spacing-Oe"],"border-Oe":["border-Oe-s","border-Oe-e","border-Oe-t","border-Oe-r","border-Oe-Oe","border-Oe-l"],"border-Oe-Oe":["border-Oe-r","border-Oe-l"],"border-Oe-Oe":["border-Oe-t","border-Oe-Oe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Oe","border-color-l"],"border-color-Oe":["border-color-r","border-color-l"],"border-color-Oe":["border-color-t","border-color-Oe"],"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-Oe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Oe","touch-Oe","touch-pz"],"touch-Oe":["touch"],"touch-Oe":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Js=md(Ad);function s(...e){return Js((0,Zs.clsx)(e))}function Dd(e){let t=0,a=(i,n)=>`${i.toLowerCase().replace(/\s+/g,"-").replace(/[^\Oe-]/g,"")}-${n}`,r=e.layout.flatMap(i=>{let n=[];return"title"in i&&i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),"columns"in i&&Array.isArray(i.columns)&&i.columns.forEach(l=>{l.title&&n.push({text:l.title,id:a(l.title,t++),tag:"h2"}),l.richText&&l.richText.root.children.filter(d=>d.type==="heading").forEach(d=>{n.push({text:d.children[0].text,id:a(d.children[0].text,t++),tag:d.tag||"h2"})})}),n}),o=Md(e.layout);return{tableOfContents:r,contentWithIds:o}}function Md(e){let t=(r,o)=>`${r.toLowerCase().replace(/\s+/g,"-").replace(/[^\Oe-]/g,"")}-${o}`,a=0;return e.map(r=>(r.title&&(r.id=t(r.title,a++)),r.columns&&(r.columns=r.columns.map(o=>(o.title&&(o.id=t(o.title,a++)),o.richText&&(o.richText.root.children=o.richText.root.children.map(i=>(i.type==="heading"&&(i.id=t(i.children[0].text,a++)),i))),o))),r))}var Oe=require("react/jsx-runtime"),_o=fa.forwardRef(({...e},t)=>(0,Oe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));_o.displayName="Breadcrumb";var Go=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ol",{ref:a,className:s("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Go.displayName="BreadcrumbList";var $o=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{ref:a,className:s("inline-flex items-center gap-1.5",e),...t}));$o.displayName="BreadcrumbItem";var Vo=fa.forwardRef(({asChild:e,className:t,...a},r)=>(0,Oe.jsx)(e?en.Slot:"a",{ref:r,className:s("transition-colors hover:text-foreground",t),...a}));Vo.displayName="BreadcrumbLink";var Uo=fa.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:s("font-normal text-foreground",e),...t}));Uo.displayName="BreadcrumbPage";var Wo=({children:e,className:t,...a})=>(0,Oe.jsx)("Oe",{role:"presentation","aria-hidden":"true",className:s("[&>svg]:Oe-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Oe.jsx)(Tr.ChevronRightIcon,{})});Wo.displayName="BreadcrumbSeparator";var jo=({className:e,...t})=>(0,Oe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Tr.DotsHorizontalIcon,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More"})]});jo.displayName="BreadcrumbElipssis";var ba=v(require("@radix-ui/react-collapsible")),dt=ba.Root,Tt=ba.CollapsibleTrigger,At=ba.CollapsibleContent;var mt=v(require("react")),A=v(require("@radix-ui/react-dropdown-menu"));var tn=A.Root,an=A.Trigger,rn=A.Group,on=A.Portal,sn=A.Sub,nn=A.RadioGroup,Xo=mt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,Oe.jsxs)(A.SubTrigger,{ref:o,className:s("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),...r,children:[a,(0,Oe.jsx)(Tr.ChevronRightIcon,{className:"ml-auto"})]}));Xo.displayName=A.SubTrigger.displayName;var Yo=mt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(A.SubContent,{ref:a,className:s("Oe-50 min-Oe-[8rem] overflow-hidden rounded-md 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}));Yo.displayName=A.SubContent.displayName;var Ko=mt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Oe.jsx)(A.Portal,{children:(0,Oe.jsx)(A.Content,{ref:r,sideOffset:t,className:s("Oe-50 min-Oe-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","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})}));Ko.displayName=A.Content.displayName;var qo=mt.forwardRef(({className:e,inset:t,...a},r)=>(0,Oe.jsx)(A.Item,{ref:r,className:s("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}));qo.displayName=A.Item.displayName;var Qo=mt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,Oe.jsxs)(A.CheckboxItem,{ref:o,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,...r,children:[(0,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(A.ItemIndicator,{children:(0,Oe.jsx)(Tr.CheckIcon,{className:"h-4 Oe-4"})})}),t]}));Qo.displayName=A.CheckboxItem.displayName;var Jo=mt.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)(A.RadioItem,{ref:r,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-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,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(A.ItemIndicator,{children:(0,Oe.jsx)(Tr.DotFilledIcon,{className:"h-4 Oe-4 fill-current"})})}),t]}));Jo.displayName=A.RadioItem.displayName;var Zo=mt.forwardRef(({className:e,inset:t,...a},r)=>(0,Oe.jsx)(A.Label,{ref:r,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Zo.displayName=A.Label.displayName;var ei=mt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(A.Separator,{ref:a,className:s("-mx-1 my-1 h-px bg-muted",e),...t}));ei.displayName=A.Separator.displayName;var ti=({className:e,...t})=>(0,Oe.jsx)("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});ti.displayName="DropdownMenuShortcut";var ln=v(require("react"));var Ga=ln.forwardRef(({className:e,type:t,...a},r)=>(0,Oe.jsx)("input",{type:t,className:s("flex h-9 Oe-full rounded-md 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:r,...a}));Ga.displayName="Input";var dn=v(require("react")),ai=v(require("@radix-ui/react-separator"));var $a=dn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,Oe.jsx)(ai.Root,{ref:o,decorative:a,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"h-[1px] Oe-full":"h-full Oe-[1px]",e),...r}));$a.displayName=ai.Root.displayName;var Va=v(require("react")),ee=v(require("@radix-ui/react-dialog")),un=require("class-variance-authority");var Ar=ee.Root,gn=ee.Trigger,fn=ee.Close,ri=ee.Portal,Dr=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Overlay,{className:s("fixed inset-0 Oe-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}));Dr.displayName=ee.Overlay.displayName;var Id=(0,un.cva)("fixed Oe-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-Oe-0 top-0 border-Oe data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-Oe-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Oe-0 left-0 h-full Oe-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-Oe-sm",right:"inset-Oe-0 right-0 h-full Oe-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-Oe-sm"}},defaultVariants:{side:"right"}}),Ua=Va.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,Oe.jsxs)(ri,{children:[(0,Oe.jsx)(Dr,{}),(0,Oe.jsxs)(ee.Content,{ref:o,className:s(Id({side:e}),t),...r,children:[(0,Oe.jsxs)(ee.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,Oe.jsx)(Tr.Cross2Icon,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ua.displayName=ee.Content.displayName;var oi=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col space-Oe-2 text-center sm:text-left",e),...t});oi.displayName="SheetHeader";var ii=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Oe-2",e),...t});ii.displayName="SheetFooter";var si=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Title,{ref:a,className:s("text-lg font-semibold text-foreground",e),...t}));si.displayName=ee.Title.displayName;var ni=Va.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ee.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));ni.displayName=ee.Description.displayName;var M=v(require("react")),Pn=require("lucide-react");var Mr=require("react"),Ir=(e=768)=>{let[t,a]=(0,Mr.useState)(!1);return(0,Mr.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var hn=v(require("react")),Dt=(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 Oe-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),D=hn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,Oe.jsx)(e?en.Slot:"button",{className:s(Dt({className:t,size:a,variant:r})),ref:i,...o}));D.displayName="Button";function te({className:e,...t}){return(0,Oe.jsx)("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t})}var wn=v(require("react")),Xe=v(require("@radix-ui/react-tooltip"));var Lr=Xe.Provider,Er=Xe.Root,Br=Xe.Trigger,Wa=wn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Oe.jsx)(Xe.Portal,{children:(0,Oe.jsx)(Xe.Content,{ref:r,sideOffset:t,className:s("Oe-50 overflow-hidden rounded-md 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})}));Wa.displayName=Xe.Content.displayName;var Ld="sidebar:state",Ed=60*60*24*7,Bd="16rem",Hd="18rem",zd="3rem",Fd="Oe",Cn=M.createContext(null);function xa(){let e=M.useContext(Cn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ci=M.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...n},l)=>{let d=Ir(),[m,c]=M.useState(!1),[p,u]=M.useState(e),f=t!=null?t:p,N=M.useCallback(R=>{if(a)return a==null?void 0:a(typeof R=="function"?R(f):R);u(R),document.cookie=`${Ld}=${f}; path=/; max-age=${Ed}`},[a,f]),g=M.useCallback(()=>d?c(R=>!R):N(R=>!R),[d,N,c]);M.useEffect(()=>{let R=fe=>{fe.key===Fd&&(fe.metaKey||fe.ctrlKey)&&(fe.preventDefault(),g())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[g]);let h=f?"expanded":"collapsed",P=M.useMemo(()=>({state:h,open:f,setOpen:N,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:g}),[h,f,N,d,m,c,g]);return(0,Oe.jsx)(Cn.Provider,{value:P,children:(0,Oe.jsx)(Lr,{delayDuration:0,children:(0,Oe.jsx)("div",{style:{"--sidebar-width":Bd,"--sidebar-width-icon":zd,...o},className:s("group/sidebar-wrapper flex Oe-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...n,children:i})})})});ci.displayName="SidebarProvider";var Wt=M.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},n)=>{let{isMobile:l,state:d,openMobile:m,setOpenMobile:c}=xa();return a==="none"?(0,Oe.jsx)("div",{className:s("flex h-full Oe-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):l?(0,Oe.jsx)(Ar,{open:m,onOpenChange:c,...i,children:(0,Oe.jsx)(Ua,{"data-sidebar":"sidebar","data-mobile":"true",className:"Oe-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Hd},side:e,children:(0,Oe.jsx)("div",{className:"flex h-full Oe-full flex-col",children:o})})}):(0,Oe.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Oe.jsx)("div",{className:s("duration-200 relative h-svh Oe-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:Oe-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:Oe-[calc(var(--sidebar-width-icon)Oe+_theme(spacing.4))]":"group-data-[collapsible=icon]:Oe-[--sidebar-width-icon]")}),(0,Oe.jsx)("div",{className:s("duration-200 fixed top-14 bottom-0 Oe-10 hidden Oe-[--sidebar-width] transition-[left,right,width] ease-linear md: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]:Oe-[calc(var(--sidebar-width-icon)Oe+_theme(spacing.4)Oe+2px)]":"group-data-[collapsible=icon]:Oe-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,Oe.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full Oe-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:o})})]})});Wt.displayName="Sidebar";var di=M.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=xa();return(0,Oe.jsxs)(D,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:s("h-7 Oe-7",e),onClick:i=>{t==null||t(i),o()},...a,children:[(0,Oe.jsx)(Pn.PanelLeft,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});di.displayName="SidebarTrigger";var mi=M.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=xa();return(0,Oe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:s("absolute inset-Oe-0 Oe-20 hidden Oe-4 -translate-Oe-1/2 transition-all ease-linear after:absolute after:inset-Oe-0 after:left-1/2 after:Oe-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Oe&]:cursor-Oe-resize [[data-side=right]Oe&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Oe&]:cursor-e-resize [[data-side=right][data-state=collapsed]Oe&]:cursor-Oe-resize","group-data-[collapsible=offcanvas]:translate-Oe-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Oe&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Oe&]:-left-2",e),...t})});mi.displayName="SidebarRail";var pi=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("main",{ref:a,className:s("flex flex-1 flex-col bg-background overflow-Oe-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));pi.displayName="SidebarInset";var ui=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Ga,{ref:a,"data-sidebar":"input",className:s("h-8 Oe-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ui.displayName="SidebarInput";var jt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"header",className:s("flex flex-col gap-2 p-2",e),...t}));jt.displayName="SidebarHeader";var Xt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"footer",className:s("flex flex-col gap-2 p-2",e),...t}));Xt.displayName="SidebarFooter";var ja=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)($a,{ref:a,"data-sidebar":"separator",className:s("mx-2 Oe-auto bg-sidebar-border",e),...t}));ja.displayName="SidebarSeparator";var Mt=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"content",className:s("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Mt.displayName="SidebarContent";var _e=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"group",className:s("relative flex Oe-full min-Oe-0 flex-col p-2",e),...t}));_e.displayName="SidebarGroup";var pt=M.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Oe.jsx)(t?en.Slot:"div",{ref:r,"data-sidebar":"group-label",className:s("duration-200 flex h-8 shrink-0 items-center rounded-md 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}));pt.displayName="SidebarGroupLabel";var gi=M.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Oe.jsx)(t?en.Slot:"button",{ref:r,"data-sidebar":"group-action",className:s("absolute right-3 top-3.5 flex aspect-square Oe-5 items-center justify-center rounded-md 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:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));gi.displayName="SidebarGroupAction";var Ye=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:s("Oe-full text-sm",e),...t}));Ye.displayName="SidebarGroupContent";var De=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{ref:a,"data-sidebar":"menu",className:s("flex Oe-full min-Oe-0 flex-col gap-1",e),...t}));De.displayName="SidebarMenu";var xe=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{ref:a,"data-sidebar":"menu-item",className:s("group/menu-item relative",e),...t}));xe.displayName="SidebarMenuItem";var Od=(0,un.cva)("peer/menu-button flex Oe-full items-center gap-2 overflow-hidden rounded-md 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:pr-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"}}),Ge=M.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:i,...n},l)=>{let d=e?en.Slot:"button",{isMobile:m,state:c}=xa(),p=(0,Oe.jsx)(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:s(Od({variant:a,size:r}),i),...n});return o?(typeof o=="string"&&(o={children:o}),(0,Oe.jsxs)(Er,{children:[(0,Oe.jsx)(Br,{asChild:!0,children:p}),(0,Oe.jsx)(Wa,{side:"right",align:"center",hidden:c!=="collapsed"||m,...o})]})):p});Ge.displayName="SidebarMenuButton";var Xa=M.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,Oe.jsx)(t?en.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:s("absolute right-1 top-1.5 flex aspect-square Oe-5 items-center justify-center rounded-md 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:md: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 md:opacity-0",e),...r}));Xa.displayName="SidebarMenuAction";var fi=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:s("absolute right-1 flex h-5 min-Oe-5 items-center justify-center rounded-md 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}));fi.displayName="SidebarMenuBadge";var bi=M.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=M.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Oe.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:s("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Oe.jsx)(te,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Oe.jsx)(te,{className:"h-4 flex-1 max-Oe-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});bi.displayName="SidebarMenuSkeleton";var It=M.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:s("mx-3.5 flex min-Oe-0 translate-Oe-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));It.displayName="SidebarMenuSub";var Lt=M.forwardRef(({...e},t)=>(0,Oe.jsx)("Oe",{ref:t,...e}));Lt.displayName="SidebarMenuSubItem";var Et=M.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},i)=>(0,Oe.jsx)(e?en.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:s("flex h-7 min-Oe-0 -translate-Oe-px items-center gap-2 overflow-hidden rounded-md 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==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...o}));Et.displayName="SidebarMenuSubButton";var Fr=v(require("react")),_d=1,Gd=1e6;var vi=0;function $d(){return vi=(vi+1)%Number.MAX_SAFE_INTEGER,vi.toString()}var hi=new Map,Rn=e=>{if(hi.has(e))return;let t=setTimeout(()=>{hi.delete(e),Ya({type:"REMOVE_TOAST",toastId:e})},Gd);hi.set(e,t)},Sn=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,_d)};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?Rn(a):e.toasts.forEach(r=>{Rn(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===a||a===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Hr=[],zr={toasts:[]};function Ya(e){zr=Sn(zr,e),Hr.forEach(t=>{t(zr)})}function kn({...e}){let t=$d(),a=o=>Ya({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ya({type:"DISMISS_TOAST",toastId:t});return Ya({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Or(){let[e,t]=Fr.useState(zr);return Fr.useEffect(()=>(Hr.push(t),()=>{let a=Hr.indexOf(t);a>-1&&Hr.splice(a,1)}),[e]),{...e,toast:kn,dismiss:a=>Ya({type:"DISMISS_TOAST",toastId:a})}}var Yt=v(require("react")),se=v(require("@radix-ui/react-toast"));var _r=se.Provider,Ka=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Viewport,{ref:a,className:s("fixed top-0 Oe-[100] flex max-h-screen Oe-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-Oe-[420px]",e),...t}));Ka.displayName=se.Viewport.displayName;var Vd=(0,un.cva)("group pointer-events-auto relative flex Oe-full items-center justify-between space-Oe-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Oe-0 data-[swipe=end]:translate-Oe-[var(--radix-toast-swipe-end-Oe)] data-[swipe=move]:translate-Oe-[var(--radix-toast-swipe-move-Oe)] 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-to-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"}}),qa=Yt.forwardRef(({className:e,variant:t,...a},r)=>(0,Oe.jsx)(se.Root,{ref:r,className:s(Vd({variant:t}),e),...a}));qa.displayName=se.Root.displayName;var xi=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Action,{ref:a,className:s("inline-flex h-8 shrink-0 items-center justify-center rounded-md 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}));xi.displayName=se.Action.displayName;var Qa=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Close,{ref:a,className:s("absolute right-1 top-1 rounded-md 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,Oe.jsx)(Pn.Oe,{className:"h-4 Oe-4"})}));Qa.displayName=se.Close.displayName;var Ja=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Title,{ref:a,className:s("text-sm font-semibold [&+div]:text-xs",e),...t}));Ja.displayName=se.Title.displayName;var Za=Yt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(se.Description,{ref:a,className:s("text-sm opacity-90",e),...t}));Za.displayName=se.Description.displayName;function Dn(){let{toasts:e}=Or();return(0,Oe.jsxs)(_r,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,Oe.jsxs)(qa,{...i,children:[(0,Oe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Oe.jsx)(Ja,{children:a}),r&&(0,Oe.jsx)(Za,{children:r})]}),o,(0,Oe.jsx)(Qa,{})]},t)}),(0,Oe.jsx)(Ka,{})]})}var Mn=v(require("react")),yi=v(require("@radix-ui/react-toggle"));var er=(0,un.cva)("inline-flex items-center justify-center gap-2 rounded-md 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-Oe-9",sm:"h-8 px-1.5 min-Oe-8",lg:"h-10 px-2.5 min-Oe-10"}},defaultVariants:{variant:"default",size:"default"}}),wi=Mn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,Oe.jsx)(yi.Root,{ref:o,className:s(er({variant:t,size:a,className:e})),...r}));wi.displayName=yi.Root.displayName;var Kt=v(require("react")),ya=v(require("@radix-ui/react-toggle-group"));var En=Kt.createContext({size:"default",variant:"default"}),Ni=Kt.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,Oe.jsx)(ya.Root,{ref:i,className:s("flex items-center justify-center gap-1",e),...o,children:(0,Oe.jsx)(En.Provider,{value:{variant:t,size:a},children:r})}));Ni.displayName=ya.Root.displayName;var Pi=Kt.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let n=Kt.useContext(En);return(0,Oe.jsx)(ya.Item,{ref:i,className:s(er({variant:n.variant||a,size:n.size||r}),e),...o,children:t})});Pi.displayName=ya.Item.displayName;var Ci=v(require("react")),$e=v(require("@radix-ui/react-scroll-area"));var Ri=Ci.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)($e.Root,{ref:r,className:s("relative overflow-hidden",e),...a,children:[(0,Oe.jsx)($e.Viewport,{className:"h-full Oe-full rounded-[inherit]",children:t}),(0,Oe.jsx)($r,{}),(0,Oe.jsx)($e.Corner,{})]}));Ri.displayName=$e.Root.displayName;var $r=Ci.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,Oe.jsx)($e.ScrollAreaScrollbar,{ref:r,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Oe-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,Oe.jsx)($e.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));$r.displayName=$e.ScrollAreaScrollbar.displayName;var Bn=v(require("react")),Ke=v(require("@radix-ui/react-popover"));var tr=Ke.Root,ar=Ke.Trigger,Hn=Ke.Anchor,wa=Bn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Oe.jsx)(Ke.Portal,{children:(0,Oe.jsx)(Ke.Content,{ref:o,align:t,sideOffset:a,className:s("Oe-50 Oe-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...r})}));wa.displayName=Ke.Content.displayName;var zn=v(require("react")),ki=v(require("@radix-ui/react-label"));var Ud=(0,un.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),qt=zn.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ki.Root,{ref:a,className:s(Ud(),e),...t}));qt.displayName=ki.Root.displayName;var _n=v(require("react")),Qt=v(require("@radix-ui/react-hover-card"));var Gn=Qt.Root,$n=Qt.Trigger,Ti=_n.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Oe.jsx)(Qt.Content,{ref:o,align:t,sideOffset:a,className:s("Oe-50 Oe-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md 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),...r}));Ti.displayName=Qt.Content.displayName;var rr=v(require("react")),ae=v(require("@radix-ui/react-dialog"));var Na=ae.Root,Wn=ae.Trigger,Ai=ae.Portal,Vr=ae.Close,Ur=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Overlay,{ref:a,className:s("fixed inset-0 Oe-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}));Ur.displayName=ae.Overlay.displayName;var Jt=rr.forwardRef(({className:e,children:t,...a},r)=>(0,Oe.jsxs)(Ai,{children:[(0,Oe.jsx)(Ur,{}),(0,Oe.jsxs)(ae.Content,{ref:r,className:s("fixed left-[50%] top-[50%] Oe-50 grid Oe-full max-Oe-lg translate-Oe-[-50%] translate-Oe-[-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-to-left-1/2 data-[state=closed]:slide-out-to-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,Oe.jsxs)(ae.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,Oe.jsx)(Pn.Oe,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Jt.displayName=ae.Content.displayName;var or=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col space-Oe-1.5 text-center sm:text-left",e),...t});or.displayName="DialogHeader";var Di=({className:e,...t})=>(0,Oe.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Oe-2",e),...t});Di.displayName="DialogFooter";var ir=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));ir.displayName=ae.Title.displayName;var Mi=rr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(ae.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Mi.displayName=ae.Description.displayName;var zt=v(require("react")),Re=require("cmdk");var Wr=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command,{ref:a,className:s("flex h-full Oe-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Wr.displayName=Re.Command.displayName;var Xn=({children:e,...t})=>(0,Oe.jsx)(Na,{...t,children:(0,Oe.jsx)(Jt,{className:"overflow-hidden p-0",children:(0,Oe.jsx)(Wr,{className:"[&Oe[cmdk-group-heading]]:px-2 [&Oe[cmdk-group-heading]]:font-medium [&Oe[cmdk-group-heading]]:text-muted-foreground [&Oe[cmdk-group]:not([hidden])Oe~[cmdk-group]]:pt-0 [&Oe[cmdk-group]]:px-2 [&Oe[cmdk-input-wrapper]_svg]:h-5 [&Oe[cmdk-input-wrapper]_svg]:Oe-5 [&Oe[cmdk-input]]:h-12 [&Oe[cmdk-item]]:px-2 [&Oe[cmdk-item]]:py-3 [&Oe[cmdk-item]_svg]:h-5 [&Oe[cmdk-item]_svg]:Oe-5",children:e})})}),Ii=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsxs)("div",{className:"flex items-center border-Oe px-3","cmdk-input-wrapper":"",children:[(0,Oe.jsx)(Pn.Search,{className:"mr-2 h-4 Oe-4 shrink-0 opacity-50"}),(0,Oe.jsx)(Re.Command.Input,{ref:a,className:s("flex h-10 Oe-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ii.displayName=Re.Command.Input.displayName;var Li=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.List,{ref:a,className:s("max-h-[300px] overflow-Oe-auto overflow-Oe-hidden",e),...t}));Li.displayName=Re.Command.List.displayName;var Ei=zt.forwardRef((e,t)=>(0,Oe.jsx)(Re.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ei.displayName=Re.Command.Empty.displayName;var Bi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Group,{ref:a,className:s("overflow-hidden p-1 text-foreground [&Oe[cmdk-group-heading]]:px-2 [&Oe[cmdk-group-heading]]:py-1.5 [&Oe[cmdk-group-heading]]:text-xs [&Oe[cmdk-group-heading]]:font-medium [&Oe[cmdk-group-heading]]:text-muted-foreground",e),...t}));Bi.displayName=Re.Command.Group.displayName;var Hi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Separator,{ref:a,className:s("-mx-1 h-px bg-border",e),...t}));Hi.displayName=Re.Command.Separator.displayName;var zi=zt.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(Re.Command.Item,{ref:a,className:s("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}));zi.displayName=Re.Command.Item.displayName;var Fi=({className:e,...t})=>(0,Oe.jsx)("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Fi.displayName="CommandShortcut";var jr=v(require("react"));var Wd=(0,un.cva)("relative Oe-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Oe-[-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"}}),Oi=jr.forwardRef(({className:e,variant:t,...a},r)=>(0,Oe.jsx)("div",{ref:r,role:"alert",className:s(Wd({variant:t}),e),...a}));Oi.displayName="Alert";var _i=jr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("h5",{ref:a,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));_i.displayName="AlertTitle";var Gi=jr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("text-sm [&_p]:leading-relaxed",e),...t}));Gi.displayName="AlertDescription";var Yr=v(require("react")),gt=v(require("@radix-ui/react-avatar"));var ft=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(gt.Root,{ref:a,className:s("relative flex h-10 Oe-10 shrink-0 overflow-hidden rounded-full",e),...t}));ft.displayName=gt.Root.displayName;var bt=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(gt.Image,{ref:a,className:s("aspect-square h-full Oe-full",e),...t}));bt.displayName=gt.Image.displayName;var vt=Yr.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(gt.Fallback,{ref:a,className:s("flex h-full Oe-full items-center justify-center rounded-full bg-muted",e),...t}));vt.displayName=gt.Fallback.displayName;var $i=(0,un.cva)("inline-flex items-center rounded-md 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 Ft({className:e,variant:t,...a}){return(0,Oe.jsx)("div",{className:s($i({variant:t}),e),...a})}var sr=v(require("@radix-ui/react-checkbox")),Jn=v(require("react")),nr=Jn.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(sr.Root,{className:s("peer h-4 Oe-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,Oe.jsx)(sr.Indicator,{className:s("flex items-center justify-center text-current"),children:(0,Oe.jsx)(Pn.Check,{className:"h-4 Oe-4"})})}));nr.displayName=sr.Root.displayName;var L=v(require("@radix-ui/react-select")),Ot=v(require("react")),jd=L.Root,Xd=L.Group,Yd=L.Value,Zn=Ot.forwardRef(({children:e,className:t,...a},r)=>(0,Oe.jsxs)(L.Trigger,{className:s("flex h-10 Oe-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:r,...a,children:[e,(0,Oe.jsx)(L.Icon,{asChild:!0,children:(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4 opacity-50"})})]}));Zn.displayName=L.Trigger.displayName;var Vi=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.ScrollUpButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Oe.jsx)(Pn.ChevronUp,{className:"h-4 Oe-4"})}));Vi.displayName=L.ScrollUpButton.displayName;var Ui=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.ScrollDownButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4"})}));Ui.displayName=L.ScrollDownButton.displayName;var el=Ot.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,Oe.jsx)(L.Portal,{children:(0,Oe.jsxs)(L.Content,{className:s("relative Oe-50 max-h-96 min-Oe-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md 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-Oe-1 data-[side=left]:-translate-Oe-1 data-[side=right]:translate-Oe-1 data-[side=top]:-translate-Oe-1",t),position:a,ref:o,...r,children:[(0,Oe.jsx)(Vi,{}),(0,Oe.jsx)(L.Viewport,{className:s("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Oe-full min-Oe-[var(--radix-select-trigger-width)]"),children:e}),(0,Oe.jsx)(Ui,{})]})}));el.displayName=L.Content.displayName;var tl=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.Label,{className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));tl.displayName=L.Label.displayName;var al=Ot.forwardRef(({children:e,className:t,...a},r)=>(0,Oe.jsxs)(L.Item,{className:s("relative flex Oe-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:r,...a,children:[(0,Oe.jsx)("span",{className:"absolute left-2 flex h-3.5 Oe-3.5 items-center justify-center",children:(0,Oe.jsx)(L.ItemIndicator,{children:(0,Oe.jsx)(Pn.Check,{className:"h-4 Oe-4"})})}),(0,Oe.jsx)(L.ItemText,{children:e})]}));al.displayName=L.Item.displayName;var rl=Ot.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)(L.Separator,{className:s("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));rl.displayName=L.Separator.displayName;var ol=v(require("react")),il=ol.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("textarea",{className:s("flex min-h-[80px] Oe-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}));il.displayName="Textarea";var nl=require("react-day-picker");function lr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,Oe.jsx)(nl.DayPicker,{showOutsideDays:a,className:s("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Oe-4 sm:space-Oe-4 sm:space-Oe-0",month:"space-Oe-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Oe-1 flex items-center",nav_button:s(Dt({variant:"outline"}),"h-7 Oe-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"Oe-full border-collapse space-Oe-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md Oe-8 font-normal text-[0.8rem]",row:"flex Oe-full mt-2",cell:s("relative p-0 text-center text-sm focus-within:relative focus-within:Oe-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:s(Dt({variant:"ghost"}),"h-8 Oe-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},...r})}lr.displayName="Calendar";var Ve=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",i="fa-"+t,n=r!=null?r:"",l=o+i+" fa-"+a+" "+n;return(0,Oe.jsx)("i",{className:l})};var dl=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,Oe.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[o]} p-6 flex flex-col items-center text-center`,children:[(0,Oe.jsx)("div",{className:"Oe-12 h-12 ",children:(0,Oe.jsx)(Ve,{type:r,iconName:a,className:"Oe-12 h-12 text-white"})}),(0,Oe.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,Oe.jsx)("p",{className:"text-white text-sm",children:t})]});var ml=v(require("next/image")),pl=v(require("next/link"));var ta=v(require("react"));var J=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));J.displayName="Card";var be=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("flex flex-col space-Oe-1.5 p-6",e),...t}));be.displayName="CardHeader";var ve=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("font-semibold leading-none tracking-tight",e),...t}));ve.displayName="CardTitle";var Kd=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Kd.displayName="CardDescription";var ne=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("p-6 pt-0",e),...t}));ne.displayName="CardContent";var qd=ta.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("div",{ref:a,className:s("flex items-center p-6 pt-0",e),...t}));qd.displayName="CardFooter";function ul({name:e,logo:t,href:a}){return(0,Oe.jsx)(J,{className:"Oe-full max-Oe-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Oe.jsxs)(pl.default,{href:a,className:"block",children:[(0,Oe.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Oe.jsx)("div",{className:"relative Oe-full h-full",children:t&&(0,Oe.jsx)(ml.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Oe.jsx)(ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,Oe.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 gl({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=l=>{switch(l){case"birthday":return(0,Oe.jsx)(Pn.Cake,{className:"h-4 Oe-4"});case"workAnniversary":return(0,Oe.jsx)(Pn.Award,{className:"h-4 Oe-4"});case"companyEvent":return(0,Oe.jsx)(Pn.PartyPopper,{className:"h-4 Oe-4"});default:return(0,Oe.jsx)(Pn.CalendarDays,{className:"h-4 Oe-4"})}},n=l=>{switch(l){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,Oe.jsxs)(J,{className:`Oe-full max-Oe-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,Oe.jsxs)(be,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,Oe.jsxs)(ft,{className:"h-14 Oe-14 border-2 border-white",children:[(0,Oe.jsx)(bt,{src:o,alt:a||"Event"}),(0,Oe.jsx)(vt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Oe.jsxs)("div",{className:"flex flex-col",children:[(0,Oe.jsx)(ve,{className:"text-xl",children:a||"Untitled Event"}),(0,Oe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Oe.jsx)(Pn.CalendarDays,{className:"mr-1 inline-block h-4 Oe-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Oe.jsxs)(ne,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,Oe.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,Oe.jsxs)(Ft,{variant:"secondary",className:`${n(e)} text-white/80`,children:[i(e),(0,Oe.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Oe])([A-Z])/g,"$1 $2").split(" ").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" "):"Event"})]})]})]})}var bl=v(require("next/link"));var vl=v(require("next/image")),fl={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function hl({slug:e,image:t,title:a,description:r}){return(0,Oe.jsxs)(bl.default,{href:e,className:"group/portfolio relative Oe-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Oe.jsx)("span",{className:s("absolute inset-0 Oe-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Oe.jsx)(vl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
8
8
|
(min-width:${fl.md}) 50vw,
|
|
9
9
|
(min-width:${fl.lg}) 25vw,
|
|
10
10
|
100vw
|
|
11
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Oe.jsx)("div",{className:"relative Oe-10 flex h-full flex-col",children:(0,Oe.jsxs)("div",{className:"mt-auto divide-Oe md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Oe.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Oe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Oe.jsx)("p",{className:"mt-[13px] overflow-hidden Oe-[11px] text-body",children:(0,Oe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:r})})]})})]})}var Wi=v(require("next/image")),Qr=v(require("path"));function Qd(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Jd(e){return e.startsWith("http")}function Zd(e,t){let a=e;if(Qd(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Jd(e))a=e;else if(t.source==="github"){let r=e.replace("./","");if(r.startsWith("/")&&(r=r.slice(1)),t.linked){if(t.linked.path){let o=Qr.default.dirname(t.linked.path);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${r}&branch=${t.linked.branch}`}else{if(t.file){let o=Qr.default.dirname(t.file);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${r}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let r=e.replace("./","");t.file&&(r=`/${Qr.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function em({src:e,alt:t}){let[a,r]=(0,Mr.useState)(!1),[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)({width:0,height:0}),d=()=>{o&&r(!0)},m=()=>{r(!1)},c=p=>{let{naturalWidth:u,naturalHeight:f}=p.target;l({width:u,height:f}),i(u>300||f>300)};return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:d,children:(0,Oe.jsx)(Wi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-Oe-full max-h-full"})}),(0,Oe.jsx)(Na,{open:a,onOpenChange:r,children:(0,Oe.jsxs)(Jt,{className:"flex flex-col items-center justify-center",children:[(0,Oe.jsxs)(or,{className:"flex Oe-full justify-end",children:[(0,Oe.jsx)(ir,{className:"hidden",children:t}),(0,Oe.jsx)(Vr,{})]}),(0,Oe.jsx)("div",{className:"flex items-center justify-center",children:(0,Oe.jsx)(Wi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function xl({props:e,baseContext:t}){let{src:a}=e;return a=Zd(a,t),(0,Oe.jsx)(em,{src:a,alt:e.alt})}var yl=v(require("next/link"));function ue({children:e,href:t,openNewTab:a,...r}){return(0,Oe.jsx)(yl.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function tm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ji({icon:e,title:t,description:a,slug:r}){return(0,Oe.jsxs)("article",{className:s(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative Oe-1 block h-full space-Oe-6 overflow-hidden rounded-5 p-6 md:space-Oe-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Oe.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:tm(e)?(0,Oe.jsx)(Ve,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Oe.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,Oe.jsx)(ue,{href:r,children:t}):t})]}),(0,Oe.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,Oe.jsx)(D,{asChild:!0,className:s(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,Oe.jsxs)(ue,{href:r,children:[(0,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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,Oe.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] Oe-full scale-Oe-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Oe-100 group-hover/service:opacity-100"})]})}var Zr=require("react-icons/fa6");function Xi({title:e,description:t,features:a,price:r,duration:o,button:i}){return(0,Oe.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,Oe.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-Oe max-lg:Oe-14 lg:border-r lg:p-10",children:[(0,Oe.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Oe.jsx)("p",{children:t})]}),(0,Oe.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Oe.jsxs)("div",{className:"flex flex-col justify-stretch gap-Oe-14 gap-Oe-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Oe.jsx)("ul",{"aria-label":"pricing point list",className:"grid Oe-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Oe.jsx)("span",{className:"text-accent Oe-1",children:(0,Oe.jsx)(Zr.FaCircleCheck,{})}),(0,Oe.jsx)("span",{children:n})]},l))}),(0,Oe.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[r&&r,(0,Oe.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),i&&(0,Oe.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Oe.jsx)(D,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Oe.jsxs)(ue,{href:i.href,openNewTab:i.openNewTab,children:[(0,Oe.jsx)("span",{className:"relative Oe-1",children:i.label}),(0,Oe.jsx)("span",{className:"relative Oe-1 pl-2",children:(0,Oe.jsx)(Zr.FaAnglesRight,{})})]})})})]})})]})}var Nl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Oe.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function am({icon:e,title:t,body:a,color:r="secondary"}){return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Oe.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Oe.jsx)("div",{className:"Oe-12 h-12",children:(0,Oe.jsx)(Ve,{type:e.type,iconName:e.name})})}),(0,Oe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Oe-[30%]",children:t}),a&&(0,Oe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Oe-[50%]",children:a})]})})}var Cl=v(require("next/image"));function rm(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,Oe.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Oe.jsx)(Cl.default,{alt:o||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Oe.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Oe.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,Oe.jsxs)("a",{href:t,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,Oe.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var om=(e,t)=>`from-brand-${e} to-brand-${t}`;function im({...e}){let t=om(e.brandFrom||"one",e.brandTo||"two");return(0,Oe.jsxs)("div",{className:`relative isolate flex items-center gap-Oe-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,Oe.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Oe.jsxs)("a",{href:e.url,children:[(0,Oe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Oe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Oe.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Oe.jsx)("span",{children:e.message&&e.message})]}):(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Oe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Oe.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Oe.jsx)("div",{className:"flex flex-1 justify-end"})]})}var cr=v(require("react")),sm={Architecture:(0,Oe.jsx)(Pn.DraftingCompass,{className:"h-5 Oe-5 text-blue-600"}),Engineering:(0,Oe.jsx)(Pn.Code,{className:"h-5 Oe-5 text-green-600"}),Development:(0,Oe.jsx)(Pn.Code,{className:"h-5 Oe-5 text-purple-600"}),Delivery:(0,Oe.jsx)(Pn.GanttChart,{className:"h-5 Oe-5 text-red-600"})},nm=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=e.reports.length>0;return(0,Oe.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Oe.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${o?"bg-card border-primary":"bg-white border-gray-200"}`,children:[i&&(0,Oe.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4"}):(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})}),(0,Oe.jsx)("div",{className:"Oe-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Oe.jsx)(Pn.Users,{className:"h-6 Oe-6 text-gray-500"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Oe.jsxs)("div",{className:"flex items-center mt-1",children:[sm[e.discipline],(0,Oe.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Oe.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Rl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,cr.useState)(t<1),i=()=>o(!r),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),l=c=>n(c)||c.reports.some(l),d=a===""||l(e),m=n(e);return cr.default.useEffect(()=>{a!==""&&l(e)&&o(!0)},[a,e]),d?(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(nm,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:m}),r&&e.reports.map((c,p)=>(0,Oe.jsx)(Rl,{person:c,level:t+1,searchTerm:a},p))]}):null};function lm(){let[e,t]=(0,cr.useState)("");return(0,Oe.jsxs)("div",{className:"max-Oe-5xl mx-auto p-6",children:[(0,Oe.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Oe.jsxs)("div",{className:"mb-4 relative",children:[(0,Oe.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"Oe-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Oe.jsx)(Pn.Search,{className:"absolute right-3 top-2.5 h-5 Oe-5 text-gray-400"})]}),(0,Oe.jsx)("div",{className:"space-Oe-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((r,o)=>(0,Oe.jsx)(Rl,{person:r,level:0,searchTerm:e},o))})]})}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:"A 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:"A 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:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to 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 to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to 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 to leverage Generative AI effectively, providing a competitive edge in the market."],fee:r="\xA3150,000 for delivery of listed outputs"}){return(0,Oe.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{className:"lg:col-span-1 space-Oe-6 flex flex-col",children:[(0,Oe.jsxs)(J,{className:"flex-grow",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.Users,{className:"h-5 Oe-5"}),"Team"]})}),(0,Oe.jsxs)(ne,{className:"p-6",children:[(0,Oe.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Oe.jsxs)("div",{className:"space-Oe-6",children:[(0,Oe.jsx)("div",{className:"space-Oe-2",children:e.leadership.map((o,i)=>(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.User,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:o.role})]}),o.isFTE&&(0,Oe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Oe.jsx)("div",{className:"space-Oe-2",children:e.core.map((o,i)=>(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.User,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:o.role}),o.count&&(0,Oe.jsxs)("span",{children:["(",o.count,"Oe)"]})]}),o.isFTE&&(0,Oe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Oe.jsx)(Pn.Users2,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:"SME input:"})]}),(0,Oe.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.PoundSterling,{className:"h-5 Oe-5"}),"Fee"]})}),(0,Oe.jsx)(ne,{className:"p-6",children:(0,Oe.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,Oe.jsxs)(J,{className:"lg:col-span-1 flex flex-col",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.FileText,{className:"h-5 Oe-5"}),"Outputs"]})}),(0,Oe.jsxs)(ne,{className:"p-6 flex-grow overflow-auto",children:[(0,Oe.jsx)("ol",{className:"list-decimal list-inside space-Oe-4",children:t.map((o,i)=>(0,Oe.jsxs)("Oe",{className:"text-sm",children:[(0,Oe.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,Oe.jsx)("span",{className:"text-muted-foreground",children:o.description})]},i))}),(0,Oe.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Oe.jsxs)(J,{className:"lg:col-span-1 flex flex-col",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.Lightbulb,{className:"h-5 Oe-5"}),"Benefits"]})}),(0,Oe.jsx)(ne,{className:"p-6 flex-grow overflow-auto",children:(0,Oe.jsx)("ul",{className:"space-Oe-4",children:a.map((o,i)=>(0,Oe.jsxs)("Oe",{className:"flex gap-2 text-sm",children:[(0,Oe.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Oe.jsx)("span",{children:o})]},i))})})]})]})}function dm(){return(0,Oe.jsx)("div",{className:"Oe-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Oe.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Oe.jsxs)("div",{className:"space-Oe-4 bg-primary p-3 rounded-lg",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Oe.jsx)(Pn.BarChart3,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Oe.jsx)("p",{className:"text-secondary text-sm",children:"Oe excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Oe.jsxs)("ul",{className:"text-sm",children:[(0,Oe.jsx)("Oe",{children:"Strategy definition"}),(0,Oe.jsx)("Oe",{children:"Programme leadership"}),(0,Oe.jsx)("Oe",{children:"Detailed planning"}),(0,Oe.jsx)("Oe",{children:"\u2022 Financial control"}),(0,Oe.jsx)("Oe",{children:"\u2022 Rigorous governance"})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Oe.jsx)(Pn.CogIcon,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Oe.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,Oe.jsx)("p",{className:"text-sm",children:"Oe deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Oe.jsx)(Pn.Building2,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Oe.jsx)("p",{className:"text-sky-200 text-sm",children:"Oe understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Oe.jsx)("p",{className:"text-sm",children:"Oe have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Oe.jsx)(Pn.BadgeCheck,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Oe.jsx)("p",{className:"text-sky-200 text-sm",children:"Oe have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Oe.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Oe have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Yi=({className:e,content:t,style:a})=>(0,Oe.jsx)("div",{className:s("mx-auto my-8 Oe-full",e),children:(0,Oe.jsx)("div",{className:s("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,Oe.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var Ki=v(require("next/link")),yt=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:n,reference:l,size:d,url:m}=e,c=t==="reference"&&typeof(l==null?void 0:l.value)=="object"&&l.value.slug?`${(l==null?void 0:l.relationTo)!=="pages"?`/${l==null?void 0:l.relationTo}`:""}/${l.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Oe.jsxs)(Ki.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]}):(0,Oe.jsx)(D,{asChild:!0,className:o,size:p,variant:a,children:(0,Oe.jsxs)(Ki.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]})})};var mr=({links:e,richText:t})=>(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Oe.jsx)("div",{className:"max-Oe-[48rem] flex items-center",children:t&&(0,Oe.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,Oe.jsx)(yt,{size:"lg",...a},r))})]})});var to=require("prism-react-renderer");function qi({code:e}){let[t,a]=(0,Mr.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Oe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Oe.jsxs)(D,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,Oe.jsx)("p",{children:t}),(0,Oe.jsx)("div",{className:"Oe-6 h-6 dark:invert",children:(0,Oe.jsx)(Pn.ClipboardCopy,{})})]})})}var Tl=({code:e,language:t=""})=>e?(0,Oe.jsx)(to.Highlight,{code:e,language:t,theme:to.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,Oe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Oe-auto",children:[o.map((i,n)=>(0,Oe.jsxs)("div",{...a({className:"table-row",line:i}),children:[(0,Oe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,Oe.jsx)("span",{className:"table-cell pl-4",children:i.map((l,d)=>(0,Oe.jsx)("span",{...r({token:l})},d))})]},n)),(0,Oe.jsx)(qi,{code:e})]})}):null;var Ji=({className:e,code:t,language:a})=>(0,Oe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Oe.jsx)(Tl,{code:t,language:a})});var Dl=v(require("next/image")),mm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Al="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=",Ml=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:n,src:l,loading:d}=e,m,c,p=t,u=l||"";if(!u&&i&&typeof i=="object"){let{alt:g,filename:h,height:P,url:R,width:fe}=i;m=fe,c=P,p=g||"",u=R||Al}let f=d||"lazy",N=n||Object.entries(mm).map(([,g])=>`(max-width: ${g}px) ${g*2}Oe`).join(", ");return(0,Oe.jsx)("picture",{children:(0,Oe.jsx)(Dl.default,{alt:p||"",className:s(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:Al,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:N,src:u,width:a?void 0:m})})};var Il=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ll=()=>{if(Il){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 El=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,Mr.useRef)(null);if((0,Mr.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=a;return(0,Oe.jsx)("video",{autoPlay:!0,className:s(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,Oe.jsx)("source",{src:`${Ll()}/media/${i}`})})}return null};var Nt=e=>{var n;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((n=r==null?void 0:r.mimeType)==null?void 0:n.includes("video"));return(0,Oe.jsx)(a||Mr.Fragment,{...a!==null?{className:t}:{},children:o?(0,Oe.jsx)(El,{...e}):(0,Oe.jsx)(Ml,{...e})})};var Pa=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Oe.jsx)("div",{className:s("",{container:a},t),children:(0,Oe.jsx)(Nt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var rs=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Oe.jsx)("div",{className:s("",{container:a},t),children:(0,Oe.jsx)(Nt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var pr=({title:e,description:t,features:a,id:r})=>(0,Oe.jsxs)("section",{className:s("container Oe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Oe.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,Oe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,Oe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,Oe.jsx)(Z,{content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,i)=>{let n=(0,Oe.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Oe.jsx)("div",{className:"text-accent h-12 Oe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Oe.jsx)("i",{className:`${o.icon.type} fa-${o.icon.icon} fa-4x`})}),(0,Oe.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:o.title}),o.content&&typeof o.content!="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",children:(0,Oe.jsx)(Z,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,Oe.jsx)("a",{href:o.link.url?o.link.url:"#",className:"Oe-underline group",children:n},i):n})})]});var io=v(require("react"));function oo({nodes:e}){return(0,Oe.jsx)(io.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"){let i=(0,Oe.jsx)(io.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,Oe.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,Oe.jsx)("em",{children:i},a)),t.format&4&&(i=(0,Oe.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,Oe.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,Oe.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,Oe.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,Oe.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,Oe.jsx)("table",{children:(0,Oe.jsx)("tbody",{children:t.children.map((i,n)=>(0,Oe.jsx)("tr",{children:i.children.map((l,d)=>(0,Oe.jsx)("td",{children:oo({nodes:l.children})},d))},n))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let n of i.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return oo({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,n=i==null?void 0:i.blockType;if(!i||!n)return null;switch(n){case"cta":return(0,Oe.jsx)(mr,{...i},a);case"mediaBlock":return(0,Oe.jsx)(Pa,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Oe.jsx)(rs,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Oe.jsx)(Yi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,Oe.jsx)(Ji,{className:"col-start-2",...i},a);case"features":return(0,Oe.jsx)(pr,{...i},a);default:return null}}else switch(t.type){case"linebreak":return(0,Oe.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Oe.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let i=t==null?void 0:t.tag;return(0,Oe.jsx)(i,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let i=t==null?void 0:t.tag;return(0,Oe.jsx)(i,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Oe.jsx)("Oe",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:o},a):(0,Oe.jsx)("Oe",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,Oe.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let i=t.fields;return(0,Oe.jsx)(yt,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,Oe.jsx)("div",{className:s({"container ":a,"max-Oe-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&oo({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};var os=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,Oe.jsx)("div",{className:"container my-6",children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-Oe-8 gap-Oe-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:i,link:n,richText:l,size:d}=r;return(0,Oe.jsxs)("div",{className:s(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[l&&(0,Oe.jsx)(Z,{content:l,enableGutter:!1}),i&&(0,Oe.jsx)(yt,{...n})]},o)})})})};var so=v(require("next/image"));function pm({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,Oe.jsxs)("div",{className:"relative Oe-full overflow-hidden bg-white pb-16 Oe-[calc(80vw*0.5)]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] Oe-full overflow-hidden",children:(0,Oe.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] Oe-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Oe.jsx)(so.default,{src:e,alt:"Header background",className:"h-full Oe-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Oe.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,Oe.jsx)("div",{className:"h-16 Oe-32 md:h-24 md:Oe-48",children:(0,Oe.jsx)(so.default,{src:r,alt:"Company logo",className:"h-full Oe-full object-contain",width:192,height:96})}),o&&(0,Oe.jsx)("div",{className:"h-10 Oe-20 md:h-12 md:Oe-24",children:(0,Oe.jsx)(so.default,{src:o,alt:"Customer logo",className:"h-full Oe-full object-contain",width:96,height:48})})]}),(0,Oe.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Oe.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Oe.jsx)("h1",{className:"max-Oe-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var zl={content:os,cta:mr,mediaBlock:Pa,imageBlock:Pa,features:pr},is=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Oe.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{let{blockType:i}=r;if(i&&i in zl){let n=zl[i];if(n)return(0,Oe.jsx)("div",{className:"my-6",children:(0,Oe.jsx)(n,{...r})},o)}return null})}):null};var Gl=v(require("clsx"));var Fl=require("next/navigation");function um({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Fl.useRouter)(),o=(0,Mr.useRef)(null),i=(0,Mr.useRef)(null),n=(0,Mr.useRef)(0),l=(0,Mr.useRef)(!1),d=(0,Mr.useRef)(0),m=(0,Mr.useCallback)(p=>{if(p.target){let u=p.target,f=+new Date,N=u==null?void 0:u.closest("a");d.current=p.button,N?l.current=!0:(l.current=!1,n.current=f)}},[r,o,i,n]),c=(0,Mr.useCallback)(p=>{var u,f;if((u=i.current)!=null&&u.href){let g=+new Date-n.current;if((f=i.current)!=null&&f.href&&g<=250&&!l.current&&d.current===0&&!p.ctrlKey)if(e){let h=t?"_blank":"_self";window.open(i.current.href,h)}else r.push(i.current.href,{scroll:a})}},[r,o,i,n]);return(0,Mr.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",c))}},[o,i,r]),{card:{ref:o},link:{ref:i}}}var Ol=um;var _l=v(require("next/link"));var ur=e=>{let{card:t,link:a}=Ol({}),{className:r,doc:o,relationTo:i,showCategories:n,title:l}=e,{slug:d,categories:m,meta:c,title:p}=o||{},{description:u,image:f}=c||{},N=m&&Array.isArray(m)&&m.length>0,g=l||p,h=u==null?void 0:u.replace(/\s/g," "),P=`/${i}/${d}`;return(0,Oe.jsxs)("article",{className:s("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,Oe.jsxs)("div",{className:"relative Oe-full ",children:[!f&&(0,Oe.jsx)("div",{className:"",children:"Pn image"}),f&&typeof f!="string"&&(0,Oe.jsx)(Nt,{resource:f,size:"33vw"})]}),(0,Oe.jsxs)("div",{className:"p-4",children:[n&&N&&(0,Oe.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&N&&(0,Oe.jsx)("div",{children:m==null?void 0:m.map((R,fe)=>{if(typeof R=="object"){let{title:Ae}=R,st=Ae||"Untitled category",Cr=fe===m.length-1;return(0,Oe.jsxs)(Mr.Fragment,{children:[st,!Cr&&(0,Oe.jsx)(Mr.Fragment,{children:", \xA0"})]},fe)}return null})})}),g&&(0,Oe.jsx)("div",{className:"prose",children:(0,Oe.jsx)("h3",{children:(0,Oe.jsx)(_l.default,{className:"not-prose",href:P,ref:a.ref,children:g})})}),u&&(0,Oe.jsx)("div",{className:"mt-2",children:u&&(0,Oe.jsx)("p",{children:h})})]})]})};var gm=e=>{let{className:t,docs:a,introContent:r}=e;return(0,Oe.jsxs)("div",{className:(0,Gl.default)("container",t),children:[r&&(0,Oe.jsx)(Z,{content:r,enableGutter:!1}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((o,i)=>typeof o=="string"?null:(0,Oe.jsx)(ur,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var gr=require("framer-motion");var $l=e=>{let[t,a]=(0,Mr.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},n=()=>{a(p=>(p+1)%r.length)},l=()=>{a(p=>(p-1+r.length)%r.length)},m=(0,Mr.useCallback)(((p,u)=>{let f;return(...N)=>{clearTimeout(f),f=setTimeout(()=>p(...N),u)}})(p=>{p.deltaY>0?n():l()},300),[]),c=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&l()};return(0,Mr.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",c)}),[]),(0,Oe.jsxs)("div",{className:"flex h-screen relative",children:[(0,Oe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen Oe-9 Oe-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,u)=>(0,Oe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 Oe-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>i(u),children:(0,Oe.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Oe-1/2 translate-Oe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Oe-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,u)=>(0,Oe.jsx)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,Oe.jsx)(is,{blocks:[p]})},u)),(0,Oe.jsx)("button",{className:"absolute bottom-4 left-1 Oe-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,Oe.jsx)(fm,{})})]})},fm=()=>(0,Oe.jsx)(gr.AnimatePresence,{children:(0,Oe.jsx)(gr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:s("Oe-fit min-h-[50px] min-Oe-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,Oe.jsx)(gr.motion.div,{initial:{Oe:0},animate:{Oe:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:s("Oe-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Vl=v(require("next/link")),Ul=v(require("next/image"));function Wl({blogs:e,width:t=3}){return(0,Oe.jsx)("div",{className:"Oe-full max-Oe-7xl mx-auto px-4 py-8",children:(0,Oe.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,Oe.jsx)(Vl.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,Oe.jsxs)("div",{className:"relative size-full",children:[(0,Oe.jsx)(Ul.default,{src:((o=a.image)==null?void 0:o.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,Oe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,Oe.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(i=>`${i.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Oe.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})]})]})},r)})})})}function jl({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:n,companiesCount:l,dealsClosed:d,leadsGenerated:m}){return(0,Oe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Oe.jsxs)("div",{className:"mx-auto max-Oe-2xl px-6 lg:max-Oe-7xl lg:px-8",children:[(0,Oe.jsxs)("div",{className:"max-Oe-4xl",children:[(0,Oe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Oe.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Oe.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Oe.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Oe-8 lg:gap-Oe-16",children:[(0,Oe.jsxs)("div",{className:"lg:pr-8",children:[(0,Oe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,Oe.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:o})]}),(0,Oe.jsx)("div",{className:"Oe-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Oe.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:i.map((c,p)=>(0,Oe.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Oe.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,Oe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Oe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Oe.jsx)("Oe",{className:"mt-6 border-t border-gray-200"}),(0,Oe.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Oe-8 gap-Oe-4 sm:grid-cols-2",children:[(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 border-Oe border-dotted border-gray-200 pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 border-Oe border-dotted border-gray-200 pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[l,"Oe"]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 max-sm:border-Oe max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Xl=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,n=o<10?`0${o}`:o,l=a.getFullYear();return`${n}/${i}/${l}`};var lo=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Yl=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function $t({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:n=!1}){let l=s(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,Oe.jsxs)("div",{className:l,children:[e&&(0,Oe.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,Oe.jsx)("h2",{className:s("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,Oe.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,Oe.jsx)(Z,{content:a,enableGutter:!1})]})}function me({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=s("container",t&&"full-width",a&&"Oe-padding",r);return(0,Oe.jsx)("div",{className:o,children:e})}var Sa=(e,t)=>e[t%e.length];var ns=v(require("next/image"));function bm({blogs:e,sectionHeading:t}){return(0,Oe.jsx)("section",{className:s("section-padding-primary overflow-hidden "),children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]",children:t&&(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Oe.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-Oe-30px",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 md:px-[15px] lg:Oe-1/3",children:(0,Oe.jsx)(Jl,{...a})},r))})]})})}var ql=s("inline-flex items-center gap-2 text-white"),zb=s("text-sm text-white");function Jl({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){return(0,Oe.jsxs)("article",{className:"group/blog relative Oe-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Oe.jsx)("span",{className:"absolute inset-0 Oe-[2] "}),(0,Oe.jsx)(ns.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
11
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Oe.jsx)("div",{className:"relative Oe-10 flex h-full flex-col",children:(0,Oe.jsxs)("div",{className:"mt-auto divide-Oe md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Oe.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Oe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Oe.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Oe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:r})})]})})]})}var Wi=v(require("next/image")),Qr=v(require("path"));function Qd(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Jd(e){return e.startsWith("http")}function Zd(e,t){let a=e;if(Qd(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Jd(e))a=e;else if(t.source==="github"){let r=e.replace("./","");if(r.startsWith("/")&&(r=r.slice(1)),t.linked){if(t.linked.path){let o=Qr.default.dirname(t.linked.path);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${r}&branch=${t.linked.branch}`}else{if(t.file){let o=Qr.default.dirname(t.file);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${r}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let r=e.replace("./","");t.file&&(r=`/${Qr.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function em({src:e,alt:t}){let[a,r]=(0,Mr.useState)(!1),[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)({width:0,height:0}),d=()=>{o&&r(!0)},m=()=>{r(!1)},c=p=>{let{naturalWidth:u,naturalHeight:f}=p.target;l({width:u,height:f}),i(u>300||f>300)};return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:d,children:(0,Oe.jsx)(Wi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-Oe-full max-h-full"})}),(0,Oe.jsx)(Na,{open:a,onOpenChange:r,children:(0,Oe.jsxs)(Jt,{className:"flex flex-col items-center justify-center",children:[(0,Oe.jsxs)(or,{className:"flex Oe-full justify-end",children:[(0,Oe.jsx)(ir,{className:"hidden",children:t}),(0,Oe.jsx)(Vr,{})]}),(0,Oe.jsx)("div",{className:"flex items-center justify-center",children:(0,Oe.jsx)(Wi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function xl({props:e,baseContext:t}){let{src:a}=e;return a=Zd(a,t),(0,Oe.jsx)(em,{src:a,alt:e.alt})}var yl=v(require("next/link"));function ue({children:e,href:t,openNewTab:a,...r}){return(0,Oe.jsx)(yl.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function tm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ji({icon:e,title:t,description:a,slug:r}){return(0,Oe.jsxs)("article",{className:s(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative Oe-1 block h-full space-Oe-6 overflow-hidden rounded-5 p-6 md:space-Oe-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Oe.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:tm(e)?(0,Oe.jsx)(Ve,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Oe.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,Oe.jsx)(ue,{href:r,children:t}):t})]}),(0,Oe.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,Oe.jsx)(D,{asChild:!0,className:s(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,Oe.jsxs)(ue,{href:r,children:[(0,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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,Oe.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] Oe-full scale-Oe-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Oe-100 group-hover/service:opacity-100"})]})}var Zr=require("react-icons/fa6");function Xi({title:e,description:t,features:a,price:r,duration:o,button:i}){return(0,Oe.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,Oe.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-Oe max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Oe.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Oe.jsx)("p",{children:t})]}),(0,Oe.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Oe.jsxs)("div",{className:"flex flex-col justify-stretch gap-Oe-14 gap-Oe-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Oe.jsx)("ul",{"aria-label":"pricing point list",className:"grid Oe-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Oe.jsx)("span",{className:"text-accent pt-1",children:(0,Oe.jsx)(Zr.FaCircleCheck,{})}),(0,Oe.jsx)("span",{children:n})]},l))}),(0,Oe.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[r&&r,(0,Oe.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),i&&(0,Oe.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Oe.jsx)(D,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Oe.jsxs)(ue,{href:i.href,openNewTab:i.openNewTab,children:[(0,Oe.jsx)("span",{className:"relative Oe-1",children:i.label}),(0,Oe.jsx)("span",{className:"relative Oe-1 pl-2",children:(0,Oe.jsx)(Zr.FaAnglesRight,{})})]})})})]})})]})}var Nl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Oe.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function am({icon:e,title:t,body:a,color:r="secondary"}){return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Oe.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Oe.jsx)("div",{className:"Oe-12 h-12",children:(0,Oe.jsx)(Ve,{type:e.type,iconName:e.name})})}),(0,Oe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Oe-[30%]",children:t}),a&&(0,Oe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Oe-[50%]",children:a})]})})}var Cl=v(require("next/image"));function rm(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,Oe.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Oe.jsx)(Cl.default,{alt:o||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Oe.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Oe.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,Oe.jsxs)("a",{href:t,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,Oe.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var om=(e,t)=>`from-brand-${e} to-brand-${t}`;function im({...e}){let t=om(e.brandFrom||"one",e.brandTo||"two");return(0,Oe.jsxs)("div",{className:`relative isolate flex items-center gap-Oe-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,Oe.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Oe.jsxs)("a",{href:e.url,children:[(0,Oe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Oe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Oe.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Oe.jsx)("span",{children:e.message&&e.message})]}):(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Oe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Oe.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Oe.jsx)("div",{className:"flex flex-1 justify-end"})]})}var cr=v(require("react")),sm={Architecture:(0,Oe.jsx)(Pn.DraftingCompass,{className:"h-5 Oe-5 text-blue-600"}),Engineering:(0,Oe.jsx)(Pn.Code,{className:"h-5 Oe-5 text-green-600"}),Development:(0,Oe.jsx)(Pn.Code,{className:"h-5 Oe-5 text-purple-600"}),Delivery:(0,Oe.jsx)(Pn.GanttChart,{className:"h-5 Oe-5 text-red-600"})},nm=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=e.reports.length>0;return(0,Oe.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Oe.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${o?"bg-card border-primary":"bg-white border-gray-200"}`,children:[i&&(0,Oe.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,Oe.jsx)(Pn.ChevronDown,{className:"h-4 Oe-4"}):(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})}),(0,Oe.jsx)("div",{className:"Oe-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Oe.jsx)(Pn.Users,{className:"h-6 Oe-6 text-gray-500"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Oe.jsxs)("div",{className:"flex items-center mt-1",children:[sm[e.discipline],(0,Oe.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Oe.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Rl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,cr.useState)(t<1),i=()=>o(!r),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),l=c=>n(c)||c.reports.some(l),d=a===""||l(e),m=n(e);return cr.default.useEffect(()=>{a!==""&&l(e)&&o(!0)},[a,e]),d?(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(nm,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:m}),r&&e.reports.map((c,p)=>(0,Oe.jsx)(Rl,{person:c,level:t+1,searchTerm:a},p))]}):null};function lm(){let[e,t]=(0,cr.useState)("");return(0,Oe.jsxs)("div",{className:"max-Oe-5xl mx-auto p-6",children:[(0,Oe.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Oe.jsxs)("div",{className:"mb-4 relative",children:[(0,Oe.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"Oe-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Oe.jsx)(Pn.Search,{className:"absolute right-3 top-2.5 h-5 Oe-5 text-gray-400"})]}),(0,Oe.jsx)("div",{className:"space-Oe-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((r,o)=>(0,Oe.jsx)(Rl,{person:r,level:0,searchTerm:e},o))})]})}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:"A 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:"A 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:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to 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 to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to 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 to leverage Generative AI effectively, providing a competitive edge in the market."],fee:r="\xA3150,000 for delivery of listed outputs"}){return(0,Oe.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{className:"lg:col-span-1 space-Oe-6 flex flex-col",children:[(0,Oe.jsxs)(J,{className:"flex-grow",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.Users,{className:"h-5 Oe-5"}),"Team"]})}),(0,Oe.jsxs)(ne,{className:"p-6",children:[(0,Oe.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Oe.jsxs)("div",{className:"space-Oe-6",children:[(0,Oe.jsx)("div",{className:"space-Oe-2",children:e.leadership.map((o,i)=>(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.User,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:o.role})]}),o.isFTE&&(0,Oe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Oe.jsx)("div",{className:"space-Oe-2",children:e.core.map((o,i)=>(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.User,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:o.role}),o.count&&(0,Oe.jsxs)("span",{children:["(",o.count,"Oe)"]})]}),o.isFTE&&(0,Oe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Oe.jsx)(Pn.Users2,{className:"h-4 Oe-4 text-muted-foreground"}),(0,Oe.jsx)("span",{children:"SME input:"})]}),(0,Oe.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.PoundSterling,{className:"h-5 Oe-5"}),"Fee"]})}),(0,Oe.jsx)(ne,{className:"p-6",children:(0,Oe.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,Oe.jsxs)(J,{className:"lg:col-span-1 flex flex-col",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.FileText,{className:"h-5 Oe-5"}),"Outputs"]})}),(0,Oe.jsxs)(ne,{className:"p-6 flex-grow overflow-auto",children:[(0,Oe.jsx)("ol",{className:"list-decimal list-inside space-Oe-4",children:t.map((o,i)=>(0,Oe.jsxs)("Oe",{className:"text-sm",children:[(0,Oe.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,Oe.jsx)("span",{className:"text-muted-foreground",children:o.description})]},i))}),(0,Oe.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Oe.jsxs)(J,{className:"lg:col-span-1 flex flex-col",children:[(0,Oe.jsx)(be,{className:"bg-primary text-primary-foreground",children:(0,Oe.jsxs)(ve,{className:"flex items-center gap-2",children:[(0,Oe.jsx)(Pn.Lightbulb,{className:"h-5 Oe-5"}),"Benefits"]})}),(0,Oe.jsx)(ne,{className:"p-6 flex-grow overflow-auto",children:(0,Oe.jsx)("ul",{className:"space-Oe-4",children:a.map((o,i)=>(0,Oe.jsxs)("Oe",{className:"flex gap-2 text-sm",children:[(0,Oe.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Oe.jsx)("span",{children:o})]},i))})})]})]})}function dm(){return(0,Oe.jsx)("div",{className:"Oe-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Oe.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Oe.jsxs)("div",{className:"space-Oe-4 bg-primary p-3 rounded-lg",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Oe.jsx)(Pn.BarChart3,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Oe.jsx)("p",{className:"text-secondary text-sm",children:"Oe excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Oe.jsxs)("ul",{className:"text-sm",children:[(0,Oe.jsx)("Oe",{children:"Strategy definition"}),(0,Oe.jsx)("Oe",{children:"Programme leadership"}),(0,Oe.jsx)("Oe",{children:"Detailed planning"}),(0,Oe.jsx)("Oe",{children:"\u2022 Financial control"}),(0,Oe.jsx)("Oe",{children:"\u2022 Rigorous governance"})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Oe.jsx)(Pn.CogIcon,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Oe.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,Oe.jsx)("p",{className:"text-sm",children:"Oe deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Oe.jsx)(Pn.Building2,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Oe.jsx)("p",{className:"text-sky-200 text-sm",children:"Oe understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Oe.jsx)("p",{className:"text-sm",children:"Oe have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Oe.jsxs)("div",{className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-2 relative Oe-10",children:[(0,Oe.jsx)("div",{className:"Oe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Oe.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Oe.jsx)(Pn.BadgeCheck,{className:"Oe-8 h-8"})]}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Oe.jsx)("p",{className:"text-sky-200 text-sm",children:"Oe have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Oe.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Oe have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Yi=({className:e,content:t,style:a})=>(0,Oe.jsx)("div",{className:s("mx-auto my-8 Oe-full",e),children:(0,Oe.jsx)("div",{className:s("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,Oe.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var Ki=v(require("next/link")),tt=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:n,reference:l,size:d,url:m}=e,c=t==="reference"&&typeof(l==null?void 0:l.value)=="object"&&l.value.slug?`${(l==null?void 0:l.relationTo)!=="pages"?`/${l==null?void 0:l.relationTo}`:""}/${l.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Oe.jsxs)(Ki.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]}):(0,Oe.jsx)(D,{asChild:!0,className:o,size:p,variant:a,children:(0,Oe.jsxs)(Ki.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]})})};var mr=({links:e,richText:t})=>(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Oe.jsx)("div",{className:"max-Oe-[48rem] flex items-center",children:t&&(0,Oe.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,Oe.jsx)(tt,{size:"lg",...a},r))})]})});var to=require("prism-react-renderer");function qi({code:e}){let[t,a]=(0,Mr.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Oe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Oe.jsxs)(D,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,Oe.jsx)("p",{children:t}),(0,Oe.jsx)("div",{className:"Oe-6 h-6 dark:invert",children:(0,Oe.jsx)(Pn.ClipboardCopy,{})})]})})}var Tl=({code:e,language:t=""})=>e?(0,Oe.jsx)(to.Highlight,{code:e,language:t,theme:to.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,Oe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Oe-auto",children:[o.map((i,n)=>(0,Oe.jsxs)("div",{...a({className:"table-row",line:i}),children:[(0,Oe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,Oe.jsx)("span",{className:"table-cell pl-4",children:i.map((l,d)=>(0,Oe.jsx)("span",{...r({token:l})},d))})]},n)),(0,Oe.jsx)(qi,{code:e})]})}):null;var Ji=({className:e,code:t,language:a})=>(0,Oe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Oe.jsx)(Tl,{code:t,language:a})});var Dl=v(require("next/image")),mm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Al="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=",Ml=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:n,src:l,loading:d}=e,m,c,p=t,u=l||"";if(!u&&i&&typeof i=="object"){let{alt:g,filename:h,height:P,url:R,width:fe}=i;m=fe,c=P,p=g||"",u=R||Al}let f=d||"lazy",N=n||Object.entries(mm).map(([,g])=>`(max-width: ${g}px) ${g*2}Oe`).join(", ");return(0,Oe.jsx)("picture",{children:(0,Oe.jsx)(Dl.default,{alt:p||"",className:s(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:Al,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:N,src:u,width:a?void 0:m})})};var Il=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ll=()=>{if(Il){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 El=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,Mr.useRef)(null);if((0,Mr.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=a;return(0,Oe.jsx)("video",{autoPlay:!0,className:s(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,Oe.jsx)("source",{src:`${Ll()}/media/${i}`})})}return null};var Nt=e=>{var n;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((n=r==null?void 0:r.mimeType)==null?void 0:n.includes("video"));return(0,Oe.jsx)(a||Mr.Fragment,{...a!==null?{className:t}:{},children:o?(0,Oe.jsx)(El,{...e}):(0,Oe.jsx)(Ml,{...e})})};var Pa=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Oe.jsx)("div",{className:s("",{container:a},t),children:(0,Oe.jsx)(Nt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var rs=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Oe.jsx)("div",{className:s("",{container:a},t),children:(0,Oe.jsx)(Nt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var pr=({title:e,description:t,features:a,id:r})=>(0,Oe.jsxs)("section",{className:s("container Oe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Oe.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,Oe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,Oe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,Oe.jsx)(Z,{content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,i)=>{let n=(0,Oe.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Oe.jsx)("div",{className:"text-accent h-12 Oe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Oe.jsx)("i",{className:`${o.icon.type} fa-${o.icon.icon} fa-4x`})}),(0,Oe.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:o.title}),o.content&&typeof o.content!="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",children:(0,Oe.jsx)(Z,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,Oe.jsx)("a",{href:o.link.url?o.link.url:"#",className:"Oe-underline group",children:n},i):n})})]});var io=v(require("react"));function oo({nodes:e}){return(0,Oe.jsx)(io.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"){let i=(0,Oe.jsx)(io.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,Oe.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,Oe.jsx)("em",{children:i},a)),t.format&4&&(i=(0,Oe.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,Oe.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,Oe.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,Oe.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,Oe.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,Oe.jsx)("table",{children:(0,Oe.jsx)("tbody",{children:t.children.map((i,n)=>(0,Oe.jsx)("tr",{children:i.children.map((l,d)=>(0,Oe.jsx)("td",{children:oo({nodes:l.children})},d))},n))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let n of i.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return oo({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,n=i==null?void 0:i.blockType;if(!i||!n)return null;switch(n){case"cta":return(0,Oe.jsx)(mr,{...i},a);case"mediaBlock":return(0,Oe.jsx)(Pa,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Oe.jsx)(rs,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Oe.jsx)(Yi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,Oe.jsx)(Ji,{className:"col-start-2",...i},a);case"features":return(0,Oe.jsx)(pr,{...i},a);default:return null}}else switch(t.type){case"linebreak":return(0,Oe.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Oe.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let i=t==null?void 0:t.tag;return(0,Oe.jsx)(i,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let i=t==null?void 0:t.tag;return(0,Oe.jsx)(i,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Oe.jsx)("Oe",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:o},a):(0,Oe.jsx)("Oe",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,Oe.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let i=t.fields;return(0,Oe.jsx)(tt,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}case"autolink":{let i=t.fields;return(0,Oe.jsx)(tt,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,Oe.jsx)("div",{className:s({"container ":a,"max-Oe-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&oo({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};var os=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,Oe.jsx)("div",{className:"container my-6",children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-Oe-8 gap-Oe-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:i,link:n,richText:l,size:d}=r;return(0,Oe.jsxs)("div",{className:s(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[l&&(0,Oe.jsx)(Z,{content:l,enableGutter:!1}),i&&(0,Oe.jsx)(tt,{...n})]},o)})})})};var so=v(require("next/image"));function pm({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,Oe.jsxs)("div",{className:"relative Oe-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] Oe-full overflow-hidden",children:(0,Oe.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] Oe-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Oe.jsx)(so.default,{src:e,alt:"Header background",className:"h-full Oe-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Oe.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,Oe.jsx)("div",{className:"h-16 Oe-32 md:h-24 md:Oe-48",children:(0,Oe.jsx)(so.default,{src:r,alt:"Company logo",className:"h-full Oe-full object-contain",width:192,height:96})}),o&&(0,Oe.jsx)("div",{className:"h-10 Oe-20 md:h-12 md:Oe-24",children:(0,Oe.jsx)(so.default,{src:o,alt:"Customer logo",className:"h-full Oe-full object-contain",width:96,height:48})})]}),(0,Oe.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Oe.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Oe.jsx)("h1",{className:"max-Oe-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var zl={content:os,cta:mr,mediaBlock:Pa,imageBlock:Pa,features:pr},is=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Oe.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{let{blockType:i}=r;if(i&&i in zl){let n=zl[i];if(n)return(0,Oe.jsx)("div",{className:"my-6",children:(0,Oe.jsx)(n,{...r})},o)}return null})}):null};var Gl=v(require("clsx"));var Fl=require("next/navigation");function um({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Fl.useRouter)(),o=(0,Mr.useRef)(null),i=(0,Mr.useRef)(null),n=(0,Mr.useRef)(0),l=(0,Mr.useRef)(!1),d=(0,Mr.useRef)(0),m=(0,Mr.useCallback)(p=>{if(p.target){let u=p.target,f=+new Date,N=u==null?void 0:u.closest("a");d.current=p.button,N?l.current=!0:(l.current=!1,n.current=f)}},[r,o,i,n]),c=(0,Mr.useCallback)(p=>{var u,f;if((u=i.current)!=null&&u.href){let g=+new Date-n.current;if((f=i.current)!=null&&f.href&&g<=250&&!l.current&&d.current===0&&!p.ctrlKey)if(e){let h=t?"_blank":"_self";window.open(i.current.href,h)}else r.push(i.current.href,{scroll:a})}},[r,o,i,n]);return(0,Mr.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",c))}},[o,i,r]),{card:{ref:o},link:{ref:i}}}var Ol=um;var _l=v(require("next/link"));var ur=e=>{let{card:t,link:a}=Ol({}),{className:r,doc:o,relationTo:i,showCategories:n,title:l}=e,{slug:d,categories:m,meta:c,title:p}=o||{},{description:u,image:f}=c||{},N=m&&Array.isArray(m)&&m.length>0,g=l||p,h=u==null?void 0:u.replace(/\s/g," "),P=`/${i}/${d}`;return(0,Oe.jsxs)("article",{className:s("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,Oe.jsxs)("div",{className:"relative Oe-full ",children:[!f&&(0,Oe.jsx)("div",{className:"",children:"Pn image"}),f&&typeof f!="string"&&(0,Oe.jsx)(Nt,{resource:f,size:"33vw"})]}),(0,Oe.jsxs)("div",{className:"p-4",children:[n&&N&&(0,Oe.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&N&&(0,Oe.jsx)("div",{children:m==null?void 0:m.map((R,fe)=>{if(typeof R=="object"){let{title:Ae}=R,nt=Ae||"Untitled category",Cr=fe===m.length-1;return(0,Oe.jsxs)(Mr.Fragment,{children:[nt,!Cr&&(0,Oe.jsx)(Mr.Fragment,{children:", \xA0"})]},fe)}return null})})}),g&&(0,Oe.jsx)("div",{className:"prose",children:(0,Oe.jsx)("h3",{children:(0,Oe.jsx)(_l.default,{className:"not-prose",href:P,ref:a.ref,children:g})})}),u&&(0,Oe.jsx)("div",{className:"mt-2",children:u&&(0,Oe.jsx)("p",{children:h})})]})]})};var gm=e=>{let{className:t,docs:a,introContent:r}=e;return(0,Oe.jsxs)("div",{className:(0,Gl.default)("container",t),children:[r&&(0,Oe.jsx)(Z,{content:r,enableGutter:!1}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((o,i)=>typeof o=="string"?null:(0,Oe.jsx)(ur,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var gr=require("framer-motion");var $l=e=>{let[t,a]=(0,Mr.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},n=()=>{a(p=>(p+1)%r.length)},l=()=>{a(p=>(p-1+r.length)%r.length)},m=(0,Mr.useCallback)(((p,u)=>{let f;return(...N)=>{clearTimeout(f),f=setTimeout(()=>p(...N),u)}})(p=>{p.deltaY>0?n():l()},300),[]),c=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&l()};return(0,Mr.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",c)}),[]),(0,Oe.jsxs)("div",{className:"flex h-screen relative",children:[(0,Oe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen Oe-9 Oe-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,u)=>(0,Oe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 Oe-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>i(u),children:(0,Oe.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Oe-1/2 translate-Oe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Oe-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,u)=>(0,Oe.jsx)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,Oe.jsx)(is,{blocks:[p]})},u)),(0,Oe.jsx)("button",{className:"absolute bottom-4 left-1 Oe-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,Oe.jsx)(fm,{})})]})},fm=()=>(0,Oe.jsx)(gr.AnimatePresence,{children:(0,Oe.jsx)(gr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:s("Oe-fit min-h-[50px] min-Oe-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,Oe.jsx)(gr.motion.div,{initial:{Oe:0},animate:{Oe:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:s("Oe-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Vl=v(require("next/link")),Ul=v(require("next/image"));function Wl({blogs:e,width:t=3}){return(0,Oe.jsx)("div",{className:"Oe-full max-Oe-7xl mx-auto px-4 py-8",children:(0,Oe.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,Oe.jsx)(Vl.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,Oe.jsxs)("div",{className:"relative size-full",children:[(0,Oe.jsx)(Ul.default,{src:((o=a.image)==null?void 0:o.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,Oe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,Oe.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(i=>`${i.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Oe.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})]})]})},r)})})})}function jl({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:n,companiesCount:l,dealsClosed:d,leadsGenerated:m}){return(0,Oe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Oe.jsxs)("div",{className:"mx-auto max-Oe-2xl px-6 lg:max-Oe-7xl lg:px-8",children:[(0,Oe.jsxs)("div",{className:"max-Oe-4xl",children:[(0,Oe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Oe.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Oe.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Oe.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Oe-8 lg:gap-Oe-16",children:[(0,Oe.jsxs)("div",{className:"lg:pr-8",children:[(0,Oe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,Oe.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:o})]}),(0,Oe.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Oe.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:i.map((c,p)=>(0,Oe.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Oe.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,Oe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Oe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Oe.jsx)("Oe",{className:"mt-6 border-t border-gray-200"}),(0,Oe.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Oe-8 gap-Oe-4 sm:grid-cols-2",children:[(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 border-Oe border-dotted border-gray-200 pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 border-Oe border-dotted border-gray-200 pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[l,"Oe"]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2 max-sm:border-Oe max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col gap-Oe-2",children:[(0,Oe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Oe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Xl=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,n=o<10?`0${o}`:o,l=a.getFullYear();return`${n}/${i}/${l}`};var lo=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"Zr";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Yl=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"Zr";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function $t({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:n=!1}){let l=s(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,Oe.jsxs)("div",{className:l,children:[e&&(0,Oe.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,Oe.jsx)("h2",{className:s("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,Oe.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,Oe.jsx)(Z,{content:a,enableGutter:!1})]})}function me({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=s("container",t&&"full-width",a&&"Oe-padding",r);return(0,Oe.jsx)("div",{className:o,children:e})}var Sa=(e,t)=>e[t%e.length];var ns=v(require("next/image"));function bm({blogs:e,sectionHeading:t}){return(0,Oe.jsx)("section",{className:s("section-padding-primary overflow-hidden "),children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]",children:t&&(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,Oe.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-Oe-30px",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 md:px-[15px] lg:Oe-1/3",children:(0,Oe.jsx)(Jl,{...a})},r))})]})})}var ql=s("inline-flex items-center gap-2 text-white"),zb=s("text-sm text-white");function Jl({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){return(0,Oe.jsxs)("article",{className:"group/blog relative Oe-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,Oe.jsx)("span",{className:"absolute inset-0 Oe-[2] "}),(0,Oe.jsx)(ns.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
12
12
|
(min-width:768px) 50vw,
|
|
13
13
|
(min-width:1024px) 33vw,
|
|
14
14
|
100vw
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
(min-width:768px) 50vw,
|
|
17
17
|
(min-width:1024px) 33vw,
|
|
18
18
|
100vw
|
|
19
|
-
`,className:s("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,Oe.jsxs)("div",{className:"relative Oe-10 flex h-full flex-1 Oe-full flex-col",children:[o&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"inline-grid Oe-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,Oe.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,Oe.jsx)("span",{className:"block",children:lo(o)})})})}),(0,Oe.jsxs)("div",{className:"mt-auto space-Oe-2 text-white md:space-Oe-5",children:[(0,Oe.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Oe-5 gap-Oe-2",children:(0,Oe.jsx)("p",{className:ql})}),(0,Oe.jsx)("h3",{className:"text-md font-bold Oe-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,Oe.jsx)(ue,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,Oe.jsx)("div",{children:(0,Oe.jsxs)(ue,{href:e,className:s(ql,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaArrowRight,{})})]})})]})]})]})}var vm=e=>{let{posts:t}=e;return(0,Oe.jsx)("div",{className:s("container"),children:(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Oe-4 gap-Oe-4 lg:gap-Oe-8 lg:gap-Oe-8 xl:gap-Oe-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,Oe.jsx)("div",{className:"col-span-4",children:(0,Oe.jsx)(ur,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Zl=v(require("clsx")),ec=v(require("next/image")),hm=e=>{let{loading:t,priority:a,className:r}=e;return(0,Oe.jsx)(ec.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Zl.default)("max-Oe-[9.375rem] Oe-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var xm={plural:"Docs",singular:"Doc"},ym={posts:{plural:"Posts",singular:"Post"}},wm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,l=(o?o-1:1)*(i||1)+1;n&&l>n&&(l=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||ym[a||""]||xm||{};return(0,Oe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Oe results.",typeof n!="undefined"&&n>0&&`Showing ${l}${l>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var ls=v(require("react")),cs=({className:e,...t})=>(0,Oe.jsx)("nav",{"aria-label":"pagination",className:s("mx-auto flex Oe-full justify-center",e),role:"navigation",...t});cs.displayName="Pagination";var ds=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{className:s("flex flex-row items-center gap-1",e),ref:a,...t}));ds.displayName="PaginationContent";var Pt=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{className:s("",e),ref:a,...t}));Pt.displayName="PaginationItem";var sa=({className:e,isActive:t,size:a="icon",...r})=>(0,Oe.jsx)("button",{"aria-current":t?"page":void 0,className:s(Dt({size:a,variant:t?"outline":"ghost"}),e),...r});sa.displayName="PaginationLink";var ms=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to previous page",className:s("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{children:"Previous"})]});ms.displayName="PaginationPrevious";var ps=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to next page",className:s("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Oe.jsx)("span",{children:"Next"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})]});ps.displayName="PaginationNext";var co=({className:e,...t})=>(0,Oe.jsxs)("span",{"aria-hidden":!0,className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Pn.MoreHorizontal,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More pages"})]});co.displayName="PaginationEllipsis";var Nm=e=>{let t=(0,Fl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,l=r-1>1,d=r+1<o;return(0,Oe.jsx)("div",{className:s("my-12",a),children:(0,Oe.jsx)(cs,{children:(0,Oe.jsxs)(ds,{children:[(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ms,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),l&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),n&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ps,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var us=v(require("clsx"));function Pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:l=!1,LinkComponent:d,...m}){let p=d?u=>(0,Oe.jsx)(d,{...u}):n?({href:u,children:f,...N})=>(0,Oe.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...N,children:f}):u=>(0,Oe.jsx)("a",{...u});return(0,Oe.jsxs)(Wt,{...m,variant:"inset",children:[(0,Oe.jsx)(jt,{children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(xe,{children:l?(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)(te,{className:"bg-gray-200 my-2 Oe-full h-7"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 my-2 h-5"})]}):(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,Oe.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),l&&(0,Oe.jsxs)(Mt,{children:[(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"})]}),(0,Oe.jsxs)(Mt,{children:[e&&!l&&e.map((u,f)=>(0,Oe.jsx)(Cm,{subNav:u,pathName:o,Link:p},f)),(0,Oe.jsx)(_e,{className:"mt-auto",children:(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:t&&!l&&t.map(u=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{asChild:!0,size:"sm",children:(0,Oe.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Oe.jsx)(u.icon,{}),(0,Oe.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Oe.jsx)(Xt,{})]})}function Cm({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(l=>{l.url===t&&(o=!0)}),(0,Oe.jsx)(ct,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsx)(_e,{className:"py-0",children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(ct,{asChild:!0,defaultOpen:r.isActive,children:(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,tooltip:r.label,className:(0,us.default)(o&&"font-bold text-accent"),children:(0,Oe.jsxs)(a,{href:r.url,children:[r.icon&&(0,Oe.jsx)(r.icon,{}),(0,Oe.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(Tt,{asChild:!0,children:(0,Oe.jsxs)(Xa,{className:"data-[state=open]:rotate-90",children:[(0,Oe.jsx)(Pn.ChevronRight,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Oe.jsx)(At,{children:(0,Oe.jsx)(It,{children:(n=r.links)==null?void 0:n.map(l=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,className:(0,us.default)(l.url===t&&"font-bold text-accent"),children:(0,Oe.jsx)(a,{href:l.url,children:(0,Oe.jsx)("span",{children:l.label})})})},l.label))})})]}):null]})},r.label)})})})}var ic=v(require("clsx"));var Rm=()=>(0,Oe.jsx)(Ve,{iconName:"github",size:"10x"});function Sm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:l,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let N=c?g=>(0,Oe.jsx)(c,{...g}):m?({item:g,children:h,...P})=>(0,Oe.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...P,children:h}):g=>(0,Oe.jsx)("a",{href:g.href,...g});return(0,Oe.jsxs)(Wt,{side:"right",variant:"inset",...p,children:[(0,Oe.jsxs)(jt,{className:"border-Oe border-sidebar-border",children:[(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{children:(0,Oe.jsxs)(Ge,{onClick:i,children:[(0,Oe.jsx)(Pn.FilePlus,{})," ",(0,Oe.jsx)("span",{children:"Add Document"})]})}),d&&(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{onClick:d,tooltip:"Open in GitHub",children:(0,Oe.jsx)(Rm,{})})})]}),(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:()=>n(),variant:o?"outline":"default",className:(0,ic.default)(o&&"text-accent"),children:[(0,Oe.jsx)(Pn.Edit,{})," ",(0,Oe.jsx)("span",{children:"Edit"})]})}),(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:l,children:[(0,Oe.jsx)(Pn.Printer,{})," ",(0,Oe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(ct,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(mt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Editor Controls",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:a})})]})}),(0,Oe.jsx)(ja,{className:"mx-0"})]}),(0,Oe.jsxs)(Mt,{className:"overflow-auto",children:[r&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(mt,{children:"Related Content"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]}),(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(mt,{children:"Table of Contents"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,Oe.jsx)(ct,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(mt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Related Content",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:e&&Object.keys(e).map(g=>(0,Oe.jsxs)(xe,{children:[(0,Oe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,Oe.jsx)(It,{children:e[g].map(h=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:!1,size:"sm",children:(0,Oe.jsxs)(N,{href:h.url,item:h,className:"flex justify-between items-center Oe-full text-xs",children:[(0,Oe.jsx)("span",{children:h.label}),h.type==="note"&&(0,Oe.jsx)(Pn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Oe.jsx)(Ve,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},g))})})})]})}),t&&!r&&(0,Oe.jsx)(ct,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(mt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Table of Contents",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:t.map(g=>{var h;return(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,children:(0,Oe.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(h=g.items)!=null&&h.length?(0,Oe.jsx)(It,{children:g.items.map(P=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Oe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Oe-full text-xs",children:(0,Oe.jsx)("span",{children:P.title})})})},P.title))}):null]},g.title)})})})})]})})]}),(0,Oe.jsx)(Xt,{})]})}var nc=v(require("next/image"));function km({title:e,members:t}){return(0,Oe.jsx)(J,{className:"mb-6",children:(0,Oe.jsxs)("div",{className:"p-6",children:[(0,Oe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Oe.jsx)(Pn.Users,{className:"Oe-6 h-6 text-accent mr-2"}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Oe.jsx)("div",{className:"space-Oe-4",children:t.map((a,r)=>(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("div",{className:"relative Oe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Oe.jsx)(nc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Oe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var lc=v(require("next/link"));var gs=({links:e,title:t="Related Content"})=>(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:t})}),(0,Oe.jsx)(ne,{children:(0,Oe.jsx)("nav",{className:"flex flex-col space-Oe-2",children:e.map((a,r)=>(0,Oe.jsxs)(lc.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,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},r))})})]});var fs=s("grid h-[45px] Oe-[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 bs({pages:e}){let t=(0,Fl.useSearchParams)(),a=(0,Fl.usePathname)(),{replace:r}=(0,Fl.useRouter)(),{totalPages:o,page:i}=e,[n,l]=(0,Mr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?l(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&l(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,Oe.jsx)("div",{className:"mt-12",children:(0,Oe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,Oe.jsx)(Zr.FaArrowLeft,{})})}),c.map((p,u)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("a",{className:s(fs,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,Oe.jsx)(Zr.FaArrowRight,{})})})]})})}var xv=s("transition-colors duration-400 hover:text-primary ease-in-out");function fr({title:e,links:t}){let a=(0,Fl.useSearchParams)(),r=(0,Fl.usePathname)(),{replace:o}=(0,Fl.useRouter)();function i(n){let l=new URLSearchParams(a);n?l.set("category",n):l.delete("category"),o(`${r}?${l.toString()}`)}return(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:e&&e})}),(0,Oe.jsx)(ne,{children:t&&t.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:Oe-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},l))})})})]})}function hs({types:e}){let[t,a]=(0,Mr.useState)(e&&e[0].href),r=(0,Fl.useSearchParams)(),o=(0,Fl.usePathname)(),{replace:i}=(0,Fl.useRouter)();function n(l){let d=new URLSearchParams(r);l?d.set("type",l):d.delete("type"),a(l),i(`${o}?${d.toString()}`)}return(0,Oe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Oe-auto pb-4 mb-6",children:e&&e.map((l,d)=>(0,Oe.jsx)(D,{variant:l.href===t?"default":"ghost",className:s("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",l.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(l.href),children:l.label},d))})}var uc=v(require("next/image"));var xs=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,Oe.jsx)("div",{className:"container mb-8 Oe-10 relative flex items-end justify-center",children:(0,Oe.jsxs)("div",{className:"text-center",children:[a||r&&(0,Oe.jsx)(Z,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,Oe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(yt,{...o})},i))})]})}),(0,Oe.jsxs)("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&(0,Oe.jsx)(Nt,{fill:!0,imgClassName:"Oe-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)(uc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ys=v(require("next/image"));var Tm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Oe.jsx)("div",{children:(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ws=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 Oe-10",children:[t&&(0,Oe.jsx)(Tm,{media:t}),(0,Oe.jsx)("div",{className:"mx-0 min-Oe-full relative Oe-9",children:(0,Oe.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,Oe.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var Ns=({children:e,richText:t})=>(0,Oe.jsx)("div",{className:"min-Oe-full py-10 bg-muted mt-24",children:(0,Oe.jsx)("div",{className:"container",children:e||t&&(0,Oe.jsx)(Z,{content:t,enableGutter:!1})})});var br=v(require("react"));var gc=v(require("next/image")),Am=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,Oe.jsx)("div",{className:"container Oe-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,Oe.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,Oe.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((l,d)=>{if(typeof l=="object"&&l!==null){let{title:m}=l;return(0,Oe.jsx)(Ft,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,Oe.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,Oe.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Author"}),r.map((l,d)=>{let{name:m}=l,c=d===r.length-1,p=d===r.length-2;return(0,Oe.jsxs)(br.default.Fragment,{children:[m,p&&r.length>2&&(0,Oe.jsx)(br.default.Fragment,{children:", "}),p&&r.length===2&&(0,Oe.jsx)(br.default.Fragment,{children:" "}),!c&&r.length>1&&(0,Oe.jsx)(br.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Oe.jsx)("time",{dateTime:o,children:Xl(o)})]})]})]})}),(0,Oe.jsxs)("div",{className:"min-h-[50vh] max-h-[50vh] select-none",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsx)(gc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,Oe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Oe-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var uo=require("@heroicons/react/20/solid");var fc=v(require("next/image"));function Ps({title:e,breadcrumbItems:t,image:a}){return(0,Oe.jsxs)("section",{className:"-Oe-10 relative flex min-h-[250px] Oe-auto items-end",children:[(0,Oe.jsx)("div",{className:"absolute inset-0 Oe-0",children:a&&(0,Oe.jsx)(fc.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,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"relative Oe-10 flex flex-wrap items-center justify-between gap-Oe-20 gap-Oe-8 text-accent-900 dark:text-white lg:Oe-[40px] pb-5",children:[(0,Oe.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:Oe-1/2",children:e}),t&&t.length>0&&(0,Oe.jsx)(Cs,{breadcrumbItems:t})]})})]})}var Dm={highImpact:xs,lowImpact:Ns,mediumImpact:ws,sectionHero:Ps},Mm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Dm[t];return a?(0,Oe.jsx)(a,{...e}):null};function Cs({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Oe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Oe.jsxs)("ol",{role:"list",className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Oe.jsx)(uo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsx)(uo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Oe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Oe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,Oe.jsx)(Oe.Fragment,{})}var Fe=require("@headlessui/react"),bo=require("@heroicons/react/24/outline");var Im=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,Oe.jsx)("a",{href:r,className:"flex items-center gap-Oe-1 text-sm font-semibold text-foreground group",children:(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute -bottom-1 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]})}):(0,Oe.jsxs)(Fe.Popover,{children:[(0,Oe.jsxs)(Fe.PopoverButton,{className:"flex items-center gap-Oe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute bottom-0 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]}),(0,Oe.jsx)(uo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Oe-5 flex-none text-accent"})]}),(0,Oe.jsxs)(Fe.PopoverPanel,{transition:!0,className:"absolute inset-Oe-0 top-0 -Oe-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Oe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Oe.jsx)("div",{className:"mx-auto grid max-Oe-7xl grid-cols-4 gap-Oe-4 px-6 py-10 lg:px-8 xl:gap-Oe-8 Oe-50",children:t&&t.map(o=>(0,Oe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Oe.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:o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,size:"4x"})}),(0,Oe.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Oe.jsx)("span",{className:"absolute inset-0"})]}),(0,Oe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,Oe.jsx)("div",{className:"bg-gray-50",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"grid grid-cols-3 divide-Oe divide-gray-900/5 border-Oe border-gray-900/5",children:a.map(o=>(0,Oe.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-Oe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,className:"h-5 Oe-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),bc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Oe.jsx)(Ve,{...e,size:a});if("src"in e)return(0,Oe.jsx)("div",{className:s(t,"h-full max-Oe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Oe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},go=Im;var fo=["light","dark","green"];function Lm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Mr.useState)(!1),[i,n]=(0,Mr.useState)(!1),[l,d]=(0,Mr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,Mr.useState)(`${m}.${c}`),f=g=>{fo.includes(g)?u(g==="light"?`${m}.${c}`:`${m}-${g}.${c}`):u(`${m}.${c}`)};(0,Mr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let N=()=>{let g=fo[(fo.indexOf(l)+1)%fo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,Oe.jsxs)("header",{className:"relative isolate Oe-10 bg-background h-14",children:[(0,Oe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Oe.jsx)("div",{className:"flex lg:flex-1",children:(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:e}),(0,Oe.jsx)("img",{alt:e,src:p,className:"h-9 Oe-auto"})]})}),(0,Oe.jsx)("div",{className:"flex lg:hidden",children:(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:a.map(g=>(0,Oe.jsx)(go,{...g},g.name))}),(0,Oe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Oe.jsx)("button",{onClick:N,className:"p-2 text-gray-700 outline-none",children:l==="dark"?(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"}):l==="green"?(0,Oe.jsx)(uo.MoonIcon,{className:"h-6 Oe-6"}):(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"})})})]}),(0,Oe.jsxs)(Fe.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white px-6 py-6 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Oe.jsx)("img",{alt:e,src:t,className:"h-8 Oe-auto"})]}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 py-6",children:a.map(g=>(0,Oe.jsx)(Em,{...g},g.name))})})})]})]})]})}function Em({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:o.name},o.name))})]})}var wc=v(require("next/image"));var Rs=v(require("next/image"));function Vt({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Oe.jsxs)(ue,{href:"/",className:s(a?"py-1":"py-2"),children:[(0,Oe.jsx)(Rs.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,Oe.jsx)(Rs.default,{className:"logo-dark 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}})]})}var hc=require("next-themes");function xr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,hc.useTheme)();(0,Mr.useEffect)(()=>{l(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];l(u),c(u)};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)("header",{className:`Oe-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:(0,Oe.jsx)(me,{className:"px-0",children:(0,Oe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-Oe-xl",children:(0,Oe.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-Oe-xl border border-t-0 border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:a,logoLight:t}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:r&&r.map(u=>(0,Oe.jsx)(go,{...u},u.name))}),(0,Oe.jsx)("div",{className:"flex items-center space-Oe-4",children:(0,Oe.jsx)("button",{className:"fixed right-4 Oe-[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:p,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-6 Oe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-6 Oe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ss=["light","dark"];function yr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Mr.useState)(!1),{theme:n,setTheme:l}=(0,hc.useTheme)(),[d,m]=(0,Mr.useState)(!1),[c,p]=(0,Mr.useState)("light");(0,Mr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Mr.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let f=Ss[(Ss.indexOf(c)+1)%Ss.length];p(f),l(f)};return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("header",{className:`Oe-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:[(0,Oe.jsx)("nav",{className:s("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Oe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-Oe dark:border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Oe-[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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-4 Oe-4"})]}),(0,Oe.jsx)("button",{className:"fixed right-16 Oe-[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",onClick:u,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-4 Oe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-4 Oe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Oe.jsxs)(Fe.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white dark:bg-[#212124] px-2 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 px-2 py-6",children:a&&a.map(f=>(0,Oe.jsx)(Bm,{...f},f.name))})})})]})]})]})})}function Bm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function Hm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsxs)("div",{className:"relative h-screen",children:[(0,Oe.jsxs)("div",{className:"absolute inset-0 Oe-full h-screen overflow-hidden",children:[(0,Oe.jsxs)("video",{className:"object-cover Oe-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Oe.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Oe.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,Oe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 Oe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,Oe.jsx)(Pn.Menu,{className:"Oe-6 h-6 text-white"})}),(0,Oe.jsxs)("div",{className:"fixed top-0 left-0 right-0 Oe-50",children:[(0,Oe.jsx)(xr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,Oe.jsxs)("div",{className:"absolute inset-0 h-full Oe-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Oe.jsx)(wc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:s("absolute top-2.5 h-auto Oe-auto mt-8 hidden lg:block",d&&"lg:hidden")}),(0,Oe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Oe.jsx)("h1",{className:"text-6xl font-bold Oe-auto mb-12",children:o&&o}),(0,Oe.jsx)("div",{className:"text-3xl mb-8 max-Oe-2xl",children:i&&i})]}),(0,Oe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Oe-full mb-8",children:(0,Oe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Oe.jsx)(Pn.ChevronDown,{size:64})})})]})]})}var Nc=v(require("next/image"));var zm=s("text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 block px-4"),ks=s("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ts=s("Oe-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"),As=s("flex items-center gap-5"),wo=s("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Fm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:l,footerBottom:d}=t;return(0,Oe.jsxs)("footer",{className:s("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Oe.jsx)("div",{className:"py-16 md:py-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)(Vt,{logoLight:a,logoDark:r}),(0,Oe.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Oe rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":m.href,className:zm,href:m.href,openNewTab:!0,children:(0,Oe.jsx)("span",{children:m.icon})})},c))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Oe.jsx)("h3",{className:ks,children:i.title}),i.links&&i.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,Oe.jsxs)("Oe",{className:"flex items-center gap-2.5",children:[(0,Oe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Oe.jsx)(Zr.FaChevronRight,{})}),(0,Oe.jsx)(ue,{href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})]},m.label))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Oe.jsx)("h3",{className:ks,children:n.title}),(0,Oe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPaperPlane,{})}),(0,Oe.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Oe.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,Oe.jsx)("a",{href:`mailto:${m}`,className:wo,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPhone,{})}),(0,Oe.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,Oe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:wo,children:m},c))})]})]})]}),l&&(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Oe.jsx)("h3",{className:ks,children:l.title}),l.blogs&&l.blogs.length>0&&(0,Oe.jsx)("div",{className:"grid gap-6",children:l.blogs.map((m,c)=>(0,Oe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Oe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Oe.jsx)(Nc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaCalendarDays,{})}),(0,Oe.jsx)("span",{children:Yl(m.date)})]}),(0,Oe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Oe.jsx)(ue,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,Oe.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,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Oe-8 gap-Oe-4 md:gap-Oe-10",children:[(0,Oe.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Oe.jsx)("ul",{className:"flex flex-wrap items-center gap-Oe-4 md:gap-Oe-7",children:d.links.map(m=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})},m.label))})})]})})})]})}function Om({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,Oe.jsxs)("div",{className:s("fixed top-0 left-0 right-0 Oe-50",o),children:[(0,Oe.jsx)(xr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function _m({children:e,...t}){return(0,Oe.jsx)(hc.ThemeProvider,{...t,children:e})}var ca=require("sonner");function Ds({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Mr.useState)([]),i=(0,Fl.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},l=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])};return(0,$.jsxs)("div",{className:"space-Oe-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,$.jsxs)("div",{className:"space-Oe-2",children:[(0,$.jsx)(D,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,$.jsx)(D,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,$.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,$.jsxs)("ul",{className:"divide-Oe divide-gray-200",children:[(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,$.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,$.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>l(c.id),className:"border-accent"}),(0,$.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,$.jsxs)(gt,{className:"h-10 Oe-10",children:[(0,$.jsx)(ft,{src:c.userImage,alt:c.userName}),(0,$.jsx)(bt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,$.jsx)("div",{className:"ml-3",children:(0,$.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,$.jsxs)("div",{className:"flex items-center space-Oe-2",children:[(0,$.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,$.jsx)(Ft,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,$.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Ms=require("date-fns"),Gm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,Oe.jsx)("div",{className:"flex space-Oe-2",children:e.map((o,i)=>(0,Oe.jsx)(D,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function Ls({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Mr.useState)(void 0),[o,i]=(0,Mr.useState)(void 0),[n,l]=(0,Mr.useState)("Full Day"),[d,m]=(0,Mr.useState)(!1),c=(0,Fl.useRouter)();(0,Mr.useEffect)(()=>{m(a!==o||!a||!o),d&&l("Full Day")},[a,o]);let p=f=>{l(f)};return(0,Oe.jsxs)("div",{className:"max-Oe-2xl",children:[(0,Oe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Oe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Oe.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){ca.toast.error("Please select both start and end dates");return}let N=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(N=.5),N>e){ca.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",o.toISOString()),g.append("leaveType",n),g.append("duration",N.toString());let h=await(t||$m)(g);h.success?(ca.toast.success(h.message),r(void 0),i(void 0),l("Full Day"),c.refresh()):ca.toast.error(`Error: ${h.message}`)},className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"startDate",children:"Start Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),a?(0,Ms.format)(a,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"endDate",children:"End Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),o?(0,Ms.format)(o,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-2",children:[(0,Oe.jsx)(qt,{children:"Leave Type"}),(0,Oe.jsx)(Gm,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,Oe.jsx)(D,{type:"submit",className:"Oe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Oe.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var $m=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Tc(...e){return e.filter(Boolean).join(" ")}function Es({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Oe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Oe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Oe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Oe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:l,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})]}),(0,Oe.jsx)("div",{className:"mt-8 flow-root",children:(0,Oe.jsx)("div",{className:"-mx-4 -my-2 overflow-Oe-auto sm:-mx-6 lg:-mx-8",children:(0,Oe.jsx)("div",{className:"inline-block min-Oe-full py-2 align-middle",children:(0,Oe.jsxs)("table",{className:"min-Oe-full border-separate border-spacing-0",children:[(0,Oe.jsx)("thead",{children:(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((d,m)=>(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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",children:m+1},m))]})}),(0,Oe.jsx)("tbody",{children:r.map((d,m)=>(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsxs)(gt,{className:"h-11 Oe-11",children:[(0,Oe.jsx)(ft,{src:d.image,alt:d.name}),(0,Oe.jsx)(bt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,Oe.jsx)("div",{className:"ml-4",children:(0,Oe.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(N=>N.userId===d.id&&new Date(N.startDate)<=u&&new Date(N.endDate)>=u);return(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Oe.jsx)("div",{className:`h-6 Oe-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,Oe.jsx)("div",{className:`h-3 Oe-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Bs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Mr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=u&&new Date(f.endDate)>=u)}}),l=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Oe.jsxs)("header",{className:"flex items-center justify-between border-Oe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Oe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Oe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Oe.jsx)("div",{className:"flex items-center",children:(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})})]}),(0,Oe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Oe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Oe"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Oe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Oe.jsx)("div",{className:"hidden Oe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,Oe.jsxs)("div",{className:s(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("flex h-6 Oe-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,Oe.jsx)("ol",{className:"mt-2 space-Oe-1",children:c.holidays.map(p=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,Oe.jsx)("div",{className:"isolate grid Oe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,Oe.jsxs)("button",{type:"button",className:s(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Oe-10"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("ml-auto",c.date===r&&c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,Oe.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,Oe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,Oe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Oe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Ut=require("lucide-react");function Dc(...e){return e.filter(Boolean).join(" ")}function Vm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:l}){let[d,m]=(0,Mr.useState)("Calendar View"),c=(0,Fl.useRouter)(),p=!1,u=(0,Ms.parseISO)(a),f=async g=>{let h=(0,Ms.format)(g,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",h),c.push(P.toString()),{success:!0}};if(p)return(0,Oe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Oe.jsx)("div",{className:"animate-spin rounded-full h-32 Oe-32 border-t-2 border-Oe-2 border-gray-900"})});let N=[{name:"Grid View",icon:Ut.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Ut.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Ut.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Ut.CheckSquare,current:d==="Approve Leave"}];return(0,Oe.jsxs)("div",{className:"container mx-auto p-4",children:[(0,Oe.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,Oe.jsxs)("div",{className:"mb-8",children:[(0,Oe.jsxs)("div",{className:"sm:hidden",children:[(0,Oe.jsx)("select",{value:d,onChange:g=>m(g.target.value),className:"block Oe-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:N.map(g=>(0,Oe.jsx)("option",{children:g.name},g.name))}),(0,Oe.jsx)(Pn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Oe-5 text-gray-400","aria-hidden":"true"})]}),(0,Oe.jsx)("div",{className:"hidden sm:block",children:(0,Oe.jsx)("div",{className:"border-Oe border-gray-200",children:(0,Oe.jsx)("nav",{className:"-mb-px flex space-Oe-8","aria-label":"Tabs",children:N.map(g=>(0,Oe.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:Dc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Oe-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,Oe.jsx)(g.icon,{className:Dc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Oe-5"),"aria-hidden":"true"}),(0,Oe.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,Oe.jsx)(Es,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,Oe.jsx)(Bs,{currentDate:u,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,Oe.jsx)(Ls,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Oe.jsx)(Ds,{leaveRequests:r,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>l?l(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Um({services:e,className:t}){return(0,Oe.jsx)("section",{id:"next-section",className:s("section-padding-primary",t),children:(0,Oe.jsx)(me,{className:"py-8",children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"flex flex-wrap justify-center gap-Oe-8",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 lg:Oe-1/3",children:(0,Oe.jsx)(ji,{...a})},r))})})})}function Wm({sectionHeading:e,cards:t}){return(0,Oe.jsx)("section",{className:"section-padding-primary !Oe-0",children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Oe.jsx)("div",{className:"grid gap-30px",children:t.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"py-2",children:(0,Oe.jsx)(Xi,{...a})},r))})]})})}var Ba=v(require("next/image"));function jm(e){let{images:t,sectionHeading:a,keyPoints:r,description:o}=e;return(0,Oe.jsx)("section",{id:"about-section",className:s("section-padding-primary",e.className||""),children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Oe.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Oe.jsx)($t,{...a}),r&&r.length>0&&(0,Oe.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:r.map((i,n)=>(0,Oe.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,Oe.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:i.icon}),(0,Oe.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:i.title})]},n))}),o&&(0,Oe.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:o})]}),t&&(0,Oe.jsx)("div",{className:"mx-auto text-center",children:(0,Oe.jsxs)("div",{className:"relative mx-auto grid max-Oe-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative flex justify-end overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative Oe-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)("span",{className:"absolute -left-2.5 -top-2.5 -Oe-1 h-full Oe-full rounded-tl-[60px] bg-primary-light"}),(0,Oe.jsx)("div",{className:"relative Oe-[4] overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),(0,Oe.jsx)(Ba.default,{src:t.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] Oe-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),(0,Oe.jsx)("div",{className:"flex overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,Oe.jsx)("div",{className:"ml-auto flex max-Oe-[250px] justify-end overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,Oe.jsx)("div",{className:"overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,Oe.jsx)("div",{className:"absolute left-1/2 top-1/2 Oe-[4] -translate-Oe-1/2 -translate-Oe-1/2 overflow-hidden",children:(0,Oe.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Oe.jsx)("span",{className:"grid h-[100px] Oe-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ec=v(require("next/image"));function Bc({blogs:e}){return(0,Oe.jsx)("div",{children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,Oe.jsx)(Xm,{post:t,id:a},a))})})}var Xm=({post:e,id:t})=>{let{slug:a,image:r,authors:o,categories:i,title:n,description:l,publishedAt:d}=e;return(0,Oe.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Oe.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:Oe-64 lg:shrink-0",children:[r&&(0,Oe.jsx)(Ec.default,{src:r.src,alt:r.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Oe.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-Oe-4 text-xs",children:[(0,Oe.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:lo(e.publishedAt)}),e.categories&&e.categories.map((m,c)=>(0,Oe.jsx)("a",{href:`#${m}`,className:"relative Oe-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},c))]}),(0,Oe.jsxs)("div",{className:"group relative max-Oe-xl",children:[(0,Oe.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Oe.jsxs)("a",{href:e.slug,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Oe.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Oe.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Oe-2 border-gray-200 dark:border-gray-700 Oe-6",children:o&&o.map((m,c)=>(0,Oe.jsxs)("div",{className:"relative flex items-center gap-Oe-4",children:[m.image?(0,Oe.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Oe.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Oe.jsx)("div",{className:"text-sm/6",children:(0,Oe.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function Ym({blogs:e,pages:t,categories:a,types:r}){return(0,Oe.jsx)("section",{children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsxs)("div",{children:[r&&(0,Oe.jsx)(hs,{types:r}),(0,Oe.jsx)(Bc,{blogs:e}),(0,Oe.jsx)(bs,{pages:t})]}),(0,Oe.jsx)("div",{className:"grid gap-30px Oe-full self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:(0,Oe.jsx)("div",{className:"lg:-mt-24 Oe-full",children:a&&a.links&&(0,Oe.jsx)(fr,{links:a.links,title:a.title})})})]})})})}var Gc=v(require("next/image"));var Ro="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function So({className:e}){return s("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] Oe-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Km({className:e,...t}){return(0,Oe.jsx)("input",{...t,className:So({className:e})})}function ko({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(Km,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-1/2 Oe-[14px] -translate-Oe-1/2 text-accent",children:e})]})}function qm({className:e,...t}){return(0,Oe.jsx)("textarea",{...t,className:s(So({}),"resize-none md:min-h-[130px]",e)})}function Hc({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(qm,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-[18px] Oe-[14px] text-accent",children:e})]})}var Fc=require("formik"),pa=v(require("yup"));async function zc(e){let{name:t,email:a,subject:r,message:o}=e,i=process.env.TEAMS_WEBHOOK_URL;if(!i)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0}]}]},{type:"TextBlock",text:`${o}`,wrap:!0}]}}]};try{let l=await fetch(i,{method:"POST",mode:"Oe-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var et={tooShort:"Must be Oe least ${min} characters",tooLong:"Must be Oe most ${max} characters",required:"This field is required",email:"Invalid email format"},Qm=pa.object().shape({name:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),email:pa.string().email(et.email).required(et.required),subject:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),message:pa.string().min(2,et.tooShort).max(300,et.tooLong).required(et.required)}),To=s("!pr-[44px]"),Ao=s("!border-red-600 border"),Do=s("sr-only");function _c(){return(0,Oe.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Qm,onSubmit:async(e,{resetForm:t})=>{let a=await zc(e);a.data===null?ca.toast.error(a.message):(ca.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:r,handleBlur:o,isSubmitting:i,handleSubmit:n})=>(0,Oe.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 Oe-2 lg:grid-cols-2",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zr.FaUser,{}),className:s(To,e.name&&t.name&&Ao)}),e.name&&t.name&&(0,Oe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Do,children:e.name})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Jm,{}),className:s(To,e.email&&t.email&&Ao)}),e.email&&t.email&&(0,Oe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Do,children:e.email})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(ko,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:r,onBlur:o,disabled:i,className:s(To,e.subject&&t.subject&&Ao)}),e.subject&&t.subject&&(0,Oe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Do,children:e.subject})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(Hc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zm,{}),className:s(To,e.message&&t.message&&Ao)}),e.message&&t.message&&(0,Oe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Do,children:e.message})]}),(0,Oe.jsx)("div",{className:"lg:col-span-2",children:(0,Oe.jsx)(D,{type:"submit",className:"Oe-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:i,children:(0,Oe.jsx)("span",{children:"SEND"})})})]})})}function Jm(){return(0,Oe.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Zm(){return(0,Oe.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function ep(e){let{sectionHeading:t,image:a}=e;return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-2xl space-Oe-16 divide-Oe divide-gray-100 lg:mx-0 lg:max-Oe-none",children:(0,Oe.jsxs)("div",{className:"grid grid-cols-1 gap-10 Oe-16 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,Oe.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Oe have multiple locations across the UK where Oe are based. These are our key locations."})]}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((r,o)=>{var i;return(0,Oe.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Oe.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:r.title}),(0,Oe.jsxs)("address",{className:"mt-3 space-Oe-1 text-sm/6 not-italic text-foreground",children:[(i=r.location.split(","))==null?void 0:i.map((n,l)=>(0,Oe.jsx)("p",{children:n},l))," ",r.mails&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,Oe.jsx)("span",{children:r.mails[0]})]}),r.phoneNumbers&&r.phoneNumbers.length>0&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),r.phoneNumbers[0]]})]})]},o)})})]})})})})}),(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsxs)("div",{className:"relative py-[60px]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 Oe-1 h-full Oe-full overflow-hidden bg-red-500 md:Oe-[56%] md:rounded-r-5",children:(0,Oe.jsx)(Gc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ro})}),(0,Oe.jsx)(me,{children:(0,Oe.jsx)("div",{className:"ml-auto md:Oe-1/2",children:(0,Oe.jsxs)("div",{className:"relative Oe-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Oe.jsx)("div",{className:"mb-30px",children:(0,Oe.jsx)($t,{...t,invert:!0})}),(0,Oe.jsx)(_c,{})]})})})]})})]})}var $c=v(require("next/image"));var Uc=v(require("next/link"));function tp({image:e,name:t,about:a,socialLinks:r}){return!e||!e.src||e.src.length<3||!t?null:(0,Oe.jsx)("div",{className:"mt-1 Oe-10 px-0 Oe-0 lg:px-10",children:(0,Oe.jsx)(J,{children:(0,Oe.jsxs)(ne,{children:[e&&e.src&&(0,Oe.jsx)($c.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ro,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Oe.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Oe.jsx)("p",{children:a}),r&&r.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex items-center divide-Oe divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:r.map((o,i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{href:o.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 hover:text-accents",children:(0,Oe.jsx)("span",{children:o.icon})})},i))})})]})})})}function ap({page:e,categoryList:t,edit:a=!1,path:r="/admin/collections/posts/"}){var u;if(!e)return(0,Fl.notFound)();let{meta:o,populatedAuthors:i,authors:n,categories:l,content:d,title:m}=e,c={image:{src:o&&o.image&&o.image.url||void 0,alt:o&&o.image&&o.image.alt||void 0},authorName:((u=i==null?void 0:i[0])==null?void 0:u.name)||"",category:l,commentCount:0,title:m,description:(o==null?void 0:o.description)||""},p=n==null?void 0:n.map(f=>{var N,g;return{name:f.name||"",about:"",image:{src:f.profilePicture&&((g=(N=f.profilePicture.sizes)==null?void 0:N.square)==null?void 0:g.url)||"",alt:f.name||"blog author"},socialLinks:[]}});return(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Oe.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Oe.jsx)(Z,{content:d,enableGutter:!1})]})}),(0,Oe.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:[a&&(0,Oe.jsx)("div",{className:"mt-4 lg:-mt-10 Oe-10 px-0 Oe-0 lg:px-10",children:(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(ne,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Oe.jsx)(Uc.default,{href:`${r}${e.id}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((f,N)=>(0,Oe.jsx)(tp,{...f},N)),t&&t.links&&(0,Oe.jsx)("div",{className:"mt-4 px-0 Oe-0 lg:px-10",children:(0,Oe.jsx)(fr,{links:t.links,title:t.title})})]})]})})}var zs=v(require("next/link"));var rp=({children:e,pageId:t,tableOfContents:a=[],edit:r=!0,path:o="/admin/collections/pages/",relatedContent:i=[{title:"Related Content",links:[]}]})=>{let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(""),c=(0,Fl.usePathname)(),p=()=>{l(!n)},u=h=>{switch(h){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},f=(h,P)=>{h.preventDefault();let R=document.getElementById(P);if(R){let Ae=R.offsetTop+-100,st=document.querySelector(".container")||window;st===window?window.scrollTo({top:Ae,behavior:"smooth"}):st.scrollTo({top:Ae,behavior:"smooth"}),m(P)}else console.error(`Element with ID "${P}" not found.`)},N=()=>{let P="/print/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()},g=()=>{let P="/present/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()};return(0,Mr.useEffect)(()=>{let h=window.location.hash;if(h){let P=h.substring(1),R=document.getElementById(P);if(R){let Ae=R.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:Ae,behavior:"smooth"})}}},[window.location.hash]),(0,Oe.jsxs)("div",{className:"container py-8",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-8",children:[(0,Oe.jsx)("div",{className:s(n?"col-span-2":"col-span-3","xl:col-span-3"),children:e}),(0,Oe.jsxs)("div",{className:s("space-Oe-6 transform min-Oe-full transition-transform duration-300","col-span-4 md:col-span-1 translate-Oe-0 xl:-mt-20",n?"translate-Oe-0":"md:translate-Oe-full","xl:block xl:col-span-1 xl:translate-Oe-0"),children:[r&&(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(ne,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Contribute or create new content."}),(0,Oe.jsx)(zs.default,{href:`${o}${t}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit Page"})}),(0,Oe.jsx)(zs.default,{href:"/admin/collections/pages/create",children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full mt-2 text-accent hover:text-foreground",children:"Create New"})}),(0,Oe.jsxs)("div",{className:"flex space-Oe-2 mt-4",children:[(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:N,children:[(0,Oe.jsx)(Pn.Printer,{className:"mr-2"})," Print"]}),(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:g,children:[(0,Oe.jsx)(Pn.Presentation,{className:"mr-2"})," Present"]})]})]})]}),i&&i.length>0&&i.map((h,P)=>h.links&&h.links.length>0&&(0,Oe.jsx)(gs,{...h},P)),a.length>3&&(0,Oe.jsxs)(J,{className:"Oe-full max-Oe-sm mt-4",children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Oe this page"})}),(0,Oe.jsx)(ne,{children:(0,Oe.jsx)("ul",{className:"space-Oe-2",children:a.map((h,P)=>(0,Oe.jsx)("Oe",{className:u(h.tag),children:(0,Oe.jsx)("a",{href:`#${h.id}`,className:`text-xs ${d===h.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:h.text})},P))})})]})]}),(0,Oe.jsx)("button",{onClick:p,className:s("fixed top-1/2 right-0 Oe-50 h-16 Oe-8 bg-accent text-accent-foreground rounded-l-full transform -translate-Oe-1/2 flex items-center justify-center","hidden md:block xl:hidden"),children:"\u22EE"})]}),(0,Oe.jsx)("div",{className:"block md:hidden mt-8",children:(0,Oe.jsx)("div",{className:"space-Oe-6",children:e})})]})};0&&(module.exports={AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,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,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,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,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,Oe,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
19
|
+
`,className:s("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,Oe.jsxs)("div",{className:"relative Oe-10 flex h-full flex-1 Oe-full flex-col",children:[o&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"inline-grid Oe-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,Oe.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,Oe.jsx)("span",{className:"block",children:lo(o)})})})}),(0,Oe.jsxs)("div",{className:"mt-auto space-Oe-2 text-white md:space-Oe-5",children:[(0,Oe.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Oe-5 gap-Oe-2",children:(0,Oe.jsx)("p",{className:ql})}),(0,Oe.jsx)("h3",{className:"text-md font-bold Oe-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,Oe.jsx)(ue,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,Oe.jsx)("div",{children:(0,Oe.jsxs)(ue,{href:e,className:s(ql,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Oe.jsx)("span",{children:"Read More"}),(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaArrowRight,{})})]})})]})]})]})}var vm=e=>{let{posts:t}=e;return(0,Oe.jsx)("div",{className:s("container"),children:(0,Oe.jsx)("div",{children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Oe-4 gap-Oe-4 lg:gap-Oe-8 lg:gap-Oe-8 xl:gap-Oe-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,Oe.jsx)("div",{className:"col-span-4",children:(0,Oe.jsx)(ur,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Zl=v(require("clsx")),ec=v(require("next/image")),hm=e=>{let{loading:t,priority:a,className:r}=e;return(0,Oe.jsx)(ec.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Zl.default)("max-Oe-[9.375rem] Oe-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var xm={plural:"Docs",singular:"Doc"},ym={posts:{plural:"Posts",singular:"Post"}},wm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,l=(o?o-1:1)*(i||1)+1;n&&l>n&&(l=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||ym[a||""]||xm||{};return(0,Oe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Oe results.",typeof n!="undefined"&&n>0&&`Showing ${l}${l>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var ls=v(require("react")),cs=({className:e,...t})=>(0,Oe.jsx)("nav",{"aria-label":"pagination",className:s("mx-auto flex Oe-full justify-center",e),role:"navigation",...t});cs.displayName="Pagination";var ds=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("ul",{className:s("flex flex-row items-center gap-1",e),ref:a,...t}));ds.displayName="PaginationContent";var Pt=ls.forwardRef(({className:e,...t},a)=>(0,Oe.jsx)("Oe",{className:s("",e),ref:a,...t}));Pt.displayName="PaginationItem";var sa=({className:e,isActive:t,size:a="icon",...r})=>(0,Oe.jsx)("button",{"aria-current":t?"page":void 0,className:s(Dt({size:a,variant:t?"outline":"ghost"}),e),...r});sa.displayName="PaginationLink";var ms=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to previous page",className:s("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{children:"Previous"})]});ms.displayName="PaginationPrevious";var ps=({className:e,...t})=>(0,Oe.jsxs)(sa,{"aria-label":"Go to next page",className:s("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Oe.jsx)("span",{children:"Next"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-4 Oe-4"})]});ps.displayName="PaginationNext";var co=({className:e,...t})=>(0,Oe.jsxs)("span",{"aria-hidden":!0,className:s("flex h-9 Oe-9 items-center justify-center",e),...t,children:[(0,Oe.jsx)(Pn.MoreHorizontal,{className:"h-4 Oe-4"}),(0,Oe.jsx)("span",{className:"sr-only",children:"More pages"})]});co.displayName="PaginationEllipsis";var Nm=e=>{let t=(0,Fl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,l=r-1>1,d=r+1<o;return(0,Oe.jsx)("div",{className:s("my-12",a),children:(0,Oe.jsx)(cs,{children:(0,Oe.jsxs)(ds,{children:[(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ms,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),l&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),n&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(sa,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(co,{})}),(0,Oe.jsx)(Pt,{children:(0,Oe.jsx)(ps,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var us=v(require("clsx"));function Pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:l=!1,LinkComponent:d,...m}){let p=d?u=>(0,Oe.jsx)(d,{...u}):n?({href:u,children:f,...N})=>(0,Oe.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...N,children:f}):u=>(0,Oe.jsx)("a",{...u});return(0,Oe.jsxs)(Wt,{...m,variant:"inset",children:[(0,Oe.jsx)(jt,{children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(xe,{children:l?(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)(te,{className:"bg-gray-200 my-2 Oe-full h-7"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 my-2 h-5"})]}):(0,Oe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Oe.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,Oe.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),l&&(0,Oe.jsxs)(Mt,{children:[(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"}),(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-3/4 h-5"})]}),(0,Oe.jsxs)(Mt,{children:[e&&!l&&e.map((u,f)=>(0,Oe.jsx)(Cm,{subNav:u,pathName:o,Link:p},f)),(0,Oe.jsx)(_e,{className:"mt-auto",children:(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:t&&!l&&t.map(u=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{asChild:!0,size:"sm",children:(0,Oe.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Oe.jsx)(u.icon,{}),(0,Oe.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Oe.jsx)(Xt,{})]})}function Cm({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(l=>{l.url===t&&(o=!0)}),(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsx)(_e,{className:"py-0",children:(0,Oe.jsx)(De,{children:(0,Oe.jsx)(dt,{asChild:!0,defaultOpen:r.isActive,children:(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,tooltip:r.label,className:(0,us.default)(o&&"font-bold text-accent"),children:(0,Oe.jsxs)(a,{href:r.url,children:[r.icon&&(0,Oe.jsx)(r.icon,{}),(0,Oe.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(Tt,{asChild:!0,children:(0,Oe.jsxs)(Xa,{className:"data-[state=open]:rotate-90",children:[(0,Oe.jsx)(Pn.ChevronRight,{}),(0,Oe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Oe.jsx)(At,{children:(0,Oe.jsx)(It,{children:(n=r.links)==null?void 0:n.map(l=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,className:(0,us.default)(l.url===t&&"font-bold text-accent"),children:(0,Oe.jsx)(a,{href:l.url,children:(0,Oe.jsx)("span",{children:l.label})})})},l.label))})})]}):null]})},r.label)})})})}var ic=v(require("clsx"));var Rm=()=>(0,Oe.jsx)(Ve,{iconName:"github",size:"10x"});function Sm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:l,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let N=c?g=>(0,Oe.jsx)(c,{...g}):m?({item:g,children:h,...P})=>(0,Oe.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start Oe-full text-sm text-left px-4 py-2",...P,children:h}):g=>(0,Oe.jsx)("a",{href:g.href,...g});return(0,Oe.jsxs)(Wt,{side:"right",variant:"inset",...p,children:[(0,Oe.jsxs)(jt,{className:"border-Oe border-sidebar-border",children:[(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{children:(0,Oe.jsxs)(Ge,{onClick:i,children:[(0,Oe.jsx)(Pn.FilePlus,{})," ",(0,Oe.jsx)("span",{children:"Add Document"})]})}),d&&(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(Ge,{onClick:d,tooltip:"Open in GitHub",children:(0,Oe.jsx)(Rm,{})})})]}),(0,Oe.jsxs)(De,{className:"flex-row space-Oe-1",children:[(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:()=>n(),variant:o?"outline":"default",className:(0,ic.default)(o&&"text-accent"),children:[(0,Oe.jsx)(Pn.Edit,{})," ",(0,Oe.jsx)("span",{children:"Edit"})]})}),(0,Oe.jsx)(xe,{className:"Oe-5/12",children:(0,Oe.jsxs)(Ge,{onClick:l,children:[(0,Oe.jsx)(Pn.Printer,{})," ",(0,Oe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Editor Controls",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:a})})]})}),(0,Oe.jsx)(ja,{className:"mx-0"})]}),(0,Oe.jsxs)(Mt,{className:"overflow-auto",children:[r&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Related Content"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]}),(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{children:"Table of Contents"}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(De,{children:Array.from({length:3}).map((g,h)=>(0,Oe.jsx)(xe,{children:(0,Oe.jsx)(te,{className:"bg-gray-200 Oe-full h-10"})},h))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Related Content",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:e&&Object.keys(e).map(g=>(0,Oe.jsxs)(xe,{children:[(0,Oe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,Oe.jsx)(It,{children:e[g].map(h=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:!1,size:"sm",children:(0,Oe.jsxs)(N,{href:h.url,item:h,className:"flex justify-between items-center Oe-full text-xs",children:[(0,Oe.jsx)("span",{children:h.label}),h.type==="note"&&(0,Oe.jsx)(Pn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,Oe.jsx)(Ve,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},g))})})})]})}),t&&!r&&(0,Oe.jsx)(dt,{defaultOpen:!0,className:"group/collapsible",children:(0,Oe.jsxs)(_e,{children:[(0,Oe.jsx)(pt,{asChild:!0,children:(0,Oe.jsxs)(Tt,{children:["Table of Contents",(0,Oe.jsx)(Pn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Oe.jsx)(Ye,{children:(0,Oe.jsx)(At,{children:(0,Oe.jsx)(De,{children:t.map(g=>{var h;return(0,Oe.jsxs)(xe,{children:[(0,Oe.jsx)(Ge,{asChild:!0,children:(0,Oe.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(h=g.items)!=null&&h.length?(0,Oe.jsx)(It,{children:g.items.map(P=>(0,Oe.jsx)(Lt,{children:(0,Oe.jsx)(Et,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Oe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Oe-full text-xs",children:(0,Oe.jsx)("span",{children:P.title})})})},P.title))}):null]},g.title)})})})})]})})]}),(0,Oe.jsx)(Xt,{})]})}var nc=v(require("next/image"));function km({title:e,members:t}){return(0,Oe.jsx)(J,{className:"mb-6",children:(0,Oe.jsxs)("div",{className:"p-6",children:[(0,Oe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Oe.jsx)(Pn.Users,{className:"Oe-6 h-6 text-accent mr-2"}),(0,Oe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Oe.jsx)("div",{className:"space-Oe-4",children:t.map((a,r)=>(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("div",{className:"relative Oe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Oe.jsx)(nc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Oe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var lc=v(require("next/link"));var gs=({links:e,title:t="Related Content"})=>(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:t})}),(0,Oe.jsx)(ne,{children:(0,Oe.jsx)("nav",{className:"flex flex-col space-Oe-2",children:e.map((a,r)=>(0,Oe.jsxs)(lc.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,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},r))})})]});var fs=s("grid h-[45px] Oe-[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 bs({pages:e}){let t=(0,Fl.useSearchParams)(),a=(0,Fl.usePathname)(),{replace:r}=(0,Fl.useRouter)(),{totalPages:o,page:i}=e,[n,l]=(0,Mr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?l(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&l(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,Oe.jsx)("div",{className:"mt-12",children:(0,Oe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,Oe.jsx)(Zr.FaArrowLeft,{})})}),c.map((p,u)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("a",{className:s(fs,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("button",{className:s(fs,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,Oe.jsx)(Zr.FaArrowRight,{})})})]})})}var xv=s("transition-colors duration-400 hover:text-primary ease-in-out");function fr({title:e,links:t}){let a=(0,Fl.useSearchParams)(),r=(0,Fl.usePathname)(),{replace:o}=(0,Fl.useRouter)();function i(n){let l=new URLSearchParams(a);n?l.set("category",n):l.delete("category"),o(`${r}?${l.toString()}`)}return(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:e&&e})}),(0,Oe.jsx)(ne,{children:t&&t.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,l)=>(0,Oe.jsxs)("Oe",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,Oe.jsx)(Pn.ExternalLink,{className:"ml-1 h-3 Oe-3"})]},l))})})})]})}function hs({types:e}){let[t,a]=(0,Mr.useState)(e&&e[0].href),r=(0,Fl.useSearchParams)(),o=(0,Fl.usePathname)(),{replace:i}=(0,Fl.useRouter)();function n(l){let d=new URLSearchParams(r);l?d.set("type",l):d.delete("type"),a(l),i(`${o}?${d.toString()}`)}return(0,Oe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Oe-auto pb-4 mb-6",children:e&&e.map((l,d)=>(0,Oe.jsx)(D,{variant:l.href===t?"default":"ghost",className:s("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",l.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(l.href),children:l.label},d))})}var uc=v(require("next/image"));var xs=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,Oe.jsx)("div",{className:"container mb-8 Oe-10 relative flex items-end justify-center",children:(0,Oe.jsxs)("div",{className:"text-center",children:[a||r&&(0,Oe.jsx)(Z,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,Oe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(tt,{...o})},i))})]})}),(0,Oe.jsxs)("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&(0,Oe.jsx)(Nt,{fill:!0,imgClassName:"Oe-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Oe.jsx)("div",{children:(0,Oe.jsx)(uc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ys=v(require("next/image"));var Tm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Oe.jsx)("div",{children:(0,Oe.jsx)(ys.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ws=({links:e,media:t,children:a,richText:r})=>(0,Oe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Oe.jsx)(Tm,{media:t}),(0,Oe.jsx)("div",{className:"mx-0 min-Oe-full relative Oe-9",children:(0,Oe.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,Oe.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var Ns=({children:e,richText:t})=>(0,Oe.jsx)("div",{className:"min-Oe-full py-10 bg-muted mt-24",children:(0,Oe.jsx)("div",{className:"container",children:e||t&&(0,Oe.jsx)(Z,{content:t,enableGutter:!1})})});var br=v(require("react"));var gc=v(require("next/image")),Am=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,Oe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end",children:[(0,Oe.jsx)("div",{className:"container Oe-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,Oe.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,Oe.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((l,d)=>{if(typeof l=="object"&&l!==null){let{title:m}=l;return(0,Oe.jsx)(Ft,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,Oe.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,Oe.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Author"}),r.map((l,d)=>{let{name:m}=l,c=d===r.length-1,p=d===r.length-2;return(0,Oe.jsxs)(br.default.Fragment,{children:[m,p&&r.length>2&&(0,Oe.jsx)(br.default.Fragment,{children:", "}),p&&r.length===2&&(0,Oe.jsx)(br.default.Fragment,{children:" "}),!c&&r.length>1&&(0,Oe.jsx)(br.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,Oe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Oe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Oe.jsx)("time",{dateTime:o,children:Xl(o)})]})]})]})}),(0,Oe.jsxs)("div",{className:"min-h-[50vh] max-h-[50vh] select-none",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsx)(gc.default,{className:"-Oe-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,Oe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Oe-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var uo=require("@heroicons/react/20/solid");var fc=v(require("next/image"));function Ps({title:e,breadcrumbItems:t,image:a}){return(0,Oe.jsxs)("section",{className:"-Oe-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Oe.jsx)("div",{className:"absolute inset-0 Oe-0",children:a&&(0,Oe.jsx)(fc.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,Oe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"relative Oe-10 flex flex-wrap items-center justify-between gap-Oe-20 gap-Oe-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Oe.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:Oe-1/2",children:e}),t&&t.length>0&&(0,Oe.jsx)(Cs,{breadcrumbItems:t})]})})]})}var Dm={highImpact:xs,lowImpact:Ns,mediumImpact:ws,sectionHero:Ps},Mm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Dm[t];return a?(0,Oe.jsx)(a,{...e}):null};function Cs({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Oe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Oe.jsxs)("ol",{role:"list",className:"flex items-center space-Oe-4",children:[(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Oe.jsx)(uo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Oe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsx)(uo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Oe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Oe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,Oe.jsx)(Oe.Fragment,{})}var Fe=require("@headlessui/react"),bo=require("@heroicons/react/24/outline");var Im=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,Oe.jsx)("a",{href:r,className:"flex items-center gap-Oe-1 text-sm font-semibold text-foreground group",children:(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute -bottom-1 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]})}):(0,Oe.jsxs)(Fe.Popover,{children:[(0,Oe.jsxs)(Fe.PopoverButton,{className:"flex items-center gap-Oe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Oe.jsxs)("span",{className:"relative",children:[e,(0,Oe.jsx)("span",{className:"absolute bottom-0 left-1/2 Oe-1/2 h-0.5 bg-accent transform -translate-Oe-1/2 scale-Oe-0 transition-transform duration-300 ease-in-out group-hover:scale-Oe-100"})]}),(0,Oe.jsx)(uo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Oe-5 flex-none text-accent"})]}),(0,Oe.jsxs)(Fe.PopoverPanel,{transition:!0,className:"absolute inset-Oe-0 top-0 -Oe-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Oe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Oe.jsx)("div",{className:"mx-auto grid max-Oe-7xl grid-cols-4 gap-Oe-4 px-6 py-10 lg:px-8 xl:gap-Oe-8 Oe-50",children:t&&t.map(o=>(0,Oe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Oe.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:o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,size:"4x"})}),(0,Oe.jsxs)("a",{href:o.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Oe.jsx)("span",{className:"absolute inset-0"})]}),(0,Oe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,Oe.jsx)("div",{className:"bg-gray-50",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"grid grid-cols-3 divide-Oe divide-gray-900/5 border-Oe border-gray-900/5",children:a.map(o=>(0,Oe.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-Oe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,Oe.jsx)(bc,{icon:o.icon,className:"h-5 Oe-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),bc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Oe.jsx)(Ve,{...e,size:a});if("src"in e)return(0,Oe.jsx)("div",{className:s(t,"h-full max-Oe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Oe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},go=Im;var fo=["light","dark","green"];function Lm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Mr.useState)(!1),[i,n]=(0,Mr.useState)(!1),[l,d]=(0,Mr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,Mr.useState)(`${m}.${c}`),f=g=>{fo.includes(g)?u(g==="light"?`${m}.${c}`:`${m}-${g}.${c}`):u(`${m}.${c}`)};(0,Mr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let N=()=>{let g=fo[(fo.indexOf(l)+1)%fo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,Oe.jsxs)("header",{className:"relative isolate Oe-10 bg-background h-14",children:[(0,Oe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Oe.jsx)("div",{className:"flex lg:flex-1",children:(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:e}),(0,Oe.jsx)("img",{alt:e,src:p,className:"h-9 Oe-auto"})]})}),(0,Oe.jsx)("div",{className:"flex lg:hidden",children:(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:a.map(g=>(0,Oe.jsx)(go,{...g},g.name))}),(0,Oe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Oe.jsx)("button",{onClick:N,className:"p-2 text-gray-700 outline-none",children:l==="dark"?(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"}):l==="green"?(0,Oe.jsx)(uo.MoonIcon,{className:"h-6 Oe-6"}):(0,Oe.jsx)(uo.SunIcon,{className:"h-6 Oe-6"})})})]}),(0,Oe.jsxs)(Fe.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white px-6 py-6 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Oe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Oe.jsx)("img",{alt:e,src:t,className:"h-8 Oe-auto"})]}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 py-6",children:a.map(g=>(0,Oe.jsx)(Em,{...g},g.name))})})})]})]})]})}function Em({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:o.name},o.name))})]})}var wc=v(require("next/image"));var Rs=v(require("next/image"));function Vt({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Oe.jsxs)(ue,{href:"/",className:s(a?"py-1":"py-2"),children:[(0,Oe.jsx)(Rs.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,Oe.jsx)(Rs.default,{className:"logo-dark 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}})]})}var hc=require("next-themes");function xr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Mr.useState)(!1),[n,l]=(0,Mr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,hc.useTheme)();(0,Mr.useEffect)(()=>{l(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];l(u),c(u)};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)("header",{className:`Oe-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:(0,Oe.jsx)(me,{className:"px-0",children:(0,Oe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-Oe-xl",children:(0,Oe.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-Oe-xl border border-t-0 border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:a,logoLight:t}),(0,Oe.jsx)(Fe.PopoverGroup,{className:"hidden lg:flex lg:gap-Oe-12",children:r&&r.map(u=>(0,Oe.jsx)(go,{...u},u.name))}),(0,Oe.jsx)("div",{className:"flex items-center space-Oe-4",children:(0,Oe.jsx)("button",{className:"fixed right-4 Oe-[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:p,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-6 Oe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-6 Oe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Ss=["light","dark"];function yr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Mr.useState)(!1),{theme:n,setTheme:l}=(0,hc.useTheme)(),[d,m]=(0,Mr.useState)(!1),[c,p]=(0,Mr.useState)("light");(0,Mr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Mr.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let f=Ss[(Ss.indexOf(c)+1)%Ss.length];p(f),l(f)};return(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsxs)("header",{className:`Oe-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-Oe-0":"-translate-Oe-full bg-transparent"}`,children:[(0,Oe.jsx)("nav",{className:s("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Oe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-Oe dark:border-accent",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("div",{className:"flex items-center space-Oe-4",children:[(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Oe-[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,Oe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Oe.jsx)(bo.Bars3Icon,{"aria-hidden":"true",className:"h-4 Oe-4"})]}),(0,Oe.jsx)("button",{className:"fixed right-16 Oe-[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",onClick:u,children:(0,Oe.jsxs)("div",{className:"relative",children:[(0,Oe.jsx)(Pn.Sun,{className:"absolute h-4 Oe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Oe.jsx)(Pn.Moon,{className:"absoulte h-4 Oe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Oe.jsxs)(Fe.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,Oe.jsx)("div",{className:"fixed inset-0 Oe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Oe.jsxs)(Fe.DialogPanel,{className:"fixed inset-Oe-0 right-0 Oe-20 Oe-full overflow-Oe-auto bg-white dark:bg-[#212124] px-2 sm:max-Oe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Oe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Oe.jsx)(Vt,{logoDark:t,logoLight:e,mobile:!0}),(0,Oe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Oe.jsx)(bo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Oe-6"})]})]}),(0,Oe.jsx)("div",{className:"mt-6 flow-root",children:(0,Oe.jsx)("div",{className:"-my-6 divide-Oe divide-gray-500/10",children:(0,Oe.jsx)("div",{className:"space-Oe-2 px-2 py-6",children:a&&a.map(f=>(0,Oe.jsx)(Bm,{...f},f.name))})})})]})]})]})})}function Bm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Oe.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,Oe.jsxs)(Fe.Disclosure,{Oe:"div",className:"-mx-3",children:[(0,Oe.jsx)(Fe.DisclosureButton,{className:"group flex Oe-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,Oe.jsx)(Fe.DisclosurePanel,{className:"mt-2 space-Oe-2",children:t&&t.map(o=>(0,Oe.jsx)(Fe.DisclosureButton,{Oe:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function Hm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Mr.useEffect)(()=>{let u=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Oe.jsxs)("div",{className:"relative h-screen",children:[(0,Oe.jsxs)("div",{className:"absolute inset-0 Oe-full h-screen overflow-hidden",children:[(0,Oe.jsxs)("video",{className:"object-cover Oe-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Oe.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Oe.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,Oe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 Oe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,Oe.jsx)(Pn.Menu,{className:"Oe-6 h-6 text-white"})}),(0,Oe.jsxs)("div",{className:"fixed top-0 left-0 right-0 Oe-50",children:[(0,Oe.jsx)(xr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,Oe.jsxs)("div",{className:"absolute inset-0 h-full Oe-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Oe.jsx)(wc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:s("absolute top-2.5 h-auto Oe-auto mt-8 hidden lg:block",d&&"lg:hidden")}),(0,Oe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Oe.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:o&&o}),(0,Oe.jsx)("div",{className:"text-3xl mb-8 max-Oe-2xl",children:i&&i})]}),(0,Oe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Oe-full mb-8",children:(0,Oe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Oe.jsx)(Pn.ChevronDown,{size:64})})})]})]})}var Nc=v(require("next/image"));var zm=s("text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 block px-4"),ks=s("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ts=s("Oe-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"),As=s("flex items-center gap-5"),wo=s("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Fm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:l,footerBottom:d}=t;return(0,Oe.jsxs)("footer",{className:s("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Oe.jsx)("div",{className:"py-16 md:py-20",children:(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)(Vt,{logoLight:a,logoDark:r}),(0,Oe.jsx)("p",{className:"mb-7 mt-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Oe rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":m.href,className:zm,href:m.href,openNewTab:!0,children:(0,Oe.jsx)("span",{children:m.icon})})},c))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Oe.jsx)("h3",{className:ks,children:i.title}),i.links&&i.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Oe.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,Oe.jsxs)("Oe",{className:"flex items-center gap-2.5",children:[(0,Oe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Oe.jsx)(Zr.FaChevronRight,{})}),(0,Oe.jsx)(ue,{href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})]},m.label))})})]}),(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Oe.jsx)("h3",{className:ks,children:n.title}),(0,Oe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPaperPlane,{})}),(0,Oe.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Oe.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,Oe.jsx)("a",{href:`mailto:${m}`,className:wo,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Oe.jsxs)("Oe",{className:As,children:[(0,Oe.jsx)("span",{className:Ts,children:(0,Oe.jsx)(Zr.FaPhone,{})}),(0,Oe.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,Oe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:wo,children:m},c))})]})]})]}),l&&(0,Oe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Oe.jsx)("h3",{className:ks,children:l.title}),l.blogs&&l.blogs.length>0&&(0,Oe.jsx)("div",{className:"grid gap-6",children:l.blogs.map((m,c)=>(0,Oe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Oe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Oe.jsx)(Nc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Oe.jsx)("span",{className:"text-accent",children:(0,Oe.jsx)(Zr.FaCalendarDays,{})}),(0,Oe.jsx)("span",{children:Yl(m.date)})]}),(0,Oe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Oe.jsx)(ue,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,Oe.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,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Oe-8 gap-Oe-4 md:gap-Oe-10",children:[(0,Oe.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,Oe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Oe.jsx)("ul",{className:"flex flex-wrap items-center gap-Oe-4 md:gap-Oe-7",children:d.links.map(m=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:wo,children:m.label})},m.label))})})]})})})]})}function Om({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,Oe.jsxs)("div",{className:s("fixed top-0 left-0 right-0 Oe-50",o),children:[(0,Oe.jsx)(xr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,Oe.jsx)(yr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function _m({children:e,...t}){return(0,Oe.jsx)(hc.ThemeProvider,{...t,children:e})}var ca=require("sonner");function Ds({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Mr.useState)([]),i=(0,Fl.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},l=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(ca.toast.success(c.message),i.refresh()):ca.toast.error(`Error: ${c.message}`),o([])};return(0,$.jsxs)("div",{className:"space-Oe-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,$.jsxs)("div",{className:"space-Oe-2",children:[(0,$.jsx)(D,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,$.jsx)(D,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,$.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,$.jsxs)("ul",{className:"divide-Oe divide-gray-200",children:[(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,$.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,$.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,$.jsx)("Oe",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(nr,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>l(c.id),className:"border-accent"}),(0,$.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,$.jsxs)(ft,{className:"h-10 Oe-10",children:[(0,$.jsx)(bt,{src:c.userImage,alt:c.userName}),(0,$.jsx)(vt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,$.jsx)("div",{className:"ml-3",children:(0,$.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,$.jsxs)("div",{className:"flex items-center space-Oe-2",children:[(0,$.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,$.jsx)(Ft,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,$.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Ms=require("date-fns"),Gm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,Oe.jsx)("div",{className:"flex space-Oe-2",children:e.map((o,i)=>(0,Oe.jsx)(D,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function Ls({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Mr.useState)(void 0),[o,i]=(0,Mr.useState)(void 0),[n,l]=(0,Mr.useState)("Full Day"),[d,m]=(0,Mr.useState)(!1),c=(0,Fl.useRouter)();(0,Mr.useEffect)(()=>{m(a!==o||!a||!o),d&&l("Full Day")},[a,o]);let p=f=>{l(f)};return(0,Oe.jsxs)("div",{className:"max-Oe-2xl",children:[(0,Oe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Oe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Oe.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){ca.toast.error("Please select both start and end dates");return}let N=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(N=.5),N>e){ca.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",o.toISOString()),g.append("leaveType",n),g.append("duration",N.toString());let h=await(t||$m)(g);h.success?(ca.toast.success(h.message),r(void 0),i(void 0),l("Full Day"),c.refresh()):ca.toast.error(`Error: ${h.message}`)},className:"space-Oe-4",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"startDate",children:"Start Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),a?(0,Ms.format)(a,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,Oe.jsxs)("div",{className:"flex flex-col space-Oe-2",children:[(0,Oe.jsx)(qt,{htmlFor:"endDate",children:"End Date"}),(0,Oe.jsxs)(tr,{children:[(0,Oe.jsx)(ar,{asChild:!0,children:(0,Oe.jsxs)(D,{variant:"outline",className:s("Oe-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Oe.jsx)(Pn.CalendarIcon,{className:"mr-2 h-4 Oe-4"}),o?(0,Ms.format)(o,"PPP"):(0,Oe.jsx)("span",{children:"Pick a date"})]})}),(0,Oe.jsx)(wa,{className:"Oe-auto p-0",align:"start",children:(0,Oe.jsx)(lr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,Oe.jsxs)("div",{className:"space-Oe-2",children:[(0,Oe.jsx)(qt,{children:"Leave Type"}),(0,Oe.jsx)(Gm,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,Oe.jsx)(D,{type:"submit",className:"Oe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Oe.jsx)(ca.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var $m=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Tc(...e){return e.filter(Boolean).join(" ")}function Es({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Oe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Oe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Oe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Oe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:l,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})]}),(0,Oe.jsx)("div",{className:"mt-8 flow-root",children:(0,Oe.jsx)("div",{className:"-mx-4 -my-2 overflow-Oe-auto sm:-mx-6 lg:-mx-8",children:(0,Oe.jsx)("div",{className:"inline-block min-Oe-full py-2 align-middle",children:(0,Oe.jsxs)("table",{className:"min-Oe-full border-separate border-spacing-0",children:[(0,Oe.jsx)("thead",{children:(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((d,m)=>(0,Oe.jsx)("th",{scope:"col",className:"sticky top-0 Oe-10 border-Oe 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",children:m+1},m))]})}),(0,Oe.jsx)("tbody",{children:r.map((d,m)=>(0,Oe.jsxs)("tr",{children:[(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Oe.jsxs)("div",{className:"flex items-center",children:[(0,Oe.jsxs)(ft,{className:"h-11 Oe-11",children:[(0,Oe.jsx)(bt,{src:d.image,alt:d.name}),(0,Oe.jsx)(vt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,Oe.jsx)("div",{className:"ml-4",children:(0,Oe.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(N=>N.userId===d.id&&new Date(N.startDate)<=u&&new Date(N.endDate)>=u);return(0,Oe.jsx)("td",{className:Tc(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Oe.jsx)("div",{className:`h-6 Oe-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,Oe.jsx)("div",{className:`h-3 Oe-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Bs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Mr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=u&&new Date(f.endDate)>=u)}}),l=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,Oe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Oe.jsxs)("header",{className:"flex items-center justify-between border-Oe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Oe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Oe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Oe.jsx)("div",{className:"flex items-center",children:(0,Oe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Oe.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Oe.jsx)(Pn.ChevronLeft,{className:"h-5 Oe-5","aria-hidden":"true"})]}),(0,Oe.jsx)(D,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Oe.jsxs)(D,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Oe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Oe.jsx)(Pn.ChevronRight,{className:"h-5 Oe-5","aria-hidden":"true"})]})]})})]}),(0,Oe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Oe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["Oe",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Oe"})]}),(0,Oe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Oe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Oe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Oe.jsx)("div",{className:"hidden Oe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,Oe.jsxs)("div",{className:s(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("flex h-6 Oe-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,Oe.jsx)("ol",{className:"mt-2 space-Oe-1",children:c.holidays.map(p=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,Oe.jsx)("div",{className:"isolate grid Oe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,Oe.jsxs)("button",{type:"button",className:s(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:Oe-10"),children:[(0,Oe.jsx)("time",{dateTime:c.date.toISOString(),className:s("ml-auto",c.date===r&&c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 Oe-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,Oe.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,Oe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,Oe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Oe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Ut=require("lucide-react");function Dc(...e){return e.filter(Boolean).join(" ")}function Vm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:l}){let[d,m]=(0,Mr.useState)("Calendar View"),c=(0,Fl.useRouter)(),p=!1,u=(0,Ms.parseISO)(a),f=async g=>{let h=(0,Ms.format)(g,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",h),c.push(P.toString()),{success:!0}};if(p)return(0,Oe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Oe.jsx)("div",{className:"animate-spin rounded-full h-32 Oe-32 border-t-2 border-Oe-2 border-gray-900"})});let N=[{name:"Grid View",icon:Ut.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Ut.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Ut.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Ut.CheckSquare,current:d==="Approve Leave"}];return(0,Oe.jsxs)("div",{className:"container mx-auto p-4",children:[(0,Oe.jsx)("h1",{className:"text-3xl font-bold mb-4",children:"Holiday Tracker"}),(0,Oe.jsxs)("div",{className:"mb-8",children:[(0,Oe.jsxs)("div",{className:"sm:hidden",children:[(0,Oe.jsx)("select",{value:d,onChange:g=>m(g.target.value),className:"block Oe-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:N.map(g=>(0,Oe.jsx)("option",{children:g.name},g.name))}),(0,Oe.jsx)(Pn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Oe-5 text-gray-400","aria-hidden":"true"})]}),(0,Oe.jsx)("div",{className:"hidden sm:block",children:(0,Oe.jsx)("div",{className:"border-Oe border-gray-200",children:(0,Oe.jsx)("nav",{className:"-mb-px flex space-Oe-8","aria-label":"Tabs",children:N.map(g=>(0,Oe.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:Dc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Oe-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,Oe.jsx)(g.icon,{className:Dc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Oe-5"),"aria-hidden":"true"}),(0,Oe.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,Oe.jsx)(Es,{currentDate:u,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,Oe.jsx)(Bs,{currentDate:u,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,Oe.jsx)(Ls,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Oe.jsx)(Ds,{leaveRequests:r,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>l?l(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Um({services:e,className:t}){return(0,Oe.jsx)("section",{id:"next-section",className:s("section-padding-primary",t),children:(0,Oe.jsx)(me,{className:"py-8",children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"flex flex-wrap justify-center gap-Oe-8",children:e.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"Oe-full px-4 md:Oe-1/2 lg:Oe-1/3",children:(0,Oe.jsx)(ji,{...a})},r))})})})}function Wm({sectionHeading:e,cards:t}){return(0,Oe.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,Oe.jsxs)(me,{children:[(0,Oe.jsx)("div",{className:"mx-auto max-Oe-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,Oe.jsx)($t,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,Oe.jsx)("div",{className:"grid gap-30px",children:t.map((a,r)=>(0,Oe.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sa([200,400,600],r),className:"py-2",children:(0,Oe.jsx)(Xi,{...a})},r))})]})})}var Ba=v(require("next/image"));function jm(e){let{images:t,sectionHeading:a,keyPoints:r,description:o}=e;return(0,Oe.jsx)("section",{id:"about-section",className:s("section-padding-primary",e.className||""),children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,Oe.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,Oe.jsx)($t,{...a}),r&&r.length>0&&(0,Oe.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:r.map((i,n)=>(0,Oe.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,Oe.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:i.icon}),(0,Oe.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:i.title})]},n))}),o&&(0,Oe.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:o})]}),t&&(0,Oe.jsx)("div",{className:"mx-auto text-center",children:(0,Oe.jsxs)("div",{className:"relative mx-auto grid max-Oe-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative flex justify-end overflow-hidden",children:[(0,Oe.jsxs)("div",{className:"relative Oe-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:[(0,Oe.jsx)("span",{className:"absolute -left-2.5 -top-2.5 -Oe-1 h-full Oe-full rounded-tl-[60px] bg-primary-light"}),(0,Oe.jsx)("div",{className:"relative Oe-[4] overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})]}),(0,Oe.jsx)(Ba.default,{src:t.pattern.src,width:383,height:246,alt:"pattern-background",className:"absolute bottom-[-55%] left-[42px] Oe-1 block object-cover","data-aos":"zoom-in","data-aos-delay":"250"})]}),(0,Oe.jsx)("div",{className:"flex overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,Oe.jsx)("div",{className:"ml-auto flex max-Oe-[250px] justify-end overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,Oe.jsx)("div",{className:"overflow-hidden",children:(0,Oe.jsx)(Ba.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,Oe.jsx)("div",{className:"absolute left-1/2 top-1/2 Oe-[4] -translate-Oe-1/2 -translate-Oe-1/2 overflow-hidden",children:(0,Oe.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,Oe.jsx)("span",{className:"grid h-[100px] Oe-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,Oe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ec=v(require("next/image"));function Bc({blogs:e}){return(0,Oe.jsx)("div",{children:e&&e.length>0&&(0,Oe.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,Oe.jsx)(Xm,{post:t,id:a},a))})})}var Xm=({post:e,id:t})=>{let{slug:a,image:r,authors:o,categories:i,title:n,description:l,publishedAt:d}=e;return(0,Oe.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Oe.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:Oe-64 lg:shrink-0",children:[r&&(0,Oe.jsx)(Ec.default,{src:r.src,alt:r.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Oe.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-Oe-4 text-xs",children:[(0,Oe.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:lo(e.publishedAt)}),e.categories&&e.categories.map((m,c)=>(0,Oe.jsx)("a",{href:`#${m}`,className:"relative Oe-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},c))]}),(0,Oe.jsxs)("div",{className:"group relative max-Oe-xl",children:[(0,Oe.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Oe.jsxs)("a",{href:e.slug,children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Oe.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Oe.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-Oe-2 border-gray-200 dark:border-gray-700 pt-6",children:o&&o.map((m,c)=>(0,Oe.jsxs)("div",{className:"relative flex items-center gap-Oe-4",children:[m.image?(0,Oe.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Oe.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Oe.jsx)("div",{className:"text-sm/6",children:(0,Oe.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Oe.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function Ym({blogs:e,pages:t,categories:a,types:r}){return(0,Oe.jsx)("section",{children:(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsxs)("div",{children:[r&&(0,Oe.jsx)(hs,{types:r}),(0,Oe.jsx)(Bc,{blogs:e}),(0,Oe.jsx)(bs,{pages:t})]}),(0,Oe.jsx)("div",{className:"grid gap-30px Oe-full self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:(0,Oe.jsx)("div",{className:"lg:-mt-24 Oe-full",children:a&&a.links&&(0,Oe.jsx)(fr,{links:a.links,title:a.title})})})]})})})}var Gc=v(require("next/image"));var Ro="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function So({className:e}){return s("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] Oe-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Km({className:e,...t}){return(0,Oe.jsx)("input",{...t,className:So({className:e})})}function ko({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(Km,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-1/2 Oe-[14px] -translate-Oe-1/2 text-accent",children:e})]})}function qm({className:e,...t}){return(0,Oe.jsx)("textarea",{...t,className:s(So({}),"resize-none md:min-h-[130px]",e)})}function Hc({icon:e,...t}){return(0,Oe.jsxs)("div",{className:"relative Oe-full",children:[(0,Oe.jsx)(qm,{...t}),e&&(0,Oe.jsx)("span",{className:"absolute right-5 top-[18px] Oe-[14px] text-accent",children:e})]})}var Fc=require("formik"),pa=v(require("yup"));async function zc(e){let{name:t,email:a,subject:r,message:o}=e,i=process.env.TEAMS_WEBHOOK_URL;if(!i)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${r}`,wrap:!0}]}]},{type:"TextBlock",text:`${o}`,wrap:!0}]}}]};try{let l=await fetch(i,{method:"POST",mode:"Oe-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw console.error(l),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(l){return console.error(l),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var et={tooShort:"Must be Oe least ${min} characters",tooLong:"Must be Oe most ${max} characters",required:"This field is required",email:"Invalid email format"},Qm=pa.object().shape({name:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),email:pa.string().email(et.email).required(et.required),subject:pa.string().min(2,et.tooShort).max(50,et.tooLong).required(et.required),message:pa.string().min(2,et.tooShort).max(300,et.tooLong).required(et.required)}),To=s("!pr-[44px]"),Ao=s("!border-red-600 border"),Do=s("sr-only");function _c(){return(0,Oe.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Qm,onSubmit:async(e,{resetForm:t})=>{let a=await zc(e);a.data===null?ca.toast.error(a.message):(ca.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:r,handleBlur:o,isSubmitting:i,handleSubmit:n})=>(0,Oe.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zr.FaUser,{}),className:s(To,e.name&&t.name&&Ao)}),e.name&&t.name&&(0,Oe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Do,children:e.name})]}),(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)(ko,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Jm,{}),className:s(To,e.email&&t.email&&Ao)}),e.email&&t.email&&(0,Oe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Do,children:e.email})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(ko,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:r,onBlur:o,disabled:i,className:s(To,e.subject&&t.subject&&Ao)}),e.subject&&t.subject&&(0,Oe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Do,children:e.subject})]}),(0,Oe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Oe.jsx)(Hc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:r,onBlur:o,disabled:i,icon:(0,Oe.jsx)(Zm,{}),className:s(To,e.message&&t.message&&Ao)}),e.message&&t.message&&(0,Oe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Do,children:e.message})]}),(0,Oe.jsx)("div",{className:"lg:col-span-2",children:(0,Oe.jsx)(D,{type:"submit",className:"Oe-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:i,children:(0,Oe.jsx)("span",{children:"SEND"})})})]})})}function Jm(){return(0,Oe.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Zm(){return(0,Oe.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function ep(e){let{sectionHeading:t,image:a}=e;return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsx)("div",{className:"",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-7xl px-6 lg:px-8",children:(0,Oe.jsx)("div",{className:"mx-auto max-Oe-2xl space-Oe-16 divide-Oe divide-gray-100 lg:mx-0 lg:max-Oe-none",children:(0,Oe.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,Oe.jsxs)("div",{children:[(0,Oe.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,Oe.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"Oe have multiple locations across the UK where Oe are based. These are our key locations."})]}),(0,Oe.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((r,o)=>{var i;return(0,Oe.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,Oe.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:r.title}),(0,Oe.jsxs)("address",{className:"mt-3 space-Oe-1 text-sm/6 not-italic text-foreground",children:[(i=r.location.split(","))==null?void 0:i.map((n,l)=>(0,Oe.jsx)("p",{children:n},l))," ",r.mails&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,Oe.jsx)("span",{children:r.mails[0]})]}),r.phoneNumbers&&r.phoneNumbers.length>0&&(0,Oe.jsxs)("p",{className:"flex items-center space-Oe-2",children:[(0,Oe.jsx)(Zr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),r.phoneNumbers[0]]})]})]},o)})})]})})})})}),(0,Oe.jsx)("section",{className:"section-padding-primary",children:(0,Oe.jsxs)("div",{className:"relative py-[60px]",children:[(0,Oe.jsx)("div",{className:"absolute left-0 top-0 Oe-1 h-full Oe-full overflow-hidden bg-red-500 md:Oe-[56%] md:rounded-r-5",children:(0,Oe.jsx)(Gc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:Ro})}),(0,Oe.jsx)(me,{children:(0,Oe.jsx)("div",{className:"ml-auto md:Oe-1/2",children:(0,Oe.jsxs)("div",{className:"relative Oe-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,Oe.jsx)("div",{className:"mb-30px",children:(0,Oe.jsx)($t,{...t,invert:!0})}),(0,Oe.jsx)(_c,{})]})})})]})})]})}var $c=v(require("next/image"));var Uc=v(require("next/link"));function tp({image:e,name:t,about:a,socialLinks:r}){return!e||!e.src||e.src.length<3||!t?null:(0,Oe.jsx)("div",{className:"mt-1 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(J,{children:(0,Oe.jsxs)(ne,{children:[e&&e.src&&(0,Oe.jsx)($c.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ro,className:"mx-auto mt-6 rounded-full object-cover"}),(0,Oe.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Oe.jsx)("p",{children:a}),r&&r.length>0&&(0,Oe.jsx)("nav",{"aria-label":"social links",children:(0,Oe.jsx)("ul",{className:"inline-flex items-center divide-Oe divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:r.map((o,i)=>(0,Oe.jsx)("Oe",{children:(0,Oe.jsx)(ue,{href:o.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-Oe-1 hover:text-accents",children:(0,Oe.jsx)("span",{children:o.icon})})},i))})})]})})})}function ap({page:e,categoryList:t,edit:a=!1,path:r="/admin/collections/posts/"}){var u;if(!e)return(0,Fl.notFound)();let{meta:o,populatedAuthors:i,authors:n,categories:l,content:d,title:m}=e,c={image:{src:o&&o.image&&o.image.url||void 0,alt:o&&o.image&&o.image.alt||void 0},authorName:((u=i==null?void 0:i[0])==null?void 0:u.name)||"",category:l,commentCount:0,title:m,description:(o==null?void 0:o.description)||""},p=n==null?void 0:n.map(f=>{var N,g;return{name:f.name||"",about:"",image:{src:f.profilePicture&&((g=(N=f.profilePicture.sizes)==null?void 0:N.square)==null?void 0:g.url)||"",alt:f.name||"blog author"},socialLinks:[]}});return(0,Oe.jsx)(me,{children:(0,Oe.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Oe.jsx)("div",{children:(0,Oe.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,Oe.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Oe.jsx)(Z,{content:d,enableGutter:!1})]})}),(0,Oe.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-Oe-[410px] lg:gap-10",children:[a&&(0,Oe.jsx)("div",{className:"mt-4 lg:-mt-10 Oe-10 px-0 pt-0 lg:px-10",children:(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(ne,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Oe.jsx)(Uc.default,{href:`${r}${e.id}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((f,N)=>(0,Oe.jsx)(tp,{...f},N)),t&&t.links&&(0,Oe.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,Oe.jsx)(fr,{links:t.links,title:t.title})})]})]})})}var zs=v(require("next/link"));var rp=({children:e,pageId:t,tableOfContents:a=[],edit:r=!0,path:o="/admin/collections/pages/",relatedContent:i=[{title:"Related Content",links:[]}]})=>{let[n,l]=(0,Mr.useState)(!1),[d,m]=(0,Mr.useState)(""),c=(0,Fl.usePathname)(),p=()=>{l(!n)},u=h=>{switch(h){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},f=(h,P)=>{h.preventDefault();let R=document.getElementById(P);if(R){let Ae=R.offsetTop+-100,nt=document.querySelector(".container")||window;nt===window?window.scrollTo({top:Ae,behavior:"smooth"}):nt.scrollTo({top:Ae,behavior:"smooth"}),m(P)}else console.error(`Element with ID "${P}" not found.`)},N=()=>{let P="/print/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()},g=()=>{let P="/present/"+c.split("/")[1],R=window.open(P,"Print","width=1754,height=1240,toolbar=Oe,location=Oe,status=Oe,menubar=Oe,scrollbars=yes,resizable=yes");R&&R.focus()};return(0,Mr.useEffect)(()=>{let h=window.location.hash;if(h){let P=h.substring(1),R=document.getElementById(P);if(R){let Ae=R.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:Ae,behavior:"smooth"})}}},[window.location.hash]),(0,Oe.jsxs)("div",{className:"container py-8",children:[(0,Oe.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-4 gap-8",children:[(0,Oe.jsx)("div",{className:s(n?"col-span-2":"col-span-3","xl:col-span-3"),children:e}),(0,Oe.jsxs)("div",{className:s("space-Oe-6 transform min-Oe-full transition-transform duration-300","col-span-4 md:col-span-1 translate-Oe-0 xl:-mt-20",n?"translate-Oe-0":"md:translate-Oe-full","xl:block xl:col-span-1 xl:translate-Oe-0"),children:[r&&(0,Oe.jsxs)(J,{children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Content Actions"})}),(0,Oe.jsxs)(ne,{children:[(0,Oe.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Contribute or create new content."}),(0,Oe.jsx)(zs.default,{href:`${o}${t}`,children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full text-accent hover:text-foreground",children:"Edit Page"})}),(0,Oe.jsx)(zs.default,{href:"/admin/collections/pages/create",children:(0,Oe.jsx)(D,{variant:"outline",className:"Oe-full mt-2 text-accent hover:text-foreground",children:"Create New"})}),(0,Oe.jsxs)("div",{className:"flex space-Oe-2 mt-4",children:[(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:N,children:[(0,Oe.jsx)(Pn.Printer,{className:"mr-2"})," Print"]}),(0,Oe.jsxs)(D,{variant:"outline",className:"text-accent hover:text-foreground",onClick:g,children:[(0,Oe.jsx)(Pn.Presentation,{className:"mr-2"})," Present"]})]})]})]}),i&&i.length>0&&i.map((h,P)=>h.links&&h.links.length>0&&(0,Oe.jsx)(gs,{...h},P)),a.length>3&&(0,Oe.jsxs)(J,{className:"Oe-full max-Oe-sm mt-4",children:[(0,Oe.jsx)(be,{children:(0,Oe.jsx)(ve,{className:"text-accent",children:"Oe this page"})}),(0,Oe.jsx)(ne,{children:(0,Oe.jsx)("ul",{className:"space-Oe-2",children:a.map((h,P)=>(0,Oe.jsx)("Oe",{className:u(h.tag),children:(0,Oe.jsx)("a",{href:`#${h.id}`,className:`text-xs ${d===h.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:h.text})},P))})})]})]}),(0,Oe.jsx)("button",{onClick:p,className:s("fixed top-1/2 right-0 Oe-50 h-16 Oe-8 bg-accent text-accent-foreground rounded-l-full transform -translate-Oe-1/2 flex items-center justify-center","hidden md:block xl:hidden"),children:"\u22EE"})]}),(0,Oe.jsx)("div",{className:"block md:hidden mt-8",children:(0,Oe.jsx)("div",{className:"space-Oe-6",children:e})})]})};0&&(module.exports={AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,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,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,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,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,Oe,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|