cortex-react-components 1.48.3 → 1.48.4

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.
Files changed (89) hide show
  1. package/dist/{chunk-5MFDXJ4L.mjs → chunk-3HB23STY.mjs} +1 -1
  2. package/dist/{chunk-E2LKSCDR.mjs → chunk-3KMFY6E7.mjs} +1 -1
  3. package/dist/{chunk-XAIWWMQS.mjs → chunk-4TUQ6Z3H.mjs} +1 -1
  4. package/dist/{chunk-ORIYZGWU.mjs → chunk-5HGAHLVI.mjs} +1 -1
  5. package/dist/{chunk-I5EBXVLE.mjs → chunk-72Z4T7BT.mjs} +1 -1
  6. package/dist/{chunk-CYECAKIW.mjs → chunk-BOZT7Z5K.mjs} +1 -1
  7. package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
  8. package/dist/{chunk-7FMMXR7S.mjs → chunk-DLCGGIZW.mjs} +1 -1
  9. package/dist/{chunk-MSR2P3T7.mjs → chunk-FYV4D2GU.mjs} +1 -1
  10. package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
  11. package/dist/{chunk-SE5XAXK5.mjs → chunk-PKJZSHNL.mjs} +1 -1
  12. package/dist/{chunk-VLUAFB54.mjs → chunk-V6QZFOJH.mjs} +1 -1
  13. package/dist/{chunk-23L5ZJ2U.mjs → chunk-Z4CK655R.mjs} +1 -1
  14. package/dist/components/Blocks/Banner.mjs +1 -1
  15. package/dist/components/Blocks/CallToAction.mjs +1 -1
  16. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  17. package/dist/components/Blocks/Content.mjs +1 -1
  18. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  19. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  20. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  21. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  22. package/dist/components/Blocks/ReusableContent.mjs +1 -1
  23. package/dist/components/Blocks/index.d.ts +1 -0
  24. package/dist/components/Blocks/index.js +1 -1
  25. package/dist/components/Blocks/index.mjs +1 -1
  26. package/dist/components/Cards/ContentCard.mjs +1 -1
  27. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  28. package/dist/components/Cards/index.mjs +1 -1
  29. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  30. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  31. package/dist/components/HeaderFooter/Header.mjs +1 -1
  32. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  33. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  34. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  35. package/dist/components/HeaderFooter/index.mjs +1 -1
  36. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  37. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  38. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  39. package/dist/components/Heros/RenderHero.mjs +1 -1
  40. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  41. package/dist/components/Heros/index.mjs +1 -1
  42. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  43. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  44. package/dist/components/Holidays/index.mjs +1 -1
  45. package/dist/components/Layouts/BlogList.mjs +1 -1
  46. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  47. package/dist/components/Layouts/SlideShow.mjs +1 -1
  48. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  49. package/dist/components/Layouts/index.mjs +1 -1
  50. package/dist/components/Menus/index.mjs +1 -1
  51. package/dist/components/Payload/RichText/index.mjs +1 -1
  52. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  53. package/dist/components/Payload/RichText.stories.mjs +1 -1
  54. package/dist/components/Payload/index.mjs +1 -1
  55. package/dist/components/index.js +6 -6
  56. package/dist/components/index.mjs +1 -1
  57. package/dist/index.js +7 -7
  58. package/dist/index.mjs +1 -1
  59. package/dist/metafile-cjs.json +1 -1
  60. package/dist/metafile-esm.json +1 -1
  61. package/dist/pages/Blog.mjs +1 -1
  62. package/dist/pages/Blog.stories.mjs +1 -1
  63. package/dist/pages/Documentation.mjs +1 -1
  64. package/dist/pages/Documentation.stories.mjs +1 -1
  65. package/dist/pages/IndexPage.mjs +1 -1
  66. package/dist/pages/IndexPage.stories.mjs +1 -1
  67. package/dist/pages/Intranet.mjs +1 -1
  68. package/dist/pages/Intranet.stories.mjs +1 -1
  69. package/dist/pages/LandingPage.mjs +1 -1
  70. package/dist/pages/LandingPage.stories.mjs +1 -1
  71. package/dist/pages/Page.mjs +1 -1
  72. package/dist/pages/Page.stories.mjs +1 -1
  73. package/dist/pages/Publish.mjs +1 -1
  74. package/dist/pages/Publish.stories.mjs +1 -1
  75. package/dist/pages/Website.mjs +1 -1
  76. package/dist/pages/Website.stories.mjs +1 -1
  77. package/dist/sections/AboutSection.mjs +1 -1
  78. package/dist/sections/AboutSection.stories.mjs +1 -1
  79. package/dist/sections/BlogDetail.mjs +1 -1
  80. package/dist/sections/BlogDetail.stories.mjs +1 -1
  81. package/dist/sections/BlogListSection.mjs +1 -1
  82. package/dist/sections/BlogListSection.stories.mjs +1 -1
  83. package/dist/sections/ContactSection.mjs +1 -1
  84. package/dist/sections/ContactSection.stories.mjs +1 -1
  85. package/dist/sections/ImageSection.stories.mjs +1 -1
  86. package/dist/sections/PricingSection.mjs +1 -1
  87. package/dist/sections/PricingSection.stories.mjs +1 -1
  88. package/dist/sections/index.mjs +1 -1
  89. package/package.json +1 -1
@@ -3,16 +3,16 @@
3
3
  "use client"
4
4
  'use strict'
5
5
 
