cortex-react-components 1.48.8 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SPOYKTBR.mjs → chunk-22FHCZJD.mjs} +1 -1
- package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
- package/dist/chunk-47K2T72E.mjs +1 -0
- package/dist/{chunk-WSTFVGI3.mjs → chunk-4J2HMR3M.mjs} +1 -1
- package/dist/{chunk-IXI56LEB.mjs → chunk-4Z5RNIJS.mjs} +1 -1
- package/dist/{chunk-7HDQBQPR.mjs → chunk-5KVZ63KQ.mjs} +1 -1
- package/dist/{chunk-2IKC7MAP.mjs → chunk-5YTDIEDJ.mjs} +1 -1
- package/dist/{chunk-KLY2KDTY.mjs → chunk-6LTYVYSU.mjs} +1 -1
- package/dist/{chunk-4RWD4HBJ.mjs → chunk-7QQXXEMN.mjs} +1 -1
- package/dist/{chunk-IO222G5L.mjs → chunk-AAI2VZST.mjs} +1 -1
- package/dist/{chunk-DIPGFDJV.mjs → chunk-ATONX5RA.mjs} +1 -1
- package/dist/{chunk-PNKQJQMU.mjs → chunk-B4N2AO3O.mjs} +1 -1
- package/dist/{chunk-FBNFFUFR.mjs → chunk-D4NKFRUO.mjs} +1 -1
- package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
- package/dist/{chunk-GZQDMALT.mjs → chunk-EFL3B4LN.mjs} +1 -1
- package/dist/{chunk-NRBMAOTO.mjs → chunk-EQDX6HFN.mjs} +1 -1
- package/dist/chunk-GDC4MRMU.mjs +8 -0
- package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
- package/dist/{chunk-UMILL4LR.mjs → chunk-H4T3LIAM.mjs} +1 -1
- package/dist/{chunk-W322CRC5.mjs → chunk-HZRY77JK.mjs} +1 -1
- package/dist/{chunk-I5EBXVLE.mjs → chunk-IJICNQTM.mjs} +1 -1
- package/dist/{chunk-ZHHBVNQN.mjs → chunk-K56DRD3X.mjs} +1 -1
- package/dist/{chunk-QMFZRG7O.mjs → chunk-KEUZSK3N.mjs} +1 -1
- package/dist/{chunk-7FMMXR7S.mjs → chunk-KJBMLPHS.mjs} +1 -1
- package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
- package/dist/{chunk-U6S6B6W5.mjs → chunk-OWEP2U4M.mjs} +1 -1
- package/dist/{chunk-IBV34MLI.mjs → chunk-RHPFEIP4.mjs} +1 -1
- package/dist/chunk-RWIIPRAE.mjs +1 -0
- package/dist/chunk-SK4U3YXJ.mjs +1 -0
- package/dist/{chunk-3FZCKXNE.mjs → chunk-T3M2VHKT.mjs} +1 -1
- package/dist/{chunk-IK7RMA52.mjs → chunk-TM37LU2K.mjs} +1 -1
- package/dist/{chunk-QZA2ZGA2.mjs → chunk-U76FODRW.mjs} +1 -1
- package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
- package/dist/chunk-X6QN5C6U.mjs +1 -0
- package/dist/{chunk-PHIOOJWP.mjs → chunk-XB5YGSYM.mjs} +1 -1
- package/dist/{chunk-LNHR67FN.mjs → chunk-XBQBJTNI.mjs} +1 -1
- package/dist/chunk-XN3SGES2.mjs +1 -0
- package/dist/chunk-Y2ZFOTBY.mjs +1 -0
- package/dist/{chunk-K45M5INN.mjs → chunk-YSGJMEMD.mjs} +1 -1
- package/dist/{chunk-ZRZ4WCRW.mjs → chunk-YSREIOAY.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.d.ts +1 -0
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.stories.mjs +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/Image.stories.mjs +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/CalendarView.mjs +1 -1
- package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.d.ts +14 -0
- package/dist/components/Layouts/SlideShow.js +9 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +9 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +11 -3
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.mjs +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Filter.stories.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
- package/dist/components/Menus/RelatedContent.mjs +1 -1
- package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/Pagination/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +14 -6
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/alert.stories.mjs +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/avatar.stories.mjs +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/badge.stories.mjs +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/breadcrumb.stories.mjs +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/button.stories.mjs +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/card.stories.mjs +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/command.stories.mjs +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dialog.stories.mjs +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/hover-card.stories.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.stories.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/label.stories.mjs +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/popover.stories.mjs +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/scroll-area.stories.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/separator.stories.mjs +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sheet.stories.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/skeleton.stories.mjs +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toast.stories.mjs +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/toggle.stories.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/components/ui/tooltip.stories.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/images/hero/hero-3.mjs +1 -1
- package/dist/index.js +11 -7
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +9 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +9 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +9 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/styles/Colors.stories.mjs +1 -1
- package/dist/tests/payload.d.ts +300 -0
- package/dist/tests/payload.js +1 -0
- package/dist/tests/payload.mjs +1 -0
- package/dist/utils/AOSInit.mjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-5RYSPKQA.mjs +0 -1
- package/dist/chunk-DZOQSEQ4.mjs +0 -1
- package/dist/chunk-NOXR37EQ.mjs +0 -1
- package/dist/chunk-TR26J3ET.mjs +0 -1
- package/dist/chunk-U3KISAHW.mjs +0 -4
package/dist/index.js
CHANGED
|
@@ -4,20 +4,24 @@
|
|
|
4
4
|
'use strict'
|
|
5
5
|
'use server'
|
|
6
6
|
|
|
7
|
-
"use strict";var
|
|
7
|
+
"use strict";var Yc=Object.create;var xr=Object.defineProperty;var Kc=Object.getOwnPropertyDescriptor;var Qc=Object.getOwnPropertyNames;var Jc=Object.getPrototypeOf,Zc=Object.prototype.hasOwnProperty;var em=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tm=(e,t)=>{for(var a in t)xr(e,a,{get:t[a],enumerable:!0})},Hn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Qc(t))!Zc.call(e,r)&&r!==a&&xr(e,r,{get:()=>t[r],enumerable:!(o=Kc(t,r))||o.enumerable});return e};var y=(e,t,a)=>(a=e!=null?Yc(Jc(e)):{},Hn(t||!e||!e.__esModule?xr(a,"default",{value:e,enumerable:!0}):a,e)),am=e=>Hn(xr({},"__esModule",{value:!0}),e);var Ms=em((jo,As)=>{"use strict";(function(e,t){typeof jo=="object"&&typeof As=="object"?As.exports=t():typeof define=="function"&&define.amd?define([],t):typeof jo=="object"?jo.AOS=t():e.AOS=t()})(jo,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(w){return w&&w.__esModule?w:{default:w}}var r=Object.assign||function(w){for(var ge=1;ge<arguments.length;ge++){var Oe=arguments[ge];for(var Ct in Oe)Object.prototype.hasOwnProperty.call(Oe,Ct)&&(w[Ct]=Oe[Ct])}return w},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),u=o(d),p=a(9),g=o(p),v=a(10),f=o(v),x=a(11),M=o(x),D=a(14),j=o(D),z=[],me=!1,X={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},P=function(){var w=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(w&&(me=!0),me)return z=(0,M.default)(z,X),(0,f.default)(z,X.once),z},L=function(){z=(0,j.default)(),P()},S=function(){z.forEach(function(w,ge){w.node.removeAttribute("data-aos"),w.node.removeAttribute("data-aos-easing"),w.node.removeAttribute("data-aos-duration"),w.node.removeAttribute("data-aos-delay")})},b=function(w){return w===!0||w==="mobile"&&g.default.mobile()||w==="phone"&&g.default.phone()||w==="tablet"&&g.default.tablet()||typeof w=="function"&&w()===!0},C=function(w){X=r(X,w),z=(0,j.default)();var ge=document.all&&!window.atob;return b(X.disable)||ge?S():(X.disableMutationObserver||u.default.isSupported()||(console.info(`
|
|
8
8
|
aos: MutationObserver is not supported on this browser,
|
|
9
9
|
code mutations observing has been disabled.
|
|
10
10
|
You may have ut call "refreshHard()" by yourself.
|
|
11
|
-
`),W.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",W.easing),document.querySelector("body").setAttribute("data-aos-duration",W.duration),document.querySelector("body").setAttribute("data-aos-delay",W.delay),W.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?P(!0):W.startEvent==="load"?window.addEventListener(W.startEvent,function(){P(!0)}):document.addEventListener(W.startEvent,function(){P(!0)}),window.addEventListener("resize",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(P,W.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(z,W.once)},W.throttleDelay)),W.disableMutationObserver||p.default.ready("[data-aos]",L),z)};e.exports={init:C,refresh:P,refreshHard:L}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,x){function ue(ae){var Ke=pt,ba=Ht;return pt=Ht=void 0,ga=ae,ze=b.apply(ba,Ke)}function Fe(ae){return ga=ae,ke=setTimeout(zt,C),fa?ue(ae):ze}function Ct(ae){var Ke=ae-ot,ba=ae-ga,Ln=C-Ke;return Wt?L(Ln,Ft-ba):Ln}function mt(ae){var Ke=ae-ot,ba=ae-ga;return ot===void 0||Ke>=C||Ke<0||Wt&&ba>=Ft}function zt(){var ae=S();return mt(ae)?pa(ae):void(ke=setTimeout(zt,Ct(ae)))}function pa(ae){return ke=void 0,me&&pt?ue(ae):(pt=Ht=void 0,ze)}function Ut(){ke!==void 0&&clearTimeout(ke),ga=0,pt=ot=Ht=ke=void 0}function ua(){return ke===void 0?ze:pa(S())}function we(){var ae=S(),Ke=mt(ae);if(pt=arguments,Ht=this,ot=ae,Ke){if(ke===void 0)return Fe(ot);if(Wt)return ke=setTimeout(zt,C),ue(ot)}return ke===void 0&&(ke=setTimeout(zt,C)),ze}var pt,Ht,Ft,ze,ke,ot,ga=0,fa=!1,Wt=!1,me=!0;if(typeof b!="function")throw new TypeError(d);return C=c(C)||0,s(x)&&(fa=!!x.leading,Wt="maxWait"in x,Ft=Wt?P(c(x.maxWait)||0,C):Ft,me="trailing"in x?!!x.trailing:me),we.cancel=Ut,we.flush=ua,we}function r(b,C,x){var ue=!0,Fe=!0;if(typeof b!="function")throw new TypeError(d);return s(x)&&(ue="leading"in x?!!x.leading:ue,Fe="trailing"in x?!!x.trailing:Fe),o(b,C,{leading:ue,maxWait:C,trailing:Fe})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&W.call(b)==u}function c(b){if(typeof b=="number")return b;if(i(b))return p;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var x=f.test(b);return x||w.test(b)?M(b.slice(2),x?2:8):v.test(b)?p:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,w=/^0o[0-7]+$/i,M=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,G=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,z=D||G||Function("return this")(),ce=Object.prototype,W=ce.toString,P=Math.max,L=Math.min,S=function(){return z.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,C){function x(me){var ae=we,Ke=pt;return we=pt=void 0,ot=me,Ft=S.apply(Ke,ae)}function ue(me){return ot=me,ze=setTimeout(mt,b),ga?x(me):Ft}function Fe(me){var ae=me-ke,Ke=me-ot,ba=b-ae;return fa?P(ba,Ht-Ke):ba}function Ct(me){var ae=me-ke,Ke=me-ot;return ke===void 0||ae>=b||ae<0||fa&&Ke>=Ht}function mt(){var me=L();return Ct(me)?zt(me):void(ze=setTimeout(mt,Fe(me)))}function zt(me){return ze=void 0,Wt&&we?x(me):(we=pt=void 0,Ft)}function pa(){ze!==void 0&&clearTimeout(ze),ot=0,we=ke=pt=ze=void 0}function Ut(){return ze===void 0?Ft:zt(L())}function ua(){var me=L(),ae=Ct(me);if(we=arguments,pt=this,ke=me,ae){if(ze===void 0)return ue(ke);if(fa)return ze=setTimeout(mt,b),x(ke)}return ze===void 0&&(ze=setTimeout(mt,b)),Ft}var we,pt,Ht,Ft,ze,ke,ot=0,ga=!1,fa=!1,Wt=!0;if(typeof S!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(ga=!!C.leading,fa="maxWait"in C,Ht=fa?W(i(C.maxWait)||0,b):Ht,Wt="trailing"in C?!!C.trailing:Wt),ua.cancel=pa,ua.flush=Ut,ua}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function n(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&ce.call(S)==p}function i(S){if(typeof S=="number")return S;if(n(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(u,"");var C=v.test(S);return C||f.test(S)?w(S.slice(2),C?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,w=parseInt,M=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,G=M||D||Function("return this")(),z=Object.prototype,ce=z.toString,W=Math.max,P=Math.min,L=function(){return G.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,p=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(p=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,p=o(),u=new p(n);i=m,u.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),p=Array.prototype.slice.call(m.removedNodes),u=d.concat(p);if(a(u))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class Xr a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(p,u){for(var g=0;g<u.length;g++){var v=u[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,u,g){return u&&d(p.prototype,u),g&&d(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( ut)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|Un(er|ut|s\-)|ai(Un|rn)|al(av|ut|Un)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|Xr(ut|fl)|attw|au(di|\-m|r |s )|avan|be(ck|Xn|nq)|bi(lb|rd)|bl(Un|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Un(mp|nd)|craw|da(it|Xn|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ns(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|ut|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-lo|go(\.w|od)|ut(ad|un)|haie|hcit|ut\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|fl)|i\-(20|go|ut)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Un|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ut(ut|ui|wr)|dc(01|21|ut)|m\-cr|me(rc|ri)|mi(o8|fl|ts)|mmef|lo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|ut(ay|uc)|pn\-2|Un(ck|ut|ut)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ut(ut|ut)|s55\/|sa(ge|ut|mm|fl|ny|va)|sc(01|h\-|ut|p\-)|sdk\/|ut(c(\-|0|1)|47|dc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-lo|ut(ut|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( ut)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|Un(er|ut|s\-)|ai(Un|rn)|al(av|ut|Un)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|Xr(ut|fl)|attw|au(di|\-m|r |s )|avan|be(ck|Xn|nq)|bi(lb|rd)|bl(Un|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Un(mp|nd)|craw|da(it|Xn|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ns(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|ut|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-lo|go(\.w|od)|ut(ad|un)|haie|hcit|ut\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|fl)|i\-(20|go|ut)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|ut(Un|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ut(ut|ui|wr)|dc(01|21|ut)|m\-cr|me(rc|ri)|mi(o8|fl|ts)|mmef|lo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|ut(ay|uc)|pn\-2|Un(ck|ut|ut)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ut(ut|ut)|s55\/|sa(ge|ut|mm|fl|ny|va)|sc(01|h\-|ut|p\-)|sdk\/|ut(c(\-|0|1)|47|dc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-lo|ut(ut|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!c.test(p.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(d=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var pu={};Qc(pu,{AOSInit:()=>Im,AboutSection:()=>Jp,Alert:()=>Ti,AlertDescription:()=>Ai,AlertTitle:()=>Di,ApproveLeave:()=>xn,Avatar:()=>Zt,AvatarFallback:()=>ta,AvatarImage:()=>ea,Badge:()=>yt,BannerBlock:()=>Hi,BlogCard:()=>jd,BlogDetail:()=>lu,BlogList:()=>hp,BlogListSection:()=>eu,BrandLogo:()=>Fa,Breadcrumb:()=>As,BreadcrumbEllipsis:()=>zs,BreadcrumbItem:()=>Is,BreadcrumbLink:()=>Ls,BreadcrumbList:()=>Ms,BreadcrumbPage:()=>Bs,BreadcrumbSeparator:()=>Es,Breadcrumbs:()=>gn,Button:()=>I,CMSLink:()=>Ot,CRMKanbanBoard:()=>qp,Calendar:()=>sr,CalendarView:()=>Sn,CallToActionBlock:()=>eo,Card:()=>cr,Categories:()=>pr,Checkbox:()=>Dt,CodeBlock:()=>Gi,Collapsible:()=>Yt,CollapsibleContent:()=>xa,CollapsibleTrigger:()=>ha,CollectionArchive:()=>xp,Command:()=>Or,CommandDialog:()=>Fl,CommandEmpty:()=>Ci,CommandGroup:()=>Pi,CommandInput:()=>wi,CommandItem:()=>ki,CommandList:()=>Ni,CommandSeparator:()=>Si,CommandShortcut:()=>Ri,ContactSection:()=>iu,Container:()=>Ae,ContentBlock:()=>dr,ContentCard:()=>Xi,CopyButton:()=>Oi,CustomLink:()=>Ie,CustomerCard:()=>ed,DealCard:()=>Rn,DealDetails:()=>kn,Dialog:()=>vt,DialogClose:()=>Hr,DialogContent:()=>it,DialogDescription:()=>xi,DialogFooter:()=>hi,DialogHeader:()=>Rt,DialogOverlay:()=>Fr,DialogPortal:()=>yi,DialogTitle:()=>Tt,DialogTrigger:()=>zr,DropdownMenu:()=>Yn,DropdownMenuCheckboxItem:()=>Gs,DropdownMenuContent:()=>Os,DropdownMenuGroup:()=>Kn,DropdownMenuItem:()=>_s,DropdownMenuLabel:()=>$s,DropdownMenuPortal:()=>Qn,DropdownMenuRadioGroup:()=>Zn,DropdownMenuRadioItem:()=>js,DropdownMenuSeparator:()=>Vs,DropdownMenuShortcut:()=>Us,DropdownMenuSub:()=>Jn,DropdownMenuSubContent:()=>Fs,DropdownMenuSubTrigger:()=>Hs,DropdownMenuTrigger:()=>qn,DynamicIcon:()=>Ze,EventCard:()=>td,FeatureCard:()=>Ql,FeatureGrid:()=>xd,FeaturesBlock:()=>ao,Filter:()=>ln,Footer:()=>jp,Header:()=>$p,HeaderDesktop:()=>fr,HeaderMobile:()=>br,HeadingImage:()=>gp,Hero:()=>tp,HighImpactHero:()=>dn,HolidayGrid:()=>Pn,HolidayTracker:()=>Xp,HoverCard:()=>Ll,HoverCardContent:()=>vi,HoverCardTrigger:()=>Bl,Image:()=>id,ImageBlock:()=>Wi,ImageSection:()=>mu,InfoTile:()=>ip,Input:()=>Qe,Insight:()=>sp,KanbanColumn:()=>An,Label:()=>ne,Logo:()=>wp,LowImpactHero:()=>pn,MOTD:()=>lp,MainPageSection:()=>du,Media:()=>sa,MediaBlock:()=>ia,MediumImpactHero:()=>mn,NewCustomerForm:()=>Tn,NewDealForm:()=>Dn,NewsGrid:()=>Ed,OrgChart:()=>mp,PageRange:()=>Pp,Pagination:()=>sn,PayloadPagination:()=>Sp,Popover:()=>tr,PopoverAnchor:()=>Tl,PopoverContent:()=>Po,PopoverTrigger:()=>ar,PostHero:()=>Lp,PricingCard:()=>zi,PricingSection:()=>Qp,ProjectCard:()=>sd,ProjectTeam:()=>Ap,ProposalSummary:()=>pp,RelatedContent:()=>Mp,RelatedPosts:()=>vp,RenderBlocks:()=>qi,RenderHero:()=>Ep,RequestLeave:()=>Cn,ReusableContentBlock:()=>Yi,RichText:()=>de,ScrollArea:()=>Ta,ScrollBar:()=>Er,SectionHero:()=>un,Select:()=>qa,SelectContent:()=>Ia,SelectGroup:()=>Xm,SelectItem:()=>La,SelectLabel:()=>Vl,SelectScrollDownButton:()=>Li,SelectScrollUpButton:()=>Ii,SelectSeparator:()=>Ul,SelectTrigger:()=>Ma,SelectValue:()=>Ka,Separator:()=>jo,ServiceCard:()=>Ei,ServiceSection:()=>Kp,Sheet:()=>Nr,SheetClose:()=>nl,SheetContent:()=>Vo,SheetDescription:()=>Qs,SheetFooter:()=>qs,SheetHeader:()=>Ys,SheetOverlay:()=>Cr,SheetPortal:()=>Xs,SheetTitle:()=>Ks,SheetTrigger:()=>il,Sidebar:()=>ja,SidebarContent:()=>Na,SidebarFooter:()=>Va,SidebarGroup:()=>gt,SidebarGroupAction:()=>ri,SidebarGroupContent:()=>St,SidebarGroupLabel:()=>Kt,SidebarHeader:()=>$a,SidebarInput:()=>oi,SidebarInset:()=>ai,SidebarLeft:()=>kp,SidebarMenu:()=>Je,SidebarMenuAction:()=>Xo,SidebarMenuBadge:()=>si,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>Oe,SidebarMenuSkeleton:()=>ii,SidebarMenuSub:()=>Ca,SidebarMenuSubButton:()=>Sa,SidebarMenuSubItem:()=>Pa,SidebarProvider:()=>Zs,SidebarRail:()=>ti,SidebarRight:()=>Dp,SidebarSeparator:()=>Wo,SidebarTrigger:()=>ei,SimpleHeader:()=>Hp,Skeleton:()=>fe,SlideShow:()=>Id,TextAndImages:()=>zd,Textarea:()=>Ba,Theme:()=>Rd,ThemeProvider:()=>Vp,Toast:()=>Ko,ToastAction:()=>di,ToastClose:()=>Qo,ToastDescription:()=>Zo,ToastProvider:()=>Lr,ToastTitle:()=>Jo,ToastViewport:()=>qo,Toaster:()=>Nl,Toggle:()=>mi,ToggleGroup:()=>pi,ToggleGroupItem:()=>ui,Tooltip:()=>Rr,TooltipContent:()=>Uo,TooltipProvider:()=>kr,TooltipTrigger:()=>Tr,VideoHeader:()=>_p,WhyUs:()=>up,badgeVariants:()=>Mi,buttonVariants:()=>wa,cn:()=>l,getTableOfContents:()=>Am,reducer:()=>yl,toast:()=>hl,toggleVariants:()=>er,useIsMobile:()=>Sr,useSidebar:()=>No,useToast:()=>Ir});module.exports=Jc(pu);var yo=h(require("react")),wr=require("@radix-ui/react-icons"),Xn=require("@radix-ui/react-slot");var $n=require("clsx");var Ts="-",Zc=e=>{let t=tm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(Ts);return i[0]===""&&i.length!==1&&i.shift(),Hn(i,t)||em(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},Hn=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Hn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ts);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},En=/^\[(.+)\]$/,em=e=>{if(En.test(e)){let t=En.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},tm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return om(Object.entries(e.classGroups),a).forEach(([s,n])=>{Rs(n,o,s,t)}),o},Rs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:zn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(am(r)){Rs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{Rs(n,zn(t,s),a,o)})})},zn=(e,t)=>{let a=e;return t.split(Ts).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},am=e=>e.isThemeGetter,om=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,rm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},Fn="!",sm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,p;for(let w=0;w<i.length;w++){let M=i[w];if(m===0){if(M===r&&(o||i.slice(w,w+s)===t)){c.push(i.slice(d,w)),d=w+s;continue}if(M==="/"){p=w;continue}}M==="["?m++:M==="]"&&m--}let u=c.length===0?i:i.substring(d),g=u.startsWith(Fn),v=g?u.substring(1):u,f=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},im=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},nm=e=>({cache:rm(e.cacheSize),parseClassName:sm(e),...Zc(e)}),lm=/\s+/,dm=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(lm),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?u.substring(0,g):u);if(!f){if(!v){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}v=!1}let w=im(d).join(":"),M=p?w+Fn:w,D=M+f;if(s.includes(D))continue;s.push(D);let G=r(f,v);for(let z=0;z<G.length;++z){let ce=G[z];s.push(M+ce)}i=m+(i.length>0?" "+i:i)}return i};function cm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=On(t))&&(o&&(o+=" "),o+=a);return o}var On=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=On(e[o]))&&(a&&(a+=" "),a+=t);return a};function mm(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,p)=>p(d),e());return a=nm(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=dm(c,a);return r(c,d),d}return function(){return s(cm.apply(null,arguments))}}var ie=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},_n=/^\[(?:([a-z-]+):)?(.+)\]$/i,pm=/^\d+\/\d+$/,um=new Set(["px","full","screen"]),gm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|sl)$/,fm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ym=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>bo(e)||um.has(e)||pm.test(e),va=e=>vo(e,"length",km),bo=e=>!!e&&!Number.isNaN(Number(e)),ks=e=>vo(e,"number",bo),Oo=e=>!!e&&Number.isInteger(Number(e)),hm=e=>e.endsWith("%")&&bo(e.slice(0,-1)),H=e=>_n.test(e),ya=e=>gm.test(e),xm=new Set(["length","size","percentage"]),wm=e=>vo(e,xm,Gn),Nm=e=>vo(e,"position",Gn),Cm=new Set(["image","url"]),Pm=e=>vo(e,Cm,Tm),Sm=e=>vo(e,"",Rm),_o=()=>!0,vo=(e,t,a)=>{let o=_n.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},km=e=>fm.test(e)&&!bm.test(e),Gn=()=>!1,Rm=e=>vm.test(e),Tm=e=>ym.test(e);var Dm=()=>{let e=ie("colors"),t=ie("spacing"),a=ie("blur"),o=ie("brightness"),r=ie("borderColor"),s=ie("borderRadius"),n=ie("borderSpacing"),i=ie("borderWidth"),c=ie("contrast"),m=ie("grayscale"),d=ie("hueRotate"),p=ie("invert"),u=ie("gap"),g=ie("gradientColorStops"),v=ie("gradientColorStopPositions"),f=ie("inset"),w=ie("margin"),M=ie("opacity"),D=ie("padding"),G=ie("saturate"),z=ie("scale"),ce=ie("sepia"),W=ie("skew"),P=ie("space"),L=ie("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",H,t],x=()=>[H,t],ue=()=>["",Xt,va],Fe=()=>["auto",bo,H],Ct=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pa=()=>["start","end","center","between","around","evenly","stretch"],Ut=()=>["","0",H],ua=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[bo,H];return{cacheSize:500,separator:":",theme:{colors:[_o],spacing:[Xt,va],blur:["none","",ya,H],brightness:we(),borderColor:[e],borderRadius:["none","","full",ya,H],borderSpacing:x(),borderWidth:ue(),contrast:we(),grayscale:Ut(),hueRotate:we(),invert:Ut(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[hm,va],inset:C(),margin:C(),opacity:we(),padding:x(),saturate:we(),scale:we(),sepia:Ut(),skew:we(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ya]}],"break-after":[{"break-after":ua()}],"break-before":[{"break-before":ua()}],"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:[...Ct(),H]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-ut":[{"overflow-ut":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-ut":[{"overscroll-ut":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-ut":[{"inset-ut":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oo,H]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:Ut()}],shrink:[{shrink:Ut()}],order:[{order:["first","last","none",Oo,H]}],"grid-cols":[{"grid-cols":[_o]}],"col-start-end":[{col:["auto",{span:["full",Oo,H]},H]}],"col-start":[{"col-start":Fe()}],"col-end":[{"col-end":Fe()}],"grid-rows":[{"grid-rows":[_o]}],"row-start-end":[{row:["auto",{span:[Oo,H]},H]}],"row-start":[{"row-start":Fe()}],"row-end":[{"row-end":Fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-ut":[{"gap-ut":[u]}],"justify-content":[{justify:["normal",...pa()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pa(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pa(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],ut:[{ut:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],ut:[{ut:[D]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],fl:[{fl:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ut:[{ut:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-ut":[{"space-ut":[P]}],"space-ut-reverse":["space-ut-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ya]},ya]}],h:[{h:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ya,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ks]}],"font-family":[{font:[_o]}],"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",H]}],"line-clamp":[{"line-clamp":["none",bo,ks]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","Un-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,va]}],"underline-offset":[{"underline-offset":["auto",Xt,H]}],"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:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ct(),Nm]}],"bg-repeat":[{bg:["Un-repeat",{repeat:["","x","ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wm]}],"bg-image":[{bg:["none",{"gradient-ut":["t","tr","r","br","b","bl","l","ut"]},Pm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-ut-pos":[{ut:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-ut":[{ut:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-ut":[{"border-ut":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-ut":[{"divide-ut":[i]}],"divide-ut-reverse":["divide-ut-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-ut":[{"border-ut":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[Xt,H]}],"outline-w":[{outline:[Xt,va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[Xt,va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ya,Sm]}],"shadow-color":[{shadow:[_o]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ya,H]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[G]}],sepia:[{sepia:[ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-ut":[{"border-spacing-ut":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:we()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:we()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-ut":[{"scale-ut":[z]}],rotate:[{rotate:[Oo,H]}],"translate-x":[{"translate-x":[L]}],"translate-ut":[{"translate-ut":[L]}],"skew-x":[{"skew-x":[W]}],"skew-ut":[{"skew-ut":[W]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],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","Un-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","ut-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","ut","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-fl":[{"scroll-fl":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ut":[{"scroll-ut":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-ut":[{"scroll-ut":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-ut":[{"scroll-ut":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-ut":[{"touch-pan":["ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,va,ks]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-ut"],overscroll:["overscroll-x","overscroll-ut"],inset:["inset-x","inset-ut","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-ut"],p:["px","py","ps","ut","pt","pr","pb","ut"],px:["pr","ut"],py:["pt","pb"],m:["mx","my","fl","me","mt","mr","mb","ut"],mx:["mr","ut"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-ut","rounded-ut","rounded-es","rounded-ut","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ut","rounded-ut"],"rounded-t":["rounded-ut","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-ut","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-ut"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-ut":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-ut":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-fl","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ut"],"scroll-mx":["scroll-mr","scroll-ut"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-ut","scroll-pt","scroll-pr","scroll-pb","scroll-ut"],"scroll-px":["scroll-pr","scroll-ut"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-ut","touch-pz"],"touch-x":["touch"],"touch-ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var jn=mm(Dm);function l(...e){return jn((0,$n.clsx)(e))}function Am(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,p,u;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=i.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=i.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&n.push({text:(u=v.children[0].text)!=null?u:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),n}),r=Mm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Mm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Un=require("react"),Wn=h(Vn());function Im(){return(0,Un.useEffect)(()=>{Wn.default.init({duration:1e3,offset:0,once:!0})},[]),null}var ut=require("react/jsx-runtime"),As=yo.forwardRef(({...e},t)=>(0,ut.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));As.displayName="Breadcrumb";var Ms=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ut",{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}));Ms.displayName="BreadcrumbList";var Is=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Is.displayName="BreadcrumbItem";var Ls=yo.forwardRef(({asChild:e,className:t,...a},o)=>(0,ut.jsx)(e?Xn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Ls.displayName="BreadcrumbLink";var Bs=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Bs.displayName="BreadcrumbPage";var Es=({children:e,className:t,...a})=>(0,ut.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,ut.jsx)(wr.ChevronRightIcon,{})});Es.displayName="BreadcrumbSeparator";var zs=({className:e,...t})=>(0,ut.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(wr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More"})]});zs.displayName="BreadcrumbElipssis";var ho=h(require("@radix-ui/react-collapsible")),Yt=ho.Root,ha=ho.CollapsibleTrigger,xa=ho.CollapsibleContent;var qt=h(require("react")),_=h(require("@radix-ui/react-dropdown-menu"));var Yn=_.Root,qn=_.Trigger,Kn=_.Group,Qn=_.Portal,Jn=_.Sub,Zn=_.RadioGroup,Hs=qt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ut.jsxs)(_.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"ut-8",e),...o,children:[a,(0,ut.jsx)(wr.ChevronRightIcon,{className:"ut-auto"})]}));Hs.displayName=_.SubTrigger.displayName;var Fs=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.SubContent,{ref:a,className:l("z-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}));Fs.displayName=_.SubContent.displayName;var Os=qt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(_.Portal,{children:(0,ut.jsx)(_.Content,{ref:o,sideOffset:t,className:l("z-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})}));Os.displayName=_.Content.displayName;var _s=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"ut-8",e),...a}));_s.displayName=_.Item.displayName;var Gs=qt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ut.jsxs)(_.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 ut-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,...o,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Gs.displayName=_.CheckboxItem.displayName;var js=qt.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(_.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 ut-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,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));js.displayName=_.RadioItem.displayName;var $s=qt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"ut-8",e),...a}));$s.displayName=_.Label.displayName;var Vs=qt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Vs.displayName=_.Separator.displayName;var Us=({className:e,...t})=>(0,ut.jsx)("span",{className:l("ut-auto text-xs tracking-widest opacity-60",e),...t});Us.displayName="DropdownMenuShortcut";var el=h(require("react"));var Qe=el.forwardRef(({className:e,type:t,...a},o)=>(0,ut.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Qe.displayName="Input";var al=h(require("react")),Ws=h(require("@radix-ui/react-separator"));var jo=al.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,ut.jsx)(Ws.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));jo.displayName=Ws.Root.displayName;var $o=h(require("react")),ge=h(require("@radix-ui/react-dialog")),sl=require("class-variance-authority");var Nr=ge.Root,il=ge.Trigger,nl=ge.Close,Xs=ge.Portal,Cr=$o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Cr.displayName=ge.Overlay.displayName;var Lm=(0,sl.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-ut-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-ut-bottom data-[state=open]:slide-in-from-bottom",left:"inset-ut-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-ut-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-ut-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-ut-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Vo=$o.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,ut.jsxs)(Xs,{children:[(0,ut.jsx)(Cr,{}),(0,ut.jsxs)(ge.Content,{ref:r,className:l(Lm({side:e}),t),...o,children:[(0,ut.jsxs)(ge.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,ut.jsx)(wr.Cross2Icon,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Vo.displayName=ge.Content.displayName;var Ys=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-2 text-center sm:text-left",e),...t});Ys.displayName="SheetHeader";var qs=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});qs.displayName="SheetFooter";var Ks=$o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Ks.displayName=ge.Title.displayName;var Qs=$o.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Qs.displayName=ge.Description.displayName;var j=h(require("react")),fl=require("lucide-react");var Sr=(e=768)=>{let[t,a]=(0,Un.useState)(!1);return(0,Un.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var cl=h(require("react")),wa=(0,sl.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),I=cl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,ut.jsx)(e?Xn.Slot:"button",{className:l(wa({className:t,size:a,variant:o})),ref:s,...r}));I.displayName="Button";function fe({className:e,...t}){return(0,ut.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var ul=h(require("react")),Pt=h(require("@radix-ui/react-tooltip"));var kr=Pt.Provider,Rr=Pt.Root,Tr=Pt.Trigger,Uo=ul.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Pt.Portal,{children:(0,ut.jsx)(Pt.Content,{ref:o,sideOffset:t,className:l("z-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})}));Uo.displayName=Pt.Content.displayName;var Bm="sidebar:state",Em=60*60*24*7,zm="16rem",Hm="18rem",Fm="3rem",Om="b",bl=j.createContext(null);function No(){let e=j.useContext(bl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Zs=j.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=Sr(),[m,d]=j.useState(!1),[p,u]=j.useState(e),g=t!=null?t:p,v=j.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);u(D),document.cookie=`${Bm}=${g}; path=/; max-age=${Em}`},[a,g]),f=j.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);j.useEffect(()=>{let D=G=>{G.key===Om&&(G.metaKey||G.ctrlKey)&&(G.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let w=g?"expanded":"collapsed",M=j.useMemo(()=>({state:w,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[w,g,v,c,m,d,f]);return(0,ut.jsx)(bl.Provider,{value:M,children:(0,ut.jsx)(kr,{delayDuration:0,children:(0,ut.jsx)("div",{style:{"--sidebar-width":zm,"--sidebar-width-icon":Fm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Zs.displayName="SidebarProvider";var ja=j.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=No();return a==="none"?(0,ut.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,ut.jsx)(Nr,{open:m,onOpenChange:d,...s,children:(0,ut.jsx)(Vo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Hm},side:e,children:(0,ut.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,ut.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ut.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ut.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-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)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,ut.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});ja.displayName="Sidebar";var ei=j.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=No();return(0,ut.jsxs)(I,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,ut.jsx)(fl.PanelLeft,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ei.displayName="SidebarTrigger";var ti=j.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=No();return(0,ut.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-ut-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-ut-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});ti.displayName="SidebarRail";var ai=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-ut-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ut-2 md:peer-data-[variant=inset]:ut-0 md:peer-data-[variant=inset]:rounded-sl md:peer-data-[variant=inset]:shadow",e),...t}));ai.displayName="SidebarInset";var oi=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Qe,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));oi.displayName="SidebarInput";var $a=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));$a.displayName="SidebarHeader";var Va=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Va.displayName="SidebarFooter";var Wo=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(jo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Wo.displayName="SidebarSeparator";var Na=j.forwardRef(({className:e,...t},a)=>(0,ut.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}));Na.displayName="SidebarContent";var gt=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));gt.displayName="SidebarGroup";var Kt=j.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Xn.Slot:"div",{ref:o,"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]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Kt.displayName="SidebarGroupLabel";var ri=j.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Xn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-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}));ri.displayName="SidebarGroupAction";var St=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));St.displayName="SidebarGroupContent";var Je=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Je.displayName="SidebarMenu";var Oe=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Oe.displayName="SidebarMenuItem";var _m=(0,sl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ft=j.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?Xn.Slot:"button",{isMobile:m,state:d}=No(),p=(0,ut.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(_m({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,ut.jsxs)(Rr,{children:[(0,ut.jsx)(Tr,{asChild:!0,children:p}),(0,ut.jsx)(Uo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ft.displayName="SidebarMenuButton";var Xo=j.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,ut.jsx)(t?Xn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-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),...o}));Xo.displayName="SidebarMenuAction";var si=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));si.displayName="SidebarMenuBadge";var ii=j.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=j.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ut.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ut.jsx)(fe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,ut.jsx)(fe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});ii.displayName="SidebarMenuSkeleton";var Ca=j.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ca.displayName="SidebarMenuSub";var Pa=j.forwardRef(({...e},t)=>(0,ut.jsx)("li",{ref:t,...e}));Pa.displayName="SidebarMenuSubItem";var Sa=j.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,ut.jsx)(e?Xn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Sa.displayName="SidebarMenuSubButton";var Mr=h(require("react")),Gm=1,jm=1e6;var ni=0;function $m(){return ni=(ni+1)%Number.MAX_SAFE_INTEGER,ni.toString()}var li=new Map,vl=e=>{if(li.has(e))return;let t=setTimeout(()=>{li.delete(e),Yo({type:"REMOVE_TOAST",toastId:e})},jm);li.set(e,t)},yl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Gm)};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?vl(a):e.toasts.forEach(o=>{vl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Dr=[],Ar={toasts:[]};function Yo(e){Ar=yl(Ar,e),Dr.forEach(t=>{t(Ar)})}function hl({...e}){let t=$m(),a=r=>Yo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Yo({type:"DISMISS_TOAST",toastId:t});return Yo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Ir(){let[e,t]=Mr.useState(Ar);return Mr.useEffect(()=>(Dr.push(t),()=>{let a=Dr.indexOf(t);a>-1&&Dr.splice(a,1)}),[e]),{...e,toast:hl,dismiss:a=>Yo({type:"DISMISS_TOAST",toastId:a})}}var Ua=h(require("react")),Ne=h(require("@radix-ui/react-toast"));var Lr=Ne.Provider,qo=Ua.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));qo.displayName=Ne.Viewport.displayName;var Vm=(0,sl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-ut-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"}}),Ko=Ua.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)(Ne.Root,{ref:o,className:l(Vm({variant:t}),e),...a}));Ko.displayName=Ne.Root.displayName;var di=Ua.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.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}));di.displayName=Ne.Action.displayName;var Qo=Ua.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.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,ut.jsx)(fl.ut,{className:"h-4 w-4"})}));Qo.displayName=Ne.Close.displayName;var Jo=Ua.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));Jo.displayName=Ne.Title.displayName;var Zo=Ua.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ne.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));Zo.displayName=Ne.Description.displayName;function Nl(){let{toasts:e}=Ir();return(0,ut.jsxs)(Lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,ut.jsxs)(Ko,{...s,children:[(0,ut.jsxs)("div",{className:"grid gap-1",children:[a&&(0,ut.jsx)(Jo,{children:a}),o&&(0,ut.jsx)(Zo,{children:o})]}),r,(0,ut.jsx)(Qo,{})]},t)}),(0,ut.jsx)(qo,{})]})}var Cl=h(require("react")),ci=h(require("@radix-ui/react-toggle"));var er=(0,sl.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),mi=Cl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,ut.jsx)(ci.Root,{ref:r,className:l(er({variant:t,size:a,className:e})),...o}));mi.displayName=ci.Root.displayName;var Wa=h(require("react")),Co=h(require("@radix-ui/react-toggle-group"));var kl=Wa.createContext({size:"default",variant:"default"}),pi=Wa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,ut.jsx)(Co.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,ut.jsx)(kl.Provider,{value:{variant:t,size:a},children:o})}));pi.displayName=Co.Root.displayName;var ui=Wa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Wa.useContext(kl);return(0,ut.jsx)(Co.Item,{ref:s,className:l(er({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});ui.displayName=Co.Item.displayName;var gi=h(require("react")),bt=h(require("@radix-ui/react-scroll-area"));var Ta=gi.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(bt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,ut.jsx)(bt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ut.jsx)(Er,{}),(0,ut.jsx)(bt.Corner,{})]}));Ta.displayName=bt.Root.displayName;var Er=gi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,ut.jsx)(bt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,ut.jsx)(bt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Er.displayName=bt.ScrollAreaScrollbar.displayName;var Rl=h(require("react")),kt=h(require("@radix-ui/react-popover"));var tr=kt.Root,ar=kt.Trigger,Tl=kt.Anchor,Po=Rl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(kt.Portal,{children:(0,ut.jsx)(kt.Content,{ref:r,align:t,sideOffset:a,className:l("z-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),...o})}));Po.displayName=kt.Content.displayName;var Dl=h(require("react")),bi=h(require("@radix-ui/react-label"));var Um=(0,sl.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ne=Dl.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(bi.Root,{ref:a,className:l(Um(),e),...t}));ne.displayName=bi.Root.displayName;var Il=h(require("react")),Xa=h(require("@radix-ui/react-hover-card"));var Ll=Xa.Root,Bl=Xa.Trigger,vi=Il.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(Xa.Content,{ref:r,align:t,sideOffset:a,className:l("z-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),...o}));vi.displayName=Xa.Content.displayName;var or=h(require("react")),be=h(require("@radix-ui/react-dialog"));var vt=be.Root,zr=be.Trigger,yi=be.Portal,Hr=be.Close,Fr=or.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fr.displayName=be.Overlay.displayName;var it=or.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(yi,{children:[(0,ut.jsx)(Fr,{}),(0,ut.jsxs)(be.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-ut-[-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-ut-left-1/2 data-[state=closed]:slide-out-ut-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,ut.jsxs)(be.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,ut.jsx)(fl.ut,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));it.displayName=be.Content.displayName;var Rt=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-ut-1.5 text-center sm:text-left",e),...t});Rt.displayName="DialogHeader";var hi=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hi.displayName="DialogFooter";var Tt=or.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Tt.displayName=be.Title.displayName;var xi=or.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(be.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));xi.displayName=be.Description.displayName;var Da=h(require("react")),We=require("cmdk");var Or=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Or.displayName=We.Command.displayName;var Fl=({children:e,...t})=>(0,ut.jsx)(vt,{...t,children:(0,ut.jsx)(it,{className:"overflow-hidden p-0",children:(0,ut.jsx)(Or,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),wi=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,ut.jsx)(fl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,ut.jsx)(We.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));wi.displayName=We.Command.Input.displayName;var Ni=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.List,{ref:a,className:l("max-h-[300px] overflow-ut-auto overflow-x-hidden",e),...t}));Ni.displayName=We.Command.List.displayName;var Ci=Da.forwardRef((e,t)=>(0,ut.jsx)(We.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ci.displayName=We.Command.Empty.displayName;var Pi=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Pi.displayName=We.Command.Group.displayName;var Si=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Si.displayName=We.Command.Separator.displayName;var ki=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(We.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}));ki.displayName=We.Command.Item.displayName;var Ri=({className:e,...t})=>(0,ut.jsx)("span",{className:l("ut-auto text-xs tracking-widest text-muted-foreground",e),...t});Ri.displayName="CommandShortcut";var _r=h(require("react"));var Wm=(0,sl.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-ut-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:ut-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ti=_r.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)("div",{ref:o,role:"alert",className:l(Wm({variant:t}),e),...a}));Ti.displayName="Alert";var Di=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Di.displayName="AlertTitle";var Ai=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Ai.displayName="AlertDescription";var jr=h(require("react")),Jt=h(require("@radix-ui/react-avatar"));var Zt=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Zt.displayName=Jt.Root.displayName;var ea=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));ea.displayName=Jt.Image.displayName;var ta=jr.forwardRef(({className:e,...t},a)=>(0,$r.jsx)(Jt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ta.displayName=Jt.Fallback.displayName;var Mi=(0,sl.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 yt({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:l(Mi({variant:t}),e),...a})}var rr=h(require("@radix-ui/react-checkbox")),$l=h(require("react")),Dt=$l.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(rr.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,ut.jsx)(rr.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,ut.jsx)(fl.Check,{className:"h-4 w-4"})})}));Dt.displayName=rr.Root.displayName;var V=h(require("@radix-ui/react-select")),Aa=h(require("react")),qa=V.Root,Xm=V.Group,Ka=V.Value,Ma=Aa.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ut.jsx)(V.Icon,{asChild:!0,children:(0,ut.jsx)(fl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ma.displayName=V.Trigger.displayName;var Ii=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(fl.ChevronUp,{className:"h-4 w-4"})}));Ii.displayName=V.ScrollUpButton.displayName;var Li=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(fl.ChevronDown,{className:"h-4 w-4"})}));Li.displayName=V.ScrollDownButton.displayName;var Ia=Aa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,ut.jsx)(V.Portal,{children:(0,ut.jsxs)(V.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-ut-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-ut-1",t),position:a,ref:r,...o,children:[(0,ut.jsx)(Ii,{}),(0,ut.jsx)(V.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(Li,{})]})}));Ia.displayName=V.Content.displayName;var Vl=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Label,{className:l("py-1.5 ut-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Vl.displayName=V.Label.displayName;var La=Aa.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)(V.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 ut-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:o,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(V.ItemIndicator,{children:(0,ut.jsx)(fl.Check,{className:"h-4 w-4"})})}),(0,ut.jsx)(V.ItemText,{children:e})]}));La.displayName=V.Item.displayName;var Ul=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(V.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ul.displayName=V.Separator.displayName;var Wl=h(require("react")),Ba=Wl.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ba.displayName="Textarea";var Yl=require("react-day-picker");function sr({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,ut.jsx)(Yl.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-ut-4 sm:space-x-4 sm:space-ut-0",month:"space-ut-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(wa({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-ut-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.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(wa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}sr.displayName="Calendar";var Ze=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,ut.jsx)("i",{className:i})};var Ql=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,ut.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"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,ut.jsx)("div",{className:"w-12 h-12 ",children:(0,ut.jsx)(Ze,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,ut.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,ut.jsx)("p",{className:"text-white text-sm",children:t})]});var Jl=h(require("next/image")),Zl=h(require("next/link"));var Ja=h(require("react"));var ye=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("rounded-sl border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var _e=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex flex-col space-ut-1.5 p-6",e),...t}));_e.displayName="CardHeader";var Ge=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Ym=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Ym.displayName="CardDescription";var Te=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Te.displayName="CardContent";var qm=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));qm.displayName="CardFooter";function ed({name:e,logo:t,href:a}){return(0,ut.jsx)(ye,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,ut.jsxs)(Zl.default,{href:a,className:"block",children:[(0,ut.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,ut.jsx)("div",{className:"relative w-full h-full",children:t&&(0,ut.jsx)(Jl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,ut.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-ut-br from-gray-900 via-brand-one ut-gray-900",children:(0,ut.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 td({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,ut.jsx)(fl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,ut.jsx)(fl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,ut.jsx)(fl.PartyPopper,{className:"h-4 w-4"});default:return(0,ut.jsx)(fl.CalendarDays,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 ut-slate-500"}};return(0,ut.jsxs)(ye,{className:`w-full max-w-md overflow-hidden bg-gradient-ut-br ${n(e)}`,children:[(0,ut.jsxs)(_e,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,ut.jsxs)(Zt,{className:"h-14 w-14 border-2 border-white",children:[(0,ut.jsx)(ea,{src:r,alt:a||"Event"}),(0,ut.jsx)(ta,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,ut.jsxs)("div",{className:"flex flex-col",children:[(0,ut.jsx)(Ge,{className:"text-sl",children:a||"Untitled Event"}),(0,ut.jsxs)("p",{className:"text-sm text-white/80",children:[(0,ut.jsx)(fl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,ut.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,ut.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,ut.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,ut.jsx)("span",{className:"ut-1",children:e?e.replace(/([a-z])([ut-ut])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var od=h(require("next/link"));var rd=h(require("next/image")),ad={sm:"640px",md:"768px",lg:"1024px",sl:"1280px","2xl":"1400px"};function sd({slug:e,image:t,title:a,description:o}){return(0,ut.jsxs)(od.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,ut.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 ut-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,ut.jsx)(rd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
12
|
-
(min-width:${
|
|
13
|
-
(min-width:${
|
|
11
|
+
`),X.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",X.easing),document.querySelector("body").setAttribute("data-aos-duration",X.duration),document.querySelector("body").setAttribute("data-aos-delay",X.delay),X.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?P(!0):X.startEvent==="load"?window.addEventListener(X.startEvent,function(){P(!0)}):document.addEventListener(X.startEvent,function(){P(!0)}),window.addEventListener("resize",(0,m.default)(P,X.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(P,X.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(z,X.once)},X.throttleDelay)),X.disableMutationObserver||u.default.ready("[data-aos]",L),z)};e.exports={init:C,refresh:P,refreshHard:L}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,w){function ge(oe){var Qe=pt,ba=Ht;return pt=Ht=void 0,ga=oe,He=b.apply(ba,Qe)}function Oe(oe){return ga=oe,Re=setTimeout(zt,C),fa?ge(oe):He}function Ct(oe){var Qe=oe-rt,ba=oe-ga,zn=C-Qe;return Ut?L(zn,Ft-ba):zn}function mt(oe){var Qe=oe-rt,ba=oe-ga;return rt===void 0||Qe>=C||Qe<0||Ut&&ba>=Ft}function zt(){var oe=S();return mt(oe)?pa(oe):void(Re=setTimeout(zt,Ct(oe)))}function pa(oe){return Re=void 0,pe&&pt?ge(oe):(pt=Ht=void 0,He)}function $t(){Re!==void 0&&clearTimeout(Re),ga=0,pt=rt=Ht=Re=void 0}function ua(){return Re===void 0?He:pa(S())}function Ne(){var oe=S(),Qe=mt(oe);if(pt=arguments,Ht=this,rt=oe,Qe){if(Re===void 0)return Oe(rt);if(Ut)return Re=setTimeout(zt,C),ge(rt)}return Re===void 0&&(Re=setTimeout(zt,C)),He}var pt,Ht,Ft,He,Re,rt,ga=0,fa=!1,Ut=!1,pe=!0;if(typeof b!="function")throw new TypeError(d);return C=c(C)||0,s(w)&&(fa=!!w.leading,Ut="maxWait"in w,Ft=Ut?P(c(w.maxWait)||0,C):Ft,pe="trailing"in w?!!w.trailing:pe),Ne.cancel=$t,Ne.flush=ua,Ne}function r(b,C,w){var ge=!0,Oe=!0;if(typeof b!="function")throw new TypeError(d);return s(w)&&(ge="leading"in w?!!w.leading:ge,Oe="trailing"in w?!!w.trailing:Oe),o(b,C,{leading:ge,maxWait:C,trailing:Oe})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&X.call(b)==p}function c(b){if(typeof b=="number")return b;if(i(b))return u;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var w=f.test(b);return w||x.test(b)?M(b.slice(2),w?2:8):v.test(b)?u:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",u=NaN,p="[object Symbol]",g=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,x=/^0o[0-7]+$/i,M=parseInt,D=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,j=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,z=D||j||Function("return this")(),me=Object.prototype,X=me.toString,P=Math.max,L=Math.min,S=function(){return z.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,C){function w(pe){var oe=Ne,Qe=pt;return Ne=pt=void 0,rt=pe,Ft=S.apply(Qe,oe)}function ge(pe){return rt=pe,He=setTimeout(mt,b),ga?w(pe):Ft}function Oe(pe){var oe=pe-Re,Qe=pe-rt,ba=b-oe;return fa?P(ba,Ht-Qe):ba}function Ct(pe){var oe=pe-Re,Qe=pe-rt;return Re===void 0||oe>=b||oe<0||fa&&Qe>=Ht}function mt(){var pe=L();return Ct(pe)?zt(pe):void(He=setTimeout(mt,Oe(pe)))}function zt(pe){return He=void 0,Ut&&Ne?w(pe):(Ne=pt=void 0,Ft)}function pa(){He!==void 0&&clearTimeout(He),rt=0,Ne=Re=pt=He=void 0}function $t(){return He===void 0?Ft:zt(L())}function ua(){var pe=L(),oe=Ct(pe);if(Ne=arguments,pt=this,Re=pe,oe){if(He===void 0)return ge(Re);if(fa)return He=setTimeout(mt,b),w(Re)}return He===void 0&&(He=setTimeout(mt,b)),Ft}var Ne,pt,Ht,Ft,He,Re,rt=0,ga=!1,fa=!1,Ut=!0;if(typeof S!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(ga=!!C.leading,fa="maxWait"in C,Ht=fa?X(i(C.maxWait)||0,b):Ht,Ut="trailing"in C?!!C.trailing:Ut),ua.cancel=pa,ua.flush=$t,ua}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function n(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&me.call(S)==u}function i(S){if(typeof S=="number")return S;if(n(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(p,"");var C=v.test(S);return C||f.test(S)?x(S.slice(2),C?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,u="[object Symbol]",p=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,f=/^0o[0-7]+$/i,x=parseInt,M=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,D=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,j=M||D||Function("return this")(),z=Object.prototype,me=z.toString,X=Math.max,P=Math.min,L=function(){return j.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,u=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(u=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,u=o(),p=new u(n);i=m,p.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),u=Array.prototype.slice.call(m.removedNodes),p=d.concat(u);if(a(p))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(u,p){for(var g=0;g<p.length;g++){var v=p[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}return function(u,p,g){return p&&d(u.prototype,p),g&&d(u,g),u}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Xr)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ut|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|ut|s\-)|ai(ut|rn)|al(av|ut|Xn)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(ut|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|nl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Xn(mp|nd)|craw|da(ut|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|vl(12|\-d)|el(49|ai)|em(l2|ut)|er(Xn|k0)|esl8|ez([4-7]0|Xr|wa|ut)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-lo|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|Xn\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ut)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|le(Xn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ut(ut|ui|wr)|mc(01|21|ut)|m\-cr|me(Xn|ri)|mi(o8|vl|ts)|mmef|lo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ut((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Xn(ck|rt|se)|prox|psio|pt\-g|vl\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|Xn)|s55\/|sa(ge|ut|mm|vl|ny|va)|vl(01|ut\-|ut|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|ut(45|id)|sm(al|ar|b3|ut|t5)|ut(ft|ny)|sp(01|ut\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-lo|ut(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|ut(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Xr)?|phone|p(ixi|ut)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ut|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|ut|s\-)|ai(ut|rn)|al(av|ut|Xn)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(ut|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|nl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|Xn(mp|nd)|craw|da(ut|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|vl(12|\-d)|el(49|ai)|em(l2|ut)|er(Xn|k0)|esl8|ez([4-7]0|Xr|wa|ut)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-lo|go(\.w|od)|ut(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|Xn\-c|ut(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ut)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|ut)|le(Xn|xi)|lg( g|\/(ut|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ut(ut|ui|wr)|mc(01|21|ut)|m\-cr|me(Xn|ri)|mi(o8|vl|ts)|mmef|lo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ut((c|m)\-|on|tf|wf|wg|ut)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|Xn(ck|rt|se)|prox|psio|pt\-g|vl\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|Xn)|s55\/|sa(ge|ut|mm|vl|ny|va)|vl(01|ut\-|ut|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|ut(45|id)|sm(al|ar|b3|ut|t5)|ut(ft|ny)|sp(01|ut\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-lo|ut(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|ut(rg|ut)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var u=o();return!(!s.test(u)&&!n.test(u.substr(0,4)))}},{key:"mobile",value:function(){var u=o();return!(!i.test(u)&&!c.test(u.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,u=window.innerHeight,p={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(p.offset&&!isNaN(p.offset)&&(d=parseInt(p.offset)),p.anchor&&document.querySelectorAll(p.anchor)&&(i=document.querySelectorAll(p.anchor)[0]),m=(0,s.default)(i).top,p.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=u/2;break;case"bottom-center":m+=u/2+i.offsetHeight;break;case"center-center":m+=u/2+i.offsetHeight/2;break;case"top-top":m+=u;break;case"bottom-top":m+=i.offsetHeight+u;break;case"center-top":m+=i.offsetHeight/2+u}return p.anchorPlacement||p.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var wu={};tm(wu,{AOSInit:()=>zm,AboutSection:()=>nu,Alert:()=>Ai,AlertDescription:()=>Ii,AlertTitle:()=>Mi,ApproveLeave:()=>Cn,Avatar:()=>Zt,AvatarFallback:()=>ta,AvatarImage:()=>ea,Badge:()=>yt,BannerBlock:()=>Oi,BlogCard:()=>Qd,BlogDetail:()=>vu,BlogList:()=>Ep,BlogListSection:()=>du,BrandLogo:()=>Fa,Breadcrumb:()=>Is,BreadcrumbEllipsis:()=>Fs,BreadcrumbItem:()=>Es,BreadcrumbLink:()=>Bs,BreadcrumbList:()=>Ls,BreadcrumbPage:()=>zs,BreadcrumbSeparator:()=>Hs,Breadcrumbs:()=>vn,Button:()=>I,CMSLink:()=>Ot,CRMKanbanBoard:()=>ru,Calendar:()=>ir,CalendarView:()=>Tn,CallToActionBlock:()=>eo,Card:()=>mr,Categories:()=>pr,Checkbox:()=>Dt,CodeBlock:()=>Wi,Collapsible:()=>qt,CollapsibleContent:()=>xa,CollapsibleTrigger:()=>ha,CollectionArchive:()=>Pp,Command:()=>Or,CommandDialog:()=>_l,CommandEmpty:()=>Si,CommandGroup:()=>ki,CommandInput:()=>Ci,CommandItem:()=>Ti,CommandList:()=>Pi,CommandSeparator:()=>Ri,CommandShortcut:()=>Di,ContactSection:()=>fu,Container:()=>Ie,ContentBlock:()=>cr,ContentCard:()=>Yi,CopyButton:()=>Gi,CustomLink:()=>Le,CustomerCard:()=>ad,DealCard:()=>An,DealDetails:()=>Dn,Dialog:()=>vt,DialogClose:()=>Hr,DialogContent:()=>nt,DialogDescription:()=>Ni,DialogFooter:()=>wi,DialogHeader:()=>Rt,DialogOverlay:()=>Fr,DialogPortal:()=>xi,DialogTitle:()=>Tt,DialogTrigger:()=>zr,DropdownMenu:()=>Kn,DropdownMenuCheckboxItem:()=>Ws,DropdownMenuContent:()=>Gs,DropdownMenuGroup:()=>Jn,DropdownMenuItem:()=>js,DropdownMenuLabel:()=>$s,DropdownMenuPortal:()=>Zn,DropdownMenuRadioGroup:()=>tl,DropdownMenuRadioItem:()=>Vs,DropdownMenuSeparator:()=>Us,DropdownMenuShortcut:()=>Xs,DropdownMenuSub:()=>el,DropdownMenuSubContent:()=>_s,DropdownMenuSubTrigger:()=>Os,DropdownMenuTrigger:()=>Qn,DynamicIcon:()=>et,EventCard:()=>od,FeatureCard:()=>Zl,FeatureGrid:()=>Nd,FeaturesBlock:()=>ao,Filter:()=>mn,Footer:()=>Qp,Header:()=>Jp,HeaderDesktop:()=>fr,HeaderMobile:()=>br,HeadingImage:()=>yp,Hero:()=>sp,HighImpactHero:()=>pn,HolidayGrid:()=>Rn,HolidayTracker:()=>au,HoverCard:()=>Bl,HoverCardContent:()=>hi,HoverCardTrigger:()=>zl,Image:()=>ld,ImageBlock:()=>qi,ImageSection:()=>xu,InfoTile:()=>cp,Input:()=>Je,Insight:()=>dp,KanbanColumn:()=>Ln,Label:()=>de,Logo:()=>Sp,LowImpactHero:()=>fn,MOTD:()=>pp,MainPageSection:()=>yu,Media:()=>sa,MediaBlock:()=>ia,MediumImpactHero:()=>gn,NewCustomerForm:()=>Mn,NewDealForm:()=>In,NewsGrid:()=>Vd,OrgChart:()=>fp,PageRange:()=>Tp,Pagination:()=>dn,PayloadPagination:()=>Dp,Popover:()=>ar,PopoverAnchor:()=>Al,PopoverContent:()=>Po,PopoverTrigger:()=>or,PostHero:()=>jp,PricingCard:()=>Fi,PricingSection:()=>iu,ProjectCard:()=>nd,ProjectTeam:()=>Op,ProposalSummary:()=>bp,RelatedContent:()=>_p,RelatedPosts:()=>wp,RenderBlocks:()=>Qi,RenderHero:()=>Vp,RequestLeave:()=>kn,ReusableContentBlock:()=>Ki,RichText:()=>se,ScrollArea:()=>Ta,ScrollBar:()=>Br,SectionHero:()=>bn,Select:()=>Ya,SelectContent:()=>Ia,SelectGroup:()=>Qm,SelectItem:()=>La,SelectLabel:()=>Ul,SelectScrollDownButton:()=>Bi,SelectScrollUpButton:()=>Ei,SelectSeparator:()=>Xl,SelectTrigger:()=>Ma,SelectValue:()=>Ka,Separator:()=>Wo,ServiceCard:()=>Hi,ServiceSection:()=>su,Sheet:()=>Nr,SheetClose:()=>dl,SheetContent:()=>$o,SheetDescription:()=>Zs,SheetFooter:()=>Qs,SheetHeader:()=>Ks,SheetOverlay:()=>Cr,SheetPortal:()=>Ys,SheetTitle:()=>Js,SheetTrigger:()=>ll,Sidebar:()=>ja,SidebarContent:()=>Na,SidebarFooter:()=>Va,SidebarGroup:()=>gt,SidebarGroupAction:()=>ii,SidebarGroupContent:()=>St,SidebarGroupLabel:()=>Kt,SidebarHeader:()=>Wa,SidebarInput:()=>si,SidebarInset:()=>ri,SidebarLeft:()=>Bp,SidebarMenu:()=>Ze,SidebarMenuAction:()=>qo,SidebarMenuBadge:()=>ni,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>_e,SidebarMenuSkeleton:()=>li,SidebarMenuSub:()=>Ca,SidebarMenuSubButton:()=>Sa,SidebarMenuSubItem:()=>Pa,SidebarProvider:()=>ti,SidebarRail:()=>oi,SidebarRight:()=>Fp,SidebarSeparator:()=>Xo,SidebarTrigger:()=>ai,SimpleHeader:()=>Up,Skeleton:()=>be,SlideShow:()=>Gd,TextAndImages:()=>$d,Textarea:()=>Ea,Theme:()=>Dd,ThemeProvider:()=>Zp,Toast:()=>Qo,ToastAction:()=>mi,ToastClose:()=>Jo,ToastDescription:()=>er,ToastProvider:()=>Lr,ToastTitle:()=>Zo,ToastViewport:()=>Ko,Toaster:()=>Pl,Toggle:()=>ui,ToggleGroup:()=>gi,ToggleGroupItem:()=>fi,Tooltip:()=>Rr,TooltipContent:()=>Uo,TooltipProvider:()=>kr,TooltipTrigger:()=>Tr,VideoHeader:()=>Yp,WhyUs:()=>vp,badgeVariants:()=>Li,buttonVariants:()=>wa,ut:()=>l,getTableOfContents:()=>Em,reducer:()=>xl,toast:()=>wl,toggleVariants:()=>tr,useIsMobile:()=>Sr,useSidebar:()=>No,useToast:()=>Ir});module.exports=am(wu);var yo=y(require("react")),wr=require("@radix-ui/react-icons"),Yn=require("@radix-ui/react-slot");var Un=require("clsx");var Ds="-",om=e=>{let t=sm(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(Ds);return i[0]===""&&i.length!==1&&i.shift(),_n(i,t)||rm(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},_n=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?_n(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ds);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},Fn=/^\[(.+)\]$/,rm=e=>{if(Fn.test(e)){let t=Fn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},sm=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return nm(Object.entries(e.classGroups),a).forEach(([s,n])=>{Ts(n,o,s,t)}),o},Ts=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:On(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(im(r)){Ts(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{Ts(n,On(t,s),a,o)})})},On=(e,t)=>{let a=e;return t.split(Ds).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},im=e=>e.isThemeGetter,nm=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([n,i])=>[t+n,i])):s);return[a,r]}):e,lm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},Gn="!",dm=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,u;for(let x=0;x<i.length;x++){let M=i[x];if(m===0){if(M===r&&(o||i.slice(x,x+s)===t)){c.push(i.slice(d,x)),d=x+s;continue}if(M==="/"){u=x;continue}}M==="["?m++:M==="]"&&m--}let p=c.length===0?i:i.substring(d),g=p.startsWith(Gn),v=g?p.substring(1):p,f=u&&u>d?u-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},cm=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},mm=e=>({cache:lm(e.cacheSize),parseClassName:dm(e),...om(e)}),pm=/\s+/,um=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(pm),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:g}=a(m),v=!!g,f=o(v?p.substring(0,g):p);if(!f){if(!v){i=m+(i.length>0?" "+i:i);continue}if(f=o(p),!f){i=m+(i.length>0?" "+i:i);continue}v=!1}let x=cm(d).join(":"),M=u?x+Gn:x,D=M+f;if(s.includes(D))continue;s.push(D);let j=r(f,v);for(let z=0;z<j.length;++z){let me=j[z];s.push(M+me)}i=m+(i.length>0?" "+i:i)}return i};function gm(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=jn(t))&&(o&&(o+=" "),o+=a);return o}var jn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=jn(e[o]))&&(a&&(a+=" "),a+=t);return a};function fm(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,u)=>u(d),e());return a=mm(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=um(c,a);return r(c,d),d}return function(){return s(gm.apply(null,arguments))}}var le=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Wn=/^\[(?:([a-z-]+):)?(.+)\]$/i,bm=/^\d+\/\d+$/,vm=new Set(["px","full","screen"]),ym=/^(\d+(\.\d+)?)?(xs|sm|vl|lg|xl)$/,hm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|ss|in|cm|mm|cap|ch|ex|r?lh|cq(w|ut|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xt=e=>bo(e)||vm.has(e)||bm.test(e),va=e=>vo(e,"length",Am),bo=e=>!!e&&!Number.isNaN(Number(e)),Rs=e=>vo(e,"number",bo),_o=e=>!!e&&Number.isInteger(Number(e)),Cm=e=>e.endsWith("%")&&bo(e.slice(0,-1)),H=e=>Wn.test(e),ya=e=>ym.test(e),Pm=new Set(["length","size","percentage"]),Sm=e=>vo(e,Pm,Vn),km=e=>vo(e,"position",Vn),Rm=new Set(["image","url"]),Tm=e=>vo(e,Rm,Im),Dm=e=>vo(e,"",Mm),Go=()=>!0,vo=(e,t,a)=>{let o=Wn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Am=e=>hm.test(e)&&!xm.test(e),Vn=()=>!1,Mm=e=>wm.test(e),Im=e=>Nm.test(e);var Lm=()=>{let e=le("colors"),t=le("spacing"),a=le("blur"),o=le("brightness"),r=le("borderColor"),s=le("borderRadius"),n=le("borderSpacing"),i=le("borderWidth"),c=le("contrast"),m=le("grayscale"),d=le("hueRotate"),u=le("invert"),p=le("gap"),g=le("gradientColorStops"),v=le("gradientColorStopPositions"),f=le("inset"),x=le("margin"),M=le("opacity"),D=le("padding"),j=le("saturate"),z=le("scale"),me=le("sepia"),X=le("skew"),P=le("space"),L=le("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",H,t],w=()=>[H,t],ge=()=>["",Xt,va],Oe=()=>["auto",bo,H],Ct=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],mt=()=>["solid","dashed","dotted","double","none"],zt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pa=()=>["start","end","center","between","around","evenly","stretch"],$t=()=>["","0",H],ua=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ne=()=>[bo,H];return{cacheSize:500,separator:":",theme:{colors:[Go],spacing:[Xt,va],blur:["none","",ya,H],brightness:Ne(),borderColor:[e],borderRadius:["none","","full",ya,H],borderSpacing:w(),borderWidth:ge(),contrast:Ne(),grayscale:$t(),hueRotate:Ne(),invert:$t(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Cm,va],inset:C(),margin:C(),opacity:Ne(),padding:w(),saturate:Ne(),scale:Ne(),sepia:$t(),skew:Ne(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ya]}],"break-after":[{"break-after":ua()}],"break-before":[{"break-before":ua()}],"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:[...Ct(),H]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[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"],z:[{z:["auto",_o,H]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:$t()}],shrink:[{shrink:$t()}],order:[{order:["first","last","none",_o,H]}],"grid-cols":[{"grid-cols":[Go]}],"col-start-end":[{col:["auto",{span:["full",_o,H]},H]}],"col-start":[{"col-start":Oe()}],"col-end":[{"col-end":Oe()}],"grid-rows":[{"grid-rows":[Go]}],"row-start-end":[{row:["auto",{span:[_o,H]},H]}],"row-start":[{"row-start":Oe()}],"row-end":[{"row-end":Oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...pa()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...pa(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...pa(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],vl:[{vl:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],vl:[{vl:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],nl:[{nl:[x]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,t]}],"min-w":[{"min-w":[H,t,"min","max","fit"]}],"max-w":[{"max-w":[H,t,"none","full","min","max","fit","prose",{screen:[ya]},ya]}],ut:[{ut:[H,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-ut":[{"min-ut":[H,t,"min","max","fit","svh","lvh","dvh"]}],"max-ut":[{"max-ut":[H,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ya,va]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rs]}],"font-family":[{font:[Go]}],"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",H]}],"line-clamp":[{"line-clamp":["none",bo,Rs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Xt,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","Xn-underline"],"text-decoration-style":[{decoration:[...mt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Xt,va]}],"underline-offset":[{"underline-offset":["auto",Xt,H]}],"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",H]}],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",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ct(),km]}],"bg-repeat":[{bg:["Xn-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sm]}],"bg-image":[{bg:["none",{"gradient-ut":["t","tr","r","br","b","nl","l","tl"]},Tm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-ut-pos":[{ut:[v]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-ut":[{ut:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ut":[{"rounded-ut":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-nl":[{"rounded-nl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...mt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:mt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...mt()]}],"outline-offset":[{"outline-offset":[Xt,H]}],"outline-w":[{outline:[Xt,va]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[Xt,va]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ya,Dm]}],"shadow-color":[{shadow:[Go]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...zt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":zt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ya,H]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[j]}],sepia:[{sepia:[me]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[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",H]}],duration:[{duration:Ne()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:Ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[_o,H]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],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","Xn-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ut-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-vl":[{"scroll-vl":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-nl":[{"scroll-nl":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-vl":[{"scroll-vl":w()}],"scroll-pe":[{"scroll-pe":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","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","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",H]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Xt,va,Rs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","vl","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","vl","me","mt","mr","mb","nl"],mx:["mr","nl"],my:["mt","mb"],size:["w","ut"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ut","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-nl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ut"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-nl"],"rounded-l":["rounded-tl","rounded-nl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-vl","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-nl"],"scroll-mx":["scroll-mr","scroll-nl"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-vl","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var $n=fm(Lm);function l(...e){return $n((0,Un.clsx)(e))}function Em(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,u,p;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((u=(d=i.richText)==null?void 0:d.root)==null?void 0:u.children.length)===1){let g=i.richText.root.children.filter(v=>v!==void 0&&v.type==="heading");for(let v of g)v.children[0]&&n.push({text:(p=v.children[0].text)!=null?p:"",id:a(v.children[0].text,t++),tag:v.tag||"h2"})}}),n}),r=Bm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Bm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Xn=require("react"),qn=y(Ms());function zm(){return(0,Xn.useEffect)(()=>{qn.default.init({duration:1e3,offset:0,once:!0})},[]),null}var ut=require("react/jsx-runtime"),Is=yo.forwardRef(({...e},t)=>(0,ut.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Is.displayName="Breadcrumb";var Ls=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ut",{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}));Ls.displayName="BreadcrumbList";var Es=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Es.displayName="BreadcrumbItem";var Bs=yo.forwardRef(({asChild:e,className:t,...a},o)=>(0,ut.jsx)(e?Yn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Bs.displayName="BreadcrumbLink";var zs=yo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));zs.displayName="BreadcrumbPage";var Hs=({children:e,className:t,...a})=>(0,ut.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:ut-3.5",t),...a,children:e!=null?e:(0,ut.jsx)(wr.ChevronRightIcon,{})});Hs.displayName="BreadcrumbSeparator";var Fs=({className:e,...t})=>(0,ut.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex ut-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(wr.DotsHorizontalIcon,{className:"ut-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More"})]});Fs.displayName="BreadcrumbElipssis";var ho=y(require("@radix-ui/react-collapsible")),qt=ho.Root,ha=ho.CollapsibleTrigger,xa=ho.CollapsibleContent;var Yt=y(require("react")),_=y(require("@radix-ui/react-dropdown-menu"));var Kn=_.Root,Qn=_.Trigger,Jn=_.Group,Zn=_.Portal,el=_.Sub,tl=_.RadioGroup,Os=Yt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,ut.jsxs)(_.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,ut.jsx)(wr.ChevronRightIcon,{className:"nl-auto"})]}));Os.displayName=_.SubTrigger.displayName;var _s=Yt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-vl 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}));_s.displayName=_.SubContent.displayName;var Gs=Yt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(_.Portal,{children:(0,ut.jsx)(_.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-vl border bg-popover p-1 text-popover-foreground shadow-vl","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})}));Gs.displayName=_.Content.displayName;var js=Yt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));js.displayName=_.Item.displayName;var Ws=Yt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,ut.jsxs)(_.CheckboxItem,{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),checked:a,...o,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex ut-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.CheckIcon,{className:"ut-4 w-4"})})}),t]}));Ws.displayName=_.CheckboxItem.displayName;var Vs=Yt.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(_.RadioItem,{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),...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex ut-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)(_.ItemIndicator,{children:(0,ut.jsx)(wr.DotFilledIcon,{className:"ut-4 w-4 fill-current"})})}),t]}));Vs.displayName=_.RadioItem.displayName;var $s=Yt.forwardRef(({className:e,inset:t,...a},o)=>(0,ut.jsx)(_.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));$s.displayName=_.Label.displayName;var Us=Yt.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(_.Separator,{ref:a,className:l("-mx-1 my-1 ut-px bg-muted",e),...t}));Us.displayName=_.Separator.displayName;var Xs=({className:e,...t})=>(0,ut.jsx)("span",{className:l("nl-auto text-xs tracking-widest opacity-60",e),...t});Xs.displayName="DropdownMenuShortcut";var al=y(require("react"));var Je=al.forwardRef(({className:e,type:t,...a},o)=>(0,ut.jsx)("input",{type:t,className:l("flex ut-9 w-full rounded-vl border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Je.displayName="Input";var rl=y(require("react")),qs=y(require("@radix-ui/react-separator"));var Wo=rl.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,ut.jsx)(qs.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"ut-[1px] w-full":"ut-full w-[1px]",e),...o}));Wo.displayName=qs.Root.displayName;var Vo=y(require("react")),fe=y(require("@radix-ui/react-dialog")),nl=require("class-variance-authority");var Nr=fe.Root,ll=fe.Trigger,dl=fe.Close,Ys=fe.Portal,Cr=Vo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(fe.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Cr.displayName=fe.Overlay.displayName;var Hm=(0,nl.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-ut-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-ut-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 ut-full w-3/4 border-r data-[state=closed]:slide-out-ut-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 ut-full w-3/4 border-l data-[state=closed]:slide-out-ut-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),$o=Vo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,ut.jsxs)(Ys,{children:[(0,ut.jsx)(Cr,{}),(0,ut.jsxs)(fe.Content,{ref:r,className:l(Hm({side:e}),t),...o,children:[(0,ut.jsxs)(fe.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,ut.jsx)(wr.Cross2Icon,{className:"ut-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));$o.displayName=fe.Content.displayName;var Ks=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ks.displayName="SheetHeader";var Qs=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Qs.displayName="SheetFooter";var Js=Vo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(fe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Js.displayName=fe.Title.displayName;var Zs=Vo.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(fe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Zs.displayName=fe.Description.displayName;var W=y(require("react")),vl=require("lucide-react");var Sr=(e=768)=>{let[t,a]=(0,Xn.useState)(!1);return(0,Xn.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var pl=y(require("react")),wa=(0,nl.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:"ut-10 px-4 py-2",icon:"ut-10 w-10",lg:"ut-11 rounded px-8",sm:"ut-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),I=pl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,ut.jsx)(e?Yn.Slot:"button",{className:l(wa({className:t,size:a,variant:o})),ref:s,...r}));I.displayName="Button";function be({className:e,...t}){return(0,ut.jsx)("div",{className:l("animate-pulse rounded-vl bg-primary/10",e),...t})}var fl=y(require("react")),Pt=y(require("@radix-ui/react-tooltip"));var kr=Pt.Provider,Rr=Pt.Root,Tr=Pt.Trigger,Uo=fl.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,ut.jsx)(Pt.Portal,{children:(0,ut.jsx)(Pt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-vl 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})}));Uo.displayName=Pt.Content.displayName;var Fm="sidebar:state",Om=60*60*24*7,_m="16rem",Gm="18rem",jm="3rem",Wm="b",yl=W.createContext(null);function No(){let e=W.useContext(yl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ti=W.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=Sr(),[m,d]=W.useState(!1),[u,p]=W.useState(e),g=t!=null?t:u,v=W.useCallback(D=>{if(a)return a==null?void 0:a(typeof D=="function"?D(g):D);p(D),document.cookie=`${Fm}=${g}; path=/; max-age=${Om}`},[a,g]),f=W.useCallback(()=>c?d(D=>!D):v(D=>!D),[c,v,d]);W.useEffect(()=>{let D=j=>{j.key===Wm&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),f())};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[f]);let x=g?"expanded":"collapsed",M=W.useMemo(()=>({state:x,open:g,setOpen:v,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[x,g,v,c,m,d,f]);return(0,ut.jsx)(yl.Provider,{value:M,children:(0,ut.jsx)(kr,{delayDuration:0,children:(0,ut.jsx)("div",{style:{"--sidebar-width":_m,"--sidebar-width-icon":jm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});ti.displayName="SidebarProvider";var ja=W.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=No();return a==="none"?(0,ut.jsx)("div",{className:l("flex ut-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,ut.jsx)(Nr,{open:m,onOpenChange:d,...s,children:(0,ut.jsx)($o,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Gm},side:e,children:(0,ut.jsx)("div",{className:"flex ut-full w-full flex-col",children:r})})}):(0,ut.jsxs)("div",{ref:n,className:"group peer hidden vl:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,ut.jsx)("div",{className:l("duration-200 relative ut-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,ut.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear vl:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,ut.jsx)("div",{"data-sidebar":"sidebar",className:"flex ut-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});ja.displayName="Sidebar";var ai=W.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=No();return(0,ut.jsxs)(I,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("ut-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,ut.jsx)(vl.PanelLeft,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ai.displayName="SidebarTrigger";var oi=W.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=No();return(0,ut.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});oi.displayName="SidebarRail";var ri=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-ut-full","vl:peer-data-[variant=inset]:m-2 vl:peer-data-[state=collapsed]:peer-data-[variant=inset]:nl-2 vl:peer-data-[variant=inset]:nl-0 vl:peer-data-[variant=inset]:rounded-xl vl:peer-data-[variant=inset]:shadow",e),...t}));ri.displayName="SidebarInset";var si=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Je,{ref:a,"data-sidebar":"input",className:l("ut-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));si.displayName="SidebarInput";var Wa=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Wa.displayName="SidebarHeader";var Va=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Va.displayName="SidebarFooter";var Xo=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Wo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Xo.displayName="SidebarSeparator";var Na=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-ut-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Na.displayName="SidebarContent";var gt=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));gt.displayName="SidebarGroup";var Kt=W.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Yn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex ut-8 shrink-0 items-center rounded-vl px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Kt.displayName="SidebarGroupLabel";var ii=W.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,ut.jsx)(t?Yn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-vl 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:vl:hidden","group-data-[collapsible=icon]:hidden",e),...a}));ii.displayName="SidebarGroupAction";var St=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));St.displayName="SidebarGroupContent";var Ze=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ut",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Ze.displayName="SidebarMenu";var _e=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));_e.displayName="SidebarMenuItem";var Vm=(0,nl.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-vl 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:"ut-8 text-sm",sm:"ut-7 text-xs",lg:"ut-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ft=W.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?Yn.Slot:"button",{isMobile:m,state:d}=No(),u=(0,ut.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Vm({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,ut.jsxs)(Rr,{children:[(0,ut.jsx)(Tr,{asChild:!0,children:u}),(0,ut.jsx)(Uo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):u});ft.displayName="SidebarMenuButton";var qo=W.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,ut.jsx)(t?Yn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-vl 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:vl: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 vl:opacity-0",e),...o}));qo.displayName="SidebarMenuAction";var ni=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex ut-5 min-w-5 items-center justify-center rounded-vl 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}));ni.displayName="SidebarMenuBadge";var li=W.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=W.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,ut.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-vl ut-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,ut.jsx)(be,{className:"size-4 rounded-vl","data-sidebar":"menu-skeleton-icon"}),(0,ut.jsx)(be,{className:"ut-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});li.displayName="SidebarMenuSkeleton";var Ca=W.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ut",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Ca.displayName="SidebarMenuSub";var Pa=W.forwardRef(({...e},t)=>(0,ut.jsx)("li",{ref:t,...e}));Pa.displayName="SidebarMenuSubItem";var Sa=W.forwardRef(({asChild:e=!1,size:t="vl",isActive:a,className:o,...r},s)=>(0,ut.jsx)(e?Yn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex ut-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-vl 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==="vl"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));Sa.displayName="SidebarMenuSubButton";var Mr=y(require("react")),$m=1,Um=1e6;var di=0;function Xm(){return di=(di+1)%Number.MAX_SAFE_INTEGER,di.toString()}var ci=new Map,hl=e=>{if(ci.has(e))return;let t=setTimeout(()=>{ci.delete(e),Yo({type:"REMOVE_TOAST",toastId:e})},Um);ci.set(e,t)},xl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,$m)};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?hl(a):e.toasts.forEach(o=>{hl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Dr=[],Ar={toasts:[]};function Yo(e){Ar=xl(Ar,e),Dr.forEach(t=>{t(Ar)})}function wl({...e}){let t=Xm(),a=r=>Yo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Yo({type:"DISMISS_TOAST",toastId:t});return Yo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Ir(){let[e,t]=Mr.useState(Ar);return Mr.useEffect(()=>(Dr.push(t),()=>{let a=Dr.indexOf(t);a>-1&&Dr.splice(a,1)}),[e]),{...e,toast:wl,dismiss:a=>Yo({type:"DISMISS_TOAST",toastId:a})}}var $a=y(require("react")),Ce=y(require("@radix-ui/react-toast"));var Lr=Ce.Provider,Ko=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ce.Viewport,{ref:a,className:l("fixed top-0 z-[100] flex max-ut-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col vl:max-w-[420px]",e),...t}));Ko.displayName=Ce.Viewport.displayName;var qm=(0,nl.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-vl border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-ut-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"}}),Qo=$a.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)(Ce.Root,{ref:o,className:l(qm({variant:t}),e),...a}));Qo.displayName=Ce.Root.displayName;var mi=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ce.Action,{ref:a,className:l("inline-flex ut-8 shrink-0 items-center justify-center rounded-vl 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}));mi.displayName=Ce.Action.displayName;var Jo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ce.Close,{ref:a,className:l("absolute right-1 top-1 rounded-vl 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,ut.jsx)(vl.X,{className:"ut-4 w-4"})}));Jo.displayName=Ce.Close.displayName;var Zo=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ce.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));Zo.displayName=Ce.Title.displayName;var er=$a.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Ce.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));er.displayName=Ce.Description.displayName;function Pl(){let{toasts:e}=Ir();return(0,ut.jsxs)(Lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,ut.jsxs)(Qo,{...s,children:[(0,ut.jsxs)("div",{className:"grid gap-1",children:[a&&(0,ut.jsx)(Zo,{children:a}),o&&(0,ut.jsx)(er,{children:o})]}),r,(0,ut.jsx)(Jo,{})]},t)}),(0,ut.jsx)(Ko,{})]})}var Sl=y(require("react")),pi=y(require("@radix-ui/react-toggle"));var tr=(0,nl.cva)("inline-flex items-center justify-center gap-2 rounded-vl 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:"ut-9 px-2 min-w-9",sm:"ut-8 px-1.5 min-w-8",lg:"ut-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),ui=Sl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,ut.jsx)(pi.Root,{ref:r,className:l(tr({variant:t,size:a,className:e})),...o}));ui.displayName=pi.Root.displayName;var Ua=y(require("react")),Co=y(require("@radix-ui/react-toggle-group"));var Tl=Ua.createContext({size:"default",variant:"default"}),gi=Ua.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,ut.jsx)(Co.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,ut.jsx)(Tl.Provider,{value:{variant:t,size:a},children:o})}));gi.displayName=Co.Root.displayName;var fi=Ua.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Ua.useContext(Tl);return(0,ut.jsx)(Co.Item,{ref:s,className:l(tr({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});fi.displayName=Co.Item.displayName;var bi=y(require("react")),bt=y(require("@radix-ui/react-scroll-area"));var Ta=bi.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(bt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,ut.jsx)(bt.Viewport,{className:"ut-full w-full rounded-[inherit]",children:t}),(0,ut.jsx)(Br,{}),(0,ut.jsx)(bt.Corner,{})]}));Ta.displayName=bt.Root.displayName;var Br=bi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,ut.jsx)(bt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"ut-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"ut-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,ut.jsx)(bt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Br.displayName=bt.ScrollAreaScrollbar.displayName;var Dl=y(require("react")),kt=y(require("@radix-ui/react-popover"));var ar=kt.Root,or=kt.Trigger,Al=kt.Anchor,Po=Dl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(kt.Portal,{children:(0,ut.jsx)(kt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-vl border bg-popover p-4 text-popover-foreground shadow-vl outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Po.displayName=kt.Content.displayName;var Ml=y(require("react")),yi=y(require("@radix-ui/react-label"));var Ym=(0,nl.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),de=Ml.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(yi.Root,{ref:a,className:l(Ym(),e),...t}));de.displayName=yi.Root.displayName;var El=y(require("react")),Xa=y(require("@radix-ui/react-hover-card"));var Bl=Xa.Root,zl=Xa.Trigger,hi=El.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,ut.jsx)(Xa.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-vl border bg-popover p-4 text-popover-foreground shadow-vl outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));hi.displayName=Xa.Content.displayName;var rr=y(require("react")),ve=y(require("@radix-ui/react-dialog"));var vt=ve.Root,zr=ve.Trigger,xi=ve.Portal,Hr=ve.Close,Fr=rr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ve.Overlay,{ref:a,className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fr.displayName=ve.Overlay.displayName;var nt=rr.forwardRef(({className:e,children:t,...a},o)=>(0,ut.jsxs)(xi,{children:[(0,ut.jsx)(Fr,{}),(0,ut.jsxs)(ve.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-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-ut-left-1/2 data-[state=closed]:slide-out-ut-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,ut.jsxs)(ve.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,ut.jsx)(vl.X,{className:"ut-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));nt.displayName=ve.Content.displayName;var Rt=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Rt.displayName="DialogHeader";var wi=({className:e,...t})=>(0,ut.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wi.displayName="DialogFooter";var Tt=rr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ve.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Tt.displayName=ve.Title.displayName;var Ni=rr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(ve.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Ni.displayName=ve.Description.displayName;var Da=y(require("react")),Xe=require("cmdk");var Or=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Xe.Command,{ref:a,className:l("flex ut-full w-full flex-col overflow-hidden rounded-vl bg-popover text-popover-foreground",e),...t}));Or.displayName=Xe.Command.displayName;var _l=({children:e,...t})=>(0,ut.jsx)(vt,{...t,children:(0,ut.jsx)(nt,{className:"overflow-hidden p-0",children:(0,ut.jsx)(Or,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:ut-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:ut-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:ut-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Ci=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,ut.jsx)(vl.Search,{className:"mr-2 ut-4 w-4 shrink-0 opacity-50"}),(0,ut.jsx)(Xe.Command.Input,{ref:a,className:l("flex ut-10 w-full rounded-vl bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ci.displayName=Xe.Command.Input.displayName;var Pi=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Xe.Command.List,{ref:a,className:l("max-ut-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Pi.displayName=Xe.Command.List.displayName;var Si=Da.forwardRef((e,t)=>(0,ut.jsx)(Xe.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Si.displayName=Xe.Command.Empty.displayName;var ki=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Xe.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));ki.displayName=Xe.Command.Group.displayName;var Ri=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Xe.Command.Separator,{ref:a,className:l("-mx-1 ut-px bg-border",e),...t}));Ri.displayName=Xe.Command.Separator.displayName;var Ti=Da.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Xe.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}));Ti.displayName=Xe.Command.Item.displayName;var Di=({className:e,...t})=>(0,ut.jsx)("span",{className:l("nl-auto text-xs tracking-widest text-muted-foreground",e),...t});Di.displayName="CommandShortcut";var _r=y(require("react"));var Km=(0,nl.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Ai=_r.forwardRef(({className:e,variant:t,...a},o)=>(0,ut.jsx)("div",{ref:o,role:"alert",className:l(Km({variant:t}),e),...a}));Ai.displayName="Alert";var Mi=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Mi.displayName="AlertTitle";var Ii=_r.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Ii.displayName="AlertDescription";var jr=y(require("react")),Jt=y(require("@radix-ui/react-avatar"));var Zt=jr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Jt.Root,{ref:a,className:l("relative flex ut-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Zt.displayName=Jt.Root.displayName;var ea=jr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Jt.Image,{ref:a,className:l("aspect-square ut-full w-full",e),...t}));ea.displayName=Jt.Image.displayName;var ta=jr.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(Jt.Fallback,{ref:a,className:l("flex ut-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ta.displayName=Jt.Fallback.displayName;var Li=(0,nl.cva)("inline-flex items-center rounded-vl 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 yt({className:e,variant:t,...a}){return(0,ut.jsx)("div",{className:l(Li({variant:t}),e),...a})}var sr=y(require("@radix-ui/react-checkbox")),$l=y(require("react")),Dt=$l.forwardRef(({className:e,...t},a)=>(0,ut.jsx)(sr.Root,{className:l("peer ut-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,ut.jsx)(sr.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,ut.jsx)(vl.Check,{className:"ut-4 w-4"})})}));Dt.displayName=sr.Root.displayName;var $=y(require("@radix-ui/react-select")),Aa=y(require("react")),Ya=$.Root,Qm=$.Group,Ka=$.Value,Ma=Aa.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)($.Trigger,{className:l("flex ut-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,ut.jsx)($.Icon,{asChild:!0,children:(0,ut.jsx)(vl.ChevronDown,{className:"ut-4 w-4 opacity-50"})})]}));Ma.displayName=$.Trigger.displayName;var Ei=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)($.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(vl.ChevronUp,{className:"ut-4 w-4"})}));Ei.displayName=$.ScrollUpButton.displayName;var Bi=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)($.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,ut.jsx)(vl.ChevronDown,{className:"ut-4 w-4"})}));Bi.displayName=$.ScrollDownButton.displayName;var Ia=Aa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,ut.jsx)($.Portal,{children:(0,ut.jsxs)($.Content,{className:l("relative z-50 max-ut-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-vl 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-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,ut.jsx)(Ei,{}),(0,ut.jsx)($.Viewport,{className:l("p-1",a==="popper"&&"ut-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,ut.jsx)(Bi,{})]})}));Ia.displayName=$.Content.displayName;var Ul=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)($.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Ul.displayName=$.Label.displayName;var La=Aa.forwardRef(({children:e,className:t,...a},o)=>(0,ut.jsxs)($.Item,{className:l("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:o,...a,children:[(0,ut.jsx)("span",{className:"absolute left-2 flex ut-3.5 w-3.5 items-center justify-center",children:(0,ut.jsx)($.ItemIndicator,{children:(0,ut.jsx)(vl.Check,{className:"ut-4 w-4"})})}),(0,ut.jsx)($.ItemText,{children:e})]}));La.displayName=$.Item.displayName;var Xl=Aa.forwardRef(({className:e,...t},a)=>(0,ut.jsx)($.Separator,{className:l("-mx-1 my-1 ut-px bg-muted",e),ref:a,...t}));Xl.displayName=$.Separator.displayName;var ql=y(require("react")),Ea=ql.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("textarea",{className:l("flex min-ut-[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}));Ea.displayName="Textarea";var Kl=require("react-day-picker");function ir({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,ut.jsx)(Kl.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(wa({variant:"outline"}),"ut-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-vl w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-vl",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-vl [&:has(>.day-range-start)]:rounded-l-vl first:[&:has([aria-selected])]:rounded-l-vl last:[&:has([aria-selected])]:rounded-r-vl":"[&:has([aria-selected])]:rounded-vl"),day:l(wa({variant:"ghost"}),"ut-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}ir.displayName="Calendar";var et=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,ut.jsx)("i",{className:i})};var Zl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,ut.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"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,ut.jsx)("div",{className:"w-12 ut-12 ",children:(0,ut.jsx)(et,{type:o,iconName:a,className:"w-12 ut-12 text-white"})}),(0,ut.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,ut.jsx)("p",{className:"text-white text-sm",children:t})]});var ed=y(require("next/image")),td=y(require("next/link"));var Ja=y(require("react"));var he=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Ge=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ge.displayName="CardHeader";var je=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));je.displayName="CardTitle";var Jm=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Jm.displayName="CardDescription";var De=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));De.displayName="CardContent";var Zm=Ja.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Zm.displayName="CardFooter";function ad({name:e,logo:t,href:a}){return(0,ut.jsx)(he,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,ut.jsxs)(td.default,{href:a,className:"block",children:[(0,ut.jsx)("div",{className:"bg-white p-2 flex items-center justify-center ut-24",children:(0,ut.jsx)("div",{className:"relative w-full ut-full",children:t&&(0,ut.jsx)(ed.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,ut.jsx)(De,{className:"p-3 flex items-center justify-center ut-18 bg-gradient-ut-br from-gray-900 via-brand-one ut-gray-900",children:(0,ut.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 od({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,ut.jsx)(vl.Cake,{className:"ut-4 w-4"});case"workAnniversary":return(0,ut.jsx)(vl.Award,{className:"ut-4 w-4"});case"companyEvent":return(0,ut.jsx)(vl.PartyPopper,{className:"ut-4 w-4"});default:return(0,ut.jsx)(vl.CalendarDays,{className:"ut-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 ut-slate-500"}};return(0,ut.jsxs)(he,{className:`w-full max-w-vl overflow-hidden bg-gradient-ut-br ${n(e)}`,children:[(0,ut.jsxs)(Ge,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,ut.jsxs)(Zt,{className:"ut-14 w-14 border-2 border-white",children:[(0,ut.jsx)(ea,{src:r,alt:a||"Event"}),(0,ut.jsx)(ta,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,ut.jsxs)("div",{className:"flex flex-col",children:[(0,ut.jsx)(je,{className:"text-xl",children:a||"Untitled Event"}),(0,ut.jsxs)("p",{className:"text-sm text-white/80",children:[(0,ut.jsx)(vl.CalendarDays,{className:"mr-1 inline-block ut-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,ut.jsxs)(De,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,ut.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,ut.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,ut.jsx)("span",{className:"nl-1",children:e?e.replace(/([a-z])([ut-ut])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var sd=y(require("next/link"));var id=y(require("next/image")),rd={sm:"640px",vl:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function nd({slug:e,image:t,title:a,description:o}){return(0,ut.jsxs)(sd.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 vl:p-[1.875rem]",children:[(0,ut.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 ut-primary [transition:all_500ms_ease] vl:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","vl:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] vl:group-hover/portfolio:[transition-delay:.1s] vl:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,ut.jsx)(id.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
12
|
+
(min-width:${rd.vl}) 50vw,
|
|
13
|
+
(min-width:${rd.lg}) 25vw,
|
|
14
14
|
100vw
|
|
15
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,ut.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,ut.jsxs)("div",{className:"mt-auto divide-ut md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,ut.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,ut.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,ut.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Bi=h(require("next/image")),Ur=h(require("path"));function Km(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Qm(e){return e.startsWith("http")}function Jm(e,t){let a=e;if(Km(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Qm(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Ur.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Ur.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Ur.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Zm({src:e,alt:t}){let[a,o]=(0,Un.useState)(!1),[r,s]=(0,Un.useState)(!1),[n,i]=(0,Un.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.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:c,children:(0,ut.jsx)(Bi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,ut.jsx)(vt,{open:a,onOpenChange:o,children:(0,ut.jsxs)(it,{className:"flex flex-col items-center justify-center",children:[(0,ut.jsxs)(Rt,{className:"flex w-full justify-end",children:[(0,ut.jsx)(Tt,{className:"hidden",children:t}),(0,ut.jsx)(Hr,{})]}),(0,ut.jsx)("div",{className:"flex items-center justify-center",children:(0,ut.jsx)(Bi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function id({props:e,baseContext:t}){let{src:a}=e;return a=Jm(a,t),(0,ut.jsx)(Zm,{src:a,alt:e.alt})}var nd=h(require("next/link"));function Ie({children:e,href:t,openNewTab:a,...o}){return(0,ut.jsx)(nd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function ep(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Ei({icon:e,title:t,description:a,slug:o}){return(0,ut.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-ut-6 overflow-hidden rounded-5 p-6 md:space-ut-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-5",children:[(0,ut.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:ep(e)?(0,ut.jsx)(Ze,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,ut.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,ut.jsx)(Ie,{href:o,children:t}):t})]}),(0,ut.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,ut.jsx)(I,{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,ut.jsxs)(Ie,{href:o,children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"relative ut-3 text-sm/[1] text-accent",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.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,ut.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Xr=require("react-icons/fa6");function zi({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,ut.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,ut.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,ut.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-sl",children:e}),(0,ut.jsx)("p",{children:t})]}),(0,ut.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,ut.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-ut-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,ut.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,i)=>(0,ut.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,ut.jsx)("span",{className:"text-accent pt-1",children:(0,ut.jsx)(Xr.FaCircleCheck,{})}),(0,ut.jsx)("span",{children:n})]},i))}),(0,ut.jsxs)("p",{className:"font-secondary ut-auto text-sl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,ut.jsx)("sub",{className:"relative bottom-0 ut-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,ut.jsx)("div",{className:"flex-none mr-0 sm:ut-auto",children:(0,ut.jsx)(I,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,ut.jsxs)(Ie,{href:s.href,openNewTab:s.openNewTab,children:[(0,ut.jsx)("span",{className:"relative z-1",children:s.label}),(0,ut.jsx)("span",{className:"relative z-1 ut-2",children:(0,ut.jsx)(Xr.FaAnglesRight,{})})]})})})]})})]})}function tp({className:e,badge:t,title:a,subtitle:o}){return(0,ut.jsxs)("div",{className:l("relative overflow-hidden rounded-sl bg-gradient-ut-br from-[#A42368] ut-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,ut.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,ut.jsx)("div",{className:"mb-4",children:(0,ut.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,ut.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,ut.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-sl",children:o})]}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% ut 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,ut.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,ut.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Hi=({className:e,content:t,style:a})=>(0,ut.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,ut.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,ut.jsx)(de,{content:t,enableGutter:!1,enableProse:!1})})});var Fi=h(require("next/link")),Ot=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,ut.jsxs)(Fi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]}):(0,ut.jsx)(I,{asChild:!0,className:r,size:p,variant:a,children:(0,ut.jsxs)(Fi.default,{className:l(r),href:d||m||"",...u,children:[s&&s,o&&o]})})};var eo=({links:e,richText:t})=>(0,ut.jsx)("div",{className:"container",children:(0,ut.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,ut.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,ut.jsx)(de,{className:"mb-0",content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,ut.jsx)(Ot,{size:"lg",...a},o))})]})});var qr=require("prism-react-renderer");function Oi({code:e}){let[t,a]=(0,Un.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,ut.jsx)("div",{className:"flex justify-end align-middle",children:(0,ut.jsxs)(I,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,ut.jsx)("p",{children:t}),(0,ut.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,ut.jsx)(fl.ClipboardCopy,{})})]})})}var md=({code:e,language:t=""})=>e?(0,ut.jsx)(qr.Highlight,{code:e,language:t,theme:qr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,ut.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,ut.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,ut.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,ut.jsx)("span",{className:"table-cell ut-4",children:s.map((i,c)=>(0,ut.jsx)("span",{...o({token:i})},c))})]},n)),(0,ut.jsx)(Oi,{code:e})]})}):null;var Gi=({className:e,code:t,language:a})=>(0,ut.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,ut.jsx)(md,{code:t,language:a})});var ud=h(require("next/image")),ap={"3xl":1920,"2xl":1536,sl:1280,lg:1024,md:768,sm:640},pd="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=",gd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:w,height:M,url:D,width:G}=s;m=G,d=M,p=f||"",u=D||pd}let g=c||"lazy",v=n||Object.entries(ap).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,ut.jsx)("picture",{children:(0,ut.jsx)(ud.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:pd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:u,width:a?void 0:m})})};var fd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var bd=()=>{if(fd){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 vd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Un.useRef)(null);if((0,Un.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,$i.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,$i.jsx)("source",{src:`${bd()}/media/${s}`})})}return null};var sa=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,ut.jsx)(a||Un.Fragment,{...a!==null?{className:t}:{},children:r?(0,ut.jsx)(vd,{...e}):(0,ut.jsx)(gd,{...e})})};var ia=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Wi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var ao=({title:e,description:t,features:a,id:o})=>(0,ut.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,ut.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:o||"",children:e}),t&&typeof t=="string"&&(0,ut.jsx)("p",{className:"mb-5 text-sl tracking-tight md:text-sl",children:t}),t&&typeof t=="object"&&(0,ut.jsx)("p",{className:"mb-5 text-sl tracking-tight md:text-sl",children:(0,ut.jsx)(de,{content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var n,i,c,m,d;if(((n=r.settings)==null?void 0:n.contents)==="icon")return(0,ut.jsx)(op,{section:r,index:s},s);{let p=()=>{if(r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,ut.jsx)(Xi,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"solid":((c=r.settings)==null?void 0:c.card)||"solid",icon:p()||void 0,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(m=r.link)!=null&&m.url?"Find out more":void 0,buttonHref:((d=r.link)==null?void 0:d.url)||void 0},s)}})})]}),op=({section:e,index:t})=>{if(!e)return null;let a=(0,ut.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,ut.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,ut.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,ut.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",children:(0,ut.jsx)(de,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,ut.jsx)("a",{href:e.link.url?e.link.url:"#",className:"Un-underline group",children:a},t):a};var Jr=h(require("react"));function nr({nodes:e}){return(0,ut.jsx)(Jr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,ut.jsx)(Jr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,ut.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,ut.jsx)("em",{children:s},a)),t.format&4&&(s=(0,ut.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,ut.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,ut.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,ut.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,ut.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,ut.jsx)("table",{children:(0,ut.jsx)("tbody",{children:t.children.map((s,n)=>(0,ut.jsx)("tr",{children:s.children.map((i,c)=>(0,ut.jsx)("td",{children:nr({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return nr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,ut.jsx)(eo,{...s},a);case"mediaBlock":return(0,ut.jsx)(ia,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,ut.jsx)(Wi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,ut.jsx)(Hi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,ut.jsx)(Gi,{className:"col-start-2",...s},a);case"features":return(0,ut.jsx)(ao,{...s},a);case"reusableContentBlock":nr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,ut.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,ut.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,ut.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,ut.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,ut.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var de=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,ut.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&nr({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function rp(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Xi({variant:e="light",className:t,icon:a,heading:o,subheading:r,content:s,statistic:n,buttonText:i,buttonHref:c}){return(0,ut.jsxs)("div",{className:l("rounded-3xl p-8 md:p-12 min-w-56",{solid:"bg-accent",light:"bg-white",gradient:"bg-gradient-ut-br from-[#A42368] ut-[#4A1030]",radial:"bg-gradient-ut-br from-[#4A1030] ut-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,ut.jsx)("div",{className:l("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:rp(a)?(0,ut.jsx)(Ze,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,ut.jsx)("div",{className:l("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:o})]}),e==="solid"&&n&&(0,ut.jsx)("div",{className:"mb-6",children:(0,ut.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:n})}),r&&(0,ut.jsx)("div",{className:"mb-4 text-sl md:text-2xl font-light",children:r}),s&&typeof s=="object"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,ut.jsx)(de,{enableGutter:!1,content:s,enableProse:!1,className:l(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,ut.jsx)("div",{className:l("space-ut-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,ut.jsx)("div",{className:"mt-8",children:(0,ut.jsx)(I,{size:"lg",className:"text-white text-lg rounded-sl",asChild:!0,children:(0,ut.jsxs)("a",{href:c,children:[i,(0,ut.jsx)("span",{className:"ut-2",children:"\u2193"})]})})}),e==="radial"&&(0,ut.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var xd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,ut.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function sp({icon:e,title:t,body:a,color:o="secondary"}){return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,ut.jsx)("div",{className:"px-[2%] flex items-center",children:(0,ut.jsx)("div",{className:"w-12 h-12",children:(0,ut.jsx)(Ze,{type:e.type,iconName:e.name})})}),(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Nd=h(require("next/image"));function ip(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,ut.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,ut.jsx)(Nd.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,ut.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,ut.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,ut.jsxs)("a",{href:t,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,ut.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var np=(e,t)=>`from-brand-${e} ut-brand-${t}`;function lp({...e}){let t=np(e.brandFrom||"one",e.brandTo||"two");return(0,$e.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-ut-r ${t}`,children:[(0,$e.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,$e.jsxs)("a",{href:e.url,children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),(0,$e.jsx)("span",{children:e.message&&e.message})]}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,$e.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,$e.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,$e.jsx)("div",{className:"flex flex-1 justify-end"})]})}var lr=h(require("react")),dp={Architecture:(0,ut.jsx)(fl.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,ut.jsx)(fl.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,ut.jsx)(fl.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,ut.jsx)(fl.GanttChart,{className:"h-5 w-5 text-red-600"})},cp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,ut.jsx)("div",{className:`ut-${t*4} mb-2`,children:(0,ut.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,ut.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,ut.jsx)(fl.ChevronDown,{className:"h-4 w-4"}):(0,ut.jsx)(fl.ChevronRight,{className:"h-4 w-4"})}),(0,ut.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,ut.jsx)(fl.Users,{className:"h-6 w-6 text-gray-500"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,ut.jsxs)("div",{className:"flex items-center mt-1",children:[dp[e.discipline],(0,ut.jsx)("span",{className:"ut-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,ut.jsx)("span",{className:"ut-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Cd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,lr.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return lr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,ut.jsxs)("div",{children:[(0,ut.jsx)(cp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,ut.jsx)(Cd,{person:d,level:t+1,searchTerm:a},p))]}):null};function mp(){let[e,t]=(0,lr.useState)("");return(0,ut.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,ut.jsxs)("div",{className:"mb-4 relative",children:[(0,ut.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,ut.jsx)(fl.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,ut.jsx)(Cd,{person:o,level:0,searchTerm:e},r))})]})}function pp({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:"ut 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:"ut 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:"ut set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"ut phased roadmap outlining the steps ut implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"ut detailed plan outlining potential risks and mitigation strategies ut 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 ut improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies ut 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 ut leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,ut.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{className:"lg:col-span-1 space-ut-6 flex flex-col",children:[(0,ut.jsxs)(ye,{className:"flex-grow",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.Users,{className:"h-5 w-5"}),"Team"]})}),(0,ut.jsxs)(Te,{className:"p-6",children:[(0,ut.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"ut small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,ut.jsxs)("div",{className:"space-ut-6",children:[(0,ut.jsx)("div",{className:"space-ut-2",children:e.leadership.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsx)("div",{className:"space-ut-2",children:e.core.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role}),r.count&&(0,ut.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)(fl.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:"SME input:"})]}),(0,ut.jsx)("div",{className:"ut-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,ut.jsx)(Te,{className:"p-6",children:(0,ut.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,ut.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,ut.jsx)("ut",{className:"list-decimal list-inside space-ut-4",children:t.map((r,s)=>(0,ut.jsxs)("li",{className:"text-sm",children:[(0,ut.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,ut.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,ut.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,ut.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(Ge,{className:"flex items-center gap-2",children:[(0,ut.jsx)(fl.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,ut.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,ut.jsx)("ul",{className:"space-ut-4",children:a.map((r,s)=>(0,ut.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,ut.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,ut.jsx)("span",{children:r})]},s))})})]})]})}function up(){return(0,ut.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,ut.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,ut.jsxs)("div",{className:"space-ut-4 bg-primary p-3 rounded-lg",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,ut.jsx)(fl.BarChart3,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-sl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,ut.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,ut.jsxs)("ul",{className:"text-sm",children:[(0,ut.jsx)("li",{children:"Strategy definition"}),(0,ut.jsx)("li",{children:"Programme leadership"}),(0,ut.jsx)("li",{children:"Detailed planning"}),(0,ut.jsx)("li",{children:"\u2022 Financial control"}),(0,ut.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,ut.jsx)(fl.CogIcon,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-sl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,ut.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,ut.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,ut.jsx)(fl.Building2,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-sl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how ut navigate public sector and financial services regulation and how ut deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,ut.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,ut.jsx)(fl.BadgeCheck,{className:"w-8 h-8"})]}),(0,ut.jsx)("h2",{className:"text-sl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,ut.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 dr=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,ut.jsx)("div",{className:"container my-6",children:(0,ut.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-ut-8 gap-x-16",children:t&&t.length>0&&t.map((o,r)=>{let{enableLink:s,link:n,richText:i,size:c}=o;return(0,ut.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[c]}`,{"md:col-span-2":c!=="full"}),children:[i&&(0,ut.jsx)(de,{content:i,enableGutter:!1}),s&&(0,ut.jsx)(Ot,{...n})]},r)})})})};var Zr=h(require("next/image"));function gp({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,ut.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,ut.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,ut.jsx)(Zr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,ut.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,ut.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,ut.jsx)(Zr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,ut.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,ut.jsx)(Zr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,ut.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,ut.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,ut.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var kd=h(require("next/image"));var Yi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,ut.jsx)(fp,{blocks:a.layout}):(0,ut.jsx)(ut.Fragment,{})},Pd={content:dr,cta:eo,mediaBlock:ia,imageBlock:ia,features:ao},fp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Pd){let m=Pd[s];if(m)return(0,ut.jsx)("div",{className:"py-6 relative",children:(0,ut.jsx)("div",{className:l(((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,ut.jsx)(m,{...o})})},r)}return null})}):null};var Sd={content:dr,cta:eo,mediaBlock:ia,imageBlock:ia,features:ao,reusableContentBlock:Yi},qi=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Sd){let m=Sd[s];if(m)return(0,ut.jsxs)("div",{className:"py-6 relative",children:[(0,ut.jsx)(Rd,{block:o,index:r}),(0,ut.jsx)("div",{className:l("container",((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,ut.jsx)(m,{...o})})]},r)}return null})}):null},Rd=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let o={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,ut.jsxs)("div",{className:l("absolute inset-0 w-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,ut.jsx)(kd.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:o.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,ut.jsx)("div",{className:l("absolute inset-0 -z-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Md=h(require("clsx"));var Td=require("next/navigation");function bp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Td.useRouter)(),r=(0,Un.useRef)(null),s=(0,Un.useRef)(null),n=(0,Un.useRef)(0),i=(0,Un.useRef)(!1),c=(0,Un.useRef)(0),m=(0,Un.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,v=u==null?void 0:u.closest("a");c.current=p.button,v?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=(0,Un.useCallback)(p=>{var u,g;if((u=s.current)!=null&&u.href){let f=+new Date-n.current;if((g=s.current)!=null&&g.href&&f<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let w=t?"_blank":"_self";window.open(s.current.href,w)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Un.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Dd=bp;var Ad=h(require("next/link"));var cr=e=>{let{card:t,link:a}=Dd({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:u,image:g}=d||{},v=m&&Array.isArray(m)&&m.length>0,f=i||p,w=u==null?void 0:u.replace(/\s/g," "),M=`/${s}/${c}`;return(0,ut.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,ut.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,ut.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,ut.jsx)(sa,{resource:g,size:"33vw"})]}),(0,ut.jsxs)("div",{className:"p-4",children:[n&&v&&(0,ut.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&v&&(0,ut.jsx)("div",{children:m==null?void 0:m.map((D,G)=>{if(typeof D=="object"){let{title:z}=D,ce=z||"Untitled category",W=G===m.length-1;return(0,ut.jsxs)(Un.Fragment,{children:[ce,!W&&(0,ut.jsx)(Un.Fragment,{children:", \xA0"})]},G)}return null})})}),f&&(0,ut.jsx)("div",{className:"prose",children:(0,ut.jsx)("h3",{children:(0,ut.jsx)(Ad.default,{className:"not-prose",href:M,ref:a.ref,children:f})})}),u&&(0,ut.jsx)("div",{className:"mt-2",children:u&&(0,ut.jsx)("p",{children:w})})]})]})};var vp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,ut.jsxs)("div",{className:(0,Md.default)("container",t),children:[o&&(0,ut.jsx)(de,{content:o,enableGutter:!1}),(0,ut.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((r,s)=>typeof r=="string"?null:(0,ut.jsx)(cr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var mr=require("framer-motion");var Id=e=>{let[t,a]=(0,Un.useState)(0),{blocks:o}=e,r=o&&Array.isArray(o)&&o.length>0,s=p=>{a(p)},n=()=>{a(p=>(p+1)%o.length)},i=()=>{a(p=>(p-1+o.length)%o.length)},m=(0,Un.useCallback)(((p,u)=>{let g;return(...v)=>{clearTimeout(g),g=setTimeout(()=>p(...v),u)}})(p=>{p.deltaY>0?n():i()},300),[]),d=p=>{p.key==="ArrowDown"?n():p.key==="ArrowUp"&&i()};return(0,Un.useEffect)(()=>(window.addEventListener("wheel",m),window.addEventListener("keydown",d),()=>{window.removeEventListener("wheel",m),window.removeEventListener("keydown",d)}),[]),(0,ut.jsxs)("div",{className:"flex h-screen relative",children:[(0,ut.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:r&&o.map((p,u)=>(0,ut.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===u?"bg-accent":"bg-gray-300"}`,onClick:()=>s(u),children:(0,ut.jsx)("span",{className:"absolute ut-7 left-full text-left transform -translate-ut-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:p.blockName})},p.id))}),o.map((p,u)=>(0,ut.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${u===t?"opacity-100":"opacity-0"}`,children:(0,ut.jsx)(qi,{blocks:[p]})},u)),(0,ut.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:n,children:(0,ut.jsx)(yp,{})})]})},yp=()=>(0,ut.jsx)(mr.AnimatePresence,{children:(0,ut.jsx)(mr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,ut.jsx)(mr.motion.div,{initial:{ut:0},animate:{ut:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Ld=h(require("next/link")),Bd=h(require("next/image"));function Ed({blogs:e,width:t=3}){return(0,ut.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,ut.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,ut.jsx)(Ld.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,ut.jsxs)("div",{className:"relative size-full",children:[(0,ut.jsx)(Bd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-ut-t from-card ut-transparrent flex flex-col justify-end",children:[(0,ut.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,ut.jsx)("h2",{className:"text-sl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function zd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,ut.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,ut.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,ut.jsxs)("div",{className:"max-w-4xl",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,ut.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,ut.jsx)("p",{className:"mt-6 text-balance text-sl/8 text-gray-700",children:a})]}),(0,ut.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-ut-16",children:[(0,ut.jsxs)("div",{className:"lg:pr-8",children:[(0,ut.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,ut.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,ut.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 sl:mr-auto",children:(0,ut.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 sl:gap-8",children:s.map((d,p)=>(0,ut.jsx)("div",{className:"aspect-square overflow-hidden rounded-sl shadow-sl outline-1 -outline-offset-1 outline-black/10",children:(0,ut.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,ut.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,ut.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,ut.jsxs)("sl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-ut-4 sm:grid-cols-2",children:[(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,ut.jsxs)("fl",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,ut.jsxs)("fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"ut"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,ut.jsxs)("fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-ut-2",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,ut.jsxs)("fl",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Hd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var es=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},Fd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Ha({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,ut.jsxs)("div",{className:i,children:[e&&(0,ut.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,ut.jsx)("h2",{className:l("font-secondary text-sl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,ut.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,ut.jsx)(de,{content:a,enableGutter:!1})]})}function Ae({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Un-padding",o);return(0,ut.jsx)("div",{className:r,children:e})}var Ro=(e,t)=>e[t%e.length];var Qi=h(require("next/image"));function hp({blogs:e,sectionHeading:t}){return(0,ut.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ha,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,ut.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-ut-30px",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ro([200,400,600],o),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,ut.jsx)(jd,{...a})},o))})]})})}var _d=l("inline-flex items-center gap-2 text-white"),gv=l("text-sm text-white");function jd({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,ut.jsxs)("article",{className:"group/blog relative z-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,ut.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,ut.jsx)(Qi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
15
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,ut.jsx)("div",{className:"relative z-10 flex ut-full flex-col",children:(0,ut.jsxs)("div",{className:"mt-auto divide-y vl:opacity-0 vl:transition-[transform,opacity] vl:duration-500 vl:group-hover/portfolio:opacity-100",children:[(0,ut.jsx)("h3",{className:"overflow-hidden text-vl font-bold leading-[1.25] text-white vl:text-lg",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] vl:[transform:translateY(-100%)] vl:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,ut.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,ut.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] vl:[transform:translateY(100%)] vl:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var zi=y(require("next/image")),$r=y(require("path"));function ep(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function tp(e){return e.startsWith("http")}function ap(e,t){let a=e;if(ep(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(tp(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=$r.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=$r.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${$r.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function op({src:e,alt:t}){let[a,o]=(0,Xn.useState)(!1),[r,s]=(0,Xn.useState)(!1),[n,i]=(0,Xn.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=u=>{let{naturalWidth:p,naturalHeight:g}=u.target;i({width:p,height:g}),s(p>300||g>300)};return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"ut-[300px]":`ut-[${n.height}px]`}`,onClick:c,children:(0,ut.jsx)(zi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-ut-full"})}),(0,ut.jsx)(vt,{open:a,onOpenChange:o,children:(0,ut.jsxs)(nt,{className:"flex flex-col items-center justify-center",children:[(0,ut.jsxs)(Rt,{className:"flex w-full justify-end",children:[(0,ut.jsx)(Tt,{className:"hidden",children:t}),(0,ut.jsx)(Hr,{})]}),(0,ut.jsx)("div",{className:"flex items-center justify-center",children:(0,ut.jsx)(zi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function ld({props:e,baseContext:t}){let{src:a}=e;return a=ap(a,t),(0,ut.jsx)(op,{src:a,alt:e.alt})}var dd=y(require("next/link"));function Le({children:e,href:t,openNewTab:a,...o}){return(0,ut.jsx)(dd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function rp(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Hi({icon:e,title:t,description:a,slug:o}){return(0,ut.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block ut-full space-y-6 overflow-hidden rounded-5 p-6 vl:space-y-7 vl:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-5",children:[(0,ut.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent vl:text-[4rem]",children:rp(e)?(0,ut.jsx)(et,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,ut.jsx)("h2",{className:"text-vl font-bold leading-[1.25] vl:text-lg",children:o?(0,ut.jsx)(Le,{href:o,children:t}):t})]}),(0,ut.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,ut.jsx)(I,{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,ut.jsxs)(Le,{href:o,children:[(0,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.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,ut.jsx)("span",{className:"invisible absolute bottom-0 left-0 ut-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Xr=require("react-icons/fa6");function Fi({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,ut.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,ut.jsxs)("div",{className:"ut-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,ut.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,ut.jsx)("p",{children:t})]}),(0,ut.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 vl:p-10",children:(0,ut.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 vl:flex-row vl:items-center",children:[a&&a.length>0&&(0,ut.jsx)("ut",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 vl:grid-cols-2 gap-1 vl:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,ut.jsx)("span",{className:"text-accent pt-1",children:(0,ut.jsx)(Xr.FaCircleCheck,{})}),(0,ut.jsx)("span",{children:n})]},i))}),(0,ut.jsxs)("p",{className:"font-secondary nl-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,ut.jsx)("sub",{className:"relative bottom-0 nl-1.5 inline-block text-base lg:text-vl",children:r&&r})]}),s&&(0,ut.jsx)("div",{className:"flex-none mr-0 sm:nl-auto",children:(0,ut.jsx)(I,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,ut.jsxs)(Le,{href:s.href,openNewTab:s.openNewTab,children:[(0,ut.jsx)("span",{className:"relative z-1",children:s.label}),(0,ut.jsx)("span",{className:"relative z-1 pl-2",children:(0,ut.jsx)(Xr.FaAnglesRight,{})})]})})})]})})]})}function sp({className:e,badge:t,title:a,subtitle:o}){return(0,ut.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-ut-br from-[#A42368] ut-[#A42368] m-6 px-6 py-16 vl:px-12 vl:py-24",e),children:[(0,ut.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,ut.jsx)("div",{className:"mb-4",children:(0,ut.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,ut.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl vl:text-5xl lg:text-6xl",children:a}),(0,ut.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg vl:text-xl",children:o})]}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 ut-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% ut 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,ut.jsx)("div",{className:"absolute bottom-0 left-1/2 ut-32 w-full -translate-x-1/2",children:(0,ut.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,ut.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Oi=({className:e,content:t,style:a})=>(0,ut.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,ut.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,ut.jsx)(se,{content:t,enableGutter:!1,enableProse:!1})})});var _i=y(require("next/link")),Ot=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let u=a==="link"?"clear":c,p=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,ut.jsxs)(_i.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]}):(0,ut.jsx)(I,{asChild:!0,className:r,size:u,variant:a,children:(0,ut.jsxs)(_i.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]})})};var eo=({links:e,richText:t})=>(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 vl:flex-row vl:justify-between vl:items-center",children:[(0,ut.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,ut.jsx)(se,{className:"mb-0",content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,ut.jsx)(Ot,{size:"lg",...a},o))})]})});var Yr=require("prism-react-renderer");function Gi({code:e}){let[t,a]=(0,Xn.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,ut.jsx)("div",{className:"flex justify-end align-middle",children:(0,ut.jsxs)(I,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,ut.jsx)("p",{children:t}),(0,ut.jsx)("div",{className:"w-6 ut-6 dark:invert",children:(0,ut.jsx)(vl.ClipboardCopy,{})})]})})}var ud=({code:e,language:t=""})=>e?(0,ut.jsx)(Yr.Highlight,{code:e,language:t,theme:Yr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,ut.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,ut.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,ut.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,ut.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,ut.jsx)("span",{...o({token:i})},c))})]},n)),(0,ut.jsx)(Gi,{code:e})]})}):null;var Wi=({className:e,code:t,language:a})=>(0,ut.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,ut.jsx)(ud,{code:t,language:a})});var fd=y(require("next/image")),ip={"3xl":1920,"2xl":1536,xl:1280,lg:1024,vl:768,sm:640},gd="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=",bd=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,u=t,p=i||"";if(!p&&s&&typeof s=="object"){let{alt:f,filename:x,height:M,url:D,width:j}=s;m=j,d=M,u=f||"",p=D||gd}let g=c||"lazy",v=n||Object.entries(ip).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,ut.jsx)("picture",{children:(0,ut.jsx)(fd.default,{alt:u||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:gd,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:v,src:p,width:a?void 0:m})})};var vd=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var yd=()=>{if(vd){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 hd=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Xn.useRef)(null);if((0,Xn.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,$i.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,$i.jsx)("source",{src:`${yd()}/media/${s}`})})}return null};var sa=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,ut.jsx)(a||Xn.Fragment,{...a!==null?{className:t}:{},children:r?(0,ut.jsx)(hd,{...e}):(0,ut.jsx)(bd,{...e})})};var ia=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var qi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,ut.jsx)("div",{className:l("",{container:a},t),children:(0,ut.jsx)(sa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var ao=({title:e,description:t,features:a,id:o})=>(0,ut.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,ut.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold vl:text-3xl",id:o||"",children:e}),t&&typeof t=="string"&&(0,ut.jsx)("p",{className:"mb-5 text-xl tracking-tight vl:text-xl",children:t}),t&&typeof t=="object"&&(0,ut.jsx)("p",{className:"mb-5 text-xl tracking-tight vl:text-xl",children:(0,ut.jsx)(se,{content:t,enableGutter:!1})}),(0,ut.jsx)("div",{className:`grid gap-8 mt-10 vl:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var n,i,c,m,d;if(((n=r.settings)==null?void 0:n.contents)==="icon")return(0,ut.jsx)(np,{section:r,index:s},s);{let u=()=>{if(r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,ut.jsx)(Yi,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"solid":((c=r.settings)==null?void 0:c.card)||"solid",icon:u()||void 0,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(m=r.link)!=null&&m.url?"Find out more":void 0,buttonHref:((d=r.link)==null?void 0:d.url)||void 0},s)}})})]}),np=({section:e,index:t})=>{if(!e)return null;let a=(0,ut.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,ut.jsx)("div",{className:"text-accent ut-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,ut.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,ut.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,ut.jsx)("div",{className:"text-lg opacity-80",children:(0,ut.jsx)(se,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,ut.jsx)("a",{href:e.link.url?e.link.url:"#",className:"Xn-underline group",children:a},t):a};var Jr=y(require("react"));function lr({nodes:e}){return(0,ut.jsx)(Jr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,ut.jsx)(Jr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,ut.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,ut.jsx)("em",{children:s},a)),t.format&4&&(s=(0,ut.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,ut.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,ut.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,ut.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,ut.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,ut.jsx)("table",{children:(0,ut.jsx)("tbody",{children:t.children.map((s,n)=>(0,ut.jsx)("tr",{children:s.children.map((i,c)=>(0,ut.jsx)("td",{children:lr({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return lr({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,ut.jsx)(eo,{...s},a);case"mediaBlock":return(0,ut.jsx)(ia,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,ut.jsx)(qi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,ut.jsx)(Oi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,ut.jsx)(Wi,{className:"col-start-2",...s},a);case"features":return(0,ut.jsx)(ao,{...s},a);case"reusableContentBlock":lr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,ut.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,ut.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,ut.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,ut.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,ut.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,ut.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,ut.jsx)(Ot,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var se=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,ut.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&lr({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function lp(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Yi({variant:e="light",className:t,icon:a,heading:o,subheading:r,content:s,statistic:n,buttonText:i,buttonHref:c}){return(0,ut.jsxs)("div",{className:l("rounded-3xl p-8 vl:p-12 min-w-56",{solid:"bg-accent",light:"bg-white",gradient:"bg-gradient-ut-br from-[#A42368] ut-[#4A1030]",radial:"bg-gradient-ut-br from-[#4A1030] ut-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,ut.jsx)("div",{className:l("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:lp(a)?(0,ut.jsx)(et,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,ut.jsx)("div",{className:l("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:o})]}),e==="solid"&&n&&(0,ut.jsx)("div",{className:"mb-6",children:(0,ut.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:n})}),r&&(0,ut.jsx)("div",{className:"mb-4 text-xl vl:text-2xl font-light",children:r}),s&&typeof s=="object"&&(0,ut.jsx)("div",{className:l("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,ut.jsx)(se,{enableGutter:!1,content:s,enableProse:!1,className:l(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,ut.jsx)("div",{className:l("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,ut.jsx)("div",{className:"mt-8",children:(0,ut.jsx)(I,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,ut.jsxs)("a",{href:c,children:[i,(0,ut.jsx)("span",{className:"nl-2",children:"\u2193"})]})})}),e==="radial"&&(0,ut.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 ut-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Nd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,ut.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function dp({icon:e,title:t,body:a,color:o="secondary"}){return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("div",{className:"flex py-0 min-ut-16",children:[(0,ut.jsx)("div",{className:"px-[2%] flex items-center",children:(0,ut.jsx)("div",{className:"w-12 ut-12",children:(0,ut.jsx)(et,{type:e.type,iconName:e.name})})}),(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,ut.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Pd=y(require("next/image"));function cp(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,ut.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-vl shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,ut.jsx)(Pd.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,ut.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,ut.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,ut.jsxs)("a",{href:t,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,ut.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var mp=(e,t)=>`from-brand-${e} ut-brand-${t}`;function pp({...e}){let t=mp(e.brandFrom||"one",e.brandTo||"two");return(0,ut.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-ut-r ${t}`,children:[(0,ut.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,ut.jsxs)("a",{href:e.url,children:[(0,ut.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,ut.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,ut.jsx)("circle",{r:1,cx:1,cy:1})}),(0,ut.jsx)("span",{children:e.message&&e.message})]}):(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,ut.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,ut.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,ut.jsx)("div",{className:"flex flex-1 justify-end"})]})}var dr=y(require("react")),up={Architecture:(0,ut.jsx)(vl.DraftingCompass,{className:"ut-5 w-5 text-blue-600"}),Engineering:(0,ut.jsx)(vl.Code,{className:"ut-5 w-5 text-green-600"}),Development:(0,ut.jsx)(vl.Code,{className:"ut-5 w-5 text-purple-600"}),Delivery:(0,ut.jsx)(vl.GanttChart,{className:"ut-5 w-5 text-red-600"})},gp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,ut.jsx)("div",{className:`nl-${t*4} mb-2`,children:(0,ut.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,ut.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,ut.jsx)(vl.ChevronDown,{className:"ut-4 w-4"}):(0,ut.jsx)(vl.ChevronRight,{className:"ut-4 w-4"})}),(0,ut.jsx)("div",{className:"w-10 ut-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,ut.jsx)(vl.Users,{className:"ut-6 w-6 text-gray-500"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,ut.jsxs)("div",{className:"flex items-center mt-1",children:[up[e.discipline],(0,ut.jsx)("span",{className:"nl-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,ut.jsx)("span",{className:"nl-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Sd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,dr.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return dr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,ut.jsxs)("div",{children:[(0,ut.jsx)(gp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,u)=>(0,ut.jsx)(Sd,{person:d,level:t+1,searchTerm:a},u))]}):null};function fp(){let[e,t]=(0,dr.useState)("");return(0,ut.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,ut.jsxs)("div",{className:"mb-4 relative",children:[(0,ut.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-vl focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,ut.jsx)(vl.Search,{className:"absolute right-3 top-2.5 ut-5 w-5 text-gray-400"})]}),(0,ut.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((o,r)=>(0,ut.jsx)(Sd,{person:o,level:0,searchTerm:e},r))})]})}function bp({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:"ut 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:"ut 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:"ut set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"ut phased roadmap outlining the steps ut implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"ut detailed plan outlining potential risks and mitigation strategies ut 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 ut improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies ut 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 ut leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,ut.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,ut.jsxs)(he,{className:"flex-grow",children:[(0,ut.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(je,{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.Users,{className:"ut-5 w-5"}),"Team"]})}),(0,ut.jsxs)(De,{className:"p-6",children:[(0,ut.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"ut small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,ut.jsxs)("div",{className:"space-y-6",children:[(0,ut.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.User,{className:"ut-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.User,{className:"ut-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:r.role}),r.count&&(0,ut.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,ut.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,ut.jsx)(vl.Users2,{className:"ut-4 w-4 text-muted-foreground"}),(0,ut.jsx)("span",{children:"SME input:"})]}),(0,ut.jsx)("div",{className:"nl-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,ut.jsxs)(he,{children:[(0,ut.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(je,{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.PoundSterling,{className:"ut-5 w-5"}),"Fee"]})}),(0,ut.jsx)(De,{className:"p-6",children:(0,ut.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,ut.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(je,{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.FileText,{className:"ut-5 w-5"}),"Outputs"]})}),(0,ut.jsxs)(De,{className:"p-6 flex-grow overflow-auto",children:[(0,ut.jsx)("ut",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,ut.jsxs)("li",{className:"text-sm",children:[(0,ut.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,ut.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,ut.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,ut.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,ut.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,ut.jsxs)(je,{className:"flex items-center gap-2",children:[(0,ut.jsx)(vl.Lightbulb,{className:"ut-5 w-5"}),"Benefits"]})}),(0,ut.jsx)(De,{className:"p-6 flex-grow overflow-auto",children:(0,ut.jsx)("ut",{className:"space-y-4",children:a.map((r,s)=>(0,ut.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,ut.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,ut.jsx)("span",{children:r})]},s))})})]})]})}function vp(){return(0,ut.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,ut.jsxs)("div",{className:"grid vl:grid-cols-4 gap-8 relative",children:[(0,ut.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 ut-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,ut.jsx)(vl.BarChart3,{className:"w-8 ut-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,ut.jsx)("p",{className:"text-secondary text-sm",children:"ut excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,ut.jsxs)("ut",{className:"text-sm",children:[(0,ut.jsx)("li",{children:"Strategy definition"}),(0,ut.jsx)("li",{children:"Programme leadership"}),(0,ut.jsx)("li",{children:"Detailed planning"}),(0,ut.jsx)("li",{children:"\u2022 Financial control"}),(0,ut.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 ut-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,ut.jsx)(vl.CogIcon,{className:"w-8 ut-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,ut.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,ut.jsx)("p",{className:"text-sm",children:"ut deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 ut-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,ut.jsx)(vl.Building2,{className:"w-8 ut-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"ut understand how ut navigate public sector and financial services regulation and how ut deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,ut.jsx)("p",{className:"text-sm",children:"ut have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,ut.jsx)("div",{className:"w-10 ut-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,ut.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,ut.jsx)(vl.BadgeCheck,{className:"w-8 ut-8"})]}),(0,ut.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,ut.jsx)("p",{className:"text-sky-200 text-sm",children:"ut have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,ut.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, ut have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var cr=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,ut.jsx)("div",{className:"container my-6",children:(0,ut.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((o,r)=>{let{enableLink:s,link:n,richText:i,size:c}=o;return(0,ut.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[c]}`,{"vl:col-span-2":c!=="full"}),children:[i&&(0,ut.jsx)(se,{content:i,enableGutter:!1}),s&&(0,ut.jsx)(Ot,{...n})]},r)})})})};var Zr=y(require("next/image"));function yp({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,ut.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 ut-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,ut.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] ut-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,ut.jsx)(Zr.default,{src:e,alt:"Header background",className:"ut-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,ut.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 vl:left-8 vl:top-8",children:[o&&(0,ut.jsx)("div",{className:"ut-16 w-32 vl:ut-24 vl:w-48",children:(0,ut.jsx)(Zr.default,{src:o,alt:"Company logo",className:"ut-full w-full object-contain",width:192,height:96})}),r&&(0,ut.jsx)("div",{className:"ut-10 w-20 vl:ut-12 vl:w-24",children:(0,ut.jsx)(Zr.default,{src:r,alt:"Customer logo",className:"ut-full w-full object-contain",width:96,height:48})})]}),(0,ut.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,ut.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,ut.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] vl:text-6xl",children:a})]})]})}var Td=y(require("next/image"));var Ki=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,ut.jsx)(hp,{blocks:a.layout}):(0,ut.jsx)(ut.Fragment,{})},kd={content:cr,cta:eo,mediaBlock:ia,imageBlock:ia,features:ao},hp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in kd){let m=kd[s];if(m)return(0,ut.jsx)("div",{className:"py-6 relative",children:(0,ut.jsx)("div",{className:l(((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,ut.jsx)(m,{...o})})},r)}return null})}):null};var Rd={content:cr,cta:eo,mediaBlock:ia,imageBlock:ia,features:ao,reusableContentBlock:Ki},Qi=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,ut.jsx)("section",{id:"render-blocks",className:l(e.fill?"ut-full w-full":""),children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Rd){let m=Rd[s];if(m)return(0,ut.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex ut-full items-center justify-center"),children:[(0,ut.jsx)(Dd,{block:o,index:r}),(0,ut.jsx)("div",{className:l("container",((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,ut.jsx)(m,{...o})})]},r)}return null})}):null},Dd=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let o={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,ut.jsxs)("div",{className:l("absolute inset-0 w-full ut-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,ut.jsx)(Td.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:o.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,ut.jsx)("div",{className:l("absolute inset-0 -z-10 w-screen ut-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Ld=y(require("clsx"));var Ad=require("next/navigation");function xp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Ad.useRouter)(),r=(0,Xn.useRef)(null),s=(0,Xn.useRef)(null),n=(0,Xn.useRef)(0),i=(0,Xn.useRef)(!1),c=(0,Xn.useRef)(0),m=(0,Xn.useCallback)(u=>{if(u.target){let p=u.target,g=+new Date,v=p==null?void 0:p.closest("a");c.current=u.button,v?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=(0,Xn.useCallback)(u=>{var p,g;if((p=s.current)!=null&&p.href){let f=+new Date-n.current;if((g=s.current)!=null&&g.href&&f<=250&&!i.current&&c.current===0&&!u.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Xn.useEffect)(()=>{let u=r.current;return u&&(u.addEventListener("mousedown",m),u.addEventListener("mouseup",d)),()=>{u&&u&&(u==null||u.removeEventListener("mousedown",m),u==null||u.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Md=xp;var Id=y(require("next/link"));var mr=e=>{let{card:t,link:a}=Md({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:u}=r||{},{description:p,image:g}=d||{},v=m&&Array.isArray(m)&&m.length>0,f=i||u,x=p==null?void 0:p.replace(/\s/g," "),M=`/${s}/${c}`;return(0,$e.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,$e.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,$e.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,$e.jsx)(sa,{resource:g,size:"33vw"})]}),(0,$e.jsxs)("div",{className:"p-4",children:[n&&v&&(0,$e.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&v&&(0,$e.jsx)("div",{children:m==null?void 0:m.map((D,j)=>{if(typeof D=="object"){let{title:z}=D,me=z||"Untitled category",X=j===m.length-1;return(0,$e.jsxs)(Xn.Fragment,{children:[me,!X&&(0,$e.jsx)(Xn.Fragment,{children:", \xA0"})]},j)}return null})})}),f&&(0,$e.jsx)("div",{className:"prose",children:(0,$e.jsx)("h3",{children:(0,$e.jsx)(Id.default,{className:"not-prose",href:M,ref:a.ref,children:f})})}),p&&(0,$e.jsx)("div",{className:"mt-2",children:p&&(0,$e.jsx)("p",{children:x})})]})]})};var wp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,ut.jsxs)("div",{className:(0,Ld.default)("container",t),children:[o&&(0,ut.jsx)(se,{content:o,enableGutter:!1}),(0,ut.jsx)("div",{className:"grid grid-cols-1 vl:grid-cols-2 gap-4 vl:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,ut.jsx)(mr,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var To=require("framer-motion");var es="./cortex-reply-dark-XPAJJJYY.png";var _d=y(Ms());var xv=require("pagedjs");var Ed="./hero-3-N2CBGEV6.jpg";var rn=y(require("next/image"));var Pp=e=>{let{posts:t}=e;return(0,ut.jsx)("div",{className:l("container"),children:(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,ut.jsx)("div",{className:"col-span-4",children:(0,ut.jsx)(mr,{className:"ut-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Bd=y(require("clsx")),zd=y(require("next/image")),Sp=e=>{let{loading:t,priority:a,className:o}=e;return(0,ut.jsx)(zd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Bd.default)("max-w-[9.375rem] w-full ut-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var kp={plural:"Docs",singular:"Doc"},Rp={posts:{plural:"Posts",singular:"Post"}},Tp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||Rp[a||""]||kp||{};return(0,ut.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Xn results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var Zi=y(require("react")),en=({className:e,...t})=>(0,ut.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});en.displayName="Pagination";var tn=Zi.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ut",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));tn.displayName="PaginationContent";var da=Zi.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{className:l("",e),ref:a,...t}));da.displayName="PaginationItem";var ro=({className:e,isActive:t,size:a="icon",...o})=>(0,ut.jsx)("button",{"aria-current":t?"page":void 0,className:l(wa({size:a,variant:t?"outline":"ghost"}),e),...o});ro.displayName="PaginationLink";var an=({className:e,...t})=>(0,ut.jsxs)(ro,{"aria-label":"Go ut previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,ut.jsx)(vl.ChevronLeft,{className:"ut-4 w-4"}),(0,ut.jsx)("span",{children:"Previous"})]});an.displayName="PaginationPrevious";var on=({className:e,...t})=>(0,ut.jsxs)(ro,{"aria-label":"Go ut next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,ut.jsx)("span",{children:"Next"}),(0,ut.jsx)(vl.ChevronRight,{className:"ut-4 w-4"})]});on.displayName="PaginationNext";var ts=({className:e,...t})=>(0,ut.jsxs)("span",{"aria-hidden":!0,className:l("flex ut-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(vl.MoreHorizontal,{className:"ut-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More pages"})]});ts.displayName="PaginationEllipsis";var Dp=e=>{let t=(0,Ad.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,ut.jsx)("div",{className:l("my-12",a),children:(0,ut.jsx)(en,{children:(0,ut.jsxs)(tn,{children:[(0,ut.jsx)(da,{children:(0,ut.jsx)(an,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ts,{})}),n&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ro,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,ut.jsx)(da,{children:(0,ut.jsx)(ro,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ro,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ts,{})}),(0,ut.jsx)(da,{children:(0,ut.jsx)(on,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Gd=e=>{let[t,a]=(0,Xn.useState)(0),{blocks:o,hero:r}=e,s=o&&Array.isArray(o)&&o.length>0,i=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=v=>{a(v)},m=()=>{a(v=>(v+1)%i.length)},d=()=>{a(v=>(v-1+i.length)%i.length)},p=(0,Xn.useCallback)(((v,f)=>{let x;return(...M)=>{clearTimeout(x),x=setTimeout(()=>v(...M),f)}})(v=>{v.deltaY>0?m():d()},300),[]),g=v=>{v.key==="ArrowDown"?m():v.key==="ArrowUp"&&d()};return(0,Xn.useEffect)(()=>(_d.default.init({duration:1e3}),window.addEventListener("wheel",p),window.addEventListener("keydown",g),()=>{window.removeEventListener("wheel",p),window.removeEventListener("keydown",g)}),[]),(0,ut.jsxs)("div",{className:"flex flex-col min-ut-screen relative overflow-hidden",children:[(0,ut.jsx)("div",{className:"fixed left-0 top-0 flex ut-screen w-9 z-10 flex-col items-center justify-center bg-gray-100",children:s&&i.map((v,f)=>(0,ut.jsx)("button",{className:`group relative flex items-center justify-center my-2 ut-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===f?"bg-accent":"bg-gray-300"}`,onClick:()=>c(f),children:(0,ut.jsx)("span",{className:"absolute nl-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:v.blockName})},v.id))}),(0,ut.jsx)(To.AnimatePresence,{children:i.map((v,f)=>(0,ut.jsx)("div",{id:`slide-${f}`,className:"print-section",children:(0,ut.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
16
|
+
${f===t?"opacity-100":"opacity-0"}
|
|
17
|
+
w-full ut-full bg-cover bg-center`,children:f===0?(0,ut.jsx)(Lp,{hero:r,title:e.title}):(0,ut.jsxs)(ut.Fragment,{children:[v.blockName&&(0,ut.jsx)(Ip,{title:v.blockName}),(0,ut.jsx)(Qi,{blocks:[v],fill:!0}),(0,ut.jsx)(Mp,{})]})})},f))}),(0,ut.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:m,children:(0,ut.jsx)(Ap,{})})]})},Ap=()=>(0,ut.jsx)(To.AnimatePresence,{children:(0,ut.jsx)(To.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-ut-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,ut.jsx)(To.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] ut-[12px] rounded-full","bg-gray-800")})})}),Mp=()=>(0,ut.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
18
|
+
dark bg-background text-primary`,children:[(0,ut.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,ut.jsx)("img",{src:es.src,alt:"Cortex Reply Logo",className:"ut-8"}),(0,ut.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,ut.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Ip=({title:e})=>(0,ut.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Lp=e=>{var o,r;let{title:t,hero:a}=e;return(0,ut.jsxs)("div",{className:"relative w-full ut-full flex flex-col justify-center p-10",children:[(0,ut.jsx)("div",{className:"absolute inset-0",children:(0,ut.jsx)(rn.default,{src:a.media?a.media.url:Ed,alt:"Background",width:a.media&&a.media.width&&(o=a.media.width)!=null?o:1920,height:a.media&&a.media.height&&(r=a.media.height)!=null?r:1080,style:{objectFit:"cover"},className:"opacity-80 ut-full dark:opacity-60"})}),(0,ut.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:es&&(0,ut.jsx)("div",{className:"ut-48 w-96",children:(0,ut.jsx)(rn.default,{src:es,alt:"Company logo",className:"ut-full w-full object-contain",width:192,height:96})})}),(0,ut.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,ut.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,ut.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:t}),(0,ut.jsx)("h1",{className:`text-4xl vl:text-6xl font-bold leading-tight tracking-tight
|
|
19
|
+
text-white dark:text-gray-100`,children:a.richText&&(0,ut.jsx)(se,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})})]})]})};var jd=y(require("next/link")),Wd=y(require("next/image"));function Vd({blogs:e,width:t=3}){return(0,ut.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,ut.jsx)("div",{className:`grid vl:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,ut.jsx)(jd.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,ut.jsxs)("div",{className:"relative size-full",children:[(0,ut.jsx)(Wd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-ut-t from-card ut-transparrent flex flex-col justify-end",children:[(0,ut.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,ut.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function $d({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,ut.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,ut.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,ut.jsxs)("div",{className:"max-w-4xl",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,ut.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,ut.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,ut.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,ut.jsxs)("div",{className:"lg:pr-8",children:[(0,ut.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,ut.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,ut.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,ut.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,u)=>(0,ut.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,ut.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},u))})}),(0,ut.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,ut.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,ut.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,ut.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,ut.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"ut"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,ut.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,ut.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,ut.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var Ud=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var as=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},Xd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"ut";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Ha({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 vl:mb-[3.75rem]":r},s);return(0,ut.jsxs)("div",{className:i,children:[e&&(0,ut.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent vl:text-vl",children:e}),(0,ut.jsx)("h2",{className:l("font-secondary text-xl font-bold leading-[1.25] text-foreground vl:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,ut.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,ut.jsx)(se,{content:a,enableGutter:!1})]})}function Ie({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"Xn-padding",o);return(0,ut.jsx)("div",{className:r,children:e})}var Ao=(e,t)=>e[t%e.length];var sn=y(require("next/image"));function Ep({blogs:e,sectionHeading:t}){return(0,ut.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,ut.jsxs)(Ie,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ha,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,ut.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ao([200,400,600],o),className:"w-full px-4 vl:w-1/2 vl:px-[15px] lg:w-1/3",children:(0,ut.jsx)(Qd,{...a})},o))})]})})}var Yd=l("inline-flex items-center gap-2 text-white"),Gv=l("text-sm text-white");function Qd({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,ut.jsxs)("article",{className:"group/blog relative z-1 flex ut-full min-ut-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,ut.jsx)("span",{className:"absolute inset-0 z-[2] "}),(0,ut.jsx)(sn.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
16
20
|
(min-width:768px) 50vw,
|
|
17
21
|
(min-width:1024px) 33vw,
|
|
18
22
|
100vw
|
|
19
|
-
`,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,ut.jsx)(
|
|
23
|
+
`,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,ut.jsx)(sn.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
20
24
|
(min-width:768px) 50vw,
|
|
21
25
|
(min-width:1024px) 33vw,
|
|
22
26
|
100vw
|
|
23
|
-
`,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,ut.jsxs)("div",{className:"relative z-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,ut.jsx)("div",{children:(0,ut.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,ut.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,ut.jsx)("span",{className:"block",children:es(r)})})})}),(0,ut.jsxs)("div",{className:"mt-auto space-ut-2 text-white md:space-ut-5",children:[(0,ut.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-ut-2",children:(0,ut.jsx)("p",{className:_d})}),(0,ut.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,ut.jsx)(Ie,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,ut.jsx)("div",{children:(0,ut.jsxs)(Ie,{href:e,className:l(_d,"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,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaArrowRight,{})})]})})]})]})]})}var xp=e=>{let{posts:t}=e;return(0,ut.jsx)("div",{className:l("container"),children:(0,ut.jsx)("div",{children:(0,ut.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-ut-4 gap-x-4 lg:gap-ut-8 lg:gap-x-8 sl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,ut.jsx)("div",{className:"col-span-4",children:(0,ut.jsx)(cr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var $d=h(require("clsx")),Vd=h(require("next/image")),wp=e=>{let{loading:t,priority:a,className:o}=e;return(0,ut.jsx)(Vd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,$d.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Np={plural:"Docs",singular:"Doc"},Cp={posts:{plural:"Posts",singular:"Post"}},Pp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||Cp[a||""]||Np||{};return(0,ut.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced Un results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var Ji=h(require("react")),Zi=({className:e,...t})=>(0,ut.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Zi.displayName="Pagination";var en=Ji.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));en.displayName="PaginationContent";var da=Ji.forwardRef(({className:e,...t},a)=>(0,ut.jsx)("li",{className:l("",e),ref:a,...t}));da.displayName="PaginationItem";var so=({className:e,isActive:t,size:a="icon",...o})=>(0,ut.jsx)("button",{"aria-current":t?"page":void 0,className:l(wa({size:a,variant:t?"outline":"ghost"}),e),...o});so.displayName="PaginationLink";var tn=({className:e,...t})=>(0,ut.jsxs)(so,{"aria-label":"Go ut previous page",className:l("gap-1 ut-2.5",e),size:"default",...t,children:[(0,ut.jsx)(fl.ChevronLeft,{className:"h-4 w-4"}),(0,ut.jsx)("span",{children:"Previous"})]});tn.displayName="PaginationPrevious";var an=({className:e,...t})=>(0,ut.jsxs)(so,{"aria-label":"Go ut next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,ut.jsx)("span",{children:"Next"}),(0,ut.jsx)(fl.ChevronRight,{className:"h-4 w-4"})]});an.displayName="PaginationNext";var ts=({className:e,...t})=>(0,ut.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ut.jsx)(fl.MoreHorizontal,{className:"h-4 w-4"}),(0,ut.jsx)("span",{className:"sr-only",children:"More pages"})]});ts.displayName="PaginationEllipsis";var Sp=e=>{let t=(0,Td.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,ut.jsx)("div",{className:l("my-12",a),children:(0,ut.jsx)(Zi,{children:(0,ut.jsxs)(en,{children:[(0,ut.jsx)(da,{children:(0,ut.jsx)(tn,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ts,{})}),n&&(0,ut.jsx)(da,{children:(0,ut.jsx)(so,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,ut.jsx)(da,{children:(0,ut.jsx)(so,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,ut.jsx)(da,{children:(0,ut.jsx)(so,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,ut.jsx)(da,{children:(0,ut.jsx)(ts,{})}),(0,ut.jsx)(da,{children:(0,ut.jsx)(an,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var on=h(require("clsx"));function kp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let p=c?u=>(0,ut.jsx)(c,{...u}):n?({href:u,children:g,...v})=>(0,ut.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):u=>(0,ut.jsx)("a",{...u});return(0,ut.jsxs)(ja,{...m,variant:"inset",children:[(0,ut.jsx)($a,{children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Oe,{children:i?(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)(fe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,ut.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,ut.jsxs)(Na,{children:[(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,ut.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,ut.jsxs)(Na,{children:[e&&!i&&e.map((u,g)=>(0,ut.jsx)(Rp,{subNav:u,pathName:r,Link:p},g)),(0,ut.jsx)(gt,{className:"mt-auto",children:(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:t&&!i&&t.map(u=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{asChild:!0,size:"sm",children:(0,ut.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,ut.jsx)(u.icon,{}),(0,ut.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,ut.jsx)(Va,{})]})}function Rp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsx)(gt,{className:"py-0",children:(0,ut.jsx)(Je,{children:(0,ut.jsx)(Yt,{asChild:!0,defaultOpen:o.isActive,children:(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,on.default)(r&&"font-bold text-accent"),children:(0,ut.jsxs)(a,{href:o.url,children:[o.icon&&(0,ut.jsx)(o.icon,{}),(0,ut.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(ha,{asChild:!0,children:(0,ut.jsxs)(Xo,{className:"data-[state=open]:rotate-90",children:[(0,ut.jsx)(fl.ChevronRight,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,ut.jsx)(xa,{children:(0,ut.jsx)(Ca,{children:(n=o.links)==null?void 0:n.map(i=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,className:(0,on.default)(i.url===t&&"font-bold text-accent"),children:(0,ut.jsx)(a,{href:i.url,children:(0,ut.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var qd=h(require("clsx"));var Tp=()=>(0,ut.jsx)(Ze,{iconName:"github",size:"10x"});function Dp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let v=d?f=>(0,ut.jsx)(d,{...f}):m?({item:f,children:w,...M})=>(0,ut.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:w}):f=>(0,ut.jsx)("a",{href:f.href,...f});return(0,ut.jsxs)(ja,{side:"right",variant:"inset",...p,children:[(0,ut.jsxs)($a,{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{children:(0,ut.jsxs)(ft,{onClick:s,children:[(0,ut.jsx)(fl.FilePlus,{})," ",(0,ut.jsx)("span",{children:"Add Document"})]})}),c&&(0,ut.jsx)(Oe,{children:(0,ut.jsx)(ft,{onClick:c,tooltip:"Open in GitHub",children:(0,ut.jsx)(Tp,{})})})]}),(0,ut.jsxs)(Je,{className:"flex-row space-x-1",children:[(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,qd.default)(r&&"text-accent"),children:[(0,ut.jsx)(fl.Edit,{})," ",(0,ut.jsx)("span",{children:"Edit"})]})}),(0,ut.jsx)(Oe,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:i,children:[(0,ut.jsx)(fl.Printer,{})," ",(0,ut.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Editor Controls",(0,ut.jsx)(fl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:a})})]})}),(0,ut.jsx)(Wo,{className:"mx-0"})]}),(0,ut.jsxs)(Na,{className:"overflow-auto",children:[o&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Related Content"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]}),(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Table of Contents"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Je,{children:Array.from({length:3}).map((f,w)=>(0,ut.jsx)(Oe,{children:(0,ut.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},w))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Related Content",(0,ut.jsx)(fl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:(0,ut.jsx)(Je,{children:e&&Object.keys(e).map(f=>(0,ut.jsxs)(Oe,{children:[(0,ut.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,ut.jsx)(Ca,{children:e[f].map(w=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,isActive:!1,size:"sm",children:(0,ut.jsxs)(v,{href:w.url,item:w,className:"flex justify-between items-center w-full text-xs",children:[(0,ut.jsx)("span",{children:w.label}),w.type==="note"&&(0,ut.jsx)(fl.PencilLine,{className:"ut-2 text-gray-400 !important",size:16}),w.type==="draft"&&(0,ut.jsx)(Ze,{iconName:"code-pull-request-draft",className:"ut-2 text-gray-400 !important"})]})})},w.label))})]},f))})})})]})}),t&&!o&&(0,ut.jsx)(Yt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Table of Contents",(0,ut.jsx)(fl.ChevronDown,{className:"ut-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:(0,ut.jsx)(Je,{children:t.map(f=>{var w;return(0,ut.jsxs)(Oe,{children:[(0,ut.jsx)(ft,{asChild:!0,children:(0,ut.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(w=f.items)!=null&&w.length?(0,ut.jsx)(Ca,{children:f.items.map(M=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,isActive:M.isActive,size:"sm",children:(0,ut.jsx)("a",{href:`#${M.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,ut.jsx)("span",{children:M.title})})})},M.title))}):null]},f.title)})})})})]})})]}),(0,ut.jsx)(Va,{})]})}var Qd=h(require("next/image"));function Ap({title:e,members:t}){return(0,ut.jsx)(ye,{className:"mb-6",children:(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center mb-4",children:[(0,ut.jsx)(fl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,ut.jsx)("h2",{className:"text-sl font-semibold text-foreground",children:e})]}),(0,ut.jsx)("div",{className:"space-ut-4",children:t.map((a,o)=>(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,ut.jsx)(Qd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Jd=h(require("next/link"));var Mp=({links:e,title:t="Related Content"})=>(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:t})}),(0,ut.jsx)(Te,{children:(0,ut.jsx)("nav",{className:"flex flex-col space-ut-2",children:e.map((a,o)=>(0,ut.jsxs)(Jd.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,ut.jsx)(fl.ExternalLink,{className:"ut-1 h-3 w-3"})]},o))})})]});var rn=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function sn({pages:e}){let t=(0,Td.useSearchParams)(),a=(0,Td.usePathname)(),{replace:o}=(0,Td.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Un.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(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"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let d=[];for(let p=n.start;p<=n.end;p++)d.push(p);return(0,ut.jsx)("div",{className:"mt-12",children:(0,ut.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(rn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,ut.jsx)(Xr.FaArrowLeft,{})})}),d.map((p,u)=>(0,ut.jsx)("li",{children:(0,ut.jsx)("a",{className:l(rn,p===s?"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<r&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(rn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,ut.jsx)(Xr.FaArrowRight,{})})})]})})}var Kv=l("transition-colors duration-400 hover:text-primary ease-in-out");function pr({title:e,links:t}){let a=(0,Td.useSearchParams)(),o=(0,Td.usePathname)(),{replace:r}=(0,Td.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:e&&e})}),(0,ut.jsx)(Te,{children:t&&t.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,ut.jsx)(fl.ExternalLink,{className:"ut-1 h-3 w-3"})]},i))})})})]})}function ln({types:e}){let[t,a]=(0,Un.useState)(e&&e[0].href),o=(0,Td.useSearchParams)(),r=(0,Td.usePathname)(),{replace:s}=(0,Td.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,ut.jsx)(I,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var oc=h(require("next/image"));var dn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,ut.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,ut.jsxs)("div",{className:"text-center container",children:[a||o&&(0,ut.jsx)(de,{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:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,ut.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ot,{...r})},s))})]})}),(0,ut.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,ut.jsx)(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,ut.jsx)("div",{children:(0,ut.jsx)(oc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,ut.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 ut-white dark:from-background/0 dark:ut-background"})]})]});var cn=h(require("next/image"));var Ip=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,ut.jsx)(cn.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,ut.jsx)("div",{children:(0,ut.jsx)(cn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},mn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,ut.jsx)(Ip,{media:t}),(0,ut.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,ut.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,ut.jsx)(de,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var pn=({children:e,richText:t})=>(0,ut.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,ut.jsx)("div",{className:"container",children:e||t&&(0,ut.jsx)(de,{content:t,enableGutter:!1})})});var rc=h(require("react")),sc=h(require("next/image"));var Lp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,ut.jsxs)("div",{className:"relative grid",children:[(0,ut.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,ut.jsxs)("div",{className:"container mx-auto",children:[(0,ut.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,ut.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,ut.jsx)("p",{children:o.map((i,c)=>(0,ut.jsxs)(rc.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,ut.jsx)("time",{dateTime:r,children:Hd(r)})]}),t&&t.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,ut.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,ut.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,ut.jsx)(sc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,ut.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-ut-t from-background dark:from-black ut-transparent"})]})]})};var rs=require("@heroicons/react/20/solid");var ic=h(require("next/image"));function un({title:e,breadcrumbItems:t,image:a}){return(0,$t.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,$t.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,$t.jsx)(ic.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,$t.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 ut-background dark:from-background/0 dark:ut-background"}),(0,$t.jsx)(Ae,{children:(0,$t.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-ut-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,$t.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,$t.jsx)(gn,{breadcrumbItems:t})]})})]})}var Bp={highImpact:dn,lowImpact:pn,mediumImpact:mn,sectionHero:un},Ep=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Bp[t];return a?(0,ut.jsx)(a,{...e}):null};function gn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,ut.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,ut.jsxs)("ut",{role:"list",className:"flex items-center space-x-4",children:[(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{children:(0,ut.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,ut.jsx)(rs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,ut.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,ut.jsx)("li",{children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(rs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,ut.jsx)("a",{href:a.href,className:"ut-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,ut.jsx)("div",{className:"ut-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,ut.jsx)(ut.Fragment,{})}var dt=require("@headlessui/react"),ns=require("@heroicons/react/24/outline");var zp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,ut.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,ut.jsxs)(dt.Popover,{children:[(0,ut.jsxs)(dt.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,ut.jsx)(rs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,ut.jsxs)(dt.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-ut-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,ut.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 sl:gap-x-8 z-50",children:t&&t.map(r=>(0,ut.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,ut.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,ut.jsx)(nc,{icon:r.icon,size:"4x"})}),(0,ut.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,ut.jsx)("span",{className:"absolute inset-0"})]}),(0,ut.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,ut.jsx)("div",{className:"bg-gray-50",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,ut.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,ut.jsx)(nc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),nc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,ut.jsx)(Ze,{...e,size:a});if("src"in e)return(0,ut.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,ut.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},ss=zp;var is=["light","dark","green"];function Hp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Un.useState)(!1),[s,n]=(0,Un.useState)(!1),[i,c]=(0,Un.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,u]=(0,Un.useState)(`${m}.${d}`),g=f=>{is.includes(f)?u(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):u(`${m}.${d}`)};(0,Un.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=is[(is.indexOf(i)+1)%is.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,$.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,$.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,$.jsx)("div",{className:"flex lg:flex-1",children:(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:e}),(0,$.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,$.jsx)("div",{className:"flex lg:hidden",children:(0,$.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,$.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,$.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,$.jsx)(ss,{...f},f.name))}),(0,$.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,$.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,$.jsx)(rs.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,$.jsx)(rs.MoonIcon,{className:"h-6 w-6"}):(0,$.jsx)(rs.SunIcon,{className:"h-6 w-6"})})})]}),(0,$.jsxs)(dt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,$.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,$.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,$.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-ut-2 py-6",children:a.map(f=>(0,$.jsx)(Fp,{...f},f.name))})})})]})]})]})}function Fp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,$.jsxs)(dt.Disclosure,{Xr:"div",className:"-mx-3",children:[(0,$.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 ut-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,$.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,$.jsx)(dt.DisclosureButton,{Xr:"a",href:r.href,className:"block rounded-lg py-2 ut-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var pc=h(require("next/image"));var fn=h(require("next/image"));function Fa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,ut.jsxs)(Ie,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,ut.jsx)(fn.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,ut.jsx)(fn.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var dc=require("next-themes");function fr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,Un.useState)(!1),[n,i]=(0,Un.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,dc.useTheme)();(0,Un.useEffect)(()=>{i(m||"dark")},[m]);let p=()=>{let u=c[(c.indexOf(n)+1)%c.length];i(u),d(u)};return(0,Un.useEffect)(()=>{let u=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:(0,ut.jsx)(Ae,{className:"px-0",children:(0,ut.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-sl",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-sl border border-t-0 border-accent",children:[(0,ut.jsx)(Fa,{logoDark:a,logoLight:t}),(0,ut.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(u=>(0,ut.jsx)(ss,{...u},u.name))}),(0,ut.jsx)("div",{className:"flex items-center space-x-4",children:(0,ut.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:p,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(fl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(fl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var bn=["light","dark"];function br({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Un.useState)(!1),{theme:n,setTheme:i}=(0,dc.useTheme)(),[c,m]=(0,Un.useState)(!1),[d,p]=(0,Un.useState)("light");(0,Un.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Un.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=bn[(bn.indexOf(d)+1)%bn.length];p(g),i(g)};return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-ut-0":"-translate-ut-full bg-transparent"}`,children:[(0,ut.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,ut.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,ut.jsx)(Fa,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,ut.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,ut.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:u,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(fl.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(fl.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,ut.jsxs)(dt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,ut.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,ut.jsxs)(dt.DialogPanel,{className:"fixed inset-ut-0 right-0 z-20 w-full overflow-ut-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,ut.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,ut.jsx)(Fa,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.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,ut.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,ut.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,ut.jsx)("div",{className:"mt-6 flow-root",children:(0,ut.jsx)("div",{className:"-my-6 divide-ut divide-gray-500/10",children:(0,ut.jsx)("div",{className:"space-ut-2 px-2 py-6",children:a&&a.map(g=>(0,ut.jsx)(Op,{...g},g.name))})})})]})]})]})})}function Op({name:e,items:t,actions:a,href:o}){return!t&&o?(0,ut.jsx)("a",{href:o,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,ut.jsxs)(dt.Disclosure,{Xr:"div",className:"-mx-3",children:[(0,ut.jsx)(dt.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 ut-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,ut.jsx)(dt.DisclosurePanel,{className:"mt-2 space-ut-2",children:t&&t.map(r=>(0,ut.jsx)(dt.DisclosureButton,{Xr:"a",href:r.href,className:"block rounded-lg py-2 ut-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function _p({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,Un.useState)(!1),[c,m]=(0,Un.useState)(!1),d=()=>{let u=document.getElementById("next-section");u&&u.scrollIntoView({behavior:"smooth"})};return(0,Un.useEffect)(()=>{let u=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),(0,ut.jsxs)("div",{className:"relative h-screen",children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,ut.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,ut.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,ut.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,ut.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,ut.jsx)(fl.Menu,{className:"w-6 h-6 text-white"})}),(0,ut.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,ut.jsx)(fr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,ut.jsxs)("div",{className:"absolute inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,ut.jsx)(pc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,ut.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,ut.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,ut.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,ut.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,ut.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,ut.jsx)(fl.ChevronDown,{size:64})})})]})]})}var uc=h(require("next/image"));var Gp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 block px-4"),vn=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),yn=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),hn=l("flex items-center gap-5"),ps=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function jp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,ut.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,ut.jsx)("div",{className:"py-16 md:py-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 sl:grid-cols-4",children:[(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,ut.jsx)(Fa,{logoLight:a,logoDark:o}),(0,ut.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":m.href,className:Gp,href:m.href,openNewTab:!0,children:(0,ut.jsx)("span",{children:m.icon})})},d))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,ut.jsx)("h3",{className:vn,children:s.title}),s.links&&s.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,ut.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,ut.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,ut.jsx)(Xr.FaChevronRight,{})}),(0,ut.jsx)(Ie,{href:m.href,openNewTab:m.openNewTab,className:ps,children:m.label})]},m.label))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,ut.jsx)("h3",{className:vn,children:n.title}),(0,ut.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,ut.jsxs)("li",{className:hn,children:[(0,ut.jsx)("span",{className:yn,children:(0,ut.jsx)(Xr.FaPaperPlane,{})}),(0,ut.jsx)("address",{className:"not-italic",children:n.location})]}),(0,ut.jsxs)("li",{className:hn,children:[(0,ut.jsx)("span",{className:yn,children:(0,ut.jsx)(Xr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,ut.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,ut.jsx)("a",{href:`mailto:${m}`,className:ps,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,ut.jsxs)("li",{className:hn,children:[(0,ut.jsx)("span",{className:yn,children:(0,ut.jsx)(Xr.FaPhone,{})}),(0,ut.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,ut.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:ps,children:m},d))})]})]})]}),i&&(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,ut.jsx)("h3",{className:vn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,ut.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,ut.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,ut.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,ut.jsx)(uc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaCalendarDays,{})}),(0,ut.jsx)("span",{children:Fd(m.date)})]}),(0,ut.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,ut.jsx)(Ie,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,ut.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,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-ut-4 md:gap-x-10",children:[(0,ut.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,ut.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:c.links.map(m=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{"aria-label":`Go ut page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:ps,children:m.label})},m.label))})})]})})})]})}function $p({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,ut.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,ut.jsx)(fr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Vp({children:e,...t}){return(0,ut.jsx)(dc.ThemeProvider,{...t,children:e})}var lo=require("sonner");function xn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Un.useState)([]),s=(0,Td.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(u=>u!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(lo.toast.success(d.message),s.refresh()):lo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(lo.toast.success(d.message),s.refresh()):lo.toast.error(`Error: ${d.message}`),r([])};return(0,ut.jsxs)("div",{className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,ut.jsxs)("div",{className:"space-x-2",children:[(0,ut.jsx)(I,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,ut.jsx)(I,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,ut.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,ut.jsxs)("ul",{className:"divide-ut divide-gray-200",children:[(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,ut.jsx)("label",{htmlFor:"select-all",className:"ut-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,ut.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,ut.jsxs)("div",{className:"ut-3 flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-10 w-10",children:[(0,ut.jsx)(ea,{src:d.userImage,alt:d.userName}),(0,ut.jsx)(ta,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,ut.jsx)("div",{className:"ut-3",children:(0,ut.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,ut.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,ut.jsx)(lo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var wn=require("date-fns"),Up=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,ut.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,ut.jsx)(I,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Cn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Un.useState)(new Date),[r,s]=(0,Un.useState)(new Date),[n,i]=(0,Un.useState)("Full Day"),[c,m]=(0,Un.useState)(!1),d=(0,Td.useRouter)();(0,Un.useEffect)(()=>{m(a!==r||!a||!r),c&&i("Full Day")},[a,r]);let p=g=>{i(g)};return(0,ut.jsxs)("div",{className:"max-w-2xl",children:[(0,ut.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,ut.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,ut.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){lo.toast.error("Please select both start and end dates");return}let v=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(v=.5),v>e){lo.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",r.toISOString()),f.append("leaveType",n),f.append("duration",v.toString());let w=await(t||Wp)(f);w.success?(lo.toast.success(w.message),o(void 0),s(void 0),i("Full Day"),d.refresh()):lo.toast.error(`Error: ${w.message}`)},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"startDate",children:"Start Date"}),(0,ut.jsxs)(tr,{children:[(0,ut.jsx)(ar,{asChild:!0,children:(0,ut.jsxs)(I,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,ut.jsx)(fl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,wn.format)(a,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(Po,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(sr,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-col space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"endDate",children:"End Date"}),(0,ut.jsxs)(tr,{children:[(0,ut.jsx)(ar,{asChild:!0,children:(0,ut.jsxs)(I,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,ut.jsx)(fl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,wn.format)(r,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(Po,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(sr,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{children:"Leave Type"}),(0,ut.jsx)(Up,{options:["Full Day","Morning","Afternoon"],value:n,onChange:p,disabled:[!1,c,c]})]}),(0,ut.jsx)(I,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,ut.jsx)(lo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Wp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function hc(...e){return e.filter(Boolean).join(" ")}function Pn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,ut.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,ut.jsxs)("div",{className:"sm:flex-auto",children:[(0,ut.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,ut.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,ut.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,ut.jsxs)(I,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(fl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(I,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,ut.jsxs)(I,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(fl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,ut.jsx)("div",{className:"mt-8 flow-root",children:(0,ut.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,ut.jsx)("div",{className:"max-h-[60vh] overflow-ut-auto",children:(0,ut.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,ut.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 ut-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:ut-6 lg:ut-8",children:"Employee"}),[...Array(r)].map((c,m)=>(0,ut.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,ut.jsx)("tbody",{children:o.map((c,m)=>(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("td",{className:hc(m!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r ut-4 pr-3 text-sm font-medium text-gray-900 sm:ut-6 lg:ut-8"),children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsxs)(Zt,{className:"h-11 w-11",children:[(0,ut.jsx)(ea,{src:c.image,alt:c.name}),(0,ut.jsx)(ta,{children:c.name.split(" ").map(d=>d[0]).join("")})]}),(0,ut.jsx)("div",{className:"ut-4",children:(0,ut.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p+1),g=a.find(v=>v.userId===c.id&&new Date(v.startDate)<=u&&new Date(v.endDate)>=u);return(0,ut.jsx)("td",{className:hc(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,ut.jsx)("div",{className:`h-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?`${c.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,ut.jsx)("div",{className:`h-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${p}`)})]},c.id))})]})})})})]})}function Sn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Un.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(d,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+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)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,ut.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,ut.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,ut.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,ut.jsx)("div",{className:"flex items-center",children:(0,ut.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,ut.jsxs)(I,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(fl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(I,{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,ut.jsxs)(I,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(fl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,ut.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,ut.jsxs)("div",{className:"bg-white py-2",children:["M",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["W",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ut"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,ut.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,ut.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,ut.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,ut.jsx)("ut",{className:"mt-2 space-ut-1",children:d.holidays.map(p=>(0,ut.jsx)("li",{children:(0,ut.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))})]},d.date.toISOString()))}),(0,ut.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,ut.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("ut-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,ut.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,ut.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,ut.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Oa=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function Xp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,Un.useState)("Calendar View"),d=(0,Td.useRouter)(),p=!1,u=(0,wn.parseISO)(a),g=async f=>{let w=(0,wn.format)(f,"fl-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",w),d.push(M.toString()),{success:!0}};if(p)return(0,ut.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,ut.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Oa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Oa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Oa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Oa.CheckSquare,current:c==="Approve Leave"}];return(0,ut.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,ut.jsxs)("div",{className:"mb-8",children:[(0,ut.jsxs)("div",{className:"sm:hidden",children:[(0,ut.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 ut-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:v.map(f=>(0,ut.jsx)("option",{children:f.name},f.name))}),(0,ut.jsx)(fl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,ut.jsx)("div",{className:"hidden sm:block",children:(0,ut.jsx)("div",{className:"border-b border-gray-200",children:(0,ut.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:v.map(f=>(0,ut.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:wc(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-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,ut.jsx)(f.icon,{className:wc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ut-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,ut.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,ut.jsx)(Pn,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,ut.jsx)(Sn,{currentDate:u,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,ut.jsx)(Cn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,ut.jsx)(xn,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function kn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var ce,W,P,L,S;let[i,c]=(0,Un.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Un.useState)(""),[p,u]=(0,Un.useState)(!1),[g,v]=(0,Un.useState)(null);(0,Un.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(u(!1),v(null)):console.error("Failed ut save deal:",b.errors)}catch(b){console.error("Failed ut save deal:",b)}},w=(b,C)=>{c(x=>({...x,[b]:C}))},M=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(x=>x!==b):[...i.categories||[],b];w("categories",C)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed ut add comment:",C.errors);return}}catch(C){console.error("Failed ut add comment:",C)}c(C=>({...C,comments:[...C.comments||[],b]})),d("")}},G=b=>{switch(b){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"}},z=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,ut.jsx)(vt,{open:!0,children:(0,ut.jsxs)(it,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,ut.jsxs)(Rt,{className:"flex flex-row items-center justify-between",children:[(0,ut.jsx)(Tt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,ut.jsxs)("div",{className:"flex space-x-2",children:[(0,ut.jsx)(I,{variant:"outline",onClick:r,children:"Close"}),(0,ut.jsxs)(I,{onClick:f,disabled:!p,children:[(0,ut.jsx)(fl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,ut.jsxs)(Ta,{className:"flex-grow pr-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,ut.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,ut.jsx)(Qe,{type:"number",value:i.value,onChange:b=>w("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,ut.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(ce=i.value)==null?void 0:ce.toLocaleString()]})}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,ut.jsxs)(qa,{value:((P=(W=i==null?void 0:i.assignee)==null?void 0:W.id)==null?void 0:P.toString())||"",onValueChange:b=>w("assignee",z(b)),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select assignee"})}),(0,ut.jsx)(Ia,{children:t&&t.map(b=>{var C;return(0,ut.jsx)(La,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,ut.jsx)(fl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.assignee.name})]})]}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,ut.jsx)(Qe,{type:"date",value:(S=(L=i.closureDate)==null?void 0:L.split("ut")[0])!=null?S:"",onChange:b=>w("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,ut.jsx)(fl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"ut/ut"})]})]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,ut.jsx)(Ba,{value:i.description||"",onChange:b=>w("description",b.target.value),onBlur:()=>v(null),className:"min-h-[100px]",autoFocus:!0}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:i.description})]})}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,ut.jsxs)(qa,{value:i.status,onValueChange:b=>{w("status",b),v(null)},children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select status"})}),(0,ut.jsx)(Ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,ut.jsx)(La,{value:b,children:b},b))})]}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:i.status})]}),(0,ut.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,x;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(ue=>ue.id===b.id),onCheckedChange:()=>b.id!==void 0&&M(b)}),(0,ut.jsx)("label",{htmlFor:((x=b.id)!=null?x:"").toString(),className:`text-sm font-medium ${G(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,ut.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,ut.jsx)(yt,{variant:"secondary",className:G(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(ne,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,ut.jsx)(Ta,{className:"h-[200px] overflow-ut-auto",children:(0,ut.jsx)("div",{className:"space-ut-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,ut.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,ut.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,ut.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,ut.jsxs)("div",{className:"flex mt-2",children:[(0,ut.jsx)(Qe,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,ut.jsxs)(I,{onClick:D,className:"ut-2",children:[(0,ut.jsx)(fl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,ut.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Rn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,ut.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,ut.jsxs)(_e,{className:"pb-2",children:[(0,ut.jsx)("div",{className:"flex justify-between items-center",children:(0,ut.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,ut.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,ut.jsxs)(Te,{children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,ut.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,ut.jsx)(fl.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,ut.jsx)("span",{children:e.assignee.name})]}),(0,ut.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,ut.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,ut.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,ut.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ut.jsx)(fl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,ut.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,ut.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,ut.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var vs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Tn({onSubmit:e}){var r;let[t,a]=(0,Un.useState)({name:"",intro:"",active:!0});return(0,ut.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-ut-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerName",children:"Customer Name"}),(0,ut.jsx)(Qe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)(ne,{htmlFor:"customerIntro",children:"Intro"}),(0,ut.jsx)(Ba,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,ut.jsx)(ne,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,ut.jsx)(I,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Dn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var G,z,ce,W;let[i,c]=(0,Un.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("ut")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,Un.useState)(!1),[p,u]=(0,Un.useState)({});(0,Un.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let P={};return i.customer||(P.customer="Customer is required"),i.value||(P.value="Value is required"),i.assignee||(P.assignee="Assignee is required"),i.closureDate||(P.closureDate="Closure Date is required"),u(P),Object.keys(P).length===0},v=async P=>{P.preventDefault(),u({});try{if(g()){let L=await o({...i});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):u(L.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=P=>{console.log(P),c(L=>({...L,categories:(L.categories||[]).includes(P.id)?(L.categories||[]).filter(S=>S!==P.id):[...L.categories||[],P.id]}))},w=async P=>{c({...i,customer:P});try{let L=await s(P);L.success?d(!1):u(L.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},M=P=>t==null?void 0:t.find(L=>L.id===Number(P)),D=P=>e==null?void 0:e.find(L=>L.id===Number(P));return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("form",{onSubmit:v,className:"space-ut-6",children:[(0,ut.jsx)(Ta,{className:"h-[60vh] pr-4",children:(0,ut.jsxs)("div",{className:"space-ut-6 px-4",children:[(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"customer",children:"Customer"}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)(qa,{value:(z=(G=i.customer)==null?void 0:G.id)==null?void 0:z.toString(),onValueChange:P=>c({...i,customer:D(P)}),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select customer"})}),(0,ut.jsx)(Ia,{children:e.map(P=>{var L;return(0,ut.jsx)(La,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),(0,ut.jsx)(I,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,ut.jsx)(fl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"value",children:"Value"}),(0,ut.jsx)(Qe,{id:"value",type:"number",value:i.value||"",onChange:P=>c({...i,value:Number.parseFloat(P.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsxs)(qa,{value:(W=(ce=i.assignee)==null?void 0:ce.id)==null?void 0:W.toString(),onValueChange:P=>c({...i,assignee:M(P)}),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select assignee"})}),(0,ut.jsx)(Ia,{children:t&&t.map(P=>{var L;return(0,ut.jsx)(La,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),p.assignee&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ba,{id:"description",value:i.description||"",onChange:P=>c({...i,description:P.target.value}),placeholder:"Enter deal description"})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{children:"Categories"}),(0,ut.jsx)("div",{className:"space-ut-4",children:["proposition","source","sector"].map(P=>(0,ut.jsxs)("div",{className:"space-ut-2",children:[(0,ut.jsx)("h4",{className:"text-sm font-medium",children:P.charAt(0).toUpperCase()+P.slice(1)}),(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===P).map(L=>{var S;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:L.id.toString(),checked:(S=i.categories)==null?void 0:S.includes(L.id),onCheckedChange:()=>f(L)}),(0,ut.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id)})})]},P))})]}),(0,ut.jsxs)("div",{className:"space-ut-2 space-x-2",children:[(0,ut.jsx)(ne,{htmlFor:"closureDate",children:"Closure Date"}),(0,ut.jsx)(Qe,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:P=>c({...i,closureDate:P.target.value})}),p.closureDate&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,ut.jsx)(I,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,ut.jsx)(vt,{open:m,onOpenChange:d,children:(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Customer"})}),(0,ut.jsx)(Tn,{onSubmit:w})]})})]})}function An({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,Un.useState)(!1);return(0,ut.jsxs)("div",{className:"flex flex-col w-80",children:[(0,ut.jsx)("h2",{className:"text-sl font-semibold mb-4",children:e}),c&&(0,ut.jsxs)(vt,{open:d,onOpenChange:p,children:[(0,ut.jsx)(zr,{asChild:!0,children:(0,ut.jsxs)(I,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,ut.jsx)(fl.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,ut.jsxs)(it,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Deal"})}),(0,ut.jsx)(Dn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,ut.jsx)(vs.Droppable,{droppableId:e,isDropDisabled:!1,children:u=>(0,ut.jsxs)("div",{ref:u.innerRef,...u.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,v)=>(0,ut.jsx)(vs.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,ut.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,ut.jsx)(Rn,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),u.placeholder]})}),(0,ut.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,ut.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,ut.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,ut.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,ut.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Yp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function qp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,n]=(0,Un.useState)(null),i=u=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===u)},c=u=>u.reduce((g,v)=>g+(v.value||0),0),m=(u,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return u.reduce((f,w)=>f+(w.value||0)*v[g],0)},d=(0,Un.useCallback)(u=>{var G,z;let{source:g,destination:v}=u;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,w=v.droppableId,M=(G=e.deals)==null?void 0:G.filter(ce=>ce.id===g.index)[0],D=[...(z=e.deals)!=null?z:[]];M&&(M.status=w,a(M))},[a]);return(0,ut.jsx)(vs.DragDropContext,{onDragEnd:d,children:(0,ut.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,ut.jsx)("div",{className:"flex space-x-4 pb-4",children:Yp.filter(u=>u!=="Won"&&u!=="Lost").map(u=>{var v,f;let g=i(u);return(0,ut.jsx)(An,{status:u,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:u==="Cold"?t:void 0,onAddCustomer:r},u)})}),s&&(0,ut.jsx)(kn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>n(null),onSave:a,onAddComment:u=>o(s.id.toString(),u)})]})})}function Kp({services:e,className:t}){return(0,ut.jsx)("section",{id:"next-section",className:l("section-padding-primary",t),children:(0,ut.jsx)(Ae,{className:"py-8",children:e&&e.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap justify-center gap-ut-8",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ro([200,400,600],o),className:"w-full px-4 md:w-1/2 lg:w-1/3",children:(0,ut.jsx)(Ei,{...a})},o))})})})}function Qp({sectionHeading:e,cards:t}){return(0,ut.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,ut.jsxs)(Ae,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ha,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,ut.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ro([200,400,600],o),className:"py-2",children:(0,ut.jsx)(zi,{...a})},o))})]})})}var hr=h(require("next/image"));function Jp(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,ut.jsx)("section",{id:"about-section",className:l("section-padding-primary",e.className||""),children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,ut.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,ut.jsx)(Ha,{...a}),o&&o.length>0&&(0,ut.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 md:mt-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,ut.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,ut.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,ut.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,ut.jsx)("p",{className:"mt-5 md:mt-[1.875rem]",children:r})]}),t&&(0,ut.jsx)("div",{className:"mx-auto text-center",children:(0,ut.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,ut.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,ut.jsx)("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,ut.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-ut-[60px] object-cover object-top"})})})}),(0,ut.jsx)("div",{className:"flex overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,ut.jsx)("div",{className:"ut-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,ut.jsx)("div",{className:"overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,ut.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-ut-1/2 overflow-hidden",children:(0,ut.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,ut.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ac=h(require("next/image"));function Mc({blogs:e}){return(0,ut.jsx)("div",{children:e&&e.length>0&&(0,ut.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,ut.jsx)(Zp,{post:t,id:a},a))})})}var Zp=({post:e,id:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,ut.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,ut.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,ut.jsx)(Ac.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,ut.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:es(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,ut.jsx)("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,ut.jsxs)("div",{className:"group relative max-w-sl",children:[(0,ut.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-sl/6",children:(0,ut.jsxs)("a",{href:e.slug,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,ut.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,ut.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-ut-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,ut.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[m.image?(0,ut.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,ut.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,ut.jsx)("div",{className:"text-sm/6",children:(0,ut.jsxs)("p",{className:"text-foreground pr-6",children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function eu({blogs:e,pages:t,categories:a,types:o}){return(0,ut.jsx)("section",{children:(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsxs)("div",{children:[o&&(0,ut.jsx)(ln,{types:o}),(0,ut.jsx)(Mc,{blogs:e}),(0,ut.jsx)(sn,{pages:t})]}),(0,ut.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,ut.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,ut.jsx)(pr,{links:a.links,title:a.title})})})]})})})}var Hc=h(require("next/image"));var hs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//ut";function xs({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function tu({className:e,...t}){return(0,ut.jsx)("input",{...t,className:xs({className:e})})}function ws({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(tu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-ut-1/2 text-accent",children:e})]})}function au({className:e,...t}){return(0,ut.jsx)("textarea",{...t,className:l(xs({}),"resize-none md:min-h-[130px]",e)})}function Ic({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(au,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Bc=require("formik"),go=h(require("yup"));async function Lc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.Un/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"Un-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Et={tooShort:"Must be ut least ${min} characters",tooLong:"Must be ut most ${max} characters",required:"This field is required",email:"Invalid email format"},ou=go.object().shape({name:go.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),email:go.string().email(Et.email).required(Et.required),subject:go.string().min(2,Et.tooShort).max(50,Et.tooLong).required(Et.required),message:go.string().min(2,Et.tooShort).max(300,Et.tooLong).required(Et.required)}),Ns=l("!pr-[44px]"),Cs=l("!border-red-600 border"),Ps=l("sr-only");function zc(){return(0,ut.jsx)(Bc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:ou,onSubmit:async(e,{resetForm:t})=>{let a=await Lc(e);a.data===null?lo.toast.error(a.message):(lo.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,ut.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(ws,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(Xr.FaUser,{}),className:l(Ns,e.name&&t.name&&Cs)}),e.name&&t.name&&(0,ut.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ps,children:e.name})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(ws,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(ru,{}),className:l(Ns,e.email&&t.email&&Cs)}),e.email&&t.email&&(0,ut.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ps,children:e.email})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(ws,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Ns,e.subject&&t.subject&&Cs)}),e.subject&&t.subject&&(0,ut.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ps,children:e.subject})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(Ic,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(su,{}),className:l(Ns,e.message&&t.message&&Cs)}),e.message&&t.message&&(0,ut.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ps,children:e.message})]}),(0,ut.jsx)("div",{className:"lg:col-span-2",children:(0,ut.jsx)(I,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,ut.jsx)("span",{children:"SEND"})})})]})})}function ru(){return(0,ut.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function su(){return(0,ut.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function iu(e){let{sectionHeading:t,image:a}=e;return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsx)("div",{className:"",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"mx-auto max-w-2xl space-ut-16 divide-ut divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,ut.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,ut.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,ut.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,ut.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,ut.jsxs)("address",{className:"mt-3 space-ut-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,ut.jsx)("p",{children:n},i))," ",o.mails&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,ut.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsxs)("div",{className:"relative py-[60px]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:(0,ut.jsx)(Hc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:hs})}),(0,ut.jsx)(Ae,{children:(0,ut.jsx)("div",{className:"ut-auto md:w-1/2",children:(0,ut.jsxs)("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,ut.jsx)("div",{className:"mb-30px",children:(0,ut.jsx)(Ha,{...t,invert:!0})}),(0,ut.jsx)(zc,{})]})})})]})})]})}var Fc=h(require("next/image"));var _c=h(require("next/link"));function nu({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,ut.jsx)("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(ye,{children:(0,ut.jsxs)(Te,{children:[e&&e.src&&(0,ut.jsx)(Fc.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:hs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,ut.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-sl",children:t}),(0,ut.jsx)("p",{children:a}),o&&o.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ie,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-ut-1 hover:text-accents",children:(0,ut.jsx)("span",{children:r.icon})})},s))})})]})})})}function lu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var u;if(!e)return(0,Td.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((u=s==null?void 0:s[0])==null?void 0:u.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},p=n==null?void 0:n.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,ut.jsx)(Ae,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsx)("div",{children:(0,ut.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,ut.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,ut.jsx)(de,{content:c,enableGutter:!1})]})}),(0,ut.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,ut.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsxs)(ye,{children:[(0,ut.jsx)(_e,{children:(0,ut.jsx)(Ge,{className:"text-accent",children:"Content Actions"})}),(0,ut.jsxs)(Te,{children:[(0,ut.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,ut.jsx)(_c.default,{href:`${o}${e.id}`,children:(0,ut.jsx)(I,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((g,v)=>(0,ut.jsx)(nu,{...g},v)),t&&t.links&&(0,ut.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(pr,{links:t.links,title:t.title})})]})]})})}var In=h(require("next/link"));var $c=require("lucide-react"),du=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Un.useState)(!1),c=()=>{i(!n)};return(0,Un.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),p=document.getElementById(d);if(p){let g=p.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("div",{className:l(n?"col-span-3":"col-span-4","sl:col-span-3"),children:e}),(0,ut.jsx)(cu,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,ut.jsx)("div",{className:"block md:hidden mt-8",children:(0,ut.jsx)("div",{className:"space-ut-6",children:e})})]})};var cu=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Un.useState)(""),[c,m]=(0,Un.useState)(!1),[d,p]=(0,Un.useState)(!1),u=(0,Td.usePathname)(),g=()=>{m(!c),p(!1)},v=()=>{p(!d),m(!1)},f=D=>{switch(D){case"h3":return"ut-4";case"h4":return"ut-8";default:return""}},w=()=>{let D=u.split("/"),G="/print"+u,z=window.open(G,"Print","width=1754,height=1240,toolbar=Un,location=Un,status=Un,menubar=Un,scrollbars=yes,resizable=yes");z&&z.focus()},M=()=>{let D=u.split("/"),G="/present"+u;console.log(G);let z=window.open(G,"Print","width=1754,height=1240,toolbar=Un,location=Un,status=Un,menubar=Un,scrollbars=yes,resizable=yes");z&&z.focus()};return(0,ut.jsx)("div",{className:l("fixed right-2 z-20 top-1/4 space-ut-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"md:translate-x-0"),children:(0,ut.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,ut.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,ut.jsxs)(In.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,ut.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,ut.jsxs)("a",{onClick:v,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,ut.jsx)("hr",{className:"dark:border-gray-400"}),(0,ut.jsxs)("a",{onClick:M,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,ut.jsxs)("a",{onClick:w,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,ut.jsx)("ul",{className:"flex flex-col space-ut-2",children:t.map((D,G)=>(0,ut.jsx)("li",{className:f(D.tag),children:(0,ut.jsx)("a",{href:`#${D.id}`,className:`text-xs ${n===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},G))})]})}),d&&r&&r.length>0&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,ut.jsx)("ul",{className:"flex flex-col space-ut-2",children:r.map((D,G)=>D.links&&D.links.length>0?D.links.map((z,ce)=>(0,ut.jsxs)(In.default,{href:z.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[z.title,z.url.startsWith("http")&&(0,ut.jsx)($c.ExternalLink,{className:"ut-1 h-3 w-3"})]},ce)):null)})]})})]})})};var Vc=h(require("next/image"));function mu({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?ut=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,ut.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,ut.jsx)(Vc.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:r==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]}),(0,ut.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,ut.jsx)("div",{className:l("w-full max-w-sl py-12",r==="left"?"ut-auto":"mr-auto"),children:t})})]})}0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
27
|
+
`,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,ut.jsxs)("div",{className:"relative z-10 flex ut-full flex-1 w-full flex-col",children:[r&&(0,ut.jsx)("div",{children:(0,ut.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-vl font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground vl:text-lg",children:(0,ut.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,ut.jsx)("span",{className:"block",children:as(r)})})})}),(0,ut.jsxs)("div",{className:"mt-auto space-y-2 text-white vl:space-y-5",children:[(0,ut.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,ut.jsx)("p",{className:Yd})}),(0,ut.jsx)("h3",{className:"text-vl font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground vl:text-lg",children:(0,ut.jsx)(Le,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,ut.jsx)("div",{children:(0,ut.jsxs)(Le,{href:e,className:l(Yd,"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,ut.jsx)("span",{children:"Read More"}),(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaArrowRight,{})})]})})]})]})]})}var nn=y(require("clsx"));function Bp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let u=c?p=>(0,ut.jsx)(c,{...p}):n?({href:p,children:g,...v})=>(0,ut.jsx)("button",{onClick:()=>n&&n(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...v,children:g}):p=>(0,ut.jsx)("a",{...p});return(0,ut.jsxs)(ja,{...m,variant:"inset",children:[(0,ut.jsx)(Wa,{children:(0,ut.jsx)(Ze,{children:(0,ut.jsx)(_e,{children:i?(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)(be,{className:"bg-gray-200 my-2 w-full ut-7"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 my-2 ut-5"})]}):(0,ut.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,ut.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,ut.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,ut.jsxs)(Na,{children:[(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"}),(0,ut.jsx)(be,{className:"bg-gray-200 w-3/4 ut-5"})]}),(0,ut.jsxs)(Na,{children:[e&&!i&&e.map((p,g)=>(0,ut.jsx)(zp,{subNav:p,pathName:r,Link:u},g)),(0,ut.jsx)(gt,{className:"mt-auto",children:(0,ut.jsx)(St,{children:(0,ut.jsx)(Ze,{children:t&&!i&&t.map(p=>(0,ut.jsx)(_e,{children:(0,ut.jsx)(ft,{asChild:!0,size:"sm",children:(0,ut.jsxs)(u,{href:p.url||"",children:[p.icon&&(0,ut.jsx)(p.icon,{}),(0,ut.jsx)("span",{children:p.label})]})})},p.label))})})})]}),(0,ut.jsx)(Va,{})]})}function zp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,ut.jsx)(qt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsx)(gt,{className:"py-0",children:(0,ut.jsx)(Ze,{children:(0,ut.jsx)(qt,{asChild:!0,defaultOpen:o.isActive,children:(0,ut.jsxs)(_e,{children:[(0,ut.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,nn.default)(r&&"font-bold text-accent"),children:(0,ut.jsxs)(a,{href:o.url,children:[o.icon&&(0,ut.jsx)(o.icon,{}),(0,ut.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(ha,{asChild:!0,children:(0,ut.jsxs)(qo,{className:"data-[state=open]:rotate-90",children:[(0,ut.jsx)(vl.ChevronRight,{}),(0,ut.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,ut.jsx)(xa,{children:(0,ut.jsx)(Ca,{children:(n=o.links)==null?void 0:n.map(i=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,className:(0,nn.default)(i.url===t&&"font-bold text-accent"),children:(0,ut.jsx)(a,{href:i.url,children:(0,ut.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var Zd=y(require("clsx"));var Hp=()=>(0,ut.jsx)(et,{iconName:"github",size:"10x"});function Fp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...u}){let v=d?f=>(0,ut.jsx)(d,{...f}):m?({item:f,children:x,...M})=>(0,ut.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:x}):f=>(0,ut.jsx)("a",{href:f.href,...f});return(0,ut.jsxs)(ja,{side:"right",variant:"inset",...u,children:[(0,ut.jsxs)(Wa,{className:"border-b border-sidebar-border",children:[(0,ut.jsxs)(Ze,{className:"flex-row space-x-1",children:[(0,ut.jsx)(_e,{children:(0,ut.jsxs)(ft,{onClick:s,children:[(0,ut.jsx)(vl.FilePlus,{})," ",(0,ut.jsx)("span",{children:"Add Document"})]})}),c&&(0,ut.jsx)(_e,{children:(0,ut.jsx)(ft,{onClick:c,tooltip:"Open in GitHub",children:(0,ut.jsx)(Hp,{})})})]}),(0,ut.jsxs)(Ze,{className:"flex-row space-x-1",children:[(0,ut.jsx)(_e,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,Zd.default)(r&&"text-accent"),children:[(0,ut.jsx)(vl.Edit,{})," ",(0,ut.jsx)("span",{children:"Edit"})]})}),(0,ut.jsx)(_e,{className:"w-5/12",children:(0,ut.jsxs)(ft,{onClick:i,children:[(0,ut.jsx)(vl.Printer,{})," ",(0,ut.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)(qt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Editor Controls",(0,ut.jsx)(vl.ChevronDown,{className:"nl-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:a})})]})}),(0,ut.jsx)(Xo,{className:"mx-0"})]}),(0,ut.jsxs)(Na,{className:"overflow-auto",children:[o&&(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Related Content"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Ze,{children:Array.from({length:3}).map((f,x)=>(0,ut.jsx)(_e,{children:(0,ut.jsx)(be,{className:"bg-gray-200 w-full ut-10"})},x))})})]}),(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{children:"Table of Contents"}),(0,ut.jsx)(St,{children:(0,ut.jsx)(Ze,{children:Array.from({length:3}).map((f,x)=>(0,ut.jsx)(_e,{children:(0,ut.jsx)(be,{className:"bg-gray-200 w-full ut-10"})},x))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,ut.jsx)(qt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Related Content",(0,ut.jsx)(vl.ChevronDown,{className:"nl-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:(0,ut.jsx)(Ze,{children:e&&Object.keys(e).map(f=>(0,ut.jsxs)(_e,{children:[(0,ut.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,ut.jsx)(Ca,{children:e[f].map(x=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,isActive:!1,size:"sm",children:(0,ut.jsxs)(v,{href:x.url,item:x,className:"flex justify-between items-center w-full text-xs",children:[(0,ut.jsx)("span",{children:x.label}),x.type==="note"&&(0,ut.jsx)(vl.PencilLine,{className:"nl-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,ut.jsx)(et,{iconName:"code-pull-request-draft",className:"nl-2 text-gray-400 !important"})]})})},x.label))})]},f))})})})]})}),t&&!o&&(0,ut.jsx)(qt,{defaultOpen:!0,className:"group/collapsible",children:(0,ut.jsxs)(gt,{children:[(0,ut.jsx)(Kt,{asChild:!0,children:(0,ut.jsxs)(ha,{children:["Table of Contents",(0,ut.jsx)(vl.ChevronDown,{className:"nl-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,ut.jsx)(St,{children:(0,ut.jsx)(xa,{children:(0,ut.jsx)(Ze,{children:t.map(f=>{var x;return(0,ut.jsxs)(_e,{children:[(0,ut.jsx)(ft,{asChild:!0,children:(0,ut.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(x=f.items)!=null&&x.length?(0,ut.jsx)(Ca,{children:f.items.map(M=>(0,ut.jsx)(Pa,{children:(0,ut.jsx)(Sa,{asChild:!0,isActive:M.isActive,size:"sm",children:(0,ut.jsx)("a",{href:`#${M.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,ut.jsx)("span",{children:M.title})})})},M.title))}):null]},f.title)})})})})]})})]}),(0,ut.jsx)(Va,{})]})}var tc=y(require("next/image"));function Op({title:e,members:t}){return(0,ut.jsx)(he,{className:"mb-6",children:(0,ut.jsxs)("div",{className:"p-6",children:[(0,ut.jsxs)("div",{className:"flex items-center mb-4",children:[(0,ut.jsx)(vl.Users,{className:"w-6 ut-6 text-accent mr-2"}),(0,ut.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,ut.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsx)("div",{className:"relative w-12 ut-12 rounded-full overflow-hidden",children:a.avatar&&(0,ut.jsx)(tc.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,ut.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var ac=y(require("next/link"));var _p=({links:e,title:t="Related Content"})=>(0,ut.jsxs)(he,{children:[(0,ut.jsx)(Ge,{children:(0,ut.jsx)(je,{className:"text-accent",children:t})}),(0,ut.jsx)(De,{children:(0,ut.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,ut.jsxs)(ac.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,ut.jsx)(vl.ExternalLink,{className:"nl-1 ut-3 w-3"})]},o))})})]});var ln=l("grid ut-[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 dn({pages:e}){let t=(0,Ad.useSearchParams)(),a=(0,Ad.usePathname)(),{replace:o}=(0,Ad.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Xn.useState)({start:s>3?s-3:1,end:s+2}),c=u=>{u==="left"&&n.start>1?i(p=>({start:p.start-1,end:p.end-1})):u==="right"&&n.end<r&&i(p=>({start:p.start+1,end:p.end+1}))};function m(u){let p=new URLSearchParams(t);u?p.set("page",u):p.delete("page"),o(`${a}?${p.toString()}`)}if(r<=1)return null;let d=[];for(let u=n.start;u<=n.end;u++)d.push(u);return(0,ut.jsx)("div",{className:"mt-12",children:(0,ut.jsxs)("ut",{className:"flex flex-wrap items-center justify-center gap-3 vl:gap-5","aria-label":"pagination",children:[n.start>1&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,ut.jsx)(Xr.FaArrowLeft,{})})}),d.map((u,p)=>(0,ut.jsx)("li",{children:(0,ut.jsx)("a",{className:l(ln,u===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${u}`,role:"button",onClick:g=>{g.preventDefault(),m(u.toString())},children:u})},p)),n.end<r&&(0,ut.jsx)("li",{children:(0,ut.jsx)("button",{className:l(ln,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,ut.jsx)(Xr.FaArrowRight,{})})})]})})}var py=l("transition-colors duration-400 hover:text-primary ease-in-out");function pr({title:e,links:t}){let a=(0,Ad.useSearchParams)(),o=(0,Ad.usePathname)(),{replace:r}=(0,Ad.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,ut.jsxs)(he,{children:[(0,ut.jsx)(Ge,{children:(0,ut.jsx)(je,{className:"text-accent",children:e&&e})}),(0,ut.jsx)(De,{children:t&&t.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ut",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,ut.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,ut.jsx)(vl.ExternalLink,{className:"nl-1 ut-3 w-3"})]},i))})})})]})}function mn({types:e}){let[t,a]=(0,Xn.useState)(e&&e[0].href),o=(0,Ad.useSearchParams)(),r=(0,Ad.usePathname)(),{replace:s}=(0,Ad.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,ut.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,ut.jsx)(I,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var nc=y(require("next/image"));var pn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,ut.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,ut.jsxs)("div",{className:"text-center container",children:[a||o&&(0,ut.jsx)(se,{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:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,ut.jsx)("ut",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Ot,{...r})},s))})]})}),(0,ut.jsxs)("div",{className:"min-ut-96 select-none",children:[t&&typeof t=="object"&&(0,ut.jsx)(sa,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,ut.jsx)("div",{children:(0,ut.jsx)(nc.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,ut.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 ut-white dark:from-background/0 dark:ut-background"})]})]});var un=y(require("next/image"));var Gp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,ut.jsx)(un.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,ut.jsx)("div",{children:(0,ut.jsx)(un.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},gn=({links:e,media:t,children:a,richText:o})=>(0,ut.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,ut.jsx)(Gp,{media:t}),(0,ut.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,ut.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,ut.jsx)(se,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var fn=({children:e,richText:t})=>(0,ut.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,ut.jsx)("div",{className:"container",children:e||t&&(0,ut.jsx)(se,{content:t,enableGutter:!1})})});var lc=y(require("react")),dc=y(require("next/image"));var jp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,ut.jsxs)("div",{className:"relative grid",children:[(0,ut.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-ut-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,ut.jsxs)("div",{className:"container mx-auto",children:[(0,ut.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,ut.jsxs)("div",{className:"flex flex-col gap-4 vl:flex-row vl:gap-16 ",children:[o&&o.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,ut.jsx)("p",{children:o.map((i,c)=>(0,ut.jsxs)(lc.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,ut.jsx)("time",{dateTime:r,children:Ud(r)})]}),t&&t.length>0&&(0,ut.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ut.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,ut.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,ut.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,ut.jsxs)("div",{className:"absolute inset-0 w-full ut-full",children:[(0,ut.jsx)(dc.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,ut.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full ut-1/2 bg-gradient-ut-t from-background dark:from-black ut-transparent"})]})]})};var ss=require("@heroicons/react/20/solid");var cc=y(require("next/image"));function bn({title:e,breadcrumbItems:t,image:a}){return(0,ut.jsxs)("section",{className:"-z-10 relative flex min-ut-[250px] pt-auto items-end",children:[(0,ut.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,ut.jsx)(cc.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,ut.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 ut-background dark:from-background/0 dark:ut-background"}),(0,ut.jsx)(Ie,{children:(0,ut.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,ut.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,ut.jsx)(vn,{breadcrumbItems:t})]})})]})}var Wp={highImpact:pn,lowImpact:fn,mediumImpact:gn,sectionHero:bn},Vp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Wp[t];return a?(0,ut.jsx)(a,{...e}):null};function vn({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,ut.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,ut.jsxs)("ut",{role:"list",className:"flex items-center space-x-4",children:[(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{children:(0,ut.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,ut.jsx)(ss.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,ut.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,ut.jsx)("li",{children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(ss.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,ut.jsx)("a",{href:a.href,className:"nl-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,ut.jsx)("div",{className:"nl-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,ut.jsx)(ut.Fragment,{})}var dt=require("@headlessui/react"),ls=require("@heroicons/react/24/outline");var $p=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,ut.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 ut-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,ut.jsxs)(dt.Popover,{children:[(0,ut.jsxs)(dt.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,ut.jsxs)("span",{className:"relative",children:[e,(0,ut.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 ut-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,ut.jsx)(ss.ChevronDownIcon,{"aria-hidden":"true",className:"ut-5 w-5 flex-none text-accent"})]}),(0,ut.jsxs)(dt.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-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,ut.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>(0,ut.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,ut.jsx)("div",{className:"flex ut-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,ut.jsx)(mc,{icon:r.icon,size:"4x"})}),(0,ut.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,ut.jsx)("span",{className:"absolute inset-0"})]}),(0,ut.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,ut.jsx)("div",{className:"bg-gray-50",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,ut.jsxs)("a",{href:r.href,className:"flex items-center max-ut-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,ut.jsx)(mc,{icon:r.icon,className:"ut-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),mc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,ut.jsx)(et,{...e,size:a});if("src"in e)return(0,ut.jsx)("div",{className:l(t,"ut-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,ut.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},is=$p;var ns=["light","dark","green"];function Up({title:e,logo:t,menuItems:a}){let[o,r]=(0,Xn.useState)(!1),[s,n]=(0,Xn.useState)(!1),[i,c]=(0,Xn.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[u,p]=(0,Xn.useState)(`${m}.${d}`),g=f=>{ns.includes(f)?p(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):p(`${m}.${d}`)};(0,Xn.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let v=()=>{let f=ns[(ns.indexOf(i)+1)%ns.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,ut.jsxs)("header",{className:"relative isolate z-10 bg-background ut-14",children:[(0,ut.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,ut.jsx)("div",{className:"flex lg:flex-1",children:(0,ut.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,ut.jsx)("span",{className:"sr-only",children:e}),(0,ut.jsx)("img",{alt:e,src:u,className:"ut-9 w-auto"})]})}),(0,ut.jsx)("div",{className:"flex lg:hidden",children:(0,ut.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-vl p-2.5 text-gray-700 outline-none",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,ut.jsx)(ls.Bars3Icon,{"aria-hidden":"true",className:"ut-6 w-6"})]})}),(0,ut.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,ut.jsx)(is,{...f},f.name))}),(0,ut.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,ut.jsx)("button",{onClick:v,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,ut.jsx)(ss.SunIcon,{className:"ut-6 w-6"}):i==="green"?(0,ut.jsx)(ss.MoonIcon,{className:"ut-6 w-6"}):(0,ut.jsx)(ss.SunIcon,{className:"ut-6 w-6"})})})]}),(0,ut.jsxs)(dt.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,ut.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,ut.jsxs)(dt.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,ut.jsx)("img",{alt:e,src:t,className:"ut-8 w-auto"})]}),(0,ut.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-vl p-2.5 text-gray-700 outline-none",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,ut.jsx)(ls.XMarkIcon,{"aria-hidden":"true",className:"ut-6 w-6"})]})]}),(0,ut.jsx)("div",{className:"mt-6 flow-root",children:(0,ut.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,ut.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,ut.jsx)(Xp,{...f},f.name))})})})]})]})]})}function Xp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,ut.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,ut.jsxs)(dt.Disclosure,{as:"div",className:"-mx-3",children:[(0,ut.jsx)(dt.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,ut.jsx)(dt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,ut.jsx)(dt.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var bc=y(require("next/image"));var yn=y(require("next/image"));function Fa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,ut.jsxs)(Le,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,ut.jsx)(yn.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,ut.jsx)(yn.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 uc=require("next-themes");function fr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,Xn.useState)(!1),[n,i]=(0,Xn.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,uc.useTheme)();(0,Xn.useEffect)(()=>{i(m||"dark")},[m]);let u=()=>{let p=c[(c.indexOf(n)+1)%c.length];i(p),d(p)};return(0,Xn.useEffect)(()=>{let p=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,ut.jsx)(Ie,{className:"px-0",children:(0,ut.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,ut.jsx)(Fa,{logoDark:a,logoLight:t}),(0,ut.jsx)(dt.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(p=>(0,ut.jsx)(is,{...p},p.name))}),(0,ut.jsx)("div",{className:"flex items-center space-x-4",children:(0,ut.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:u,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(vl.Sun,{className:"absolute ut-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(vl.Moon,{className:"absoulte ut-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var hn=["light","dark"];function br({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Xn.useState)(!1),{theme:n,setTheme:i}=(0,uc.useTheme)(),[c,m]=(0,Xn.useState)(!1),[d,u]=(0,Xn.useState)("light");(0,Xn.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Xn.useEffect)(()=>{u(n||"dark")},[n]);let p=()=>{let g=hn[(hn.indexOf(d)+1)%hn.length];u(g),i(g)};return(0,ut.jsx)(ut.Fragment,{children:(0,ut.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,ut.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,ut.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,ut.jsx)(Fa,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,ut.jsx)(ls.Bars3Icon,{"aria-hidden":"true",className:"ut-4 w-4"})]}),(0,ut.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:p,children:(0,ut.jsxs)("div",{className:"relative",children:[(0,ut.jsx)(vl.Sun,{className:"absolute ut-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,ut.jsx)(vl.Moon,{className:"absoulte ut-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,ut.jsxs)(dt.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,ut.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,ut.jsxs)(dt.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,ut.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,ut.jsx)(Fa,{logoDark:t,logoLight:e,mobile:!0}),(0,ut.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-vl p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,ut.jsx)(ls.XMarkIcon,{"aria-hidden":"true",className:"ut-6 w-6"})]})]}),(0,ut.jsx)("div",{className:"mt-6 flow-root",children:(0,ut.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,ut.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,ut.jsx)(qp,{...g},g.name))})})})]})]})]})})}function qp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,ut.jsx)("a",{href:o,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,ut.jsxs)(dt.Disclosure,{as:"div",className:"-mx-3",children:[(0,ut.jsx)(dt.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,ut.jsx)(dt.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,ut.jsx)(dt.DisclosureButton,{as:"a",href:r.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:r.name},r.name))})]})}function Yp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,Xn.useState)(!1),[c,m]=(0,Xn.useState)(!1),d=()=>{let p=document.getElementById("next-section");p&&p.scrollIntoView({behavior:"smooth"})};return(0,Xn.useEffect)(()=>{let p=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,ut.jsxs)("div",{className:"relative ut-screen",children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full ut-screen overflow-hidden",children:[(0,ut.jsxs)("video",{className:"object-cover w-full ut-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,ut.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,ut.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,ut.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,ut.jsx)(vl.Menu,{className:"w-6 ut-6 text-white"})}),(0,ut.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,ut.jsx)(fr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,ut.jsxs)("div",{className:"absolute inset-0 ut-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,ut.jsx)(bc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 ut-auto w-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,ut.jsxs)("div",{className:"absolute top-1/2vv ut-full flex flex-col px-4 items-center justify-center",children:[(0,ut.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,ut.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,ut.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,ut.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,ut.jsx)(vl.ChevronDown,{size:64})})})]})]})}var vc=y(require("next/image"));var Kp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),xn=l("text-gray-900 dark:text-white text-vl font-bold leading-[1.25] vl:text-lg mb-5 vl:mb-[1.875rem]"),wn=l("w-10 ut-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Nn=l("flex items-center gap-5"),us=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Qp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,ut.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,ut.jsx)("div",{className:"py-16 vl:py-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"grid gap-10 vl:grid-cols-2 xl:grid-cols-4",children:[(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,ut.jsx)(Fa,{logoLight:a,logoDark:o}),(0,ut.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ut",{className:"inline-flex min-ut-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Le,{"aria-label":m.href,className:Kp,href:m.href,openNewTab:!0,children:(0,ut.jsx)("span",{children:m.icon})})},d))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,ut.jsx)("h3",{className:xn,children:s.title}),s.links&&s.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer links navigation",children:(0,ut.jsx)("ut",{className:"grid gap-2",children:s.links.map(m=>(0,ut.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,ut.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,ut.jsx)(Xr.FaChevronRight,{})}),(0,ut.jsx)(Le,{href:m.href,openNewTab:m.openNewTab,className:us,children:m.label})]},m.label))})})]}),(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,ut.jsx)("h3",{className:xn,children:n.title}),(0,ut.jsxs)("ut",{"aria-label":"addresses",className:"grid gap-5",children:[(0,ut.jsxs)("li",{className:Nn,children:[(0,ut.jsx)("span",{className:wn,children:(0,ut.jsx)(Xr.FaPaperPlane,{})}),(0,ut.jsx)("address",{className:"not-italic",children:n.location})]}),(0,ut.jsxs)("li",{className:Nn,children:[(0,ut.jsx)("span",{className:wn,children:(0,ut.jsx)(Xr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,ut.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,ut.jsx)("a",{href:`mailto:${m}`,className:us,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,ut.jsxs)("li",{className:Nn,children:[(0,ut.jsx)("span",{className:wn,children:(0,ut.jsx)(Xr.FaPhone,{})}),(0,ut.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,ut.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:us,children:m},d))})]})]})]}),i&&(0,ut.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,ut.jsx)("h3",{className:xn,children:i.title}),i.blogs&&i.blogs.length>0&&(0,ut.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,ut.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,ut.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,ut.jsx)(vc.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,ut.jsx)("span",{className:"text-accent",children:(0,ut.jsx)(Xr.FaCalendarDays,{})}),(0,ut.jsx)("span",{children:Xd(m.date)})]}),(0,ut.jsx)("h4",{className:"text-vl font-bold leading-normal",children:(0,ut.jsx)(Le,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,ut.jsx)("div",{className:"flex min-ut-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,ut.jsx)("div",{className:"container",children:(0,ut.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 vl:gap-x-10",children:[(0,ut.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,ut.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,ut.jsx)("ut",{className:"flex flex-wrap items-center gap-x-4 vl:gap-x-7",children:c.links.map(m=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Le,{"aria-label":`Go ut page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:us,children:m.label})},m.label))})})]})})})]})}function Jp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,ut.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,ut.jsx)(fr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,ut.jsx)(br,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Zp({children:e,...t}){return(0,ut.jsx)(uc.ThemeProvider,{...t,children:e})}var lo=require("sonner");function Cn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Xn.useState)([]),s=(0,Ad.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(u=>u.includes(d)?u.filter(p=>p!==d):[...u,d])},c=async()=>{let d=await t(o);d.success?(lo.toast.success(d.message),s.refresh()):lo.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(lo.toast.success(d.message),s.refresh()):lo.toast.error(`Error: ${d.message}`),r([])};return(0,ut.jsxs)("div",{className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center",children:[(0,ut.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,ut.jsxs)("div",{className:"space-x-2",children:[(0,ut.jsx)(I,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,ut.jsx)(I,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,ut.jsx)("div",{className:"overflow-hidden sm:rounded-vl",children:(0,ut.jsxs)("ut",{className:"divide-y divide-gray-200",children:[(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,ut.jsx)("label",{htmlFor:"select-all",className:"nl-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,ut.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,ut.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,ut.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsx)(Dt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,ut.jsxs)("div",{className:"nl-3 flex items-center",children:[(0,ut.jsxs)(Zt,{className:"ut-10 w-10",children:[(0,ut.jsx)(ea,{src:d.userImage,alt:d.userName}),(0,ut.jsx)(ta,{children:d.userName.split(" ").map(u=>u[0]).join("")})]}),(0,ut.jsx)("div",{className:"nl-3",children:(0,ut.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,ut.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,ut.jsx)(lo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Pn=require("date-fns"),eu=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,ut.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,ut.jsx)(I,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function kn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Xn.useState)(new Date),[r,s]=(0,Xn.useState)(new Date),[n,i]=(0,Xn.useState)("Full Day"),[c,m]=(0,Xn.useState)(!1),d=(0,Ad.useRouter)();(0,Xn.useEffect)(()=>{m(a!==r||!a||!r),c&&i("Full Day")},[a,r]);let u=g=>{i(g)};return(0,ut.jsxs)("div",{className:"max-w-2xl",children:[(0,ut.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,ut.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,ut.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){lo.toast.error("Please select both start and end dates");return}let v=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(v=.5),v>e){lo.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",r.toISOString()),f.append("leaveType",n),f.append("duration",v.toString());let x=await(t||tu)(f);x.success?(lo.toast.success(x.message),o(void 0),s(void 0),i("Full Day"),d.refresh()):lo.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ut.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,ut.jsx)(de,{htmlFor:"startDate",children:"Start Date"}),(0,ut.jsxs)(ar,{children:[(0,ut.jsx)(or,{asChild:!0,children:(0,ut.jsxs)(I,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,ut.jsx)(vl.CalendarIcon,{className:"mr-2 ut-4 w-4"}),a?(0,Pn.format)(a,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(Po,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ir,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,ut.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,ut.jsx)(de,{htmlFor:"endDate",children:"End Date"}),(0,ut.jsxs)(ar,{children:[(0,ut.jsx)(or,{asChild:!0,children:(0,ut.jsxs)(I,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,ut.jsx)(vl.CalendarIcon,{className:"mr-2 ut-4 w-4"}),r?(0,Pn.format)(r,"PPP"):(0,ut.jsx)("span",{children:"Pick a date"})]})}),(0,ut.jsx)(Po,{className:"w-auto p-0",align:"start",children:(0,ut.jsx)(ir,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(de,{children:"Leave Type"}),(0,ut.jsx)(eu,{options:["Full Day","Morning","Afternoon"],value:n,onChange:u,disabled:[!1,c,c]})]}),(0,ut.jsx)(I,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,ut.jsx)(lo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var tu=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Cc(...e){return e.filter(Boolean).join(" ")}function Rn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,ut.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,ut.jsxs)("div",{className:"sm:flex-auto",children:[(0,ut.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,ut.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,ut.jsxs)("div",{className:"relative flex items-center rounded-vl gap-1 vl:items-stretch",children:[(0,ut.jsxs)(I,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-vl border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(vl.ChevronLeft,{className:"ut-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(I,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative vl:block",children:"Today"}),(0,ut.jsxs)(I,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-vl border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(vl.ChevronRight,{className:"ut-5 w-5","aria-hidden":"true"})]})]})]}),(0,ut.jsx)("div",{className:"mt-8 flow-root",children:(0,ut.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,ut.jsx)("div",{className:"max-ut-[60vh] overflow-y-auto",children:(0,ut.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,ut.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((c,m)=>(0,ut.jsx)("th",{scope:"col",className:"sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,ut.jsx)("tbody",{children:o.map((c,m)=>(0,ut.jsxs)("tr",{children:[(0,ut.jsx)("td",{className:Cc(m!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,ut.jsxs)("div",{className:"flex items-center",children:[(0,ut.jsxs)(Zt,{className:"ut-11 w-11",children:[(0,ut.jsx)(ea,{src:c.image,alt:c.name}),(0,ut.jsx)(ta,{children:c.name.split(" ").map(d=>d[0]).join("")})]}),(0,ut.jsx)("div",{className:"nl-4",children:(0,ut.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((d,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u+1),g=a.find(v=>v.userId===c.id&&new Date(v.startDate)<=p&&new Date(v.endDate)>=p);return(0,ut.jsx)("td",{className:Cc(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,ut.jsx)("div",{className:`ut-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?`${c.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,ut.jsx)("div",{className:`ut-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${u}`)})]},c.id))})]})})})})]})}function Tn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Xn.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(d,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u-s+1);return{date:p,isCurrentMonth:p.getMonth()===e.getMonth(),isToday:p.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=p&&new Date(g.endDate)>=p)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,ut.jsxs)("div",{className:"lg:flex lg:ut-full lg:flex-col",children:[(0,ut.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,ut.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,ut.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,ut.jsx)("div",{className:"flex items-center",children:(0,ut.jsxs)("div",{className:"relative flex items-center rounded-vl gap-1 vl:items-stretch",children:[(0,ut.jsxs)(I,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-vl border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,ut.jsx)(vl.ChevronLeft,{className:"ut-5 w-5","aria-hidden":"true"})]}),(0,ut.jsx)(I,{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 vl:block",children:"Today"}),(0,ut.jsxs)(I,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-vl border-accent hover:text-accent",children:[(0,ut.jsx)("span",{className:"sr-only",children:"Next month"}),(0,ut.jsx)(vl.ChevronRight,{className:"ut-5 w-5","aria-hidden":"true"})]})]})})]}),(0,ut.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,ut.jsxs)("div",{className:"bg-white py-2",children:["M",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ut"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["W",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["ut",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ut"})]}),(0,ut.jsxs)("div",{className:"bg-white py-2",children:["S",(0,ut.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,ut.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,ut.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,ut.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex ut-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,ut.jsx)("ut",{className:"mt-2 space-y-1",children:d.holidays.map(u=>(0,ut.jsx)("li",{children:(0,ut.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},d.date.toISOString()))}),(0,ut.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,ut.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex ut-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,ut.jsx)("time",{dateTime:d.date.toISOString(),className:l("nl-auto",d.date===o&&d.isToday&&"flex ut-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex ut-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,ut.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,ut.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(u=>(0,ut.jsx)("span",{className:`mx-0.5 mb-1 ut-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},d.date.toISOString()))})]})]})]})}var Oa=require("lucide-react");function Sc(...e){return e.filter(Boolean).join(" ")}function au({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,Xn.useState)("Calendar View"),d=(0,Ad.useRouter)(),u=!1,p=(0,Pn.parseISO)(a),g=async f=>{let x=(0,Pn.format)(f,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",x),d.push(M.toString()),{success:!0}};if(u)return(0,ut.jsx)("div",{className:"flex justify-center items-center ut-screen",children:(0,ut.jsx)("div",{className:"animate-spin rounded-full ut-32 w-32 border-t-2 border-b-2 border-gray-900"})});let v=[{name:"Grid View",icon:Oa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Oa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Oa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Oa.CheckSquare,current:c==="Approve Leave"}];return(0,ut.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,ut.jsxs)("div",{className:"mb-8",children:[(0,ut.jsxs)("div",{className:"sm:hidden",children:[(0,ut.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-vl 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:v.map(f=>(0,ut.jsx)("option",{children:f.name},f.name))}),(0,ut.jsx)(vl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 ut-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,ut.jsx)("div",{className:"hidden sm:block",children:(0,ut.jsx)("div",{className:"border-b border-gray-200",children:(0,ut.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:v.map(f=>(0,ut.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:Sc(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-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,ut.jsx)(f.icon,{className:Sc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-nl-0.5 mr-2 ut-5 w-5"),"aria-hidden":"true"}),(0,ut.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,ut.jsx)(Rn,{currentDate:p,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,ut.jsx)(Tn,{currentDate:p,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,ut.jsx)(kn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,ut.jsx)(Cn,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Dn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var me,X,P,L,S;let[i,c]=(0,Xn.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Xn.useState)(""),[u,p]=(0,Xn.useState)(!1),[g,v]=(0,Xn.useState)(null);(0,Xn.useEffect)(()=>{p(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(p(!1),v(null)):console.error("Failed ut save deal:",b.errors)}catch(b){console.error("Failed ut save deal:",b)}},x=(b,C)=>{c(w=>({...w,[b]:C}))},M=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(w=>w!==b):[...i.categories||[],b];x("categories",C)},D=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed ut add comment:",C.errors);return}}catch(C){console.error("Failed ut add comment:",C)}c(C=>({...C,comments:[...C.comments||[],b]})),d("")}},j=b=>{switch(b){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"}},z=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,ut.jsx)(vt,{open:!0,children:(0,ut.jsxs)(nt,{className:"max-w-3xl max-ut-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,ut.jsxs)(Rt,{className:"flex flex-row items-center justify-between",children:[(0,ut.jsx)(Tt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,ut.jsxs)("div",{className:"flex space-x-2",children:[(0,ut.jsx)(I,{variant:"outline",onClick:r,children:"Close"}),(0,ut.jsxs)(I,{onClick:f,disabled:!u,children:[(0,ut.jsx)(vl.SaveIcon,{className:"w-4 ut-4 mr-2"}),"Save"]})]})]}),(0,ut.jsxs)(Ta,{className:"flex-grow pr-4",children:[(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,ut.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,ut.jsx)(Je,{type:"number",value:i.value,onChange:b=>x("value",Number(b.target.value)),onBlur:()=>v(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,ut.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("value"),children:["\xA3",(me=i.value)==null?void 0:me.toLocaleString()]})}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,ut.jsxs)(Ya,{value:((P=(X=i==null?void 0:i.assignee)==null?void 0:X.id)==null?void 0:P.toString())||"",onValueChange:b=>x("assignee",z(b)),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select assignee"})}),(0,ut.jsx)(Ia,{children:t&&t.map(b=>{var C;return(0,ut.jsx)(La,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("assignee"),children:[(0,ut.jsx)(vl.UserIcon,{className:"w-4 ut-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.assignee.name})]})]}),(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,ut.jsx)(Je,{type:"date",value:(S=(L=i.closureDate)==null?void 0:L.split("ut")[0])!=null?S:"",onChange:b=>x("closureDate",b.target.value),onBlur:()=>v(null),autoFocus:!0}):(0,ut.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("closureDate"),children:[(0,ut.jsx)(vl.CalendarIcon,{className:"w-4 ut-4 text-gray-400"}),(0,ut.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"ut/ut"})]})]})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,ut.jsx)(Ea,{value:i.description||"",onChange:b=>x("description",b.target.value),onBlur:()=>v(null),className:"min-ut-[100px]",autoFocus:!0}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>v("description"),children:i.description})]})}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,ut.jsxs)(Ya,{value:i.status,onValueChange:b=>{x("status",b),v(null)},children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select status"})}),(0,ut.jsx)(Ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,ut.jsx)(La,{value:b,children:b},b))})]}):(0,ut.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("status"),children:i.status})]}),(0,ut.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,w;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(ge=>ge.id===b.id),onCheckedChange:()=>b.id!==void 0&&M(b)}),(0,ut.jsx)("label",{htmlFor:((w=b.id)!=null?w:"").toString(),className:`text-sm font-medium ${j(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,ut.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>v("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,ut.jsx)(yt,{variant:"secondary",className:j(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,ut.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,ut.jsxs)("div",{className:"grid gap-2",children:[(0,ut.jsx)(de,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,ut.jsx)(Ta,{className:"ut-[200px] overflow-y-auto",children:(0,ut.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,ut.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,ut.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,ut.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,ut.jsxs)("div",{className:"flex mt-2",children:[(0,ut.jsx)(Je,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,ut.jsxs)(I,{onClick:D,className:"nl-2",children:[(0,ut.jsx)(vl.PlusIcon,{className:"w-4 ut-4 mr-2"}),"Add"]})]})]}),(0,ut.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function An({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,ut.jsxs)(he,{className:"mb-4 cursor-pointer hover:shadow-vl transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,ut.jsxs)(Ge,{className:"pb-2",children:[(0,ut.jsx)("div",{className:"flex justify-between items-center",children:(0,ut.jsx)(je,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,ut.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,ut.jsxs)(De,{children:[(0,ut.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,ut.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,ut.jsx)(vl.UserIcon,{className:"w-4 ut-4 mr-1 text-xs"}),(0,ut.jsx)("span",{children:e.assignee.name})]}),(0,ut.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,ut.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,ut.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,ut.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ut.jsx)(vl.CalendarIcon,{className:"w-3 ut-3 mr-1"}),(0,ut.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,ut.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,ut.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var ys=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Mn({onSubmit:e}){var r;let[t,a]=(0,Xn.useState)({name:"",intro:"",active:!0});return(0,ut.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(de,{htmlFor:"customerName",children:"Customer Name"}),(0,ut.jsx)(Je,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)(de,{htmlFor:"customerIntro",children:"Intro"}),(0,ut.jsx)(Ea,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,ut.jsx)(de,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,ut.jsx)(I,{type:"submit",className:"w-full",children:"Add Customer"})]})}function In({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var j,z,me,X;let[i,c]=(0,Xn.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("ut")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,Xn.useState)(!1),[u,p]=(0,Xn.useState)({});(0,Xn.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let P={};return i.customer||(P.customer="Customer is required"),i.value||(P.value="Value is required"),i.assignee||(P.assignee="Assignee is required"),i.closureDate||(P.closureDate="Closure Date is required"),p(P),Object.keys(P).length===0},v=async P=>{P.preventDefault(),p({});try{if(g()){let L=await o({...i});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):p(L.errors||{})}}catch{p({submit:"An error occurred while submitting the form."})}},f=P=>{console.log(P),c(L=>({...L,categories:(L.categories||[]).includes(P.id)?(L.categories||[]).filter(S=>S!==P.id):[...L.categories||[],P.id]}))},x=async P=>{c({...i,customer:P});try{let L=await s(P);L.success?d(!1):p(L.errors||{})}catch{p({submit:"An error occurred while submitting the form."})}},M=P=>t==null?void 0:t.find(L=>L.id===Number(P)),D=P=>e==null?void 0:e.find(L=>L.id===Number(P));return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsxs)("form",{onSubmit:v,className:"space-y-6",children:[(0,ut.jsx)(Ta,{className:"ut-[60vh] pr-4",children:(0,ut.jsxs)("div",{className:"space-y-6 px-4",children:[(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{htmlFor:"customer",children:"Customer"}),(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsxs)(Ya,{value:(z=(j=i.customer)==null?void 0:j.id)==null?void 0:z.toString(),onValueChange:P=>c({...i,customer:D(P)}),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select customer"})}),(0,ut.jsx)(Ia,{children:e.map(P=>{var L;return(0,ut.jsx)(La,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),(0,ut.jsx)(I,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,ut.jsx)(vl.PlusIcon,{className:"w-5 ut-5"})})]}),u.customerId&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{htmlFor:"value",children:"Value"}),(0,ut.jsx)(Je,{id:"value",type:"number",value:i.value||"",onChange:P=>c({...i,value:Number.parseFloat(P.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{htmlFor:"assignee",children:"Assignee"}),(0,ut.jsxs)(Ya,{value:(X=(me=i.assignee)==null?void 0:me.id)==null?void 0:X.toString(),onValueChange:P=>c({...i,assignee:M(P)}),children:[(0,ut.jsx)(Ma,{children:(0,ut.jsx)(Ka,{placeholder:"Select assignee"})}),(0,ut.jsx)(Ia,{children:t&&t.map(P=>{var L;return(0,ut.jsx)(La,{value:((L=P.id)==null?void 0:L.toString())||"",children:P.name},P.id)})})]}),u.assignee&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{htmlFor:"description",children:"Description"}),(0,ut.jsx)(Ea,{id:"description",value:i.description||"",onChange:P=>c({...i,description:P.target.value}),placeholder:"Enter deal description"})]}),(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{children:"Categories"}),(0,ut.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(P=>(0,ut.jsxs)("div",{className:"space-y-2",children:[(0,ut.jsx)("h4",{className:"text-sm font-medium",children:P.charAt(0).toUpperCase()+P.slice(1)}),(0,ut.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===P).map(L=>{var S;return(0,ut.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Dt,{id:L.id.toString(),checked:(S=i.categories)==null?void 0:S.includes(L.id),onCheckedChange:()=>f(L)}),(0,ut.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id)})})]},P))})]}),(0,ut.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,ut.jsx)(de,{htmlFor:"closureDate",children:"Closure Date"}),(0,ut.jsx)(Je,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:P=>c({...i,closureDate:P.target.value})}),u.closureDate&&(0,ut.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,ut.jsx)(I,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,ut.jsx)(vt,{open:m,onOpenChange:d,children:(0,ut.jsxs)(nt,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Customer"})}),(0,ut.jsx)(Mn,{onSubmit:x})]})})]})}function Ln({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,u]=(0,Xn.useState)(!1);return(0,ut.jsxs)("div",{className:"flex flex-col w-80",children:[(0,ut.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,ut.jsxs)(vt,{open:d,onOpenChange:u,children:[(0,ut.jsx)(zr,{asChild:!0,children:(0,ut.jsxs)(I,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,ut.jsx)(vl.PlusCircle,{className:"mr-2 ut-4 w-4"}),"Add New Deal"]})}),(0,ut.jsxs)(nt,{children:[(0,ut.jsx)(Rt,{children:(0,ut.jsx)(Tt,{children:"Add New Deal"})}),(0,ut.jsx)(In,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>u(!1)})]})]}),(0,ut.jsx)(ys.Droppable,{droppableId:e,isDropDisabled:!1,children:p=>(0,ut.jsxs)("div",{ref:p.innerRef,...p.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-ut-[200px] shadow-inner",children:[t.map((g,v)=>(0,ut.jsx)(ys.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,ut.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,ut.jsx)(An,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),p.placeholder]})}),(0,ut.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,ut.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,ut.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,ut.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,ut.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var ou=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function ru({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var u;let[s,n]=(0,Xn.useState)(null),i=p=>{var g;return((g=e.deals)!=null?g:[]).filter(v=>v.status===p)},c=p=>p.reduce((g,v)=>g+(v.value||0),0),m=(p,g)=>{let v={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((f,x)=>f+(x.value||0)*v[g],0)},d=(0,Xn.useCallback)(p=>{var j,z;let{source:g,destination:v}=p;if(!v||g.droppableId===v.droppableId&&g.index===v.index)return;let f=g.droppableId,x=v.droppableId,M=(j=e.deals)==null?void 0:j.filter(me=>me.id===g.index)[0],D=[...(z=e.deals)!=null?z:[]];M&&(M.status=x,a(M))},[a]);return(0,ut.jsx)(ys.DragDropContext,{onDragEnd:d,children:(0,ut.jsxs)("div",{className:"p-4 max-ut-[90vh] overflow-auto",children:[(0,ut.jsx)("div",{className:"flex space-x-4 pb-4",children:ou.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var v,f;let g=i(p);return(0,ut.jsx)(Ln,{status:p,deals:g,customers:(v=e.customers)!=null?v:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,ut.jsx)(Dn,{deal:s,users:e.users,customer:s.customer,categories:(u=e.categories)!=null?u:[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function su({services:e,className:t}){return(0,ut.jsx)("section",{id:"next-section",className:l("section-padding-primary",t),children:(0,ut.jsx)(Ie,{className:"py-8",children:e&&e.length>0&&(0,ut.jsx)("div",{className:"flex flex-wrap justify-center gap-y-8",children:e.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ao([200,400,600],o),className:"w-full px-4 vl:w-1/2 lg:w-1/3",children:(0,ut.jsx)(Hi,{...a})},o))})})})}function iu({sectionHeading:e,cards:t}){return(0,ut.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,ut.jsxs)(Ie,{children:[(0,ut.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,ut.jsx)(Ha,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,ut.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,ut.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Ao([200,400,600],o),className:"py-2",children:(0,ut.jsx)(Fi,{...a})},o))})]})})}var hr=y(require("next/image"));function nu(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,ut.jsx)("section",{id:"about-section",className:l("section-padding-primary",e.className||""),children:(0,ut.jsx)(Ie,{children:(0,ut.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,ut.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,ut.jsx)(Ha,{...a}),o&&o.length>0&&(0,ut.jsx)("div",{className:"mt-7 grid gap-5 text-accent sm:grid-cols-2 vl:mt-10 vl:gap-[1.875rem]",children:o.map((s,n)=>(0,ut.jsxs)("div",{className:"group flex min-ut-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 vl:min-ut-[85px] vl:px-[1.875rem] vl:py-3",children:[(0,ut.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,ut.jsx)("h3",{className:"text-vl font-bold leading-[1.25] vl:text-lg",children:s.title})]},n))}),r&&(0,ut.jsx)("p",{className:"mt-5 vl:mt-[1.875rem]",children:r})]}),t&&(0,ut.jsx)("div",{className:"mx-auto text-center",children:(0,ut.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,ut.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,ut.jsx)("div",{className:"relative z-[2] mt-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,ut.jsx)("div",{className:"relative z-[4] overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,ut.jsx)("div",{className:"flex overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,ut.jsx)("div",{className:"nl-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,ut.jsx)("div",{className:"overflow-hidden",children:(0,ut.jsx)(hr.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,ut.jsx)("div",{className:"absolute left-1/2 top-1/2 z-[4] -translate-x-1/2 -translate-y-1/2 overflow-hidden",children:(0,ut.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,ut.jsx)("span",{className:"grid ut-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,ut.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})}var Ec=y(require("next/image"));function Bc({blogs:e}){return(0,ut.jsx)("div",{children:e&&e.length>0&&(0,ut.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,a)=>(0,ut.jsx)(lu,{post:t,id:a},a))})})}var lu=({post:e,id:t})=>{let{slug:a,image:o,authors:r,categories:s,title:n,description:i,publishedAt:c}=e;return(0,ut.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,ut.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,ut.jsx)(Ec.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,ut.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,ut.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:as(e.publishedAt)}),e.categories&&e.categories.map((m,d)=>(0,ut.jsx)("a",{href:`#${m}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m},d))]}),(0,ut.jsxs)("div",{className:"group relative max-w-xl",children:[(0,ut.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,ut.jsxs)("a",{href:e.slug,children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,ut.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,ut.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:r&&r.map((m,d)=>(0,ut.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[m.image?(0,ut.jsx)("img",{alt:m.image.alt,src:m.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,ut.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,ut.jsx)("div",{className:"text-sm/6",children:(0,ut.jsxs)("p",{className:"text-foreground pr-6",children:[(0,ut.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},d))})]})]},t)};function du({blogs:e,pages:t,categories:a,types:o}){return(0,ut.jsx)("section",{children:(0,ut.jsx)(Ie,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsxs)("div",{children:[o&&(0,ut.jsx)(mn,{types:o}),(0,ut.jsx)(Bc,{blogs:e}),(0,ut.jsx)(dn,{pages:t})]}),(0,ut.jsx)("div",{className:"grid gap-30px w-full self-baseline max-vl:mx-auto max-vl:max-w-[410px] lg:gap-10",children:(0,ut.jsx)("div",{className:"lg:-mt-24 w-full",children:a&&a.links&&(0,ut.jsx)(pr,{links:a.links,title:a.title})})})]})})})}var Gc=y(require("next/image"));var xs="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//ut";function ws({className:e}){return l("flex items-center min-ut-[3.5rem] vl:min-ut-[3.75rem] w-full rounded-5 px-4 vl:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function cu({className:e,...t}){return(0,ut.jsx)("input",{...t,className:ws({className:e})})}function Ns({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(cu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function mu({className:e,...t}){return(0,ut.jsx)("textarea",{...t,className:l(ws({}),"resize-none vl:min-ut-[130px]",e)})}function zc({icon:e,...t}){return(0,ut.jsxs)("div",{className:"relative w-full",children:[(0,ut.jsx)(mu,{...t}),e&&(0,ut.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Fc=require("formik"),go=y(require("yup"));async function Hc(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.Xn/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"Xn-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var Bt={tooShort:"Must be ut least ${min} characters",tooLong:"Must be ut most ${max} characters",required:"This field is required",email:"Invalid email format"},pu=go.object().shape({name:go.string().min(2,Bt.tooShort).max(50,Bt.tooLong).required(Bt.required),email:go.string().email(Bt.email).required(Bt.required),subject:go.string().min(2,Bt.tooShort).max(50,Bt.tooLong).required(Bt.required),message:go.string().min(2,Bt.tooShort).max(300,Bt.tooLong).required(Bt.required)}),Cs=l("!pr-[44px]"),Ps=l("!border-red-600 border"),Ss=l("sr-only");function _c(){return(0,ut.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:pu,onSubmit:async(e,{resetForm:t})=>{let a=await Hc(e);a.data===null?lo.toast.error(a.message):(lo.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,ut.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)(Ns,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(Xr.FaUser,{}),className:l(Cs,e.name&&t.name&&Ps)}),e.name&&t.name&&(0,ut.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ss,children:e.name})]}),(0,ut.jsxs)("div",{children:[(0,ut.jsx)(Ns,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(uu,{}),className:l(Cs,e.email&&t.email&&Ps)}),e.email&&t.email&&(0,ut.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ss,children:e.email})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(Ns,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Cs,e.subject&&t.subject&&Ps)}),e.subject&&t.subject&&(0,ut.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ss,children:e.subject})]}),(0,ut.jsxs)("div",{className:"lg:col-span-2",children:[(0,ut.jsx)(zc,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,ut.jsx)(gu,{}),className:l(Cs,e.message&&t.message&&Ps)}),e.message&&t.message&&(0,ut.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ss,children:e.message})]}),(0,ut.jsx)("div",{className:"lg:col-span-2",children:(0,ut.jsx)(I,{type:"submit",className:"w-full outline outline-accent bg-accent text-accent-foreground hover:bg-white hover:text-accent",disabled:s,children:(0,ut.jsx)("span",{children:"SEND"})})})]})})}function uu(){return(0,ut.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function gu(){return(0,ut.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,ut.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}function fu(e){let{sectionHeading:t,image:a}=e;return(0,ut.jsxs)(ut.Fragment,{children:[(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsx)("div",{className:"",children:(0,ut.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,ut.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,ut.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,ut.jsxs)("div",{children:[(0,ut.jsx)("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),(0,ut.jsx)("p",{className:"mt-4 text-base/7 text-foreground",children:"ut have multiple locations across the UK where ut are based. These are our key locations."})]}),(0,ut.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((o,r)=>{var s;return(0,ut.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,ut.jsx)("h3",{className:"text-base/7 font-semibold text-accent",children:o.title}),(0,ut.jsxs)("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(s=o.location.split(","))==null?void 0:s.map((n,i)=>(0,ut.jsx)("p",{children:n},i))," ",o.mails&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaEnvelope,{className:"pr-2 text-accent size-auto"}),(0,ut.jsx)("span",{children:o.mails[0]})]}),o.phoneNumbers&&o.phoneNumbers.length>0&&(0,ut.jsxs)("p",{className:"flex items-center space-x-2",children:[(0,ut.jsx)(Xr.FaPhoneFlip,{className:"pr-2 text-accent size-auto"}),o.phoneNumbers[0]]})]})]},r)})})]})})})})}),(0,ut.jsx)("section",{className:"section-padding-primary",children:(0,ut.jsxs)("div",{className:"relative py-[60px]",children:[(0,ut.jsx)("div",{className:"absolute left-0 top-0 z-1 ut-full w-full overflow-hidden bg-red-500 vl:w-[56%] vl:rounded-r-5",children:(0,ut.jsx)(Gc.default,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:xs})}),(0,ut.jsx)(Ie,{children:(0,ut.jsx)("div",{className:"nl-auto vl:w-1/2",children:(0,ut.jsxs)("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[(0,ut.jsx)("div",{className:"mb-30px",children:(0,ut.jsx)(Ha,{...t,invert:!0})}),(0,ut.jsx)(_c,{})]})})})]})})]})}var jc=y(require("next/image"));var Vc=y(require("next/link"));function bu({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,ut.jsx)("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(he,{children:(0,ut.jsxs)(De,{children:[e&&e.src&&(0,ut.jsx)(jc.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:xs,className:"mx-auto mt-6 rounded-full object-cover"}),(0,ut.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent vl:text-xl",children:t}),(0,ut.jsx)("p",{children:a}),o&&o.length>0&&(0,ut.jsx)("nav",{"aria-label":"social links",children:(0,ut.jsx)("ut",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>(0,ut.jsx)("li",{children:(0,ut.jsx)(Le,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,ut.jsx)("span",{children:r.icon})})},s))})})]})})})}function vu({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){var p;if(!e)return(0,Ad.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:c,title:m}=e,d={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:((p=s==null?void 0:s[0])==null?void 0:p.name)||"",category:i,commentCount:0,title:m,description:(r==null?void 0:r.description)||""},u=n==null?void 0:n.map(g=>{var v,f;return{name:g.name||"",about:"",image:{src:g.profilePicture&&((f=(v=g.profilePicture.sizes)==null?void 0:v.square)==null?void 0:f.url)||"",alt:g.name||"blog author"},socialLinks:[]}});return(0,ut.jsx)(Ie,{children:(0,ut.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,ut.jsx)("div",{children:(0,ut.jsxs)("div",{className:"[&_p+P]:mt-4",children:[(0,ut.jsx)("div",{className:"my-4 ut-px bg-body/30 lg:my-5"}),(0,ut.jsx)(se,{content:c,enableGutter:!1})]})}),(0,ut.jsxs)("div",{className:"grid gap-30px self-baseline max-vl:mx-auto max-vl:max-w-[410px] lg:gap-10",children:[a&&(0,ut.jsx)("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:(0,ut.jsxs)(he,{children:[(0,ut.jsx)(Ge,{children:(0,ut.jsx)(je,{className:"text-accent",children:"Content Actions"})}),(0,ut.jsxs)(De,{children:[(0,ut.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,ut.jsx)(Vc.default,{href:`${o}${e.id}`,children:(0,ut.jsx)(I,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((g,v)=>(0,ut.jsx)(bu,{...g},v)),t&&t.links&&(0,ut.jsx)("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:(0,ut.jsx)(pr,{links:t.links,title:t.title})})]})]})})}var Bn=y(require("next/link"));var Xc=require("lucide-react"),yu=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Xn.useState)(!1),c=()=>{i(!n)};return(0,Xn.useEffect)(()=>{let m=window.location.hash;if(m){let d=m.substring(1),u=document.getElementById(d);if(u){let g=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:g,behavior:"smooth"})}}},[window.location.hash]),(0,ut.jsxs)("div",{children:[(0,ut.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,ut.jsx)(hu,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,ut.jsx)("div",{className:"block vl:hidden mt-8",children:(0,ut.jsx)("div",{className:"space-y-6",children:e})})]})};var hu=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Xn.useState)(""),[c,m]=(0,Xn.useState)(!1),[d,u]=(0,Xn.useState)(!1),p=(0,Ad.usePathname)(),g=()=>{m(!c),u(!1)},v=()=>{u(!d),m(!1)},f=D=>{switch(D){case"h3":return"nl-4";case"h4":return"nl-8";default:return""}},x=()=>{let D=p.split("/"),j="/print"+p,z=window.open(j,"Print","width=1754,height=1240,toolbar=Xn,location=Xn,status=Xn,menubar=Xn,scrollbars=yes,resizable=yes");z&&z.focus()},M=()=>{let D=p.split("/"),j="/present"+p;console.log(j);let z=window.open(j,"Print","width=1754,height=1240,toolbar=Xn,location=Xn,status=Xn,menubar=Xn,scrollbars=yes,resizable=yes");z&&z.focus()};return(0,ut.jsx)("div",{className:l("fixed right-2 z-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-x-full",s?"translate-x-0":"vl:translate-x-0"),children:(0,ut.jsxs)("div",{className:"flex flex-row-reverse z-20 min-w-64 gap-4",children:[(0,ut.jsxs)("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-ut-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,ut.jsxs)(Bn.default,{href:`${o}${e}`,className:"flex aspect-square min-ut-[25px] w-12 flex-col items-center justify-center gap-1 rounded-vl p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,ut.jsxs)("a",{onClick:g,className:"flex aspect-square min-ut-[25px] w-12 flex-col items-center justify-center gap-1 rounded-vl p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,ut.jsxs)("a",{onClick:v,className:"flex aspect-square min-ut-[25px] w-12 flex-col items-center justify-center gap-1 rounded-vl p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,ut.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,ut.jsx)("hr",{className:"dark:border-gray-400"}),(0,ut.jsxs)("a",{onClick:M,className:"flex aspect-square min-ut-[25px] w-12 flex-col items-center justify-center gap-1 rounded-vl p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,ut.jsxs)("a",{onClick:x,className:"flex aspect-square min-ut-[25px] w-12 flex-col items-center justify-center gap-1 rounded-vl p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,ut.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,ut.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,ut.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),c&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-ut-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,ut.jsx)("ut",{className:"flex flex-col space-y-2",children:t.map((D,j)=>(0,ut.jsx)("li",{className:f(D.tag),children:(0,ut.jsx)("a",{href:`#${D.id}`,className:`text-xs ${n===D.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:D.text})},j))})]})}),d&&r&&r.length>0&&(0,ut.jsx)("div",{className:l("z-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-ut-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,ut.jsxs)("div",{className:"flex flex-col m-2 justify-start z-50 min-w-64",children:[(0,ut.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,ut.jsx)("ut",{className:"flex flex-col space-y-2",children:r.map((D,j)=>D.links&&D.links.length>0?D.links.map((z,me)=>(0,ut.jsxs)(Bn.default,{href:z.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[z.title,z.url.startsWith("http")&&(0,ut.jsx)(Xc.ExternalLink,{className:"nl-1 ut-3 w-3"})]},me)):null)})]})})]})})};var qc=y(require("next/image"));function xu({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?ut=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,ut.jsxs)("section",{className:l("relative min-ut-[50vh] w-full overflow-hidden",e),children:[(0,ut.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,ut.jsx)(qc.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,ut.jsx)("div",{className:"absolute inset-0",style:{background:r==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]}),(0,ut.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 vl:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,ut.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"nl-auto":"mr-auto"),children:t})})]})}0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,MainPageSection,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceSection,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,ut,getTableOfContents,reducer,toast,toggleVariants,useIsMobile,useSidebar,useToast});
|