cortex-react-components 1.46.1 → 1.46.2

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 (129) hide show
  1. package/dist/{chunk-QM7QBP2I.mjs → chunk-4OQHZ5FW.mjs} +1 -1
  2. package/dist/{chunk-XD4IKPMW.mjs → chunk-4QHYOUY7.mjs} +1 -1
  3. package/dist/{chunk-YDGF5GEU.mjs → chunk-4ZT572BM.mjs} +1 -1
  4. package/dist/{chunk-PDY43B6W.mjs → chunk-5EFOKBKA.mjs} +1 -1
  5. package/dist/{chunk-OVGEJMAF.mjs → chunk-654RXN5C.mjs} +1 -1
  6. package/dist/{chunk-NFFHQJ5C.mjs → chunk-6G2YEF4M.mjs} +1 -1
  7. package/dist/{chunk-MFKBUKSI.mjs → chunk-7OHZFWIJ.mjs} +1 -1
  8. package/dist/{chunk-FNI2A5LW.mjs → chunk-7PWDA3UD.mjs} +1 -1
  9. package/dist/chunk-7QOBENUU.mjs +1 -0
  10. package/dist/{chunk-EJV6UKCA.mjs → chunk-BK5FPGFH.mjs} +1 -1
  11. package/dist/{chunk-6X3A3ENB.mjs → chunk-FOMKMFJX.mjs} +1 -1
  12. package/dist/{chunk-MA2CFK7X.mjs → chunk-H4NT35II.mjs} +1 -1
  13. package/dist/chunk-HE3WBVX5.mjs +1 -0
  14. package/dist/{chunk-TGED5EGX.mjs → chunk-KB6PO4K4.mjs} +1 -1
  15. package/dist/{chunk-7FMMXR7S.mjs → chunk-KJBMLPHS.mjs} +1 -1
  16. package/dist/{chunk-M3J4AMUT.mjs → chunk-M24IHGNE.mjs} +1 -1
  17. package/dist/{chunk-Q7QS4VSI.mjs → chunk-MZVYPHE3.mjs} +1 -1
  18. package/dist/{chunk-AHFJJDUP.mjs → chunk-PBKAWMUU.mjs} +1 -1
  19. package/dist/{chunk-MN7UDYWI.mjs → chunk-PGSQ2PAH.mjs} +1 -1
  20. package/dist/{chunk-CP7MAHWY.mjs → chunk-PKB6F4J5.mjs} +1 -1
  21. package/dist/{chunk-HOHVBVME.mjs → chunk-PV7GB4V4.mjs} +1 -1
  22. package/dist/{chunk-3ICCXFE6.mjs → chunk-PY53YVFX.mjs} +1 -1
  23. package/dist/{chunk-DBHEV3OE.mjs → chunk-QEJAJJSS.mjs} +1 -1
  24. package/dist/{chunk-QVF5FBGY.mjs → chunk-SBAFXZVU.mjs} +1 -1
  25. package/dist/{chunk-RFZ2OZQN.mjs → chunk-SOZ265PX.mjs} +1 -1
  26. package/dist/{chunk-2VBPJMVS.mjs → chunk-TCJJQBFS.mjs} +1 -1
  27. package/dist/{chunk-4JNRVCRR.mjs → chunk-TKACTYOE.mjs} +1 -1
  28. package/dist/chunk-W66SVCJY.mjs +4 -0
  29. package/dist/chunk-XHDR7I54.mjs +1 -0
  30. package/dist/{chunk-T44RKQFA.mjs → chunk-XZEJC3UX.mjs} +1 -1
  31. package/dist/{chunk-GTDG7AC2.mjs → chunk-ZSRAJP4K.mjs} +1 -1
  32. package/dist/components/Blocks/Banner.mjs +1 -1
  33. package/dist/components/Blocks/CallToAction.mjs +1 -1
  34. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  35. package/dist/components/Blocks/Content.mjs +1 -1
  36. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  37. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  38. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  39. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  40. package/dist/components/Blocks/index.mjs +1 -1
  41. package/dist/components/CRM/DealDetails.d.ts +8 -2
  42. package/dist/components/CRM/DealDetails.js +1 -1
  43. package/dist/components/CRM/DealDetails.mjs +1 -1
  44. package/dist/components/CRM/DealDetails.stories.js +1 -1
  45. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  46. package/dist/components/CRM/KanbanBoard.d.ts +16 -4
  47. package/dist/components/CRM/KanbanBoard.js +1 -1
  48. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  49. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  50. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  51. package/dist/components/CRM/KanbanColumn.d.ts +8 -2
  52. package/dist/components/CRM/KanbanColumn.js +1 -1
  53. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  54. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  55. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  56. package/dist/components/CRM/NewDealForm.d.ts +11 -5
  57. package/dist/components/CRM/NewDealForm.js +1 -1
  58. package/dist/components/CRM/NewDealForm.mjs +1 -1
  59. package/dist/components/CRM/NewDealForm.stories.js +1 -1
  60. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  61. package/dist/components/CRM/index.js +1 -1
  62. package/dist/components/CRM/index.mjs +1 -1
  63. package/dist/components/Cards/ContentCard.mjs +1 -1
  64. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  65. package/dist/components/Cards/index.mjs +1 -1
  66. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  67. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  68. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  69. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  70. package/dist/components/Heros/PostHero/index.mjs +1 -1
  71. package/dist/components/Heros/RenderHero.mjs +1 -1
  72. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  73. package/dist/components/Heros/index.mjs +1 -1
  74. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  75. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  76. package/dist/components/Holidays/index.mjs +1 -1
  77. package/dist/components/Layouts/BlogList.mjs +1 -1
  78. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  79. package/dist/components/Layouts/SlideShow.mjs +1 -1
  80. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  81. package/dist/components/Layouts/index.mjs +1 -1
  82. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  83. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  84. package/dist/components/Menus/SidebarRight.mjs +1 -1
  85. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  86. package/dist/components/Menus/index.mjs +1 -1
  87. package/dist/components/Payload/RichText/index.mjs +1 -1
  88. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  89. package/dist/components/Payload/RichText.stories.mjs +1 -1
  90. package/dist/components/Payload/index.mjs +1 -1
  91. package/dist/components/index.js +3 -3
  92. package/dist/components/index.mjs +1 -1
  93. package/dist/components/ui/index.mjs +1 -1
  94. package/dist/components/ui/sidebar.mjs +1 -1
  95. package/dist/index.js +4 -4
  96. package/dist/index.mjs +1 -1
  97. package/dist/metafile-cjs.json +1 -1
  98. package/dist/metafile-esm.json +1 -1
  99. package/dist/pages/Blog.mjs +1 -1
  100. package/dist/pages/Blog.stories.mjs +1 -1
  101. package/dist/pages/Documentation.mjs +1 -1
  102. package/dist/pages/Documentation.stories.mjs +1 -1
  103. package/dist/pages/IndexPage.mjs +1 -1
  104. package/dist/pages/IndexPage.stories.mjs +1 -1
  105. package/dist/pages/Intranet.mjs +1 -1
  106. package/dist/pages/Intranet.stories.mjs +1 -1
  107. package/dist/pages/Page.mjs +1 -1
  108. package/dist/pages/Page.stories.mjs +1 -1
  109. package/dist/pages/Publish.mjs +1 -1
  110. package/dist/pages/Publish.stories.mjs +1 -1
  111. package/dist/pages/Website.mjs +1 -1
  112. package/dist/pages/Website.stories.mjs +1 -1
  113. package/dist/sections/AboutSection.mjs +1 -1
  114. package/dist/sections/AboutSection.stories.mjs +1 -1
  115. package/dist/sections/BlogDetail.mjs +1 -1
  116. package/dist/sections/BlogDetail.stories.mjs +1 -1
  117. package/dist/sections/BlogListSection.mjs +1 -1
  118. package/dist/sections/BlogListSection.stories.mjs +1 -1
  119. package/dist/sections/ContactSection.mjs +1 -1
  120. package/dist/sections/ContactSection.stories.mjs +1 -1
  121. package/dist/sections/ImageSection.stories.mjs +1 -1
  122. package/dist/sections/PricingSection.mjs +1 -1
  123. package/dist/sections/PricingSection.stories.mjs +1 -1
  124. package/dist/sections/index.mjs +1 -1
  125. package/package.json +1 -1
  126. package/dist/chunk-FBUZ37DL.mjs +0 -1
  127. package/dist/chunk-TTN4NUDL.mjs +0 -1
  128. package/dist/chunk-Y3L5THWA.mjs +0 -4
  129. package/dist/chunk-YNC77MO4.mjs +0 -1
@@ -3,11 +3,11 @@
3
3
  "use client"
4
4
  'use strict'
5
5
 
