cortex-react-components 1.41.2 → 1.42.1

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 (190) hide show
  1. package/dist/{chunk-HTO3HNQS.mjs → chunk-3LTZNKP5.mjs} +1 -1
  2. package/dist/{chunk-TJ6J3OQZ.mjs → chunk-3QFP3LQI.mjs} +1 -1
  3. package/dist/{chunk-62YZZSOX.mjs → chunk-45BPMYAF.mjs} +1 -1
  4. package/dist/{chunk-3PC5BLK7.mjs → chunk-7XSAYKJ7.mjs} +1 -1
  5. package/dist/chunk-A42UP2GC.mjs +1 -0
  6. package/dist/{chunk-CNCPREWR.mjs → chunk-BR4G7CDZ.mjs} +1 -1
  7. package/dist/{chunk-JM6ZXLBG.mjs → chunk-CEO36IW4.mjs} +1 -1
  8. package/dist/chunk-CTX7UBDG.mjs +1 -0
  9. package/dist/{chunk-IS5OUEJJ.mjs → chunk-DEYWNKIG.mjs} +1 -1
  10. package/dist/{chunk-UDVFDGKM.mjs → chunk-EXWIE6C5.mjs} +1 -1
  11. package/dist/{chunk-L44KSGUG.mjs → chunk-FF6H5I4V.mjs} +1 -1
  12. package/dist/{chunk-SJWN6J3F.mjs → chunk-FOQE6NML.mjs} +1 -1
  13. package/dist/{chunk-CTCV3L4B.mjs → chunk-FVQMTB4H.mjs} +1 -1
  14. package/dist/{chunk-DESYC5BB.mjs → chunk-GHBJK554.mjs} +1 -1
  15. package/dist/{chunk-HAFP6IMI.mjs → chunk-H77N4SZK.mjs} +1 -1
  16. package/dist/{chunk-LVUWQ35N.mjs → chunk-HGMH5NAQ.mjs} +1 -1
  17. package/dist/chunk-HIT3PDJA.mjs +1 -0
  18. package/dist/{chunk-QMWYQ3FS.mjs → chunk-HQFNGDDO.mjs} +1 -1
  19. package/dist/chunk-K3N5EH4U.mjs +1 -0
  20. package/dist/{chunk-VP7B5S7N.mjs → chunk-L2PQKIU4.mjs} +1 -1
  21. package/dist/{chunk-ET5WFKM7.mjs → chunk-MW2V3YCD.mjs} +1 -1
  22. package/dist/{chunk-373YJLIH.mjs → chunk-NUJCJZH5.mjs} +1 -1
  23. package/dist/chunk-RCD6MJF5.mjs +4 -0
  24. package/dist/{chunk-GOMLTG5W.mjs → chunk-RZTXT4UD.mjs} +1 -1
  25. package/dist/{chunk-PARYRNXP.mjs → chunk-SQUOZ47I.mjs} +1 -1
  26. package/dist/chunk-TEOR3ZQR.mjs +1 -0
  27. package/dist/{chunk-FBFDZOP6.mjs → chunk-VA3AGYYA.mjs} +1 -1
  28. package/dist/{chunk-HRZRAS6Z.mjs → chunk-WONJ5NTQ.mjs} +1 -1
  29. package/dist/{chunk-JYZW3G3N.mjs → chunk-X3AIZJNU.mjs} +1 -1
  30. package/dist/{chunk-F2YN7SED.mjs → chunk-YOFO7YSO.mjs} +1 -1
  31. package/dist/components/Blocks/Banner.js +1 -1
  32. package/dist/components/Blocks/Banner.mjs +1 -1
  33. package/dist/components/Blocks/CallToAction.js +1 -1
  34. package/dist/components/Blocks/CallToAction.mjs +1 -1
  35. package/dist/components/Blocks/Content.js +1 -1
  36. package/dist/components/Blocks/Content.mjs +1 -1
  37. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  38. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  39. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  40. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  41. package/dist/components/Blocks/RelatedPosts.js +1 -1
  42. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  43. package/dist/components/Blocks/RenderBlocks.js +1 -1
  44. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  45. package/dist/components/Blocks/index.js +1 -1
  46. package/dist/components/Blocks/index.mjs +1 -1
  47. package/dist/components/CRM/DealCard.d.ts +3 -3
  48. package/dist/components/CRM/DealCard.js +1 -1
  49. package/dist/components/CRM/DealCard.mjs +1 -1
  50. package/dist/components/CRM/DealCard.stories.js +1 -1
  51. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  52. package/dist/components/CRM/DealDetails.d.ts +6 -6
  53. package/dist/components/CRM/DealDetails.js +1 -1
  54. package/dist/components/CRM/DealDetails.mjs +1 -1
  55. package/dist/components/CRM/DealDetails.stories.js +4 -0
  56. package/dist/components/CRM/DealDetails.stories.mjs +1 -0
  57. package/dist/components/CRM/KanbanBoard.d.ts +8 -7
  58. package/dist/components/CRM/KanbanBoard.js +1 -1
  59. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  60. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  61. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  62. package/dist/components/CRM/KanbanColumn.d.ts +9 -9
  63. package/dist/components/CRM/KanbanColumn.js +1 -1
  64. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  65. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  66. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  67. package/dist/components/CRM/NewCustomerForm.d.ts +3 -3
  68. package/dist/components/CRM/NewCustomerForm.js +1 -1
  69. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  70. package/dist/components/CRM/NewCustomerForm.stories.js +1 -1
  71. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  72. package/dist/components/CRM/NewDealForm.d.ts +8 -7
  73. package/dist/components/CRM/NewDealForm.js +1 -1
  74. package/dist/components/CRM/NewDealForm.mjs +1 -1
  75. package/dist/components/CRM/NewDealForm.stories.js +1 -1
  76. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  77. package/dist/components/CRM/actions.d.ts +2 -2
  78. package/dist/components/CRM/actions.js +1 -1
  79. package/dist/components/CRM/actions.mjs +3 -1
  80. package/dist/components/CRM/index.d.ts +7 -0
  81. package/dist/components/CRM/index.js +5 -0
  82. package/dist/components/CRM/index.mjs +1 -0
  83. package/dist/components/CRM/mockData.d.ts +6 -4
  84. package/dist/components/CRM/mockData.js +1 -1
  85. package/dist/components/CRM/mockData.mjs +1 -1
  86. package/dist/components/CRM/types.d.ts +9 -8
  87. package/dist/components/HeaderFooter/Header.mjs +1 -1
  88. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  89. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  90. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  91. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  92. package/dist/components/HeaderFooter/index.mjs +1 -1
  93. package/dist/components/Heros/HighImpact/index.js +1 -1
  94. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  95. package/dist/components/Heros/LowImpact/index.js +1 -1
  96. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  97. package/dist/components/Heros/MediumImpact/index.js +1 -1
  98. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  99. package/dist/components/Heros/PostHero/index.mjs +1 -1
  100. package/dist/components/Heros/RenderHero.js +1 -1
  101. package/dist/components/Heros/RenderHero.mjs +1 -1
  102. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  103. package/dist/components/Heros/index.js +1 -1
  104. package/dist/components/Heros/index.mjs +1 -1
  105. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  106. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  107. package/dist/components/Holidays/index.mjs +1 -1
  108. package/dist/components/Layouts/BlogList.js +1 -1
  109. package/dist/components/Layouts/BlogList.mjs +1 -1
  110. package/dist/components/Layouts/BlogList.stories.js +3 -3
  111. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  112. package/dist/components/Layouts/SlideShow.js +1 -1
  113. package/dist/components/Layouts/SlideShow.mjs +1 -1
  114. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  115. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  116. package/dist/components/Layouts/index.js +1 -1
  117. package/dist/components/Layouts/index.mjs +1 -1
  118. package/dist/components/Payload/RichText/index.js +1 -1
  119. package/dist/components/Payload/RichText/index.mjs +1 -1
  120. package/dist/components/Payload/RichText/serialize.js +1 -1
  121. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  122. package/dist/components/Payload/RichText.stories.js +1 -1
  123. package/dist/components/Payload/RichText.stories.mjs +1 -1
  124. package/dist/components/Payload/index.js +1 -1
  125. package/dist/components/Payload/index.mjs +1 -1
  126. package/dist/components/index.d.ts +1 -0
  127. package/dist/components/index.js +6 -6
  128. package/dist/components/index.mjs +1 -1
  129. package/dist/components/ui/index.mjs +1 -1
  130. package/dist/globals.css +1 -1
  131. package/dist/index.js +6 -6
  132. package/dist/index.mjs +1 -1
  133. package/dist/metafile-cjs.json +1 -1
  134. package/dist/metafile-esm.json +1 -1
  135. package/dist/pages/Blog.js +1 -1
  136. package/dist/pages/Blog.mjs +1 -1
  137. package/dist/pages/Blog.stories.js +1 -1
  138. package/dist/pages/Blog.stories.mjs +1 -1
  139. package/dist/pages/Documentation.mjs +1 -1
  140. package/dist/pages/Documentation.stories.mjs +1 -1
  141. package/dist/pages/IndexPage.mjs +1 -1
  142. package/dist/pages/IndexPage.stories.mjs +1 -1
  143. package/dist/pages/Intranet.mjs +1 -1
  144. package/dist/pages/Intranet.stories.mjs +1 -1
  145. package/dist/pages/LandingPage.mjs +1 -1
  146. package/dist/pages/LandingPage.stories.mjs +1 -1
  147. package/dist/pages/Page.js +1 -1
  148. package/dist/pages/Page.mjs +1 -1
  149. package/dist/pages/Page.stories.js +1 -1
  150. package/dist/pages/Page.stories.mjs +1 -1
  151. package/dist/pages/Publish.js +1 -1
  152. package/dist/pages/Publish.mjs +1 -1
  153. package/dist/pages/Publish.stories.js +1 -1
  154. package/dist/pages/Publish.stories.mjs +1 -1
  155. package/dist/pages/Website.js +1 -1
  156. package/dist/pages/Website.mjs +1 -1
  157. package/dist/pages/Website.stories.js +1 -1
  158. package/dist/pages/Website.stories.mjs +1 -1
  159. package/dist/sections/AboutSection.js +1 -1
  160. package/dist/sections/AboutSection.mjs +1 -1
  161. package/dist/sections/AboutSection.stories.js +1 -1
  162. package/dist/sections/AboutSection.stories.mjs +1 -1
  163. package/dist/sections/BlogDetail.js +1 -1
  164. package/dist/sections/BlogDetail.mjs +1 -1
  165. package/dist/sections/BlogDetail.stories.js +1 -1
  166. package/dist/sections/BlogDetail.stories.mjs +1 -1
  167. package/dist/sections/ContactSection.js +1 -1
  168. package/dist/sections/ContactSection.mjs +1 -1
  169. package/dist/sections/ContactSection.stories.js +1 -1
  170. package/dist/sections/ContactSection.stories.mjs +1 -1
  171. package/dist/sections/PricingSection.js +1 -1
  172. package/dist/sections/PricingSection.mjs +1 -1
  173. package/dist/sections/PricingSection.stories.js +1 -1
  174. package/dist/sections/PricingSection.stories.mjs +1 -1
  175. package/dist/sections/index.js +1 -1
  176. package/dist/sections/index.mjs +1 -1
  177. package/package.json +1 -1
  178. package/dist/chunk-4RKYG7LK.mjs +0 -1
  179. package/dist/chunk-FTVQOPU3.mjs +0 -4
  180. package/dist/chunk-I4LMCHGL.mjs +0 -1
  181. package/dist/chunk-IE5X3XS7.mjs +0 -1
  182. package/dist/chunk-J7TRHWRM.mjs +0 -4
  183. package/dist/chunk-UG6FK323.mjs +0 -1
  184. package/dist/chunk-V4CUPKLW.mjs +0 -4
  185. package/dist/chunk-Y6QUDCQM.mjs +0 -1
  186. package/dist/components/CRM/CRMPage.d.ts +0 -1
  187. package/dist/components/CRM/CRMPage.js +0 -7
  188. package/dist/components/CRM/CRMPage.mjs +0 -2
  189. package/dist/components/CRM/CRMPage.stories.js +0 -196
  190. package/dist/components/CRM/CRMPage.stories.mjs +0 -1
@@ -3,16 +3,16 @@
3
3
  "use client"
4
4
  'use strict'
5
5
 