6
- "use strict";var Ic=Object.create;var Hr=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Hc=(e,t)=>{for(var a in t)Hr(e,a,{get:t[a],enumerable:!0})},Fi=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lc(t))!Bc.call(e,o)&&o!==a&&Hr(e,o,{get:()=>t[o],enumerable:!(r=Ac(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?Ic(Ec(e)):{},Fi(t||!e||!e.__esModule?Hr(a,"default",{value:e,enumerable:!0}):a,e)),Fc=e=>Fi(Hr({},"__esModule",{value:!0}),e);var Om={};Hc(Om,{Alert:()=>Fs,AlertDescription:()=>Os,AlertTitle:()=>zs,ApproveLeave:()=>Ci,Avatar:()=>Tt,AvatarFallback:()=>Mt,AvatarImage:()=>Dt,Badge:()=>Qe,BannerBlock:()=>Us,BlogCard:()=>$l,BlogList:()=>sm,BrandLogo:()=>oa,Breadcrumb:()=>Oo,BreadcrumbEllipsis:()=>Wo,BreadcrumbItem:()=>Go,BreadcrumbLink:()=>Vo,BreadcrumbList:()=>_o,BreadcrumbPage:()=>$o,BreadcrumbSeparator:()=>Uo,Breadcrumbs:()=>vi,Button:()=>k,CMSLink:()=>ft,CRMKanbanBoard:()=>zm,Calendar:()=>vr,CalendarView:()=>Ti,CallToActionBlock:()=>yr,Card:()=>Rr,Categories:()=>ym,Checkbox:()=>lt,CodeBlock:()=>Ys,Collapsible:()=>Ct,CollapsibleContent:()=>Gt,CollapsibleTrigger:()=>_t,CollectionArchive:()=>im,Command:()=>to,CommandDialog:()=>Fn,CommandEmpty:()=>As,CommandGroup:()=>Ls,CommandInput:()=>Ms,CommandItem:()=>Bs,CommandList:()=>Is,CommandSeparator:()=>Es,CommandShortcut:()=>Hs,Container:()=>wa,ContentBlock:()=>ti,ContentCard:()=>ei,CopyButton:()=>Xs,CustomLink:()=>we,CustomerCard:()=>Zn,DealCard:()=>Mi,DealDetails:()=>Di,Dialog:()=>Je,DialogClose:()=>Zr,DialogContent:()=>Ve,DialogDescription:()=>Ds,DialogFooter:()=>Ts,DialogHeader:()=>it,DialogOverlay:()=>eo,DialogPortal:()=>ks,DialogTitle:()=>nt,DialogTrigger:()=>Qr,DropdownMenu:()=>Yi,DropdownMenuCheckboxItem:()=>qo,DropdownMenuContent:()=>Yo,DropdownMenuGroup:()=>qi,DropdownMenuItem:()=>Ko,DropdownMenuLabel:()=>Qo,DropdownMenuPortal:()=>Ji,DropdownMenuRadioGroup:()=>Zi,DropdownMenuRadioItem:()=>Jo,DropdownMenuSeparator:()=>Zo,DropdownMenuShortcut:()=>es,DropdownMenuSub:()=>Qi,DropdownMenuSubContent:()=>jo,DropdownMenuSubTrigger:()=>Xo,DropdownMenuTrigger:()=>Ki,DynamicIcon:()=>Ee,EventCard:()=>el,FeatureCard:()=>qn,FeatureGrid:()=>yl,FeaturesBlock:()=>xr,Filter:()=>xm,Footer:()=>Im,Header:()=>Am,HeaderDesktop:()=>Dr,HeaderMobile:()=>Mr,HeadingImage:()=>em,Hero:()=>Gd,HighImpactHero:()=>pi,HolidayGrid:()=>ki,HolidayTracker:()=>Hm,HoverCard:()=>An,HoverCardContent:()=>Ss,HoverCardTrigger:()=>Ln,Image:()=>sl,ImageBlock:()=>Zs,InfoTile:()=>Xd,Input:()=>Ae,Insight:()=>Wd,KanbanColumn:()=>Li,Label:()=>J,Logo:()=>nm,LowImpactHero:()=>fi,MOTD:()=>Yd,Media:()=>Et,MediaBlock:()=>_a,MediumImpactHero:()=>gi,NewCustomerForm:()=>Ii,NewDealForm:()=>Ai,NewsGrid:()=>Ll,OrgChart:()=>Jd,PageRange:()=>dm,Pagination:()=>hm,PayloadPagination:()=>mm,Popover:()=>ur,PopoverAnchor:()=>kn,PopoverContent:()=>Oa,PopoverTrigger:()=>gr,PostHero:()=>wm,PricingCard:()=>_d,ProjectCard:()=>ol,ProjectTeam:()=>bm,ProposalSummary:()=>Qd,RelatedContent:()=>vm,RelatedPosts:()=>rm,RenderBlocks:()=>Pr,RenderHero:()=>Pm,RequestLeave:()=>Si,RichText:()=>Z,ScrollArea:()=>Kt,ScrollBar:()=>Jr,SectionHero:()=>bi,Select:()=>ga,SelectContent:()=>Zt,SelectGroup:()=>Id,SelectItem:()=>ea,SelectLabel:()=>$n,SelectScrollDownButton:()=>Vs,SelectScrollUpButton:()=>Gs,SelectSeparator:()=>Un,SelectTrigger:()=>Qt,SelectValue:()=>fa,Separator:()=>er,ServiceCard:()=>Od,Sheet:()=>zr,SheetClose:()=>ln,SheetContent:()=>ar,SheetDescription:()=>is,SheetFooter:()=>os,SheetHeader:()=>rs,SheetOverlay:()=>Or,SheetPortal:()=>as,SheetTitle:()=>ss,SheetTrigger:()=>nn,Sidebar:()=>na,SidebarContent:()=>$t,SidebarFooter:()=>ca,SidebarGroup:()=>Ye,SidebarGroupAction:()=>us,SidebarGroupContent:()=>ot,SidebarGroupLabel:()=>Rt,SidebarHeader:()=>la,SidebarInput:()=>ps,SidebarInset:()=>ms,SidebarLeft:()=>pm,SidebarMenu:()=>Le,SidebarMenuAction:()=>sr,SidebarMenuBadge:()=>gs,SidebarMenuButton:()=>Ke,SidebarMenuItem:()=>xe,SidebarMenuSkeleton:()=>fs,SidebarMenuSub:()=>Ut,SidebarMenuSubButton:()=>Xt,SidebarMenuSubItem:()=>Wt,SidebarProvider:()=>ls,SidebarRail:()=>ds,SidebarRight:()=>fm,SidebarSeparator:()=>or,SidebarTrigger:()=>cs,SimpleHeader:()=>Sm,Skeleton:()=>ae,SlideShow:()=>Ml,TextAndImages:()=>El,Textarea:()=>ta,ThemeProvider:()=>Lm,Toast:()=>lr,ToastAction:()=>hs,ToastClose:()=>cr,ToastDescription:()=>mr,ToastProvider:()=>Kr,ToastTitle:()=>dr,ToastViewport:()=>nr,Toaster:()=>Nn,Toggle:()=>xs,ToggleGroup:()=>Ns,ToggleGroupItem:()=>ws,Tooltip:()=>$r,TooltipContent:()=>rr,TooltipProvider:()=>Vr,TooltipTrigger:()=>Ur,VideoHeader:()=>Dm,WhyUs:()=>Zd,badgeVariants:()=>_s,buttonVariants:()=>Vt,toggleVariants:()=>pr,useIsMobile:()=>Gr,useSidebar:()=>Fa,useToast:()=>Yr});module.exports=Fc(Om);var La=v(require("react")),Fr=require("@radix-ui/react-icons"),ji=require("@radix-ui/react-slot");var Xi=require("clsx");var zo="-",zc=e=>{let t=_c(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let i=l.split(zo);return i[0]===""&&i.length!==1&&i.shift(),_i(i,t)||Oc(l)},getConflictingClassGroupIds:(l,i)=>{let d=a[l]||[];return i&&r[l]?[...d,...r[l]]:d}}},_i=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?_i(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let s=e.join(zo);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},zi=/^\[(.+)\]$/,Oc=e=>{if(zi.test(e)){let t=zi.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},_c=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Vc(Object.entries(e.classGroups),a).forEach(([s,l])=>{Fo(l,r,s,t)}),r},Fo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let s=o===""?t:Oi(t,o);s.classGroupId=a;return}if(typeof o=="function"){if(Gc(o)){Fo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([s,l])=>{Fo(l,Oi(t,s),a,r)})})},Oi=(e,t)=>{let a=e;return t.split(zo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Gc=e=>e.isThemeGetter,Vc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,o]}):e,$c=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,r=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){a.has(s)?a.set(s,l):o(s,l)}}},Gi="!",Uc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],s=t.length,l=i=>{let d=[],u=0,c=0,p;for(let x=0;x<i.length;x++){let A=i[x];if(u===0){if(A===o&&(r||i.slice(x,x+s)===t)){d.push(i.slice(c,x)),c=x+s;continue}if(A==="/"){p=x;continue}}A==="["?u++:A==="]"&&u--}let m=d.length===0?i:i.substring(c),f=m.startsWith(Gi),h=f?m.substring(1):m,g=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:l}):l},Wc=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},Xc=e=>({cache:$c(e.cacheSize),parseClassName:Uc(e),...zc(e)}),jc=/\s+/,Yc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(jc),i="";for(let d=l.length-1;d>=0;d-=1){let u=l[d],{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=a(u),h=!!f,g=r(h?m.substring(0,f):m);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let x=Wc(c).join(":"),A=p?x+Gi:x,O=A+g;if(s.includes(O))continue;s.push(O);let Q=o(g,h);for(let he=0;he<Q.length;++he){let Ie=Q[he];s.push(A+Ie)}i=u+(i.length>0?" "+i:i)}return i};function Kc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Vi(t))&&(r&&(r+=" "),r+=a);return r}var Vi=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Vi(e[r]))&&(a&&(a+=" "),a+=t);return a};function qc(e,...t){let a,r,o,s=l;function l(d){let u=t.reduce((c,p)=>p(c),e());return a=Xc(u),r=a.cache.get,o=a.cache.set,s=i,i(d)}function i(d){let u=r(d);if(u)return u;let c=Yc(d,a);return o(d,c),c}return function(){return s(Kc.apply(null,arguments))}}var q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},$i=/^\[(?:([a-je-]+):)?(.+)\]$/i,Jc=/^\d+\/\d+$/,Qc=new Set(["px","full","screen"]),Zc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|je)$/,ed=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|_r|dc|in|cm|mm|cap|ch|ex|r?lh|cq(je|h|i|je|min|max))|\je(calc|min|max|clamp)\(.+\)|^0$/,td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-je]+|0)je-?((\d+)?\.?(\d+)[a-je]+|0)/,rd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ia(e)||Qc.has(e)||Jc.test(e),zt=e=>Aa(e,"length",md),Ia=e=>!!e&&!Number.isNaN(Number(e)),Ho=e=>Aa(e,"number",Ia),Qa=e=>!!e&&Number.isInteger(Number(e)),od=e=>e.endsWith("%")&&Ia(e.slice(0,-1)),D=e=>$i.test(e),Ot=e=>Zc.test(e),sd=new Set(["length","size","percentage"]),id=e=>Aa(e,sd,Ui),nd=e=>Aa(e,"position",Ui),ld=new Set(["image","url"]),cd=e=>Aa(e,ld,ud),dd=e=>Aa(e,"",pd),Za=()=>!0,Aa=(e,t,a)=>{let r=$i.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},md=e=>ed.test(e)&&!td.test(e),Ui=()=>!1,pd=e=>ad.test(e),ud=e=>rd.test(e);var gd=()=>{let e=q("colors"),t=q("spacing"),a=q("blur"),r=q("brightness"),o=q("borderColor"),s=q("borderRadius"),l=q("borderSpacing"),i=q("borderWidth"),d=q("contrast"),u=q("grayscale"),c=q("hueRotate"),p=q("invert"),m=q("gap"),f=q("gradientColorStops"),h=q("gradientColorStopPositions"),g=q("inset"),x=q("margin"),A=q("opacity"),O=q("padding"),Q=q("saturate"),he=q("scale"),Ie=q("sepia"),gt=q("skew"),S=q("space"),H=q("translate"),at=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",D,t],U=()=>[D,t],Lr=()=>["",wt,zt],Er=()=>["auto",Ia,D],Ei=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Br=()=>["solid","dashed","dotted","double","none"],Bi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bo=()=>["start","end","center","between","around","evenly","stretch"],Ja=()=>["","0",D],Hi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Nt=()=>[Ia,D];return{cacheSize:500,separator:":",theme:{colors:[Za],spacing:[wt,zt],blur:["none","",Ot,D],brightness:Nt(),borderColor:[e],borderRadius:["none","","full",Ot,D],borderSpacing:U(),borderWidth:Lr(),contrast:Nt(),grayscale:Ja(),hueRotate:Nt(),invert:Ja(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[od,zt],inset:G(),margin:G(),opacity:Nt(),padding:U(),saturate:Nt(),scale:Nt(),sepia:Ja(),skew:Nt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":Hi()}],"break-before":[{"break-before":Hi()}],"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:[...Ei(),D]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-je":[{"overflow-je":N()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-je":[{"overscroll-je":at()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-je":[{"inset-je":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],je:[{je:["auto",Qa,D]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:Ja()}],shrink:[{shrink:Ja()}],order:[{order:["first","last","none",Qa,D]}],"grid-cols":[{"grid-cols":[Za]}],"col-start-end":[{col:["auto",{span:["full",Qa,D]},D]}],"col-start":[{"col-start":Er()}],"col-end":[{"col-end":Er()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Qa,D]},D]}],"row-start":[{"row-start":Er()}],"row-end":[{"row-end":Er()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-je":[{"gap-je":[m]}],"justify-content":[{justify:["normal",...Bo()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bo(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bo(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],je:[{je:[O]}],_r:[{_r:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],je:[{je:[x]}],je:[{je:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-je":[{"space-je":[S]}],"space-je-reverse":["space-je-reverse"],je:[{je:["auto","min","max","fit","svw","lvw","dvw",D,t]}],"min-je":[{"min-je":[D,t,"min","max","fit"]}],"max-je":[{"max-je":[D,t,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[D,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[D,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ho]}],"font-family":[{font:[Za]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",D]}],"line-clamp":[{"line-clamp":["none",Ia,Ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wt,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Br(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wt,zt]}],"underline-offset":[{"underline-offset":["auto",wt,D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ei(),nd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",id]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","je","bl","l","tl"]},cd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-je":[{border:[i]}],"border-je-x":[{"border-x":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-s":[{"border-s":[i]}],"border-je-e":[{"border-e":[i]}],"border-je-t":[{"border-t":[i]}],"border-je-r":[{"border-r":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Br(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-je":[{"divide-je":[i]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Br()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-je":[{"border-je":[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-je":[{"border-je":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Br()]}],"outline-offset":[{"outline-offset":[wt,D]}],"outline-je":[{outline:[wt,zt]}],"outline-color":[{outline:[e]}],"ring-je":[{ring:Lr()}],"ring-je-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-je":[{"ring-offset":[wt,zt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ot,dd]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Bi(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Bi()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ot,D]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[Ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-je":[{"border-spacing-je":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:Nt()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:Nt()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[he]}],"scale-x":[{"scale-x":[he]}],"scale-je":[{"scale-je":[he]}],rotate:[{rotate:[Qa,D]}],"translate-x":[{"translate-x":[H]}],"translate-je":[{"translate-je":[H]}],"skew-x":[{"skew-x":[gt]}],"skew-je":[{"skew-je":[gt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","je-resize","ne-resize","nw-resize","je-resize","sw-resize","ew-resize","je-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","je","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-_r":[{"scroll-_r":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-je":[{"touch-pan":["je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-je":[{stroke:[wt,zt,Ho]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-je"],overscroll:["overscroll-x","overscroll-je"],inset:["inset-x","inset-je","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-je"],p:["px","py","ps","je","_r","pr","pb","pl"],px:["pr","pl"],py:["_r","pb"],m:["mx","my","ms","je","je","mr","mb","ml"],mx:["mr","ml"],my:["je","mb"],size:["je","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-je","rounded-l","rounded-ss","rounded-je","rounded-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-je","rounded-je"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-je":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-je"],"border-je":["border-je-s","border-je-e","border-je-t","border-je-r","border-je-je","border-je-l"],"border-je-x":["border-je-r","border-je-l"],"border-je-je":["border-je-t","border-je-je"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-je","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-je":["border-color-t","border-color-je"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-je","scroll-je","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-je","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-je","scroll-_r","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-_r","scroll-pb"],touch:["touch-x","touch-je","touch-pz"],"touch-x":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Wi=qc(gd);function n(...e){return Wi((0,Xi.clsx)(e))}var je=require("react/jsx-runtime"),Oo=La.forwardRef(({...e},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Oo.displayName="Breadcrumb";var _o=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));_o.displayName="BreadcrumbList";var Go=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Go.displayName="BreadcrumbItem";var Vo=La.forwardRef(({asChild:e,className:t,...a},r)=>(0,je.jsx)(e?ji.Slot:"a",{ref:r,className:n("transition-colors hover:text-foreground",t),...a}));Vo.displayName="BreadcrumbLink";var $o=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));$o.displayName="BreadcrumbPage";var Uo=({children:e,className:t,...a})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:je-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,je.jsx)(Fr.ChevronRightIcon,{})});Uo.displayName="BreadcrumbSeparator";var Wo=({className:e,...t})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(Fr.DotsHorizontalIcon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});Wo.displayName="BreadcrumbElipssis";var Ea=v(require("@radix-ui/react-collapsible")),Ct=Ea.Root,_t=Ea.CollapsibleTrigger,Gt=Ea.CollapsibleContent;var Pt=v(require("react")),L=v(require("@radix-ui/react-dropdown-menu"));var Yi=L.Root,Ki=L.Trigger,qi=L.Group,Ji=L.Portal,Qi=L.Sub,Zi=L.RadioGroup,Xo=Pt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,je.jsxs)(L.SubTrigger,{ref:o,className:n("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,je.jsx)(Fr.ChevronRightIcon,{className:"ml-auto"})]}));Xo.displayName=L.SubTrigger.displayName;var jo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.SubContent,{ref:a,className:n("je-50 min-je-[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}));jo.displayName=L.SubContent.displayName;var Yo=Pt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(L.Portal,{children:(0,je.jsx)(L.Content,{ref:r,sideOffset:t,className:n("je-50 min-je-[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})}));Yo.displayName=L.Content.displayName;var Ko=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Item,{ref:r,className:n("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}));Ko.displayName=L.Item.displayName;var qo=Pt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,je.jsxs)(L.CheckboxItem,{ref:o,className:n("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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.CheckIcon,{className:"h-4 je-4"})})}),t]}));qo.displayName=L.CheckboxItem.displayName;var Jo=Pt.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(L.RadioItem,{ref:r,className:n("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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.DotFilledIcon,{className:"h-4 je-4 fill-current"})})}),t]}));Jo.displayName=L.RadioItem.displayName;var Qo=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Label,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Qo.displayName=L.Label.displayName;var Zo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Zo.displayName=L.Separator.displayName;var es=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});es.displayName="DropdownMenuShortcut";var en=v(require("react"));var Ae=en.forwardRef(({className:e,type:t,...a},r)=>(0,je.jsx)("input",{type:t,className:n("flex h-9 je-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}));Ae.displayName="Input";var an=v(require("react")),ts=v(require("@radix-ui/react-separator"));var er=an.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,je.jsx)(ts.Root,{ref:o,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] je-full":"h-full je-[1px]",e),...r}));er.displayName=ts.Root.displayName;var tr=v(require("react")),te=v(require("@radix-ui/react-dialog")),sn=require("class-variance-authority");var zr=te.Root,nn=te.Trigger,ln=te.Close,as=te.Portal,Or=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Overlay,{className:n("fixed inset-0 je-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}));Or.displayName=te.Overlay.displayName;var fd=(0,sn.cva)("fixed je-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-x-0 top-0 border-je data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-je-0 left-0 h-full je-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-je-sm",right:"inset-je-0 right-0 h-full je-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-je-sm"}},defaultVariants:{side:"right"}}),ar=tr.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,je.jsxs)(as,{children:[(0,je.jsx)(Or,{}),(0,je.jsxs)(te.Content,{ref:o,className:n(fd({side:e}),t),...r,children:[(0,je.jsxs)(te.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,je.jsx)(Fr.Cross2Icon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=te.Content.displayName;var rs=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-2 text-center sm:text-left",e),...t});rs.displayName="SheetHeader";var os=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});os.displayName="SheetFooter";var ss=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ss.displayName=te.Title.displayName;var is=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));is.displayName=te.Description.displayName;var E=v(require("react")),bn=require("lucide-react");var _r=require("react"),Gr=(e=768)=>{let[t,a]=(0,_r.useState)(!1);return(0,_r.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var mn=v(require("react")),Vt=(0,sn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 je-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),k=mn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},s)=>(0,je.jsx)(e?ji.Slot:"button",{className:n(Vt({className:t,size:a,variant:r})),ref:s,...o}));k.displayName="Button";function ae({className:e,...t}){return(0,je.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var gn=v(require("react")),rt=v(require("@radix-ui/react-tooltip"));var Vr=rt.Provider,$r=rt.Root,Ur=rt.Trigger,rr=gn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(rt.Portal,{children:(0,je.jsx)(rt.Content,{ref:r,sideOffset:t,className:n("je-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})}));rr.displayName=rt.Content.displayName;var bd="sidebar:state",vd=60*60*24*7,hd="16rem",yd="18rem",xd="3rem",Nd="je",vn=E.createContext(null);function Fa(){let e=E.useContext(vn);if(!e)throw new Error("useSidebar must je used within a SidebarProvider.");return e}var ls=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:s,...l},i)=>{let d=Gr(),[u,c]=E.useState(!1),[p,m]=E.useState(e),f=t!=null?t:p,h=E.useCallback(O=>{if(a)return a==null?void 0:a(typeof O=="function"?O(f):O);m(O),document.cookie=`${bd}=${f}; path=/; max-age=${vd}`},[a,f]),g=E.useCallback(()=>d?c(O=>!O):h(O=>!O),[d,h,c]);E.useEffect(()=>{let O=Q=>{Q.key===Nd&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),g())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[g]);let x=f?"expanded":"collapsed",A=E.useMemo(()=>({state:x,open:f,setOpen:h,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,f,h,d,u,c,g]);return(0,je.jsx)(vn.Provider,{value:A,children:(0,je.jsx)(Vr,{delayDuration:0,children:(0,je.jsx)("div",{style:{"--sidebar-width":hd,"--sidebar-width-icon":xd,...o},className:n("group/sidebar-wrapper flex je-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...l,children:s})})})});ls.displayName="SidebarProvider";var na=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...s},l)=>{let{isMobile:i,state:d,openMobile:u,setOpenMobile:c}=Fa();return a==="none"?(0,je.jsx)("div",{className:n("flex h-full je-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...s,children:o}):i?(0,je.jsx)(zr,{open:u,onOpenChange:c,...s,children:(0,je.jsx)(ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"je-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":yd},side:e,children:(0,je.jsx)("div",{className:"flex h-full je-full flex-col",children:o})})}):(0,je.jsxs)("div",{ref:l,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,je.jsx)("div",{className:n("duration-200 relative h-svh je-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:je-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4))]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon]")}),(0,je.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 je-10 hidden je-[--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]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4)je+2px)]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:(0,je.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full je-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});na.displayName="Sidebar";var cs=E.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=Fa();return(0,je.jsxs)(k,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 je-7",e),onClick:s=>{t==null||t(s),o()},...a,children:[(0,je.jsx)(bn.PanelLeft,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});cs.displayName="SidebarTrigger";var ds=E.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Fa();return(0,je.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-je-0 je-20 hidden je-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-je-0 after:left-1/2 after:je-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]je&]:cursor-je-resize [[data-side=right]je&]:cursor-e-resize","[[data-side=left][data-state=collapsed]je&]:cursor-e-resize [[data-side=right][data-state=collapsed]je&]:cursor-je-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]je&]:-right-2","[[data-side=right][data-collapsible=offcanvas]je&]:-left-2",e),...t})});ds.displayName="SidebarRail";var ms=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-je-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-je md:peer-data-[variant=inset]:shadow",e),...t}));ms.displayName="SidebarInset";var ps=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ae,{ref:a,"data-sidebar":"input",className:n("h-8 je-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ps.displayName="SidebarInput";var la=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));la.displayName="SidebarHeader";var ca=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));ca.displayName="SidebarFooter";var or=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(er,{ref:a,"data-sidebar":"separator",className:n("mx-2 je-auto bg-sidebar-border",e),...t}));or.displayName="SidebarSeparator";var $t=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));$t.displayName="SidebarContent";var Ye=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex je-full min-je-0 flex-col p-2",e),...t}));Ye.displayName="SidebarGroup";var Rt=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?ji.Slot:"div",{ref:r,"data-sidebar":"group-label",className:n("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]:-je-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Rt.displayName="SidebarGroupLabel";var us=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?ji.Slot:"button",{ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square je-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}));us.displayName="SidebarGroupAction";var ot=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("je-full text-sm",e),...t}));ot.displayName="SidebarGroupContent";var Le=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex je-full min-je-0 flex-col gap-1",e),...t}));Le.displayName="SidebarMenu";var xe=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));xe.displayName="SidebarMenuItem";var wd=(0,sn.cva)("peer/menu-button flex je-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"}}),Ke=E.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:s,...l},i)=>{let d=e?ji.Slot:"button",{isMobile:u,state:c}=Fa(),p=(0,je.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:n(wd({variant:a,size:r}),s),...l});return o?(typeof o=="string"&&(o={children:o}),(0,je.jsxs)($r,{children:[(0,je.jsx)(Ur,{asChild:!0,children:p}),(0,je.jsx)(rr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...o})]})):p});Ke.displayName="SidebarMenuButton";var sr=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,je.jsx)(t?ji.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square je-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}));sr.displayName="SidebarMenuAction";var gs=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-je-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}));gs.displayName="SidebarMenuBadge";var fs=E.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,je.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,je.jsx)(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,je.jsx)(ae,{className:"h-4 flex-1 max-je-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});fs.displayName="SidebarMenuSkeleton";var Ut=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-je-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ut.displayName="SidebarMenuSub";var Wt=E.forwardRef(({...e},t)=>(0,je.jsx)("li",{ref:t,...e}));Wt.displayName="SidebarMenuSubItem";var Xt=E.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},s)=>(0,je.jsx)(e?ji.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-je-0 -translate-x-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}));Xt.displayName="SidebarMenuSubButton";var jr=v(require("react")),Cd=1,Pd=1e6;var bs=0;function Rd(){return bs=(bs+1)%Number.MAX_SAFE_INTEGER,bs.toString()}var vs=new Map,hn=e=>{if(vs.has(e))return;let t=setTimeout(()=>{vs.delete(e),ir({type:"REMOVE_TOAST",toastId:e})},Pd);vs.set(e,t)},Sd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Cd)};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?hn(a):e.toasts.forEach(r=>{hn(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)}}},Wr=[],Xr={toasts:[]};function ir(e){Xr=Sd(Xr,e),Wr.forEach(t=>{t(Xr)})}function kd({...e}){let t=Rd(),a=o=>ir({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ir({type:"DISMISS_TOAST",toastId:t});return ir({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Yr(){let[e,t]=jr.useState(Xr);return jr.useEffect(()=>(Wr.push(t),()=>{let a=Wr.indexOf(t);a>-1&&Wr.splice(a,1)}),[e]),{...e,toast:kd,dismiss:a=>ir({type:"DISMISS_TOAST",toastId:a})}}var da=v(require("react")),ne=v(require("@radix-ui/react-toast"));var Kr=ne.Provider,nr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Viewport,{ref:a,className:n("fixed top-0 je-[100] flex max-h-screen je-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-je-[420px]",e),...t}));nr.displayName=ne.Viewport.displayName;var Td=(0,sn.cva)("group pointer-events-auto relative flex je-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] 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"}}),lr=da.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)(ne.Root,{ref:r,className:n(Td({variant:t}),e),...a}));lr.displayName=ne.Root.displayName;var hs=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Action,{ref:a,className:n("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}));hs.displayName=ne.Action.displayName;var cr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Close,{ref:a,className:n("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,je.jsx)(bn.je,{className:"h-4 je-4"})}));cr.displayName=ne.Close.displayName;var dr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));dr.displayName=ne.Title.displayName;var mr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));mr.displayName=ne.Description.displayName;function Nn(){let{toasts:e}=Yr();return(0,je.jsxs)(Kr,{children:[e.map(function({id:t,title:a,description:r,action:o,...s}){return(0,je.jsxs)(lr,{...s,children:[(0,je.jsxs)("div",{className:"grid gap-1",children:[a&&(0,je.jsx)(dr,{children:a}),r&&(0,je.jsx)(mr,{children:r})]}),o,(0,je.jsx)(cr,{})]},t)}),(0,je.jsx)(nr,{})]})}var wn=v(require("react")),ys=v(require("@radix-ui/react-toggle"));var pr=(0,sn.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=Fr]:bg-accent data-[state=Fr]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-je-9",sm:"h-8 px-1.5 min-je-8",lg:"h-10 px-2.5 min-je-10"}},defaultVariants:{variant:"default",size:"default"}}),xs=wn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,je.jsx)(ys.Root,{ref:o,className:n(pr({variant:t,size:a,className:e})),...r}));xs.displayName=ys.Root.displayName;var ma=v(require("react")),za=v(require("@radix-ui/react-toggle-group"));var Rn=ma.createContext({size:"default",variant:"default"}),Ns=ma.forwardRef(({className:e,variant:t,size:a,children:r,...o},s)=>(0,je.jsx)(za.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...o,children:(0,je.jsx)(Rn.Provider,{value:{variant:t,size:a},children:r})}));Ns.displayName=za.Root.displayName;var ws=ma.forwardRef(({className:e,children:t,variant:a,size:r,...o},s)=>{let l=ma.useContext(Rn);return(0,je.jsx)(za.Item,{ref:s,className:n(pr({variant:l.variant||a,size:l.size||r}),e),...o,children:t})});ws.displayName=za.Item.displayName;var Cs=v(require("react")),qe=v(require("@radix-ui/react-scroll-area"));var Kt=Cs.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(qe.Root,{ref:r,className:n("relative overflow-hidden",e),...a,children:[(0,je.jsx)(qe.Viewport,{className:"h-full je-full rounded-[inherit]",children:t}),(0,je.jsx)(Jr,{}),(0,je.jsx)(qe.Corner,{})]}));Kt.displayName=qe.Root.displayName;var Jr=Cs.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,je.jsx)(qe.ScrollAreaScrollbar,{ref:r,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full je-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,je.jsx)(qe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Jr.displayName=qe.ScrollAreaScrollbar.displayName;var Sn=v(require("react")),st=v(require("@radix-ui/react-popover"));var ur=st.Root,gr=st.Trigger,kn=st.Anchor,Oa=Sn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(st.Portal,{children:(0,je.jsx)(st.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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})}));Oa.displayName=st.Content.displayName;var Tn=v(require("react")),Rs=v(require("@radix-ui/react-label"));var Dd=(0,sn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=Tn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Rs.Root,{ref:a,className:n(Dd(),e),...t}));J.displayName=Rs.Root.displayName;var In=v(require("react")),pa=v(require("@radix-ui/react-hover-card"));var An=pa.Root,Ln=pa.Trigger,Ss=In.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(pa.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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}));Ss.displayName=pa.Content.displayName;var fr=v(require("react")),re=v(require("@radix-ui/react-dialog"));var Je=re.Root,Qr=re.Trigger,ks=re.Portal,Zr=re.Close,eo=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Overlay,{ref:a,className:n("fixed inset-0 je-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}));eo.displayName=re.Overlay.displayName;var Ve=fr.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(ks,{children:[(0,je.jsx)(eo,{}),(0,je.jsxs)(re.Content,{ref:r,className:n("fixed left-[50%] top-[50%] je-50 grid je-full max-je-lg translate-x-[-50%] translate-je-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-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,je.jsxs)(re.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,je.jsx)(bn.je,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ve.displayName=re.Content.displayName;var it=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-1.5 text-center sm:text-left",e),...t});it.displayName="DialogHeader";var Ts=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ts.displayName="DialogFooter";var nt=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=re.Title.displayName;var Ds=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ds.displayName=re.Description.displayName;var qt=v(require("react")),ke=require("cmdk");var to=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command,{ref:a,className:n("flex h-full je-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));to.displayName=ke.Command.displayName;var Fn=({children:e,...t})=>(0,je.jsx)(Je,{...t,children:(0,je.jsx)(Ve,{className:"overflow-hidden p-0",children:(0,je.jsx)(to,{className:"[&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground [&je[cmdk-group]:not([hidden])je~[cmdk-group]]:_r-0 [&je[cmdk-group]]:px-2 [&je[cmdk-input-wrapper]_svg]:h-5 [&je[cmdk-input-wrapper]_svg]:je-5 [&je[cmdk-input]]:h-12 [&je[cmdk-item]]:px-2 [&je[cmdk-item]]:py-3 [&je[cmdk-item]_svg]:h-5 [&je[cmdk-item]_svg]:je-5",children:e})})}),Ms=qt.forwardRef(({className:e,...t},a)=>(0,je.jsxs)("div",{className:"flex items-center border-je px-3","cmdk-input-wrapper":"",children:[(0,je.jsx)(bn.Search,{className:"mr-2 h-4 je-4 shrink-0 opacity-50"}),(0,je.jsx)(ke.Command.Input,{ref:a,className:n("flex h-10 je-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ms.displayName=ke.Command.Input.displayName;var Is=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.List,{ref:a,className:n("max-h-[300px] overflow-je-auto overflow-x-hidden",e),...t}));Is.displayName=ke.Command.List.displayName;var As=qt.forwardRef((e,t)=>(0,je.jsx)(ke.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));As.displayName=ke.Command.Empty.displayName;var Ls=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:py-1.5 [&je[cmdk-group-heading]]:text-xs [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ls.displayName=ke.Command.Group.displayName;var Es=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Es.displayName=ke.Command.Separator.displayName;var Bs=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Item,{ref:a,className:n("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}));Bs.displayName=ke.Command.Item.displayName;var Hs=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Hs.displayName="CommandShortcut";var ao=v(require("react"));var Md=(0,sn.cva)("relative je-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-je-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Fs=ao.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)("div",{ref:r,role:"alert",className:n(Md({variant:t}),e),...a}));Fs.displayName="Alert";var zs=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));zs.displayName="AlertTitle";var Os=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Os.displayName="AlertDescription";var oo=v(require("react")),kt=v(require("@radix-ui/react-avatar"));var Tt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Root,{ref:a,className:n("relative flex h-10 je-10 shrink-0 overflow-hidden rounded-full",e),...t}));Tt.displayName=kt.Root.displayName;var Dt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Image,{ref:a,className:n("aspect-square h-full je-full",e),...t}));Dt.displayName=kt.Image.displayName;var Mt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Fallback,{ref:a,className:n("flex h-full je-full items-center justify-center rounded-full bg-muted",e),...t}));Mt.displayName=kt.Fallback.displayName;var _s=(0,sn.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 Qe({className:e,variant:t,...a}){return(0,je.jsx)("div",{className:n(_s({variant:t}),e),...a})}var br=v(require("@radix-ui/react-checkbox")),Vn=v(require("react")),lt=Vn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(br.Root,{className:n("peer h-4 je-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,je.jsx)(br.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,je.jsx)(bn.Check,{className:"h-4 je-4"})})}));lt.displayName=br.Root.displayName;var F=v(require("@radix-ui/react-select")),Jt=v(require("react")),ga=F.Root,Id=F.Group,fa=F.Value,Qt=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Trigger,{className:n("flex h-10 je-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...a,children:[e,(0,je.jsx)(F.Icon,{asChild:!0,children:(0,je.jsx)(bn.ChevronDown,{className:"h-4 je-4 opacity-50"})})]}));Qt.displayName=F.Trigger.displayName;var Gs=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(bn.ChevronUp,{className:"h-4 je-4"})}));Gs.displayName=F.ScrollUpButton.displayName;var Vs=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(bn.ChevronDown,{className:"h-4 je-4"})}));Vs.displayName=F.ScrollDownButton.displayName;var Zt=Jt.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,je.jsx)(F.Portal,{children:(0,je.jsxs)(F.Content,{className:n("relative je-50 max-h-96 min-je-[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-je-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-je-1",t),position:a,ref:o,...r,children:[(0,je.jsx)(Gs,{}),(0,je.jsx)(F.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] je-full min-je-[var(--radix-select-trigger-width)]"),children:e}),(0,je.jsx)(Vs,{})]})}));Zt.displayName=F.Content.displayName;var $n=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));$n.displayName=F.Label.displayName;var ea=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Item,{className:n("relative flex je-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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(F.ItemIndicator,{children:(0,je.jsx)(bn.Check,{className:"h-4 je-4"})})}),(0,je.jsx)(F.ItemText,{children:e})]}));ea.displayName=F.Item.displayName;var Un=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Un.displayName=F.Separator.displayName;var Wn=v(require("react")),ta=Wn.forwardRef(({className:e,...t},a)=>(0,je.jsx)("textarea",{className:n("flex min-h-[80px] je-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ta.displayName="Textarea";var jn=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,je.jsx)(jn.DayPicker,{showOutsideDays:a,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-je-4 sm:space-x-4 sm:space-je-0",month:"space-je-4",caption:"flex justify-center _r-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:n(Vt({variant:"outline"}),"h-7 je-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"je-full border-collapse space-je-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md je-8 font-normal text-[0.8rem]",row:"flex je-full je-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:je-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:n(Vt({variant:"ghost"}),"h-8 je-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...r})}vr.displayName="Calendar";var Ee=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=r!=null?r:"",i=o+s+" fa-"+a+" "+l;return(0,je.jsx)("i",{className:i})};var qn=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,je.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,je.jsx)("div",{className:"je-12 h-12 ",children:(0,je.jsx)(Ee,{type:r,iconName:a,className:"je-12 h-12 text-white"})}),(0,je.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,je.jsx)("p",{className:"text-white text-sm",children:t})]});var Jn=v(require("next/image")),Qn=v(require("next/link"));var va=v(require("react"));var ge=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("rounded-je border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Be=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex flex-col space-je-1.5 p-6",e),...t}));Be.displayName="CardHeader";var He=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));He.displayName="CardTitle";var Ad=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ad.displayName="CardDescription";var Ne=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("p-6 _r-0",e),...t}));Ne.displayName="CardContent";var Ld=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex items-center p-6 _r-0",e),...t}));Ld.displayName="CardFooter";function Zn({name:e,logo:t,href:a}){return(0,je.jsx)(ge,{className:"je-full max-je-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,je.jsxs)(Qn.default,{href:a,className:"block",children:[(0,je.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,je.jsx)("div",{className:"relative je-full h-full",children:t&&(0,je.jsx)(Jn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,je.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,je.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function el({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let s=i=>{switch(i){case"birthday":return(0,je.jsx)(bn.Cake,{className:"h-4 je-4"});case"workAnniversary":return(0,je.jsx)(bn.Award,{className:"h-4 je-4"});case"companyEvent":return(0,je.jsx)(bn.PartyPopper,{className:"h-4 je-4"});default:return(0,je.jsx)(bn.CalendarDays,{className:"h-4 je-4"})}},l=i=>{switch(i){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,je.jsxs)(ge,{className:`je-full max-je-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,je.jsxs)(Be,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,je.jsxs)(Tt,{className:"h-14 je-14 border-2 border-white",children:[(0,je.jsx)(Dt,{src:o,alt:a||"Event"}),(0,je.jsx)(Mt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,je.jsxs)("div",{className:"flex flex-col",children:[(0,je.jsx)(He,{className:"text-je",children:a||"Untitled Event"}),(0,je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,je.jsx)(bn.CalendarDays,{className:"mr-1 inline-block h-4 je-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,je.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,je.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,je.jsxs)(Qe,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-je])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var al=v(require("next/link"));var rl=v(require("next/image")),tl={sm:"640px",md:"768px",lg:"1024px",je:"1280px","2xl":"1400px"};function ol({slug:e,image:t,title:a,description:r}){return(0,je.jsxs)(al.default,{href:e,className:"group/portfolio relative je-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,je.jsx)("span",{className:n("absolute inset-0 je-[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,je.jsx)(rl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
- (min-width:${tl.md}) 50vw,
8
- (min-width:${tl.lg}) 25vw,
6
+ "use strict";var Ic=Object.create;var Hr=Object.defineProperty;var Ac=Object.getOwnPropertyDescriptor;var Lc=Object.getOwnPropertyNames;var Ec=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty;var Hc=(e,t)=>{for(var a in t)Hr(e,a,{get:t[a],enumerable:!0})},zi=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Lc(t))!Bc.call(e,o)&&o!==a&&Hr(e,o,{get:()=>t[o],enumerable:!(r=Ac(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?Ic(Ec(e)):{},zi(t||!e||!e.__esModule?Hr(a,"default",{value:e,enumerable:!0}):a,e)),Fc=e=>zi(Hr({},"__esModule",{value:!0}),e);var Om={};Hc(Om,{Alert:()=>Fs,AlertDescription:()=>Os,AlertTitle:()=>zs,ApproveLeave:()=>Pi,Avatar:()=>Tt,AvatarFallback:()=>Mt,AvatarImage:()=>Dt,Badge:()=>Qe,BannerBlock:()=>Us,BlogCard:()=>$l,BlogList:()=>sm,BrandLogo:()=>oa,Breadcrumb:()=>Oo,BreadcrumbEllipsis:()=>Wo,BreadcrumbItem:()=>Go,BreadcrumbLink:()=>Vo,BreadcrumbList:()=>_o,BreadcrumbPage:()=>$o,BreadcrumbSeparator:()=>Uo,Breadcrumbs:()=>hi,Button:()=>k,CMSLink:()=>ft,CRMKanbanBoard:()=>zm,Calendar:()=>vr,CalendarView:()=>Di,CallToActionBlock:()=>yr,Card:()=>Rr,Categories:()=>ym,Checkbox:()=>lt,CodeBlock:()=>Ys,Collapsible:()=>Ct,CollapsibleContent:()=>Gt,CollapsibleTrigger:()=>_t,CollectionArchive:()=>im,Command:()=>to,CommandDialog:()=>zn,CommandEmpty:()=>As,CommandGroup:()=>Ls,CommandInput:()=>Ms,CommandItem:()=>Bs,CommandList:()=>Is,CommandSeparator:()=>Es,CommandShortcut:()=>Hs,Container:()=>wa,ContentBlock:()=>ti,ContentCard:()=>ei,CopyButton:()=>Xs,CustomLink:()=>we,CustomerCard:()=>el,DealCard:()=>Ii,DealDetails:()=>Mi,Dialog:()=>Je,DialogClose:()=>Zr,DialogContent:()=>Ve,DialogDescription:()=>Ds,DialogFooter:()=>Ts,DialogHeader:()=>it,DialogOverlay:()=>eo,DialogPortal:()=>ks,DialogTitle:()=>nt,DialogTrigger:()=>Qr,DropdownMenu:()=>Ki,DropdownMenuCheckboxItem:()=>qo,DropdownMenuContent:()=>Yo,DropdownMenuGroup:()=>Ji,DropdownMenuItem:()=>Ko,DropdownMenuLabel:()=>Qo,DropdownMenuPortal:()=>Qi,DropdownMenuRadioGroup:()=>en,DropdownMenuRadioItem:()=>Jo,DropdownMenuSeparator:()=>Zo,DropdownMenuShortcut:()=>es,DropdownMenuSub:()=>Zi,DropdownMenuSubContent:()=>jo,DropdownMenuSubTrigger:()=>Xo,DropdownMenuTrigger:()=>qi,DynamicIcon:()=>Ee,EventCard:()=>tl,FeatureCard:()=>Jn,FeatureGrid:()=>xl,FeaturesBlock:()=>xr,Filter:()=>xm,Footer:()=>Im,Header:()=>Am,HeaderDesktop:()=>Dr,HeaderMobile:()=>Mr,HeadingImage:()=>em,Hero:()=>Gd,HighImpactHero:()=>ui,HolidayGrid:()=>Ti,HolidayTracker:()=>Hm,HoverCard:()=>Ln,HoverCardContent:()=>Ss,HoverCardTrigger:()=>En,Image:()=>il,ImageBlock:()=>Zs,InfoTile:()=>Xd,Input:()=>Ae,Insight:()=>Wd,KanbanColumn:()=>Ei,Label:()=>J,Logo:()=>nm,LowImpactHero:()=>bi,MOTD:()=>Yd,Media:()=>Et,MediaBlock:()=>_a,MediumImpactHero:()=>fi,NewCustomerForm:()=>Ai,NewDealForm:()=>Li,NewsGrid:()=>Ll,OrgChart:()=>Jd,PageRange:()=>dm,Pagination:()=>hm,PayloadPagination:()=>mm,Popover:()=>ur,PopoverAnchor:()=>Tn,PopoverContent:()=>Oa,PopoverTrigger:()=>gr,PostHero:()=>wm,PricingCard:()=>_d,ProjectCard:()=>sl,ProjectTeam:()=>bm,ProposalSummary:()=>Qd,RelatedContent:()=>vm,RelatedPosts:()=>rm,RenderBlocks:()=>Pr,RenderHero:()=>Pm,RequestLeave:()=>ki,ReusableContentBlock:()=>ai,RichText:()=>Z,ScrollArea:()=>Kt,ScrollBar:()=>Jr,SectionHero:()=>vi,Select:()=>ga,SelectContent:()=>Zt,SelectGroup:()=>Id,SelectItem:()=>ea,SelectLabel:()=>Un,SelectScrollDownButton:()=>Vs,SelectScrollUpButton:()=>Gs,SelectSeparator:()=>Wn,SelectTrigger:()=>Qt,SelectValue:()=>fa,Separator:()=>er,ServiceCard:()=>Od,Sheet:()=>zr,SheetClose:()=>cn,SheetContent:()=>ar,SheetDescription:()=>is,SheetFooter:()=>os,SheetHeader:()=>rs,SheetOverlay:()=>Or,SheetPortal:()=>as,SheetTitle:()=>ss,SheetTrigger:()=>ln,Sidebar:()=>na,SidebarContent:()=>$t,SidebarFooter:()=>ca,SidebarGroup:()=>Ye,SidebarGroupAction:()=>us,SidebarGroupContent:()=>ot,SidebarGroupLabel:()=>Rt,SidebarHeader:()=>la,SidebarInput:()=>ps,SidebarInset:()=>ms,SidebarLeft:()=>pm,SidebarMenu:()=>Le,SidebarMenuAction:()=>sr,SidebarMenuBadge:()=>gs,SidebarMenuButton:()=>Ke,SidebarMenuItem:()=>xe,SidebarMenuSkeleton:()=>fs,SidebarMenuSub:()=>Ut,SidebarMenuSubButton:()=>Xt,SidebarMenuSubItem:()=>Wt,SidebarProvider:()=>ls,SidebarRail:()=>ds,SidebarRight:()=>fm,SidebarSeparator:()=>or,SidebarTrigger:()=>cs,SimpleHeader:()=>Sm,Skeleton:()=>ae,SlideShow:()=>Ml,TextAndImages:()=>El,Textarea:()=>ta,ThemeProvider:()=>Lm,Toast:()=>lr,ToastAction:()=>hs,ToastClose:()=>cr,ToastDescription:()=>mr,ToastProvider:()=>Kr,ToastTitle:()=>dr,ToastViewport:()=>nr,Toaster:()=>wn,Toggle:()=>xs,ToggleGroup:()=>Ns,ToggleGroupItem:()=>ws,Tooltip:()=>$r,TooltipContent:()=>rr,TooltipProvider:()=>Vr,TooltipTrigger:()=>Ur,VideoHeader:()=>Dm,WhyUs:()=>Zd,badgeVariants:()=>_s,buttonVariants:()=>Vt,toggleVariants:()=>pr,useIsMobile:()=>Gr,useSidebar:()=>Fa,useToast:()=>Yr});module.exports=Fc(Om);var La=v(require("react")),Fr=require("@radix-ui/react-icons"),Yi=require("@radix-ui/react-slot");var ji=require("clsx");var zo="-",zc=e=>{let t=_c(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let i=l.split(zo);return i[0]===""&&i.length!==1&&i.shift(),Gi(i,t)||Oc(l)},getConflictingClassGroupIds:(l,i)=>{let d=a[l]||[];return i&&r[l]?[...d,...r[l]]:d}}},Gi=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Gi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let s=e.join(zo);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Oi=/^\[(.+)\]$/,Oc=e=>{if(Oi.test(e)){let t=Oi.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},_c=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Vc(Object.entries(e.classGroups),a).forEach(([s,l])=>{Fo(l,r,s,t)}),r},Fo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let s=o===""?t:_i(t,o);s.classGroupId=a;return}if(typeof o=="function"){if(Gc(o)){Fo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([s,l])=>{Fo(l,_i(t,s),a,r)})})},_i=(e,t)=>{let a=e;return t.split(zo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Gc=e=>e.isThemeGetter,Vc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,o]}):e,$c=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,r=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){a.has(s)?a.set(s,l):o(s,l)}}},Vi="!",Uc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],s=t.length,l=i=>{let d=[],u=0,c=0,p;for(let x=0;x<i.length;x++){let A=i[x];if(u===0){if(A===o&&(r||i.slice(x,x+s)===t)){d.push(i.slice(c,x)),c=x+s;continue}if(A==="/"){p=x;continue}}A==="["?u++:A==="]"&&u--}let m=d.length===0?i:i.substring(c),f=m.startsWith(Vi),h=f?m.substring(1):m,g=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:l}):l},Wc=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},Xc=e=>({cache:$c(e.cacheSize),parseClassName:Uc(e),...zc(e)}),jc=/\s+/,Yc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(jc),i="";for(let d=l.length-1;d>=0;d-=1){let u=l[d],{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:f}=a(u),h=!!f,g=r(h?m.substring(0,f):m);if(!g){if(!h){i=u+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=u+(i.length>0?" "+i:i);continue}h=!1}let x=Wc(c).join(":"),A=p?x+Vi:x,O=A+g;if(s.includes(O))continue;s.push(O);let Q=o(g,h);for(let he=0;he<Q.length;++he){let Ie=Q[he];s.push(A+Ie)}i=u+(i.length>0?" "+i:i)}return i};function Kc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=$i(t))&&(r&&(r+=" "),r+=a);return r}var $i=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=$i(e[r]))&&(a&&(a+=" "),a+=t);return a};function qc(e,...t){let a,r,o,s=l;function l(d){let u=t.reduce((c,p)=>p(c),e());return a=Xc(u),r=a.cache.get,o=a.cache.set,s=i,i(d)}function i(d){let u=r(d);if(u)return u;let c=Yc(d,a);return o(d,c),c}return function(){return s(Kc.apply(null,arguments))}}var q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ui=/^\[(?:([a-je-]+):)?(.+)\]$/i,Jc=/^\d+\/\d+$/,Qc=new Set(["px","full","screen"]),Zc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ed=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|_r|dc|in|cm|mm|cap|ch|ex|r?lh|cq(je|h|i|je|min|max))|\je(calc|min|max|clamp)\(.+\)|^0$/,td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-je]+|0)je-?((\d+)?\.?(\d+)[a-je]+|0)/,rd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ia(e)||Qc.has(e)||Jc.test(e),zt=e=>Aa(e,"length",md),Ia=e=>!!e&&!Number.isNaN(Number(e)),Ho=e=>Aa(e,"number",Ia),Qa=e=>!!e&&Number.isInteger(Number(e)),od=e=>e.endsWith("%")&&Ia(e.slice(0,-1)),D=e=>Ui.test(e),Ot=e=>Zc.test(e),sd=new Set(["length","size","percentage"]),id=e=>Aa(e,sd,Wi),nd=e=>Aa(e,"position",Wi),ld=new Set(["image","url"]),cd=e=>Aa(e,ld,ud),dd=e=>Aa(e,"",pd),Za=()=>!0,Aa=(e,t,a)=>{let r=Ui.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},md=e=>ed.test(e)&&!td.test(e),Wi=()=>!1,pd=e=>ad.test(e),ud=e=>rd.test(e);var gd=()=>{let e=q("colors"),t=q("spacing"),a=q("blur"),r=q("brightness"),o=q("borderColor"),s=q("borderRadius"),l=q("borderSpacing"),i=q("borderWidth"),d=q("contrast"),u=q("grayscale"),c=q("hueRotate"),p=q("invert"),m=q("gap"),f=q("gradientColorStops"),h=q("gradientColorStopPositions"),g=q("inset"),x=q("margin"),A=q("opacity"),O=q("padding"),Q=q("saturate"),he=q("scale"),Ie=q("sepia"),gt=q("skew"),S=q("space"),H=q("translate"),at=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",D,t],U=()=>[D,t],Lr=()=>["",wt,zt],Er=()=>["auto",Ia,D],Bi=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Br=()=>["solid","dashed","dotted","double","none"],Hi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bo=()=>["start","end","center","between","around","evenly","stretch"],Ja=()=>["","0",D],Fi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Nt=()=>[Ia,D];return{cacheSize:500,separator:":",theme:{colors:[Za],spacing:[wt,zt],blur:["none","",Ot,D],brightness:Nt(),borderColor:[e],borderRadius:["none","","full",Ot,D],borderSpacing:U(),borderWidth:Lr(),contrast:Nt(),grayscale:Ja(),hueRotate:Nt(),invert:Ja(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[od,zt],inset:G(),margin:G(),opacity:Nt(),padding:U(),saturate:Nt(),scale:Nt(),sepia:Ja(),skew:Nt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":Fi()}],"break-before":[{"break-before":Fi()}],"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:[...Bi(),D]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-je":[{"overflow-je":N()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-je":[{"overscroll-je":at()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-je":[{"inset-je":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],je:[{je:["auto",Qa,D]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:Ja()}],shrink:[{shrink:Ja()}],order:[{order:["first","last","none",Qa,D]}],"grid-cols":[{"grid-cols":[Za]}],"col-start-end":[{col:["auto",{span:["full",Qa,D]},D]}],"col-start":[{"col-start":Er()}],"col-end":[{"col-end":Er()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Qa,D]},D]}],"row-start":[{"row-start":Er()}],"row-end":[{"row-end":Er()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-je":[{"gap-je":[m]}],"justify-content":[{justify:["normal",...Bo()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bo(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bo(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],je:[{je:[O]}],_r:[{_r:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],je:[{je:[x]}],je:[{je:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-je":[{"space-je":[S]}],"space-je-reverse":["space-je-reverse"],je:[{je:["auto","min","max","fit","svw","lvw","dvw",D,t]}],"min-je":[{"min-je":[D,t,"min","max","fit"]}],"max-je":[{"max-je":[D,t,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[D,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[D,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ho]}],"font-family":[{font:[Za]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",D]}],"line-clamp":[{"line-clamp":["none",Ia,Ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wt,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Br(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wt,zt]}],"underline-offset":[{"underline-offset":["auto",wt,D]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Bi(),nd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",id]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","je","bl","l","tl"]},cd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-je":[{border:[i]}],"border-je-x":[{"border-x":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-s":[{"border-s":[i]}],"border-je-e":[{"border-e":[i]}],"border-je-t":[{"border-t":[i]}],"border-je-r":[{"border-r":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Br(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-je":[{"divide-je":[i]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Br()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-je":[{"border-je":[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-je":[{"border-je":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Br()]}],"outline-offset":[{"outline-offset":[wt,D]}],"outline-je":[{outline:[wt,zt]}],"outline-color":[{outline:[e]}],"ring-je":[{ring:Lr()}],"ring-je-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-je":[{"ring-offset":[wt,zt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ot,dd]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Hi(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Hi()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ot,D]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[Ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-je":[{"border-spacing-je":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:Nt()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:Nt()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[he]}],"scale-x":[{"scale-x":[he]}],"scale-je":[{"scale-je":[he]}],rotate:[{rotate:[Qa,D]}],"translate-x":[{"translate-x":[H]}],"translate-je":[{"translate-je":[H]}],"skew-x":[{"skew-x":[gt]}],"skew-je":[{"skew-je":[gt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","je-resize","ne-resize","nw-resize","je-resize","sw-resize","ew-resize","je-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","je","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-je":[{"scroll-je":U()}],"scroll-_r":[{"scroll-_r":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-je":[{"touch-pan":["je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-je":[{stroke:[wt,zt,Ho]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-je"],overscroll:["overscroll-x","overscroll-je"],inset:["inset-x","inset-je","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-je"],p:["px","py","ps","je","_r","pr","pb","pl"],px:["pr","pl"],py:["_r","pb"],m:["mx","my","ms","je","je","mr","mb","ml"],mx:["mr","ml"],my:["je","mb"],size:["je","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-je","rounded-l","rounded-ss","rounded-je","rounded-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-je","rounded-je"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-je":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-je"],"border-je":["border-je-s","border-je-e","border-je-t","border-je-r","border-je-je","border-je-l"],"border-je-x":["border-je-r","border-je-l"],"border-je-je":["border-je-t","border-je-je"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-je","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-je":["border-color-t","border-color-je"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-je","scroll-je","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-je","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-je","scroll-_r","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-_r","scroll-pb"],touch:["touch-x","touch-je","touch-pz"],"touch-x":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Xi=qc(gd);function n(...e){return Xi((0,ji.clsx)(e))}var je=require("react/jsx-runtime"),Oo=La.forwardRef(({...e},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Oo.displayName="Breadcrumb";var _o=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));_o.displayName="BreadcrumbList";var Go=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Go.displayName="BreadcrumbItem";var Vo=La.forwardRef(({asChild:e,className:t,...a},r)=>(0,je.jsx)(e?Yi.Slot:"a",{ref:r,className:n("transition-colors hover:text-foreground",t),...a}));Vo.displayName="BreadcrumbLink";var $o=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));$o.displayName="BreadcrumbPage";var Uo=({children:e,className:t,...a})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:je-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,je.jsx)(Fr.ChevronRightIcon,{})});Uo.displayName="BreadcrumbSeparator";var Wo=({className:e,...t})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(Fr.DotsHorizontalIcon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});Wo.displayName="BreadcrumbElipssis";var Ea=v(require("@radix-ui/react-collapsible")),Ct=Ea.Root,_t=Ea.CollapsibleTrigger,Gt=Ea.CollapsibleContent;var Pt=v(require("react")),L=v(require("@radix-ui/react-dropdown-menu"));var Ki=L.Root,qi=L.Trigger,Ji=L.Group,Qi=L.Portal,Zi=L.Sub,en=L.RadioGroup,Xo=Pt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,je.jsxs)(L.SubTrigger,{ref:o,className:n("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,je.jsx)(Fr.ChevronRightIcon,{className:"ml-auto"})]}));Xo.displayName=L.SubTrigger.displayName;var jo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.SubContent,{ref:a,className:n("je-50 min-je-[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}));jo.displayName=L.SubContent.displayName;var Yo=Pt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(L.Portal,{children:(0,je.jsx)(L.Content,{ref:r,sideOffset:t,className:n("je-50 min-je-[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})}));Yo.displayName=L.Content.displayName;var Ko=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Item,{ref:r,className:n("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}));Ko.displayName=L.Item.displayName;var qo=Pt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,je.jsxs)(L.CheckboxItem,{ref:o,className:n("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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.CheckIcon,{className:"h-4 je-4"})})}),t]}));qo.displayName=L.CheckboxItem.displayName;var Jo=Pt.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(L.RadioItem,{ref:r,className:n("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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.DotFilledIcon,{className:"h-4 je-4 fill-current"})})}),t]}));Jo.displayName=L.RadioItem.displayName;var Qo=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Label,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Qo.displayName=L.Label.displayName;var Zo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Zo.displayName=L.Separator.displayName;var es=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});es.displayName="DropdownMenuShortcut";var tn=v(require("react"));var Ae=tn.forwardRef(({className:e,type:t,...a},r)=>(0,je.jsx)("input",{type:t,className:n("flex h-9 je-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}));Ae.displayName="Input";var rn=v(require("react")),ts=v(require("@radix-ui/react-separator"));var er=rn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,je.jsx)(ts.Root,{ref:o,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] je-full":"h-full je-[1px]",e),...r}));er.displayName=ts.Root.displayName;var tr=v(require("react")),te=v(require("@radix-ui/react-dialog")),nn=require("class-variance-authority");var zr=te.Root,ln=te.Trigger,cn=te.Close,as=te.Portal,Or=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Overlay,{className:n("fixed inset-0 je-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}));Or.displayName=te.Overlay.displayName;var fd=(0,nn.cva)("fixed je-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-x-0 top-0 border-je data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-je-0 left-0 h-full je-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-je-sm",right:"inset-je-0 right-0 h-full je-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-je-sm"}},defaultVariants:{side:"right"}}),ar=tr.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,je.jsxs)(as,{children:[(0,je.jsx)(Or,{}),(0,je.jsxs)(te.Content,{ref:o,className:n(fd({side:e}),t),...r,children:[(0,je.jsxs)(te.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,je.jsx)(Fr.Cross2Icon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=te.Content.displayName;var rs=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-2 text-center sm:text-left",e),...t});rs.displayName="SheetHeader";var os=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});os.displayName="SheetFooter";var ss=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ss.displayName=te.Title.displayName;var is=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));is.displayName=te.Description.displayName;var E=v(require("react")),vn=require("lucide-react");var _r=require("react"),Gr=(e=768)=>{let[t,a]=(0,_r.useState)(!1);return(0,_r.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var pn=v(require("react")),Vt=(0,nn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 je-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),k=pn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},s)=>(0,je.jsx)(e?Yi.Slot:"button",{className:n(Vt({className:t,size:a,variant:r})),ref:s,...o}));k.displayName="Button";function ae({className:e,...t}){return(0,je.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var fn=v(require("react")),rt=v(require("@radix-ui/react-tooltip"));var Vr=rt.Provider,$r=rt.Root,Ur=rt.Trigger,rr=fn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(rt.Portal,{children:(0,je.jsx)(rt.Content,{ref:r,sideOffset:t,className:n("je-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})}));rr.displayName=rt.Content.displayName;var bd="sidebar:state",vd=60*60*24*7,hd="16rem",yd="18rem",xd="3rem",Nd="je",hn=E.createContext(null);function Fa(){let e=E.useContext(hn);if(!e)throw new Error("useSidebar must je used within a SidebarProvider.");return e}var ls=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:s,...l},i)=>{let d=Gr(),[u,c]=E.useState(!1),[p,m]=E.useState(e),f=t!=null?t:p,h=E.useCallback(O=>{if(a)return a==null?void 0:a(typeof O=="function"?O(f):O);m(O),document.cookie=`${bd}=${f}; path=/; max-age=${vd}`},[a,f]),g=E.useCallback(()=>d?c(O=>!O):h(O=>!O),[d,h,c]);E.useEffect(()=>{let O=Q=>{Q.key===Nd&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),g())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[g]);let x=f?"expanded":"collapsed",A=E.useMemo(()=>({state:x,open:f,setOpen:h,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[x,f,h,d,u,c,g]);return(0,je.jsx)(hn.Provider,{value:A,children:(0,je.jsx)(Vr,{delayDuration:0,children:(0,je.jsx)("div",{style:{"--sidebar-width":hd,"--sidebar-width-icon":xd,...o},className:n("group/sidebar-wrapper flex je-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...l,children:s})})})});ls.displayName="SidebarProvider";var na=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...s},l)=>{let{isMobile:i,state:d,openMobile:u,setOpenMobile:c}=Fa();return a==="none"?(0,je.jsx)("div",{className:n("flex h-full je-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...s,children:o}):i?(0,je.jsx)(zr,{open:u,onOpenChange:c,...s,children:(0,je.jsx)(ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"je-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":yd},side:e,children:(0,je.jsx)("div",{className:"flex h-full je-full flex-col",children:o})})}):(0,je.jsxs)("div",{ref:l,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,je.jsx)("div",{className:n("duration-200 relative h-svh je-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:je-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4))]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon]")}),(0,je.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 je-10 hidden je-[--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]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4)je+2px)]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:(0,je.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full je-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});na.displayName="Sidebar";var cs=E.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=Fa();return(0,je.jsxs)(k,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 je-7",e),onClick:s=>{t==null||t(s),o()},...a,children:[(0,je.jsx)(vn.PanelLeft,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});cs.displayName="SidebarTrigger";var ds=E.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Fa();return(0,je.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-je-0 je-20 hidden je-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-je-0 after:left-1/2 after:je-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]je&]:cursor-je-resize [[data-side=right]je&]:cursor-e-resize","[[data-side=left][data-state=collapsed]je&]:cursor-e-resize [[data-side=right][data-state=collapsed]je&]:cursor-je-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]je&]:-right-2","[[data-side=right][data-collapsible=offcanvas]je&]:-left-2",e),...t})});ds.displayName="SidebarRail";var ms=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-je-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}));ms.displayName="SidebarInset";var ps=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ae,{ref:a,"data-sidebar":"input",className:n("h-8 je-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ps.displayName="SidebarInput";var la=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));la.displayName="SidebarHeader";var ca=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));ca.displayName="SidebarFooter";var or=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(er,{ref:a,"data-sidebar":"separator",className:n("mx-2 je-auto bg-sidebar-border",e),...t}));or.displayName="SidebarSeparator";var $t=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));$t.displayName="SidebarContent";var Ye=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex je-full min-je-0 flex-col p-2",e),...t}));Ye.displayName="SidebarGroup";var Rt=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Yi.Slot:"div",{ref:r,"data-sidebar":"group-label",className:n("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]:-je-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Rt.displayName="SidebarGroupLabel";var us=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Yi.Slot:"button",{ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square je-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}));us.displayName="SidebarGroupAction";var ot=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("je-full text-sm",e),...t}));ot.displayName="SidebarGroupContent";var Le=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex je-full min-je-0 flex-col gap-1",e),...t}));Le.displayName="SidebarMenu";var xe=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));xe.displayName="SidebarMenuItem";var wd=(0,nn.cva)("peer/menu-button flex je-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"}}),Ke=E.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:s,...l},i)=>{let d=e?Yi.Slot:"button",{isMobile:u,state:c}=Fa(),p=(0,je.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:n(wd({variant:a,size:r}),s),...l});return o?(typeof o=="string"&&(o={children:o}),(0,je.jsxs)($r,{children:[(0,je.jsx)(Ur,{asChild:!0,children:p}),(0,je.jsx)(rr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...o})]})):p});Ke.displayName="SidebarMenuButton";var sr=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,je.jsx)(t?Yi.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square je-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}));sr.displayName="SidebarMenuAction";var gs=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-je-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}));gs.displayName="SidebarMenuBadge";var fs=E.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,je.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,je.jsx)(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,je.jsx)(ae,{className:"h-4 flex-1 max-je-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});fs.displayName="SidebarMenuSkeleton";var Ut=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-je-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ut.displayName="SidebarMenuSub";var Wt=E.forwardRef(({...e},t)=>(0,je.jsx)("li",{ref:t,...e}));Wt.displayName="SidebarMenuSubItem";var Xt=E.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},s)=>(0,je.jsx)(e?Yi.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-je-0 -translate-x-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}));Xt.displayName="SidebarMenuSubButton";var jr=v(require("react")),Cd=1,Pd=1e6;var bs=0;function Rd(){return bs=(bs+1)%Number.MAX_SAFE_INTEGER,bs.toString()}var vs=new Map,yn=e=>{if(vs.has(e))return;let t=setTimeout(()=>{vs.delete(e),ir({type:"REMOVE_TOAST",toastId:e})},Pd);vs.set(e,t)},Sd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Cd)};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?yn(a):e.toasts.forEach(r=>{yn(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)}}},Wr=[],Xr={toasts:[]};function ir(e){Xr=Sd(Xr,e),Wr.forEach(t=>{t(Xr)})}function kd({...e}){let t=Rd(),a=o=>ir({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>ir({type:"DISMISS_TOAST",toastId:t});return ir({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Yr(){let[e,t]=jr.useState(Xr);return jr.useEffect(()=>(Wr.push(t),()=>{let a=Wr.indexOf(t);a>-1&&Wr.splice(a,1)}),[e]),{...e,toast:kd,dismiss:a=>ir({type:"DISMISS_TOAST",toastId:a})}}var da=v(require("react")),ne=v(require("@radix-ui/react-toast"));var Kr=ne.Provider,nr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Viewport,{ref:a,className:n("fixed top-0 je-[100] flex max-h-screen je-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-je-[420px]",e),...t}));nr.displayName=ne.Viewport.displayName;var Td=(0,nn.cva)("group pointer-events-auto relative flex je-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] 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"}}),lr=da.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)(ne.Root,{ref:r,className:n(Td({variant:t}),e),...a}));lr.displayName=ne.Root.displayName;var hs=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Action,{ref:a,className:n("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}));hs.displayName=ne.Action.displayName;var cr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Close,{ref:a,className:n("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,je.jsx)(vn.je,{className:"h-4 je-4"})}));cr.displayName=ne.Close.displayName;var dr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));dr.displayName=ne.Title.displayName;var mr=da.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));mr.displayName=ne.Description.displayName;function wn(){let{toasts:e}=Yr();return(0,je.jsxs)(Kr,{children:[e.map(function({id:t,title:a,description:r,action:o,...s}){return(0,je.jsxs)(lr,{...s,children:[(0,je.jsxs)("div",{className:"grid gap-1",children:[a&&(0,je.jsx)(dr,{children:a}),r&&(0,je.jsx)(mr,{children:r})]}),o,(0,je.jsx)(cr,{})]},t)}),(0,je.jsx)(nr,{})]})}var Cn=v(require("react")),ys=v(require("@radix-ui/react-toggle"));var pr=(0,nn.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=je]:bg-accent data-[state=je]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-je-9",sm:"h-8 px-1.5 min-je-8",lg:"h-10 px-2.5 min-je-10"}},defaultVariants:{variant:"default",size:"default"}}),xs=Cn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,je.jsx)(ys.Root,{ref:o,className:n(pr({variant:t,size:a,className:e})),...r}));xs.displayName=ys.Root.displayName;var ma=v(require("react")),za=v(require("@radix-ui/react-toggle-group"));var Sn=ma.createContext({size:"default",variant:"default"}),Ns=ma.forwardRef(({className:e,variant:t,size:a,children:r,...o},s)=>(0,je.jsx)(za.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...o,children:(0,je.jsx)(Sn.Provider,{value:{variant:t,size:a},children:r})}));Ns.displayName=za.Root.displayName;var ws=ma.forwardRef(({className:e,children:t,variant:a,size:r,...o},s)=>{let l=ma.useContext(Sn);return(0,je.jsx)(za.Item,{ref:s,className:n(pr({variant:l.variant||a,size:l.size||r}),e),...o,children:t})});ws.displayName=za.Item.displayName;var Cs=v(require("react")),qe=v(require("@radix-ui/react-scroll-area"));var Kt=Cs.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(qe.Root,{ref:r,className:n("relative overflow-hidden",e),...a,children:[(0,je.jsx)(qe.Viewport,{className:"h-full je-full rounded-[inherit]",children:t}),(0,je.jsx)(Jr,{}),(0,je.jsx)(qe.Corner,{})]}));Kt.displayName=qe.Root.displayName;var Jr=Cs.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,je.jsx)(qe.ScrollAreaScrollbar,{ref:r,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full je-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,je.jsx)(qe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Jr.displayName=qe.ScrollAreaScrollbar.displayName;var kn=v(require("react")),st=v(require("@radix-ui/react-popover"));var ur=st.Root,gr=st.Trigger,Tn=st.Anchor,Oa=kn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(st.Portal,{children:(0,je.jsx)(st.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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})}));Oa.displayName=st.Content.displayName;var Dn=v(require("react")),Rs=v(require("@radix-ui/react-label"));var Dd=(0,nn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=Dn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Rs.Root,{ref:a,className:n(Dd(),e),...t}));J.displayName=Rs.Root.displayName;var An=v(require("react")),pa=v(require("@radix-ui/react-hover-card"));var Ln=pa.Root,En=pa.Trigger,Ss=An.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(pa.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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}));Ss.displayName=pa.Content.displayName;var fr=v(require("react")),re=v(require("@radix-ui/react-dialog"));var Je=re.Root,Qr=re.Trigger,ks=re.Portal,Zr=re.Close,eo=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Overlay,{ref:a,className:n("fixed inset-0 je-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}));eo.displayName=re.Overlay.displayName;var Ve=fr.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(ks,{children:[(0,je.jsx)(eo,{}),(0,je.jsxs)(re.Content,{ref:r,className:n("fixed left-[50%] top-[50%] je-50 grid je-full max-je-lg translate-x-[-50%] translate-je-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-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,je.jsxs)(re.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,je.jsx)(vn.je,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ve.displayName=re.Content.displayName;var it=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-1.5 text-center sm:text-left",e),...t});it.displayName="DialogHeader";var Ts=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ts.displayName="DialogFooter";var nt=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=re.Title.displayName;var Ds=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ds.displayName=re.Description.displayName;var qt=v(require("react")),ke=require("cmdk");var to=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command,{ref:a,className:n("flex h-full je-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));to.displayName=ke.Command.displayName;var zn=({children:e,...t})=>(0,je.jsx)(Je,{...t,children:(0,je.jsx)(Ve,{className:"overflow-hidden p-0",children:(0,je.jsx)(to,{className:"[&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground [&je[cmdk-group]:not([hidden])je~[cmdk-group]]:_r-0 [&je[cmdk-group]]:px-2 [&je[cmdk-input-wrapper]_svg]:h-5 [&je[cmdk-input-wrapper]_svg]:je-5 [&je[cmdk-input]]:h-12 [&je[cmdk-item]]:px-2 [&je[cmdk-item]]:py-3 [&je[cmdk-item]_svg]:h-5 [&je[cmdk-item]_svg]:je-5",children:e})})}),Ms=qt.forwardRef(({className:e,...t},a)=>(0,je.jsxs)("div",{className:"flex items-center border-je px-3","cmdk-input-wrapper":"",children:[(0,je.jsx)(vn.Search,{className:"mr-2 h-4 je-4 shrink-0 opacity-50"}),(0,je.jsx)(ke.Command.Input,{ref:a,className:n("flex h-10 je-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ms.displayName=ke.Command.Input.displayName;var Is=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.List,{ref:a,className:n("max-h-[300px] overflow-je-auto overflow-x-hidden",e),...t}));Is.displayName=ke.Command.List.displayName;var As=qt.forwardRef((e,t)=>(0,je.jsx)(ke.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));As.displayName=ke.Command.Empty.displayName;var Ls=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:py-1.5 [&je[cmdk-group-heading]]:text-xs [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ls.displayName=ke.Command.Group.displayName;var Es=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Es.displayName=ke.Command.Separator.displayName;var Bs=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Item,{ref:a,className:n("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}));Bs.displayName=ke.Command.Item.displayName;var Hs=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Hs.displayName="CommandShortcut";var ao=v(require("react"));var Md=(0,nn.cva)("relative je-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-je-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Fs=ao.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)("div",{ref:r,role:"alert",className:n(Md({variant:t}),e),...a}));Fs.displayName="Alert";var zs=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));zs.displayName="AlertTitle";var Os=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Os.displayName="AlertDescription";var oo=v(require("react")),kt=v(require("@radix-ui/react-avatar"));var Tt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Root,{ref:a,className:n("relative flex h-10 je-10 shrink-0 overflow-hidden rounded-full",e),...t}));Tt.displayName=kt.Root.displayName;var Dt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Image,{ref:a,className:n("aspect-square h-full je-full",e),...t}));Dt.displayName=kt.Image.displayName;var Mt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Fallback,{ref:a,className:n("flex h-full je-full items-center justify-center rounded-full bg-muted",e),...t}));Mt.displayName=kt.Fallback.displayName;var _s=(0,nn.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 Qe({className:e,variant:t,...a}){return(0,je.jsx)("div",{className:n(_s({variant:t}),e),...a})}var br=v(require("@radix-ui/react-checkbox")),$n=v(require("react")),lt=$n.forwardRef(({className:e,...t},a)=>(0,je.jsx)(br.Root,{className:n("peer h-4 je-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,je.jsx)(br.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,je.jsx)(vn.Check,{className:"h-4 je-4"})})}));lt.displayName=br.Root.displayName;var F=v(require("@radix-ui/react-select")),Jt=v(require("react")),ga=F.Root,Id=F.Group,fa=F.Value,Qt=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Trigger,{className:n("flex h-10 je-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...a,children:[e,(0,je.jsx)(F.Icon,{asChild:!0,children:(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4 opacity-50"})})]}));Qt.displayName=F.Trigger.displayName;var Gs=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(vn.ChevronUp,{className:"h-4 je-4"})}));Gs.displayName=F.ScrollUpButton.displayName;var Vs=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4"})}));Vs.displayName=F.ScrollDownButton.displayName;var Zt=Jt.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,je.jsx)(F.Portal,{children:(0,je.jsxs)(F.Content,{className:n("relative je-50 max-h-96 min-je-[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-je-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-je-1",t),position:a,ref:o,...r,children:[(0,je.jsx)(Gs,{}),(0,je.jsx)(F.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] je-full min-je-[var(--radix-select-trigger-width)]"),children:e}),(0,je.jsx)(Vs,{})]})}));Zt.displayName=F.Content.displayName;var Un=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Un.displayName=F.Label.displayName;var ea=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Item,{className:n("relative flex je-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,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(F.ItemIndicator,{children:(0,je.jsx)(vn.Check,{className:"h-4 je-4"})})}),(0,je.jsx)(F.ItemText,{children:e})]}));ea.displayName=F.Item.displayName;var Wn=Jt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Wn.displayName=F.Separator.displayName;var Xn=v(require("react")),ta=Xn.forwardRef(({className:e,...t},a)=>(0,je.jsx)("textarea",{className:n("flex min-h-[80px] je-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ta.displayName="Textarea";var Yn=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,je.jsx)(Yn.DayPicker,{showOutsideDays:a,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-je-4 sm:space-x-4 sm:space-je-0",month:"space-je-4",caption:"flex justify-center _r-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:n(Vt({variant:"outline"}),"h-7 je-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"je-full border-collapse space-je-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md je-8 font-normal text-[0.8rem]",row:"flex je-full je-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:je-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:n(Vt({variant:"ghost"}),"h-8 je-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...r})}vr.displayName="Calendar";var Ee=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=r!=null?r:"",i=o+s+" fa-"+a+" "+l;return(0,je.jsx)("i",{className:i})};var Jn=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,je.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,je.jsx)("div",{className:"je-12 h-12 ",children:(0,je.jsx)(Ee,{type:r,iconName:a,className:"je-12 h-12 text-white"})}),(0,je.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,je.jsx)("p",{className:"text-white text-sm",children:t})]});var Qn=v(require("next/image")),Zn=v(require("next/link"));var va=v(require("react"));var ge=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Be=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex flex-col space-je-1.5 p-6",e),...t}));Be.displayName="CardHeader";var He=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));He.displayName="CardTitle";var Ad=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ad.displayName="CardDescription";var Ne=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("p-6 _r-0",e),...t}));Ne.displayName="CardContent";var Ld=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex items-center p-6 _r-0",e),...t}));Ld.displayName="CardFooter";function el({name:e,logo:t,href:a}){return(0,je.jsx)(ge,{className:"je-full max-je-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,je.jsxs)(Zn.default,{href:a,className:"block",children:[(0,je.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,je.jsx)("div",{className:"relative je-full h-full",children:t&&(0,je.jsx)(Qn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,je.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,je.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function tl({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let s=i=>{switch(i){case"birthday":return(0,je.jsx)(vn.Cake,{className:"h-4 je-4"});case"workAnniversary":return(0,je.jsx)(vn.Award,{className:"h-4 je-4"});case"companyEvent":return(0,je.jsx)(vn.PartyPopper,{className:"h-4 je-4"});default:return(0,je.jsx)(vn.CalendarDays,{className:"h-4 je-4"})}},l=i=>{switch(i){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,je.jsxs)(ge,{className:`je-full max-je-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,je.jsxs)(Be,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,je.jsxs)(Tt,{className:"h-14 je-14 border-2 border-white",children:[(0,je.jsx)(Dt,{src:o,alt:a||"Event"}),(0,je.jsx)(Mt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,je.jsxs)("div",{className:"flex flex-col",children:[(0,je.jsx)(He,{className:"text-xl",children:a||"Untitled Event"}),(0,je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,je.jsx)(vn.CalendarDays,{className:"mr-1 inline-block h-4 je-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,je.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,je.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,je.jsxs)(Qe,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-je])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var rl=v(require("next/link"));var ol=v(require("next/image")),al={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function sl({slug:e,image:t,title:a,description:r}){return(0,je.jsxs)(rl.default,{href:e,className:"group/portfolio relative je-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,je.jsx)("span",{className:n("absolute inset-0 je-[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,je.jsx)(ol.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
+ (min-width:${al.md}) 50vw,
8
+ (min-width:${al.lg}) 25vw,
9
9
  100vw
10
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,je.jsx)("div",{className:"relative je-10 flex h-full flex-col",children:(0,je.jsxs)("div",{className:"je-auto divide-je md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,je.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,je.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,je.jsx)("p",{className:"je-[13px] overflow-hidden _r-[11px] text-body",children:(0,je.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 $s=v(require("next/image")),no=v(require("path"));function Ed(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Bd(e){return e.startsWith("http")}function Hd(e,t){let a=e;if(Ed(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Bd(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=no.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=no.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=`/${no.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Fd({src:e,alt:t}){let[a,r]=(0,_r.useState)(!1),[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)({width:0,height:0}),d=()=>{o&&r(!0)},u=()=>{r(!1)},c=p=>{let{naturalWidth:m,naturalHeight:f}=p.target;i({width:m,height:f}),s(m>300||f>300)};return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:d,children:(0,je.jsx)($s.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-je-full max-h-full"})}),(0,je.jsx)(Je,{open:a,onOpenChange:r,children:(0,je.jsxs)(Ve,{className:"flex flex-col items-center justify-center",children:[(0,je.jsxs)(it,{className:"flex je-full justify-end",children:[(0,je.jsx)(nt,{className:"hidden",children:t}),(0,je.jsx)(Zr,{})]}),(0,je.jsx)("div",{className:"flex items-center justify-center",children:(0,je.jsx)($s.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function sl({props:e,baseContext:t}){let{src:a}=e;return a=Hd(a,t),(0,je.jsx)(Fd,{src:a,alt:e.alt})}var il=v(require("next/link"));function we({children:e,href:t,openNewTab:a,...r}){return(0,je.jsx)(il.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function zd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Od({icon:e,title:t,description:a,slug:r}){return(0,je.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative je-1 block h-full space-je-6 overflow-hidden rounded-5 p-6 md:space-je-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,je.jsxs)("div",{className:"flex items-center gap-5",children:[(0,je.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:zd(e)?(0,je.jsx)(Ee,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,je.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,je.jsx)(we,{href:r,children:t}):t})]}),(0,je.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,je.jsx)(k,{asChild:!0,className:n(["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,je.jsxs)(we,{href:r,children:[(0,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,je.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,je.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,je.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] je-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var co=require("react-icons/fa6");function _d({title:e,description:t,features:a,price:r,duration:o,button:s}){return(0,je.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,je.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-je max-lg:_r-14 lg:border-r lg:p-10",children:[(0,je.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-je",children:e}),(0,je.jsx)("p",{children:t})]}),(0,je.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,je.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-je-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,je.jsx)("ul",{"aria-label":"pricing point list",className:"grid je-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,je.jsx)("span",{className:"text-accent _r-1",children:(0,je.jsx)(co.FaCircleCheck,{})}),(0,je.jsx)("span",{children:l})]},i))}),(0,je.jsxs)("p",{className:"font-secondary ml-auto text-je font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[r&&r,(0,je.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),s&&(0,je.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,je.jsx)(k,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,je.jsxs)(we,{href:s.href,openNewTab:s.openNewTab,children:[(0,je.jsx)("span",{className:"relative je-1",children:s.label}),(0,je.jsx)("span",{className:"relative je-1 pl-2",children:(0,je.jsx)(co.FaAnglesRight,{})})]})})})]})})]})}function Gd({className:e,badge:t,title:a,subtitle:r}){return(0,je.jsxs)("div",{className:n("relative overflow-hidden rounded-je bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,je.jsxs)("div",{className:"relative je-10 mx-auto max-je-4xl text-center",children:[t&&(0,je.jsx)("div",{className:"mb-4",children:(0,je.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,je.jsx)("h1",{className:"je-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,je.jsx)("p",{className:"je-6 text-base text-gray-300 sm:text-lg md:text-je",children:r})]}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 je-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 je-full -translate-x-1/2",children:(0,je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,je.jsx)("path",{d:"je-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Us=({className:e,content:t,style:a})=>(0,je.jsx)("div",{className:n("mx-auto my-8 je-full",e),children:(0,je.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,je.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var Ws=v(require("next/link")),ft=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:s,newTab:l,reference:i,size:d,url:u}=e,c=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:u;if(!c)return null;let p=a==="link"?"clear":d,m=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,je.jsxs)(Ws.default,{className:n(o),href:c||u||"",...m,children:[s&&s,r&&r]}):(0,je.jsx)(k,{asChild:!0,className:o,size:p,variant:a,children:(0,je.jsxs)(Ws.default,{className:n(o),href:c||u||"",...m,children:[s&&s,r&&r]})})};var yr=({links:e,richText:t})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-je-[48rem] flex items-center",children:t&&(0,je.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,je.jsx)(ft,{size:"lg",...a},r))})]})});var po=require("prism-react-renderer");function Xs({code:e}){let[t,a]=(0,_r.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(k,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,je.jsx)("p",{children:t}),(0,je.jsx)("div",{className:"je-6 h-6 dark:invert",children:(0,je.jsx)(bn.ClipboardCopy,{})})]})})}var dl=({code:e,language:t=""})=>e?(0,je.jsx)(po.Highlight,{code:e,language:t,theme:po.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[o.map((s,l)=>(0,je.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,je.jsx)("span",{...r({token:i})},d))})]},l)),(0,je.jsx)(Xs,{code:e})]})}):null;var Ys=({className:e,code:t,language:a})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(dl,{code:t,language:a})});var pl=v(require("next/image")),Vd={"3xl":1920,"2xl":1536,je:1280,lg:1024,md:768,sm:640},ml="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=",ul=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:s,size:l,src:i,loading:d}=e,u,c,p=t,m=i||"";if(!m&&s&&typeof s=="object"){let{alt:g,filename:x,height:A,url:O,width:Q}=s;u=Q,c=A,p=g||"",m=O||ml}let f=d||"lazy",h=l||Object.entries(Vd).map(([,g])=>`(max-width: ${g}px) ${g*2}je`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(pl.default,{alt:p||"",className:n(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:ml,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:h,src:m,width:a?void 0:u})})};var gl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var fl=()=>{if(gl){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 bl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,_r.useRef)(null);if((0,_r.useEffect)(()=>{let{current:s}=o;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,je.jsx)("video",{autoPlay:!0,className:n(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,je.jsx)("source",{src:`${fl()}/media/${s}`})})}return null};var Et=e=>{var l;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((l=r==null?void 0:r.mimeType)==null?void 0:l.includes("video"));return(0,je.jsx)(a||_r.Fragment,{...a!==null?{className:t}:{},children:o?(0,je.jsx)(bl,{...e}):(0,je.jsx)(ul,{...e})})};var _a=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("border border-border rounded-[0.8rem]",r),resource:o,src:s})})};var Zs=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("border border-border rounded-[0.8rem]",r),resource:o,src:s})})};var xr=({title:e,description:t,features:a,id:r})=>(0,je.jsxs)("section",{className:n("container je-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,je.jsx)("h2",{className:"mb-6 je-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,je.jsx)("p",{className:"mb-5 text-je tracking-tight md:text-je",children:t}),t&&typeof t=="object"&&(0,je.jsx)("p",{className:"mb-5 text-je tracking-tight md:text-je",children:(0,je.jsx)(Z,{content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:`grid gap-8 je-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,s)=>{var l,i,d,u,c;if(((l=o.settings)==null?void 0:l.contents)==="icon")return(0,je.jsx)($d,{section:o,index:s},s);{let p=()=>{if(o.icon.type!=="none")return{type:o.icon.type,iconName:o.icon.icon}};return(0,je.jsx)(ei,{variant:((i=o.settings)==null?void 0:i.card)==="default"?"solid":((d=o.settings)==null?void 0:d.card)||"solid",icon:p()||void 0,heading:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,buttonText:(u=o.link)!=null&&u.url?"Find out more":void 0,buttonHref:((c=o.link)==null?void 0:c.url)||void 0},s)}})})]}),$d=({section:e,index:t})=>{if(!e)return null;let a=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,je.jsx)("div",{className:"text-accent h-12 je-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(Z,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,je.jsx)("a",{href:e.link.url?e.link.url:"#",className:"no-underline group",children:a},t):a};var fo=v(require("react"));function Nr({nodes:e}){return(0,je.jsx)(fo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,je.jsx)(fo.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,je.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,je.jsx)("em",{children:s},a)),t.format&4&&(s=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,je.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,je.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,je.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((s,l)=>(0,je.jsx)("tr",{children:s.children.map((i,d)=>(0,je.jsx)("td",{children:Nr({nodes:i.children})},d))},l))})},a);let r=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return Nr({nodes:s.children})},o="children"in t?r(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,je.jsx)(yr,{...s},a);case"mediaBlock":return(0,je.jsx)(_a,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,je.jsx)(Zs,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,je.jsx)(Us,{className:"col-start-2 mb-4",...s},a);case"code":return(0,je.jsx)(Ys,{className:"col-start-2",...s},a);case"features":return(0,je.jsx)(xr,{...s},a);case"reusableContentBlock":Nr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:o},a):(0,je.jsx)("li",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}case"autolink":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,je.jsx)("div",{className:n({"container ":a,"max-je-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Nr({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};function Ud(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ei({variant:e="light",className:t,icon:a,heading:r,subheading:o,content:s,statistic:l,buttonText:i,buttonHref:d}){return(0,je.jsxs)("div",{className:n("rounded-3xl p-8 md:p-12",{solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,je.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,je.jsx)("div",{className:n("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:Ud(a)?(0,je.jsx)(Ee,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,je.jsx)("h2",{className:n("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:r})]}),e==="solid"&&l&&(0,je.jsx)("div",{className:"mb-6",children:(0,je.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:l})}),o&&(0,je.jsx)("div",{className:"mb-4 text-je md:text-2xl font-light",children:o}),s&&typeof s=="object"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,je.jsx)(Z,{enableGutter:!1,content:s,enableProse:!1,className:n(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,je.jsx)("div",{className:"je-8",children:(0,je.jsx)(k,{size:"lg",className:"text-white text-lg rounded-je",asChild:!0,children:(0,je.jsxs)("a",{href:d,children:[i,(0,je.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,je.jsx)("div",{className:"absolute bottom-0 right-0 je-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var yl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,je.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Wd({icon:e,title:t,body:a,color:r="secondary"}){return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,je.jsx)("div",{className:"px-[2%] flex items-center",children:(0,je.jsx)("div",{className:"je-12 h-12",children:(0,je.jsx)(Ee,{type:e.type,iconName:e.name})})}),(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[30%]",children:t}),a&&(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[50%]",children:a})]})})}var Nl=v(require("next/image"));function Xd(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,je.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,je.jsx)(Nl.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,je.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,je.jsx)("div",{className:"je-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,je.jsxs)("a",{href:t,children:[(0,je.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,je.jsx)("div",{className:"je-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var jd=(e,t)=>`from-brand-${e} to-brand-${t}`;function Yd({...e}){let t=jd(e.brandFrom||"one",e.brandTo||"two");return(0,je.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,je.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,je.jsxs)("a",{href:e.url,children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),(0,je.jsx)("span",{children:e.message&&e.message})]}):(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,je.jsx)("div",{className:"flex flex-1 justify-end"})]})}var wr=v(require("react")),Kd={Architecture:(0,je.jsx)(bn.DraftingCompass,{className:"h-5 je-5 text-blue-600"}),Engineering:(0,je.jsx)(bn.Code,{className:"h-5 je-5 text-green-600"}),Development:(0,je.jsx)(bn.Code,{className:"h-5 je-5 text-purple-600"}),Delivery:(0,je.jsx)(bn.GanttChart,{className:"h-5 je-5 text-red-600"})},qd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let s=e.reports.length>0;return(0,je.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,je.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${o?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,je.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,je.jsx)(bn.ChevronDown,{className:"h-4 je-4"}):(0,je.jsx)(bn.ChevronRight,{className:"h-4 je-4"})}),(0,je.jsx)("div",{className:"je-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,je.jsx)(bn.Users,{className:"h-6 je-6 text-gray-500"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,je.jsxs)("div",{className:"flex items-center je-1",children:[Kd[e.discipline],(0,je.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,je.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},wl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,wr.useState)(t<1),s=()=>o(!r),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>l(c)||c.reports.some(i),d=a===""||i(e),u=l(e);return wr.default.useEffect(()=>{a!==""&&i(e)&&o(!0)},[a,e]),d?(0,je.jsxs)("div",{children:[(0,je.jsx)(qd,{person:e,level:t,onToggle:s,isExpanded:r,isHighlighted:u}),r&&e.reports.map((c,p)=>(0,je.jsx)(wl,{person:c,level:t+1,searchTerm:a},p))]}):null};function Jd(){let[e,t]=(0,wr.useState)("");return(0,je.jsxs)("div",{className:"max-je-5xl mx-auto p-6",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,je.jsxs)("div",{className:"mb-4 relative",children:[(0,je.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"je-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,je.jsx)(bn.Search,{className:"absolute right-3 top-2.5 h-5 je-5 text-gray-400"})]}),(0,je.jsx)("div",{className:"space-je-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((r,o)=>(0,je.jsx)(wl,{person:r,level:0,searchTerm:e},o))})]})}function Qd({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,je.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,je.jsxs)("div",{className:"lg:col-span-1 space-je-6 flex flex-col",children:[(0,je.jsxs)(ge,{className:"flex-grow",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Users,{className:"h-5 je-5"}),"Team"]})}),(0,je.jsxs)(Ne,{className:"p-6",children:[(0,je.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,je.jsxs)("div",{className:"space-je-6",children:[(0,je.jsx)("div",{className:"space-je-2",children:e.leadership.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsx)("div",{className:"space-je-2",children:e.core.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role}),o.count&&(0,je.jsxs)("span",{children:["(",o.count,"x)"]})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,je.jsx)($e.Users2,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:"SME input:"})]}),(0,je.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.PoundSterling,{className:"h-5 je-5"}),"Fee"]})}),(0,je.jsx)(Ne,{className:"p-6",children:(0,je.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.FileText,{className:"h-5 je-5"}),"Outputs"]})}),(0,je.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,je.jsx)("ol",{className:"list-decimal list-inside space-je-4",children:t.map((o,s)=>(0,je.jsxs)("li",{className:"text-sm",children:[(0,je.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,je.jsx)("span",{className:"text-muted-foreground",children:o.description})]},s))}),(0,je.jsx)("p",{className:"je-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Lightbulb,{className:"h-5 je-5"}),"Benefits"]})}),(0,je.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,je.jsx)("ul",{className:"space-je-4",children:a.map((o,s)=>(0,je.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,je.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,je.jsx)("span",{children:o})]},s))})})]})]})}function Zd(){return(0,je.jsx)("div",{className:"je-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,je.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,je.jsxs)("div",{className:"space-je-4 bg-primary p-3 rounded-lg",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,je.jsx)(bn.BarChart3,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-je font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,je.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,je.jsxs)("ul",{className:"text-sm",children:[(0,je.jsx)("li",{children:"Strategy definition"}),(0,je.jsx)("li",{children:"Programme leadership"}),(0,je.jsx)("li",{children:"Detailed planning"}),(0,je.jsx)("li",{children:"\u2022 Financial control"}),(0,je.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,je.jsx)(bn.CogIcon,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-je font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,je.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,je.jsx)(bn.Building2,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-je font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"We 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,je.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,je.jsx)(bn.BadgeCheck,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-je font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,je.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var ti=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,je.jsx)("div",{className:"container my-6",children:(0,je.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-je-8 gap-x-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:s,link:l,richText:i,size:d}=r;return(0,je.jsxs)("div",{className:n(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[i&&(0,je.jsx)(Z,{content:i,enableGutter:!1}),s&&(0,je.jsx)(ft,{...l})]},o)})})})};var bo=v(require("next/image"));function em({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,je.jsxs)("div",{className:"relative je-full overflow-hidden bg-white pb-16 _r-[calc(80vw*0.5)]",children:[(0,je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] je-full overflow-hidden",children:(0,je.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] je-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,je.jsx)(bo.default,{src:e,alt:"Header background",className:"h-full je-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,je.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,je.jsx)("div",{className:"h-16 je-32 md:h-24 md:je-48",children:(0,je.jsx)(bo.default,{src:r,alt:"Company logo",className:"h-full je-full object-contain",width:192,height:96})}),o&&(0,je.jsx)("div",{className:"h-10 je-20 md:h-12 md:je-24",children:(0,je.jsx)(bo.default,{src:o,alt:"Customer logo",className:"h-full je-full object-contain",width:96,height:48})})]}),(0,je.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,je.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,je.jsx)("h1",{className:"max-je-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Rl=v(require("next/image"));var Cl=e=>{console.log("ReusableContentBlock:props",e);let{customId:t,reusableContent:a}=e;return console.log("ReusableContentBlock:reusableContent",a),console.log("ReusableContentBlock:object",typeof a=="object"),typeof a=="object"&&a!==null?(0,je.jsx)(Pr,{blocks:a.layout}):(0,je.jsx)(je.Fragment,{})};var Pl={content:ti,cta:yr,mediaBlock:_a,imageBlock:_a,features:xr,reusableContentBlock:Cl},Pr=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,je.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{var d;let s=require("util");console.log("RenderBlocks:block",s.inspect(r,!1,null,!0));let{blockType:l}=r,i=r==null?void 0:r.theme;if(console.log("RenderBlocks:blockType",s.inspect(l,!1,null,!0)),l&&l in Pl){let u=Pl[l];if(console.log("BLOCK TYPE EXISTS",u),u)return(0,je.jsxs)("div",{className:"py-6 relative",children:[(0,je.jsx)(tm,{block:r,index:o}),(0,je.jsx)("div",{className:n("container",((d=i==null?void 0:i.settings)==null?void 0:d.theme)==="dark"?"dark":""),children:(0,je.jsx)(u,{...r})})]},o)}return null})}):null},tm=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let r={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,je.jsxs)("div",{className:n("absolute inset-0 je-full h-full -je-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,je.jsx)(Rl.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,je.jsx)("div",{className:"absolute inset-0",style:{background:r.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,je.jsx)("div",{className:n("absolute inset-0 -je-10 je-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var Dl=v(require("clsx"));var Sl=require("next/navigation");function am({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Sl.useRouter)(),o=(0,_r.useRef)(null),s=(0,_r.useRef)(null),l=(0,_r.useRef)(0),i=(0,_r.useRef)(!1),d=(0,_r.useRef)(0),u=(0,_r.useCallback)(p=>{if(p.target){let m=p.target,f=+new Date,h=m==null?void 0:m.closest("a");d.current=p.button,h?i.current=!0:(i.current=!1,l.current=f)}},[r,o,s,l]),c=(0,_r.useCallback)(p=>{var m,f;if((m=s.current)!=null&&m.href){let g=+new Date-l.current;if((f=s.current)!=null&&f.href&&g<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else r.push(s.current.href,{scroll:a})}},[r,o,s,l]);return(0,_r.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",u),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",u),p==null||p.removeEventListener("mouseup",c))}},[o,s,r]),{card:{ref:o},link:{ref:s}}}var kl=am;var Tl=v(require("next/link"));var Rr=e=>{let{card:t,link:a}=kl({}),{className:r,doc:o,relationTo:s,showCategories:l,title:i}=e,{slug:d,categories:u,meta:c,title:p}=o||{},{description:m,image:f}=c||{},h=u&&Array.isArray(u)&&u.length>0,g=i||p,x=m==null?void 0:m.replace(/\s/g," "),A=`/${s}/${d}`;return(0,je.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,je.jsxs)("div",{className:"relative je-full ",children:[!f&&(0,je.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,je.jsx)(Et,{resource:f,size:"33vw"})]}),(0,je.jsxs)("div",{className:"p-4",children:[l&&h&&(0,je.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&h&&(0,je.jsx)("div",{children:u==null?void 0:u.map((O,Q)=>{if(typeof O=="object"){let{title:he}=O,Ie=he||"Untitled category",gt=Q===u.length-1;return(0,je.jsxs)(_r.Fragment,{children:[Ie,!gt&&(0,je.jsx)(_r.Fragment,{children:", \xA0"})]},Q)}return null})})}),g&&(0,je.jsx)("div",{className:"prose",children:(0,je.jsx)("h3",{children:(0,je.jsx)(Tl.default,{className:"not-prose",href:A,ref:a.ref,children:g})})}),m&&(0,je.jsx)("div",{className:"je-2",children:m&&(0,je.jsx)("p",{children:x})})]})]})};var rm=e=>{let{className:t,docs:a,introContent:r}=e;return(0,je.jsxs)("div",{className:(0,Dl.default)("container",t),children:[r&&(0,je.jsx)(Z,{content:r,enableGutter:!1}),(0,je.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,s)=>typeof o=="string"?null:(0,je.jsx)(Rr,{doc:o,relationTo:"posts",showCategories:!0},s))})]})};var Sr=require("framer-motion");var Ml=e=>{let[t,a]=(0,_r.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,s=p=>{a(p)},l=()=>{a(p=>(p+1)%r.length)},i=()=>{a(p=>(p-1+r.length)%r.length)},u=(0,_r.useCallback)(((p,m)=>{let f;return(...h)=>{clearTimeout(f),f=setTimeout(()=>p(...h),m)}})(p=>{p.deltaY>0?l():i()},300),[]),c=p=>{p.key==="ArrowDown"?l():p.key==="ArrowUp"&&i()};return(0,_r.useEffect)(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",c)}),[]),(0,je.jsxs)("div",{className:"flex h-screen relative",children:[(0,je.jsx)("div",{className:"fixed left-0 top-0 flex h-screen je-9 je-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,m)=>(0,je.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 je-4 rounded-full transition-all hover:bg-accent duration-300 ${t===m?"bg-accent":"bg-gray-300"}`,onClick:()=>s(m),children:(0,je.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-je-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,m)=>(0,je.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${m===t?"opacity-100":"opacity-0"}`,children:(0,je.jsx)(Pr,{blocks:[p]})},m)),(0,je.jsx)("button",{className:"absolute bottom-4 left-1 je-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:l,children:(0,je.jsx)(om,{})})]})},om=()=>(0,je.jsx)(Sr.AnimatePresence,{children:(0,je.jsx)(Sr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("je-fit min-h-[50px] min-je-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,je.jsx)(Sr.motion.div,{initial:{je:0},animate:{je:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("je-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Il=v(require("next/link")),Al=v(require("next/image"));function Ll({blogs:e,width:t=3}){return(0,je.jsx)("div",{className:"je-full max-je-7xl mx-auto px-4 py-8",children:(0,je.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,je.jsx)(Il.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,je.jsxs)("div",{className:"relative size-full",children:[(0,je.jsx)(Al.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,je.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,je.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,je.jsx)("h2",{className:"text-je font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},r)})})})}function El({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:s,raisedAmount:l,companiesCount:i,dealsClosed:d,leadsGenerated:u}){return(0,je.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,je.jsxs)("div",{className:"mx-auto max-je-2xl px-6 lg:max-je-7xl lg:px-8",children:[(0,je.jsxs)("div",{className:"max-je-4xl",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,je.jsx)("h1",{className:"je-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,je.jsx)("p",{className:"je-6 text-balance text-je/8 text-gray-700",children:a})]}),(0,je.jsxs)("section",{className:"je-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-je-16",children:[(0,je.jsxs)("div",{className:"lg:pr-8",children:[(0,je.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,je.jsx)("p",{className:"je-6 text-base/7 text-gray-600",children:o})]}),(0,je.jsx)("div",{className:"_r-16 lg:row-span-2 lg:-mr-16 je:mr-auto",children:(0,je.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 je:gap-8",children:s.map((c,p)=>(0,je.jsx)("div",{className:"aspect-square overflow-hidden rounded-je shadow-je outline-1 -outline-offset-1 outline-black/10",children:(0,je.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,je.jsxs)("div",{className:"max-lg:je-16 lg:col-span-1",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,je.jsx)("je",{className:"je-6 border-t border-gray-200"}),(0,je.jsxs)("dl",{className:"je-6 grid grid-cols-1 gap-x-8 gap-je-4 sm:grid-cols-2",children:[(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 max-sm:border-je max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"je"]})]})]})]})]})]})})}var Bl=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),s=r+1<10?`0${r+1}`:r+1,l=o<10?`0${o}`:o,i=a.getFullYear();return`${l}/${s}/${i}`};var Hl=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Fl=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function zl({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:s,invert:l=!1}){let i=n(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},s);return(0,je.jsxs)("div",{className:i,children:[e&&(0,je.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,je.jsx)("h2",{className:n("font-secondary text-je font-bold leading-[1.25] text-foreground md:text-2xl",l&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,je.jsx)("p",{className:"je-5 whitespace-pre-line",children:a}):a&&(0,je.jsx)(Z,{content:a,enableGutter:!1})]})}function wa({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=n("container",t&&"full-width",a&&"no-padding",r);return(0,je.jsx)("div",{className:o,children:e})}var _l=(e,t)=>e[t%e.length];var ri=v(require("next/image"));function sm({blogs:e,sectionHeading:t}){return(0,je.jsx)("section",{className:n("section-padding-primary overflow-hidden "),children:(0,je.jsxs)(wa,{children:[(0,je.jsx)("div",{className:"mx-auto max-je-[630px]",children:t&&(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,je.jsx)(zl,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,je.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-je-30px",children:e.map((a,r)=>(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":_l([200,400,600],r),className:"je-full px-4 md:je-1/2 md:px-[15px] lg:je-1/3",children:(0,je.jsx)($l,{...a})},r))})]})})}var Gl=n("inline-flex items-center gap-2 text-white"),Ab=n("text-sm text-white");function $l({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:s}){return(0,je.jsxs)("article",{className:"group/blog relative je-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,je.jsx)("span",{className:"absolute inset-0 je-[2] "}),(0,je.jsx)(ri.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
10
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,je.jsx)("div",{className:"relative je-10 flex h-full flex-col",children:(0,je.jsxs)("div",{className:"je-auto divide-je md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,je.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,je.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,je.jsx)("p",{className:"je-[13px] overflow-hidden _r-[11px] text-body",children:(0,je.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 $s=v(require("next/image")),no=v(require("path"));function Ed(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Bd(e){return e.startsWith("http")}function Hd(e,t){let a=e;if(Ed(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Bd(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=no.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=no.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=`/${no.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Fd({src:e,alt:t}){let[a,r]=(0,_r.useState)(!1),[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)({width:0,height:0}),d=()=>{o&&r(!0)},u=()=>{r(!1)},c=p=>{let{naturalWidth:m,naturalHeight:f}=p.target;i({width:m,height:f}),s(m>300||f>300)};return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:d,children:(0,je.jsx)($s.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-je-full max-h-full"})}),(0,je.jsx)(Je,{open:a,onOpenChange:r,children:(0,je.jsxs)(Ve,{className:"flex flex-col items-center justify-center",children:[(0,je.jsxs)(it,{className:"flex je-full justify-end",children:[(0,je.jsx)(nt,{className:"hidden",children:t}),(0,je.jsx)(Zr,{})]}),(0,je.jsx)("div",{className:"flex items-center justify-center",children:(0,je.jsx)($s.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function il({props:e,baseContext:t}){let{src:a}=e;return a=Hd(a,t),(0,je.jsx)(Fd,{src:a,alt:e.alt})}var nl=v(require("next/link"));function we({children:e,href:t,openNewTab:a,...r}){return(0,je.jsx)(nl.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function zd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Od({icon:e,title:t,description:a,slug:r}){return(0,je.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative je-1 block h-full space-je-6 overflow-hidden rounded-5 p-6 md:space-je-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,je.jsxs)("div",{className:"flex items-center gap-5",children:[(0,je.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:zd(e)?(0,je.jsx)(Ee,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,je.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,je.jsx)(we,{href:r,children:t}):t})]}),(0,je.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,je.jsx)(k,{asChild:!0,className:n(["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,je.jsxs)(we,{href:r,children:[(0,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,je.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,je.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,je.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] je-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var co=require("react-icons/fa6");function _d({title:e,description:t,features:a,price:r,duration:o,button:s}){return(0,je.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,je.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-je max-lg:_r-14 lg:border-r lg:p-10",children:[(0,je.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,je.jsx)("p",{children:t})]}),(0,je.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,je.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-je-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,je.jsx)("ul",{"aria-label":"pricing point list",className:"grid je-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,je.jsx)("span",{className:"text-accent _r-1",children:(0,je.jsx)(co.FaCircleCheck,{})}),(0,je.jsx)("span",{children:l})]},i))}),(0,je.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[r&&r,(0,je.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),s&&(0,je.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,je.jsx)(k,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,je.jsxs)(we,{href:s.href,openNewTab:s.openNewTab,children:[(0,je.jsx)("span",{className:"relative je-1",children:s.label}),(0,je.jsx)("span",{className:"relative je-1 pl-2",children:(0,je.jsx)(co.FaAnglesRight,{})})]})})})]})})]})}function Gd({className:e,badge:t,title:a,subtitle:r}){return(0,je.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,je.jsxs)("div",{className:"relative je-10 mx-auto max-je-4xl text-center",children:[t&&(0,je.jsx)("div",{className:"mb-4",children:(0,je.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,je.jsx)("h1",{className:"je-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,je.jsx)("p",{className:"je-6 text-base text-gray-300 sm:text-lg md:text-xl",children:r})]}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 je-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 je-full -translate-x-1/2",children:(0,je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,je.jsx)("path",{d:"je-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Us=({className:e,content:t,style:a})=>(0,je.jsx)("div",{className:n("mx-auto my-8 je-full",e),children:(0,je.jsx)("div",{className:n("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,je.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var Ws=v(require("next/link")),ft=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:s,newTab:l,reference:i,size:d,url:u}=e,c=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:u;if(!c)return null;let p=a==="link"?"clear":d,m=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,je.jsxs)(Ws.default,{className:n(o),href:c||u||"",...m,children:[s&&s,r&&r]}):(0,je.jsx)(k,{asChild:!0,className:o,size:p,variant:a,children:(0,je.jsxs)(Ws.default,{className:n(o),href:c||u||"",...m,children:[s&&s,r&&r]})})};var yr=({links:e,richText:t})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-je-[48rem] flex items-center",children:t&&(0,je.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,je.jsx)(ft,{size:"lg",...a},r))})]})});var po=require("prism-react-renderer");function Xs({code:e}){let[t,a]=(0,_r.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(k,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,je.jsx)("p",{children:t}),(0,je.jsx)("div",{className:"je-6 h-6 dark:invert",children:(0,je.jsx)(vn.ClipboardCopy,{})})]})})}var ml=({code:e,language:t=""})=>e?(0,je.jsx)(po.Highlight,{code:e,language:t,theme:po.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[o.map((s,l)=>(0,je.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,je.jsx)("span",{...r({token:i})},d))})]},l)),(0,je.jsx)(Xs,{code:e})]})}):null;var Ys=({className:e,code:t,language:a})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(ml,{code:t,language:a})});var ul=v(require("next/image")),Vd={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},pl="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=",gl=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:s,size:l,src:i,loading:d}=e,u,c,p=t,m=i||"";if(!m&&s&&typeof s=="object"){let{alt:g,filename:x,height:A,url:O,width:Q}=s;u=Q,c=A,p=g||"",m=O||pl}let f=d||"lazy",h=l||Object.entries(Vd).map(([,g])=>`(max-width: ${g}px) ${g*2}je`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(ul.default,{alt:p||"",className:n(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:pl,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:h,src:m,width:a?void 0:u})})};var fl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var bl=()=>{if(fl){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 vl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,_r.useRef)(null);if((0,_r.useEffect)(()=>{let{current:s}=o;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,je.jsx)("video",{autoPlay:!0,className:n(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,je.jsx)("source",{src:`${bl()}/media/${s}`})})}return null};var Et=e=>{var l;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((l=r==null?void 0:r.mimeType)==null?void 0:l.includes("video"));return(0,je.jsx)(a||_r.Fragment,{...a!==null?{className:t}:{},children:o?(0,je.jsx)(vl,{...e}):(0,je.jsx)(gl,{...e})})};var _a=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("border border-border rounded-[0.8rem]",r),resource:o,src:s})})};var Zs=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("border border-border rounded-[0.8rem]",r),resource:o,src:s})})};var xr=({title:e,description:t,features:a,id:r})=>(0,je.jsxs)("section",{className:n("container je-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,je.jsx)("h2",{className:"mb-6 je-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,je.jsx)(Z,{content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:`grid gap-8 je-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,s)=>{var l,i,d,u,c;if(((l=o.settings)==null?void 0:l.contents)==="icon")return(0,je.jsx)($d,{section:o,index:s},s);{let p=()=>{if(o.icon.type!=="none")return{type:o.icon.type,iconName:o.icon.icon}};return(0,je.jsx)(ei,{variant:((i=o.settings)==null?void 0:i.card)==="default"?"solid":((d=o.settings)==null?void 0:d.card)||"solid",icon:p()||void 0,heading:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,buttonText:(u=o.link)!=null&&u.url?"Find out more":void 0,buttonHref:((c=o.link)==null?void 0:c.url)||void 0},s)}})})]}),$d=({section:e,index:t})=>{if(!e)return null;let a=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,je.jsx)("div",{className:"text-accent h-12 je-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(Z,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,je.jsx)("a",{href:e.link.url?e.link.url:"#",className:"no-underline group",children:a},t):a};var fo=v(require("react"));function Nr({nodes:e}){return(0,je.jsx)(fo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,je.jsx)(fo.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,je.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,je.jsx)("em",{children:s},a)),t.format&4&&(s=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,je.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,je.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,je.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((s,l)=>(0,je.jsx)("tr",{children:s.children.map((i,d)=>(0,je.jsx)("td",{children:Nr({nodes:i.children})},d))},l))})},a);let r=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return Nr({nodes:s.children})},o="children"in t?r(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,je.jsx)(yr,{...s},a);case"mediaBlock":return(0,je.jsx)(_a,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,je.jsx)(Zs,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,je.jsx)(Us,{className:"col-start-2 mb-4",...s},a);case"code":return(0,je.jsx)(Ys,{className:"col-start-2",...s},a);case"features":return(0,je.jsx)(xr,{...s},a);case"reusableContentBlock":Nr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:o},a):(0,je.jsx)("li",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}case"autolink":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,je.jsx)("div",{className:n({"container ":a,"max-je-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Nr({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};function Ud(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ei({variant:e="light",className:t,icon:a,heading:r,subheading:o,content:s,statistic:l,buttonText:i,buttonHref:d}){return(0,je.jsxs)("div",{className:n("rounded-3xl p-8 md:p-12",{solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,je.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,je.jsx)("div",{className:n("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:Ud(a)?(0,je.jsx)(Ee,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,je.jsx)("h2",{className:n("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:r})]}),e==="solid"&&l&&(0,je.jsx)("div",{className:"mb-6",children:(0,je.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:l})}),o&&(0,je.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:o}),s&&typeof s=="object"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,je.jsx)(Z,{enableGutter:!1,content:s,enableProse:!1,className:n(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,je.jsx)("div",{className:"je-8",children:(0,je.jsx)(k,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,je.jsxs)("a",{href:d,children:[i,(0,je.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,je.jsx)("div",{className:"absolute bottom-0 right-0 je-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var xl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,je.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Wd({icon:e,title:t,body:a,color:r="secondary"}){return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,je.jsx)("div",{className:"px-[2%] flex items-center",children:(0,je.jsx)("div",{className:"je-12 h-12",children:(0,je.jsx)(Ee,{type:e.type,iconName:e.name})})}),(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[30%]",children:t}),a&&(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[50%]",children:a})]})})}var wl=v(require("next/image"));function Xd(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,je.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,je.jsx)(wl.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,je.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,je.jsx)("div",{className:"je-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,je.jsxs)("a",{href:t,children:[(0,je.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,je.jsx)("div",{className:"je-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var jd=(e,t)=>`from-brand-${e} to-brand-${t}`;function Yd({...e}){let t=jd(e.brandFrom||"one",e.brandTo||"two");return(0,je.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,je.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,je.jsxs)("a",{href:e.url,children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),(0,je.jsx)("span",{children:e.message&&e.message})]}):(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,je.jsx)("div",{className:"flex flex-1 justify-end"})]})}var wr=v(require("react")),Kd={Architecture:(0,je.jsx)(vn.DraftingCompass,{className:"h-5 je-5 text-blue-600"}),Engineering:(0,je.jsx)(vn.Code,{className:"h-5 je-5 text-green-600"}),Development:(0,je.jsx)(vn.Code,{className:"h-5 je-5 text-purple-600"}),Delivery:(0,je.jsx)(vn.GanttChart,{className:"h-5 je-5 text-red-600"})},qd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let s=e.reports.length>0;return(0,je.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,je.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${o?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,je.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4"}):(0,je.jsx)(vn.ChevronRight,{className:"h-4 je-4"})}),(0,je.jsx)("div",{className:"je-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,je.jsx)(vn.Users,{className:"h-6 je-6 text-gray-500"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,je.jsxs)("div",{className:"flex items-center je-1",children:[Kd[e.discipline],(0,je.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,je.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Cl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,wr.useState)(t<1),s=()=>o(!r),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>l(c)||c.reports.some(i),d=a===""||i(e),u=l(e);return wr.default.useEffect(()=>{a!==""&&i(e)&&o(!0)},[a,e]),d?(0,je.jsxs)("div",{children:[(0,je.jsx)(qd,{person:e,level:t,onToggle:s,isExpanded:r,isHighlighted:u}),r&&e.reports.map((c,p)=>(0,je.jsx)(Cl,{person:c,level:t+1,searchTerm:a},p))]}):null};function Jd(){let[e,t]=(0,wr.useState)("");return(0,je.jsxs)("div",{className:"max-je-5xl mx-auto p-6",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,je.jsxs)("div",{className:"mb-4 relative",children:[(0,je.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"je-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,je.jsx)(vn.Search,{className:"absolute right-3 top-2.5 h-5 je-5 text-gray-400"})]}),(0,je.jsx)("div",{className:"space-je-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((r,o)=>(0,je.jsx)(Cl,{person:r,level:0,searchTerm:e},o))})]})}function Qd({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,je.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,je.jsxs)("div",{className:"lg:col-span-1 space-je-6 flex flex-col",children:[(0,je.jsxs)(ge,{className:"flex-grow",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Users,{className:"h-5 je-5"}),"Team"]})}),(0,je.jsxs)(Ne,{className:"p-6",children:[(0,je.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,je.jsxs)("div",{className:"space-je-6",children:[(0,je.jsx)("div",{className:"space-je-2",children:e.leadership.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsx)("div",{className:"space-je-2",children:e.core.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role}),o.count&&(0,je.jsxs)("span",{children:["(",o.count,"x)"]})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,je.jsx)($e.Users2,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:"SME input:"})]}),(0,je.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.PoundSterling,{className:"h-5 je-5"}),"Fee"]})}),(0,je.jsx)(Ne,{className:"p-6",children:(0,je.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.FileText,{className:"h-5 je-5"}),"Outputs"]})}),(0,je.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,je.jsx)("ol",{className:"list-decimal list-inside space-je-4",children:t.map((o,s)=>(0,je.jsxs)("li",{className:"text-sm",children:[(0,je.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,je.jsx)("span",{className:"text-muted-foreground",children:o.description})]},s))}),(0,je.jsx)("p",{className:"je-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Lightbulb,{className:"h-5 je-5"}),"Benefits"]})}),(0,je.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,je.jsx)("ul",{className:"space-je-4",children:a.map((o,s)=>(0,je.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,je.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,je.jsx)("span",{children:o})]},s))})})]})]})}function Zd(){return(0,je.jsx)("div",{className:"je-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,je.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,je.jsxs)("div",{className:"space-je-4 bg-primary p-3 rounded-lg",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,je.jsx)(vn.BarChart3,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,je.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,je.jsxs)("ul",{className:"text-sm",children:[(0,je.jsx)("li",{children:"Strategy definition"}),(0,je.jsx)("li",{children:"Programme leadership"}),(0,je.jsx)("li",{children:"Detailed planning"}),(0,je.jsx)("li",{children:"\u2022 Financial control"}),(0,je.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,je.jsx)(vn.CogIcon,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,je.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,je.jsx)(vn.Building2,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"We 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,je.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,je.jsx)(vn.BadgeCheck,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,je.jsx)("p",{className:"text-sm",children:"As je XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var ti=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,je.jsx)("div",{className:"container my-6",children:(0,je.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-je-8 gap-x-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:s,link:l,richText:i,size:d}=r;return(0,je.jsxs)("div",{className:n(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[i&&(0,je.jsx)(Z,{content:i,enableGutter:!1}),s&&(0,je.jsx)(ft,{...l})]},o)})})})};var bo=v(require("next/image"));function em({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,je.jsxs)("div",{className:"relative je-full overflow-hidden bg-white pb-16 _r-[calc(80vw*0.5)]",children:[(0,je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] je-full overflow-hidden",children:(0,je.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] je-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,je.jsx)(bo.default,{src:e,alt:"Header background",className:"h-full je-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,je.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,je.jsx)("div",{className:"h-16 je-32 md:h-24 md:je-48",children:(0,je.jsx)(bo.default,{src:r,alt:"Company logo",className:"h-full je-full object-contain",width:192,height:96})}),o&&(0,je.jsx)("div",{className:"h-10 je-20 md:h-12 md:je-24",children:(0,je.jsx)(bo.default,{src:o,alt:"Customer logo",className:"h-full je-full object-contain",width:96,height:48})})]}),(0,je.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,je.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,je.jsx)("h1",{className:"max-je-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Rl=v(require("next/image"));var ai=e=>{console.log("ReusableContentBlock:props",e);let{customId:t,reusableContent:a}=e;return console.log("ReusableContentBlock:reusableContent",a),console.log("ReusableContentBlock:object",typeof a=="object"),typeof a=="object"&&a!==null?(0,je.jsx)(Pr,{blocks:a.layout}):(0,je.jsx)(je.Fragment,{})};var Pl={content:ti,cta:yr,mediaBlock:_a,imageBlock:_a,features:xr,reusableContentBlock:ai},Pr=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,je.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{var d;let s=require("util");console.log("RenderBlocks:block",s.inspect(r,!1,null,!0));let{blockType:l}=r,i=r==null?void 0:r.theme;if(console.log("RenderBlocks:blockType",s.inspect(l,!1,null,!0)),l&&l in Pl){let u=Pl[l];if(console.log("BLOCK TYPE EXISTS",u),u)return(0,je.jsxs)("div",{className:"py-6 relative",children:[(0,je.jsx)(tm,{block:r,index:o}),(0,je.jsx)("div",{className:n("container",((d=i==null?void 0:i.settings)==null?void 0:d.theme)==="dark"?"dark":""),children:(0,je.jsx)(u,{...r})})]},o)}return null})}):null},tm=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let r={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,je.jsxs)("div",{className:n("absolute inset-0 je-full h-full -je-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,je.jsx)(Rl.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,je.jsx)("div",{className:"absolute inset-0",style:{background:r.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,je.jsx)("div",{className:n("absolute inset-0 -je-10 je-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var Dl=v(require("clsx"));var Sl=require("next/navigation");function am({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Sl.useRouter)(),o=(0,_r.useRef)(null),s=(0,_r.useRef)(null),l=(0,_r.useRef)(0),i=(0,_r.useRef)(!1),d=(0,_r.useRef)(0),u=(0,_r.useCallback)(p=>{if(p.target){let m=p.target,f=+new Date,h=m==null?void 0:m.closest("a");d.current=p.button,h?i.current=!0:(i.current=!1,l.current=f)}},[r,o,s,l]),c=(0,_r.useCallback)(p=>{var m,f;if((m=s.current)!=null&&m.href){let g=+new Date-l.current;if((f=s.current)!=null&&f.href&&g<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else r.push(s.current.href,{scroll:a})}},[r,o,s,l]);return(0,_r.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",u),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",u),p==null||p.removeEventListener("mouseup",c))}},[o,s,r]),{card:{ref:o},link:{ref:s}}}var kl=am;var Tl=v(require("next/link"));var Rr=e=>{let{card:t,link:a}=kl({}),{className:r,doc:o,relationTo:s,showCategories:l,title:i}=e,{slug:d,categories:u,meta:c,title:p}=o||{},{description:m,image:f}=c||{},h=u&&Array.isArray(u)&&u.length>0,g=i||p,x=m==null?void 0:m.replace(/\s/g," "),A=`/${s}/${d}`;return(0,je.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,je.jsxs)("div",{className:"relative je-full ",children:[!f&&(0,je.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,je.jsx)(Et,{resource:f,size:"33vw"})]}),(0,je.jsxs)("div",{className:"p-4",children:[l&&h&&(0,je.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&h&&(0,je.jsx)("div",{children:u==null?void 0:u.map((O,Q)=>{if(typeof O=="object"){let{title:he}=O,Ie=he||"Untitled category",gt=Q===u.length-1;return(0,je.jsxs)(_r.Fragment,{children:[Ie,!gt&&(0,je.jsx)(_r.Fragment,{children:", \xA0"})]},Q)}return null})})}),g&&(0,je.jsx)("div",{className:"prose",children:(0,je.jsx)("h3",{children:(0,je.jsx)(Tl.default,{className:"not-prose",href:A,ref:a.ref,children:g})})}),m&&(0,je.jsx)("div",{className:"je-2",children:m&&(0,je.jsx)("p",{children:x})})]})]})};var rm=e=>{let{className:t,docs:a,introContent:r}=e;return(0,je.jsxs)("div",{className:(0,Dl.default)("container",t),children:[r&&(0,je.jsx)(Z,{content:r,enableGutter:!1}),(0,je.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,s)=>typeof o=="string"?null:(0,je.jsx)(Rr,{doc:o,relationTo:"posts",showCategories:!0},s))})]})};var Sr=require("framer-motion");var Ml=e=>{let[t,a]=(0,_r.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,s=p=>{a(p)},l=()=>{a(p=>(p+1)%r.length)},i=()=>{a(p=>(p-1+r.length)%r.length)},u=(0,_r.useCallback)(((p,m)=>{let f;return(...h)=>{clearTimeout(f),f=setTimeout(()=>p(...h),m)}})(p=>{p.deltaY>0?l():i()},300),[]),c=p=>{p.key==="ArrowDown"?l():p.key==="ArrowUp"&&i()};return(0,_r.useEffect)(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",c)}),[]),(0,je.jsxs)("div",{className:"flex h-screen relative",children:[(0,je.jsx)("div",{className:"fixed left-0 top-0 flex h-screen je-9 je-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,m)=>(0,je.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 je-4 rounded-full transition-all hover:bg-accent duration-300 ${t===m?"bg-accent":"bg-gray-300"}`,onClick:()=>s(m),children:(0,je.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-je-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,m)=>(0,je.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${m===t?"opacity-100":"opacity-0"}`,children:(0,je.jsx)(Pr,{blocks:[p]})},m)),(0,je.jsx)("button",{className:"absolute bottom-4 left-1 je-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:l,children:(0,je.jsx)(om,{})})]})},om=()=>(0,je.jsx)(Sr.AnimatePresence,{children:(0,je.jsx)(Sr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("je-fit min-h-[50px] min-je-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,je.jsx)(Sr.motion.div,{initial:{je:0},animate:{je:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("je-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Il=v(require("next/link")),Al=v(require("next/image"));function Ll({blogs:e,width:t=3}){return(0,je.jsx)("div",{className:"je-full max-je-7xl mx-auto px-4 py-8",children:(0,je.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,je.jsx)(Il.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,je.jsxs)("div",{className:"relative size-full",children:[(0,je.jsx)(Al.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,je.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,je.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,je.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},r)})})})}function El({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:s,raisedAmount:l,companiesCount:i,dealsClosed:d,leadsGenerated:u}){return(0,je.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,je.jsxs)("div",{className:"mx-auto max-je-2xl px-6 lg:max-je-7xl lg:px-8",children:[(0,je.jsxs)("div",{className:"max-je-4xl",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,je.jsx)("h1",{className:"je-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,je.jsx)("p",{className:"je-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,je.jsxs)("section",{className:"je-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-je-16",children:[(0,je.jsxs)("div",{className:"lg:pr-8",children:[(0,je.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,je.jsx)("p",{className:"je-6 text-base/7 text-gray-600",children:o})]}),(0,je.jsx)("div",{className:"_r-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,je.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((c,p)=>(0,je.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,je.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,je.jsxs)("div",{className:"max-lg:je-16 lg:col-span-1",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,je.jsx)("je",{className:"je-6 border-t border-gray-200"}),(0,je.jsxs)("_r",{className:"je-6 grid grid-cols-1 gap-x-8 gap-je-4 sm:grid-cols-2",children:[(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 max-sm:border-je max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"je"]})]})]})]})]})]})})}var Bl=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),s=r+1<10?`0${r+1}`:r+1,l=o<10?`0${o}`:o,i=a.getFullYear();return`${l}/${s}/${i}`};var Hl=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Fl=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}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function zl({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:s,invert:l=!1}){let i=n(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},s);return(0,je.jsxs)("div",{className:i,children:[e&&(0,je.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,je.jsx)("h2",{className:n("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",l&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,je.jsx)("p",{className:"je-5 whitespace-pre-line",children:a}):a&&(0,je.jsx)(Z,{content:a,enableGutter:!1})]})}function wa({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=n("container",t&&"full-width",a&&"no-padding",r);return(0,je.jsx)("div",{className:o,children:e})}var _l=(e,t)=>e[t%e.length];var oi=v(require("next/image"));function sm({blogs:e,sectionHeading:t}){return(0,je.jsx)("section",{className:n("section-padding-primary overflow-hidden "),children:(0,je.jsxs)(wa,{children:[(0,je.jsx)("div",{className:"mx-auto max-je-[630px]",children:t&&(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,je.jsx)(zl,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,je.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-je-30px",children:e.map((a,r)=>(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":_l([200,400,600],r),className:"je-full px-4 md:je-1/2 md:px-[15px] lg:je-1/3",children:(0,je.jsx)($l,{...a})},r))})]})})}var Gl=n("inline-flex items-center gap-2 text-white"),Ab=n("text-sm text-white");function $l({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:s}){return(0,je.jsxs)("article",{className:"group/blog relative je-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,je.jsx)("span",{className:"absolute inset-0 je-[2] "}),(0,je.jsx)(oi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
11
11
  (min-width:768px) 50vw,
12
12
  (min-width:1024px) 33vw,
13
13
  100vw
14
- `,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,je.jsx)(ri.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
14
+ `,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,je.jsx)(oi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
15
15
  (min-width:768px) 50vw,
16
16
  (min-width:1024px) 33vw,
17
17
  100vw
18
- `,className:n("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,je.jsxs)("div",{className:"relative je-10 flex h-full flex-1 je-full flex-col",children:[o&&(0,je.jsx)("div",{children:(0,je.jsx)("div",{className:"inline-grid je-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,je.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,je.jsx)("span",{className:"block",children:Hl(o)})})})}),(0,je.jsxs)("div",{className:"je-auto space-je-2 text-white md:space-je-5",children:[(0,je.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-je-2",children:(0,je.jsx)("p",{className:Gl})}),(0,je.jsx)("h3",{className:"text-md font-bold je-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,je.jsx)(we,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,je.jsx)("div",{children:(0,je.jsxs)(we,{href:e,className:n(Gl,"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,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaArrowRight,{})})]})})]})]})]})}var im=e=>{let{posts:t}=e;return(0,$a.jsx)("div",{className:n("container"),children:(0,$a.jsx)("div",{children:(0,$a.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-je-4 gap-x-4 lg:gap-je-8 lg:gap-x-8 je:gap-x-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,$a.jsx)("div",{className:"col-span-4",children:(0,$a.jsx)(Rr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Ul=v(require("clsx")),Wl=v(require("next/image")),nm=e=>{let{loading:t,priority:a,className:r}=e;return(0,je.jsx)(Wl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ul.default)("max-je-[9.375rem] je-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var lm={plural:"Docs",singular:"Doc"},cm={posts:{plural:"Posts",singular:"Post"}},dm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:s,totalDocs:l}=e,i=(o?o-1:1)*(s||1)+1;l&&i>l&&(i=0);let d=(o||1)*(s||1);l&&d>l&&(d=l);let{plural:u,singular:c}=r||cm[a||""]||lm||{};return(0,je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced no results.",typeof l!="undefined"&&l>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${l} ${l>1?u:c}`]})};var oi=v(require("react")),si=({className:e,...t})=>(0,je.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex je-full justify-center",e),role:"navigation",...t});si.displayName="Pagination";var ii=oi.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));ii.displayName="PaginationContent";var Ht=oi.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{className:n("",e),ref:a,...t}));Ht.displayName="PaginationItem";var Ca=({className:e,isActive:t,size:a="icon",...r})=>(0,je.jsx)("button",{"aria-current":t?"page":void 0,className:n(Vt({size:a,variant:t?"outline":"ghost"}),e),...r});Ca.displayName="PaginationLink";var ni=({className:e,...t})=>(0,je.jsxs)(Ca,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,je.jsx)(bn.ChevronLeft,{className:"h-4 je-4"}),(0,je.jsx)("span",{children:"Previous"})]});ni.displayName="PaginationPrevious";var li=({className:e,...t})=>(0,je.jsxs)(Ca,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,je.jsx)("span",{children:"Next"}),(0,je.jsx)(bn.ChevronRight,{className:"h-4 je-4"})]});li.displayName="PaginationNext";var vo=({className:e,...t})=>(0,je.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(bn.MoreHorizontal,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More pages"})]});vo.displayName="PaginationEllipsis";var mm=e=>{let t=(0,Sl.useRouter)(),{className:a,page:r,totalPages:o}=e,s=r<o,l=r>1,i=r-1>1,d=r+1<o;return(0,je.jsx)("div",{className:n("my-12",a),children:(0,je.jsx)(si,{children:(0,je.jsxs)(ii,{children:[(0,je.jsx)(Ht,{children:(0,je.jsx)(ni,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),i&&(0,je.jsx)(Ht,{children:(0,je.jsx)(vo,{})}),l&&(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),s&&(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,je.jsx)(Ht,{children:(0,je.jsx)(vo,{})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(li,{disabled:!s,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var ci=v(require("clsx"));function pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:d,...u}){let p=d?m=>(0,je.jsx)(d,{...m}):l?({href:m,children:f,...h})=>(0,je.jsx)("button",{onClick:()=>l&&l(m),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...h,children:f}):m=>(0,je.jsx)("a",{...m});return(0,je.jsxs)(na,{...u,variant:"inset",children:[(0,je.jsx)(la,{children:(0,je.jsx)(Le,{children:(0,je.jsx)(xe,{children:i?(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)(ae,{className:"bg-gray-200 my-2 je-full h-7"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 my-2 h-5"})]}):(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,je.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),i&&(0,je.jsxs)($t,{children:[(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"})]}),(0,je.jsxs)($t,{children:[e&&!i&&e.map((m,f)=>(0,je.jsx)(um,{subNav:m,pathName:o,Link:p},f)),(0,je.jsx)(Ye,{className:"je-auto",children:(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:t&&!i&&t.map(m=>(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{asChild:!0,size:"sm",children:(0,je.jsxs)(p,{href:m.url||"",children:[m.icon&&(0,je.jsx)(m.icon,{}),(0,je.jsx)("span",{children:m.label})]})})},m.label))})})})]}),(0,je.jsx)(ca,{})]})}function um({subNav:e,pathName:t,Link:a}){var s,l;let r=e,o=!1;return r.links&&r.links.map(i=>{i.url===t&&(o=!0)}),(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsx)(Ye,{className:"py-0",children:(0,je.jsx)(Le,{children:(0,je.jsx)(Ct,{asChild:!0,defaultOpen:r.isActive,children:(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,tooltip:r.label,className:(0,ci.default)(o&&"font-bold text-accent"),children:(0,je.jsxs)(a,{href:r.url,children:[r.icon&&(0,je.jsx)(r.icon,{}),(0,je.jsx)("span",{children:r.label})]})}),(s=r.links)!=null&&s.length?(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(_t,{asChild:!0,children:(0,je.jsxs)(sr,{className:"data-[state=open]:rotate-90",children:[(0,je.jsx)(bn.ChevronRight,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,je.jsx)(Gt,{children:(0,je.jsx)(Ut,{children:(l=r.links)==null?void 0:l.map(i=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,className:(0,ci.default)(i.url===t&&"font-bold text-accent"),children:(0,je.jsx)(a,{href:i.url,children:(0,je.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},r.label)})})})}var ql=v(require("clsx"));var gm=()=>(0,je.jsx)(Ee,{iconName:"github",size:"10x"});function fm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:d,onNavClick:u,LinkComponent:c,...p}){let h=c?g=>(0,je.jsx)(c,{...g}):u?({item:g,children:x,...A})=>(0,je.jsx)("button",{onClick:()=>u&&u(g),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...A,children:x}):g=>(0,je.jsx)("a",{href:g.href,...g});return(0,je.jsxs)(na,{side:"right",variant:"inset",...p,children:[(0,je.jsxs)(la,{className:"border-je border-sidebar-border",children:[(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{children:(0,je.jsxs)(Ke,{onClick:s,children:[(0,je.jsx)(bn.FilePlus,{})," ",(0,je.jsx)("span",{children:"Add Document"})]})}),d&&(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{onClick:d,tooltip:"Open in GitHub",children:(0,je.jsx)(gm,{})})})]}),(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:()=>l(),variant:o?"outline":"default",className:(0,ql.default)(o&&"text-accent"),children:[(0,je.jsx)(bn.Edit,{})," ",(0,je.jsx)("span",{children:"Edit"})]})}),(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:i,children:[(0,je.jsx)(bn.Printer,{})," ",(0,je.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Editor Controls",(0,je.jsx)(bn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:a})})]})}),(0,je.jsx)(or,{className:"mx-0"})]}),(0,je.jsxs)($t,{className:"overflow-auto",children:[r&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Related Content"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]}),(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Table of Contents"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Related Content",(0,je.jsx)(bn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:(0,je.jsx)(Le,{children:e&&Object.keys(e).map(g=>(0,je.jsxs)(xe,{children:[(0,je.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,je.jsx)(Ut,{children:e[g].map(x=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:!1,size:"sm",children:(0,je.jsxs)(h,{href:x.url,item:x,className:"flex justify-between items-center je-full text-xs",children:[(0,je.jsx)("span",{children:x.label}),x.type==="note"&&(0,je.jsx)(bn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,je.jsx)(Ee,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!r&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Table of Contents",(0,je.jsx)(bn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:(0,je.jsx)(Le,{children:t.map(g=>{var x;return(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,children:(0,je.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,je.jsx)(Ut,{children:g.items.map(A=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:A.isActive,size:"sm",children:(0,je.jsx)("a",{href:`#${A.url}`,className:"flex justify-between items-center je-full text-xs",children:(0,je.jsx)("span",{children:A.title})})})},A.title))}):null]},g.title)})})})})]})})]}),(0,je.jsx)(ca,{})]})}var Ql=v(require("next/image"));function bm({title:e,members:t}){return(0,je.jsx)(ge,{className:"mb-6",children:(0,je.jsxs)("div",{className:"p-6",children:[(0,je.jsxs)("div",{className:"flex items-center mb-4",children:[(0,je.jsx)(bn.Users,{className:"je-6 h-6 text-accent mr-2"}),(0,je.jsx)("h2",{className:"text-je font-semibold text-foreground",children:e})]}),(0,je.jsx)("div",{className:"space-je-4",children:t.map((a,r)=>(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsx)("div",{className:"relative je-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,je.jsx)(Ql.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,je.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Zl=v(require("next/link"));var vm=({links:e,title:t="Related Content"})=>(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:t})}),(0,je.jsx)(Ne,{children:(0,je.jsx)("nav",{className:"flex flex-col space-je-2",children:e.map((a,r)=>(0,je.jsxs)(Zl.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,je.jsx)(bn.ExternalLink,{className:"ml-1 h-3 je-3"})]},r))})})]});var di=n("grid h-[45px] je-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function hm({pages:e}){let t=(0,Sl.useSearchParams)(),a=(0,Sl.usePathname)(),{replace:r}=(0,Sl.useRouter)(),{totalPages:o,page:s}=e,[l,i]=(0,_r.useState)({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&l.start>1?i(m=>({start:m.start-1,end:m.end-1})):p==="right"&&l.end<o&&i(m=>({start:m.start+1,end:m.end+1}))};function u(p){let m=new URLSearchParams(t);p?m.set("page",p):m.delete("page"),r(`${a}?${m.toString()}`)}if(o<=1)return null;let c=[];for(let p=l.start;p<=l.end;p++)c.push(p);return(0,je.jsx)("div",{className:"je-12",children:(0,je.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(di,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,je.jsx)(co.FaArrowLeft,{})})}),c.map((p,m)=>(0,je.jsx)("li",{children:(0,je.jsx)("a",{className:n(di,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},m)),l.end<o&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(di,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,je.jsx)(co.FaArrowRight,{})})})]})})}var gv=n("transition-colors duration-400 hover:text-primary ease-in-out");function ym({title:e,links:t}){let a=(0,Sl.useSearchParams)(),r=(0,Sl.usePathname)(),{replace:o}=(0,Sl.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),o(`${r}?${i.toString()}`)}return(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:e&&e})}),(0,je.jsx)(Ne,{children:t&&t.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:_r-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(l.href)},children:[l.label,(0,je.jsx)(bn.ExternalLink,{className:"ml-1 h-3 je-3"})]},i))})})})]})}function xm({types:e}){let[t,a]=(0,_r.useState)(e&&e[0].href),r=(0,Sl.useSearchParams)(),o=(0,Sl.usePathname)(),{replace:s}=(0,Sl.useRouter)();function l(i){let d=new URLSearchParams(r);i?d.set("type",i):d.delete("type"),a(i),s(`${o}?${d.toString()}`)}return(0,je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,je.jsx)(k,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},d))})}var oc=v(require("next/image"));var pi=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative -je-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,je.jsx)("div",{className:"container je-[20rem] mb-8 je-10 relative flex items-end justify-center",children:(0,je.jsxs)("div",{className:"text-center container",children:[a||r&&(0,je.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:!0}),Array.isArray(e)&&e.length>0&&(0,je.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},s)=>(0,je.jsx)("li",{children:(0,je.jsx)(ft,{...o})},s))})]})}),(0,je.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,je.jsx)(Et,{fill:!0,imgClassName:"je-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,je.jsx)("div",{children:(0,je.jsx)(oc.default,{className:"-je-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ui=v(require("next/image"));var Nm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:s}=e;return(0,je.jsx)(ui.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:s||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(ui.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},gi=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 _r-10",children:[t&&(0,je.jsx)(Nm,{media:t}),(0,je.jsx)("div",{className:"mx-0 min-je-full relative je-9",children:(0,je.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,je.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var fi=({children:e,richText:t})=>(0,je.jsx)("div",{className:"min-je-full py-10 bg-muted je-24",children:(0,je.jsx)("div",{className:"container",children:e||t&&(0,je.jsx)(Z,{content:t,enableGutter:!1})})});var sc=v(require("react")),ic=v(require("next/image"));var wm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:s}=e;return(0,je.jsxs)("div",{className:"relative grid",children:[(0,je.jsx)("div",{className:"relative je-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,je.jsxs)("div",{className:"container mx-auto",children:[(0,je.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,je.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[r&&r.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsxs)("p",{className:"text-sm",children:["Author",r.length>1?"s":""]}),(0,je.jsx)("p",{children:r.map((i,d)=>(0,je.jsxs)(sc.default.Fragment,{children:[i.name,d<r.length-2&&", ",d===r.length-2&&(r.length>2?", and ":" and ")]},i.id))})]}),o&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,je.jsx)("time",{dateTime:o,children:Bl(o)})]}),t&&t.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,je.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,d)=>typeof i=="object"&&i!==null&&(0,je.jsx)(Qe,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||d))})]})]})]})}),(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-full",children:[(0,je.jsx)(ic.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 je-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var xo=require("@heroicons/react/20/solid");var nc=v(require("next/image"));function bi({title:e,breadcrumbItems:t,image:a}){return(0,je.jsxs)("section",{className:"-je-10 relative flex min-h-[250px] _r-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 je-0",children:a&&(0,je.jsx)(nc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,je.jsx)(wa,{children:(0,je.jsxs)("div",{className:"relative je-10 flex flex-wrap items-center justify-between gap-x-20 gap-je-8 text-accent-900 dark:text-white lg:_r-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:je-1/2",children:e}),t&&t.length>0&&(0,je.jsx)(vi,{breadcrumbItems:t})]})})]})}var Cm={highImpact:pi,lowImpact:fi,mediumImpact:gi,sectionHero:bi},Pm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Cm[t];return a?(0,je.jsx)(a,{...e}):null};function vi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,je.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(xo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,je.jsx)("li",{children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(xo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,je.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,je.jsx)(je.Fragment,{})}var We=require("@headlessui/react"),Co=require("@heroicons/react/24/outline");var Rm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,je.jsx)("a",{href:r,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute -bottom-1 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,je.jsxs)(We.Popover,{children:[(0,je.jsxs)(We.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute bottom-0 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,je.jsx)(xo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 je-5 flex-none text-accent"})]}),(0,je.jsxs)(We.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -je-10 bg-popover je-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,je.jsx)("div",{className:"mx-auto grid max-je-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 je:gap-x-8 je-50",children:t&&t.map(o=>(0,je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:o.icon&&(0,je.jsx)(lc,{icon:o.icon,size:"4x"})}),(0,je.jsxs)("a",{href:o.href,className:"je-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,je.jsx)("span",{className:"absolute inset-0"})]}),(0,je.jsx)("p",{className:"je-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,je.jsx)("div",{className:"bg-gray-50",children:(0,je.jsx)("div",{className:"mx-auto max-je-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(o=>(0,je.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,je.jsx)(lc,{icon:o.icon,className:"h-5 je-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),lc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)(Ee,{...e,size:a});if("src"in e)return(0,je.jsx)("div",{className:n(t,"h-full max-je-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},No=Rm;var wo=["light","dark","green"];function Sm({title:e,logo:t,menuItems:a}){let[r,o]=(0,_r.useState)(!1),[s,l]=(0,_r.useState)(!1),[i,d]=(0,_r.useState)("light"),u=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,m]=(0,_r.useState)(`${u}.${c}`),f=g=>{wo.includes(g)?m(g==="light"?`${u}.${c}`:`${u}-${g}.${c}`):m(`${u}.${c}`)};(0,_r.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let h=()=>{let g=wo[(wo.indexOf(i)+1)%wo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,je.jsxs)("header",{className:"relative isolate je-10 bg-background h-14",children:[(0,je.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,je.jsx)("div",{className:"flex lg:flex-1",children:(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:e}),(0,je.jsx)("img",{alt:e,src:p,className:"h-9 je-auto"})]})}),(0,je.jsx)("div",{className:"flex lg:hidden",children:(0,je.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,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-6 je-6"})]})}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,je.jsx)(No,{...g},g.name))}),(0,je.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,je.jsx)("button",{onClick:h,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"}):i==="green"?(0,je.jsx)(xo.MoonIcon,{className:"h-6 je-6"}):(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"})})})]}),(0,je.jsxs)(We.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white px-6 py-6 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,je.jsx)("img",{alt:e,src:t,className:"h-8 je-auto"})]}),(0,je.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 py-6",children:a.map(g=>(0,je.jsx)(km,{...g},g.name))})})})]})]})]})}function km({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.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,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"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 uc=v(require("next/image"));var hi=v(require("next/image"));function oa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,je.jsxs)(we,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,je.jsx)(hi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,je.jsx)(hi.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 dc=require("next-themes");function Dr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)(""),d=["light","dark"],{theme:u,setTheme:c}=(0,dc.useTheme)();(0,_r.useEffect)(()=>{i(u||"dark")},[u]);let p=()=>{let m=d[(d.indexOf(l)+1)%d.length];i(m),c(m)};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsx)(je.Fragment,{children:(0,je.jsx)("header",{className:`je-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-je-0":"-translate-je-full bg-transparent"}`,children:(0,je.jsx)(wa,{className:"px-0",children:(0,je.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-je-je",children:(0,je.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-je-je border border-t-0 border-accent",children:[(0,je.jsx)(oa,{logoDark:a,logoLight:t}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r&&r.map(m=>(0,je.jsx)(No,{...m},m.name))}),(0,je.jsx)("div",{className:"flex items-center space-x-4",children:(0,je.jsx)("button",{className:"fixed right-4 je-[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,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(bn.Sun,{className:"absolute h-6 je-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(bn.Moon,{className:"absoulte h-6 je-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var yi=["light","dark"];function Mr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,s]=(0,_r.useState)(!1),{theme:l,setTheme:i}=(0,dc.useTheme)(),[d,u]=(0,_r.useState)(!1),[c,p]=(0,_r.useState)("light");(0,_r.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,_r.useEffect)(()=>{p(l||"dark")},[l]);let m=()=>{let f=yi[(yi.indexOf(c)+1)%yi.length];p(f),i(f)};return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("header",{className:`je-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-je-0":"-translate-je-full bg-transparent"}`,children:[(0,je.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,je.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&je.logo-light]:[filter:brightness(0)_invert(1)] dark:border-je dark:border-accent",children:[(0,je.jsx)(oa,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 je-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-4 je-4"})]}),(0,je.jsx)("button",{className:"fixed right-16 je-[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:m,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(bn.Sun,{className:"absolute h-4 je-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(bn.Moon,{className:"absoulte h-4 je-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(We.Dialog,{open:d,onClose:u,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white dark:bg-[#212124] px-2 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,je.jsx)(oa,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 px-2 py-6",children:a&&a.map(f=>(0,je.jsx)(Tm,{...f},f.name))})})})]})]})]})})}function Tm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.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,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"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 Dm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:s}){let[l,i]=(0,_r.useState)(!1),[d,u]=(0,_r.useState)(!1),c=()=>{let m=document.getElementById("next-section");m&&m.scrollIntoView({behavior:"smooth"})};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsxs)("div",{className:"relative h-screen",children:[(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-screen overflow-hidden",children:[(0,je.jsxs)("video",{className:"object-cover je-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,je.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,je.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!l&&!d&&(0,je.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 je-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{u(!d)},children:(0,je.jsx)(bn.Menu,{className:"je-6 h-6 text-white"})}),(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 je-50",children:[(0,je.jsx)(Dr,{isMenuOpen:l||d,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,je.jsxs)("div",{className:"absolute inset-0 h-full je-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,je.jsx)(uc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto je-auto je-8 hidden lg:block",d&&"lg:hidden")}),(0,je.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,je.jsx)("h1",{className:"text-6xl font-bold _r-auto mb-12",children:o&&o}),(0,je.jsx)("div",{className:"text-3xl mb-8 max-je-2xl",children:s&&s})]}),(0,je.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center je-full mb-8",children:(0,je.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,je.jsx)(bn.ChevronDown,{size:64})})})]})]})}var gc=v(require("next/image"));var Mm=n("text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 block px-4"),xi=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ni=n("je-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),wi=n("flex items-center gap-5"),To=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Im({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:s,columnTwo:l,columnThree:i,footerBottom:d}=t;return(0,je.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,je.jsx)("div",{className:"py-16 md:py-20",children:(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 je:grid-cols-4",children:[(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,je.jsx)(oa,{logoLight:a,logoDark:r}),(0,je.jsx)("p",{className:"mb-7 je-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,je.jsx)("nav",{"aria-label":"social links",children:(0,je.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:o.socialLinks.map((u,c)=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":u.href,className:Mm,href:u.href,openNewTab:!0,children:(0,je.jsx)("span",{children:u.icon})})},c))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,je.jsx)("h3",{className:xi,children:s.title}),s.links&&s.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2",children:s.links.map(u=>(0,je.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,je.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,je.jsx)(co.FaChevronRight,{})}),(0,je.jsx)(we,{href:u.href,openNewTab:u.openNewTab,className:To,children:u.label})]},u.label))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,je.jsx)("h3",{className:xi,children:l.title}),(0,je.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,je.jsxs)("li",{className:wi,children:[(0,je.jsx)("span",{className:Ni,children:(0,je.jsx)(co.FaPaperPlane,{})}),(0,je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,je.jsxs)("li",{className:wi,children:[(0,je.jsx)("span",{className:Ni,children:(0,je.jsx)(co.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,je.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,c)=>(0,je.jsx)("a",{href:`mailto:${u}`,className:To,children:u},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,je.jsxs)("li",{className:wi,children:[(0,je.jsx)("span",{className:Ni,children:(0,je.jsx)(co.FaPhone,{})}),(0,je.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,c)=>(0,je.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:To,children:u},c))})]})]})]}),i&&(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,je.jsx)("h3",{className:xi,children:i.title}),i.blogs&&i.blogs.length>0&&(0,je.jsx)("div",{className:"grid gap-6",children:i.blogs.map((u,c)=>(0,je.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,je.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,je.jsx)(gc.default,{...u.image,alt:u.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaCalendarDays,{})}),(0,je.jsx)("span",{children:Fl(u.date)})]}),(0,je.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,je.jsx)(we,{href:u.slug,className:"transition-colors duration-300 hover:text-accent",children:u.title})})]})]},c))})]})]})})}),(0,je.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-je-4 md:gap-x-10",children:[(0,je.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,je.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(u=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":`Go to page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:To,children:u.label})},u.label))})})]})})})]})}function Am({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,je.jsxs)("div",{className:n("fixed top-0 left-0 right-0 je-50",o),children:[(0,je.jsx)(Dr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Lm({children:e,...t}){return(0,je.jsx)(dc.ThemeProvider,{...t,children:e})}var Sa=require("sonner");function Ci({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,_r.useState)([]),s=(0,Sl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},i=c=>{o(p=>p.includes(c)?p.filter(m=>m!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(Sa.toast.success(c.message),s.refresh()):Sa.toast.error(`Error: ${c.message}`),o([])},u=async()=>{let c=await a(r);c.success?(Sa.toast.success(c.message),s.refresh()):Sa.toast.error(`Error: ${c.message}`),o([])};return(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,je.jsxs)("div",{className:"space-x-2",children:[(0,je.jsx)(k,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,je.jsx)(k,{onClick:u,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,je.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,je.jsxs)("ul",{className:"divide-je divide-gray-200",children:[(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,je.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,je.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-10 je-10",children:[(0,je.jsx)(Dt,{src:c.userImage,alt:c.userName}),(0,je.jsx)(Mt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-3",children:(0,je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.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,je.jsx)(Qe,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,je.jsx)(Sa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Pi=require("date-fns"),Em=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,$.jsx)("div",{className:"flex space-x-2",children:e.map((o,s)=>(0,$.jsx)(k,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function Si({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,_r.useState)(new Date),[o,s]=(0,_r.useState)(new Date),[l,i]=(0,_r.useState)("Full Day"),[d,u]=(0,_r.useState)(!1),c=(0,Sl.useRouter)();(0,_r.useEffect)(()=>{u(a!==o||!a||!o),d&&i("Full Day")},[a,o]);let p=f=>{i(f)};return(0,$.jsxs)("div",{className:"max-je-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){Sa.toast.error("Please select both start and end dates");return}let h=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(h=.5),h>e){Sa.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",l),g.append("duration",h.toString());let x=await(t||Bm)(g);x.success?(Sa.toast.success(x.message),r(void 0),s(void 0),i("Full Day"),c.refresh()):Sa.toast.error(`Error: ${x.message}`)},className:"space-je-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(ur,{children:[(0,$.jsx)(gr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(bn.CalendarIcon,{className:"mr-2 h-4 je-4"}),a?(0,Pi.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Oa,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(vr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&s(f)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(ur,{children:[(0,$.jsx)(gr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,$.jsx)(bn.CalendarIcon,{className:"mr-2 h-4 je-4"}),o?(0,Pi.format)(o,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Oa,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(vr,{mode:"single",selected:o,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-je-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Em,{options:["Full Day","Morning","Afternoon"],value:l,onChange:p,disabled:[!1,d,d]})]}),(0,$.jsx)(k,{type:"submit",className:"je-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Sa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Bm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function xc(...e){return e.filter(Boolean).join(" ")}function ki({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,je.jsxs)("div",{className:"sm:flex-auto",children:[(0,je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,je.jsx)("p",{className:"je-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(bn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:i,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,je.jsxs)(k,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(bn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})]}),(0,je.jsx)("div",{className:"je-8 flow-root",children:(0,je.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,je.jsx)("div",{className:"max-h-[60vh] overflow-je-auto",children:(0,je.jsxs)("table",{className:"min-je-full border-separate border-spacing-0",children:[(0,je.jsx)("thead",{className:"sticky top-0 je-20 bg-white",children:(0,je.jsxs)("tr",{children:[(0,je.jsx)("th",{scope:"col",className:"sticky left-0 top-0 je-30 border-je 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,u)=>(0,je.jsx)("th",{scope:"col",className:"sticky top-0 je-10 border-je 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:u+1},u))]})}),(0,je.jsx)("tbody",{children:r.map((d,u)=>(0,je.jsxs)("tr",{children:[(0,je.jsx)("td",{className:xc(u!==r.length-1?"border-gray-200":"","sticky left-0 je-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-11 je-11",children:[(0,je.jsx)(Dt,{src:d.image,alt:d.name}),(0,je.jsx)(Mt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-4",children:(0,je.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(h=>h.userId===d.id&&new Date(h.startDate)<=m&&new Date(h.endDate)>=m);return(0,je.jsx)("td",{className:xc(u!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,je.jsx)("div",{className:`h-6 je-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,je.jsx)("div",{className:`h-3 je-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Ti({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,_r.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:m,isCurrentMonth:m.getMonth()===e.getMonth(),isToday:m.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=m&&new Date(f.endDate)>=m)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,je.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,je.jsxs)("header",{className:"flex items-center justify-between border-je border-gray-200 px-6 py-4 lg:flex-none",children:[(0,je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,je.jsx)("div",{className:"flex items-center",children:(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(bn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:u,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,je.jsxs)(k,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(bn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})})]}),(0,je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-je border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Fr"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["F",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]})]}),(0,je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,je.jsx)("div",{className:"hidden je-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(c=>(0,je.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex h-6 je-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,je.jsx)("ol",{className:"je-2 space-je-1",children:c.holidays.map(p=>(0,je.jsx)("li",{children:(0,je.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,je.jsx)("div",{className:"isolate grid je-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,je.jsxs)("button",{type:"button",className:n(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:je-10"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===r&&c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,je.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,je.jsx)("span",{className:"-mx-0.5 je-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,je.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 je-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var sa=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function Hm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[d,u]=(0,_r.useState)("Calendar View"),c=(0,Sl.useRouter)(),p=!1,m=(0,Pi.parseISO)(a),f=async g=>{let x=(0,Pi.format)(g,"dd-MM-yyyy"),A=new URL(window.location.href);return A.searchParams.set("date",x),c.push(A.toString()),{success:!0}};if(p)return(0,je.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,je.jsx)("div",{className:"animate-spin rounded-full h-32 je-32 border-t-2 border-je-2 border-gray-900"})});let h=[{name:"Grid View",icon:sa.Grid,current:d==="Grid View"},{name:"Calendar View",icon:sa.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:sa.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:sa.CheckSquare,current:d==="Approve Leave"}];return(0,je.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,je.jsxs)("div",{className:"mb-8",children:[(0,je.jsxs)("div",{className:"sm:hidden",children:[(0,je.jsx)("select",{value:d,onChange:g=>u(g.target.value),className:"block je-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:h.map(g=>(0,je.jsx)("option",{children:g.name},g.name))}),(0,je.jsx)(bn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 je-5 text-gray-400","aria-hidden":"true"})]}),(0,je.jsx)("div",{className:"hidden sm:block",children:(0,je.jsx)("div",{className:"border-je border-gray-200",children:(0,je.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:h.map(g=>(0,je.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(g.name)},className:wc(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-je-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,je.jsx)(g.icon,{className:wc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 je-5"),"aria-hidden":"true"}),(0,je.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,je.jsx)(ki,{currentDate:m,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,je.jsx)(Ti,{currentDate:m,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,je.jsx)(Si,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,je.jsx)(Ci,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Di({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:s,onAddComment:l}){var Ie,gt,S,H,at;let[i,d]=(0,_r.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,c]=(0,_r.useState)(""),[p,m]=(0,_r.useState)(!1),[f,h]=(0,_r.useState)(null);(0,_r.useEffect)(()=>{m(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let N=await s(i);N.success?(m(!1),h(null)):console.error("Failed to save deal:",N.errors)}catch(N){console.error("Failed to save deal:",N)}},x=(N,G)=>{d(U=>({...U,[N]:G}))},A=N=>{let G=(i.categories||[]).includes(N)?(i.categories||[]).filter(U=>U!==N):[...i.categories||[],N];x("categories",G)},O=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let G=await l(N);if(!G.success){console.error("Failed to add comment:",G.errors);return}}catch(G){console.error("Failed to add comment:",G)}d(G=>({...G,comments:[...G.comments||[],N]})),c("")}},Q=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},he=N=>t==null?void 0:t.find(G=>G.id===Number(N));return(0,je.jsx)(Je,{open:!0,children:(0,je.jsxs)(Ve,{className:"max-je-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,je.jsxs)(it,{className:"flex flex-row items-center justify-between",children:[(0,je.jsx)(nt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,je.jsxs)("div",{className:"flex space-x-2",children:[(0,je.jsx)(k,{variant:"outline",onClick:o,children:"Close"}),(0,je.jsxs)(k,{onClick:g,disabled:!p,children:[(0,je.jsx)(bn.SaveIcon,{className:"je-4 h-4 mr-2"}),"Save"]})]})]}),(0,je.jsxs)(Kt,{className:"flex-grow pr-4",children:[(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,je.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,je.jsx)(Ae,{type:"number",value:i.value,onChange:N=>x("value",Number(N.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,je.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(Ie=i.value)==null?void 0:Ie.toLocaleString()]})}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,je.jsxs)(ga,{value:((S=(gt=i==null?void 0:i.assignee)==null?void 0:gt.id)==null?void 0:S.toString())||"",onValueChange:N=>x("assignee",he(N)),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(N=>{var G;return(0,je.jsx)(ea,{value:((G=N==null?void 0:N.id)==null?void 0:G.toString())||"",children:N.name},N.id)})})]}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,je.jsx)(bn.UserIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.assignee.name})]})]}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,je.jsx)(Ae,{type:"date",value:(at=(H=i.closureDate)==null?void 0:H.split("je")[0])!=null?at:"",onChange:N=>x("closureDate",N.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,je.jsx)(bn.CalendarIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,je.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,je.jsx)(ta,{value:i.description||"",onChange:N=>x("description",N.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:i.description})]})}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 _r-2 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,je.jsxs)(ga,{value:i.status,onValueChange:N=>{x("status",N),h(null)},children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select status"})}),(0,je.jsx)(Zt,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,je.jsx)(ea,{value:N,children:N},N))})]}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:i.status})]}),(0,je.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(N=>{var G,U;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:((G=N.id)==null?void 0:G.toString())||"",checked:(i.categories||[]).some(Lr=>Lr.id===N.id),onCheckedChange:()=>N.id!==void 0&&A(N)}),(0,je.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${Q(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:i.categories&&i.categories.map(N=>{console.log("cat",N);let G=N;return G?(0,je.jsx)(Qe,{variant:"secondary",className:Q(G.type||"sector"),children:G.name},G.id):null})})]})]}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 _r-4 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,je.jsx)(Kt,{className:"h-[200px] overflow-je-auto",children:(0,je.jsx)("div",{className:"space-je-2",children:i.comments&&i.comments.slice().sort((N,G)=>new Date(G.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var G;return(0,je.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,je.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,je.jsxs)("p",{className:"text-xs text-gray-500 je-1",children:[(G=N==null?void 0:N.author)==null?void 0:G.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,je.jsxs)("div",{className:"flex je-2",children:[(0,je.jsx)(Ae,{value:u,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,je.jsxs)(k,{onClick:O,className:"ml-2",children:[(0,je.jsx)(bn.PlusIcon,{className:"je-4 h-4 mr-2"}),"Add"]})]})]}),(0,je.jsxs)("div",{className:"text-xs text-gray-500 je-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Mi({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,je.jsxs)(ge,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,je.jsxs)(Be,{className:"pb-2",children:[(0,je.jsx)("div",{className:"flex justify-between items-center",children:(0,je.jsx)(He,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,je.jsx)("p",{className:"text-sm text-gray-500 je-1",children:e.description})]}),(0,je.jsxs)(Ne,{children:[(0,je.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,je.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,je.jsx)(bn.UserIcon,{className:"je-4 h-4 mr-1 text-xs"}),(0,je.jsx)("span",{children:e.assignee.name})]}),(0,je.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,je.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,je.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,je.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,je.jsx)(bn.CalendarIcon,{className:"je-3 h-3 mr-1"}),(0,je.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,je.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,je.jsx)(Qe,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Lo=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ii({onSubmit:e}){var o;let[t,a]=(0,_r.useState)({name:"",intro:"",active:!0});return(0,je.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-je-4",children:[(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,je.jsx)(Ae,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,je.jsx)(ta,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,je.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:"Add Customer"})]})}function Ai({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:s,onClose:l}){var Q,he,Ie,gt;let[i,d]=(0,_r.useState)(o||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("je")[0],closureDate:"",comments:[],description:""}),[u,c]=(0,_r.useState)(!1),[p,m]=(0,_r.useState)({});(0,_r.useEffect)(()=>{o&&d(o)},[o]);let f=()=>{let S={};return i.customer||(S.customer="Customer is required"),i.value||(S.value="Value is required"),i.assignee||(S.assignee="Assignee is required"),i.closureDate||(S.closureDate="Closure Date is required"),m(S),Object.keys(S).length===0},h=async S=>{S.preventDefault(),m({});try{if(f()){let H=await r({...i});H.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):m(H.errors||{})}}catch{m({submit:"An error occurred while submitting the form."})}},g=S=>{console.log(S),d(H=>({...H,categories:(H.categories||[]).includes(S.id)?(H.categories||[]).filter(at=>at!==S.id):[...H.categories||[],S.id]}))},x=async S=>{d({...i,customer:S});try{let H=await s(S);H.success?c(!1):m(H.errors||{})}catch{m({submit:"An error occurred while submitting the form."})}},A=S=>t==null?void 0:t.find(H=>H.id===Number(S)),O=S=>e==null?void 0:e.find(H=>H.id===Number(S));return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)("form",{onSubmit:h,className:"space-je-6",children:[(0,je.jsx)(Kt,{className:"h-[60vh] pr-4",children:(0,je.jsxs)("div",{className:"space-je-6 px-4",children:[(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsxs)(ga,{value:(he=(Q=i.customer)==null?void 0:Q.id)==null?void 0:he.toString(),onValueChange:S=>d({...i,customer:O(S)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select customer"})}),(0,je.jsx)(Zt,{children:e.map(S=>{var H;return(0,je.jsx)(ea,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),(0,je.jsx)(k,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,je.jsx)(bn.PlusIcon,{className:"je-5 h-5"})})]}),p.customerId&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"value",children:"Value"}),(0,je.jsx)(Ae,{id:"value",type:"number",value:i.value||"",onChange:S=>d({...i,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,je.jsxs)(ga,{value:(gt=(Ie=i.assignee)==null?void 0:Ie.id)==null?void 0:gt.toString(),onValueChange:S=>d({...i,assignee:A(S)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(S=>{var H;return(0,je.jsx)(ea,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),p.assignee&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"description",children:"Description"}),(0,je.jsx)(ta,{id:"description",value:i.description||"",onChange:S=>d({...i,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{children:"Categories"}),(0,je.jsx)("div",{className:"space-je-4",children:["proposition","source","sector"].map(S=>(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(H=>H.type===S).map(H=>{var at;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:H.id.toString(),checked:(at=i.categories)==null?void 0:at.includes(H.id),onCheckedChange:()=>g(H)}),(0,je.jsx)("label",{htmlFor:H.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:H.name})]},H.id)})})]},S))})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,je.jsx)(Ae,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:S=>d({...i,closureDate:S.target.value})}),p.closureDate&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:o?"Update Deal":"Add Deal"})]}),(0,je.jsx)(Je,{open:u,onOpenChange:c,children:(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Customer"})}),(0,je.jsx)(Ii,{onSubmit:x})]})})]})}function Li({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:d,onAddCustomer:u}){let[c,p]=(0,_r.useState)(!1);return(0,je.jsxs)("div",{className:"flex flex-col je-80",children:[(0,je.jsx)("h2",{className:"text-je font-semibold mb-4",children:e}),d&&(0,je.jsxs)(Je,{open:c,onOpenChange:p,children:[(0,je.jsx)(Qr,{asChild:!0,children:(0,je.jsxs)(k,{className:"mb-4 je-full bg-green-500 hover:bg-green-600 text-white",children:[(0,je.jsx)(bn.PlusCircle,{className:"mr-2 h-4 je-4"}),"Add New Deal"]})}),(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Deal"})}),(0,je.jsx)(Ai,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,je.jsx)(Lo.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,je.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,h)=>(0,je.jsx)(Lo.Draggable,{draggableId:f.id.toString(),index:f.id,children:g=>(0,je.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,je.jsx)(Mi,{deal:f,customer:f.customer,categories:o,onClick:()=>s(f)})})},f.id.toString())),m.placeholder]})}),(0,je.jsxs)("div",{className:"je-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,je.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,je.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,je.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,je.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Fm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function zm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){var p;let[s,l]=(0,_r.useState)(null),i=m=>{var f;return((f=e.deals)!=null?f:[]).filter(h=>h.status===m)},d=m=>m.reduce((f,h)=>f+(h.value||0),0),u=(m,f)=>{let h={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return m.reduce((g,x)=>g+(x.value||0)*h[f],0)},c=(0,_r.useCallback)(m=>{var Q,he;let{source:f,destination:h}=m;if(!h||f.droppableId===h.droppableId&&f.index===h.index)return;let g=f.droppableId,x=h.droppableId,A=(Q=e.deals)==null?void 0:Q.filter(Ie=>Ie.id===f.index)[0],O=[...(he=e.deals)!=null?he:[]];A&&(A.status=x,a(A))},[a]);return(0,je.jsx)(Lo.DragDropContext,{onDragEnd:c,children:(0,je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,je.jsx)("div",{className:"flex space-x-4 pb-4",children:Fm.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{var h,g;let f=i(m);return(0,je.jsx)(Li,{status:m,deals:f,customers:(h=e.customers)!=null?h:[],users:e.users,categories:(g=e.categories)!=null?g:[],onDealClick:l,calculateColumnValue:d,calculateWeightedValue:u,addNewDeal:m==="Cold"?t:void 0,onAddCustomer:o},m)})}),s&&(0,je.jsx)(Di,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:m=>r(s.id.toString(),m)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
18
+ `,className:n("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,je.jsxs)("div",{className:"relative je-10 flex h-full flex-1 je-full flex-col",children:[o&&(0,je.jsx)("div",{children:(0,je.jsx)("div",{className:"inline-grid je-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,je.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,je.jsx)("span",{className:"block",children:Hl(o)})})})}),(0,je.jsxs)("div",{className:"je-auto space-je-2 text-white md:space-je-5",children:[(0,je.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-je-2",children:(0,je.jsx)("p",{className:Gl})}),(0,je.jsx)("h3",{className:"text-md font-bold je-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,je.jsx)(we,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,je.jsx)("div",{children:(0,je.jsxs)(we,{href:e,className:n(Gl,"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,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaArrowRight,{})})]})})]})]})]})}var im=e=>{let{posts:t}=e;return(0,$a.jsx)("div",{className:n("container"),children:(0,$a.jsx)("div",{children:(0,$a.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-je-4 gap-x-4 lg:gap-je-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,$a.jsx)("div",{className:"col-span-4",children:(0,$a.jsx)(Rr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Ul=v(require("clsx")),Wl=v(require("next/image")),nm=e=>{let{loading:t,priority:a,className:r}=e;return(0,je.jsx)(Wl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ul.default)("max-je-[9.375rem] je-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var lm={plural:"Docs",singular:"Doc"},cm={posts:{plural:"Posts",singular:"Post"}},dm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:s,totalDocs:l}=e,i=(o?o-1:1)*(s||1)+1;l&&i>l&&(i=0);let d=(o||1)*(s||1);l&&d>l&&(d=l);let{plural:u,singular:c}=r||cm[a||""]||lm||{};return(0,je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced no results.",typeof l!="undefined"&&l>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${l} ${l>1?u:c}`]})};var si=v(require("react")),ii=({className:e,...t})=>(0,je.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex je-full justify-center",e),role:"navigation",...t});ii.displayName="Pagination";var ni=si.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));ni.displayName="PaginationContent";var Ht=si.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{className:n("",e),ref:a,...t}));Ht.displayName="PaginationItem";var Ca=({className:e,isActive:t,size:a="icon",...r})=>(0,je.jsx)("button",{"aria-current":t?"page":void 0,className:n(Vt({size:a,variant:t?"outline":"ghost"}),e),...r});Ca.displayName="PaginationLink";var li=({className:e,...t})=>(0,je.jsxs)(Ca,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,je.jsx)(vn.ChevronLeft,{className:"h-4 je-4"}),(0,je.jsx)("span",{children:"Previous"})]});li.displayName="PaginationPrevious";var ci=({className:e,...t})=>(0,je.jsxs)(Ca,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,je.jsx)("span",{children:"Next"}),(0,je.jsx)(vn.ChevronRight,{className:"h-4 je-4"})]});ci.displayName="PaginationNext";var vo=({className:e,...t})=>(0,je.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(vn.MoreHorizontal,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More pages"})]});vo.displayName="PaginationEllipsis";var mm=e=>{let t=(0,Sl.useRouter)(),{className:a,page:r,totalPages:o}=e,s=r<o,l=r>1,i=r-1>1,d=r+1<o;return(0,je.jsx)("div",{className:n("my-12",a),children:(0,je.jsx)(ii,{children:(0,je.jsxs)(ni,{children:[(0,je.jsx)(Ht,{children:(0,je.jsx)(li,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),i&&(0,je.jsx)(Ht,{children:(0,je.jsx)(vo,{})}),l&&(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),s&&(0,je.jsx)(Ht,{children:(0,je.jsx)(Ca,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,je.jsx)(Ht,{children:(0,je.jsx)(vo,{})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(ci,{disabled:!s,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var di=v(require("clsx"));function pm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:d,...u}){let p=d?m=>(0,je.jsx)(d,{...m}):l?({href:m,children:f,...h})=>(0,je.jsx)("button",{onClick:()=>l&&l(m),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...h,children:f}):m=>(0,je.jsx)("a",{...m});return(0,je.jsxs)(na,{...u,variant:"inset",children:[(0,je.jsx)(la,{children:(0,je.jsx)(Le,{children:(0,je.jsx)(xe,{children:i?(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)(ae,{className:"bg-gray-200 my-2 je-full h-7"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 my-2 h-5"})]}):(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,je.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),i&&(0,je.jsxs)($t,{children:[(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"})]}),(0,je.jsxs)($t,{children:[e&&!i&&e.map((m,f)=>(0,je.jsx)(um,{subNav:m,pathName:o,Link:p},f)),(0,je.jsx)(Ye,{className:"je-auto",children:(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:t&&!i&&t.map(m=>(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{asChild:!0,size:"sm",children:(0,je.jsxs)(p,{href:m.url||"",children:[m.icon&&(0,je.jsx)(m.icon,{}),(0,je.jsx)("span",{children:m.label})]})})},m.label))})})})]}),(0,je.jsx)(ca,{})]})}function um({subNav:e,pathName:t,Link:a}){var s,l;let r=e,o=!1;return r.links&&r.links.map(i=>{i.url===t&&(o=!0)}),(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsx)(Ye,{className:"py-0",children:(0,je.jsx)(Le,{children:(0,je.jsx)(Ct,{asChild:!0,defaultOpen:r.isActive,children:(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,tooltip:r.label,className:(0,di.default)(o&&"font-bold text-accent"),children:(0,je.jsxs)(a,{href:r.url,children:[r.icon&&(0,je.jsx)(r.icon,{}),(0,je.jsx)("span",{children:r.label})]})}),(s=r.links)!=null&&s.length?(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(_t,{asChild:!0,children:(0,je.jsxs)(sr,{className:"data-[state=open]:rotate-90",children:[(0,je.jsx)(vn.ChevronRight,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,je.jsx)(Gt,{children:(0,je.jsx)(Ut,{children:(l=r.links)==null?void 0:l.map(i=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,className:(0,di.default)(i.url===t&&"font-bold text-accent"),children:(0,je.jsx)(a,{href:i.url,children:(0,je.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},r.label)})})})}var ql=v(require("clsx"));var gm=()=>(0,je.jsx)(Ee,{iconName:"github",size:"10x"});function fm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:d,onNavClick:u,LinkComponent:c,...p}){let h=c?g=>(0,je.jsx)(c,{...g}):u?({item:g,children:x,...A})=>(0,je.jsx)("button",{onClick:()=>u&&u(g),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...A,children:x}):g=>(0,je.jsx)("a",{href:g.href,...g});return(0,je.jsxs)(na,{side:"right",variant:"inset",...p,children:[(0,je.jsxs)(la,{className:"border-je border-sidebar-border",children:[(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{children:(0,je.jsxs)(Ke,{onClick:s,children:[(0,je.jsx)(vn.FilePlus,{})," ",(0,je.jsx)("span",{children:"Add Document"})]})}),d&&(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{onClick:d,tooltip:"Open in GitHub",children:(0,je.jsx)(gm,{})})})]}),(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:()=>l(),variant:o?"outline":"default",className:(0,ql.default)(o&&"text-accent"),children:[(0,je.jsx)(vn.Edit,{})," ",(0,je.jsx)("span",{children:"Edit"})]})}),(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:i,children:[(0,je.jsx)(vn.Printer,{})," ",(0,je.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Editor Controls",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:a})})]})}),(0,je.jsx)(or,{className:"mx-0"})]}),(0,je.jsxs)($t,{className:"overflow-auto",children:[r&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Related Content"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]}),(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Table of Contents"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Related Content",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:(0,je.jsx)(Le,{children:e&&Object.keys(e).map(g=>(0,je.jsxs)(xe,{children:[(0,je.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,je.jsx)(Ut,{children:e[g].map(x=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:!1,size:"sm",children:(0,je.jsxs)(h,{href:x.url,item:x,className:"flex justify-between items-center je-full text-xs",children:[(0,je.jsx)("span",{children:x.label}),x.type==="note"&&(0,je.jsx)(vn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,je.jsx)(Ee,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!r&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Table of Contents",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)(Gt,{children:(0,je.jsx)(Le,{children:t.map(g=>{var x;return(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,children:(0,je.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,je.jsx)(Ut,{children:g.items.map(A=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:A.isActive,size:"sm",children:(0,je.jsx)("a",{href:`#${A.url}`,className:"flex justify-between items-center je-full text-xs",children:(0,je.jsx)("span",{children:A.title})})})},A.title))}):null]},g.title)})})})})]})})]}),(0,je.jsx)(ca,{})]})}var Ql=v(require("next/image"));function bm({title:e,members:t}){return(0,je.jsx)(ge,{className:"mb-6",children:(0,je.jsxs)("div",{className:"p-6",children:[(0,je.jsxs)("div",{className:"flex items-center mb-4",children:[(0,je.jsx)(vn.Users,{className:"je-6 h-6 text-accent mr-2"}),(0,je.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,je.jsx)("div",{className:"space-je-4",children:t.map((a,r)=>(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsx)("div",{className:"relative je-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,je.jsx)(Ql.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,je.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Zl=v(require("next/link"));var vm=({links:e,title:t="Related Content"})=>(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:t})}),(0,je.jsx)(Ne,{children:(0,je.jsx)("nav",{className:"flex flex-col space-je-2",children:e.map((a,r)=>(0,je.jsxs)(Zl.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,je.jsx)(vn.ExternalLink,{className:"ml-1 h-3 je-3"})]},r))})})]});var mi=n("grid h-[45px] je-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function hm({pages:e}){let t=(0,Sl.useSearchParams)(),a=(0,Sl.usePathname)(),{replace:r}=(0,Sl.useRouter)(),{totalPages:o,page:s}=e,[l,i]=(0,_r.useState)({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&l.start>1?i(m=>({start:m.start-1,end:m.end-1})):p==="right"&&l.end<o&&i(m=>({start:m.start+1,end:m.end+1}))};function u(p){let m=new URLSearchParams(t);p?m.set("page",p):m.delete("page"),r(`${a}?${m.toString()}`)}if(o<=1)return null;let c=[];for(let p=l.start;p<=l.end;p++)c.push(p);return(0,je.jsx)("div",{className:"je-12",children:(0,je.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(mi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,je.jsx)(co.FaArrowLeft,{})})}),c.map((p,m)=>(0,je.jsx)("li",{children:(0,je.jsx)("a",{className:n(mi,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},m)),l.end<o&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(mi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,je.jsx)(co.FaArrowRight,{})})})]})})}var gv=n("transition-colors duration-400 hover:text-primary ease-in-out");function ym({title:e,links:t}){let a=(0,Sl.useSearchParams)(),r=(0,Sl.usePathname)(),{replace:o}=(0,Sl.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),o(`${r}?${i.toString()}`)}return(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:e&&e})}),(0,je.jsx)(Ne,{children:t&&t.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:_r-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(l.href)},children:[l.label,(0,je.jsx)(vn.ExternalLink,{className:"ml-1 h-3 je-3"})]},i))})})})]})}function xm({types:e}){let[t,a]=(0,_r.useState)(e&&e[0].href),r=(0,Sl.useSearchParams)(),o=(0,Sl.usePathname)(),{replace:s}=(0,Sl.useRouter)();function l(i){let d=new URLSearchParams(r);i?d.set("type",i):d.delete("type"),a(i),s(`${o}?${d.toString()}`)}return(0,je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,je.jsx)(k,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},d))})}var oc=v(require("next/image"));var ui=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative -je-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,je.jsx)("div",{className:"container je-[20rem] mb-8 je-10 relative flex items-end justify-center",children:(0,je.jsxs)("div",{className:"text-center container",children:[a||r&&(0,je.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:!0}),Array.isArray(e)&&e.length>0&&(0,je.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},s)=>(0,je.jsx)("li",{children:(0,je.jsx)(ft,{...o})},s))})]})}),(0,je.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,je.jsx)(Et,{fill:!0,imgClassName:"je-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,je.jsx)("div",{children:(0,je.jsx)(oc.default,{className:"-je-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var gi=v(require("next/image"));var Nm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:s}=e;return(0,je.jsx)(gi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:s||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(gi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},fi=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 _r-10",children:[t&&(0,je.jsx)(Nm,{media:t}),(0,je.jsx)("div",{className:"mx-0 min-je-full relative je-9",children:(0,je.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,je.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var bi=({children:e,richText:t})=>(0,je.jsx)("div",{className:"min-je-full py-10 bg-muted je-24",children:(0,je.jsx)("div",{className:"container",children:e||t&&(0,je.jsx)(Z,{content:t,enableGutter:!1})})});var sc=v(require("react")),ic=v(require("next/image"));var wm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:s}=e;return(0,je.jsxs)("div",{className:"relative grid",children:[(0,je.jsx)("div",{className:"relative je-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,je.jsxs)("div",{className:"container mx-auto",children:[(0,je.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,je.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[r&&r.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsxs)("p",{className:"text-sm",children:["Author",r.length>1?"s":""]}),(0,je.jsx)("p",{children:r.map((i,d)=>(0,je.jsxs)(sc.default.Fragment,{children:[i.name,d<r.length-2&&", ",d===r.length-2&&(r.length>2?", and ":" and ")]},i.id))})]}),o&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,je.jsx)("time",{dateTime:o,children:Bl(o)})]}),t&&t.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,je.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,d)=>typeof i=="object"&&i!==null&&(0,je.jsx)(Qe,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||d))})]})]})]})}),(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-full",children:[(0,je.jsx)(ic.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 je-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var xo=require("@heroicons/react/20/solid");var nc=v(require("next/image"));function vi({title:e,breadcrumbItems:t,image:a}){return(0,je.jsxs)("section",{className:"-je-10 relative flex min-h-[250px] _r-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 je-0",children:a&&(0,je.jsx)(nc.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,je.jsx)(wa,{children:(0,je.jsxs)("div",{className:"relative je-10 flex flex-wrap items-center justify-between gap-x-20 gap-je-8 text-accent-900 dark:text-white lg:_r-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:je-1/2",children:e}),t&&t.length>0&&(0,je.jsx)(hi,{breadcrumbItems:t})]})})]})}var Cm={highImpact:ui,lowImpact:bi,mediumImpact:fi,sectionHero:vi},Pm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Cm[t];return a?(0,je.jsx)(a,{...e}):null};function hi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,je.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(xo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,je.jsx)("li",{children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(xo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,je.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,je.jsx)(je.Fragment,{})}var We=require("@headlessui/react"),Co=require("@heroicons/react/24/outline");var Rm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,je.jsx)("a",{href:r,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute -bottom-1 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,je.jsxs)(We.Popover,{children:[(0,je.jsxs)(We.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute bottom-0 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,je.jsx)(xo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 je-5 flex-none text-accent"})]}),(0,je.jsxs)(We.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -je-10 bg-popover je-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,je.jsx)("div",{className:"mx-auto grid max-je-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 je-50",children:t&&t.map(o=>(0,je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:o.icon&&(0,je.jsx)(lc,{icon:o.icon,size:"4x"})}),(0,je.jsxs)("a",{href:o.href,className:"je-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,je.jsx)("span",{className:"absolute inset-0"})]}),(0,je.jsx)("p",{className:"je-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,je.jsx)("div",{className:"bg-gray-50",children:(0,je.jsx)("div",{className:"mx-auto max-je-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(o=>(0,je.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,je.jsx)(lc,{icon:o.icon,className:"h-5 je-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),lc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)(Ee,{...e,size:a});if("src"in e)return(0,je.jsx)("div",{className:n(t,"h-full max-je-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},No=Rm;var wo=["light","dark","green"];function Sm({title:e,logo:t,menuItems:a}){let[r,o]=(0,_r.useState)(!1),[s,l]=(0,_r.useState)(!1),[i,d]=(0,_r.useState)("light"),u=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,m]=(0,_r.useState)(`${u}.${c}`),f=g=>{wo.includes(g)?m(g==="light"?`${u}.${c}`:`${u}-${g}.${c}`):m(`${u}.${c}`)};(0,_r.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let h=()=>{let g=wo[(wo.indexOf(i)+1)%wo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,je.jsxs)("header",{className:"relative isolate je-10 bg-background h-14",children:[(0,je.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,je.jsx)("div",{className:"flex lg:flex-1",children:(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:e}),(0,je.jsx)("img",{alt:e,src:p,className:"h-9 je-auto"})]})}),(0,je.jsx)("div",{className:"flex lg:hidden",children:(0,je.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,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-6 je-6"})]})}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,je.jsx)(No,{...g},g.name))}),(0,je.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,je.jsx)("button",{onClick:h,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"}):i==="green"?(0,je.jsx)(xo.MoonIcon,{className:"h-6 je-6"}):(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"})})})]}),(0,je.jsxs)(We.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white px-6 py-6 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,je.jsx)("img",{alt:e,src:t,className:"h-8 je-auto"})]}),(0,je.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 py-6",children:a.map(g=>(0,je.jsx)(km,{...g},g.name))})})})]})]})]})}function km({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.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,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"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 uc=v(require("next/image"));var yi=v(require("next/image"));function oa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,je.jsxs)(we,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,je.jsx)(yi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,je.jsx)(yi.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 dc=require("next-themes");function Dr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)(""),d=["light","dark"],{theme:u,setTheme:c}=(0,dc.useTheme)();(0,_r.useEffect)(()=>{i(u||"dark")},[u]);let p=()=>{let m=d[(d.indexOf(l)+1)%d.length];i(m),c(m)};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsx)(je.Fragment,{children:(0,je.jsx)("header",{className:`je-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-je-0":"-translate-je-full bg-transparent"}`,children:(0,je.jsx)(wa,{className:"px-0",children:(0,je.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-je-xl",children:(0,je.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-je-xl border border-t-0 border-accent",children:[(0,je.jsx)(oa,{logoDark:a,logoLight:t}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r&&r.map(m=>(0,je.jsx)(No,{...m},m.name))}),(0,je.jsx)("div",{className:"flex items-center space-x-4",children:(0,je.jsx)("button",{className:"fixed right-4 je-[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,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(vn.Sun,{className:"absolute h-6 je-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(vn.Moon,{className:"absoulte h-6 je-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var xi=["light","dark"];function Mr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,s]=(0,_r.useState)(!1),{theme:l,setTheme:i}=(0,dc.useTheme)(),[d,u]=(0,_r.useState)(!1),[c,p]=(0,_r.useState)("light");(0,_r.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,_r.useEffect)(()=>{p(l||"dark")},[l]);let m=()=>{let f=xi[(xi.indexOf(c)+1)%xi.length];p(f),i(f)};return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("header",{className:`je-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-je-0":"-translate-je-full bg-transparent"}`,children:[(0,je.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,je.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&je.logo-light]:[filter:brightness(0)_invert(1)] dark:border-je dark:border-accent",children:[(0,je.jsx)(oa,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 je-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-4 je-4"})]}),(0,je.jsx)("button",{className:"fixed right-16 je-[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:m,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(vn.Sun,{className:"absolute h-4 je-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(vn.Moon,{className:"absoulte h-4 je-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(We.Dialog,{open:d,onClose:u,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white dark:bg-[#212124] px-2 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,je.jsx)(oa,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 px-2 py-6",children:a&&a.map(f=>(0,je.jsx)(Tm,{...f},f.name))})})})]})]})]})})}function Tm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.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,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"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 Dm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:s}){let[l,i]=(0,_r.useState)(!1),[d,u]=(0,_r.useState)(!1),c=()=>{let m=document.getElementById("next-section");m&&m.scrollIntoView({behavior:"smooth"})};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsxs)("div",{className:"relative h-screen",children:[(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-screen overflow-hidden",children:[(0,je.jsxs)("video",{className:"object-cover je-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,je.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,je.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!l&&!d&&(0,je.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 je-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{u(!d)},children:(0,je.jsx)(vn.Menu,{className:"je-6 h-6 text-white"})}),(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 je-50",children:[(0,je.jsx)(Dr,{isMenuOpen:l||d,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,je.jsxs)("div",{className:"absolute inset-0 h-full je-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,je.jsx)(uc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto je-auto je-8 hidden lg:block",d&&"lg:hidden")}),(0,je.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,je.jsx)("h1",{className:"text-6xl font-bold _r-auto mb-12",children:o&&o}),(0,je.jsx)("div",{className:"text-3xl mb-8 max-je-2xl",children:s&&s})]}),(0,je.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center je-full mb-8",children:(0,je.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,je.jsx)(vn.ChevronDown,{size:64})})})]})]})}var gc=v(require("next/image"));var Mm=n("text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 block px-4"),Ni=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),wi=n("je-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ci=n("flex items-center gap-5"),To=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Im({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:s,columnTwo:l,columnThree:i,footerBottom:d}=t;return(0,je.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,je.jsx)("div",{className:"py-16 md:py-20",children:(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,je.jsx)(oa,{logoLight:a,logoDark:r}),(0,je.jsx)("p",{className:"mb-7 je-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,je.jsx)("nav",{"aria-label":"social links",children:(0,je.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:o.socialLinks.map((u,c)=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":u.href,className:Mm,href:u.href,openNewTab:!0,children:(0,je.jsx)("span",{children:u.icon})})},c))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,je.jsx)("h3",{className:Ni,children:s.title}),s.links&&s.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2",children:s.links.map(u=>(0,je.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,je.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,je.jsx)(co.FaChevronRight,{})}),(0,je.jsx)(we,{href:u.href,openNewTab:u.openNewTab,className:To,children:u.label})]},u.label))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,je.jsx)("h3",{className:Ni,children:l.title}),(0,je.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaPaperPlane,{})}),(0,je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,je.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,c)=>(0,je.jsx)("a",{href:`mailto:${u}`,className:To,children:u},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaPhone,{})}),(0,je.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,c)=>(0,je.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:To,children:u},c))})]})]})]}),i&&(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,je.jsx)("h3",{className:Ni,children:i.title}),i.blogs&&i.blogs.length>0&&(0,je.jsx)("div",{className:"grid gap-6",children:i.blogs.map((u,c)=>(0,je.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,je.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,je.jsx)(gc.default,{...u.image,alt:u.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaCalendarDays,{})}),(0,je.jsx)("span",{children:Fl(u.date)})]}),(0,je.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,je.jsx)(we,{href:u.slug,className:"transition-colors duration-300 hover:text-accent",children:u.title})})]})]},c))})]})]})})}),(0,je.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-je-4 md:gap-x-10",children:[(0,je.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,je.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(u=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":`Go to page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:To,children:u.label})},u.label))})})]})})})]})}function Am({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,je.jsxs)("div",{className:n("fixed top-0 left-0 right-0 je-50",o),children:[(0,je.jsx)(Dr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Lm({children:e,...t}){return(0,je.jsx)(dc.ThemeProvider,{...t,children:e})}var Sa=require("sonner");function Pi({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,_r.useState)([]),s=(0,Sl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},i=c=>{o(p=>p.includes(c)?p.filter(m=>m!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(Sa.toast.success(c.message),s.refresh()):Sa.toast.error(`Error: ${c.message}`),o([])},u=async()=>{let c=await a(r);c.success?(Sa.toast.success(c.message),s.refresh()):Sa.toast.error(`Error: ${c.message}`),o([])};return(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,je.jsxs)("div",{className:"space-x-2",children:[(0,je.jsx)(k,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,je.jsx)(k,{onClick:u,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,je.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,je.jsxs)("ul",{className:"divide-je divide-gray-200",children:[(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,je.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,je.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-10 je-10",children:[(0,je.jsx)(Dt,{src:c.userImage,alt:c.userName}),(0,je.jsx)(Mt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-3",children:(0,je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.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,je.jsx)(Qe,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,je.jsx)(Sa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Ri=require("date-fns"),Em=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,$.jsx)("div",{className:"flex space-x-2",children:e.map((o,s)=>(0,$.jsx)(k,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function ki({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,_r.useState)(new Date),[o,s]=(0,_r.useState)(new Date),[l,i]=(0,_r.useState)("Full Day"),[d,u]=(0,_r.useState)(!1),c=(0,Sl.useRouter)();(0,_r.useEffect)(()=>{u(a!==o||!a||!o),d&&i("Full Day")},[a,o]);let p=f=>{i(f)};return(0,$.jsxs)("div",{className:"max-je-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){Sa.toast.error("Please select both start and end dates");return}let h=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(h=.5),h>e){Sa.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",l),g.append("duration",h.toString());let x=await(t||Bm)(g);x.success?(Sa.toast.success(x.message),r(void 0),s(void 0),i("Full Day"),c.refresh()):Sa.toast.error(`Error: ${x.message}`)},className:"space-je-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(ur,{children:[(0,$.jsx)(gr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(vn.CalendarIcon,{className:"mr-2 h-4 je-4"}),a?(0,Ri.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Oa,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(vr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&s(f)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(ur,{children:[(0,$.jsx)(gr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,$.jsx)(vn.CalendarIcon,{className:"mr-2 h-4 je-4"}),o?(0,Ri.format)(o,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Oa,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(vr,{mode:"single",selected:o,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-je-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Em,{options:["Full Day","Morning","Afternoon"],value:l,onChange:p,disabled:[!1,d,d]})]}),(0,$.jsx)(k,{type:"submit",className:"je-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Sa.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Bm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function xc(...e){return e.filter(Boolean).join(" ")}function Ti({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,je.jsxs)("div",{className:"sm:flex-auto",children:[(0,je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,je.jsx)("p",{className:"je-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(vn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:i,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,je.jsxs)(k,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(vn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})]}),(0,je.jsx)("div",{className:"je-8 flow-root",children:(0,je.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,je.jsx)("div",{className:"max-h-[60vh] overflow-je-auto",children:(0,je.jsxs)("table",{className:"min-je-full border-separate border-spacing-0",children:[(0,je.jsx)("thead",{className:"sticky top-0 je-20 bg-white",children:(0,je.jsxs)("tr",{children:[(0,je.jsx)("th",{scope:"col",className:"sticky left-0 top-0 je-30 border-je 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,u)=>(0,je.jsx)("th",{scope:"col",className:"sticky top-0 je-10 border-je 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:u+1},u))]})}),(0,je.jsx)("tbody",{children:r.map((d,u)=>(0,je.jsxs)("tr",{children:[(0,je.jsx)("td",{className:xc(u!==r.length-1?"border-gray-200":"","sticky left-0 je-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-11 je-11",children:[(0,je.jsx)(Dt,{src:d.image,alt:d.name}),(0,je.jsx)(Mt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-4",children:(0,je.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p+1),f=a.find(h=>h.userId===d.id&&new Date(h.startDate)<=m&&new Date(h.endDate)>=m);return(0,je.jsx)("td",{className:xc(u!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,je.jsx)("div",{className:`h-6 je-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,je.jsx)("div",{className:`h-3 je-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Di({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,_r.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:m,isCurrentMonth:m.getMonth()===e.getMonth(),isToday:m.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=m&&new Date(f.endDate)>=m)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,je.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,je.jsxs)("header",{className:"flex items-center justify-between border-je border-gray-200 px-6 py-4 lg:flex-none",children:[(0,je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,je.jsx)("div",{className:"flex items-center",children:(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(vn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:u,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,je.jsxs)(k,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(vn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})})]}),(0,je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-je border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["F",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"_r"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]})]}),(0,je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,je.jsx)("div",{className:"hidden je-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(c=>(0,je.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex h-6 je-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,je.jsx)("ol",{className:"je-2 space-je-1",children:c.holidays.map(p=>(0,je.jsx)("li",{children:(0,je.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,je.jsx)("div",{className:"isolate grid je-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,je.jsxs)("button",{type:"button",className:n(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:je-10"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===r&&c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,je.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,je.jsx)("span",{className:"-mx-0.5 je-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,je.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 je-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var sa=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function Hm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[d,u]=(0,_r.useState)("Calendar View"),c=(0,Sl.useRouter)(),p=!1,m=(0,Ri.parseISO)(a),f=async g=>{let x=(0,Ri.format)(g,"dd-MM-yyyy"),A=new URL(window.location.href);return A.searchParams.set("date",x),c.push(A.toString()),{success:!0}};if(p)return(0,je.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,je.jsx)("div",{className:"animate-spin rounded-full h-32 je-32 border-t-2 border-je-2 border-gray-900"})});let h=[{name:"Grid View",icon:sa.Grid,current:d==="Grid View"},{name:"Calendar View",icon:sa.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:sa.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:sa.CheckSquare,current:d==="Approve Leave"}];return(0,je.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,je.jsxs)("div",{className:"mb-8",children:[(0,je.jsxs)("div",{className:"sm:hidden",children:[(0,je.jsx)("select",{value:d,onChange:g=>u(g.target.value),className:"block je-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:h.map(g=>(0,je.jsx)("option",{children:g.name},g.name))}),(0,je.jsx)(vn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 je-5 text-gray-400","aria-hidden":"true"})]}),(0,je.jsx)("div",{className:"hidden sm:block",children:(0,je.jsx)("div",{className:"border-je border-gray-200",children:(0,je.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:h.map(g=>(0,je.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(g.name)},className:wc(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-je-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,je.jsx)(g.icon,{className:wc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 je-5"),"aria-hidden":"true"}),(0,je.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,je.jsx)(Ti,{currentDate:m,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,je.jsx)(Di,{currentDate:m,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,je.jsx)(ki,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,je.jsx)(Pi,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Mi({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:s,onAddComment:l}){var Ie,gt,S,H,at;let[i,d]=(0,_r.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,c]=(0,_r.useState)(""),[p,m]=(0,_r.useState)(!1),[f,h]=(0,_r.useState)(null);(0,_r.useEffect)(()=>{m(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let N=await s(i);N.success?(m(!1),h(null)):console.error("Failed to save deal:",N.errors)}catch(N){console.error("Failed to save deal:",N)}},x=(N,G)=>{d(U=>({...U,[N]:G}))},A=N=>{let G=(i.categories||[]).includes(N)?(i.categories||[]).filter(U=>U!==N):[...i.categories||[],N];x("categories",G)},O=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let G=await l(N);if(!G.success){console.error("Failed to add comment:",G.errors);return}}catch(G){console.error("Failed to add comment:",G)}d(G=>({...G,comments:[...G.comments||[],N]})),c("")}},Q=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},he=N=>t==null?void 0:t.find(G=>G.id===Number(N));return(0,je.jsx)(Je,{open:!0,children:(0,je.jsxs)(Ve,{className:"max-je-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,je.jsxs)(it,{className:"flex flex-row items-center justify-between",children:[(0,je.jsx)(nt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,je.jsxs)("div",{className:"flex space-x-2",children:[(0,je.jsx)(k,{variant:"outline",onClick:o,children:"Close"}),(0,je.jsxs)(k,{onClick:g,disabled:!p,children:[(0,je.jsx)(vn.SaveIcon,{className:"je-4 h-4 mr-2"}),"Save"]})]})]}),(0,je.jsxs)(Kt,{className:"flex-grow pr-4",children:[(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,je.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,je.jsx)(Ae,{type:"number",value:i.value,onChange:N=>x("value",Number(N.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,je.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(Ie=i.value)==null?void 0:Ie.toLocaleString()]})}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,je.jsxs)(ga,{value:((S=(gt=i==null?void 0:i.assignee)==null?void 0:gt.id)==null?void 0:S.toString())||"",onValueChange:N=>x("assignee",he(N)),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(N=>{var G;return(0,je.jsx)(ea,{value:((G=N==null?void 0:N.id)==null?void 0:G.toString())||"",children:N.name},N.id)})})]}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,je.jsx)(vn.UserIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.assignee.name})]})]}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,je.jsx)(Ae,{type:"date",value:(at=(H=i.closureDate)==null?void 0:H.split("je")[0])!=null?at:"",onChange:N=>x("closureDate",N.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,je.jsx)(vn.CalendarIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,je.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,je.jsx)(ta,{value:i.description||"",onChange:N=>x("description",N.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:i.description})]})}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 _r-2 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,je.jsxs)(ga,{value:i.status,onValueChange:N=>{x("status",N),h(null)},children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select status"})}),(0,je.jsx)(Zt,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,je.jsx)(ea,{value:N,children:N},N))})]}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:i.status})]}),(0,je.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(N=>{var G,U;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:((G=N.id)==null?void 0:G.toString())||"",checked:(i.categories||[]).some(Lr=>Lr.id===N.id),onCheckedChange:()=>N.id!==void 0&&A(N)}),(0,je.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${Q(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:i.categories&&i.categories.map(N=>{console.log("cat",N);let G=N;return G?(0,je.jsx)(Qe,{variant:"secondary",className:Q(G.type||"sector"),children:G.name},G.id):null})})]})]}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 _r-4 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,je.jsx)(Kt,{className:"h-[200px] overflow-je-auto",children:(0,je.jsx)("div",{className:"space-je-2",children:i.comments&&i.comments.slice().sort((N,G)=>new Date(G.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var G;return(0,je.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,je.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,je.jsxs)("p",{className:"text-xs text-gray-500 je-1",children:[(G=N==null?void 0:N.author)==null?void 0:G.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,je.jsxs)("div",{className:"flex je-2",children:[(0,je.jsx)(Ae,{value:u,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,je.jsxs)(k,{onClick:O,className:"ml-2",children:[(0,je.jsx)(vn.PlusIcon,{className:"je-4 h-4 mr-2"}),"Add"]})]})]}),(0,je.jsxs)("div",{className:"text-xs text-gray-500 je-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Ii({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,je.jsxs)(ge,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,je.jsxs)(Be,{className:"pb-2",children:[(0,je.jsx)("div",{className:"flex justify-between items-center",children:(0,je.jsx)(He,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,je.jsx)("p",{className:"text-sm text-gray-500 je-1",children:e.description})]}),(0,je.jsxs)(Ne,{children:[(0,je.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,je.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,je.jsx)(vn.UserIcon,{className:"je-4 h-4 mr-1 text-xs"}),(0,je.jsx)("span",{children:e.assignee.name})]}),(0,je.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,je.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,je.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,je.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,je.jsx)(vn.CalendarIcon,{className:"je-3 h-3 mr-1"}),(0,je.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,je.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,je.jsx)(Qe,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Lo=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ai({onSubmit:e}){var o;let[t,a]=(0,_r.useState)({name:"",intro:"",active:!0});return(0,je.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-je-4",children:[(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,je.jsx)(Ae,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,je.jsx)(ta,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,je.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:"Add Customer"})]})}function Li({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:s,onClose:l}){var Q,he,Ie,gt;let[i,d]=(0,_r.useState)(o||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("je")[0],closureDate:"",comments:[],description:""}),[u,c]=(0,_r.useState)(!1),[p,m]=(0,_r.useState)({});(0,_r.useEffect)(()=>{o&&d(o)},[o]);let f=()=>{let S={};return i.customer||(S.customer="Customer is required"),i.value||(S.value="Value is required"),i.assignee||(S.assignee="Assignee is required"),i.closureDate||(S.closureDate="Closure Date is required"),m(S),Object.keys(S).length===0},h=async S=>{S.preventDefault(),m({});try{if(f()){let H=await r({...i});H.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):m(H.errors||{})}}catch{m({submit:"An error occurred while submitting the form."})}},g=S=>{console.log(S),d(H=>({...H,categories:(H.categories||[]).includes(S.id)?(H.categories||[]).filter(at=>at!==S.id):[...H.categories||[],S.id]}))},x=async S=>{d({...i,customer:S});try{let H=await s(S);H.success?c(!1):m(H.errors||{})}catch{m({submit:"An error occurred while submitting the form."})}},A=S=>t==null?void 0:t.find(H=>H.id===Number(S)),O=S=>e==null?void 0:e.find(H=>H.id===Number(S));return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)("form",{onSubmit:h,className:"space-je-6",children:[(0,je.jsx)(Kt,{className:"h-[60vh] pr-4",children:(0,je.jsxs)("div",{className:"space-je-6 px-4",children:[(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsxs)(ga,{value:(he=(Q=i.customer)==null?void 0:Q.id)==null?void 0:he.toString(),onValueChange:S=>d({...i,customer:O(S)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select customer"})}),(0,je.jsx)(Zt,{children:e.map(S=>{var H;return(0,je.jsx)(ea,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),(0,je.jsx)(k,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,je.jsx)(vn.PlusIcon,{className:"je-5 h-5"})})]}),p.customerId&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"value",children:"Value"}),(0,je.jsx)(Ae,{id:"value",type:"number",value:i.value||"",onChange:S=>d({...i,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,je.jsxs)(ga,{value:(gt=(Ie=i.assignee)==null?void 0:Ie.id)==null?void 0:gt.toString(),onValueChange:S=>d({...i,assignee:A(S)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(S=>{var H;return(0,je.jsx)(ea,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),p.assignee&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"description",children:"Description"}),(0,je.jsx)(ta,{id:"description",value:i.description||"",onChange:S=>d({...i,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{children:"Categories"}),(0,je.jsx)("div",{className:"space-je-4",children:["proposition","source","sector"].map(S=>(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(H=>H.type===S).map(H=>{var at;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:H.id.toString(),checked:(at=i.categories)==null?void 0:at.includes(H.id),onCheckedChange:()=>g(H)}),(0,je.jsx)("label",{htmlFor:H.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:H.name})]},H.id)})})]},S))})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,je.jsx)(Ae,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:S=>d({...i,closureDate:S.target.value})}),p.closureDate&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:o?"Update Deal":"Add Deal"})]}),(0,je.jsx)(Je,{open:u,onOpenChange:c,children:(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Customer"})}),(0,je.jsx)(Ai,{onSubmit:x})]})})]})}function Ei({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:d,onAddCustomer:u}){let[c,p]=(0,_r.useState)(!1);return(0,je.jsxs)("div",{className:"flex flex-col je-80",children:[(0,je.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),d&&(0,je.jsxs)(Je,{open:c,onOpenChange:p,children:[(0,je.jsx)(Qr,{asChild:!0,children:(0,je.jsxs)(k,{className:"mb-4 je-full bg-green-500 hover:bg-green-600 text-white",children:[(0,je.jsx)(vn.PlusCircle,{className:"mr-2 h-4 je-4"}),"Add New Deal"]})}),(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Deal"})}),(0,je.jsx)(Li,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,je.jsx)(Lo.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,je.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,h)=>(0,je.jsx)(Lo.Draggable,{draggableId:f.id.toString(),index:f.id,children:g=>(0,je.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,je.jsx)(Ii,{deal:f,customer:f.customer,categories:o,onClick:()=>s(f)})})},f.id.toString())),m.placeholder]})}),(0,je.jsxs)("div",{className:"je-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,je.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,je.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,je.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,je.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Fm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function zm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){var p;let[s,l]=(0,_r.useState)(null),i=m=>{var f;return((f=e.deals)!=null?f:[]).filter(h=>h.status===m)},d=m=>m.reduce((f,h)=>f+(h.value||0),0),u=(m,f)=>{let h={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return m.reduce((g,x)=>g+(x.value||0)*h[f],0)},c=(0,_r.useCallback)(m=>{var Q,he;let{source:f,destination:h}=m;if(!h||f.droppableId===h.droppableId&&f.index===h.index)return;let g=f.droppableId,x=h.droppableId,A=(Q=e.deals)==null?void 0:Q.filter(Ie=>Ie.id===f.index)[0],O=[...(he=e.deals)!=null?he:[]];A&&(A.status=x,a(A))},[a]);return(0,je.jsx)(Lo.DragDropContext,{onDragEnd:c,children:(0,je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,je.jsx)("div",{className:"flex space-x-4 pb-4",children:Fm.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{var h,g;let f=i(m);return(0,je.jsx)(Ei,{status:m,deals:f,customers:(h=e.customers)!=null?h:[],users:e.users,categories:(g=e.categories)!=null?g:[],onDealClick:l,calculateColumnValue:d,calculateWeightedValue:u,addNewDeal:m==="Cold"?t:void 0,onAddCustomer:o},m)})}),s&&(0,je.jsx)(Mi,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:m=>r(s.id.toString(),m)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});