6
- "use strict";var Tc=Object.create;var Lr=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var Mc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,Ac=Object.prototype.hasOwnProperty;var Lc=(e,t)=>{for(var a in t)Lr(e,a,{get:t[a],enumerable:!0})},Bs=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mc(t))!Ac.call(e,o)&&o!==a&&Lr(e,o,{get:()=>t[o],enumerable:!(r=Dc(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?Tc(Ic(e)):{},Bs(t||!e||!e.__esModule?Lr(a,"default",{value:e,enumerable:!0}):a,e)),Ec=e=>Bs(Lr({},"__esModule",{value:!0}),e);var Hm={};Lc(Hm,{Alert:()=>Bi,AlertDescription:()=>Fi,AlertTitle:()=>Hi,ApproveLeave:()=>Ns,Avatar:()=>Tt,AvatarFallback:()=>Mt,AvatarImage:()=>Dt,Badge:()=>Qe,BannerBlock:()=>Vi,BlogCard:()=>_l,BlogList:()=>am,BrandLogo:()=>oa,Breadcrumb:()=>Fo,BreadcrumbEllipsis:()=>$o,BreadcrumbItem:()=>Oo,BreadcrumbLink:()=>_o,BreadcrumbList:()=>zo,BreadcrumbPage:()=>Go,BreadcrumbSeparator:()=>Vo,Breadcrumbs:()=>fs,Button:()=>k,CMSLink:()=>ft,CRMKanbanBoard:()=>Bm,Calendar:()=>vr,CalendarView:()=>Rs,CallToActionBlock:()=>xr,Card:()=>wr,Categories:()=>bm,Checkbox:()=>lt,CodeBlock:()=>Xi,Collapsible:()=>Ct,CollapsibleContent:()=>Gt,CollapsibleTrigger:()=>_t,CollectionArchive:()=>rm,Command:()=>Qr,CommandDialog:()=>Bn,CommandEmpty:()=>Mi,CommandGroup:()=>Ii,CommandInput:()=>Ti,CommandItem:()=>Li,CommandList:()=>Di,CommandSeparator:()=>Ai,CommandShortcut:()=>Ei,Container:()=>wa,ContentBlock:()=>Qi,ContentCard:()=>Gd,CopyButton:()=>Ui,CustomLink:()=>ye,CustomerCard:()=>Jn,DealCard:()=>Ts,DealDetails:()=>ks,Dialog:()=>Je,DialogClose:()=>qr,DialogContent:()=>Ge,DialogDescription:()=>ki,DialogFooter:()=>Ri,DialogHeader:()=>st,DialogOverlay:()=>Jr,DialogPortal:()=>Si,DialogTitle:()=>nt,DialogTrigger:()=>Kr,DropdownMenu:()=>Xs,DropdownMenuCheckboxItem:()=>Yo,DropdownMenuContent:()=>Xo,DropdownMenuGroup:()=>Ys,DropdownMenuItem:()=>jo,DropdownMenuLabel:()=>qo,DropdownMenuPortal:()=>Ks,DropdownMenuRadioGroup:()=>Js,DropdownMenuRadioItem:()=>Ko,DropdownMenuSeparator:()=>Jo,DropdownMenuShortcut:()=>Qo,DropdownMenuSub:()=>qs,DropdownMenuSubContent:()=>Wo,DropdownMenuSubTrigger:()=>Uo,DropdownMenuTrigger:()=>js,DynamicIcon:()=>Le,EventCard:()=>Qn,FeatureCard:()=>Yn,FeatureGrid:()=>vl,FeaturesBlock:()=>yr,Filter:()=>vm,Footer:()=>Tm,Header:()=>Dm,HeaderDesktop:()=>Rr,HeaderMobile:()=>kr,HeadingImage:()=>Jd,Hero:()=>zd,HighImpactHero:()=>ds,HolidayGrid:()=>Ss,HolidayTracker:()=>Lm,HoverCard:()=>Mn,HoverCardContent:()=>Pi,HoverCardTrigger:()=>In,Image:()=>rl,ImageBlock:()=>Ji,InfoTile:()=>$d,Input:()=>Ie,Insight:()=>Vd,KanbanColumn:()=>Is,Label:()=>J,Logo:()=>om,LowImpactHero:()=>us,MOTD:()=>Wd,Media:()=>Et,MediaBlock:()=>_a,MediumImpactHero:()=>ps,NewCustomerForm:()=>Ds,NewDealForm:()=>Ms,NewsGrid:()=>Ml,OrgChart:()=>Yd,PageRange:()=>nm,Pagination:()=>fm,PayloadPagination:()=>lm,Popover:()=>ur,PopoverAnchor:()=>Sn,PopoverContent:()=>Oa,PopoverTrigger:()=>gr,PostHero:()=>xm,PricingCard:()=>Fd,ProjectCard:()=>al,ProjectTeam:()=>um,ProposalSummary:()=>Kd,RelatedContent:()=>gm,RelatedPosts:()=>em,RenderBlocks:()=>Zi,RenderHero:()=>Nm,RequestLeave:()=>Ps,RichText:()=>Z,ScrollArea:()=>Kt,ScrollBar:()=>Yr,SectionHero:()=>gs,Select:()=>ga,SelectContent:()=>Zt,SelectGroup:()=>Td,SelectItem:()=>ea,SelectLabel:()=>Gn,SelectScrollDownButton:()=>_i,SelectScrollUpButton:()=>Oi,SelectSeparator:()=>Vn,SelectTrigger:()=>Qt,SelectValue:()=>fa,Separator:()=>er,ServiceCard:()=>Hd,Sheet:()=>Br,SheetClose:()=>sn,SheetContent:()=>ar,SheetDescription:()=>oi,SheetFooter:()=>ai,SheetHeader:()=>ti,SheetOverlay:()=>Hr,SheetPortal:()=>ei,SheetTitle:()=>ri,SheetTrigger:()=>on,Sidebar:()=>na,SidebarContent:()=>$t,SidebarFooter:()=>ca,SidebarGroup:()=>Ye,SidebarGroupAction:()=>mi,SidebarGroupContent:()=>ot,SidebarGroupLabel:()=>St,SidebarHeader:()=>la,SidebarInput:()=>di,SidebarInset:()=>ci,SidebarLeft:()=>cm,SidebarMenu:()=>Ae,SidebarMenuAction:()=>ir,SidebarMenuBadge:()=>pi,SidebarMenuButton:()=>Ke,SidebarMenuItem:()=>he,SidebarMenuSkeleton:()=>ui,SidebarMenuSub:()=>Ut,SidebarMenuSubButton:()=>Xt,SidebarMenuSubItem:()=>Wt,SidebarProvider:()=>si,SidebarRail:()=>li,SidebarRight:()=>pm,SidebarSeparator:()=>or,SidebarTrigger:()=>ni,SimpleHeader:()=>Cm,Skeleton:()=>ae,SlideShow:()=>kl,TextAndImages:()=>Il,Textarea:()=>ta,ThemeProvider:()=>Mm,Toast:()=>lr,ToastAction:()=>bi,ToastClose:()=>cr,ToastDescription:()=>mr,ToastProvider:()=>Xr,ToastTitle:()=>dr,ToastViewport:()=>nr,Toaster:()=>xn,Toggle:()=>hi,ToggleGroup:()=>xi,ToggleGroupItem:()=>yi,Tooltip:()=>_r,TooltipContent:()=>rr,TooltipProvider:()=>Or,TooltipTrigger:()=>Gr,VideoHeader:()=>Rm,WhyUs:()=>qd,badgeVariants:()=>zi,buttonVariants:()=>Vt,toggleVariants:()=>pr,useIsMobile:()=>zr,useSidebar:()=>Fa,useToast:()=>Wr});module.exports=Ec(Hm);var La=v(require("react")),Er=require("@radix-ui/react-icons"),Ws=require("@radix-ui/react-slot");var Us=require("clsx");var Ho="-",Bc=e=>{let t=Fc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let s=l.split(Ho);return s[0]===""&&s.length!==1&&s.shift(),zs(s,t)||Hc(l)},getConflictingClassGroupIds:(l,s)=>{let d=a[l]||[];return s&&r[l]?[...d,...r[l]]:d}}},zs=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?zs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Ho);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId},Hs=/^\[(.+)\]$/,Hc=e=>{if(Hs.test(e)){let t=Hs.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Fc=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Oc(Object.entries(e.classGroups),a).forEach(([i,l])=>{Bo(l,r,i,t)}),r},Bo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Fs(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(zc(o)){Bo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,l])=>{Bo(l,Fs(t,i),a,r)})})},Fs=(e,t)=>{let a=e;return t.split(Ho).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},zc=e=>e.isThemeGetter,Oc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[a,o]}):e,_c=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,l)=>{a.set(i,l),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let l=a.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){a.has(i)?a.set(i,l):o(i,l)}}},Os="!",Gc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,l=s=>{let d=[],u=0,c=0,p;for(let y=0;y<s.length;y++){let L=s[y];if(u===0){if(L===o&&(r||s.slice(y,y+i)===t)){d.push(s.slice(c,y)),c=y+i;continue}if(L==="/"){p=y;continue}}L==="["?u++:L==="]"&&u--}let m=d.length===0?s:s.substring(c),f=m.startsWith(Os),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?s=>a({className:s,parseClassName:l}):l},Vc=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},$c=e=>({cache:_c(e.cacheSize),parseClassName:Gc(e),...Bc(e)}),Uc=/\s+/,Wc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(Uc),s="";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){s=u+(s.length>0?" "+s:s);continue}if(g=r(m),!g){s=u+(s.length>0?" "+s:s);continue}h=!1}let y=Vc(c).join(":"),L=p?y+Os:y,H=L+g;if(i.includes(H))continue;i.push(H);let Q=o(g,h);for(let Me=0;Me<Q.length;++Me){let Xe=Q[Me];i.push(L+Xe)}s=u+(s.length>0?" "+s:s)}return s};function Xc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=_s(t))&&(r&&(r+=" "),r+=a);return r}var _s=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=_s(e[r]))&&(a&&(a+=" "),a+=t);return a};function jc(e,...t){let a,r,o,i=l;function l(d){let u=t.reduce((c,p)=>p(c),e());return a=$c(u),r=a.cache.get,o=a.cache.set,i=s,s(d)}function s(d){let u=r(d);if(u)return u;let c=Wc(d,a);return o(d,c),c}return function(){return i(Xc.apply(null,arguments))}}var q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Gs=/^\[(?:([a-je-]+):)?(.+)\]$/i,Yc=/^\d+\/\d+$/,Kc=new Set(["px","full","screen"]),qc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Fr|nc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|je|min|max))|\je(calc|min|max|clamp)\(.+\)|^0$/,Qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zc=/^(inset_)?-?((\d+)?\.?(\d+)[a-je]+|0)je-?((\d+)?\.?(\d+)[a-je]+|0)/,ed=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ia(e)||Kc.has(e)||Yc.test(e),zt=e=>Aa(e,"length",ld),Ia=e=>!!e&&!Number.isNaN(Number(e)),Eo=e=>Aa(e,"number",Ia),Qa=e=>!!e&&Number.isInteger(Number(e)),td=e=>e.endsWith("%")&&Ia(e.slice(0,-1)),D=e=>Gs.test(e),Ot=e=>qc.test(e),ad=new Set(["length","size","percentage"]),rd=e=>Aa(e,ad,Vs),od=e=>Aa(e,"position",Vs),id=new Set(["image","url"]),sd=e=>Aa(e,id,dd),nd=e=>Aa(e,"",cd),Za=()=>!0,Aa=(e,t,a)=>{let r=Gs.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},ld=e=>Jc.test(e)&&!Qc.test(e),Vs=()=>!1,cd=e=>Zc.test(e),dd=e=>ed.test(e);var md=()=>{let e=q("colors"),t=q("spacing"),a=q("blur"),r=q("brightness"),o=q("borderColor"),i=q("borderRadius"),l=q("borderSpacing"),s=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"),y=q("margin"),L=q("opacity"),H=q("padding"),Q=q("saturate"),Me=q("scale"),Xe=q("sepia"),gt=q("skew"),R=q("space"),U=q("translate"),at=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",D,t],V=()=>[D,t],Mr=()=>["",wt,zt],Ir=()=>["auto",Ia,D],As=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ar=()=>["solid","dashed","dotted","double","none"],Ls=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Lo=()=>["start","end","center","between","around","evenly","stretch"],Ja=()=>["","0",D],Es=()=>["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:V(),borderWidth:Mr(),contrast:Nt(),grayscale:Ja(),hueRotate:Nt(),invert:Ja(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[td,zt],inset:j(),margin:j(),opacity:Nt(),padding:V(),saturate:Nt(),scale:Nt(),sepia:Ja(),skew:Nt(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":Es()}],"break-before":[{"break-before":Es()}],"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:[...As(),D]}],overflow:[{overflow:w()}],"overflow-je":[{"overflow-je":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:at()}],"overscroll-je":[{"overscroll-je":at()}],"overscroll-y":[{"overscroll-y":at()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-je":[{"inset-je":[g]}],"inset-y":[{"inset-y":[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:j()}],"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":Ir()}],"col-end":[{"col-end":Ir()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Qa,D]},D]}],"row-start":[{"row-start":Ir()}],"row-end":[{"row-end":Ir()}],"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-je":[{"gap-je":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...Lo()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Lo(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Lo(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],je:[{je:[H]}],Fr:[{Fr:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],je:[{je:[y]}],je:[{je:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-je":[{"space-je":[R]}],"space-je-reverse":["space-je-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",D,t]}],"min-w":[{"min-w":[D,t,"min","max","fit"]}],"max-w":[{"max-w":[D,t,"none","full","min","max","fit","prose",{screen:[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",Eo]}],"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,Eo]}],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":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","je-underline"],"text-decoration-style":[{decoration:[...Ar(),"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:V()}],"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":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...As(),od]}],"bg-repeat":[{bg:["je-repeat",{repeat:["","je","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","je","je","l","tl"]},sd]}],"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:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-Fr":[{"rounded-Fr":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-je":[{"rounded-je":[i]}],"border-w":[{border:[s]}],"border-w-je":[{"border-je":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-je":[{"border-je":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...Ar(),"hidden"]}],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:Ar()}],"border-color":[{border:[o]}],"border-color-je":[{"border-je":[o]}],"border-color-y":[{"border-y":[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:["",...Ar()]}],"outline-offset":[{"outline-offset":[wt,D]}],"outline-w":[{outline:[wt,zt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Mr()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[wt,zt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ot,nd]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Ls(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ls()}],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:[Xe]}],"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":[L]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-je":[{"border-spacing-je":[l]}],"border-spacing-y":[{"border-spacing-y":[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:[Me]}],"scale-je":[{"scale-je":[Me]}],"scale-y":[{"scale-y":[Me]}],rotate:[{rotate:[Qa,D]}],"translate-je":[{"translate-je":[U]}],"translate-y":[{"translate-y":[U]}],"skew-je":[{"skew-je":[gt]}],"skew-y":[{"skew-y":[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","je-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","je-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","je",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-je":[{"scroll-je":V()}],"scroll-je":[{"scroll-je":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-je":[{"scroll-je":V()}],"scroll-Fr":[{"scroll-Fr":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","je","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-je":[{"touch-pan":["je","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wt,zt,Eo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-je","overflow-y"],overscroll:["overscroll-je","overscroll-y"],inset:["inset-je","inset-y","start","end","top","right","bottom","left"],"inset-je":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-je","gap-y"],p:["px","py","ps","je","Fr","pr","pb","pl"],px:["pr","pl"],py:["Fr","pb"],m:["mx","my","ms","je","je","mr","mb","ml"],mx:["mr","ml"],my:["je","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-je","rounded-l","rounded-ss","rounded-je","rounded-je","rounded-Fr","rounded-tl","rounded-tr","rounded-br","rounded-je"],"rounded-s":["rounded-ss","rounded-Fr"],"rounded-e":["rounded-je","rounded-je"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-je":["rounded-br","rounded-je"],"rounded-l":["rounded-tl","rounded-je"],"border-spacing":["border-spacing-je","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-je","border-w-l"],"border-w-je":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-je"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-je","border-color-l"],"border-color-je":["border-color-r","border-color-l"],"border-color-y":["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-Fr","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Fr","scroll-pb"],touch:["touch-je","touch-y","touch-pz"],"touch-je":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var $s=jc(md);function n(...e){return $s((0,Us.clsx)(e))}var je=require("react/jsx-runtime"),Fo=La.forwardRef(({...e},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Fo.displayName="Breadcrumb";var zo=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}));zo.displayName="BreadcrumbList";var Oo=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Oo.displayName="BreadcrumbItem";var _o=La.forwardRef(({asChild:e,className:t,...a},r)=>(0,je.jsx)(e?Ws.Slot:"a",{ref:r,className:n("transition-colors hover:text-foreground",t),...a}));_o.displayName="BreadcrumbLink";var Go=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}));Go.displayName="BreadcrumbPage";var Vo=({children:e,className:t,...a})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,je.jsx)(Er.ChevronRightIcon,{})});Vo.displayName="BreadcrumbSeparator";var $o=({className:e,...t})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,je.jsx)(Er.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});$o.displayName="BreadcrumbElipssis";var Ea=v(require("@radix-ui/react-collapsible")),Ct=Ea.Root,_t=Ea.CollapsibleTrigger,Gt=Ea.CollapsibleContent;var Pt=v(require("react")),A=v(require("@radix-ui/react-dropdown-menu"));var Xs=A.Root,js=A.Trigger,Ys=A.Group,Ks=A.Portal,qs=A.Sub,Js=A.RadioGroup,Uo=Pt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,je.jsxs)(A.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)(Er.ChevronRightIcon,{className:"ml-auto"})]}));Uo.displayName=A.SubTrigger.displayName;var Wo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(A.SubContent,{ref:a,className:n("je-50 min-w-[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}));Wo.displayName=A.SubContent.displayName;var Xo=Pt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(A.Portal,{children:(0,je.jsx)(A.Content,{ref:r,sideOffset:t,className:n("je-50 min-w-[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})}));Xo.displayName=A.Content.displayName;var jo=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(A.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}));jo.displayName=A.Item.displayName;var Yo=Pt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,je.jsxs)(A.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 w-3.5 items-center justify-center",children:(0,je.jsx)(A.ItemIndicator,{children:(0,je.jsx)(Er.CheckIcon,{className:"h-4 w-4"})})}),t]}));Yo.displayName=A.CheckboxItem.displayName;var Ko=Pt.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(A.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 w-3.5 items-center justify-center",children:(0,je.jsx)(A.ItemIndicator,{children:(0,je.jsx)(Er.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ko.displayName=A.RadioItem.displayName;var qo=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(A.Label,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));qo.displayName=A.Label.displayName;var Jo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(A.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Jo.displayName=A.Separator.displayName;var Qo=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});Qo.displayName="DropdownMenuShortcut";var Qs=v(require("react"));var Ie=Qs.forwardRef(({className:e,type:t,...a},r)=>(0,je.jsx)("input",{type:t,className:n("flex h-9 w-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}));Ie.displayName="Input";var en=v(require("react")),Zo=v(require("@radix-ui/react-separator"));var er=en.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,je.jsx)(Zo.Root,{ref:o,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));er.displayName=Zo.Root.displayName;var tr=v(require("react")),te=v(require("@radix-ui/react-dialog")),rn=require("class-variance-authority");var Br=te.Root,on=te.Trigger,sn=te.Close,ei=te.Portal,Hr=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}));Hr.displayName=te.Overlay.displayName;var pd=(0,rn.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-je-0 top-0 border-je data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-je-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),ar=tr.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,je.jsxs)(ei,{children:[(0,je.jsx)(Hr,{}),(0,je.jsxs)(te.Content,{ref:o,className:n(pd({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)(Er.Cross2Icon,{className:"h-4 w-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=te.Content.displayName;var ti=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-y-2 text-center sm:text-left",e),...t});ti.displayName="SheetHeader";var ai=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-je-2",e),...t});ai.displayName="SheetFooter";var ri=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ri.displayName=te.Title.displayName;var oi=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));oi.displayName=te.Description.displayName;var E=v(require("react")),gn=require("lucide-react");var Fr=require("react"),zr=(e=768)=>{let[t,a]=(0,Fr.useState)(!1);return(0,Fr.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var cn=v(require("react")),Vt=(0,rn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),k=cn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,je.jsx)(e?Ws.Slot:"button",{className:n(Vt({className:t,size:a,variant:r})),ref:i,...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 pn=v(require("react")),rt=v(require("@radix-ui/react-tooltip"));var Or=rt.Provider,_r=rt.Root,Gr=rt.Trigger,rr=pn.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 ud="sidebar:state",gd=60*60*24*7,fd="16rem",bd="18rem",vd="3rem",hd="je",fn=E.createContext(null);function Fa(){let e=E.useContext(fn);if(!e)throw new Error("useSidebar must je used within a SidebarProvider.");return e}var si=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...l},s)=>{let d=zr(),[u,c]=E.useState(!1),[p,m]=E.useState(e),f=t!=null?t:p,h=E.useCallback(H=>{if(a)return a==null?void 0:a(typeof H=="function"?H(f):H);m(H),document.cookie=`${ud}=${f}; path=/; max-age=${gd}`},[a,f]),g=E.useCallback(()=>d?c(H=>!H):h(H=>!H),[d,h,c]);E.useEffect(()=>{let H=Q=>{Q.key===hd&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),g())};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[g]);let y=f?"expanded":"collapsed",L=E.useMemo(()=>({state:y,open:f,setOpen:h,isMobile:d,openMobile:u,setOpenMobile:c,toggleSidebar:g}),[y,f,h,d,u,c,g]);return(0,je.jsx)(fn.Provider,{value:L,children:(0,je.jsx)(Or,{delayDuration:0,children:(0,je.jsx)("div",{style:{"--sidebar-width":fd,"--sidebar-width-icon":vd,...o},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...l,children:i})})})});si.displayName="SidebarProvider";var na=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},l)=>{let{isMobile:s,state:d,openMobile:u,setOpenMobile:c}=Fa();return a==="none"?(0,je.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...i,children:o}):s?(0,je.jsx)(Br,{open:u,onOpenChange:c,...i,children:(0,je.jsx)(ar,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":bd},side:e,children:(0,je.jsx)("div",{className:"flex h-full w-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 w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)je+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,je.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 je-10 hidden w-[--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]:w-[calc(var(--sidebar-width-icon)je+_theme(spacing.4)je+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,je.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});na.displayName="Sidebar";var ni=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 w-7",e),onClick:i=>{t==null||t(i),o()},...a,children:[(0,je.jsx)(gn.PanelLeft,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ni.displayName="SidebarTrigger";var li=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-y-0 je-20 hidden w-4 -translate-je-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]je&]:cursor-w-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-w-resize","group-data-[collapsible=offcanvas]:translate-je-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]je&]:-right-2","[[data-side=right][data-collapsible=offcanvas]je&]:-left-2",e),...t})});li.displayName="SidebarRail";var ci=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-y-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}));ci.displayName="SidebarInset";var di=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ie,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));di.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 w-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 w-full min-w-0 flex-col p-2",e),...t}));Ye.displayName="SidebarGroup";var St=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Ws.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}));St.displayName="SidebarGroupLabel";var mi=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Ws.Slot:"button",{ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-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}));mi.displayName="SidebarGroupAction";var ot=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-sm",e),...t}));ot.displayName="SidebarGroupContent";var Ae=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));Ae.displayName="SidebarMenu";var he=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));he.displayName="SidebarMenuItem";var xd=(0,rn.cva)("peer/menu-button flex w-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:i,...l},s)=>{let d=e?Ws.Slot:"button",{isMobile:u,state:c}=Fa(),p=(0,je.jsx)(d,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:n(xd({variant:a,size:r}),i),...l});return o?(typeof o=="string"&&(o={children:o}),(0,je.jsxs)(_r,{children:[(0,je.jsx)(Gr,{asChild:!0,children:p}),(0,je.jsx)(rr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...o})]})):p});Ke.displayName="SidebarMenuButton";var ir=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,je.jsx)(t?Ws.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-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}));ir.displayName="SidebarMenuAction";var pi=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-w-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}));pi.displayName="SidebarMenuBadge";var ui=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-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});ui.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-w-0 translate-je-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));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},i)=>(0,je.jsx)(e?Ws.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-w-0 -translate-je-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 Ur=v(require("react")),yd=1,Nd=1e6;var gi=0;function wd(){return gi=(gi+1)%Number.MAX_SAFE_INTEGER,gi.toString()}var fi=new Map,bn=e=>{if(fi.has(e))return;let t=setTimeout(()=>{fi.delete(e),sr({type:"REMOVE_TOAST",toastId:e})},Nd);fi.set(e,t)},Cd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,yd)};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?bn(a):e.toasts.forEach(r=>{bn(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)}}},Vr=[],$r={toasts:[]};function sr(e){$r=Cd($r,e),Vr.forEach(t=>{t($r)})}function Pd({...e}){let t=wd(),a=o=>sr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>sr({type:"DISMISS_TOAST",toastId:t});return sr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Wr(){let[e,t]=Ur.useState($r);return Ur.useEffect(()=>(Vr.push(t),()=>{let a=Vr.indexOf(t);a>-1&&Vr.splice(a,1)}),[e]),{...e,toast:Pd,dismiss:a=>sr({type:"DISMISS_TOAST",toastId:a})}}var da=v(require("react")),ne=v(require("@radix-ui/react-toast"));var Xr=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 w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));nr.displayName=ne.Viewport.displayName;var Sd=(0,rn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-je-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-je-0 data-[swipe=end]:translate-je-[var(--radix-toast-swipe-end-je)] data-[swipe=move]:translate-je-[var(--radix-toast-swipe-move-je)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-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(Sd({variant:t}),e),...a}));lr.displayName=ne.Root.displayName;var bi=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}));bi.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)(gn.je,{className:"h-4 w-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 xn(){let{toasts:e}=Wr();return(0,je.jsxs)(Xr,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,je.jsxs)(lr,{...i,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 yn=v(require("react")),vi=v(require("@radix-ui/react-toggle"));var pr=(0,rn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),hi=yn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,je.jsx)(vi.Root,{ref:o,className:n(pr({variant:t,size:a,className:e})),...r}));hi.displayName=vi.Root.displayName;var ma=v(require("react")),za=v(require("@radix-ui/react-toggle-group"));var Cn=ma.createContext({size:"default",variant:"default"}),xi=ma.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,je.jsx)(za.Root,{ref:i,className:n("flex items-center justify-center gap-1",e),...o,children:(0,je.jsx)(Cn.Provider,{value:{variant:t,size:a},children:r})}));xi.displayName=za.Root.displayName;var yi=ma.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let l=ma.useContext(Cn);return(0,je.jsx)(za.Item,{ref:i,className:n(pr({variant:l.variant||a,size:l.size||r}),e),...o,children:t})});yi.displayName=za.Item.displayName;var Ni=v(require("react")),qe=v(require("@radix-ui/react-scroll-area"));var Kt=Ni.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 w-full rounded-[inherit]",children:t}),(0,je.jsx)(Yr,{}),(0,je.jsx)(qe.Corner,{})]}));Kt.displayName=qe.Root.displayName;var Yr=Ni.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 w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,je.jsx)(qe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Yr.displayName=qe.ScrollAreaScrollbar.displayName;var Pn=v(require("react")),it=v(require("@radix-ui/react-popover"));var ur=it.Root,gr=it.Trigger,Sn=it.Anchor,Oa=Pn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(it.Portal,{children:(0,je.jsx)(it.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 w-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=it.Content.displayName;var Rn=v(require("react")),Ci=v(require("@radix-ui/react-label"));var Rd=(0,rn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=Rn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ci.Root,{ref:a,className:n(Rd(),e),...t}));J.displayName=Ci.Root.displayName;var Dn=v(require("react")),pa=v(require("@radix-ui/react-hover-card"));var Mn=pa.Root,In=pa.Trigger,Pi=Dn.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 w-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}));Pi.displayName=pa.Content.displayName;var fr=v(require("react")),re=v(require("@radix-ui/react-dialog"));var Je=re.Root,Kr=re.Trigger,Si=re.Portal,qr=re.Close,Jr=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}));Jr.displayName=re.Overlay.displayName;var Ge=fr.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(Si,{children:[(0,je.jsx)(Jr,{}),(0,je.jsxs)(re.Content,{ref:r,className:n("fixed left-[50%] top-[50%] je-50 grid w-full max-w-lg translate-je-[-50%] translate-y-[-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)(gn.je,{className:"h-4 w-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ge.displayName=re.Content.displayName;var st=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});st.displayName="DialogHeader";var Ri=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-je-2",e),...t});Ri.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 ki=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));ki.displayName=re.Description.displayName;var qt=v(require("react")),Re=require("cmdk");var Qr=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Re.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Qr.displayName=Re.Command.displayName;var Bn=({children:e,...t})=>(0,je.jsx)(Je,{...t,children:(0,je.jsx)(Ge,{className:"overflow-hidden p-0",children:(0,je.jsx)(Qr,{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]]:Fr-0 [&je[cmdk-group]]:px-2 [&je[cmdk-input-wrapper]_svg]:h-5 [&je[cmdk-input-wrapper]_svg]:w-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]:w-5",children:e})})}),Ti=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)(gn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,je.jsx)(Re.Command.Input,{ref:a,className:n("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ti.displayName=Re.Command.Input.displayName;var Di=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Re.Command.List,{ref:a,className:n("max-h-[300px] overflow-y-auto overflow-je-hidden",e),...t}));Di.displayName=Re.Command.List.displayName;var Mi=qt.forwardRef((e,t)=>(0,je.jsx)(Re.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Mi.displayName=Re.Command.Empty.displayName;var Ii=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Re.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}));Ii.displayName=Re.Command.Group.displayName;var Ai=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Re.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Ai.displayName=Re.Command.Separator.displayName;var Li=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Re.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}));Li.displayName=Re.Command.Item.displayName;var Ei=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ei.displayName="CommandShortcut";var Zr=v(require("react"));var kd=(0,rn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-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"}}),Bi=Zr.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)("div",{ref:r,role:"alert",className:n(kd({variant:t}),e),...a}));Bi.displayName="Alert";var Hi=Zr.forwardRef(({className:e,...t},a)=>(0,je.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Hi.displayName="AlertTitle";var Fi=Zr.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Fi.displayName="AlertDescription";var to=v(require("react")),kt=v(require("@radix-ui/react-avatar"));var Tt=to.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Tt.displayName=kt.Root.displayName;var Dt=to.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));Dt.displayName=kt.Image.displayName;var Mt=to.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Mt.displayName=kt.Fallback.displayName;var zi=(0,rn.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(zi({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 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,je.jsx)(br.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,je.jsx)(gn.Check,{className:"h-4 w-4"})})}));lt.displayName=br.Root.displayName;var F=v(require("@radix-ui/react-select")),Jt=v(require("react")),ga=F.Root,Td=F.Group,fa=F.Value,Qt=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:r,...a,children:[e,(0,je.jsx)(F.Icon,{asChild:!0,children:(0,je.jsx)(gn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Qt.displayName=F.Trigger.displayName;var Oi=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)(gn.ChevronUp,{className:"h-4 w-4"})}));Oi.displayName=F.ScrollUpButton.displayName;var _i=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)(gn.ChevronDown,{className:"h-4 w-4"})}));_i.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-w-[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-y-1 data-[side=left]:-translate-je-1 data-[side=right]:translate-je-1 data-[side=top]:-translate-y-1",t),position:a,ref:o,...r,children:[(0,je.jsx)(Oi,{}),(0,je.jsx)(F.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,je.jsx)(_i,{})]})}));Zt.displayName=F.Content.displayName;var Gn=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}));Gn.displayName=F.Label.displayName;var ea=Jt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Item,{className:n("relative flex w-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 w-3.5 items-center justify-center",children:(0,je.jsx)(F.ItemIndicator,{children:(0,je.jsx)(gn.Check,{className:"h-4 w-4"})})}),(0,je.jsx)(F.ItemText,{children:e})]}));ea.displayName=F.Item.displayName;var Vn=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}));Vn.displayName=F.Separator.displayName;var $n=v(require("react")),ta=$n.forwardRef(({className:e,...t},a)=>(0,je.jsx)("textarea",{className:n("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ta.displayName="Textarea";var Wn=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,je.jsx)(Wn.DayPicker,{showOutsideDays:a,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-je-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center Fr-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-je-1 flex items-center",nav_button:n(Vt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-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 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...r})}vr.displayName="Calendar";var Le=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("fa-")?e+" ":"fa-"+e+" ",i="fa-"+t,l=r!=null?r:"",s=o+i+" fa-"+a+" "+l;return(0,je.jsx)("i",{className:s})};var Yn=({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:"w-12 h-12 ",children:(0,je.jsx)(Le,{type:r,iconName:a,className:"w-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 Kn=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-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Ee=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex flex-col space-y-1.5 p-6",e),...t}));Ee.displayName="CardHeader";var Be=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Be.displayName="CardTitle";var Dd=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Dd.displayName="CardDescription";var xe=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("p-6 Fr-0",e),...t}));xe.displayName="CardContent";var Md=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex items-center p-6 Fr-0",e),...t}));Md.displayName="CardFooter";function Jn({name:e,logo:t,href:a}){return(0,je.jsx)(ge,{className:"w-full max-w-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 w-full h-full",children:t&&(0,je.jsx)(Kn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,je.jsx)(xe,{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 Qn({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=s=>{switch(s){case"birthday":return(0,je.jsx)(gn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,je.jsx)(gn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,je.jsx)(gn.PartyPopper,{className:"h-4 w-4"});default:return(0,je.jsx)(gn.CalendarDays,{className:"h-4 w-4"})}},l=s=>{switch(s){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:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,je.jsxs)(Ee,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,je.jsxs)(Tt,{className:"h-14 w-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)(Be,{className:"text-xl",children:a||"Untitled Event"}),(0,je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,je.jsx)(gn.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,je.jsxs)(xe,{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:[i(e),(0,je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-je])([A-Z])/g,"$1 $2").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" "):"Event"})]})]})]})}var el=v(require("next/link"));var tl=v(require("next/image")),Zn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function al({slug:e,image:t,title:a,description:r}){return(0,je.jsxs)(el.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)(tl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
6
+ "use strict";var Tc=Object.create;var Lr=Object.defineProperty;var Dc=Object.getOwnPropertyDescriptor;var Mc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,Ac=Object.prototype.hasOwnProperty;var Lc=(e,t)=>{for(var a in t)Lr(e,a,{get:t[a],enumerable:!0})},Bs=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mc(t))!Ac.call(e,o)&&o!==a&&Lr(e,o,{get:()=>t[o],enumerable:!(r=Dc(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?Tc(Ic(e)):{},Bs(t||!e||!e.__esModule?Lr(a,"default",{value:e,enumerable:!0}):a,e)),Ec=e=>Bs(Lr({},"__esModule",{value:!0}),e);var Hm={};Lc(Hm,{Alert:()=>Bi,AlertDescription:()=>Fi,AlertTitle:()=>Hi,ApproveLeave:()=>Ns,Avatar:()=>Tt,AvatarFallback:()=>Mt,AvatarImage:()=>Dt,Badge:()=>Qe,BannerBlock:()=>Vi,BlogCard:()=>_l,BlogList:()=>am,BrandLogo:()=>oa,Breadcrumb:()=>Fo,BreadcrumbEllipsis:()=>$o,BreadcrumbItem:()=>Oo,BreadcrumbLink:()=>_o,BreadcrumbList:()=>zo,BreadcrumbPage:()=>Go,BreadcrumbSeparator:()=>Vo,Breadcrumbs:()=>fs,Button:()=>k,CMSLink:()=>ft,CRMKanbanBoard:()=>Bm,Calendar:()=>vr,CalendarView:()=>Ss,CallToActionBlock:()=>yr,Card:()=>wr,Categories:()=>bm,Checkbox:()=>lt,CodeBlock:()=>Xi,Collapsible:()=>Ct,CollapsibleContent:()=>Gt,CollapsibleTrigger:()=>_t,CollectionArchive:()=>rm,Command:()=>Qr,CommandDialog:()=>Bn,CommandEmpty:()=>Mi,CommandGroup:()=>Ii,CommandInput:()=>Ti,CommandItem:()=>Li,CommandList:()=>Di,CommandSeparator:()=>Ai,CommandShortcut:()=>Ei,Container:()=>wa,ContentBlock:()=>Qi,ContentCard:()=>Gd,CopyButton:()=>Ui,CustomLink:()=>Ne,CustomerCard:()=>Jn,DealCard:()=>Ts,DealDetails:()=>ks,Dialog:()=>Je,DialogClose:()=>qr,DialogContent:()=>Ve,DialogDescription:()=>ki,DialogFooter:()=>Si,DialogHeader:()=>st,DialogOverlay:()=>Jr,DialogPortal:()=>Ri,DialogTitle:()=>nt,DialogTrigger:()=>Kr,DropdownMenu:()=>Xs,DropdownMenuCheckboxItem:()=>Yo,DropdownMenuContent:()=>Xo,DropdownMenuGroup:()=>Ys,DropdownMenuItem:()=>jo,DropdownMenuLabel:()=>qo,DropdownMenuPortal:()=>Ks,DropdownMenuRadioGroup:()=>Js,DropdownMenuRadioItem:()=>Ko,DropdownMenuSeparator:()=>Jo,DropdownMenuShortcut:()=>Qo,DropdownMenuSub:()=>qs,DropdownMenuSubContent:()=>Wo,DropdownMenuSubTrigger:()=>Uo,DropdownMenuTrigger:()=>js,DynamicIcon:()=>Ee,EventCard:()=>Qn,FeatureCard:()=>Yn,FeatureGrid:()=>vl,FeaturesBlock:()=>xr,Filter:()=>vm,Footer:()=>Tm,Header:()=>Dm,HeaderDesktop:()=>Sr,HeaderMobile:()=>kr,HeadingImage:()=>Jd,Hero:()=>zd,HighImpactHero:()=>ds,HolidayGrid:()=>Rs,HolidayTracker:()=>Lm,HoverCard:()=>Mn,HoverCardContent:()=>Pi,HoverCardTrigger:()=>In,Image:()=>rl,ImageBlock:()=>Ji,InfoTile:()=>$d,Input:()=>Ae,Insight:()=>Vd,KanbanColumn:()=>Is,Label:()=>J,Logo:()=>om,LowImpactHero:()=>us,MOTD:()=>Wd,Media:()=>Et,MediaBlock:()=>_a,MediumImpactHero:()=>ps,NewCustomerForm:()=>Ds,NewDealForm:()=>Ms,NewsGrid:()=>Ml,OrgChart:()=>Yd,PageRange:()=>nm,Pagination:()=>fm,PayloadPagination:()=>lm,Popover:()=>ur,PopoverAnchor:()=>Rn,PopoverContent:()=>Oa,PopoverTrigger:()=>gr,PostHero:()=>ym,PricingCard:()=>Fd,ProjectCard:()=>al,ProjectTeam:()=>um,ProposalSummary:()=>Kd,RelatedContent:()=>gm,RelatedPosts:()=>em,RenderBlocks:()=>Zi,RenderHero:()=>Nm,RequestLeave:()=>Ps,RichText:()=>Z,ScrollArea:()=>Kt,ScrollBar:()=>Yr,SectionHero:()=>gs,Select:()=>ga,SelectContent:()=>Zt,SelectGroup:()=>Td,SelectItem:()=>ea,SelectLabel:()=>Gn,SelectScrollDownButton:()=>_i,SelectScrollUpButton:()=>Oi,SelectSeparator:()=>Vn,SelectTrigger:()=>Qt,SelectValue:()=>fa,Separator:()=>er,ServiceCard:()=>Hd,Sheet:()=>Br,SheetClose:()=>sn,SheetContent:()=>ar,SheetDescription:()=>oi,SheetFooter:()=>ai,SheetHeader:()=>ti,SheetOverlay:()=>Hr,SheetPortal:()=>ei,SheetTitle:()=>ri,SheetTrigger:()=>on,Sidebar:()=>na,SidebarContent:()=>$t,SidebarFooter:()=>ca,SidebarGroup:()=>Ye,SidebarGroupAction:()=>mi,SidebarGroupContent:()=>ot,SidebarGroupLabel:()=>Rt,SidebarHeader:()=>la,SidebarInput:()=>di,SidebarInset:()=>ci,SidebarLeft:()=>cm,SidebarMenu:()=>Le,SidebarMenuAction:()=>ir,SidebarMenuBadge:()=>pi,SidebarMenuButton:()=>Ke,SidebarMenuItem:()=>ye,SidebarMenuSkeleton:()=>ui,SidebarMenuSub:()=>Ut,SidebarMenuSubButton:()=>Xt,SidebarMenuSubItem:()=>Wt,SidebarProvider:()=>si,SidebarRail:()=>li,SidebarRight:()=>pm,SidebarSeparator:()=>or,SidebarTrigger:()=>ni,SimpleHeader:()=>Cm,Skeleton:()=>ae,SlideShow:()=>kl,TextAndImages:()=>Il,Textarea:()=>ta,ThemeProvider:()=>Mm,Toast:()=>lr,ToastAction:()=>bi,ToastClose:()=>cr,ToastDescription:()=>mr,ToastProvider:()=>Xr,ToastTitle:()=>dr,ToastViewport:()=>nr,Toaster:()=>yn,Toggle:()=>hi,ToggleGroup:()=>yi,ToggleGroupItem:()=>xi,Tooltip:()=>_r,TooltipContent:()=>rr,TooltipProvider:()=>Or,TooltipTrigger:()=>Gr,VideoHeader:()=>Sm,WhyUs:()=>qd,badgeVariants:()=>zi,buttonVariants:()=>Vt,toggleVariants:()=>pr,useIsMobile:()=>zr,useSidebar:()=>Fa,useToast:()=>Wr});module.exports=Ec(Hm);var La=v(require("react")),Er=require("@radix-ui/react-icons"),Ws=require("@radix-ui/react-slot");var Us=require("clsx");var Ho="-",Bc=e=>{let t=Fc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let s=l.split(Ho);return s[0]===""&&s.length!==1&&s.shift(),zs(s,t)||Hc(l)},getConflictingClassGroupIds:(l,s)=>{let d=a[l]||[];return s&&r[l]?[...d,...r[l]]:d}}},zs=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?zs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Ho);return(l=t.validators.find(({validator:s})=>s(i)))==null?void 0:l.classGroupId},Hs=/^\[(.+)\]$/,Hc=e=>{if(Hs.test(e)){let t=Hs.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Fc=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Oc(Object.entries(e.classGroups),a).forEach(([i,l])=>{Bo(l,r,i,t)}),r},Bo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Fs(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(zc(o)){Bo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,l])=>{Bo(l,Fs(t,i),a,r)})})},Fs=(e,t)=>{let a=e;return t.split(Ho).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},zc=e=>e.isThemeGetter,Oc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,s])=>[t+l,s])):i);return[a,o]}):e,_c=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,l)=>{a.set(i,l),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let l=a.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){a.has(i)?a.set(i,l):o(i,l)}}},Os="!",Gc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,l=s=>{let d=[],u=0,c=0,p;for(let x=0;x<s.length;x++){let A=s[x];if(u===0){if(A===o&&(r||s.slice(x,x+i)===t)){d.push(s.slice(c,x)),c=x+i;continue}if(A==="/"){p=x;continue}}A==="["?u++:A==="]"&&u--}let m=d.length===0?s:s.substring(c),f=m.startsWith(Os),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?s=>a({className:s,parseClassName:l}):l},Vc=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},$c=e=>({cache:_c(e.cacheSize),parseClassName:Gc(e),...Bc(e)}),Uc=/\s+/,Wc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(Uc),s="";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){s=u+(s.length>0?" "+s:s);continue}if(g=r(m),!g){s=u+(s.length>0?" "+s:s);continue}h=!1}let x=Vc(c).join(":"),A=p?x+Os:x,O=A+g;if(i.includes(O))continue;i.push(O);let Q=o(g,h);for(let ve=0;ve<Q.length;++ve){let Ie=Q[ve];i.push(A+Ie)}s=u+(s.length>0?" "+s:s)}return s};function Xc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=_s(t))&&(r&&(r+=" "),r+=a);return r}var _s=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=_s(e[r]))&&(a&&(a+=" "),a+=t);return a};function jc(e,...t){let a,r,o,i=l;function l(d){let u=t.reduce((c,p)=>p(c),e());return a=$c(u),r=a.cache.get,o=a.cache.set,i=s,s(d)}function s(d){let u=r(d);if(u)return u;let c=Wc(d,a);return o(d,c),c}return function(){return i(Xc.apply(null,arguments))}}var q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Gs=/^\[(?:([a-je-]+):)?(.+)\]$/i,Yc=/^\d+\/\d+$/,Kc=new Set(["px","full","screen"]),qc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Fr|nc|in|cm|mm|cap|ch|ex|r?lh|cq(je|h|i|je|min|max))|\je(calc|min|max|clamp)\(.+\)|^0$/,Qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Zc=/^(inset_)?-?((\d+)?\.?(\d+)[a-je]+|0)je-?((\d+)?\.?(\d+)[a-je]+|0)/,ed=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ia(e)||Kc.has(e)||Yc.test(e),zt=e=>Aa(e,"length",ld),Ia=e=>!!e&&!Number.isNaN(Number(e)),Eo=e=>Aa(e,"number",Ia),Qa=e=>!!e&&Number.isInteger(Number(e)),td=e=>e.endsWith("%")&&Ia(e.slice(0,-1)),D=e=>Gs.test(e),Ot=e=>qc.test(e),ad=new Set(["length","size","percentage"]),rd=e=>Aa(e,ad,Vs),od=e=>Aa(e,"position",Vs),id=new Set(["image","url"]),sd=e=>Aa(e,id,dd),nd=e=>Aa(e,"",cd),Za=()=>!0,Aa=(e,t,a)=>{let r=Gs.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},ld=e=>Jc.test(e)&&!Qc.test(e),Vs=()=>!1,cd=e=>Zc.test(e),dd=e=>ed.test(e);var md=()=>{let e=q("colors"),t=q("spacing"),a=q("blur"),r=q("brightness"),o=q("borderColor"),i=q("borderRadius"),l=q("borderSpacing"),s=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"),ve=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],Mr=()=>["",wt,zt],Ir=()=>["auto",Ia,D],As=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ar=()=>["solid","dashed","dotted","double","none"],Ls=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Lo=()=>["start","end","center","between","around","evenly","stretch"],Ja=()=>["","0",D],Es=()=>["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:Mr(),contrast:Nt(),grayscale:Ja(),hueRotate:Nt(),invert:Ja(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[td,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":Es()}],"break-before":[{"break-before":Es()}],"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:[...As(),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":Ir()}],"col-end":[{"col-end":Ir()}],"grid-rows":[{"grid-rows":[Za]}],"row-start-end":[{row:["auto",{span:[Qa,D]},D]}],"row-start":[{"row-start":Ir()}],"row-end":[{"row-end":Ir()}],"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",...Lo()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Lo(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Lo(),"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]}],Fr:[{Fr:[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",Eo]}],"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,Eo]}],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","je-underline"],"text-decoration-style":[{decoration:[...Ar(),"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:[...As(),od]}],"bg-repeat":[{bg:["je-repeat",{repeat:["","x","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",rd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","je","je","l","tl"]},sd]}],"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:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-je":[{"rounded-je":[i]}],"rounded-Fr":[{"rounded-Fr":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-je":[{"rounded-je":[i]}],"border-je":[{border:[s]}],"border-je-x":[{"border-x":[s]}],"border-je-je":[{"border-je":[s]}],"border-je-s":[{"border-s":[s]}],"border-je-e":[{"border-e":[s]}],"border-je-t":[{"border-t":[s]}],"border-je-r":[{"border-r":[s]}],"border-je-je":[{"border-je":[s]}],"border-je-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Ar(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-je":[{"divide-je":[s]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Ar()}],"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:["",...Ar()]}],"outline-offset":[{"outline-offset":[wt,D]}],"outline-je":[{outline:[wt,zt]}],"outline-color":[{outline:[e]}],"ring-je":[{ring:Mr()}],"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,nd]}],"shadow-color":[{shadow:[Za]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Ls(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ls()}],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:[ve]}],"scale-x":[{"scale-x":[ve]}],"scale-je":[{"scale-je":[ve]}],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","je-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","ns-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-Fr":[{"scroll-Fr":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,Eo]}],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","Fr","pr","pb","pl"],px:["pr","pl"],py:["Fr","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-Fr","rounded-tl","rounded-tr","rounded-br","rounded-je"],"rounded-s":["rounded-ss","rounded-Fr"],"rounded-e":["rounded-je","rounded-je"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-je":["rounded-br","rounded-je"],"rounded-l":["rounded-tl","rounded-je"],"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-Fr","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Fr","scroll-pb"],touch:["touch-x","touch-je","touch-pz"],"touch-x":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var $s=jc(md);function n(...e){return $s((0,Us.clsx)(e))}var je=require("react/jsx-runtime"),Fo=La.forwardRef(({...e},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Fo.displayName="Breadcrumb";var zo=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}));zo.displayName="BreadcrumbList";var Oo=La.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Oo.displayName="BreadcrumbItem";var _o=La.forwardRef(({asChild:e,className:t,...a},r)=>(0,je.jsx)(e?Ws.Slot:"a",{ref:r,className:n("transition-colors hover:text-foreground",t),...a}));_o.displayName="BreadcrumbLink";var Go=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}));Go.displayName="BreadcrumbPage";var Vo=({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)(Er.ChevronRightIcon,{})});Vo.displayName="BreadcrumbSeparator";var $o=({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)(Er.DotsHorizontalIcon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});$o.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 Xs=L.Root,js=L.Trigger,Ys=L.Group,Ks=L.Portal,qs=L.Sub,Js=L.RadioGroup,Uo=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)(Er.ChevronRightIcon,{className:"ml-auto"})]}));Uo.displayName=L.SubTrigger.displayName;var Wo=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}));Wo.displayName=L.SubContent.displayName;var Xo=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})}));Xo.displayName=L.Content.displayName;var jo=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}));jo.displayName=L.Item.displayName;var Yo=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)(Er.CheckIcon,{className:"h-4 je-4"})})}),t]}));Yo.displayName=L.CheckboxItem.displayName;var Ko=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)(Er.DotFilledIcon,{className:"h-4 je-4 fill-current"})})}),t]}));Ko.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 Jo=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}));Jo.displayName=L.Separator.displayName;var Qo=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});Qo.displayName="DropdownMenuShortcut";var Qs=v(require("react"));var Ae=Qs.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 en=v(require("react")),Zo=v(require("@radix-ui/react-separator"));var er=en.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,je.jsx)(Zo.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=Zo.Root.displayName;var tr=v(require("react")),te=v(require("@radix-ui/react-dialog")),rn=require("class-variance-authority");var Br=te.Root,on=te.Trigger,sn=te.Close,ei=te.Portal,Hr=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}));Hr.displayName=te.Overlay.displayName;var pd=(0,rn.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)(ei,{children:[(0,je.jsx)(Hr,{}),(0,je.jsxs)(te.Content,{ref:o,className:n(pd({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)(Er.Cross2Icon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));ar.displayName=te.Content.displayName;var ti=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-2 text-center sm:text-left",e),...t});ti.displayName="SheetHeader";var ai=({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});ai.displayName="SheetFooter";var ri=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ri.displayName=te.Title.displayName;var oi=tr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));oi.displayName=te.Description.displayName;var E=v(require("react")),gn=require("lucide-react");var Fr=require("react"),zr=(e=768)=>{let[t,a]=(0,Fr.useState)(!1);return(0,Fr.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var cn=v(require("react")),Vt=(0,rn.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=cn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,je.jsx)(e?Ws.Slot:"button",{className:n(Vt({className:t,size:a,variant:r})),ref:i,...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 pn=v(require("react")),rt=v(require("@radix-ui/react-tooltip"));var Or=rt.Provider,_r=rt.Root,Gr=rt.Trigger,rr=pn.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 ud="sidebar:state",gd=60*60*24*7,fd="16rem",bd="18rem",vd="3rem",hd="je",fn=E.createContext(null);function Fa(){let e=E.useContext(fn);if(!e)throw new Error("useSidebar must je used within a SidebarProvider.");return e}var si=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...l},s)=>{let d=zr(),[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=`${ud}=${f}; path=/; max-age=${gd}`},[a,f]),g=E.useCallback(()=>d?c(O=>!O):h(O=>!O),[d,h,c]);E.useEffect(()=>{let O=Q=>{Q.key===hd&&(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)(fn.Provider,{value:A,children:(0,je.jsx)(Or,{delayDuration:0,children:(0,je.jsx)("div",{style:{"--sidebar-width":fd,"--sidebar-width-icon":vd,...o},className:n("group/sidebar-wrapper flex je-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...l,children:i})})})});si.displayName="SidebarProvider";var na=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},l)=>{let{isMobile:s,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,...i,children:o}):s?(0,je.jsx)(Br,{open:u,onOpenChange:c,...i,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":bd},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),...i,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 ni=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:i=>{t==null||t(i),o()},...a,children:[(0,je.jsx)(gn.PanelLeft,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ni.displayName="SidebarTrigger";var li=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})});li.displayName="SidebarRail";var ci=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}));ci.displayName="SidebarInset";var di=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}));di.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?Ws.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 mi=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Ws.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}));mi.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 ye=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));ye.displayName="SidebarMenuItem";var yd=(0,rn.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:i,...l},s)=>{let d=e?Ws.Slot:"button",{isMobile:u,state:c}=Fa(),p=(0,je.jsx)(d,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:n(yd({variant:a,size:r}),i),...l});return o?(typeof o=="string"&&(o={children:o}),(0,je.jsxs)(_r,{children:[(0,je.jsx)(Gr,{asChild:!0,children:p}),(0,je.jsx)(rr,{side:"right",align:"center",hidden:c!=="collapsed"||u,...o})]})):p});Ke.displayName="SidebarMenuButton";var ir=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,je.jsx)(t?Ws.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}));ir.displayName="SidebarMenuAction";var pi=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}));pi.displayName="SidebarMenuBadge";var ui=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}})]})});ui.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},i)=>(0,je.jsx)(e?Ws.Slot:"a",{ref:i,"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 Ur=v(require("react")),xd=1,Nd=1e6;var gi=0;function wd(){return gi=(gi+1)%Number.MAX_SAFE_INTEGER,gi.toString()}var fi=new Map,bn=e=>{if(fi.has(e))return;let t=setTimeout(()=>{fi.delete(e),sr({type:"REMOVE_TOAST",toastId:e})},Nd);fi.set(e,t)},Cd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xd)};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?bn(a):e.toasts.forEach(r=>{bn(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)}}},Vr=[],$r={toasts:[]};function sr(e){$r=Cd($r,e),Vr.forEach(t=>{t($r)})}function Pd({...e}){let t=wd(),a=o=>sr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>sr({type:"DISMISS_TOAST",toastId:t});return sr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Wr(){let[e,t]=Ur.useState($r);return Ur.useEffect(()=>(Vr.push(t),()=>{let a=Vr.indexOf(t);a>-1&&Vr.splice(a,1)}),[e]),{...e,toast:Pd,dismiss:a=>sr({type:"DISMISS_TOAST",toastId:a})}}var da=v(require("react")),ne=v(require("@radix-ui/react-toast"));var Xr=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 Rd=(0,rn.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(Rd({variant:t}),e),...a}));lr.displayName=ne.Root.displayName;var bi=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}));bi.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)(gn.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 yn(){let{toasts:e}=Wr();return(0,je.jsxs)(Xr,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,je.jsxs)(lr,{...i,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 xn=v(require("react")),vi=v(require("@radix-ui/react-toggle"));var pr=(0,rn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-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"}}),hi=xn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,je.jsx)(vi.Root,{ref:o,className:n(pr({variant:t,size:a,className:e})),...r}));hi.displayName=vi.Root.displayName;var ma=v(require("react")),za=v(require("@radix-ui/react-toggle-group"));var Cn=ma.createContext({size:"default",variant:"default"}),yi=ma.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,je.jsx)(za.Root,{ref:i,className:n("flex items-center justify-center gap-1",e),...o,children:(0,je.jsx)(Cn.Provider,{value:{variant:t,size:a},children:r})}));yi.displayName=za.Root.displayName;var xi=ma.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let l=ma.useContext(Cn);return(0,je.jsx)(za.Item,{ref:i,className:n(pr({variant:l.variant||a,size:l.size||r}),e),...o,children:t})});xi.displayName=za.Item.displayName;var Ni=v(require("react")),qe=v(require("@radix-ui/react-scroll-area"));var Kt=Ni.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)(Yr,{}),(0,je.jsx)(qe.Corner,{})]}));Kt.displayName=qe.Root.displayName;var Yr=Ni.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"})}));Yr.displayName=qe.ScrollAreaScrollbar.displayName;var Pn=v(require("react")),it=v(require("@radix-ui/react-popover"));var ur=it.Root,gr=it.Trigger,Rn=it.Anchor,Oa=Pn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(it.Portal,{children:(0,je.jsx)(it.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=it.Content.displayName;var Sn=v(require("react")),Ci=v(require("@radix-ui/react-label"));var Sd=(0,rn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=Sn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ci.Root,{ref:a,className:n(Sd(),e),...t}));J.displayName=Ci.Root.displayName;var Dn=v(require("react")),pa=v(require("@radix-ui/react-hover-card"));var Mn=pa.Root,In=pa.Trigger,Pi=Dn.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}));Pi.displayName=pa.Content.displayName;var fr=v(require("react")),re=v(require("@radix-ui/react-dialog"));var Je=re.Root,Kr=re.Trigger,Ri=re.Portal,qr=re.Close,Jr=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}));Jr.displayName=re.Overlay.displayName;var Ve=fr.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(Ri,{children:[(0,je.jsx)(Jr,{}),(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)(gn.je,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ve.displayName=re.Content.displayName;var st=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-1.5 text-center sm:text-left",e),...t});st.displayName="DialogHeader";var Si=({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});Si.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 ki=fr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));ki.displayName=re.Description.displayName;var qt=v(require("react")),ke=require("cmdk");var Qr=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}));Qr.displayName=ke.Command.displayName;var Bn=({children:e,...t})=>(0,je.jsx)(Je,{...t,children:(0,je.jsx)(Ve,{className:"overflow-hidden p-0",children:(0,je.jsx)(Qr,{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]]:Fr-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})})}),Ti=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)(gn.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})]}));Ti.displayName=ke.Command.Input.displayName;var Di=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}));Di.displayName=ke.Command.List.displayName;var Mi=qt.forwardRef((e,t)=>(0,je.jsx)(ke.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Mi.displayName=ke.Command.Empty.displayName;var Ii=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}));Ii.displayName=ke.Command.Group.displayName;var Ai=qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Ai.displayName=ke.Command.Separator.displayName;var Li=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}));Li.displayName=ke.Command.Item.displayName;var Ei=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ei.displayName="CommandShortcut";var Zr=v(require("react"));var kd=(0,rn.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"}}),Bi=Zr.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)("div",{ref:r,role:"alert",className:n(kd({variant:t}),e),...a}));Bi.displayName="Alert";var Hi=Zr.forwardRef(({className:e,...t},a)=>(0,je.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Hi.displayName="AlertTitle";var Fi=Zr.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Fi.displayName="AlertDescription";var to=v(require("react")),kt=v(require("@radix-ui/react-avatar"));var Tt=to.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=to.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=to.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 zi=(0,rn.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(zi({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)(gn.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,Td=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)(gn.ChevronDown,{className:"h-4 je-4 opacity-50"})})]}));Qt.displayName=F.Trigger.displayName;var Oi=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)(gn.ChevronUp,{className:"h-4 je-4"})}));Oi.displayName=F.ScrollUpButton.displayName;var _i=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)(gn.ChevronDown,{className:"h-4 je-4"})}));_i.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)(Oi,{}),(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)(_i,{})]})}));Zt.displayName=F.Content.displayName;var Gn=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}));Gn.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)(gn.Check,{className:"h-4 je-4"})})}),(0,je.jsx)(F.ItemText,{children:e})]}));ea.displayName=F.Item.displayName;var Vn=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}));Vn.displayName=F.Separator.displayName;var $n=v(require("react")),ta=$n.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 Wn=require("react-day-picker");function vr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,je.jsx)(Wn.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 Fr-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+" ",i="fa-"+t,l=r!=null?r:"",s=o+i+" fa-"+a+" "+l;return(0,je.jsx)("i",{className:s})};var Yn=({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 Kn=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-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 Dd=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Dd.displayName="CardDescription";var xe=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("p-6 Fr-0",e),...t}));xe.displayName="CardContent";var Md=va.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex items-center p-6 Fr-0",e),...t}));Md.displayName="CardFooter";function Jn({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)(Kn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,je.jsx)(xe,{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 Qn({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=s=>{switch(s){case"birthday":return(0,je.jsx)(gn.Cake,{className:"h-4 je-4"});case"workAnniversary":return(0,je.jsx)(gn.Award,{className:"h-4 je-4"});case"companyEvent":return(0,je.jsx)(gn.PartyPopper,{className:"h-4 je-4"});default:return(0,je.jsx)(gn.CalendarDays,{className:"h-4 je-4"})}},l=s=>{switch(s){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)(gn.CalendarDays,{className:"mr-1 inline-block h-4 je-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,je.jsxs)(xe,{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:[i(e),(0,je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-je])([A-Z])/g,"$1 $2").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" "):"Event"})]})]})]})}var el=v(require("next/link"));var tl=v(require("next/image")),Zn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function al({slug:e,image:t,title:a,description:r}){return(0,je.jsxs)(el.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)(tl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
7
  (min-width:${Zn.md}) 50vw,
8
8
  (min-width:${Zn.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-y 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 Fr-[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 Gi=v(require("next/image")),oo=v(require("path"));function Id(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Ad(e){return e.startsWith("http")}function Ld(e,t){let a=e;if(Id(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Ad(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=oo.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=oo.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=`/${oo.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Ed({src:e,alt:t}){let[a,r]=(0,Fr.useState)(!1),[o,i]=(0,Fr.useState)(!1),[l,s]=(0,Fr.useState)({width:0,height:0}),d=()=>{o&&r(!0)},u=()=>{r(!1)},c=p=>{let{naturalWidth:m,naturalHeight:f}=p.target;s({width:m,height:f}),i(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)(Gi.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,je.jsx)(Je,{open:a,onOpenChange:r,children:(0,je.jsxs)(Ge,{className:"flex flex-col items-center justify-center",children:[(0,je.jsxs)(st,{className:"flex w-full justify-end",children:[(0,je.jsx)(nt,{className:"hidden",children:t}),(0,je.jsx)(qr,{})]}),(0,je.jsx)("div",{className:"flex items-center justify-center",children:(0,je.jsx)(Gi.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function rl({props:e,baseContext:t}){let{src:a}=e;return a=Ld(a,t),(0,je.jsx)(Ed,{src:a,alt:e.alt})}var ol=v(require("next/link"));function ye({children:e,href:t,openNewTab:a,...r}){return(0,je.jsx)(ol.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function Bd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Hd({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-y-6 overflow-hidden rounded-5 p-6 md:space-y-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:Bd(e)?(0,je.jsx)(Le,{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)(ye,{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)(ye,{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] w-full scale-je-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-je-100 group-hover/service:opacity-100"})]})}var so=require("react-icons/fa6");function Fd({title:e,description:t,features:a,price:r,duration:o,button:i}){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:Fr-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-je-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,je.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,s)=>(0,je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,je.jsx)("span",{className:"text-accent Fr-1",children:(0,je.jsx)(so.FaCircleCheck,{})}),(0,je.jsx)("span",{children:l})]},s))}),(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})]}),i&&(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)(ye,{href:i.href,openNewTab:i.openNewTab,children:[(0,je.jsx)("span",{className:"relative je-1",children:i.label}),(0,je.jsx)("span",{className:"relative je-1 pl-2",children:(0,je.jsx)(so.FaAnglesRight,{})})]})})})]})})]})}function zd({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-w-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 w-full -translate-je-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-je-1/2",children:(0,je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,je.jsx)("path",{d:"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 Vi=({className:e,content:t,style:a})=>(0,je.jsx)("div",{className:n("mx-auto my-8 w-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 $i=v(require("next/link")),ft=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:l,reference:s,size:d,url:u}=e,c=t==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:u;if(!c)return null;let p=a==="link"?"clear":d,m=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,je.jsxs)($i.default,{className:n(o),href:c||u||"",...m,children:[i&&i,r&&r]}):(0,je.jsx)(k,{asChild:!0,className:o,size:p,variant:a,children:(0,je.jsxs)($i.default,{className:n(o),href:c||u||"",...m,children:[i&&i,r&&r]})})};var xr=({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-w-[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 lo=require("prism-react-renderer");function Ui({code:e}){let[t,a]=(0,Fr.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:"w-6 h-6 dark:invert",children:(0,je.jsx)(gn.ClipboardCopy,{})})]})})}var ll=({code:e,language:t=""})=>e?(0,je.jsx)(lo.Highlight,{code:e,language:t,theme:lo.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-je-auto",children:[o.map((i,l)=>(0,je.jsxs)("div",{...a({className:"table-row",line:i}),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:i.map((s,d)=>(0,je.jsx)("span",{...r({token:s})},d))})]},l)),(0,je.jsx)(Ui,{code:e})]})}):null;var Xi=({className:e,code:t,language:a})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(ll,{code:t,language:a})});var dl=v(require("next/image")),Od={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",ml=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:l,src:s,loading:d}=e,u,c,p=t,m=s||"";if(!m&&i&&typeof i=="object"){let{alt:g,filename:y,height:L,url:H,width:Q}=i;u=Q,c=L,p=g||"",m=H||cl}let f=d||"lazy",h=l||Object.entries(Od).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(dl.default,{alt:p||"",className:n(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:cl,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:h,src:m,width:a?void 0:u})})};var pl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ul=()=>{if(pl){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 gl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,Fr.useRef)(null);if((0,Fr.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=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:`${ul()}/media/${i}`})})}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||Fr.Fragment,{...a!==null?{className:t}:{},children:o?(0,je.jsx)(gl,{...e}):(0,je.jsx)(ml,{...e})})};var _a=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=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:i})})};var Ji=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=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:i})})};var yr=({title:e,description:t,features:a,id:r})=>(0,je.jsxs)("section",{className:n("container w-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,i)=>{let l=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,je.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${o.icon.type} fa-${o.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:o.title}),o.content&&typeof o.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(Z,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,je.jsx)("a",{href:o.link.url?o.link.url:"#",className:"je-underline group",children:l},i):l})})]});var uo=v(require("react"));function po({nodes:e}){return(0,je.jsx)(uo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let i=(0,je.jsx)(uo.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,je.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,je.jsx)("em",{children:i},a)),t.format&4&&(i=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,je.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,je.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,je.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((i,l)=>(0,je.jsx)("tr",{children:i.children.map((s,d)=>(0,je.jsx)("td",{children:po({nodes:s.children})},d))},l))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let l of i.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return po({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,l=i==null?void 0:i.blockType;if(!i||!l)return null;switch(l){case"cta":return(0,je.jsx)(xr,{...i},a);case"mediaBlock":return(0,je.jsx)(_a,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,je.jsx)(Ji,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,je.jsx)(Vi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,je.jsx)(Xi,{className:"col-start-2",...i},a);case"features":return(0,je.jsx)(yr,{...i},a);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 i=t==null?void 0:t.tag;return(0,je.jsx)(i,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let i=t==null?void 0:t.tag;return(0,je.jsx)(i,{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 i=t.fields;return(0,je.jsx)(ft,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}case"autolink":{let i=t.fields;return(0,je.jsx)(ft,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,je.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&po({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};function _d(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Gd({variant:e="light",className:t,icon:a,heading:r,subheading:o,content:i,statistic:l,buttonText:s,buttonHref:d}){let u={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"};return console.log("content",typeof i),(0,je.jsxs)("div",{className:n("rounded-3xl p-8 md:p-12",u[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:_d(a)?(0,je.jsx)(Le,{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}),i&&typeof i=="object"&&(0,je.jsx)("div",{className:n("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,je.jsx)(Z,{enableGutter:!1,content:i,enableProse:!1,className:n(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),i&&typeof i=="string"&&(0,je.jsx)("div",{className:n("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:i}),s&&(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:[s,(0,je.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,je.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var vl=({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 Vd({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:"w-12 h-12",children:(0,je.jsx)(Le,{type:e.type,iconName:e.name})})}),(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var xl=v(require("next/image"));function $d(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)(xl.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 Ud=(e,t)=>`from-brand-${e} to-brand-${t}`;function Wd({...e}){let t=Ud(e.brandFrom||"one",e.brandTo||"two");return(0,je.jsxs)("div",{className:`relative isolate flex items-center gap-je-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-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 Nr=v(require("react")),Xd={Architecture:(0,je.jsx)(gn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,je.jsx)(gn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,je.jsx)(gn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,je.jsx)(gn.GanttChart,{className:"h-5 w-5 text-red-600"})},jd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=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:[i&&(0,je.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,je.jsx)(gn.ChevronDown,{className:"h-4 w-4"}):(0,je.jsx)(gn.ChevronRight,{className:"h-4 w-4"})}),(0,je.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,je.jsx)(gn.Users,{className:"h-6 w-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:[Xd[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})]})})},yl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,Nr.useState)(t<1),i=()=>o(!r),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),s=c=>l(c)||c.reports.some(s),d=a===""||s(e),u=l(e);return Nr.default.useEffect(()=>{a!==""&&s(e)&&o(!0)},[a,e]),d?(0,je.jsxs)("div",{children:[(0,je.jsx)(jd,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:u}),r&&e.reports.map((c,p)=>(0,je.jsx)(yl,{person:c,level:t+1,searchTerm:a},p))]}):null};function Yd(){let[e,t]=(0,Nr.useState)("");return(0,je.jsxs)("div",{className:"max-w-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:"w-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)(gn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,je.jsx)("div",{className:"space-y-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)(yl,{person:r,level:0,searchTerm:e},o))})]})}function Kd({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-y-6 flex flex-col",children:[(0,je.jsxs)(ge,{className:"flex-grow",children:[(0,je.jsx)(Ee,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,je.jsx)(gn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,je.jsxs)(xe,{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-y-6",children:[(0,je.jsx)("div",{className:"space-y-2",children:e.leadership.map((o,i)=>(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)(gn.User,{className:"h-4 w-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)"})]},i))}),(0,je.jsx)("div",{className:"space-y-2",children:e.core.map((o,i)=>(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)(gn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role}),o.count&&(0,je.jsxs)("span",{children:["(",o.count,"je)"]})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,je.jsx)(gn.Users2,{className:"h-4 w-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)(Ee,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,je.jsx)(gn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,je.jsx)(xe,{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)(Ee,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,je.jsx)(gn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,je.jsxs)(xe,{className:"p-6 flex-grow overflow-auto",children:[(0,je.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((o,i)=>(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})]},i))}),(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)(Ee,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,je.jsx)(gn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,je.jsx)(xe,{className:"p-6 flex-grow overflow-auto",children:(0,je.jsx)("ul",{className:"space-y-4",children:a.map((o,i)=>(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})]},i))})})]})]})}function qd(){return(0,je.jsx)("div",{className:"w-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-y-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:"w-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)(gn.BarChart3,{className:"w-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,je.jsx)("p",{className:"text-secondary text-sm",children:"je excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,je.jsxs)("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-y-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"w-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)(gn.CogIcon,{className:"w-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,je.jsx)("p",{className:"text-sm",children:"je deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,je.jsxs)("div",{className:"space-y-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"w-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)(gn.Building2,{className:"w-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"je understand how 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:"je have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,je.jsxs)("div",{className:"space-y-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"w-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)(gn.BadgeCheck,{className:"w-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"je have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,je.jsx)("p",{className:"text-sm",children:"As Er XXXX strategic partner, je have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Qi=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-y-8 gap-je-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:i,link:l,richText:s,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:[s&&(0,je.jsx)(Z,{content:s,enableGutter:!1}),i&&(0,je.jsx)(ft,{...l})]},o)})})})};var go=v(require("next/image"));function Jd({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,je.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 Fr-[calc(80vw*0.5)]",children:[(0,je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-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] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,je.jsx)(go.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,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 w-32 md:h-24 md:w-48",children:(0,je.jsx)(go.default,{src:r,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),o&&(0,je.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,je.jsx)(go.default,{src:o,alt:"Customer logo",className:"h-full w-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-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var wl=v(require("next/image"));var Nl={content:Qi,cta:xr,mediaBlock:_a,imageBlock:_a,features:yr},Zi=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 s;let{blockType:i}=r,l=r==null?void 0:r.theme;if(i&&i in Nl){let d=Nl[i];if(d)return(0,je.jsxs)("div",{className:"py-6 relative",children:[(0,je.jsx)(Qd,{block:r,index:o}),(0,je.jsx)("div",{className:n("container",((s=l==null?void 0:l.settings)==null?void 0:s.theme)==="dark"?"dark":""),children:(0,je.jsx)(d,{...r})})]},o)}return null})}):null},Qd=e=>{var a;if(console.log("props",e),!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(console.log("theme",t),t.settings.background==="image"){let r={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return console.log("themeSettings",r),(0,je.jsxs)("div",{className:n("absolute inset-0 w-full h-full -je-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,je.jsx)(wl.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 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var Rl=v(require("clsx"));var Cl=require("next/navigation");function Zd({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Cl.useRouter)(),o=(0,Fr.useRef)(null),i=(0,Fr.useRef)(null),l=(0,Fr.useRef)(0),s=(0,Fr.useRef)(!1),d=(0,Fr.useRef)(0),u=(0,Fr.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?s.current=!0:(s.current=!1,l.current=f)}},[r,o,i,l]),c=(0,Fr.useCallback)(p=>{var m,f;if((m=i.current)!=null&&m.href){let g=+new Date-l.current;if((f=i.current)!=null&&f.href&&g<=250&&!s.current&&d.current===0&&!p.ctrlKey)if(e){let y=t?"_blank":"_self";window.open(i.current.href,y)}else r.push(i.current.href,{scroll:a})}},[r,o,i,l]);return(0,Fr.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,i,r]),{card:{ref:o},link:{ref:i}}}var Pl=Zd;var Sl=v(require("next/link"));var wr=e=>{let{card:t,link:a}=Pl({}),{className:r,doc:o,relationTo:i,showCategories:l,title:s}=e,{slug:d,categories:u,meta:c,title:p}=o||{},{description:m,image:f}=c||{},h=u&&Array.isArray(u)&&u.length>0,g=s||p,y=m==null?void 0:m.replace(/\s/g," "),L=`/${i}/${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 w-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((H,Q)=>{if(typeof H=="object"){let{title:Me}=H,Xe=Me||"Untitled category",gt=Q===u.length-1;return(0,je.jsxs)(Fr.Fragment,{children:[Xe,!gt&&(0,je.jsx)(Fr.Fragment,{children:", \xA0"})]},Q)}return null})})}),g&&(0,je.jsx)("div",{className:"prose",children:(0,je.jsx)("h3",{children:(0,je.jsx)(Sl.default,{className:"not-prose",href:L,ref:a.ref,children:g})})}),m&&(0,je.jsx)("div",{className:"je-2",children:m&&(0,je.jsx)("p",{children:y})})]})]})};var em=e=>{let{className:t,docs:a,introContent:r}=e;return(0,je.jsxs)("div",{className:(0,Rl.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,i)=>typeof o=="string"?null:(0,je.jsx)(wr,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var Cr=require("framer-motion");var kl=e=>{let[t,a]=(0,Fr.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},l=()=>{a(p=>(p+1)%r.length)},s=()=>{a(p=>(p-1+r.length)%r.length)},u=(0,Fr.useCallback)(((p,m)=>{let f;return(...h)=>{clearTimeout(f),f=setTimeout(()=>p(...h),m)}})(p=>{p.deltaY>0?l():s()},300),[]),c=p=>{p.key==="ArrowDown"?l():p.key==="ArrowUp"&&s()};return(0,Fr.useEffect)(()=>(window.addEventListener("wheel",u),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",u),window.removeEventListener("keydown",c)}),[]),(0,$e.jsxs)("div",{className:"flex h-screen relative",children:[(0,$e.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 je-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,m)=>(0,$e.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===m?"bg-accent":"bg-gray-300"}`,onClick:()=>i(m),children:(0,$e.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-je-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-je-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,m)=>(0,$e.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${m===t?"opacity-100":"opacity-0"}`,children:(0,$e.jsx)(Zi,{blocks:[p]})},m)),(0,$e.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,$e.jsx)(tm,{})})]})},tm=()=>(0,$e.jsx)(Cr.AnimatePresence,{children:(0,$e.jsx)(Cr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,$e.jsx)(Cr.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Tl=v(require("next/link")),Dl=v(require("next/image"));function Ml({blogs:e,width:t=3}){return(0,je.jsx)("div",{className:"w-full max-w-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)(Tl.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)(Dl.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(i=>`${i.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 Il({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:l,companiesCount:s,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-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,je.jsxs)("div",{className:"max-w-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-je-8 lg:gap-y-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:"Fr-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:i.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)("dl",{className:"je-6 grid grid-cols-1 gap-je-8 gap-y-4 sm:grid-cols-2",children:[(0,je.jsxs)("div",{className:"flex flex-col gap-y-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-y-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:[s,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-y-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-y-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 Al=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,l=o<10?`0${o}`:o,s=a.getFullYear();return`${l}/${i}/${s}`};var Ll=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}`},El=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 Bl({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:l=!1}){let s=n(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,je.jsxs)("div",{className:s,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&&"je-padding",r);return(0,je.jsx)("div",{className:o,children:e})}var Fl=(e,t)=>e[t%e.length];var ts=v(require("next/image"));function am({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-w-[630px]",children:t&&(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,je.jsx)(Bl,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,je.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,r)=>(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Fl([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,je.jsx)(_l,{...a})},r))})]})})}var zl=n("inline-flex items-center gap-2 text-white"),Sb=n("text-sm text-white");function _l({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){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)(ts.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 Fr-[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 Gi=v(require("next/image")),oo=v(require("path"));function Id(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Ad(e){return e.startsWith("http")}function Ld(e,t){let a=e;if(Id(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Ad(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=oo.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=oo.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=`/${oo.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Ed({src:e,alt:t}){let[a,r]=(0,Fr.useState)(!1),[o,i]=(0,Fr.useState)(!1),[l,s]=(0,Fr.useState)({width:0,height:0}),d=()=>{o&&r(!0)},u=()=>{r(!1)},c=p=>{let{naturalWidth:m,naturalHeight:f}=p.target;s({width:m,height:f}),i(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)(Gi.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)(st,{className:"flex je-full justify-end",children:[(0,je.jsx)(nt,{className:"hidden",children:t}),(0,je.jsx)(qr,{})]}),(0,je.jsx)("div",{className:"flex items-center justify-center",children:(0,je.jsx)(Gi.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function rl({props:e,baseContext:t}){let{src:a}=e;return a=Ld(a,t),(0,je.jsx)(Ed,{src:a,alt:e.alt})}var ol=v(require("next/link"));function Ne({children:e,href:t,openNewTab:a,...r}){return(0,je.jsx)(ol.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function Bd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Hd({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:Bd(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)(Ne,{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)(Ne,{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 so=require("react-icons/fa6");function Fd({title:e,description:t,features:a,price:r,duration:o,button:i}){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:Fr-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,s)=>(0,je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,je.jsx)("span",{className:"text-accent Fr-1",children:(0,je.jsx)(so.FaCircleCheck,{})}),(0,je.jsx)("span",{children:l})]},s))}),(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})]}),i&&(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)(Ne,{href:i.href,openNewTab:i.openNewTab,children:[(0,je.jsx)("span",{className:"relative je-1",children:i.label}),(0,je.jsx)("span",{className:"relative je-1 pl-2",children:(0,je.jsx)(so.FaAnglesRight,{})})]})})})]})})]})}function zd({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 Vi=({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 $i=v(require("next/link")),ft=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:l,reference:s,size:d,url:u}=e,c=t==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:u;if(!c)return null;let p=a==="link"?"clear":d,m=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,je.jsxs)($i.default,{className:n(o),href:c||u||"",...m,children:[i&&i,r&&r]}):(0,je.jsx)(k,{asChild:!0,className:o,size:p,variant:a,children:(0,je.jsxs)($i.default,{className:n(o),href:c||u||"",...m,children:[i&&i,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 lo=require("prism-react-renderer");function Ui({code:e}){let[t,a]=(0,Fr.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)(gn.ClipboardCopy,{})})]})})}var ll=({code:e,language:t=""})=>e?(0,je.jsx)(lo.Highlight,{code:e,language:t,theme:lo.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((i,l)=>(0,je.jsxs)("div",{...a({className:"table-row",line:i}),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:i.map((s,d)=>(0,je.jsx)("span",{...r({token:s})},d))})]},l)),(0,je.jsx)(Ui,{code:e})]})}):null;var Xi=({className:e,code:t,language:a})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(ll,{code:t,language:a})});var dl=v(require("next/image")),Od={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",ml=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:l,src:s,loading:d}=e,u,c,p=t,m=s||"";if(!m&&i&&typeof i=="object"){let{alt:g,filename:x,height:A,url:O,width:Q}=i;u=Q,c=A,p=g||"",m=O||cl}let f=d||"lazy",h=l||Object.entries(Od).map(([,g])=>`(max-width: ${g}px) ${g*2}je`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(dl.default,{alt:p||"",className:n(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:cl,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:h,src:m,width:a?void 0:u})})};var pl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ul=()=>{if(pl){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 gl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,Fr.useRef)(null);if((0,Fr.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=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:`${ul()}/media/${i}`})})}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||Fr.Fragment,{...a!==null?{className:t}:{},children:o?(0,je.jsx)(gl,{...e}):(0,je.jsx)(ml,{...e})})};var _a=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=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:i})})};var Ji=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=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:i})})};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,i)=>{let l=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[(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:`${o.icon.type} fa-${o.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:o.title}),o.content&&typeof o.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(Z,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,je.jsx)("a",{href:o.link.url?o.link.url:"#",className:"je-underline group",children:l},i):l})})]});var uo=v(require("react"));function po({nodes:e}){return(0,je.jsx)(uo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let i=(0,je.jsx)(uo.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,je.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,je.jsx)("em",{children:i},a)),t.format&4&&(i=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,je.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,je.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,je.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((i,l)=>(0,je.jsx)("tr",{children:i.children.map((s,d)=>(0,je.jsx)("td",{children:po({nodes:s.children})},d))},l))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let l of i.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return po({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,l=i==null?void 0:i.blockType;if(!i||!l)return null;switch(l){case"cta":return(0,je.jsx)(yr,{...i},a);case"mediaBlock":return(0,je.jsx)(_a,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,je.jsx)(Ji,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,je.jsx)(Vi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,je.jsx)(Xi,{className:"col-start-2",...i},a);case"features":return(0,je.jsx)(xr,{...i},a);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 i=t==null?void 0:t.tag;return(0,je.jsx)(i,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let i=t==null?void 0:t.tag;return(0,je.jsx)(i,{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 i=t.fields;return(0,je.jsx)(ft,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}case"autolink":{let i=t.fields;return(0,je.jsx)(ft,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,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&&po({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};function _d(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Gd({variant:e="light",className:t,icon:a,heading:r,subheading:o,content:i,statistic:l,buttonText:s,buttonHref:d}){let u={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"};return console.log("content",typeof i),(0,je.jsxs)("div",{className:n("rounded-3xl p-8 md:p-12",u[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:_d(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}),i&&typeof i=="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:i,enableProse:!1,className:n(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),i&&typeof i=="string"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:i}),s&&(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:[s,(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 vl=({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 Vd({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 yl=v(require("next/image"));function $d(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)(yl.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 Ud=(e,t)=>`from-brand-${e} to-brand-${t}`;function Wd({...e}){let t=Ud(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 Nr=v(require("react")),Xd={Architecture:(0,je.jsx)(gn.DraftingCompass,{className:"h-5 je-5 text-blue-600"}),Engineering:(0,je.jsx)(gn.Code,{className:"h-5 je-5 text-green-600"}),Development:(0,je.jsx)(gn.Code,{className:"h-5 je-5 text-purple-600"}),Delivery:(0,je.jsx)(gn.GanttChart,{className:"h-5 je-5 text-red-600"})},jd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=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:[i&&(0,je.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,je.jsx)(gn.ChevronDown,{className:"h-4 je-4"}):(0,je.jsx)(gn.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)(gn.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:[Xd[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})]})})},xl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,Nr.useState)(t<1),i=()=>o(!r),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),s=c=>l(c)||c.reports.some(s),d=a===""||s(e),u=l(e);return Nr.default.useEffect(()=>{a!==""&&s(e)&&o(!0)},[a,e]),d?(0,je.jsxs)("div",{children:[(0,je.jsx)(jd,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:u}),r&&e.reports.map((c,p)=>(0,je.jsx)(xl,{person:c,level:t+1,searchTerm:a},p))]}):null};function Yd(){let[e,t]=(0,Nr.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)(gn.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)(xl,{person:r,level:0,searchTerm:e},o))})]})}function Kd({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)(xe,{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,i)=>(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)"})]},i))}),(0,je.jsx)("div",{className:"space-je-2",children:e.core.map((o,i)=>(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)"})]},i))}),(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)(xe,{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)(xe,{className:"p-6 flex-grow overflow-auto",children:[(0,je.jsx)("ol",{className:"list-decimal list-inside space-je-4",children:t.map((o,i)=>(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})]},i))}),(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)(xe,{className:"p-6 flex-grow overflow-auto",children:(0,je.jsx)("ul",{className:"space-je-4",children:a.map((o,i)=>(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})]},i))})})]})]})}function qd(){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)(gn.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)(gn.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)(gn.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)(gn.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 Er XXXX strategic partner, je have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Qi=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:i,link:l,richText:s,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:[s&&(0,je.jsx)(Z,{content:s,enableGutter:!1}),i&&(0,je.jsx)(ft,{...l})]},o)})})})};var go=v(require("next/image"));function Jd({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 Fr-[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)(go.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)(go.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)(go.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 wl=v(require("next/image"));var Nl={content:Qi,cta:yr,mediaBlock:_a,imageBlock:_a,features:xr},Zi=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 s;let{blockType:i}=r,l=r==null?void 0:r.theme;if(i&&i in Nl){let d=Nl[i];if(d)return(0,je.jsxs)("div",{className:"py-6 relative",children:[(0,je.jsx)(Qd,{block:r,index:o}),(0,je.jsx)("div",{className:n("container",((s=l==null?void 0:l.settings)==null?void 0:s.theme)==="dark"?"dark":""),children:(0,je.jsx)(d,{...r})})]},o)}return null})}):null},Qd=e=>{var a;if(console.log("props",e),!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(console.log("theme",t),t.settings.background==="image"){let r={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return console.log("themeSettings",r),(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)(wl.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 Sl=v(require("clsx"));var Cl=require("next/navigation");function Zd({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Cl.useRouter)(),o=(0,Fr.useRef)(null),i=(0,Fr.useRef)(null),l=(0,Fr.useRef)(0),s=(0,Fr.useRef)(!1),d=(0,Fr.useRef)(0),u=(0,Fr.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?s.current=!0:(s.current=!1,l.current=f)}},[r,o,i,l]),c=(0,Fr.useCallback)(p=>{var m,f;if((m=i.current)!=null&&m.href){let g=+new Date-l.current;if((f=i.current)!=null&&f.href&&g<=250&&!s.current&&d.current===0&&!p.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(i.current.href,x)}else r.push(i.current.href,{scroll:a})}},[r,o,i,l]);return(0,Fr.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,i,r]),{card:{ref:o},link:{ref:i}}}var Pl=Zd;var Rl=v(require("next/link"));var wr=e=>{let{card:t,link:a}=Pl({}),{className:r,doc:o,relationTo:i,showCategories:l,title:s}=e,{slug:d,categories:u,meta:c,title:p}=o||{},{description:m,image:f}=c||{},h=u&&Array.isArray(u)&&u.length>0,g=s||p,x=m==null?void 0:m.replace(/\s/g," "),A=`/${i}/${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:ve}=O,Ie=ve||"Untitled category",gt=Q===u.length-1;return(0,je.jsxs)(Fr.Fragment,{children:[Ie,!gt&&(0,je.jsx)(Fr.Fragment,{children:", \xA0"})]},Q)}return null})})}),g&&(0,je.jsx)("div",{className:"prose",children:(0,je.jsx)("h3",{children:(0,je.jsx)(Rl.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 em=e=>{let{className:t,docs:a,introContent:r}=e;return(0,je.jsxs)("div",{className:(0,Sl.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,i)=>typeof o=="string"?null:(0,je.jsx)(wr,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var Cr=require("framer-motion");var kl=e=>{let[t,a]=(0,Fr.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},l=()=>{a(p=>(p+1)%r.length)},s=()=>{a(p=>(p-1+r.length)%r.length)},u=(0,Fr.useCallback)(((p,m)=>{let f;return(...h)=>{clearTimeout(f),f=setTimeout(()=>p(...h),m)}})(p=>{p.deltaY>0?l():s()},300),[]),c=p=>{p.key==="ArrowDown"?l():p.key==="ArrowUp"&&s()};return(0,Fr.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:()=>i(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)(Zi,{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)(tm,{})})]})},tm=()=>(0,je.jsx)(Cr.AnimatePresence,{children:(0,je.jsx)(Cr.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)(Cr.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 Tl=v(require("next/link")),Dl=v(require("next/image"));function Ml({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)(Tl.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)(Dl.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(i=>`${i.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 Il({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:l,companiesCount:s,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:"Fr-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:i.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)("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:[s,"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 Al=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,l=o<10?`0${o}`:o,s=a.getFullYear();return`${l}/${i}/${s}`};var Ll=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}`},El=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 Bl({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:l=!1}){let s=n(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,je.jsxs)("div",{className:s,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&&"je-padding",r);return(0,je.jsx)("div",{className:o,children:e})}var Fl=(e,t)=>e[t%e.length];var ts=v(require("next/image"));function am({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)(Bl,{...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":Fl([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 zl=n("inline-flex items-center gap-2 text-white"),Rb=n("text-sm text-white");function _l({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){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)(ts.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
@@ -15,4 +15,4 @@
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 w-full flex-col",children:[o&&(0,je.jsx)("div",{children:(0,je.jsx)("div",{className:"inline-grid w-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:Ll(o)})})})}),(0,je.jsxs)("div",{className:"je-auto space-y-2 text-white md:space-y-5",children:[(0,je.jsx)("div",{className:"inline-flex flex-wrap items-center gap-je-5 gap-y-2",children:(0,je.jsx)("p",{className:zl})}),(0,je.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,je.jsx)(ye,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,je.jsx)("div",{children:(0,je.jsxs)(ye,{href:e,className:n(zl,"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)(so.FaArrowRight,{})})]})})]})]})]})}var rm=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-y-4 gap-je-4 lg:gap-y-8 lg:gap-je-8 xl:gap-je-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)(wr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Gl=v(require("clsx")),Vl=v(require("next/image")),om=e=>{let{loading:t,priority:a,className:r}=e;return(0,$l.jsx)(Vl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Gl.default)("max-w-[9.375rem] w-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var im={plural:"Docs",singular:"Doc"},sm={posts:{plural:"Posts",singular:"Post"}},nm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:l}=e,s=(o?o-1:1)*(i||1)+1;l&&s>l&&(s=0);let d=(o||1)*(i||1);l&&d>l&&(d=l);let{plural:u,singular:c}=r||sm[a||""]||im||{};return(0,je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced je results.",typeof l!="undefined"&&l>0&&`Showing ${s}${s>0?` - ${d}`:""} of ${l} ${l>1?u:c}`]})};var as=v(require("react")),rs=({className:e,...t})=>(0,je.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});rs.displayName="Pagination";var os=as.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));os.displayName="PaginationContent";var Ht=as.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 is=({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)(gn.ChevronLeft,{className:"h-4 w-4"}),(0,je.jsx)("span",{children:"Previous"})]});is.displayName="PaginationPrevious";var ss=({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)(gn.ChevronRight,{className:"h-4 w-4"})]});ss.displayName="PaginationNext";var fo=({className:e,...t})=>(0,je.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,je.jsx)(gn.MoreHorizontal,{className:"h-4 w-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More pages"})]});fo.displayName="PaginationEllipsis";var lm=e=>{let t=(0,Cl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,l=r>1,s=r-1>1,d=r+1<o;return(0,je.jsx)("div",{className:n("my-12",a),children:(0,je.jsx)(rs,{children:(0,je.jsxs)(os,{children:[(0,je.jsx)(Ht,{children:(0,je.jsx)(is,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,je.jsx)(Ht,{children:(0,je.jsx)(fo,{})}),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})}),i&&(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)(fo,{})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(ss,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var ns=v(require("clsx"));function cm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:l,loading:s=!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 w-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)(Ae,{children:(0,je.jsx)(he,{children:s?(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 w-full h-7"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-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})]})})})}),s&&(0,je.jsxs)($t,{children:[(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,je.jsxs)($t,{children:[e&&!s&&e.map((m,f)=>(0,je.jsx)(dm,{subNav:m,pathName:o,Link:p},f)),(0,je.jsx)(Ye,{className:"je-auto",children:(0,je.jsx)(ot,{children:(0,je.jsx)(Ae,{children:t&&!s&&t.map(m=>(0,je.jsx)(he,{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 dm({subNav:e,pathName:t,Link:a}){var i,l;let r=e,o=!1;return r.links&&r.links.map(s=>{s.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)(Ae,{children:(0,je.jsx)(Ct,{asChild:!0,defaultOpen:r.isActive,children:(0,je.jsxs)(he,{children:[(0,je.jsx)(Ke,{asChild:!0,tooltip:r.label,className:(0,ns.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})]})}),(i=r.links)!=null&&i.length?(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(_t,{asChild:!0,children:(0,je.jsxs)(ir,{className:"data-[state=open]:rotate-90",children:[(0,je.jsx)(gn.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(s=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,className:(0,ns.default)(s.url===t&&"font-bold text-accent"),children:(0,je.jsx)(a,{href:s.url,children:(0,je.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},r.label)})})})}var jl=v(require("clsx"));var mm=()=>(0,je.jsx)(Le,{iconName:"github",size:"10x"});function pm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:l,onPrintDocument:s,onGithubClick:d,onNavClick:u,LinkComponent:c,...p}){let h=c?g=>(0,je.jsx)(c,{...g}):u?({item:g,children:y,...L})=>(0,je.jsx)("button",{onClick:()=>u&&u(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...L,children:y}):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)(Ae,{className:"flex-row space-je-1",children:[(0,je.jsx)(he,{children:(0,je.jsxs)(Ke,{onClick:i,children:[(0,je.jsx)(gn.FilePlus,{})," ",(0,je.jsx)("span",{children:"Add Document"})]})}),d&&(0,je.jsx)(he,{children:(0,je.jsx)(Ke,{onClick:d,tooltip:"Open in GitHub",children:(0,je.jsx)(mm,{})})})]}),(0,je.jsxs)(Ae,{className:"flex-row space-je-1",children:[(0,je.jsx)(he,{className:"w-5/12",children:(0,je.jsxs)(Ke,{onClick:()=>l(),variant:o?"outline":"default",className:(0,jl.default)(o&&"text-accent"),children:[(0,je.jsx)(gn.Edit,{})," ",(0,je.jsx)("span",{children:"Edit"})]})}),(0,je.jsx)(he,{className:"w-5/12",children:(0,je.jsxs)(Ke,{onClick:s,children:[(0,je.jsx)(gn.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)(St,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Editor Controls",(0,je.jsx)(gn.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)(St,{children:"Related Content"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Ae,{children:Array.from({length:3}).map((g,y)=>(0,je.jsx)(he,{children:(0,je.jsx)(ae,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,je.jsxs)(Ye,{children:[(0,je.jsx)(St,{children:"Table of Contents"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Ae,{children:Array.from({length:3}).map((g,y)=>(0,je.jsx)(he,{children:(0,je.jsx)(ae,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),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)(St,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Related Content",(0,je.jsx)(gn.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)(Ae,{children:e&&Object.keys(e).map(g=>(0,je.jsxs)(he,{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(y=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:!1,size:"sm",children:(0,je.jsxs)(h,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,je.jsx)("span",{children:y.label}),y.type==="note"&&(0,je.jsx)(gn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,je.jsx)(Le,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},y.label))})]},g))})})})]})}),t&&!r&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(St,{asChild:!0,children:(0,je.jsxs)(_t,{children:["Table of Contents",(0,je.jsx)(gn.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)(Ae,{children:t.map(g=>{var y;return(0,je.jsxs)(he,{children:[(0,je.jsx)(Ke,{asChild:!0,children:(0,je.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(y=g.items)!=null&&y.length?(0,je.jsx)(Ut,{children:g.items.map(L=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,isActive:L.isActive,size:"sm",children:(0,je.jsx)("a",{href:`#${L.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,je.jsx)("span",{children:L.title})})})},L.title))}):null]},g.title)})})})})]})})]}),(0,je.jsx)(ca,{})]})}var Kl=v(require("next/image"));function um({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)(gn.Users,{className:"w-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-y-4",children:t.map((a,r)=>(0,je.jsxs)("div",{className:"flex items-center space-je-4",children:[(0,je.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,je.jsx)(Kl.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 ql=v(require("next/link"));var gm=({links:e,title:t="Related Content"})=>(0,je.jsxs)(ge,{children:[(0,je.jsx)(Ee,{children:(0,je.jsx)(Be,{className:"text-accent",children:t})}),(0,je.jsx)(xe,{children:(0,je.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,r)=>(0,je.jsxs)(ql.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)(gn.ExternalLink,{className:"ml-1 h-3 w-3"})]},r))})})]});var ls=n("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function fm({pages:e}){let t=(0,Cl.useSearchParams)(),a=(0,Cl.usePathname)(),{replace:r}=(0,Cl.useRouter)(),{totalPages:o,page:i}=e,[l,s]=(0,Fr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&l.start>1?s(m=>({start:m.start-1,end:m.end-1})):p==="right"&&l.end<o&&s(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(ls,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,je.jsx)(so.FaArrowLeft,{})})}),c.map((p,m)=>(0,je.jsx)("li",{children:(0,je.jsx)("a",{className:n(ls,p===i?"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(ls,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,je.jsx)(so.FaArrowRight,{})})})]})})}var nv=n("transition-colors duration-400 hover:text-primary ease-in-out");function bm({title:e,links:t}){let a=(0,Cl.useSearchParams)(),r=(0,Cl.usePathname)(),{replace:o}=(0,Cl.useRouter)();function i(l){let s=new URLSearchParams(a);l?s.set("category",l):s.delete("category"),o(`${r}?${s.toString()}`)}return(0,je.jsxs)(ge,{children:[(0,je.jsx)(Ee,{children:(0,je.jsx)(Be,{className:"text-accent",children:e&&e})}),(0,je.jsx)(xe,{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,s)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:Fr-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(l.href)},children:[l.label,(0,je.jsx)(gn.ExternalLink,{className:"ml-1 h-3 w-3"})]},s))})})})]})}function vm({types:e}){let[t,a]=(0,Fr.useState)(e&&e[0].href),r=(0,Cl.useSearchParams)(),o=(0,Cl.usePathname)(),{replace:i}=(0,Cl.useRouter)();function l(s){let d=new URLSearchParams(r);s?d.set("type",s):d.delete("type"),a(s),i(`${o}?${d.toString()}`)}return(0,je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-je-auto pb-4 mb-6",children:e&&e.map((s,d)=>(0,je.jsx)(k,{variant:s.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",s.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(s.href),children:s.label},d))})}var tc=v(require("next/image"));var ds=({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},i)=>(0,je.jsx)("li",{children:(0,je.jsx)(ft,{...o})},i))})]})}),(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)(tc.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 ms=v(require("next/image"));var hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,je.jsx)(ms.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(ms.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ps=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 Fr-10",children:[t&&(0,je.jsx)(hm,{media:t}),(0,je.jsx)("div",{className:"mx-0 min-w-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 us=({children:e,richText:t})=>(0,je.jsx)("div",{className:"min-w-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 ac=v(require("react")),rc=v(require("next/image"));var xm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=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:i}),(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((s,d)=>(0,je.jsxs)(ac.default.Fragment,{children:[s.name,d<r.length-2&&", ",d===r.length-2&&(r.length>2?", and ":" and ")]},s.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:Al(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((s,d)=>typeof s=="object"&&s!==null&&(0,je.jsx)(Qe,{className:"px-3 py-1 mx-1",children:s.title||"Untitled category"},s.id||d))})]})]})]})}),(0,je.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,je.jsx)(rc.default,{className:"object-cover",alt:`Cover image for ${i}`,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 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var ho=require("@heroicons/react/20/solid");var oc=v(require("next/image"));function gs({title:e,breadcrumbItems:t,image:a}){return(0,je.jsxs)("section",{className:"-je-10 relative flex min-h-[250px] Fr-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 je-0",children:a&&(0,je.jsx)(oc.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-je-20 gap-y-8 text-accent-900 dark:text-white lg:Fr-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,je.jsx)(fs,{breadcrumbItems:t})]})})]})}var ym={highImpact:ds,lowImpact:us,mediumImpact:ps,sectionHero:gs},Nm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=ym[t];return a?(0,je.jsx)(a,{...e}):null};function fs({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-je-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(ho.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)(ho.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 Ue=require("@headlessui/react"),No=require("@heroicons/react/24/outline");var wm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,je.jsx)("a",{href:r,className:"flex items-center gap-je-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 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]})}):(0,je.jsxs)(Ue.Popover,{children:[(0,je.jsxs)(Ue.PopoverButton,{className:"flex items-center gap-je-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 w-1/2 h-0.5 bg-accent transform -translate-je-1/2 scale-je-0 transition-transform duration-300 ease-in-out group-hover:scale-je-100"})]}),(0,je.jsx)(ho.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,je.jsxs)(Ue.PopoverPanel,{transition:!0,className:"absolute inset-je-0 top-0 -je-10 bg-popover je-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-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-w-7xl grid-cols-4 gap-je-4 px-6 py-10 lg:px-8 xl:gap-je-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)(ic,{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-w-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-je divide-gray-900/5 border-je border-gray-900/5",children:a.map(o=>(0,je.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-je-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,je.jsx)(ic,{icon:o.icon,className:"h-5 w-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),ic=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)(Le,{...e,size:a});if("src"in e)return(0,je.jsx)("div",{className:n(t,"h-full max-w-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%"}})})},xo=wm;var yo=["light","dark","green"];function Cm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Fr.useState)(!1),[i,l]=(0,Fr.useState)(!1),[s,d]=(0,Fr.useState)("light"),u=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,m]=(0,Fr.useState)(`${u}.${c}`),f=g=>{yo.includes(g)?m(g==="light"?`${u}.${c}`:`${u}-${g}.${c}`):m(`${u}.${c}`)};(0,Fr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let h=()=>{let g=yo[(yo.indexOf(s)+1)%yo.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 w-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)(No.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,je.jsx)(Ue.PopoverGroup,{className:"hidden lg:flex lg:gap-je-12",children:a.map(g=>(0,je.jsx)(xo,{...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:s==="dark"?(0,je.jsx)(ho.SunIcon,{className:"h-6 w-6"}):s==="green"?(0,je.jsx)(ho.MoonIcon,{className:"h-6 w-6"}):(0,je.jsx)(ho.SunIcon,{className:"h-6 w-6"})})})]}),(0,je.jsxs)(Ue.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)(Ue.DialogPanel,{className:"fixed inset-y-0 right-0 je-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-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 w-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)(No.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,je.jsx)(Pm,{...g},g.name))})})})]})]})]})}function Pm({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)(Ue.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(Ue.DisclosureButton,{className:"group flex w-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)(Ue.DisclosurePanel,{className:"je-2 space-y-2",children:t&&t.map(o=>(0,je.jsx)(Ue.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 dc=v(require("next/image"));var bs=v(require("next/image"));function oa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,je.jsxs)(ye,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,je.jsx)(bs.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)(bs.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 nc=require("next-themes");function Rr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Fr.useState)(!1),[l,s]=(0,Fr.useState)(""),d=["light","dark"],{theme:u,setTheme:c}=(0,nc.useTheme)();(0,Fr.useEffect)(()=>{s(u||"dark")},[u]);let p=()=>{let m=d[(d.indexOf(l)+1)%d.length];s(m),c(m)};return(0,Fr.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!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-y-0":"-translate-y-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)(Ue.PopoverGroup,{className:"hidden lg:flex lg:gap-je-12",children:r&&r.map(m=>(0,je.jsx)(xo,{...m},m.name))}),(0,je.jsx)("div",{className:"flex items-center space-je-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)(gn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(gn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var vs=["light","dark"];function kr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Fr.useState)(!1),{theme:l,setTheme:s}=(0,nc.useTheme)(),[d,u]=(0,Fr.useState)(!1),[c,p]=(0,Fr.useState)("light");(0,Fr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Fr.useEffect)(()=>{p(l||"dark")},[l]);let m=()=>{let f=vs[(vs.indexOf(c)+1)%vs.length];p(f),s(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-y-0":"-translate-y-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-je-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)(No.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-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)(gn.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(gn.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(Ue.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)(Ue.DialogPanel,{className:"fixed inset-y-0 right-0 je-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-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)(No.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,je.jsx)(Sm,{...f},f.name))})})})]})]})]})})}function Sm({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)(Ue.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(Ue.DisclosureButton,{className:"group flex w-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)(Ue.DisclosurePanel,{className:"je-2 space-y-2",children:t&&t.map(o=>(0,je.jsx)(Ue.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 Rm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[l,s]=(0,Fr.useState)(!1),[d,u]=(0,Fr.useState)(!1),c=()=>{let m=document.getElementById("next-section");m&&m.scrollIntoView({behavior:"smooth"})};return(0,Fr.useEffect)(()=>{let m=()=>{window.scrollY>100?s(!0):s(!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 w-full h-screen overflow-hidden",children:[(0,je.jsxs)("video",{className:"object-cover w-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)(gn.Menu,{className:"w-6 h-6 text-white"})}),(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 je-50",children:[(0,je.jsx)(Rr,{isMenuOpen:l||d,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(kr,{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)(dc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto w-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 Fr-auto mb-12",children:o&&o}),(0,je.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:i&&i})]}),(0,je.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,je.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,je.jsx)(gn.ChevronDown,{size:64})})})]})]})}var mc=v(require("next/image"));var km=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),hs=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),xs=n("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),ys=n("flex items-center gap-5"),Ro=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Tm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:l,columnThree:s,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-je rounded-5 bg-accent text-white",children:o.socialLinks.map((u,c)=>(0,je.jsx)("li",{children:(0,je.jsx)(ye,{"aria-label":u.href,className:km,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:hs,children:i.title}),i.links&&i.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2",children:i.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)(so.FaChevronRight,{})}),(0,je.jsx)(ye,{href:u.href,openNewTab:u.openNewTab,className:Ro,children:u.label})]},u.label))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,je.jsx)("h3",{className:hs,children:l.title}),(0,je.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,je.jsxs)("li",{className:ys,children:[(0,je.jsx)("span",{className:xs,children:(0,je.jsx)(so.FaPaperPlane,{})}),(0,je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,je.jsxs)("li",{className:ys,children:[(0,je.jsx)("span",{className:xs,children:(0,je.jsx)(so.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:Ro,children:u},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,je.jsxs)("li",{className:ys,children:[(0,je.jsx)("span",{className:xs,children:(0,je.jsx)(so.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:Ro,children:u},c))})]})]})]}),s&&(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,je.jsx)("h3",{className:hs,children:s.title}),s.blogs&&s.blogs.length>0&&(0,je.jsx)("div",{className:"grid gap-6",children:s.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)(mc.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)(so.FaCalendarDays,{})}),(0,je.jsx)("span",{children:El(u.date)})]}),(0,je.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,je.jsx)(ye,{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-je-8 gap-y-4 md:gap-je-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-je-4 md:gap-je-7",children:d.links.map(u=>(0,je.jsx)("li",{children:(0,je.jsx)(ye,{"aria-label":`Go to page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Ro,children:u.label})},u.label))})})]})})})]})}function Dm({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)(Rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(kr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Mm({children:e,...t}){return(0,je.jsx)(nc.ThemeProvider,{...t,children:e})}var Ra=require("sonner");function Ns({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Fr.useState)([]),i=(0,Cl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},s=c=>{o(p=>p.includes(c)?p.filter(m=>m!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(Ra.toast.success(c.message),i.refresh()):Ra.toast.error(`Error: ${c.message}`),o([])},u=async()=>{let c=await a(r);c.success?(Ra.toast.success(c.message),i.refresh()):Ra.toast.error(`Error: ${c.message}`),o([])};return(0,$.jsxs)("div",{className:"space-y-4",children:[(0,$.jsxs)("div",{className:"flex justify-between items-center",children:[(0,$.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,$.jsxs)("div",{className:"space-je-2",children:[(0,$.jsx)(k,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,$.jsx)(k,{onClick:u,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,$.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,$.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,$.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(lt,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,$.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,$.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,$.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("div",{className:"flex items-center",children:[(0,$.jsx)(lt,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>s(c.id),className:"border-accent"}),(0,$.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,$.jsxs)(Tt,{className:"h-10 w-10",children:[(0,$.jsx)(Dt,{src:c.userImage,alt:c.userName}),(0,$.jsx)(Mt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,$.jsx)("div",{className:"ml-3",children:(0,$.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,$.jsxs)("div",{className:"flex items-center space-je-2",children:[(0,$.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,$.jsx)(Qe,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,$.jsx)(Ra.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var ws=require("date-fns"),Im=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,je.jsx)("div",{className:"flex space-je-2",children:e.map((o,i)=>(0,je.jsx)(k,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function Ps({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Fr.useState)(new Date),[o,i]=(0,Fr.useState)(new Date),[l,s]=(0,Fr.useState)("Full Day"),[d,u]=(0,Fr.useState)(!1),c=(0,Cl.useRouter)();(0,Fr.useEffect)(()=>{u(a!==o||!a||!o),d&&s("Full Day")},[a,o]);let p=f=>{s(f)};return(0,je.jsxs)("div",{className:"max-w-2xl",children:[(0,je.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,je.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,je.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!o){Ra.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){Ra.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 y=await(t||Am)(g);y.success?(Ra.toast.success(y.message),r(void 0),i(void 0),s("Full Day"),c.refresh()):Ra.toast.error(`Error: ${y.message}`)},className:"space-y-4",children:[(0,je.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,je.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,je.jsxs)(ur,{children:[(0,je.jsx)(gr,{asChild:!0,children:(0,je.jsxs)(k,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,je.jsx)(gn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ws.format)(a,"PPP"):(0,je.jsx)("span",{children:"Pick a date"})]})}),(0,je.jsx)(Oa,{className:"w-auto p-0",align:"start",children:(0,je.jsx)(vr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&i(f)},initialFocus:!0})})]})]}),(0,je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,je.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,je.jsxs)(ur,{children:[(0,je.jsx)(gr,{asChild:!0,children:(0,je.jsxs)(k,{variant:"outline",className:n("w-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,je.jsx)(gn.CalendarIcon,{className:"mr-2 h-4 w-4"}),o?(0,ws.format)(o,"PPP"):(0,je.jsx)("span",{children:"Pick a date"})]})}),(0,je.jsx)(Oa,{className:"w-auto p-0",align:"start",children:(0,je.jsx)(vr,{mode:"single",selected:o,onSelect:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,je.jsxs)("div",{className:"space-y-2",children:[(0,je.jsx)(J,{children:"Leave Type"}),(0,je.jsx)(Im,{options:["Full Day","Morning","Afternoon"],value:l,onChange:p,disabled:[!1,d,d]})]}),(0,je.jsx)(k,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,je.jsx)(Ra.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Am=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function vc(...e){return e.filter(Boolean).join(" ")}function Ss({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{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: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)(gn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:s,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)(gn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,je.jsx)("div",{className:"je-8 flow-root",children:(0,je.jsx)("div",{className:"-mx-4 -my-2 overflow-je-auto sm:-mx-6 lg:-mx-8",children:(0,je.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,je.jsxs)("table",{className:"min-w-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:vc(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 w-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:vc(u!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,je.jsx)("div",{className:`h-6 w-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 w-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Rs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Fr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p-i+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)}}),s=()=>{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: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)(gn.ChevronLeft,{className:"h-5 w-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)(gn.ChevronRight,{className:"h-5 w-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:"on"})]}),(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:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"rn"})]})]}),(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 w-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 w-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-y-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 w-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 w-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 w-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 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var ia=require("lucide-react");function xc(...e){return e.filter(Boolean).join(" ")}function Lm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:l,rejectLeave:s}){let[d,u]=(0,Fr.useState)("Calendar View"),c=(0,Cl.useRouter)(),p=!1,m=(0,ws.parseISO)(a),f=async g=>{let y=(0,ws.format)(g,"dd-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",y),c.push(L.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 w-32 border-t-2 border-je-2 border-gray-900"})});let h=[{name:"Grid View",icon:ia.Grid,current:d==="Grid View"},{name:"Calendar View",icon:ia.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:ia.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:ia.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 w-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)(gn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-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-je-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:xc(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:xc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,je.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,je.jsx)(Ss,{currentDate:m,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,je.jsx)(Rs,{currentDate:m,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,je.jsx)(Ps,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,je.jsx)(Ns,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>s?s(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function ks({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:i,onAddComment:l}){var Xe,gt,R,U,at;let[s,d]=(0,Fr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,c]=(0,Fr.useState)(""),[p,m]=(0,Fr.useState)(!1),[f,h]=(0,Fr.useState)(null);(0,Fr.useEffect)(()=>{m(JSON.stringify(e)!==JSON.stringify(s))},[e,s]);let g=()=>{i(s),m(!1),h(null)},y=(w,j)=>{d(V=>({...V,[w]:j}))},L=w=>{let j=(s.categories||[]).includes(w)?(s.categories||[]).filter(V=>V!==w):[...s.categories||[],w];y("categories",j)},H=()=>{if(u.trim()){let w={text:u,timestamp:new Date().toISOString()};l(w),d(j=>({...j,comments:[...j.comments||[],w]})),c("")}},Q=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},Me=w=>t==null?void 0:t.find(j=>j.id===Number(w));return(0,je.jsx)(Je,{open:!0,children:(0,je.jsxs)(Ge,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,je.jsxs)(st,{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-je-2",children:[(0,je.jsx)(k,{variant:"outline",onClick:o,children:"Close"}),(0,je.jsxs)(k,{onClick:g,disabled:!p,children:[(0,je.jsx)(gn.SaveIcon,{className:"w-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)(Ie,{type:"number",value:s.value,onChange:w=>y("value",Number(w.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",(Xe=s.value)==null?void 0:Xe.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:((R=(gt=s==null?void 0:s.assignee)==null?void 0:gt.id)==null?void 0:R.toString())||"",onValueChange:w=>y("assignee",Me(w)),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(w=>{var j;return(0,je.jsx)(ea,{value:((j=w==null?void 0:w.id)==null?void 0:j.toString())||"",children:w.name},w.id)})})]}):(0,je.jsxs)("div",{className:"flex items-center space-je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,je.jsx)(gn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:s.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)(Ie,{type:"date",value:(at=(U=s.closureDate)==null?void 0:U.split("je")[0])!=null?at:"",onChange:w=>y("closureDate",w.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,je.jsxs)("div",{className:"flex items-center space-je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,je.jsx)(gn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:s.closureDate?new Date(s.closureDate).toLocaleDateString("en-GB"):"je/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:s.description||"",onChange:w=>y("description",w.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:s.description})]})}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 Fr-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:s.status,onValueChange:w=>{y("status",w),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(w=>(0,je.jsx)(ea,{value:w,children:w},w))})]}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:s.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(w=>{var j,V;return(0,je.jsxs)("div",{className:"flex items-center space-je-2",children:[(0,je.jsx)(lt,{id:((j=w.id)==null?void 0:j.toString())||"",checked:(s.categories||[]).some(Mr=>Mr.id===w.id),onCheckedChange:()=>w.id!==void 0&&L(w)}),(0,je.jsx)("label",{htmlFor:((V=w.id)!=null?V:"").toString(),className:`text-sm font-medium ${Q(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id)})}):(0,je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:s.categories&&s.categories.map(w=>{console.log("cat",w);let j=w;return j?(0,je.jsx)(Qe,{variant:"secondary",className:Q(j.type||"sector"),children:j.name},j.id):null})})]})]}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 Fr-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-y-auto",children:(0,je.jsx)("div",{className:"space-y-2",children:s.comments&&s.comments.slice().sort((w,j)=>new Date(j.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var j;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:w.text}),(0,je.jsxs)("p",{className:"text-xs text-gray-500 je-1",children:[(j=w==null?void 0:w.author)==null?void 0:j.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id)})})}),(0,je.jsxs)("div",{className:"flex je-2",children:[(0,je.jsx)(Ie,{value:u,onChange:w=>c(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,je.jsxs)(k,{onClick:H,className:"ml-2",children:[(0,je.jsx)(gn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,je.jsxs)("div",{className:"text-xs text-gray-500 je-4",children:["Last modified: ",new Date(s.updatedAt||"").toLocaleString()]})]})]})]})})}function Ts({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(i=>{var l;return i.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(i.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)(Ee,{className:"pb-2",children:[(0,je.jsx)("div",{className:"flex justify-between items-center",children:(0,je.jsx)(Be,{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)(xe,{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)(gn.UserIcon,{className:"w-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)(gn.CalendarIcon,{className:"w-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 Io=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ds({onSubmit:e}){var o;let[t,a]=(0,Fr.useState)({name:"",intro:"",active:!0});return(0,je.jsxs)("form",{onSubmit:i=>{i.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,je.jsxs)("div",{className:"space-y-2",children:[(0,je.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,je.jsx)(Ie,{id:"customerName",value:t.name,onChange:i=>a({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,je.jsxs)("div",{className:"space-y-2",children:[(0,je.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,je.jsx)(ta,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:i=>a({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,je.jsxs)("div",{className:"flex items-center space-je-2",children:[(0,je.jsx)(lt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>a({...t,active:i})}),(0,je.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,je.jsx)(k,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Ms({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:i,onClose:l}){var Q,Me,Xe,gt;let[s,d]=(0,Fr.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,Fr.useState)(!1),[p,m]=(0,Fr.useState)({});(0,Fr.useEffect)(()=>{o&&d(o)},[o]);let f=()=>{let R={};return s.customer||(R.customer="Customer is required"),s.value||(R.value="Value is required"),s.assignee||(R.assignee="Assignee is required"),s.closureDate||(R.closureDate="Closure Date is required"),m(R),Object.keys(R).length===0},h=R=>{R.preventDefault(),f()&&(r({...s}),d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),m({}),l==null||l())},g=R=>{d(U=>({...U,categories:(U.categories||[]).includes(R)?(U.categories||[]).filter(at=>at!==R):[...U.categories||[],R]}))},y=R=>{d({...s,customer:R}),c(!1),i(R)},L=R=>t==null?void 0:t.find(U=>U.id===Number(R)),H=R=>e==null?void 0:e.find(U=>U.id===Number(R));return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)("form",{onSubmit:h,className:"space-y-6",children:[(0,je.jsx)(Kt,{className:"h-[60vh] pr-4",children:(0,je.jsxs)("div",{className:"space-y-6 px-4",children:[(0,je.jsxs)("div",{className:"space-y-2 space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,je.jsxs)("div",{className:"flex items-center space-je-2",children:[(0,je.jsxs)(ga,{value:(Me=(Q=s.customer)==null?void 0:Q.id)==null?void 0:Me.toString(),onValueChange:R=>d({...s,customer:H(R)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select customer"})}),(0,je.jsx)(Zt,{children:e.map(R=>{var U;return(0,je.jsx)(ea,{value:((U=R.id)==null?void 0:U.toString())||"",children:R.name},R.id)})})]}),(0,je.jsx)(k,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,je.jsx)(gn.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,je.jsxs)("div",{className:"space-y-2 space-je-2",children:[(0,je.jsx)(J,{htmlFor:"value",children:"Value"}),(0,je.jsx)(Ie,{id:"value",type:"number",value:s.value||"",onChange:R=>d({...s,value:Number.parseFloat(R.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-y-2 space-je-2",children:[(0,je.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,je.jsxs)(ga,{value:(gt=(Xe=s.assignee)==null?void 0:Xe.id)==null?void 0:gt.toString(),onValueChange:R=>d({...s,assignee:L(R)}),children:[(0,je.jsx)(Qt,{children:(0,je.jsx)(fa,{placeholder:"Select assignee"})}),(0,je.jsx)(Zt,{children:t&&t.map(R=>{var U;return(0,je.jsx)(ea,{value:((U=R.id)==null?void 0:U.toString())||"",children:R.name},R.id)})})]}),p.assignee&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,je.jsxs)("div",{className:"space-y-2 space-je-2",children:[(0,je.jsx)(J,{htmlFor:"description",children:"Description"}),(0,je.jsx)(ta,{id:"description",value:s.description||"",onChange:R=>d({...s,description:R.target.value}),placeholder:"Enter deal description"})]}),(0,je.jsxs)("div",{className:"space-y-2 space-je-2",children:[(0,je.jsx)(J,{children:"Categories"}),(0,je.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(R=>(0,je.jsxs)("div",{className:"space-y-2",children:[(0,je.jsx)("h4",{className:"text-sm font-medium",children:R.charAt(0).toUpperCase()+R.slice(1)}),(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(U=>U.type===R).map(U=>{var at;return(0,je.jsxs)("div",{className:"flex items-center space-je-2",children:[(0,je.jsx)(lt,{id:U.id.toString(),checked:(at=s.categories)==null?void 0:at.includes(U.id),onCheckedChange:()=>g(U)}),(0,je.jsx)("label",{htmlFor:U.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:U.name})]},U.id)})})]},R))})]}),(0,je.jsxs)("div",{className:"space-y-2 space-je-2",children:[(0,je.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,je.jsx)(Ie,{id:"closureDate",type:"date",value:s.closureDate||"",onChange:R=>d({...s,closureDate:R.target.value})}),p.closureDate&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,je.jsx)(k,{type:"submit",className:"w-full",children:o?"Update Deal":"Add Deal"})]}),(0,je.jsx)(Je,{open:u,onOpenChange:c,children:(0,je.jsxs)(Ge,{children:[(0,je.jsx)(st,{children:(0,je.jsx)(nt,{children:"Add New Customer"})}),(0,je.jsx)(Ds,{onSubmit:y})]})})]})}function Is({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:i,calculateColumnValue:l,calculateWeightedValue:s,addNewDeal:d,onAddCustomer:u}){let[c,p]=(0,Fr.useState)(!1);return(0,je.jsxs)("div",{className:"flex flex-col w-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)(Kr,{asChild:!0,children:(0,je.jsxs)(k,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,je.jsx)(gn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,je.jsxs)(Ge,{children:[(0,je.jsx)(st,{children:(0,je.jsx)(nt,{children:"Add New Deal"})}),(0,je.jsx)(Ms,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,je.jsx)(Io.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)(Io.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)(Ts,{deal:f,customer:f.customer,categories:o,onClick:()=>i(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",s(t,e).toLocaleString()]})]})]})]})}var Em=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Bm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){var p;let[i,l]=(0,Fr.useState)(null),s=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,y)=>g+(y.value||0)*h[f],0)},c=(0,Fr.useCallback)(m=>{var Q;let{source:f,destination:h}=m;if(!h||f.droppableId===h.droppableId&&f.index===h.index)return;let g=f.droppableId,y=h.droppableId;console.log("Moving from ",g,"to",y);let L=[...(Q=e.deals)!=null?Q:[]],[H]=L.splice(f.index,1);H.status=y,L.splice(h.index,0,H),a(H)},[a]);return(0,je.jsx)(Io.DragDropContext,{onDragEnd:c,children:(0,je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,je.jsx)("div",{className:"flex space-je-4 pb-4",children:Em.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{var h,g;let f=s(m);return(0,je.jsx)(Is,{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)})}),i&&(0,je.jsx)(ks,{deal:i,users:e.users,customer:i.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:m=>r(i.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:Ll(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:zl})}),(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)(Ne,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,je.jsx)("div",{children:(0,je.jsxs)(Ne,{href:e,className:n(zl,"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)(so.FaArrowRight,{})})]})})]})]})]})}var rm=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)(wr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Gl=v(require("clsx")),Vl=v(require("next/image")),om=e=>{let{loading:t,priority:a,className:r}=e;return(0,$l.jsx)(Vl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Gl.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 im={plural:"Docs",singular:"Doc"},sm={posts:{plural:"Posts",singular:"Post"}},nm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:l}=e,s=(o?o-1:1)*(i||1)+1;l&&s>l&&(s=0);let d=(o||1)*(i||1);l&&d>l&&(d=l);let{plural:u,singular:c}=r||sm[a||""]||im||{};return(0,je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced je results.",typeof l!="undefined"&&l>0&&`Showing ${s}${s>0?` - ${d}`:""} of ${l} ${l>1?u:c}`]})};var as=v(require("react")),rs=({className:e,...t})=>(0,je.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex je-full justify-center",e),role:"navigation",...t});rs.displayName="Pagination";var os=as.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));os.displayName="PaginationContent";var Ht=as.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 is=({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)(gn.ChevronLeft,{className:"h-4 je-4"}),(0,je.jsx)("span",{children:"Previous"})]});is.displayName="PaginationPrevious";var ss=({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)(gn.ChevronRight,{className:"h-4 je-4"})]});ss.displayName="PaginationNext";var fo=({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)(gn.MoreHorizontal,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More pages"})]});fo.displayName="PaginationEllipsis";var lm=e=>{let t=(0,Cl.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,l=r>1,s=r-1>1,d=r+1<o;return(0,je.jsx)("div",{className:n("my-12",a),children:(0,je.jsx)(rs,{children:(0,je.jsxs)(os,{children:[(0,je.jsx)(Ht,{children:(0,je.jsx)(is,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,je.jsx)(Ht,{children:(0,je.jsx)(fo,{})}),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})}),i&&(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)(fo,{})}),(0,je.jsx)(Ht,{children:(0,je.jsx)(ss,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var ns=v(require("clsx"));function cm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:l,loading:s=!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)(ye,{children:s?(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})]})})})}),s&&(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&&!s&&e.map((m,f)=>(0,je.jsx)(dm,{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&&!s&&t.map(m=>(0,je.jsx)(ye,{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 dm({subNav:e,pathName:t,Link:a}){var i,l;let r=e,o=!1;return r.links&&r.links.map(s=>{s.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)(ye,{children:[(0,je.jsx)(Ke,{asChild:!0,tooltip:r.label,className:(0,ns.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})]})}),(i=r.links)!=null&&i.length?(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(_t,{asChild:!0,children:(0,je.jsxs)(ir,{className:"data-[state=open]:rotate-90",children:[(0,je.jsx)(gn.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(s=>(0,je.jsx)(Wt,{children:(0,je.jsx)(Xt,{asChild:!0,className:(0,ns.default)(s.url===t&&"font-bold text-accent"),children:(0,je.jsx)(a,{href:s.url,children:(0,je.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},r.label)})})})}var jl=v(require("clsx"));var mm=()=>(0,je.jsx)(Ee,{iconName:"github",size:"10x"});function pm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:l,onPrintDocument:s,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)(ye,{children:(0,je.jsxs)(Ke,{onClick:i,children:[(0,je.jsx)(gn.FilePlus,{})," ",(0,je.jsx)("span",{children:"Add Document"})]})}),d&&(0,je.jsx)(ye,{children:(0,je.jsx)(Ke,{onClick:d,tooltip:"Open in GitHub",children:(0,je.jsx)(mm,{})})})]}),(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(ye,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:()=>l(),variant:o?"outline":"default",className:(0,jl.default)(o&&"text-accent"),children:[(0,je.jsx)(gn.Edit,{})," ",(0,je.jsx)("span",{children:"Edit"})]})}),(0,je.jsx)(ye,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:s,children:[(0,je.jsx)(gn.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)(gn.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)(ye,{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)(ye,{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)(gn.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)(ye,{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)(gn.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)(gn.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)(ye,{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 Kl=v(require("next/image"));function um({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)(gn.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)(Kl.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 ql=v(require("next/link"));var gm=({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)(xe,{children:(0,je.jsx)("nav",{className:"flex flex-col space-je-2",children:e.map((a,r)=>(0,je.jsxs)(ql.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)(gn.ExternalLink,{className:"ml-1 h-3 je-3"})]},r))})})]});var ls=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 fm({pages:e}){let t=(0,Cl.useSearchParams)(),a=(0,Cl.usePathname)(),{replace:r}=(0,Cl.useRouter)(),{totalPages:o,page:i}=e,[l,s]=(0,Fr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&l.start>1?s(m=>({start:m.start-1,end:m.end-1})):p==="right"&&l.end<o&&s(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(ls,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,je.jsx)(so.FaArrowLeft,{})})}),c.map((p,m)=>(0,je.jsx)("li",{children:(0,je.jsx)("a",{className:n(ls,p===i?"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(ls,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,je.jsx)(so.FaArrowRight,{})})})]})})}var nv=n("transition-colors duration-400 hover:text-primary ease-in-out");function bm({title:e,links:t}){let a=(0,Cl.useSearchParams)(),r=(0,Cl.usePathname)(),{replace:o}=(0,Cl.useRouter)();function i(l){let s=new URLSearchParams(a);l?s.set("category",l):s.delete("category"),o(`${r}?${s.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)(xe,{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,s)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:Fr-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(l.href)},children:[l.label,(0,je.jsx)(gn.ExternalLink,{className:"ml-1 h-3 je-3"})]},s))})})})]})}function vm({types:e}){let[t,a]=(0,Fr.useState)(e&&e[0].href),r=(0,Cl.useSearchParams)(),o=(0,Cl.usePathname)(),{replace:i}=(0,Cl.useRouter)();function l(s){let d=new URLSearchParams(r);s?d.set("type",s):d.delete("type"),a(s),i(`${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((s,d)=>(0,je.jsx)(k,{variant:s.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",s.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(s.href),children:s.label},d))})}var tc=v(require("next/image"));var ds=({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},i)=>(0,je.jsx)("li",{children:(0,je.jsx)(ft,{...o})},i))})]})}),(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)(tc.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 ms=v(require("next/image"));var hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,je.jsx)(ms.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:i||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(ms.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ps=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 Fr-10",children:[t&&(0,je.jsx)(hm,{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 us=({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 ac=v(require("react")),rc=v(require("next/image"));var ym=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=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:i}),(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((s,d)=>(0,je.jsxs)(ac.default.Fragment,{children:[s.name,d<r.length-2&&", ",d===r.length-2&&(r.length>2?", and ":" and ")]},s.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:Al(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((s,d)=>typeof s=="object"&&s!==null&&(0,je.jsx)(Qe,{className:"px-3 py-1 mx-1",children:s.title||"Untitled category"},s.id||d))})]})]})]})}),(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-full",children:[(0,je.jsx)(rc.default,{className:"object-cover",alt:`Cover image for ${i}`,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 ho=require("@heroicons/react/20/solid");var oc=v(require("next/image"));function gs({title:e,breadcrumbItems:t,image:a}){return(0,je.jsxs)("section",{className:"-je-10 relative flex min-h-[250px] Fr-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 je-0",children:a&&(0,je.jsx)(oc.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:Fr-[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)(fs,{breadcrumbItems:t})]})})]})}var xm={highImpact:ds,lowImpact:us,mediumImpact:ps,sectionHero:gs},Nm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=xm[t];return a?(0,je.jsx)(a,{...e}):null};function fs({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)(ho.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)(ho.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"),No=require("@heroicons/react/24/outline");var wm=({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)(ho.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)(ic,{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)(ic,{icon:o.icon,className:"h-5 je-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),ic=({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%"}})})},yo=wm;var xo=["light","dark","green"];function Cm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Fr.useState)(!1),[i,l]=(0,Fr.useState)(!1),[s,d]=(0,Fr.useState)("light"),u=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,m]=(0,Fr.useState)(`${u}.${c}`),f=g=>{xo.includes(g)?m(g==="light"?`${u}.${c}`:`${u}-${g}.${c}`):m(`${u}.${c}`)};(0,Fr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let h=()=>{let g=xo[(xo.indexOf(s)+1)%xo.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)(No.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)(yo,{...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:s==="dark"?(0,je.jsx)(ho.SunIcon,{className:"h-6 je-6"}):s==="green"?(0,je.jsx)(ho.MoonIcon,{className:"h-6 je-6"}):(0,je.jsx)(ho.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)(No.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)(Pm,{...g},g.name))})})})]})]})]})}function Pm({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 dc=v(require("next/image"));var bs=v(require("next/image"));function oa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,je.jsxs)(Ne,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,je.jsx)(bs.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)(bs.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 nc=require("next-themes");function Sr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Fr.useState)(!1),[l,s]=(0,Fr.useState)(""),d=["light","dark"],{theme:u,setTheme:c}=(0,nc.useTheme)();(0,Fr.useEffect)(()=>{s(u||"dark")},[u]);let p=()=>{let m=d[(d.indexOf(l)+1)%d.length];s(m),c(m)};return(0,Fr.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!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)(yo,{...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)(gn.Sun,{className:"absolute h-6 je-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(gn.Moon,{className:"absoulte h-6 je-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var vs=["light","dark"];function kr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Fr.useState)(!1),{theme:l,setTheme:s}=(0,nc.useTheme)(),[d,u]=(0,Fr.useState)(!1),[c,p]=(0,Fr.useState)("light");(0,Fr.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Fr.useEffect)(()=>{p(l||"dark")},[l]);let m=()=>{let f=vs[(vs.indexOf(c)+1)%vs.length];p(f),s(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)(No.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)(gn.Sun,{className:"absolute h-4 je-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(gn.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)(No.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)(Rm,{...f},f.name))})})})]})]})]})})}function Rm({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 Sm({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[l,s]=(0,Fr.useState)(!1),[d,u]=(0,Fr.useState)(!1),c=()=>{let m=document.getElementById("next-section");m&&m.scrollIntoView({behavior:"smooth"})};return(0,Fr.useEffect)(()=>{let m=()=>{window.scrollY>100?s(!0):s(!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)(gn.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)(Sr,{isMenuOpen:l||d,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(kr,{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)(dc.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 Fr-auto mb-12",children:o&&o}),(0,je.jsx)("div",{className:"text-3xl mb-8 max-je-2xl",children:i&&i})]}),(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)(gn.ChevronDown,{size:64})})})]})]})}var mc=v(require("next/image"));var km=n("text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 block px-4"),hs=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),ys=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"),xs=n("flex items-center gap-5"),So=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Tm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:l,columnThree:s,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)(Ne,{"aria-label":u.href,className:km,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:hs,children:i.title}),i.links&&i.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2",children:i.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)(so.FaChevronRight,{})}),(0,je.jsx)(Ne,{href:u.href,openNewTab:u.openNewTab,className:So,children:u.label})]},u.label))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,je.jsx)("h3",{className:hs,children:l.title}),(0,je.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,je.jsxs)("li",{className:xs,children:[(0,je.jsx)("span",{className:ys,children:(0,je.jsx)(so.FaPaperPlane,{})}),(0,je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,je.jsxs)("li",{className:xs,children:[(0,je.jsx)("span",{className:ys,children:(0,je.jsx)(so.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:So,children:u},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,je.jsxs)("li",{className:xs,children:[(0,je.jsx)("span",{className:ys,children:(0,je.jsx)(so.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:So,children:u},c))})]})]})]}),s&&(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,je.jsx)("h3",{className:hs,children:s.title}),s.blogs&&s.blogs.length>0&&(0,je.jsx)("div",{className:"grid gap-6",children:s.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)(mc.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)(so.FaCalendarDays,{})}),(0,je.jsx)("span",{children:El(u.date)})]}),(0,je.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,je.jsx)(Ne,{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)(Ne,{"aria-label":`Go to page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:So,children:u.label})},u.label))})})]})})})]})}function Dm({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)(Sr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(kr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Mm({children:e,...t}){return(0,je.jsx)(nc.ThemeProvider,{...t,children:e})}var Sa=require("sonner");function Ns({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Fr.useState)([]),i=(0,Cl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},s=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),i.refresh()):Sa.toast.error(`Error: ${c.message}`),o([])},u=async()=>{let c=await a(r);c.success?(Sa.toast.success(c.message),i.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:()=>s(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 ws=require("date-fns"),Im=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,$.jsx)("div",{className:"flex space-x-2",children:e.map((o,i)=>(0,$.jsx)(k,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[i],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function Ps({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Fr.useState)(new Date),[o,i]=(0,Fr.useState)(new Date),[l,s]=(0,Fr.useState)("Full Day"),[d,u]=(0,Fr.useState)(!1),c=(0,Cl.useRouter)();(0,Fr.useEffect)(()=>{u(a!==o||!a||!o),d&&s("Full Day")},[a,o]);let p=f=>{s(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||Am)(g);x.success?(Sa.toast.success(x.message),r(void 0),i(void 0),s("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)(gn.CalendarIcon,{className:"mr-2 h-4 je-4"}),a?(0,ws.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)&&i(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)(gn.CalendarIcon,{className:"mr-2 h-4 je-4"}),o?(0,ws.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:i,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-je-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Im,{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 Am=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function vc(...e){return e.filter(Boolean).join(" ")}function Rs({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{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: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)(gn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:s,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)(gn.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:vc(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:vc(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 Ss({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Fr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,p)=>{let m=new Date(e.getFullYear(),e.getMonth(),p-i+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)}}),s=()=>{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: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)(gn.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)(gn.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:"on"})]}),(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:"rn"})]})]}),(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 ia=require("lucide-react");function yc(...e){return e.filter(Boolean).join(" ")}function Lm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:l,rejectLeave:s}){let[d,u]=(0,Fr.useState)("Calendar View"),c=(0,Cl.useRouter)(),p=!1,m=(0,ws.parseISO)(a),f=async g=>{let x=(0,ws.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:ia.Grid,current:d==="Grid View"},{name:"Calendar View",icon:ia.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:ia.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:ia.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)(gn.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:yc(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:yc(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)(Rs,{currentDate:m,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,je.jsx)(Ss,{currentDate:m,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,je.jsx)(Ps,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>i?i(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,je.jsx)(Ns,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>s?s(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function ks({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:i,onAddComment:l}){var Ie,gt,S,H,at;let[s,d]=(0,Fr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,c]=(0,Fr.useState)(""),[p,m]=(0,Fr.useState)(!1),[f,h]=(0,Fr.useState)(null);(0,Fr.useEffect)(()=>{m(JSON.stringify(e)!==JSON.stringify(s))},[e,s]);let g=async()=>{try{let N=await i(s);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=(s.categories||[]).includes(N)?(s.categories||[]).filter(U=>U!==N):[...s.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"}},ve=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)(st,{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)(gn.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:s.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=s.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=s==null?void 0:s.assignee)==null?void 0:gt.id)==null?void 0:S.toString())||"",onValueChange:N=>x("assignee",ve(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)(gn.UserIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:s.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=s.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)(gn.CalendarIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:s.closureDate?new Date(s.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:s.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:s.description})]})}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 Fr-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:s.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:s.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:(s.categories||[]).some(Mr=>Mr.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:s.categories&&s.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 Fr-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:s.comments&&s.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)(gn.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(s.updatedAt||"").toLocaleString()]})]})]})]})})}function Ts({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(i=>{var l;return i.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(i.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)(xe,{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)(gn.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)(gn.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 Io=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ds({onSubmit:e}){var o;let[t,a]=(0,Fr.useState)({name:"",intro:"",active:!0});return(0,je.jsxs)("form",{onSubmit:i=>{i.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:i=>a({...t,name:i.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:i=>a({...t,intro:i.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:i=>a({...t,active:i})}),(0,je.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:"Add Customer"})]})}function Ms({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:i,onClose:l}){var Q,ve,Ie,gt;let[s,d]=(0,Fr.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,Fr.useState)(!1),[p,m]=(0,Fr.useState)({});(0,Fr.useEffect)(()=>{o&&d(o)},[o]);let f=()=>{let S={};return s.customer||(S.customer="Customer is required"),s.value||(S.value="Value is required"),s.assignee||(S.assignee="Assignee is required"),s.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({...s});H.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):m(H.errors||{})}}catch{m({submit:"je 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({...s,customer:S});try{let H=await i(S);H.success?c(!1):m(H.errors||{})}catch{m({submit:"je 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:(ve=(Q=s.customer)==null?void 0:Q.id)==null?void 0:ve.toString(),onValueChange:S=>d({...s,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)(gn.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:s.value||"",onChange:S=>d({...s,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=s.assignee)==null?void 0:Ie.id)==null?void 0:gt.toString(),onValueChange:S=>d({...s,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:s.description||"",onChange:S=>d({...s,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=s.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:s.closureDate||"",onChange:S=>d({...s,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)(st,{children:(0,je.jsx)(nt,{children:"Add New Customer"})}),(0,je.jsx)(Ds,{onSubmit:x})]})})]})}function Is({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:i,calculateColumnValue:l,calculateWeightedValue:s,addNewDeal:d,onAddCustomer:u}){let[c,p]=(0,Fr.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)(Kr,{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)(gn.PlusCircle,{className:"mr-2 h-4 je-4"}),"Add New Deal"]})}),(0,je.jsxs)(Ve,{children:[(0,je.jsx)(st,{children:(0,je.jsx)(nt,{children:"Add New Deal"})}),(0,je.jsx)(Ms,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,je.jsx)(Io.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)(Io.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)(Ts,{deal:f,customer:f.customer,categories:o,onClick:()=>i(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",s(t,e).toLocaleString()]})]})]})]})}var Em=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Bm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){var p;let[i,l]=(0,Fr.useState)(null),s=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,Fr.useCallback)(m=>{var Q,ve;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=[...(ve=e.deals)!=null?ve:[]];A&&(A.status=x,a(A))},[a]);return(0,je.jsx)(Io.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:Em.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{var h,g;let f=s(m);return(0,je.jsx)(Is,{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)})}),i&&(0,je.jsx)(ks,{deal:i,users:e.users,customer:i.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:m=>r(i.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});