6
- "use strict";var tc=Object.create;var cr=Object.defineProperty;var ac=Object.getOwnPropertyDescriptor;var rc=Object.getOwnPropertyNames;var oc=Object.getPrototypeOf,ic=Object.prototype.hasOwnProperty;var sc=(e,t)=>{for(var a in t)cr(e,a,{get:t[a],enumerable:!0})},ds=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rc(t))!ic.call(e,o)&&o!==a&&cr(e,o,{get:()=>t[o],enumerable:!(r=ac(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?tc(oc(e)):{},ds(t||!e||!e.__esModule?cr(a,"default",{value:e,enumerable:!0}):a,e)),nc=e=>ds(cr({},"__esModule",{value:!0}),e);var im={};sc(im,{Alert:()=>pi,AlertDescription:()=>fi,AlertTitle:()=>ui,ApproveLeave:()=>Qi,Avatar:()=>it,AvatarFallback:()=>nt,AvatarImage:()=>st,Badge:()=>kt,BannerBlock:()=>yi,BlogCard:()=>yl,BlogList:()=>kd,BrandLogo:()=>It,Breadcrumb:()=>uo,BreadcrumbEllipsis:()=>yo,BreadcrumbItem:()=>go,BreadcrumbLink:()=>bo,BreadcrumbList:()=>fo,BreadcrumbPage:()=>vo,BreadcrumbSeparator:()=>ho,Breadcrumbs:()=>Xi,Button:()=>H,CMSLink:()=>Ue,Calendar:()=>Xa,CalendarView:()=>rs,CallToActionBlock:()=>Ka,Card:()=>Ja,Categories:()=>Od,Checkbox:()=>Ua,CodeBlock:()=>Pi,Collapsible:()=>et,CollapsibleContent:()=>ht,CollapsibleTrigger:()=>vt,CollectionArchive:()=>Td,Command:()=>kr,CommandDialog:()=>mn,CommandEmpty:()=>ni,CommandGroup:()=>li,CommandInput:()=>ii,CommandItem:()=>di,CommandList:()=>si,CommandSeparator:()=>ci,CommandShortcut:()=>mi,Container:()=>Yt,ContentBlock:()=>Di,CopyButton:()=>wi,CustomLink:()=>le,CustomerCard:()=>In,Dialog:()=>ma,DialogClose:()=>Rr,DialogContent:()=>Gt,DialogDescription:()=>oi,DialogFooter:()=>ri,DialogHeader:()=>$a,DialogOverlay:()=>Sr,DialogPortal:()=>ai,DialogTitle:()=>Va,DialogTrigger:()=>cn,DropdownMenu:()=>ws,DropdownMenuCheckboxItem:()=>Co,DropdownMenuContent:()=>No,DropdownMenuGroup:()=>Ps,DropdownMenuItem:()=>Po,DropdownMenuLabel:()=>So,DropdownMenuPortal:()=>Cs,DropdownMenuRadioGroup:()=>Ss,DropdownMenuRadioItem:()=>Ro,DropdownMenuSeparator:()=>ko,DropdownMenuShortcut:()=>To,DropdownMenuSub:()=>Rs,DropdownMenuSubContent:()=>wo,DropdownMenuSubTrigger:()=>xo,DropdownMenuTrigger:()=>Ns,DynamicIcon:()=>Le,EventCard:()=>An,FeatureCard:()=>Tn,FeatureGrid:()=>Gn,FeaturesBlock:()=>qa,Filter:()=>$d,Footer:()=>Zd,Header:()=>em,HeaderDesktop:()=>ar,HeaderMobile:()=>rr,HeadingImage:()=>Pd,HighImpactHero:()=>Oi,HolidayGrid:()=>as,HolidayTracker:()=>om,HoverCard:()=>on,HoverCardContent:()=>ti,HoverCardTrigger:()=>sn,Image:()=>zn,ImageBlock:()=>Ti,InfoTile:()=>fd,Input:()=>Ra,Insight:()=>ud,Label:()=>Ft,Logo:()=>Dd,LowImpactHero:()=>Wi,MOTD:()=>bd,Media:()=>pt,MediaBlock:()=>pa,MediumImpactHero:()=>Vi,NewsGrid:()=>cl,OrgChart:()=>yd,PageRange:()=>Ad,Pagination:()=>Gd,PayloadPagination:()=>Ld,Popover:()=>_a,PopoverAnchor:()=>Zs,PopoverContent:()=>da,PopoverTrigger:()=>Ga,PostHero:()=>Wd,PricingCard:()=>pd,ProjectCard:()=>Hn,ProjectTeam:()=>Fd,ProposalSummary:()=>xd,RelatedContent:()=>_d,RelatedPosts:()=>Rd,RenderBlocks:()=>Mi,RenderHero:()=>Xd,RequestLeave:()=>ts,RichText:()=>Q,ScrollArea:()=>Qo,ScrollBar:()=>Cr,SectionHero:()=>Ui,Select:()=>td,SelectContent:()=>hn,SelectGroup:()=>ad,SelectItem:()=>xn,SelectLabel:()=>yn,SelectScrollDownButton:()=>vi,SelectScrollUpButton:()=>bi,SelectSeparator:()=>wn,SelectTrigger:()=>vn,SelectValue:()=>rd,Separator:()=>Sa,ServiceCard:()=>md,Sheet:()=>mr,SheetClose:()=>Es,SheetContent:()=>Ta,SheetDescription:()=>Eo,SheetFooter:()=>Ao,SheetHeader:()=>Io,SheetOverlay:()=>pr,SheetPortal:()=>Mo,SheetTitle:()=>Lo,SheetTrigger:()=>Ls,Sidebar:()=>Lt,SidebarContent:()=>xt,SidebarFooter:()=>Bt,SidebarGroup:()=>Me,SidebarGroupAction:()=>Oo,SidebarGroupContent:()=>_e,SidebarGroupLabel:()=>at,SidebarHeader:()=>Et,SidebarInput:()=>Go,SidebarInset:()=>_o,SidebarLeft:()=>Ed,SidebarMenu:()=>ye,SidebarMenuAction:()=>Ia,SidebarMenuBadge:()=>$o,SidebarMenuButton:()=>Ie,SidebarMenuItem:()=>se,SidebarMenuSkeleton:()=>Vo,SidebarMenuSub:()=>wt,SidebarMenuSubButton:()=>Pt,SidebarMenuSubItem:()=>Nt,SidebarProvider:()=>Ho,SidebarRail:()=>Fo,SidebarRight:()=>zd,SidebarSeparator:()=>Ma,SidebarTrigger:()=>zo,SimpleHeader:()=>Yd,Skeleton:()=>j,SlideShow:()=>sl,TextAndImages:()=>dl,Textarea:()=>Pn,ThemeProvider:()=>tm,Toast:()=>Ea,ToastAction:()=>Xo,ToastClose:()=>Ba,ToastDescription:()=>za,ToastProvider:()=>Nr,ToastTitle:()=>Ha,ToastViewport:()=>La,Toaster:()=>js,Toggle:()=>Yo,ToggleGroup:()=>Ko,ToggleGroupItem:()=>qo,Tooltip:()=>br,TooltipContent:()=>Da,TooltipProvider:()=>gr,TooltipTrigger:()=>vr,VideoHeader:()=>Jd,WhyUs:()=>wd,badgeVariants:()=>gi,buttonVariants:()=>yt,toggleVariants:()=>Fa,useIsMobile:()=>fr,useSidebar:()=>la,useToast:()=>wr});module.exports=nc(im);var oa=v(require("react")),dr=require("@radix-ui/react-icons"),xs=require("@radix-ui/react-slot");var ys=require("clsx");var po="-",lc=e=>{let t=dc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let l=n.split(po);return l[0]===""&&l.length!==1&&l.shift(),us(l,t)||cc(n)},getConflictingClassGroupIds:(n,l)=>{let d=a[n]||[];return l&&r[n]?[...d,...r[n]]:d}}},us=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?us(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(po);return(n=t.validators.find(({validator:l})=>l(i)))==null?void 0:n.classGroupId},ms=/^\[(.+)\]$/,cc=e=>{if(ms.test(e)){let t=ms.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},dc=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return pc(Object.entries(e.classGroups),a).forEach(([i,n])=>{mo(n,r,i,t)}),r},mo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:ps(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(mc(o)){mo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,n])=>{mo(n,ps(t,i),a,r)})})},ps=(e,t)=>{let a=e;return t.split(po).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},mc=e=>e.isThemeGetter,pc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,l])=>[t+n,l])):i);return[a,o]}):e,uc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return o(i,n),n},set(i,n){a.has(i)?a.set(i,n):o(i,n)}}},fs="!",fc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,n=l=>{let d=[],m=0,c=0,p;for(let w=0;w<l.length;w++){let L=l[w];if(m===0){if(L===o&&(r||l.slice(w,w+i)===t)){d.push(l.slice(c,w)),c=w+i;continue}if(L==="/"){p=w;continue}}L==="["?m++:L==="]"&&m--}let u=d.length===0?l:l.substring(c),g=u.startsWith(fs),P=g?u.substring(1):u,f=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:P,maybePostfixModifierPosition:f}};return a?l=>a({className:l,parseClassName:n}):n},gc=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},bc=e=>({cache:uc(e.cacheSize),parseClassName:fc(e),...lc(e)}),vc=/\s+/,hc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],n=e.trim().split(vc),l="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),P=!!g,f=r(P?u.substring(0,g):u);if(!f){if(!P){l=m+(l.length>0?" "+l:l);continue}if(f=r(u),!f){l=m+(l.length>0?" "+l:l);continue}P=!1}let w=gc(c).join(":"),L=p?w+fs:w,F=L+f;if(i.includes(F))continue;i.push(F);let ue=o(f,P);for(let Je=0;Je<ue.length;++Je){let ta=ue[Je];i.push(L+ta)}l=m+(l.length>0?" "+l:l)}return l};function yc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=gs(t))&&(r&&(r+=" "),r+=a);return r}var gs=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=gs(e[r]))&&(a&&(a+=" "),a+=t);return a};function xc(e,...t){let a,r,o,i=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=bc(m),r=a.cache.get,o=a.cache.set,i=l,l(d)}function l(d){let m=r(d);if(m)return m;let c=hc(d,a);return o(d,c),c}return function(){return i(yc.apply(null,arguments))}}var V=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},bs=/^\[(?:([a-De-]+):)?(.+)\]$/i,wc=/^\d+\/\d+$/,Nc=new Set(["px","full","screen"]),Pc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Cc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|De|i|De|min|max))|\De(calc|min|max|clamp)\(.+\)|^0$/,Rc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sc=/^(inset_)?-?((\d+)?\.?(\d+)[a-De]+|0)De-?((\d+)?\.?(\d+)[a-De]+|0)/,kc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ze=e=>aa(e)||Nc.has(e)||wc.test(e),gt=e=>ra(e,"length",Bc),aa=e=>!!e&&!Number.isNaN(Number(e)),co=e=>ra(e,"number",aa),Pa=e=>!!e&&Number.isInteger(Number(e)),Tc=e=>e.endsWith("%")&&aa(e.slice(0,-1)),C=e=>bs.test(e),bt=e=>Pc.test(e),Dc=new Set(["length","size","percentage"]),Mc=e=>ra(e,Dc,vs),Ic=e=>ra(e,"position",vs),Ac=new Set(["image","url"]),Lc=e=>ra(e,Ac,zc),Ec=e=>ra(e,"",Hc),Ca=()=>!0,ra=(e,t,a)=>{let r=bs.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},Bc=e=>Cc.test(e)&&!Rc.test(e),vs=()=>!1,Hc=e=>Sc.test(e),zc=e=>kc.test(e);var Fc=()=>{let e=V("colors"),t=V("spacing"),a=V("blur"),r=V("brightness"),o=V("borderColor"),i=V("borderRadius"),n=V("borderSpacing"),l=V("borderWidth"),d=V("contrast"),m=V("grayscale"),c=V("hueRotate"),p=V("invert"),u=V("gap"),g=V("gradientColorStops"),P=V("gradientColorStopPositions"),f=V("inset"),w=V("margin"),L=V("opacity"),F=V("padding"),ue=V("saturate"),Je=V("scale"),ta=V("sepia"),sr=V("skew"),os=V("space"),is=V("translate"),io=()=>["auto","contain","none"],so=()=>["auto","hidden","clip","visible","scroll"],no=()=>["auto",C,t],W=()=>[C,t],ss=()=>["",Ze,gt],nr=()=>["auto",aa,C],ns=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lr=()=>["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"],Na=()=>["","0",C],cs=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Qe=()=>[aa,C];return{cacheSize:500,separator:":",theme:{colors:[Ca],spacing:[Ze,gt],blur:["none","",bt,C],brightness:Qe(),borderColor:[e],borderRadius:["none","","full",bt,C],borderSpacing:W(),borderWidth:ss(),contrast:Qe(),grayscale:Na(),hueRotate:Qe(),invert:Na(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[Tc,gt],inset:no(),margin:no(),opacity:Qe(),padding:W(),saturate:Qe(),scale:Qe(),sepia:Na(),skew:Qe(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":cs()}],"break-before":[{"break-before":cs()}],"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:[...ns(),C]}],overflow:[{overflow:so()}],"overflow-De":[{"overflow-De":so()}],"overflow-De":[{"overflow-De":so()}],overscroll:[{overscroll:io()}],"overscroll-De":[{"overscroll-De":io()}],"overscroll-De":[{"overscroll-De":io()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-De":[{"inset-De":[f]}],"inset-De":[{"inset-De":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],De:[{De:["auto",Pa,C]}],basis:[{basis:no()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Na()}],shrink:[{shrink:Na()}],order:[{order:["first","last","none",Pa,C]}],"grid-cols":[{"grid-cols":[Ca]}],"col-start-end":[{col:["auto",{span:["full",Pa,C]},C]}],"col-start":[{"col-start":nr()}],"col-end":[{"col-end":nr()}],"grid-rows":[{"grid-rows":[Ca]}],"row-start-end":[{row:["auto",{span:[Pa,C]},C]}],"row-start":[{"row-start":nr()}],"row-end":[{"row-end":nr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[u]}],"gap-De":[{"gap-De":[u]}],"gap-De":[{"gap-De":[u]}],"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:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],De:[{De:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],De:[{De:[w]}],De:[{De:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-De":[{"space-De":[os]}],"space-De-reverse":["space-De-reverse"],"space-De":[{"space-De":[os]}],"space-De-reverse":["space-De-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-w":[{"min-w":[C,t,"min","max","fit"]}],"max-w":[{"max-w":[C,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],De:[{De:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-De":[{"min-De":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-De":[{"max-De":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,gt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",co]}],"font-family":[{font:[Ca]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",aa,co]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ze,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[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","no-underline"],"text-decoration-style":[{decoration:[...lr(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ze,gt]}],"underline-offset":[{"underline-offset":["auto",Ze,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ns(),Ic]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","De","De","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mc]}],"bg-image":[{bg:["none",{"gradient-to":["t","De","r","br","De","bl","l","tl"]},Lc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-De":[{"rounded-De":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-De":[{"rounded-De":[i]}],"rounded-$s":[{"rounded-$s":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-De":[{"rounded-De":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-De":[{"border-De":[l]}],"border-w-De":[{"border-De":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-De":[{"border-De":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...lr(),"hidden"]}],"divide-De":[{"divide-De":[l]}],"divide-De-reverse":["divide-De-reverse"],"divide-De":[{"divide-De":[l]}],"divide-De-reverse":["divide-De-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:lr()}],"border-color":[{border:[o]}],"border-color-De":[{"border-De":[o]}],"border-color-De":[{"border-De":[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-De":[{"border-De":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...lr()]}],"outline-offset":[{"outline-offset":[Ze,C]}],"outline-w":[{outline:[Ze,gt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ss()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[Ze,gt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,Ec]}],"shadow-color":[{shadow:[Ca]}],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",bt,C]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[ue]}],sepia:[{sepia:[ta]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[ue]}],"backdrop-sepia":[{"backdrop-sepia":[ta]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-De":[{"border-spacing-De":[n]}],"border-spacing-De":[{"border-spacing-De":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:Qe()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:Qe()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Je]}],"scale-De":[{"scale-De":[Je]}],"scale-De":[{"scale-De":[Je]}],rotate:[{rotate:[Pa,C]}],"translate-De":[{"translate-De":[is]}],"translate-De":[{"translate-De":[is]}],"skew-De":[{"skew-De":[sr]}],"skew-De":[{"skew-De":[sr]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","De","De",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-De":[{"scroll-De":W()}],"scroll-De":[{"scroll-De":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-De":[{"scroll-De":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","De","De","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-De":[{"touch-pan":["De","left","right"]}],"touch-De":[{"touch-pan":["De","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ze,gt,co]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-De","overflow-De"],overscroll:["overscroll-De","overscroll-De"],inset:["inset-De","inset-De","start","end","top","right","bottom","left"],"inset-De":["right","left"],"inset-De":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-De","gap-De"],p:["px","py","ps","De","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","De","De","mr","mb","ml"],mx:["mr","ml"],my:["De","mb"],size:["w","De"],"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-De","rounded-l","rounded-ss","rounded-se","rounded-De","rounded-$s","rounded-tl","rounded-De","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-$s"],"rounded-e":["rounded-se","rounded-De"],"rounded-t":["rounded-tl","rounded-De"],"rounded-r":["rounded-De","rounded-br"],"rounded-De":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-De","border-spacing-De"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-De","border-w-l"],"border-w-De":["border-w-r","border-w-l"],"border-w-De":["border-w-t","border-w-De"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-De","border-color-l"],"border-color-De":["border-color-r","border-color-l"],"border-color-De":["border-color-t","border-color-De"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-De","scroll-De","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-De","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-De","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-De","touch-De","touch-pz"],"touch-De":["touch"],"touch-De":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var hs=xc(Fc);function s(...e){return hs((0,ys.clsx)(e))}var De=require("react/jsx-runtime"),uo=oa.forwardRef(({...e},t)=>(0,De.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));uo.displayName="Breadcrumb";var fo=oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)("ol",{ref:a,className:s("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));fo.displayName="BreadcrumbList";var go=oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)("li",{ref:a,className:s("inline-flex items-center gap-1.5",e),...t}));go.displayName="BreadcrumbItem";var bo=oa.forwardRef(({asChild:e,className:t,...a},r)=>(0,De.jsx)(e?xs.Slot:"a",{ref:r,className:s("transition-colors hover:text-foreground",t),...a}));bo.displayName="BreadcrumbLink";var vo=oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:s("font-normal text-foreground",e),...t}));vo.displayName="BreadcrumbPage";var ho=({children:e,className:t,...a})=>(0,De.jsx)("li",{role:"presentation","aria-hidden":"true",className:s("[&>svg]:w-3.5 [&>svg]:De-3.5",t),...a,children:e!=null?e:(0,De.jsx)(dr.ChevronRightIcon,{})});ho.displayName="BreadcrumbSeparator";var yo=({className:e,...t})=>(0,De.jsxs)("span",{role:"presentation","aria-hidden":"true",className:s("flex De-9 w-9 items-center justify-center",e),...t,children:[(0,De.jsx)(dr.DotsHorizontalIcon,{className:"De-4 w-4"}),(0,De.jsx)("span",{className:"sr-only",children:"More"})]});yo.displayName="BreadcrumbElipssis";var ia=v(require("@radix-ui/react-collapsible")),et=ia.Root,vt=ia.CollapsibleTrigger,ht=ia.CollapsibleContent;var tt=v(require("react")),k=v(require("@radix-ui/react-dropdown-menu"));var ws=k.Root,Ns=k.Trigger,Ps=k.Group,Cs=k.Portal,Rs=k.Sub,Ss=k.RadioGroup,xo=tt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,De.jsxs)(k.SubTrigger,{ref:o,className:s("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,(0,De.jsx)(dr.ChevronRightIcon,{className:"ml-auto"})]}));xo.displayName=k.SubTrigger.displayName;var wo=tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(k.SubContent,{ref:a,className:s("De-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=k.SubContent.displayName;var No=tt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,De.jsx)(k.Portal,{children:(0,De.jsx)(k.Content,{ref:r,sideOffset:t,className:s("De-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})}));No.displayName=k.Content.displayName;var Po=tt.forwardRef(({className:e,inset:t,...a},r)=>(0,De.jsx)(k.Item,{ref:r,className:s("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Po.displayName=k.Item.displayName;var Co=tt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,De.jsxs)(k.CheckboxItem,{ref:o,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...r,children:[(0,De.jsx)("span",{className:"absolute left-2 flex De-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(k.ItemIndicator,{children:(0,De.jsx)(dr.CheckIcon,{className:"De-4 w-4"})})}),t]}));Co.displayName=k.CheckboxItem.displayName;var Ro=tt.forwardRef(({className:e,children:t,...a},r)=>(0,De.jsxs)(k.RadioItem,{ref:r,className:s("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,De.jsx)("span",{className:"absolute left-2 flex De-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(k.ItemIndicator,{children:(0,De.jsx)(dr.DotFilledIcon,{className:"De-4 w-4 fill-current"})})}),t]}));Ro.displayName=k.RadioItem.displayName;var So=tt.forwardRef(({className:e,inset:t,...a},r)=>(0,De.jsx)(k.Label,{ref:r,className:s("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));So.displayName=k.Label.displayName;var ko=tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(k.Separator,{ref:a,className:s("-mx-1 my-1 De-px bg-muted",e),...t}));ko.displayName=k.Separator.displayName;var To=({className:e,...t})=>(0,De.jsx)("span",{className:s("ml-auto text-xs tracking-widest opacity-60",e),...t});To.displayName="DropdownMenuShortcut";var ks=v(require("react"));var Ra=ks.forwardRef(({className:e,type:t,...a},r)=>(0,De.jsx)("input",{type:t,className:s("flex De-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}));Ra.displayName="Input";var Ds=v(require("react")),Do=v(require("@radix-ui/react-separator"));var Sa=Ds.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,De.jsx)(Do.Root,{ref:o,decorative:a,orientation:t,className:s("shrink-0 bg-border",t==="horizontal"?"De-[1px] w-full":"De-full w-[1px]",e),...r}));Sa.displayName=Do.Root.displayName;var ka=v(require("react")),X=v(require("@radix-ui/react-dialog")),As=require("class-variance-authority");var mr=X.Root,Ls=X.Trigger,Es=X.Close,Mo=X.Portal,pr=ka.forwardRef(({className:e,...t},a)=>(0,De.jsx)(X.Overlay,{className:s("fixed inset-0 De-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}));pr.displayName=X.Overlay.displayName;var _c=(0,As.cva)("fixed De-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-De-0 top-0 border-De data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-De-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-De-0 left-0 De-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-De-0 right-0 De-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"}}),Ta=ka.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,De.jsxs)(Mo,{children:[(0,De.jsx)(pr,{}),(0,De.jsxs)(X.Content,{ref:o,className:s(_c({side:e}),t),...r,children:[(0,De.jsxs)(X.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,De.jsx)(dr.Cross2Icon,{className:"De-4 w-4"}),(0,De.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Ta.displayName=X.Content.displayName;var Io=({className:e,...t})=>(0,De.jsx)("div",{className:s("flex flex-col space-De-2 text-center sm:text-left",e),...t});Io.displayName="SheetHeader";var Ao=({className:e,...t})=>(0,De.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-De-2",e),...t});Ao.displayName="SheetFooter";var Lo=ka.forwardRef(({className:e,...t},a)=>(0,De.jsx)(X.Title,{ref:a,className:s("text-lg font-semibold text-foreground",e),...t}));Lo.displayName=X.Title.displayName;var Eo=ka.forwardRef(({className:e,...t},a)=>(0,De.jsx)(X.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));Eo.displayName=X.Description.displayName;var T=v(require("react")),$s=require("lucide-react");var ur=require("react"),fr=(e=768)=>{let[t,a]=(0,ur.useState)(!1);return(0,ur.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var zs=v(require("react")),yt=(0,As.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:"De-10 px-4 py-2",icon:"De-10 w-10",lg:"De-11 rounded px-8",sm:"De-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),H=zs.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,De.jsx)(e?xs.Slot:"button",{className:s(yt({className:t,size:a,variant:r})),ref:i,...o}));H.displayName="Button";function j({className:e,...t}){return(0,De.jsx)("div",{className:s("animate-pulse rounded-md bg-primary/10",e),...t})}var Gs=v(require("react")),Fe=v(require("@radix-ui/react-tooltip"));var gr=Fe.Provider,br=Fe.Root,vr=Fe.Trigger,Da=Gs.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,De.jsx)(Fe.Portal,{children:(0,De.jsx)(Fe.Content,{ref:r,sideOffset:t,className:s("De-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})}));Da.displayName=Fe.Content.displayName;var Gc="sidebar:state",Oc=60*60*24*7,$c="16rem",Vc="18rem",Wc="3rem",Uc="De",Vs=T.createContext(null);function la(){let e=T.useContext(Vs);if(!e)throw new Error("useSidebar must De used within a SidebarProvider.");return e}var Ho=T.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...n},l)=>{let d=fr(),[m,c]=T.useState(!1),[p,u]=T.useState(e),g=t!=null?t:p,P=T.useCallback(F=>{if(a)return a==null?void 0:a(typeof F=="function"?F(g):F);u(F),document.cookie=`${Gc}=${g}; path=/; max-age=${Oc}`},[a,g]),f=T.useCallback(()=>d?c(F=>!F):P(F=>!F),[d,P,c]);T.useEffect(()=>{let F=ue=>{ue.key===Uc&&(ue.metaKey||ue.ctrlKey)&&(ue.preventDefault(),f())};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[f]);let w=g?"expanded":"collapsed",L=T.useMemo(()=>({state:w,open:g,setOpen:P,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:f}),[w,g,P,d,m,c,f]);return(0,De.jsx)(Vs.Provider,{value:L,children:(0,De.jsx)(gr,{delayDuration:0,children:(0,De.jsx)("div",{style:{"--sidebar-width":$c,"--sidebar-width-icon":Wc,...o},className:s("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...n,children:i})})})});Ho.displayName="SidebarProvider";var Lt=T.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},n)=>{let{isMobile:l,state:d,openMobile:m,setOpenMobile:c}=la();return a==="none"?(0,De.jsx)("div",{className:s("flex De-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):l?(0,De.jsx)(mr,{open:m,onOpenChange:c,...i,children:(0,De.jsx)(Ta,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Vc},side:e,children:(0,De.jsx)("div",{className:"flex De-full w-full flex-col",children:o})})}):(0,De.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,De.jsx)("div",{className:s("duration-200 relative De-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)De+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,De.jsx)("div",{className:s("duration-200 fixed top-14 bottom-0 De-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)De+_theme(spacing.4)De+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,De.jsx)("div",{"data-sidebar":"sidebar",className:"flex De-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})})]})});Lt.displayName="Sidebar";var zo=T.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=la();return(0,De.jsxs)(H,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:s("De-7 w-7",e),onClick:i=>{t==null||t(i),o()},...a,children:[(0,De.jsx)($s.PanelLeft,{}),(0,De.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});zo.displayName="SidebarTrigger";var Fo=T.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=la();return(0,De.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:s("absolute inset-De-0 De-20 hidden w-4 -translate-De-1/2 transition-all ease-linear after:absolute after:inset-De-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]De&]:cursor-w-resize [[data-side=right]De&]:cursor-e-resize","[[data-side=left][data-state=collapsed]De&]:cursor-e-resize [[data-side=right][data-state=collapsed]De&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-De-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]De&]:-right-2","[[data-side=right][data-collapsible=offcanvas]De&]:-left-2",e),...t})});Fo.displayName="SidebarRail";var _o=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("main",{ref:a,className:s("flex flex-1 flex-col bg-background overflow-De-auto relative max-De-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}));_o.displayName="SidebarInset";var Go=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Ra,{ref:a,"data-sidebar":"input",className:s("De-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Go.displayName="SidebarInput";var Et=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"header",className:s("flex flex-col gap-2 p-2",e),...t}));Et.displayName="SidebarHeader";var Bt=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"footer",className:s("flex flex-col gap-2 p-2",e),...t}));Bt.displayName="SidebarFooter";var Ma=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Sa,{ref:a,"data-sidebar":"separator",className:s("mx-2 w-auto bg-sidebar-border",e),...t}));Ma.displayName="SidebarSeparator";var xt=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"content",className:s("flex min-De-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));xt.displayName="SidebarContent";var Me=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"group",className:s("relative flex w-full min-w-0 flex-col p-2",e),...t}));Me.displayName="SidebarGroup";var at=T.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,De.jsx)(t?xs.Slot:"div",{ref:r,"data-sidebar":"group-label",className:s("duration-200 flex De-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]:-De-8 group-data-[collapsible=icon]:opacity-0",e),...a}));at.displayName="SidebarGroupLabel";var Oo=T.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,De.jsx)(t?xs.Slot:"button",{ref:r,"data-sidebar":"group-action",className:s("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}));Oo.displayName="SidebarGroupAction";var _e=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"group-content",className:s("w-full text-sm",e),...t}));_e.displayName="SidebarGroupContent";var ye=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("ul",{ref:a,"data-sidebar":"menu",className:s("flex w-full min-w-0 flex-col gap-1",e),...t}));ye.displayName="SidebarMenu";var se=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:s("group/menu-item relative",e),...t}));se.displayName="SidebarMenuItem";var Xc=(0,As.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:"De-8 text-sm",sm:"De-7 text-xs",lg:"De-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ie=T.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:i,...n},l)=>{let d=e?xs.Slot:"button",{isMobile:m,state:c}=la(),p=(0,De.jsx)(d,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:s(Xc({variant:a,size:r}),i),...n});return o?(typeof o=="string"&&(o={children:o}),(0,De.jsxs)(br,{children:[(0,De.jsx)(vr,{asChild:!0,children:p}),(0,De.jsx)(Da,{side:"right",align:"center",hidden:c!=="collapsed"||m,...o})]})):p});Ie.displayName="SidebarMenuButton";var Ia=T.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,De.jsx)(t?xs.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:s("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}));Ia.displayName="SidebarMenuAction";var $o=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:s("absolute right-1 flex De-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}));$o.displayName="SidebarMenuBadge";var Vo=T.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=T.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,De.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:s("rounded-md De-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,De.jsx)(j,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,De.jsx)(j,{className:"De-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Vo.displayName="SidebarMenuSkeleton";var wt=T.forwardRef(({className:e,...t},a)=>(0,De.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:s("mx-3.5 flex min-w-0 translate-De-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));wt.displayName="SidebarMenuSub";var Nt=T.forwardRef(({...e},t)=>(0,De.jsx)("li",{ref:t,...e}));Nt.displayName="SidebarMenuSubItem";var Pt=T.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},i)=>(0,De.jsx)(e?xs.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:s("flex De-7 min-w-0 -translate-De-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}));Pt.displayName="SidebarMenuSubButton";var xr=v(require("react")),jc=1,Yc=1e6;var Wo=0;function Kc(){return Wo=(Wo+1)%Number.MAX_SAFE_INTEGER,Wo.toString()}var Uo=new Map,Ws=e=>{if(Uo.has(e))return;let t=setTimeout(()=>{Uo.delete(e),Aa({type:"REMOVE_TOAST",toastId:e})},Yc);Uo.set(e,t)},qc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,jc)};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?Ws(a):e.toasts.forEach(r=>{Ws(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===a||a===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},hr=[],yr={toasts:[]};function Aa(e){yr=qc(yr,e),hr.forEach(t=>{t(yr)})}function Jc({...e}){let t=Kc(),a=o=>Aa({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Aa({type:"DISMISS_TOAST",toastId:t});return Aa({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function wr(){let[e,t]=xr.useState(yr);return xr.useEffect(()=>(hr.push(t),()=>{let a=hr.indexOf(t);a>-1&&hr.splice(a,1)}),[e]),{...e,toast:Jc,dismiss:a=>Aa({type:"DISMISS_TOAST",toastId:a})}}var Ht=v(require("react")),J=v(require("@radix-ui/react-toast"));var Nr=J.Provider,La=Ht.forwardRef(({className:e,...t},a)=>(0,De.jsx)(J.Viewport,{ref:a,className:s("fixed top-0 De-[100] flex max-De-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}));La.displayName=J.Viewport.displayName;var Qc=(0,As.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-De-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-De-0 data-[swipe=end]:translate-De-[var(--radix-toast-swipe-end-De)] data-[swipe=move]:translate-De-[var(--radix-toast-swipe-move-De)] 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"}}),Ea=Ht.forwardRef(({className:e,variant:t,...a},r)=>(0,De.jsx)(J.Root,{ref:r,className:s(Qc({variant:t}),e),...a}));Ea.displayName=J.Root.displayName;var Xo=Ht.forwardRef(({className:e,...t},a)=>(0,De.jsx)(J.Action,{ref:a,className:s("inline-flex De-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}));Xo.displayName=J.Action.displayName;var Ba=Ht.forwardRef(({className:e,...t},a)=>(0,De.jsx)(J.Close,{ref:a,className:s("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,De.jsx)($s.X,{className:"De-4 w-4"})}));Ba.displayName=J.Close.displayName;var Ha=Ht.forwardRef(({className:e,...t},a)=>(0,De.jsx)(J.Title,{ref:a,className:s("text-sm font-semibold [&+div]:text-xs",e),...t}));Ha.displayName=J.Title.displayName;var za=Ht.forwardRef(({className:e,...t},a)=>(0,De.jsx)(J.Description,{ref:a,className:s("text-sm opacity-90",e),...t}));za.displayName=J.Description.displayName;function js(){let{toasts:e}=wr();return(0,De.jsxs)(Nr,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,De.jsxs)(Ea,{...i,children:[(0,De.jsxs)("div",{className:"grid gap-1",children:[a&&(0,De.jsx)(Ha,{children:a}),r&&(0,De.jsx)(za,{children:r})]}),o,(0,De.jsx)(Ba,{})]},t)}),(0,De.jsx)(La,{})]})}var Ys=v(require("react")),jo=v(require("@radix-ui/react-toggle"));var Fa=(0,As.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:"De-9 px-2 min-w-9",sm:"De-8 px-1.5 min-w-8",lg:"De-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Yo=Ys.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,De.jsx)(jo.Root,{ref:o,className:s(Fa({variant:t,size:a,className:e})),...r}));Yo.displayName=jo.Root.displayName;var zt=v(require("react")),ca=v(require("@radix-ui/react-toggle-group"));var Js=zt.createContext({size:"default",variant:"default"}),Ko=zt.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,De.jsx)(ca.Root,{ref:i,className:s("flex items-center justify-center gap-1",e),...o,children:(0,De.jsx)(Js.Provider,{value:{variant:t,size:a},children:r})}));Ko.displayName=ca.Root.displayName;var qo=zt.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let n=zt.useContext(Js);return(0,De.jsx)(ca.Item,{ref:i,className:s(Fa({variant:n.variant||a,size:n.size||r}),e),...o,children:t})});qo.displayName=ca.Item.displayName;var Jo=v(require("react")),Ae=v(require("@radix-ui/react-scroll-area"));var Qo=Jo.forwardRef(({className:e,children:t,...a},r)=>(0,De.jsxs)(Ae.Root,{ref:r,className:s("relative overflow-hidden",e),...a,children:[(0,De.jsx)(Ae.Viewport,{className:"De-full w-full rounded-[inherit]",children:t}),(0,De.jsx)(Cr,{}),(0,De.jsx)(Ae.Corner,{})]}));Qo.displayName=Ae.Root.displayName;var Cr=Jo.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,De.jsx)(Ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:s("flex touch-none select-none transition-colors",t==="vertical"&&"De-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"De-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,De.jsx)(Ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Cr.displayName=Ae.ScrollAreaScrollbar.displayName;var Qs=v(require("react")),Ge=v(require("@radix-ui/react-popover"));var _a=Ge.Root,Ga=Ge.Trigger,Zs=Ge.Anchor,da=Qs.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,De.jsx)(Ge.Portal,{children:(0,De.jsx)(Ge.Content,{ref:o,align:t,sideOffset:a,className:s("De-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})}));da.displayName=Ge.Content.displayName;var en=v(require("react")),ei=v(require("@radix-ui/react-label"));var Zc=(0,As.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ft=en.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ei.Root,{ref:a,className:s(Zc(),e),...t}));Ft.displayName=ei.Root.displayName;var rn=v(require("react")),_t=v(require("@radix-ui/react-hover-card"));var on=_t.Root,sn=_t.Trigger,ti=rn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,De.jsx)(_t.Content,{ref:o,align:t,sideOffset:a,className:s("De-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}));ti.displayName=_t.Content.displayName;var Oa=v(require("react")),Y=v(require("@radix-ui/react-dialog"));var ma=Y.Root,cn=Y.Trigger,ai=Y.Portal,Rr=Y.Close,Sr=Oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Y.Overlay,{ref:a,className:s("fixed inset-0 De-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}));Sr.displayName=Y.Overlay.displayName;var Gt=Oa.forwardRef(({className:e,children:t,...a},r)=>(0,De.jsxs)(ai,{children:[(0,De.jsx)(Sr,{}),(0,De.jsxs)(Y.Content,{ref:r,className:s("fixed left-[50%] top-[50%] De-50 grid w-full max-w-lg translate-De-[-50%] translate-De-[-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,De.jsxs)(Y.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,De.jsx)($s.X,{className:"De-4 w-4"}),(0,De.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Gt.displayName=Y.Content.displayName;var $a=({className:e,...t})=>(0,De.jsx)("div",{className:s("flex flex-col space-De-1.5 text-center sm:text-left",e),...t});$a.displayName="DialogHeader";var ri=({className:e,...t})=>(0,De.jsx)("div",{className:s("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-De-2",e),...t});ri.displayName="DialogFooter";var Va=Oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Y.Title,{ref:a,className:s("text-lg font-semibold leading-none tracking-tight",e),...t}));Va.displayName=Y.Title.displayName;var oi=Oa.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Y.Description,{ref:a,className:s("text-sm text-muted-foreground",e),...t}));oi.displayName=Y.Description.displayName;var St=v(require("react")),ge=require("cmdk");var kr=St.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ge.Command,{ref:a,className:s("flex De-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=ge.Command.displayName;var mn=({children:e,...t})=>(0,De.jsx)(ma,{...t,children:(0,De.jsx)(Gt,{className:"overflow-hidden p-0",children:(0,De.jsx)(kr,{className:"[&De[cmdk-group-heading]]:px-2 [&De[cmdk-group-heading]]:font-medium [&De[cmdk-group-heading]]:text-muted-foreground [&De[cmdk-group]:not([hidden])De~[cmdk-group]]:pt-0 [&De[cmdk-group]]:px-2 [&De[cmdk-input-wrapper]_svg]:De-5 [&De[cmdk-input-wrapper]_svg]:w-5 [&De[cmdk-input]]:De-12 [&De[cmdk-item]]:px-2 [&De[cmdk-item]]:py-3 [&De[cmdk-item]_svg]:De-5 [&De[cmdk-item]_svg]:w-5",children:e})})}),ii=St.forwardRef(({className:e,...t},a)=>(0,De.jsxs)("div",{className:"flex items-center border-De px-3","cmdk-input-wrapper":"",children:[(0,De.jsx)($s.Search,{className:"mr-2 De-4 w-4 shrink-0 opacity-50"}),(0,De.jsx)(ge.Command.Input,{ref:a,className:s("flex De-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})]}));ii.displayName=ge.Command.Input.displayName;var si=St.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ge.Command.List,{ref:a,className:s("max-De-[300px] overflow-De-auto overflow-De-hidden",e),...t}));si.displayName=ge.Command.List.displayName;var ni=St.forwardRef((e,t)=>(0,De.jsx)(ge.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ni.displayName=ge.Command.Empty.displayName;var li=St.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ge.Command.Group,{ref:a,className:s("overflow-hidden p-1 text-foreground [&De[cmdk-group-heading]]:px-2 [&De[cmdk-group-heading]]:py-1.5 [&De[cmdk-group-heading]]:text-xs [&De[cmdk-group-heading]]:font-medium [&De[cmdk-group-heading]]:text-muted-foreground",e),...t}));li.displayName=ge.Command.Group.displayName;var ci=St.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ge.Command.Separator,{ref:a,className:s("-mx-1 De-px bg-border",e),...t}));ci.displayName=ge.Command.Separator.displayName;var di=St.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ge.Command.Item,{ref:a,className:s("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));di.displayName=ge.Command.Item.displayName;var mi=({className:e,...t})=>(0,De.jsx)("span",{className:s("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});mi.displayName="CommandShortcut";var Tr=v(require("react"));var ed=(0,As.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-De-[-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"}}),pi=Tr.forwardRef(({className:e,variant:t,...a},r)=>(0,De.jsx)("div",{ref:r,role:"alert",className:s(ed({variant:t}),e),...a}));pi.displayName="Alert";var ui=Tr.forwardRef(({className:e,...t},a)=>(0,De.jsx)("h5",{ref:a,className:s("mb-1 font-medium leading-none tracking-tight",e),...t}));ui.displayName="AlertTitle";var fi=Tr.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("text-sm [&_p]:leading-relaxed",e),...t}));fi.displayName="AlertDescription";var Mr=v(require("react")),ot=v(require("@radix-ui/react-avatar"));var it=Mr.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ot.Root,{ref:a,className:s("relative flex De-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));it.displayName=ot.Root.displayName;var st=Mr.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ot.Image,{ref:a,className:s("aspect-square De-full w-full",e),...t}));st.displayName=ot.Image.displayName;var nt=Mr.forwardRef(({className:e,...t},a)=>(0,De.jsx)(ot.Fallback,{ref:a,className:s("flex De-full w-full items-center justify-center rounded-full bg-muted",e),...t}));nt.displayName=ot.Fallback.displayName;var gi=(0,As.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 kt({className:e,variant:t,...a}){return(0,De.jsx)("div",{className:s(gi({variant:t}),e),...a})}var Wa=v(require("@radix-ui/react-checkbox")),bn=v(require("react")),Ua=bn.forwardRef(({className:e,...t},a)=>(0,De.jsx)(Wa.Root,{className:s("peer De-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,De.jsx)(Wa.Indicator,{className:s("flex items-center justify-center text-current"),children:(0,De.jsx)($s.Check,{className:"De-4 w-4"})})}));Ua.displayName=Wa.Root.displayName;var M=v(require("@radix-ui/react-select")),Tt=v(require("react")),td=M.Root,ad=M.Group,rd=M.Value,vn=Tt.forwardRef(({children:e,className:t,...a},r)=>(0,De.jsxs)(M.Trigger,{className:s("flex De-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,De.jsx)(M.Icon,{asChild:!0,children:(0,De.jsx)($s.ChevronDown,{className:"De-4 w-4 opacity-50"})})]}));vn.displayName=M.Trigger.displayName;var bi=Tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(M.ScrollUpButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,De.jsx)($s.ChevronUp,{className:"De-4 w-4"})}));bi.displayName=M.ScrollUpButton.displayName;var vi=Tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(M.ScrollDownButton,{className:s("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,De.jsx)($s.ChevronDown,{className:"De-4 w-4"})}));vi.displayName=M.ScrollDownButton.displayName;var hn=Tt.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,De.jsx)(M.Portal,{children:(0,De.jsxs)(M.Content,{className:s("relative De-50 max-De-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-De-1 data-[side=left]:-translate-De-1 data-[side=right]:translate-De-1 data-[side=top]:-translate-De-1",t),position:a,ref:o,...r,children:[(0,De.jsx)(bi,{}),(0,De.jsx)(M.Viewport,{className:s("p-1",a==="popper"&&"De-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,De.jsx)(vi,{})]})}));hn.displayName=M.Content.displayName;var yn=Tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(M.Label,{className:s("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));yn.displayName=M.Label.displayName;var xn=Tt.forwardRef(({children:e,className:t,...a},r)=>(0,De.jsxs)(M.Item,{className:s("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,De.jsx)("span",{className:"absolute left-2 flex De-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(M.ItemIndicator,{children:(0,De.jsx)($s.Check,{className:"De-4 w-4"})})}),(0,De.jsx)(M.ItemText,{children:e})]}));xn.displayName=M.Item.displayName;var wn=Tt.forwardRef(({className:e,...t},a)=>(0,De.jsx)(M.Separator,{className:s("-mx-1 my-1 De-px bg-muted",e),ref:a,...t}));wn.displayName=M.Separator.displayName;var Nn=v(require("react")),Pn=Nn.forwardRef(({className:e,...t},a)=>(0,De.jsx)("textarea",{className:s("flex min-De-[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}));Pn.displayName="Textarea";var Rn=require("react-day-picker");function Xa({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,De.jsx)(Rn.DayPicker,{showOutsideDays:a,className:s("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-De-4 sm:space-De-4 sm:space-De-0",month:"space-De-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-De-1 flex items-center",nav_button:s(yt({variant:"outline"}),"De-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-De-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full De-2",cell:s("relative p-0 text-center text-sm focus-within:relative focus-within:De-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:s(yt({variant:"ghost"}),"De-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})}Xa.displayName="Calendar";var Le=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("ur-")?e+" ":"ur-"+e+" ",i="ur-"+t,n=r!=null?r:"",l=o+i+" ur-"+a+" "+n;return(0,De.jsx)("i",{className:l})};var Tn=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,$t.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,$t.jsx)("div",{className:"w-12 De-12 ",children:(0,$t.jsx)(Le,{type:r,iconName:a,className:"w-12 De-12 text-white"})}),(0,$t.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,$t.jsx)("p",{className:"text-white text-sm",children:t})]});var Dn=v(require("next/image")),Mn=v(require("next/link"));var Vt=v(require("react"));var ne=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ne.displayName="Card";var Ee=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("flex flex-col space-De-1.5 p-6",e),...t}));Ee.displayName="CardHeader";var Be=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("font-semibold leading-none tracking-tight",e),...t}));Be.displayName="CardTitle";var od=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("text-sm text-muted-foreground",e),...t}));od.displayName="CardDescription";var xe=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("p-6 pt-0",e),...t}));xe.displayName="CardContent";var id=Vt.forwardRef(({className:e,...t},a)=>(0,De.jsx)("div",{ref:a,className:s("flex items-center p-6 pt-0",e),...t}));id.displayName="CardFooter";function In({name:e,logo:t,href:a}){return(0,De.jsx)(ne,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,De.jsxs)(Mn.default,{href:a,className:"block",children:[(0,De.jsx)("div",{className:"bg-white p-2 flex items-center justify-center De-24",children:(0,De.jsx)("div",{className:"relative w-full De-full",children:t&&(0,De.jsx)(Dn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,De.jsx)(xe,{className:"p-3 flex items-center justify-center De-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,De.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 An({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=l=>{switch(l){case"birthday":return(0,De.jsx)($s.Cake,{className:"De-4 w-4"});case"workAnniversary":return(0,De.jsx)($s.Award,{className:"De-4 w-4"});case"companyEvent":return(0,De.jsx)($s.PartyPopper,{className:"De-4 w-4"});default:return(0,De.jsx)($s.CalendarDays,{className:"De-4 w-4"})}},n=l=>{switch(l){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,De.jsxs)(ne,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,De.jsxs)(Ee,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,De.jsxs)(it,{className:"De-14 w-14 border-2 border-white",children:[(0,De.jsx)(st,{src:o,alt:a||"Event"}),(0,De.jsx)(nt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,De.jsxs)("div",{className:"flex flex-col",children:[(0,De.jsx)(Be,{className:"text-xl",children:a||"Untitled Event"}),(0,De.jsxs)("p",{className:"text-sm text-white/80",children:[(0,De.jsx)($s.CalendarDays,{className:"mr-1 inline-block De-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,De.jsxs)(xe,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,De.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,De.jsxs)(kt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[i(e),(0,De.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-De])([De-De])/g,"$1 $2").split(" ").map(l=>l.charAt(0).toUpperCase()+l.slice(1)).join(" "):"Event"})]})]})]})}var En=v(require("next/link"));var Bn=v(require("next/image")),Ln={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Hn({slug:e,image:t,title:a,description:r}){return(0,De.jsxs)(En.default,{href:e,className:"group/portfolio relative De-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,De.jsx)("span",{className:s("absolute inset-0 De-[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,De.jsx)(Bn.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
- (min-width:${Ln.md}) 50vw,
8
- (min-width:${Ln.lg}) 25vw,
6
+ "use strict";var Rc=Object.create;var Ar=Object.defineProperty;var Sc=Object.getOwnPropertyDescriptor;var kc=Object.getOwnPropertyNames;var Tc=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty;var Mc=(e,t)=>{for(var a in t)Ar(e,a,{get:t[a],enumerable:!0})},Es=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kc(t))!Dc.call(e,o)&&o!==a&&Ar(e,o,{get:()=>t[o],enumerable:!(r=Sc(t,o))||r.enumerable});return e};var y=(e,t,a)=>(a=e!=null?Rc(Tc(e)):{},Es(t||!e||!e.__esModule?Ar(a,"default",{value:e,enumerable:!0}):a,e)),Ic=e=>Es(Ar({},"__esModule",{value:!0}),e);var Dm={};Mc(Dm,{Alert:()=>Ei,AlertDescription:()=>Hi,AlertTitle:()=>Bi,ApproveLeave:()=>xs,Avatar:()=>Pt,AvatarFallback:()=>St,AvatarImage:()=>Rt,Badge:()=>qe,BannerBlock:()=>Gi,BlogCard:()=>zl,BlogList:()=>Kd,BrandLogo:()=>ea,Breadcrumb:()=>Ho,BreadcrumbEllipsis:()=>Vo,BreadcrumbItem:()=>zo,BreadcrumbLink:()=>Oo,BreadcrumbList:()=>Fo,BreadcrumbPage:()=>_o,BreadcrumbSeparator:()=>Go,Breadcrumbs:()=>gs,Button:()=>T,CMSLink:()=>ct,CRMKanbanBoard:()=>Tm,Calendar:()=>gr,CalendarView:()=>Rs,CallToActionBlock:()=>vr,Card:()=>yr,Categories:()=>cm,Checkbox:()=>rt,CodeBlock:()=>Ui,Collapsible:()=>yt,CollapsibleContent:()=>Ft,CollapsibleTrigger:()=>Ht,CollectionArchive:()=>qd,Command:()=>qr,CommandDialog:()=>En,CommandEmpty:()=>Di,CommandGroup:()=>Mi,CommandInput:()=>ki,CommandItem:()=>Ai,CommandList:()=>Ti,CommandSeparator:()=>Ii,CommandShortcut:()=>Li,Container:()=>va,ContentBlock:()=>Ji,CopyButton:()=>$i,CustomLink:()=>be,CustomerCard:()=>qn,DealCard:()=>ks,DealDetails:()=>Ss,Dialog:()=>Me,DialogClose:()=>Yr,DialogContent:()=>Ce,DialogDescription:()=>Si,DialogFooter:()=>Ri,DialogHeader:()=>Oe,DialogOverlay:()=>Kr,DialogPortal:()=>Pi,DialogTitle:()=>_e,DialogTrigger:()=>Ba,DropdownMenu:()=>Us,DropdownMenuCheckboxItem:()=>jo,DropdownMenuContent:()=>Uo,DropdownMenuGroup:()=>js,DropdownMenuItem:()=>Xo,DropdownMenuLabel:()=>Ko,DropdownMenuPortal:()=>Ys,DropdownMenuRadioGroup:()=>qs,DropdownMenuRadioItem:()=>Yo,DropdownMenuSeparator:()=>qo,DropdownMenuShortcut:()=>Jo,DropdownMenuSub:()=>Ks,DropdownMenuSubContent:()=>Wo,DropdownMenuSubTrigger:()=>$o,DropdownMenuTrigger:()=>Xs,DynamicIcon:()=>Je,EventCard:()=>Jn,FeatureCard:()=>jn,FeatureGrid:()=>il,FeaturesBlock:()=>hr,Filter:()=>dm,Footer:()=>Nm,Header:()=>wm,HeaderDesktop:()=>Pr,HeaderMobile:()=>Rr,HeadingImage:()=>Ud,HighImpactHero:()=>cs,HolidayGrid:()=>Ps,HolidayTracker:()=>Sm,HoverCard:()=>Dn,HoverCardContent:()=>Ci,HoverCardTrigger:()=>Mn,Image:()=>al,ImageBlock:()=>qi,InfoTile:()=>Hd,Input:()=>we,Insight:()=>Bd,KanbanColumn:()=>Ds,Label:()=>X,Logo:()=>Jd,LowImpactHero:()=>ps,MOTD:()=>zd,Media:()=>It,MediaBlock:()=>Ha,MediumImpactHero:()=>ms,NewCustomerForm:()=>Tr,NewDealForm:()=>Ts,NewsGrid:()=>Tl,OrgChart:()=>Gd,PageRange:()=>em,Pagination:()=>lm,PayloadPagination:()=>tm,Popover:()=>dr,PopoverAnchor:()=>Pn,PopoverContent:()=>Ea,PopoverTrigger:()=>mr,PostHero:()=>pm,PricingCard:()=>Ed,ProjectCard:()=>tl,ProjectTeam:()=>sm,ProposalSummary:()=>Vd,RelatedContent:()=>nm,RelatedPosts:()=>jd,RenderBlocks:()=>Qi,RenderHero:()=>gm,RequestLeave:()=>Cs,RichText:()=>oe,ScrollArea:()=>Ut,ScrollBar:()=>jr,SectionHero:()=>us,Select:()=>ca,SelectContent:()=>Kt,SelectGroup:()=>Rd,SelectItem:()=>qt,SelectLabel:()=>_n,SelectScrollDownButton:()=>Oi,SelectScrollUpButton:()=>zi,SelectSeparator:()=>Gn,SelectTrigger:()=>Yt,SelectValue:()=>da,Separator:()=>Ja,ServiceCard:()=>Ld,Sheet:()=>Er,SheetClose:()=>on,SheetContent:()=>Za,SheetDescription:()=>ri,SheetFooter:()=>ti,SheetHeader:()=>ei,SheetOverlay:()=>Br,SheetPortal:()=>Zo,SheetTitle:()=>ai,SheetTrigger:()=>rn,Sidebar:()=>aa,SidebarContent:()=>Ot,SidebarFooter:()=>oa,SidebarGroup:()=>je,SidebarGroupAction:()=>di,SidebarGroupContent:()=>tt,SidebarGroupLabel:()=>Nt,SidebarHeader:()=>ra,SidebarInput:()=>ci,SidebarInset:()=>li,SidebarLeft:()=>am,SidebarMenu:()=>De,SidebarMenuAction:()=>ar,SidebarMenuBadge:()=>mi,SidebarMenuButton:()=>Ye,SidebarMenuItem:()=>ge,SidebarMenuSkeleton:()=>pi,SidebarMenuSub:()=>_t,SidebarMenuSubButton:()=>Vt,SidebarMenuSubItem:()=>Gt,SidebarProvider:()=>ii,SidebarRail:()=>ni,SidebarRight:()=>im,SidebarSeparator:()=>tr,SidebarTrigger:()=>si,SimpleHeader:()=>bm,Skeleton:()=>Z,SlideShow:()=>Rl,TextAndImages:()=>Dl,Textarea:()=>Jt,ThemeProvider:()=>Cm,Toast:()=>ir,ToastAction:()=>fi,ToastClose:()=>sr,ToastDescription:()=>lr,ToastProvider:()=>Ur,ToastTitle:()=>nr,ToastViewport:()=>or,Toaster:()=>hn,Toggle:()=>vi,ToggleGroup:()=>hi,ToggleGroupItem:()=>yi,Tooltip:()=>Or,TooltipContent:()=>er,TooltipProvider:()=>zr,TooltipTrigger:()=>_r,VideoHeader:()=>ym,WhyUs:()=>$d,badgeVariants:()=>Fi,buttonVariants:()=>zt,toggleVariants:()=>cr,useIsMobile:()=>Fr,useSidebar:()=>Aa,useToast:()=>Wr});module.exports=Ic(Dm);var Ta=y(require("react")),Lr=require("@radix-ui/react-icons"),Ws=require("@radix-ui/react-slot");var $s=require("clsx");var Bo="-",Ac=e=>{let t=Ec(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let s=n.split(Bo);return s[0]===""&&s.length!==1&&s.shift(),Fs(s,t)||Lc(n)},getConflictingClassGroupIds:(n,s)=>{let d=a[n]||[];return s&&r[n]?[...d,...r[n]]:d}}},Fs=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Fs(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let i=e.join(Bo);return(n=t.validators.find(({validator:s})=>s(i)))==null?void 0:n.classGroupId},Bs=/^\[(.+)\]$/,Lc=e=>{if(Bs.test(e)){let t=Bs.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Ec=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Hc(Object.entries(e.classGroups),a).forEach(([i,n])=>{Eo(n,r,i,t)}),r},Eo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let i=o===""?t:Hs(t,o);i.classGroupId=a;return}if(typeof o=="function"){if(Bc(o)){Eo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([i,n])=>{Eo(n,Hs(t,i),a,r)})})},Hs=(e,t)=>{let a=e;return t.split(Bo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},Bc=e=>e.isThemeGetter,Hc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([n,s])=>[t+n,s])):i);return[a,o]}):e,Fc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(i,n)=>{a.set(i,n),t++,t>e&&(t=0,r=a,a=new Map)};return{get(i){let n=a.get(i);if(n!==void 0)return n;if((n=r.get(i))!==void 0)return o(i,n),n},set(i,n){a.has(i)?a.set(i,n):o(i,n)}}},zs="!",zc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],i=t.length,n=s=>{let d=[],m=0,c=0,p;for(let N=0;N<s.length;N++){let v=s[N];if(m===0){if(v===o&&(r||s.slice(N,N+i)===t)){d.push(s.slice(c,N)),c=N+i;continue}if(v==="/"){p=N;continue}}v==="["?m++:v==="]"&&m--}let u=d.length===0?s:s.substring(c),g=u.startsWith(zs),h=g?u.substring(1):u,f=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:f}};return a?s=>a({className:s,parseClassName:n}):n},Oc=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:Fc(e.cacheSize),parseClassName:zc(e),...Ac(e)}),Gc=/\s+/,Vc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],n=e.trim().split(Gc),s="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),h=!!g,f=r(h?u.substring(0,g):u);if(!f){if(!h){s=m+(s.length>0?" "+s:s);continue}if(f=r(u),!f){s=m+(s.length>0?" "+s:s);continue}h=!1}let N=Oc(c).join(":"),v=p?N+zs:N,k=v+f;if(i.includes(k))continue;i.push(k);let W=o(f,h);for(let Ue=0;Ue<W.length;++Ue){let bt=W[Ue];i.push(v+bt)}s=m+(s.length>0?" "+s:s)}return s};function $c(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Os(t))&&(r&&(r+=" "),r+=a);return r}var Os=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=Os(e[r]))&&(a&&(a+=" "),a+=t);return a};function Wc(e,...t){let a,r,o,i=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=_c(m),r=a.cache.get,o=a.cache.set,i=s,s(d)}function s(d){let m=r(d);if(m)return m;let c=Vc(d,a);return o(d,c),c}return function(){return i($c.apply(null,arguments))}}var Y=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},_s=/^\[(?:([a-Xe-]+):)?(.+)\]$/i,Uc=/^\d+\/\d+$/,Xc=new Set(["px","full","screen"]),jc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|Xe|Nl|in|cm|mm|cap|ch|ex|r?lh|cq(Xe|h|i|Xe|min|max))|\Xe(calc|min|max|clamp)\(.+\)|^0$/,Kc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qc=/^(inset_)?-?((\d+)?\.?(\d+)[a-Xe]+|0)Xe-?((\d+)?\.?(\d+)[a-Xe]+|0)/,Jc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ht=e=>Sa(e)||Xc.has(e)||Uc.test(e),Et=e=>ka(e,"length",id),Sa=e=>!!e&&!Number.isNaN(Number(e)),Lo=e=>ka(e,"number",Sa),Ka=e=>!!e&&Number.isInteger(Number(e)),Qc=e=>e.endsWith("%")&&Sa(e.slice(0,-1)),M=e=>_s.test(e),Bt=e=>jc.test(e),Zc=new Set(["length","size","percentage"]),ed=e=>ka(e,Zc,Gs),td=e=>ka(e,"position",Gs),ad=new Set(["image","url"]),rd=e=>ka(e,ad,nd),od=e=>ka(e,"",sd),qa=()=>!0,ka=(e,t,a)=>{let r=_s.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},id=e=>Yc.test(e)&&!Kc.test(e),Gs=()=>!1,sd=e=>qc.test(e),nd=e=>Jc.test(e);var ld=()=>{let e=Y("colors"),t=Y("spacing"),a=Y("blur"),r=Y("brightness"),o=Y("borderColor"),i=Y("borderRadius"),n=Y("borderSpacing"),s=Y("borderWidth"),d=Y("contrast"),m=Y("grayscale"),c=Y("hueRotate"),p=Y("invert"),u=Y("gap"),g=Y("gradientColorStops"),h=Y("gradientColorStopPositions"),f=Y("inset"),N=Y("margin"),v=Y("opacity"),k=Y("padding"),W=Y("saturate"),Ue=Y("scale"),bt=Y("sepia"),P=Y("skew"),He=Y("space"),lt=Y("translate"),Ra=()=>["auto","contain","none"],ja=()=>["auto","hidden","clip","visible","scroll"],Io=()=>["auto",M,t],K=()=>[M,t],Ms=()=>["",ht,Et],Mr=()=>["auto",Sa,M],Is=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ir=()=>["solid","dashed","dotted","double","none"],As=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ao=()=>["start","end","center","between","around","evenly","stretch"],Ya=()=>["","0",M],Ls=()=>["auto","avoid","all","avoid-page","page","left","right","column"],vt=()=>[Sa,M];return{cacheSize:500,separator:":",theme:{colors:[qa],spacing:[ht,Et],blur:["none","",Bt,M],brightness:vt(),borderColor:[e],borderRadius:["none","","full",Bt,M],borderSpacing:K(),borderWidth:Ms(),contrast:vt(),grayscale:Ya(),hueRotate:vt(),invert:Ya(),gap:K(),gradientColorStops:[e],gradientColorStopPositions:[Qc,Et],inset:Io(),margin:Io(),opacity:vt(),padding:K(),saturate:vt(),scale:vt(),sepia:Ya(),skew:vt(),space:K(),translate:K()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Bt]}],"break-after":[{"break-after":Ls()}],"break-before":[{"break-before":Ls()}],"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:[...Is(),M]}],overflow:[{overflow:ja()}],"overflow-Xe":[{"overflow-Xe":ja()}],"overflow-y":[{"overflow-y":ja()}],overscroll:[{overscroll:Ra()}],"overscroll-Xe":[{"overscroll-Xe":Ra()}],"overscroll-y":[{"overscroll-y":Ra()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-Xe":[{"inset-Xe":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],Xe:[{Xe:["auto",Ka,M]}],basis:[{basis:Io()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:Ya()}],shrink:[{shrink:Ya()}],order:[{order:["first","last","none",Ka,M]}],"grid-cols":[{"grid-cols":[qa]}],"col-start-end":[{col:["auto",{span:["full",Ka,M]},M]}],"col-start":[{"col-start":Mr()}],"col-end":[{"col-end":Mr()}],"grid-rows":[{"grid-rows":[qa]}],"row-start-end":[{row:["auto",{span:[Ka,M]},M]}],"row-start":[{"row-start":Mr()}],"row-end":[{"row-end":Mr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[u]}],"gap-Xe":[{"gap-Xe":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Ao()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ao(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ao(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],Xe:[{Xe:[k]}],Xe:[{Xe:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],Xe:[{Xe:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-Xe":[{"space-Xe":[He]}],"space-Xe-reverse":["space-Xe-reverse"],"space-y":[{"space-y":[He]}],"space-y-reverse":["space-y-reverse"],Xe:[{Xe:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-Xe":[{"min-Xe":[M,t,"min","max","fit"]}],"max-Xe":[{"max-Xe":[M,t,"none","full","min","max","fit","prose",{screen:[Bt]},Bt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Bt,Et]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Lo]}],"font-family":[{font:[qa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Sa,Lo]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ht,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","Hr-underline"],"text-decoration-style":[{decoration:[...Ir(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ht,Et]}],"underline-offset":[{"underline-offset":["auto",ht,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Is(),td]}],"bg-repeat":[{bg:["Hr-repeat",{repeat:["","Xe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ed]}],"bg-image":[{bg:["none",{"gradient-Xe":["t","tr","r","Xe","Xe","bl","l","tl"]},rd]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-Xe-pos":[{Xe:[h]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Xe":[{Xe:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-Xe":[{"rounded-Xe":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-Xe":[{"rounded-Xe":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-Xe":[{"rounded-Xe":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-Xe":[{border:[s]}],"border-Xe-Xe":[{"border-Xe":[s]}],"border-Xe-y":[{"border-y":[s]}],"border-Xe-s":[{"border-s":[s]}],"border-Xe-e":[{"border-e":[s]}],"border-Xe-t":[{"border-t":[s]}],"border-Xe-r":[{"border-r":[s]}],"border-Xe-Xe":[{"border-Xe":[s]}],"border-Xe-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...Ir(),"hidden"]}],"divide-Xe":[{"divide-Xe":[s]}],"divide-Xe-reverse":["divide-Xe-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:Ir()}],"border-color":[{border:[o]}],"border-color-Xe":[{"border-Xe":[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-Xe":[{"border-Xe":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Ir()]}],"outline-offset":[{"outline-offset":[ht,M]}],"outline-Xe":[{outline:[ht,Et]}],"outline-color":[{outline:[e]}],"ring-Xe":[{ring:Ms()}],"ring-Xe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-Xe":[{"ring-offset":[ht,Et]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Bt,od]}],"shadow-color":[{shadow:[qa]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...As(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":As()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Bt,M]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[W]}],sepia:[{sepia:[bt]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[bt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-Xe":[{"border-spacing-Xe":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:vt()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:vt()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Ue]}],"scale-Xe":[{"scale-Xe":[Ue]}],"scale-y":[{"scale-y":[Ue]}],rotate:[{rotate:[Ka,M]}],"translate-Xe":[{"translate-Xe":[lt]}],"translate-y":[{"translate-y":[lt]}],"skew-Xe":[{"skew-Xe":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","Hr-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Xe-resize","Xe-resize","nw-resize","Xe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Xe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-Xe":[{"scroll-Xe":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-Xe":[{"scroll-Xe":K()}],"scroll-Xe":[{"scroll-Xe":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Xe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Xe":[{"touch-pan":["Xe","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",M]}],fill:[{fill:[e,"none"]}],"stroke-Xe":[{stroke:[ht,Et,Lo]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Xe","overflow-y"],overscroll:["overscroll-Xe","overscroll-y"],inset:["inset-Xe","inset-y","start","end","top","right","bottom","left"],"inset-Xe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Xe","gap-y"],p:["px","py","ps","Xe","Xe","pr","pb","pl"],px:["pr","pl"],py:["Xe","pb"],m:["mx","my","ms","me","Xe","mr","mb","ml"],mx:["mr","ml"],my:["Xe","mb"],size:["Xe","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-Xe","rounded-l","rounded-ss","rounded-Xe","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-Xe","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Xe","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-Xe"],"rounded-Xe":["rounded-Xe","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Xe","border-spacing-y"],"border-Xe":["border-Xe-s","border-Xe-e","border-Xe-t","border-Xe-r","border-Xe-Xe","border-Xe-l"],"border-Xe-Xe":["border-Xe-r","border-Xe-l"],"border-Xe-y":["border-Xe-t","border-Xe-Xe"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-Xe","border-color-l"],"border-color-Xe":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-Xe"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Xe","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Xe","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Xe","scroll-Xe","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-Xe","scroll-pb"],touch:["touch-Xe","touch-y","touch-pz"],"touch-Xe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Vs=Wc(ld);function l(...e){return Vs((0,$s.clsx)(e))}var Xe=require("react/jsx-runtime"),Ho=Ta.forwardRef(({...e},t)=>(0,Xe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ho.displayName="Breadcrumb";var Fo=Ta.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("Xe",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Fo.displayName="BreadcrumbList";var zo=Ta.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));zo.displayName="BreadcrumbItem";var Oo=Ta.forwardRef(({asChild:e,className:t,...a},r)=>(0,Xe.jsx)(e?Ws.Slot:"a",{ref:r,className:l("transition-colors hover:text-foreground",t),...a}));Oo.displayName="BreadcrumbLink";var _o=Ta.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));_o.displayName="BreadcrumbPage";var Go=({children:e,className:t,...a})=>(0,Xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:Xe-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Xe.jsx)(Lr.ChevronRightIcon,{})});Go.displayName="BreadcrumbSeparator";var Vo=({className:e,...t})=>(0,Xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 Xe-9 items-center justify-center",e),...t,children:[(0,Xe.jsx)(Lr.DotsHorizontalIcon,{className:"h-4 Xe-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More"})]});Vo.displayName="BreadcrumbElipssis";var Da=y(require("@radix-ui/react-collapsible")),yt=Da.Root,Ht=Da.CollapsibleTrigger,Ft=Da.CollapsibleContent;var xt=y(require("react")),L=y(require("@radix-ui/react-dropdown-menu"));var Us=L.Root,Xs=L.Trigger,js=L.Group,Ys=L.Portal,Ks=L.Sub,qs=L.RadioGroup,$o=xt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,Xe.jsxs)(L.SubTrigger,{ref:o,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[a,(0,Xe.jsx)(Lr.ChevronRightIcon,{className:"ml-auto"})]}));$o.displayName=L.SubTrigger.displayName;var Wo=xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(L.SubContent,{ref:a,className:l("Xe-50 min-Xe-[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 Uo=xt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Xe.jsx)(L.Portal,{children:(0,Xe.jsx)(L.Content,{ref:r,sideOffset:t,className:l("Xe-50 min-Xe-[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})}));Uo.displayName=L.Content.displayName;var Xo=xt.forwardRef(({className:e,inset:t,...a},r)=>(0,Xe.jsx)(L.Item,{ref:r,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Xo.displayName=L.Item.displayName;var jo=xt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,Xe.jsxs)(L.CheckboxItem,{ref:o,className:l("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,Xe.jsx)("span",{className:"absolute left-2 flex h-3.5 Xe-3.5 items-center justify-center",children:(0,Xe.jsx)(L.ItemIndicator,{children:(0,Xe.jsx)(Lr.CheckIcon,{className:"h-4 Xe-4"})})}),t]}));jo.displayName=L.CheckboxItem.displayName;var Yo=xt.forwardRef(({className:e,children:t,...a},r)=>(0,Xe.jsxs)(L.RadioItem,{ref:r,className:l("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,Xe.jsx)("span",{className:"absolute left-2 flex h-3.5 Xe-3.5 items-center justify-center",children:(0,Xe.jsx)(L.ItemIndicator,{children:(0,Xe.jsx)(Lr.DotFilledIcon,{className:"h-4 Xe-4 fill-current"})})}),t]}));Yo.displayName=L.RadioItem.displayName;var Ko=xt.forwardRef(({className:e,inset:t,...a},r)=>(0,Xe.jsx)(L.Label,{ref:r,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ko.displayName=L.Label.displayName;var qo=xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(L.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));qo.displayName=L.Separator.displayName;var Jo=({className:e,...t})=>(0,Xe.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});Jo.displayName="DropdownMenuShortcut";var Js=y(require("react"));var we=Js.forwardRef(({className:e,type:t,...a},r)=>(0,Xe.jsx)("input",{type:t,className:l("flex h-9 Xe-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}));we.displayName="Input";var Zs=y(require("react")),Qo=y(require("@radix-ui/react-separator"));var Ja=Zs.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,Xe.jsx)(Qo.Root,{ref:o,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] Xe-full":"h-full Xe-[1px]",e),...r}));Ja.displayName=Qo.Root.displayName;var Qa=y(require("react")),Q=y(require("@radix-ui/react-dialog")),an=require("class-variance-authority");var Er=Q.Root,rn=Q.Trigger,on=Q.Close,Zo=Q.Portal,Br=Qa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Q.Overlay,{className:l("fixed inset-0 Xe-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}));Br.displayName=Q.Overlay.displayName;var cd=(0,an.cva)("fixed Xe-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-Xe-0 top-0 border-Xe data-[state=closed]:slide-out-Xe-top data-[state=open]:slide-in-from-top",bottom:"inset-Xe-0 bottom-0 border-t data-[state=closed]:slide-out-Xe-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full Xe-3/4 border-r data-[state=closed]:slide-out-Xe-left data-[state=open]:slide-in-from-left sm:max-Xe-sm",right:"inset-y-0 right-0 h-full Xe-3/4 border-l data-[state=closed]:slide-out-Xe-right data-[state=open]:slide-in-from-right sm:max-Xe-sm"}},defaultVariants:{side:"right"}}),Za=Qa.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,Xe.jsxs)(Zo,{children:[(0,Xe.jsx)(Br,{}),(0,Xe.jsxs)(Q.Content,{ref:o,className:l(cd({side:e}),t),...r,children:[(0,Xe.jsxs)(Q.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,Xe.jsx)(Lr.Cross2Icon,{className:"h-4 Xe-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Za.displayName=Q.Content.displayName;var ei=({className:e,...t})=>(0,Xe.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});ei.displayName="SheetHeader";var ti=({className:e,...t})=>(0,Xe.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Xe-2",e),...t});ti.displayName="SheetFooter";var ai=Qa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Q.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));ai.displayName=Q.Title.displayName;var ri=Qa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Q.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ri.displayName=Q.Description.displayName;var E=y(require("react")),un=require("lucide-react");var Hr=require("react"),Fr=(e=768)=>{let[t,a]=(0,Hr.useState)(!1);return(0,Hr.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var ln=y(require("react")),zt=(0,an.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 Xe-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),T=ln.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},i)=>(0,Xe.jsx)(e?Ws.Slot:"button",{className:l(zt({className:t,size:a,variant:r})),ref:i,...o}));T.displayName="Button";function Z({className:e,...t}){return(0,Xe.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var mn=y(require("react")),et=y(require("@radix-ui/react-tooltip"));var zr=et.Provider,Or=et.Root,_r=et.Trigger,er=mn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,Xe.jsx)(et.Portal,{children:(0,Xe.jsx)(et.Content,{ref:r,sideOffset:t,className:l("Xe-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})}));er.displayName=et.Content.displayName;var dd="sidebar:state",md=60*60*24*7,pd="16rem",ud="18rem",gd="3rem",fd="Xe",gn=E.createContext(null);function Aa(){let e=E.useContext(gn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ii=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:i,...n},s)=>{let d=Fr(),[m,c]=E.useState(!1),[p,u]=E.useState(e),g=t!=null?t:p,h=E.useCallback(k=>{if(a)return a==null?void 0:a(typeof k=="function"?k(g):k);u(k),document.cookie=`${dd}=${g}; path=/; max-age=${md}`},[a,g]),f=E.useCallback(()=>d?c(k=>!k):h(k=>!k),[d,h,c]);E.useEffect(()=>{let k=W=>{W.key===fd&&(W.metaKey||W.ctrlKey)&&(W.preventDefault(),f())};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[f]);let N=g?"expanded":"collapsed",v=E.useMemo(()=>({state:N,open:g,setOpen:h,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:f}),[N,g,h,d,m,c,f]);return(0,Xe.jsx)(gn.Provider,{value:v,children:(0,Xe.jsx)(zr,{delayDuration:0,children:(0,Xe.jsx)("div",{style:{"--sidebar-width":pd,"--sidebar-width-icon":gd,...o},className:l("group/sidebar-wrapper flex Xe-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...n,children:i})})})});ii.displayName="SidebarProvider";var aa=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...i},n)=>{let{isMobile:s,state:d,openMobile:m,setOpenMobile:c}=Aa();return a==="none"?(0,Xe.jsx)("div",{className:l("flex h-full Xe-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):s?(0,Xe.jsx)(Er,{open:m,onOpenChange:c,...i,children:(0,Xe.jsx)(Za,{"data-sidebar":"sidebar","data-mobile":"true",className:"Xe-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":ud},side:e,children:(0,Xe.jsx)("div",{className:"flex h-full Xe-full flex-col",children:o})})}):(0,Xe.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Xe.jsx)("div",{className:l("duration-200 relative h-svh Xe-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:Xe-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:Xe-[calc(var(--sidebar-width-icon)Xe+_theme(spacing.4))]":"group-data-[collapsible=icon]:Xe-[--sidebar-width-icon]")}),(0,Xe.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 Xe-10 hidden Xe-[--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]:Xe-[calc(var(--sidebar-width-icon)Xe+_theme(spacing.4)Xe+2px)]":"group-data-[collapsible=icon]:Xe-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:(0,Xe.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full Xe-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})})]})});aa.displayName="Sidebar";var si=E.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=Aa();return(0,Xe.jsxs)(T,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 Xe-7",e),onClick:i=>{t==null||t(i),o()},...a,children:[(0,Xe.jsx)(un.PanelLeft,{}),(0,Xe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});si.displayName="SidebarTrigger";var ni=E.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Aa();return(0,Xe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:l("absolute inset-y-0 Xe-20 hidden Xe-4 -translate-Xe-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:Xe-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Xe&]:cursor-Xe-resize [[data-side=right]Xe&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Xe&]:cursor-e-resize [[data-side=right][data-state=collapsed]Xe&]:cursor-Xe-resize","group-data-[collapsible=offcanvas]:translate-Xe-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Xe&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Xe&]:-left-2",e),...t})});ni.displayName="SidebarRail";var li=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("main",{ref:a,className:l("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}));li.displayName="SidebarInset";var ci=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(we,{ref:a,"data-sidebar":"input",className:l("h-8 Xe-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ci.displayName="SidebarInput";var ra=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ra.displayName="SidebarHeader";var oa=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));oa.displayName="SidebarFooter";var tr=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Ja,{ref:a,"data-sidebar":"separator",className:l("mx-2 Xe-auto bg-sidebar-border",e),...t}));tr.displayName="SidebarSeparator";var Ot=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Ot.displayName="SidebarContent";var je=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex Xe-full min-Xe-0 flex-col p-2",e),...t}));je.displayName="SidebarGroup";var Nt=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Xe.jsx)(t?Ws.Slot:"div",{ref:r,"data-sidebar":"group-label",className:l("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]:-Xe-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Nt.displayName="SidebarGroupLabel";var di=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,Xe.jsx)(t?Ws.Slot:"button",{ref:r,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square Xe-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}));di.displayName="SidebarGroupAction";var tt=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("Xe-full text-sm",e),...t}));tt.displayName="SidebarGroupContent";var De=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex Xe-full min-Xe-0 flex-col gap-1",e),...t}));De.displayName="SidebarMenu";var ge=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));ge.displayName="SidebarMenuItem";var bd=(0,an.cva)("peer/menu-button flex Xe-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"}}),Ye=E.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:i,...n},s)=>{let d=e?Ws.Slot:"button",{isMobile:m,state:c}=Aa(),p=(0,Xe.jsx)(d,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:l(bd({variant:a,size:r}),i),...n});return o?(typeof o=="string"&&(o={children:o}),(0,Xe.jsxs)(Or,{children:[(0,Xe.jsx)(_r,{asChild:!0,children:p}),(0,Xe.jsx)(er,{side:"right",align:"center",hidden:c!=="collapsed"||m,...o})]})):p});Ye.displayName="SidebarMenuButton";var ar=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,Xe.jsx)(t?Ws.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square Xe-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}));ar.displayName="SidebarMenuAction";var mi=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-Xe-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}));mi.displayName="SidebarMenuBadge";var pi=E.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Xe.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Xe.jsx)(Z,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Xe.jsx)(Z,{className:"h-4 flex-1 max-Xe-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});pi.displayName="SidebarMenuSkeleton";var _t=E.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-Xe-0 translate-Xe-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));_t.displayName="SidebarMenuSub";var Gt=E.forwardRef(({...e},t)=>(0,Xe.jsx)("li",{ref:t,...e}));Gt.displayName="SidebarMenuSubItem";var Vt=E.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},i)=>(0,Xe.jsx)(e?Ws.Slot:"a",{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-Xe-0 -translate-Xe-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}));Vt.displayName="SidebarMenuSubButton";var $r=y(require("react")),vd=1,hd=1e6;var ui=0;function yd(){return ui=(ui+1)%Number.MAX_SAFE_INTEGER,ui.toString()}var gi=new Map,fn=e=>{if(gi.has(e))return;let t=setTimeout(()=>{gi.delete(e),rr({type:"REMOVE_TOAST",toastId:e})},hd);gi.set(e,t)},xd=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vd)};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?fn(a):e.toasts.forEach(r=>{fn(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)}}},Gr=[],Vr={toasts:[]};function rr(e){Vr=xd(Vr,e),Gr.forEach(t=>{t(Vr)})}function Nd({...e}){let t=yd(),a=o=>rr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>rr({type:"DISMISS_TOAST",toastId:t});return rr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Wr(){let[e,t]=$r.useState(Vr);return $r.useEffect(()=>(Gr.push(t),()=>{let a=Gr.indexOf(t);a>-1&&Gr.splice(a,1)}),[e]),{...e,toast:Nd,dismiss:a=>rr({type:"DISMISS_TOAST",toastId:a})}}var ia=y(require("react")),re=y(require("@radix-ui/react-toast"));var Ur=re.Provider,or=ia.forwardRef(({className:e,...t},a)=>(0,$t.jsx)(re.Viewport,{ref:a,className:l("fixed top-0 Xe-[100] flex max-h-screen Xe-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-Xe-[420px]",e),...t}));or.displayName=re.Viewport.displayName;var wd=(0,an.cva)("group pointer-events-auto relative flex Xe-full items-center justify-between space-Xe-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Xe-0 data-[swipe=end]:translate-Xe-[var(--radix-toast-swipe-end-Xe)] data-[swipe=move]:translate-Xe-[var(--radix-toast-swipe-move-Xe)] 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-Xe-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"}}),ir=ia.forwardRef(({className:e,variant:t,...a},r)=>(0,$t.jsx)(re.Root,{ref:r,className:l(wd({variant:t}),e),...a}));ir.displayName=re.Root.displayName;var fi=ia.forwardRef(({className:e,...t},a)=>(0,$t.jsx)(re.Action,{ref:a,className:l("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}));fi.displayName=re.Action.displayName;var sr=ia.forwardRef(({className:e,...t},a)=>(0,$t.jsx)(re.Close,{ref:a,className:l("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,$t.jsx)(un.X,{className:"h-4 Xe-4"})}));sr.displayName=re.Close.displayName;var nr=ia.forwardRef(({className:e,...t},a)=>(0,$t.jsx)(re.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));nr.displayName=re.Title.displayName;var lr=ia.forwardRef(({className:e,...t},a)=>(0,$t.jsx)(re.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));lr.displayName=re.Description.displayName;function hn(){let{toasts:e}=Wr();return(0,Xe.jsxs)(Ur,{children:[e.map(function({id:t,title:a,description:r,action:o,...i}){return(0,Xe.jsxs)(ir,{...i,children:[(0,Xe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Xe.jsx)(nr,{children:a}),r&&(0,Xe.jsx)(lr,{children:r})]}),o,(0,Xe.jsx)(sr,{})]},t)}),(0,Xe.jsx)(or,{})]})}var yn=y(require("react")),bi=y(require("@radix-ui/react-toggle"));var cr=(0,an.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-Xe-9",sm:"h-8 px-1.5 min-Xe-8",lg:"h-10 px-2.5 min-Xe-10"}},defaultVariants:{variant:"default",size:"default"}}),vi=yn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,Xe.jsx)(bi.Root,{ref:o,className:l(cr({variant:t,size:a,className:e})),...r}));vi.displayName=bi.Root.displayName;var sa=y(require("react")),La=y(require("@radix-ui/react-toggle-group"));var wn=sa.createContext({size:"default",variant:"default"}),hi=sa.forwardRef(({className:e,variant:t,size:a,children:r,...o},i)=>(0,Xe.jsx)(La.Root,{ref:i,className:l("flex items-center justify-center gap-1",e),...o,children:(0,Xe.jsx)(wn.Provider,{value:{variant:t,size:a},children:r})}));hi.displayName=La.Root.displayName;var yi=sa.forwardRef(({className:e,children:t,variant:a,size:r,...o},i)=>{let n=sa.useContext(wn);return(0,Xe.jsx)(La.Item,{ref:i,className:l(cr({variant:n.variant||a,size:n.size||r}),e),...o,children:t})});yi.displayName=La.Item.displayName;var xi=y(require("react")),Ke=y(require("@radix-ui/react-scroll-area"));var Ut=xi.forwardRef(({className:e,children:t,...a},r)=>(0,Xe.jsxs)(Ke.Root,{ref:r,className:l("relative overflow-hidden",e),...a,children:[(0,Xe.jsx)(Ke.Viewport,{className:"h-full Xe-full rounded-[inherit]",children:t}),(0,Xe.jsx)(jr,{}),(0,Xe.jsx)(Ke.Corner,{})]}));Ut.displayName=Ke.Root.displayName;var jr=xi.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,Xe.jsx)(Ke.ScrollAreaScrollbar,{ref:r,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Xe-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,Xe.jsx)(Ke.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));jr.displayName=Ke.ScrollAreaScrollbar.displayName;var Cn=y(require("react")),at=y(require("@radix-ui/react-popover"));var dr=at.Root,mr=at.Trigger,Pn=at.Anchor,Ea=Cn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Xe.jsx)(at.Portal,{children:(0,Xe.jsx)(at.Content,{ref:o,align:t,sideOffset:a,className:l("Xe-50 Xe-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})}));Ea.displayName=at.Content.displayName;var Rn=y(require("react")),wi=y(require("@radix-ui/react-label"));var Cd=(0,an.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),X=Rn.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(wi.Root,{ref:a,className:l(Cd(),e),...t}));X.displayName=wi.Root.displayName;var Tn=y(require("react")),na=y(require("@radix-ui/react-hover-card"));var Dn=na.Root,Mn=na.Trigger,Ci=Tn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,Xe.jsx)(na.Content,{ref:o,align:t,sideOffset:a,className:l("Xe-50 Xe-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}));Ci.displayName=na.Content.displayName;var pr=y(require("react")),ee=y(require("@radix-ui/react-dialog"));var Me=ee.Root,Ba=ee.Trigger,Pi=ee.Portal,Yr=ee.Close,Kr=pr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(ee.Overlay,{ref:a,className:l("fixed inset-0 Xe-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}));Kr.displayName=ee.Overlay.displayName;var Ce=pr.forwardRef(({className:e,children:t,...a},r)=>(0,Xe.jsxs)(Pi,{children:[(0,Xe.jsx)(Kr,{}),(0,Xe.jsxs)(ee.Content,{ref:r,className:l("fixed left-[50%] top-[50%] Xe-50 grid Xe-full max-Xe-lg translate-Xe-[-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-Xe-left-1/2 data-[state=closed]:slide-out-Xe-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,Xe.jsxs)(ee.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Xe.jsx)(un.X,{className:"h-4 Xe-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ce.displayName=ee.Content.displayName;var Oe=({className:e,...t})=>(0,Xe.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Oe.displayName="DialogHeader";var Ri=({className:e,...t})=>(0,Xe.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Xe-2",e),...t});Ri.displayName="DialogFooter";var _e=pr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(ee.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));_e.displayName=ee.Title.displayName;var Si=pr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(ee.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Si.displayName=ee.Description.displayName;var Xt=y(require("react")),Re=require("cmdk");var qr=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Re.Command,{ref:a,className:l("flex h-full Xe-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));qr.displayName=Re.Command.displayName;var En=({children:e,...t})=>(0,Xe.jsx)(Me,{...t,children:(0,Xe.jsx)(Ce,{className:"overflow-hidden p-0",children:(0,Xe.jsx)(qr,{className:"[&Xe[cmdk-group-heading]]:px-2 [&Xe[cmdk-group-heading]]:font-medium [&Xe[cmdk-group-heading]]:text-muted-foreground [&Xe[cmdk-group]:not([hidden])Xe~[cmdk-group]]:Xe-0 [&Xe[cmdk-group]]:px-2 [&Xe[cmdk-input-wrapper]_svg]:h-5 [&Xe[cmdk-input-wrapper]_svg]:Xe-5 [&Xe[cmdk-input]]:h-12 [&Xe[cmdk-item]]:px-2 [&Xe[cmdk-item]]:py-3 [&Xe[cmdk-item]_svg]:h-5 [&Xe[cmdk-item]_svg]:Xe-5",children:e})})}),ki=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsxs)("div",{className:"flex items-center border-Xe px-3","cmdk-input-wrapper":"",children:[(0,Xe.jsx)(un.Search,{className:"mr-2 h-4 Xe-4 shrink-0 opacity-50"}),(0,Xe.jsx)(Re.Command.Input,{ref:a,className:l("flex h-10 Xe-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));ki.displayName=Re.Command.Input.displayName;var Ti=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Re.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-Xe-hidden",e),...t}));Ti.displayName=Re.Command.List.displayName;var Di=Xt.forwardRef((e,t)=>(0,Xe.jsx)(Re.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Di.displayName=Re.Command.Empty.displayName;var Mi=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Re.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&Xe[cmdk-group-heading]]:px-2 [&Xe[cmdk-group-heading]]:py-1.5 [&Xe[cmdk-group-heading]]:text-xs [&Xe[cmdk-group-heading]]:font-medium [&Xe[cmdk-group-heading]]:text-muted-foreground",e),...t}));Mi.displayName=Re.Command.Group.displayName;var Ii=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Re.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Ii.displayName=Re.Command.Separator.displayName;var Ai=Xt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Re.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Ai.displayName=Re.Command.Item.displayName;var Li=({className:e,...t})=>(0,Xe.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Li.displayName="CommandShortcut";var Jr=y(require("react"));var Pd=(0,an.cva)("relative Xe-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"}}),Ei=Jr.forwardRef(({className:e,variant:t,...a},r)=>(0,Xe.jsx)("div",{ref:r,role:"alert",className:l(Pd({variant:t}),e),...a}));Ei.displayName="Alert";var Bi=Jr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Bi.displayName="AlertTitle";var Hi=Jr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Hi.displayName="AlertDescription";var Zr=y(require("react")),Ct=y(require("@radix-ui/react-avatar"));var Pt=Zr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Ct.Root,{ref:a,className:l("relative flex h-10 Xe-10 shrink-0 overflow-hidden rounded-full",e),...t}));Pt.displayName=Ct.Root.displayName;var Rt=Zr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Ct.Image,{ref:a,className:l("aspect-square h-full Xe-full",e),...t}));Rt.displayName=Ct.Image.displayName;var St=Zr.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(Ct.Fallback,{ref:a,className:l("flex h-full Xe-full items-center justify-center rounded-full bg-muted",e),...t}));St.displayName=Ct.Fallback.displayName;var Fi=(0,an.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,Xe.jsx)("div",{className:l(Fi({variant:t}),e),...a})}var ur=y(require("@radix-ui/react-checkbox")),On=y(require("react")),rt=On.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(ur.Root,{className:l("peer h-4 Xe-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,Xe.jsx)(ur.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Xe.jsx)(un.Check,{className:"h-4 Xe-4"})})}));rt.displayName=ur.Root.displayName;var H=y(require("@radix-ui/react-select")),jt=y(require("react")),ca=H.Root,Rd=H.Group,da=H.Value,Yt=jt.forwardRef(({children:e,className:t,...a},r)=>(0,Xe.jsxs)(H.Trigger,{className:l("flex h-10 Xe-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,Xe.jsx)(H.Icon,{asChild:!0,children:(0,Xe.jsx)(un.ChevronDown,{className:"h-4 Xe-4 opacity-50"})})]}));Yt.displayName=H.Trigger.displayName;var zi=jt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(H.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Xe.jsx)(un.ChevronUp,{className:"h-4 Xe-4"})}));zi.displayName=H.ScrollUpButton.displayName;var Oi=jt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(H.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Xe.jsx)(un.ChevronDown,{className:"h-4 Xe-4"})}));Oi.displayName=H.ScrollDownButton.displayName;var Kt=jt.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,Xe.jsx)(H.Portal,{children:(0,Xe.jsxs)(H.Content,{className:l("relative Xe-50 max-h-96 min-Xe-[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-Xe-1 data-[side=right]:translate-Xe-1 data-[side=top]:-translate-y-1",t),position:a,ref:o,...r,children:[(0,Xe.jsx)(zi,{}),(0,Xe.jsx)(H.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Xe-full min-Xe-[var(--radix-select-trigger-width)]"),children:e}),(0,Xe.jsx)(Oi,{})]})}));Kt.displayName=H.Content.displayName;var _n=jt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(H.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));_n.displayName=H.Label.displayName;var qt=jt.forwardRef(({children:e,className:t,...a},r)=>(0,Xe.jsxs)(H.Item,{className:l("relative flex Xe-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,Xe.jsx)("span",{className:"absolute left-2 flex h-3.5 Xe-3.5 items-center justify-center",children:(0,Xe.jsx)(H.ItemIndicator,{children:(0,Xe.jsx)(un.Check,{className:"h-4 Xe-4"})})}),(0,Xe.jsx)(H.ItemText,{children:e})]}));qt.displayName=H.Item.displayName;var Gn=jt.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)(H.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Gn.displayName=H.Separator.displayName;var Vn=y(require("react")),Jt=Vn.forwardRef(({className:e,...t},a)=>(0,$n.jsx)("textarea",{className:l("flex min-h-[80px] Xe-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}));Jt.displayName="Textarea";var Wn=require("react-day-picker");function gr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,Xe.jsx)(Wn.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-Xe-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center Xe-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Xe-1 flex items-center",nav_button:l(zt({variant:"outline"}),"h-7 Xe-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"Xe-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md Xe-8 font-normal text-[0.8rem]",row:"flex Xe-full Xe-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:Xe-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:l(zt({variant:"ghost"}),"h-8 Xe-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})}gr.displayName="Calendar";var Je=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("Xe-")?e+" ":"Xe-"+e+" ",i="Xe-"+t,n=r!=null?r:"",s=o+i+" Xe-"+a+" "+n;return(0,Xe.jsx)("i",{className:s})};var jn=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,Xe.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,Xe.jsx)("div",{className:"Xe-12 h-12 ",children:(0,Xe.jsx)(Je,{type:r,iconName:a,className:"Xe-12 h-12 text-white"})}),(0,Xe.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,Xe.jsx)("p",{className:"text-white text-sm",children:t})]});var Yn=y(require("next/image")),Kn=y(require("next/link"));var pa=y(require("react"));var me=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));me.displayName="Card";var Ie=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ie.displayName="CardHeader";var Ae=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Ae.displayName="CardTitle";var Sd=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Sd.displayName="CardDescription";var fe=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("p-6 Xe-0",e),...t}));fe.displayName="CardContent";var kd=pa.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("div",{ref:a,className:l("flex items-center p-6 Xe-0",e),...t}));kd.displayName="CardFooter";function qn({name:e,logo:t,href:a}){return(0,Xe.jsx)(me,{className:"Xe-full max-Xe-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Xe.jsxs)(Kn.default,{href:a,className:"block",children:[(0,Xe.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Xe.jsx)("div",{className:"relative Xe-full h-full",children:t&&(0,Xe.jsx)(Yn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Xe.jsx)(fe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Xe-Xe from-gray-900 via-brand-one Xe-gray-900",children:(0,Xe.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 Jn({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let i=s=>{switch(s){case"birthday":return(0,Xe.jsx)(un.Cake,{className:"h-4 Xe-4"});case"workAnniversary":return(0,Xe.jsx)(un.Award,{className:"h-4 Xe-4"});case"companyEvent":return(0,Xe.jsx)(un.PartyPopper,{className:"h-4 Xe-4"});default:return(0,Xe.jsx)(un.CalendarDays,{className:"h-4 Xe-4"})}},n=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 Xe-slate-500"}};return(0,Xe.jsxs)(me,{className:`Xe-full max-Xe-md overflow-hidden bg-gradient-Xe-Xe ${n(e)}`,children:[(0,Xe.jsxs)(Ie,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,Xe.jsxs)(Pt,{className:"h-14 Xe-14 border-2 border-white",children:[(0,Xe.jsx)(Rt,{src:o,alt:a||"Event"}),(0,Xe.jsx)(St,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Xe.jsxs)("div",{className:"flex flex-col",children:[(0,Xe.jsx)(Ae,{className:"text-xl",children:a||"Untitled Event"}),(0,Xe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Xe.jsx)(un.CalendarDays,{className:"mr-1 inline-block h-4 Xe-4"}),t?new Date(t).toLocaleDateString("Xe-GB"):"Date not specified"]})]})]}),(0,Xe.jsxs)(fe,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,Xe.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,Xe.jsxs)(qe,{variant:"secondary",className:`${n(e)} text-white/80`,children:[i(e),(0,Xe.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-Xe])([Xe-Z])/g,"$1 $2").split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" "):"Event"})]})]})]})}var Zn=y(require("next/link"));var el=y(require("next/image")),Qn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function tl({slug:e,image:t,title:a,description:r}){return(0,Xe.jsxs)(Zn.default,{href:e,className:"group/portfolio relative Xe-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Xe.jsx)("span",{className:l("absolute inset-0 Xe-[2] bg-gradient-1 from-primary/0 Xe-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,Xe.jsx)(el.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
+ (min-width:${Qn.md}) 50vw,
8
+ (min-width:${Qn.lg}) 25vw,
9
9
  100vw
10
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,De.jsx)("div",{className:"relative De-10 flex De-full flex-col",children:(0,De.jsxs)("div",{className:"De-auto divide-De md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,De.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,De.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,De.jsx)("p",{className:"De-[13px] overflow-hidden pt-[11px] text-body",children:(0,De.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 hi=v(require("next/image")),Lr=v(require("path"));function sd(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function nd(e){return e.startsWith("http")}function ld(e,t){let a=e;if(sd(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(nd(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=Lr.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=Lr.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=`/${Lr.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function cd({src:e,alt:t}){let[a,r]=(0,ur.useState)(!1),[o,i]=(0,ur.useState)(!1),[n,l]=(0,ur.useState)({width:0,height:0}),d=()=>{o&&r(!0)},m=()=>{r(!1)},c=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;l({width:u,height:g}),i(u>300||g>300)};return(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"De-[300px]":`De-[${n.height}px]`}`,onClick:d,children:(0,De.jsx)(hi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-w-full max-De-full"})}),(0,De.jsx)(ma,{open:a,onOpenChange:r,children:(0,De.jsxs)(Gt,{className:"flex flex-col items-center justify-center",children:[(0,De.jsxs)($a,{className:"flex w-full justify-end",children:[(0,De.jsx)(Va,{className:"hidden",children:t}),(0,De.jsx)(Rr,{})]}),(0,De.jsx)("div",{className:"flex items-center justify-center",children:(0,De.jsx)(hi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function zn({props:e,baseContext:t}){let{src:a}=e;return a=ld(a,t),(0,De.jsx)(cd,{src:a,alt:e.alt})}var Fn=v(require("next/link"));function le({children:e,href:t,openNewTab:a,...r}){return(0,De.jsx)(Fn.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function dd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function md({icon:e,title:t,description:a,slug:r}){return(0,De.jsxs)("article",{className:s(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative De-1 block De-full space-De-6 overflow-hidden rounded-5 p-6 md:space-De-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,De.jsxs)("div",{className:"flex items-center gap-5",children:[(0,De.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:dd(e)?(0,De.jsx)(Le,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,De.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,De.jsx)(le,{href:r,children:t}):t})]}),(0,De.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,De.jsx)(H,{asChild:!0,className:s(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,De.jsxs)(le,{href:r,children:[(0,De.jsx)("span",{children:"Read More"}),(0,De.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,De.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,De.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,De.jsx)("span",{className:"invisible absolute bottom-0 left-0 De-[2px] w-full scale-De-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-De-100 group-hover/service:opacity-100"})]})}var Br=require("react-icons/fa6");function pd({title:e,description:t,features:a,price:r,duration:o,button:i}){return(0,De.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,De.jsxs)("div",{className:"De-full border-card p-6 dark:border-opacity-20 max-lg:border-De max-lg:pt-14 lg:border-r lg:p-10",children:[(0,De.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,De.jsx)("p",{children:t})]}),(0,De.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,De.jsxs)("div",{className:"flex flex-col justify-stretch gap-De-14 gap-De-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,De.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((n,l)=>(0,De.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,De.jsx)("span",{className:"text-accent pt-1",children:(0,De.jsx)(Br.FaCircleCheck,{})}),(0,De.jsx)("span",{children:n})]},l))}),(0,De.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,De.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),i&&(0,De.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,De.jsx)(H,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,De.jsxs)(le,{href:i.href,openNewTab:i.openNewTab,children:[(0,De.jsx)("span",{className:"relative De-1",children:i.label}),(0,De.jsx)("span",{className:"relative De-1 pl-2",children:(0,De.jsx)(Br.FaAnglesRight,{})})]})})})]})})]})}var Gn=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,De.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function ud({icon:e,title:t,body:a,color:r="secondary"}){return(0,$e.jsx)($e.Fragment,{children:(0,$e.jsxs)("div",{className:"flex py-0 min-De-16",children:[(0,$e.jsx)("div",{className:"px-[2%] flex items-center",children:(0,$e.jsx)("div",{className:"w-12 De-12",children:(0,$e.jsx)(Le,{type:e.type,iconName:e.name})})}),(0,$e.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,$e.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var $n=v(require("next/image"));function fd(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,De.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,De.jsx)($n.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,De.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,De.jsx)("div",{className:"De-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,De.jsxs)("a",{href:t,children:[(0,De.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,De.jsx)("div",{className:"De-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var gd=(e,t)=>`from-brand-${e} to-brand-${t}`;function bd({...e}){let t=gd(e.brandFrom||"one",e.brandTo||"two");return(0,De.jsxs)("div",{className:`relative isolate flex items-center gap-De-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,De.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,De.jsxs)("a",{href:e.url,children:[(0,De.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,De.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,De.jsx)("circle",{r:1,cx:1,cy:1})}),(0,De.jsx)("span",{children:e.message&&e.message})]}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,De.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,De.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,De.jsx)("div",{className:"flex flex-1 justify-end"})]})}var ja=v(require("react")),vd={Architecture:(0,De.jsx)($s.DraftingCompass,{className:"De-5 w-5 text-blue-600"}),Engineering:(0,De.jsx)($s.Code,{className:"De-5 w-5 text-green-600"}),Development:(0,De.jsx)($s.Code,{className:"De-5 w-5 text-purple-600"}),Delivery:(0,De.jsx)($s.GanttChart,{className:"De-5 w-5 text-red-600"})},hd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=e.reports.length>0;return(0,De.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,De.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,De.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,De.jsx)($s.ChevronDown,{className:"De-4 w-4"}):(0,De.jsx)($s.ChevronRight,{className:"De-4 w-4"})}),(0,De.jsx)("div",{className:"w-10 De-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,De.jsx)($s.Users,{className:"De-6 w-6 text-gray-500"})}),(0,De.jsxs)("div",{children:[(0,De.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,De.jsxs)("div",{className:"flex items-center De-1",children:[vd[e.discipline],(0,De.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,De.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Vn=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,ja.useState)(t<1),i=()=>o(!r),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),l=c=>n(c)||c.reports.some(l),d=a===""||l(e),m=n(e);return ja.default.useEffect(()=>{a!==""&&l(e)&&o(!0)},[a,e]),d?(0,De.jsxs)("div",{children:[(0,De.jsx)(hd,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:m}),r&&e.reports.map((c,p)=>(0,De.jsx)(Vn,{person:c,level:t+1,searchTerm:a},p))]}):null};function yd(){let[e,t]=(0,ja.useState)("");return(0,De.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,De.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,De.jsxs)("div",{className:"mb-4 relative",children:[(0,De.jsx)("input",{type:"text",placeholder:"Search by name, discipline, ur 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,De.jsx)($s.Search,{className:"absolute right-3 top-2.5 De-5 w-5 text-gray-400"})]}),(0,De.jsx)("div",{className:"space-De-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,De.jsx)(Vn,{person:r,level:0,searchTerm:e},o))})]})}function xd({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:"De 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:"De 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:"De set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"De phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"De 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,De.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,De.jsxs)("div",{className:"lg:col-span-1 space-De-6 flex flex-col",children:[(0,De.jsxs)(ne,{className:"flex-grow",children:[(0,De.jsx)(Ee,{className:"bg-primary text-primary-foreground",children:(0,De.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,De.jsx)($s.Users,{className:"De-5 w-5"}),"Team"]})}),(0,De.jsxs)(xe,{className:"p-6",children:[(0,De.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"De small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,De.jsxs)("div",{className:"space-De-6",children:[(0,De.jsx)("div",{className:"space-De-2",children:e.leadership.map((o,i)=>(0,De.jsxs)("div",{className:"flex items-center justify-between",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)($s.User,{className:"De-4 w-4 text-muted-foreground"}),(0,De.jsx)("span",{children:o.role})]}),o.isFTE&&(0,De.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,De.jsx)("div",{className:"space-De-2",children:e.core.map((o,i)=>(0,De.jsxs)("div",{className:"flex items-center justify-between",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2",children:[(0,De.jsx)($s.User,{className:"De-4 w-4 text-muted-foreground"}),(0,De.jsx)("span",{children:o.role}),o.count&&(0,De.jsxs)("span",{children:["(",o.count,"De)"]})]}),o.isFTE&&(0,De.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,De.jsxs)("div",{children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,De.jsx)($s.Users2,{className:"De-4 w-4 text-muted-foreground"}),(0,De.jsx)("span",{children:"SME input:"})]}),(0,De.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,De.jsxs)(ne,{children:[(0,De.jsx)(Ee,{className:"bg-primary text-primary-foreground",children:(0,De.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,De.jsx)($s.PoundSterling,{className:"De-5 w-5"}),"Fee"]})}),(0,De.jsx)(xe,{className:"p-6",children:(0,De.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,De.jsxs)(ne,{className:"lg:col-span-1 flex flex-col",children:[(0,De.jsx)(Ee,{className:"bg-primary text-primary-foreground",children:(0,De.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,De.jsx)($s.FileText,{className:"De-5 w-5"}),"Outputs"]})}),(0,De.jsxs)(xe,{className:"p-6 flex-grow overflow-auto",children:[(0,De.jsx)("ol",{className:"list-decimal list-inside space-De-4",children:t.map((o,i)=>(0,De.jsxs)("li",{className:"text-sm",children:[(0,De.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,De.jsx)("span",{className:"text-muted-foreground",children:o.description})]},i))}),(0,De.jsx)("p",{className:"De-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,De.jsxs)(ne,{className:"lg:col-span-1 flex flex-col",children:[(0,De.jsx)(Ee,{className:"bg-primary text-primary-foreground",children:(0,De.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,De.jsx)($s.Lightbulb,{className:"De-5 w-5"}),"Benefits"]})}),(0,De.jsx)(xe,{className:"p-6 flex-grow overflow-auto",children:(0,De.jsx)("ul",{className:"space-De-4",children:a.map((o,i)=>(0,De.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,De.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,De.jsx)("span",{children:o})]},i))})})]})]})}function wd(){return(0,De.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,De.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,De.jsxs)("div",{className:"space-De-4 bg-primary p-3 rounded-lg",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 relative De-10",children:[(0,De.jsx)("div",{className:"w-10 De-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,De.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,De.jsx)($s.BarChart3,{className:"w-8 De-8"})]}),(0,De.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,De.jsx)("p",{className:"text-secondary text-sm",children:"Te excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,De.jsxs)("ul",{className:"text-sm",children:[(0,De.jsx)("li",{children:"Strategy definition"}),(0,De.jsx)("li",{children:"Programme leadership"}),(0,De.jsx)("li",{children:"Detailed planning"}),(0,De.jsx)("li",{children:"\u2022 Financial control"}),(0,De.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,De.jsxs)("div",{className:"space-De-4",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 relative De-10",children:[(0,De.jsx)("div",{className:"w-10 De-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,De.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,De.jsx)($s.CogIcon,{className:"w-8 De-8"})]}),(0,De.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,De.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,De.jsx)("p",{className:"text-sm",children:"Te deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,De.jsxs)("div",{className:"space-De-4",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 relative De-10",children:[(0,De.jsx)("div",{className:"w-10 De-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,De.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,De.jsx)($s.Building2,{className:"w-8 De-8"})]}),(0,De.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,De.jsx)("p",{className:"text-sky-200 text-sm",children:"Te 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,De.jsx)("p",{className:"text-sm",children:"Te have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,De.jsxs)("div",{className:"space-De-4",children:[(0,De.jsxs)("div",{className:"flex items-center gap-2 relative De-10",children:[(0,De.jsx)("div",{className:"w-10 De-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,De.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,De.jsx)($s.BadgeCheck,{className:"w-8 De-8"})]}),(0,De.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,De.jsx)("p",{className:"text-sky-200 text-sm",children:"Te have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,De.jsx)("p",{className:"text-sm",children:"As De XXXX strategic partner, De have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var yi=({className:e,content:t,style:a})=>(0,De.jsx)("div",{className:s("mx-auto my-8 w-full",e),children:(0,De.jsx)("div",{className:s("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,De.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var xi=v(require("next/link")),Ue=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:n,reference:l,size:d,url:m}=e,c=t==="reference"&&typeof(l==null?void 0:l.value)=="object"&&l.value.slug?`${(l==null?void 0:l.relationTo)!=="pages"?`/${l==null?void 0:l.relationTo}`:""}/${l.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,De.jsxs)(xi.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]}):(0,De.jsx)(H,{asChild:!0,className:o,size:p,variant:a,children:(0,De.jsxs)(xi.default,{className:s(o),href:c||m||"",...u,children:[i&&i,r&&r]})})};var Ka=({links:e,richText:t})=>(0,De.jsx)("div",{className:"container",children:(0,De.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,De.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,De.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,De.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,De.jsx)(Ue,{size:"lg",...a},r))})]})});var zr=require("prism-react-renderer");function wi({code:e}){let[t,a]=(0,ur.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,De.jsx)("div",{className:"flex justify-end align-middle",children:(0,De.jsxs)(H,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,De.jsx)("p",{children:t}),(0,De.jsx)("div",{className:"w-6 De-6 dark:invert",children:(0,De.jsx)($s.ClipboardCopy,{})})]})})}var Xn=({code:e,language:t=""})=>e?(0,De.jsx)(zr.Highlight,{code:e,language:t,theme:zr.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,De.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-De-auto",children:[o.map((i,n)=>(0,De.jsxs)("div",{...a({className:"table-row",line:i}),children:[(0,De.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,De.jsx)("span",{className:"table-cell pl-4",children:i.map((l,d)=>(0,De.jsx)("span",{...r({token:l})},d))})]},n)),(0,De.jsx)(wi,{code:e})]})}):null;var Pi=({className:e,code:t,language:a})=>(0,De.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,De.jsx)(Xn,{code:t,language:a})});var Yn=v(require("next/image")),Nd={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},jn="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=",Kn=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:n,src:l,loading:d}=e,m,c,p=t,u=l||"";if(!u&&i&&typeof i=="object"){let{alt:f,filename:w,height:L,url:F,width:ue}=i;m=ue,c=L,p=f||"",u=F||jn}let g=d||"lazy",P=n||Object.entries(Nd).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,De.jsx)("picture",{children:(0,De.jsx)(Yn.default,{alt:p||"",className:s(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:jn,priority:g!=="lazy"&&o,quality:100,loading:g,sizes:P,src:u,width:a?void 0:m})})};var qn=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Jn=()=>{if(qn){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 Qn=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,ur.useRef)(null);if((0,ur.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=a;return(0,De.jsx)("video",{autoPlay:!0,className:s(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,De.jsx)("source",{src:`${Jn()}/media/${i}`})})}return null};var pt=e=>{var n;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((n=r==null?void 0:r.mimeType)==null?void 0:n.includes("video"));return(0,De.jsx)(a||ur.Fragment,{...a!==null?{className:t}:{},children:o?(0,De.jsx)(Qn,{...e}):(0,De.jsx)(Kn,{...e})})};var pa=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,De.jsx)("div",{className:s("",{container:a},t),children:(0,De.jsx)(pt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var Ti=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,De.jsx)("div",{className:s("",{container:a},t),children:(0,De.jsx)(pt,{imgClassName:s("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var qa=({title:e,description:t,features:a,id:r})=>(0,De.jsxs)("section",{className:s("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,De.jsx)("h2",{className:"mb-6 De-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,De.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,De.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,De.jsx)(Q,{content:t,enableGutter:!1})}),(0,De.jsx)("div",{className:`grid gap-8 De-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,i)=>{let n=(0,De.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,De.jsx)("div",{className:"text-accent De-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,De.jsx)("i",{className:`${o.icon.type} ur-${o.icon.icon} ur-4x`})}),(0,De.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,De.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,De.jsx)("div",{className:"text-lg opacity-80",children:(0,De.jsx)(Q,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,De.jsx)("a",{href:o.link.url?o.link.url:"#",className:"no-underline group",children:n},i):n})})]});var Or=v(require("react"));function Gr({nodes:e}){return(0,De.jsx)(Or.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"){let i=(0,De.jsx)(Or.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,De.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,De.jsx)("em",{children:i},a)),t.format&4&&(i=(0,De.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,De.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,De.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,De.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,De.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,De.jsx)("table",{children:(0,De.jsx)("tbody",{children:t.children.map((i,n)=>(0,De.jsx)("De",{children:i.children.map((l,d)=>(0,De.jsx)("td",{children:Gr({nodes:l.children})},d))},n))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let n of i.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return Gr({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,n=i==null?void 0:i.blockType;if(!i||!n)return null;switch(n){case"cta":return(0,De.jsx)(Ka,{...i},a);case"mediaBlock":return(0,De.jsx)(pa,{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,De.jsx)(Ti,{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,De.jsx)(yi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,De.jsx)(Pi,{className:"col-start-2",...i},a);case"features":return(0,De.jsx)(qa,{...i},a);default:return null}}else switch(t.type){case"linebreak":return(0,De.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,De.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let i=t==null?void 0:t.tag;return(0,De.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,De.jsx)(i,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,De.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,De.jsx)("li",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,De.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let i=t.fields;return(0,De.jsx)(Ue,{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,De.jsx)(Ue,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var Q=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,De.jsx)("div",{className:s({"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&&Gr({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};var Di=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,De.jsx)("div",{className:"container my-6",children:(0,De.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-De-8 gap-De-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:i,link:n,richText:l,size:d}=r;return(0,De.jsxs)("div",{className:s(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[l&&(0,De.jsx)(Q,{content:l,enableGutter:!1}),i&&(0,De.jsx)(Ue,{...n})]},o)})})})};var $r=v(require("next/image"));function Pd({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,De.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,De.jsx)("div",{className:"absolute left-0 top-0 De-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,De.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] De-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,De.jsx)($r.default,{src:e,alt:"Header background",className:"De-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,De.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,De.jsx)("div",{className:"De-16 w-32 md:De-24 md:w-48",children:(0,De.jsx)($r.default,{src:r,alt:"Company logo",className:"De-full w-full object-contain",width:192,height:96})}),o&&(0,De.jsx)("div",{className:"De-10 w-20 md:De-12 md:w-24",children:(0,De.jsx)($r.default,{src:o,alt:"Customer logo",className:"De-full w-full object-contain",width:96,height:48})})]}),(0,De.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,De.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,De.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var tl={content:Di,cta:Ka,mediaBlock:pa,imageBlock:pa,features:qa},Mi=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,De.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{let{blockType:i}=r;if(i&&i in tl){let n=tl[i];if(n)return(0,De.jsx)("div",{className:"my-6",children:(0,De.jsx)(n,{...r})},o)}return null})}):null};var il=v(require("clsx"));var al=require("next/navigation");function Cd({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,al.useRouter)(),o=(0,ur.useRef)(null),i=(0,ur.useRef)(null),n=(0,ur.useRef)(0),l=(0,ur.useRef)(!1),d=(0,ur.useRef)(0),m=(0,ur.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,P=u==null?void 0:u.closest("a");d.current=p.button,P?l.current=!0:(l.current=!1,n.current=g)}},[r,o,i,n]),c=(0,ur.useCallback)(p=>{var u,g;if((u=i.current)!=null&&u.href){let f=+new Date-n.current;if((g=i.current)!=null&&g.href&&f<=250&&!l.current&&d.current===0&&!p.ctrlKey)if(e){let w=t?"_blank":"_self";window.open(i.current.href,w)}else r.push(i.current.href,{scroll:a})}},[r,o,i,n]);return(0,ur.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",c))}},[o,i,r]),{card:{ref:o},link:{ref:i}}}var rl=Cd;var ol=v(require("next/link"));var Ja=e=>{let{card:t,link:a}=rl({}),{className:r,doc:o,relationTo:i,showCategories:n,title:l}=e,{slug:d,categories:m,meta:c,title:p}=o||{},{description:u,image:g}=c||{},P=m&&Array.isArray(m)&&m.length>0,f=l||p,w=u==null?void 0:u.replace(/\s/g," "),L=`/${i}/${d}`;return(0,De.jsxs)("article",{className:s("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,De.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,De.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,De.jsx)(pt,{resource:g,size:"33vw"})]}),(0,De.jsxs)("div",{className:"p-4",children:[n&&P&&(0,De.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&P&&(0,De.jsx)("div",{children:m==null?void 0:m.map((F,ue)=>{if(typeof F=="object"){let{title:Je}=F,ta=Je||"Untitled category",sr=ue===m.length-1;return(0,De.jsxs)(ur.Fragment,{children:[ta,!sr&&(0,De.jsx)(ur.Fragment,{children:", \xA0"})]},ue)}return null})})}),f&&(0,De.jsx)("div",{className:"prose",children:(0,De.jsx)("h3",{children:(0,De.jsx)(ol.default,{className:"not-prose",href:L,ref:a.ref,children:f})})}),u&&(0,De.jsx)("div",{className:"De-2",children:u&&(0,De.jsx)("p",{children:w})})]})]})};var Rd=e=>{let{className:t,docs:a,introContent:r}=e;return(0,De.jsxs)("div",{className:(0,il.default)("container",t),children:[r&&(0,De.jsx)(Q,{content:r,enableGutter:!1}),(0,De.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,De.jsx)(Ja,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var Qa=require("framer-motion");var sl=e=>{let[t,a]=(0,ur.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},n=()=>{a(p=>(p+1)%r.length)},l=()=>{a(p=>(p-1+r.length)%r.length)},m=(0,ur.useCallback)(((p,u)=>{let g;return(...P)=>{clearTimeout(g),g=setTimeout(()=>p(...P),u)}})(p=>{p.deltaY>0?n():l()},300),[]),c=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&l()};return(0,ur.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",c)}),[]),(0,De.jsxs)("div",{className:"flex De-screen relative",children:[(0,De.jsx)("div",{className:"fixed left-0 top-0 flex De-screen w-9 De-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,u)=>(0,De.jsx)("button",{className:`group relative flex items-center justify-center my-2 De-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>i(u),children:(0,De.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-De-1/2 translate-De-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-De-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,u)=>(0,De.jsx)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,De.jsx)(Mi,{blocks:[p]})},u)),(0,De.jsx)("button",{className:"absolute bottom-4 left-1 De-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,De.jsx)(Sd,{})})]})},Sd=()=>(0,De.jsx)(Qa.AnimatePresence,{children:(0,De.jsx)(Qa.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:s("w-fit min-De-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,De.jsx)(Qa.motion.div,{initial:{De:0},animate:{De:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:s("w-[12px] De-[12px] rounded-full","bg-gray-800")})})});var nl=v(require("next/link")),ll=v(require("next/image"));function cl({blogs:e,width:t=3}){return(0,De.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,De.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,De.jsx)(nl.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,De.jsxs)("div",{className:"relative size-full",children:[(0,De.jsx)(ll.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,De.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,De.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,De.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 dl({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:n,companiesCount:l,dealsClosed:d,leadsGenerated:m}){return(0,De.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,De.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,De.jsxs)("div",{className:"max-w-4xl",children:[(0,De.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,De.jsx)("h1",{className:"De-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,De.jsx)("p",{className:"De-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,De.jsxs)("section",{className:"De-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-De-8 lg:gap-De-16",children:[(0,De.jsxs)("div",{className:"lg:pr-8",children:[(0,De.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,De.jsx)("p",{className:"De-6 text-base/7 text-gray-600",children:o})]}),(0,De.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,De.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,De.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,De.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,De.jsxs)("div",{className:"max-lg:De-16 lg:col-span-1",children:[(0,De.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,De.jsx)("hr",{className:"De-6 border-t border-gray-200"}),(0,De.jsxs)("dl",{className:"De-6 grid grid-cols-1 gap-De-8 gap-De-4 sm:grid-cols-2",children:[(0,De.jsxs)("div",{className:"flex flex-col gap-De-2 border-De border-dotted border-gray-200 pb-4",children:[(0,De.jsx)("De",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,De.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-De-2 border-De border-dotted border-gray-200 pb-4",children:[(0,De.jsx)("De",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,De.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[l,"De"]})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-De-2 max-sm:border-De max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,De.jsx)("De",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,De.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,De.jsxs)("div",{className:"flex flex-col gap-De-2",children:[(0,De.jsx)("De",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,De.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var ml=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,n=o<10?`0${o}`:o,l=a.getFullYear();return`${n}/${i}/${l}`};var pl=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},ul=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function fl({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:n=!1}){let l=s(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,De.jsxs)("div",{className:l,children:[e&&(0,De.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,De.jsx)("h2",{className:s("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,De.jsx)("p",{className:"De-5 whitespace-pre-line",children:a}):a&&(0,De.jsx)(Q,{content:a,enableGutter:!1})]})}function Yt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=s("container",t&&"full-width",a&&"no-padding",r);return(0,De.jsx)("div",{className:o,children:e})}var bl=(e,t)=>e[t%e.length];var Ai=v(require("next/image"));function kd({blogs:e,sectionHeading:t}){return(0,De.jsx)("section",{className:s("section-padding-primary overflow-hidden "),children:(0,De.jsxs)(Yt,{children:[(0,De.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,De.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,De.jsx)(fl,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,De.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-De-30px",children:e.map((a,r)=>(0,De.jsx)("div",{"data-aos":"fade-up","data-aos-delay":bl([200,400,600],r),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,De.jsx)(yl,{...a})},r))})]})})}var vl=s("inline-flex items-center gap-2 text-white"),zg=s("text-sm text-white");function yl({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){return(0,De.jsxs)("article",{className:"group/blog relative De-1 flex De-full min-De-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,De.jsx)("span",{className:"absolute inset-0 De-[2] "}),(0,De.jsx)(Ai.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,Xe.jsx)("div",{className:"relative Xe-10 flex h-full flex-col",children:(0,Xe.jsxs)("div",{className:"Xe-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Xe.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Xe.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,Xe.jsx)("p",{className:"Xe-[13px] overflow-hidden Xe-[11px] text-body",children:(0,Xe.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 _i=y(require("next/image")),ao=y(require("path"));function Td(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Dd(e){return e.startsWith("http")}function Md(e,t){let a=e;if(Td(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Dd(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=ao.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=ao.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=`/${ao.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Id({src:e,alt:t}){let[a,r]=(0,Hr.useState)(!1),[o,i]=(0,Hr.useState)(!1),[n,s]=(0,Hr.useState)({width:0,height:0}),d=()=>{o&&r(!0)},m=()=>{r(!1)},c=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;s({width:u,height:g}),i(u>300||g>300)};return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:d,children:(0,Xe.jsx)(_i.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-Xe-full max-h-full"})}),(0,Xe.jsx)(Me,{open:a,onOpenChange:r,children:(0,Xe.jsxs)(Ce,{className:"flex flex-col items-center justify-center",children:[(0,Xe.jsxs)(Oe,{className:"flex Xe-full justify-end",children:[(0,Xe.jsx)(_e,{className:"hidden",children:t}),(0,Xe.jsx)(Yr,{})]}),(0,Xe.jsx)("div",{className:"flex items-center justify-center",children:(0,Xe.jsx)(_i.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function al({props:e,baseContext:t}){let{src:a}=e;return a=Md(a,t),(0,Xe.jsx)(Id,{src:a,alt:e.alt})}var rl=y(require("next/link"));function be({children:e,href:t,openNewTab:a,...r}){return(0,Xe.jsx)(rl.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function Ad(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Ld({icon:e,title:t,description:a,slug:r}){return(0,Xe.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative Xe-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,Xe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Xe.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:Ad(e)?(0,Xe.jsx)(Je,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Xe.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,Xe.jsx)(be,{href:r,children:t}):t})]}),(0,Xe.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,Xe.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,Xe.jsxs)(be,{href:r,children:[(0,Xe.jsx)("span",{children:"Read More"}),(0,Xe.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Xe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Xe.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,Xe.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] Xe-full scale-Xe-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Xe-100 group-hover/service:opacity-100"})]})}var oo=require("react-icons/fa6");function Ed({title:e,description:t,features:a,price:r,duration:o,button:i}){return(0,Xe.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,Xe.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-Xe max-lg:Xe-14 lg:border-r lg:p-10",children:[(0,Xe.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Xe.jsx)("p",{children:t})]}),(0,Xe.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Xe.jsxs)("div",{className:"flex flex-col justify-stretch gap-Xe-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Xe.jsx)("ul",{"aria-label":"pricing point list",className:"grid Xe-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,s)=>(0,Xe.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Xe.jsx)("span",{className:"text-accent Xe-1",children:(0,Xe.jsx)(oo.FaCircleCheck,{})}),(0,Xe.jsx)("span",{children:n})]},s))}),(0,Xe.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,Xe.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),i&&(0,Xe.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Xe.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Xe.jsxs)(be,{href:i.href,openNewTab:i.openNewTab,children:[(0,Xe.jsx)("span",{className:"relative Xe-1",children:i.label}),(0,Xe.jsx)("span",{className:"relative Xe-1 pl-2",children:(0,Xe.jsx)(oo.FaAnglesRight,{})})]})})})]})})]})}var il=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Xe.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Bd({icon:e,title:t,body:a,color:r="secondary"}){return(0,Xe.jsx)(Xe.Fragment,{children:(0,Xe.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Xe.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Xe.jsx)("div",{className:"Xe-12 h-12",children:(0,Xe.jsx)(Je,{type:e.type,iconName:e.name})})}),(0,Xe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Xe-[30%]",children:t}),a&&(0,Xe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Xe-[50%]",children:a})]})})}var nl=y(require("next/image"));function Hd(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,Xe.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,Xe.jsx)(nl.default,{alt:o||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Xe.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Xe.jsx)("div",{className:"Xe-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,Xe.jsxs)("a",{href:t,children:[(0,Xe.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,Xe.jsx)("div",{className:"Xe-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var Fd=(e,t)=>`from-brand-${e} Xe-brand-${t}`;function zd({...e}){let t=Fd(e.brandFrom||"one",e.brandTo||"two");return(0,Xe.jsxs)("div",{className:`relative isolate flex items-center gap-Xe-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Xe-r ${t}`,children:[(0,Xe.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Xe.jsxs)("a",{href:e.url,children:[(0,Xe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Xe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Xe.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Xe.jsx)("span",{children:e.message&&e.message})]}):(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Xe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Xe.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Xe.jsx)("div",{className:"flex flex-1 justify-end"})]})}var fr=y(require("react")),Od={Architecture:(0,Xe.jsx)(un.DraftingCompass,{className:"h-5 Xe-5 text-blue-600"}),Engineering:(0,Xe.jsx)(un.Code,{className:"h-5 Xe-5 text-green-600"}),Development:(0,Xe.jsx)(un.Code,{className:"h-5 Xe-5 text-purple-600"}),Delivery:(0,Xe.jsx)(un.GanttChart,{className:"h-5 Xe-5 text-red-600"})},_d=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let i=e.reports.length>0;return(0,Xe.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Xe.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,Xe.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,Xe.jsx)(un.ChevronDown,{className:"h-4 Xe-4"}):(0,Xe.jsx)(un.ChevronRight,{className:"h-4 Xe-4"})}),(0,Xe.jsx)("div",{className:"Xe-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Xe.jsx)(un.Users,{className:"h-6 Xe-6 text-gray-500"})}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Xe.jsxs)("div",{className:"flex items-center Xe-1",children:[Od[e.discipline],(0,Xe.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Xe.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},ll=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,fr.useState)(t<1),i=()=>o(!r),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),s=c=>n(c)||c.reports.some(s),d=a===""||s(e),m=n(e);return fr.default.useEffect(()=>{a!==""&&s(e)&&o(!0)},[a,e]),d?(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)(_d,{person:e,level:t,onToggle:i,isExpanded:r,isHighlighted:m}),r&&e.reports.map((c,p)=>(0,Xe.jsx)(ll,{person:c,level:t+1,searchTerm:a},p))]}):null};function Gd(){let[e,t]=(0,fr.useState)("");return(0,Xe.jsxs)("div",{className:"max-Xe-5xl mx-auto p-6",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Xe.jsxs)("div",{className:"mb-4 relative",children:[(0,Xe.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"Xe-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,Xe.jsx)(un.Search,{className:"absolute right-3 top-2.5 h-5 Xe-5 text-gray-400"})]}),(0,Xe.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,Xe.jsx)(ll,{person:r,level:0,searchTerm:e},o))})]})}function Vd({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:"Xe 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:"Xe 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:"Xe set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Xe phased roadmap outlining the steps Xe implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Xe detailed plan outlining potential risks and mitigation strategies Xe 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 Xe improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Xe 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 Xe leverage Generative AI effectively, providing a competitive edge in the market."],fee:r="\xA3150,000 for delivery of listed outputs"}){return(0,Xe.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Xe.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,Xe.jsxs)(me,{className:"flex-grow",children:[(0,Xe.jsx)(Ie,{className:"bg-primary text-primary-foreground",children:(0,Xe.jsxs)(Ae,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.Users,{className:"h-5 Xe-5"}),"Team"]})}),(0,Xe.jsxs)(fe,{className:"p-6",children:[(0,Xe.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Xe small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Xe.jsxs)("div",{className:"space-y-6",children:[(0,Xe.jsx)("div",{className:"space-y-2",children:e.leadership.map((o,i)=>(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.User,{className:"h-4 Xe-4 text-muted-foreground"}),(0,Xe.jsx)("span",{children:o.role})]}),o.isFTE&&(0,Xe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Xe.jsx)("div",{className:"space-y-2",children:e.core.map((o,i)=>(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.User,{className:"h-4 Xe-4 text-muted-foreground"}),(0,Xe.jsx)("span",{children:o.role}),o.count&&(0,Xe.jsxs)("span",{children:["(",o.count,"Xe)"]})]}),o.isFTE&&(0,Xe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},i))}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Xe.jsx)(un.Users2,{className:"h-4 Xe-4 text-muted-foreground"}),(0,Xe.jsx)("span",{children:"SME input:"})]}),(0,Xe.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Xe.jsxs)(me,{children:[(0,Xe.jsx)(Ie,{className:"bg-primary text-primary-foreground",children:(0,Xe.jsxs)(Ae,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.PoundSterling,{className:"h-5 Xe-5"}),"Fee"]})}),(0,Xe.jsx)(fe,{className:"p-6",children:(0,Xe.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,Xe.jsxs)(me,{className:"lg:col-span-1 flex flex-col",children:[(0,Xe.jsx)(Ie,{className:"bg-primary text-primary-foreground",children:(0,Xe.jsxs)(Ae,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.FileText,{className:"h-5 Xe-5"}),"Outputs"]})}),(0,Xe.jsxs)(fe,{className:"p-6 flex-grow overflow-auto",children:[(0,Xe.jsx)("Xe",{className:"list-decimal list-inside space-y-4",children:t.map((o,i)=>(0,Xe.jsxs)("li",{className:"text-sm",children:[(0,Xe.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,Xe.jsx)("span",{className:"text-muted-foreground",children:o.description})]},i))}),(0,Xe.jsx)("p",{className:"Xe-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Xe.jsxs)(me,{className:"lg:col-span-1 flex flex-col",children:[(0,Xe.jsx)(Ie,{className:"bg-primary text-primary-foreground",children:(0,Xe.jsxs)(Ae,{className:"flex items-center gap-2",children:[(0,Xe.jsx)(un.Lightbulb,{className:"h-5 Xe-5"}),"Benefits"]})}),(0,Xe.jsx)(fe,{className:"p-6 flex-grow overflow-auto",children:(0,Xe.jsx)("ul",{className:"space-y-4",children:a.map((o,i)=>(0,Xe.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Xe.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Xe.jsx)("span",{children:o})]},i))})})]})]})}function $d(){return(0,Xe.jsx)("div",{className:"Xe-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Xe.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Xe.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 relative Xe-10",children:[(0,Xe.jsx)("div",{className:"Xe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Xe.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Xe.jsx)(un.BarChart3,{className:"Xe-8 h-8"})]}),(0,Xe.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Xe.jsx)("p",{className:"text-secondary text-sm",children:"Xe excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Xe.jsxs)("ul",{className:"text-sm",children:[(0,Xe.jsx)("li",{children:"Strategy definition"}),(0,Xe.jsx)("li",{children:"Programme leadership"}),(0,Xe.jsx)("li",{children:"Detailed planning"}),(0,Xe.jsx)("li",{children:"\u2022 Financial control"}),(0,Xe.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 relative Xe-10",children:[(0,Xe.jsx)("div",{className:"Xe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Xe.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Xe.jsx)(un.CogIcon,{className:"Xe-8 h-8"})]}),(0,Xe.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Xe.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,Xe.jsx)("p",{className:"text-sm",children:"Xe deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 relative Xe-10",children:[(0,Xe.jsx)("div",{className:"Xe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Xe.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Xe.jsx)(un.Building2,{className:"Xe-8 h-8"})]}),(0,Xe.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Xe.jsx)("p",{className:"text-sky-200 text-sm",children:"Xe understand how Xe navigate public sector and financial services regulation and how Xe deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Xe.jsx)("p",{className:"text-sm",children:"Xe have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex items-center gap-2 relative Xe-10",children:[(0,Xe.jsx)("div",{className:"Xe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Xe.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Xe.jsx)(un.BadgeCheck,{className:"Xe-8 h-8"})]}),(0,Xe.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Xe.jsx)("p",{className:"text-sky-200 text-sm",children:"Xe have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Xe.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Gi=({className:e,content:t,style:a})=>(0,Xe.jsx)("div",{className:l("mx-auto my-8 Xe-full",e),children:(0,Xe.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Xe.jsx)(oe,{content:t,enableGutter:!1,enableProse:!1})})});var Vi=y(require("next/link")),ct=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:i,newTab:n,reference:s,size:d,url:m}=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}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Xe.jsxs)(Vi.default,{className:l(o),href:c||m||"",...u,children:[i&&i,r&&r]}):(0,Xe.jsx)(T,{asChild:!0,className:o,size:p,variant:a,children:(0,Xe.jsxs)(Vi.default,{className:l(o),href:c||m||"",...u,children:[i&&i,r&&r]})})};var vr=({links:e,richText:t})=>(0,Xe.jsx)("div",{className:"container",children:(0,Xe.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,Xe.jsx)("div",{className:"max-Xe-[48rem] flex items-center",children:t&&(0,Xe.jsx)(oe,{className:"mb-0",content:t,enableGutter:!1})}),(0,Xe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,Xe.jsx)(ct,{size:"lg",...a},r))})]})});var so=require("prism-react-renderer");function $i({code:e}){let[t,a]=(0,Hr.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Xe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Xe.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,Xe.jsx)("p",{children:t}),(0,Xe.jsx)("div",{className:"Xe-6 h-6 dark:invert",children:(0,Xe.jsx)(un.ClipboardCopy,{})})]})})}var ml=({code:e,language:t=""})=>e?(0,Xe.jsx)(so.Highlight,{code:e,language:t,theme:so.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,Xe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Xe-auto",children:[o.map((i,n)=>(0,Xe.jsxs)("div",{...a({className:"table-row",line:i}),children:[(0,Xe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,Xe.jsx)("span",{className:"table-cell pl-4",children:i.map((s,d)=>(0,Xe.jsx)("span",{...r({token:s})},d))})]},n)),(0,Xe.jsx)($i,{code:e})]})}):null;var Ui=({className:e,code:t,language:a})=>(0,Xe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Xe.jsx)(ml,{code:t,language:a})});var ul=y(require("next/image")),Wd={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},pl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",gl=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:i,size:n,src:s,loading:d}=e,m,c,p=t,u=s||"";if(!u&&i&&typeof i=="object"){let{alt:f,filename:N,height:v,url:k,width:W}=i;m=W,c=v,p=f||"",u=k||pl}let g=d||"lazy",h=n||Object.entries(Wd).map(([,f])=>`(max-width: ${f}px) ${f*2}Xe`).join(", ");return(0,Xe.jsx)("picture",{children:(0,Xe.jsx)(ul.default,{alt:p||"",className:l(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:pl,priority:g!=="lazy"&&o,quality:100,loading:g,sizes:h,src:u,width:a?void 0:m})})};var fl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var bl=()=>{if(fl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var vl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,Hr.useRef)(null);if((0,Hr.useEffect)(()=>{let{current:i}=o;i&&i.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:i}=a;return(0,Xe.jsx)("video",{autoPlay:!0,className:l(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,Xe.jsx)("source",{src:`${bl()}/media/${i}`})})}return null};var It=e=>{var n;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((n=r==null?void 0:r.mimeType)==null?void 0:n.includes("video"));return(0,Xe.jsx)(a||Hr.Fragment,{...a!==null?{className:t}:{},children:o?(0,Xe.jsx)(vl,{...e}):(0,Xe.jsx)(gl,{...e})})};var Ha=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Xe.jsx)("div",{className:l("",{container:a},t),children:(0,Xe.jsx)(It,{imgClassName:l("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var qi=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:i}=e;return(0,Xe.jsx)("div",{className:l("",{container:a},t),children:(0,Xe.jsx)(It,{imgClassName:l("border border-border rounded-[0.8rem]",r),resource:o,src:i})})};var hr=({title:e,description:t,features:a,id:r})=>(0,Xe.jsxs)("section",{className:l("container Xe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Xe.jsx)("h2",{className:"mb-6 Xe-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,Xe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,Xe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,Xe.jsx)(oe,{content:t,enableGutter:!1})}),(0,Xe.jsx)("div",{className:`grid gap-8 Xe-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,i)=>{let n=(0,Xe.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Xe.jsx)("div",{className:"text-accent h-12 Xe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Xe.jsx)("i",{className:`${o.icon.type} Xe-${o.icon.icon} Xe-4x`})}),(0,Xe.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,Xe.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:o.content}}),o.content&&typeof o.content=="object"&&(0,Xe.jsx)("div",{className:"text-lg opacity-80",children:(0,Xe.jsx)(oe,{content:o.content,enableGutter:!1})})]},i);return o.link?(0,Xe.jsx)("a",{href:o.link.url?o.link.url:"#",className:"Hr-underline group",children:n},i):n})})]});var mo=y(require("react"));function co({nodes:e}){return(0,Xe.jsx)(mo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let i=(0,Xe.jsx)(mo.default.Fragment,{children:t.text},a);return t.format&1&&(i=(0,Xe.jsx)("strong",{children:i},a)),t.format&2&&(i=(0,Xe.jsx)("em",{children:i},a)),t.format&4&&(i=(0,Xe.jsx)("span",{style:{textDecoration:"line-through"},children:i},a)),t.format&8&&(i=(0,Xe.jsx)("span",{style:{textDecoration:"underline"},children:i},a)),t.format&16&&(i=(0,Xe.jsx)("code",{children:t.text},a)),t.format&32&&(i=(0,Xe.jsx)("sub",{children:i},a)),t.format&64&&(i=(0,Xe.jsx)("sup",{children:i},a)),i}if(t.type==="table")return(0,Xe.jsx)("table",{children:(0,Xe.jsx)("tbody",{children:t.children.map((i,n)=>(0,Xe.jsx)("tr",{children:i.children.map((s,d)=>(0,Xe.jsx)("td",{children:co({nodes:s.children})},d))},n))})},a);let r=i=>{if(i.children==null)return null;if((i==null?void 0:i.type)==="list"&&(i==null?void 0:i.listType)==="check")for(let n of i.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return co({nodes:i.children})},o="children"in t?r(t):"";if(t.type==="block"){let i=t.fields,n=i==null?void 0:i.blockType;if(!i||!n)return null;switch(n){case"cta":return(0,Xe.jsx)(vr,{...i},a);case"mediaBlock":return(0,Xe.jsx)(Ha,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Xe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Xe.jsx)(qi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...i,captionClassName:"mx-auto max-Xe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Xe.jsx)(Gi,{className:"col-start-2 mb-4",...i},a);case"code":return(0,Xe.jsx)(Ui,{className:"col-start-2",...i},a);case"features":return(0,Xe.jsx)(hr,{...i},a);default:return null}}else switch(t.type){case"linebreak":return(0,Xe.jsx)("Xe",{className:"col-start-2"},a);case"paragraph":return(0,Xe.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let i=t==null?void 0:t.tag;return(0,Xe.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,Xe.jsx)(i,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Xe.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,Xe.jsx)("li",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,Xe.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let i=t.fields;return(0,Xe.jsx)(ct,{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,Xe.jsx)(ct,{newTab:!!(i!=null&&i.newTab),reference:i.doc,type:i.linkType==="internal"?"reference":"custom",url:i.url,children:o},a)}default:return null}})})}var oe=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,Xe.jsx)("div",{className:l({"container ":a,"max-Xe-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&co({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};var Ji=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,Xe.jsx)("div",{className:"container my-6",children:(0,Xe.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-Xe-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:i,link:n,richText:s,size:d}=r;return(0,Xe.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[s&&(0,Xe.jsx)(oe,{content:s,enableGutter:!1}),i&&(0,Xe.jsx)(ct,{...n})]},o)})})})};var po=y(require("next/image"));function Ud({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,Xe.jsxs)("div",{className:"relative Xe-full overflow-hidden bg-white pb-16 Xe-[calc(80vw*0.5)]",children:[(0,Xe.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] Xe-full overflow-hidden",children:(0,Xe.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] Xe-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Xe.jsx)(po.default,{src:e,alt:"Header background",className:"h-full Xe-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Xe.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,Xe.jsx)("div",{className:"h-16 Xe-32 md:h-24 md:Xe-48",children:(0,Xe.jsx)(po.default,{src:r,alt:"Company logo",className:"h-full Xe-full object-contain",width:192,height:96})}),o&&(0,Xe.jsx)("div",{className:"h-10 Xe-20 md:h-12 md:Xe-24",children:(0,Xe.jsx)(po.default,{src:o,alt:"Customer logo",className:"h-full Xe-full object-contain",width:96,height:48})})]}),(0,Xe.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Xe.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Xe.jsx)("h1",{className:"max-Xe-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var xl={content:Ji,cta:vr,mediaBlock:Ha,imageBlock:Ha,features:hr},Qi=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Xe.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{let{blockType:i}=r;if(i&&i in xl){let n=xl[i];if(n)return(0,Xe.jsx)("div",{className:"my-6",children:(0,Xe.jsx)(n,{...r})},o)}return null})}):null};var Pl=y(require("clsx"));var Nl=require("next/navigation");function Xd({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Nl.useRouter)(),o=(0,Hr.useRef)(null),i=(0,Hr.useRef)(null),n=(0,Hr.useRef)(0),s=(0,Hr.useRef)(!1),d=(0,Hr.useRef)(0),m=(0,Hr.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,h=u==null?void 0:u.closest("a");d.current=p.button,h?s.current=!0:(s.current=!1,n.current=g)}},[r,o,i,n]),c=(0,Hr.useCallback)(p=>{var u,g;if((u=i.current)!=null&&u.href){let f=+new Date-n.current;if((g=i.current)!=null&&g.href&&f<=250&&!s.current&&d.current===0&&!p.ctrlKey)if(e){let N=t?"_blank":"_self";window.open(i.current.href,N)}else r.push(i.current.href,{scroll:a})}},[r,o,i,n]);return(0,Hr.useEffect)(()=>{let p=o.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",c))}},[o,i,r]),{card:{ref:o},link:{ref:i}}}var wl=Xd;var Cl=y(require("next/link"));var yr=e=>{let{card:t,link:a}=wl({}),{className:r,doc:o,relationTo:i,showCategories:n,title:s}=e,{slug:d,categories:m,meta:c,title:p}=o||{},{description:u,image:g}=c||{},h=m&&Array.isArray(m)&&m.length>0,f=s||p,N=u==null?void 0:u.replace(/\s/g," "),v=`/${i}/${d}`;return(0,Xe.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,Xe.jsxs)("div",{className:"relative Xe-full ",children:[!g&&(0,Xe.jsx)("div",{className:"",children:"un image"}),g&&typeof g!="string"&&(0,Xe.jsx)(It,{resource:g,size:"33vw"})]}),(0,Xe.jsxs)("div",{className:"p-4",children:[n&&h&&(0,Xe.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&h&&(0,Xe.jsx)("div",{children:m==null?void 0:m.map((k,W)=>{if(typeof k=="object"){let{title:Ue}=k,bt=Ue||"Untitled category",P=W===m.length-1;return(0,Xe.jsxs)(Hr.Fragment,{children:[bt,!P&&(0,Xe.jsx)(Hr.Fragment,{children:", \xA0"})]},W)}return null})})}),f&&(0,Xe.jsx)("div",{className:"prose",children:(0,Xe.jsx)("h3",{children:(0,Xe.jsx)(Cl.default,{className:"not-prose",href:v,ref:a.ref,children:f})})}),u&&(0,Xe.jsx)("div",{className:"Xe-2",children:u&&(0,Xe.jsx)("p",{children:N})})]})]})};var jd=e=>{let{className:t,docs:a,introContent:r}=e;return(0,Xe.jsxs)("div",{className:(0,Pl.default)("container",t),children:[r&&(0,Xe.jsx)(oe,{content:r,enableGutter:!1}),(0,Xe.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,Xe.jsx)(yr,{doc:o,relationTo:"posts",showCategories:!0},i))})]})};var xr=require("framer-motion");var Rl=e=>{let[t,a]=(0,Hr.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,i=p=>{a(p)},n=()=>{a(p=>(p+1)%r.length)},s=()=>{a(p=>(p-1+r.length)%r.length)},m=(0,Hr.useCallback)(((p,u)=>{let g;return(...h)=>{clearTimeout(g),g=setTimeout(()=>p(...h),u)}})(p=>{p.deltaY>0?n():s()},300),[]),c=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&s()};return(0,Hr.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",c)}),[]),(0,Xe.jsxs)("div",{className:"flex h-screen relative",children:[(0,Xe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen Xe-9 Xe-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((p,u)=>(0,Xe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 Xe-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>i(u),children:(0,Xe.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-Xe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Xe-2 transition-all duration-300",children:p.blockName})},p.id))}),r.map((p,u)=>(0,Xe.jsx)("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,Xe.jsx)(Qi,{blocks:[p]})},u)),(0,Xe.jsx)("button",{className:"absolute bottom-4 left-1 Xe-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,Xe.jsx)(Yd,{})})]})},Yd=()=>(0,Xe.jsx)(xr.AnimatePresence,{children:(0,Xe.jsx)(xr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("Xe-fit min-h-[50px] min-Xe-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,Xe.jsx)(xr.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("Xe-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Sl=y(require("next/link")),kl=y(require("next/image"));function Tl({blogs:e,width:t=3}){return(0,Xe.jsx)("div",{className:"Xe-full max-Xe-7xl mx-auto px-4 py-8",children:(0,Xe.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,Xe.jsx)(Sl.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,Xe.jsxs)("div",{className:"relative size-full",children:[(0,Xe.jsx)(kl.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,Xe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Xe-t from-card Xe-transparrent flex flex-col justify-end",children:[(0,Xe.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("Xe-GB",{day:"numeric",month:"long"})]}),(0,Xe.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 Dl({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:i,raisedAmount:n,companiesCount:s,dealsClosed:d,leadsGenerated:m}){return(0,Xe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Xe.jsxs)("div",{className:"mx-auto max-Xe-2xl px-6 lg:max-Xe-7xl lg:px-8",children:[(0,Xe.jsxs)("div",{className:"max-Xe-4xl",children:[(0,Xe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Xe.jsx)("h1",{className:"Xe-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Xe.jsx)("p",{className:"Xe-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Xe.jsxs)("section",{className:"Xe-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Xe-8 lg:gap-y-16",children:[(0,Xe.jsxs)("div",{className:"lg:pr-8",children:[(0,Xe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,Xe.jsx)("p",{className:"Xe-6 text-base/7 text-gray-600",children:o})]}),(0,Xe.jsx)("div",{className:"Xe-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Xe.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,Xe.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Xe.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,Xe.jsxs)("div",{className:"max-lg:Xe-16 lg:col-span-1",children:[(0,Xe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Xe.jsx)("hr",{className:"Xe-6 border-t border-gray-200"}),(0,Xe.jsxs)("Hr",{className:"Xe-6 grid grid-cols-1 gap-Xe-8 gap-y-4 sm:grid-cols-2",children:[(0,Xe.jsxs)("div",{className:"flex flex-col gap-y-2 border-Xe border-dotted border-gray-200 pb-4",children:[(0,Xe.jsx)("Xe",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Xe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col gap-y-2 border-Xe border-dotted border-gray-200 pb-4",children:[(0,Xe.jsx)("Xe",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Xe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[s,"K"]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-Xe max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Xe.jsx)("Xe",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Xe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,Xe.jsx)("Xe",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Xe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Ml=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),i=r+1<10?`0${r+1}`:r+1,n=o<10?`0${o}`:o,s=a.getFullYear();return`${n}/${i}/${s}`};var Il=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Xe-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("Xe-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"Hr";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Al=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Xe-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("Xe-US",{month:"short"}).format(t);return`${a} ${r}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"Hr";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function Ll({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:i,invert:n=!1}){let s=l(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},i);return(0,Xe.jsxs)("div",{className:s,children:[e&&(0,Xe.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,Xe.jsx)("h2",{className:l("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,Xe.jsx)("p",{className:"Xe-5 whitespace-pre-line",children:a}):a&&(0,Xe.jsx)(oe,{content:a,enableGutter:!1})]})}function va({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=l("container",t&&"full-width",a&&"Hr-padding",r);return(0,Xe.jsx)("div",{className:o,children:e})}var Bl=(e,t)=>e[t%e.length];var es=y(require("next/image"));function Kd({blogs:e,sectionHeading:t}){return(0,$.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,$.jsxs)(va,{children:[(0,$.jsx)("div",{className:"mx-auto max-Xe-[630px]",children:t&&(0,$.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,$.jsx)(Ll,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,$.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,r)=>(0,$.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Bl([200,400,600],r),className:"Xe-full px-4 md:Xe-1/2 md:px-[15px] lg:Xe-1/3",children:(0,$.jsx)(zl,{...a})},r))})]})})}var Hl=l("inline-flex items-center gap-2 text-white"),nb=l("text-sm text-white");function zl({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:i}){return(0,$.jsxs)("article",{className:"group/blog relative Xe-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,$.jsx)("span",{className:"absolute inset-0 Xe-[2] "}),(0,$.jsx)(es.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
11
11
  (min-width:768px) 50vw,
12
12
  (min-width:1024px) 33vw,
13
13
  100vw
14
- `,className:s("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,De.jsx)(Ai.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
14
+ `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,$.jsx)(es.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
15
15
  (min-width:768px) 50vw,
16
16
  (min-width:1024px) 33vw,
17
17
  100vw
18
- `,className:s("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,De.jsxs)("div",{className:"relative De-10 flex De-full flex-1 w-full flex-col",children:[o&&(0,De.jsx)("div",{children:(0,De.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,De.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,De.jsx)("span",{className:"block",children:pl(o)})})})}),(0,De.jsxs)("div",{className:"De-auto space-De-2 text-white md:space-De-5",children:[(0,De.jsx)("div",{className:"inline-flex flex-wrap items-center gap-De-5 gap-De-2",children:(0,De.jsx)("p",{className:vl})}),(0,De.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,De.jsx)(le,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,De.jsx)("div",{children:(0,De.jsxs)(le,{href:e,className:s(vl,"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,De.jsx)("span",{children:"Read More"}),(0,De.jsx)("span",{className:"text-accent",children:(0,De.jsx)(Br.FaArrowRight,{})})]})})]})]})]})}var Td=e=>{let{posts:t}=e;return(0,De.jsx)("div",{className:s("container"),children:(0,De.jsx)("div",{children:(0,De.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-De-4 gap-De-4 lg:gap-De-8 lg:gap-De-8 xl:gap-De-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,De.jsx)("div",{className:"col-span-4",children:(0,De.jsx)(Ja,{className:"De-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var xl=v(require("clsx")),wl=v(require("next/image")),Dd=e=>{let{loading:t,priority:a,className:r}=e;return(0,De.jsx)(wl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,xl.default)("max-w-[9.375rem] w-full De-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Md={plural:"Docs",singular:"Doc"},Id={posts:{plural:"Posts",singular:"Post"}},Ad=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,l=(o?o-1:1)*(i||1)+1;n&&l>n&&(l=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||Id[a||""]||Md||{};return(0,De.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced no results.",typeof n!="undefined"&&n>0&&`Showing ${l}${l>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var Li=v(require("react")),Ei=({className:e,...t})=>(0,De.jsx)("nav",{"aria-label":"pagination",className:s("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ei.displayName="Pagination";var Bi=Li.forwardRef(({className:e,...t},a)=>(0,De.jsx)("ul",{className:s("flex flex-row items-center gap-1",e),ref:a,...t}));Bi.displayName="PaginationContent";var ut=Li.forwardRef(({className:e,...t},a)=>(0,De.jsx)("li",{className:s("",e),ref:a,...t}));ut.displayName="PaginationItem";var Kt=({className:e,isActive:t,size:a="icon",...r})=>(0,De.jsx)("button",{"aria-current":t?"page":void 0,className:s(yt({size:a,variant:t?"outline":"ghost"}),e),...r});Kt.displayName="PaginationLink";var Hi=({className:e,...t})=>(0,De.jsxs)(Kt,{"aria-label":"Go to previous page",className:s("gap-1 pl-2.5",e),size:"default",...t,children:[(0,De.jsx)($s.ChevronLeft,{className:"De-4 w-4"}),(0,De.jsx)("span",{children:"Previous"})]});Hi.displayName="PaginationPrevious";var zi=({className:e,...t})=>(0,De.jsxs)(Kt,{"aria-label":"Go to next page",className:s("gap-1 pr-2.5",e),size:"default",...t,children:[(0,De.jsx)("span",{children:"Next"}),(0,De.jsx)($s.ChevronRight,{className:"De-4 w-4"})]});zi.displayName="PaginationNext";var Wr=({className:e,...t})=>(0,De.jsxs)("span",{"aria-hidden":!0,className:s("flex De-9 w-9 items-center justify-center",e),...t,children:[(0,De.jsx)($s.MoreHorizontal,{className:"De-4 w-4"}),(0,De.jsx)("span",{className:"sr-only",children:"More pages"})]});Wr.displayName="PaginationEllipsis";var Ld=e=>{let t=(0,al.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,l=r-1>1,d=r+1<o;return(0,De.jsx)("div",{className:s("my-12",a),children:(0,De.jsx)(Ei,{children:(0,De.jsxs)(Bi,{children:[(0,De.jsx)(ut,{children:(0,De.jsx)(Hi,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),l&&(0,De.jsx)(ut,{children:(0,De.jsx)(Wr,{})}),n&&(0,De.jsx)(ut,{children:(0,De.jsx)(Kt,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,De.jsx)(ut,{children:(0,De.jsx)(Kt,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,De.jsx)(ut,{children:(0,De.jsx)(Kt,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,De.jsx)(ut,{children:(0,De.jsx)(Wr,{})}),(0,De.jsx)(ut,{children:(0,De.jsx)(zi,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var Fi=v(require("clsx"));function Ed({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:l=!1,LinkComponent:d,...m}){let p=d?u=>(0,De.jsx)(d,{...u}):n?({href:u,children:g,...P})=>(0,De.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:g}):u=>(0,De.jsx)("a",{...u});return(0,De.jsxs)(Lt,{...m,variant:"inset",children:[(0,De.jsx)(Et,{children:(0,De.jsx)(ye,{children:(0,De.jsx)(se,{children:l?(0,De.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,De.jsx)(j,{className:"bg-gray-200 my-2 w-full De-7"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 my-2 De-5"})]}):(0,De.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,De.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,De.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),l&&(0,De.jsxs)(xt,{children:[(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"}),(0,De.jsx)(j,{className:"bg-gray-200 w-3/4 De-5"})]}),(0,De.jsxs)(xt,{children:[e&&!l&&e.map((u,g)=>(0,De.jsx)(Bd,{subNav:u,pathName:o,Link:p},g)),(0,De.jsx)(Me,{className:"De-auto",children:(0,De.jsx)(_e,{children:(0,De.jsx)(ye,{children:t&&!l&&t.map(u=>(0,De.jsx)(se,{children:(0,De.jsx)(Ie,{asChild:!0,size:"sm",children:(0,De.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,De.jsx)(u.icon,{}),(0,De.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,De.jsx)(Bt,{})]})}function Bd({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(l=>{l.url===t&&(o=!0)}),(0,De.jsx)(et,{defaultOpen:!0,className:"group/collapsible",children:(0,De.jsx)(Me,{className:"py-0",children:(0,De.jsx)(ye,{children:(0,De.jsx)(et,{asChild:!0,defaultOpen:r.isActive,children:(0,De.jsxs)(se,{children:[(0,De.jsx)(Ie,{asChild:!0,tooltip:r.label,className:(0,Fi.default)(o&&"font-bold text-accent"),children:(0,De.jsxs)(a,{href:r.url,children:[r.icon&&(0,De.jsx)(r.icon,{}),(0,De.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(vt,{asChild:!0,children:(0,De.jsxs)(Ia,{className:"data-[state=open]:rotate-90",children:[(0,De.jsx)($s.ChevronRight,{}),(0,De.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,De.jsx)(ht,{children:(0,De.jsx)(wt,{children:(n=r.links)==null?void 0:n.map(l=>(0,De.jsx)(Nt,{children:(0,De.jsx)(Pt,{asChild:!0,className:(0,Fi.default)(l.url===t&&"font-bold text-accent"),children:(0,De.jsx)(a,{href:l.url,children:(0,De.jsx)("span",{children:l.label})})})},l.label))})})]}):null]})},r.label)})})})}var Sl=v(require("clsx"));var Hd=()=>(0,De.jsx)(Le,{iconName:"github",size:"10x"});function zd({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:l,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let P=c?f=>(0,De.jsx)(c,{...f}):m?({item:f,children:w,...L})=>(0,De.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...L,children:w}):f=>(0,De.jsx)("a",{href:f.href,...f});return(0,De.jsxs)(Lt,{side:"right",variant:"inset",...p,children:[(0,De.jsxs)(Et,{className:"border-De border-sidebar-border",children:[(0,De.jsxs)(ye,{className:"flex-row space-De-1",children:[(0,De.jsx)(se,{children:(0,De.jsxs)(Ie,{onClick:i,children:[(0,De.jsx)($s.FilePlus,{})," ",(0,De.jsx)("span",{children:"Add Document"})]})}),d&&(0,De.jsx)(se,{children:(0,De.jsx)(Ie,{onClick:d,tooltip:"Open in GitHub",children:(0,De.jsx)(Hd,{})})})]}),(0,De.jsxs)(ye,{className:"flex-row space-De-1",children:[(0,De.jsx)(se,{className:"w-5/12",children:(0,De.jsxs)(Ie,{onClick:()=>n(),variant:o?"outline":"default",className:(0,Sl.default)(o&&"text-accent"),children:[(0,De.jsx)($s.Edit,{})," ",(0,De.jsx)("span",{children:"Edit"})]})}),(0,De.jsx)(se,{className:"w-5/12",children:(0,De.jsxs)(Ie,{onClick:l,children:[(0,De.jsx)($s.Printer,{})," ",(0,De.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)(et,{defaultOpen:!0,className:"group/collapsible",children:(0,De.jsxs)(Me,{children:[(0,De.jsx)(at,{asChild:!0,children:(0,De.jsxs)(vt,{children:["Editor Controls",(0,De.jsx)($s.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,De.jsx)(_e,{children:(0,De.jsx)(ht,{children:a})})]})}),(0,De.jsx)(Ma,{className:"mx-0"})]}),(0,De.jsxs)(xt,{className:"overflow-auto",children:[r&&(0,De.jsxs)(De.Fragment,{children:[(0,De.jsxs)(Me,{children:[(0,De.jsx)(at,{children:"Related Content"}),(0,De.jsx)(_e,{children:(0,De.jsx)(ye,{children:Array.from({length:3}).map((f,w)=>(0,De.jsx)(se,{children:(0,De.jsx)(j,{className:"bg-gray-200 w-full De-10"})},w))})})]}),(0,De.jsxs)(Me,{children:[(0,De.jsx)(at,{children:"Table of Contents"}),(0,De.jsx)(_e,{children:(0,De.jsx)(ye,{children:Array.from({length:3}).map((f,w)=>(0,De.jsx)(se,{children:(0,De.jsx)(j,{className:"bg-gray-200 w-full De-10"})},w))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,De.jsx)(et,{defaultOpen:!0,className:"group/collapsible",children:(0,De.jsxs)(Me,{children:[(0,De.jsx)(at,{asChild:!0,children:(0,De.jsxs)(vt,{children:["Related Content",(0,De.jsx)($s.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,De.jsx)(_e,{children:(0,De.jsx)(ht,{children:(0,De.jsx)(ye,{children:e&&Object.keys(e).map(f=>(0,De.jsxs)(se,{children:[(0,De.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,De.jsx)(wt,{children:e[f].map(w=>(0,De.jsx)(Nt,{children:(0,De.jsx)(Pt,{asChild:!0,isActive:!1,size:"sm",children:(0,De.jsxs)(P,{href:w.url,item:w,className:"flex justify-between items-center w-full text-xs",children:[(0,De.jsx)("span",{children:w.label}),w.type==="note"&&(0,De.jsx)($s.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),w.type==="draft"&&(0,De.jsx)(Le,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},w.label))})]},f))})})})]})}),t&&!r&&(0,De.jsx)(et,{defaultOpen:!0,className:"group/collapsible",children:(0,De.jsxs)(Me,{children:[(0,De.jsx)(at,{asChild:!0,children:(0,De.jsxs)(vt,{children:["Table of Contents",(0,De.jsx)($s.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,De.jsx)(_e,{children:(0,De.jsx)(ht,{children:(0,De.jsx)(ye,{children:t.map(f=>{var w;return(0,De.jsxs)(se,{children:[(0,De.jsx)(Ie,{asChild:!0,children:(0,De.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(w=f.items)!=null&&w.length?(0,De.jsx)(wt,{children:f.items.map(L=>(0,De.jsx)(Nt,{children:(0,De.jsx)(Pt,{asChild:!0,isActive:L.isActive,size:"sm",children:(0,De.jsx)("a",{href:`#${L.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,De.jsx)("span",{children:L.title})})})},L.title))}):null]},f.title)})})})})]})})]}),(0,De.jsx)(Bt,{})]})}var Tl=v(require("next/image"));function Fd({title:e,members:t}){return(0,De.jsx)(ne,{className:"mb-6",children:(0,De.jsxs)("div",{className:"p-6",children:[(0,De.jsxs)("div",{className:"flex items-center mb-4",children:[(0,De.jsx)($s.Users,{className:"w-6 De-6 text-accent mr-2"}),(0,De.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,De.jsx)("div",{className:"space-De-4",children:t.map((a,r)=>(0,De.jsxs)("div",{className:"flex items-center space-De-4",children:[(0,De.jsx)("div",{className:"relative w-12 De-12 rounded-full overflow-hidden",children:a.avatar&&(0,De.jsx)(Tl.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,De.jsxs)("div",{children:[(0,De.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,De.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Dl=v(require("next/link"));var _d=({links:e,title:t="Related Content"})=>(0,De.jsxs)(ne,{children:[(0,De.jsx)(Ee,{children:(0,De.jsx)(Be,{className:"text-accent",children:t})}),(0,De.jsx)(xe,{children:(0,De.jsx)("nav",{className:"flex flex-col space-De-2",children:e.map((a,r)=>(0,De.jsxs)(Dl.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,De.jsx)($s.ExternalLink,{className:"ml-1 De-3 w-3"})]},r))})})]});var _i=s("grid De-[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 Gd({pages:e}){let t=(0,al.useSearchParams)(),a=(0,al.usePathname)(),{replace:r}=(0,al.useRouter)(),{totalPages:o,page:i}=e,[n,l]=(0,ur.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?l(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&l(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,De.jsx)("div",{className:"De-12",children:(0,De.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,De.jsx)("li",{children:(0,De.jsx)("button",{className:s(_i,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,De.jsx)(Br.FaArrowLeft,{})})}),c.map((p,u)=>(0,De.jsx)("li",{children:(0,De.jsx)("a",{className:s(_i,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,De.jsx)("li",{children:(0,De.jsx)("button",{className:s(_i,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,De.jsx)(Br.FaArrowRight,{})})})]})})}var yb=s("transition-colors duration-400 hover:text-primary ease-in-out");function Od({title:e,links:t}){let a=(0,al.useSearchParams)(),r=(0,al.usePathname)(),{replace:o}=(0,al.useRouter)();function i(n){let l=new URLSearchParams(a);n?l.set("category",n):l.delete("category"),o(`${r}?${l.toString()}`)}return(0,De.jsxs)(ne,{children:[(0,De.jsx)(Ee,{children:(0,De.jsx)(Be,{className:"text-accent",children:e&&e})}),(0,De.jsx)(xe,{children:t&&t.length>0&&(0,De.jsx)("nav",{"aria-label":"footer links navigation",children:(0,De.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,l)=>(0,De.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,De.jsx)($s.ExternalLink,{className:"ml-1 De-3 w-3"})]},l))})})})]})}function $d({types:e}){let[t,a]=(0,ur.useState)(e&&e[0].href),r=(0,al.useSearchParams)(),o=(0,al.usePathname)(),{replace:i}=(0,al.useRouter)();function n(l){let d=new URLSearchParams(r);l?d.set("type",l):d.delete("type"),a(l),i(`${o}?${d.toString()}`)}return(0,De.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-De-auto pb-4 mb-6",children:e&&e.map((l,d)=>(0,De.jsx)(H,{variant:l.href===t?"default":"ghost",className:s("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",l.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(l.href),children:l.label},d))})}var El=v(require("next/image"));var Oi=({links:e,media:t,children:a,richText:r})=>(0,De.jsxs)("div",{className:"relative -De-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,De.jsx)("div",{className:"container mb-8 De-10 relative flex items-end justify-center",children:(0,De.jsxs)("div",{className:"text-center",children:[a||r&&(0,De.jsx)(Q,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,De.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,De.jsx)("li",{children:(0,De.jsx)(Ue,{...o})},i))})]})}),(0,De.jsxs)("div",{className:"min-De-[80vh] select-none",children:[t&&typeof t=="object"&&(0,De.jsx)(pt,{fill:!0,imgClassName:"De-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,De.jsx)("div",{children:(0,De.jsx)(El.default,{className:"-De-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,De.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var $i=v(require("next/image"));var Vd=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,De.jsx)($i.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,De.jsx)("div",{children:(0,De.jsx)($i.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Vi=({links:e,media:t,children:a,richText:r})=>(0,De.jsxs)("div",{className:"relative bg-brand-one pb-12 De-20 pt-10",children:[t&&(0,De.jsx)(Vd,{media:t}),(0,De.jsx)("div",{className:"mx-0 min-w-full relative De-9",children:(0,De.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,De.jsx)(Q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var Wi=({children:e,richText:t})=>(0,De.jsx)("div",{className:"min-w-full py-10 bg-muted De-24",children:(0,De.jsx)("div",{className:"container",children:e||t&&(0,De.jsx)(Q,{content:t,enableGutter:!1})})});var Za=v(require("react"));var Bl=v(require("next/image")),Wd=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,De.jsxs)("div",{className:"relative -De-[10.4rem] flex items-end",children:[(0,De.jsx)("div",{className:"container De-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,De.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,De.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((l,d)=>{if(typeof l=="object"&&l!==null){let{title:m}=l;return(0,De.jsx)(kt,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,De.jsx)("div",{className:"",children:(0,De.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,De.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,De.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,De.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,De.jsx)("p",{className:"text-sm",children:"Author"}),r.map((l,d)=>{let{name:m}=l,c=d===r.length-1,p=d===r.length-2;return(0,De.jsxs)(Za.default.Fragment,{children:[m,p&&r.length>2&&(0,De.jsx)(Za.default.Fragment,{children:", "}),p&&r.length===2&&(0,De.jsx)(Za.default.Fragment,{children:" "}),!c&&r.length>1&&(0,De.jsx)(Za.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,De.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,De.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,De.jsx)("time",{dateTime:o,children:ml(o)})]})]})]})}),(0,De.jsxs)("div",{className:"min-De-[50vh] max-De-[50vh] select-none",children:[(0,De.jsx)("div",{children:(0,De.jsx)(Bl.default,{className:"-De-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,De.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full De-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var jr=require("@heroicons/react/20/solid");var Hl=v(require("next/image"));function Ui({title:e,breadcrumbItems:t,image:a}){return(0,De.jsxs)("section",{className:"-De-10 relative flex min-De-[250px] pt-auto items-end",children:[(0,De.jsx)("div",{className:"absolute inset-0 De-0",children:a&&(0,De.jsx)(Hl.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,De.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,De.jsx)(Yt,{children:(0,De.jsxs)("div",{className:"relative De-10 flex flex-wrap items-center justify-between gap-De-20 gap-De-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,De.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,De.jsx)(Xi,{breadcrumbItems:t})]})})]})}var Ud={highImpact:Oi,lowImpact:Wi,mediumImpact:Vi,sectionHero:Ui},Xd=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Ud[t];return a?(0,De.jsx)(a,{...e}):null};function Xi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,De.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,De.jsxs)("ol",{role:"list",className:"flex items-center space-De-4",children:[(0,De.jsx)("li",{children:(0,De.jsx)("div",{children:(0,De.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,De.jsx)(jr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,De.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,De.jsx)("li",{children:(0,De.jsxs)("div",{className:"flex items-center",children:[(0,De.jsx)(jr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,De.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,De.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,De.jsx)(De.Fragment,{})}var Te=require("@headlessui/react"),qr=require("@heroicons/react/24/outline");var jd=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,$.jsx)("a",{href:r,className:"flex items-center gap-De-1 text-sm font-semibold text-foreground group",children:(0,$.jsxs)("span",{className:"relative",children:[e,(0,$.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 De-0.5 bg-accent transform -translate-De-1/2 scale-De-0 transition-transform duration-300 ease-in-out group-hover:scale-De-100"})]})}):(0,$.jsxs)(Te.Popover,{children:[(0,$.jsxs)(Te.PopoverButton,{className:"flex items-center gap-De-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,$.jsxs)("span",{className:"relative",children:[e,(0,$.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 De-0.5 bg-accent transform -translate-De-1/2 scale-De-0 transition-transform duration-300 ease-in-out group-hover:scale-De-100"})]}),(0,$.jsx)(jr.ChevronDownIcon,{"aria-hidden":"true",className:"De-5 w-5 flex-none text-accent"})]}),(0,$.jsxs)(Te.PopoverPanel,{transition:!0,className:"absolute inset-De-0 top-0 -De-10 bg-popover De-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-De-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,$.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-De-4 px-6 py-10 lg:px-8 xl:gap-De-8 De-50",children:t&&t.map(o=>(0,$.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,$.jsx)("div",{className:"flex De-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,$.jsx)(zl,{icon:o.icon,size:"4x"})}),(0,$.jsxs)("a",{href:o.href,className:"De-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,$.jsx)("span",{className:"absolute inset-0"})]}),(0,$.jsx)("p",{className:"De-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,$.jsx)("div",{className:"bg-gray-50",children:(0,$.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,$.jsx)("div",{className:"grid grid-cols-3 divide-De divide-gray-900/5 border-De border-gray-900/5",children:a.map(o=>(0,$.jsxs)("a",{href:o.href,className:"flex items-center max-De-12 justify-center gap-De-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,$.jsx)(zl,{icon:o.icon,className:"De-5 w-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),zl=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,$.jsx)(Le,{...e,size:a});if("src"in e)return(0,$.jsx)("div",{className:s(t,"De-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,$.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Yr=jd;var Kr=["light","dark","green"];function Yd({title:e,logo:t,menuItems:a}){let[r,o]=(0,ur.useState)(!1),[i,n]=(0,ur.useState)(!1),[l,d]=(0,ur.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,ur.useState)(`${m}.${c}`),g=f=>{Kr.includes(f)?u(f==="light"?`${m}.${c}`:`${m}-${f}.${c}`):u(`${m}.${c}`)};(0,ur.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";d(f),document.documentElement.setAttribute("class",f),g(f)},[]);let P=()=>{let f=Kr[(Kr.indexOf(l)+1)%Kr.length];d(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,De.jsxs)("header",{className:"relative isolate De-10 bg-background De-14",children:[(0,De.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,De.jsx)("div",{className:"flex lg:flex-1",children:(0,De.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,De.jsx)("span",{className:"sr-only",children:e}),(0,De.jsx)("img",{alt:e,src:p,className:"De-9 w-auto"})]})}),(0,De.jsx)("div",{className:"flex lg:hidden",children:(0,De.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,De.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,De.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"De-6 w-6"})]})}),(0,De.jsx)(Te.PopoverGroup,{className:"hidden lg:flex lg:gap-De-12",children:a.map(f=>(0,De.jsx)(Yr,{...f},f.name))}),(0,De.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,De.jsx)("button",{onClick:P,className:"p-2 text-gray-700 outline-none",children:l==="dark"?(0,De.jsx)(jr.SunIcon,{className:"De-6 w-6"}):l==="green"?(0,De.jsx)(jr.MoonIcon,{className:"De-6 w-6"}):(0,De.jsx)(jr.SunIcon,{className:"De-6 w-6"})})})]}),(0,De.jsxs)(Te.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,De.jsx)("div",{className:"fixed inset-0 De-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,De.jsxs)(Te.DialogPanel,{className:"fixed inset-De-0 right-0 De-20 w-full overflow-De-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,De.jsxs)("div",{className:"flex items-center justify-between",children:[(0,De.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,De.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,De.jsx)("img",{alt:e,src:t,className:"De-8 w-auto"})]}),(0,De.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,De.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,De.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"De-6 w-6"})]})]}),(0,De.jsx)("div",{className:"De-6 flow-root",children:(0,De.jsx)("div",{className:"-my-6 divide-De divide-gray-500/10",children:(0,De.jsx)("div",{className:"space-De-2 py-6",children:a.map(f=>(0,De.jsx)(Kd,{...f},f.name))})})})]})]})]})}function Kd({name:e,items:t,actions:a,href:r}){return!t&&r?(0,De.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,De.jsxs)(Te.Disclosure,{as:"div",className:"-mx-3",children:[(0,De.jsx)(Te.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,De.jsx)(Te.DisclosurePanel,{className:"De-2 space-De-2",children:t&&t.map(o=>(0,De.jsx)(Te.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 $l=v(require("next/image"));var ji=v(require("next/image"));function It({logoLight:e,logoDark:t,mobile:a=!1}){return(0,De.jsxs)(le,{href:"/",className:s(a?"py-1":"py-2"),children:[(0,De.jsx)(ji.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,De.jsx)(ji.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 _l=require("next-themes");function ar({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,ur.useState)(!1),[n,l]=(0,ur.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,_l.useTheme)();(0,ur.useEffect)(()=>{l(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];l(u),c(u)};return(0,ur.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,De.jsx)(De.Fragment,{children:(0,De.jsx)("header",{className:`De-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-De-0":"-translate-De-full bg-transparent"}`,children:(0,De.jsx)(Yt,{className:"px-0",children:(0,De.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-De-xl",children:(0,De.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-De-xl border border-t-0 border-accent",children:[(0,De.jsx)(It,{logoDark:a,logoLight:t}),(0,De.jsx)(Te.PopoverGroup,{className:"hidden lg:flex lg:gap-De-12",children:r&&r.map(u=>(0,De.jsx)(Yr,{...u},u.name))}),(0,De.jsx)("div",{className:"flex items-center space-De-4",children:(0,De.jsx)("button",{className:"fixed right-4 De-[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,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)($s.Sun,{className:"absolute De-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,De.jsx)($s.Moon,{className:"absoulte De-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Yi=["light","dark"];function rr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,ur.useState)(!1),{theme:n,setTheme:l}=(0,_l.useTheme)(),[d,m]=(0,ur.useState)(!1),[c,p]=(0,ur.useState)("light");(0,ur.useEffect)(()=>{let g=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,ur.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=Yi[(Yi.indexOf(c)+1)%Yi.length];p(g),l(g)};return(0,De.jsx)(De.Fragment,{children:(0,De.jsxs)("header",{className:`De-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-De-0":"-translate-De-full bg-transparent"}`,children:[(0,De.jsx)("nav",{className:s("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,De.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&De.logo-light]:[filter:brightness(0)_invert(1)] dark:border-De dark:border-accent",children:[(0,De.jsx)(It,{logoDark:t,logoLight:e,mobile:!0}),(0,De.jsxs)("div",{className:"flex items-center space-De-4",children:[(0,De.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 De-[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,De.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,De.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"De-4 w-4"})]}),(0,De.jsx)("button",{className:"fixed right-16 De-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,De.jsxs)("div",{className:"relative",children:[(0,De.jsx)($s.Sun,{className:"absolute De-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,De.jsx)($s.Moon,{className:"absoulte De-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,De.jsxs)(Te.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,De.jsx)("div",{className:"fixed inset-0 De-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,De.jsxs)(Te.DialogPanel,{className:"fixed inset-De-0 right-0 De-20 w-full overflow-De-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,De.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,De.jsx)(It,{logoDark:t,logoLight:e,mobile:!0}),(0,De.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,De.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,De.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"De-6 w-6"})]})]}),(0,De.jsx)("div",{className:"De-6 flow-root",children:(0,De.jsx)("div",{className:"-my-6 divide-De divide-gray-500/10",children:(0,De.jsx)("div",{className:"space-De-2 px-2 py-6",children:a&&a.map(g=>(0,De.jsx)(qd,{...g},g.name))})})})]})]})]})})}function qd({name:e,items:t,actions:a,href:r}){return!t&&r?(0,De.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,De.jsxs)(Te.Disclosure,{as:"div",className:"-mx-3",children:[(0,De.jsx)(Te.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,De.jsx)(Te.DisclosurePanel,{className:"De-2 space-De-2",children:t&&t.map(o=>(0,De.jsx)(Te.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 Jd({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,l]=(0,ur.useState)(!1),[d,m]=(0,ur.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,ur.useEffect)(()=>{let u=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,De.jsxs)("div",{className:"relative De-screen",children:[(0,De.jsxs)("div",{className:"absolute inset-0 w-full De-screen overflow-hidden",children:[(0,De.jsxs)("video",{className:"object-cover w-full De-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,De.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,De.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,De.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 De-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,De.jsx)($s.Menu,{className:"w-6 De-6 text-white"})}),(0,De.jsxs)("div",{className:"fixed top-0 left-0 right-0 De-50",children:[(0,De.jsx)(ar,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,De.jsx)(rr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,De.jsxs)("div",{className:"absolute inset-0 De-full De-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,De.jsx)($l.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:s("absolute top-2.5 De-auto w-auto De-8 hidden lg:block",d&&"lg:hidden")}),(0,De.jsxs)("div",{className:"absolute top-1/2vv De-full flex flex-col px-4 items-center justify-center",children:[(0,De.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:o&&o}),(0,De.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:i&&i})]}),(0,De.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,De.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,De.jsx)($s.ChevronDown,{size:64})})})]})]})}var Vl=v(require("next/image"));var Qd=s("text-base/[1.75] transition-transform duration-350 hover:-translate-De-1 block px-4"),Ki=s("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),qi=s("w-10 De-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ji=s("flex items-center gap-5"),to=s("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Zd({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:l,footerBottom:d}=t;return(0,De.jsxs)("footer",{className:s("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,De.jsx)("div",{className:"py-16 md:py-20",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,De.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,De.jsx)(It,{logoLight:a,logoDark:r}),(0,De.jsx)("p",{className:"mb-7 De-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,De.jsx)("nav",{"aria-label":"social links",children:(0,De.jsx)("ul",{className:"inline-flex min-De-[50px] items-center divide-De rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,De.jsx)("li",{children:(0,De.jsx)(le,{"aria-label":m.href,className:Qd,href:m.href,openNewTab:!0,children:(0,De.jsx)("span",{children:m.icon})})},c))})})]}),(0,De.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,De.jsx)("h3",{className:Ki,children:i.title}),i.links&&i.links.length>0&&(0,De.jsx)("nav",{"aria-label":"footer links navigation",children:(0,De.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,De.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,De.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,De.jsx)(Br.FaChevronRight,{})}),(0,De.jsx)(le,{href:m.href,openNewTab:m.openNewTab,className:to,children:m.label})]},m.label))})})]}),(0,De.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,De.jsx)("h3",{className:Ki,children:n.title}),(0,De.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,De.jsxs)("li",{className:Ji,children:[(0,De.jsx)("span",{className:qi,children:(0,De.jsx)(Br.FaPaperPlane,{})}),(0,De.jsx)("address",{className:"not-italic",children:n.location})]}),(0,De.jsxs)("li",{className:Ji,children:[(0,De.jsx)("span",{className:qi,children:(0,De.jsx)(Br.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,De.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,De.jsx)("a",{href:`mailto:${m}`,className:to,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,De.jsxs)("li",{className:Ji,children:[(0,De.jsx)("span",{className:qi,children:(0,De.jsx)(Br.FaPhone,{})}),(0,De.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,De.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:to,children:m},c))})]})]})]}),l&&(0,De.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,De.jsx)("h3",{className:Ki,children:l.title}),l.blogs&&l.blogs.length>0&&(0,De.jsx)("div",{className:"grid gap-6",children:l.blogs.map((m,c)=>(0,De.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,De.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,De.jsx)(Vl.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,De.jsxs)("div",{children:[(0,De.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,De.jsx)("span",{className:"text-accent",children:(0,De.jsx)(Br.FaCalendarDays,{})}),(0,De.jsx)("span",{children:ul(m.date)})]}),(0,De.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,De.jsx)(le,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,De.jsx)("div",{className:"flex min-De-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,De.jsx)("div",{className:"container",children:(0,De.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-De-8 gap-De-4 md:gap-De-10",children:[(0,De.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,De.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,De.jsx)("ul",{className:"flex flex-wrap items-center gap-De-4 md:gap-De-7",children:d.links.map(m=>(0,De.jsx)("li",{children:(0,De.jsx)(le,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:to,children:m.label})},m.label))})})]})})})]})}function em({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,De.jsxs)("div",{className:s("fixed top-0 left-0 right-0 De-50",o),children:[(0,De.jsx)(ar,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,De.jsx)(rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function tm({children:e,...t}){return(0,De.jsx)(_l.ThemeProvider,{...t,children:e})}var Qt=require("sonner");function Qi({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,ur.useState)([]),i=(0,al.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},l=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(Qt.toast.success(c.message),i.refresh()):Qt.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(Qt.toast.success(c.message),i.refresh()):Qt.toast.error(`Error: ${c.message}`),o([])};return(0,De.jsxs)("div",{className:"space-De-4",children:[(0,De.jsxs)("div",{className:"flex justify-between items-center",children:[(0,De.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,De.jsxs)("div",{className:"space-De-2",children:[(0,De.jsx)(H,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,De.jsx)(H,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,De.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,De.jsxs)("ul",{className:"divide-De divide-gray-200",children:[(0,De.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,De.jsxs)("div",{className:"flex items-center justify-between",children:[(0,De.jsxs)("div",{className:"flex items-center",children:[(0,De.jsx)(Ua,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,De.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,De.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,De.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,De.jsxs)("div",{className:"flex items-center justify-between",children:[(0,De.jsxs)("div",{className:"flex items-center",children:[(0,De.jsx)(Ua,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>l(c.id),className:"border-accent"}),(0,De.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,De.jsxs)(it,{className:"De-10 w-10",children:[(0,De.jsx)(st,{src:c.userImage,alt:c.userName}),(0,De.jsx)(nt,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,De.jsx)("div",{className:"ml-3",children:(0,De.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,De.jsxs)("div",{className:"flex items-center space-De-2",children:[(0,De.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,De.jsx)(kt,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,De.jsx)(Qt.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Zi=require("date-fns"),am=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,De.jsx)("div",{className:"flex space-De-2",children:e.map((o,i)=>(0,De.jsx)(H,{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 ts({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,ur.useState)(new Date),[o,i]=(0,ur.useState)(new Date),[n,l]=(0,ur.useState)("Full Day"),[d,m]=(0,ur.useState)(!1),c=(0,al.useRouter)();(0,ur.useEffect)(()=>{m(a!==o||!a||!o),d&&l("Full Day")},[a,o]);let p=g=>{l(g)};return(0,De.jsxs)("div",{className:"max-w-2xl",children:[(0,De.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,De.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,De.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!o){Qt.toast.error("Please select both start and end dates");return}let P=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(P=.5),P>e){Qt.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",o.toISOString()),f.append("leaveType",n),f.append("duration",P.toString());let w=await(t||rm)(f);w.success?(Qt.toast.success(w.message),r(void 0),i(void 0),l("Full Day"),c.refresh()):Qt.toast.error(`Error: ${w.message}`)},className:"space-De-4",children:[(0,De.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,De.jsxs)("div",{className:"flex flex-col space-De-2",children:[(0,De.jsx)(Ft,{htmlFor:"startDate",children:"Start Date"}),(0,De.jsxs)(_a,{children:[(0,De.jsx)(Ga,{asChild:!0,children:(0,De.jsxs)(H,{variant:"outline",className:s("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,De.jsx)($s.CalendarIcon,{className:"mr-2 De-4 w-4"}),a?(0,Zi.format)(a,"PPP"):(0,De.jsx)("span",{children:"Pick a date"})]})}),(0,De.jsx)(da,{className:"w-auto p-0",align:"start",children:(0,De.jsx)(Xa,{mode:"single",selected:a,onSelect:g=>{r(g),g&&(!o||g>o)&&i(g)},initialFocus:!0})})]})]}),(0,De.jsxs)("div",{className:"flex flex-col space-De-2",children:[(0,De.jsx)(Ft,{htmlFor:"endDate",children:"End Date"}),(0,De.jsxs)(_a,{children:[(0,De.jsx)(Ga,{asChild:!0,children:(0,De.jsxs)(H,{variant:"outline",className:s("w-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,De.jsx)($s.CalendarIcon,{className:"mr-2 De-4 w-4"}),o?(0,Zi.format)(o,"PPP"):(0,De.jsx)("span",{children:"Pick a date"})]})}),(0,De.jsx)(da,{className:"w-auto p-0",align:"start",children:(0,De.jsx)(Xa,{mode:"single",selected:o,onSelect:i,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,De.jsxs)("div",{className:"space-De-2",children:[(0,De.jsx)(Ft,{children:"Leave Type"}),(0,De.jsx)(am,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,De.jsx)(H,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,De.jsx)(Qt.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var rm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Kl(...e){return e.filter(Boolean).join(" ")}function as({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},l=()=>{t(new Date)};return(0,De.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,De.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,De.jsxs)("div",{className:"sm:flex-auto",children:[(0,De.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,De.jsx)("p",{className:"De-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,De.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,De.jsxs)(H,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,De.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,De.jsx)($s.ChevronLeft,{className:"De-5 w-5","aria-hidden":"true"})]}),(0,De.jsx)(H,{variant:"outline",onClick:l,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,De.jsxs)(H,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,De.jsx)("span",{className:"sr-only",children:"Next month"}),(0,De.jsx)($s.ChevronRight,{className:"De-5 w-5","aria-hidden":"true"})]})]})]}),(0,De.jsx)("div",{className:"De-8 flow-root",children:(0,De.jsx)("div",{className:"-mx-4 -my-2 overflow-De-auto sm:-mx-6 lg:-mx-8",children:(0,De.jsx)("div",{className:"max-De-[60vh] overflow-De-auto",children:(0,De.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,De.jsx)("thead",{className:"sticky top-0 De-10 bg-white",children:(0,De.jsxs)("De",{children:[(0,De.jsx)("th",{scope:"col",className:"sticky top-0 De-10 border-De border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((d,m)=>(0,De.jsx)("th",{scope:"col",className:"sticky top-0 De-10 border-De border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,De.jsx)("tbody",{children:r.map((d,m)=>(0,De.jsxs)("De",{children:[(0,De.jsx)("td",{className:Kl(m!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,De.jsxs)("div",{className:"flex items-center",children:[(0,De.jsxs)(it,{className:"De-11 w-11",children:[(0,De.jsx)(st,{src:d.image,alt:d.name}),(0,De.jsx)(nt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,De.jsx)("div",{className:"ml-4",children:(0,De.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),g=a.find(P=>P.userId===d.id&&new Date(P.startDate)<=u&&new Date(P.endDate)>=u);return(0,De.jsx)("td",{className:Kl(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,De.jsx)("div",{className:`De-6 w-6 mx-auto rounded-full overflow-hidden ${g?g.status==="approved"?"bg-green-500":g.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:g?`${d.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,De.jsx)("div",{className:`De-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function rs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,ur.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),l=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,De.jsxs)("div",{className:"lg:flex lg:De-full lg:flex-col",children:[(0,De.jsxs)("header",{className:"flex items-center justify-between border-De border-gray-200 px-6 py-4 lg:flex-none",children:[(0,De.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,De.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,De.jsx)("div",{className:"flex items-center",children:(0,De.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,De.jsxs)(H,{onClick:l,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,De.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,De.jsx)($s.ChevronLeft,{className:"De-5 w-5","aria-hidden":"true"})]}),(0,De.jsx)(H,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,De.jsxs)(H,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,De.jsx)("span",{className:"sr-only",children:"Next month"}),(0,De.jsx)($s.ChevronRight,{className:"De-5 w-5","aria-hidden":"true"})]})]})})]}),(0,De.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,De.jsxs)("div",{className:"grid grid-cols-7 gap-px border-De border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,De.jsxs)("div",{className:"bg-white py-2",children:["M",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["T",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["W",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["T",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["F",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["De",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,De.jsxs)("div",{className:"bg-white py-2",children:["De",(0,De.jsx)("span",{className:"sr-only sm:not-sr-only",children:"As"})]})]}),(0,De.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,De.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,De.jsxs)("div",{className:s(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,De.jsx)("time",{dateTime:c.date.toISOString(),className:s("flex De-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,De.jsx)("ol",{className:"De-2 space-De-1",children:c.holidays.map(p=>(0,De.jsx)("li",{children:(0,De.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,De.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,De.jsxs)("button",{type:"button",className:s(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex De-14 flex-col px-3 py-2 hover:bg-gray-100 focus:De-10"),children:[(0,De.jsx)("time",{dateTime:c.date.toISOString(),className:s("ml-auto",c.date===r&&c.isToday&&"flex De-6 w-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex De-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,De.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,De.jsx)("span",{className:"-mx-0.5 De-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,De.jsx)("span",{className:`mx-0.5 mb-1 De-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var At=require("lucide-react");function Jl(...e){return e.filter(Boolean).join(" ")}function om({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:l}){let[d,m]=(0,ur.useState)("Calendar View"),c=(0,al.useRouter)(),p=!1,u=(0,Zi.parseISO)(a),g=async f=>{let w=(0,Zi.format)(f,"dd-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",w),c.push(L.toString()),{success:!0}};if(p)return(0,De.jsx)("div",{className:"flex justify-center items-center De-screen",children:(0,De.jsx)("div",{className:"animate-spin rounded-full De-32 w-32 border-t-2 border-De-2 border-gray-900"})});let P=[{name:"Grid View",icon:At.Grid,current:d==="Grid View"},{name:"Calendar View",icon:At.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:At.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:At.CheckSquare,current:d==="Approve Leave"}];return(0,De.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,De.jsxs)("div",{className:"mb-8",children:[(0,De.jsxs)("div",{className:"sm:hidden",children:[(0,De.jsx)("select",{value:d,onChange:f=>m(f.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:P.map(f=>(0,De.jsx)("option",{children:f.name},f.name))}),(0,De.jsx)($s.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 De-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,De.jsx)("div",{className:"hidden sm:block",children:(0,De.jsx)("div",{className:"border-De border-gray-200",children:(0,De.jsx)("nav",{className:"-mb-px flex space-De-8","aria-label":"Tabs",children:P.map(f=>(0,De.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:Jl(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-De-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,De.jsx)(f.icon,{className:Jl(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 De-5 w-5"),"aria-hidden":"true"}),(0,De.jsx)("span",{children:f.name})]},f.name))})})})]}),d==="Grid View"&&(0,De.jsx)(as,{currentDate:u,setCurrentDate:g,holidays:e,employees:o}),d==="Calendar View"&&(0,De.jsx)(rs,{currentDate:u,setCurrentDate:g,holidays:e}),d==="Request Leave"&&(0,De.jsx)(ts,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>i?i(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,De.jsx)(Qi,{leaveRequests:r,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>l?l(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}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,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,CopyButton,CustomLink,CustomerCard,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,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:l("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,$.jsxs)("div",{className:"relative Xe-10 flex h-full flex-1 Xe-full flex-col",children:[o&&(0,$.jsx)("div",{children:(0,$.jsx)("div",{className:"inline-grid Xe-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,$.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,$.jsx)("span",{className:"block",children:Il(o)})})})}),(0,$.jsxs)("div",{className:"Xe-auto space-y-2 text-white md:space-y-5",children:[(0,$.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Xe-5 gap-y-2",children:(0,$.jsx)("p",{className:Hl})}),(0,$.jsx)("h3",{className:"text-md font-bold Xe-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,$.jsx)(be,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,$.jsx)("div",{children:(0,$.jsxs)(be,{href:e,className:l(Hl,"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,$.jsx)("span",{children:"Read More"}),(0,$.jsx)("span",{className:"text-accent",children:(0,$.jsx)(oo.FaArrowRight,{})})]})})]})]})]})}var qd=e=>{let{posts:t}=e;return(0,Xe.jsx)("div",{className:l("container"),children:(0,Xe.jsx)("div",{children:(0,Xe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-Xe-4 lg:gap-y-8 lg:gap-Xe-8 xl:gap-Xe-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,Xe.jsx)("div",{className:"col-span-4",children:(0,Xe.jsx)(yr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Ol=y(require("clsx")),_l=y(require("next/image")),Jd=e=>{let{loading:t,priority:a,className:r}=e;return(0,Xe.jsx)(_l.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ol.default)("max-Xe-[9.375rem] Xe-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Qd={plural:"Docs",singular:"Doc"},Zd={posts:{plural:"Posts",singular:"Post"}},em=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:i,totalDocs:n}=e,s=(o?o-1:1)*(i||1)+1;n&&s>n&&(s=0);let d=(o||1)*(i||1);n&&d>n&&(d=n);let{plural:m,singular:c}=r||Zd[a||""]||Qd||{};return(0,Xe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Hr results.",typeof n!="undefined"&&n>0&&`Showing ${s}${s>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var ts=y(require("react")),as=({className:e,...t})=>(0,Xe.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex Xe-full justify-center",e),role:"navigation",...t});as.displayName="Pagination";var rs=ts.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));rs.displayName="PaginationContent";var At=ts.forwardRef(({className:e,...t},a)=>(0,Xe.jsx)("li",{className:l("",e),ref:a,...t}));At.displayName="PaginationItem";var ha=({className:e,isActive:t,size:a="icon",...r})=>(0,Xe.jsx)("button",{"aria-current":t?"page":void 0,className:l(zt({size:a,variant:t?"outline":"ghost"}),e),...r});ha.displayName="PaginationLink";var os=({className:e,...t})=>(0,Xe.jsxs)(ha,{"aria-label":"Go Xe previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Xe.jsx)(un.ChevronLeft,{className:"h-4 Xe-4"}),(0,Xe.jsx)("span",{children:"Previous"})]});os.displayName="PaginationPrevious";var is=({className:e,...t})=>(0,Xe.jsxs)(ha,{"aria-label":"Go Xe next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Xe.jsx)("span",{children:"Next"}),(0,Xe.jsx)(un.ChevronRight,{className:"h-4 Xe-4"})]});is.displayName="PaginationNext";var go=({className:e,...t})=>(0,Xe.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 Xe-9 items-center justify-center",e),...t,children:[(0,Xe.jsx)(un.MoreHorizontal,{className:"h-4 Xe-4"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More pages"})]});go.displayName="PaginationEllipsis";var tm=e=>{let t=(0,$l.useRouter)(),{className:a,page:r,totalPages:o}=e,i=r<o,n=r>1,s=r-1>1,d=r+1<o;return(0,Xe.jsx)("div",{className:l("my-12",a),children:(0,Xe.jsx)(as,{children:(0,Xe.jsxs)(rs,{children:[(0,Xe.jsx)(At,{children:(0,Xe.jsx)(os,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,Xe.jsx)(At,{children:(0,Xe.jsx)(go,{})}),n&&(0,Xe.jsx)(At,{children:(0,Xe.jsx)(ha,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,Xe.jsx)(At,{children:(0,Xe.jsx)(ha,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),i&&(0,Xe.jsx)(At,{children:(0,Xe.jsx)(ha,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,Xe.jsx)(At,{children:(0,Xe.jsx)(go,{})}),(0,Xe.jsx)(At,{children:(0,Xe.jsx)(is,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var ss=y(require("clsx"));function am({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:i,onNavClick:n,loading:s=!1,LinkComponent:d,...m}){let p=d?u=>(0,Xe.jsx)(d,{...u}):n?({href:u,children:g,...h})=>(0,Xe.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start Xe-full text-sm text-left px-4 py-2",...h,children:g}):u=>(0,Xe.jsx)("a",{...u});return(0,Xe.jsxs)(aa,{...m,variant:"inset",children:[(0,Xe.jsx)(ra,{children:(0,Xe.jsx)(De,{children:(0,Xe.jsx)(ge,{children:s?(0,Xe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Xe.jsx)(Z,{className:"bg-gray-200 my-2 Xe-full h-7"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 my-2 h-5"})]}):(0,Xe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Xe.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,Xe.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),s&&(0,Xe.jsxs)(Ot,{children:[(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"}),(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-3/4 h-5"})]}),(0,Xe.jsxs)(Ot,{children:[e&&!s&&e.map((u,g)=>(0,Xe.jsx)(rm,{subNav:u,pathName:o,Link:p},g)),(0,Xe.jsx)(je,{className:"Xe-auto",children:(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(De,{children:t&&!s&&t.map(u=>(0,Xe.jsx)(ge,{children:(0,Xe.jsx)(Ye,{asChild:!0,size:"sm",children:(0,Xe.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,Xe.jsx)(u.icon,{}),(0,Xe.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,Xe.jsx)(oa,{})]})}function rm({subNav:e,pathName:t,Link:a}){var i,n;let r=e,o=!1;return r.links&&r.links.map(s=>{s.url===t&&(o=!0)}),(0,Xe.jsx)(yt,{defaultOpen:!0,className:"group/collapsible",children:(0,Xe.jsx)(je,{className:"py-0",children:(0,Xe.jsx)(De,{children:(0,Xe.jsx)(yt,{asChild:!0,defaultOpen:r.isActive,children:(0,Xe.jsxs)(ge,{children:[(0,Xe.jsx)(Ye,{asChild:!0,tooltip:r.label,className:(0,ss.default)(o&&"font-bold text-accent"),children:(0,Xe.jsxs)(a,{href:r.url,children:[r.icon&&(0,Xe.jsx)(r.icon,{}),(0,Xe.jsx)("span",{children:r.label})]})}),(i=r.links)!=null&&i.length?(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(Ht,{asChild:!0,children:(0,Xe.jsxs)(ar,{className:"data-[state=open]:rotate-90",children:[(0,Xe.jsx)(un.ChevronRight,{}),(0,Xe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Xe.jsx)(Ft,{children:(0,Xe.jsx)(_t,{children:(n=r.links)==null?void 0:n.map(s=>(0,Xe.jsx)(Gt,{children:(0,Xe.jsx)(Vt,{asChild:!0,className:(0,ss.default)(s.url===t&&"font-bold text-accent"),children:(0,Xe.jsx)(a,{href:s.url,children:(0,Xe.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},r.label)})})})}var Ul=y(require("clsx"));var om=()=>(0,Xe.jsx)(Je,{iconName:"github",size:"10x"});function im({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:i,onEditDocument:n,onPrintDocument:s,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let h=c?f=>(0,Xe.jsx)(c,{...f}):m?({item:f,children:N,...v})=>(0,Xe.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start Xe-full text-sm text-left px-4 py-2",...v,children:N}):f=>(0,Xe.jsx)("a",{href:f.href,...f});return(0,Xe.jsxs)(aa,{side:"right",variant:"inset",...p,children:[(0,Xe.jsxs)(ra,{className:"border-Xe border-sidebar-border",children:[(0,Xe.jsxs)(De,{className:"flex-row space-Xe-1",children:[(0,Xe.jsx)(ge,{children:(0,Xe.jsxs)(Ye,{onClick:i,children:[(0,Xe.jsx)(un.FilePlus,{})," ",(0,Xe.jsx)("span",{children:"Add Document"})]})}),d&&(0,Xe.jsx)(ge,{children:(0,Xe.jsx)(Ye,{onClick:d,tooltip:"Open in GitHub",children:(0,Xe.jsx)(om,{})})})]}),(0,Xe.jsxs)(De,{className:"flex-row space-Xe-1",children:[(0,Xe.jsx)(ge,{className:"Xe-5/12",children:(0,Xe.jsxs)(Ye,{onClick:()=>n(),variant:o?"outline":"default",className:(0,Ul.default)(o&&"text-accent"),children:[(0,Xe.jsx)(un.Edit,{})," ",(0,Xe.jsx)("span",{children:"Edit"})]})}),(0,Xe.jsx)(ge,{className:"Xe-5/12",children:(0,Xe.jsxs)(Ye,{onClick:s,children:[(0,Xe.jsx)(un.Printer,{})," ",(0,Xe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsx)(yt,{defaultOpen:!0,className:"group/collapsible",children:(0,Xe.jsxs)(je,{children:[(0,Xe.jsx)(Nt,{asChild:!0,children:(0,Xe.jsxs)(Ht,{children:["Editor Controls",(0,Xe.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(Ft,{children:a})})]})}),(0,Xe.jsx)(tr,{className:"mx-0"})]}),(0,Xe.jsxs)(Ot,{className:"overflow-auto",children:[r&&(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsxs)(je,{children:[(0,Xe.jsx)(Nt,{children:"Related Content"}),(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(De,{children:Array.from({length:3}).map((f,N)=>(0,Xe.jsx)(ge,{children:(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-full h-10"})},N))})})]}),(0,Xe.jsxs)(je,{children:[(0,Xe.jsx)(Nt,{children:"Table of Contents"}),(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(De,{children:Array.from({length:3}).map((f,N)=>(0,Xe.jsx)(ge,{children:(0,Xe.jsx)(Z,{className:"bg-gray-200 Xe-full h-10"})},N))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,Xe.jsx)(yt,{defaultOpen:!0,className:"group/collapsible",children:(0,Xe.jsxs)(je,{children:[(0,Xe.jsx)(Nt,{asChild:!0,children:(0,Xe.jsxs)(Ht,{children:["Related Content",(0,Xe.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(Ft,{children:(0,Xe.jsx)(De,{children:e&&Object.keys(e).map(f=>(0,Xe.jsxs)(ge,{children:[(0,Xe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,Xe.jsx)(_t,{children:e[f].map(N=>(0,Xe.jsx)(Gt,{children:(0,Xe.jsx)(Vt,{asChild:!0,isActive:!1,size:"sm",children:(0,Xe.jsxs)(h,{href:N.url,item:N,className:"flex justify-between items-center Xe-full text-xs",children:[(0,Xe.jsx)("span",{children:N.label}),N.type==="note"&&(0,Xe.jsx)(un.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),N.type==="draft"&&(0,Xe.jsx)(Je,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},N.label))})]},f))})})})]})}),t&&!r&&(0,Xe.jsx)(yt,{defaultOpen:!0,className:"group/collapsible",children:(0,Xe.jsxs)(je,{children:[(0,Xe.jsx)(Nt,{asChild:!0,children:(0,Xe.jsxs)(Ht,{children:["Table of Contents",(0,Xe.jsx)(un.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Xe.jsx)(tt,{children:(0,Xe.jsx)(Ft,{children:(0,Xe.jsx)(De,{children:t.map(f=>{var N;return(0,Xe.jsxs)(ge,{children:[(0,Xe.jsx)(Ye,{asChild:!0,children:(0,Xe.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(N=f.items)!=null&&N.length?(0,Xe.jsx)(_t,{children:f.items.map(v=>(0,Xe.jsx)(Gt,{children:(0,Xe.jsx)(Vt,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,Xe.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center Xe-full text-xs",children:(0,Xe.jsx)("span",{children:v.title})})})},v.title))}):null]},f.title)})})})})]})})]}),(0,Xe.jsx)(oa,{})]})}var jl=y(require("next/image"));function sm({title:e,members:t}){return(0,Xe.jsx)(me,{className:"mb-6",children:(0,Xe.jsxs)("div",{className:"p-6",children:[(0,Xe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Xe.jsx)(un.Users,{className:"Xe-6 h-6 text-accent mr-2"}),(0,Xe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Xe.jsx)("div",{className:"space-y-4",children:t.map((a,r)=>(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-4",children:[(0,Xe.jsx)("div",{className:"relative Xe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Xe.jsx)(jl.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Xe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var Yl=y(require("next/link"));var nm=({links:e,title:t="Related Content"})=>(0,Xe.jsxs)(me,{children:[(0,Xe.jsx)(Ie,{children:(0,Xe.jsx)(Ae,{className:"text-accent",children:t})}),(0,Xe.jsx)(fe,{children:(0,Xe.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,r)=>(0,Xe.jsxs)(Yl.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,Xe.jsx)(un.ExternalLink,{className:"ml-1 h-3 Xe-3"})]},r))})})]});var ns=l("grid h-[45px] Xe-[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 lm({pages:e}){let t=(0,Nl.useSearchParams)(),a=(0,Nl.usePathname)(),{replace:r}=(0,Nl.useRouter)(),{totalPages:o,page:i}=e,[n,s]=(0,Hr.useState)({start:i>3?i-3:1,end:i+2}),d=p=>{p==="left"&&n.start>1?s(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<o&&s(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),r(`${a}?${u.toString()}`)}if(o<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,Xe.jsx)("div",{className:"Xe-12",children:(0,Xe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,Xe.jsx)("li",{children:(0,Xe.jsx)("button",{className:l(ns,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,Xe.jsx)(oo.FaArrowLeft,{})})}),c.map((p,u)=>(0,Xe.jsx)("li",{children:(0,Xe.jsx)("a",{className:l(ns,p===i?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<o&&(0,Xe.jsx)("li",{children:(0,Xe.jsx)("button",{className:l(ns,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,Xe.jsx)(oo.FaArrowRight,{})})})]})})}var $Xe=l("transition-colors duration-400 hover:text-primary ease-in-out");function cm({title:e,links:t}){let a=(0,Nl.useSearchParams)(),r=(0,Nl.usePathname)(),{replace:o}=(0,Nl.useRouter)();function i(n){let s=new URLSearchParams(a);n?s.set("category",n):s.delete("category"),o(`${r}?${s.toString()}`)}return(0,Xe.jsxs)(me,{children:[(0,Xe.jsx)(Ie,{children:(0,Xe.jsx)(Ae,{className:"text-accent",children:e&&e})}),(0,Xe.jsx)(fe,{children:t&&t.length>0&&(0,Xe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Xe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,s)=>(0,Xe.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:Xe-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),i(n.href)},children:[n.label,(0,Xe.jsx)(un.ExternalLink,{className:"ml-1 h-3 Xe-3"})]},s))})})})]})}function dm({types:e}){let[t,a]=(0,Hr.useState)(e&&e[0].href),r=(0,$a.useSearchParams)(),o=(0,$a.usePathname)(),{replace:i}=(0,$a.useRouter)();function n(s){let d=new URLSearchParams(r);s?d.set("type",s):d.delete("type"),a(s),i(`${o}?${d.toString()}`)}return(0,Xe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Xe-auto pb-4 mb-6",children:e&&e.map((s,d)=>(0,Xe.jsx)(T,{variant:s.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",s.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(s.href),children:s.label},d))})}var Zl=y(require("next/image"));var cs=({links:e,media:t,children:a,richText:r})=>(0,Xe.jsxs)("div",{className:"relative -Xe-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,Xe.jsx)("div",{className:"container mb-8 Xe-10 relative flex items-end justify-center",children:(0,Xe.jsxs)("div",{className:"text-center",children:[a||r&&(0,Xe.jsx)(oe,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!1}),Array.isArray(e)&&e.length>0&&(0,Xe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},i)=>(0,Xe.jsx)("li",{children:(0,Xe.jsx)(ct,{...o})},i))})]})}),(0,Xe.jsxs)("div",{className:"min-h-[80vh] select-none",children:[t&&typeof t=="object"&&(0,Xe.jsx)(It,{fill:!0,imgClassName:"Xe-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Xe.jsx)("div",{children:(0,Xe.jsx)(Zl.default,{className:"-Xe-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Xe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 Xe-white dark:from-background/0 dark:Xe-background"})]})]});var ds=y(require("next/image"));var mm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:i}=e;return(0,Xe.jsx)(ds.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,Xe.jsx)("div",{children:(0,Xe.jsx)(ds.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ms=({links:e,media:t,children:a,richText:r})=>(0,Xe.jsxs)("div",{className:"relative bg-brand-one pb-12 Xe-20 Xe-10",children:[t&&(0,Xe.jsx)(mm,{media:t}),(0,Xe.jsx)("div",{className:"mx-0 min-Xe-full relative Xe-9",children:(0,Xe.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,Xe.jsx)(oe,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var ps=({children:e,richText:t})=>(0,Xe.jsx)("div",{className:"min-Xe-full py-10 bg-muted Xe-24",children:(0,Xe.jsx)("div",{className:"container",children:e||t&&(0,Xe.jsx)(oe,{content:t,enableGutter:!1})})});var Nr=y(require("react"));var ec=y(require("next/image")),pm=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:i}=e;return(0,Xe.jsxs)("div",{className:"relative -Xe-[10.4rem] flex items-end",children:[(0,Xe.jsx)("div",{className:"container Xe-10 relative lg:grid lg:grid-cols-[1fr_48rem_1fr] text-foreground dark:text-foreground pb-8",children:(0,Xe.jsxs)("div",{className:"col-start-1 col-span-3",children:[(0,Xe.jsx)("div",{className:"uppercase text-sm mb-6",children:t==null?void 0:t.map((s,d)=>{if(typeof s=="object"&&s!==null){let{title:m}=s;return(0,Xe.jsx)(qe,{className:"mx-2",children:m||"Untitled category"})}return null})}),(0,Xe.jsx)("div",{className:"",children:(0,Xe.jsx)("h1",{className:"mb-6 text-3xl md:text-5xl lg:text-6xl",children:i})}),(0,Xe.jsxs)("div",{className:"flex flex-col md:flex-row gap-4 md:gap-16",children:[(0,Xe.jsx)("div",{className:"flex flex-col gap-4",children:r&&(0,Xe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Xe.jsx)("p",{className:"text-sm",children:"Author"}),r.map((s,d)=>{let{name:m}=s,c=d===r.length-1,p=d===r.length-2;return(0,Xe.jsxs)(Nr.default.Fragment,{children:[m,p&&r.length>2&&(0,Xe.jsx)(Nr.default.Fragment,{children:", "}),p&&r.length===2&&(0,Xe.jsx)(Nr.default.Fragment,{children:" "}),!c&&r.length>1&&(0,Xe.jsx)(Nr.default.Fragment,{children:"and "})]},d)})]})}),o&&(0,Xe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Xe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Xe.jsx)("time",{dateTime:o,children:Ml(o)})]})]})]})}),(0,Xe.jsxs)("div",{className:"min-h-[50vh] max-h-[50vh] select-none",children:[(0,Xe.jsx)("div",{children:(0,Xe.jsx)(ec.default,{className:"-Xe-10 object-cover",alt:"",fill:!0,priority:!0,src:((n=a&&a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png"})}),(0,Xe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Xe-full h-1/2 bg-gradient-Xe-t from-background dark:from-black Xe-transparent"})]})]})};var vo=require("@heroicons/react/20/solid");var tc=y(require("next/image"));function us({title:e,breadcrumbItems:t,image:a}){return(0,Xe.jsxs)("section",{className:"-Xe-10 relative flex min-h-[250px] Xe-auto items-end",children:[(0,Xe.jsx)("div",{className:"absolute inset-0 Xe-0",children:a&&(0,Xe.jsx)(tc.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,Xe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 Xe-background dark:from-background/0 dark:Xe-background"}),(0,Xe.jsx)(va,{children:(0,Xe.jsxs)("div",{className:"relative Xe-10 flex flex-wrap items-center justify-between gap-Xe-20 gap-y-8 text-accent-900 dark:text-white lg:Xe-[40px] pb-5",children:[(0,Xe.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:Xe-1/2",children:e}),t&&t.length>0&&(0,Xe.jsx)(gs,{breadcrumbItems:t})]})})]})}var um={highImpact:cs,lowImpact:ps,mediumImpact:ms,sectionHero:us},gm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=um[t];return a?(0,Xe.jsx)(a,{...e}):null};function gs({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Xe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Xe.jsxs)("Xe",{role:"list",className:"flex items-center space-Xe-4",children:[(0,Xe.jsx)("li",{children:(0,Xe.jsx)("div",{children:(0,Xe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Xe.jsx)(vo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Xe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,Xe.jsx)("li",{children:(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(vo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Xe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Xe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,Xe.jsx)(Xe.Fragment,{})}var $e=require("@headlessui/react"),xo=require("@heroicons/react/24/outline");var fm=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,Xe.jsx)("a",{href:r,className:"flex items-center gap-Xe-1 text-sm font-semibold text-foreground group",children:(0,Xe.jsxs)("span",{className:"relative",children:[e,(0,Xe.jsx)("span",{className:"absolute -bottom-1 left-1/2 Xe-1/2 h-0.5 bg-accent transform -translate-Xe-1/2 scale-Xe-0 transition-transform duration-300 ease-in-out group-hover:scale-Xe-100"})]})}):(0,Xe.jsxs)($e.Popover,{children:[(0,Xe.jsxs)($e.PopoverButton,{className:"flex items-center gap-Xe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Xe.jsxs)("span",{className:"relative",children:[e,(0,Xe.jsx)("span",{className:"absolute bottom-0 left-1/2 Xe-1/2 h-0.5 bg-accent transform -translate-Xe-1/2 scale-Xe-0 transition-transform duration-300 ease-in-out group-hover:scale-Xe-100"})]}),(0,Xe.jsx)(vo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Xe-5 flex-none text-accent"})]}),(0,Xe.jsxs)($e.PopoverPanel,{transition:!0,className:"absolute inset-Xe-0 top-0 -Xe-10 bg-popover Xe-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,Xe.jsx)("div",{className:"mx-auto grid max-Xe-7xl grid-cols-4 gap-Xe-4 px-6 py-10 lg:px-8 xl:gap-Xe-8 Xe-50",children:t&&t.map(o=>(0,Xe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Xe.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,Xe.jsx)(ac,{icon:o.icon,size:"4x"})}),(0,Xe.jsxs)("a",{href:o.href,className:"Xe-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,Xe.jsx)("span",{className:"absolute inset-0"})]}),(0,Xe.jsx)("p",{className:"Xe-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,Xe.jsx)("div",{className:"bg-gray-50",children:(0,Xe.jsx)("div",{className:"mx-auto max-Xe-7xl px-6 lg:px-8",children:(0,Xe.jsx)("div",{className:"grid grid-cols-3 divide-Xe divide-gray-900/5 border-Xe border-gray-900/5",children:a.map(o=>(0,Xe.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-Xe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,Xe.jsx)(ac,{icon:o.icon,className:"h-5 Xe-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),ac=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Xe.jsx)(Je,{...e,size:a});if("src"in e)return(0,Xe.jsx)("div",{className:l(t,"h-full max-Xe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Xe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ho=fm;var yo=["light","dark","green"];function bm({title:e,logo:t,menuItems:a}){let[r,o]=(0,Hr.useState)(!1),[i,n]=(0,Hr.useState)(!1),[s,d]=(0,Hr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[p,u]=(0,Hr.useState)(`${m}.${c}`),g=f=>{yo.includes(f)?u(f==="light"?`${m}.${c}`:`${m}-${f}.${c}`):u(`${m}.${c}`)};(0,Hr.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";d(f),document.documentElement.setAttribute("class",f),g(f)},[]);let h=()=>{let f=yo[(yo.indexOf(s)+1)%yo.length];d(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,Xe.jsxs)("header",{className:"relative isolate Xe-10 bg-background h-14",children:[(0,Xe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Xe.jsx)("div",{className:"flex lg:flex-1",children:(0,Xe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Xe.jsx)("span",{className:"sr-only",children:e}),(0,Xe.jsx)("img",{alt:e,src:p,className:"h-9 Xe-auto"})]})}),(0,Xe.jsx)("div",{className:"flex lg:hidden",children:(0,Xe.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,Xe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Xe.jsx)(xo.Bars3Icon,{"aria-hidden":"true",className:"h-6 Xe-6"})]})}),(0,Xe.jsx)($e.PopoverGroup,{className:"hidden lg:flex lg:gap-Xe-12",children:a.map(f=>(0,Xe.jsx)(ho,{...f},f.name))}),(0,Xe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Xe.jsx)("button",{onClick:h,className:"p-2 text-gray-700 outline-none",children:s==="dark"?(0,Xe.jsx)(vo.SunIcon,{className:"h-6 Xe-6"}):s==="green"?(0,Xe.jsx)(vo.MoonIcon,{className:"h-6 Xe-6"}):(0,Xe.jsx)(vo.SunIcon,{className:"h-6 Xe-6"})})})]}),(0,Xe.jsxs)($e.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,Xe.jsx)("div",{className:"fixed inset-0 Xe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Xe.jsxs)($e.DialogPanel,{className:"fixed inset-y-0 right-0 Xe-20 Xe-full overflow-y-auto bg-white px-6 py-6 sm:max-Xe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Xe.jsx)("img",{alt:e,src:t,className:"h-8 Xe-auto"})]}),(0,Xe.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Xe.jsx)(xo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Xe-6"})]})]}),(0,Xe.jsx)("div",{className:"Xe-6 flow-root",children:(0,Xe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Xe.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,Xe.jsx)(vm,{...f},f.name))})})})]})]})]})}function vm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Xe.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,Xe.jsxs)($e.Disclosure,{as:"div",className:"-mx-3",children:[(0,Xe.jsx)($e.DisclosureButton,{className:"group flex Xe-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,Xe.jsx)($e.DisclosurePanel,{className:"Xe-2 space-y-2",children:t&&t.map(o=>(0,Xe.jsx)($e.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 nc=y(require("next/image"));var fs=y(require("next/image"));function ea({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Xe.jsxs)(be,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Xe.jsx)(fs.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,Xe.jsx)(fs.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 oc=require("next-themes");function Pr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,i]=(0,Hr.useState)(!1),[n,s]=(0,Hr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,oc.useTheme)();(0,Hr.useEffect)(()=>{s(m||"dark")},[m]);let p=()=>{let u=d[(d.indexOf(n)+1)%d.length];s(u),c(u)};return(0,Hr.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Xe.jsx)(Xe.Fragment,{children:(0,Xe.jsx)("header",{className:`Xe-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Xe.jsx)(va,{className:"px-0",children:(0,Xe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-Xe-xl",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-Xe-xl border border-t-0 border-accent",children:[(0,Xe.jsx)(ea,{logoDark:a,logoLight:t}),(0,Xe.jsx)($e.PopoverGroup,{className:"hidden lg:flex lg:gap-Xe-12",children:r&&r.map(u=>(0,Xe.jsx)(ho,{...u},u.name))}),(0,Xe.jsx)("div",{className:"flex items-center space-Xe-4",children:(0,Xe.jsx)("button",{className:"fixed right-4 Xe-[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,Xe.jsxs)("div",{className:"relative",children:[(0,Xe.jsx)(un.Sun,{className:"absolute h-6 Xe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Xe.jsx)(un.Moon,{className:"absoulte h-6 Xe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var bs=["light","dark"];function Rr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,i]=(0,Hr.useState)(!1),{theme:n,setTheme:s}=(0,oc.useTheme)(),[d,m]=(0,Hr.useState)(!1),[c,p]=(0,Hr.useState)("light");(0,Hr.useEffect)(()=>{let g=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Hr.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=bs[(bs.indexOf(c)+1)%bs.length];p(g),s(g)};return(0,Xe.jsx)(Xe.Fragment,{children:(0,Xe.jsxs)("header",{className:`Xe-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Xe.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,Xe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Xe.logo-light]:[filter:brightness(0)_invert(1)] dark:border-Xe dark:border-accent",children:[(0,Xe.jsx)(ea,{logoDark:t,logoLight:e,mobile:!0}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-4",children:[(0,Xe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 Xe-[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,Xe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Xe.jsx)(xo.Bars3Icon,{"aria-hidden":"true",className:"h-4 Xe-4"})]}),(0,Xe.jsx)("button",{className:"fixed right-16 Xe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,Xe.jsxs)("div",{className:"relative",children:[(0,Xe.jsx)(un.Sun,{className:"absolute h-4 Xe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Xe.jsx)(un.Moon,{className:"absoulte h-4 Xe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Xe.jsxs)($e.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,Xe.jsx)("div",{className:"fixed inset-0 Xe-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Xe.jsxs)($e.DialogPanel,{className:"fixed inset-y-0 right-0 Xe-20 Xe-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-Xe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Xe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Xe.jsx)(ea,{logoDark:t,logoLight:e,mobile:!0}),(0,Xe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Xe.jsx)(xo.XMarkIcon,{"aria-hidden":"true",className:"h-6 Xe-6"})]})]}),(0,Xe.jsx)("div",{className:"Xe-6 flow-root",children:(0,Xe.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Xe.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,Xe.jsx)(hm,{...g},g.name))})})})]})]})]})})}function hm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,Xe.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,Xe.jsxs)($e.Disclosure,{as:"div",className:"-mx-3",children:[(0,Xe.jsx)($e.DisclosureButton,{className:"group flex Xe-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,Xe.jsx)($e.DisclosurePanel,{className:"Xe-2 space-y-2",children:t&&t.map(o=>(0,Xe.jsx)($e.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 ym({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:i}){let[n,s]=(0,Hr.useState)(!1),[d,m]=(0,Hr.useState)(!1),c=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Hr.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,Xe.jsxs)("div",{className:"relative h-screen",children:[(0,Xe.jsxs)("div",{className:"absolute inset-0 Xe-full h-screen overflow-hidden",children:[(0,Xe.jsxs)("video",{className:"object-cover Xe-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Xe.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Xe.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,Xe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 Xe-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,Xe.jsx)(un.Menu,{className:"Xe-6 h-6 text-white"})}),(0,Xe.jsxs)("div",{className:"fixed top-0 left-0 right-0 Xe-50",children:[(0,Xe.jsx)(Pr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:r}),(0,Xe.jsx)(Rr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,Xe.jsxs)("div",{className:"absolute inset-0 h-full Xe-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,Xe.jsx)(nc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto Xe-auto Xe-8 hidden lg:block",d&&"lg:hidden")}),(0,Xe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Xe.jsx)("h1",{className:"text-6xl font-bold Xe-auto mb-12",children:o&&o}),(0,Xe.jsx)("div",{className:"text-3xl mb-8 max-Xe-2xl",children:i&&i})]}),(0,Xe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Xe-full mb-8",children:(0,Xe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,Xe.jsx)(un.ChevronDown,{size:64})})})]})]})}var lc=y(require("next/image"));var xm=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),vs=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),hs=l("Xe-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=l("flex items-center gap-5"),Ro=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Nm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:i,columnTwo:n,columnThree:s,footerBottom:d}=t;return(0,Xe.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Xe.jsx)("div",{className:"py-16 md:py-20",children:(0,Xe.jsx)("div",{className:"container",children:(0,Xe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,Xe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Xe.jsx)(ea,{logoLight:a,logoDark:r}),(0,Xe.jsx)("p",{className:"mb-7 Xe-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,Xe.jsx)("nav",{"aria-label":"social links",children:(0,Xe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Xe rounded-5 bg-accent text-white",children:o.socialLinks.map((m,c)=>(0,Xe.jsx)("li",{children:(0,Xe.jsx)(be,{"aria-label":m.href,className:xm,href:m.href,openNewTab:!0,children:(0,Xe.jsx)("span",{children:m.icon})})},c))})})]}),(0,Xe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Xe.jsx)("h3",{className:vs,children:i.title}),i.links&&i.links.length>0&&(0,Xe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Xe.jsx)("ul",{className:"grid gap-2",children:i.links.map(m=>(0,Xe.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Xe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Xe.jsx)(oo.FaChevronRight,{})}),(0,Xe.jsx)(be,{href:m.href,openNewTab:m.openNewTab,className:Ro,children:m.label})]},m.label))})})]}),(0,Xe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Xe.jsx)("h3",{className:vs,children:n.title}),(0,Xe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Xe.jsxs)("li",{className:ys,children:[(0,Xe.jsx)("span",{className:hs,children:(0,Xe.jsx)(oo.FaPaperPlane,{})}),(0,Xe.jsx)("address",{className:"not-italic",children:n.location})]}),(0,Xe.jsxs)("li",{className:ys,children:[(0,Xe.jsx)("span",{className:hs,children:(0,Xe.jsx)(oo.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,Xe.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,Xe.jsx)("a",{href:`mailto:${m}`,className:Ro,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,Xe.jsxs)("li",{className:ys,children:[(0,Xe.jsx)("span",{className:hs,children:(0,Xe.jsx)(oo.FaPhone,{})}),(0,Xe.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,Xe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ro,children:m},c))})]})]})]}),s&&(0,Xe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Xe.jsx)("h3",{className:vs,children:s.title}),s.blogs&&s.blogs.length>0&&(0,Xe.jsx)("div",{className:"grid gap-6",children:s.blogs.map((m,c)=>(0,Xe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Xe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Xe.jsx)(lc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Xe.jsx)("span",{className:"text-accent",children:(0,Xe.jsx)(oo.FaCalendarDays,{})}),(0,Xe.jsx)("span",{children:Al(m.date)})]}),(0,Xe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Xe.jsx)(be,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,Xe.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,Xe.jsx)("div",{className:"container",children:(0,Xe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Xe-8 gap-y-4 md:gap-Xe-10",children:[(0,Xe.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,Xe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Xe.jsx)("ul",{className:"flex flex-wrap items-center gap-Xe-4 md:gap-Xe-7",children:d.links.map(m=>(0,Xe.jsx)("li",{children:(0,Xe.jsx)(be,{"aria-label":`Go Xe page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ro,children:m.label})},m.label))})})]})})})]})}function wm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,Xe.jsxs)("div",{className:l("fixed top-0 left-0 right-0 Xe-50",o),children:[(0,Xe.jsx)(Pr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,Xe.jsx)(Rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Cm({children:e,...t}){return(0,Xe.jsx)(oc.ThemeProvider,{...t,children:e})}var Na=require("sonner");function xs({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,Hr.useState)([]),i=(0,Nl.useRouter)(),n=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},s=c=>{o(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(r);c.success?(Na.toast.success(c.message),i.refresh()):Na.toast.error(`Error: ${c.message}`),o([])},m=async()=>{let c=await a(r);c.success?(Na.toast.success(c.message),i.refresh()):Na.toast.error(`Error: ${c.message}`),o([])};return(0,Xe.jsxs)("div",{className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Xe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Xe.jsxs)("div",{className:"space-Xe-2",children:[(0,Xe.jsx)(T,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,Xe.jsx)(T,{onClick:m,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Xe.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Xe.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(rt,{id:"select-all",checked:r.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,Xe.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Xe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,Xe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Xe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsx)(rt,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>s(c.id),className:"border-accent"}),(0,Xe.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Xe.jsxs)(Pt,{className:"h-10 Xe-10",children:[(0,Xe.jsx)(Rt,{src:c.userImage,alt:c.userName}),(0,Xe.jsx)(St,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-3",children:(0,Xe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.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,Xe.jsx)(qe,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,Xe.jsx)(Na.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Ns=require("date-fns"),Pm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,Xe.jsx)("div",{className:"flex space-Xe-2",children:e.map((o,i)=>(0,Xe.jsx)(T,{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 Cs({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,Hr.useState)(new Date),[o,i]=(0,Hr.useState)(new Date),[n,s]=(0,Hr.useState)("Full Day"),[d,m]=(0,Hr.useState)(!1),c=(0,Nl.useRouter)();(0,Hr.useEffect)(()=>{m(a!==o||!a||!o),d&&s("Full Day")},[a,o]);let p=g=>{s(g)};return(0,Xe.jsxs)("div",{className:"max-Xe-2xl",children:[(0,Xe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Xe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Xe.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!o){Na.toast.error("Please select both start and end dates");return}let h=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(h=.5),h>e){Na.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",o.toISOString()),f.append("leaveType",n),f.append("duration",h.toString());let N=await(t||Rm)(f);N.success?(Na.toast.success(N.message),r(void 0),i(void 0),s("Full Day"),c.refresh()):Na.toast.error(`Error: ${N.message}`)},className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(X,{htmlFor:"startDate",children:"Start Date"}),(0,Xe.jsxs)(dr,{children:[(0,Xe.jsx)(mr,{asChild:!0,children:(0,Xe.jsxs)(T,{variant:"outline",className:l("Xe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Xe.jsx)(un.CalendarIcon,{className:"mr-2 h-4 Xe-4"}),a?(0,Ns.format)(a,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(Ea,{className:"Xe-auto p-0",align:"start",children:(0,Xe.jsx)(gr,{mode:"single",selected:a,onSelect:g=>{r(g),g&&(!o||g>o)&&i(g)},initialFocus:!0})})]})]}),(0,Xe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Xe.jsx)(X,{htmlFor:"endDate",children:"End Date"}),(0,Xe.jsxs)(dr,{children:[(0,Xe.jsx)(mr,{asChild:!0,children:(0,Xe.jsxs)(T,{variant:"outline",className:l("Xe-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,Xe.jsx)(un.CalendarIcon,{className:"mr-2 h-4 Xe-4"}),o?(0,Ns.format)(o,"PPP"):(0,Xe.jsx)("span",{children:"Pick a date"})]})}),(0,Xe.jsx)(Ea,{className:"Xe-auto p-0",align:"start",children:(0,Xe.jsx)(gr,{mode:"single",selected:o,onSelect:i,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(X,{children:"Leave Type"}),(0,Xe.jsx)(Pm,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,d,d]})]}),(0,Xe.jsx)(T,{type:"submit",className:"Xe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Xe.jsx)(Na.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Rm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function gc(...e){return e.filter(Boolean).join(" ")}function Ps({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},s=()=>{t(new Date)};return(0,Xe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Xe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Xe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Xe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Xe.jsx)("p",{className:"Xe-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(un.ChevronLeft,{className:"h-5 Xe-5","aria-hidden":"true"})]}),(0,Xe.jsx)(T,{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,Xe.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(un.ChevronRight,{className:"h-5 Xe-5","aria-hidden":"true"})]})]})]}),(0,Xe.jsx)("div",{className:"Xe-8 flow-root",children:(0,Xe.jsx)("div",{className:"-mx-4 -my-2 overflow-Xe-auto sm:-mx-6 lg:-mx-8",children:(0,Xe.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Xe.jsxs)("table",{className:"min-Xe-full border-separate border-spacing-0",children:[(0,Xe.jsx)("thead",{className:"sticky top-0 Xe-10 bg-white",children:(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("th",{scope:"col",className:"sticky top-0 Xe-10 border-Xe border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((d,m)=>(0,Xe.jsx)("th",{scope:"col",className:"sticky top-0 Xe-10 border-Xe border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,Xe.jsx)("tbody",{children:r.map((d,m)=>(0,Xe.jsxs)("tr",{children:[(0,Xe.jsx)("td",{className:gc(m!==r.length-1?" border-gray-200":"","whitespace-nowrap py-4 border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Xe.jsxs)("div",{className:"flex items-center",children:[(0,Xe.jsxs)(Pt,{className:"h-11 Xe-11",children:[(0,Xe.jsx)(Rt,{src:d.image,alt:d.name}),(0,Xe.jsx)(St,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,Xe.jsx)("div",{className:"ml-4",children:(0,Xe.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),g=a.find(h=>h.userId===d.id&&new Date(h.startDate)<=u&&new Date(h.endDate)>=u);return(0,Xe.jsx)("td",{className:gc(m!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,Xe.jsx)("div",{className:`h-6 Xe-6 mx-auto rounded-full overflow-hidden ${g?g.status==="approved"?"bg-green-500":g.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:g?`${d.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,Xe.jsx)("div",{className:`h-3 Xe-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${p}`)})]},d.id))})]})})})})]})}function Rs({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,Hr.useState)(null),i=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-i+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,Xe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Xe.jsxs)("header",{className:"flex items-center justify-between border-Xe border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Xe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Xe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Xe.jsx)("div",{className:"flex items-center",children:(0,Xe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Xe.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Xe.jsx)(un.ChevronLeft,{className:"h-5 Xe-5","aria-hidden":"true"})]}),(0,Xe.jsx)(T,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Xe.jsxs)(T,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Xe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Xe.jsx)(un.ChevronRight,{className:"h-5 Xe-5","aria-hidden":"true"})]})]})})]}),(0,Xe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-Xe border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Xe"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["Xe",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["Xe",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Xe.jsxs)("div",{className:"bg-white py-2",children:["Xe",(0,Xe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Xe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Xe.jsx)("div",{className:"hidden Xe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,Xe.jsxs)("div",{className:l(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Xe.jsx)("time",{dateTime:c.date.toISOString(),className:l("flex h-6 Xe-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,Xe.jsx)("Xe",{className:"Xe-2 space-y-1",children:c.holidays.map(p=>(0,Xe.jsx)("li",{children:(0,Xe.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,Xe.jsx)("div",{className:"isolate grid Xe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,Xe.jsxs)("button",{type:"button",className:l(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:Xe-10"),children:[(0,Xe.jsx)("time",{dateTime:c.date.toISOString(),className:l("ml-auto",c.date===r&&c.isToday&&"flex h-6 Xe-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 Xe-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,Xe.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,Xe.jsx)("span",{className:"-mx-0.5 Xe-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,Xe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Xe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var ta=require("lucide-react");function bc(...e){return e.filter(Boolean).join(" ")}function Sm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:i,approveLeave:n,rejectLeave:s}){let[d,m]=(0,Hr.useState)("Calendar View"),c=(0,Nl.useRouter)(),p=!1,u=(0,Ns.parseISO)(a),g=async f=>{let N=(0,Ns.format)(f,"dd-MM-yyyy"),v=new URL(window.location.href);return v.searchParams.set("date",N),c.push(v.toString()),{success:!0}};if(p)return(0,Xe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Xe.jsx)("div",{className:"animate-spin rounded-full h-32 Xe-32 border-t-2 border-Xe-2 border-gray-900"})});let h=[{name:"Grid View",icon:ta.Grid,current:d==="Grid View"},{name:"Calendar View",icon:ta.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:ta.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:ta.CheckSquare,current:d==="Approve Leave"}];return(0,Xe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Xe.jsxs)("div",{className:"mb-8",children:[(0,Xe.jsxs)("div",{className:"sm:hidden",children:[(0,Xe.jsx)("select",{value:d,onChange:f=>m(f.target.value),className:"block Xe-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(f=>(0,Xe.jsx)("option",{children:f.name},f.name))}),(0,Xe.jsx)(un.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Xe-5 text-gray-400","aria-hidden":"true"})]}),(0,Xe.jsx)("div",{className:"hidden sm:block",children:(0,Xe.jsx)("div",{className:"border-Xe border-gray-200",children:(0,Xe.jsx)("nav",{className:"-mb-px flex space-Xe-8","aria-label":"Tabs",children:h.map(f=>(0,Xe.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:bc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-Xe-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,Xe.jsx)(f.icon,{className:bc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Xe-5"),"aria-hidden":"true"}),(0,Xe.jsx)("span",{children:f.name})]},f.name))})})})]}),d==="Grid View"&&(0,Xe.jsx)(Ps,{currentDate:u,setCurrentDate:g,holidays:e,employees:o}),d==="Calendar View"&&(0,Xe.jsx)(Rs,{currentDate:u,setCurrentDate:g,holidays:e}),d==="Request Leave"&&(0,Xe.jsx)(Cs,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>i?i(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,Xe.jsx)(xs,{leaveRequests:r,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>s?s(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Ss({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:i,onAddComment:n}){var bt;let[s,d]=(0,Hr.useState)({...e,value:e.value||0}),[m,c]=(0,Hr.useState)(""),[p,u]=(0,Hr.useState)(!1),[g,h]=(0,Hr.useState)(null);(0,Hr.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(s))},[e,s]);let f=()=>{i(s),u(!1),h(null)},N=(P,He)=>{d(lt=>({...lt,[P]:He}))},v=P=>{let He=s.categories.includes(P)?s.categories.filter(lt=>lt!==P):[...s.categories,P];N("categories",He)},k=()=>{m.trim()&&(n({id:Date.now().toString(),text:m,timestamp:new Date().toISOString()}),c(""))},W=P=>{switch(P){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"}},Ue=(P,He,lt)=>{let Ra=g===P;return(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:He}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[lt,Ra?(0,Xe.jsx)(we,{value:s[P],onChange:ja=>N(P,ja.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,Xe.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>h(P),children:s[P]}),!Ra&&(0,Xe.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>h(P),children:(0,Xe.jsx)(un.Edit2Icon,{className:"Xe-4 h-4"})})]})]})};return(0,Xe.jsx)(Me,{open:!0,children:(0,Xe.jsxs)(Ce,{className:"max-Xe-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Xe.jsxs)(Oe,{className:"flex flex-row items-center justify-between",children:[(0,Xe.jsx)(_e,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Xe.jsxs)("div",{className:"flex space-Xe-2",children:[(0,Xe.jsx)(T,{variant:"outline",onClick:o,children:"Close"}),(0,Xe.jsxs)(T,{onClick:f,disabled:!p,children:[(0,Xe.jsx)(un.SaveIcon,{className:"Xe-4 h-4 mr-2"}),"Save"]})]})]}),(0,Xe.jsxs)(Ut,{className:"flex-grow pr-4",children:[(0,Xe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Xe.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Xe.jsx)(we,{type:"number",value:s.value,onChange:P=>N("value",Number(P.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Xe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(bt=s.value)==null?void 0:bt.toLocaleString()]})}),(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Xe.jsxs)(ca,{value:s.assignee,onValueChange:P=>N("assignee",P),children:[(0,Xe.jsx)(Yt,{children:(0,Xe.jsx)(da,{placeholder:"Select assignee"})}),(0,Xe.jsx)(Kt,{children:t&&t.map(P=>(0,Xe.jsx)(qt,{value:P.id.toString(),children:P.name},P.id))})]}):(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,Xe.jsx)(un.UserIcon,{className:"Xe-4 h-4 text-gray-400"}),(0,Xe.jsx)("span",{children:s.assignee})]})]}),(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Xe.jsx)(we,{type:"date",value:s.closureDate.split("T")[0],onChange:P=>N("closureDate",P.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,Xe.jsx)(un.CalendarIcon,{className:"Xe-4 h-4 text-gray-400"}),(0,Xe.jsx)("span",{children:new Date(s.closureDate).toLocaleDateString("Xe-GB")})]})]})]}),(0,Xe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Xe.jsx)(Jt,{value:s.description,onChange:P=>N("description",P.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,Xe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:s.description})]})}),(0,Xe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 Xe-2 gap-4",children:[(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Xe.jsxs)(ca,{value:s.status,onValueChange:P=>{N("status",P),h(null)},children:[(0,Xe.jsx)(Yt,{children:(0,Xe.jsx)(da,{placeholder:"Select status"})}),(0,Xe.jsx)(Kt,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(P=>(0,Xe.jsx)(qt,{value:P,children:P},P))})]}):(0,Xe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:s.status})]}),(0,Xe.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Xe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(P=>(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsx)(rt,{id:P.id,checked:s.categories.includes(P.id),onCheckedChange:()=>v(P.id)}),(0,Xe.jsx)("label",{htmlFor:P.id,className:`text-sm font-medium ${W(P.type)} px-2 py-1 rounded`,children:P.name})]},P.id))}):(0,Xe.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:s.categories.map(P=>{let He=r.find(lt=>lt.id===P);return He?(0,Xe.jsx)(qe,{variant:"secondary",className:W(He.type),children:He.name},He.id):null})})]})]}),(0,Xe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 Xe-4 gap-4",children:[(0,Xe.jsxs)("div",{className:"grid gap-2",children:[(0,Xe.jsx)(X,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Xe.jsx)(Ut,{className:"h-[200px] overflow-y-auto",children:(0,Xe.jsx)("div",{className:"space-y-2",children:s.comments.map(P=>(0,Xe.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Xe.jsx)("p",{className:"text-sm text-gray-700",children:P.text}),(0,Xe.jsxs)("p",{className:"text-xs text-gray-500 Xe-1",children:[P.author," - ",new Date(P.timestamp).toLocaleString()]})]},P.id))})}),(0,Xe.jsxs)("div",{className:"flex Xe-2",children:[(0,Xe.jsx)(we,{value:m,onChange:P=>c(P.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Xe.jsxs)(T,{onClick:k,className:"ml-2",children:[(0,Xe.jsx)(un.PlusIcon,{className:"Xe-4 h-4 mr-2"}),"Add"]})]})]}),(0,Xe.jsxs)("div",{className:"text-xs text-gray-500 Xe-4",children:["Last modified: ",new Date(s.lastModified).toLocaleString()]})]})]})]})})}function Tr({onSubmit:e}){let[t,a]=(0,Hr.useState)({name:"",intro:"",active:!0});return(0,Xe.jsxs)("form",{onSubmit:o=>{o.preventDefault(),t.name&&(e({id:Date.now().toString(),...t}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(X,{htmlFor:"customerName",children:"Customer Name"}),(0,Xe.jsx)(we,{id:"customerName",value:t.name,onChange:o=>a({...t,name:o.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)(X,{htmlFor:"customerIntro",children:"Intro"}),(0,Xe.jsx)(Jt,{id:"customerIntro",value:t.intro,onChange:o=>a({...t,intro:o.target.value}),placeholder:"Enter customer intro"})]}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsx)(rt,{id:"activeCustomer",checked:t.active,onCheckedChange:o=>a({...t,active:o})}),(0,Xe.jsx)(X,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Xe.jsx)(T,{type:"submit",className:"Xe-full",children:"Add Customer"})]})}function ks({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,Xe.jsxs)(me,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,Xe.jsxs)(Ie,{className:"pb-2",children:[(0,Xe.jsx)("div",{className:"flex justify-between items-center",children:(0,Xe.jsx)(Ae,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Xe.jsx)("p",{className:"text-sm text-gray-500 Xe-1",children:e.description})]}),(0,Xe.jsxs)(fe,{children:[(0,Xe.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Xe.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Xe.jsx)(un.UserIcon,{className:"Xe-4 h-4 mr-1 text-xs"}),(0,Xe.jsx)("span",{children:e.assignee})]}),(0,Xe.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Xe.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Xe.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Xe.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Xe.jsx)(un.CalendarIcon,{className:"Xe-3 h-3 mr-1"}),(0,Xe.jsx)("span",{children:new Date(e.lastModified).toLocaleDateString()})]})}),(0,Xe.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,Xe.jsx)(qe,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Mo=require("react-beautiful-dnd");function Ts({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:i}){let[n,s]=(0,Hr.useState)(o||{customerId:"",value:0,assignee:"",status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",lastModified:new Date().toISOString(),comments:[],description:""}),[d,m]=(0,Hr.useState)(!1),[c,p]=(0,Hr.useState)({});(0,Hr.useEffect)(()=>{o&&s(o)},[o]);let u=()=>{let v={};return n.customerId||(v.customerId="Customer is required"),n.value||(v.value="Value is required"),n.assignee||(v.assignee="Assignee is required"),n.closureDate||(v.closureDate="Closure Date is required"),p(v),Object.keys(v).length===0},g=v=>{v.preventDefault(),u()&&(r({...n,id:n.id||Date.now().toString(),lastModified:new Date().toISOString()}),s({customerId:"",value:0,assignee:"",description:"",status:"Cold",closureDate:""}),p({}))},h=v=>{s(k=>{var W;return{...k,categories:(W=k.categories)!=null&&W.includes(v)?k.categories.filter(Ue=>Ue!==v):[...k.categories||[],v]}})},f=v=>{switch(v){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"}},N=v=>{e.push(v),s({...n,customerId:v.id}),m(!1),i(v)};return(0,Xe.jsxs)(Xe.Fragment,{children:[(0,Xe.jsxs)("form",{onSubmit:g,className:"space-y-6",children:[(0,Xe.jsx)(Ut,{className:"h-[60vh] pr-4",children:(0,Xe.jsxs)("div",{className:"space-y-6",children:[(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{htmlFor:"customer",children:"Customer"}),(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsxs)(ca,{value:n.customerId,onValueChange:v=>s({...n,customerId:v}),children:[(0,Xe.jsx)(Yt,{children:(0,Xe.jsx)(da,{placeholder:"Select customer"})}),(0,Xe.jsx)(Kt,{children:e.map(v=>(0,Xe.jsx)(qt,{value:v.id,children:v.name},v.id))})]}),(0,Xe.jsx)(T,{variant:"outline",size:"icon",onClick:()=>m(!0),children:(0,Xe.jsx)(un.PlusIcon,{className:"Xe-5 h-5"})})]}),c.customerId&&(0,Xe.jsx)("p",{className:"text-red-500 text-sm",children:c.customerId})]}),(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{htmlFor:"value",children:"Value"}),(0,Xe.jsx)(we,{id:"value",type:"number",value:n.value||"",onChange:v=>s({...n,value:Number.parseFloat(v.target.value)}),placeholder:"Enter deal value"}),c.value&&(0,Xe.jsx)("p",{className:"text-red-500 text-sm",children:c.value})]}),(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{htmlFor:"assignee",children:"Assignee"}),(0,Xe.jsxs)(ca,{value:n.assignee,onValueChange:v=>s({...n,assignee:v}),children:[(0,Xe.jsx)(Yt,{children:(0,Xe.jsx)(da,{placeholder:"Select assignee"})}),(0,Xe.jsx)(Kt,{children:t&&t.map(v=>(0,Xe.jsx)(qt,{value:v.id.toString(),children:v.name},v.id))})]}),c.assignee&&(0,Xe.jsx)("p",{className:"text-red-500 text-sm",children:c.assignee})]}),(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{htmlFor:"description",children:"Description"}),(0,Xe.jsx)(Jt,{id:"description",value:n.description||"",onChange:v=>s({...n,description:v.target.value}),placeholder:"Enter deal description"})]}),(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{children:"Categories"}),(0,Xe.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(v=>(0,Xe.jsxs)("div",{className:"space-y-2",children:[(0,Xe.jsx)("h4",{className:"text-sm font-medium",children:v.charAt(0).toUpperCase()+v.slice(1)}),(0,Xe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(k=>k.type===v).map(k=>{var W;return(0,Xe.jsxs)("div",{className:"flex items-center space-Xe-2",children:[(0,Xe.jsx)(rt,{id:k.id,checked:(W=n.categories)==null?void 0:W.includes(k.id),onCheckedChange:()=>h(k.id)}),(0,Xe.jsx)("label",{htmlFor:k.id,className:`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 ${f(k.type)}`,children:k.name})]},k.id)})})]},v))})]}),(0,Xe.jsxs)("div",{className:"space-y-2 space-Xe-2",children:[(0,Xe.jsx)(X,{htmlFor:"closureDate",children:"Closure Date"}),(0,Xe.jsx)(we,{id:"closureDate",type:"date",value:n.closureDate,onChange:v=>s({...n,closureDate:v.target.value})}),c.closureDate&&(0,Xe.jsx)("p",{className:"text-red-500 text-sm",children:c.closureDate})]})]})}),(0,Xe.jsx)(T,{type:"submit",className:"Xe-full",children:o?"Update Deal":"Add Deal"})]}),(0,Xe.jsx)(Me,{open:d,onOpenChange:m,children:(0,Xe.jsxs)(Ce,{children:[(0,Xe.jsx)(Oe,{children:(0,Xe.jsx)(_e,{children:"Add New Customer"})}),(0,Xe.jsx)(Tr,{onSubmit:N})]})})]})}function Ds({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:i,calculateColumnValue:n,calculateWeightedValue:s,addNewDeal:d,onAddCustomer:m}){return(0,Xe.jsxs)("div",{className:"flex flex-col Xe-80",children:[(0,Xe.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),d&&(0,Xe.jsxs)(Me,{children:[(0,Xe.jsx)(Ba,{asChild:!0,children:(0,Xe.jsxs)(T,{className:"mb-4 Xe-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Xe.jsx)(un.PlusCircle,{className:"mr-2 h-4 Xe-4"}),"Add New Deal"]})}),(0,Xe.jsxs)(Ce,{children:[(0,Xe.jsx)(Oe,{children:(0,Xe.jsx)(_e,{children:"Add New Deal"})}),(0,Xe.jsx)(Ts,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:m})]})]}),(0,Xe.jsx)(Mo.Droppable,{droppableId:e,children:c=>(0,Xe.jsxs)("div",{ref:c.innerRef,...c.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((p,u)=>(0,Xe.jsx)(Mo.Draggable,{draggableId:p.id,index:u,children:g=>(0,Xe.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,Xe.jsx)(ks,{deal:p,customer:r.find(h=>h.id===p.customerId),categories:o,onClick:()=>i(p)})})},p.id)),c.placeholder]})}),(0,Xe.jsxs)("div",{className:"Xe-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Xe.jsxs)("p",{className:"font-semibold",children:["Total: ",(0,Xe.jsxs)("span",{className:"text-green-600",children:["$",n(t).toLocaleString()]})]}),(0,Xe.jsxs)("p",{className:"font-semibold",children:["Weighted: ",(0,Xe.jsxs)("span",{className:"text-blue-600",children:["$",s(t,e).toLocaleString()]})]})]})]})}var km=["Cold","Qualified","Proposal","SoW","Won","Lost"];function Tm({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){let[i,n]=(0,Hr.useState)(null),[s,d]=(0,Hr.useState)(e),m=g=>s.deals.filter(h=>h.status===g),c=g=>g.reduce((h,f)=>h+(f.value||0),0),p=(g,h)=>{let f={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return g.reduce((N,v)=>N+(v.value||0)*f[h],0)},u=(0,Hr.useCallback)(g=>{let{source:h,destination:f}=g;if(!f||h.droppableId===f.droppableId&&h.index===f.index)return;let N=h.droppableId,v=f.droppableId;console.log("Moving from ",N,"Xe",v);let k=[...s.deals],[W]=k.splice(h.index,1);W.status=v,k.splice(f.index,0,W),d({...s,deals:k}),a(W)},[s,a]);return(0,Xe.jsx)(Mo.DragDropContext,{onDragEnd:u,children:(0,Xe.jsxs)("div",{className:"p-4",children:[(0,Xe.jsx)("div",{className:"flex space-Xe-4 overflow-Xe-auto pb-4",children:km.map(g=>{let h=m(g);return(0,Xe.jsx)(Ds,{status:g,deals:h,customers:s.customers,users:e.users,categories:s.categories,onDealClick:n,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:o},g)})}),(0,Xe.jsx)("div",{className:"Xe-8 flex space-Xe-4",children:(0,Xe.jsxs)(Me,{children:[(0,Xe.jsx)(Ba,{asChild:!0,children:(0,Xe.jsxs)(T,{children:[(0,Xe.jsx)(un.PlusCircle,{className:"mr-2 h-4 Xe-4"}),"Add New Customer"]})}),(0,Xe.jsxs)(Ce,{className:"sm:max-Xe-[425px]",children:[(0,Xe.jsx)(Oe,{children:(0,Xe.jsx)(_e,{children:"Add New Customer"})}),(0,Xe.jsx)(Tr,{onSubmit:o})]})]})}),i&&(0,Xe.jsx)(Ss,{deal:i,users:e.users,customer:s.customers.find(g=>g.id===i.customerId),categories:s.categories,onClose:()=>n(null),onSave:a,onAddComment:g=>r(i.id,g)})]})})}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,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,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});